SEditor.js 948 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126
  1. var Te = Object.defineProperty;
  2. var je = Object.getOwnPropertySymbols;
  3. var Pe = Object.prototype.hasOwnProperty, Me = Object.prototype.propertyIsEnumerable;
  4. var Ee = (re, ee, Z) => ee in re ? Te(re, ee, { enumerable: !0, configurable: !0, writable: !0, value: Z }) : re[ee] = Z, _e = (re, ee) => {
  5. for (var Z in ee || (ee = {}))
  6. Pe.call(ee, Z) && Ee(re, Z, ee[Z]);
  7. if (je)
  8. for (var Z of je(ee))
  9. Me.call(ee, Z) && Ee(re, Z, ee[Z]);
  10. return re;
  11. };
  12. import { ref as De, onMounted as Oe, onBeforeUnmount as ze, watch as Ae, openBlock as Le, createElementBlock as Ne } from "vue";
  13. import { l as Re } from "./index2.js";
  14. var xe = { exports: {} };
  15. (function(re, ee) {
  16. (function(Z, se) {
  17. re.exports = se();
  18. })(self, function() {
  19. return function() {
  20. var Z, se = { 90643: function(_) {
  21. _.exports.default = ["إبدأ في الكتابة...", "حول جوديت", "محرر جوديت", null, "دليل مستخدم جوديت", "يحتوي على مساعدة مفصلة للاستخدام", "للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:", "شراء النسخة الكاملة", "حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.", "مِرْساة", "فتح في نافذة جديدة", "فتح المحرر في الحجم الكامل", "مسح التنسيق", "ملء اللون أو تعيين لون النص", "إعادة", "تراجع", "عريض", "مائل", "إدراج قائمة غير مرتبة", "إدراج قائمة مرتبة", "محاذاة للوسط", "محاذاة مثبتة", "محاذاة لليسار", "محاذاة لليمين", "إدراج خط أفقي", "إدراج صورة", "ادخال الملف", "إدراج فيديو يوتيوب/فيميو ", "إدراج رابط", "حجم الخط", "نوع الخط", "إدراج كتلة تنسيق", "عادي", "عنوان 1", "عنوان 2", "عنوان 3", "عنوان 4", "إقتباس", "كود", "إدراج", "إدراج جدول", "تقليل المسافة البادئة", "زيادة المسافة البادئة", "تحديد أحرف خاصة", "إدراج حرف خاص", "تنسيق الرسم", "تغيير الوضع", "هوامش", "أعلى", "يمين", "أسفل", "يسار", "الأنماط", "الطبقات", "محاذاة", "اليمين", "الوسط", "اليسار", "--غير مضبوط--", "Src", "العنوان", "العنوان البديل", "الرابط", "افتح الرابط في نافذة جديدة", "الصورة", "ملف", "متقدم", "خصائص الصورة", "إلغاء", "حسنا", "يشبه الكود الخاص بك HTML. تبقي كما HTML؟", "الصق ك HTML", "احتفظ", "نظيفة", "إدراج كنص", "إدراج النص فقط", "كلمة لصق الكشف عن", "للصق المحتوى قادم من Microsoft Word/Excel الوثيقة. هل تريد أن تبقي شكل أو تنظيفه ؟ ", "متصفح الملفات", "حدث خطأ في تحميل القائمة ", "حدث خطأ في تحميل المجلدات", "هل أنت واثق؟", "أدخل اسم المجلد", "إنشاء مجلد", "أكتب إسم", "إسقاط صورة", "إسقاط الملف", "أو أنقر", "النص البديل", "تصفح", "رفع", "الخلفية", "نص", "أعلى", "الوسط", "الأسفل", "إدراج عمود قبل", "إدراج عمود بعد", "إدراج صف أعلى", "إدراج صف أسفل", "حذف الجدول", "حذف الصف", "حذف العمود", "خلية فارغة", "مصدر", "بالخط العريض", "مائل", "شغل", "صلة", "إلغاء", "كرر", "طاولة", "صورة", "نظيف", "فقرة", "حجم الخط", "فيديو", "الخط", "حول المحرر", "طباعة", "أكد", "شطب", "المسافة البادئة", "نتوء", "ملء الشاشة", "الحجم التقليدي", "الخط", "قائمة", "قائمة مرقمة", "قطع", "اختر الكل", "قانون", "فتح الرابط", "تعديل الرابط", "سمة Nofollow", "إزالة الرابط", "مراجعة", "لتحرير", "تحديث", "URL", "تحرير", "محاذاة أفقية", "فلتر", "عن طريق التغيير", "بالاسم", "حسب الحجم", "إضافة مجلد", "إعادة", "احتفظ", "حفظ باسم", "تغيير الحجم", "حجم القطع", "عرض", "ارتفاع", "حافظ على النسب", "أن", "لا", "حذف", "تميز", "%d حرف", "%d كلام", null, "تميز %s", "اختر الكل", "محاذاة عمودية", "انشق، مزق", "انقسام عمودي", "تقسيم أفقي", "اذهب", "أضف العمود", "اضف سطر", "حذف", "الحدود", "رخصة %s", "اضرب من خلال", "أكد", "حرف فوقي", "مخطوطة", "قطع الاختيار", "استراحة", "البحث عن", "استبدل ب", "محل", "معجون", "اختر محتوى للصق", "يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟", "تم تحميل الصورة بنجاح على الخادم!", "لوحة", "لا توجد ملفات في هذا الدليل.", "إعادة تسمية", "أدخل اسم جديد", "معاينة", "تحميل", "لصق من الحافظة", "متصفحك لا يدعم إمكانية الوصول المباشر إلى الحافظة.", "نسخ التحديد", "نسخ", "دائرة نصف قطرها الحدود", "عرض كل", "تطبيق", "يرجى ملء هذا المجال", "يرجى إدخال عنوان ويب", "الافتراضي", "دائرة", "نقطة", "المربعة", "البحث", "تجد السابقة", "تجد التالي", "أدخل اسم الفصل", "اضغط البديل لتغيير حجم مخصص"];
  22. }, 52532: function(_) {
  23. _.exports.default = ["Napiš něco", "O Jodit", "Editor Jodit", "Verze pro nekomerční použití", "Jodit Uživatelská příručka", "obsahuje detailní nápovědu", "Pro informace o licenci, prosím, přejděte na naši stránku:", "Koupit plnou verzi", "Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.", "Anchor", "Otevřít v nové záložce", "Otevřít v celoobrazovkovém režimu", "Vyčistit formátování", "Barva výplně a písma", "Vpřed", "Zpět", "Tučné", "Kurzíva", "Odrážky", "Číslovaný seznam", "Zarovnat na střed", "Zarovnat do bloku", "Zarovnat vlevo", "Zarovnat vpravo", "Vložit horizontální linku", "Vložit obrázek", "Vložit soubor", "Vložit video (YT/Vimeo)", "Vložit odkaz", "Velikost písma", "Typ písma", "Formátovat blok", "Normální text", "Nadpis 1", "Nadpis 2", "Nadpis 3", "Nadpis 4", "Citát", "Kód", "Vložit", "Vložit tabulku", "Zmenšit odsazení", "Zvětšit odsazení", "Vybrat speciální symbol", "Vložit speciální symbol", "Použít formát", "Změnit mód", "Okraje", "horní", "pravý", "spodní", "levý", "Styly", "Třídy", "Zarovnání", "Vpravo", "Na střed", "Vlevo", "--nenastaveno--", "src", "Titulek", "Alternativní text (alt)", "Link", "Otevřít link v nové záložce", "Obrázek", "soubor", "Rozšířené", "Vlastnosti obrázku", "Zpět", "Ok", "Váš text se podobá HTML. Vložit ho jako HTML?", "Vložit jako HTML", "Ponechat originál", "Vyčistit", "Vložit jako TEXT", "Vložit pouze TEXT", "Detekován fragment z Wordu nebo Excelu", "Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?", "Prohlížeč souborů", "Chyba při načítání seznamu souborů", "Chyba při načítání složek", "Jste si jistý(á)?", "Název složky", "Vytvořit složku", "název", "Přetáhněte sem obrázek", "Přetáhněte sem soubor", "nebo klikněte", "Alternativní text", "Server", "Nahrát", "Pozadí", "Text", "Nahoru", "Na střed", "Dolu", "Vložit sloupec před", "Vložit sloupec za", "Vložit řádek nad", "Vložit řádek pod", "Vymazat tabulku", "Vymazat řádku", "Vymazat sloupec", "Vyčistit buňku", "HTML", "tučně", "kurzíva", "štětec", "odkaz", "zpět", "vpřed", "tabulka", "obrázek", "guma", "odstavec", "velikost písma", "video", "písmo", "о editoru", "tisk", "podtrženo", "přeškrtnuto", "zvětšit odsazení", "zmenšit odsazení", "celoobrazovkový režim", "smrsknout", "Linka", "Odrážka", "Číslovaný seznam", "Vyjmout", "Označit vše", "Kód", "Otevřít odkaz", "Upravit odkaz", "Atribut no-follow", "Odstranit odkaz", "Zobrazit", "Chcete-li upravit", "Aktualizovat", "URL", "Editovat", "Horizontální zarovnání", "Filtr", "Dle poslední změny", "Dle názvu", "Dle velikosti", "Přidat složku", "Reset", "Uložit", "Uložit jako...", "Změnit rozměr", "Ořezat", "Šířka", "Výška", "Ponechat poměr", "Ano", "Ne", "Vyjmout", "Označit", "Znaky: %d", "Slova: %d", "Vše", "Označit %s", "Označit vše", "Vertikální zarovnání", "Rozdělit", "Rozdělit vertikálně", "Rozdělit horizontálně", "Spojit", "Přidat sloupec", "Přidat řádek", "Vymazat", "Okraj", "Licence: %s", "Přeškrtnuto", "Podtrženo", "Horní index", "Dolní index", "Vyjmout označené", "Zalomení", "Najdi", "Nahradit za", "Vyměňte", "Vložit", "Vyber obsah pro vložení", "Můžete upravovat pouze své obrázky. Načíst obrázek?", "Obrázek byl úspěšně nahrán!", "paleta", "V tomto adresáři nejsou žádné soubory.", "přejmenovat", "Zadejte nový název", "náhled", "Stažení", "Vložit ze schránky", "Váš prohlížeč nepodporuje přímý přístup do schránky.", "Kopírovat výběr", "kopírování", "Border radius", "Zobrazit všechny", "Platí", "Prosím, vyplňte toto pole", "Prosím, zadejte webovou adresu", "Výchozí", "Kruh", "Dot", "Quadrate", "Najít", "Najít Předchozí", "Najít Další", "Vložte název třídy", "Stiskněte Alt pro vlastní změnu velikosti"];
  24. }, 75178: function(_) {
  25. _.exports.default = ["Bitte geben Sie einen Text ein", "Über Jodit", "Jodit Editor", null, "Das Jodit Benutzerhandbuch", "beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.", "Für Informationen zur Lizenz, besuchen Sie bitte unsere Web-Präsenz:", "Vollversion kaufen", "Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.", "Anker", "In neuer Registerkarte öffnen", "Editor in voller Größe öffnen", "Formatierung löschen", "Füllfarbe oder Textfarbe ändern", "Wiederholen", "Rückgängig machen", "Fett", "Kursiv", "Unsortierte Liste einfügen", "Nummerierte Liste einfügen", "Mittig ausrichten", "Blocksatz", "Links ausrichten", "Rechts ausrichten", "Horizontale Linie einfügen", "Bild einfügen", "Datei einfügen", "Youtube/vimeo Video einfügen", "Link einfügen", "Schriftgröße", "Schriftfamilie", "Formatblock einfügen", "Normal", "Überschrift 1", "Überschrift 2", "Überschrift 3", "Überschrift 4", "Zitat", "Code", "Einfügen", "Tabelle einfügen", "Einzug verkleinern", "Einzug vergrößern", "Sonderzeichen auswählen", "Sonderzeichen einfügen", "Format kopieren", "Änderungsmodus", "Ränder", "Oben", "Rechts", "Unten", "Links", "CSS Stil", "CSS Klassen", "Ausrichtung", "Rechts", "Zentriert", "Links", "Keine", "Pfad", "Titel", "Alternativer Text", "Link", "Link in neuem Tab öffnen", "Bild", "Datei", "Fortgeschritten", "Bildeigenschaften", "Abbrechen", "OK", "Ihr Text ähnelt HTML-Code. Als HTML beibehalten?", "Als HTML einfügen?", "Original speichern", "Säubern", "Als Text einfügen", "Nur Text einfügen", "In Word formatierter Text erkannt", "Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder bereinigen?", "Dateibrowser", "Fehler beim Laden der Liste", "Fehler beim Laden der Ordner", "Sind Sie sicher?", "Geben Sie den Verzeichnisnamen ein", "Verzeichnis erstellen", "Typname", "Bild hier hinziehen", "Datei löschen", "oder hier klicken", "Alternativtext", "Auswählen", "Hochladen", "Hintergrund", "Text", "Oben", "Mittig", "Unten", "Spalte davor einfügen", "Spalte danach einfügen", "Zeile oberhalb einfügen", "Zeile unterhalb einfügen", "Tabelle löschen", "Zeile löschen", "Spalte löschen", "Zelle leeren", "HTML", "Fett gedruckt", "Kursiv", "Bürste", "Verknüpfung", "Rückgängig machen", "Wiederholen", "Tabelle", "Bild", "Radiergummi", "Absatz", "Schriftgröße", "Video", "Schriftart", "Über", "Drucken", "Unterstreichen", "Durchstreichen", "Einzug", "Herausstellen", "Vollgröße", "Schrumpfen", "die Linie", "Liste von", "Nummerierte Liste", "Schneiden", "Wählen Sie Alle aus", "Code einbetten", "Link öffnen", "Link bearbeiten", "Nofollow-Attribut", "Link entfernen", "Ansehen", "Bearbeiten", "Aktualisieren", "URL", "Bearbeiten", "Horizontale Ausrichtung", "Filter", "Sortieren nach geändert", "Nach Name sortieren", "Nach Größe sortiert", "Ordner hinzufügen", "Wiederherstellen", "Speichern", "Speichern als", "Größe ändern", "Größe anpassen", "Breite", "Höhe", "Seitenverhältnis beibehalten", "Ja", "Nein", "Entfernen", "Markieren", "Zeichen: %d", "Wörter: %d", "Alles markieren", "Markieren: %s", "Alles markieren", "Vertikale Ausrichtung", "Unterteilen", "Vertikal unterteilen", "Horizontal unterteilen", "Vereinen", "Spalte hinzufügen", "Zeile hinzufügen", "Löschen", "Rand", null, "Durchstreichen", "Unterstreichen", "Hochstellen", "Tiefstellen", "Auswahl ausschneiden", "Pause", "Suche nach", "Ersetzen durch", "Ersetzen", "Einfügen", "Wählen Sie den Inhalt zum Einfügen aus", "Sie können nur Ihre eigenen Bilder bearbeiten. Dieses Bild auf den Host herunterladen?", "Das Bild wurde erfolgreich auf den Server hochgeladen!", "Palette", "In diesem Verzeichnis befinden sich keine Dateien.", "Umbenennen", "Geben Sie einen neuen Namen ein", "Vorschau", "Herunterladen", "Aus Zwischenablage einfügen", "Ihr Browser unterstützt keinen direkten Zugriff auf die Zwischenablage.", "Auswahl kopieren", "Kopieren", "Radius für abgerundete Ecken", "Alle anzeigen", "Anwenden", "Bitte füllen Sie dieses Feld aus", "Bitte geben Sie eine Web-Adresse ein", "Standard", "Kreis", "Punkte", "Quadrate", "Suchen", "Suche vorherige", "Weitersuchen", "className (CSS) einfügen", "Drücken Sie Alt für benutzerdefinierte Größenanpassung"];
  26. }, 51048: function(_) {
  27. _.exports.default = { "Type something": "Start writing...", pencil: "Edit", Quadrate: "Square" };
  28. }, 22999: function(_) {
  29. _.exports.default = ["Escriba algo...", "Acerca de Jodit", "Jodit Editor", null, "Guía de usuario Jodit", "contiene ayuda detallada para el uso.", "Para información sobre la licencia, por favor visite nuestro sitio:", "Compre la versión completa", "Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.", "Anclar", "Abrir en nueva pestaña", "Abrir editor en pantalla completa", "Limpiar formato", "Color de relleno o de letra", "Rehacer", "Deshacer", "Negrita", "Cursiva", "Insertar lista no ordenada", "Insertar lista ordenada", "Alinear Centrado", "Alinear Justificado", "Alinear Izquierda", "Alinear Derecha", "Insertar línea horizontal", "Insertar imagen", "Insertar archivo", "Insertar video de Youtube/vimeo", "Insertar vínculo", "Tamaño de letra", "Familia de letra", "Insertar bloque", "Normal", "Encabezado 1", "Encabezado 2", "Encabezado 3", "Encabezado 4", "Cita", "Código", "Insertar", "Insertar tabla", "Disminuir sangría", "Aumentar sangría", "Seleccionar caracter especial", "Insertar caracter especial", "Copiar formato", "Cambiar modo", "Márgenes", "arriba", "derecha", "abajo", "izquierda", "Estilos CSS", "Clases CSS", "Alinear", "Derecha", "Centrado", "Izquierda", "--No Establecido--", "Fuente", "Título", "Texto Alternativo", "Vínculo", "Abrir vínculo en nueva pestaña", "Imagen", "Archivo", "Avanzado", "Propiedades de imagen", "Cancelar", "Aceptar", "El código es similar a HTML. ¿Mantener como HTML?", "Pegar como HTML?", "Mantener", "Limpiar", "Insertar como texto", "Insertar solo texto", "Pegado desde Word detectado", "El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?", "Buscar archivo", "Error al cargar la lista", "Error al cargar las carpetas", "¿Está seguro?", "Entre nombre de carpeta", "Crear carpeta", "Entre el nombre", "Soltar imagen", "Soltar archivo", "o click", "Texto alternativo", "Buscar", "Subir", "Fondo", "Texto", "Arriba", "Centro", "Abajo", "Insertar columna antes", "Interar columna después", "Insertar fila arriba", "Insertar fila debajo", "Borrar tabla", "Borrar fila", "Borrar columna", "Vaciar celda", "HTML", "negrita", "cursiva", "Brocha", "Vínculo", "deshacer", "rehacer", "Tabla", "Imagen", "Borrar", "Párrafo", "Tamaño de letra", "Video", "Letra", "Acerca de", "Imprimir", "subrayar", "tachar", "sangría", "quitar sangría", "Tamaño completo", "encoger", "línea horizontal", "lista sin ordenar", "lista ordenada", "Cortar", "Seleccionar todo", "Incluir código", "Abrir vínculo", "Editar vínculo", "No seguir", "Desvincular", "Ver", "Para editar", "Actualizar", "URL", "Editar", "Alineación horizontal", "Filtrar", "Ordenar por fecha modificación", "Ordenar por nombre", "Ordenar por tamaño", "Agregar carpeta", "Resetear", "Guardar", "Guardar como...", "Redimensionar", "Recortar", "Ancho", "Alto", "Mantener relación de aspecto", "Si", "No", "Quitar", "Seleccionar", "Caracteres: %d", "Palabras: %d", "Todo", "Seleccionar: %s", "Seleccionar todo", "Alineación vertical", "Dividir", "Dividir vertical", "Dividir horizontal", "Mezclar", "Agregar columna", "Agregar fila", "Borrar", "Borde", null, "Tachado", "Subrayado", "superíndice", "subíndice", "Cortar selección", "Pausa", "Buscar", "Reemplazar con", "Reemplazar", "Pegar", "Seleccionar contenido para pegar", "Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?", "¡La imagen se ha subido correctamente al servidor!", "paleta", "No hay archivos en este directorio.", "renombrar", "Ingresa un nuevo nombre", "avance", "Descargar", "Pegar desde el portapapeles", "Su navegador no soporta el acceso directo en el portapapeles.", "Selección de copia", "copia", "Radio frontera", "Mostrar todos los", "Aplicar", "Por favor, rellene este campo", "Por favor, introduzca una dirección web", "Predeterminado", "Círculo", "Punto", "Cuadro", "Encontrar", "Buscar Anterior", "Buscar Siguiente", "Insertar nombre de clase", "Presione Alt para cambiar el tamaño personalizado"];
  30. }, 34145: function(_) {
  31. _.exports.default = ["Ecrivez ici", "A propos de Jodit", "Editeur Jodit", null, "Guide de l'utilisateur", "Aide détaillée à l'utilisation", "Consulter la licence sur notre site web:", "Acheter la version complète", "Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.", "Ancre", "Ouvrir dans un nouvel onglet", "Ouvrir l'éditeur en pleine page", "Supprimer le formattage", "Modifier la couleur du fond ou du texte", "Refaire", "Défaire", "Gras", "Italique", "Liste non ordonnée", "Liste ordonnée", "Centrer", "Justifier", "Aligner à gauche ", "Aligner à droite", "Insérer une ligne horizontale", "Insérer une image", "Insérer un fichier", "Insérer une vidéo", "Insérer un lien", "Taille des caractères", "Famille des caractères", "Bloc formatté", "Normal", "Titre 1", "Titre 2", "Titre 3", "Titre 4", "Citation", "Code", "Insérer", "Insérer un tableau", "Diminuer le retrait", "Retrait plus", "Sélectionnez un caractère spécial", "Insérer un caractère spécial", "Cloner le format", "Mode wysiwyg <-> code html", "Marges", "haut", "droite", "Bas", "gauche", "Styles", "Classes", "Alignement", "Droite", "Centre", "Gauche", "--Non disponible--", "Source", "Titre", "Alternative", "Lien", "Ouvrir le lien dans un nouvel onglet", "Image", "fichier", "Avancé", "Propriétés de l'image", "Annuler", "OK", "Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?", "Coller en HTML?", "Sauvegarder l'original", "Nettoyer", "Coller en tant que texte", "Coller le texte seulement", "C'est peut-être un fragment de Word ou Excel", "Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?", "Explorateur de fichiers", "Erreur de liste de chargement", "Erreur de dossier de chargement", "Etes-vous sûrs ?", "Entrer le nom de dossier", "Créer un dossier", "type de fichier", "Coller une image", "Déposer un fichier", "ou cliquer", "Texte de remplacemement", "Chercher", "Charger", "Arrière-plan", "Texte", "Haut", "Milieu", "Bas", "Insérer une colonne avant", "Insérer une colonne après", "Insérer une ligne au dessus", "Insérer une ligne en dessous", "Supprimer le tableau", "Supprimer la ligne", "Supprimer la colonne", "Vider la cellule", "la source", "gras", "italique", "pinceau", "lien", "annuler", "refaire", "tableau", "image", "gomme", "clause", "taille de police", "Video", "police", "à propos de l'éditeur", "impression", "souligné", "barré", "indentation", "retrait", "taille réelle", "taille conventionnelle", "la ligne", "Liste", "Liste numérotée", "Couper", "Sélectionner tout", null, "Ouvrir le lien", "Modifier le lien", "Attribut Nofollow", "Supprimer le lien", "Voir", "Pour éditer", "Mettre à jour", "URL", null, "Alignement horizontal", "Filtre", "Trier par modification", "Trier par nom", "Trier par taille", "Créer le dossier", "Restaurer", "Sauvegarder", "Enregistrer sous", "Changer la taille", "Taille de garniture", "Largeur", "Hauteur", "Garder les proportions", "Oui", "Non", "Supprimer", "Mettre en évidence", "Symboles: %d", "Mots: %d", null, "Mettre en évidence: %s", "Tout sélectionner", "Alignement vertical", "Split", "Split vertical", "Split horizontal", "aller", "Ajouter une colonne", "Ajouter une rangée", "Effacer", "Bordure", null, "Barrer", "Souligner", "exposant", "indice", "Couper la sélection", "Pause", "Rechercher", "Remplacer par", "Remplacer", "Coller", "Choisissez le contenu à coller", "Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?", "L'image a été téléchargée avec succès sur le serveur!", "Palette", "Il n'y a aucun fichier dans ce répertoire.", "renommer", "Entrez un nouveau nom", "Aperçu", "Télécharger", "Coller à partir du presse-papiers", "Votre navigateur ne prend pas en charge l'accès direct au presse-papiers.", "Copier la sélection", "copie", "Rayon des bordures", "Afficher tous", "Appliquer", "Veuillez remplir ce champ", "Veuillez entrer une adresse web", "Par défaut", "Cercle", "Point", "Quadratique", "Trouver", "Précédent", "Suivant", "Insérer un nom de classe", "Appuyez sur Alt pour un redimensionnement personnalisé"];
  32. }, 40272: function(_) {
  33. _.exports.default = ["הקלד משהו...", "About Jodit", "Jodit Editor", null, "Jodit User's Guide", "contains detailed help for using.", "For information about the license, please go to our website:", "Buy full version", "Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.", "מקום עיגון", "פתח בכרטיסיה חדשה", "פתח את העורך בחלון חדש", "נקה עיצוב", "שנה צבע טקסט או רקע", "בצע שוב", "בטל", "מודגש", "נטוי", "הכנס רשימת תבליטים", "הכנס רשימה ממוספרת", "מרכז", "ישר ", "ישר לשמאל", "ישר לימין", "הכנס קו אופקי", "הכנס תמונה", "הכנס קובץ", "הכנס סרטון וידאו מYouTube/Vimeo", "הכנס קישור", "גודל גופן", "גופן", "מעוצב מראש", "רגיל", "כותרת 1", "כותרת 2", "כותרת 3", "כותרת 4", "ציטוט", "קוד", "הכנס", "הכנס טבלה", "הקטן כניסה", "הגדל כניסה", "בחר תו מיוחד", "הכנס תו מיוחד", "העתק עיצוב", "החלף מצב", "ריווח", "עליון", "ימין", "תחתון", "שמאל", "עיצוב CSS", "מחלקת CSS", "יישור", "ימין", "מרכז", "שמאל", "--לא נקבע--", "מקור", "כותרת", "כיתוב חלופי", "קישור", "פתח בכרטיסיה חדשה", "תמונה", "קובץ", "מתקדם", "מאפייני תמונה", "ביטול", "אישור", "הקוד דומה לHTML, האם להשאיר כHTML", "הדבק כHTML", "השאר", "נקה", "הכנס כטקסט", "הכנס טקסט בלבד", 'זוהתה הדבקה מ"וורד"', "התוכן המודבק מגיע ממסמך וורד/אקסל. האם ברצונך להשאיר את העיצוב או לנקותו", "סייר הקבצים", "שגיאה בזמן טעינת רשימה", "שגיאה בזמן טעינת תקיות", "האם אתה בטוח?", "הכנס שם תקיה", "צור תקיה", "סוג הקובץ", "הסר תמונה", "הסר קובץ", "או לחץ", "כיתוב חלופי", "סייר", "העלה", "רקע", "טקסט", "עליון", "מרכז", "תחתון", "הכנס עמודה לפני", "הכנס עמודה אחרי", "הכנס שורה מעל", "הכנס שורה מתחת", "מחק טבלה", "מחק שורה", "מחק עמודה", "רוקן תא", "HTML", "מודגש", "נטוי", "מברשת", "קישור", "בטל", "בצע שוב", "טבלה", "תמונה", "מחק", "פסקה", "גודל גופן", "וידאו", "גופן", "עלינו", "הדפס", "קו תחתון", "קו חוצה", "הגדל כניסה", "הקטן כניסה", "גודל מלא", "כווץ", "קו אופקי", "רשימת תבליטים", "רשימה ממוספרת", "חתוך", "בחר הכל", "הוסף קוד", "פתח קישור", "ערוך קישור", "ללא מעקב", "בטל קישור", "הצג", "כדי לערוך", "עדכן", "כתובת", "ערוך", "יישור אופקי", "סנן", "מין לפי שינוי", "מיין לפי שם", "מיין לפי גודל", "הוסף תקייה", "אפס", "שמור", "שמור בשם...", "שנה גודל", "חתוך", "רוחב", "גובה", "שמור יחס", "כן", "לא", "הסר", "בחר", "תווים: %d", "מילים: %d", "הכל", "נבחר: %s", "בחר הכל", "יישור אנכי", "פיצול", "פיצול אנכי", "פיצול אופקי", "מזג", "הוסף עמודה", "הוסף שורה", "מחק", "מסגרת", null, "קו חוצה", "קו תחתון", "superscript", "subscript", "גזור בחירה", "שבירת שורה", "חפש", "החלף ב", "להחליף", "הדבק", "בחר תוכן להדבקה", "רק קבצים המשוייכים שלך ניתנים לעריכה. האם להוריד את הקובץ?", "התמונה עלתה בהצלחה!", "לוח", "אין קבצים בספריה זו.", "הונגרית", "הזן שם חדש", "תצוגה מקדימה", "הורד", "להדביק מהלוח", "הדפדפן שלך לא תומך גישה ישירה ללוח.", "העתק בחירה", "העתק", "רדיוס הגבול", "הצג את כל", "החל", "נא למלא שדה זה", "אנא הזן כתובת אינטרנט", "ברירת המחדל", "מעגל", "נקודה", "הריבוע הזה", "למצוא", "מצא את הקודם", "חפש את הבא", "הכנס את שם הכיתה", "לחץ על אלט לשינוי גודל מותאם אישית"];
  34. }, 2978: function(_) {
  35. _.exports.default = ["Írjon be valamit", "Joditról", "Jodit Editor", "Ingyenes változat", "Jodit útmutató", "további segítséget tartalmaz", "További licence információkért látogassa meg a weboldalunkat:", "Teljes verzió megvásárlása", "Copyright © XDSoft.net - Chupurnov Valeriy. Minden jog fenntartva.", "Horgony", "Megnyitás új lapon", "Megnyitás teljes méretben", "Formázás törlése", "Háttér/szöveg szín", "Újra", "Visszavon", "Félkövér", "Dőlt", "Pontozott lista", "Számozott lista", "Középre zárt", "Sorkizárt", "Balra zárt", "Jobbra zárt", "Vízszintes vonal beszúrása", "Kép beszúrás", "Fájl beszúrás", "Youtube videó beszúrása", "Link beszúrás", "Betűméret", "Betűtípus", "Formázott blokk beszúrása", "Normál", "Fejléc 1", "Fejléc 2", "Fejléc 3", "Fejléc 4", "Idézet", "Kód", "Beszúr", "Táblázat beszúrása", "Behúzás csökkentése", "Behúzás növelése", "Speciális karakter kiválasztása", "Speciális karakter beszúrása", "Kép formázása", "Nézet váltása", "Szegélyek", "felső", "jobb", "alsó", "bal", "CSS stílusok", "CSS osztályok", "Igazítás", "Jobbra", "Középre", "Balra", "Nincs", "Forrás", "Cím", "Helyettesítő szöveg", "Link", "Link megnyitása új lapon", "Kép", "Fájl", "Haladó", "Kép tulajdonságai", "Mégsem", "OK", "A beillesztett szöveg HTML-nek tűnik. Megtartsuk HTML-ként?", "Beszúrás HTML-ként", "Megtartás", "Elvetés", "Beszúrás szövegként", "Csak szöveg beillesztése", "Word-ből másolt szöveg", "A beillesztett tartalom Microsoft Word/Excel dokumentumból származik. Meg szeretné tartani a formátumát?", "Fájl tallózó", "Hiba a lista betöltése közben", "Hiba a mappák betöltése közben", "Biztosan ezt szeretné?", "Írjon be egy mappanevet", "Mappa létrehozása", "írjon be bevet", "Húzza ide a képet", "Húzza ide a fájlt", "vagy kattintson", "Helyettesítő szöveg", "Tallóz", "Feltölt", "Háttér", "Szöveg", "Fent", "Középen", "Lent", "Oszlop beszúrás elé", "Oszlop beszúrás utána", "Sor beszúrás fölé", "Sor beszúrás alá", "Táblázat törlése", "Sor törlése", "Oszlop törlése", "Cella tartalmának törlése", "HTML", "Félkövér", "Dőlt", "Ecset", "Link", "Visszavon", "Újra", "Táblázat", "Kép", "Törlés", "Paragráfus", "Betűméret", "Videó", "Betű", "Rólunk", "Nyomtat", "Aláhúzott", "Áthúzott", "Behúzás", "Aussenseiter", "Teljes méret", "Összenyom", "Egyenes vonal", "Lista", "Számozott lista", "Kivág", "Összes kijelölése", "Beágyazott kód", "Link megnyitása", "Link szerkesztése", "Nincs követés", "Link leválasztása", "felülvizsgálat", "Szerkesztés", "Frissít", "URL", "Szerkeszt", "Vízszintes igazítás", "Szűrő", "Rendezés módosítás szerint", "Rendezés név szerint", "Rendezés méret szerint", "Mappa hozzáadás", "Visszaállít", "Mentés", "Mentés másként...", "Átméretezés", "Kivág", "Szélesség", "Magasság", "Képarány megtartása", "Igen", "Nem", "Eltávolít", "Kijelöl", "Karakterek száma: %d", "Szavak száma: %d", "Összes", "Kijelöl: %s", "Összes kijelölése", "Függőleges igazítás", "Felosztás", "Függőleges felosztás", "Vízszintes felosztás", "Összevonás", "Oszlop hozzáadás", "Sor hozzáadás", "Törlés", "Szegély", null, "Áthúzott", "Aláhúzott", "Felső index", "Alsó index", "Kivágás", "Szünet", "Keresés", "Csere erre", "Cserélje ki", "Beillesztés", "Válasszon tartalmat a beillesztéshez", "Csak a saját képeit tudja szerkeszteni. Letölti ezt a képet?", "Kép sikeresen feltöltve!", "Palette", "Er zijn geen bestanden in deze map.", "átnevezés", "Adja meg az új nevet", "előnézet", "Letöltés", "Illessze be a vágólap", "A böngésző nem támogatja a közvetlen hozzáférést biztosít a vágólapra.", "Másolás kiválasztása", "másolás", "Határ sugár", "Összes", "Alkalmazni", "Kérjük, töltse ki ezt a mezőt,", "Kérjük, írja be a webcímet", "Alapértelmezett", "Kör", "Pont", "Quadrate", "Találni", "Megtalálja Előző", "Következő Keresése", "Helyezze be az osztály nevét", "Nyomja meg az Alt egyéni átméretezés"];
  36. }, 99113: function(_) {
  37. _.exports.default = ["Ketik sesuatu", "Tentang Jodit", "Editor Jodit", "Versi Bebas Non-komersil", "Panduan Pengguna Jodit", "mencakup detail bantuan penggunaan", "Untuk informasi tentang lisensi, silakan kunjungi website:", "Beli versi lengkap", "Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.", "Tautan", "Buka di tab baru", "Buka editor dalam ukuran penuh", "Hapus Pemformatan", "Isi warna atau atur warna teks", "Ulangi", "Batalkan", "Tebal", "Miring", "Sisipkan Daftar Tidak Berurut", "Sisipkan Daftar Berurut", "Tengah", "Penuh", "Kiri", "Kanan", "Sisipkan Garis Horizontal", "Sisipkan Gambar", "Sisipkan Berkas", "Sisipkan video youtube/vimeo", "Sisipkan tautan", "Ukuran font", "Keluarga font", "Sisipkan blok format", "Normal", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Kutip", "Kode", "Sisipkan", "Sisipkan tabel", "Kurangi Indentasi", "Tambah Indentasi", "Pilih Karakter Spesial", "Sisipkan Karakter Spesial", "Formar warna", "Ubah mode", "Batas", "atas", "kanan", "bawah", "kiri", "Gaya", "Class", "Rata", "Kanan", "Tengah", "Kiri", "--Tidak diset--", "Src", "Judul", "Teks alternatif", "Tautan", "Buka tautan di tab baru", "Gambar", "berkas", "Lanjutan", "Properti gambar", "Batal", "Ya", "Kode Anda cenderung ke HTML. Biarkan sebagai HTML?", "Paste sebagai HTML", "Jaga", "Bersih", "Sisipkan sebagai teks", "Sisipkan hanya teks", "Terdeteksi paste dari Word", "Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?", "Penjelajah Berkas", "Error ketika memuat list", "Error ketika memuat folder", "Apakah Anda yakin?", "Masukkan nama Direktori", "Buat direktori", "ketik nama", "Letakkan gambar", "Letakkan berkas", "atau klik", "Teks alternatif", "Jelajahi", "Unggah", "Latar Belakang", "Teks", "Atas", "Tengah", "Bawah", "Sisipkan kolom sebelumnya", "Sisipkan kolom setelahnya", "Sisipkan baris di atasnya", "Sisipkan baris di bawahnya", "Hapus tabel", "Hapus baris", "Hapus kolom", "Kosongkan cell", "sumber", "tebal", "miring", "sikat", "tautan", "batalkan", "ulangi", "tabel", "gambar", "penghapus", "paragraf", "ukuran font", "video", "font", "tentang", "cetak", "garis bawah", "coret", "menjorok ke dalam", "menjorok ke luar", "ukuran penuh", "menyusut", "hr", "ul", "ol", "potong", "Pilih semua", "Kode embed", "Buka tautan", "Edit tautan", "No follow", "Hapus tautan", "Mata", "pensil", "Perbarui", "URL", "Edit", "Perataan horizontal", "Filter", "Urutkan berdasarkan perubahan", "Urutkan berdasarkan nama", "Urutkan berdasarkan ukuran", "Tambah folder", "Reset", "Simpan", "Simpan sebagai...", "Ubah ukuran", "Crop", "Lebar", "Tinggi", "Jaga aspek rasio", "Ya", "Tidak", "Copot", "Pilih", "Karakter: %d", "Kata: %d", "Semua", "Pilih %s", "Pilih semua", "Rata vertikal", "Bagi", "Bagi secara vertikal", "Bagi secara horizontal", "Gabungkan", "Tambah kolom", "tambah baris", "Hapus", "Bingkai", "Lisensi: %s", "Coret", "Garis Bawah", "Superskrip", "Subskrip", "Potong pilihan", "Berhenti", "Mencari", "Ganti dengan", "Mengganti", "Paste", "Pilih konten untuk dipaste", "Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?", "Gambar telah sukses diunggah ke host!", "palet", "Tidak ada berkas", "ganti nama", "Masukkan nama baru", "pratinjau", "Unduh", "Paste dari clipboard", "Browser anda tidak mendukung akses langsung ke clipboard.", "Copy seleksi", "copy", "Border radius", "Tampilkan semua", "Menerapkan", "Silahkan mengisi kolom ini", "Silahkan masukkan alamat web", "Default", "Lingkaran", "Dot", "Kuadrat", "Menemukan", "Menemukan Sebelumnya", "Menemukan Berikutnya", "Masukkan nama kelas", "Tekan Alt untuk mengubah ukuran kustom"];
  38. }, 51923: function(_) {
  39. _.exports.default = ["Scrivi qualcosa...", "A proposito di Jodit", "Jodit Editor", null, "Guida utente di Jodit", "contiene una guida dettagliata per l'uso.", "Per informazioni sulla licenza, si prega di visitare il nostro sito:", "Acquista la versione completa", "Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.", "Ancora", "Apri in una nuova scheda", "Apri l'editor a schermo intero", "Formato chiaro", "Riempi colore o lettera", "Ripristina", "Annulla", "Grassetto", "Corsivo", "Inserisci lista non ordinata", "Inserisci l'elenco ordinato", "Allinea Centra", "Allineare Giustificato", "Allinea a Sinistra", "Allinea a Destra", "Inserisci la linea orizzontale", "Inserisci immagine", "Inserisci un file", "Inserisci video Youtube/Vimeo", "Inserisci il link", "Dimensione del carattere", "Tipo di font", "Inserisci blocco", "Normale", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Citazione", "Codice", "Inserisci", "Inserisci tabella", "Riduci il rientro", "Aumenta il rientro", "Seleziona una funzione speciale", "Inserisci un carattere speciale", "Copia formato", "Cambia modo", "Margini", "su", "destra", "giù", "sinistra", "Stili CSS", "Classi CSS", "Allinea", "Destra", "Centro", "Sinistra", "--Non Impostato--", "Fonte", "Titolo", "Testo Alternativo", "Link", "Apri il link in una nuova scheda", "Immagine", "Archivio", "Avanzato", "Proprietà dell'immagine", "Annulla", "Accetta", "Il codice è simile all'HTML. Mantieni come HTML?", "Incolla come HTML?", "Mantieni", "Pulisci", "Inserisci come testo", "Inserisci solo il testo", "Incollato da Word rilevato", "Il contenuto incollato proviene da un documento Microsoft Word / Excel. Vuoi mantenere il formato o pulirlo?", "Cerca il file", "Errore durante il caricamento dell'elenco", "Errore durante il caricamento delle cartelle", "Sei sicuro?", "Inserisci il nome della cartella", "Crea cartella", "Entre el nombre", "Rilascia l'immagine", "Rilascia file", "o click", "Testo alternativo", "Sfoglia", "Carica", "Sfondo", "Testo", "Su", "Centro", "Sotto", "Inserisci prima la colonna", "Inserisci colonna dopo", "Inserisci la riga sopra", "Inserisci la riga sotto", "Elimina tabella", "Elimina riga", "Elimina colonna", "Cella vuota", "HTML", "Grassetto", "Corsivo", "Pennello", "Link", "Annulla", "Ripristina", "Tabella", "Immagine", "Gomma", "Paragrafo", "Dimensione del carattere", "Video", "Font", "Approposito di", "Stampa", "Sottolineato", "Barrato", "trattino", "annulla rientro", "A grandezza normale", "comprimere", "linea orizzontale", "lista non ordinata", "lista ordinata", "Taglia", "Seleziona tutto", "Includi codice", "Apri link", "Modifica link", "Non seguire", "Togli link", "Recensione", "Per modificare", "Aggiornare", " URL", "Modifica", "Allineamento orizzontale", "Filtro", "Ordina per data di modifica", "Ordina per nome", "Ordina per dimensione", "Aggiungi cartella", "Reset", "Salva", "Salva con nome...", "Ridimensiona", "Tagliare", "Larghezza", "Altezza", "Mantenere le proporzioni", "Si", "No", "Rimuovere", "Seleziona", "Caratteri: %d", "Parole: %d", "Tutto", "Seleziona: %s", "Seleziona tutto", "Allineamento verticala", "Dividere", "Dividere verticalmente", "Diviso orizzontale", "Fondi", "Aggiungi colonna", "Aggiungi riga", "Cancella", "Bordo", null, "Barrato", "Sottolineato", "indice", "deponente", "Taglia la selezione", "Pausa", "Cerca", "Sostituisci con", "Sostituire", "Incolla", "Seleziona il contenuto da incollare", "Puoi modificare solo le tue immagini. Scarica questa immagine sul server?", "L'immagine è stata caricata con successo sul server!", "tavolozza", "Non ci sono file in questa directory.", "ungherese", "Inserisci un nuovo nome", "anteprima", "Scaricare", "Incolla dagli appunti", "Il tuo browser non supporta l'accesso diretto agli appunti.", "Selezione di copia", "copia", "Border radius", "Mostra tutti", "Applicare", "Si prega di compilare questo campo", "Si prega di inserire un indirizzo web", "Di Default", "Cerchio", "Dot", "Quadrate", "Trovare", "Trova Precedente", "Trova Successivo", "Inserisci il nome della classe", "Premere Alt per il ridimensionamento personalizzato"];
  40. }, 21268: function(_) {
  41. _.exports.default = ["なにかタイプしてください", "Joditについて", "Jodit Editor", null, "Jodit ユーザーズ・ガイド", "詳しい使い方", "ライセンス詳細についてはJodit Webサイトを確認ください:", "フルバージョンを購入", "Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.", "Anchor", "新しいタブで開く", "エディターのサイズ(フル/ノーマル)", "書式をクリア", "テキストの色", "やり直し", "元に戻す", "太字", "斜体", "箇条書き", "番号付きリスト", "中央揃え", "両端揃え", "左揃え", "右揃え", "区切り線を挿入", "画像を挿入", "ファイルを挿入", "Youtube/Vimeo 動画", "リンクを挿入", "フォントサイズ", "フォント", "テキストのスタイル", "指定なし", "タイトル1", "タイトル2", "タイトル3", "タイトル4", "引用", "コード", "挿入", "表を挿入", "インデント減", "インデント増", "特殊文字を選択", "特殊文字を挿入", "書式を貼付け", "編集モード切替え", "マージン", "上", "右", "下", "左", "スタイル", "クラス", "配置", "右寄せ", "中央寄せ", "左寄せ", "指定なし", "ソース", "タイトル", "代替テキスト", "リンク", "新しいタブで開く", "画像", "ファイル", "高度な設定", "画像のプロパティー", "キャンセル", "確定", "HTMLコードを保持しますか?", "HTMLで貼付け", "HTMLを保持", "Clean", "HTMLをテキストにする", "テキストだけ", "Word Paste Detected", "The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?", "File Browser", "Error on load list", "Error on load folders", "Are you sure?", "Enter Directory name", "Create directory", "type name", "ここに画像をドロップ", "ここにファイルをドロップ", "or クリック", "代替テキスト", "ブラウズ", "アップロード", "背景", "文字", "上", "中央", "下", "左に列を挿入", "右に列を挿入", "上に行を挿入", "下に行を挿入", "表を削除", "行を削除", "列を削除", "セルを空にする", "source", "bold", "italic", "brush", "link", "undo", "redo", "table", "image", "eraser", "paragraph", "fontsize", "video", "font", "about", "print", "underline", "strikethrough", "indent", "outdent", "fullsize", "shrink", "分割線", "箇条書き", "番号付きリスト", "切り取り", "すべて選択", "埋め込みコード", "リンクを開く", "リンクを編集", "No follow", "リンク解除", "サイトを確認", "鉛筆", "更新", "URL", "編集", "水平方向の配置", "Filter", "Sort by changed", "Sort by name", "Sort by size", "Add folder", "リセット", "保存", "Save as ...", "リサイズ", "Crop", "幅", "高さ", "縦横比を保持", "はい", "いいえ", "移除", "選択", "文字数: %d", "単語数: %d", "全部", "選択: %s", "すべて選択", "垂直方向の配置", "分割", "セルの分割(垂直方向)", "セルの分割(水平方向)", "セルの結合", "列を追加", "行を追加", "削除", "境界線", null, "取り消し線", "下線", "上付き文字", "下付き文字", "切り取り", "Pause", "検索", "置換", "交換", "貼付け", "選択した内容を貼付け", "You can only edit your own images. Download this image on the host?", "The image has been successfully uploaded to the host!", "パレット", "There are no files", "Rename", "Enter new name", "プレビュー", "ダウンロード", "貼り付け", "お使いのブラウザはクリップボードを使用できません", "コピー", "copy", "角の丸み", "全て表示", "適用", "まだこの分野", "を入力してくださいウェブアドレス", "デフォルト", "白丸", "黒丸", "四角", "見", "探前", "由来", "クラス名を挿入", "カスタムサイズ変更のためのAltキーを押します"];
  42. }, 11399: function(_) {
  43. _.exports.default = ["Type something", "About Jodit", "Jodit Editor", "Free Non-commercial Version", "Jodit User's Guide", "contains detailed help for using", "For information about the license, please go to our website:", "Buy full version", "Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.", "Anchor", "Open in new tab", "Open in fullsize", "Clear Formatting", "Fill color or set the text color", "Redo", "Undo", "Bold", "Italic", "Insert Unordered List", "Insert Ordered List", "Align Center", "Align Justify", "Align Left", "Align Right", "Insert Horizontal Line", "Insert Image", "Insert file", "Insert youtube/vimeo video", "Insert link", "Font size", "Font family", "Insert format block", "Normal", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Quote", "Code", "Insert", "Insert table", "Decrease Indent", "Increase Indent", "Select Special Character", "Insert Special Character", "Paint format", "Change mode", "Margins", "top", "right", "bottom", "left", "Styles", "Classes", "Align", "Right", "Center", "Left", "--Not Set--", "Src", "Title", "Alternative", "Link", "Open link in new tab", "Image", "file", "Advanced", "Image properties", "Cancel", "Ok", "Your code is similar to HTML. Keep as HTML?", "Paste as HTML", "Keep", "Clean", "Insert as Text", "Insert only Text", "Word Paste Detected", "The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?", "File Browser", "Error on load list", "Error on load folders", "Are you sure?", "Enter Directory name", "Create directory", "type name", "Drop image", "Drop file", "or click", "Alternative text", "Browse", "Upload", "Background", "Text", "Top", "Middle", "Bottom", "Insert column before", "Insert column after", "Insert row above", "Insert row below", "Delete table", "Delete row", "Delete column", "Empty cell", "source", "bold", "italic", "brush", "link", "undo", "redo", "table", "image", "eraser", "paragraph", "fontsize", "video", "font", "about", "print", "underline", "strikethrough", "indent", "outdent", "fullsize", "shrink", "hr", "ul", "ol", "cut", "selectall", "Embed code", "Open link", "Edit link", "No follow", "Unlink", "Eye", "pencil", "Update", " URL", "Edit", "Horizontal align", "Filter", "Sort by changed", "Sort by name", "Sort by size", "Add folder", "Reset", "Save", "Save as ...", "Resize", "Crop", "Width", "Height", "Keep Aspect Ratio", "Yes", "No", "Remove", "Select", "Chars: %d", "Words: %d", "All", "Select %s", "Select all", "Vertical align", "Split", "Split vertical", "Split horizontal", "Merge", "Add column", "Add row", "Delete", "Border", "License: %s", "Strike through", "Underline", "superscript", "subscript", "Cut selection", "Break", "Search for", "Replace with", "Replace", "Paste", "Choose Content to Paste", "You can only edit your own images. Download this image on the host?", "The image has been successfully uploaded to the host!", "palette", "There are no files", "Rename", "Enter new name", "preview", "download", "Paste from clipboard", "Your browser doesn't support direct access to the clipboard.", "Copy selection", "copy", "Border radius", "Show all", "Apply", "Please fill out this field", "Please enter a web address", "Default", "Circle", "Dot", "Quadrate", "Find", "Find Previous", "Find Next", "Insert className", "Press Alt for custom resizing"];
  44. }, 37289: function(_) {
  45. _.exports.default = ["무엇이든 입력하세요", "Jodit에 대하여", "Jodit Editor", null, "Jodit 사용자 안내서", "자세한 도움말이 들어있어요", "라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:", "풀 버전 구입하기", "© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.", "Anchor", "새 탭에서 열기", "전체 크기로 보기", "서식 지우기", "글씨 색상", "재실행", "실행 취소", "굵게", "기울임", "글머리 목록", "번호 목록", "가운데 정렬", "양쪽 정렬", "왼쪽 정렬", "오른쪽 정렬", "수평 구분선 넣기", "이미지 넣기", "파일 넣기", "Youtube/Vimeo 동영상", "링크 넣기", "글꼴 크기", "글꼴", "블록 요소 넣기", "일반 텍스트", "제목 1", "제목 2", "제목 3", "제목 4", "인용", "코드", "붙여 넣기", "테이블", "들여쓰기 감소", "들여쓰기 증가", "특수문자 선택", "특수문자 입력", "페인트 형식", "편집모드 변경", "마진", "위", "오른쪽", "아래", "왼쪽", "스타일", "클래스", "정렬", "오른쪽으로", "가운데로", "왼쪽으로", "--지정 안 함--", "경로(src)", "제목", "대체 텍스트(alt)", "링크", "새 탭에서 열기", null, "파일", "고급", "이미지 속성", "취소", "확인", "HTML 코드로 감지했어요. 코드인채로 붙여넣을까요?", "HTML로 붙여넣기", "원본 유지", "지우기", "텍스트로 넣기", "텍스트만 넣기", "Word 붙여넣기 감지", "Microsoft Word/Excel 문서로 감지했어요. 서식을 유지한채로 붙여넣을까요?", "파일 탐색기", "목록 불러오기 에러", "폴더 불러오기", "정말 진행할까요?", "디렉토리 이름 입력", "디렉토리 생성", "이름 입력", "이미지 드래그", "파일 드래그", "혹은 클릭", "대체 텍스트", "탐색", "업로드", "배경", "텍스트", "위", "중앙", "아래", "이전 열에 삽입", "다음 열에 삽입", "위 행에 삽입", "아래 행에 삽입", "테이블 삭제", "행 삭제", "열 삭제", "빈 셀", "HTML 소스", "볼드", "이탤릭", "브러시", "링크", "실행 취소", "재실행", "테이블", "이미지", "지우개", "문단", "글꼴 크기", "비디오", "글꼴", "편집기 정보", "프린트", "밑줄", "취소선", "들여쓰기", "내어쓰기", "전체 화면", "일반 화면", "구분선", "글머리 목록", "번호 목록", "잘라내기", "모두 선택", "Embed 코드", "링크 열기", "링크 편집", "No follow", "링크 제거", "사이트 확인", "연필", "갱신", "URL", "편집", "수평 정렬", "필터", "변경일 정렬", "이름 정렬", "크기 정렬", "새 폴더", "초기화", "저장", "새로 저장하기 ...", "리사이즈", "크롭", "가로 길이", "세로 높이", "비율 유지하기", "네", "아니오", "제거", "선택", "문자수: %d", "단어수: %d", "모두", "선택: %s", "모두 선택", "수직 정렬", "분할", "세로 셀 분할", "가로 셀 분할", "셀 병합", "열 추가", "행 추가", "삭제", "외곽선", "라이센스: %s", "취소선", "밑줄", "윗첨자", "아래첨자", "선택 잘라내기", "구분자", "검색", "대체하기", "대체", "붙여넣기", "붙여넣을 내용 선택", "외부 이미지는 편집할 수 없어요. 외부 이미지를 다운로드 할까요?", "이미지를 무사히 업로드 했어요!", "팔레트", "파일이 없어요", "이름 변경", "새 이름 입력", "미리보기", "다운로드", "클립보드 붙여넣기", "사용중인 브라우저가 클립보드 접근을 지원하지 않아요.", "선택 복사", "복사", "둥근 테두리", "모두 보기", "적용", "이 항목을 입력해주세요!", "웹 URL을 입력해주세요.", "기본", "원", "점", "정사각형", "찾기", "이전 찾기", "다음 찾기", "className 입력", "사용자 지정 크기 조정에 대 한 고도 누르십시오"];
  46. }, 17084: function(_) {
  47. _.exports.default = ["Begin met typen..", "Over Jodit", "Jodit Editor", "Gratis niet-commerciële versie", "Jodit gebruikershandleiding", "bevat gedetailleerde informatie voor gebruik.", "Voor informatie over de licentie, ga naar onze website:", "Volledige versie kopen", "Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.", "Anker", "Open in nieuwe tab", "Editor in volledig scherm openen", "Opmaak verwijderen", "Vulkleur of tekstkleur aanpassen", "Opnieuw", "Ongedaan maken", "Vet", "Cursief", "Geordende list invoegen", "Ongeordende lijst invoegen", "Centreren", "Uitlijnen op volledige breedte", "Links uitlijnen", "Rechts uitlijnen", "Horizontale lijn invoegen", "Afbeelding invoegen", "Bestand invoegen", "Youtube/Vimeo video invoegen", "Link toevoegen", "Tekstgrootte", "Lettertype", "Format blok invoegen", "Normaal", "Koptekst 1", "Koptekst 2", "Koptekst 3", "Koptekst 4", "Citaat", "Code", "Invoegen", "Tabel invoegen", "Inspringing verkleinen", "Inspringing vergroten", "Symbool selecteren", "Symbool invoegen", "Opmaak kopieren", "Modus veranderen", "Marges", "Boven", "Rechts", "Onder", "Links", "CSS styles", "CSS classes", "Uitlijning", "Rechts", "Gecentreerd", "Links", "--Leeg--", "Src", "Titel", "Alternatieve tekst", "Link", "Link in nieuwe tab openen", "Afbeelding", "Bestand", "Geavanceerd", "Afbeeldingseigenschappen", "Annuleren", "OK", "Deze code lijkt op HTML. Als HTML behouden?", "Invoegen als HTML", "Origineel behouden", "Opschonen", "Als tekst invoegen", "Als onopgemaakte tekst invoegen", "Word-tekst gedetecteerd", "De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?", "Bestandsbrowser", "Fout bij het laden van de lijst", "Fout bij het laden van de mappenlijst", "Weet je het zeker?", "Geef de map een naam", "Map aanmaken", "Type naam", "Sleep hier een afbeelding naartoe", "Sleep hier een bestand naartoe", "of klik", "Alternatieve tekst", "Bladeren", "Uploaden", "Achtergrond", "Tekst", "Boven", "Midden", "Onder", "Kolom invoegen (voor)", "Kolom invoegen (na)", "Rij invoegen (boven)", "Rij invoegen (onder)", "Tabel verwijderen", "Rij verwijderen", "Kolom verwijderen", "Cel leegmaken", "Broncode", "vet", "cursief", "kwast", "link", "ongedaan maken", "opnieuw", "tabel", "afbeelding", "gum", "paragraaf", "lettergrootte", "video", "lettertype", "over", "afdrukken", "onderstreept", "doorgestreept", "inspringen", "minder inspringen", "volledige grootte", "kleiner maken", "horizontale lijn", "lijst", "genummerde lijst", "knip", "alles selecteren", "Embed code", "link openen", "link aanpassen", "niet volgen", "link verwijderen", "Recensie", "Om te bewerken", "Updaten", " URL", "Bewerken", "Horizontaal uitlijnen", "Filteren", "Sorteren op wijzigingsdatum", "Sorteren op naam", "Sorteren op grootte", "Map toevoegen", "Herstellen", "Opslaan", "Opslaan als ...", "Grootte aanpassen", "Bijknippen", "Breedte", "Hoogte", "Verhouding behouden", "Ja", "Nee", "Verwijderen", "Selecteren", "Tekens: %d", "Woorden: %d", "Alles", "Selecteer: %s", "Selecteer alles", "Verticaal uitlijnen", "Splitsen", "Verticaal splitsen", "Horizontaal splitsen", "Samenvoegen", "Kolom toevoegen", "Rij toevoegen", "Verwijderen", "Rand", null, "Doorstrepen", "Onderstrepen", "Superscript", "Subscript", "Selectie knippen", "Enter", "Zoek naar", "Vervangen door", "Vervangen", "Plakken", "Kies content om te plakken", "Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?", "De afbeelding is succesvol geüploadet!", "Palette", "Er zijn geen bestanden in deze map.", "Hongaars", "Voer een nieuwe naam in", "voorvertoning", "Download", "Plakken van klembord", "Uw browser ondersteunt geen directe toegang tot het klembord.", "Selectie kopiëren", "kopiëren", "Border radius", "Toon alle", "Toepassing", "Vul dit veld", "Voer een webadres", "Standaard", "Cirkel", "Dot", "Quadrate", "Zoeken", "Vorige Zoeken", "Volgende Zoeken", "Voeg de klassenaam in", "Druk op Alt voor aangepaste grootte"];
  48. }, 96891: function(_) {
  49. _.exports.default = ["Napisz coś", "O Jodit", "Edytor Jodit", null, "Instrukcja Jodit", "zawiera szczegółowe informacje dotyczące użytkowania.", "Odwiedź naszą stronę, aby uzyskać więcej informacji na temat licencji:", "Zakup pełnej wersji", "Copyright © XDSoft.net - Chupurnov Valeriy. Wszystkie prawa zastrzeżone.", "Kotwica", "Otwórz w nowej zakładce", "Otwórz edytor w pełnym rozmiarze", "Wyczyść formatowanie", "Kolor wypełnienia lub ustaw kolor tekstu", "Ponów", "Cofnij", "Pogrubienie", "Kursywa", "Wstaw listę wypunktowaną", "Wstaw listę numeryczną", "Wyśrodkuj", "Wyjustuj", "Wyrównaj do lewej", "Wyrównaj do prawej", "Wstaw linię poziomą", "Wstaw grafikę", "Wstaw plik", "Wstaw film Youtube/vimeo", "Wstaw link", "Rozmiar tekstu", "Krój czcionki", "Wstaw formatowanie", "Normalne", "Nagłówek 1", "Nagłówek 2", "Nagłówek 3", "Nagłówek 4", "Cytat", "Kod", "Wstaw", "Wstaw tabelę", "Zmniejsz wcięcie", "Zwiększ wcięcie", "Wybierz znak specjalny", "Wstaw znak specjalny", "Malarz formatów", "Zmień tryb", "Marginesy", "Górny", "Prawy", "Dolny", "Levy", "Style CSS", "Klasy CSS", "Wyrównanie", "Prawa", "środek", "Lewa", "brak", "Źródło", "Tytuł", "Tekst alternatywny", "Link", "Otwórz w nowej zakładce", "Grafika", "Plik", "Zaawansowane", "Właściwości grafiki", "Anuluj", "OK", "Twój kod wygląda jak HTML. Zachować HTML?", "Wkleić jako HTML?", "Oryginalny tekst", "Wyczyść", "Wstaw jako tekst", "Wstaw tylko treść", "Wykryto tekst w formacie Word", "Wklejany tekst pochodzi z dokumentu Microsoft Word/Excel. Chcesz zachować ten format czy wyczyścić go? ", "Przeglądarka plików", "Błąd ładowania listy plików", "Błąd ładowania folderów", "Czy jesteś pewien?", "Wprowadź nazwę folderu", "Utwórz folder", "wprowadź nazwę", "Upuść plik graficzny", "Upuść plik", "lub kliknij tu", "Tekst alternatywny", "Przeglądaj", "Wczytaj", "Tło", "Treść", "Góra", "Środek", "Dół", "Wstaw kolumnę przed", "Wstaw kolumnę po", "Wstaw wiersz przed", "Wstaw wiersz po", "Usuń tabelę", "Usuń wiersz", "Usuń kolumnę", "Wyczyść komórkę", "HTML", "pogrubienie", "kursywa", "pędzel", "link", "cofnij", "ponów", "tabela", "grafika", "wyczyść", "akapit", "rozmiar czcionki", "wideo", "czcionka", "O programie", "drukuj", "podkreślenie", "przekreślenie", "wcięcie", "wycięcie", "pełen rozmiar", "przytnij", "linia pozioma", "lista", "lista numerowana", "wytnij", "zaznacz wszystko", "Wstaw kod", "otwórz link", "edytuj link", "Atrybut no-follow", "Usuń link", "szukaj", "edytuj", "Aktualizuj", "URL", "Edytuj", "Wyrównywanie w poziomie", "Filtruj", "Sortuj wg zmiany", "Sortuj wg nazwy", "Sortuj wg rozmiaru", "Dodaj folder", "wyczyść", "zapisz", "zapisz jako", "Zmień rozmiar", "Przytnij", "Szerokość", "Wysokość", "Zachowaj proporcje", "Tak", "Nie", "Usuń", "Wybierz", "Znaki: %d", "Słowa: %d", "Wszystko", "Wybierz: %s", "Wybierz wszystko", "Wyrównywanie w pionie", "Podziel", "Podziel w pionie", "Podziel w poziomie", "Scal", "Dodaj kolumnę", "Dodaj wiersz", "Usuń", "Obramowanie", null, "Przekreślenie", "Podkreślenie", "indeks górny", "index dolny", "Wytnij zaznaczenie", "Przerwa", "Szukaj", "Zamień na", "Wymienić", "Wklej", "Wybierz zawartość do wklejenia", "Możesz edytować tylko swoje grafiki. Czy chcesz pobrać tą grafikę?", "Grafika została pomyślnienie dodana na serwer", "Paleta", "Brak plików.", "zmień nazwę", "Wprowadź nową nazwę", "podgląd", "pobierz", "Wklej ze schowka", "Twoja przeglądarka nie obsługuje schowka", "Kopiuj zaznaczenie", "kopiuj", "Zaokrąglenie krawędzi", "Pokaż wszystkie", "Zastosuj", "Proszę wypełnić to pole", "Proszę, wpisz adres sieci web", "Domyślnie", "Koło", "Punkt", "Kwadrat", "Znaleźć", "Znaleźć Poprzednie", "Znajdź Dalej", "Wstaw nazwę zajęć", "Naciśnij Alt, aby zmienić rozmiar"];
  50. }, 31211: function(_) {
  51. _.exports.default = ["Escreva algo...", "Sobre o Jodit", "Editor Jodit", null, "Guia de usuário Jodit", "contém ajuda detalhada para o uso.", "Para informação sobre a licença, por favor visite nosso site:", "Compre a versão completa", "Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.", "Link", "Abrir em nova aba", "Abrir editor em tela cheia", "Limpar formatação", "Cor de preenchimento ou cor do texto", "Refazer", "Desfazer", "Negrito", "Itálico", "Inserir lista não ordenada", "Inserir lista ordenada", "Centralizar", "Justificar", "Alinhar à Esquerda", "Alinhar à Direita", "Inserir linha horizontal", "Inserir imagem", "Inserir arquivo", "Inserir vídeo do Youtube/vimeo", "Inserir link", "Tamanho da letra", "Fonte", "Inserir bloco", "Normal", "Cabeçalho 1", "Cabeçalho 2", "Cabeçalho 3", "Cabeçalho 4", "Citação", "Código", "Inserir", "Inserir tabela", "Diminuir recuo", "Aumentar recuo", "Selecionar caractere especial", "Inserir caractere especial", "Copiar formato", "Mudar modo", "Margens", "cima", "direta", "baixo", "esquerda", "Estilos CSS", "Classes CSS", "Alinhamento", "Direita", "Centro", "Esquerda", "--Não Estabelecido--", "Fonte", "Título", "Texto Alternativo", "Link", "Abrir link em nova aba", "Imagem", "Arquivo", "Avançado", "Propriedades da imagem", "Cancelar", "Ok", "Seu código é similar ao HTML. Manter como HTML?", "Colar como HTML?", "Manter", "Limpar", "Inserir como Texto", "Inserir somente o Texto", "Colado do Word Detectado", "O conteúdo colado veio de um documento Microsoft Word/Excel. Você deseja manter o formato ou limpa-lo?", "Procurar arquivo", "Erro ao carregar a lista", "Erro ao carregar as pastas", "Você tem certeza?", "Escreva o nome da pasta", "Criar pasta", "Escreva seu nome", "Soltar imagem", "Soltar arquivo", "ou clique", "Texto alternativo", "Explorar", "Upload", "Fundo", "Texto", "Cima", "Meio", "Baixo", "Inserir coluna antes", "Inserir coluna depois", "Inserir linha acima", "Inserir linha abaixo", "Excluir tabela", "Excluir linha", "Excluir coluna", "Limpar célula", "HTML", "negrito", "itálico", "pincel", "link", "desfazer", "refazer", "tabela", "imagem", "apagar", "parágrafo", "tamanho da letra", "vídeo", "fonte", "Sobre de", "Imprimir", "sublinhar", "tachado", "recuar", "diminuir recuo", "Tamanho completo", "diminuir", "linha horizontal", "lista não ordenada", "lista ordenada", "Cortar", "Selecionar tudo", "Incluir código", "Abrir link", "Editar link", "Não siga", "Remover link", "Visualizar", "Editar", "Atualizar", "URL", "Editar", "Alinhamento horizontal", "filtrar", "Ordenar por modificação", "Ordenar por nome", "Ordenar por tamanho", "Adicionar pasta", "Resetar", "Salvar", "Salvar como...", "Redimensionar", "Recortar", "Largura", "Altura", "Manter a proporção", "Sim", "Não", "Remover", "Selecionar", "Caracteres: %d", "Palavras: %d", "Tudo", "Selecionar: %s", "Selecionar tudo", "Alinhamento vertical", "Dividir", "Dividir vertical", "Dividir horizontal", "Mesclar", "Adicionar coluna", "Adicionar linha", "Excluir", "Borda", null, "Tachado", "Sublinhar", "sobrescrito", "subscrito", "Cortar seleção", "Pausa", "Procurar por", "Substituir com", "Substituir", "Colar", "Escolher conteúdo para colar", "Você só pode editar suas próprias imagens. Baixar essa imagem pro servidor?", "A imagem foi enviada com sucesso para o servidor!", "Palette", "Não há arquivos nesse diretório.", "Húngara", "Digite um novo nome", "preview", "Baixar", "Colar da área de transferência", "O seu navegador não oferece suporte a acesso direto para a área de transferência.", "Selecção de cópia", "cópia", "Border radius", "Mostrar todos os", "Aplicar", "Por favor, preencha este campo", "Por favor introduza um endereço web", "Padrão", "Círculo", "Ponto", "Quadro", "Encontrar", "Encontrar Anteriores", "Localizar Próxima", "Insira o nome da classe", "Pressione Alt para redimensionamento personalizado"];
  52. }, 31109: function(_) {
  53. _.exports.default = ["Напишите что-либо", "О Jodit", "Редактор Jodit", null, "Jodit Руководство пользователя", "содержит детальную информацию по использованию", "Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:", "Купить полную версию", "Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.", "Анкор", "Открывать ссылку в новой вкладке", "Открыть редактор в полном размере", "Очистить форматирование", "Цвет заливки или цвет текста", "Повтор", "Отмена", "Жирный", "Наклонный", "Вставка маркированного списка", "Вставить нумерованный список", "Выровнять по центру", "Выровнять по ширине", "Выровнять по левому краю", "Выровнять по правому краю", "Вставить горизонтальную линию", "Вставить изображение", "Вставить файл", "Вставьте видео", "Вставить ссылку", "Размер шрифта", "Шрифт", "Вставить блочный элемент", "Нормальный текст", "Заголовок 1", "Заголовок 2", "Заголовок 3", "Заголовок 4", "Цитата", "Код", "Вставить", "Вставить таблицу", "Уменьшить отступ", "Увеличить отступ", "Выберите специальный символ", "Вставить специальный символ", "Формат краски", "Источник", "Отступы", "сверху", "справа", "снизу", "слева", "Стили", "Классы", "Выравнивание", "По правому краю", "По центру", "По левому краю", "--не устанавливать--", "src", "Заголовок", "Альтернативный текст (alt)", "Ссылка", "Открывать ссылку в новом окне", null, "Файл", "Расширенные", "Свойства изображения", "Отмена", "Ок", "Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?", "Вставить как HTML?", "Сохранить оригинал", "Почистить", "Вставить как текст", "Вставить только текст", "Возможно это фрагмент Word или Excel", "Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?", "Браузер файлов", "Ошибка при загрузке списка изображений", "Ошибка при загрузке списка директорий", "Вы уверены?", "Введите название директории", "Создать директорию", "введите название", "Перетащите сюда изображение", "Перетащите сюда файл", "или нажмите", "Альтернативный текст", "Сервер", "Загрузка", "Фон", "Текст", " К верху", "По середине", "К низу", "Вставить столбец до", "Вставить столбец после", "Вставить ряд выше", "Вставить ряд ниже", "Удалить таблицу", "Удалять ряд", "Удалить столбец", "Очистить ячейку", "HTML", "жирный", "курсив", "заливка", "ссылка", "отменить", "повторить", "таблица", "Изображение", "очистить", "параграф", "размер шрифта", "видео", "шрифт", "о редакторе", "печать", "подчеркнутый", "перечеркнутый", "отступ", "выступ", "во весь экран", "обычный размер", "линия", "Список", "Нумерованный список", "Вырезать", "Выделить все", "Код", "Открыть ссылку", "Редактировать ссылку", "Атрибут nofollow", "Убрать ссылку", "Просмотр", "Редактировать", "Обновить", "URL", "Редактировать", "Горизонтальное выравнивание", "Фильтр", "По изменению", "По имени", "По размеру", "Добавить папку", "Восстановить", "Сохранить", "Сохранить как", "Изменить размер", "Обрезать размер", "Ширина", "Высота", "Сохранять пропорции", "Да", "Нет", "Удалить", "Выделить", "Символов: %d", "Слов: %d", "Выделить все", "Выделить: %s", "Выделить все", "Вертикальное выравнивание", "Разделить", "Разделить по вертикали", "Разделить по горизонтали", "Объединить в одну", "Добавить столбец", "Добавить строку", "Удалить", "Рамка", "Лицензия: %s", "Перечеркнуть", "Подчеркивание", "верхний индекс", "индекс", "Вырезать", "Разделитель", "Найти", "Заменить на", "Заменить", "Вставить", "Выбрать контент для вставки", "Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?", "Изображение успешно загружено на сервер!", "палитра", "В данном каталоге нет файлов", "Переименовать", "Введите новое имя", "Предпросмотр", "Скачать", "Вставить из буфера обмена", "Ваш браузер не поддерживает прямой доступ к буферу обмена.", "Скопировать выделенное", "копия", "Радиус границы", "Показать все", "Применить", "Пожалуйста, заполните это поле", "Пожалуйста, введите веб-адрес", "По умолчанию", "Круг", "Точка", "Квадрат", "Найти", "Найти Предыдущие", "Найти Далее", "Вставить название класса", "Нажмите Alt для изменения пользовательского размера"];
  54. }, 79375: function(_) {
  55. _.exports.default = ["Bir şeyler yaz", "Jodit Hakkında", "Jodit Editor", null, "Jodit Kullanım Kılavuzu", "kullanım için detaylı bilgiler içerir", "Lisans hakkında bilgi için lütfen web sitemize gidin:", "Tam versiyonunu satın al", "Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.", "Bağlantı", "Yeni sekmede aç", "Editörü tam ekranda aç", "Stili temizle", "Renk doldur veya yazı rengi seç", "Yinele", "Geri Al", "Kalın", "İtalik", "Sırasız Liste Ekle", "Sıralı Liste Ekle", "Ortala", "Kenarlara Yasla", "Sola Yasla", "Sağa Yasla", "Yatay Çizgi Ekle", "Resim Ekle", "Dosya Ekle", "Youtube/Vimeo Videosu Ekle", "Bağlantı Ekle", "Font Boyutu", "Font Ailesi", "Blok Ekle", "Normal", "Başlık 1", "Başlık 2", "Başlık 3", "Başlık 4", "Alıntı", "Kod", "Ekle", "Tablo Ekle", "Girintiyi Azalt", "Girintiyi Arttır", "Özel Karakter Seç", "Özel Karakter Ekle", "Resim Biçimi", "Mod Değiştir", "Boşluklar", "Üst", "Sağ", "Alt", "Sol", "CSS Stilleri", "CSS Sınıfları", "Hizalama", "Sağ", "Ortalı", "Sol", "Belirsiz", "Kaynak", "Başlık", "Alternatif Yazı", "Link", "Bağlantıyı yeni sekmede aç", "Resim", "Dosya", "Gelişmiş", "Resim özellikleri", "İptal", "Tamam", "Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?", "HTML olarak yapıştır", "Sakla", "Temizle", "Yazı olarak ekle", "Sadece yazıyı ekle", "Word biçiminde yapıştırma algılandı", "Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?", "Dosya Listeleyici", "Liste yüklenirken hata oluştu", "Klasörler yüklenirken hata oluştur", "Emin misiniz?", "Dizin yolu giriniz", "Dizin oluştur", "İsim yaz", "Resim bırak", "Dosya bırak", "veya tıkla", "Alternatif yazı", "Gözat", "Yükle", "Arka plan", "Yazı", "Üst", "Orta", "Aşağı", "Öncesine kolon ekle", "Sonrasına kolon ekle", "Üstüne satır ekle", "Altına satır ekle", "Tabloyu sil", "Satırı sil", "Kolonu sil", "Hücreyi temizle", "Kaynak", "Kalın", "italik", "Fırça", "Bağlantı", "Geri al", "Yinele", "Tablo", "Resim", "Silgi", "Paragraf", "Font boyutu", "Video", "Font", "Hakkında", "Yazdır", "Alt çizgi", "Üstü çizili", "Girinti", "Çıkıntı", "Tam ekran", "Küçült", "Ayraç", "Sırasız liste", "Sıralı liste", "Kes", "Tümünü seç", "Kod ekle", "Bağlantıyı aç", "Bağlantıyı düzenle", "Nofollow özelliği", "Bağlantıyı kaldır", "Yorumu", "Düzenlemek için", "Güncelle", "URL", "Düzenle", "Yatay hizala", "Filtre", "Değişime göre sırala", "İsme göre sırala", "Boyuta göre sırala", "Klasör ekle", "Sıfırla", "Kaydet", "Farklı kaydet", "Boyutlandır", "Kırp", "Genişlik", "Yükseklik", "En boy oranını koru", "Evet", "Hayır", "Sil", "Seç", "Harfler: %d", "Kelimeler: %d", "Tümü", "Seç: %s", "Tümünü seç", "Dikey hizala", "Ayır", "Dikey ayır", "Yatay ayır", "Birleştir", "Kolon ekle", "Satır ekle", "Sil", "Kenarlık", null, "Üstü çizili", "Alt çizgi", "Üst yazı", "Alt yazı", "Seçilimi kes", "Satır sonu", "Ara", "Şununla değiştir", "Değiştir", "Yapıştır", "Yapıştırılacak içerik seç", "Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?", "Görsel başarıyla hostunuza yüklendi", "Palet", "Bu dizinde dosya yok", "Yeniden isimlendir", "Yeni isim girin", "Ön izleme", "İndir", "Panodan yapıştır ", "Tarayıcınız panoya doğrudan erişimi desteklemiyor.", "Seçimi kopyala", "Kopyala", "Sınır yarıçapı", "Tümünü Göster", "Uygula", "Lütfen bu alanı doldurun", "Lütfen bir web adresi girin", "Varsayılan", "Daire", "Nokta", "Kare", "Bul", "Öncekini Bul", "Sonrakini Bul", "Sınıf adı girin", "Özel yeniden boyutlandırma için Alt tuşuna basın"];
  56. }, 21042: function(_) {
  57. _.exports.default = ["输入一些内容", "关于Jodit", "Jodit Editor", "Free Non-commercial Version", "开发者指南", "使用帮助", "有关许可证的信息,请访问我们的网站:", "购买完整版本", "Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有", "Anchor", "在新窗口打开", "全屏编辑", "清除样式", "颜色", "重做", "撤销", "粗体", "斜体", "符号列表", "编号", "居中", "对齐文本", "左对齐", "右对齐", "分割线", "图片", "文件", "视频", "链接", "字号", "字体", "格式块", "默认", "标题1", "标题2", "标题3", "标题4", "引用", "代码", "插入", "表格", "减少缩进", "增加缩进", "选择特殊符号", "特殊符号", "格式复制", "改变模式", "外边距(Margins)", "top", "right", "bottom", "left", "样式", "Classes", "对齐方式", "居右", "居中", "居左", "无", "Src", "Title", "Alternative", "Link", "在新窗口打开链接", "图片", "file", "高级", "图片属性", "取消", "确定", "你粘贴的文本是一段html代码,是否保留源格式", "html粘贴", "保留源格式", "匹配目标格式", "把html代码视为普通文本", "只保留文本", "文本粘贴", "正在粘贴 Word/Excel 的文本,是否保留源格式?", "文件管理", "加载list错误", "加载folders错误", "你确定吗?", "输入路径", "创建路径", "type name", "拖动图片到此", "拖动文件到此", "或点击", "Alternative text", "浏览", "上传", "背景色", "文字", "顶部", "中间", "底部", "在之前插入列", "在之后插入列", "在之前插入行", "在之后插入行", "删除表格", "删除行", "删除列", "清除内容", "源码", "粗体", "斜体", "颜色", "链接", "撤销", "重做", "表格", "图片", "橡皮擦", "段落", "字号", "视频", "字体", "关于", "打印", "下划线", "上出现", "增加缩进", "减少缩进", "全屏", "收缩", "分割线", "无序列表", "顺序列表", "剪切", "全选", "嵌入代码", "打开链接", "编辑链接", "No follow", "取消链接", "预览", "铅笔", "更新", "URL", "编辑", "水平对齐", "筛选", "修改时间排序", "名称排序", "大小排序", "新建文件夹", "重置", "保存", "保存为", "调整大小", "剪切", "宽", "高", "保持长宽比", "是", "不", "移除", "选择", "字符数: %d", "单词数: %d", "全部", "选择: %s", "全选", "垂直对齐", "拆分", "垂直拆分", "水平拆分", "合并", "添加列", "添加行", "删除", "边框", null, "删除线", "下划线", "上标", "下标", "剪切", "Break", "查找", "替换为", "替换", "粘贴", "选择内容并粘贴", "你只能编辑你自己的图片。Download this image on the host?", "图片上传成功", "调色板", "此目录中沒有文件。", "重命名", "输入新名称", "预览", "下载", "粘贴从剪贴板", "你浏览器不支持直接访问的剪贴板。", "复制选中内容", "复制", "边界半径", "显示所有", "应用", "请填写这个字段", "请输入一个网址", "默认", "圆圈", "点", "方形", "搜索", "查找上一个", "查找下一个", "插入班级名称", "按Alt自定义调整大小"];
  58. }, 73895: function(_) {
  59. _.exports.default = ["輸入一些內容", "關於Jodit", "Jodit Editor", null, "開發者指南", "使用幫助", "有關許可證的信息,請訪問我們的網站:", "購買完整版本", "Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.", "Anchor", "在新窗口打開", "全屏編輯", "清除樣式", "顏色", "重做", "撤銷", "粗體", "斜體", "符號列表", "編號", "居中", "對齊文本", "左對齊", "右對齊", "分割線", "圖片", "文件", "youtube/vimeo 影片", "鏈接", "字號", "字體", "格式塊", "文本", "標題1", "標題2", "標題3", "標題4", "引用", "代碼", "插入", "表格", "減少縮進", "增加縮進", "選擇特殊符號", "特殊符號", "格式複製", "改變模式", "外邊距(Margins)", "top", "right", "bottom", "left", "樣式", "Classes", "對齊方式", "居右", "居中", "居左", "無", "Src", "Title", "替代", "Link", "在新窗口打開鏈接", "圖片", "file", "高級", "圖片屬性", "取消", "確定", "你黏貼的文本是一段html代碼,是否保留源格式", "html黏貼", "保留源格式", "匹配目標格式", "把html代碼視為普通文本", "只保留文本", "文本黏貼", "正在黏貼 Word/Excel 的文本,是否保留源格式?", "文件管理", "加載list錯誤", "加載folders錯誤", "你確定嗎?", "輸入路徑", "創建路徑", "type name", "拖動圖片到此", "拖動文件到此", "或點擊", "替代文字", "瀏覽", "上傳", "背景色", "文字", "頂部", "中間", "底部", "在之前插入列", "在之後插入列", "在之前插入行", "在之後插入行", "刪除表格", "刪除行", "刪除列", "清除內容", "源碼", "粗體", "斜體", "顏色", "鏈接", "撤銷", "重做", "表格", "圖片", "橡皮擦", "段落", "字號", "影片", "字體", "關於", "打印", "下劃線", "上出現", "增加縮進", "減少縮進", "全屏", "收縮", "分割線", "無序列表", "順序列表", "剪切", "全選", "嵌入代碼", "打開鏈接", "編輯鏈接", "No follow", "取消連結", "回顧", "鉛筆", "更新", "URL", null, "水平對齊", "篩選", "修改時間排序", "名稱排序", "大小排序", "新建文件夾", "重置", "保存", "保存為", "調整大小", "Crop", "寬", "高", "保存長寬比", "是", "不", "移除", "選擇", "字符數: %d", "單詞數: %d", "全部", "選擇: %s", "全選", "垂直對齊", "拆分", "垂直拆分", "水平拆分", "合併", "添加列", "添加行", "刪除", "邊框", null, "刪除線", "下劃線", "上標", "下標", "剪切", "Pause", "查找", "替換為", "แทนที่", "黏貼", "選擇內容並黏貼", "你只能編輯你自己的圖片。是否下載此圖片到本地?", "圖片上傳成功", "調色板", "此目錄中沒有文件。", "重命名", "輸入新名稱", "預覽", "下載", "從剪貼板貼上", "瀏覽器無法存取剪贴板。", "複製已選取項目", "複製", "邊框圓角", "顯示所有", "應用", "ได้โปรดกรอกช่องข้อมูลนี้", "โปรดเติมที่อยู่บนเว็บ", "ค่าปริยาย", "วงกลม", "จุด", "Quadrate", "ค้นหา", "ค้นหาก่อนหน้านี้", "ค้นหาถัดไป", "ใส่ชื่อคลาส", "กดอัลท์สำหรับการปรับขนาดที่กำหนดเอง"];
  60. }, 3610: function(_) {
  61. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg>`;
  62. }, 56170: function(_) {
  63. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg>`;
  64. }, 95331: function(_) {
  65. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>`;
  66. }, 84279: function(_) {
  67. _.exports = '<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>';
  68. }, 11257: function(_) {
  69. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>`;
  70. }, 25141: function(_) {
  71. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>`;
  72. }, 24557: function(_) {
  73. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg>`;
  74. }, 10859: function(_) {
  75. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>`;
  76. }, 9813: function(_) {
  77. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>`;
  78. }, 93395: function(_) {
  79. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>`;
  80. }, 98213: function(_) {
  81. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>`;
  82. }, 20026: function(_) {
  83. _.exports = '<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg>';
  84. }, 66911: function(_) {
  85. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg>`;
  86. }, 50018: function(_) {
  87. _.exports = '<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>';
  88. }, 99738: function(_) {
  89. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>`;
  90. }, 9185: function(_) {
  91. _.exports = '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>';
  92. }, 8619: function(_) {
  93. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>`;
  94. }, 73894: function(_) {
  95. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg>`;
  96. }, 83301: function(_) {
  97. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg>`;
  98. }, 84142: function(_) {
  99. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>`;
  100. }, 57292: function(_) {
  101. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg>`;
  102. }, 18019: function(_) {
  103. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg>`;
  104. }, 45146: function(_) {
  105. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg>`;
  106. }, 53576: function(_) {
  107. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>`;
  108. }, 14655: function(_) {
  109. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg>`;
  110. }, 53477: function(_) {
  111. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>`;
  112. }, 90053: function(_) {
  113. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>`;
  114. }, 72230: function(_) {
  115. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>`;
  116. }, 78321: function(_) {
  117. _.exports = '<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg>';
  118. }, 77654: function(_) {
  119. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>`;
  120. }, 43371: function(_) {
  121. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg>`;
  122. }, 44563: function(_) {
  123. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>`;
  124. }, 53183: function(_) {
  125. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>`;
  126. }, 18548: function(_) {
  127. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>`;
  128. }, 52242: function(_) {
  129. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>`;
  130. }, 87498: function(_) {
  131. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg>`;
  132. }, 7986: function(_) {
  133. _.exports = '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg>';
  134. }, 23075: function(_) {
  135. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>`;
  136. }, 10655: function(_) {
  137. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg>`;
  138. }, 15476: function(_) {
  139. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>`;
  140. }, 59403: function(_) {
  141. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>`;
  142. }, 22860: function(_) {
  143. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>`;
  144. }, 95600: function(_) {
  145. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>`;
  146. }, 76214: function(_) {
  147. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>`;
  148. }, 41197: function(_) {
  149. _.exports = '<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>';
  150. }, 9342: function(_) {
  151. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg>`;
  152. }, 69546: function(_) {
  153. _.exports = '<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg>';
  154. }, 43158: function(_) {
  155. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>`;
  156. }, 51716: function(_) {
  157. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg>`;
  158. }, 49222: function(_) {
  159. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg>`;
  160. }, 1755: function(_) {
  161. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>`;
  162. }, 74911: function(_) {
  163. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>`;
  164. }, 8805: function(_) {
  165. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>`;
  166. }, 16547: function(_) {
  167. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>`;
  168. }, 10856: function(_) {
  169. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg>`;
  170. }, 98441: function(_) {
  171. _.exports = '<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg>';
  172. }, 52488: function(_) {
  173. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>`;
  174. }, 9370: function(_) {
  175. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg>`;
  176. }, 66543: function(_) {
  177. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>`;
  178. }, 608: function(_) {
  179. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>`;
  180. }, 42840: function(_) {
  181. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>`;
  182. }, 79096: function(_) {
  183. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg>`;
  184. }, 33014: function(_) {
  185. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>`;
  186. }, 91677: function(_) {
  187. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>`;
  188. }, 8259: function(_) {
  189. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>`;
  190. }, 64467: function(_) {
  191. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>`;
  192. }, 86934: function(_) {
  193. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg>`;
  194. }, 76133: function(_) {
  195. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>`;
  196. }, 45519: function(_) {
  197. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>`;
  198. }, 90265: function(_) {
  199. _.exports = '<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg>';
  200. }, 81279: function(_) {
  201. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>`;
  202. }, 68899: function(_) {
  203. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>`;
  204. }, 70744: function(_) {
  205. _.exports = '<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg>';
  206. }, 19201: function(_) {
  207. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg>`;
  208. }, 84930: function(_) {
  209. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>`;
  210. }, 99704: function(_) {
  211. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>`;
  212. }, 2304: function(_) {
  213. _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg>`;
  214. }, 93330: function(_, t, e) {
  215. e.r(t);
  216. }, 45066: function(_, t, e) {
  217. e.r(t);
  218. }, 99895: function(_, t, e) {
  219. e.r(t);
  220. }, 87682: function(_, t, e) {
  221. e.r(t);
  222. }, 50905: function(_, t, e) {
  223. e.r(t);
  224. }, 70446: function(_, t, e) {
  225. e.r(t);
  226. }, 18984: function(_, t, e) {
  227. e.r(t);
  228. }, 4591: function(_, t, e) {
  229. e.r(t);
  230. }, 64194: function(_, t, e) {
  231. e.r(t);
  232. }, 70375: function(_, t, e) {
  233. e.r(t);
  234. }, 90235: function(_, t, e) {
  235. e.r(t);
  236. }, 88477: function(_, t, e) {
  237. e.r(t);
  238. }, 50197: function(_, t, e) {
  239. e.r(t);
  240. }, 39008: function(_, t, e) {
  241. e.r(t);
  242. }, 47086: function(_, t, e) {
  243. e.r(t);
  244. }, 16462: function(_, t, e) {
  245. e.r(t);
  246. }, 40692: function(_, t, e) {
  247. e.r(t);
  248. }, 27452: function(_, t, e) {
  249. e.r(t);
  250. }, 51422: function(_, t, e) {
  251. e.r(t);
  252. }, 62820: function(_, t, e) {
  253. e.r(t);
  254. }, 63421: function(_, t, e) {
  255. e.r(t);
  256. }, 32115: function(_, t, e) {
  257. e.r(t);
  258. }, 53362: function(_, t, e) {
  259. e.r(t);
  260. }, 48904: function(_, t, e) {
  261. e.r(t);
  262. }, 85796: function(_, t, e) {
  263. e.r(t);
  264. }, 28654: function(_, t, e) {
  265. e.r(t);
  266. }, 60819: function(_, t, e) {
  267. e.r(t);
  268. }, 96410: function(_, t, e) {
  269. e.r(t);
  270. }, 33126: function(_, t, e) {
  271. e.r(t);
  272. }, 30724: function(_, t, e) {
  273. e.r(t);
  274. }, 14320: function(_, t, e) {
  275. e.r(t);
  276. }, 9947: function(_, t, e) {
  277. e.r(t);
  278. }, 45109: function(_, t, e) {
  279. e.r(t);
  280. }, 71708: function(_, t, e) {
  281. e.r(t);
  282. }, 51629: function(_, t, e) {
  283. e.r(t);
  284. }, 54860: function(_, t, e) {
  285. e.r(t);
  286. }, 47818: function(_, t, e) {
  287. e.r(t);
  288. }, 6316: function(_, t, e) {
  289. e.r(t);
  290. }, 88582: function(_, t, e) {
  291. e.r(t);
  292. }, 30962: function(_, t, e) {
  293. e.r(t);
  294. }, 68197: function(_, t, e) {
  295. e.r(t);
  296. }, 60057: function(_, t, e) {
  297. e.r(t);
  298. }, 33393: function(_, t, e) {
  299. e.r(t);
  300. }, 51057: function(_, t, e) {
  301. e.r(t);
  302. }, 64618: function(_, t, e) {
  303. e.r(t);
  304. }, 90176: function(_, t, e) {
  305. e.r(t);
  306. }, 91147: function(_, t, e) {
  307. e.r(t);
  308. }, 70631: function(_, t) {
  309. function e(h) {
  310. return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(p) {
  311. return typeof p;
  312. } : function(p) {
  313. return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
  314. }, e(h);
  315. }
  316. function n(h, p, d) {
  317. var a = d.value;
  318. if (typeof a != "function") throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(e(a)));
  319. var s = !1;
  320. return { configurable: !0, get: function() {
  321. if (s || this === h.prototype || this.hasOwnProperty(p) || typeof a != "function") return a;
  322. var u = a.bind(this);
  323. return s = !0, Object.defineProperty(this, p, { configurable: !0, get: function() {
  324. return u;
  325. }, set: function(f) {
  326. a = f, delete this[p];
  327. } }), s = !1, u;
  328. }, set: function(u) {
  329. a = u;
  330. } };
  331. }
  332. function v(h) {
  333. var p;
  334. return typeof Reflect != "undefined" && typeof Reflect.ownKeys == "function" ? p = Reflect.ownKeys(h.prototype) : (p = Object.getOwnPropertyNames(h.prototype), typeof Object.getOwnPropertySymbols == "function" && (p = p.concat(Object.getOwnPropertySymbols(h.prototype)))), p.forEach(function(d) {
  335. if (d !== "constructor") {
  336. var a = Object.getOwnPropertyDescriptor(h.prototype, d);
  337. typeof a.value == "function" && Object.defineProperty(h.prototype, d, n(h, d, a));
  338. }
  339. }), h;
  340. }
  341. Object.defineProperty(t, "__esModule", { value: !0 }), t.boundClass = t.boundMethod = void 0, t.boundMethod = n, t.boundClass = v, t.default = function() {
  342. return arguments.length === 1 ? v.apply(void 0, arguments) : n.apply(void 0, arguments);
  343. };
  344. }, 61227: function() {
  345. "document" in window.self && ((!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) && function(_) {
  346. if ("Element" in _) {
  347. var t = "classList", e = _.Element.prototype, n = Object, v = String.prototype.trim || function() {
  348. return this.replace(/^\s+|\s+$/g, "");
  349. }, h = Array.prototype.indexOf || function(l) {
  350. for (var o = 0, r = this.length; r > o; o++) if (o in this && this[o] === l) return o;
  351. return -1;
  352. }, p = function(l, o) {
  353. this.name = l, this.code = DOMException[l], this.message = o;
  354. }, d = function(l, o) {
  355. if (o === "") throw new p("SYNTAX_ERR", "An invalid or illegal string was specified");
  356. if (/\s/.test(o)) throw new p("INVALID_CHARACTER_ERR", "String contains an invalid character");
  357. return h.call(l, o);
  358. }, a = function(l) {
  359. for (var o = v.call(l.getAttribute("class") || ""), r = o ? o.split(/\s+/) : [], i = 0, c = r.length; c > i; i++) this.push(r[i]);
  360. this._updateClassName = function() {
  361. l.setAttribute("class", this.toString());
  362. };
  363. }, s = a.prototype = [], u = function() {
  364. return new a(this);
  365. };
  366. if (p.prototype = Error.prototype, s.item = function(l) {
  367. return this[l] || null;
  368. }, s.contains = function(l) {
  369. return d(this, l += "") !== -1;
  370. }, s.add = function() {
  371. var l, o = arguments, r = 0, i = o.length, c = !1;
  372. do
  373. d(this, l = o[r] + "") === -1 && (this.push(l), c = !0);
  374. while (++r < i);
  375. c && this._updateClassName();
  376. }, s.remove = function() {
  377. var l, o, r = arguments, i = 0, c = r.length, m = !1;
  378. do
  379. for (o = d(this, l = r[i] + ""); o !== -1; ) this.splice(o, 1), m = !0, o = d(this, l);
  380. while (++i < c);
  381. m && this._updateClassName();
  382. }, s.toggle = function(l, o) {
  383. var r = this.contains(l += ""), i = r ? o !== !0 && "remove" : o !== !1 && "add";
  384. return i && this[i](l), o === !0 || o === !1 ? o : !r;
  385. }, s.toString = function() {
  386. return this.join(" ");
  387. }, n.defineProperty) {
  388. var f = { get: u, enumerable: !0, configurable: !0 };
  389. try {
  390. n.defineProperty(e, t, f);
  391. } catch (l) {
  392. l.number !== void 0 && l.number !== -2146823252 || (f.enumerable = !1, n.defineProperty(e, t, f));
  393. }
  394. } else n.prototype.__defineGetter__ && e.__defineGetter__(t, u);
  395. }
  396. }(window.self), function() {
  397. var _ = document.createElement("_");
  398. if (_.classList.add("c1", "c2"), !_.classList.contains("c2")) {
  399. var t = function(n) {
  400. var v = DOMTokenList.prototype[n];
  401. DOMTokenList.prototype[n] = function(h) {
  402. var p, d = arguments.length;
  403. for (p = 0; d > p; p++) v.call(this, h = arguments[p]);
  404. };
  405. };
  406. t("add"), t("remove");
  407. }
  408. if (_.classList.toggle("c3", !1), _.classList.contains("c3")) {
  409. var e = DOMTokenList.prototype.toggle;
  410. DOMTokenList.prototype.toggle = function(n, v) {
  411. return 1 in arguments && !this.contains(n) == !v ? v : e.call(this, n);
  412. };
  413. }
  414. _ = null;
  415. }());
  416. }, 69220: function(_, t, e) {
  417. e(22513);
  418. var n = e(56599);
  419. _.exports = n("Array", "findIndex");
  420. }, 10444: function(_, t, e) {
  421. e(52867), e(70057);
  422. var n = e(31116);
  423. _.exports = n.Array.from;
  424. }, 66622: function(_, t, e) {
  425. e(54166), e(32044), e(95661), e(28424), e(64514), e(30733), e(40327), e(53639), e(6147), e(7290), e(95122), e(61322), e(39605), e(49341), e(28809), e(82658), e(43967), e(90217), e(73477), e(93697);
  426. var n = e(31116);
  427. _.exports = n.Symbol;
  428. }, 98061: function(_, t, e) {
  429. var n = e(794), v = e(98418), h = TypeError;
  430. _.exports = function(p) {
  431. if (n(p)) return p;
  432. throw h(v(p) + " is not a function");
  433. };
  434. }, 75839: function(_, t, e) {
  435. var n = e(794), v = String, h = TypeError;
  436. _.exports = function(p) {
  437. if (typeof p == "object" || n(p)) return p;
  438. throw h("Can't set " + v(p) + " as a prototype");
  439. };
  440. }, 15179: function(_, t, e) {
  441. var n = e(19517), v = e(93503), h = e(73252).f, p = n("unscopables"), d = Array.prototype;
  442. d[p] == null && h(d, p, { configurable: !0, value: v(null) }), _.exports = function(a) {
  443. d[p][a] = !0;
  444. };
  445. }, 52313: function(_, t, e) {
  446. var n = e(8148), v = String, h = TypeError;
  447. _.exports = function(p) {
  448. if (n(p)) return p;
  449. throw h(v(p) + " is not an object");
  450. };
  451. }, 92707: function(_, t, e) {
  452. var n = e(40207), v = e(9093), h = e(68488), p = e(79665), d = e(84997), a = e(15333), s = e(15050), u = e(89476), f = e(27395), l = e(81058), o = Array;
  453. _.exports = function(r) {
  454. var i = h(r), c = a(this), m = arguments.length, y = m > 1 ? arguments[1] : void 0, g = y !== void 0;
  455. g && (y = n(y, m > 2 ? arguments[2] : void 0));
  456. var b, w, C, S, j, E, x = l(i), k = 0;
  457. if (!x || this === o && d(x)) for (b = s(i), w = c ? new this(b) : o(b); b > k; k++) E = g ? y(i[k], k) : i[k], u(w, k, E);
  458. else for (j = (S = f(i, x)).next, w = c ? new this() : []; !(C = v(j, S)).done; k++) E = g ? p(S, y, [C.value, k], !0) : C.value, u(w, k, E);
  459. return w.length = k, w;
  460. };
  461. }, 79327: function(_, t, e) {
  462. var n = e(98651), v = e(10586), h = e(15050), p = function(d) {
  463. return function(a, s, u) {
  464. var f, l = n(a), o = h(l), r = v(u, o);
  465. if (d && s != s) {
  466. for (; o > r; ) if ((f = l[r++]) != f) return !0;
  467. } else for (; o > r; r++) if ((d || r in l) && l[r] === s) return d || r || 0;
  468. return !d && -1;
  469. };
  470. };
  471. _.exports = { includes: p(!0), indexOf: p(!1) };
  472. }, 56881: function(_, t, e) {
  473. var n = e(40207), v = e(90838), h = e(25049), p = e(68488), d = e(15050), a = e(6429), s = v([].push), u = function(f) {
  474. var l = f == 1, o = f == 2, r = f == 3, i = f == 4, c = f == 6, m = f == 7, y = f == 5 || c;
  475. return function(g, b, w, C) {
  476. for (var S, j, E = p(g), x = h(E), k = n(b, w), I = d(x), M = 0, T = C || a, O = l ? T(g, I) : o || m ? T(g, 0) : void 0; I > M; M++) if ((y || M in x) && (j = k(S = x[M], M, E), f)) if (l) O[M] = j;
  477. else if (j) switch (f) {
  478. case 3:
  479. return !0;
  480. case 5:
  481. return S;
  482. case 6:
  483. return M;
  484. case 2:
  485. s(O, S);
  486. }
  487. else switch (f) {
  488. case 4:
  489. return !1;
  490. case 7:
  491. s(O, S);
  492. }
  493. return c ? -1 : r || i ? i : O;
  494. };
  495. };
  496. _.exports = { forEach: u(0), map: u(1), filter: u(2), some: u(3), every: u(4), find: u(5), findIndex: u(6), filterReject: u(7) };
  497. }, 63833: function(_, t, e) {
  498. var n = e(75834), v = e(19517), h = e(65190), p = v("species");
  499. _.exports = function(d) {
  500. return h >= 51 || !n(function() {
  501. var a = [];
  502. return (a.constructor = {})[p] = function() {
  503. return { foo: 1 };
  504. }, a[d](Boolean).foo !== 1;
  505. });
  506. };
  507. }, 57652: function(_, t, e) {
  508. var n = e(10586), v = e(15050), h = e(89476), p = Array, d = Math.max;
  509. _.exports = function(a, s, u) {
  510. for (var f = v(a), l = n(s, f), o = n(u === void 0 ? f : u, f), r = p(d(o - l, 0)), i = 0; o > l; l++, i++) h(r, i, a[l]);
  511. return r.length = i, r;
  512. };
  513. }, 54832: function(_, t, e) {
  514. var n = e(90838);
  515. _.exports = n([].slice);
  516. }, 22506: function(_, t, e) {
  517. var n = e(36222), v = e(15333), h = e(8148), p = e(19517)("species"), d = Array;
  518. _.exports = function(a) {
  519. var s;
  520. return n(a) && (v(s = a.constructor) && (s === d || n(s.prototype)) || h(s) && (s = s[p]) === null) && (s = void 0), s === void 0 ? d : s;
  521. };
  522. }, 6429: function(_, t, e) {
  523. var n = e(22506);
  524. _.exports = function(v, h) {
  525. return new (n(v))(h === 0 ? 0 : h);
  526. };
  527. }, 79665: function(_, t, e) {
  528. var n = e(52313), v = e(11274);
  529. _.exports = function(h, p, d, a) {
  530. try {
  531. return a ? p(n(d)[0], d[1]) : p(d);
  532. } catch (s) {
  533. v(h, "throw", s);
  534. }
  535. };
  536. }, 7581: function(_, t, e) {
  537. var n = e(19517)("iterator"), v = !1;
  538. try {
  539. var h = 0, p = { next: function() {
  540. return { done: !!h++ };
  541. }, return: function() {
  542. v = !0;
  543. } };
  544. p[n] = function() {
  545. return this;
  546. }, Array.from(p, function() {
  547. throw 2;
  548. });
  549. } catch (d) {
  550. }
  551. _.exports = function(d, a) {
  552. if (!a && !v) return !1;
  553. var s = !1;
  554. try {
  555. var u = {};
  556. u[n] = function() {
  557. return { next: function() {
  558. return { done: s = !0 };
  559. } };
  560. }, d(u);
  561. } catch (f) {
  562. }
  563. return s;
  564. };
  565. }, 6285: function(_, t, e) {
  566. var n = e(90838), v = n({}.toString), h = n("".slice);
  567. _.exports = function(p) {
  568. return h(v(p), 8, -1);
  569. };
  570. }, 8652: function(_, t, e) {
  571. var n = e(6424), v = e(794), h = e(6285), p = e(19517)("toStringTag"), d = Object, a = h(/* @__PURE__ */ function() {
  572. return arguments;
  573. }()) == "Arguments";
  574. _.exports = n ? h : function(s) {
  575. var u, f, l;
  576. return s === void 0 ? "Undefined" : s === null ? "Null" : typeof (f = function(o, r) {
  577. try {
  578. return o[r];
  579. } catch (i) {
  580. }
  581. }(u = d(s), p)) == "string" ? f : a ? h(u) : (l = h(u)) == "Object" && v(u.callee) ? "Arguments" : l;
  582. };
  583. }, 58392: function(_, t, e) {
  584. var n = e(14434), v = e(86671), h = e(36999), p = e(73252);
  585. _.exports = function(d, a, s) {
  586. for (var u = v(a), f = p.f, l = h.f, o = 0; u.length > o; o++) {
  587. var r = u[o];
  588. n(d, r) || s && n(s, r) || f(d, r, l(a, r));
  589. }
  590. };
  591. }, 27259: function(_, t, e) {
  592. var n = e(75834);
  593. _.exports = !n(function() {
  594. function v() {
  595. }
  596. return v.prototype.constructor = null, Object.getPrototypeOf(new v()) !== v.prototype;
  597. });
  598. }, 17427: function(_) {
  599. _.exports = function(t, e) {
  600. return { value: t, done: e };
  601. };
  602. }, 45840: function(_, t, e) {
  603. var n = e(13873), v = e(73252), h = e(32500);
  604. _.exports = n ? function(p, d, a) {
  605. return v.f(p, d, h(1, a));
  606. } : function(p, d, a) {
  607. return p[d] = a, p;
  608. };
  609. }, 32500: function(_) {
  610. _.exports = function(t, e) {
  611. return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e };
  612. };
  613. }, 89476: function(_, t, e) {
  614. var n = e(43836), v = e(73252), h = e(32500);
  615. _.exports = function(p, d, a) {
  616. var s = n(d);
  617. s in p ? v.f(p, s, h(0, a)) : p[s] = a;
  618. };
  619. }, 97548: function(_, t, e) {
  620. var n = e(40846), v = e(73252);
  621. _.exports = function(h, p, d) {
  622. return d.get && n(d.get, p, { getter: !0 }), d.set && n(d.set, p, { setter: !0 }), v.f(h, p, d);
  623. };
  624. }, 35065: function(_, t, e) {
  625. var n = e(794), v = e(73252), h = e(40846), p = e(25379);
  626. _.exports = function(d, a, s, u) {
  627. u || (u = {});
  628. var f = u.enumerable, l = u.name !== void 0 ? u.name : a;
  629. if (n(s) && h(s, l, u), u.global) f ? d[a] = s : p(a, s);
  630. else {
  631. try {
  632. u.unsafe ? d[a] && (f = !0) : delete d[a];
  633. } catch (o) {
  634. }
  635. f ? d[a] = s : v.f(d, a, { value: s, enumerable: !1, configurable: !u.nonConfigurable, writable: !u.nonWritable });
  636. }
  637. return d;
  638. };
  639. }, 25379: function(_, t, e) {
  640. var n = e(37042), v = Object.defineProperty;
  641. _.exports = function(h, p) {
  642. try {
  643. v(n, h, { value: p, configurable: !0, writable: !0 });
  644. } catch (d) {
  645. n[h] = p;
  646. }
  647. return p;
  648. };
  649. }, 13873: function(_, t, e) {
  650. var n = e(75834);
  651. _.exports = !n(function() {
  652. return Object.defineProperty({}, 1, { get: function() {
  653. return 7;
  654. } })[1] != 7;
  655. });
  656. }, 12062: function(_) {
  657. var t = typeof document == "object" && document.all;
  658. _.exports = { all: t, IS_HTMLDDA: t === void 0 && t !== void 0 };
  659. }, 15192: function(_, t, e) {
  660. var n = e(37042), v = e(8148), h = n.document, p = v(h) && v(h.createElement);
  661. _.exports = function(d) {
  662. return p ? h.createElement(d) : {};
  663. };
  664. }, 39505: function(_) {
  665. var t = TypeError;
  666. _.exports = function(e) {
  667. if (e > 9007199254740991) throw t("Maximum allowed index exceeded");
  668. return e;
  669. };
  670. }, 21473: function(_) {
  671. _.exports = typeof navigator != "undefined" && String(navigator.userAgent) || "";
  672. }, 65190: function(_, t, e) {
  673. var n, v, h = e(37042), p = e(21473), d = h.process, a = h.Deno, s = d && d.versions || a && a.version, u = s && s.v8;
  674. u && (v = (n = u.split("."))[0] > 0 && 4 > n[0] ? 1 : +(n[0] + n[1])), !v && p && ((n = p.match(/Edge\/(\d+)/)) && 74 > n[1] || (n = p.match(/Chrome\/(\d+)/)) && (v = +n[1])), _.exports = v;
  675. }, 56599: function(_, t, e) {
  676. var n = e(37042), v = e(90838);
  677. _.exports = function(h, p) {
  678. return v(n[h].prototype[p]);
  679. };
  680. }, 64456: function(_) {
  681. _.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
  682. }, 50791: function(_, t, e) {
  683. var n = e(37042), v = e(36999).f, h = e(45840), p = e(35065), d = e(25379), a = e(58392), s = e(56930);
  684. _.exports = function(u, f) {
  685. var l, o, r, i, c, m = u.target, y = u.global, g = u.stat;
  686. if (l = y ? n : g ? n[m] || d(m, {}) : (n[m] || {}).prototype) for (o in f) {
  687. if (i = f[o], r = u.dontCallGetSet ? (c = v(l, o)) && c.value : l[o], !s(y ? o : m + (g ? "." : "#") + o, u.forced) && r !== void 0) {
  688. if (typeof i == typeof r) continue;
  689. a(i, r);
  690. }
  691. (u.sham || r && r.sham) && h(i, "sham", !0), p(l, o, i, u);
  692. }
  693. };
  694. }, 75834: function(_) {
  695. _.exports = function(t) {
  696. try {
  697. return !!t();
  698. } catch (e) {
  699. return !0;
  700. }
  701. };
  702. }, 55101: function(_, t, e) {
  703. var n = e(32610), v = Function.prototype, h = v.apply, p = v.call;
  704. _.exports = typeof Reflect == "object" && Reflect.apply || (n ? p.bind(h) : function() {
  705. return p.apply(h, arguments);
  706. });
  707. }, 40207: function(_, t, e) {
  708. var n = e(75114), v = e(98061), h = e(32610), p = n(n.bind);
  709. _.exports = function(d, a) {
  710. return v(d), a === void 0 ? d : h ? p(d, a) : function() {
  711. return d.apply(a, arguments);
  712. };
  713. };
  714. }, 32610: function(_, t, e) {
  715. var n = e(75834);
  716. _.exports = !n(function() {
  717. var v = function() {
  718. }.bind();
  719. return typeof v != "function" || v.hasOwnProperty("prototype");
  720. });
  721. }, 9093: function(_, t, e) {
  722. var n = e(32610), v = Function.prototype.call;
  723. _.exports = n ? v.bind(v) : function() {
  724. return v.apply(v, arguments);
  725. };
  726. }, 84521: function(_, t, e) {
  727. var n = e(13873), v = e(14434), h = Function.prototype, p = n && Object.getOwnPropertyDescriptor, d = v(h, "name"), a = d && function() {
  728. }.name === "something", s = d && (!n || n && p(h, "name").configurable);
  729. _.exports = { EXISTS: d, PROPER: a, CONFIGURABLE: s };
  730. }, 47448: function(_, t, e) {
  731. var n = e(90838), v = e(98061);
  732. _.exports = function(h, p, d) {
  733. try {
  734. return n(v(Object.getOwnPropertyDescriptor(h, p)[d]));
  735. } catch (a) {
  736. }
  737. };
  738. }, 75114: function(_, t, e) {
  739. var n = e(6285), v = e(90838);
  740. _.exports = function(h) {
  741. if (n(h) === "Function") return v(h);
  742. };
  743. }, 90838: function(_, t, e) {
  744. var n = e(32610), v = Function.prototype, h = v.call, p = n && v.bind.bind(h, h);
  745. _.exports = n ? p : function(d) {
  746. return function() {
  747. return h.apply(d, arguments);
  748. };
  749. };
  750. }, 98945: function(_, t, e) {
  751. var n = e(37042), v = e(794), h = function(p) {
  752. return v(p) ? p : void 0;
  753. };
  754. _.exports = function(p, d) {
  755. return 2 > arguments.length ? h(n[p]) : n[p] && n[p][d];
  756. };
  757. }, 81058: function(_, t, e) {
  758. var n = e(8652), v = e(20156), h = e(8140), p = e(84922), d = e(19517)("iterator");
  759. _.exports = function(a) {
  760. if (!h(a)) return v(a, d) || v(a, "@@iterator") || p[n(a)];
  761. };
  762. }, 27395: function(_, t, e) {
  763. var n = e(9093), v = e(98061), h = e(52313), p = e(98418), d = e(81058), a = TypeError;
  764. _.exports = function(s, u) {
  765. var f = 2 > arguments.length ? d(s) : u;
  766. if (v(f)) return h(n(f, s));
  767. throw a(p(s) + " is not iterable");
  768. };
  769. }, 6693: function(_, t, e) {
  770. var n = e(90838), v = e(36222), h = e(794), p = e(6285), d = e(63046), a = n([].push);
  771. _.exports = function(s) {
  772. if (h(s)) return s;
  773. if (v(s)) {
  774. for (var u = s.length, f = [], l = 0; u > l; l++) {
  775. var o = s[l];
  776. typeof o == "string" ? a(f, o) : typeof o != "number" && p(o) != "Number" && p(o) != "String" || a(f, d(o));
  777. }
  778. var r = f.length, i = !0;
  779. return function(c, m) {
  780. if (i) return i = !1, m;
  781. if (v(this)) return m;
  782. for (var y = 0; r > y; y++) if (f[y] === c) return m;
  783. };
  784. }
  785. };
  786. }, 20156: function(_, t, e) {
  787. var n = e(98061), v = e(8140);
  788. _.exports = function(h, p) {
  789. var d = h[p];
  790. return v(d) ? void 0 : n(d);
  791. };
  792. }, 37042: function(_, t, e) {
  793. var n = function(v) {
  794. return v && v.Math == Math && v;
  795. };
  796. _.exports = n(typeof globalThis == "object" && globalThis) || n(typeof window == "object" && window) || n(typeof self == "object" && self) || n(typeof e.g == "object" && e.g) || /* @__PURE__ */ function() {
  797. return this;
  798. }() || Function("return this")();
  799. }, 14434: function(_, t, e) {
  800. var n = e(90838), v = e(68488), h = n({}.hasOwnProperty);
  801. _.exports = Object.hasOwn || function(p, d) {
  802. return h(v(p), d);
  803. };
  804. }, 48889: function(_) {
  805. _.exports = {};
  806. }, 36249: function(_, t, e) {
  807. var n = e(98945);
  808. _.exports = n("document", "documentElement");
  809. }, 12816: function(_, t, e) {
  810. var n = e(13873), v = e(75834), h = e(15192);
  811. _.exports = !n && !v(function() {
  812. return Object.defineProperty(h("div"), "a", { get: function() {
  813. return 7;
  814. } }).a != 7;
  815. });
  816. }, 25049: function(_, t, e) {
  817. var n = e(90838), v = e(75834), h = e(6285), p = Object, d = n("".split);
  818. _.exports = v(function() {
  819. return !p("z").propertyIsEnumerable(0);
  820. }) ? function(a) {
  821. return h(a) == "String" ? d(a, "") : p(a);
  822. } : p;
  823. }, 92355: function(_, t, e) {
  824. var n = e(90838), v = e(794), h = e(45752), p = n(Function.toString);
  825. v(h.inspectSource) || (h.inspectSource = function(d) {
  826. return p(d);
  827. }), _.exports = h.inspectSource;
  828. }, 56113: function(_, t, e) {
  829. var n, v, h, p = e(95473), d = e(37042), a = e(8148), s = e(45840), u = e(14434), f = e(45752), l = e(85475), o = e(48889), r = "Object already initialized", i = d.TypeError;
  830. if (p || f.state) {
  831. var c = f.state || (f.state = new d.WeakMap());
  832. c.get = c.get, c.has = c.has, c.set = c.set, n = function(y, g) {
  833. if (c.has(y)) throw i(r);
  834. return g.facade = y, c.set(y, g), g;
  835. }, v = function(y) {
  836. return c.get(y) || {};
  837. }, h = function(y) {
  838. return c.has(y);
  839. };
  840. } else {
  841. var m = l("state");
  842. o[m] = !0, n = function(y, g) {
  843. if (u(y, m)) throw i(r);
  844. return g.facade = y, s(y, m, g), g;
  845. }, v = function(y) {
  846. return u(y, m) ? y[m] : {};
  847. }, h = function(y) {
  848. return u(y, m);
  849. };
  850. }
  851. _.exports = { set: n, get: v, has: h, enforce: function(y) {
  852. return h(y) ? v(y) : n(y, {});
  853. }, getterFor: function(y) {
  854. return function(g) {
  855. var b;
  856. if (!a(g) || (b = v(g)).type !== y) throw i("Incompatible receiver, " + y + " required");
  857. return b;
  858. };
  859. } };
  860. }, 84997: function(_, t, e) {
  861. var n = e(19517), v = e(84922), h = n("iterator"), p = Array.prototype;
  862. _.exports = function(d) {
  863. return d !== void 0 && (v.Array === d || p[h] === d);
  864. };
  865. }, 36222: function(_, t, e) {
  866. var n = e(6285);
  867. _.exports = Array.isArray || function(v) {
  868. return n(v) == "Array";
  869. };
  870. }, 794: function(_, t, e) {
  871. var n = e(12062), v = n.all;
  872. _.exports = n.IS_HTMLDDA ? function(h) {
  873. return typeof h == "function" || h === v;
  874. } : function(h) {
  875. return typeof h == "function";
  876. };
  877. }, 15333: function(_, t, e) {
  878. var n = e(90838), v = e(75834), h = e(794), p = e(8652), d = e(98945), a = e(92355), s = function() {
  879. }, u = [], f = d("Reflect", "construct"), l = /^\s*(?:class|function)\b/, o = n(l.exec), r = !l.exec(s), i = function(m) {
  880. if (!h(m)) return !1;
  881. try {
  882. return f(s, u, m), !0;
  883. } catch (y) {
  884. return !1;
  885. }
  886. }, c = function(m) {
  887. if (!h(m)) return !1;
  888. switch (p(m)) {
  889. case "AsyncFunction":
  890. case "GeneratorFunction":
  891. case "AsyncGeneratorFunction":
  892. return !1;
  893. }
  894. try {
  895. return r || !!o(l, a(m));
  896. } catch (y) {
  897. return !0;
  898. }
  899. };
  900. c.sham = !0, _.exports = !f || v(function() {
  901. var m;
  902. return i(i.call) || !i(Object) || !i(function() {
  903. m = !0;
  904. }) || m;
  905. }) ? c : i;
  906. }, 56930: function(_, t, e) {
  907. var n = e(75834), v = e(794), h = /#|\.prototype\./, p = function(f, l) {
  908. var o = a[d(f)];
  909. return o == u || o != s && (v(l) ? n(l) : !!l);
  910. }, d = p.normalize = function(f) {
  911. return String(f).replace(h, ".").toLowerCase();
  912. }, a = p.data = {}, s = p.NATIVE = "N", u = p.POLYFILL = "P";
  913. _.exports = p;
  914. }, 8140: function(_) {
  915. _.exports = function(t) {
  916. return t == null;
  917. };
  918. }, 8148: function(_, t, e) {
  919. var n = e(794), v = e(12062), h = v.all;
  920. _.exports = v.IS_HTMLDDA ? function(p) {
  921. return typeof p == "object" ? p !== null : n(p) || p === h;
  922. } : function(p) {
  923. return typeof p == "object" ? p !== null : n(p);
  924. };
  925. }, 70852: function(_) {
  926. _.exports = !1;
  927. }, 88253: function(_, t, e) {
  928. var n = e(98945), v = e(794), h = e(54671), p = e(57982), d = Object;
  929. _.exports = p ? function(a) {
  930. return typeof a == "symbol";
  931. } : function(a) {
  932. var s = n("Symbol");
  933. return v(s) && h(s.prototype, d(a));
  934. };
  935. }, 11274: function(_, t, e) {
  936. var n = e(9093), v = e(52313), h = e(20156);
  937. _.exports = function(p, d, a) {
  938. var s, u;
  939. v(p);
  940. try {
  941. if (!(s = h(p, "return"))) {
  942. if (d === "throw") throw a;
  943. return a;
  944. }
  945. s = n(s, p);
  946. } catch (f) {
  947. u = !0, s = f;
  948. }
  949. if (d === "throw") throw a;
  950. if (u) throw s;
  951. return v(s), a;
  952. };
  953. }, 60928: function(_, t, e) {
  954. var n = e(77831).IteratorPrototype, v = e(93503), h = e(32500), p = e(44532), d = e(84922), a = function() {
  955. return this;
  956. };
  957. _.exports = function(s, u, f, l) {
  958. var o = u + " Iterator";
  959. return s.prototype = v(n, { next: h(+!l, f) }), p(s, o, !1, !0), d[o] = a, s;
  960. };
  961. }, 13759: function(_, t, e) {
  962. var n = e(50791), v = e(9093), h = e(70852), p = e(84521), d = e(794), a = e(60928), s = e(1074), u = e(482), f = e(44532), l = e(45840), o = e(35065), r = e(19517), i = e(84922), c = e(77831), m = p.PROPER, y = p.CONFIGURABLE, g = c.IteratorPrototype, b = c.BUGGY_SAFARI_ITERATORS, w = r("iterator"), C = "keys", S = "values", j = "entries", E = function() {
  963. return this;
  964. };
  965. _.exports = function(x, k, I, M, T, O, L) {
  966. a(I, k, M);
  967. var N, H, q, F = function(A) {
  968. if (A === T && z) return z;
  969. if (!b && A in P) return P[A];
  970. switch (A) {
  971. case C:
  972. case S:
  973. case j:
  974. return function() {
  975. return new I(this, A);
  976. };
  977. }
  978. return function() {
  979. return new I(this);
  980. };
  981. }, U = k + " Iterator", Y = !1, P = x.prototype, D = P[w] || P["@@iterator"] || T && P[T], z = !b && D || F(T), R = k == "Array" && P.entries || D;
  982. if (R && (N = s(R.call(new x()))) !== Object.prototype && N.next && (h || s(N) === g || (u ? u(N, g) : d(N[w]) || o(N, w, E)), f(N, U, !0, !0), h && (i[U] = E)), m && T == S && D && D.name !== S && (!h && y ? l(P, "name", S) : (Y = !0, z = function() {
  983. return v(D, this);
  984. })), T) if (H = { values: F(S), keys: O ? z : F(C), entries: F(j) }, L) for (q in H) (b || Y || !(q in P)) && o(P, q, H[q]);
  985. else n({ target: k, proto: !0, forced: b || Y }, H);
  986. return h && !L || P[w] === z || o(P, w, z, { name: T }), i[k] = z, H;
  987. };
  988. }, 77831: function(_, t, e) {
  989. var n, v, h, p = e(75834), d = e(794), a = e(8148), s = e(93503), u = e(1074), f = e(35065), l = e(19517), o = e(70852), r = l("iterator"), i = !1;
  990. [].keys && ("next" in (h = [].keys()) ? (v = u(u(h))) !== Object.prototype && (n = v) : i = !0), !a(n) || p(function() {
  991. var c = {};
  992. return n[r].call(c) !== c;
  993. }) ? n = {} : o && (n = s(n)), d(n[r]) || f(n, r, function() {
  994. return this;
  995. }), _.exports = { IteratorPrototype: n, BUGGY_SAFARI_ITERATORS: i };
  996. }, 84922: function(_) {
  997. _.exports = {};
  998. }, 15050: function(_, t, e) {
  999. var n = e(24431);
  1000. _.exports = function(v) {
  1001. return n(v.length);
  1002. };
  1003. }, 40846: function(_, t, e) {
  1004. var n = e(90838), v = e(75834), h = e(794), p = e(14434), d = e(13873), a = e(84521).CONFIGURABLE, s = e(92355), u = e(56113), f = u.enforce, l = u.get, o = String, r = Object.defineProperty, i = n("".slice), c = n("".replace), m = n([].join), y = d && !v(function() {
  1005. return r(function() {
  1006. }, "length", { value: 8 }).length !== 8;
  1007. }), g = String(String).split("String"), b = _.exports = function(w, C, S) {
  1008. i(o(C), 0, 7) === "Symbol(" && (C = "[" + c(o(C), /^Symbol\(([^)]*)\)/, "$1") + "]"), S && S.getter && (C = "get " + C), S && S.setter && (C = "set " + C), (!p(w, "name") || a && w.name !== C) && (d ? r(w, "name", { value: C, configurable: !0 }) : w.name = C), y && S && p(S, "arity") && w.length !== S.arity && r(w, "length", { value: S.arity });
  1009. try {
  1010. S && p(S, "constructor") && S.constructor ? d && r(w, "prototype", { writable: !1 }) : w.prototype && (w.prototype = void 0);
  1011. } catch (E) {
  1012. }
  1013. var j = f(w);
  1014. return p(j, "source") || (j.source = m(g, typeof C == "string" ? C : "")), w;
  1015. };
  1016. Function.prototype.toString = b(function() {
  1017. return h(this) && l(this).source || s(this);
  1018. }, "toString");
  1019. }, 43932: function(_) {
  1020. var t = Math.ceil, e = Math.floor;
  1021. _.exports = Math.trunc || function(n) {
  1022. var v = +n;
  1023. return (v > 0 ? e : t)(v);
  1024. };
  1025. }, 93503: function(_, t, e) {
  1026. var n, v = e(52313), h = e(5770), p = e(64456), d = e(48889), a = e(36249), s = e(15192), u = e(85475)("IE_PROTO"), f = function() {
  1027. }, l = function(i) {
  1028. return "<script>" + i + "<\/script>";
  1029. }, o = function(i) {
  1030. i.write(l("")), i.close();
  1031. var c = i.parentWindow.Object;
  1032. return i = null, c;
  1033. }, r = function() {
  1034. try {
  1035. n = new ActiveXObject("htmlfile");
  1036. } catch (y) {
  1037. }
  1038. var i, c;
  1039. r = typeof document != "undefined" ? document.domain && n ? o(n) : ((c = s("iframe")).style.display = "none", a.appendChild(c), c.src = "javascript:", (i = c.contentWindow.document).open(), i.write(l("document.F=Object")), i.close(), i.F) : o(n);
  1040. for (var m = p.length; m--; ) delete r.prototype[p[m]];
  1041. return r();
  1042. };
  1043. d[u] = !0, _.exports = Object.create || function(i, c) {
  1044. var m;
  1045. return i !== null ? (f.prototype = v(i), m = new f(), f.prototype = null, m[u] = i) : m = r(), c === void 0 ? m : h.f(m, c);
  1046. };
  1047. }, 5770: function(_, t, e) {
  1048. var n = e(13873), v = e(63142), h = e(73252), p = e(52313), d = e(98651), a = e(3385);
  1049. t.f = n && !v ? Object.defineProperties : function(s, u) {
  1050. p(s);
  1051. for (var f, l = d(u), o = a(u), r = o.length, i = 0; r > i; ) h.f(s, f = o[i++], l[f]);
  1052. return s;
  1053. };
  1054. }, 73252: function(_, t, e) {
  1055. var n = e(13873), v = e(12816), h = e(63142), p = e(52313), d = e(43836), a = TypeError, s = Object.defineProperty, u = Object.getOwnPropertyDescriptor;
  1056. t.f = n ? h ? function(f, l, o) {
  1057. if (p(f), l = d(l), p(o), typeof f == "function" && l === "prototype" && "value" in o && "writable" in o && !o.writable) {
  1058. var r = u(f, l);
  1059. r && r.writable && (f[l] = o.value, o = { configurable: "configurable" in o ? o.configurable : r.configurable, enumerable: "enumerable" in o ? o.enumerable : r.enumerable, writable: !1 });
  1060. }
  1061. return s(f, l, o);
  1062. } : s : function(f, l, o) {
  1063. if (p(f), l = d(l), p(o), v) try {
  1064. return s(f, l, o);
  1065. } catch (r) {
  1066. }
  1067. if ("get" in o || "set" in o) throw a("Accessors not supported");
  1068. return "value" in o && (f[l] = o.value), f;
  1069. };
  1070. }, 36999: function(_, t, e) {
  1071. var n = e(13873), v = e(9093), h = e(33244), p = e(32500), d = e(98651), a = e(43836), s = e(14434), u = e(12816), f = Object.getOwnPropertyDescriptor;
  1072. t.f = n ? f : function(l, o) {
  1073. if (l = d(l), o = a(o), u) try {
  1074. return f(l, o);
  1075. } catch (r) {
  1076. }
  1077. if (s(l, o)) return p(!v(h.f, l, o), l[o]);
  1078. };
  1079. }, 53305: function(_, t, e) {
  1080. var n = e(6285), v = e(98651), h = e(7792).f, p = e(57652), d = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
  1081. _.exports.f = function(a) {
  1082. return d && n(a) == "Window" ? function(s) {
  1083. try {
  1084. return h(s);
  1085. } catch (u) {
  1086. return p(d);
  1087. }
  1088. }(a) : h(v(a));
  1089. };
  1090. }, 7792: function(_, t, e) {
  1091. var n = e(84729), v = e(64456).concat("length", "prototype");
  1092. t.f = Object.getOwnPropertyNames || function(h) {
  1093. return n(h, v);
  1094. };
  1095. }, 23953: function(_, t) {
  1096. t.f = Object.getOwnPropertySymbols;
  1097. }, 1074: function(_, t, e) {
  1098. var n = e(14434), v = e(794), h = e(68488), p = e(85475), d = e(27259), a = p("IE_PROTO"), s = Object, u = s.prototype;
  1099. _.exports = d ? s.getPrototypeOf : function(f) {
  1100. var l = h(f);
  1101. if (n(l, a)) return l[a];
  1102. var o = l.constructor;
  1103. return v(o) && l instanceof o ? o.prototype : l instanceof s ? u : null;
  1104. };
  1105. }, 54671: function(_, t, e) {
  1106. var n = e(90838);
  1107. _.exports = n({}.isPrototypeOf);
  1108. }, 84729: function(_, t, e) {
  1109. var n = e(90838), v = e(14434), h = e(98651), p = e(79327).indexOf, d = e(48889), a = n([].push);
  1110. _.exports = function(s, u) {
  1111. var f, l = h(s), o = 0, r = [];
  1112. for (f in l) !v(d, f) && v(l, f) && a(r, f);
  1113. for (; u.length > o; ) v(l, f = u[o++]) && (~p(r, f) || a(r, f));
  1114. return r;
  1115. };
  1116. }, 3385: function(_, t, e) {
  1117. var n = e(84729), v = e(64456);
  1118. _.exports = Object.keys || function(h) {
  1119. return n(h, v);
  1120. };
  1121. }, 33244: function(_, t) {
  1122. var e = {}.propertyIsEnumerable, n = Object.getOwnPropertyDescriptor, v = n && !e.call({ 1: 2 }, 1);
  1123. t.f = v ? function(h) {
  1124. var p = n(this, h);
  1125. return !!p && p.enumerable;
  1126. } : e;
  1127. }, 482: function(_, t, e) {
  1128. var n = e(47448), v = e(52313), h = e(75839);
  1129. _.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
  1130. var p, d = !1, a = {};
  1131. try {
  1132. (p = n(Object.prototype, "__proto__", "set"))(a, []), d = a instanceof Array;
  1133. } catch (s) {
  1134. }
  1135. return function(s, u) {
  1136. return v(s), h(u), d ? p(s, u) : s.__proto__ = u, s;
  1137. };
  1138. }() : void 0);
  1139. }, 57555: function(_, t, e) {
  1140. var n = e(6424), v = e(8652);
  1141. _.exports = n ? {}.toString : function() {
  1142. return "[object " + v(this) + "]";
  1143. };
  1144. }, 82472: function(_, t, e) {
  1145. var n = e(9093), v = e(794), h = e(8148), p = TypeError;
  1146. _.exports = function(d, a) {
  1147. var s, u;
  1148. if (a === "string" && v(s = d.toString) && !h(u = n(s, d)) || v(s = d.valueOf) && !h(u = n(s, d)) || a !== "string" && v(s = d.toString) && !h(u = n(s, d))) return u;
  1149. throw p("Can't convert object to primitive value");
  1150. };
  1151. }, 86671: function(_, t, e) {
  1152. var n = e(98945), v = e(90838), h = e(7792), p = e(23953), d = e(52313), a = v([].concat);
  1153. _.exports = n("Reflect", "ownKeys") || function(s) {
  1154. var u = h.f(d(s)), f = p.f;
  1155. return f ? a(u, f(s)) : u;
  1156. };
  1157. }, 31116: function(_, t, e) {
  1158. var n = e(37042);
  1159. _.exports = n;
  1160. }, 60265: function(_, t, e) {
  1161. var n = e(8140), v = TypeError;
  1162. _.exports = function(h) {
  1163. if (n(h)) throw v("Can't call method on " + h);
  1164. return h;
  1165. };
  1166. }, 44532: function(_, t, e) {
  1167. var n = e(73252).f, v = e(14434), h = e(19517)("toStringTag");
  1168. _.exports = function(p, d, a) {
  1169. p && !a && (p = p.prototype), p && !v(p, h) && n(p, h, { configurable: !0, value: d });
  1170. };
  1171. }, 85475: function(_, t, e) {
  1172. var n = e(95138), v = e(15257), h = n("keys");
  1173. _.exports = function(p) {
  1174. return h[p] || (h[p] = v(p));
  1175. };
  1176. }, 45752: function(_, t, e) {
  1177. var n = e(37042), v = e(25379), h = "__core-js_shared__", p = n[h] || v(h, {});
  1178. _.exports = p;
  1179. }, 95138: function(_, t, e) {
  1180. var n = e(70852), v = e(45752);
  1181. (_.exports = function(h, p) {
  1182. return v[h] || (v[h] = p !== void 0 ? p : {});
  1183. })("versions", []).push({ version: "3.28.0", mode: n ? "pure" : "global", copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE", source: "https://github.com/zloirock/core-js" });
  1184. }, 41397: function(_, t, e) {
  1185. var n = e(90838), v = e(27876), h = e(63046), p = e(60265), d = n("".charAt), a = n("".charCodeAt), s = n("".slice), u = function(f) {
  1186. return function(l, o) {
  1187. var r, i, c = h(p(l)), m = v(o), y = c.length;
  1188. return 0 > m || m >= y ? f ? "" : void 0 : 55296 > (r = a(c, m)) || r > 56319 || m + 1 === y || 56320 > (i = a(c, m + 1)) || i > 57343 ? f ? d(c, m) : r : f ? s(c, m, m + 2) : i - 56320 + (r - 55296 << 10) + 65536;
  1189. };
  1190. };
  1191. _.exports = { codeAt: u(!1), charAt: u(!0) };
  1192. }, 73800: function(_, t, e) {
  1193. var n = e(65190), v = e(75834);
  1194. _.exports = !!Object.getOwnPropertySymbols && !v(function() {
  1195. var h = Symbol();
  1196. return !String(h) || !(Object(h) instanceof Symbol) || !Symbol.sham && n && 41 > n;
  1197. });
  1198. }, 13829: function(_, t, e) {
  1199. var n = e(9093), v = e(98945), h = e(19517), p = e(35065);
  1200. _.exports = function() {
  1201. var d = v("Symbol"), a = d && d.prototype, s = a && a.valueOf, u = h("toPrimitive");
  1202. a && !a[u] && p(a, u, function(f) {
  1203. return n(s, this);
  1204. }, { arity: 1 });
  1205. };
  1206. }, 31948: function(_, t, e) {
  1207. var n = e(73800);
  1208. _.exports = n && !!Symbol.for && !!Symbol.keyFor;
  1209. }, 10586: function(_, t, e) {
  1210. var n = e(27876), v = Math.max, h = Math.min;
  1211. _.exports = function(p, d) {
  1212. var a = n(p);
  1213. return 0 > a ? v(a + d, 0) : h(a, d);
  1214. };
  1215. }, 98651: function(_, t, e) {
  1216. var n = e(25049), v = e(60265);
  1217. _.exports = function(h) {
  1218. return n(v(h));
  1219. };
  1220. }, 27876: function(_, t, e) {
  1221. var n = e(43932);
  1222. _.exports = function(v) {
  1223. var h = +v;
  1224. return h != h || h === 0 ? 0 : n(h);
  1225. };
  1226. }, 24431: function(_, t, e) {
  1227. var n = e(27876), v = Math.min;
  1228. _.exports = function(h) {
  1229. return h > 0 ? v(n(h), 9007199254740991) : 0;
  1230. };
  1231. }, 68488: function(_, t, e) {
  1232. var n = e(60265), v = Object;
  1233. _.exports = function(h) {
  1234. return v(n(h));
  1235. };
  1236. }, 11261: function(_, t, e) {
  1237. var n = e(9093), v = e(8148), h = e(88253), p = e(20156), d = e(82472), a = e(19517), s = TypeError, u = a("toPrimitive");
  1238. _.exports = function(f, l) {
  1239. if (!v(f) || h(f)) return f;
  1240. var o, r = p(f, u);
  1241. if (r) {
  1242. if (l === void 0 && (l = "default"), o = n(r, f, l), !v(o) || h(o)) return o;
  1243. throw s("Can't convert object to primitive value");
  1244. }
  1245. return l === void 0 && (l = "number"), d(f, l);
  1246. };
  1247. }, 43836: function(_, t, e) {
  1248. var n = e(11261), v = e(88253);
  1249. _.exports = function(h) {
  1250. var p = n(h, "string");
  1251. return v(p) ? p : p + "";
  1252. };
  1253. }, 6424: function(_, t, e) {
  1254. var n = {};
  1255. n[e(19517)("toStringTag")] = "z", _.exports = String(n) === "[object z]";
  1256. }, 63046: function(_, t, e) {
  1257. var n = e(8652), v = String;
  1258. _.exports = function(h) {
  1259. if (n(h) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  1260. return v(h);
  1261. };
  1262. }, 98418: function(_) {
  1263. var t = String;
  1264. _.exports = function(e) {
  1265. try {
  1266. return t(e);
  1267. } catch (n) {
  1268. return "Object";
  1269. }
  1270. };
  1271. }, 15257: function(_, t, e) {
  1272. var n = e(90838), v = 0, h = Math.random(), p = n(1 .toString);
  1273. _.exports = function(d) {
  1274. return "Symbol(" + (d === void 0 ? "" : d) + ")_" + p(++v + h, 36);
  1275. };
  1276. }, 57982: function(_, t, e) {
  1277. var n = e(73800);
  1278. _.exports = n && !Symbol.sham && typeof Symbol.iterator == "symbol";
  1279. }, 63142: function(_, t, e) {
  1280. var n = e(13873), v = e(75834);
  1281. _.exports = n && v(function() {
  1282. return Object.defineProperty(function() {
  1283. }, "prototype", { value: 42, writable: !1 }).prototype != 42;
  1284. });
  1285. }, 95473: function(_, t, e) {
  1286. var n = e(37042), v = e(794), h = n.WeakMap;
  1287. _.exports = v(h) && /native code/.test(String(h));
  1288. }, 89633: function(_, t, e) {
  1289. var n = e(31116), v = e(14434), h = e(96767), p = e(73252).f;
  1290. _.exports = function(d) {
  1291. var a = n.Symbol || (n.Symbol = {});
  1292. v(a, d) || p(a, d, { value: h.f(d) });
  1293. };
  1294. }, 96767: function(_, t, e) {
  1295. var n = e(19517);
  1296. t.f = n;
  1297. }, 19517: function(_, t, e) {
  1298. var n = e(37042), v = e(95138), h = e(14434), p = e(15257), d = e(73800), a = e(57982), s = n.Symbol, u = v("wks"), f = a ? s.for || s : s && s.withoutSetter || p;
  1299. _.exports = function(l) {
  1300. return h(u, l) || (u[l] = d && h(s, l) ? s[l] : f("Symbol." + l)), u[l];
  1301. };
  1302. }, 54166: function(_, t, e) {
  1303. var n = e(50791), v = e(75834), h = e(36222), p = e(8148), d = e(68488), a = e(15050), s = e(39505), u = e(89476), f = e(6429), l = e(63833), o = e(19517), r = e(65190), i = o("isConcatSpreadable"), c = r >= 51 || !v(function() {
  1304. var y = [];
  1305. return y[i] = !1, y.concat()[0] !== y;
  1306. }), m = function(y) {
  1307. if (!p(y)) return !1;
  1308. var g = y[i];
  1309. return g !== void 0 ? !!g : h(y);
  1310. };
  1311. n({ target: "Array", proto: !0, arity: 1, forced: !c || !l("concat") }, { concat: function(y) {
  1312. var g, b, w, C, S, j = d(this), E = f(j, 0), x = 0;
  1313. for (g = -1, w = arguments.length; w > g; g++) if (m(S = g === -1 ? j : arguments[g])) for (C = a(S), s(x + C), b = 0; C > b; b++, x++) b in S && u(E, x, S[b]);
  1314. else s(x + 1), u(E, x++, S);
  1315. return E.length = x, E;
  1316. } });
  1317. }, 22513: function(_, t, e) {
  1318. var n = e(50791), v = e(56881).findIndex, h = e(15179), p = "findIndex", d = !0;
  1319. p in [] && Array(1).findIndex(function() {
  1320. d = !1;
  1321. }), n({ target: "Array", proto: !0, forced: d }, { findIndex: function(a) {
  1322. return v(this, a, arguments.length > 1 ? arguments[1] : void 0);
  1323. } }), h(p);
  1324. }, 70057: function(_, t, e) {
  1325. var n = e(50791), v = e(92707);
  1326. n({ target: "Array", stat: !0, forced: !e(7581)(function(h) {
  1327. Array.from(h);
  1328. }) }, { from: v });
  1329. }, 67507: function(_, t, e) {
  1330. var n = e(50791), v = e(98945), h = e(55101), p = e(9093), d = e(90838), a = e(75834), s = e(794), u = e(88253), f = e(54832), l = e(6693), o = e(73800), r = String, i = v("JSON", "stringify"), c = d(/./.exec), m = d("".charAt), y = d("".charCodeAt), g = d("".replace), b = d(1 .toString), w = /[\uD800-\uDFFF]/g, C = /^[\uD800-\uDBFF]$/, S = /^[\uDC00-\uDFFF]$/, j = !o || a(function() {
  1331. var I = v("Symbol")();
  1332. return i([I]) != "[null]" || i({ a: I }) != "{}" || i(Object(I)) != "{}";
  1333. }), E = a(function() {
  1334. return i("\uDF06\uD834") !== '"\\udf06\\ud834"' || i("\uDEAD") !== '"\\udead"';
  1335. }), x = function(I, M) {
  1336. var T = f(arguments), O = l(M);
  1337. if (s(O) || I !== void 0 && !u(I)) return T[1] = function(L, N) {
  1338. if (s(O) && (N = p(O, this, r(L), N)), !u(N)) return N;
  1339. }, h(i, null, T);
  1340. }, k = function(I, M, T) {
  1341. var O = m(T, M - 1), L = m(T, M + 1);
  1342. return c(C, I) && !c(S, L) || c(S, I) && !c(C, O) ? "\\u" + b(y(I, 0), 16) : I;
  1343. };
  1344. i && n({ target: "JSON", stat: !0, arity: 3, forced: j || E }, { stringify: function(I, M, T) {
  1345. var O = f(arguments), L = h(j ? x : i, null, O);
  1346. return E && typeof L == "string" ? g(L, w, k) : L;
  1347. } });
  1348. }, 90217: function(_, t, e) {
  1349. var n = e(37042);
  1350. e(44532)(n.JSON, "JSON", !0);
  1351. }, 73477: function(_, t, e) {
  1352. e(44532)(Math, "Math", !0);
  1353. }, 30165: function(_, t, e) {
  1354. var n = e(50791), v = e(73800), h = e(75834), p = e(23953), d = e(68488);
  1355. n({ target: "Object", stat: !0, forced: !v || h(function() {
  1356. p.f(1);
  1357. }) }, { getOwnPropertySymbols: function(a) {
  1358. var s = p.f;
  1359. return s ? s(d(a)) : [];
  1360. } });
  1361. }, 32044: function(_, t, e) {
  1362. var n = e(6424), v = e(35065), h = e(57555);
  1363. n || v(Object.prototype, "toString", h, { unsafe: !0 });
  1364. }, 93697: function(_, t, e) {
  1365. var n = e(50791), v = e(37042), h = e(44532);
  1366. n({ global: !0 }, { Reflect: {} }), h(v.Reflect, "Reflect", !0);
  1367. }, 52867: function(_, t, e) {
  1368. var n = e(41397).charAt, v = e(63046), h = e(56113), p = e(13759), d = e(17427), a = "String Iterator", s = h.set, u = h.getterFor(a);
  1369. p(String, "String", function(f) {
  1370. s(this, { type: a, string: v(f), index: 0 });
  1371. }, function() {
  1372. var f, l = u(this), o = l.string, r = l.index;
  1373. return o.length > r ? (f = n(o, r), l.index += f.length, d(f, !1)) : d(void 0, !0);
  1374. });
  1375. }, 28424: function(_, t, e) {
  1376. e(89633)("asyncIterator");
  1377. }, 9656: function(_, t, e) {
  1378. var n = e(50791), v = e(37042), h = e(9093), p = e(90838), d = e(70852), a = e(13873), s = e(73800), u = e(75834), f = e(14434), l = e(54671), o = e(52313), r = e(98651), i = e(43836), c = e(63046), m = e(32500), y = e(93503), g = e(3385), b = e(7792), w = e(53305), C = e(23953), S = e(36999), j = e(73252), E = e(5770), x = e(33244), k = e(35065), I = e(97548), M = e(95138), T = e(85475), O = e(48889), L = e(15257), N = e(19517), H = e(96767), q = e(89633), F = e(13829), U = e(44532), Y = e(56113), P = e(56881).forEach, D = T("hidden"), z = "Symbol", R = Y.set, A = Y.getterFor(z), B = Object.prototype, J = v.Symbol, W = J && J.prototype, Q = v.TypeError, te = v.QObject, le = S.f, ne = j.f, fe = w.f, ie = x.f, be = p([].push), ae = M("symbols"), ce = M("op-symbols"), Ie = M("wks"), he = !te || !te.prototype || !te.prototype.findChild, me = a && u(function() {
  1379. return y(ne({}, "a", { get: function() {
  1380. return ne(this, "a", { value: 7 }).a;
  1381. } })).a != 7;
  1382. }) ? function(V, G, K) {
  1383. var $ = le(B, G);
  1384. $ && delete B[G], ne(V, G, K), $ && V !== B && ne(B, G, $);
  1385. } : ne, ve = function(V, G) {
  1386. var K = ae[V] = y(W);
  1387. return R(K, { type: z, tag: V, description: G }), a || (K.description = G), K;
  1388. }, pe = function(V, G, K) {
  1389. V === B && pe(ce, G, K), o(V);
  1390. var $ = i(G);
  1391. return o(K), f(ae, $) ? (K.enumerable ? (f(V, D) && V[D][$] && (V[D][$] = !1), K = y(K, { enumerable: m(0, !1) })) : (f(V, D) || ne(V, D, m(1, {})), V[D][$] = !0), me(V, $, K)) : ne(V, $, K);
  1392. }, ge = function(V, G) {
  1393. o(V);
  1394. var K = r(G), $ = g(K).concat(Ce(K));
  1395. return P($, function(oe) {
  1396. a && !h(ye, K, oe) || pe(V, oe, K[oe]);
  1397. }), V;
  1398. }, ye = function(V) {
  1399. var G = i(V), K = h(ie, this, G);
  1400. return !(this === B && f(ae, G) && !f(ce, G)) && (!(K || !f(this, G) || !f(ae, G) || f(this, D) && this[D][G]) || K);
  1401. }, we = function(V, G) {
  1402. var K = r(V), $ = i(G);
  1403. if (K !== B || !f(ae, $) || f(ce, $)) {
  1404. var oe = le(K, $);
  1405. return !oe || !f(ae, $) || f(K, D) && K[D][$] || (oe.enumerable = !0), oe;
  1406. }
  1407. }, Se = function(V) {
  1408. var G = fe(r(V)), K = [];
  1409. return P(G, function($) {
  1410. f(ae, $) || f(O, $) || be(K, $);
  1411. }), K;
  1412. }, Ce = function(V) {
  1413. var G = V === B, K = fe(G ? ce : r(V)), $ = [];
  1414. return P(K, function(oe) {
  1415. !f(ae, oe) || G && !f(B, oe) || be($, ae[oe]);
  1416. }), $;
  1417. };
  1418. s || (J = function() {
  1419. if (l(W, this)) throw Q("Symbol is not a constructor");
  1420. var V = arguments.length && arguments[0] !== void 0 ? c(arguments[0]) : void 0, G = L(V), K = function($) {
  1421. this === B && h(K, ce, $), f(this, D) && f(this[D], G) && (this[D][G] = !1), me(this, G, m(1, $));
  1422. };
  1423. return a && he && me(B, G, { configurable: !0, set: K }), ve(G, V);
  1424. }, k(W = J.prototype, "toString", function() {
  1425. return A(this).tag;
  1426. }), k(J, "withoutSetter", function(V) {
  1427. return ve(L(V), V);
  1428. }), x.f = ye, j.f = pe, E.f = ge, S.f = we, b.f = w.f = Se, C.f = Ce, H.f = function(V) {
  1429. return ve(N(V), V);
  1430. }, a && (I(W, "description", { configurable: !0, get: function() {
  1431. return A(this).description;
  1432. } }), d || k(B, "propertyIsEnumerable", ye, { unsafe: !0 }))), n({ global: !0, constructor: !0, wrap: !0, forced: !s, sham: !s }, { Symbol: J }), P(g(Ie), function(V) {
  1433. q(V);
  1434. }), n({ target: z, stat: !0, forced: !s }, { useSetter: function() {
  1435. he = !0;
  1436. }, useSimple: function() {
  1437. he = !1;
  1438. } }), n({ target: "Object", stat: !0, forced: !s, sham: !a }, { create: function(V, G) {
  1439. return G === void 0 ? y(V) : ge(y(V), G);
  1440. }, defineProperty: pe, defineProperties: ge, getOwnPropertyDescriptor: we }), n({ target: "Object", stat: !0, forced: !s }, { getOwnPropertyNames: Se }), F(), U(J, z), O[D] = !0;
  1441. }, 64514: function(_, t, e) {
  1442. var n = e(50791), v = e(13873), h = e(37042), p = e(90838), d = e(14434), a = e(794), s = e(54671), u = e(63046), f = e(97548), l = e(58392), o = h.Symbol, r = o && o.prototype;
  1443. if (v && a(o) && (!("description" in r) || o().description !== void 0)) {
  1444. var i = {}, c = function() {
  1445. var S = 1 > arguments.length || arguments[0] === void 0 ? void 0 : u(arguments[0]), j = s(r, this) ? new o(S) : S === void 0 ? o() : o(S);
  1446. return S === "" && (i[j] = !0), j;
  1447. };
  1448. l(c, o), c.prototype = r, r.constructor = c;
  1449. var m = String(o("test")) == "Symbol(test)", y = p(r.valueOf), g = p(r.toString), b = /^Symbol\((.*)\)[^)]+$/, w = p("".replace), C = p("".slice);
  1450. f(r, "description", { configurable: !0, get: function() {
  1451. var S = y(this);
  1452. if (d(i, S)) return "";
  1453. var j = g(S), E = m ? C(j, 7, -1) : w(j, b, "$1");
  1454. return E === "" ? void 0 : E;
  1455. } }), n({ global: !0, constructor: !0, forced: !0 }, { Symbol: c });
  1456. }
  1457. }, 56202: function(_, t, e) {
  1458. var n = e(50791), v = e(98945), h = e(14434), p = e(63046), d = e(95138), a = e(31948), s = d("string-to-symbol-registry"), u = d("symbol-to-string-registry");
  1459. n({ target: "Symbol", stat: !0, forced: !a }, { for: function(f) {
  1460. var l = p(f);
  1461. if (h(s, l)) return s[l];
  1462. var o = v("Symbol")(l);
  1463. return s[l] = o, u[o] = l, o;
  1464. } });
  1465. }, 30733: function(_, t, e) {
  1466. e(89633)("hasInstance");
  1467. }, 40327: function(_, t, e) {
  1468. e(89633)("isConcatSpreadable");
  1469. }, 53639: function(_, t, e) {
  1470. e(89633)("iterator");
  1471. }, 95661: function(_, t, e) {
  1472. e(9656), e(56202), e(71940), e(67507), e(30165);
  1473. }, 71940: function(_, t, e) {
  1474. var n = e(50791), v = e(14434), h = e(88253), p = e(98418), d = e(95138), a = e(31948), s = d("symbol-to-string-registry");
  1475. n({ target: "Symbol", stat: !0, forced: !a }, { keyFor: function(u) {
  1476. if (!h(u)) throw TypeError(p(u) + " is not a symbol");
  1477. if (v(s, u)) return s[u];
  1478. } });
  1479. }, 7290: function(_, t, e) {
  1480. e(89633)("matchAll");
  1481. }, 6147: function(_, t, e) {
  1482. e(89633)("match");
  1483. }, 95122: function(_, t, e) {
  1484. e(89633)("replace");
  1485. }, 61322: function(_, t, e) {
  1486. e(89633)("search");
  1487. }, 39605: function(_, t, e) {
  1488. e(89633)("species");
  1489. }, 49341: function(_, t, e) {
  1490. e(89633)("split");
  1491. }, 28809: function(_, t, e) {
  1492. var n = e(89633), v = e(13829);
  1493. n("toPrimitive"), v();
  1494. }, 82658: function(_, t, e) {
  1495. var n = e(98945), v = e(89633), h = e(44532);
  1496. v("toStringTag"), h(n("Symbol"), "Symbol");
  1497. }, 43967: function(_, t, e) {
  1498. e(89633)("unscopables");
  1499. }, 690: function(_, t, e) {
  1500. _.exports = e(26002).polyfill();
  1501. }, 26002: function(_, t, e) {
  1502. _.exports = function() {
  1503. function n(P) {
  1504. return typeof P == "function";
  1505. }
  1506. var v = Array.isArray ? Array.isArray : function(P) {
  1507. return Object.prototype.toString.call(P) === "[object Array]";
  1508. }, h = 0, p = void 0, d = void 0, a = function(P, D) {
  1509. i[h] = P, i[h + 1] = D, (h += 2) === 2 && (d ? d(c) : w());
  1510. }, s = typeof window != "undefined" ? window : void 0, u = s || {}, f = u.MutationObserver || u.WebKitMutationObserver, l = typeof self == "undefined" && typeof process != "undefined" && {}.toString.call(process) === "[object process]", o = typeof Uint8ClampedArray != "undefined" && typeof importScripts != "undefined" && typeof MessageChannel != "undefined";
  1511. function r() {
  1512. var P = setTimeout;
  1513. return function() {
  1514. return P(c, 1);
  1515. };
  1516. }
  1517. var i = new Array(1e3);
  1518. function c() {
  1519. for (var P = 0; h > P; P += 2) (0, i[P])(i[P + 1]), i[P] = void 0, i[P + 1] = void 0;
  1520. h = 0;
  1521. }
  1522. var m, y, g, b, w = void 0;
  1523. function C(P, D) {
  1524. var z = this, R = new this.constructor(E);
  1525. R[j] === void 0 && F(R);
  1526. var A = z._state;
  1527. if (A) {
  1528. var B = arguments[A - 1];
  1529. a(function() {
  1530. return H(A, R, B, z._result);
  1531. });
  1532. } else L(z, R, P, D);
  1533. return R;
  1534. }
  1535. function S(P) {
  1536. if (P && typeof P == "object" && P.constructor === this) return P;
  1537. var D = new this(E);
  1538. return I(D, P), D;
  1539. }
  1540. w = l ? function() {
  1541. return process.nextTick(c);
  1542. } : f ? (y = 0, g = new f(c), b = document.createTextNode(""), g.observe(b, { characterData: !0 }), function() {
  1543. b.data = y = ++y % 2;
  1544. }) : o ? ((m = new MessageChannel()).port1.onmessage = c, function() {
  1545. return m.port2.postMessage(0);
  1546. }) : s === void 0 ? function() {
  1547. try {
  1548. var P = Function("return this")().require("vertx");
  1549. return (p = P.runOnLoop || P.runOnContext) !== void 0 ? function() {
  1550. p(c);
  1551. } : r();
  1552. } catch (D) {
  1553. return r();
  1554. }
  1555. }() : r();
  1556. var j = Math.random().toString(36).substring(2);
  1557. function E() {
  1558. }
  1559. var x = void 0;
  1560. function k(P, D, z) {
  1561. D.constructor === P.constructor && z === C && D.constructor.resolve === S ? function(R, A) {
  1562. A._state === 1 ? T(R, A._result) : A._state === 2 ? O(R, A._result) : L(A, void 0, function(B) {
  1563. return I(R, B);
  1564. }, function(B) {
  1565. return O(R, B);
  1566. });
  1567. }(P, D) : z === void 0 ? T(P, D) : n(z) ? function(R, A, B) {
  1568. a(function(J) {
  1569. var W = !1, Q = function(te, le, ne, fe) {
  1570. try {
  1571. te.call(le, function(ie) {
  1572. W || (W = !0, A !== ie ? I(J, ie) : T(J, ie));
  1573. }, function(ie) {
  1574. W || (W = !0, O(J, ie));
  1575. });
  1576. } catch (ie) {
  1577. return ie;
  1578. }
  1579. }(B, A);
  1580. !W && Q && (W = !0, O(J, Q));
  1581. }, R);
  1582. }(P, D, z) : T(P, D);
  1583. }
  1584. function I(P, D) {
  1585. if (P === D) O(P, new TypeError("You cannot resolve a promise with itself"));
  1586. else if (A = typeof (R = D), R === null || A !== "object" && A !== "function") T(P, D);
  1587. else {
  1588. var z = void 0;
  1589. try {
  1590. z = D.then;
  1591. } catch (B) {
  1592. return void O(P, B);
  1593. }
  1594. k(P, D, z);
  1595. }
  1596. var R, A;
  1597. }
  1598. function M(P) {
  1599. P._onerror && P._onerror(P._result), N(P);
  1600. }
  1601. function T(P, D) {
  1602. P._state === x && (P._result = D, P._state = 1, P._subscribers.length !== 0 && a(N, P));
  1603. }
  1604. function O(P, D) {
  1605. P._state === x && (P._state = 2, P._result = D, a(M, P));
  1606. }
  1607. function L(P, D, z, R) {
  1608. var A = P._subscribers, B = A.length;
  1609. P._onerror = null, A[B] = D, A[B + 1] = z, A[B + 2] = R, B === 0 && P._state && a(N, P);
  1610. }
  1611. function N(P) {
  1612. var D = P._subscribers, z = P._state;
  1613. if (D.length !== 0) {
  1614. for (var R = void 0, A = void 0, B = P._result, J = 0; D.length > J; J += 3) A = D[J + z], (R = D[J]) ? H(z, R, A, B) : A(B);
  1615. P._subscribers.length = 0;
  1616. }
  1617. }
  1618. function H(P, D, z, R) {
  1619. var A = n(z), B = void 0, J = void 0, W = !0;
  1620. if (A) {
  1621. try {
  1622. B = z(R);
  1623. } catch (Q) {
  1624. W = !1, J = Q;
  1625. }
  1626. if (D === B) return void O(D, new TypeError("A promises callback cannot return that same promise."));
  1627. } else B = R;
  1628. D._state !== x || (A && W ? I(D, B) : W === !1 ? O(D, J) : P === 1 ? T(D, B) : P === 2 && O(D, B));
  1629. }
  1630. var q = 0;
  1631. function F(P) {
  1632. P[j] = q++, P._state = void 0, P._result = void 0, P._subscribers = [];
  1633. }
  1634. var U = function() {
  1635. function P(D, z) {
  1636. this._instanceConstructor = D, this.promise = new D(E), this.promise[j] || F(this.promise), v(z) ? (this.length = z.length, this._remaining = z.length, this._result = new Array(this.length), this.length === 0 ? T(this.promise, this._result) : (this.length = this.length || 0, this._enumerate(z), this._remaining === 0 && T(this.promise, this._result))) : O(this.promise, new Error("Array Methods must be provided an Array"));
  1637. }
  1638. return P.prototype._enumerate = function(D) {
  1639. for (var z = 0; this._state === x && D.length > z; z++) this._eachEntry(D[z], z);
  1640. }, P.prototype._eachEntry = function(D, z) {
  1641. var R = this._instanceConstructor, A = R.resolve;
  1642. if (A === S) {
  1643. var B = void 0, J = void 0, W = !1;
  1644. try {
  1645. B = D.then;
  1646. } catch (te) {
  1647. W = !0, J = te;
  1648. }
  1649. if (B === C && D._state !== x) this._settledAt(D._state, z, D._result);
  1650. else if (typeof B != "function") this._remaining--, this._result[z] = D;
  1651. else if (R === Y) {
  1652. var Q = new R(E);
  1653. W ? O(Q, J) : k(Q, D, B), this._willSettleAt(Q, z);
  1654. } else this._willSettleAt(new R(function(te) {
  1655. return te(D);
  1656. }), z);
  1657. } else this._willSettleAt(A(D), z);
  1658. }, P.prototype._settledAt = function(D, z, R) {
  1659. var A = this.promise;
  1660. A._state === x && (this._remaining--, D === 2 ? O(A, R) : this._result[z] = R), this._remaining === 0 && T(A, this._result);
  1661. }, P.prototype._willSettleAt = function(D, z) {
  1662. var R = this;
  1663. L(D, void 0, function(A) {
  1664. return R._settledAt(1, z, A);
  1665. }, function(A) {
  1666. return R._settledAt(2, z, A);
  1667. });
  1668. }, P;
  1669. }(), Y = function() {
  1670. function P(D) {
  1671. this[j] = q++, this._result = this._state = void 0, this._subscribers = [], E !== D && (typeof D != "function" && function() {
  1672. throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
  1673. }(), this instanceof P ? function(z, R) {
  1674. try {
  1675. R(function(A) {
  1676. I(z, A);
  1677. }, function(A) {
  1678. O(z, A);
  1679. });
  1680. } catch (A) {
  1681. O(z, A);
  1682. }
  1683. }(this, D) : function() {
  1684. throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
  1685. }());
  1686. }
  1687. return P.prototype.catch = function(D) {
  1688. return this.then(null, D);
  1689. }, P.prototype.finally = function(D) {
  1690. var z = this, R = z.constructor;
  1691. return n(D) ? z.then(function(A) {
  1692. return R.resolve(D()).then(function() {
  1693. return A;
  1694. });
  1695. }, function(A) {
  1696. return R.resolve(D()).then(function() {
  1697. throw A;
  1698. });
  1699. }) : z.then(D, D);
  1700. }, P;
  1701. }();
  1702. return Y.prototype.then = C, Y.all = function(P) {
  1703. return new U(this, P).promise;
  1704. }, Y.race = function(P) {
  1705. var D = this;
  1706. return v(P) ? new D(function(z, R) {
  1707. for (var A = P.length, B = 0; A > B; B++) D.resolve(P[B]).then(z, R);
  1708. }) : new D(function(z, R) {
  1709. return R(new TypeError("You must pass an array to race."));
  1710. });
  1711. }, Y.resolve = S, Y.reject = function(P) {
  1712. var D = new this(E);
  1713. return O(D, P), D;
  1714. }, Y._setScheduler = function(P) {
  1715. d = P;
  1716. }, Y._setAsap = function(P) {
  1717. a = P;
  1718. }, Y._asap = a, Y.polyfill = function() {
  1719. var P = void 0;
  1720. if (e.g !== void 0) P = e.g;
  1721. else if (typeof self != "undefined") P = self;
  1722. else try {
  1723. P = Function("return this")();
  1724. } catch (R) {
  1725. throw new Error("polyfill failed because global object is unavailable in this environment");
  1726. }
  1727. var D = P.Promise;
  1728. if (D) {
  1729. var z = null;
  1730. try {
  1731. z = Object.prototype.toString.call(D.resolve());
  1732. } catch (R) {
  1733. }
  1734. if (z === "[object Promise]" && !D.cast) return;
  1735. }
  1736. P.Promise = Y;
  1737. }, Y.Promise = Y, Y;
  1738. }();
  1739. }, 20255: function(_, t) {
  1740. Object.defineProperty(t, "__esModule", { value: !0 }), t.__classPrivateFieldIn = t.__classPrivateFieldSet = t.__classPrivateFieldGet = t.__importDefault = t.__importStar = t.__makeTemplateObject = t.__asyncValues = t.__asyncDelegator = t.__asyncGenerator = t.__await = t.__spreadArray = t.__spreadArrays = t.__spread = t.__read = t.__values = t.__exportStar = t.__createBinding = t.__generator = t.__awaiter = t.__metadata = t.__setFunctionName = t.__propKey = t.__runInitializers = t.__esDecorate = t.__param = t.__decorate = t.__rest = t.__assign = t.__extends = void 0;
  1741. var e = function(d, a) {
  1742. return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, u) {
  1743. s.__proto__ = u;
  1744. } || function(s, u) {
  1745. for (var f in u) Object.prototype.hasOwnProperty.call(u, f) && (s[f] = u[f]);
  1746. }, e(d, a);
  1747. };
  1748. function n(d) {
  1749. var a = typeof Symbol == "function" && Symbol.iterator, s = a && d[a], u = 0;
  1750. if (s) return s.call(d);
  1751. if (d && typeof d.length == "number") return { next: function() {
  1752. return d && u >= d.length && (d = void 0), { value: d && d[u++], done: !d };
  1753. } };
  1754. throw new TypeError(a ? "Object is not iterable." : "Symbol.iterator is not defined.");
  1755. }
  1756. function v(d, a) {
  1757. var s = typeof Symbol == "function" && d[Symbol.iterator];
  1758. if (!s) return d;
  1759. var u, f, l = s.call(d), o = [];
  1760. try {
  1761. for (; (a === void 0 || a-- > 0) && !(u = l.next()).done; ) o.push(u.value);
  1762. } catch (r) {
  1763. f = { error: r };
  1764. } finally {
  1765. try {
  1766. u && !u.done && (s = l.return) && s.call(l);
  1767. } finally {
  1768. if (f) throw f.error;
  1769. }
  1770. }
  1771. return o;
  1772. }
  1773. function h(d) {
  1774. return this instanceof h ? (this.v = d, this) : new h(d);
  1775. }
  1776. t.__extends = function(d, a) {
  1777. if (typeof a != "function" && a !== null) throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
  1778. function s() {
  1779. this.constructor = d;
  1780. }
  1781. e(d, a), d.prototype = a === null ? Object.create(a) : (s.prototype = a.prototype, new s());
  1782. }, t.__assign = function() {
  1783. return t.__assign = Object.assign || function(d) {
  1784. for (var a, s = 1, u = arguments.length; u > s; s++) for (var f in a = arguments[s]) Object.prototype.hasOwnProperty.call(a, f) && (d[f] = a[f]);
  1785. return d;
  1786. }, t.__assign.apply(this, arguments);
  1787. }, t.__rest = function(d, a) {
  1788. var s = {};
  1789. for (var u in d) Object.prototype.hasOwnProperty.call(d, u) && 0 > a.indexOf(u) && (s[u] = d[u]);
  1790. if (d != null && typeof Object.getOwnPropertySymbols == "function") {
  1791. var f = 0;
  1792. for (u = Object.getOwnPropertySymbols(d); u.length > f; f++) 0 > a.indexOf(u[f]) && Object.prototype.propertyIsEnumerable.call(d, u[f]) && (s[u[f]] = d[u[f]]);
  1793. }
  1794. return s;
  1795. }, t.__decorate = function(d, a, s, u) {
  1796. var f, l = arguments.length, o = 3 > l ? a : u === null ? u = Object.getOwnPropertyDescriptor(a, s) : u;
  1797. if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(d, a, s, u);
  1798. else for (var r = d.length - 1; r >= 0; r--) (f = d[r]) && (o = (3 > l ? f(o) : l > 3 ? f(a, s, o) : f(a, s)) || o);
  1799. return l > 3 && o && Object.defineProperty(a, s, o), o;
  1800. }, t.__param = function(d, a) {
  1801. return function(s, u) {
  1802. a(s, u, d);
  1803. };
  1804. }, t.__esDecorate = function(d, a, s, u, f, l) {
  1805. function o(j) {
  1806. if (j !== void 0 && typeof j != "function") throw new TypeError("Function expected");
  1807. return j;
  1808. }
  1809. for (var r, i = u.kind, c = i === "getter" ? "get" : i === "setter" ? "set" : "value", m = !a && d ? u.static ? d : d.prototype : null, y = a || (m ? Object.getOwnPropertyDescriptor(m, u.name) : {}), g = !1, b = s.length - 1; b >= 0; b--) {
  1810. var w = {};
  1811. for (var C in u) w[C] = C === "access" ? {} : u[C];
  1812. for (var C in u.access) w.access[C] = u.access[C];
  1813. w.addInitializer = function(j) {
  1814. if (g) throw new TypeError("Cannot add initializers after decoration has completed");
  1815. l.push(o(j || null));
  1816. };
  1817. var S = (0, s[b])(i === "accessor" ? { get: y.get, set: y.set } : y[c], w);
  1818. if (i === "accessor") {
  1819. if (S === void 0) continue;
  1820. if (S === null || typeof S != "object") throw new TypeError("Object expected");
  1821. (r = o(S.get)) && (y.get = r), (r = o(S.set)) && (y.set = r), (r = o(S.init)) && f.push(r);
  1822. } else (r = o(S)) && (i === "field" ? f.push(r) : y[c] = r);
  1823. }
  1824. m && Object.defineProperty(m, u.name, y), g = !0;
  1825. }, t.__runInitializers = function(d, a, s) {
  1826. for (var u = arguments.length > 2, f = 0; a.length > f; f++) s = u ? a[f].call(d, s) : a[f].call(d);
  1827. return u ? s : void 0;
  1828. }, t.__propKey = function(d) {
  1829. return typeof d == "symbol" ? d : "".concat(d);
  1830. }, t.__setFunctionName = function(d, a, s) {
  1831. return typeof a == "symbol" && (a = a.description ? "[".concat(a.description, "]") : ""), Object.defineProperty(d, "name", { configurable: !0, value: s ? "".concat(s, " ", a) : a });
  1832. }, t.__metadata = function(d, a) {
  1833. if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(d, a);
  1834. }, t.__awaiter = function(d, a, s, u) {
  1835. return new (s || (s = Promise))(function(f, l) {
  1836. function o(c) {
  1837. try {
  1838. i(u.next(c));
  1839. } catch (m) {
  1840. l(m);
  1841. }
  1842. }
  1843. function r(c) {
  1844. try {
  1845. i(u.throw(c));
  1846. } catch (m) {
  1847. l(m);
  1848. }
  1849. }
  1850. function i(c) {
  1851. var m;
  1852. c.done ? f(c.value) : (m = c.value, m instanceof s ? m : new s(function(y) {
  1853. y(m);
  1854. })).then(o, r);
  1855. }
  1856. i((u = u.apply(d, a || [])).next());
  1857. });
  1858. }, t.__generator = function(d, a) {
  1859. var s, u, f, l, o = { label: 0, sent: function() {
  1860. if (1 & f[0]) throw f[1];
  1861. return f[1];
  1862. }, trys: [], ops: [] };
  1863. return l = { next: r(0), throw: r(1), return: r(2) }, typeof Symbol == "function" && (l[Symbol.iterator] = function() {
  1864. return this;
  1865. }), l;
  1866. function r(i) {
  1867. return function(c) {
  1868. return function(m) {
  1869. if (s) throw new TypeError("Generator is already executing.");
  1870. for (; l && (l = 0, m[0] && (o = 0)), o; ) try {
  1871. if (s = 1, u && (f = 2 & m[0] ? u.return : m[0] ? u.throw || ((f = u.return) && f.call(u), 0) : u.next) && !(f = f.call(u, m[1])).done) return f;
  1872. switch (u = 0, f && (m = [2 & m[0], f.value]), m[0]) {
  1873. case 0:
  1874. case 1:
  1875. f = m;
  1876. break;
  1877. case 4:
  1878. return o.label++, { value: m[1], done: !1 };
  1879. case 5:
  1880. o.label++, u = m[1], m = [0];
  1881. continue;
  1882. case 7:
  1883. m = o.ops.pop(), o.trys.pop();
  1884. continue;
  1885. default:
  1886. if (!((f = (f = o.trys).length > 0 && f[f.length - 1]) || m[0] !== 6 && m[0] !== 2)) {
  1887. o = 0;
  1888. continue;
  1889. }
  1890. if (m[0] === 3 && (!f || m[1] > f[0] && f[3] > m[1])) {
  1891. o.label = m[1];
  1892. break;
  1893. }
  1894. if (m[0] === 6 && f[1] > o.label) {
  1895. o.label = f[1], f = m;
  1896. break;
  1897. }
  1898. if (f && f[2] > o.label) {
  1899. o.label = f[2], o.ops.push(m);
  1900. break;
  1901. }
  1902. f[2] && o.ops.pop(), o.trys.pop();
  1903. continue;
  1904. }
  1905. m = a.call(d, o);
  1906. } catch (y) {
  1907. m = [6, y], u = 0;
  1908. } finally {
  1909. s = f = 0;
  1910. }
  1911. if (5 & m[0]) throw m[1];
  1912. return { value: m[0] ? m[1] : void 0, done: !0 };
  1913. }([i, c]);
  1914. };
  1915. }
  1916. }, t.__createBinding = Object.create ? function(d, a, s, u) {
  1917. u === void 0 && (u = s);
  1918. var f = Object.getOwnPropertyDescriptor(a, s);
  1919. f && !("get" in f ? !a.__esModule : f.writable || f.configurable) || (f = { enumerable: !0, get: function() {
  1920. return a[s];
  1921. } }), Object.defineProperty(d, u, f);
  1922. } : function(d, a, s, u) {
  1923. u === void 0 && (u = s), d[u] = a[s];
  1924. }, t.__exportStar = function(d, a) {
  1925. for (var s in d) s === "default" || Object.prototype.hasOwnProperty.call(a, s) || (0, t.__createBinding)(a, d, s);
  1926. }, t.__values = n, t.__read = v, t.__spread = function() {
  1927. for (var d = [], a = 0; arguments.length > a; a++) d = d.concat(v(arguments[a]));
  1928. return d;
  1929. }, t.__spreadArrays = function() {
  1930. for (var d = 0, a = 0, s = arguments.length; s > a; a++) d += arguments[a].length;
  1931. var u = Array(d), f = 0;
  1932. for (a = 0; s > a; a++) for (var l = arguments[a], o = 0, r = l.length; r > o; o++, f++) u[f] = l[o];
  1933. return u;
  1934. }, t.__spreadArray = function(d, a, s) {
  1935. if (s || arguments.length === 2) for (var u, f = 0, l = a.length; l > f; f++) !u && f in a || (u || (u = Array.prototype.slice.call(a, 0, f)), u[f] = a[f]);
  1936. return d.concat(u || Array.prototype.slice.call(a));
  1937. }, t.__await = h, t.__asyncGenerator = function(d, a, s) {
  1938. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  1939. var u, f = s.apply(d, a || []), l = [];
  1940. return u = {}, o("next"), o("throw"), o("return"), u[Symbol.asyncIterator] = function() {
  1941. return this;
  1942. }, u;
  1943. function o(y) {
  1944. f[y] && (u[y] = function(g) {
  1945. return new Promise(function(b, w) {
  1946. l.push([y, g, b, w]) > 1 || r(y, g);
  1947. });
  1948. });
  1949. }
  1950. function r(y, g) {
  1951. try {
  1952. (b = f[y](g)).value instanceof h ? Promise.resolve(b.value.v).then(i, c) : m(l[0][2], b);
  1953. } catch (w) {
  1954. m(l[0][3], w);
  1955. }
  1956. var b;
  1957. }
  1958. function i(y) {
  1959. r("next", y);
  1960. }
  1961. function c(y) {
  1962. r("throw", y);
  1963. }
  1964. function m(y, g) {
  1965. y(g), l.shift(), l.length && r(l[0][0], l[0][1]);
  1966. }
  1967. }, t.__asyncDelegator = function(d) {
  1968. var a, s;
  1969. return a = {}, u("next"), u("throw", function(f) {
  1970. throw f;
  1971. }), u("return"), a[Symbol.iterator] = function() {
  1972. return this;
  1973. }, a;
  1974. function u(f, l) {
  1975. a[f] = d[f] ? function(o) {
  1976. return (s = !s) ? { value: h(d[f](o)), done: !1 } : l ? l(o) : o;
  1977. } : l;
  1978. }
  1979. }, t.__asyncValues = function(d) {
  1980. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  1981. var a, s = d[Symbol.asyncIterator];
  1982. return s ? s.call(d) : (d = n(d), a = {}, u("next"), u("throw"), u("return"), a[Symbol.asyncIterator] = function() {
  1983. return this;
  1984. }, a);
  1985. function u(f) {
  1986. a[f] = d[f] && function(l) {
  1987. return new Promise(function(o, r) {
  1988. (function(i, c, m, y) {
  1989. Promise.resolve(y).then(function(g) {
  1990. i({ value: g, done: m });
  1991. }, c);
  1992. })(o, r, (l = d[f](l)).done, l.value);
  1993. });
  1994. };
  1995. }
  1996. }, t.__makeTemplateObject = function(d, a) {
  1997. return Object.defineProperty ? Object.defineProperty(d, "raw", { value: a }) : d.raw = a, d;
  1998. };
  1999. var p = Object.create ? function(d, a) {
  2000. Object.defineProperty(d, "default", { enumerable: !0, value: a });
  2001. } : function(d, a) {
  2002. d.default = a;
  2003. };
  2004. t.__importStar = function(d) {
  2005. if (d && d.__esModule) return d;
  2006. var a = {};
  2007. if (d != null) for (var s in d) s !== "default" && Object.prototype.hasOwnProperty.call(d, s) && (0, t.__createBinding)(a, d, s);
  2008. return p(a, d), a;
  2009. }, t.__importDefault = function(d) {
  2010. return d && d.__esModule ? d : { default: d };
  2011. }, t.__classPrivateFieldGet = function(d, a, s, u) {
  2012. if (s === "a" && !u) throw new TypeError("Private accessor was defined without a getter");
  2013. if (typeof a == "function" ? d !== a || !u : !a.has(d)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
  2014. return s === "m" ? u : s === "a" ? u.call(d) : u ? u.value : a.get(d);
  2015. }, t.__classPrivateFieldSet = function(d, a, s, u, f) {
  2016. if (u === "m") throw new TypeError("Private method is not writable");
  2017. if (u === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
  2018. if (typeof a == "function" ? d !== a || !f : !a.has(d)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
  2019. return u === "a" ? f.call(d, s) : f ? f.value = s : a.set(d, s), s;
  2020. }, t.__classPrivateFieldIn = function(d, a) {
  2021. if (a === null || typeof a != "object" && typeof a != "function") throw new TypeError("Cannot use 'in' operator on non-object");
  2022. return typeof d == "function" ? a === d : d.has(a);
  2023. };
  2024. }, 93166: function(_, t, e) {
  2025. Object.defineProperty(t, "__esModule", { value: !0 }), t.Config = void 0;
  2026. var n = e(86893), v = e(86893), h = function() {
  2027. function p() {
  2028. this.defaultTimeout = 100, this.namespace = "", this.safeMode = !1, this.width = "auto", this.height = "auto", this.safePluginsList = ["about", "enter", "backspace", "size"], this.license = "", this.preset = "custom", this.presets = { inline: { inline: !0, toolbar: !1, toolbarInline: !0, toolbarInlineForSelection: !0, showXPathInStatusbar: !1, showCharsCounter: !1, showWordsCounter: !1, showPlaceholder: !1 } }, this.ownerDocument = typeof document != "undefined" ? document : null, this.ownerWindow = typeof window != "undefined" ? window : null, this.shadowRoot = null, this.zIndex = 0, this.readonly = !1, this.disabled = !1, this.activeButtonsInReadOnly = ["source", "fullsize", "print", "about", "dots", "selectall"], this.allowCommandsInReadOnly = ["selectall", "preview", "print"], this.toolbarButtonSize = "middle", this.allowTabNavigation = !1, this.inline = !1, this.theme = "default", this.saveModeInStorage = !1, this.editorClassName = !1, this.editorCssClass = !1, this.className = !1, this.style = !1, this.containerStyle = !1, this.styleValues = {}, this.triggerChangeEvent = !0, this.direction = "", this.language = "auto", this.debugLanguage = !1, this.i18n = !1, this.tabIndex = -1, this.toolbar = !0, this.statusbar = !0, this.showTooltip = !0, this.showTooltipDelay = 1e3, this.useNativeTooltip = !1, this.defaultActionOnPaste = v.INSERT_AS_HTML, this.enter = n.PARAGRAPH, this.iframe = !1, this.editHTMLDocumentMode = !1, this.enterBlock = this.enter !== "br" ? this.enter : n.PARAGRAPH, this.defaultMode = n.MODE_WYSIWYG, this.useSplitMode = !1, this.colors = { greyscale: ["#000000", "#434343", "#666666", "#999999", "#B7B7B7", "#CCCCCC", "#D9D9D9", "#EFEFEF", "#F3F3F3", "#FFFFFF"], palette: ["#980000", "#FF0000", "#FF9900", "#FFFF00", "#00F0F0", "#00FFFF", "#4A86E8", "#0000FF", "#9900FF", "#FF00FF"], full: ["#E6B8AF", "#F4CCCC", "#FCE5CD", "#FFF2CC", "#D9EAD3", "#D0E0E3", "#C9DAF8", "#CFE2F3", "#D9D2E9", "#EAD1DC", "#DD7E6B", "#EA9999", "#F9CB9C", "#FFE599", "#B6D7A8", "#A2C4C9", "#A4C2F4", "#9FC5E8", "#B4A7D6", "#D5A6BD", "#CC4125", "#E06666", "#F6B26B", "#FFD966", "#93C47D", "#76A5AF", "#6D9EEB", "#6FA8DC", "#8E7CC3", "#C27BA0", "#A61C00", "#CC0000", "#E69138", "#F1C232", "#6AA84F", "#45818E", "#3C78D8", "#3D85C6", "#674EA7", "#A64D79", "#85200C", "#990000", "#B45F06", "#BF9000", "#38761D", "#134F5C", "#1155CC", "#0B5394", "#351C75", "#733554", "#5B0F00", "#660000", "#783F04", "#7F6000", "#274E13", "#0C343D", "#1C4587", "#073763", "#20124D", "#4C1130"] }, this.colorPickerDefaultTab = "background", this.imageDefaultWidth = 300, this.removeButtons = [], this.disablePlugins = [], this.extraPlugins = [], this.extraButtons = [], this.extraIcons = {}, this.createAttributes = { table: { style: "border-collapse:collapse;width: 100%;" } }, this.sizeLG = 900, this.sizeMD = 700, this.sizeSM = 400, this.buttons = [{ group: "font-style", buttons: [] }, { group: "list", buttons: [] }, { group: "font", buttons: [] }, "---", { group: "script", buttons: [] }, { group: "media", buttons: [] }, `
  2029. `, { group: "state", buttons: [] }, { group: "clipboard", buttons: [] }, { group: "insert", buttons: [] }, { group: "indent", buttons: [] }, { group: "color", buttons: [] }, { group: "form", buttons: [] }, "---", { group: "history", buttons: [] }, { group: "search", buttons: [] }, { group: "source", buttons: [] }, { group: "other", buttons: [] }, { group: "info", buttons: [] }], this.buttonsMD = ["bold", "italic", "|", "ul", "ol", "eraser", "|", "font", "fontsize", "---", "image", "table", "|", "link", `
  2030. `, "brush", "paragraph", "align", "|", "hr", "copyformat", "fullsize", "---", "undo", "redo", "|", "dots"], this.buttonsSM = ["bold", "italic", "|", "ul", "ol", "eraser", "|", "fontsize", "brush", "paragraph", "---", "image", "table", `
  2031. `, "link", "|", "align", "|", "undo", "redo", "|", "copyformat", "fullsize", "---", "dots"], this.buttonsXS = ["bold", "brush", "paragraph", "eraser", "|", "fontsize", "---", "image", `
  2032. `, "align", "undo", "redo", "|", "link", "table", "---", "dots"], this.events = {}, this.textIcons = !1, this.showBrowserColorPicker = !0;
  2033. }
  2034. return Object.defineProperty(p, "defaultOptions", { get: function() {
  2035. return p.__defaultOptions || (p.__defaultOptions = new p()), p.__defaultOptions;
  2036. }, enumerable: !1, configurable: !0 }), p;
  2037. }();
  2038. t.Config = h, h.prototype.controls = {};
  2039. }, 77536: function(_, t, e) {
  2040. Object.defineProperty(t, "__esModule", { value: !0 }), t.Async = void 0;
  2041. var n = e(20255), v = e(4696), h = e(42096), p = e(79736), d = e(26335), a = e(24421), s = e(61817), u = (e(52378), function() {
  2042. function f() {
  2043. var l, o, r, i, c = this;
  2044. this.timers = /* @__PURE__ */ new Map(), this.__callbacks = /* @__PURE__ */ new Map(), this.promisesRejections = /* @__PURE__ */ new Set(), this.requestsIdle = /* @__PURE__ */ new Set(), this.requestsRaf = /* @__PURE__ */ new Set(), this.requestIdleCallbackNative = (o = (l = window.requestIdleCallback) === null || l === void 0 ? void 0 : l.bind(window)) !== null && o !== void 0 ? o : function(m, y) {
  2045. var g, b = Date.now();
  2046. return c.setTimeout(function() {
  2047. m({ didTimeout: !1, timeRemaining: function() {
  2048. return Math.max(0, 50 - (Date.now() - b));
  2049. } });
  2050. }, (g = y == null ? void 0 : y.timeout) !== null && g !== void 0 ? g : 1);
  2051. }, this.cancelIdleCallbackNative = (i = (r = window.cancelIdleCallback) === null || r === void 0 ? void 0 : r.bind(window)) !== null && i !== void 0 ? i : function(m) {
  2052. c.clearTimeout(m);
  2053. }, this.isDestructed = !1;
  2054. }
  2055. return f.prototype.delay = function(l) {
  2056. var o = this;
  2057. return this.promise(function(r) {
  2058. return o.setTimeout(r, l);
  2059. });
  2060. }, f.prototype.setTimeout = function(l, o) {
  2061. for (var r = [], i = 2; arguments.length > i; i++) r[i - 2] = arguments[i];
  2062. if (this.isDestructed) return 0;
  2063. var c = {};
  2064. (0, s.isNumber)(o) || (o = (c = o).timeout || 0), c.label && this.clearLabel(c.label);
  2065. var m = v.setTimeout.apply(void 0, n.__spreadArray([l, o], n.__read(r), !1)), y = c.label || m;
  2066. return this.timers.set(y, m), this.__callbacks.set(y, l), m;
  2067. }, f.prototype.updateTimeout = function(l, o) {
  2068. if (!l || !this.timers.has(l)) return null;
  2069. var r = this.__callbacks.get(l);
  2070. return this.setTimeout(r, { label: l, timeout: o });
  2071. }, f.prototype.clearLabel = function(l) {
  2072. l && this.timers.has(l) && ((0, v.clearTimeout)(this.timers.get(l)), this.timers.delete(l), this.__callbacks.delete(l));
  2073. }, f.prototype.clearTimeout = function(l) {
  2074. if ((0, a.isString)(l)) return this.clearLabel(l);
  2075. (0, v.clearTimeout)(l), this.timers.delete(l), this.__callbacks.delete(l);
  2076. }, f.prototype.debounce = function(l, o, r) {
  2077. var i = this;
  2078. r === void 0 && (r = !1);
  2079. var c = 0, m = !1, y = [], g = function() {
  2080. for (var w = [], C = 0; arguments.length > C; C++) w[C] = arguments[C];
  2081. if (!m) {
  2082. c = 0;
  2083. var S = l.apply(void 0, n.__spreadArray([], n.__read(w), !1));
  2084. if (m = !0, y.length) {
  2085. var j = function() {
  2086. y.forEach(function(E) {
  2087. return E();
  2088. }), y.length = 0;
  2089. };
  2090. (0, d.isPromise)(S) ? S.finally(j) : j();
  2091. }
  2092. }
  2093. }, b = function() {
  2094. for (var w = [], C = 0; arguments.length > C; C++) w[C] = arguments[C];
  2095. m = !1, o ? (!c && r && g.apply(void 0, n.__spreadArray([], n.__read(w), !1)), (0, v.clearTimeout)(c), c = i.setTimeout(function() {
  2096. return g.apply(void 0, n.__spreadArray([], n.__read(w), !1));
  2097. }, (0, h.isFunction)(o) ? o() : o), i.timers.set(l, c)) : g.apply(void 0, n.__spreadArray([], n.__read(w), !1));
  2098. };
  2099. return (0, p.isPlainObject)(o) && o.promisify ? function() {
  2100. for (var w = [], C = 0; arguments.length > C; C++) w[C] = arguments[C];
  2101. var S = i.promise(function(j) {
  2102. y.push(j);
  2103. });
  2104. return b.apply(void 0, n.__spreadArray([], n.__read(w), !1)), S;
  2105. } : b;
  2106. }, f.prototype.throttle = function(l, o, r) {
  2107. var i = this, c, m, y, g = null;
  2108. return function() {
  2109. for (var b = [], w = 0; arguments.length > w; w++) b[w] = arguments[w];
  2110. c = !0, y = b, o ? g || (m = function() {
  2111. c ? (l.apply(void 0, n.__spreadArray([], n.__read(y), !1)), c = !1, g = i.setTimeout(m, (0, h.isFunction)(o) ? o() : o), i.timers.set(m, g)) : g = null;
  2112. })() : l.apply(void 0, n.__spreadArray([], n.__read(y), !1));
  2113. };
  2114. }, f.prototype.promise = function(l) {
  2115. var o = this, r = function() {
  2116. }, i = new Promise(function(c, m) {
  2117. return o.promisesRejections.add(m), r = m, l(c, m);
  2118. });
  2119. return i.finally || (i.finally = function(c) {
  2120. return i.then(c).catch(c), i;
  2121. }), i.finally(function() {
  2122. o.promisesRejections.delete(r);
  2123. }).catch(function() {
  2124. return null;
  2125. }), i.rejectCallback = r, i;
  2126. }, f.prototype.promiseState = function(l) {
  2127. var o = this;
  2128. if (l.status) return l.status;
  2129. if (!Promise.race) return new Promise(function(i) {
  2130. l.then(function(c) {
  2131. return i("fulfilled"), c;
  2132. }, function(c) {
  2133. throw i("rejected"), c;
  2134. }), o.setTimeout(function() {
  2135. i("pending");
  2136. }, 100);
  2137. });
  2138. var r = {};
  2139. return Promise.race([l, r]).then(function(i) {
  2140. return i === r ? "pending" : "fulfilled";
  2141. }, function() {
  2142. return "rejected";
  2143. });
  2144. }, f.prototype.requestIdleCallback = function(l, o) {
  2145. var r = this.requestIdleCallbackNative(l, o);
  2146. return this.requestsIdle.add(r), r;
  2147. }, f.prototype.requestIdlePromise = function(l) {
  2148. var o = this;
  2149. return this.promise(function(r) {
  2150. var i = o.requestIdleCallback(function() {
  2151. return r(i);
  2152. }, l);
  2153. });
  2154. }, f.prototype.cancelIdleCallback = function(l) {
  2155. return this.requestsIdle.delete(l), this.cancelIdleCallbackNative(l);
  2156. }, f.prototype.requestAnimationFrame = function(l) {
  2157. var o = requestAnimationFrame(l);
  2158. return this.requestsRaf.add(o), o;
  2159. }, f.prototype.cancelAnimationFrame = function(l) {
  2160. this.requestsRaf.delete(l), cancelAnimationFrame(l);
  2161. }, f.prototype.clear = function() {
  2162. var l = this;
  2163. this.requestsIdle.forEach(function(o) {
  2164. return l.cancelIdleCallback(o);
  2165. }), this.requestsRaf.forEach(function(o) {
  2166. return l.cancelAnimationFrame(o);
  2167. }), this.timers.forEach(function(o) {
  2168. return (0, v.clearTimeout)(l.timers.get(o));
  2169. }), this.timers.clear(), this.promisesRejections.forEach(function(o) {
  2170. return o();
  2171. }), this.promisesRejections.clear();
  2172. }, f.prototype.destruct = function() {
  2173. this.clear(), this.isDestructed = !0;
  2174. }, f;
  2175. }());
  2176. t.Async = u;
  2177. }, 22630: function(_, t, e) {
  2178. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(77536), t);
  2179. }, 45113: function(_, t, e) {
  2180. Object.defineProperty(t, "__esModule", { value: !0 }), t.Component = void 0;
  2181. var n = e(40332), v = e(17332), h = e(29411), p = e(22630), d = /* @__PURE__ */ new Map(), a = function() {
  2182. function s() {
  2183. this.async = new p.Async(), this.ownerWindow = window, this.__componentStatus = h.STATUSES.beforeInit, this.uid = "jodit-uid-" + (0, v.uniqueUid)();
  2184. }
  2185. return Object.defineProperty(s.prototype, "componentName", { get: function() {
  2186. return this.__componentName || (this.__componentName = "jodit-" + (0, n.kebabCase)(((0, n.isFunction)(this.className) ? this.className() : "") || (0, n.getClassName)(this))), this.__componentName;
  2187. }, enumerable: !1, configurable: !0 }), s.prototype.getFullElName = function(u, f, l) {
  2188. var o = [this.componentName];
  2189. return u && (u = u.replace(/[^a-z0-9-]/gi, "-"), o.push("__".concat(u))), f && (o.push("_", f), o.push("_", (0, n.isVoid)(l) ? "true" : l.toString())), o.join("");
  2190. }, Object.defineProperty(s.prototype, "ownerDocument", { get: function() {
  2191. return this.ow.document;
  2192. }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "od", { get: function() {
  2193. return this.ownerDocument;
  2194. }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "ow", { get: function() {
  2195. return this.ownerWindow;
  2196. }, enumerable: !1, configurable: !0 }), s.prototype.get = function(u, f) {
  2197. return (0, n.get)(u, f || this);
  2198. }, Object.defineProperty(s.prototype, "isReady", { get: function() {
  2199. return this.componentStatus === h.STATUSES.ready;
  2200. }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "isDestructed", { get: function() {
  2201. return this.componentStatus === h.STATUSES.destructed;
  2202. }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "isInDestruct", { get: function() {
  2203. return h.STATUSES.beforeDestruct === this.componentStatus || h.STATUSES.destructed === this.componentStatus;
  2204. }, enumerable: !1, configurable: !0 }), s.prototype.bindDestruct = function(u) {
  2205. var f = this;
  2206. return u.hookStatus(h.STATUSES.beforeDestruct, function() {
  2207. return !f.isInDestruct && f.destruct();
  2208. }), this;
  2209. }, s.prototype.destruct = function() {
  2210. this.setStatus(h.STATUSES.destructed), this.async.destruct(), d.get(this) && d.delete(this);
  2211. }, Object.defineProperty(s.prototype, "componentStatus", { get: function() {
  2212. return this.__componentStatus;
  2213. }, set: function(u) {
  2214. this.setStatus(u);
  2215. }, enumerable: !1, configurable: !0 }), s.prototype.setStatus = function(u) {
  2216. return this.setStatusComponent(u, this);
  2217. }, s.prototype.setStatusComponent = function(u, f) {
  2218. if (u !== this.__componentStatus) {
  2219. f === this && (this.__componentStatus = u);
  2220. var l = Object.getPrototypeOf(this);
  2221. l && (0, n.isFunction)(l.setStatusComponent) && l.setStatusComponent(u, f);
  2222. var o = d.get(this), r = o == null ? void 0 : o[u];
  2223. r && r.length && r.forEach(function(i) {
  2224. return i(f);
  2225. });
  2226. }
  2227. }, s.prototype.hookStatus = function(u, f) {
  2228. var l = d.get(this);
  2229. l || d.set(this, l = {}), l[u] || (l[u] = []), l[u].push(f);
  2230. }, s.isInstanceOf = function(u, f) {
  2231. return u instanceof f;
  2232. }, s.STATUSES = h.STATUSES, s;
  2233. }();
  2234. t.Component = a;
  2235. }, 56562: function(_, t, e) {
  2236. Object.defineProperty(t, "__esModule", { value: !0 });
  2237. var n = e(20255);
  2238. n.__exportStar(e(29411), t), n.__exportStar(e(45113), t), n.__exportStar(e(39840), t);
  2239. }, 29411: function(_, t) {
  2240. Object.defineProperty(t, "__esModule", { value: !0 }), t.STATUSES = void 0, t.STATUSES = { beforeInit: "beforeInit", ready: "ready", beforeDestruct: "beforeDestruct", destructed: "destructed" };
  2241. }, 39840: function(_, t, e) {
  2242. Object.defineProperty(t, "__esModule", { value: !0 }), t.ViewComponent = void 0;
  2243. var n = e(20255), v = function(h) {
  2244. function p(d) {
  2245. var a = h.call(this) || this;
  2246. return a.setParentView(d), a;
  2247. }
  2248. return n.__extends(p, h), Object.defineProperty(p.prototype, "j", { get: function() {
  2249. return this.jodit;
  2250. }, enumerable: !1, configurable: !0 }), Object.defineProperty(p.prototype, "defaultTimeout", { get: function() {
  2251. return this.j.defaultTimeout;
  2252. }, enumerable: !1, configurable: !0 }), p.prototype.i18n = function(d) {
  2253. for (var a, s = [], u = 1; arguments.length > u; u++) s[u - 1] = arguments[u];
  2254. return (a = this.j).i18n.apply(a, n.__spreadArray([d], n.__read(s), !1));
  2255. }, p.prototype.setParentView = function(d) {
  2256. return this.jodit = d, d.components.add(this), this;
  2257. }, p.prototype.destruct = function() {
  2258. return this.j.components.delete(this), h.prototype.destruct.call(this);
  2259. }, p;
  2260. }(e(45113).Component);
  2261. t.ViewComponent = v;
  2262. }, 86893: function(_, t, e) {
  2263. Object.defineProperty(t, "__esModule", { value: !0 }), t.CLIPBOARD_ID = t.lang = t.TEMP_ATTR = t.BASE_PATH = t.KEY_ALIASES = t.IS_MAC = t.SAFE_COUNT_CHANGE_CALL = t.INSERT_ONLY_TEXT = t.INSERT_AS_TEXT = t.INSERT_CLEAR_HTML = t.INSERT_AS_HTML = t.EMULATE_DBLCLICK_TIMEOUT = t.MARKER_CLASS = t.TEXT_RTF = t.TEXT_HTML = t.TEXT_PLAIN = t.IS_IE = t.MODE_SPLIT = t.MODE_SOURCE = t.MODE_WYSIWYG = t.PARAGRAPH = t.BR = t.COMMAND_KEYS = t.ACCURACY = t.NEARBY = t.KEY_F3 = t.KEY_DELETE = t.KEY_SPACE = t.KEY_DOWN = t.KEY_RIGHT = t.KEY_UP = t.KEY_LEFT = t.KEY_ALT = t.KEY_ESC = t.KEY_ENTER = t.KEY_TAB = t.KEY_BACKSPACE = t.KEY_META = t.NO_EMPTY_TAGS = t.INSEPARABLE_TAGS = t.IS_INLINE = t.IS_BLOCK = t.SPACE_REG_EXP_END = t.SPACE_REG_EXP_START = t.SPACE_REG_EXP = t.INVISIBLE_SPACE_REG_EXP_START = t.INVISIBLE_SPACE_REG_EXP_END = t.INVISIBLE_SPACE_REG_EXP = t.NBSP_SPACE = t.INVISIBLE_SPACE = void 0, t.SOURCE_CONSUMER = void 0;
  2264. var n = e(20255);
  2265. t.INVISIBLE_SPACE = "\uFEFF", t.NBSP_SPACE = " ", t.INVISIBLE_SPACE_REG_EXP = function() {
  2266. return /[\uFEFF]/g;
  2267. }, t.INVISIBLE_SPACE_REG_EXP_END = function() {
  2268. return /[\uFEFF]+$/g;
  2269. }, t.INVISIBLE_SPACE_REG_EXP_START = function() {
  2270. return /^[\uFEFF]+/g;
  2271. }, t.SPACE_REG_EXP = function() {
  2272. return /[\s\n\t\r\uFEFF\u200b]+/g;
  2273. }, t.SPACE_REG_EXP_START = function() {
  2274. return /^[\s\n\t\r\uFEFF\u200b]+/g;
  2275. }, t.SPACE_REG_EXP_END = function() {
  2276. return /[\s\n\t\r\uFEFF\u200b]+$/g;
  2277. }, t.IS_BLOCK = /^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i, t.IS_INLINE = /^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i;
  2278. var v = ["img", "video", "svg", "iframe", "script", "input", "textarea", "link", "jodit", "jodit-media"];
  2279. t.INSEPARABLE_TAGS = new Set(n.__spreadArray(n.__spreadArray([], n.__read(v), !1), ["br", "hr"], !1)), t.NO_EMPTY_TAGS = new Set(v), t.KEY_META = "Meta", t.KEY_BACKSPACE = "Backspace", t.KEY_TAB = "Tab", t.KEY_ENTER = "Enter", t.KEY_ESC = "Escape", t.KEY_ALT = "Alt", t.KEY_LEFT = "ArrowLeft", t.KEY_UP = "ArrowUp", t.KEY_RIGHT = "ArrowRight", t.KEY_DOWN = "ArrowDown", t.KEY_SPACE = "Space", t.KEY_DELETE = "Delete", t.KEY_F3 = "F3", t.NEARBY = 5, t.ACCURACY = 10, t.COMMAND_KEYS = [t.KEY_META, t.KEY_BACKSPACE, t.KEY_DELETE, t.KEY_UP, t.KEY_DOWN, t.KEY_RIGHT, t.KEY_LEFT, t.KEY_ENTER, t.KEY_ESC, t.KEY_F3, t.KEY_TAB], t.BR = "br", t.PARAGRAPH = "p", t.MODE_WYSIWYG = 1, t.MODE_SOURCE = 2, t.MODE_SPLIT = 3, t.IS_IE = typeof navigator != "undefined" && (navigator.userAgent.indexOf("MSIE") !== -1 || /rv:11.0/i.test(navigator.userAgent)), t.TEXT_PLAIN = t.IS_IE ? "text" : "text/plain", t.TEXT_HTML = t.IS_IE ? "html" : "text/html", t.TEXT_RTF = t.IS_IE ? "rtf" : "text/rtf", t.MARKER_CLASS = "jodit-selection_marker", t.EMULATE_DBLCLICK_TIMEOUT = 300, t.INSERT_AS_HTML = "insert_as_html", t.INSERT_CLEAR_HTML = "insert_clear_html", t.INSERT_AS_TEXT = "insert_as_text", t.INSERT_ONLY_TEXT = "insert_only_text", t.SAFE_COUNT_CHANGE_CALL = 10, t.IS_MAC = typeof window != "undefined" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), t.KEY_ALIASES = { add: "+", break: "pause", cmd: "meta", command: "meta", ctl: "control", ctrl: "control", del: "delete", down: "arrowdown", esc: "escape", ins: "insert", left: "arrowleft", mod: t.IS_MAC ? "meta" : "control", opt: "alt", option: "alt", return: "enter", right: "arrowright", space: " ", spacebar: " ", up: "arrowup", win: "meta", windows: "meta" }, t.BASE_PATH = function() {
  2280. if (typeof document == "undefined") return "";
  2281. var h = document.currentScript, p = function(a) {
  2282. var s = a.split("/");
  2283. return /\.js/.test(s[s.length - 1]) ? s.slice(0, s.length - 1).join("/") + "/" : a;
  2284. };
  2285. if (h) return p(h.src);
  2286. var d = document.querySelectorAll("script[src]");
  2287. return d && d.length ? p(d[d.length - 1].src) : window.location.href;
  2288. }(), t.TEMP_ATTR = "data-jodit-temp", t.lang = {}, t.CLIPBOARD_ID = "clipboard", t.SOURCE_CONSUMER = "source-consumer";
  2289. }, 31897: function(_, t, e) {
  2290. Object.defineProperty(t, "__esModule", { value: !0 }), t.Create = void 0;
  2291. var n = e(40332), v = (e(52378), e(64968)), h = e(86893), p = function() {
  2292. function d(a, s) {
  2293. this.document = a, this.createAttributes = s;
  2294. }
  2295. return Object.defineProperty(d.prototype, "doc", { get: function() {
  2296. return (0, n.isFunction)(this.document) ? this.document() : this.document;
  2297. }, enumerable: !1, configurable: !0 }), d.prototype.element = function(a, s, u) {
  2298. var f = this, l = this.doc.createElement(a.toLowerCase());
  2299. return this.applyCreateAttributes(l), s && ((0, n.isPlainObject)(s) ? (0, n.attr)(l, s) : u = s), u && (0, n.asArray)(u).forEach(function(o) {
  2300. return l.appendChild((0, n.isString)(o) ? f.fromHTML(o) : o);
  2301. }), l;
  2302. }, d.prototype.div = function(a, s, u) {
  2303. var f = this.element("div", s, u);
  2304. return a && (f.className = a), f;
  2305. }, d.prototype.sandbox = function() {
  2306. var a, s = this.element("iframe", { sandbox: "allow-same-origin" });
  2307. this.doc.body.appendChild(s);
  2308. var u = (a = s.contentWindow) === null || a === void 0 ? void 0 : a.document;
  2309. if (!u) throw Error("Iframe error");
  2310. return u.open(), u.write("<!DOCTYPE html><html><head></head><body></body></html>"), u.close(), u.body;
  2311. }, d.prototype.span = function(a, s, u) {
  2312. var f = this.element("span", s, u);
  2313. return a && (f.className = a), f;
  2314. }, d.prototype.a = function(a, s, u) {
  2315. var f = this.element("a", s, u);
  2316. return a && (f.className = a), f;
  2317. }, d.prototype.text = function(a) {
  2318. return this.doc.createTextNode(a);
  2319. }, d.prototype.fake = function() {
  2320. return this.text(h.INVISIBLE_SPACE);
  2321. }, d.prototype.fragment = function() {
  2322. return this.doc.createDocumentFragment();
  2323. }, d.prototype.fromHTML = function(a, s) {
  2324. var u = this.div();
  2325. u.innerHTML = a.toString();
  2326. var f = u.firstChild === u.lastChild && u.firstChild ? u.firstChild : u;
  2327. if (v.Dom.safeRemove(f), s) {
  2328. var l = (0, n.refs)(f);
  2329. Object.keys(s).forEach(function(o) {
  2330. var r = l[o];
  2331. r && s[o] === !1 && v.Dom.hide(r);
  2332. });
  2333. }
  2334. return f;
  2335. }, d.prototype.applyCreateAttributes = function(a) {
  2336. if (this.createAttributes) {
  2337. var s = this.createAttributes;
  2338. if (s && s[a.tagName.toLowerCase()]) {
  2339. var u = s[a.tagName.toLowerCase()];
  2340. (0, n.isFunction)(u) ? u(a) : (0, n.isPlainObject)(u) && (0, n.attr)(a, u);
  2341. }
  2342. }
  2343. }, d;
  2344. }();
  2345. t.Create = p;
  2346. }, 42841: function(_, t, e) {
  2347. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(31897), t);
  2348. }, 32358: function(_, t, e) {
  2349. Object.defineProperty(t, "__esModule", { value: !0 }), t.cache = void 0;
  2350. var n = e(40332);
  2351. t.cache = function(v, h, p) {
  2352. var d = p.get;
  2353. if (!d) throw (0, n.error)("Getter property descriptor expected");
  2354. p.get = function() {
  2355. var a = d.call(this);
  2356. return a && a.noCache === !0 || Object.defineProperty(this, h, { configurable: p.configurable, enumerable: p.enumerable, writable: !1, value: a }), a;
  2357. };
  2358. };
  2359. }, 11441: function(_, t, e) {
  2360. Object.defineProperty(t, "__esModule", { value: !0 }), t.component = void 0;
  2361. var n = e(20255);
  2362. t.component = function(v) {
  2363. var h = function(p) {
  2364. function d() {
  2365. for (var a = [], s = 0; arguments.length > s; s++) a[s] = arguments[s];
  2366. var u = p.apply(this, n.__spreadArray([], n.__read(a), !1)) || this, f = u.constructor === d;
  2367. return f && (u instanceof d || Object.setPrototypeOf(u, d.prototype), u.setStatus("ready")), u;
  2368. }
  2369. return n.__extends(d, p), d;
  2370. }(v);
  2371. return h;
  2372. };
  2373. }, 55773: function(_, t, e) {
  2374. Object.defineProperty(t, "__esModule", { value: !0 }), t.throttle = t.debounce = void 0;
  2375. var n = e(10172), v = e(56562), h = e(56964);
  2376. function p(d, a, s) {
  2377. return a === void 0 && (a = !1), s === void 0 && (s = "debounce"), function(u, f) {
  2378. var l = u[f];
  2379. if (!(0, n.isFunction)(l)) throw (0, h.error)("Handler must be a Function");
  2380. return u.hookStatus(v.STATUSES.ready, function(o) {
  2381. var r = o.async, i = (0, n.isFunction)(d) ? d(o) : d;
  2382. Object.defineProperty(o, f, { configurable: !0, value: r[s](o[f].bind(o), (0, n.isNumber)(i) || (0, n.isPlainObject)(i) ? i : o.defaultTimeout, a) });
  2383. }), { configurable: !0, get: function() {
  2384. return l.bind(this);
  2385. } };
  2386. };
  2387. }
  2388. e(52378), t.debounce = p, t.throttle = function(d, a) {
  2389. return a === void 0 && (a = !1), p(d, a, "throttle");
  2390. };
  2391. }, 70669: function(_, t, e) {
  2392. Object.defineProperty(t, "__esModule", { value: !0 }), t.derive = void 0;
  2393. var n = e(20255), v = e(10172);
  2394. t.derive = function() {
  2395. for (var h = [], p = 0; arguments.length > p; p++) h[p] = arguments[p];
  2396. return function(d) {
  2397. for (var a = d.prototype, s = 0; h.length > s; s++) for (var u = h[s], f = Object.getOwnPropertyNames(u.prototype), l = function(r) {
  2398. var i = f[r], c = Object.getOwnPropertyDescriptor(u.prototype, i);
  2399. c != null && (0, v.isFunction)(c.value) && !(0, v.isFunction)(a[i]) && Object.defineProperty(a, i, { enumerable: !0, configurable: !0, writable: !0, value: function() {
  2400. for (var m, y = [], g = 0; arguments.length > g; g++) y[g] = arguments[g];
  2401. return (m = c.value).call.apply(m, n.__spreadArray([this], n.__read(y), !1));
  2402. } });
  2403. }, o = 0; f.length > o; o++) l(o);
  2404. };
  2405. };
  2406. }, 64522: function(_, t, e) {
  2407. Object.defineProperty(t, "__esModule", { value: !0 }), t.hook = void 0;
  2408. var n = e(10172), v = e(56964);
  2409. t.hook = function(h) {
  2410. return function(p, d) {
  2411. if (!(0, n.isFunction)(p[d])) throw (0, v.error)("Handler must be a Function");
  2412. p.hookStatus(h, function(a) {
  2413. a[d].call(a);
  2414. });
  2415. };
  2416. };
  2417. }, 58682: function(_, t, e) {
  2418. Object.defineProperty(t, "__esModule", { value: !0 }), t.idle = void 0;
  2419. var n = e(20255), v = e(56562), h = e(40332);
  2420. t.idle = function() {
  2421. return function(p, d) {
  2422. if (!(0, h.isFunction)(p[d])) throw (0, h.error)("Handler must be a Function");
  2423. p.hookStatus(v.STATUSES.ready, function(a) {
  2424. var s = a.async, u = a[d];
  2425. a[d] = function() {
  2426. for (var f = [], l = 0; arguments.length > l; l++) f[l] = arguments[l];
  2427. return s.requestIdleCallback(u.bind.apply(u, n.__spreadArray([a], n.__read(f), !1)));
  2428. };
  2429. });
  2430. };
  2431. };
  2432. }, 43441: function(_, t, e) {
  2433. Object.defineProperty(t, "__esModule", { value: !0 }), t.autobind = void 0;
  2434. var n = e(20255);
  2435. n.__exportStar(e(32358), t), n.__exportStar(e(11441), t), n.__exportStar(e(55773), t), n.__exportStar(e(58682), t), n.__exportStar(e(64522), t), n.__exportStar(e(91627), t), n.__exportStar(e(31418), t), n.__exportStar(e(67587), t), n.__exportStar(e(46163), t), n.__exportStar(e(70669), t);
  2436. var v = e(70631);
  2437. Object.defineProperty(t, "autobind", { enumerable: !0, get: function() {
  2438. return v.default;
  2439. } });
  2440. }, 91627: function(_, t) {
  2441. Object.defineProperty(t, "__esModule", { value: !0 }), t.nonenumerable = void 0, t.nonenumerable = function(e, n) {
  2442. (Object.getOwnPropertyDescriptor(e, n) || {}).enumerable !== !1 && Object.defineProperty(e, n, { enumerable: !1, set: function(v) {
  2443. Object.defineProperty(this, n, { enumerable: !1, writable: !0, value: v });
  2444. } });
  2445. };
  2446. }, 31418: function(_, t, e) {
  2447. Object.defineProperty(t, "__esModule", { value: !0 }), t.persistent = void 0;
  2448. var n = e(56562), v = e(96574);
  2449. t.persistent = function(h, p) {
  2450. h.hookStatus(n.STATUSES.ready, function(d) {
  2451. var a = (0, v.isViewObject)(d) ? d : d.jodit, s = "".concat(a.options.namespace).concat(d.componentName, "_prop_").concat(p), u = d[p];
  2452. Object.defineProperty(d, p, { get: function() {
  2453. var f;
  2454. return (f = a.storage.get(s)) !== null && f !== void 0 ? f : u;
  2455. }, set: function(f) {
  2456. a.storage.set(s, f);
  2457. } });
  2458. });
  2459. };
  2460. }, 67587: function(_, t, e) {
  2461. Object.defineProperty(t, "__esModule", { value: !0 }), t.wait = void 0;
  2462. var n = e(20255), v = e(40332), h = e(56562);
  2463. t.wait = function(p) {
  2464. return function(d, a) {
  2465. if (!(0, v.isFunction)(d[a])) throw (0, v.error)("Handler must be a Function");
  2466. d.hookStatus(h.STATUSES.ready, function(s) {
  2467. var u = s.async, f = s[a], l = 0;
  2468. Object.defineProperty(s, a, { configurable: !0, value: function o() {
  2469. for (var r = [], i = 0; arguments.length > i; i++) r[i] = arguments[i];
  2470. u.clearTimeout(l), p(s) ? f.apply(s, r) : l = u.setTimeout(function() {
  2471. return o.apply(void 0, n.__spreadArray([], n.__read(r), !1));
  2472. }, 10);
  2473. } });
  2474. });
  2475. };
  2476. };
  2477. }, 46163: function(_, t, e) {
  2478. Object.defineProperty(t, "__esModule", { value: !0 }), t.watch = t.getPropertyDescriptor = void 0;
  2479. var n = e(20255), v = e(42096), h = e(79736), p = e(96574), d = e(88418), a = e(29411), s = e(14556), u = e(56964);
  2480. function f(o, r) {
  2481. var i;
  2482. do
  2483. i = Object.getOwnPropertyDescriptor(o, r), o = Object.getPrototypeOf(o);
  2484. while (!i && o);
  2485. return i;
  2486. }
  2487. function l(o, r) {
  2488. return function(i, c) {
  2489. if (!(0, v.isFunction)(i[c])) throw (0, u.error)("Handler must be a Function");
  2490. var m = function(y) {
  2491. var g = function(b) {
  2492. for (var w, C = [], S = 1; arguments.length > S; S++) C[S - 1] = arguments[S];
  2493. if (!y.isInDestruct) return (w = y)[c].apply(w, n.__spreadArray([b], n.__read(C), !1));
  2494. };
  2495. (0, s.splitArray)(o).forEach(function(b) {
  2496. if (/:/.test(b)) {
  2497. var w = n.__read(b.split(":"), 2), C = w[0], S = w[1], j = r, E = (0, p.isViewObject)(y) ? y : y.jodit;
  2498. return C.length && (j = y.get(C)), (0, v.isFunction)(j) && (j = j(y)), E.events.on(j || y, S, g), j || E.events.on(S, g), void y.hookStatus("beforeDestruct", function() {
  2499. E.events.off(j || y, S, g).off(S, g);
  2500. });
  2501. }
  2502. var x = b.split("."), k = n.__read(x, 1)[0], I = x.slice(1), M = y[k];
  2503. (0, h.isPlainObject)(M) && (0, d.observable)(M).on("change.".concat(I.join(".")), g);
  2504. var T = f(i, k);
  2505. Object.defineProperty(y, k, { configurable: !0, set: function(O) {
  2506. var L = M;
  2507. L !== O && (M = O, T && T.set && T.set.call(y, O), (0, h.isPlainObject)(M) && (M = (0, d.observable)(M)).on("change.".concat(I.join(".")), g), g(k, L, M));
  2508. }, get: function() {
  2509. return T && T.get ? T.get.call(y) : M;
  2510. } });
  2511. });
  2512. };
  2513. (0, v.isFunction)(i.hookStatus) ? i.hookStatus(a.STATUSES.ready, m) : m(i);
  2514. };
  2515. }
  2516. t.getPropertyDescriptor = f, t.watch = l, t.default = l;
  2517. }, 24263: function(_, t, e) {
  2518. Object.defineProperty(t, "__esModule", { value: !0 }), t.Dom = void 0;
  2519. var n = e(20255), v = e(86893), h = e(10172), p = e(12557), d = e(19035), a = e(76502), s = e(37204), u = e(86893), f = function() {
  2520. function l() {
  2521. }
  2522. return l.detach = function(o) {
  2523. for (; o.firstChild; ) o.removeChild(o.firstChild);
  2524. }, l.wrapInline = function(o, r, i) {
  2525. var c, m = o, y = o;
  2526. i.s.save();
  2527. var g = !1;
  2528. do
  2529. g = !1, (c = m.previousSibling) && !l.isBlock(c) && (g = !0, m = c);
  2530. while (g);
  2531. do
  2532. g = !1, (c = y.nextSibling) && !l.isBlock(c) && (g = !0, y = c);
  2533. while (g);
  2534. var b = (0, h.isString)(r) ? i.createInside.element(r) : r;
  2535. m.parentNode && m.parentNode.insertBefore(b, m);
  2536. for (var w = m; w && (w = m.nextSibling, b.appendChild(m), m !== y && w); ) m = w;
  2537. return i.s.restore(), b;
  2538. }, l.wrap = function(o, r, i) {
  2539. var c = (0, h.isString)(r) ? i.element(r) : r;
  2540. if (l.isNode(o)) {
  2541. if (!o.parentNode) throw (0, a.error)("Element should be in DOM");
  2542. o.parentNode.insertBefore(c, o), c.appendChild(o);
  2543. } else {
  2544. var m = o.extractContents();
  2545. o.insertNode(c), c.appendChild(m);
  2546. }
  2547. return c;
  2548. }, l.unwrap = function(o) {
  2549. var r = o.parentNode;
  2550. if (r) {
  2551. for (; o.firstChild; ) r.insertBefore(o.firstChild, o);
  2552. l.safeRemove(o);
  2553. }
  2554. }, l.between = function(o, r, i) {
  2555. for (var c = o; c && c !== r && (o === c || !i(c)); ) {
  2556. var m = c.firstChild || c.nextSibling;
  2557. if (!m) {
  2558. for (; c && !c.nextSibling; ) c = c.parentNode;
  2559. m = c == null ? void 0 : c.nextSibling;
  2560. }
  2561. c = m;
  2562. }
  2563. }, l.replace = function(o, r, i, c, m) {
  2564. c === void 0 && (c = !1), m === void 0 && (m = !1), (0, h.isHTML)(r) && (r = i.fromHTML(r));
  2565. var y = (0, h.isString)(r) ? i.element(r) : r;
  2566. if (!m) for (; o.firstChild; ) y.appendChild(o.firstChild);
  2567. return c && l.isElement(o) && l.isElement(y) && (0, p.toArray)(o.attributes).forEach(function(g) {
  2568. y.setAttribute(g.name, g.value);
  2569. }), o.parentNode && o.parentNode.replaceChild(y, o), y;
  2570. }, l.isEmptyTextNode = function(o) {
  2571. return l.isText(o) && (!o.nodeValue || o.nodeValue.replace(v.INVISIBLE_SPACE_REG_EXP(), "").trim().length === 0);
  2572. }, l.isEmptyContent = function(o) {
  2573. return l.each(o, function(r) {
  2574. return l.isEmptyTextNode(r);
  2575. });
  2576. }, l.isContentEditable = function(o, r) {
  2577. return l.isNode(o) && !l.closest(o, function(i) {
  2578. return l.isElement(i) && i.getAttribute("contenteditable") === "false";
  2579. }, r);
  2580. }, l.isEmpty = function(o, r) {
  2581. if (r === void 0 && (r = u.NO_EMPTY_TAGS), !o) return !0;
  2582. var i;
  2583. i = (0, h.isFunction)(r) ? r : function(m) {
  2584. return r.has(m.nodeName.toLowerCase());
  2585. };
  2586. var c = function(m) {
  2587. return m.nodeValue == null || (0, d.trim)(m.nodeValue).length === 0;
  2588. };
  2589. return l.isText(o) ? c(o) : !(l.isElement(o) && i(o)) && l.each(o, function(m) {
  2590. if (l.isText(m) && !c(m) || l.isElement(m) && i(m)) return !1;
  2591. });
  2592. }, l.isNode = function(o) {
  2593. return !!(o && (0, h.isString)(o.nodeName) && typeof o.nodeType == "number" && o.childNodes && (0, h.isFunction)(o.appendChild));
  2594. }, l.isCell = function(o) {
  2595. return l.isNode(o) && /^(td|th)$/i.test(o.nodeName);
  2596. }, l.isImage = function(o) {
  2597. return l.isNode(o) && /^(img|svg|picture|canvas)$/i.test(o.nodeName);
  2598. }, l.isBlock = function(o) {
  2599. return !(0, h.isVoid)(o) && typeof o == "object" && l.isNode(o) && v.IS_BLOCK.test(o.nodeName);
  2600. }, l.isText = function(o) {
  2601. return !!(o && o.nodeType === Node.TEXT_NODE);
  2602. }, l.isElement = function(o) {
  2603. var r;
  2604. if (!l.isNode(o)) return !1;
  2605. var i = (r = o.ownerDocument) === null || r === void 0 ? void 0 : r.defaultView;
  2606. return !!(i && o.nodeType === Node.ELEMENT_NODE);
  2607. }, l.isFragment = function(o) {
  2608. var r;
  2609. if (!l.isNode(o)) return !1;
  2610. var i = (r = o.ownerDocument) === null || r === void 0 ? void 0 : r.defaultView;
  2611. return !!(i && o.nodeType === Node.DOCUMENT_FRAGMENT_NODE);
  2612. }, l.isHTMLElement = function(o) {
  2613. var r;
  2614. if (!l.isNode(o)) return !1;
  2615. var i = (r = o.ownerDocument) === null || r === void 0 ? void 0 : r.defaultView;
  2616. return !!(i && o instanceof i.HTMLElement);
  2617. }, l.isInlineBlock = function(o) {
  2618. return l.isElement(o) && !/^(BR|HR)$/i.test(o.tagName) && ["inline", "inline-block"].indexOf((0, a.css)(o, "display").toString()) !== -1;
  2619. }, l.canSplitBlock = function(o) {
  2620. return !(0, h.isVoid)(o) && l.isHTMLElement(o) && l.isBlock(o) && !/^(TD|TH|CAPTION|FORM)$/.test(o.nodeName) && o.style !== void 0 && !/^(fixed|absolute)/i.test(o.style.position);
  2621. }, l.last = function(o, r) {
  2622. var i = o == null ? void 0 : o.lastChild;
  2623. if (!i) return null;
  2624. do {
  2625. if (r(i)) return i;
  2626. var c = i.lastChild;
  2627. if (c || (c = i.previousSibling), !c && i.parentNode !== o) {
  2628. do
  2629. i = i.parentNode;
  2630. while (i && !(i != null && i.previousSibling) && i.parentNode !== o);
  2631. c = i == null ? void 0 : i.previousSibling;
  2632. }
  2633. i = c;
  2634. } while (i);
  2635. return null;
  2636. }, l.prev = function(o, r, i, c) {
  2637. return c === void 0 && (c = !0), l.find(o, r, i, !1, c);
  2638. }, l.next = function(o, r, i, c) {
  2639. return c === void 0 && (c = !0), l.find(o, r, i, !0, c);
  2640. }, l.prevWithClass = function(o, r) {
  2641. return l.prev(o, function(i) {
  2642. return l.isElement(i) && i.classList.contains(r);
  2643. }, o.parentNode);
  2644. }, l.nextWithClass = function(o, r) {
  2645. return l.next(o, function(i) {
  2646. return l.isElement(i) && i.classList.contains(r);
  2647. }, o.parentNode);
  2648. }, l.find = function(o, r, i, c, m) {
  2649. c === void 0 && (c = !0), m === void 0 && (m = !0);
  2650. for (var y = this.nextGen(o, i, c, m), g = y.next(); !g.done; ) {
  2651. if (r(g.value)) return g.value;
  2652. g = y.next();
  2653. }
  2654. return null;
  2655. }, l.nextGen = function(o, r, i, c) {
  2656. var m, y, g;
  2657. return i === void 0 && (i = !0), c === void 0 && (c = !0), n.__generator(this, function(b) {
  2658. switch (b.label) {
  2659. case 0:
  2660. m = [], y = o, b.label = 1;
  2661. case 1:
  2662. for (g = i ? y.nextSibling : y.previousSibling; g; ) m.unshift(g), g = i ? g.nextSibling : g.previousSibling;
  2663. return [5, n.__values(this.runInStack(o, m, i, c))];
  2664. case 2:
  2665. b.sent(), y = y.parentNode, b.label = 3;
  2666. case 3:
  2667. if (y && y !== r) return [3, 1];
  2668. b.label = 4;
  2669. case 4:
  2670. return [2, null];
  2671. }
  2672. });
  2673. }, l.each = function(o, r, i) {
  2674. i === void 0 && (i = !0);
  2675. for (var c = this.eachGen(o, i), m = c.next(); !m.done; ) {
  2676. if (r(m.value) === !1) return !1;
  2677. m = c.next();
  2678. }
  2679. return !0;
  2680. }, l.eachGen = function(o, r) {
  2681. return r === void 0 && (r = !0), this.runInStack(o, [o], r);
  2682. }, l.runInStack = function(o, r, i, c) {
  2683. var m, y;
  2684. return c === void 0 && (c = !0), n.__generator(this, function(g) {
  2685. switch (g.label) {
  2686. case 0:
  2687. if (!r.length) return [3, 3];
  2688. if (m = r.pop(), c) for (y = i ? m.lastChild : m.firstChild; y; ) r.push(y), y = i ? y.previousSibling : y.nextSibling;
  2689. return o === m ? [3, 2] : [4, m];
  2690. case 1:
  2691. g.sent(), g.label = 2;
  2692. case 2:
  2693. return [3, 0];
  2694. case 3:
  2695. return [2];
  2696. }
  2697. });
  2698. }, l.findWithCurrent = function(o, r, i, c, m) {
  2699. c === void 0 && (c = "nextSibling"), m === void 0 && (m = "firstChild");
  2700. var y = o;
  2701. do {
  2702. if (r(y)) return y || null;
  2703. if (m && y && y[m]) {
  2704. var g = l.findWithCurrent(y[m], r, y, c, m);
  2705. if (g) return g;
  2706. }
  2707. for (; y && !y[c] && y !== i; ) y = y.parentNode;
  2708. y && y[c] && y !== i && (y = y[c]);
  2709. } while (y && y !== i);
  2710. return null;
  2711. }, l.findSibling = function(o, r, i) {
  2712. r === void 0 && (r = !0), i === void 0 && (i = function(m) {
  2713. return !l.isEmptyTextNode(m);
  2714. });
  2715. for (var c = l.sibling(o, r); c && !i(c); ) c = l.sibling(c, r);
  2716. return c && i(c) ? c : null;
  2717. }, l.findNotEmptySibling = function(o, r) {
  2718. return l.findSibling(o, r, function(i) {
  2719. var c;
  2720. return !l.isEmptyTextNode(i) && !!(!l.isText(i) || !((c = i.nodeValue) === null || c === void 0) && c.length && (0, d.trim)(i.nodeValue));
  2721. });
  2722. }, l.findNotEmptyNeighbor = function(o, r, i) {
  2723. return (0, a.call)(r ? l.prev : l.next, o, function(c) {
  2724. return !!(c && (!l.isText(c) || (0, d.trim)((c == null ? void 0 : c.nodeValue) || "").length));
  2725. }, i);
  2726. }, l.sibling = function(o, r) {
  2727. return r ? o.previousSibling : o.nextSibling;
  2728. }, l.up = function(o, r, i, c) {
  2729. c === void 0 && (c = !1);
  2730. var m = o;
  2731. if (!m) return null;
  2732. do {
  2733. if (r(m)) return m;
  2734. if (m === i || !m.parentNode) break;
  2735. m = m.parentNode;
  2736. } while (m && m !== i);
  2737. return m === i && c && r(m) ? m : null;
  2738. }, l.closest = function(o, r, i) {
  2739. var c, m = function(g) {
  2740. return g.toLowerCase();
  2741. };
  2742. if ((0, h.isFunction)(r)) c = r;
  2743. else if ((0, h.isArray)(r)) {
  2744. var y = new Set(r.map(m));
  2745. c = function(g) {
  2746. return !!(g && y.has(m(g.nodeName)));
  2747. };
  2748. } else c = function(g) {
  2749. return !!(g && m(r) === m(g.nodeName));
  2750. };
  2751. return l.up(o, c, i);
  2752. }, l.furthest = function(o, r, i) {
  2753. for (var c = null, m = o == null ? void 0 : o.parentElement; m && m !== i; ) r(m) && (c = m), m = m == null ? void 0 : m.parentElement;
  2754. return c;
  2755. }, l.appendChildFirst = function(o, r) {
  2756. var i = o.firstChild;
  2757. i ? i !== r && o.insertBefore(r, i) : o.appendChild(r);
  2758. }, l.after = function(o, r) {
  2759. var i = o.parentNode;
  2760. i && (i.lastChild === o ? i.appendChild(r) : i.insertBefore(r, o.nextSibling));
  2761. }, l.before = function(o, r) {
  2762. var i = o.parentNode;
  2763. i && i.insertBefore(r, o);
  2764. }, l.prepend = function(o, r) {
  2765. o.insertBefore(r, o.firstChild);
  2766. }, l.append = function(o, r) {
  2767. var i = this;
  2768. (0, h.isArray)(r) ? r.forEach(function(c) {
  2769. i.append(o, c);
  2770. }) : o.appendChild(r);
  2771. }, l.moveContent = function(o, r, i, c) {
  2772. i === void 0 && (i = !1), c === void 0 && (c = function() {
  2773. return !0;
  2774. });
  2775. var m = (o.ownerDocument || document).createDocumentFragment();
  2776. (0, p.toArray)(o.childNodes).filter(function(y) {
  2777. return !!c(y) || (l.safeRemove(y), !1);
  2778. }).forEach(function(y) {
  2779. m.appendChild(y);
  2780. }), i && r.firstChild ? r.insertBefore(m, r.firstChild) : r.appendChild(m);
  2781. }, l.isOrContains = function(o, r, i) {
  2782. return i === void 0 && (i = !1), o === r ? !i : !!(r && o && this.up(r, function(c) {
  2783. return c === o;
  2784. }, o, !0));
  2785. }, l.safeRemove = function() {
  2786. for (var o = [], r = 0; arguments.length > r; r++) o[r] = arguments[r];
  2787. o.forEach(function(i) {
  2788. return l.isNode(i) && i.parentNode && i.parentNode.removeChild(i);
  2789. });
  2790. }, l.safeInsertNode = function(o, r) {
  2791. o.collapsed || o.deleteContents(), o.insertNode(r), o.setStartBefore(r), o.collapse(!0), [r.nextSibling, r.previousSibling].forEach(function(i) {
  2792. return l.isText(i) && !i.nodeValue && l.safeRemove(i);
  2793. });
  2794. }, l.hide = function(o) {
  2795. o && ((0, a.dataBind)(o, "__old_display", o.style.display), o.style.display = "none");
  2796. }, l.show = function(o) {
  2797. if (o) {
  2798. var r = (0, a.dataBind)(o, "__old_display");
  2799. o.style.display === "none" && (o.style.display = r || "");
  2800. }
  2801. }, l.isTag = function(o, r) {
  2802. if (!this.isElement(o)) return !1;
  2803. var i = o.tagName.toLowerCase(), c = o.tagName.toUpperCase();
  2804. if (r instanceof Set) return r.has(i) || r.has(c);
  2805. for (var m = (0, p.asArray)(r).map(function(g) {
  2806. return String(g).toLowerCase();
  2807. }), y = 0; m.length > y; y += 1) if (i === m[y] || c === m[y]) return !0;
  2808. return !1;
  2809. }, l.markTemporary = function(o, r) {
  2810. return r && (0, a.attr)(o, r), (0, a.attr)(o, u.TEMP_ATTR, !0), o;
  2811. }, l.isTemporary = function(o) {
  2812. return !!l.isElement(o) && ((0, s.isMarker)(o) || (0, a.attr)(o, u.TEMP_ATTR) === "true");
  2813. }, l.replaceTemporaryFromString = function(o) {
  2814. return o.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi, "$2");
  2815. }, l.temporaryList = function(o) {
  2816. return (0, a.$$)("[".concat(u.TEMP_ATTR, "]"), o);
  2817. }, l;
  2818. }();
  2819. t.Dom = f;
  2820. }, 64968: function(_, t, e) {
  2821. Object.defineProperty(t, "__esModule", { value: !0 });
  2822. var n = e(20255);
  2823. n.__exportStar(e(24263), t), n.__exportStar(e(33841), t);
  2824. }, 33841: function(_, t, e) {
  2825. Object.defineProperty(t, "__esModule", { value: !0 }), t.LazyWalker = void 0;
  2826. var n = e(20255), v = e(73852), h = e(43441), p = e(24263), d = function(a) {
  2827. function s(u, f) {
  2828. f === void 0 && (f = {});
  2829. var l = a.call(this) || this;
  2830. return l.async = u, l.options = f, l.workNodes = null, l.hadAffect = !1, l.isWorked = !1, l.isFinished = !1, l.idleId = 0, l;
  2831. }
  2832. return n.__extends(s, a), s.prototype.setWork = function(u) {
  2833. return this.isWorked && this.break(), this.workNodes = p.Dom.eachGen(u, !this.options.reverse), this.isFinished = !1, this.startIdleRequest(), this;
  2834. }, s.prototype.startIdleRequest = function() {
  2835. var u;
  2836. this.idleId = this.async.requestIdleCallback(this.workPerform, { timeout: (u = this.options.timeout) !== null && u !== void 0 ? u : 10 });
  2837. }, s.prototype.break = function(u) {
  2838. this.isWorked && (this.stop(), this.emit("break", u));
  2839. }, s.prototype.end = function() {
  2840. this.isWorked && (this.stop(), this.emit("end", this.hadAffect), this.hadAffect = !1);
  2841. }, s.prototype.stop = function() {
  2842. this.isWorked = !1, this.isFinished = !0, this.workNodes = null, this.async.cancelIdleCallback(this.idleId);
  2843. }, s.prototype.destruct = function() {
  2844. a.prototype.destruct.call(this), this.stop();
  2845. }, s.prototype.workPerform = function(u) {
  2846. var f;
  2847. if (this.workNodes) {
  2848. this.isWorked = !0;
  2849. for (var l = 0, o = (f = this.options.timeoutChunkSize) !== null && f !== void 0 ? f : 50; !this.isFinished && (u.timeRemaining() > 0 || u.didTimeout && o >= l); ) {
  2850. var r = this.workNodes.next();
  2851. if (l += 1, this.visitNode(r.value) && (this.hadAffect = !0), r.done) return void this.end();
  2852. }
  2853. } else this.end();
  2854. this.isFinished || this.startIdleRequest();
  2855. }, s.prototype.visitNode = function(u) {
  2856. var f;
  2857. return !(!u || this.options.whatToShow !== void 0 && u.nodeType !== this.options.whatToShow) && (f = this.emit("visit", u)) !== null && f !== void 0 && f;
  2858. }, n.__decorate([h.autobind], s.prototype, "workPerform", null), s;
  2859. }(v.Eventify);
  2860. t.LazyWalker = d;
  2861. }, 3808: function(_, t, e) {
  2862. Object.defineProperty(t, "__esModule", { value: !0 }), t.EventEmitter = void 0;
  2863. var n = e(20255), v = e(83611), h = e(24421), p = e(42096), d = e(49781), a = e(56964), s = e(14556), u = function() {
  2864. function f(l) {
  2865. var o = this;
  2866. this.__mutedEvents = /* @__PURE__ */ new Set(), this.__key = "__JoditEventEmitterNamespaces", this.__doc = document, this.__prepareEvent = function(r) {
  2867. r.cancelBubble || (r.composed && (0, p.isFunction)(r.composedPath) && r.composedPath()[0] && Object.defineProperty(r, "target", { value: r.composedPath()[0], configurable: !0, enumerable: !0 }), r.type.match(/^touch/) && r.changedTouches && r.changedTouches.length && ["clientX", "clientY", "pageX", "pageY"].forEach(function(i) {
  2868. Object.defineProperty(r, i, { value: r.changedTouches[0][i], configurable: !0, enumerable: !0 });
  2869. }), r.originalEvent || (r.originalEvent = r), r.type === "paste" && r.clipboardData === void 0 && o.__doc.defaultView.clipboardData && Object.defineProperty(r, "clipboardData", { get: function() {
  2870. return o.__doc.defaultView.clipboardData;
  2871. }, configurable: !0, enumerable: !0 }));
  2872. }, this.currents = [], this.__stopped = [], this.__isDestructed = !1, l && (this.__doc = l), this.__key += (/* @__PURE__ */ new Date()).getTime();
  2873. }
  2874. return f.prototype.mute = function(l) {
  2875. return this.__mutedEvents.add(l != null ? l : "*"), this;
  2876. }, f.prototype.isMuted = function(l) {
  2877. return !(!l || !this.__mutedEvents.has(l)) || this.__mutedEvents.has("*");
  2878. }, f.prototype.unmute = function(l) {
  2879. return this.__mutedEvents.delete(l != null ? l : "*"), this;
  2880. }, f.prototype.__eachEvent = function(l, o) {
  2881. var r = this;
  2882. (0, s.splitArray)(l).map(function(i) {
  2883. return i.trim();
  2884. }).forEach(function(i) {
  2885. var c = i.split(".");
  2886. o.call(r, c[0], c[1] || v.defaultNameSpace);
  2887. });
  2888. }, f.prototype.__getStore = function(l) {
  2889. if (!l) throw (0, a.error)("Need subject");
  2890. if (l[this.__key] === void 0) {
  2891. var o = new v.EventHandlersStore();
  2892. Object.defineProperty(l, this.__key, { enumerable: !1, configurable: !0, writable: !0, value: o });
  2893. }
  2894. return l[this.__key];
  2895. }, f.prototype.__removeStoreFromSubject = function(l) {
  2896. l[this.__key] !== void 0 && Object.defineProperty(l, this.__key, { enumerable: !1, configurable: !0, writable: !0, value: void 0 });
  2897. }, f.prototype.__triggerNativeEvent = function(l, o) {
  2898. var r = this.__doc.createEvent("HTMLEvents");
  2899. (0, h.isString)(o) ? r.initEvent(o, !0, !0) : (r.initEvent(o.type, o.bubbles, o.cancelable), ["screenX", "screenY", "clientX", "clientY", "target", "srcElement", "currentTarget", "timeStamp", "which", "keyCode"].forEach(function(i) {
  2900. Object.defineProperty(r, i, { value: o[i], enumerable: !0 });
  2901. }), Object.defineProperty(r, "originalEvent", { value: o, enumerable: !0 })), l.dispatchEvent(r);
  2902. }, Object.defineProperty(f.prototype, "current", { get: function() {
  2903. return this.currents[this.currents.length - 1];
  2904. }, enumerable: !1, configurable: !0 }), f.prototype.on = function(l, o, r, i) {
  2905. var c, m, y, g, b = this;
  2906. if ((0, h.isString)(l) || (0, h.isStringArray)(l) ? (c = this, m = l, y = o, g = r) : (c = l, m = o, y = r, g = i), !(0, h.isString)(m) && !(0, h.isStringArray)(m) || m.length === 0) throw (0, a.error)("Need events names");
  2907. if (!(0, p.isFunction)(y)) throw (0, a.error)("Need event handler");
  2908. if ((0, d.isArray)(c)) return c.forEach(function(x) {
  2909. b.on(x, m, y, g);
  2910. }), this;
  2911. var w = c, C = this.__getStore(w), S = (0, p.isFunction)(w.addEventListener), j = this, E = function(x) {
  2912. for (var k = [], I = 1; arguments.length > I; I++) k[I - 1] = arguments[I];
  2913. if (!j.isMuted(x)) return y && y.call.apply(y, n.__spreadArray([this], n.__read(k), !1));
  2914. };
  2915. return S && (E = function(x) {
  2916. if (!j.isMuted(x.type)) return j.__prepareEvent(x), y && y.call(this, x) === !1 ? (x.preventDefault(), x.stopImmediatePropagation(), !1) : void 0;
  2917. }), this.__eachEvent(m, function(x, k) {
  2918. if (x.length === 0) throw (0, a.error)("Need event name");
  2919. if (C.indexOf(x, k, y) === !1 && (C.set(x, k, { event: x, originalCallback: y, syntheticCallback: E }, g == null ? void 0 : g.top), S)) {
  2920. var I = !!["touchstart", "touchend", "scroll", "mousewheel", "mousemove", "touchmove"].includes(x) && { passive: !0 };
  2921. w.addEventListener(x, E, I);
  2922. }
  2923. }), this;
  2924. }, f.prototype.one = function(l, o, r, i) {
  2925. var c, m, y, g, b = this;
  2926. (0, h.isString)(l) || (0, h.isStringArray)(l) ? (c = this, m = l, y = o, g = r) : (c = l, m = o, y = r, g = i);
  2927. var w = function() {
  2928. for (var C = [], S = 0; arguments.length > S; S++) C[S] = arguments[S];
  2929. return b.off(c, m, w), y.apply(void 0, n.__spreadArray([], n.__read(C), !1));
  2930. };
  2931. return this.on(c, m, w, g), this;
  2932. }, f.prototype.off = function(l, o, r) {
  2933. var i, c, m, y = this;
  2934. if ((0, h.isString)(l) || (0, h.isStringArray)(l) ? (i = this, c = l, m = o) : (i = l, c = o, m = r), (0, d.isArray)(i)) return i.forEach(function(j) {
  2935. y.off(j, c, m);
  2936. }), this;
  2937. var g = i, b = this.__getStore(g);
  2938. if (!(0, h.isString)(c) && !(0, h.isStringArray)(c) || c.length === 0) return b.namespaces().forEach(function(j) {
  2939. y.off(g, "." + j);
  2940. }), this.__removeStoreFromSubject(g), this;
  2941. var w = (0, p.isFunction)(g.removeEventListener), C = function(j) {
  2942. w && g.removeEventListener(j.event, j.syntheticCallback, !1);
  2943. }, S = function(j, E) {
  2944. if (j !== "") {
  2945. var x = b.get(j, E);
  2946. if (x && x.length) if ((0, p.isFunction)(m)) {
  2947. var k = b.indexOf(j, E, m);
  2948. k !== !1 && (C(x[k]), x.splice(k, 1), x.length || b.clearEvents(E, j));
  2949. } else x.forEach(C), x.length = 0, b.clearEvents(E, j);
  2950. } else b.events(E).forEach(function(I) {
  2951. I !== "" && S(I, E);
  2952. });
  2953. };
  2954. return this.__eachEvent(c, function(j, E) {
  2955. E === v.defaultNameSpace ? b.namespaces().forEach(function(x) {
  2956. S(j, x);
  2957. }) : S(j, E);
  2958. }), b.isEmpty() && this.__removeStoreFromSubject(g), this;
  2959. }, f.prototype.stopPropagation = function(l, o) {
  2960. var r = this, i = (0, h.isString)(l) ? this : l, c = (0, h.isString)(l) ? l : o;
  2961. if (typeof c != "string") throw (0, a.error)("Need event names");
  2962. var m = this.__getStore(i);
  2963. this.__eachEvent(c, function(y, g) {
  2964. var b = m.get(y, g);
  2965. b && r.__stopped.push(b), g === v.defaultNameSpace && m.namespaces(!0).forEach(function(w) {
  2966. return r.stopPropagation(i, y + "." + w);
  2967. });
  2968. });
  2969. }, f.prototype.__removeStop = function(l) {
  2970. if (l) {
  2971. var o = this.__stopped.indexOf(l);
  2972. o !== -1 && this.__stopped.splice(0, o + 1);
  2973. }
  2974. }, f.prototype.__isStopped = function(l) {
  2975. return l !== void 0 && this.__stopped.indexOf(l) !== -1;
  2976. }, f.prototype.fire = function(l, o) {
  2977. for (var r, i, c = this, m = [], y = 2; arguments.length > y; y++) m[y - 2] = arguments[y];
  2978. var g = (0, h.isString)(l) ? this : l, b = (0, h.isString)(l) ? l : o, w = (0, h.isString)(l) ? n.__spreadArray([o], n.__read(m), !1) : m, C = (0, p.isFunction)(g.dispatchEvent);
  2979. if (!C && !(0, h.isString)(b)) throw (0, a.error)("Need events names");
  2980. var S = this.__getStore(g);
  2981. return !(0, h.isString)(b) && C ? this.__triggerNativeEvent(g, o) : this.__eachEvent(b, function(j, E) {
  2982. if (C) c.__triggerNativeEvent(g, j);
  2983. else {
  2984. var x = S.get(j, E);
  2985. if (x) try {
  2986. n.__spreadArray([], n.__read(x), !1).every(function(k) {
  2987. var I;
  2988. return !c.__isStopped(x) && (c.currents.push(j), i = (I = k.syntheticCallback).call.apply(I, n.__spreadArray([g, j], n.__read(w), !1)), c.currents.pop(), i !== void 0 && (r = i), !0);
  2989. });
  2990. } finally {
  2991. c.__removeStop(x);
  2992. }
  2993. E !== v.defaultNameSpace || C || S.namespaces().filter(function(k) {
  2994. return k !== E;
  2995. }).forEach(function(k) {
  2996. var I = c.fire.apply(c, n.__spreadArray([g, j + "." + k], n.__read(w), !1));
  2997. I !== void 0 && (r = I);
  2998. });
  2999. }
  3000. }), r;
  3001. }, f.prototype.destruct = function() {
  3002. this.__isDestructed && (this.__isDestructed = !0, this.off(this), this.__getStore(this).clear(), this.__removeStoreFromSubject(this));
  3003. }, f;
  3004. }();
  3005. t.EventEmitter = u;
  3006. }, 73852: function(_, t, e) {
  3007. Object.defineProperty(t, "__esModule", { value: !0 }), t.Eventify = void 0;
  3008. var n = e(20255), v = function() {
  3009. function h() {
  3010. this.__map = /* @__PURE__ */ new Map();
  3011. }
  3012. return h.prototype.on = function(p, d) {
  3013. var a;
  3014. return this.__map.has(p) || this.__map.set(p, /* @__PURE__ */ new Set()), (a = this.__map.get(p)) === null || a === void 0 || a.add(d), this;
  3015. }, h.prototype.off = function(p, d) {
  3016. var a;
  3017. return this.__map.has(p) && ((a = this.__map.get(p)) === null || a === void 0 || a.delete(d)), this;
  3018. }, h.prototype.destruct = function() {
  3019. this.__map.clear();
  3020. }, h.prototype.emit = function(p) {
  3021. for (var d, a, s = [], u = 1; arguments.length > u; u++) s[u - 1] = arguments[u];
  3022. return this.__map.has(p) && ((d = this.__map.get(p)) === null || d === void 0 || d.forEach(function(f) {
  3023. a = f.apply(void 0, n.__spreadArray([], n.__read(s), !1));
  3024. })), a;
  3025. }, h;
  3026. }();
  3027. t.Eventify = v;
  3028. }, 55395: function(_, t, e) {
  3029. Object.defineProperty(t, "__esModule", { value: !0 });
  3030. var n = e(20255);
  3031. n.__exportStar(e(3808), t), n.__exportStar(e(73852), t), n.__exportStar(e(88418), t), n.__exportStar(e(83611), t);
  3032. }, 88418: function(_, t, e) {
  3033. Object.defineProperty(t, "__esModule", { value: !0 }), t.observable = void 0;
  3034. var n = e(20255), v = e(49781), h = e(32756), p = e(79736), d = e(46163), a = Symbol("observable-object");
  3035. function s(u) {
  3036. return u[a] !== void 0;
  3037. }
  3038. t.observable = function(u) {
  3039. if (s(u)) return u;
  3040. var f = {}, l = {}, o = function(c, m) {
  3041. return (0, v.isArray)(c) ? (c.map(function(y) {
  3042. return o(y, m);
  3043. }), u) : (l[c] || (l[c] = []), l[c].push(m), u);
  3044. }, r = function(c) {
  3045. for (var m = [], y = 1; arguments.length > y; y++) m[y - 1] = arguments[y];
  3046. if ((0, v.isArray)(c)) c.map(function(g) {
  3047. return r.apply(void 0, n.__spreadArray([g], n.__read(m), !1));
  3048. });
  3049. else try {
  3050. !f[c] && l[c] && (f[c] = !0, l[c].forEach(function(g) {
  3051. return g.call.apply(g, n.__spreadArray([u], n.__read(m), !1));
  3052. }));
  3053. } finally {
  3054. f[c] = !1;
  3055. }
  3056. }, i = function(c, m) {
  3057. m === void 0 && (m = []);
  3058. var y = {};
  3059. s(c) || (Object.defineProperty(c, a, { enumerable: !1, value: !0 }), Object.keys(c).forEach(function(g) {
  3060. var b = g, w = m.concat(b).filter(function(S) {
  3061. return S.length;
  3062. });
  3063. y[b] = c[b];
  3064. var C = (0, d.getPropertyDescriptor)(c, b);
  3065. Object.defineProperty(c, b, { set: function(S) {
  3066. var j = y[b];
  3067. if (!(0, h.isFastEqual)(y[b], S)) {
  3068. r(["beforeChange", "beforeChange.".concat(w.join("."))], b, S), (0, p.isPlainObject)(S) && i(S, w), C && C.set ? C.set.call(u, S) : y[b] = S;
  3069. var E = [];
  3070. r(n.__spreadArray(["change"], n.__read(w.reduce(function(x, k) {
  3071. return E.push(k), x.push("change.".concat(E.join("."))), x;
  3072. }, [])), !1), w.join("."), j, S != null && S.valueOf ? S.valueOf() : S);
  3073. }
  3074. }, get: function() {
  3075. return C && C.get ? C.get.call(u) : y[b];
  3076. }, enumerable: !0, configurable: !0 }), (0, p.isPlainObject)(y[b]) && i(y[b], w);
  3077. }), Object.defineProperty(u, "on", { value: o }));
  3078. };
  3079. return i(u), u;
  3080. };
  3081. }, 83611: function(_, t, e) {
  3082. Object.defineProperty(t, "__esModule", { value: !0 }), t.EventHandlersStore = t.defaultNameSpace = void 0, e(52378);
  3083. var n = e(1853);
  3084. t.defaultNameSpace = "JoditEventDefaultNamespace";
  3085. var v = function() {
  3086. function h() {
  3087. this.__store = /* @__PURE__ */ new Map();
  3088. }
  3089. return h.prototype.get = function(p, d) {
  3090. if (this.__store.has(d)) return this.__store.get(d)[p];
  3091. }, h.prototype.indexOf = function(p, d, a) {
  3092. var s = this.get(p, d);
  3093. if (s) {
  3094. for (var u = 0; s.length > u; u += 1) if (s[u].originalCallback === a) return u;
  3095. }
  3096. return !1;
  3097. }, h.prototype.namespaces = function(p) {
  3098. p === void 0 && (p = !1);
  3099. var d = (0, n.toArray)(this.__store.keys());
  3100. return p ? d.filter(function(a) {
  3101. return a !== t.defaultNameSpace;
  3102. }) : d;
  3103. }, h.prototype.events = function(p) {
  3104. var d = this.__store.get(p);
  3105. return d ? Object.keys(d) : [];
  3106. }, h.prototype.set = function(p, d, a, s) {
  3107. s === void 0 && (s = !1);
  3108. var u = this.__store.get(d);
  3109. u || this.__store.set(d, u = {}), u[p] === void 0 && (u[p] = []), s ? u[p].unshift(a) : u[p].push(a);
  3110. }, h.prototype.clear = function() {
  3111. this.__store.clear();
  3112. }, h.prototype.clearEvents = function(p, d) {
  3113. var a = this.__store.get(p);
  3114. a && a[d] && (delete a[d], Object.keys(a).length || this.__store.delete(p));
  3115. }, h.prototype.isEmpty = function() {
  3116. return this.__store.size === 0;
  3117. }, h;
  3118. }();
  3119. t.EventHandlersStore = v;
  3120. }, 17332: function(_, t, e) {
  3121. Object.defineProperty(t, "__esModule", { value: !0 }), t.eventEmitter = t.getContainer = t.extendLang = t.modules = t.pluginSystem = t.uniqueUid = t.instances = void 0;
  3122. var n = e(44540), v = e(64968), h = e(55395), p = e(77892), d = e(96574), a = e(87247), s = e(11278), u = e(86893);
  3123. t.instances = {};
  3124. var f = 1, l = /* @__PURE__ */ new Set();
  3125. t.uniqueUid = function() {
  3126. function r() {
  3127. return f += 10 * (Math.random() + 1), Math.round(f).toString(16);
  3128. }
  3129. for (var i = r(); l.has(i); ) i = r();
  3130. return l.add(i), i;
  3131. }, t.pluginSystem = new n.PluginSystem(), t.modules = {}, t.extendLang = function(r) {
  3132. Object.keys(r).forEach(function(i) {
  3133. u.lang[i] ? Object.assign(u.lang[i], r[i]) : u.lang[i] = r[i];
  3134. });
  3135. };
  3136. var o = /* @__PURE__ */ new WeakMap();
  3137. t.getContainer = function(r, i, c, m) {
  3138. c === void 0 && (c = "div"), m === void 0 && (m = !1);
  3139. var y = i ? (0, a.getClassName)(i.prototype) : "jodit-utils", g = o.get(r) || {}, b = y + c, w = (0, d.isViewObject)(r) ? r : r.j;
  3140. if (!g[b]) {
  3141. var C = w.c, S = (0, p.isJoditObject)(r) && r.o.shadowRoot ? r.o.shadowRoot : r.od.body;
  3142. if (m && (0, p.isJoditObject)(r) && r.od !== r.ed) {
  3143. C = r.createInside;
  3144. var j = c === "style" ? r.ed.head : r.ed.body;
  3145. S = (0, p.isJoditObject)(r) && r.o.shadowRoot ? r.o.shadowRoot : j;
  3146. }
  3147. var E = C.element(c, { className: "jodit jodit-".concat((0, s.kebabCase)(y), "-container jodit-box") });
  3148. E.classList.add("jodit_theme_".concat(w.o.theme || "default")), S.appendChild(E), g[b] = E, r.hookStatus("beforeDestruct", function() {
  3149. v.Dom.safeRemove(E), delete g[b], Object.keys(g).length && o.delete(r);
  3150. }), o.set(r, g);
  3151. }
  3152. return g[b].classList.remove("jodit_theme_default", "jodit_theme_dark"), g[b].classList.add("jodit_theme_".concat(w.o.theme || "default")), g[b];
  3153. }, t.eventEmitter = new h.EventEmitter();
  3154. }, 34578: function(_, t, e) {
  3155. Object.defineProperty(t, "__esModule", { value: !0 }), t.asArray = void 0;
  3156. var n = e(49781);
  3157. t.asArray = function(v) {
  3158. return (0, n.isArray)(v) ? v : [v];
  3159. };
  3160. }, 12557: function(_, t, e) {
  3161. Object.defineProperty(t, "__esModule", { value: !0 }), t.toArray = t.splitArray = t.asArray = void 0;
  3162. var n = e(34578);
  3163. Object.defineProperty(t, "asArray", { enumerable: !0, get: function() {
  3164. return n.asArray;
  3165. } });
  3166. var v = e(14556);
  3167. Object.defineProperty(t, "splitArray", { enumerable: !0, get: function() {
  3168. return v.splitArray;
  3169. } });
  3170. var h = e(1853);
  3171. Object.defineProperty(t, "toArray", { enumerable: !0, get: function() {
  3172. return h.toArray;
  3173. } });
  3174. }, 14556: function(_, t) {
  3175. Object.defineProperty(t, "__esModule", { value: !0 }), t.splitArray = void 0, t.splitArray = function(e) {
  3176. return Array.isArray(e) ? e : e.split(/[,\s]+/);
  3177. };
  3178. }, 1853: function(_, t, e) {
  3179. Object.defineProperty(t, "__esModule", { value: !0 }), t.toArray = void 0;
  3180. var n = e(80861), v = e(28069);
  3181. t.toArray = function() {
  3182. for (var h, p = [], d = 0; arguments.length > d; d++) p[d] = arguments[d];
  3183. var a = (0, v.isNativeFunction)(Array.from) ? Array.from : (h = (0, n.reset)("Array.from")) !== null && h !== void 0 ? h : Array.from;
  3184. return a.apply(Array, p);
  3185. };
  3186. }, 4696: function(_, t, e) {
  3187. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(27512), t);
  3188. }, 27512: function(_, t, e) {
  3189. Object.defineProperty(t, "__esModule", { value: !0 }), t.clearTimeout = t.setTimeout = void 0;
  3190. var n = e(20255);
  3191. t.setTimeout = function(v, h) {
  3192. for (var p = [], d = 2; arguments.length > d; d++) p[d - 2] = arguments[d];
  3193. return h ? window.setTimeout.apply(window, n.__spreadArray([v, h], n.__read(p), !1)) : (v.call.apply(v, n.__spreadArray([null], n.__read(p), !1)), 0);
  3194. }, t.clearTimeout = function(v) {
  3195. window.clearTimeout(v);
  3196. };
  3197. }, 31553: function(_, t) {
  3198. Object.defineProperty(t, "__esModule", { value: !0 }), t.hasBrowserColorPicker = void 0, t.hasBrowserColorPicker = function() {
  3199. var e = !0;
  3200. try {
  3201. var n = document.createElement("input");
  3202. n.type = "color", n.value = "!", e = n.type === "color" && n.value !== "!";
  3203. } catch (v) {
  3204. e = !1;
  3205. }
  3206. return e;
  3207. };
  3208. }, 10172: function(_, t, e) {
  3209. Object.defineProperty(t, "__esModule", { value: !0 });
  3210. var n = e(20255);
  3211. n.__exportStar(e(31553), t), n.__exportStar(e(49781), t), n.__exportStar(e(67749), t), n.__exportStar(e(32756), t), n.__exportStar(e(42096), t), n.__exportStar(e(66869), t), n.__exportStar(e(72543), t), n.__exportStar(e(33156), t), n.__exportStar(e(93578), t), n.__exportStar(e(77892), t), n.__exportStar(e(96574), t), n.__exportStar(e(60280), t), n.__exportStar(e(28069), t), n.__exportStar(e(61817), t), n.__exportStar(e(57649), t), n.__exportStar(e(79736), t), n.__exportStar(e(26335), t), n.__exportStar(e(24421), t), n.__exportStar(e(64350), t), n.__exportStar(e(19179), t), n.__exportStar(e(24021), t), n.__exportStar(e(85994), t), n.__exportStar(e(37204), t);
  3212. }, 49781: function(_, t) {
  3213. Object.defineProperty(t, "__esModule", { value: !0 }), t.isArray = void 0, t.isArray = function(e) {
  3214. return Array.isArray(e);
  3215. };
  3216. }, 67749: function(_, t) {
  3217. Object.defineProperty(t, "__esModule", { value: !0 }), t.isBoolean = void 0, t.isBoolean = function(e) {
  3218. return typeof e == "boolean";
  3219. };
  3220. }, 32756: function(_, t, e) {
  3221. Object.defineProperty(t, "__esModule", { value: !0 }), t.isFastEqual = t.isEqual = void 0;
  3222. var n = e(42554);
  3223. t.isEqual = function(v, h) {
  3224. return v === h || (0, n.stringify)(v) === (0, n.stringify)(h);
  3225. }, t.isFastEqual = function(v, h) {
  3226. return v === h;
  3227. };
  3228. }, 42096: function(_, t) {
  3229. Object.defineProperty(t, "__esModule", { value: !0 }), t.isFunction = void 0, t.isFunction = function(e) {
  3230. return typeof e == "function";
  3231. };
  3232. }, 72543: function(_, t) {
  3233. Object.defineProperty(t, "__esModule", { value: !0 }), t.isHtmlFromWord = void 0, t.isHtmlFromWord = function(e) {
  3234. return e.search(/<meta.*?Microsoft Excel\s[\d].*?>/) !== -1 || e.search(/<meta.*?Microsoft Word\s[\d].*?>/) !== -1 || e.search(/style="[^"]*mso-/) !== -1 && e.search(/<font/) !== -1;
  3235. };
  3236. }, 66869: function(_, t, e) {
  3237. Object.defineProperty(t, "__esModule", { value: !0 }), t.isHTML = void 0;
  3238. var n = e(24421);
  3239. t.isHTML = function(v) {
  3240. return (0, n.isString)(v) && /<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(v.replace(/[\r\n]/g, ""));
  3241. };
  3242. }, 33156: function(_, t, e) {
  3243. Object.defineProperty(t, "__esModule", { value: !0 }), t.hasContainer = t.isDestructable = t.isInitable = void 0;
  3244. var n = e(42096), v = e(24263), h = e(24021);
  3245. t.isInitable = function(p) {
  3246. return !(0, h.isVoid)(p) && (0, n.isFunction)(p.init);
  3247. }, t.isDestructable = function(p) {
  3248. return !(0, h.isVoid)(p) && (0, n.isFunction)(p.destruct);
  3249. }, t.hasContainer = function(p) {
  3250. return !(0, h.isVoid)(p) && v.Dom.isElement(p.container);
  3251. };
  3252. }, 93578: function(_, t, e) {
  3253. Object.defineProperty(t, "__esModule", { value: !0 }), t.isInt = void 0;
  3254. var n = e(57649), v = e(24421);
  3255. t.isInt = function(h) {
  3256. return (0, v.isString)(h) && (0, n.isNumeric)(h) && (h = parseFloat(h)), typeof h == "number" && Number.isFinite(h) && !(h % 1);
  3257. };
  3258. }, 77892: function(_, t, e) {
  3259. Object.defineProperty(t, "__esModule", { value: !0 }), t.isJoditObject = void 0;
  3260. var n = e(42096);
  3261. t.isJoditObject = function(v) {
  3262. return !!(v && v instanceof Object && (0, n.isFunction)(v.constructor) && (typeof Jodit != "undefined" && v instanceof Jodit || v.isJodit));
  3263. };
  3264. }, 60280: function(_, t, e) {
  3265. Object.defineProperty(t, "__esModule", { value: !0 }), t.isLicense = void 0;
  3266. var n = e(24421);
  3267. t.isLicense = function(v) {
  3268. return (0, n.isString)(v) && v.length === 23 && /^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(v);
  3269. };
  3270. }, 37204: function(_, t, e) {
  3271. Object.defineProperty(t, "__esModule", { value: !0 }), t.isMarker = void 0;
  3272. var n = e(24263), v = e(86893);
  3273. t.isMarker = function(h) {
  3274. return n.Dom.isNode(h) && n.Dom.isTag(h, "span") && h.hasAttribute("data-" + v.MARKER_CLASS);
  3275. };
  3276. }, 28069: function(_, t) {
  3277. Object.defineProperty(t, "__esModule", { value: !0 }), t.isNativeFunction = void 0, t.isNativeFunction = function(e) {
  3278. return !!e && (typeof e).toLowerCase() === "function" && (e === Function.prototype || /^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)));
  3279. };
  3280. }, 61817: function(_, t) {
  3281. Object.defineProperty(t, "__esModule", { value: !0 }), t.isNumber = void 0, t.isNumber = function(e) {
  3282. return typeof e == "number" && !isNaN(e) && isFinite(e);
  3283. };
  3284. }, 57649: function(_, t, e) {
  3285. Object.defineProperty(t, "__esModule", { value: !0 }), t.isNumeric = void 0;
  3286. var n = e(24421);
  3287. t.isNumeric = function(v) {
  3288. if ((0, n.isString)(v)) {
  3289. if (!v.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/)) return !1;
  3290. v = parseFloat(v);
  3291. }
  3292. return typeof v == "number" && !isNaN(v) && isFinite(v);
  3293. };
  3294. }, 79736: function(_, t, e) {
  3295. Object.defineProperty(t, "__esModule", { value: !0 }), t.isPlainObject = void 0;
  3296. var n = e(85994);
  3297. t.isPlainObject = function(v) {
  3298. return !(!v || typeof v != "object" || v.nodeType || (0, n.isWindow)(v) || v.constructor && !{}.hasOwnProperty.call(v.constructor.prototype, "isPrototypeOf"));
  3299. };
  3300. }, 26335: function(_, t) {
  3301. Object.defineProperty(t, "__esModule", { value: !0 }), t.isPromise = void 0, t.isPromise = function(e) {
  3302. return e && typeof e.then == "function";
  3303. };
  3304. }, 24421: function(_, t, e) {
  3305. Object.defineProperty(t, "__esModule", { value: !0 }), t.isStringArray = t.isString = void 0;
  3306. var n = e(49781);
  3307. function v(h) {
  3308. return typeof h == "string";
  3309. }
  3310. t.isString = v, t.isStringArray = function(h) {
  3311. return (0, n.isArray)(h) && v(h[0]);
  3312. };
  3313. }, 64350: function(_, t) {
  3314. Object.defineProperty(t, "__esModule", { value: !0 }), t.isURL = void 0, t.isURL = function(e) {
  3315. if (e.includes(" ")) return !1;
  3316. if (typeof URL != "undefined") try {
  3317. var n = new URL(e);
  3318. return ["https:", "http:", "ftp:", "file:", "rtmp:"].includes(n.protocol);
  3319. } catch (h) {
  3320. return !1;
  3321. }
  3322. var v = document.createElement("a");
  3323. return v.href = e, !!v.hostname;
  3324. };
  3325. }, 19179: function(_, t) {
  3326. Object.defineProperty(t, "__esModule", { value: !0 }), t.isValidName = void 0, t.isValidName = function(e) {
  3327. return !!e.length && !/[^0-9A-Za-zа-яА-ЯЁё\w\-_.]/.test(e);
  3328. };
  3329. }, 96574: function(_, t, e) {
  3330. Object.defineProperty(t, "__esModule", { value: !0 }), t.isViewObject = void 0;
  3331. var n = e(42096);
  3332. t.isViewObject = function(v) {
  3333. return !!(v && v instanceof Object && (0, n.isFunction)(v.constructor) && v.isView);
  3334. };
  3335. }, 24021: function(_, t) {
  3336. Object.defineProperty(t, "__esModule", { value: !0 }), t.isVoid = void 0, t.isVoid = function(e) {
  3337. return e == null;
  3338. };
  3339. }, 85994: function(_, t) {
  3340. Object.defineProperty(t, "__esModule", { value: !0 }), t.isWindow = void 0, t.isWindow = function(e) {
  3341. return e != null && e === e.window;
  3342. };
  3343. }, 13203: function(_, t) {
  3344. Object.defineProperty(t, "__esModule", { value: !0 }), t.colorToHex = void 0, t.colorToHex = function(e) {
  3345. if (e === "rgba(0, 0, 0, 0)" || e === "") return !1;
  3346. if (!e) return "#000000";
  3347. if (e.substr(0, 1) === "#") return e;
  3348. var n = /([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e) || /([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);
  3349. if (!n) return "#000000";
  3350. for (var v = parseInt(n[2], 10), h = parseInt(n[3], 10), p = (parseInt(n[4], 10) | h << 8 | v << 16).toString(16).toUpperCase(); 6 > p.length; ) p = "0" + p;
  3351. return n[1] + "#" + p;
  3352. };
  3353. }, 61354: function(_, t, e) {
  3354. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(13203), t);
  3355. }, 66546: function(_, t, e) {
  3356. Object.defineProperty(t, "__esModule", { value: !0 }), t.applyStyles = void 0;
  3357. var n = e(24263), v = e(76502), h = e(33941);
  3358. function p(d) {
  3359. return d.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi, "").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi, "").replace(/border[a-z-]*:[\s]*[^;]+;/gi, "").replace(/([0-9.]+)(pt|cm)/gi, function(a, s, u) {
  3360. switch (u.toLowerCase()) {
  3361. case "pt":
  3362. return (1.328 * parseFloat(s)).toFixed(0) + "px";
  3363. case "cm":
  3364. return (0.02645833 * parseFloat(s)).toFixed(0) + "px";
  3365. }
  3366. return a;
  3367. });
  3368. }
  3369. t.applyStyles = function(d) {
  3370. if (d.indexOf("<html ") === -1) return d;
  3371. d = (d = d.substring(d.indexOf("<html "), d.length)).substring(0, d.lastIndexOf("</html>") + 7);
  3372. var a = document.createElement("iframe");
  3373. a.style.display = "none", document.body.appendChild(a);
  3374. var s = "";
  3375. try {
  3376. var u = a.contentDocument || (a.contentWindow ? a.contentWindow.document : null);
  3377. if (u) {
  3378. u.open(), u.write(d), u.close();
  3379. try {
  3380. for (var f = function(o) {
  3381. for (var r = u.styleSheets[o].cssRules, i = function(m) {
  3382. if (r[m].selectorText === "") return "continue";
  3383. (0, v.$$)(r[m].selectorText, u.body).forEach(function(y) {
  3384. y.style.cssText = p(r[m].style.cssText + ";" + y.style.cssText);
  3385. });
  3386. }, c = 0; r.length > c; c += 1) i(c);
  3387. }, l = 0; u.styleSheets.length > l; l += 1) f(l);
  3388. } catch (o) {
  3389. }
  3390. n.Dom.each(u.body, function(o) {
  3391. if (n.Dom.isElement(o)) {
  3392. var r = o, i = r.getAttribute("style");
  3393. i && (r.style.cssText = p(i)), r.hasAttribute("style") && !r.getAttribute("style") && r.removeAttribute("style");
  3394. }
  3395. }), s = u.firstChild ? (0, h.trim)(u.body.innerHTML) : "";
  3396. }
  3397. } catch (o) {
  3398. } finally {
  3399. n.Dom.safeRemove(a);
  3400. }
  3401. return s && (d = s), (0, h.trim)(d.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, "").replace(/<!--[^>]*>/g, ""));
  3402. };
  3403. }, 33316: function(_, t, e) {
  3404. Object.defineProperty(t, "__esModule", { value: !0 }), t.cleanFromWord = void 0;
  3405. var n = e(24263), v = e(33941), h = e(1853);
  3406. t.cleanFromWord = function(p) {
  3407. p.indexOf("<html ") !== -1 && (p = (p = p.substring(p.indexOf("<html "), p.length)).substring(0, p.lastIndexOf("</html>") + 7));
  3408. var d = "";
  3409. try {
  3410. var a = document.createElement("div");
  3411. a.innerHTML = p;
  3412. var s = [];
  3413. a.firstChild && n.Dom.each(a, function(u) {
  3414. if (u) switch (u.nodeType) {
  3415. case Node.ELEMENT_NODE:
  3416. switch (u.nodeName) {
  3417. case "STYLE":
  3418. case "LINK":
  3419. case "META":
  3420. s.push(u);
  3421. break;
  3422. case "W:SDT":
  3423. case "W:SDTPR":
  3424. case "FONT":
  3425. n.Dom.unwrap(u);
  3426. break;
  3427. default:
  3428. (0, h.toArray)(u.attributes).forEach(function(f) {
  3429. ["src", "href", "rel", "content"].indexOf(f.name.toLowerCase()) === -1 && u.removeAttribute(f.name);
  3430. });
  3431. }
  3432. break;
  3433. case Node.TEXT_NODE:
  3434. break;
  3435. default:
  3436. s.push(u);
  3437. }
  3438. }), n.Dom.safeRemove.apply(null, s), d = a.innerHTML;
  3439. } catch (u) {
  3440. }
  3441. return d && (p = d), (p = p.split(/(\n)/).filter(v.trim).join(`
  3442. `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, "").replace(/<!--[^>]*>/g, "");
  3443. };
  3444. }, 46639: function(_, t) {
  3445. Object.defineProperty(t, "__esModule", { value: !0 }), t.htmlspecialchars = void 0, t.htmlspecialchars = function(e) {
  3446. var n = document.createElement("div");
  3447. return n.textContent = e, n.innerHTML;
  3448. };
  3449. }, 13098: function(_, t, e) {
  3450. Object.defineProperty(t, "__esModule", { value: !0 });
  3451. var n = e(20255);
  3452. n.__exportStar(e(66546), t), n.__exportStar(e(33316), t), n.__exportStar(e(46639), t), n.__exportStar(e(11336), t), n.__exportStar(e(67128), t), n.__exportStar(e(86645), t);
  3453. }, 86645: function(_, t) {
  3454. Object.defineProperty(t, "__esModule", { value: !0 }), t.nl2br = void 0, t.nl2br = function(e) {
  3455. return e.replace(/\r\n|\r|\n/g, "<br/>");
  3456. };
  3457. }, 67128: function(_, t, e) {
  3458. Object.defineProperty(t, "__esModule", { value: !0 }), t.sanitizeHTMLElement = t.safeHTML = void 0;
  3459. var n = e(76502), v = e(24263);
  3460. function h(p, d) {
  3461. var a = d === void 0 ? { safeJavaScriptLink: !0, removeOnError: !0 } : d, s = a.safeJavaScriptLink, u = a.removeOnError;
  3462. if (!v.Dom.isElement(p)) return !1;
  3463. var f = !1;
  3464. u && p.hasAttribute("onerror") && ((0, n.attr)(p, "onerror", null), f = !0);
  3465. var l = p.getAttribute("href");
  3466. return s && l && l.trim().indexOf("javascript") === 0 && ((0, n.attr)(p, "href", location.protocol + "//" + l), f = !0), f;
  3467. }
  3468. t.safeHTML = function(p, d) {
  3469. (v.Dom.isElement(p) || v.Dom.isFragment(p)) && (d.removeOnError && (h(p), (0, n.$$)("[onerror]", p).forEach(function(a) {
  3470. return h(a, d);
  3471. })), d.safeJavaScriptLink && (h(p), (0, n.$$)('a[href^="javascript"]', p).forEach(function(a) {
  3472. return h(a, d);
  3473. })));
  3474. }, t.sanitizeHTMLElement = h;
  3475. }, 11336: function(_, t, e) {
  3476. Object.defineProperty(t, "__esModule", { value: !0 }), t.stripTags = void 0;
  3477. var n = e(24421), v = e(76502), h = e(33941), p = e(24263), d = /* @__PURE__ */ new Set(["div", "p", "br", "h1", "h2", "h3", "h4", "h5", "h6", "hr"]), a = /* @__PURE__ */ new Set(["script", "style"]);
  3478. t.stripTags = function s(u, f, l) {
  3479. f === void 0 && (f = document), l === void 0 && (l = null);
  3480. var o = f.createElement("div");
  3481. return (0, n.isString)(u) ? o.innerHTML = u : o.appendChild(u), (0, v.$$)("*", o).forEach(function(r) {
  3482. var i = r.parentNode;
  3483. if (i) {
  3484. if (l && p.Dom.isTag(r, l)) {
  3485. var c = r.nodeName.toLowerCase(), m = p.Dom.isTag(r, ["br", "hr", "input"]) ? "%%%jodit-single-".concat(c, "%%%") : "%%%jodit-".concat(c, "%%%").concat(s(r.innerHTML, f, l), "%%%/jodit-").concat(c, "%%%");
  3486. return p.Dom.before(r, f.createTextNode(m)), void p.Dom.safeRemove(r);
  3487. }
  3488. if (p.Dom.isTag(r, a)) p.Dom.safeRemove(r);
  3489. else if (p.Dom.isTag(r, d)) {
  3490. var y = r.nextSibling;
  3491. p.Dom.isText(y) && /^\s/.test(y.nodeValue || "") || y && i.insertBefore(f.createTextNode(" "), y);
  3492. }
  3493. }
  3494. }), (0, h.trim)(o.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g, function(r, i, c, m) {
  3495. return "<".concat(i ? "/" : "").concat(m, ">");
  3496. });
  3497. };
  3498. }, 40332: function(_, t, e) {
  3499. Object.defineProperty(t, "__esModule", { value: !0 });
  3500. var n = e(20255);
  3501. n.__exportStar(e(76502), t), n.__exportStar(e(12557), t), n.__exportStar(e(4696), t), n.__exportStar(e(10172), t), n.__exportStar(e(61354), t), n.__exportStar(e(13098), t), n.__exportStar(e(89693), t), n.__exportStar(e(90954), t), n.__exportStar(e(19035), t);
  3502. }, 89693: function(_, t, e) {
  3503. Object.defineProperty(t, "__esModule", { value: !0 });
  3504. var n = e(20255);
  3505. n.__exportStar(e(48926), t), n.__exportStar(e(78648), t), n.__exportStar(e(74504), t), n.__exportStar(e(50870), t), n.__exportStar(e(76787), t), n.__exportStar(e(93251), t), n.__exportStar(e(91518), t), n.__exportStar(e(49353), t), n.__exportStar(e(64274), t);
  3506. }, 64274: function(_, t, e) {
  3507. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeColor = void 0;
  3508. var n = e(61354), v = e(19035);
  3509. t.normalizeColor = function(h) {
  3510. var p = ["#"], d = (0, n.colorToHex)(h);
  3511. if (!d) return !1;
  3512. if ((d = (d = (0, v.trim)(d.toUpperCase())).substr(1)).length === 3) {
  3513. for (var a = 0; 3 > a; a += 1) p.push(d[a]), p.push(d[a]);
  3514. return p.join("");
  3515. }
  3516. return d.length > 6 && (d = d.substr(0, 6)), "#" + d;
  3517. };
  3518. }, 49353: function(_, t, e) {
  3519. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeCssValue = t.normalizeCssNumericValue = t.NUMBER_FIELDS_REG = void 0;
  3520. var n = e(57649), v = e(11278), h = e(13203), p = e(24021);
  3521. t.NUMBER_FIELDS_REG = /^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i, t.normalizeCssNumericValue = function(d, a) {
  3522. return !(0, p.isVoid)(a) && t.NUMBER_FIELDS_REG.test(d) && (0, n.isNumeric)(a.toString()) ? parseInt(a.toString(), 10) + "px" : a;
  3523. }, t.normalizeCssValue = function(d, a) {
  3524. if ((0, v.kebabCase)(d) === "font-weight") {
  3525. switch (a.toString().toLowerCase()) {
  3526. case "700":
  3527. case "bold":
  3528. return 700;
  3529. case "400":
  3530. case "normal":
  3531. return 400;
  3532. case "900":
  3533. case "heavy":
  3534. return 900;
  3535. }
  3536. return (0, n.isNumeric)(a) ? Number(a) : a;
  3537. }
  3538. return /color/i.test(d) && /^rgb/i.test(a.toString()) && (0, h.colorToHex)(a.toString()) || a;
  3539. };
  3540. }, 48926: function(_, t, e) {
  3541. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeKeyAliases = void 0;
  3542. var n = e(33941), v = e(86893);
  3543. t.normalizeKeyAliases = function(h) {
  3544. var p = {}, d = { meta: 1, ctrl: 2, control: 2, alt: 3, shift: 4 };
  3545. return h.replace(/\+\+/g, "+add").split(/[\s]*\+[\s]*/).map(function(a) {
  3546. return (0, n.trim)(a.toLowerCase());
  3547. }).map(function(a) {
  3548. return v.KEY_ALIASES[a] || a;
  3549. }).sort(function(a, s) {
  3550. return d[a] && !d[s] ? -1 : !d[a] && d[s] ? 1 : d[a] && d[s] ? d[a] - d[s] : a > s ? 1 : -1;
  3551. }).filter(function(a) {
  3552. return !p[a] && a !== "" && (p[a] = !0);
  3553. }).join("+");
  3554. };
  3555. }, 78648: function(_, t) {
  3556. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeLicense = void 0, t.normalizeLicense = function(e, n) {
  3557. n === void 0 && (n = 8);
  3558. for (var v = []; e.length; ) v.push(e.substr(0, n)), e = e.substr(n);
  3559. return v[1] = v[1].replace(/./g, "*"), v[2] = v[2].replace(/./g, "*"), v.join("-");
  3560. };
  3561. }, 74504: function(_, t, e) {
  3562. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeNode = void 0;
  3563. var n = e(86893), v = e(24263);
  3564. t.normalizeNode = function h(p) {
  3565. if (p) {
  3566. if (v.Dom.isText(p) && p.nodeValue != null && p.parentNode) for (; v.Dom.isText(p.nextSibling); ) p.nextSibling.nodeValue != null && (p.nodeValue += p.nextSibling.nodeValue), p.nodeValue = p.nodeValue.replace((0, n.INVISIBLE_SPACE_REG_EXP)(), ""), v.Dom.safeRemove(p.nextSibling);
  3567. else h(p.firstChild);
  3568. h(p.nextSibling);
  3569. }
  3570. };
  3571. }, 50870: function(_, t, e) {
  3572. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizePath = void 0;
  3573. var n = e(19035);
  3574. t.normalizePath = function() {
  3575. for (var v = [], h = 0; arguments.length > h; h++) v[h] = arguments[h];
  3576. return v.filter(function(p) {
  3577. return (0, n.trim)(p).length;
  3578. }).map(function(p, d) {
  3579. return p = p.replace(/([^:])[\\/]+/g, "$1/"), d && (p = p.replace(/^\//, "")), d !== v.length - 1 && (p = p.replace(/\/$/, "")), p;
  3580. }).join("/");
  3581. };
  3582. }, 76787: function(_, t) {
  3583. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeRelativePath = void 0, t.normalizeRelativePath = function(e) {
  3584. return e.split("/").reduce(function(n, v) {
  3585. switch (v) {
  3586. case "":
  3587. case ".":
  3588. break;
  3589. case "..":
  3590. n.pop();
  3591. break;
  3592. default:
  3593. n.push(v);
  3594. }
  3595. return n;
  3596. }, []).join("/") + (e.endsWith("/") ? "/" : "");
  3597. };
  3598. }, 93251: function(_, t) {
  3599. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeSize = void 0, t.normalizeSize = function(e) {
  3600. return /^[0-9]+$/.test(e.toString()) ? e + "px" : e.toString();
  3601. };
  3602. }, 91518: function(_, t) {
  3603. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeUrl = void 0, t.normalizeUrl = function() {
  3604. for (var e = [], n = 0; arguments.length > n; n++) e[n] = arguments[n];
  3605. return e.filter(function(v) {
  3606. return v.length;
  3607. }).map(function(v) {
  3608. return v.replace(/\/$/, "");
  3609. }).join("/").replace(/([^:])[\\/]+/g, "$1/");
  3610. };
  3611. }, 1684: function(_, t) {
  3612. Object.defineProperty(t, "__esModule", { value: !0 }), t.getContentWidth = void 0, t.getContentWidth = function(e, n) {
  3613. var v = function(p) {
  3614. return parseInt(p, 10);
  3615. }, h = n.getComputedStyle(e);
  3616. return e.offsetWidth - v(h.getPropertyValue("padding-left") || "0") - v(h.getPropertyValue("padding-right") || "0");
  3617. };
  3618. }, 73874: function(_, t, e) {
  3619. Object.defineProperty(t, "__esModule", { value: !0 }), t.getScrollParent = void 0;
  3620. var n = e(76502), v = e(24263);
  3621. t.getScrollParent = function h(p) {
  3622. if (!p) return null;
  3623. var d = v.Dom.isHTMLElement(p), a = d && (0, n.css)(p, "overflowY");
  3624. return d && a !== "visible" && a !== "hidden" && p.scrollHeight >= p.clientHeight ? p : h(p.parentNode) || document.scrollingElement || document.body;
  3625. };
  3626. }, 90954: function(_, t, e) {
  3627. Object.defineProperty(t, "__esModule", { value: !0 });
  3628. var n = e(20255);
  3629. n.__exportStar(e(1684), t), n.__exportStar(e(73874), t), n.__exportStar(e(83810), t), n.__exportStar(e(98701), t), n.__exportStar(e(81710), t), n.__exportStar(e(16492), t);
  3630. }, 83810: function(_, t) {
  3631. Object.defineProperty(t, "__esModule", { value: !0 }), t.innerWidth = void 0, t.innerWidth = function(e, n) {
  3632. var v = n.getComputedStyle(e);
  3633. return e.clientWidth - (parseFloat(v.paddingLeft || "0") + parseFloat(v.paddingRight || "0"));
  3634. };
  3635. }, 16492: function(_, t, e) {
  3636. Object.defineProperty(t, "__esModule", { value: !0 }), t.size = void 0;
  3637. var n = e(10172);
  3638. t.size = function(v) {
  3639. return (0, n.isString)(v) || (0, n.isArray)(v) ? v.length : (0, n.isPlainObject)(v) ? Object.keys(v).length : 0;
  3640. };
  3641. }, 98701: function(_, t) {
  3642. Object.defineProperty(t, "__esModule", { value: !0 }), t.offset = void 0, t.offset = function(e, n, v, h) {
  3643. var p;
  3644. h === void 0 && (h = !1);
  3645. try {
  3646. p = e.getBoundingClientRect();
  3647. } catch (y) {
  3648. p = { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0 };
  3649. }
  3650. var d, a, s = v.body, u = v.documentElement || { clientTop: 0, clientLeft: 0, scrollTop: 0, scrollLeft: 0 }, f = v.defaultView || v.parentWindow, l = f.pageYOffset || u.scrollTop || s.scrollTop, o = f.pageXOffset || u.scrollLeft || s.scrollLeft, r = u.clientTop || s.clientTop || 0, i = u.clientLeft || s.clientLeft || 0, c = n.iframe;
  3651. if (!h && n && n.options && n.o.iframe && c) {
  3652. var m = (0, t.offset)(c, n, n.od, !0);
  3653. d = p.top + m.top, a = p.left + m.left;
  3654. } else d = p.top + l - r, a = p.left + o - i;
  3655. return { top: Math.round(d), left: Math.round(a), width: p.width, height: p.height };
  3656. };
  3657. }, 81710: function(_, t, e) {
  3658. Object.defineProperty(t, "__esModule", { value: !0 }), t.position = void 0;
  3659. var n = e(77892);
  3660. t.position = function v(h, p, d) {
  3661. d === void 0 && (d = !1);
  3662. var a = h.getBoundingClientRect(), s = a.left, u = a.top;
  3663. if ((0, n.isJoditObject)(p) && p.iframe && p.ed.body.contains(h) && !d) {
  3664. var f = v(p.iframe, p, !0);
  3665. s += f.left, u += f.top;
  3666. }
  3667. return { left: Math.round(s), top: Math.round(u), width: Math.round(h.offsetWidth), height: Math.round(h.offsetHeight) };
  3668. };
  3669. }, 26596: function(_, t) {
  3670. Object.defineProperty(t, "__esModule", { value: !0 }), t.camelCase = void 0, t.camelCase = function(e) {
  3671. return e.replace(/([-_])(.)/g, function(n, v, h) {
  3672. return h.toUpperCase();
  3673. });
  3674. };
  3675. }, 93163: function(_, t, e) {
  3676. Object.defineProperty(t, "__esModule", { value: !0 }), t.fuzzySearchIndex = void 0;
  3677. var n = e(86893);
  3678. t.fuzzySearchIndex = function(v, h, p, d) {
  3679. p === void 0 && (p = 0), d === void 0 && (d = 1);
  3680. var a = 0, s = 0, u = -1, f = 0, l = 0;
  3681. for (s = p; v.length > a && h.length > s; ) v[a].toLowerCase() === h[s].toLowerCase() ? (a++, f++, l = 0, u === -1 && (u = s)) : a > 0 && (d > l || h[s] === n.INVISIBLE_SPACE ? (l++, f++) : (a = 0, u = -1, f = 0, l = 0, s--)), s++;
  3682. return a === v.length ? [u, f] : [-1, 0];
  3683. };
  3684. }, 11625: function(_, t, e) {
  3685. Object.defineProperty(t, "__esModule", { value: !0 }), t.i18n = t.sprintf = void 0;
  3686. var n = e(93166), v = e(76502), h = e(24421), p = e(13449), d = e(86893);
  3687. t.sprintf = function(a, s) {
  3688. if (!s || !s.length) return a;
  3689. for (var u = /%([sd])/g, f = u.exec(a), l = a, o = 0; f && s[o] !== void 0; ) l = l.replace(f[0], s[o].toString()), o += 1, f = u.exec(a);
  3690. return l;
  3691. }, t.i18n = function(a, s, u) {
  3692. if (!(0, h.isString)(a)) throw (0, v.error)("i18n: Need string in first argument");
  3693. if (!a.length) return a;
  3694. var f = !!(u != null && u.debugLanguage), l = {}, o = function(g) {
  3695. return s && s.length ? (0, t.sprintf)(g, s) : g;
  3696. }, r = (0, v.defaultLanguage)(n.Config.defaultOptions.language, n.Config.defaultOptions.language), i = (0, v.defaultLanguage)(u == null ? void 0 : u.language, r), c = function(g) {
  3697. if (g) {
  3698. if ((0, h.isString)(g[a])) return o(g[a]);
  3699. var b = a.toLowerCase();
  3700. if ((0, h.isString)(g[b])) return o(g[b]);
  3701. var w = (0, p.ucfirst)(a);
  3702. return (0, h.isString)(g[w]) ? o(g[w]) : void 0;
  3703. }
  3704. };
  3705. d.lang[i] !== void 0 ? l = d.lang[i] : f || (l = d.lang[r] !== void 0 ? d.lang[r] : d.lang.en);
  3706. var m = u == null ? void 0 : u.i18n;
  3707. if (m && m[i]) {
  3708. var y = c(m[i]);
  3709. if (y) return y;
  3710. }
  3711. return c(l) || (!f && d.lang.en && (0, h.isString)(d.lang.en[a]) && d.lang.en[a] ? o(d.lang.en[a]) : f ? "{" + a + "}" : o(a));
  3712. };
  3713. }, 19035: function(_, t, e) {
  3714. Object.defineProperty(t, "__esModule", { value: !0 });
  3715. var n = e(20255);
  3716. n.__exportStar(e(26596), t), n.__exportStar(e(93163), t), n.__exportStar(e(11625), t), n.__exportStar(e(11278), t), n.__exportStar(e(42554), t), n.__exportStar(e(33941), t), n.__exportStar(e(13449), t);
  3717. }, 11278: function(_, t) {
  3718. Object.defineProperty(t, "__esModule", { value: !0 }), t.CamelCaseToKebabCase = t.kebabCase = void 0, t.kebabCase = function(e) {
  3719. return e.replace(/([A-Z])([A-Z])([a-z])/g, "$1-$2$3").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
  3720. }, t.CamelCaseToKebabCase = function(e) {
  3721. return e.replace(/([A-Z])([A-Z])([a-z])/g, "$1-$2$3").replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
  3722. };
  3723. }, 42554: function(_, t) {
  3724. Object.defineProperty(t, "__esModule", { value: !0 }), t.stringify = void 0, t.stringify = function(e, n) {
  3725. if (n === void 0 && (n = {}), typeof e != "object") return String(e);
  3726. var v = new Set(n.excludeKeys), h = /* @__PURE__ */ new WeakMap();
  3727. return JSON.stringify(e, function(p, d) {
  3728. if (!v.has(p)) {
  3729. if (typeof d == "object" && d != null) {
  3730. if (h.get(d)) return "[refObject]";
  3731. h.set(d, !0);
  3732. }
  3733. return d;
  3734. }
  3735. }, n.prettify);
  3736. };
  3737. }, 33941: function(_, t, e) {
  3738. Object.defineProperty(t, "__esModule", { value: !0 }), t.trimInv = t.trim = void 0;
  3739. var n = e(86893);
  3740. t.trim = function(v) {
  3741. return v.replace((0, n.SPACE_REG_EXP_END)(), "").replace((0, n.SPACE_REG_EXP_START)(), "");
  3742. }, t.trimInv = function(v) {
  3743. return v.replace((0, n.INVISIBLE_SPACE_REG_EXP_END)(), "").replace((0, n.INVISIBLE_SPACE_REG_EXP_START)(), "");
  3744. };
  3745. }, 13449: function(_, t) {
  3746. Object.defineProperty(t, "__esModule", { value: !0 }), t.ucfirst = void 0, t.ucfirst = function(e) {
  3747. return e.length ? e[0].toUpperCase() + e.substr(1) : "";
  3748. };
  3749. }, 60303: function(_, t, e) {
  3750. Object.defineProperty(t, "__esModule", { value: !0 }), t.alignElement = t.clearAlign = t.hAlignElement = void 0;
  3751. var n = e(64968), v = e(26911);
  3752. function h(p) {
  3753. n.Dom.each(p, function(d) {
  3754. n.Dom.isHTMLElement(d) && d.style.textAlign && (d.style.textAlign = "", d.style.cssText.trim().length || d.removeAttribute("style"));
  3755. });
  3756. }
  3757. t.hAlignElement = function(p, d) {
  3758. d && d !== "normal" ? d !== "center" ? ((0, v.css)(p, "float", d), (0, v.clearCenterAlign)(p)) : (0, v.css)(p, { float: "", display: "block", marginLeft: "auto", marginRight: "auto" }) : ((0, v.css)(p, "float") && ["right", "left"].indexOf((0, v.css)(p, "float").toString().toLowerCase()) !== -1 && (0, v.css)(p, "float", ""), (0, v.clearCenterAlign)(p));
  3759. }, t.clearAlign = h, t.alignElement = function(p, d) {
  3760. if (n.Dom.isNode(d) && n.Dom.isElement(d)) switch (h(d), p.toLowerCase()) {
  3761. case "justifyfull":
  3762. d.style.textAlign = "justify";
  3763. break;
  3764. case "justifyright":
  3765. d.style.textAlign = "right";
  3766. break;
  3767. case "justifyleft":
  3768. d.style.textAlign = "left";
  3769. break;
  3770. case "justifycenter":
  3771. d.style.textAlign = "center";
  3772. }
  3773. };
  3774. }, 62462: function(_, t, e) {
  3775. Object.defineProperty(t, "__esModule", { value: !0 }), t.loadNextStyle = t.loadNext = t.appendStyleAsync = t.appendScriptAsync = t.appendScript = void 0;
  3776. var n = e(20255), v = e(48240), h = e(42096), p = e(24421), d = /* @__PURE__ */ new Map(), a = function(s) {
  3777. return function(u, f) {
  3778. return n.__awaiter(void 0, void 0, Promise, function() {
  3779. var l;
  3780. return n.__generator(this, function(o) {
  3781. return d.has(f) ? [2, d.get(f)] : (l = s(u, f), d.set(f, l), [2, l]);
  3782. });
  3783. });
  3784. };
  3785. };
  3786. t.appendScript = function(s, u, f) {
  3787. var l = s.c.element("script");
  3788. return l.type = "text/javascript", l.async = !0, (0, h.isFunction)(f) && !s.isInDestruct && s.e.on(l, "load", f), l.src || (l.src = (0, v.completeUrl)(u)), s.od.body.appendChild(l), { callback: f, element: l };
  3789. }, t.appendScriptAsync = a(function(s, u) {
  3790. return new Promise(function(f, l) {
  3791. var o = (0, t.appendScript)(s, u, f).element;
  3792. !s.isInDestruct && s.e.on(o, "error", l);
  3793. });
  3794. }), t.appendStyleAsync = a(function(s, u) {
  3795. return new Promise(function(f, l) {
  3796. var o = s.c.element("link");
  3797. o.rel = "stylesheet", o.media = "all", o.crossOrigin = "anonymous", !s.isInDestruct && s.e.on(o, "load", function() {
  3798. return f(o);
  3799. }).on(o, "error", l), o.href = (0, v.completeUrl)(u), s.o.shadowRoot ? s.o.shadowRoot.appendChild(o) : s.od.body.appendChild(o);
  3800. });
  3801. }), t.loadNext = function(s, u, f) {
  3802. return f === void 0 && (f = 0), (0, p.isString)(u[f]) ? (0, t.appendScriptAsync)(s, u[f]).then(function() {
  3803. return (0, t.loadNext)(s, u, f + 1);
  3804. }) : Promise.resolve();
  3805. }, t.loadNextStyle = function(s, u, f) {
  3806. return f === void 0 && (f = 0), (0, p.isString)(u[f]) ? (0, t.appendStyleAsync)(s, u[f]).then(function() {
  3807. return (0, t.loadNextStyle)(s, u, f + 1);
  3808. }) : Promise.resolve();
  3809. };
  3810. }, 603: function(_, t, e) {
  3811. Object.defineProperty(t, "__esModule", { value: !0 }), t.assert = void 0;
  3812. var n = e(20255), v = function(h) {
  3813. function p(d) {
  3814. var a = h.call(this, d) || this;
  3815. return a.name = "AssertionError", a;
  3816. }
  3817. return n.__extends(p, h), p;
  3818. }(Error);
  3819. t.assert = function(h, p) {
  3820. if (!h) throw new v("Assertion failed: ".concat(p));
  3821. };
  3822. }, 37682: function(_, t) {
  3823. Object.defineProperty(t, "__esModule", { value: !0 }), t.browser = void 0, t.browser = function(e) {
  3824. var n = navigator.userAgent.toLowerCase(), v = /(firefox)[\s/]([\w.]+)/.exec(n) || /(chrome)[\s/]([\w.]+)/.exec(n) || /(webkit)[\s/]([\w.]+)/.exec(n) || /(opera)(?:.*version)[\s/]([\w.]+)/.exec(n) || /(msie)[\s]([\w.]+)/.exec(n) || /(trident)\/([\w.]+)/.exec(n) || 0 > n.indexOf("compatible") || [];
  3825. return e === "version" ? v[2] : e === "webkit" ? v[1] === "chrome" || v[1] === "webkit" : e === "ff" ? v[1] === "firefox" : e === "msie" ? v[1] === "trident" || v[1] === "msie" : v[1] === e;
  3826. };
  3827. }, 71567: function(_, t, e) {
  3828. Object.defineProperty(t, "__esModule", { value: !0 }), t.buildQuery = void 0;
  3829. var n = e(79736);
  3830. t.buildQuery = function(v, h) {
  3831. var p = [], d = encodeURIComponent;
  3832. for (var a in v) if (Object.prototype.hasOwnProperty.call(v, a)) {
  3833. var s = h ? h + "[" + a + "]" : a, u = v[a];
  3834. p.push((0, n.isPlainObject)(u) ? (0, t.buildQuery)(u, s) : d(s) + "=" + d(u));
  3835. }
  3836. return p.join("&");
  3837. };
  3838. }, 48240: function(_, t) {
  3839. Object.defineProperty(t, "__esModule", { value: !0 }), t.completeUrl = void 0, t.completeUrl = function(e) {
  3840. return window.location.protocol === "file:" && /^\/\//.test(e) && (e = "https:" + e), e;
  3841. };
  3842. }, 64981: function(_, t, e) {
  3843. Object.defineProperty(t, "__esModule", { value: !0 }), t.ConfigFlatten = t.ConfigProto = void 0;
  3844. var n = e(20255), v = e(7935), h = e(49781), p = e(79736), d = e(24421), a = e(24021), s = e(93166), u = e(67309);
  3845. t.ConfigProto = function f(l, o, r) {
  3846. if (r === void 0 && (r = 0), Object.getPrototypeOf(l) !== Object.prototype) return l;
  3847. var i = s.Config.defaultOptions;
  3848. if ((0, d.isString)(l.preset)) {
  3849. if (i.presets[l.preset] !== void 0) {
  3850. var c = i.presets[l.preset];
  3851. Object.keys(c).forEach(function(y) {
  3852. (0, a.isVoid)(l[y]) && (l[y] = c[y]);
  3853. });
  3854. }
  3855. delete l.preset;
  3856. }
  3857. var m = {};
  3858. return Object.keys(l).forEach(function(y) {
  3859. var g = l[y], b = o ? o[y] : null;
  3860. m[y] = (0, p.isPlainObject)(g) && (0, p.isPlainObject)(b) && !(0, v.isAtom)(g) ? f(g, b, r + 1) : r !== 0 && (0, h.isArray)(g) && !(0, v.isAtom)(g) && (0, h.isArray)(b) ? n.__spreadArray(n.__spreadArray([], n.__read(g), !1), n.__read(b.slice(g.length)), !1) : g;
  3861. }), Object.setPrototypeOf(m, o), m;
  3862. }, t.ConfigFlatten = function(f) {
  3863. return (0, u.keys)(f, !1).reduce(function(l, o) {
  3864. return l[o] = f[o], l;
  3865. }, {});
  3866. };
  3867. }, 42051: function(_, t, e) {
  3868. Object.defineProperty(t, "__esModule", { value: !0 }), t.convertMediaUrlToVideoEmbed = void 0;
  3869. var n = e(64350), v = e(67285);
  3870. t.convertMediaUrlToVideoEmbed = function(h, p, d) {
  3871. if (p === void 0 && (p = 400), d === void 0 && (d = 345), !(0, n.isURL)(h)) return h;
  3872. var a = document.createElement("a"), s = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
  3873. a.href = h, p || (p = 400), d || (d = 345);
  3874. var u = a.protocol || "";
  3875. switch (a.hostname) {
  3876. case "www.vimeo.com":
  3877. case "vimeo.com":
  3878. return s.test(h) ? h.replace(s, '<iframe width="' + p + '" height="' + d + '" src="' + u + '//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>') : h;
  3879. case "youtube.com":
  3880. case "www.youtube.com":
  3881. case "youtu.be":
  3882. case "www.youtu.be":
  3883. var f = a.search ? (0, v.parseQuery)(a.search) : { v: a.pathname.substr(1) };
  3884. return f.v ? '<iframe width="' + p + '" height="' + d + '" src="' + u + "//www.youtube.com/embed/" + f.v + '" frameborder="0" allowfullscreen></iframe>' : h;
  3885. }
  3886. return h;
  3887. };
  3888. }, 26911: function(_, t, e) {
  3889. Object.defineProperty(t, "__esModule", { value: !0 }), t.clearCenterAlign = t.css = void 0;
  3890. var n = e(79736), v = e(67749), h = e(49353), p = e(26596), d = e(11278);
  3891. function a(s, u, f, l) {
  3892. if (l === void 0 && (l = !1), (0, v.isBoolean)(f) && (l = f, f = void 0), (0, n.isPlainObject)(u) || f !== void 0) {
  3893. var o = function(w, C, S) {
  3894. (S = (0, h.normalizeCssNumericValue)(C, S)) === void 0 || S != null && a(w, C, !0) === (0, h.normalizeCssValue)(C, S) || (w.style[C] = S);
  3895. };
  3896. if ((0, n.isPlainObject)(u)) for (var r = Object.keys(u), i = 0; r.length > i; i += 1) o(s, (0, p.camelCase)(r[i]), u[r[i]]);
  3897. else o(s, (0, p.camelCase)(u), f);
  3898. return "";
  3899. }
  3900. var c = (0, d.kebabCase)(u), m = s.ownerDocument || document, y = !!m && (m.defaultView || m.parentWindow), g = s.style[u], b = "";
  3901. return g !== void 0 && g !== "" ? b = g : y && !l && (b = y.getComputedStyle(s).getPropertyValue(c)), h.NUMBER_FIELDS_REG.test(u) && /^[-+]?[0-9.]+px$/.test(b.toString()) && (b = parseInt(b.toString(), 10)), (0, h.normalizeCssValue)(u, b);
  3902. }
  3903. t.css = a, t.clearCenterAlign = function(s) {
  3904. a(s, "display") === "block" && a(s, "display", "");
  3905. var u = s.style;
  3906. u.marginLeft === "auto" && u.marginRight === "auto" && (u.marginLeft = "", u.marginRight = "");
  3907. };
  3908. }, 2522: function(_, t) {
  3909. Object.defineProperty(t, "__esModule", { value: !0 }), t.ctrlKey = void 0, t.ctrlKey = function(e) {
  3910. if (typeof navigator != "undefined" && navigator.userAgent.indexOf("Mac OS X") !== -1) {
  3911. if (e.metaKey && !e.altKey) return !0;
  3912. } else if (e.ctrlKey && !e.altKey) return !0;
  3913. return !1;
  3914. };
  3915. }, 63122: function(_, t, e) {
  3916. Object.defineProperty(t, "__esModule", { value: !0 }), t.dataBind = void 0;
  3917. var n = e(96574), v = /* @__PURE__ */ new WeakMap();
  3918. t.dataBind = function(h, p, d) {
  3919. var a = v.get(h);
  3920. if (!a) {
  3921. v.set(h, a = {});
  3922. var s = null;
  3923. (0, n.isViewObject)(h.j) && (s = h.j.e), (0, n.isViewObject)(h) && (s = h.e), s && s.on("beforeDestruct", function() {
  3924. v.delete(h);
  3925. });
  3926. }
  3927. return d === void 0 ? a[p] : (a[p] = d, d);
  3928. };
  3929. }, 93351: function(_, t, e) {
  3930. Object.defineProperty(t, "__esModule", { value: !0 }), t.defaultLanguage = void 0;
  3931. var n = e(24421);
  3932. t.defaultLanguage = function(v, h) {
  3933. return h === void 0 && (h = "en"), v !== "auto" && (0, n.isString)(v) ? v : document.documentElement && document.documentElement.lang ? document.documentElement.lang : navigator.language ? navigator.language.substring(0, 2) : h;
  3934. };
  3935. }, 41579: function(_, t, e) {
  3936. Object.defineProperty(t, "__esModule", { value: !0 }), t.isAbort = t.abort = t.options = t.connection = t.error = void 0;
  3937. var n = e(45339);
  3938. t.error = function(v) {
  3939. return new TypeError(v);
  3940. }, t.connection = function(v) {
  3941. return new n.ConnectionError(v);
  3942. }, t.options = function(v) {
  3943. return new n.OptionsError(v);
  3944. }, t.abort = function(v) {
  3945. return new n.AbortError(v);
  3946. }, t.isAbort = function(v) {
  3947. return v instanceof n.AbortError;
  3948. };
  3949. }, 86768: function(_, t, e) {
  3950. Object.defineProperty(t, "__esModule", { value: !0 }), t.AbortError = void 0;
  3951. var n = e(20255), v = function(h) {
  3952. function p(d) {
  3953. var a = h.call(this, d) || this;
  3954. return Object.setPrototypeOf(a, p.prototype), a;
  3955. }
  3956. return n.__extends(p, h), p;
  3957. }(Error);
  3958. t.AbortError = v;
  3959. }, 43380: function(_, t, e) {
  3960. Object.defineProperty(t, "__esModule", { value: !0 }), t.ConnectionError = void 0;
  3961. var n = e(20255), v = function(h) {
  3962. function p(d) {
  3963. var a = h.call(this, d) || this;
  3964. return Object.setPrototypeOf(a, p.prototype), a;
  3965. }
  3966. return n.__extends(p, h), p;
  3967. }(Error);
  3968. t.ConnectionError = v;
  3969. }, 45339: function(_, t, e) {
  3970. Object.defineProperty(t, "__esModule", { value: !0 });
  3971. var n = e(20255);
  3972. n.__exportStar(e(86768), t), n.__exportStar(e(43380), t), n.__exportStar(e(47403), t);
  3973. }, 47403: function(_, t, e) {
  3974. Object.defineProperty(t, "__esModule", { value: !0 }), t.OptionsError = void 0;
  3975. var n = e(20255), v = function(h) {
  3976. function p(d) {
  3977. var a = h.call(this, d) || this;
  3978. return Object.setPrototypeOf(a, p.prototype), a;
  3979. }
  3980. return n.__extends(p, h), p;
  3981. }(TypeError);
  3982. t.OptionsError = v;
  3983. }, 56964: function(_, t, e) {
  3984. Object.defineProperty(t, "__esModule", { value: !0 });
  3985. var n = e(20255);
  3986. n.__exportStar(e(41579), t), n.__exportStar(e(45339), t);
  3987. }, 7935: function(_, t, e) {
  3988. Object.defineProperty(t, "__esModule", { value: !0 }), t.fastClone = t.markAsAtomic = t.isAtom = void 0;
  3989. var n = e(42554);
  3990. t.isAtom = function(v) {
  3991. return v && v.isAtom;
  3992. }, t.markAsAtomic = function(v) {
  3993. return Object.defineProperty(v, "isAtom", { enumerable: !1, value: !0, configurable: !1 }), v;
  3994. }, t.fastClone = function(v) {
  3995. return JSON.parse((0, n.stringify)(v));
  3996. };
  3997. }, 87247: function(_, t, e) {
  3998. Object.defineProperty(t, "__esModule", { value: !0 }), t.getClassName = t.keepNames = void 0;
  3999. var n = e(42096);
  4000. t.keepNames = /* @__PURE__ */ new Map(), t.getClassName = function(v) {
  4001. var h;
  4002. if ((0, n.isFunction)(v.className)) return v.className();
  4003. var p = ((h = v.constructor) === null || h === void 0 ? void 0 : h.originalConstructor) || v.constructor;
  4004. if (t.keepNames.has(p)) return t.keepNames.get(p);
  4005. if (p.name) return p.name;
  4006. var d = new RegExp(/^\s*function\s*(\S*)\s*\(/), a = p.toString().match(d);
  4007. return a ? a[1] : "";
  4008. };
  4009. }, 69384: function(_, t, e) {
  4010. Object.defineProperty(t, "__esModule", { value: !0 }), t.get = void 0;
  4011. var n = e(20255), v = e(24421), h = e(24021);
  4012. t.get = function(p, d) {
  4013. var a, s;
  4014. if (!(0, v.isString)(p) || !p.length) return null;
  4015. var u = p.split("."), f = d;
  4016. try {
  4017. try {
  4018. for (var l = n.__values(u), o = l.next(); !o.done; o = l.next()) {
  4019. var r = o.value;
  4020. if ((0, h.isVoid)(f[r])) return null;
  4021. f = f[r];
  4022. }
  4023. } catch (i) {
  4024. a = { error: i };
  4025. } finally {
  4026. try {
  4027. o && !o.done && (s = l.return) && s.call(l);
  4028. } finally {
  4029. if (a) throw a.error;
  4030. }
  4031. }
  4032. } catch (i) {
  4033. return null;
  4034. }
  4035. return (0, h.isVoid)(f) ? null : f;
  4036. };
  4037. }, 6102: function(_, t) {
  4038. Object.defineProperty(t, "__esModule", { value: !0 }), t.humanSizeToBytes = void 0, t.humanSizeToBytes = function(e) {
  4039. if (/^[0-9.]+$/.test(e.toString())) return parseFloat(e);
  4040. var n = e.substr(-2, 2).toUpperCase(), v = ["KB", "MB", "GB", "TB"], h = parseFloat(e.substr(0, e.length - 2));
  4041. return v.indexOf(n) !== -1 ? h * Math.pow(1024, v.indexOf(n) + 1) : parseInt(e, 10);
  4042. };
  4043. }, 76502: function(_, t, e) {
  4044. Object.defineProperty(t, "__esModule", { value: !0 });
  4045. var n = e(20255);
  4046. n.__exportStar(e(60303), t), n.__exportStar(e(62462), t), n.__exportStar(e(52378), t), n.__exportStar(e(37682), t), n.__exportStar(e(71567), t), n.__exportStar(e(48240), t), n.__exportStar(e(64981), t), n.__exportStar(e(42051), t), n.__exportStar(e(26911), t), n.__exportStar(e(2522), t), n.__exportStar(e(63122), t), n.__exportStar(e(93351), t), n.__exportStar(e(56964), t), n.__exportStar(e(7935), t), n.__exportStar(e(69384), t), n.__exportStar(e(87247), t), n.__exportStar(e(6102), t), n.__exportStar(e(47580), t), n.__exportStar(e(67285), t), n.__exportStar(e(21498), t), n.__exportStar(e(80861), t), n.__exportStar(e(9005), t), n.__exportStar(e(54188), t), n.__exportStar(e(21518), t), n.__exportStar(e(37228), t), n.__exportStar(e(67309), t), n.__exportStar(e(22362), t);
  4047. }, 47580: function(_, t, e) {
  4048. Object.defineProperty(t, "__esModule", { value: !0 }), t.markDeprecated = t.cns = void 0;
  4049. var n = e(20255);
  4050. t.cns = console, t.markDeprecated = function(v, h, p) {
  4051. return h === void 0 && (h = [""]), p === void 0 && (p = null), function() {
  4052. for (var d = [], a = 0; arguments.length > a; a++) d[a] = arguments[a];
  4053. return t.cns.warn('Method "'.concat(h[0], '" deprecated.') + (h[1] ? ' Use "'.concat(h[1], '" instead') : "")), v.call.apply(v, n.__spreadArray([p], n.__read(d), !1));
  4054. };
  4055. };
  4056. }, 67285: function(_, t) {
  4057. Object.defineProperty(t, "__esModule", { value: !0 }), t.parseQuery = void 0, t.parseQuery = function(e) {
  4058. for (var n = {}, v = e.substring(1).split("&"), h = 0; v.length > h; h += 1) {
  4059. var p = v[h].split("=");
  4060. n[decodeURIComponent(p[0])] = decodeURIComponent(p[1] || "");
  4061. }
  4062. return n;
  4063. };
  4064. }, 21498: function(_, t, e) {
  4065. Object.defineProperty(t, "__esModule", { value: !0 }), t.previewBox = void 0;
  4066. var n = e(24421), v = e(24263), h = e(26911), p = e(67309), d = e(54188);
  4067. t.previewBox = function(a, s, u, f) {
  4068. u === void 0 && (u = "px"), f === void 0 && (f = null);
  4069. var l = function(b, w) {
  4070. var C = [];
  4071. try {
  4072. (0, d.$$)("img", b.editor).forEach(function(S) {
  4073. var j = [(0, p.attr)(S, "width"), (0, p.attr)(S, "height"), S.src];
  4074. (0, p.attr)(S, { width: S.offsetWidth + w, height: S.offsetHeight + w });
  4075. var E = b.createInside.a();
  4076. b.ed.body.appendChild(E), E.href = S.src, S.src = E.href, v.Dom.safeRemove(E), C.push(function() {
  4077. var x;
  4078. S.src = (x = j[2]) !== null && x !== void 0 ? x : "", (0, p.attr)(S, { width: j[0] || null, height: j[1] || null });
  4079. });
  4080. });
  4081. } catch (S) {
  4082. throw C.forEach(function(j) {
  4083. return j();
  4084. }), C.length = 0, S;
  4085. }
  4086. return C;
  4087. }(a, u);
  4088. try {
  4089. var o = a.e.fire("beforePreviewBox", s, u);
  4090. if (o != null) return o;
  4091. var r = a.c.div("jodit__preview-box jodit-context");
  4092. f && f.appendChild(r), (0, h.css)(r, { position: "relative", padding: 16 });
  4093. var i = a.value || "<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>".concat(a.i18n("Empty"), "</div>");
  4094. if (a.iframe) {
  4095. var c = a.create.element("iframe");
  4096. (0, h.css)(c, { minWidth: 800, minHeight: 600, border: 0 }), r.appendChild(c);
  4097. var m = c.contentWindow;
  4098. if (m && (a.e.fire("generateDocumentStructure.iframe", m.document, a), r = m.document.body, typeof ResizeObserver == "function")) {
  4099. var y = new ResizeObserver(function(b) {
  4100. c.style.height = m.document.body.offsetHeight + 20 + "px";
  4101. });
  4102. y.observe(m.document.body), a.e.on("beforeDestruct", function() {
  4103. y.unobserve(m.document.body);
  4104. });
  4105. }
  4106. } else (0, h.css)(r, { minWidth: 1024, minHeight: 600, border: 0 });
  4107. var g = function(b, w) {
  4108. var C = (0, n.isString)(w) ? a.c.div() : w;
  4109. (0, n.isString)(w) && (C.innerHTML = w);
  4110. for (var S = 0; C.childNodes.length > S; S += 1) {
  4111. var j = C.childNodes[S];
  4112. if (v.Dom.isElement(j)) {
  4113. for (var E = b.ownerDocument.createElement(j.nodeName), x = 0; j.attributes.length > x; x += 1) (0, p.attr)(E, j.attributes[x].nodeName, j.attributes[x].nodeValue);
  4114. j.childNodes.length === 0 || v.Dom.isTag(j, ["table"]) ? j.nodeName === "SCRIPT" ? j.textContent && (E.textContent = j.textContent) : j.innerHTML && (E.innerHTML = j.innerHTML) : g(E, j);
  4115. try {
  4116. b.appendChild(E);
  4117. } catch (k) {
  4118. }
  4119. } else try {
  4120. b.appendChild(j.cloneNode(!0));
  4121. } catch (k) {
  4122. }
  4123. }
  4124. };
  4125. return g(r, i), a.e.fire("afterPreviewBox", r), r;
  4126. } finally {
  4127. l.forEach(function(b) {
  4128. return b();
  4129. });
  4130. }
  4131. };
  4132. }, 80861: function(_, t, e) {
  4133. Object.defineProperty(t, "__esModule", { value: !0 }), t.reset = void 0;
  4134. var n = e(69384), v = e(42096), h = {};
  4135. t.reset = function(p) {
  4136. var d, a;
  4137. if (!(p in h)) {
  4138. var s = document.createElement("iframe");
  4139. try {
  4140. if (s.src = "about:blank", document.body.appendChild(s), !s.contentWindow) return null;
  4141. var u = (0, n.get)(p, s.contentWindow), f = (0, n.get)(p.split(".").slice(0, -1).join("."), s.contentWindow);
  4142. (0, v.isFunction)(u) && (h[p] = u.bind(f));
  4143. } catch (l) {
  4144. } finally {
  4145. (d = s.parentNode) === null || d === void 0 || d.removeChild(s);
  4146. }
  4147. }
  4148. return (a = h[p]) !== null && a !== void 0 ? a : null;
  4149. };
  4150. }, 9005: function(_, t, e) {
  4151. Object.defineProperty(t, "__esModule", { value: !0 }), t.scrollIntoViewIfNeeded = t.inView = void 0;
  4152. var n = e(24263);
  4153. t.inView = function(v, h, p) {
  4154. var d = v.getBoundingClientRect(), a = v, s = d.top, u = d.height;
  4155. do
  4156. if (a && a.parentNode && ((d = (a = a.parentNode).getBoundingClientRect()).bottom < s || d.top >= s + u))
  4157. return !1;
  4158. while (a && a !== h && a.parentNode);
  4159. return (p.documentElement && p.documentElement.clientHeight || 0) >= s;
  4160. }, t.scrollIntoViewIfNeeded = function(v, h, p) {
  4161. n.Dom.isHTMLElement(v) && !(0, t.inView)(v, h, p) && (h.clientHeight !== h.scrollHeight && (h.scrollTop = v.offsetTop), (0, t.inView)(v, h, p) || v.scrollIntoView());
  4162. };
  4163. }, 54188: function(_, t, e) {
  4164. Object.defineProperty(t, "__esModule", { value: !0 }), t.resolveElement = t.cssPath = t.refs = t.getXPathByElement = t.$$ = void 0;
  4165. var n = e(86893), v = e(24421), h = e(76502), p = e(24263), d = e(26596), a = e(1853), s = e(53929), u = e(45113), f = 1;
  4166. function l(o, r) {
  4167. var i;
  4168. if (!/:scope/.test(o) || !n.IS_IE || r && r.nodeType === Node.DOCUMENT_NODE) i = r.querySelectorAll(o);
  4169. else {
  4170. var c = r.id, m = c || "_selector_id_" + String(Math.random()).slice(2) + ++f;
  4171. o = o.replace(/:scope/g, "#" + m), !c && r.setAttribute("id", m), i = r.parentNode.querySelectorAll(o), c || r.removeAttribute("id");
  4172. }
  4173. return [].slice.call(i);
  4174. }
  4175. t.$$ = l, t.getXPathByElement = function(o, r) {
  4176. if (!o || o.nodeType !== Node.ELEMENT_NODE || !o.parentNode || r === o) return "";
  4177. if (o.id) return "//*[@id='" + o.id + "']";
  4178. var i = [].filter.call(o.parentNode.childNodes, function(c) {
  4179. return c.nodeName === o.nodeName;
  4180. });
  4181. return (0, t.getXPathByElement)(o.parentNode, r) + "/" + o.nodeName.toLowerCase() + (i.length > 1 ? "[" + ((0, a.toArray)(i).indexOf(o) + 1) + "]" : "");
  4182. }, t.refs = function(o) {
  4183. return u.Component.isInstanceOf(o, s.UIElement) && (o = o.container), l("[ref],[data-ref]", o).reduce(function(r, i) {
  4184. var c = (0, h.attr)(i, "-ref");
  4185. return c && (0, v.isString)(c) && (r[(0, d.camelCase)(c)] = i, r[c] = i), r;
  4186. }, {});
  4187. }, t.cssPath = function(o) {
  4188. if (!p.Dom.isElement(o)) return null;
  4189. for (var r = [], i = o; i && i.nodeType === Node.ELEMENT_NODE; ) {
  4190. var c = i.nodeName.toLowerCase();
  4191. if (i.id) {
  4192. r.unshift(c += "#" + i.id);
  4193. break;
  4194. }
  4195. var m = i, y = 1;
  4196. do
  4197. (m = m.previousElementSibling) && m.nodeName.toLowerCase() === c && y++;
  4198. while (m);
  4199. r.unshift(c += ":nth-of-type(" + y + ")"), i = i.parentNode;
  4200. }
  4201. return r.join(" > ");
  4202. }, t.resolveElement = function(o, r) {
  4203. var i = o;
  4204. if ((0, v.isString)(o)) try {
  4205. i = r.querySelector(o);
  4206. } catch (c) {
  4207. throw (0, h.error)('String "' + o + '" should be valid HTML selector');
  4208. }
  4209. if (!i || typeof i != "object" || !p.Dom.isElement(i) || !i.cloneNode) throw (0, h.error)('Element "' + o + '" should be string or HTMLElement instance');
  4210. return i;
  4211. };
  4212. }, 21518: function(_, t, e) {
  4213. Object.defineProperty(t, "__esModule", { value: !0 }), t.set = void 0;
  4214. var n = e(24421), v = e(57649), h = e(49781), p = e(79736);
  4215. t.set = function(d, a, s) {
  4216. if ((0, n.isString)(d) && d.length) {
  4217. for (var u = d.split("."), f = s, l = u[0], o = 0; u.length - 1 > o; o += 1) (0, h.isArray)(f[l = u[o]]) || (0, p.isPlainObject)(f[l]) || (f[l] = (0, v.isNumeric)(u[o + 1]) ? [] : {}), f = f[l];
  4218. f && (f[u[u.length - 1]] = a);
  4219. }
  4220. };
  4221. }, 37228: function(_, t) {
  4222. Object.defineProperty(t, "__esModule", { value: !0 }), t.LimitedStack = void 0;
  4223. var e = function() {
  4224. function n(v) {
  4225. this.limit = v, this.stack = [];
  4226. }
  4227. return n.prototype.push = function(v) {
  4228. return this.stack.push(v), this.stack.length > this.limit && this.stack.shift(), this;
  4229. }, n.prototype.pop = function() {
  4230. return this.stack.pop();
  4231. }, n.prototype.find = function(v) {
  4232. return this.stack.find(v);
  4233. }, n;
  4234. }();
  4235. t.LimitedStack = e;
  4236. }, 67309: function(_, t, e) {
  4237. Object.defineProperty(t, "__esModule", { value: !0 }), t.getDataTransfer = t.memorizeExec = t.keys = t.loadImage = t.callPromise = t.markOwner = t.attr = t.call = void 0;
  4238. var n = e(20255), v = e(42096), h = e(26335), p = e(24021), d = e(79736), a = e(24421), s = e(63122), u = e(26911), f = e(11278);
  4239. function l(o, r, i) {
  4240. if (!o || !(0, v.isFunction)(o.getAttribute)) return null;
  4241. if (!(0, a.isString)(r)) return Object.keys(r).forEach(function(y) {
  4242. var g = r[y];
  4243. (0, d.isPlainObject)(g) && y === "style" ? (0, u.css)(o, g) : (y === "className" && (y = "class"), l(o, y, g));
  4244. }), null;
  4245. var c = (0, f.CamelCaseToKebabCase)(r);
  4246. if (/^-/.test(c)) {
  4247. var m = l(o, "data".concat(c));
  4248. if (m) return m;
  4249. c = c.substr(1);
  4250. }
  4251. if (i !== void 0) {
  4252. if (i != null) return o.setAttribute(c, i.toString()), i.toString();
  4253. o.hasAttribute(c) && o.removeAttribute(c);
  4254. }
  4255. return o.getAttribute(c);
  4256. }
  4257. t.call = function(o) {
  4258. for (var r = [], i = 1; arguments.length > i; i++) r[i - 1] = arguments[i];
  4259. return o.apply(void 0, n.__spreadArray([], n.__read(r), !1));
  4260. }, t.attr = l, t.markOwner = function(o, r) {
  4261. l(r, "data-editor_id", o.id), !r.component && Object.defineProperty(r, "jodit", { value: o });
  4262. }, t.callPromise = function(o, r) {
  4263. return (0, h.isPromise)(o) ? o.finally(r) : r();
  4264. }, t.loadImage = function(o, r) {
  4265. return r.async.promise(function(i, c) {
  4266. var m = new Image(), y = function() {
  4267. r.e.off(m), c == null || c();
  4268. }, g = function() {
  4269. r.e.off(m), i(m);
  4270. };
  4271. r.e.one(m, "load", g).one(m, "error", y).one(m, "abort", y), m.src = o, m.complete && g();
  4272. });
  4273. }, t.keys = function(o, r) {
  4274. if (r === void 0 && (r = !0), r) return Object.keys(o);
  4275. var i = [];
  4276. for (var c in o) i.push(c);
  4277. return i;
  4278. }, t.memorizeExec = function(o, r, i, c) {
  4279. var m, y = i.control, g = "button".concat(y.command), b = (m = y.args && y.args[0]) !== null && m !== void 0 ? m : (0, s.dataBind)(o, g);
  4280. if ((0, p.isVoid)(b)) return !1;
  4281. (0, s.dataBind)(o, g, b), c && (b = c(b)), o.execCommand(y.command, !1, b != null ? b : void 0);
  4282. }, t.getDataTransfer = function(o) {
  4283. if (o.clipboardData) return o.clipboardData;
  4284. try {
  4285. return o.dataTransfer || new DataTransfer();
  4286. } catch (r) {
  4287. return null;
  4288. }
  4289. };
  4290. }, 22362: function(_, t) {
  4291. Object.defineProperty(t, "__esModule", { value: !0 }), t.val = void 0, t.val = function(e, n, v) {
  4292. var h = e.querySelector(n);
  4293. return h ? (v && (h.value = v), h.value) : "";
  4294. };
  4295. }, 33286: function(_, t, e) {
  4296. Object.defineProperty(t, "__esModule", { value: !0 }), t.init = t.initInstance = void 0;
  4297. var n = e(10172), v = e(90338);
  4298. function h(p, d, a, s, u) {
  4299. var f = a.requires;
  4300. if (f != null && f.length && !f.every(function(l) {
  4301. return s.has(l);
  4302. })) return u[d] = a, !1;
  4303. if ((0, n.isInitable)(a)) try {
  4304. a.init(p);
  4305. } catch (l) {
  4306. }
  4307. return s.add(d), delete u[d], a.hasStyle && (0, v.loadStyle)(p, d).catch(function(l) {
  4308. }), !0;
  4309. }
  4310. t.initInstance = function(p, d, a, s, u) {
  4311. h(p, d, a, s, u) && Object.keys(u).forEach(function(f) {
  4312. h(p, f, u[f], s, u);
  4313. });
  4314. }, t.init = h;
  4315. }, 90338: function(_, t, e) {
  4316. Object.defineProperty(t, "__esModule", { value: !0 }), t.loadExtras = t.loadStyle = void 0;
  4317. var n = e(20255), v = e(62462), h = e(11278), p = e(93498), d = /* @__PURE__ */ new Set();
  4318. function a(s, u, f) {
  4319. return u = (0, h.kebabCase)(u), s.basePath + "plugins/" + u + "/" + u + "." + (f ? "js" : "css");
  4320. }
  4321. t.loadStyle = function(s, u) {
  4322. return n.__awaiter(this, void 0, Promise, function() {
  4323. var f;
  4324. return n.__generator(this, function(l) {
  4325. return f = a(s, u, !1), d.has(f) ? [2] : (d.add(f), [2, (0, v.appendStyleAsync)(s, f)]);
  4326. });
  4327. });
  4328. }, t.loadExtras = function(s, u, f, l) {
  4329. try {
  4330. var o = f.filter(function(r) {
  4331. return !s.has((0, p.normalizeName)(r.name));
  4332. });
  4333. o.length && function(r, i, c) {
  4334. i.map(function(m) {
  4335. var y = m.url || a(r, m.name, !0);
  4336. return (0, v.appendScriptAsync)(r, y).then(c).catch(function() {
  4337. return null;
  4338. });
  4339. });
  4340. }(u, o, l);
  4341. } catch (r) {
  4342. }
  4343. };
  4344. }, 24342: function(_, t, e) {
  4345. Object.defineProperty(t, "__esModule", { value: !0 }), t.makeInstance = void 0;
  4346. var n = e(10172);
  4347. t.makeInstance = function(v, h) {
  4348. try {
  4349. try {
  4350. return (0, n.isFunction)(h) ? new h(v) : h;
  4351. } catch (p) {
  4352. if ((0, n.isFunction)(h) && !h.prototype) return h(v);
  4353. }
  4354. } catch (p) {
  4355. }
  4356. return null;
  4357. };
  4358. }, 93498: function(_, t, e) {
  4359. Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeName = void 0;
  4360. var n = e(11278);
  4361. t.normalizeName = function(v) {
  4362. return (0, n.kebabCase)(v).toLowerCase();
  4363. };
  4364. }, 57549: function(_, t, e) {
  4365. Object.defineProperty(t, "__esModule", { value: !0 });
  4366. var n = e(20255);
  4367. n.__exportStar(e(44540), t), n.__exportStar(e(85605), t);
  4368. }, 13573: function() {
  4369. }, 44540: function(_, t, e) {
  4370. Object.defineProperty(t, "__esModule", { value: !0 }), t.PluginSystem = void 0;
  4371. var n = e(20255);
  4372. e(13573);
  4373. var v = e(10172), h = e(12557), p = e(17332), d = e(90338), a = e(93498), s = e(24342), u = e(33286), f = function() {
  4374. function l() {
  4375. this.__items = /* @__PURE__ */ new Map();
  4376. }
  4377. return l.prototype.add = function(o, r) {
  4378. this.__items.set((0, a.normalizeName)(o), r), p.eventEmitter.fire("plugin:".concat(o, ":ready"));
  4379. }, l.prototype.get = function(o) {
  4380. return this.__items.get((0, a.normalizeName)(o));
  4381. }, l.prototype.remove = function(o) {
  4382. this.__items.delete((0, a.normalizeName)(o));
  4383. }, l.prototype.__filter = function(o) {
  4384. var r = [];
  4385. return this.__items.forEach(function(i, c) {
  4386. o && !o.has(c) || r.push([c, i]);
  4387. }), r;
  4388. }, l.prototype.__init = function(o) {
  4389. var r = this, i = function(S) {
  4390. return { extrasList: S.o.extraPlugins.map(function(j) {
  4391. return (0, v.isString)(j) ? { name: j } : j;
  4392. }), disableList: new Set((0, h.splitArray)(S.o.disablePlugins).map(a.normalizeName)), filter: S.o.safeMode ? new Set(S.o.safePluginsList) : null };
  4393. }(o), c = i.extrasList, m = i.disableList, y = i.filter, g = /* @__PURE__ */ new Set(), b = {}, w = {};
  4394. o.__plugins = w;
  4395. var C = function() {
  4396. if (!o.isInDestruct) {
  4397. var S = !1;
  4398. r.__filter(y).forEach(function(j) {
  4399. var E = n.__read(j, 2), x = E[0], k = E[1];
  4400. if (!(m.has(x) || g.has(x) || b[x])) {
  4401. var I = k == null ? void 0 : k.requires;
  4402. if (!(I && (0, v.isArray)(I) && I.some(function(T) {
  4403. return m.has(T);
  4404. }))) {
  4405. S = !0;
  4406. var M = (0, s.makeInstance)(o, k);
  4407. if (!M) return g.add(x), void delete b[x];
  4408. (0, u.initInstance)(o, x, M, g, b), w[x] = M;
  4409. }
  4410. }
  4411. }), S && o.e.fire("updatePlugins");
  4412. }
  4413. };
  4414. c && c.length || (0, d.loadExtras)(this.__items, o, c, C), C(), function(S, j) {
  4415. S.e.on("beforeDestruct", function() {
  4416. Object.keys(j).forEach(function(E) {
  4417. var x = j[E];
  4418. (0, v.isDestructable)(x) && x.destruct(S), delete j[E];
  4419. }), delete S.__plugins;
  4420. });
  4421. }(o, w);
  4422. }, l.prototype.wait = function(o) {
  4423. var r = this;
  4424. return new Promise(function(i) {
  4425. if (r.get(o)) return i();
  4426. var c = function() {
  4427. i(), p.eventEmitter.off("plugin:".concat(o, ":ready"), c);
  4428. };
  4429. p.eventEmitter.on("plugin:".concat(o, ":ready"), c);
  4430. });
  4431. }, l;
  4432. }();
  4433. t.PluginSystem = f;
  4434. }, 85605: function(_, t, e) {
  4435. Object.defineProperty(t, "__esModule", { value: !0 }), t.Plugin = void 0;
  4436. var n = e(20255), v = e(56562), h = e(43441), p = e(40332), d = function(a) {
  4437. function s(u) {
  4438. var f = a.call(this, u) || this;
  4439. return f.requires = [], f.buttons = [], f.hasStyle = !1, u.e.on("afterPluginSystemInit", function() {
  4440. var l;
  4441. (0, p.isJoditObject)(u) && ((l = f.buttons) === null || l === void 0 || l.forEach(function(o) {
  4442. u.registerButton(o);
  4443. }));
  4444. }).on("afterInit", function() {
  4445. f.setStatus(v.STATUSES.ready), f.afterInit(u);
  4446. }).on("beforeDestruct", f.destruct), f;
  4447. }
  4448. return n.__extends(s, a), s.prototype.className = function() {
  4449. return "";
  4450. }, s.prototype.init = function(u) {
  4451. }, s.prototype.destruct = function() {
  4452. var u, f, l;
  4453. if (this.isReady) {
  4454. this.setStatus(v.STATUSES.beforeDestruct);
  4455. var o = this.j;
  4456. (0, p.isJoditObject)(o) && ((u = this.buttons) === null || u === void 0 || u.forEach(function(r) {
  4457. o == null || o.unregisterButton(r);
  4458. })), (l = (f = this.j) === null || f === void 0 ? void 0 : f.events) === null || l === void 0 || l.off("beforeDestruct", this.destruct), this.beforeDestruct(this.j), a.prototype.destruct.call(this);
  4459. }
  4460. }, n.__decorate([h.autobind], s.prototype, "destruct", null), s;
  4461. }(v.ViewComponent);
  4462. t.Plugin = d;
  4463. }, 9917: function(_, t, e) {
  4464. Object.defineProperty(t, "__esModule", { value: !0 }), t.Ajax = void 0;
  4465. var n = e(20255), v = e(93166), h = e(40332), p = e(56964), d = e(86101), a = e(22630), s = e(43441);
  4466. e(12144);
  4467. var u = function() {
  4468. function f(l, o) {
  4469. o === void 0 && (o = v.Config.prototype.defaultAjaxOptions), this.__async = new a.Async(), this.__isFulfilled = !1, this.__activated = !1, this.__isDestructed = !1, this.options = (0, h.ConfigProto)(l || {}, o), this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
  4470. }
  4471. return f.prototype.__buildParams = function(l, o) {
  4472. return (0, h.isPlainObject)(l) && this.options.contentType && this.options.contentType.includes("application/json") ? JSON.stringify(l) : (0, h.isFunction)(this.o.queryBuild) ? this.o.queryBuild.call(this, l, o) : (0, h.isString)(l) || l instanceof window.FormData || typeof l == "object" && l != null && (0, h.isFunction)(l.append) ? l : (0, h.buildQuery)(l);
  4473. }, Object.defineProperty(f.prototype, "o", { get: function() {
  4474. return this.options;
  4475. }, enumerable: !1, configurable: !0 }), f.prototype.abort = function() {
  4476. if (this.__isFulfilled) return this;
  4477. try {
  4478. this.__isFulfilled = !0, this.xhr.abort();
  4479. } catch (l) {
  4480. }
  4481. return this;
  4482. }, f.prototype.send = function() {
  4483. var l = this;
  4484. this.__activated = !0;
  4485. var o = this.xhr, r = this.o, i = this.prepareRequest();
  4486. return this.__async.promise(function(c, m) {
  4487. return n.__awaiter(l, void 0, void 0, function() {
  4488. var y, g, b, w, C, S = this;
  4489. return n.__generator(this, function(j) {
  4490. switch (j.label) {
  4491. case 0:
  4492. return y = function() {
  4493. S.__isFulfilled = !0, m(p.connection("Connection error"));
  4494. }, o.onload = g = function() {
  4495. S.__isFulfilled = !0, c(new d.Response(i, o.status, o.statusText, o.responseType ? o.response : o.responseText));
  4496. }, o.onabort = function() {
  4497. S.__isFulfilled = !0, m(p.abort("Abort connection"));
  4498. }, o.onerror = y, o.ontimeout = y, r.responseType && (o.responseType = r.responseType), o.onprogress = function(E) {
  4499. var x, k, I = 0;
  4500. E.lengthComputable && (I = E.loaded / E.total * 100), (k = (x = S.options).onProgress) === null || k === void 0 || k.call(x, I);
  4501. }, o.onreadystatechange = function() {
  4502. var E, x;
  4503. (x = (E = S.options).onProgress) === null || x === void 0 || x.call(E, 10), o.readyState === XMLHttpRequest.DONE && (r.successStatuses.includes(o.status) ? g() : o.statusText && (S.__isFulfilled = !0, m(p.connection(o.statusText))));
  4504. }, o.withCredentials = (C = r.withCredentials) !== null && C !== void 0 && C, b = i.data, o.open(i.method, i.url, !0), r.contentType && o.setRequestHeader && o.setRequestHeader("Content-type", r.contentType), (0, h.isFunction)(w = r.headers) ? [4, w.call(this)] : [3, 2];
  4505. case 1:
  4506. w = j.sent(), j.label = 2;
  4507. case 2:
  4508. return w && o.setRequestHeader && Object.keys(w).forEach(function(E) {
  4509. o.setRequestHeader(E, w[E]);
  4510. }), this.__async.setTimeout(function() {
  4511. o.send(b ? S.__buildParams(b) : void 0);
  4512. }, 0), [2];
  4513. }
  4514. });
  4515. });
  4516. });
  4517. }, f.prototype.prepareRequest = function() {
  4518. if (!this.o.url) throw p.error("Need URL for AJAX request");
  4519. var l = this.o.url, o = this.o.data, r = (this.o.method || "get").toLowerCase();
  4520. if (r === "get" && o && (0, h.isPlainObject)(o)) {
  4521. var i = l.indexOf("?");
  4522. if (i !== -1) {
  4523. var c = (0, h.parseQuery)(l);
  4524. l = l.substring(0, i) + "?" + (0, h.buildQuery)(n.__assign(n.__assign({}, c), o));
  4525. } else l += "?" + (0, h.buildQuery)(this.o.data);
  4526. }
  4527. var m = { url: l, method: r, data: o };
  4528. return f.log.splice(100), f.log.push(m), m;
  4529. }, f.prototype.destruct = function() {
  4530. this.__isDestructed || (this.__isDestructed = !0, this.__activated && !this.__isFulfilled && (this.abort(), this.__isFulfilled = !0), this.__async.destruct());
  4531. }, f.log = [], n.__decorate([s.autobind], f.prototype, "destruct", null), f;
  4532. }();
  4533. t.Ajax = u;
  4534. }, 12144: function(_, t, e) {
  4535. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.defaultAjaxOptions = { successStatuses: [200, 201, 202], method: "GET", url: "", data: null, contentType: "application/x-www-form-urlencoded; charset=UTF-8", headers: { "X-REQUESTED-WITH": "XMLHttpRequest" }, withCredentials: !1, xhr: function() {
  4536. return new XMLHttpRequest();
  4537. } };
  4538. }, 30056: function(_, t, e) {
  4539. Object.defineProperty(t, "__esModule", { value: !0 });
  4540. var n = e(20255);
  4541. n.__exportStar(e(9917), t), n.__exportStar(e(86101), t);
  4542. }, 86101: function(_, t, e) {
  4543. Object.defineProperty(t, "__esModule", { value: !0 }), t.Response = void 0;
  4544. var n = e(20255), v = function() {
  4545. function h(p, d, a, s) {
  4546. this.request = p, this.status = d, this.statusText = a, this.body = s;
  4547. }
  4548. return Object.defineProperty(h.prototype, "url", { get: function() {
  4549. return this.request.url;
  4550. }, enumerable: !1, configurable: !0 }), h.prototype.json = function() {
  4551. return n.__awaiter(this, void 0, Promise, function() {
  4552. return n.__generator(this, function(p) {
  4553. return [2, JSON.parse(this.body)];
  4554. });
  4555. });
  4556. }, h.prototype.text = function() {
  4557. return Promise.resolve(this.body);
  4558. }, h.prototype.blob = function() {
  4559. return n.__awaiter(this, void 0, Promise, function() {
  4560. return n.__generator(this, function(p) {
  4561. return [2, this.body];
  4562. });
  4563. });
  4564. }, h;
  4565. }();
  4566. t.Response = v;
  4567. }, 10109: function(_, t, e) {
  4568. Object.defineProperty(t, "__esModule", { value: !0 });
  4569. var n = e(20255);
  4570. n.__exportStar(e(287), t), n.__exportStar(e(10264), t);
  4571. }, 287: function(_, t, e) {
  4572. Object.defineProperty(t, "__esModule", { value: !0 }), t.moveNodeInsideStart = void 0;
  4573. var n = e(64968), v = e(86893);
  4574. t.moveNodeInsideStart = function(h, p, d) {
  4575. for (var a = n.Dom.findSibling(p, d), s = n.Dom.findSibling(p, !d); n.Dom.isElement(a) && !n.Dom.isTag(a, v.INSEPARABLE_TAGS) && n.Dom.isContentEditable(a, h.editor) && (!s || !n.Dom.closest(p, n.Dom.isElement, h.editor)); ) d || !a.firstChild ? a.appendChild(p) : n.Dom.before(a.firstChild, p), a = n.Dom.sibling(p, d), s = n.Dom.sibling(p, !d);
  4576. };
  4577. }, 10264: function(_, t, e) {
  4578. Object.defineProperty(t, "__esModule", { value: !0 }), t.moveTheNodeAlongTheEdgeOutward = void 0;
  4579. var n = e(64968);
  4580. t.moveTheNodeAlongTheEdgeOutward = function(v, h, p) {
  4581. for (var d = v; d && d !== p; ) {
  4582. if (n.Dom.findSibling(d, h)) return;
  4583. (d = d.parentElement) && d !== p && (h ? n.Dom.before(d, v) : n.Dom.after(d, v));
  4584. }
  4585. };
  4586. }, 2123: function(_, t, e) {
  4587. Object.defineProperty(t, "__esModule", { value: !0 });
  4588. var n = e(20255);
  4589. n.__exportStar(e(70851), t), n.__exportStar(e(77627), t);
  4590. }, 2047: function() {
  4591. }, 77627: function(_, t, e) {
  4592. Object.defineProperty(t, "__esModule", { value: !0 }), t.Select = void 0;
  4593. var n = e(20255), v = e(86893), h = e(86893), p = e(64968), d = e(40332), a = e(70851), s = e(43441), u = e(10109), f = (e(52378), e(10172));
  4594. e(2047);
  4595. var l = function() {
  4596. function o(r) {
  4597. var i = this;
  4598. this.jodit = r, r.e.on("removeMarkers", function() {
  4599. i.removeMarkers();
  4600. });
  4601. }
  4602. return Object.defineProperty(o.prototype, "j", { get: function() {
  4603. return this.jodit;
  4604. }, enumerable: !1, configurable: !0 }), o.prototype.errorNode = function(r) {
  4605. if (!p.Dom.isNode(r)) throw (0, d.error)("Parameter node must be instance of Node");
  4606. }, Object.defineProperty(o.prototype, "area", { get: function() {
  4607. return this.j.editor;
  4608. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "win", { get: function() {
  4609. return this.j.ew;
  4610. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "doc", { get: function() {
  4611. return this.j.ed;
  4612. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "sel", { get: function() {
  4613. return this.j.o.shadowRoot && (0, f.isFunction)(this.j.o.shadowRoot.getSelection) ? this.j.o.shadowRoot.getSelection() : this.win.getSelection();
  4614. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "range", { get: function() {
  4615. var r = this.sel;
  4616. return r && r.rangeCount ? r.getRangeAt(0) : this.createRange();
  4617. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "isInsideArea", { get: function() {
  4618. var r = this.sel, i = r != null && r.rangeCount ? r.getRangeAt(0) : null;
  4619. return !(!i || !p.Dom.isOrContains(this.area, i.startContainer));
  4620. }, enumerable: !1, configurable: !0 }), o.prototype.createRange = function(r) {
  4621. r === void 0 && (r = !1);
  4622. var i = this.doc.createRange();
  4623. return r && this.selectRange(i), i;
  4624. }, o.prototype.remove = function() {
  4625. var r = this.sel, i = this.current();
  4626. if (r && i) for (var c = 0; r.rangeCount > c; c += 1) r.getRangeAt(c).deleteContents(), r.getRangeAt(c).collapse(!0);
  4627. }, o.prototype.clear = function() {
  4628. var r, i;
  4629. !((r = this.sel) === null || r === void 0) && r.rangeCount && ((i = this.sel) === null || i === void 0 || i.removeAllRanges());
  4630. }, o.prototype.removeNode = function(r) {
  4631. if (!p.Dom.isOrContains(this.j.editor, r, !0)) throw (0, d.error)("Selection.removeNode can remove only editor's children");
  4632. p.Dom.safeRemove(r), this.j.e.fire("afterRemoveNode", r);
  4633. }, o.prototype.insertCursorAtPoint = function(r, i) {
  4634. var c = this;
  4635. this.removeMarkers();
  4636. try {
  4637. var m = this.createRange();
  4638. return function() {
  4639. if (c.doc.caretPositionFromPoint && (y = c.doc.caretPositionFromPoint(r, i))) m.setStart(y.offsetNode, y.offset);
  4640. else if (c.doc.caretRangeFromPoint) {
  4641. var y = c.doc.caretRangeFromPoint(r, i);
  4642. m.setStart(y.startContainer, y.startOffset);
  4643. }
  4644. }(), m.collapse(!0), this.selectRange(m), !0;
  4645. } catch (y) {
  4646. }
  4647. return !1;
  4648. }, Object.defineProperty(o.prototype, "hasMarkers", { get: function() {
  4649. return !!this.markers.length;
  4650. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "markers", { get: function() {
  4651. return (0, d.$$)("span[data-" + v.MARKER_CLASS + "]", this.area);
  4652. }, enumerable: !1, configurable: !0 }), o.prototype.removeMarkers = function() {
  4653. p.Dom.safeRemove.apply(null, this.markers);
  4654. }, o.prototype.marker = function(r, i) {
  4655. r === void 0 && (r = !1);
  4656. var c = null;
  4657. i && (c = i.cloneRange()).collapse(r);
  4658. var m = this.j.createInside.span();
  4659. return m.id = v.MARKER_CLASS + "_" + Number(/* @__PURE__ */ new Date()) + "_" + String(Math.random()).slice(2), m.style.lineHeight = "0", m.style.display = "none", p.Dom.markTemporary(m), (0, d.attr)(m, "data-" + v.MARKER_CLASS, r ? "start" : "end"), m.appendChild(this.j.createInside.text(v.INVISIBLE_SPACE)), c && p.Dom.isOrContains(this.area, r ? c.startContainer : c.endContainer) && c.insertNode(m), m;
  4660. }, o.prototype.restore = function() {
  4661. var r = !1, i = function(g) {
  4662. return "span[data-".concat(v.MARKER_CLASS, "=").concat(g ? "start" : "end", "]");
  4663. }, c = this.area.querySelector(i(!0)), m = this.area.querySelector(i(!1));
  4664. if (c) {
  4665. if (r = this.createRange(), m) r.setStartAfter(c), p.Dom.safeRemove(c), r.setEndBefore(m), p.Dom.safeRemove(m);
  4666. else {
  4667. var y = c.previousSibling;
  4668. p.Dom.isText(y) ? r.setStart(y, y.nodeValue ? y.nodeValue.length : 0) : r.setStartBefore(c), p.Dom.safeRemove(c), r.collapse(!0);
  4669. }
  4670. r && this.selectRange(r);
  4671. }
  4672. }, o.prototype.save = function(r) {
  4673. if (r === void 0 && (r = !1), this.hasMarkers) return [];
  4674. var i = this.sel;
  4675. if (!i || !i.rangeCount) return [];
  4676. for (var c = [], m = i.rangeCount, y = [], g = 0; m > g; g += 1) if (y[g] = i.getRangeAt(g), y[g].collapsed) {
  4677. var b = this.marker(!0, y[g]);
  4678. c[g] = { startId: b.id, collapsed: !0, startMarker: b.outerHTML };
  4679. } else {
  4680. b = this.marker(!0, y[g]);
  4681. var w = this.marker(!1, y[g]);
  4682. c[g] = { startId: b.id, endId: w.id, collapsed: !1, startMarker: b.outerHTML, endMarker: w.outerHTML };
  4683. }
  4684. if (!r) for (i.removeAllRanges(), g = m - 1; g >= 0; --g) {
  4685. var C = this.doc.getElementById(c[g].startId);
  4686. if (C) {
  4687. if (c[g].collapsed) y[g].setStartAfter(C), y[g].collapse(!0);
  4688. else if (y[g].setStartBefore(C), c[g].endId) {
  4689. var S = this.doc.getElementById(c[g].endId);
  4690. S && y[g].setEndAfter(S);
  4691. }
  4692. }
  4693. try {
  4694. i.addRange(y[g].cloneRange());
  4695. } catch (j) {
  4696. }
  4697. }
  4698. return c;
  4699. }, o.prototype.focus = function(r) {
  4700. var i, c;
  4701. if (r === void 0 && (r = { preventScroll: !0 }), !this.isFocused()) {
  4702. var m = (0, d.getScrollParent)(this.j.container), y = m == null ? void 0 : m.scrollTop;
  4703. this.j.iframe && this.doc.readyState === "complete" && this.j.iframe.focus(r), this.win.focus(), this.area.focus(r), y && (m != null && m.scrollTo) && m.scrollTo(0, y);
  4704. var g = this.sel, b = g != null && g.rangeCount ? g == null ? void 0 : g.getRangeAt(0) : null;
  4705. if (!b || !p.Dom.isOrContains(this.area, b.startContainer)) {
  4706. var w = this.createRange();
  4707. w.setStart(this.area, 0), w.collapse(!0), this.selectRange(w, !1);
  4708. }
  4709. return this.j.editorIsActive || (c = (i = this.j) === null || i === void 0 ? void 0 : i.events) === null || c === void 0 || c.fire("focus"), !0;
  4710. }
  4711. return !1;
  4712. }, o.prototype.isCollapsed = function() {
  4713. for (var r = this.sel, i = 0; r && r.rangeCount > i; i += 1) if (!r.getRangeAt(i).collapsed) return !1;
  4714. return !0;
  4715. }, o.prototype.isFocused = function() {
  4716. return this.doc.hasFocus && this.doc.hasFocus() && this.area === this.doc.activeElement;
  4717. }, o.prototype.current = function(r) {
  4718. if (r === void 0 && (r = !0), this.j.getRealMode() === v.MODE_WYSIWYG) {
  4719. var i = this.sel;
  4720. if (!i || i.rangeCount === 0) return null;
  4721. var c = i.getRangeAt(0), m = c.startContainer, y = !1, g = function(S) {
  4722. return y ? S.lastChild : S.firstChild;
  4723. };
  4724. if (p.Dom.isTag(m, "br") && i.isCollapsed) return m;
  4725. if (!p.Dom.isText(m)) {
  4726. if ((m = c.startContainer.childNodes[c.startOffset]) || (m = c.startContainer.childNodes[c.startOffset - 1], y = !0), m && i.isCollapsed && !p.Dom.isText(m)) {
  4727. if (!y && p.Dom.isText(m.previousSibling)) m = m.previousSibling;
  4728. else if (r) for (var b = g(m); b; ) {
  4729. if (b && p.Dom.isText(b)) {
  4730. m = b;
  4731. break;
  4732. }
  4733. b = g(b);
  4734. }
  4735. }
  4736. if (m && !i.isCollapsed && !p.Dom.isText(m)) {
  4737. var w = m, C = m;
  4738. do
  4739. w = w.firstChild, C = C.lastChild;
  4740. while (w && C && !p.Dom.isText(w));
  4741. w === C && w && p.Dom.isText(w) && (m = w);
  4742. }
  4743. }
  4744. if (m && p.Dom.isOrContains(this.area, m)) return m;
  4745. }
  4746. return null;
  4747. }, o.prototype.insertNode = function(r, i, c) {
  4748. var m = this;
  4749. i === void 0 && (i = !0), c === void 0 && (c = !0), this.errorNode(r), this.j.e.fire("safeHTML", r), !this.isFocused() && this.j.isEditorMode() && (this.focus(), this.restore());
  4750. var y = this.sel;
  4751. this.j.history.snapshot.transaction(function() {
  4752. var g;
  4753. if (m.isCollapsed() || m.j.execCommand("Delete"), m.j.e.fire("beforeInsertNode", r), y && y.rangeCount) {
  4754. var b = y.getRangeAt(0);
  4755. p.Dom.isOrContains(m.area, b.commonAncestorContainer) ? p.Dom.isTag(b.startContainer, h.INSEPARABLE_TAGS) && b.collapsed ? (g = b.startContainer.parentNode) === null || g === void 0 || g.insertBefore(r, b.startContainer) : p.Dom.safeInsertNode(b, r) : m.area.appendChild(r);
  4756. } else m.area.appendChild(r);
  4757. i && (r.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? r.lastChild && m.setCursorAfter(r.lastChild) : m.setCursorAfter(r));
  4758. }), c && this.j.events && this.j.__imdSynchronizeValues(), this.j.events && this.j.e.fire("afterInsertNode", r);
  4759. }, o.prototype.insertHTML = function(r, i) {
  4760. if (i === void 0 && (i = !0), r !== "") {
  4761. var c, m = this.j.createInside.div(), y = this.j.createInside.fragment();
  4762. if (!this.isFocused() && this.j.isEditorMode() && (this.focus(), this.restore()), p.Dom.isNode(r) ? m.appendChild(r) : m.innerHTML = r.toString(), (this.j.isEditorMode() || this.j.e.fire("insertHTML", m.innerHTML) !== !1) && (c = m.lastChild)) {
  4763. for (; m.firstChild; ) c = m.firstChild, y.appendChild(m.firstChild);
  4764. this.insertNode(y.firstChild && y.firstChild === y.lastChild ? y.lastChild : y, !1, !1), i && (c ? this.setCursorAfter(c) : this.setCursorIn(y)), this.j.__imdSynchronizeValues();
  4765. }
  4766. }
  4767. }, o.prototype.insertImage = function(r, i, c) {
  4768. i === void 0 && (i = null), c === void 0 && (c = null);
  4769. var m = (0, f.isString)(r) ? this.j.createInside.element("img") : r;
  4770. if ((0, f.isString)(r) && m.setAttribute("src", r), c != null) {
  4771. var y = c.toString();
  4772. y && y !== "auto" && 0 > String(y).indexOf("px") && 0 > String(y).indexOf("%") && (y += "px"), (0, d.call)(this.j.o.resizer.forImageChangeAttributes ? d.attr : d.css, m, "width", y);
  4773. }
  4774. i && typeof i == "object" && (0, d.css)(m, i);
  4775. var g = function() {
  4776. (m.offsetHeight > m.naturalHeight || m.offsetWidth > m.naturalWidth) && (m.style.width = "", m.style.height = ""), m.removeEventListener("load", g);
  4777. };
  4778. this.j.e.on(m, "load", g), m.complete && g(), this.insertNode(m), this.j.e.fire("afterInsertImage", m);
  4779. }, o.prototype.eachSelection = function(r) {
  4780. var i, c = this, m = this.sel;
  4781. if (m && m.rangeCount) {
  4782. var y = m.getRangeAt(0), g = y.commonAncestorContainer;
  4783. p.Dom.isHTMLElement(g) || (g = g.parentElement);
  4784. var b = [], w = y.startOffset, C = g.childNodes.length, S = y.startContainer === this.area ? g.childNodes[C > w ? w : C - 1] : y.startContainer, j = y.endContainer === this.area ? g.childNodes[y.endOffset - 1] : y.endContainer;
  4785. p.Dom.isText(S) && S === y.startContainer && y.startOffset === ((i = S.nodeValue) === null || i === void 0 ? void 0 : i.length) && S.nextSibling && (S = S.nextSibling), p.Dom.isText(j) && j === y.endContainer && y.endOffset === 0 && j.previousSibling && (j = j.previousSibling);
  4786. var E = function(k) {
  4787. !k || k === g || p.Dom.isEmptyTextNode(k) || (0, f.isMarker)(k) || b.push(k);
  4788. };
  4789. E(S), S !== j && p.Dom.isOrContains(g, S, !0) && p.Dom.find(S, function(k) {
  4790. return E(k), k === j || k && k.contains && k.contains(j);
  4791. }, g, !0, !1);
  4792. var x = function(k) {
  4793. if (p.Dom.isOrContains(c.j.editor, k, !0)) {
  4794. if (k.nodeName.match(/^(UL|OL)$/)) return (0, d.toArray)(k.childNodes).forEach(x);
  4795. if (p.Dom.isTag(k, "li")) if (k.firstChild) k = k.firstChild;
  4796. else {
  4797. var I = c.j.createInside.text(h.INVISIBLE_SPACE);
  4798. k.appendChild(I), k = I;
  4799. }
  4800. r(k);
  4801. }
  4802. };
  4803. b.length === 0 && p.Dom.isEmptyTextNode(S) && b.push(S), b.length === 0 && S.firstChild && b.push(S.firstChild), b.forEach(x);
  4804. }
  4805. }, o.prototype.cursorInTheEdge = function(r, i, c) {
  4806. var m, y, g = this;
  4807. c === void 0 && (c = null);
  4808. var b = !r, w = (m = this.sel) === null || m === void 0 ? void 0 : m.getRangeAt(0);
  4809. if (c != null || (c = this.current(!1)), !w || !c || !p.Dom.isOrContains(i, c, !0)) return null;
  4810. var C = r ? w.startContainer : w.endContainer, S = r ? w.startOffset : w.endOffset, j = function(T) {
  4811. return !!(T && !p.Dom.isTag(T, "br") && !p.Dom.isEmptyTextNode(T) && !p.Dom.isTemporary(T) && !(p.Dom.isElement(T) && g.j.e.fire("isInvisibleForCursor", T) === !0));
  4812. };
  4813. if (p.Dom.isText(C)) {
  4814. var E = !((y = C.nodeValue) === null || y === void 0) && y.length ? C.nodeValue : "";
  4815. if (b && E.replace((0, h.INVISIBLE_SPACE_REG_EXP_END)(), "").length > S) return !1;
  4816. var x = (0, h.INVISIBLE_SPACE_REG_EXP_START)().exec(E);
  4817. if (r && (x && S > x[0].length || !x && S > 0)) return !1;
  4818. } else {
  4819. var k = (0, d.toArray)(C.childNodes);
  4820. if (b) {
  4821. if (k.slice(S).some(j)) return !1;
  4822. } else if (k.slice(0, S).some(j)) return !1;
  4823. }
  4824. for (var I = c; I && I !== i; ) {
  4825. var M = p.Dom.sibling(I, r);
  4826. if (M) {
  4827. if ((I = M) && j(I)) return !1;
  4828. } else I = I.parentNode;
  4829. }
  4830. return !0;
  4831. }, o.prototype.cursorOnTheLeft = function(r, i) {
  4832. return this.cursorInTheEdge(!0, r, i);
  4833. }, o.prototype.cursorOnTheRight = function(r, i) {
  4834. return this.cursorInTheEdge(!1, r, i);
  4835. }, o.prototype.setCursorAfter = function(r) {
  4836. return this.setCursorNearWith(r, !1);
  4837. }, o.prototype.setCursorBefore = function(r) {
  4838. return this.setCursorNearWith(r, !0);
  4839. }, o.prototype.setCursorNearWith = function(r, i) {
  4840. var c, m, y = this;
  4841. if (this.errorNode(r), !p.Dom.up(r, function(w) {
  4842. return w === y.area || w && w.parentNode === y.area;
  4843. }, this.area)) throw (0, d.error)("Node element must be in editor");
  4844. var g = this.createRange(), b = null;
  4845. return p.Dom.isText(r) ? i ? g.setStart(r, 0) : g.setEnd(r, (m = (c = r.nodeValue) === null || c === void 0 ? void 0 : c.length) !== null && m !== void 0 ? m : 0) : (b = this.j.createInside.text(v.INVISIBLE_SPACE), i ? g.setStartBefore(r) : g.setEndAfter(r), g.collapse(i), p.Dom.safeInsertNode(g, b), g.selectNode(b)), g.collapse(i), this.selectRange(g), b;
  4846. }, o.prototype.setCursorIn = function(r, i) {
  4847. var c = this;
  4848. if (i === void 0 && (i = !1), this.errorNode(r), !p.Dom.up(r, function(w) {
  4849. return w === c.area || w && w.parentNode === c.area;
  4850. }, this.area)) throw (0, d.error)("Node element must be in editor");
  4851. var m = this.createRange(), y = r, g = r;
  4852. do {
  4853. if (p.Dom.isText(y)) break;
  4854. g = y, y = i ? y.firstChild : y.lastChild;
  4855. } while (y);
  4856. if (!y) {
  4857. var b = this.j.createInside.text(v.INVISIBLE_SPACE);
  4858. /^(img|br|input)$/i.test(g.nodeName) ? y = g : (g.appendChild(b), g = b);
  4859. }
  4860. return m.selectNodeContents(y || g), m.collapse(i), this.selectRange(m), g;
  4861. }, o.prototype.selectRange = function(r, i) {
  4862. i === void 0 && (i = !0);
  4863. var c = this.sel;
  4864. return i && !this.isFocused() && this.focus(), c && (c.removeAllRanges(), c.addRange(r)), this.j.e.fire("changeSelection"), this;
  4865. }, o.prototype.select = function(r, i) {
  4866. var c = this;
  4867. if (i === void 0 && (i = !1), this.errorNode(r), !p.Dom.up(r, function(y) {
  4868. return y === c.area || y && y.parentNode === c.area;
  4869. }, this.area)) throw (0, d.error)("Node element must be in editor");
  4870. var m = this.createRange();
  4871. return m[i ? "selectNodeContents" : "selectNode"](r), this.selectRange(m);
  4872. }, Object.defineProperty(o.prototype, "html", { get: function() {
  4873. var r = this.sel;
  4874. if (r && r.rangeCount > 0) {
  4875. var i = r.getRangeAt(0).cloneContents(), c = this.j.createInside.div();
  4876. return c.appendChild(i), c.innerHTML;
  4877. }
  4878. return "";
  4879. }, enumerable: !1, configurable: !0 }), o.prototype.wrapInTagGen = function() {
  4880. var r, i, c, m, y, g, b, w, C, S, j;
  4881. return n.__generator(this, function(E) {
  4882. switch (E.label) {
  4883. case 0:
  4884. return this.isCollapsed() ? (g = this.jodit.createInside.element("font", h.INVISIBLE_SPACE), this.insertNode(g, !1, !1), r = n.__read(this.markers, 1), (i = r[0]) ? g.appendChild(i) : (this.setCursorIn(g), this.save()), [4, g]) : [3, 2];
  4885. case 1:
  4886. return E.sent(), p.Dom.unwrap(g), [2];
  4887. case 2:
  4888. (0, d.$$)("*[style*=font-size]", this.area).forEach(function(x) {
  4889. return (0, d.attr)(x, "data-font-size", x.style.fontSize.toString());
  4890. }), this.isCollapsed() ? (g = this.j.createInside.element("font"), (0, d.attr)(g, "size", 7), this.insertNode(g, !1, !1)) : this.j.nativeExecCommand("fontsize", !1, "7"), (0, d.$$)("*[data-font-size]", this.area).forEach(function(x) {
  4891. var k = (0, d.attr)(x, "data-font-size");
  4892. k && (x.style.fontSize = k, (0, d.attr)(x, "data-font-size", null));
  4893. }), c = (0, d.$$)('font[size="7"]', this.area), E.label = 3;
  4894. case 3:
  4895. E.trys.push([3, 8, 9, 10]), m = n.__values(c), y = m.next(), E.label = 4;
  4896. case 4:
  4897. return y.done ? [3, 7] : (w = (g = y.value).lastChild, (b = g.firstChild) && b === w && (0, f.isMarker)(b) ? (p.Dom.unwrap(g), [3, 6]) : (b && (0, f.isMarker)(b) && p.Dom.before(g, b), w && (0, f.isMarker)(w) && p.Dom.after(g, w), [4, g]));
  4898. case 5:
  4899. E.sent(), p.Dom.unwrap(g), E.label = 6;
  4900. case 6:
  4901. return y = m.next(), [3, 4];
  4902. case 7:
  4903. return [3, 10];
  4904. case 8:
  4905. return C = E.sent(), S = { error: C }, [3, 10];
  4906. case 9:
  4907. try {
  4908. y && !y.done && (j = m.return) && j.call(m);
  4909. } finally {
  4910. if (S) throw S.error;
  4911. }
  4912. return [7];
  4913. case 10:
  4914. return [2];
  4915. }
  4916. });
  4917. }, o.prototype.wrapInTag = function(r) {
  4918. var i, c, m = [];
  4919. try {
  4920. for (var y = n.__values(this.wrapInTagGen()), g = y.next(); !g.done; g = y.next()) {
  4921. var b = g.value;
  4922. try {
  4923. if (b.firstChild && b.firstChild === b.lastChild && (0, f.isMarker)(b.firstChild)) continue;
  4924. (0, f.isFunction)(r) ? r(b) : m.push(p.Dom.replace(b, r, this.j.createInside));
  4925. } finally {
  4926. var w = b.parentNode;
  4927. w && (p.Dom.unwrap(b), p.Dom.isEmpty(w) && p.Dom.unwrap(w));
  4928. }
  4929. }
  4930. } catch (C) {
  4931. i = { error: C };
  4932. } finally {
  4933. try {
  4934. g && !g.done && (c = y.return) && c.call(y);
  4935. } finally {
  4936. if (i) throw i.error;
  4937. }
  4938. }
  4939. return m;
  4940. }, o.prototype.commitStyle = function(r) {
  4941. new a.CommitStyle(r).apply(this.j);
  4942. }, o.prototype.applyStyle = function(r, i) {
  4943. i === void 0 && (i = {}), this.commitStyle(n.__assign({ style: r }, i));
  4944. }, o.prototype.splitSelection = function(r, i) {
  4945. if (!this.isCollapsed()) return null;
  4946. var c = this.createRange(), m = this.range;
  4947. c.setStartBefore(r);
  4948. var y = this.cursorOnTheRight(r, i), g = this.cursorOnTheLeft(r, i), b = this.j.createInside.element("br"), w = this.j.createInside.fake(), C = w.cloneNode();
  4949. try {
  4950. if (y || g) {
  4951. i ? p.Dom.before(i, b) : p.Dom.safeInsertNode(m, b);
  4952. var S = function(I, M) {
  4953. for (var T = M(I); T; ) {
  4954. var O = M(T);
  4955. if (!T || !p.Dom.isTag(T, "br") && !p.Dom.isEmptyTextNode(T)) break;
  4956. p.Dom.safeRemove(T), T = O;
  4957. }
  4958. };
  4959. S(b, function(I) {
  4960. return I.nextSibling;
  4961. }), S(b, function(I) {
  4962. return I.previousSibling;
  4963. }), p.Dom.after(b, C), p.Dom.before(b, w), y ? (c.setEndBefore(b), m.setEndBefore(b)) : (c.setEndAfter(b), m.setEndAfter(b));
  4964. } else c.setEnd(m.startContainer, m.startOffset);
  4965. var j = c.extractContents(), E = function(I) {
  4966. return p.Dom.each(I, function(M) {
  4967. return p.Dom.isEmptyTextNode(M) && p.Dom.safeRemove(M);
  4968. });
  4969. };
  4970. try {
  4971. if (E(j), E(r), r.parentNode.insertBefore(j, r), !i && y && (b == null ? void 0 : b.parentNode)) {
  4972. var x = this.createRange();
  4973. x.setStartBefore(b), this.selectRange(x);
  4974. }
  4975. } catch (I) {
  4976. }
  4977. var k = function(I) {
  4978. var M, T, O;
  4979. ((M = I == null ? void 0 : I.parentNode) === null || M === void 0 ? void 0 : M.firstChild) === ((T = I == null ? void 0 : I.parentNode) === null || T === void 0 ? void 0 : T.lastChild) && ((O = I == null ? void 0 : I.parentNode) === null || O === void 0 || O.appendChild(b.cloneNode()));
  4980. };
  4981. k(w), k(C);
  4982. } finally {
  4983. p.Dom.safeRemove(w), p.Dom.safeRemove(C);
  4984. }
  4985. return r.previousElementSibling;
  4986. }, o.prototype.expandSelection = function() {
  4987. var r = this;
  4988. if (this.isCollapsed()) return this;
  4989. var i = this.range, c = i.cloneRange();
  4990. if (!p.Dom.isOrContains(this.j.editor, i.commonAncestorContainer, !0)) return this;
  4991. var m = function(x) {
  4992. var k = r.j.createInside.fake(), I = i.cloneRange();
  4993. return I.collapse(x), p.Dom.safeInsertNode(I, k), (0, u.moveTheNodeAlongTheEdgeOutward)(k, x, r.j.editor), k;
  4994. }, y = m(!0), g = m(!1);
  4995. c.setStartAfter(y), c.setEndBefore(g);
  4996. var b = p.Dom.findSibling(y, !1), w = p.Dom.findSibling(g, !0);
  4997. if (b !== w) {
  4998. var C = p.Dom.isElement(b) && p.Dom.isOrContains(b, g), S = !C && p.Dom.isElement(w) && p.Dom.isOrContains(w, y);
  4999. if (C || S) {
  5000. for (var j = C ? b : w, E = j; p.Dom.isElement(j); ) (j = C ? j.firstElementChild : j.lastElementChild) && p.Dom.isOrContains(j, C ? g : y) && (E = j);
  5001. C ? c.setStart(E, 0) : c.setEnd(E, E.childNodes.length);
  5002. }
  5003. }
  5004. return this.selectRange(c), p.Dom.safeRemove(y, g), this;
  5005. }, n.__decorate([s.autobind], o.prototype, "createRange", null), n.__decorate([s.autobind], o.prototype, "focus", null), n.__decorate([s.autobind], o.prototype, "setCursorAfter", null), n.__decorate([s.autobind], o.prototype, "setCursorBefore", null), n.__decorate([s.autobind], o.prototype, "setCursorIn", null), o;
  5006. }();
  5007. t.Select = l;
  5008. }, 77846: function(_, t, e) {
  5009. Object.defineProperty(t, "__esModule", { value: !0 }), t.extractSelectedPart = void 0;
  5010. var n = e(67309), v = e(33941), h = e(24263), p = e(37204);
  5011. function d(a, s, u) {
  5012. var f = s.extractContents();
  5013. f.textContent && (0, v.trim)(f.textContent).length || !f.firstChild || h.Dom.unwrap(f.firstChild), a.parentNode && (0, n.call)(u ? h.Dom.before : h.Dom.after, a, f);
  5014. }
  5015. t.extractSelectedPart = function(a, s, u) {
  5016. var f = u.s.createRange(), l = (0, p.isMarker)(s.previousSibling) ? s.previousSibling : s;
  5017. f.setStartBefore(a), f.setEndBefore(l), d(a, f, !0);
  5018. var o = (0, p.isMarker)(s.nextSibling) ? s.nextSibling : s;
  5019. f.setStartAfter(o), f.setEndAfter(a), d(a, f, !1);
  5020. };
  5021. }, 95901: function(_, t, e) {
  5022. Object.defineProperty(t, "__esModule", { value: !0 }), t.FiniteStateMachine = void 0, e(24421), e(603);
  5023. var n = function() {
  5024. function v(h, p) {
  5025. this.transitions = p, this.silent = !0, this.__previewsStates = /* @__PURE__ */ new Set(), this.setState(h);
  5026. }
  5027. return v.prototype.setState = function(h) {
  5028. this.__previewsStates.add(h), this.__state = h;
  5029. }, v.prototype.getState = function() {
  5030. return this.__state;
  5031. }, v.prototype.disableSilent = function() {
  5032. this.silent = !1;
  5033. }, v.prototype.dispatch = function(h, p) {
  5034. var d = this.transitions[this.getState()][h];
  5035. if (d) {
  5036. var a = d.call(this, p);
  5037. return this.setState(a.next), a;
  5038. }
  5039. throw new Error("invalid action: ".concat(this.getState(), ".").concat(h.toString()));
  5040. }, v;
  5041. }();
  5042. t.FiniteStateMachine = n;
  5043. }, 65774: function(_, t, e) {
  5044. Object.defineProperty(t, "__esModule", { value: !0 }), t.getSuitChild = void 0;
  5045. var n = e(24263), v = e(63150), h = e(74477);
  5046. t.getSuitChild = function(p, d) {
  5047. for (var a = d.firstChild; a && !(0, v.isNormalNode)(a); ) if (!(a = a.nextSibling)) return null;
  5048. return a && !n.Dom.next(a, v.isNormalNode, d) && (0, h.isSuitElement)(p, a, !1) ? a : null;
  5049. };
  5050. }, 66277: function(_, t, e) {
  5051. Object.defineProperty(t, "__esModule", { value: !0 }), t.getSuitParent = void 0;
  5052. var n = e(24263), v = e(63150), h = e(74477);
  5053. t.getSuitParent = function p(d, a, s) {
  5054. var u = a.parentNode;
  5055. return u === s || !n.Dom.isHTMLElement(u) || n.Dom.next(a, v.isNormalNode, u) || n.Dom.prev(a, v.isNormalNode, u) ? null : d.isElementCommit && d.elementIsBlock && !n.Dom.isBlock(u) ? p(d, u, s) : !(0, h.isSuitElement)(d, u, !1) || n.Dom.isBlock(u) && !d.elementIsBlock ? d.isElementCommit && !n.Dom.isBlock(u) ? p(d, u, s) : null : u;
  5056. };
  5057. }, 18387: function(_, t, e) {
  5058. Object.defineProperty(t, "__esModule", { value: !0 }), t.hasSameStyleKeys = t.hasSameStyle = void 0;
  5059. var n = e(26911), v = e(24021), h = e(49353), p = e(24263);
  5060. e(52378), t.hasSameStyle = function(d, a) {
  5061. return !!(!p.Dom.isTag(d, "font") && p.Dom.isHTMLElement(d) && Object.keys(a).every(function(s) {
  5062. var u = (0, n.css)(d, s, !0);
  5063. return u === "" && (a[s] === "" || a[s] == null) || !(0, v.isVoid)(u) && u !== "" && !(0, v.isVoid)(a[s]) && (0, h.normalizeCssValue)(s, a[s]).toString().toLowerCase() === u.toString().toLowerCase();
  5064. }));
  5065. }, document.createElement("div").style.color = "red", t.hasSameStyleKeys = function(d, a) {
  5066. return !!(!p.Dom.isTag(d, "font") && p.Dom.isHTMLElement(d) && Object.keys(a).every(function(s) {
  5067. var u = (0, n.css)(d, s, !0);
  5068. return !(0, v.isVoid)(u);
  5069. }));
  5070. };
  5071. }, 66162: function(_, t, e) {
  5072. Object.defineProperty(t, "__esModule", { value: !0 });
  5073. var n = e(20255);
  5074. n.__exportStar(e(93217), t), n.__exportStar(e(11651), t), n.__exportStar(e(29271), t), n.__exportStar(e(18387), t), n.__exportStar(e(77846), t), n.__exportStar(e(95901), t), n.__exportStar(e(65774), t), n.__exportStar(e(66277), t), n.__exportStar(e(76991), t), n.__exportStar(e(47508), t), n.__exportStar(e(63150), t), n.__exportStar(e(74477), t), n.__exportStar(e(26707), t), n.__exportStar(e(8298), t), n.__exportStar(e(6278), t);
  5075. }, 76991: function(_, t, e) {
  5076. Object.defineProperty(t, "__esModule", { value: !0 }), t.isInsideInvisibleElement = void 0;
  5077. var n = e(24263);
  5078. t.isInsideInvisibleElement = function(v, h) {
  5079. return !!n.Dom.closest(v, ["style", "script"], h);
  5080. };
  5081. }, 63150: function(_, t, e) {
  5082. Object.defineProperty(t, "__esModule", { value: !0 }), t.isNormalNode = void 0;
  5083. var n = e(24263), v = e(37204);
  5084. t.isNormalNode = function(h) {
  5085. return !!(h && !n.Dom.isEmptyTextNode(h) && !n.Dom.isTemporary(h) && !(0, v.isMarker)(h));
  5086. };
  5087. }, 47508: function(_, t, e) {
  5088. Object.defineProperty(t, "__esModule", { value: !0 }), t.elementsEqualAttributes = t.isSameAttributes = void 0;
  5089. var n = e(76502), v = e(16492), h = (e(52378), e(18387));
  5090. t.isSameAttributes = function(p, d) {
  5091. return !p.attributes.length && !(0, v.size)(d) || !(0, v.size)(d) || Object.keys(d).every(function(a) {
  5092. return a === "class" ? p.classList.contains(d[a]) : a === "style" ? (0, h.hasSameStyle)(p, d[a]) : (0, n.attr)(p, a) === d[a];
  5093. });
  5094. }, t.elementsEqualAttributes = function(p, d) {
  5095. return p.attributes.length === d.attributes.length && Array.from(p.attributes).every(function(a) {
  5096. return d.hasAttribute(a.name) && d.getAttribute(a.name) === a.value;
  5097. });
  5098. };
  5099. }, 74477: function(_, t, e) {
  5100. Object.defineProperty(t, "__esModule", { value: !0 }), t.isSameStyleChild = t.findSuitClosest = t.isSuitElement = void 0;
  5101. var n = e(24263), v = e(63150), h = e(18387);
  5102. function p(d, a, s) {
  5103. var u;
  5104. if (!a) return !1;
  5105. var f = d.element, l = d.elementIsDefault, o = d.options, r = !!(!((u = o.attributes) === null || u === void 0) && u.style && (0, h.hasSameStyle)(a, o.attributes.style)), i = a.nodeName.toLowerCase() === f || n.Dom.isTag(a, ["ul", "ol"]) && d.elementIsList;
  5106. return !((l && s || !i) && (!r || !(0, v.isNormalNode)(a) || d.elementIsList)) || !!(!i && !s && l && n.Dom.isInlineBlock(a));
  5107. }
  5108. t.isSuitElement = p, t.findSuitClosest = function(d, a, s) {
  5109. return n.Dom.closest(a, function(u) {
  5110. return p(d, u, !0);
  5111. }, s);
  5112. }, t.isSameStyleChild = function(d, a) {
  5113. var s, u, f = d.element, l = d.options;
  5114. if (!a || !(0, v.isNormalNode)(a)) return !1;
  5115. var o = a.nodeName.toLowerCase() === f, r = !!(!((s = l.attributes) === null || s === void 0) && s.style && (0, h.hasSameStyleKeys)(a, (u = l.attributes) === null || u === void 0 ? void 0 : u.style));
  5116. return o && r;
  5117. };
  5118. }, 11651: function(_, t, e) {
  5119. Object.defineProperty(t, "__esModule", { value: !0 }), t.toggleOrderedList = void 0;
  5120. var n = e(24263), v = (e(52378), e(77846)), h = e(70851), p = e(93217), d = e(66162);
  5121. function a(s, u, f, l, o) {
  5122. return l.e.fire("".concat(h._PREFIX, "BeforeUnwrapList"), s, u, o) || ((0, v.extractSelectedPart)(u, f, l), n.Dom.unwrap(f.parentElement), n.Dom.replace(f, l.o.enter, l.createInside));
  5123. }
  5124. t.toggleOrderedList = function(s, u, f, l) {
  5125. if (!u) return l;
  5126. var o = u.parentElement;
  5127. if (!o) return l;
  5128. var r = f.e.fire("".concat(h._PREFIX, "BeforeToggleList"), l, s, o);
  5129. if (r !== void 0) return r;
  5130. var i = f.e.fire.bind(f.e, "".concat(h._PREFIX, "AfterToggleList"));
  5131. if (l !== h.UNWRAP) {
  5132. var c = (0, p.toggleAttributes)(s, u.parentElement, f, h.INITIAL, !0) === h.CHANGE;
  5133. if (l === h.REPLACE || c || o.tagName.toLowerCase() !== s.element) {
  5134. var m = a(h.REPLACE, o, u, f, s), y = (0, d.wrapList)(s, m, f);
  5135. return i(h.REPLACE, y, s), h.REPLACE;
  5136. }
  5137. }
  5138. var g = a(h.UNWRAP, o, u, f, s);
  5139. return i(h.UNWRAP, g, s), h.UNWRAP;
  5140. };
  5141. }, 29271: function(_, t, e) {
  5142. Object.defineProperty(t, "__esModule", { value: !0 }), t.wrapList = void 0;
  5143. var n = e(64968), v = e(70851), h = e(66162);
  5144. t.wrapList = function(p, d, a) {
  5145. var s = a.e.fire("".concat(v._PREFIX, "BeforeWrapList"), v.REPLACE, d, p), u = s != null ? s : n.Dom.replace(d, "li", a.createInside), f = u.previousElementSibling, l = u.nextElementSibling, o = n.Dom.isTag(f, p.element) ? f : null;
  5146. return o != null || (o = n.Dom.isTag(l, p.element) ? l : null), n.Dom.isTag(o, ["ul", "ol"]) && (0, h.isSameAttributes)(o, p.options.attributes) || (o = a.createInside.element(p.element), (0, h.toggleAttributes)(p, o, a, v.INITIAL), n.Dom.before(u, o)), f === o ? n.Dom.append(o, u) : n.Dom.prepend(o, u), n.Dom.isTag(o.nextElementSibling, p.element) && (0, h.elementsEqualAttributes)(o, o.nextElementSibling) && (n.Dom.append(o, Array.from(o.nextElementSibling.childNodes)), n.Dom.safeRemove(o.nextElementSibling)), a.e.fire("".concat(v._PREFIX, "AfterWrapList"), v.WRAP, o, p), o;
  5147. };
  5148. }, 93217: function(_, t, e) {
  5149. Object.defineProperty(t, "__esModule", { value: !0 }), t.toggleAttributes = void 0;
  5150. var n = e(76502), v = e(26911), h = e(63122), p = e(11278), d = e(49353), a = e(16492), s = e(24263), u = e(70851), f = e(17332), l = (e(10172), "toggleAttributes");
  5151. function o(r, i, c) {
  5152. return (0, n.attr)(i, "style") || ((0, n.attr)(i, "style", null), i.tagName.toLowerCase() === r.defaultTag && (s.Dom.unwrap(i), c = u.UNWRAP)), c;
  5153. }
  5154. t.toggleAttributes = function(r, i, c, m, y) {
  5155. if (y === void 0 && (y = !1), !y && r.isApplied(i, l)) return m;
  5156. !y && r.setApplied(i, l);
  5157. var g = r.options.attributes;
  5158. return g && (0, a.size)(g) > 0 && Object.keys(g).forEach(function(b) {
  5159. var w = g[b];
  5160. switch (b) {
  5161. case "style":
  5162. m = function(C, S, j, E, x, k) {
  5163. return Object.keys(j).forEach(function(I) {
  5164. var M = E.style.getPropertyValue((0, p.kebabCase)(I)), T = j[I];
  5165. if (M !== "" || T != null) {
  5166. if (function(O, L, N) {
  5167. var H = O.create.element(L.tagName.toLowerCase());
  5168. H.style.cssText = L.style.cssText, function(F) {
  5169. var U;
  5170. if ((0, h.dataBind)(F, "shadowRoot") !== void 0) return (0, h.dataBind)(F, "shadowRoot");
  5171. var Y = (0, f.getContainer)(F), P = document.createElement("iframe");
  5172. (0, v.css)(P, { width: 0, height: 0, position: "absolute", border: 0 }), P.src = "about:blank", Y.appendChild(P);
  5173. var D = (U = P.contentWindow) === null || U === void 0 ? void 0 : U.document, z = D ? D.body : F.od.body;
  5174. return (0, h.dataBind)(F, "shadowRoot", z), z;
  5175. }(O).appendChild(H);
  5176. var q = (0, v.css)(H, N);
  5177. return s.Dom.safeRemove(H), q;
  5178. }(S, E, I) === (0, d.normalizeCssValue)(I, T))
  5179. return M ? (!x && (0, v.css)(E, I, null), void (k = o(C, E, k = u.UNSET))) : void 0;
  5180. k = u.CHANGE, x || ((0, v.css)(E, I, T), k = o(C, E, k));
  5181. }
  5182. }), k;
  5183. }(r, c, w, i, y, m);
  5184. break;
  5185. case "class":
  5186. m = function(C, S, j, E, x) {
  5187. var k = C.e.fire.bind(C.e, "".concat(u._PREFIX, "AfterToggleAttribute"));
  5188. return j.classList.contains(S.toString()) ? (E = u.UNSET, x || (j.classList.remove(S), j.classList.length === 0 && ((0, n.attr)(j, "class", null), k(E, j, "class", null)))) : (E = u.CHANGE, x || (j.classList.add(S), k(E, j, "class", S))), E;
  5189. }(c, w, i, m, y);
  5190. break;
  5191. default:
  5192. m = function(C, S, j, E, x, k) {
  5193. var I = C.e.fire.bind(C.e, "".concat(u._PREFIX, "AfterToggleAttribute"));
  5194. return (0, n.attr)(j, E) === S ? (!x && (0, n.attr)(j, E, null), k = u.UNSET, !x && I(k, j, E, S), k) : (k = u.CHANGE, x || ((0, n.attr)(j, E, S), I(k, j, E, S)), k);
  5195. }(c, w, i, b, y, m);
  5196. }
  5197. }), m;
  5198. };
  5199. }, 26707: function(_, t, e) {
  5200. Object.defineProperty(t, "__esModule", { value: !0 }), t.unwrapChildren = void 0;
  5201. var n = e(24263), v = e(40332), h = e(18387), p = e(74477);
  5202. t.unwrapChildren = function(d, a) {
  5203. var s, u, f = [], l = [], o = (s = d.options.attributes) === null || s === void 0 ? void 0 : s.style;
  5204. if (a.firstChild) for (var r = n.Dom.eachGen(a), i = r.next(), c = function() {
  5205. var m = i.value;
  5206. !(0, p.isSuitElement)(d, m, !0) || o && !(0, h.hasSameStyleKeys)(m, o) ? o && (0, p.isSameStyleChild)(d, m) ? (u === void 0 && (u = !1), l.push(function() {
  5207. (0, v.css)(m, Object.keys(o).reduce(function(y, g) {
  5208. return y[g] = null, y;
  5209. }, {})), (0, v.attr)(m, "style") || (0, v.attr)(m, "style", null), (0, v.attr)(m, "style") || m.nodeName.toLowerCase() !== d.element || f.push(m);
  5210. })) : n.Dom.isEmptyTextNode(m) || u === void 0 && (u = !1) : (u === void 0 && (u = !0), f.push(m)), i = r.next();
  5211. }; !i.done; ) c();
  5212. return l.forEach(function(m) {
  5213. return m();
  5214. }), f.forEach(n.Dom.unwrap), !!u;
  5215. };
  5216. }, 6278: function(_, t, e) {
  5217. Object.defineProperty(t, "__esModule", { value: !0 }), t.wrapUnwrappedText = void 0;
  5218. var n = e(24263), v = e(37204);
  5219. t.wrapUnwrappedText = function(h, p, d) {
  5220. var a = d.editor, s = d.createInside, u = function(c, m) {
  5221. m === void 0 && (m = "previousSibling");
  5222. for (var y = c, g = c; g && !(0, v.isMarker)(g) && !n.Dom.isTag(g, d.o.enter) && (y = g, g = g[m] ? g[m] : g.parentNode && !n.Dom.isBlock(g.parentNode) && g.parentNode !== a ? g.parentNode : null, !n.Dom.isBlock(g)); ) ;
  5223. return y;
  5224. }, f = u(p), l = u(p, "nextSibling"), o = d.s.createRange();
  5225. o.setStartBefore(f), o.setEndAfter(l);
  5226. var r = o.extractContents(), i = s.element(h.element);
  5227. return i.appendChild(r), n.Dom.safeInsertNode(o, i), h.elementIsBlock && n.Dom.isEmpty(i) && !n.Dom.isTag(i.firstElementChild, "br") && i.appendChild(s.element("br")), i;
  5228. };
  5229. }, 8298: function(_, t, e) {
  5230. Object.defineProperty(t, "__esModule", { value: !0 }), t.wrap = void 0;
  5231. var n = e(64968), v = e(6278), h = e(67309), p = e(29271);
  5232. t.wrap = function(d, a, s) {
  5233. var u = function(f, l, o) {
  5234. return f.elementIsBlock ? n.Dom.up(l, function(r) {
  5235. return n.Dom.isBlock(r) && !n.Dom.isTag(r, ["td", "th", "tr", "tbody", "table", "li", "ul", "ol"]);
  5236. }, o.editor) || (0, v.wrapUnwrappedText)(f, l, o) : ((0, h.attr)(l, "size", null), l);
  5237. }(d, a, s);
  5238. return d.elementIsList ? (0, p.wrapList)(d, u, s) : n.Dom.replace(u, d.element, s.createInside, !0);
  5239. };
  5240. }, 3097: function(_, t, e) {
  5241. Object.defineProperty(t, "__esModule", { value: !0 }), t.ApplyStyle = void 0;
  5242. var n = e(74504), v = e(66162), h = e(33090), p = e(70851);
  5243. t.ApplyStyle = function(d, a) {
  5244. var s = d.s, u = d.editor;
  5245. s.save(), (0, n.normalizeNode)(u.firstChild);
  5246. for (var f = d.s.wrapInTagGen(), l = f.next(), o = { mode: p.INITIAL, element: l.value, next: h.states.START, jodit: d, style: a }; l && !l.done; ) {
  5247. var r = new v.FiniteStateMachine(h.states.START, h.transactions);
  5248. for (o.element = l.value; r.getState() !== h.states.END; ) o = r.dispatch("exec", o);
  5249. l = f.next();
  5250. }
  5251. s.restore();
  5252. };
  5253. }, 70851: function(_, t, e) {
  5254. Object.defineProperty(t, "__esModule", { value: !0 }), t.CommitStyle = t._PREFIX = t.REPLACE = t.INITIAL = t.UNSET = t.CHANGE = t.UNWRAP = t.WRAP = void 0;
  5255. var n = e(86893), v = e(26596), h = e(3097);
  5256. t.WRAP = "wrap", t.UNWRAP = "unwrap", t.CHANGE = "change", t.UNSET = "unset", t.INITIAL = "initial", t.REPLACE = "replace", t._PREFIX = "commitStyle";
  5257. var p = function() {
  5258. function d(a) {
  5259. var s, u, f, l;
  5260. this.options = a, this.__applyMap = /* @__PURE__ */ new WeakMap(), a.attributes = (s = a.attributes, l = (u = this.options).className, (f = u.style) && (s ? s.style = f : s = { style: f }, delete this.options.style), l && (s ? s.class = l : s = { class: l }, delete this.options.className), s);
  5261. }
  5262. return d.prototype.isApplied = function(a, s) {
  5263. var u = this.__applyMap.get(a);
  5264. return !!u && u[s];
  5265. }, d.prototype.setApplied = function(a, s) {
  5266. var u, f = (u = this.__applyMap.get(a)) !== null && u !== void 0 ? u : {};
  5267. f[s] = !0, this.__applyMap.set(a, f);
  5268. }, Object.defineProperty(d.prototype, "elementIsList", { get: function() {
  5269. return !!(this.options.element && ["ul", "ol"].includes(this.options.element));
  5270. }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "element", { get: function() {
  5271. return this.options.element || this.defaultTag;
  5272. }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "elementIsBlock", { get: function() {
  5273. return !!(this.options.element && n.IS_BLOCK.test(this.options.element));
  5274. }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "isElementCommit", { get: function() {
  5275. return !!(this.options.element && this.options.element !== this.options.defaultTag);
  5276. }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "defaultTag", { get: function() {
  5277. return this.options.defaultTag ? this.options.defaultTag : this.elementIsBlock ? "p" : "span";
  5278. }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "elementIsDefault", { get: function() {
  5279. return this.element === this.defaultTag;
  5280. }, enumerable: !1, configurable: !0 }), d.prototype.apply = function(a) {
  5281. var s = this.options.hooks;
  5282. try {
  5283. s && Object.keys(s).forEach(function(u) {
  5284. a.e.on((0, v.camelCase)(t._PREFIX + "_" + u), s[u]);
  5285. }), (0, h.ApplyStyle)(a, this);
  5286. } finally {
  5287. s && Object.keys(s).forEach(function(u) {
  5288. a.e.off((0, v.camelCase)(t._PREFIX + "_" + u), s[u]);
  5289. }), this.__applyMap = /* @__PURE__ */ new WeakMap();
  5290. }
  5291. }, d;
  5292. }();
  5293. t.CommitStyle = p;
  5294. }, 33090: function(_, t, e) {
  5295. var n;
  5296. Object.defineProperty(t, "__esModule", { value: !0 }), t.transactions = t.states = void 0;
  5297. var v = e(20255), h = e(2123), p = e(66162), d = e(64968), a = e(2123);
  5298. e(52378), t.states = { START: "START", ELEMENT: "ELEMENT", UNWRAP: "UNWRAP", UNWRAP_CHILDREN: "UNWRAP_CHILDREN", CHANGE: "CHANGE", REPLACE_DEFAULT: "REPLACE_DEFAULT", LIST: "LIST", TOGGLE_LIST: "TOGGLE_LIST", WRAP: "WRAP", EXTRACT: "EXTRACT", END: "END" }, t.transactions = ((n = {})[t.states.START] = { exec: function(s) {
  5299. var u = s.element, f = s.jodit, l = s.style, o = s.mode;
  5300. if ((0, p.isInsideInvisibleElement)(u, f.editor) || d.Dom.isEmptyContent(u)) return v.__assign(v.__assign({}, s), { next: t.states.END });
  5301. var r = (0, p.getSuitParent)(l, u, f.editor) || (0, p.getSuitChild)(l, u);
  5302. if (r) return v.__assign(v.__assign({}, s), { next: t.states.ELEMENT, element: r });
  5303. var i = (0, p.findSuitClosest)(l, u, f.editor);
  5304. return l.elementIsList && d.Dom.isTag(i, ["ul", "ol"]) ? v.__assign(v.__assign({}, s), { next: t.states.LIST }) : v.__assign(v.__assign({}, s), i ? { next: t.states.EXTRACT } : { next: o !== a.UNWRAP ? t.states.UNWRAP_CHILDREN : t.states.END });
  5305. } }, n[t.states.LIST] = { exec: function(s) {
  5306. var u = s.element, f = s.jodit, l = s.mode;
  5307. if (l !== a.INITIAL && l !== a.UNWRAP && l !== h.REPLACE) return v.__assign(v.__assign({}, s), { next: t.states.END });
  5308. var o = d.Dom.closest(u, "li", f.editor);
  5309. if (!o) return v.__assign(v.__assign({}, s), { next: t.states.END });
  5310. var r = d.Dom.closest(u, ["ul", "ol"], f.editor);
  5311. return v.__assign(v.__assign({}, s), r ? { element: o, next: t.states.TOGGLE_LIST } : { next: t.states.END });
  5312. } }, n[t.states.TOGGLE_LIST] = { exec: function(s) {
  5313. return v.__assign(v.__assign({}, s), { mode: (0, p.toggleOrderedList)(s.style, s.element, s.jodit, s.mode), next: t.states.END });
  5314. } }, n[t.states.EXTRACT] = { exec: function(s) {
  5315. var u = s.element, f = s.jodit, l = s.style, o = (0, p.findSuitClosest)(l, u, f.editor);
  5316. return l.elementIsBlock || (0, p.extractSelectedPart)(o, u, f), v.__assign(v.__assign({}, s), { element: o, next: t.states.ELEMENT });
  5317. } }, n[t.states.UNWRAP_CHILDREN] = { exec: function(s) {
  5318. return (0, p.unwrapChildren)(s.style, s.element) ? v.__assign(v.__assign({}, s), { mode: a.UNWRAP, next: t.states.END }) : v.__assign(v.__assign({}, s), { next: t.states.WRAP });
  5319. } }, n[t.states.WRAP] = { exec: function(s) {
  5320. var u = s.style, f = (0, p.wrap)(u, s.element, s.jodit);
  5321. return v.__assign(v.__assign({}, s), { next: u.elementIsList ? t.states.END : t.states.CHANGE, mode: a.WRAP, element: f });
  5322. } }, n[t.states.ELEMENT] = { exec: function(s) {
  5323. var u = s.style, f = s.element;
  5324. return (0, p.toggleAttributes)(u, f, s.jodit, a.INITIAL, !0) !== a.INITIAL ? v.__assign(v.__assign({}, s), { next: t.states.CHANGE }) : d.Dom.isTag(f, u.element) ? v.__assign(v.__assign({}, s), { next: t.states.UNWRAP }) : v.__assign(v.__assign({}, s), { next: t.states.END });
  5325. } }, n[t.states.CHANGE] = { exec: function(s) {
  5326. var u = s.style, f = s.element, l = s.mode, o = (0, p.toggleAttributes)(u, f, s.jodit, s.mode);
  5327. return l !== a.WRAP && o === a.UNSET && !f.attributes.length && d.Dom.isTag(f, u.element) ? v.__assign(v.__assign({}, s), { next: t.states.UNWRAP }) : v.__assign(v.__assign({}, s), { mode: o, next: t.states.END });
  5328. } }, n[t.states.UNWRAP] = { exec: function(s) {
  5329. return s.element.attributes.length && d.Dom.isTag(s.element, s.style.element) ? v.__assign(v.__assign({}, s), { next: t.states.REPLACE_DEFAULT }) : (d.Dom.unwrap(s.element), v.__assign(v.__assign({}, s), { mode: a.UNWRAP, next: t.states.END }));
  5330. } }, n[t.states.REPLACE_DEFAULT] = { exec: function(s) {
  5331. return d.Dom.replace(s.element, s.style.defaultTag, s.jodit.createInside, !0), v.__assign(v.__assign({}, s), { mode: h.REPLACE, next: t.states.END });
  5332. } }, n[t.states.END] = { exec: function(s) {
  5333. return s;
  5334. } }, n);
  5335. }, 75764: function(_, t) {
  5336. var e;
  5337. Object.defineProperty(t, "__esModule", { value: !0 }), t.LocalStorageProvider = t.canUsePersistentStorage = void 0, t.canUsePersistentStorage = function() {
  5338. return e === void 0 && (e = function() {
  5339. var v = "___Jodit___" + Math.random().toString();
  5340. try {
  5341. localStorage.setItem(v, "1");
  5342. var h = localStorage.getItem(v) === "1";
  5343. return localStorage.removeItem(v), h;
  5344. } catch (p) {
  5345. }
  5346. return !1;
  5347. }()), e;
  5348. };
  5349. var n = function() {
  5350. function v(h) {
  5351. this.rootKey = h;
  5352. }
  5353. return v.prototype.set = function(h, p) {
  5354. try {
  5355. var d = localStorage.getItem(this.rootKey), a = d ? JSON.parse(d) : {};
  5356. a[h] = p, localStorage.setItem(this.rootKey, JSON.stringify(a));
  5357. } catch (s) {
  5358. }
  5359. return this;
  5360. }, v.prototype.delete = function(h) {
  5361. try {
  5362. localStorage.removeItem(this.rootKey);
  5363. } catch (p) {
  5364. }
  5365. return this;
  5366. }, v.prototype.get = function(h) {
  5367. try {
  5368. var p = localStorage.getItem(this.rootKey), d = p ? JSON.parse(p) : {};
  5369. return d[h] !== void 0 ? d[h] : null;
  5370. } catch (a) {
  5371. }
  5372. }, v.prototype.exists = function(h) {
  5373. return this.get(h) != null;
  5374. }, v.prototype.clear = function() {
  5375. try {
  5376. localStorage.removeItem(this.rootKey);
  5377. } catch (h) {
  5378. }
  5379. return this;
  5380. }, v;
  5381. }();
  5382. t.LocalStorageProvider = n;
  5383. }, 79905: function(_, t) {
  5384. Object.defineProperty(t, "__esModule", { value: !0 }), t.MemoryStorageProvider = void 0;
  5385. var e = function() {
  5386. function n() {
  5387. this.data = /* @__PURE__ */ new Map();
  5388. }
  5389. return n.prototype.set = function(v, h) {
  5390. return this.data.set(v, h), this;
  5391. }, n.prototype.delete = function(v) {
  5392. return this.data.delete(v), this;
  5393. }, n.prototype.get = function(v) {
  5394. return this.data.get(v);
  5395. }, n.prototype.exists = function(v) {
  5396. return this.data.has(v);
  5397. }, n.prototype.clear = function() {
  5398. return this.data.clear(), this;
  5399. }, n;
  5400. }();
  5401. t.MemoryStorageProvider = e;
  5402. }, 77462: function(_, t, e) {
  5403. Object.defineProperty(t, "__esModule", { value: !0 });
  5404. var n = e(20255);
  5405. n.__exportStar(e(79905), t), n.__exportStar(e(75764), t), n.__exportStar(e(52015), t);
  5406. }, 52015: function(_, t, e) {
  5407. Object.defineProperty(t, "__esModule", { value: !0 }), t.Storage = t.StorageKey = void 0;
  5408. var n = e(40332), v = e(75764), h = e(79905);
  5409. t.StorageKey = "Jodit_";
  5410. var p = function() {
  5411. function d(a, s) {
  5412. this.provider = a, this.prefix = t.StorageKey, s && (this.prefix += s);
  5413. }
  5414. return d.prototype.set = function(a, s) {
  5415. return this.provider.set((0, n.camelCase)(this.prefix + a), s), this;
  5416. }, d.prototype.delete = function(a) {
  5417. return this.provider.delete((0, n.camelCase)(this.prefix + a)), this;
  5418. }, d.prototype.get = function(a) {
  5419. return this.provider.get((0, n.camelCase)(this.prefix + a));
  5420. }, d.prototype.exists = function(a) {
  5421. return this.provider.exists((0, n.camelCase)(this.prefix + a));
  5422. }, d.prototype.clear = function() {
  5423. return this.provider.clear(), this;
  5424. }, d.makeStorage = function(a, s) {
  5425. var u;
  5426. return a === void 0 && (a = !1), a && (0, v.canUsePersistentStorage)() && (u = new v.LocalStorageProvider(t.StorageKey + s)), u || (u = new h.MemoryStorageProvider()), new d(u, s);
  5427. }, d;
  5428. }();
  5429. t.Storage = p;
  5430. }, 59363: function(_, t, e) {
  5431. Object.defineProperty(t, "__esModule", { value: !0 }), t.Dlgs = void 0;
  5432. var n = e(20255), v = e(87837), h = e(40332), p = function() {
  5433. function d() {
  5434. }
  5435. return d.prototype.dlg = function(a) {
  5436. var s = new v.Dialog(n.__assign({ language: this.o.language, shadowRoot: this.o.shadowRoot, ownerWindow: this.o.ownerWindow, defaultTimeout: this.o.defaultTimeout, theme: this.o.theme, globalFullSize: this.o.globalFullSize }, a));
  5437. return (0, h.markOwner)(this, s.container), s.parent = this, s.bindDestruct(this);
  5438. }, d.prototype.confirm = function(a, s, u) {
  5439. return (0, h.isString)(s) && (s = this.i18n(s)), v.Confirm.call(this.dlg(), this.i18n(a), s, u);
  5440. }, d.prototype.prompt = function(a, s, u, f, l) {
  5441. return (0, h.isString)(s) && (s = this.i18n(s)), (0, h.isString)(f) && (f = this.i18n(f)), v.Prompt.call(this.dlg(), this.i18n(a), s, u, f, l);
  5442. }, d.prototype.alert = function(a, s, u, f) {
  5443. return (0, h.isString)(a) && (a = this.i18n(a)), (0, h.isString)(s) && (s = this.i18n(s)), v.Alert.call(this.dlg(), a, s, u, f);
  5444. }, d;
  5445. }();
  5446. t.Dlgs = p;
  5447. }, 14089: function(_, t, e) {
  5448. Object.defineProperty(t, "__esModule", { value: !0 }), t.Elms = void 0;
  5449. var n = e(1853), v = function() {
  5450. function h() {
  5451. }
  5452. return h.prototype.getElm = function(p) {
  5453. return this.container.querySelector(".".concat(this.getFullElName(p)));
  5454. }, h.prototype.getElms = function(p) {
  5455. return (0, n.toArray)(this.container.querySelectorAll(".".concat(this.getFullElName(p))));
  5456. }, h;
  5457. }();
  5458. t.Elms = v;
  5459. }, 59829: function(_, t, e) {
  5460. Object.defineProperty(t, "__esModule", { value: !0 });
  5461. var n = e(20255);
  5462. n.__exportStar(e(14089), t), n.__exportStar(e(41681), t), n.__exportStar(e(59363), t);
  5463. }, 41681: function(_, t, e) {
  5464. Object.defineProperty(t, "__esModule", { value: !0 }), t.Mods = void 0;
  5465. var n = e(1853), v = e(24021), h = function() {
  5466. function p() {
  5467. }
  5468. return p.prototype.afterSetMod = function(d, a) {
  5469. }, p.prototype.setMod = function(d, a, s) {
  5470. if (d = d.toLowerCase(), this.mods[d] === a) return this;
  5471. var u = "".concat(this.componentName, "_").concat(d), f = (s || this.container).classList;
  5472. return (0, n.toArray)(f).forEach(function(l) {
  5473. l.indexOf(u) === 0 && f.remove(l);
  5474. }), !(0, v.isVoid)(a) && a !== "" && f.add("".concat(u, "_").concat(a.toString().toLowerCase())), this.mods[d] = a, this.afterSetMod(d, a), this;
  5475. }, p.prototype.getMod = function(d) {
  5476. var a;
  5477. return (a = this.mods[d]) !== null && a !== void 0 ? a : null;
  5478. }, p;
  5479. }();
  5480. t.Mods = h;
  5481. }, 96031: function(_, t, e) {
  5482. Object.defineProperty(t, "__esModule", { value: !0 }), t.Button = t.UIButton = t.UIButtonState = void 0;
  5483. var n = e(20255);
  5484. e(93330);
  5485. var v = e(53929), h = e(24263), p = e(76502), d = e(24421), a = e(42096), s = e(77904), u = e(47970), f = e(43441), l = e(29411);
  5486. t.UIButtonState = function() {
  5487. return { size: "middle", type: "button", name: "", value: "", variant: "initial", disabled: !1, activated: !1, icon: { name: "empty", fill: "", iconURL: "" }, tooltip: "", text: "", tabIndex: void 0 };
  5488. };
  5489. var o = function(r) {
  5490. function i(c, m) {
  5491. var y = r.call(this, c) || this;
  5492. return y.isButton = !0, y.state = (0, t.UIButtonState)(), y.actionHandlers = [], y.updateSize(), y.onChangeSize(), y.onChangeStatus(), m && y.hookStatus(l.STATUSES.ready, function() {
  5493. y.setState(m);
  5494. }), y;
  5495. }
  5496. return n.__extends(i, r), i.prototype.className = function() {
  5497. return "UIButton";
  5498. }, i.prototype.setState = function(c) {
  5499. return Object.assign(this.state, c), this;
  5500. }, i.prototype.onChangeSize = function() {
  5501. this.setMod("size", this.state.size);
  5502. }, i.prototype.onChangeType = function() {
  5503. (0, p.attr)(this.container, "type", this.state.type);
  5504. }, i.prototype.updateSize = function() {
  5505. var c = this.closest(u.UIList);
  5506. c && (this.state.size = c.buttonSize);
  5507. }, i.prototype.onChangeStatus = function() {
  5508. this.setMod("variant", this.state.variant);
  5509. }, i.prototype.onChangeText = function() {
  5510. this.text.textContent = this.jodit.i18n(this.state.text);
  5511. }, i.prototype.onChangeTextSetMode = function() {
  5512. this.setMod("text-icons", !!this.state.text.trim().length);
  5513. }, i.prototype.onChangeDisabled = function() {
  5514. (0, p.attr)(this.container, "disabled", this.state.disabled || null);
  5515. }, i.prototype.onChangeActivated = function() {
  5516. (0, p.attr)(this.container, "aria-pressed", this.state.activated);
  5517. }, i.prototype.onChangeName = function() {
  5518. this.container.classList.add("".concat(this.componentName, "_").concat(this.clearName(this.state.name))), this.name = this.state.name, (0, p.attr)(this.container, "data-ref", this.state.name), (0, p.attr)(this.container, "ref", this.state.name);
  5519. }, i.prototype.onChangeTooltip = function() {
  5520. this.get("j.o.useNativeTooltip") && (0, p.attr)(this.container, "title", this.state.tooltip), (0, p.attr)(this.container, "aria-label", this.state.tooltip);
  5521. }, i.prototype.onChangeTabIndex = function() {
  5522. (0, p.attr)(this.container, "tabindex", this.state.tabIndex);
  5523. }, i.prototype.onChangeIcon = function() {
  5524. var c = this.get("j.o.textIcons");
  5525. if (!(c === !0 || (0, a.isFunction)(c) && c(this.state.name))) {
  5526. h.Dom.detach(this.icon);
  5527. var m = s.Icon.makeIcon(this.j, this.state.icon);
  5528. m && this.icon.appendChild(m);
  5529. }
  5530. }, i.prototype.focus = function() {
  5531. this.container.focus();
  5532. }, i.prototype.isFocused = function() {
  5533. var c = this.od.activeElement;
  5534. return !!(c && h.Dom.isOrContains(this.container, c));
  5535. }, i.prototype.createContainer = function() {
  5536. var c = this.componentName, m = this.j.c.element("button", { class: c, type: "button", role: "button", ariaPressed: !1 });
  5537. return this.icon = this.j.c.span(c + "__icon"), this.text = this.j.c.span(c + "__text"), m.appendChild(this.icon), m.appendChild(this.text), this.j.e.on(m, "click", this.onActionFire), m;
  5538. }, i.prototype.destruct = function() {
  5539. return this.j.e.off(this.container), r.prototype.destruct.call(this);
  5540. }, i.prototype.onAction = function(c) {
  5541. return this.actionHandlers.push(c), this;
  5542. }, i.prototype.onActionFire = function(c) {
  5543. var m = this;
  5544. c.buffer = { actionTrigger: this }, this.actionHandlers.forEach(function(y) {
  5545. return y.call(m, c);
  5546. });
  5547. }, n.__decorate([(0, f.watch)("state.size")], i.prototype, "onChangeSize", null), n.__decorate([(0, f.watch)("state.type")], i.prototype, "onChangeType", null), n.__decorate([(0, f.watch)("parentElement")], i.prototype, "updateSize", null), n.__decorate([(0, f.watch)("state.variant")], i.prototype, "onChangeStatus", null), n.__decorate([(0, f.watch)("state.text")], i.prototype, "onChangeText", null), n.__decorate([(0, f.watch)("state.text")], i.prototype, "onChangeTextSetMode", null), n.__decorate([(0, f.watch)("state.disabled")], i.prototype, "onChangeDisabled", null), n.__decorate([(0, f.watch)("state.activated")], i.prototype, "onChangeActivated", null), n.__decorate([(0, f.watch)("state.name")], i.prototype, "onChangeName", null), n.__decorate([(0, f.watch)("state.tooltip")], i.prototype, "onChangeTooltip", null), n.__decorate([(0, f.watch)("state.tabIndex")], i.prototype, "onChangeTabIndex", null), n.__decorate([(0, f.watch)("state.icon")], i.prototype, "onChangeIcon", null), n.__decorate([f.autobind], i.prototype, "onActionFire", null), n.__decorate([f.component], i);
  5548. }(v.UIElement);
  5549. t.UIButton = o, t.Button = function(r, i, c, m) {
  5550. var y = new o(r);
  5551. return y.state.tabIndex = r.o.allowTabNavigation ? 0 : -1, (0, d.isString)(i) ? (y.state.icon.name = i, y.state.name = i, m && (y.state.variant = m), c && (y.state.text = c)) : y.setState(i), y;
  5552. };
  5553. }, 67252: function(_, t, e) {
  5554. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIButtonGroup = void 0;
  5555. var n = e(20255);
  5556. e(45066);
  5557. var v = e(61479), h = e(11441), p = e(96031), d = (e(52378), function(a) {
  5558. function s(u, f) {
  5559. f === void 0 && (f = { radio: !0 });
  5560. var l, o, r = this;
  5561. return (r = a.call(this, u, (l = f.options) === null || l === void 0 ? void 0 : l.map(function(i) {
  5562. var c = new p.UIButton(u, { text: i.text, value: i.value, variant: "primary" });
  5563. return c.onAction(function() {
  5564. r.select(i.value);
  5565. }), c;
  5566. }), f) || this).options = f, r.select((o = f.value) !== null && o !== void 0 ? o : 0), r;
  5567. }
  5568. return n.__extends(s, a), s.prototype.className = function() {
  5569. return "UIButtonGroup";
  5570. }, s.prototype.render = function(u) {
  5571. return `<div>
  5572. <div class="&__label">~`.concat(u.label, `~</div>
  5573. <div class="&__options"></div>
  5574. </div>`);
  5575. }, s.prototype.appendChildToContainer = function(u) {
  5576. this.getElm("options").appendChild(u);
  5577. }, s.prototype.select = function(u) {
  5578. var f, l, o = this;
  5579. this.elements.forEach(function(i, c) {
  5580. c === u || i.state.value === u ? i.state.activated = !0 : o.options.radio && (i.state.activated = !1);
  5581. });
  5582. var r = this.elements.filter(function(i) {
  5583. return i.state.activated;
  5584. }).map(function(i) {
  5585. return { text: i.state.text, value: i.state.value };
  5586. });
  5587. this.jodit.e.fire(this, "select", r), (l = (f = this.options).onChange) === null || l === void 0 || l.call(f, r);
  5588. }, n.__decorate([h.component], s);
  5589. }(v.UIGroup));
  5590. t.UIButtonGroup = d;
  5591. }, 96516: function(_, t, e) {
  5592. Object.defineProperty(t, "__esModule", { value: !0 });
  5593. var n = e(20255);
  5594. n.__exportStar(e(96031), t), n.__exportStar(e(67252), t), n.__exportStar(e(33627), t);
  5595. }, 33627: function(_, t, e) {
  5596. Object.defineProperty(t, "__esModule", { value: !0 }), t.UITooltip = void 0;
  5597. var n = e(20255);
  5598. e(99895);
  5599. var v = e(40332), h = e(17332), p = e(43441), d = function(a) {
  5600. function s(u) {
  5601. var f = a.call(this, u) || this;
  5602. f.__isOpened = !1, f.__useCount = 1, f.__delayShowTimeout = 0, (0, h.getContainer)(u, s).appendChild(f.container);
  5603. var l = 0;
  5604. return u.e.off(".tooltip").on("showTooltip.tooltip", function(o, r) {
  5605. u.async.clearTimeout(l), f.__open(o, r);
  5606. }).on("delayShowTooltip.tooltip", f.__delayOpen).on("escape.tooltip", f.__close).on("hideTooltip.tooltip change.tooltip scroll.tooltip changePlace.tooltip hidePopup.tooltip closeAllPopups.tooltip", function() {
  5607. f.j.async.clearTimeout(f.__delayShowTimeout), l = u.async.setTimeout(f.__close, f.j.defaultTimeout);
  5608. }), f;
  5609. }
  5610. return n.__extends(s, a), s.prototype.className = function() {
  5611. return "UITooltip";
  5612. }, s.make = function(u) {
  5613. var f = (0, v.dataBind)(u, "ui-tooltip");
  5614. return f ? (f.__useCount += 1, f) : (f = new s(u), (0, v.dataBind)(u, "ui-tooltip", f), f);
  5615. }, s.prototype.__delayOpen = function(u, f) {
  5616. var l = this, o = this.j.o.showTooltipDelay || this.j.defaultTimeout;
  5617. this.j.async.clearTimeout(this.__delayShowTimeout), this.__delayShowTimeout = this.j.async.setTimeout(function() {
  5618. return l.__open(u, f);
  5619. }, { timeout: o, label: "tooltip" });
  5620. }, s.prototype.__open = function(u, f) {
  5621. this.setMod("visible", !0), this.container.innerHTML = f, this.__isOpened = !0, this.__setPosition(u);
  5622. }, s.prototype.__setPosition = function(u) {
  5623. var f = u();
  5624. (0, v.css)(this.container, { left: f.x, top: f.y });
  5625. }, s.prototype.__close = function() {
  5626. this.j.async.clearTimeout(this.__delayShowTimeout), this.__isOpened && (this.__isOpened = !1, this.setMod("visible", !1), (0, v.css)(this.container, { left: -5e3 }));
  5627. }, s.prototype.destruct = function() {
  5628. var u;
  5629. this.__useCount--, this.__useCount || ((u = this.j) === null || u === void 0 || u.e.off(".tooltip"), this.__close(), a.prototype.destruct.call(this));
  5630. }, n.__decorate([p.autobind], s.prototype, "__delayOpen", null), n.__decorate([p.autobind], s.prototype, "__close", null), s;
  5631. }(e(53929).UIElement);
  5632. t.UITooltip = d;
  5633. }, 53929: function(_, t, e) {
  5634. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIElement = void 0;
  5635. var n = e(20255), v = e(56562), h = e(24263), p = e(59829), d = e(24421), a = e(77904), s = e(43441), u = function(f) {
  5636. function l(r, i) {
  5637. var c = f.call(this, r) || this;
  5638. return c.name = "", c.__parentElement = null, c.mods = {}, c.container = c.createContainer(i), Object.defineProperty(c.container, "component", { value: c, configurable: !0 }), c;
  5639. }
  5640. var o;
  5641. return n.__extends(l, f), o = l, Object.defineProperty(l.prototype, "parentElement", { get: function() {
  5642. return this.__parentElement;
  5643. }, set: function(r) {
  5644. var i = this;
  5645. this.__parentElement = r, r && r.hookStatus("beforeDestruct", function() {
  5646. return i.destruct();
  5647. }), this.updateParentElement(this);
  5648. }, enumerable: !1, configurable: !0 }), l.prototype.bubble = function(r) {
  5649. for (var i = this.parentElement; i; ) r(i), i = i.parentElement;
  5650. return this;
  5651. }, l.prototype.updateParentElement = function(r) {
  5652. var i;
  5653. return (i = this.__parentElement) === null || i === void 0 || i.updateParentElement(r), this;
  5654. }, l.prototype.get = function(r, i) {
  5655. return f.prototype.get.call(this, r, i) || this.getElm(r);
  5656. }, l.prototype.closest = function(r) {
  5657. for (var i = typeof r == "object" ? function(m) {
  5658. return m === r;
  5659. } : function(m) {
  5660. return v.Component.isInstanceOf(m, r);
  5661. }, c = this.__parentElement; c; ) {
  5662. if (i(c)) return c;
  5663. c = !c.parentElement && c.container.parentElement ? o.closestElement(c.container.parentElement, o) : c.parentElement;
  5664. }
  5665. return null;
  5666. }, l.closestElement = function(r, i) {
  5667. var c = h.Dom.up(r, function(m) {
  5668. if (m) {
  5669. var y = m.component;
  5670. return y && v.Component.isInstanceOf(y, i);
  5671. }
  5672. return !1;
  5673. });
  5674. return c ? c == null ? void 0 : c.component : null;
  5675. }, l.prototype.update = function() {
  5676. }, l.prototype.appendTo = function(r) {
  5677. return r.appendChild(this.container), this;
  5678. }, l.prototype.clearName = function(r) {
  5679. return r.replace(/[^a-zA-Z0-9]/g, "_");
  5680. }, l.prototype.render = function(r) {
  5681. return this.j.c.div(this.componentName);
  5682. }, l.prototype.createContainer = function(r) {
  5683. var i = this.render(r);
  5684. if ((0, d.isString)(i)) {
  5685. var c = this.parseTemplate(i);
  5686. return c.classList.add(this.componentName), c;
  5687. }
  5688. return i;
  5689. }, l.prototype.parseTemplate = function(r) {
  5690. var i = this;
  5691. return this.j.c.fromHTML(r.replace(/\*([^*]+?)\*/g, function(c, m) {
  5692. return a.Icon.get(m) || "";
  5693. }).replace(/&__/g, this.componentName + "__").replace(/~([^~]+?)~/g, function(c, m) {
  5694. return i.i18n(m);
  5695. }));
  5696. }, l.prototype.destruct = function() {
  5697. return h.Dom.safeRemove(this.container), this.parentElement = null, f.prototype.destruct.call(this);
  5698. }, o = n.__decorate([(0, s.derive)(p.Mods, p.Elms)], l);
  5699. }(v.ViewComponent);
  5700. t.UIElement = u;
  5701. }, 38318: function(_, t, e) {
  5702. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIBlock = void 0;
  5703. var n = e(20255);
  5704. e(87682);
  5705. var v = e(61479), h = e(76502), p = e(11441), d = function(a) {
  5706. function s(u, f, l) {
  5707. l === void 0 && (l = { align: "left" });
  5708. var o = a.call(this, u, f) || this;
  5709. return o.options = l, o.setMod("align", o.options.align || "left"), o.setMod("width", o.options.width || ""), o.options.mod && o.setMod(o.options.mod, !0), o.options.className && o.container.classList.add(o.options.className), (0, h.attr)(o.container, "data-ref", l.ref), (0, h.attr)(o.container, "ref", l.ref), o;
  5710. }
  5711. return n.__extends(s, a), s.prototype.className = function() {
  5712. return "UIBlock";
  5713. }, n.__decorate([p.component], s);
  5714. }(v.UIGroup);
  5715. t.UIBlock = d;
  5716. }, 26207: function(_, t, e) {
  5717. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIForm = void 0;
  5718. var n = e(20255), v = e(61479), h = e(30194), p = e(75840), d = e(76502), a = e(11441), s = e(45113), u = function(f) {
  5719. function l() {
  5720. for (var o = [], r = 0; arguments.length > r; r++) o[r] = arguments[r];
  5721. var i, c, m = this;
  5722. return !((i = (m = f.apply(this, n.__spreadArray([], n.__read(o), !1)) || this).options) === null || i === void 0) && i.className && m.container.classList.add((c = m.options) === null || c === void 0 ? void 0 : c.className), m;
  5723. }
  5724. return n.__extends(l, f), l.prototype.className = function() {
  5725. return "UIForm";
  5726. }, l.prototype.submit = function() {
  5727. this.j.e.fire(this.container, "submit");
  5728. }, l.prototype.validate = function() {
  5729. var o, r, i, c, m = this.allChildren.filter(function(S) {
  5730. return s.Component.isInstanceOf(S, h.UIInput);
  5731. });
  5732. try {
  5733. for (var y = n.__values(m), g = y.next(); !g.done; g = y.next()) if (!g.value.validate()) return !1;
  5734. } catch (S) {
  5735. o = { error: S };
  5736. } finally {
  5737. try {
  5738. g && !g.done && (r = y.return) && r.call(y);
  5739. } finally {
  5740. if (o) throw o.error;
  5741. }
  5742. }
  5743. var b = this.allChildren.filter(function(S) {
  5744. return s.Component.isInstanceOf(S, p.UISelect);
  5745. });
  5746. try {
  5747. for (var w = n.__values(b), C = w.next(); !C.done; C = w.next()) if (!C.value.validate()) return !1;
  5748. } catch (S) {
  5749. i = { error: S };
  5750. } finally {
  5751. try {
  5752. C && !C.done && (c = w.return) && c.call(w);
  5753. } finally {
  5754. if (i) throw i.error;
  5755. }
  5756. }
  5757. return !0;
  5758. }, l.prototype.onSubmit = function(o) {
  5759. var r = this;
  5760. this.j.e.on(this.container, "submit", function() {
  5761. var i = r.allChildren.filter(function(c) {
  5762. return s.Component.isInstanceOf(c, h.UIInput);
  5763. });
  5764. return !!r.validate() && (o(i.reduce(function(c, m) {
  5765. return c[m.state.name] = m.value, c;
  5766. }, {})), !1);
  5767. });
  5768. }, l.prototype.createContainer = function() {
  5769. var o = this.j.c.element("form");
  5770. return o.classList.add(this.componentName), (0, d.attr)(o, "dir", this.j.o.direction || "auto"), o;
  5771. }, n.__decorate([a.component], l);
  5772. }(v.UIGroup);
  5773. t.UIForm = u;
  5774. }, 95963: function(_, t, e) {
  5775. Object.defineProperty(t, "__esModule", { value: !0 });
  5776. var n = e(20255);
  5777. n.__exportStar(e(26207), t), n.__exportStar(e(63034), t), n.__exportStar(e(38318), t);
  5778. }, 21639: function(_, t, e) {
  5779. Object.defineProperty(t, "__esModule", { value: !0 }), t.UITextArea = void 0;
  5780. var n = e(20255);
  5781. e(50905);
  5782. var v = e(30194), h = e(11441), p = function(d) {
  5783. function a(u, f) {
  5784. var l = d.call(this, u, f) || this;
  5785. return l.state = n.__assign({}, s.defaultState), Object.assign(l.state, f), l.state.resizable === !1 && (l.nativeInput.style.resize = "none"), l;
  5786. }
  5787. var s;
  5788. return n.__extends(a, d), s = a, a.prototype.className = function() {
  5789. return "UITextArea";
  5790. }, a.prototype.createContainer = function(u) {
  5791. return this.nativeInput = this.j.create.element("textarea"), d.prototype.createContainer.call(this, u);
  5792. }, a.defaultState = n.__assign(n.__assign({}, v.UIInput.defaultState), { size: 5, resizable: !0 }), s = n.__decorate([h.component], a);
  5793. }(v.UIInput);
  5794. t.UITextArea = p;
  5795. }, 63747: function(_, t, e) {
  5796. Object.defineProperty(t, "__esModule", { value: !0 }), t.UICheckbox = void 0;
  5797. var n = e(20255);
  5798. e(70446);
  5799. var v = e(30194), h = e(43441), p = e(24263), d = function(a) {
  5800. function s(f, l) {
  5801. var o = a.call(this, f, n.__assign(n.__assign({}, l), { type: "checkbox" })) || this;
  5802. return o.state = n.__assign({}, u.defaultState), Object.assign(o.state, l), o;
  5803. }
  5804. var u;
  5805. return n.__extends(s, a), u = s, s.prototype.className = function() {
  5806. return "UICheckbox";
  5807. }, s.prototype.render = function() {
  5808. return this.j.c.element("label", { className: this.componentName });
  5809. }, s.prototype.onChangeChecked = function() {
  5810. this.value = this.state.checked.toString(), this.nativeInput.checked = this.state.checked, this.setMod("checked", this.state.checked);
  5811. }, s.prototype.onChangeNativeCheckBox = function() {
  5812. this.state.checked = this.nativeInput.checked;
  5813. }, s.prototype.onChangeSwitch = function() {
  5814. this.setMod("switch", this.state.switch);
  5815. var f = this.getElm("switch-slider");
  5816. this.state.switch ? (f || (f = this.j.c.div(this.getFullElName("switch-slider"))), p.Dom.after(this.nativeInput, f)) : p.Dom.safeRemove(f);
  5817. }, s.defaultState = n.__assign(n.__assign({}, v.UIInput.defaultState), { checked: !1, switch: !1 }), n.__decorate([(0, h.watch)("state.checked"), (0, h.hook)("ready")], s.prototype, "onChangeChecked", null), n.__decorate([(0, h.watch)("nativeInput:change")], s.prototype, "onChangeNativeCheckBox", null), n.__decorate([(0, h.watch)("state.switch"), (0, h.hook)("ready")], s.prototype, "onChangeSwitch", null), u = n.__decorate([h.component], s);
  5818. }(v.UIInput);
  5819. t.UICheckbox = d;
  5820. }, 41374: function(_, t, e) {
  5821. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIFileInput = void 0;
  5822. var n = e(20255);
  5823. e(18984);
  5824. var v = e(30194), h = e(11441), p = e(96031), d = function(a) {
  5825. function s(u, f) {
  5826. var l = a.call(this, u, n.__assign({ type: "file" }, f)) || this;
  5827. return l.state = n.__assign(n.__assign({}, v.UIInput.defaultState), { type: "file", onlyImages: !0 }), l;
  5828. }
  5829. return n.__extends(s, a), s.prototype.className = function() {
  5830. return "UIFileInput";
  5831. }, s.prototype.createContainer = function(u) {
  5832. this.button = new p.UIButton(this.j, { icon: { name: "plus" } });
  5833. var f = this.button.container;
  5834. this.nativeInput || (this.nativeInput = this.createNativeInput(u));
  5835. var l = this.nativeInput;
  5836. return l.classList.add(this.getFullElName("input")), f.classList.add(this.componentName), f.appendChild(l), f;
  5837. }, s.prototype.createNativeInput = function(u) {
  5838. return this.j.create.fromHTML(`<input
  5839. type="file"
  5840. accept="`.concat(u.onlyImages ? "image/*" : "*", `"
  5841. tabindex="-1"
  5842. dir="auto"
  5843. multiple=""
  5844. />`));
  5845. }, n.__decorate([h.component], s);
  5846. }(v.UIInput);
  5847. t.UIFileInput = d;
  5848. }, 63034: function(_, t, e) {
  5849. Object.defineProperty(t, "__esModule", { value: !0 });
  5850. var n = e(20255);
  5851. n.__exportStar(e(30194), t), n.__exportStar(e(21639), t), n.__exportStar(e(63747), t), n.__exportStar(e(75840), t), n.__exportStar(e(41374), t);
  5852. }, 30194: function(_, t, e) {
  5853. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIInput = void 0;
  5854. var n = e(20255);
  5855. e(4591);
  5856. var v = e(53929), h = e(76502), p = e(1853), d = e(24263), a = e(43441), s = e(77904), u = e(60081), f = function(l) {
  5857. function o(i, c) {
  5858. var m = l.call(this, i, c) || this;
  5859. return m.label = m.j.c.span(m.getFullElName("label")), m.icon = m.j.c.span(m.getFullElName("icon")), m.clearButton = m.j.c.span(m.getFullElName("clear"), s.Icon.get("cancel")), m.state = n.__assign({}, r.defaultState), m.__errorBox = m.j.c.span(m.getFullElName("error")), m.validators = /* @__PURE__ */ new Set([]), (c == null ? void 0 : c.value) !== void 0 && (c.value = c.value.toString()), Object.assign(m.state, c), m.state.clearButton !== void 0 && (m.j.e.on(m.clearButton, "click", function(y) {
  5860. y.preventDefault(), m.nativeInput.value = "", m.j.e.fire(m.nativeInput, "input"), m.focus();
  5861. }).on(m.nativeInput, "input", function() {
  5862. m.state.clearButton = !!m.value.length;
  5863. }), m.state.clearButton = !!m.value.length), m.j.e.on(m.nativeInput, "focus blur", function() {
  5864. m.onChangeFocus();
  5865. }).on(m.nativeInput, "input change", m.onChangeValue), m.onChangeState(), m.onChangeClassName(), m.onChangeStateValue(), m;
  5866. }
  5867. var r;
  5868. return n.__extends(o, l), r = o, o.prototype.className = function() {
  5869. return "UIInput";
  5870. }, o.prototype.onChangeClear = function() {
  5871. this.state.clearButton ? d.Dom.after(this.nativeInput, this.clearButton) : d.Dom.safeRemove(this.clearButton);
  5872. }, o.prototype.onChangeClassName = function(i, c) {
  5873. c && this.container.classList.remove(c), this.state.className && this.container.classList.add(this.state.className);
  5874. }, o.prototype.onChangeState = function() {
  5875. this.name = this.state.name;
  5876. var i = this.nativeInput, c = this.state, m = c.name, y = c.icon, g = c.type, b = c.ref, w = c.required, C = c.placeholder, S = c.autocomplete, j = c.label;
  5877. (0, h.attr)(i, "name", m), (0, h.attr)(i, "type", g), (0, h.attr)(i, "data-ref", b || m), (0, h.attr)(i, "ref", b || m), (0, h.attr)(i, "required", w || null), (0, h.attr)(i, "autocomplete", S ? null : "off"), (0, h.attr)(i, "placeholder", C ? this.j.i18n(C) : ""), y && s.Icon.exists(y) ? (d.Dom.before(i, this.icon), this.icon.innerHTML = s.Icon.get(y)) : d.Dom.safeRemove(this.icon), j ? (d.Dom.before(this.wrapper, this.label), this.label.innerText = this.j.i18n(j)) : d.Dom.safeRemove(this.label), this.updateValidators();
  5878. }, o.prototype.updateValidators = function() {
  5879. var i, c = this;
  5880. this.validators.clear(), this.state.required && this.validators.add(u.inputValidators.required), (i = this.state.validators) === null || i === void 0 || i.forEach(function(m) {
  5881. var y = u.inputValidators[m];
  5882. y && c.validators.add(y);
  5883. });
  5884. }, Object.defineProperty(o.prototype, "error", { set: function(i) {
  5885. this.setMod("has-error", !!i), i ? (this.__errorBox.innerText = this.j.i18n(i, this.j.i18n(this.state.label || "")), this.container.appendChild(this.__errorBox)) : d.Dom.safeRemove(this.__errorBox);
  5886. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "value", { get: function() {
  5887. return this.nativeInput.value;
  5888. }, set: function(i) {
  5889. this.value !== i && (this.nativeInput.value = i, this.onChangeValue());
  5890. }, enumerable: !1, configurable: !0 }), o.prototype.onChangeStateValue = function() {
  5891. var i = this.state.value.toString();
  5892. i !== this.value && (this.value = i);
  5893. }, o.prototype.onChangeValue = function() {
  5894. var i, c, m = this.value;
  5895. this.state.value !== m && (this.state.value = m, this.j.e.fire(this, "change", m), (c = (i = this.state).onChange) === null || c === void 0 || c.call(i, m));
  5896. }, o.prototype.validate = function() {
  5897. var i = this;
  5898. return this.error = "", (0, p.toArray)(this.validators).every(function(c) {
  5899. return c(i);
  5900. });
  5901. }, o.prototype.createContainer = function(i) {
  5902. var c = l.prototype.createContainer.call(this);
  5903. this.wrapper = this.j.c.div(this.getFullElName("wrapper")), this.nativeInput || (this.nativeInput = this.createNativeInput());
  5904. var m = this.nativeInput;
  5905. return m.classList.add(this.getFullElName("input")), this.wrapper.appendChild(m), c.appendChild(this.wrapper), (0, h.attr)(m, "dir", this.j.o.direction || "auto"), c;
  5906. }, o.prototype.createNativeInput = function(i) {
  5907. return this.j.create.element("input");
  5908. }, o.prototype.focus = function() {
  5909. this.nativeInput.focus();
  5910. }, Object.defineProperty(o.prototype, "isFocused", { get: function() {
  5911. return this.nativeInput === this.j.od.activeElement;
  5912. }, enumerable: !1, configurable: !0 }), o.prototype.onChangeFocus = function() {
  5913. this.setMod("focused", this.isFocused);
  5914. }, o.defaultState = { className: "", autocomplete: !0, name: "", value: "", icon: "", label: "", ref: "", type: "text", placeholder: "", required: !1, validators: [] }, n.__decorate([(0, a.watch)("state.clearButton")], o.prototype, "onChangeClear", null), n.__decorate([(0, a.watch)("state.className")], o.prototype, "onChangeClassName", null), n.__decorate([(0, a.watch)(["state.name", "state.type", "state.label", "state.placeholder", "state.autocomplete", "state.icon"]), (0, a.debounce)()], o.prototype, "onChangeState", null), n.__decorate([(0, a.watch)("state.value")], o.prototype, "onChangeStateValue", null), n.__decorate([a.autobind], o.prototype, "onChangeValue", null), r = n.__decorate([a.component], o);
  5915. }(v.UIElement);
  5916. t.UIInput = f;
  5917. }, 75840: function(_, t, e) {
  5918. Object.defineProperty(t, "__esModule", { value: !0 }), t.UISelect = void 0;
  5919. var n = e(20255);
  5920. e(64194);
  5921. var v = e(67309), h = e(11441), p = e(30194), d = e(60081), a = function(s) {
  5922. function u(l, o) {
  5923. var r = s.call(this, l, o) || this;
  5924. return r.state = n.__assign({}, f.defaultState), Object.assign(r.state, o), r;
  5925. }
  5926. var f;
  5927. return n.__extends(u, s), f = u, u.prototype.className = function() {
  5928. return "UISelect";
  5929. }, u.prototype.createContainer = function(l) {
  5930. var o, r = s.prototype.createContainer.call(this, l), i = this.j, c = this.nativeInput, m = function() {
  5931. return i.create.element("option");
  5932. };
  5933. if (l.placeholder !== void 0) {
  5934. var y = m();
  5935. y.value = "", y.text = i.i18n(l.placeholder), c.add(y);
  5936. }
  5937. return (o = l.options) === null || o === void 0 || o.forEach(function(g) {
  5938. var b = m();
  5939. b.value = g.value.toString(), b.text = i.i18n(g.text), c.add(b);
  5940. }), l.size && l.size > 0 && (0, v.attr)(c, "size", l.size), l.multiple && (0, v.attr)(c, "multiple", ""), r;
  5941. }, u.prototype.createNativeInput = function() {
  5942. return this.j.create.element("select");
  5943. }, u.prototype.updateValidators = function() {
  5944. s.prototype.updateValidators.call(this), this.state.required && (this.validators.delete(d.inputValidators.required), this.validators.add(d.selectValidators.required));
  5945. }, u.defaultState = n.__assign(n.__assign({}, p.UIInput.defaultState), { options: [], size: 1, multiple: !1 }), f = n.__decorate([h.component], u);
  5946. }(p.UIInput);
  5947. t.UISelect = a;
  5948. }, 60081: function(_, t, e) {
  5949. Object.defineProperty(t, "__esModule", { value: !0 }), t.selectValidators = t.inputValidators = void 0, t.inputValidators = e(63355), t.selectValidators = e(65935);
  5950. }, 63355: function(_, t, e) {
  5951. Object.defineProperty(t, "__esModule", { value: !0 }), t.url = t.required = void 0;
  5952. var n = e(64350), v = e(33941);
  5953. t.required = function(h) {
  5954. return !!(0, v.trim)(h.value).length || (h.error = "Please fill out this field", !1);
  5955. }, t.url = function(h) {
  5956. return !!(0, n.isURL)((0, v.trim)(h.value)) || (h.error = "Please enter a web address", !1);
  5957. };
  5958. }, 65935: function(_, t, e) {
  5959. Object.defineProperty(t, "__esModule", { value: !0 }), t.required = void 0;
  5960. var n = e(33941);
  5961. t.required = function(v) {
  5962. return !!(0, n.trim)(v.value).length || (v.error = "Please fill out this field", !1);
  5963. };
  5964. }, 61479: function(_, t, e) {
  5965. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIGroup = void 0;
  5966. var n = e(20255);
  5967. e(70375);
  5968. var v = e(53929), h = e(43441), p = e(40332), d = (e(52378), e(24263)), a = e(45113), s = function(u) {
  5969. function f(o, r, i) {
  5970. var c = u.call(this, o, i) || this;
  5971. return c.options = i, c.syncMod = !1, c.elements = [], c.buttonSize = "middle", r == null || r.forEach(function(m) {
  5972. return m && c.append(m);
  5973. }), i != null && i.name && (c.name = i.name), c;
  5974. }
  5975. var l;
  5976. return n.__extends(f, u), l = f, f.prototype.className = function() {
  5977. return "UIGroup";
  5978. }, Object.defineProperty(f.prototype, "allChildren", { get: function() {
  5979. for (var o = [], r = n.__spreadArray([], n.__read(this.elements), !1); r.length; ) {
  5980. var i = r.shift();
  5981. (0, p.isArray)(i) ? r.push.apply(r, n.__spreadArray([], n.__read(i), !1)) : a.Component.isInstanceOf(i, l) ? r.push.apply(r, n.__spreadArray([], n.__read(i.elements), !1)) : i && o.push(i);
  5982. }
  5983. return o;
  5984. }, enumerable: !1, configurable: !0 }), f.prototype.update = function() {
  5985. this.elements.forEach(function(o) {
  5986. return o.update();
  5987. }), this.setMod("size", this.buttonSize);
  5988. }, f.prototype.append = function(o, r) {
  5989. var i = this;
  5990. return (0, p.isArray)(o) ? (o.forEach(function(c) {
  5991. return i.append(c, r);
  5992. }), this) : (this.elements.push(o), o.name && o.container.classList.add(this.getFullElName(o.name)), r ? this.getElm(r).appendChild(o.container) : this.appendChildToContainer(o.container), o.parentElement = this, o.update(), this);
  5993. }, f.prototype.afterSetMod = function(o, r) {
  5994. this.syncMod && this.elements.forEach(function(i) {
  5995. return i.setMod(o, r);
  5996. });
  5997. }, f.prototype.appendChildToContainer = function(o) {
  5998. this.container.appendChild(o);
  5999. }, f.prototype.remove = function(o) {
  6000. var r = this.elements.indexOf(o);
  6001. return r !== -1 && (this.elements.splice(r, 1), d.Dom.safeRemove(o.container), o.parentElement = null), this;
  6002. }, f.prototype.clear = function() {
  6003. return this.elements.forEach(function(o) {
  6004. return o.destruct();
  6005. }), this.elements.length = 0, this;
  6006. }, f.prototype.destruct = function() {
  6007. return this.clear(), u.prototype.destruct.call(this);
  6008. }, n.__decorate([(0, h.watch)("buttonSize")], f.prototype, "update", null), l = n.__decorate([h.component], f);
  6009. }(v.UIElement);
  6010. t.UIGroup = s;
  6011. }, 3249: function(_, t, e) {
  6012. Object.defineProperty(t, "__esModule", { value: !0 });
  6013. var n = e(20255);
  6014. n.__exportStar(e(61479), t), n.__exportStar(e(47970), t), n.__exportStar(e(75018), t), n.__exportStar(e(58495), t);
  6015. }, 47970: function(_, t, e) {
  6016. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIList = void 0;
  6017. var n = e(20255);
  6018. e(90235);
  6019. var v = e(32070), h = e(43441), p = e(61479), d = e(75018), a = e(58495), s = e(96031), u = e(97642), f = e(38546), l = e(14556), o = e(45113), r = function(i) {
  6020. function c(m) {
  6021. var y = i.call(this, m) || this;
  6022. return y.mode = "horizontal", y.removeButtons = [], y.onChangeMode(), y;
  6023. }
  6024. return n.__extends(c, i), c.prototype.className = function() {
  6025. return "UIList";
  6026. }, c.prototype.onChangeMode = function() {
  6027. this.setMod("mode", this.mode);
  6028. }, c.prototype.makeGroup = function() {
  6029. return new p.UIGroup(this.jodit);
  6030. }, Object.defineProperty(c.prototype, "buttons", { get: function() {
  6031. return this.allChildren.filter(function(m) {
  6032. return o.Component.isInstanceOf(m, s.UIButton);
  6033. });
  6034. }, enumerable: !1, configurable: !0 }), c.prototype.getButtonsNames = function() {
  6035. return this.buttons.map(function(m) {
  6036. return m instanceof s.UIButton && m.state.name || "";
  6037. }).filter(function(m) {
  6038. return m !== "";
  6039. });
  6040. }, c.prototype.setRemoveButtons = function(m) {
  6041. return this.removeButtons = m || [], this;
  6042. }, c.prototype.build = function(m, y) {
  6043. var g = this;
  6044. y === void 0 && (y = null), m = (0, l.splitArray)(m), this.clear();
  6045. var b, w = !1, C = this.makeGroup();
  6046. this.append(C), C.setMod("line", !0);
  6047. var S = function(E) {
  6048. var x = null;
  6049. switch (E.name) {
  6050. case `
  6051. `:
  6052. (C = g.makeGroup()).setMod("line", !0), b = g.makeGroup(), C.append(b), g.append(C);
  6053. break;
  6054. case "|":
  6055. w || (w = !0, x = new d.UISeparator(g.j));
  6056. break;
  6057. case "---":
  6058. b.setMod("before-spacer", !0);
  6059. var k = new a.UISpacer(g.j);
  6060. C.append(k), b = g.makeGroup(), C.append(b), w = !1;
  6061. break;
  6062. default:
  6063. w = !1, x = g.makeButton(E, y);
  6064. }
  6065. x && (b || (b = g.makeGroup(), C.append(b)), b.append(x));
  6066. }, j = function(E) {
  6067. return !g.removeButtons.includes(E.name);
  6068. };
  6069. return m.forEach(function(E) {
  6070. if ((0, u.isButtonGroup)(E)) {
  6071. var x = E.buttons.filter(function(I) {
  6072. return I;
  6073. });
  6074. x.length && ((b = g.makeGroup()).setMod("separated", !0).setMod("group", E.group), C.append(b), (0, v.getStrongControlTypes)(x, g.j.o.controls).filter(j).forEach(S));
  6075. } else {
  6076. b || (b = g.makeGroup(), C.append(b));
  6077. var k = (0, f.getControlType)(E, g.j.o.controls);
  6078. j(k) && S(k);
  6079. }
  6080. }), this.update(), this;
  6081. }, c.prototype.makeButton = function(m, y) {
  6082. return new s.UIButton(this.j);
  6083. }, n.__decorate([(0, h.watch)("mode")], c.prototype, "onChangeMode", null), n.__decorate([h.component], c);
  6084. }(p.UIGroup);
  6085. t.UIList = r;
  6086. }, 75018: function(_, t, e) {
  6087. Object.defineProperty(t, "__esModule", { value: !0 }), t.UISeparator = void 0;
  6088. var n = e(20255), v = e(53929), h = e(11441), p = function(d) {
  6089. function a() {
  6090. return d !== null && d.apply(this, arguments) || this;
  6091. }
  6092. return n.__extends(a, d), a.prototype.className = function() {
  6093. return "UISeparator";
  6094. }, n.__decorate([h.component], a);
  6095. }(v.UIElement);
  6096. t.UISeparator = p;
  6097. }, 58495: function(_, t, e) {
  6098. Object.defineProperty(t, "__esModule", { value: !0 }), t.UISpacer = void 0;
  6099. var n = e(20255), v = e(53929), h = e(11441), p = function(d) {
  6100. function a() {
  6101. return d !== null && d.apply(this, arguments) || this;
  6102. }
  6103. return n.__extends(a, d), a.prototype.className = function() {
  6104. return "UISpacer";
  6105. }, n.__decorate([h.component], a);
  6106. }(v.UIElement);
  6107. t.UISpacer = p;
  6108. }, 97642: function(_, t, e) {
  6109. Object.defineProperty(t, "__esModule", { value: !0 }), t.flatButtonsSet = t.isButtonGroup = void 0;
  6110. var n = e(20255), v = e(49781);
  6111. t.isButtonGroup = function(h) {
  6112. return (0, v.isArray)(h.buttons);
  6113. }, t.flatButtonsSet = function(h, p) {
  6114. var d = p.getRegisteredButtonGroups();
  6115. return new Set(h.reduce(function(a, s) {
  6116. var u;
  6117. return (0, t.isButtonGroup)(s) ? a = a.concat(n.__spreadArray(n.__spreadArray([], n.__read(s.buttons), !1), n.__read((u = d[s.group]) !== null && u !== void 0 ? u : []), !1)) : a.push(s), a;
  6118. }, []));
  6119. };
  6120. }, 38546: function(_, t, e) {
  6121. Object.defineProperty(t, "__esModule", { value: !0 }), t.findControlType = t.getControlType = void 0;
  6122. var n = e(20255), v = e(40332), h = e(93166);
  6123. function p(d, a) {
  6124. var s = n.__read(d.split(/\./), 2), u = s[0], f = s[1], l = a;
  6125. return f != null ? a[u] !== void 0 && (l = a[u]) : f = u, l[f] ? n.__assign({ name: f }, (0, v.ConfigFlatten)(l[f])) : void 0;
  6126. }
  6127. t.getControlType = function(d, a) {
  6128. var s;
  6129. return a || (a = h.Config.defaultOptions.controls), (0, v.isString)(d) ? s = p(d, a) || { name: d, command: d, tooltip: d } : a[(s = n.__assign({ name: "empty" }, (0, v.ConfigFlatten)(d))).name] !== void 0 && (s = n.__assign(n.__assign({}, (0, v.ConfigFlatten)(a[s.name])), (0, v.ConfigFlatten)(s))), s;
  6130. }, t.findControlType = p;
  6131. }, 32070: function(_, t, e) {
  6132. Object.defineProperty(t, "__esModule", { value: !0 }), t.getStrongControlTypes = void 0;
  6133. var n = e(38546), v = e(93166), h = e(49781), p = e(76502);
  6134. t.getStrongControlTypes = function(d, a) {
  6135. return ((0, h.isArray)(d) ? d : (0, p.keys)(d, !1).map(function(s) {
  6136. return (0, p.ConfigProto)({ name: s }, d[s] || {});
  6137. })).map(function(s) {
  6138. return (0, n.getControlType)(s, a || v.Config.defaultOptions.controls);
  6139. });
  6140. };
  6141. }, 77904: function(_, t, e) {
  6142. Object.defineProperty(t, "__esModule", { value: !0 }), t.Icon = void 0;
  6143. var n = e(26911), v = e(40332), h = function() {
  6144. function p() {
  6145. }
  6146. return p.getIcon = function(d) {
  6147. return /<svg/i.test(d) ? d : p.icons[d] || p.icons[d.replace(/-/g, "_")] || p.icons[d.replace(/_/g, "-")] || p.icons[(0, v.camelCase)(d)] || p.icons[(0, v.kebabCase)(d)] || p.icons[d.toLowerCase()];
  6148. }, p.exists = function(d) {
  6149. return this.getIcon(d) !== void 0;
  6150. }, p.get = function(d, a) {
  6151. return a === void 0 && (a = "<span></span>"), this.getIcon(d) || a;
  6152. }, p.set = function(d, a) {
  6153. return this.icons[d.replace("_", "-")] = a, this;
  6154. }, p.makeIcon = function(d, a) {
  6155. var s, u;
  6156. if (a) {
  6157. var f = a.name.replace(/[^a-zA-Z0-9]/g, "_");
  6158. if (a.iconURL) u = d.c.span(), (0, n.css)(u, "backgroundImage", "url(" + a.iconURL.replace("{basePath}", (d == null ? void 0 : d.basePath) || "") + ")");
  6159. else {
  6160. var l = d.e.fire("getIcon", a.name, a, f) || p.get(a.name, "") || ((s = d.o.extraIcons) === null || s === void 0 ? void 0 : s[a.name]);
  6161. l && (u = d.c.fromHTML(l.trim()), /^<svg/i.test(a.name) || u.classList.add("jodit-icon_" + f));
  6162. }
  6163. }
  6164. return u && (u.classList.add("jodit-icon"), u.style.fill = a.fill), u;
  6165. }, p.icons = {}, p;
  6166. }();
  6167. t.Icon = h;
  6168. }, 2074: function(_, t, e) {
  6169. Object.defineProperty(t, "__esModule", { value: !0 });
  6170. var n = e(20255);
  6171. n.__exportStar(e(53929), t), n.__exportStar(e(96516), t), n.__exportStar(e(35799), t), n.__exportStar(e(3249), t), n.__exportStar(e(95963), t), n.__exportStar(e(77904), t), n.__exportStar(e(63682), t);
  6172. }, 35799: function(_, t, e) {
  6173. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(12680), t);
  6174. }, 12680: function(_, t, e) {
  6175. Object.defineProperty(t, "__esModule", { value: !0 }), t.Popup = void 0;
  6176. var n = e(20255);
  6177. e(88477);
  6178. var v = e(24263), h = e(40332), p = (e(52378), e(53929)), d = e(43441), a = e(45113), s = e(17332), u = function(f) {
  6179. function l(o, r) {
  6180. r === void 0 && (r = !0);
  6181. var i = f.call(this, o) || this;
  6182. return i.smart = r, i.isOpened = !1, i.strategy = "leftBottom", i.viewBound = function() {
  6183. return { left: 0, top: 0, width: i.ow.innerWidth, height: i.ow.innerHeight };
  6184. }, i.childrenPopups = /* @__PURE__ */ new Set(), (0, h.attr)(i.container, "role", "popup"), i;
  6185. }
  6186. return n.__extends(l, f), l.prototype.className = function() {
  6187. return "Popup";
  6188. }, l.prototype.updateParentElement = function(o) {
  6189. var r = this;
  6190. return o !== this && a.Component.isInstanceOf(o, l) && (this.childrenPopups.forEach(function(i) {
  6191. !o.closest(i) && i.isOpened && i.close();
  6192. }), this.childrenPopups.has(o) || this.j.e.on(o, "beforeClose", function() {
  6193. r.childrenPopups.delete(o);
  6194. }), this.childrenPopups.add(o)), f.prototype.updateParentElement.call(this, o);
  6195. }, l.prototype.setContent = function(o) {
  6196. v.Dom.detach(this.container);
  6197. var r, i = this.j.c.div("".concat(this.componentName, "__content"));
  6198. return a.Component.isInstanceOf(o, p.UIElement) ? (r = o.container, o.parentElement = this) : r = (0, h.isString)(o) ? this.j.c.fromHTML(o) : o, i.appendChild(r), this.container.appendChild(i), this.updatePosition(), this;
  6199. }, l.prototype.open = function(o, r, i) {
  6200. if (r === void 0 && (r = !1), (0, h.markOwner)(this.jodit, this.container), this.calculateZIndex(), this.isOpened = !0, this.addGlobalListeners(), this.targetBound = r ? this.getKeepBound(o) : o, i) i.appendChild(this.container);
  6201. else {
  6202. var c = (0, s.getContainer)(this.jodit, l);
  6203. i !== this.container.parentElement && c.appendChild(this.container);
  6204. }
  6205. return this.updatePosition(), this.j.e.fire(this, "afterOpen"), this;
  6206. }, l.prototype.calculateZIndex = function() {
  6207. var o = this;
  6208. if (!this.container.style.zIndex) {
  6209. var r = function(y) {
  6210. var g = y.container.style.zIndex || y.o.zIndex;
  6211. return !!g && (o.setZIndex(1 + parseInt(g.toString(), 10)), !0);
  6212. }, i = this.j;
  6213. if (!r(i)) for (var c = this.parentElement; c; ) {
  6214. if (r(i)) return;
  6215. if (c.container.style.zIndex) return void this.setZIndex(1 + parseInt(c.container.style.zIndex.toString(), 10));
  6216. if (!c.parentElement && c.container.parentElement) {
  6217. var m = p.UIElement.closestElement(c.container.parentElement, p.UIElement);
  6218. if (m) {
  6219. c = m;
  6220. continue;
  6221. }
  6222. }
  6223. c = c.parentElement;
  6224. }
  6225. }
  6226. }, l.prototype.getKeepBound = function(o) {
  6227. var r = this, i = o(), c = this.od.elementFromPoint(i.left, i.top);
  6228. if (!c) return o;
  6229. var m = v.Dom.isHTMLElement(c) ? c : c.parentElement, y = (0, h.position)(m, this.j);
  6230. return function() {
  6231. var g = o(), b = (0, h.position)(m, r.j);
  6232. return n.__assign(n.__assign({}, g), { top: g.top + (b.top - y.top), left: g.left + (b.left - y.left) });
  6233. };
  6234. }, l.prototype.updatePosition = function() {
  6235. if (!this.isOpened) return this;
  6236. var o = n.__read(this.calculatePosition(this.targetBound(), this.viewBound(), (0, h.position)(this.container, this.j)), 2), r = o[0];
  6237. return this.setMod("strategy", o[1]), (0, h.css)(this.container, { left: r.left, top: r.top }), this.childrenPopups.forEach(function(i) {
  6238. return i.updatePosition();
  6239. }), this;
  6240. }, l.prototype.throttleUpdatePosition = function() {
  6241. this.updatePosition();
  6242. }, l.prototype.calculatePosition = function(o, r, i, c) {
  6243. c === void 0 && (c = this.strategy);
  6244. var m = { left: o.left, right: o.left - (i.width - o.width) }, y = { bottom: o.top + o.height, top: o.top - i.height }, g = Object.keys(m).reduce(function(S, j) {
  6245. return S.concat(Object.keys(y).map(function(E) {
  6246. return "".concat(j).concat((0, h.ucfirst)(E));
  6247. }));
  6248. }, []), b = function(S) {
  6249. var j = n.__read((0, h.kebabCase)(S).split("-"), 2);
  6250. return { left: m[j[0]], top: y[j[1]], width: i.width, height: i.height };
  6251. }, w = function(S) {
  6252. return l.boxInView(b(c), S) ? c : g.find(function(j) {
  6253. if (l.boxInView(b(j), S)) return j;
  6254. }) || null;
  6255. }, C = w((0, h.position)(this.j.container, this.j));
  6256. return C && l.boxInView(b(C), r) || (C = w(r) || C || c), [b(C), C];
  6257. }, l.boxInView = function(o, r) {
  6258. return !(-2 > o.top - r.top || -2 > o.left - r.left || -2 > r.top + r.height - (o.top + o.height) || -2 > r.left + r.width - (o.left + o.width));
  6259. }, l.prototype.close = function() {
  6260. return this.isOpened ? (this.isOpened = !1, this.childrenPopups.forEach(function(o) {
  6261. return o.close();
  6262. }), this.j.e.fire(this, "beforeClose"), this.j.e.fire("beforePopupClose", this), this.removeGlobalListeners(), v.Dom.safeRemove(this.container), this) : this;
  6263. }, l.prototype.closeOnOutsideClick = function(o) {
  6264. this.isOpened && !this.isOwnClick(o) && this.close();
  6265. }, l.prototype.isOwnClick = function(o) {
  6266. if (!o.target) return !1;
  6267. var r = p.UIElement.closestElement(o.target, l);
  6268. return !!(r && (this === r || r.closest(this)));
  6269. }, l.prototype.addGlobalListeners = function() {
  6270. var o = this, r = this.throttleUpdatePosition, i = this.ow;
  6271. s.eventEmitter.on("closeAllPopups", this.close), this.smart && this.j.e.on("escape", this.close).on("mousedown touchstart", this.closeOnOutsideClick).on(i, "mousedown touchstart", this.closeOnOutsideClick), this.j.e.on("closeAllPopups", this.close).on("resize", r).on(this.container, "scroll mousewheel", r).on(i, "scroll", r).on(i, "resize", r), v.Dom.up(this.j.container, function(c) {
  6272. c && o.j.e.on(c, "scroll mousewheel", r);
  6273. });
  6274. }, l.prototype.removeGlobalListeners = function() {
  6275. var o = this, r = this.throttleUpdatePosition, i = this.ow;
  6276. s.eventEmitter.off("closeAllPopups", this.close), this.smart && this.j.e.off("escape", this.close).off("mousedown touchstart", this.closeOnOutsideClick).off(i, "mousedown touchstart", this.closeOnOutsideClick), this.j.e.off("closeAllPopups", this.close).off("resize", r).off(this.container, "scroll mousewheel", r).off(i, "scroll", r).off(i, "resize", r), v.Dom.up(this.j.container, function(c) {
  6277. c && o.j.e.off(c, "scroll mousewheel", r);
  6278. });
  6279. }, l.prototype.setZIndex = function(o) {
  6280. this.container.style.zIndex = o.toString();
  6281. }, l.prototype.destruct = function() {
  6282. return this.close(), f.prototype.destruct.call(this);
  6283. }, n.__decorate([d.autobind], l.prototype, "updatePosition", null), n.__decorate([(0, d.throttle)(10), d.autobind], l.prototype, "throttleUpdatePosition", null), n.__decorate([d.autobind], l.prototype, "close", null), n.__decorate([d.autobind], l.prototype, "closeOnOutsideClick", null), l;
  6284. }(p.UIElement);
  6285. t.Popup = u;
  6286. }, 63682: function(_, t, e) {
  6287. Object.defineProperty(t, "__esModule", { value: !0 }), t.ProgressBar = void 0;
  6288. var n = e(20255);
  6289. e(50197);
  6290. var v = e(24263), h = function(p) {
  6291. function d() {
  6292. return p !== null && p.apply(this, arguments) || this;
  6293. }
  6294. return n.__extends(d, p), d.prototype.className = function() {
  6295. return "ProgressBar";
  6296. }, d.prototype.render = function() {
  6297. return "<div><div></div></div>";
  6298. }, d.prototype.show = function() {
  6299. return (this.j.workplace || this.j.container).appendChild(this.container), this;
  6300. }, d.prototype.hide = function() {
  6301. return v.Dom.safeRemove(this.container), this;
  6302. }, d.prototype.progress = function(a) {
  6303. return this.container.style.width = a.toFixed(2) + "%", this;
  6304. }, d.prototype.destruct = function() {
  6305. return this.hide(), p.prototype.destruct.call(this);
  6306. }, d;
  6307. }(e(53929).UIElement);
  6308. t.ProgressBar = h;
  6309. }, 43608: function(_, t, e) {
  6310. Object.defineProperty(t, "__esModule", { value: !0 }), t.ViewWithToolbar = void 0;
  6311. var n = e(20255);
  6312. e(39008);
  6313. var v = e(75902), h = e(40332), p = e(64968), d = e(81438), a = e(56562), s = e(97642), u = e(43441), f = function(l) {
  6314. function o(r, i) {
  6315. i === void 0 && (i = !1);
  6316. var c = l.call(this, r, i) || this;
  6317. return c.toolbar = (0, d.makeCollection)(c), c.defaultToolbarContainer = c.c.div("jodit-toolbar__box"), c.registeredButtons = /* @__PURE__ */ new Set(), c.groupToButtons = {}, c.isJodit = !1, c.isJodit = i, c.e.on("beforeToolbarBuild", c.beforeToolbarBuild), c;
  6318. }
  6319. return n.__extends(o, l), Object.defineProperty(o.prototype, "toolbarContainer", { get: function() {
  6320. return this.o.fullsize || !(0, h.isString)(this.o.toolbar) && !p.Dom.isHTMLElement(this.o.toolbar) ? (this.o.toolbar && p.Dom.appendChildFirst(this.container, this.defaultToolbarContainer), this.defaultToolbarContainer) : (0, h.resolveElement)(this.o.toolbar, this.o.shadowRoot || this.od);
  6321. }, enumerable: !1, configurable: !0 }), o.prototype.setPanel = function(r) {
  6322. this.o.toolbar = r, this.buildToolbar();
  6323. }, o.prototype.buildToolbar = function() {
  6324. if (this.o.toolbar) {
  6325. var r = this.o.buttons ? (0, h.splitArray)(this.o.buttons) : [];
  6326. this.toolbar.setRemoveButtons(this.o.removeButtons).build(r.concat(this.o.extraButtons || [])).appendTo(this.toolbarContainer);
  6327. }
  6328. }, o.prototype.getRegisteredButtonGroups = function() {
  6329. return this.groupToButtons;
  6330. }, o.prototype.registerButton = function(r) {
  6331. var i;
  6332. this.registeredButtons.add(r);
  6333. var c = (i = r.group) !== null && i !== void 0 ? i : "other";
  6334. return this.groupToButtons[c] || (this.groupToButtons[c] = []), r.position != null ? this.groupToButtons[c][r.position] = r.name : this.groupToButtons[c].push(r.name), this;
  6335. }, o.prototype.unregisterButton = function(r) {
  6336. var i;
  6337. this.registeredButtons.delete(r);
  6338. var c = (i = r.group) !== null && i !== void 0 ? i : "other", m = this.groupToButtons[c];
  6339. if (m) {
  6340. var y = m.indexOf(r.name);
  6341. y !== -1 && m.splice(y, 1), m.length === 0 && delete this.groupToButtons[c];
  6342. }
  6343. return this;
  6344. }, o.prototype.beforeToolbarBuild = function(r) {
  6345. var i = this;
  6346. if (Object.keys(this.groupToButtons).length) return r.map(function(c) {
  6347. return (0, s.isButtonGroup)(c) && c.group && i.groupToButtons[c.group] ? { group: c.group, buttons: n.__spreadArray(n.__spreadArray([], n.__read(c.buttons), !1), n.__read(i.groupToButtons[c.group]), !1) } : c;
  6348. });
  6349. }, o.prototype.destruct = function() {
  6350. this.isDestructed || (this.setStatus(a.STATUSES.beforeDestruct), this.e.off("beforeToolbarBuild", this.beforeToolbarBuild), this.toolbar.destruct(), l.prototype.destruct.call(this));
  6351. }, n.__decorate([u.autobind], o.prototype, "beforeToolbarBuild", null), o;
  6352. }(v.View);
  6353. t.ViewWithToolbar = f;
  6354. }, 75902: function(_, t, e) {
  6355. Object.defineProperty(t, "__esModule", { value: !0 }), t.View = void 0;
  6356. var n = e(20255), v = e(77462), h = e(40332), p = e(86893), d = e(87837), a = e(17332), s = e(43441), u = e(59829), f = e(55395), l = e(71014), o = function(r) {
  6357. function i(m, y) {
  6358. y === void 0 && (y = !1);
  6359. var g = r.call(this) || this;
  6360. return g.isJodit = y, g.isView = !0, g.parent = null, g.mods = {}, g.components = /* @__PURE__ */ new Set(), g.version = "3.24.7", g.buffer = v.Storage.makeStorage(), g.storage = v.Storage.makeStorage(!0, g.componentName), g.OPTIONS = c.defaultOptions, g.__isFullSize = !1, g.__whoLocked = "", g.isLockedNotBy = function(b) {
  6361. return g.isLocked && g.__whoLocked !== b;
  6362. }, g.__modulesInstances = /* @__PURE__ */ new Map(), g.id = (/* @__PURE__ */ new Date()).getTime().toString(), g.buffer = v.Storage.makeStorage(), g.initOptions(m), g.initOwners(), g.events = new f.EventEmitter(g.od), g.create = new d.Create(g.od), g.container = g.c.div("jodit ".concat(g.componentName)), g.progressbar = new d.ProgressBar(g), g.message = new l.UIMessages(g, g.container), g;
  6363. }
  6364. var c;
  6365. return n.__extends(i, r), c = i, Object.defineProperty(i.prototype, "basePath", { get: function() {
  6366. return this.o.basePath ? this.o.basePath : p.BASE_PATH;
  6367. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "defaultTimeout", { get: function() {
  6368. return (0, h.isVoid)(this.o.defaultTimeout) ? 100 : this.o.defaultTimeout;
  6369. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "c", { get: function() {
  6370. return this.create;
  6371. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "container", { get: function() {
  6372. return this.__container;
  6373. }, set: function(m) {
  6374. this.__container = m;
  6375. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "e", { get: function() {
  6376. return this.events;
  6377. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "options", { get: function() {
  6378. return this.__options;
  6379. }, set: function(m) {
  6380. this.__options = m;
  6381. }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "o", { get: function() {
  6382. return this.options;
  6383. }, enumerable: !1, configurable: !0 }), i.prototype.i18n = function(m) {
  6384. for (var y = [], g = 1; arguments.length > g; g++) y[g - 1] = arguments[g];
  6385. return (0, h.i18n)(m, y, this.options);
  6386. }, i.prototype.toggleFullSize = function(m) {
  6387. m === void 0 && (m = !this.__isFullSize), m !== this.__isFullSize && (this.__isFullSize = m, this.e.fire("toggleFullSize", m));
  6388. }, Object.defineProperty(i.prototype, "isLocked", { get: function() {
  6389. return this.__whoLocked !== "";
  6390. }, enumerable: !1, configurable: !0 }), i.prototype.lock = function(m) {
  6391. return m === void 0 && (m = "any"), !this.isLocked && (this.__whoLocked = m, !0);
  6392. }, i.prototype.unlock = function() {
  6393. return !!this.isLocked && (this.__whoLocked = "", !0);
  6394. }, Object.defineProperty(i.prototype, "isFullSize", { get: function() {
  6395. return this.__isFullSize;
  6396. }, enumerable: !1, configurable: !0 }), i.prototype.getVersion = function() {
  6397. return "3.24.7";
  6398. }, i.getVersion = function() {
  6399. return "3.24.7";
  6400. }, i.prototype.initOptions = function(m) {
  6401. this.options = (0, h.ConfigProto)(m || {}, (0, h.ConfigProto)(this.options || {}, c.defaultOptions));
  6402. }, i.prototype.initOwners = function() {
  6403. var m;
  6404. this.ownerWindow = (m = this.o.ownerWindow) !== null && m !== void 0 ? m : window;
  6405. }, i.prototype.attachEvents = function(m) {
  6406. var y = this;
  6407. if (m) {
  6408. var g = m == null ? void 0 : m.events;
  6409. g && Object.keys(g).forEach(function(b) {
  6410. return y.e.on(b, g[b]);
  6411. });
  6412. }
  6413. }, i.prototype.getInstance = function(m, y) {
  6414. var g = this.e.fire((0, h.camelCase)("getInstance_" + m), y);
  6415. if (g) return g;
  6416. var b = a.modules[m], w = this.__modulesInstances;
  6417. if (!(0, h.isFunction)(b)) throw (0, h.error)("Need real module name");
  6418. if (!w.has(m)) {
  6419. var C = b.prototype instanceof d.ViewComponent ? new b(this, y) : new b(y);
  6420. this.components.add(C), w.set(m, C);
  6421. }
  6422. return w.get(m);
  6423. }, i.prototype.addDisclaimer = function(m) {
  6424. this.container.appendChild(m);
  6425. }, i.prototype.beforeDestruct = function() {
  6426. this.e.fire(d.STATUSES.beforeDestruct, this), this.components.forEach(function(m) {
  6427. (0, h.isDestructable)(m) && !m.isInDestruct && m.destruct();
  6428. }), this.components.clear();
  6429. }, i.prototype.destruct = function() {
  6430. this.isDestructed || (this.progressbar.destruct(), this.message.destruct(), this.async && this.async.destruct(), this.events && this.e.destruct(), this.buffer && this.buffer.clear(), d.Dom.safeRemove(this.container), r.prototype.destruct.call(this));
  6431. }, i.esNext = !1, n.__decorate([(0, s.hook)(d.STATUSES.beforeDestruct)], i.prototype, "beforeDestruct", null), c = n.__decorate([(0, s.derive)(u.Mods, u.Elms)], i);
  6432. }(d.Component);
  6433. t.View = o, o.defaultOptions = { extraButtons: [], textIcons: !1, namespace: "", removeButtons: [], zIndex: 100002, defaultTimeout: 100, fullsize: !1, showTooltip: !0, useNativeTooltip: !1, buttons: [], globalFullSize: !0, language: "auto" };
  6434. }, 37920: function(_, t, e) {
  6435. Object.defineProperty(t, "__esModule", { value: !0 }), t.Jodit = void 0;
  6436. var n = e(20255), v = e(93166), h = e(86893), p = e(87837), d = e(40332), a = e(77462), s = e(86893), u = e(17332), f = e(43441), l = e(59829), o = e(30056), r = "data-jodit-default-style-display", i = "data-jodit-default-classes", c = function(y) {
  6437. function g(w, C) {
  6438. var S = y.call(this, C, !0) || this;
  6439. S.isJodit = !0, S.commands = /* @__PURE__ */ new Map(), S.__selectionLocked = null, S.__wasReadOnly = !1, S.createInside = new p.Create(function() {
  6440. return S.ed;
  6441. }, S.o.createAttributes), S.editorIsActive = !1, S.__mode = h.MODE_WYSIWYG, S.__callChangeCount = 0, S.__isSilentChange = !1, S.__elementToPlace = /* @__PURE__ */ new Map();
  6442. try {
  6443. var j = (0, d.resolveElement)(w, S.o.shadowRoot || S.od);
  6444. if (b.isJoditAssigned(j)) return j.component;
  6445. } catch (x) {
  6446. throw S.destruct(), x;
  6447. }
  6448. S.setStatus(p.STATUSES.beforeInit), S.id = (0, d.attr)((0, d.resolveElement)(w, S.o.shadowRoot || S.od), "id") || (/* @__PURE__ */ new Date()).getTime().toString(), u.instances[S.id] = S, S.storage = a.Storage.makeStorage(!0, S.id), S.attachEvents(C), S.e.on(S.ow, "resize", function() {
  6449. S.e && S.e.fire("resize");
  6450. }), S.e.on("prepareWYSIWYGEditor", S.__prepareWYSIWYGEditor), S.selection = new p.Select(S);
  6451. var E = S.beforeInitHook();
  6452. return (0, d.callPromise)(E, function() {
  6453. S.e.fire("beforeInit", S), u.pluginSystem.__init(S), S.e.fire("afterPluginSystemInit", S), S.e.on("changePlace", function() {
  6454. S.setReadOnly(S.o.readonly), S.setDisabled(S.o.disabled);
  6455. }), S.places.length = 0;
  6456. var x = S.addPlace(w, C);
  6457. u.instances[S.id] = S, (0, d.callPromise)(x, function() {
  6458. S.e && S.e.fire("afterInit", S), S.afterInitHook(), S.setStatus(p.STATUSES.ready), S.e.fire("afterConstructor", S);
  6459. });
  6460. }), S;
  6461. }
  6462. var b;
  6463. return n.__extends(g, y), b = g, g.prototype.className = function() {
  6464. return "Jodit";
  6465. }, g.prototype.waitForReady = function() {
  6466. var w = this;
  6467. return this.isReady ? Promise.resolve(this) : this.async.promise(function(C) {
  6468. w.hookStatus("ready", function() {
  6469. return C(w);
  6470. });
  6471. });
  6472. }, Object.defineProperty(g, "ready", { get: function() {
  6473. return new Promise(function(w) {
  6474. u.eventEmitter.on("oditready", w);
  6475. });
  6476. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "text", { get: function() {
  6477. if (this.editor) return this.editor.innerText || "";
  6478. var w = this.createInside.div();
  6479. return w.innerHTML = this.getElementValue(), w.innerText || "";
  6480. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "defaultTimeout", { get: function() {
  6481. return (0, d.isNumber)(this.o.defaultTimeout) ? this.o.defaultTimeout : v.Config.defaultOptions.defaultTimeout;
  6482. }, enumerable: !1, configurable: !0 }), g.atom = function(w) {
  6483. return (0, d.markAsAtomic)(w);
  6484. }, g.make = function(w, C) {
  6485. return new this(w, C);
  6486. }, g.isJoditAssigned = function(w) {
  6487. return w && (0, d.isJoditObject)(w.component) && !w.component.isInDestruct;
  6488. }, Object.defineProperty(g, "defaultOptions", { get: function() {
  6489. return v.Config.defaultOptions;
  6490. }, enumerable: !1, configurable: !0 }), g.prototype.__setPlaceField = function(w, C) {
  6491. this.currentPlace || (this.currentPlace = {}, this.places = [this.currentPlace]), this.currentPlace[w] = C;
  6492. }, Object.defineProperty(g.prototype, "element", { get: function() {
  6493. return this.currentPlace.element;
  6494. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "editor", { get: function() {
  6495. return this.currentPlace.editor;
  6496. }, set: function(w) {
  6497. this.__setPlaceField("editor", w);
  6498. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "container", { get: function() {
  6499. return this.currentPlace.container;
  6500. }, set: function(w) {
  6501. this.__setPlaceField("container", w);
  6502. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "workplace", { get: function() {
  6503. return this.currentPlace.workplace;
  6504. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "statusbar", { get: function() {
  6505. return this.currentPlace.statusbar;
  6506. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "iframe", { get: function() {
  6507. return this.currentPlace.iframe;
  6508. }, set: function(w) {
  6509. this.__setPlaceField("iframe", w);
  6510. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "history", { get: function() {
  6511. return this.currentPlace.history;
  6512. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "observer", { get: function() {
  6513. return this.history;
  6514. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "editorWindow", { get: function() {
  6515. return this.currentPlace.editorWindow;
  6516. }, set: function(w) {
  6517. this.__setPlaceField("editorWindow", w);
  6518. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "ew", { get: function() {
  6519. return this.editorWindow;
  6520. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "editorDocument", { get: function() {
  6521. return this.currentPlace.editorWindow.document;
  6522. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "ed", { get: function() {
  6523. return this.editorDocument;
  6524. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "options", { get: function() {
  6525. return this.currentPlace.options;
  6526. }, set: function(w) {
  6527. this.__setPlaceField("options", w);
  6528. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "s", { get: function() {
  6529. return this.selection;
  6530. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "uploader", { get: function() {
  6531. return this.getInstance("Uploader", this.o.uploader);
  6532. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "filebrowser", { get: function() {
  6533. var w = this, C = (0, d.ConfigProto)({ defaultTimeout: w.defaultTimeout, uploader: w.o.uploader, language: w.o.language, license: w.o.license, theme: w.o.theme, shadowRoot: w.o.shadowRoot, defaultCallback: function(S) {
  6534. S.files && S.files.length && S.files.forEach(function(j, E) {
  6535. var x = S.baseurl + j;
  6536. S.isImages && S.isImages[E] ? w.s.insertImage(x, null, w.o.imageDefaultWidth) : w.s.insertNode(w.createInside.fromHTML("<a href='".concat(x, "' title='").concat(x, "'>").concat(x, "</a>")));
  6537. });
  6538. } }, this.o.filebrowser);
  6539. return w.getInstance("FileBrowser", C);
  6540. }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "mode", { get: function() {
  6541. return this.__mode;
  6542. }, set: function(w) {
  6543. this.setMode(w);
  6544. }, enumerable: !1, configurable: !0 }), g.prototype.getNativeEditorValue = function() {
  6545. var w = this.e.fire("beforeGetNativeEditorValue");
  6546. return (0, d.isString)(w) ? w : this.editor ? this.editor.innerHTML : this.getElementValue();
  6547. }, g.prototype.setNativeEditorValue = function(w) {
  6548. var C = { value: w };
  6549. this.e.fire("beforeSetNativeEditorValue", C) || this.editor && (this.editor.innerHTML = C.value);
  6550. }, Object.defineProperty(g.prototype, "value", { get: function() {
  6551. return this.getEditorValue();
  6552. }, set: function(w) {
  6553. this.setEditorValue(w), this.history.__processChanges();
  6554. }, enumerable: !1, configurable: !0 }), g.prototype.synchronizeValues = function() {
  6555. this.__imdSynchronizeValues();
  6556. }, g.prototype.__imdSynchronizeValues = function() {
  6557. this.setEditorValue();
  6558. }, g.prototype.getEditorValue = function(w, C) {
  6559. var S;
  6560. if (w === void 0 && (w = !0), (S = this.e.fire("beforeGetValueFromEditor", C)) !== void 0) return S;
  6561. S = this.getNativeEditorValue().replace(h.INVISIBLE_SPACE_REG_EXP(), ""), w && (S = S.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g, "")), S === "<br>" && (S = "");
  6562. var j = { value: S };
  6563. return this.e.fire("afterGetValueFromEditor", j, C), j.value;
  6564. }, g.prototype.setEditorValue = function(w) {
  6565. var C = this.e.fire("beforeSetValueToEditor", w);
  6566. if (C !== !1) if ((0, d.isString)(C) && (w = C), this.editor) {
  6567. if (!(0, d.isString)(w) && !(0, d.isVoid)(w)) throw (0, d.error)("value must be string");
  6568. (0, d.isVoid)(w) || this.getNativeEditorValue() === w || this.setNativeEditorValue(w), this.e.fire("postProcessSetEditorValue");
  6569. var S = this.getElementValue(), j = this.getEditorValue();
  6570. if (!this.__isSilentChange && S !== j && h.SAFE_COUNT_CHANGE_CALL > this.__callChangeCount) {
  6571. this.__setElementValue(j), this.__callChangeCount += 1;
  6572. try {
  6573. this.history.__upTick(), this.e.fire("change", j, S), this.e.fire(this.history, "change", j, S);
  6574. } finally {
  6575. this.__callChangeCount = 0;
  6576. }
  6577. }
  6578. } else w !== void 0 && this.__setElementValue(w);
  6579. }, g.prototype.updateElementValue = function() {
  6580. this.__setElementValue(this.getEditorValue());
  6581. }, g.prototype.getElementValue = function() {
  6582. return this.element.value !== void 0 ? this.element.value : this.element.innerHTML;
  6583. }, g.prototype.setElementValue = function(w) {
  6584. var C = this.getElementValue();
  6585. return (w === void 0 || (0, d.isString)(w) && w !== C) && (w != null || (w = C), w !== this.getEditorValue() && this.setEditorValue(w)), this.__setElementValue(w);
  6586. }, g.prototype.__setElementValue = function(w) {
  6587. var C = this;
  6588. if (!(0, d.isString)(w)) throw (0, d.error)("value must be string");
  6589. if (this.element !== this.container && w !== this.getElementValue()) {
  6590. var S = { value: w }, j = this.e.fire("beforeSetElementValue", S);
  6591. (0, d.callPromise)(j, function() {
  6592. C.element.value !== void 0 ? C.element.value = S.value : C.element.innerHTML = S.value, C.e.fire("afterSetElementValue", S);
  6593. });
  6594. }
  6595. }, g.prototype.registerCommand = function(w, C, S) {
  6596. var j = w.toLowerCase(), E = this.commands.get(j);
  6597. if (E === void 0 && this.commands.set(j, E = []), E.push(C), !(0, d.isFunction)(C)) {
  6598. var x = this.o.commandToHotkeys[j] || this.o.commandToHotkeys[w] || C.hotkeys;
  6599. x && this.registerHotkeyToCommand(x, j, S == null ? void 0 : S.stopPropagation);
  6600. }
  6601. return this;
  6602. }, g.prototype.registerHotkeyToCommand = function(w, C, S) {
  6603. var j = this;
  6604. S === void 0 && (S = !0);
  6605. var E = (0, d.asArray)(w).map(d.normalizeKeyAliases).map(function(x) {
  6606. return x + ".hotkey";
  6607. }).join(" ");
  6608. this.e.off(E).on(E, function(x, k) {
  6609. return k && (k.shouldStop = S == null || S), j.execCommand(C);
  6610. });
  6611. }, g.prototype.execCommand = function(w, C, S) {
  6612. for (var j, E = [], x = 3; arguments.length > x; x++) E[x - 3] = arguments[x];
  6613. if (this.s.isFocused() || this.s.focus(), !this.o.readonly || this.o.allowCommandsInReadOnly.includes(w)) {
  6614. var k;
  6615. if (w = w.toLowerCase(), (k = (j = this.e).fire.apply(j, n.__spreadArray(["beforeCommand", w, C, S], n.__read(E), !1))) !== !1 && (k = this.__execCustomCommands.apply(this, n.__spreadArray([w, C, S], n.__read(E), !1))), k !== !1) if (this.s.focus(), w === "selectall") this.s.select(this.editor, !0), this.s.expandSelection();
  6616. else try {
  6617. k = this.nativeExecCommand(w, C, S);
  6618. } catch (I) {
  6619. }
  6620. return this.e.fire("afterCommand", w, C, S), this.setEditorValue(), k;
  6621. }
  6622. }, g.prototype.nativeExecCommand = function(w, C, S) {
  6623. this.__isSilentChange = !0;
  6624. try {
  6625. return this.ed.execCommand(w, C, S);
  6626. } finally {
  6627. this.__isSilentChange = !1;
  6628. }
  6629. }, g.prototype.__execCustomCommands = function(w, C, S) {
  6630. for (var j = this, E = [], x = 3; arguments.length > x; x++) E[x - 3] = arguments[x];
  6631. w = w.toLowerCase();
  6632. var k, I = this.commands.get(w);
  6633. if (I !== void 0) return I.forEach(function(M) {
  6634. var T, O = (T = (0, d.isFunction)(M) ? M : M.exec).call.apply(T, n.__spreadArray([j, w, C, S], n.__read(E), !1));
  6635. O !== void 0 && (k = O);
  6636. }), k;
  6637. }, g.prototype.lock = function(w) {
  6638. return w === void 0 && (w = "any"), !!y.prototype.lock.call(this, w) && (this.__selectionLocked = this.s.save(), this.s.clear(), this.editor.classList.add("jodit_lock"), this.e.fire("lock", !0), !0);
  6639. }, g.prototype.unlock = function() {
  6640. return !!y.prototype.unlock.call(this) && (this.editor.classList.remove("jodit_lock"), this.__selectionLocked && this.s.restore(), this.e.fire("lock", !1), !0);
  6641. }, g.prototype.getMode = function() {
  6642. return this.mode;
  6643. }, g.prototype.isEditorMode = function() {
  6644. return this.getRealMode() === h.MODE_WYSIWYG;
  6645. }, g.prototype.getRealMode = function() {
  6646. if (this.getMode() !== h.MODE_SPLIT) return this.getMode();
  6647. var w = this.od.activeElement;
  6648. return w && (w === this.iframe || p.Dom.isOrContains(this.editor, w) || p.Dom.isOrContains(this.toolbar.container, w)) ? h.MODE_WYSIWYG : h.MODE_SOURCE;
  6649. }, g.prototype.setMode = function(w) {
  6650. var C = this, S = this.getMode(), j = { mode: parseInt(w.toString(), 10) }, E = ["jodit-wysiwyg_mode", "jodit-source__mode", "jodit_split_mode"];
  6651. this.e.fire("beforeSetMode", j) !== !1 && (this.__mode = [h.MODE_SOURCE, h.MODE_WYSIWYG, h.MODE_SPLIT].includes(j.mode) ? j.mode : h.MODE_WYSIWYG, this.o.saveModeInStorage && this.storage.set("jodit_default_mode", this.mode), E.forEach(function(x) {
  6652. C.container.classList.remove(x);
  6653. }), this.container.classList.add(E[this.mode - 1]), S !== this.getMode() && this.e.fire("afterSetMode"));
  6654. }, g.prototype.toggleMode = function() {
  6655. var w = this.getMode();
  6656. [h.MODE_SOURCE, h.MODE_WYSIWYG, this.o.useSplitMode ? h.MODE_SPLIT : 9].includes(w + 1) ? w += 1 : w = h.MODE_WYSIWYG, this.setMode(w);
  6657. }, g.prototype.setDisabled = function(w) {
  6658. this.o.disabled = w;
  6659. var C = this.__wasReadOnly;
  6660. this.setReadOnly(w || C), this.__wasReadOnly = C, this.editor && (this.editor.setAttribute("aria-disabled", w.toString()), this.container.classList.toggle("jodit_disabled", w), this.e.fire("disabled", w));
  6661. }, g.prototype.getDisabled = function() {
  6662. return this.o.disabled;
  6663. }, g.prototype.setReadOnly = function(w) {
  6664. this.__wasReadOnly !== w && (this.__wasReadOnly = w, this.o.readonly = w, w ? this.editor && this.editor.removeAttribute("contenteditable") : this.editor && this.editor.setAttribute("contenteditable", "true"), this.e && this.e.fire("readonly", w));
  6665. }, g.prototype.getReadOnly = function() {
  6666. return this.o.readonly;
  6667. }, g.prototype.focus = function() {
  6668. this.getMode() !== h.MODE_SOURCE && this.s.focus();
  6669. }, Object.defineProperty(g.prototype, "isFocused", { get: function() {
  6670. return this.s.isFocused();
  6671. }, enumerable: !1, configurable: !0 }), g.prototype.beforeInitHook = function() {
  6672. }, g.prototype.afterInitHook = function() {
  6673. }, g.prototype.initOptions = function(w) {
  6674. this.options = (0, d.ConfigProto)(w || {}, v.Config.defaultOptions);
  6675. }, g.prototype.initOwners = function() {
  6676. this.editorWindow = this.o.ownerWindow, this.ownerWindow = this.o.ownerWindow;
  6677. }, g.prototype.addPlace = function(w, C) {
  6678. var S = this, j = (0, d.resolveElement)(w, this.o.shadowRoot || this.od);
  6679. this.attachEvents(C), j.attributes && (0, d.toArray)(j.attributes).forEach(function(N) {
  6680. var H = N.name, q = N.value;
  6681. v.Config.defaultOptions[H] === void 0 || C && C[H] !== void 0 || (["readonly", "disabled"].indexOf(H) !== -1 && (q = q === "" || q === "true"), /^[0-9]+(\.)?([0-9]+)?$/.test(q.toString()) && (q = Number(q)), S.options[H] = q);
  6682. });
  6683. var E = this.c.div("jodit-container");
  6684. E.classList.add("jodit"), E.classList.add("jodit-container"), E.classList.add("jodit_theme_".concat(this.o.theme || "default")), m(this.o.className, E), this.o.containerStyle && (0, d.css)(E, this.o.containerStyle);
  6685. var x = this.o.styleValues;
  6686. Object.keys(x).forEach(function(N) {
  6687. var H = (0, d.kebabCase)(N);
  6688. E.style.setProperty("--jd-".concat(H), x[N]);
  6689. }), E.setAttribute("contenteditable", "false");
  6690. var k = null;
  6691. this.o.inline && (["TEXTAREA", "INPUT"].indexOf(j.nodeName) === -1 && (E = j, j.setAttribute(i, j.className.toString()), k = E.innerHTML, E.innerHTML = ""), E.classList.add("jodit_inline"), E.classList.add("jodit-container")), j !== E && (j.style.display && j.setAttribute(r, j.style.display), j.style.display = "none");
  6692. var I = this.c.div("jodit-workplace", { contenteditable: !1 });
  6693. E.appendChild(I), this.message.destruct(), this.message = new p.UIMessages(this, I), j.parentNode && j !== E && j.parentNode.insertBefore(E, j), Object.defineProperty(j, "component", { enumerable: !1, configurable: !0, value: this });
  6694. var M = this.c.div("jodit-wysiwyg", { contenteditable: !0, "aria-disabled": !1, tabindex: this.o.tabIndex });
  6695. I.appendChild(M);
  6696. var T = { editor: M, element: j, container: E, workplace: I, statusbar: new p.StatusBar(this, E), options: this.isReady ? (0, d.ConfigProto)(C || {}, v.Config.defaultOptions) : this.options, history: new p.History(this), editorWindow: this.ow };
  6697. this.__elementToPlace.set(M, T), this.setCurrentPlace(T), this.places.push(T), this.setNativeEditorValue(this.getElementValue());
  6698. var O = this.__initEditor(k), L = this.options;
  6699. return (0, d.callPromise)(O, function() {
  6700. L.enableDragAndDropFileToEditor && L.uploader && (L.uploader.url || L.uploader.insertImageAsBase64URI) && S.uploader.bind(S.editor), S.__elementToPlace.get(S.editor) || S.__elementToPlace.set(S.editor, T), S.e.fire("afterAddPlace", T);
  6701. });
  6702. }, g.prototype.addDisclaimer = function(w) {
  6703. this.workplace.appendChild(w);
  6704. }, g.prototype.setCurrentPlace = function(w) {
  6705. this.currentPlace !== w && (this.isEditorMode() || this.setMode(h.MODE_WYSIWYG), this.currentPlace = w, this.buildToolbar(), this.isReady && this.e.fire("changePlace", w));
  6706. }, g.prototype.__initEditor = function(w) {
  6707. var C = this, S = this.__createEditor();
  6708. return (0, d.callPromise)(S, function() {
  6709. if (!C.isInDestruct) {
  6710. if (C.element !== C.container) {
  6711. var j = C.getElementValue();
  6712. j !== C.getEditorValue() && C.setEditorValue(j);
  6713. } else w != null && C.setEditorValue(w);
  6714. var E = C.o.defaultMode;
  6715. if (C.o.saveModeInStorage) {
  6716. var x = C.storage.get("jodit_default_mode");
  6717. typeof x == "string" && (E = parseInt(x, 10));
  6718. }
  6719. C.setMode(E), C.o.readonly && (C.__wasReadOnly = !1, C.setReadOnly(!0)), C.o.disabled && C.setDisabled(!0);
  6720. try {
  6721. C.ed.execCommand("defaultParagraphSeparator", !1, C.o.enter.toLowerCase());
  6722. } catch (k) {
  6723. }
  6724. try {
  6725. C.ed.execCommand("enableObjectResizing", !1, "false");
  6726. } catch (k) {
  6727. }
  6728. try {
  6729. C.ed.execCommand("enableInlineTableEditing", !1, "false");
  6730. } catch (k) {
  6731. }
  6732. }
  6733. });
  6734. }, g.prototype.__createEditor = function() {
  6735. var w = this, C = this.editor, S = this.e.fire("createEditor", this);
  6736. return (0, d.callPromise)(S, function() {
  6737. if (!w.isInDestruct) {
  6738. if ((S === !1 || (0, d.isPromise)(S)) && p.Dom.safeRemove(C), m(w.o.editorClassName || w.o.editorCssClass, w.editor), w.o.editorCssClass && w.editor.classList.add(w.o.editorCssClass), w.o.style && (0, d.css)(w.editor, w.o.style), w.e.on("synchro", function() {
  6739. w.setEditorValue();
  6740. }).on("focus", function() {
  6741. w.editorIsActive = !0;
  6742. }).on("blur", function() {
  6743. return w.editorIsActive = !1;
  6744. }), w.__prepareWYSIWYGEditor(), w.o.direction) {
  6745. var j = w.o.direction.toLowerCase() === "rtl" ? "rtl" : "ltr";
  6746. w.container.style.direction = j, w.container.setAttribute("dir", j), w.toolbar.setDirection(j);
  6747. }
  6748. w.o.triggerChangeEvent && w.e.on("change", w.async.debounce(function() {
  6749. w.e && w.e.fire(w.element, "change");
  6750. }, w.defaultTimeout));
  6751. }
  6752. });
  6753. }, g.prototype.__prepareWYSIWYGEditor = function() {
  6754. var w = this, C = this.editor;
  6755. if (this.o.direction) {
  6756. var S = this.o.direction.toLowerCase() === "rtl" ? "rtl" : "ltr";
  6757. this.editor.style.direction = S, this.editor.setAttribute("dir", S);
  6758. }
  6759. this.e.on(C, "mousedown touchstart focus", function() {
  6760. var j = w.__elementToPlace.get(C);
  6761. j && w.setCurrentPlace(j);
  6762. }).on(C, "compositionend", this.synchronizeValues).on(C, "selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur", function(j) {
  6763. if (!w.o.readonly && !w.__isSilentChange && !(j instanceof w.ew.KeyboardEvent && j.isComposing) && w.e && w.e.fire) {
  6764. if (w.e.fire(j.type, j) === !1) return !1;
  6765. w.synchronizeValues();
  6766. }
  6767. });
  6768. }, g.prototype.fetch = function(w, C) {
  6769. var S = this, j = new o.Ajax(n.__assign({ url: w }, C), this.o.defaultAjaxOptions), E = function() {
  6770. S.e.off("beforeDestruct", E), S.progressbar.progress(100).hide(), j.destruct();
  6771. };
  6772. this.e.one("beforeDestruct", E), this.progressbar.show().progress(30);
  6773. var x = j.send();
  6774. return x.finally(E).catch(function() {
  6775. return null;
  6776. }), x;
  6777. }, g.prototype.destruct = function() {
  6778. var w = this;
  6779. if (!this.isInDestruct && (this.setStatus(p.STATUSES.beforeDestruct), this.__elementToPlace.clear(), this.editor)) {
  6780. var C = this.getEditorValue();
  6781. this.storage.clear(), this.buffer.clear(), this.commands.clear(), this.__selectionLocked = null, this.e.off(this.ow, "resize"), this.e.off(this.ow), this.e.off(this.od), this.e.off(this.od.body), this.places.forEach(function(S) {
  6782. var j = S.container, E = S.workplace, x = S.statusbar, k = S.element, I = S.iframe, M = S.editor, T = S.history;
  6783. if (k !== j) if (k.hasAttribute(r)) {
  6784. var O = (0, d.attr)(k, r);
  6785. O && (k.style.display = O, k.removeAttribute(r));
  6786. } else k.style.display = "";
  6787. else k.hasAttribute(i) && (k.className = (0, d.attr)(k, i) || "", k.removeAttribute(i));
  6788. k.hasAttribute("style") && !(0, d.attr)(k, "style") && k.removeAttribute("style"), x.destruct(), w.e.off(j), w.e.off(k), w.e.off(M), p.Dom.safeRemove(E), p.Dom.safeRemove(M), j !== k && p.Dom.safeRemove(j), Object.defineProperty(k, "component", { enumerable: !1, configurable: !0, value: null }), p.Dom.safeRemove(I), j === k && (k.innerHTML = C), T.destruct();
  6789. }), this.places.length = 0, this.currentPlace = {}, delete u.instances[this.id], y.prototype.destruct.call(this);
  6790. }
  6791. }, g.fatMode = !1, g.plugins = u.pluginSystem, g.modules = u.modules, g.ns = u.modules, g.decorators = {}, g.constants = h, g.instances = u.instances, g.lang = s.lang, g.core = { Plugin: p.Plugin }, n.__decorate([f.cache], g.prototype, "uploader", null), n.__decorate([f.cache], g.prototype, "filebrowser", null), n.__decorate([(0, f.throttle)()], g.prototype, "synchronizeValues", null), n.__decorate([(0, f.watch)(":internalChange")], g.prototype, "updateElementValue", null), n.__decorate([f.autobind], g.prototype, "__prepareWYSIWYGEditor", null), b = n.__decorate([(0, f.derive)(l.Dlgs)], g);
  6792. }(p.ViewWithToolbar);
  6793. function m(y, g) {
  6794. y && y.split(/\s+/).forEach(function(b) {
  6795. return g.classList.add(b);
  6796. });
  6797. }
  6798. t.Jodit = c;
  6799. }, 26435: function(_, t, e) {
  6800. Object.defineProperty(t, "__esModule", { value: !0 });
  6801. var n = e(10172), v = {}, h = e(90643), p = e(52532), d = e(75178), a = e(51048), s = e(22999), u = e(34145), f = e(40272), l = e(2978), o = e(99113), r = e(51923), i = e(21268), c = e(37289), m = e(17084), y = e(96891), g = e(31211), b = e(31109), w = e(79375), C = e(21042), S = e(73895);
  6802. v = { ar: h, cs_cz: p, de: d, en: a, es: s, fr: u, he: f, hu: l, id: o, it: r, ja: i, ko: c, nl: m, pl: y, pt_br: g, ru: b, tr: w, zh_cn: C, zh_tw: S };
  6803. var j = e(11399), E = function(k) {
  6804. return k ? k.default || k : {};
  6805. }, x = {};
  6806. (0, n.isArray)(E(j)) && E(j).forEach(function(k, I) {
  6807. x[I] = k;
  6808. }), Object.keys(v).forEach(function(k) {
  6809. var I = E(v[k]);
  6810. (0, n.isArray)(I) ? (v[k] = {}, I.forEach(function(M, T) {
  6811. v[k][x[T]] = M;
  6812. })) : v[k] = I;
  6813. }), t.default = v;
  6814. }, 60403: function(_, t, e) {
  6815. Object.defineProperty(t, "__esModule", { value: !0 }), t.ContextMenu = void 0;
  6816. var n = e(20255);
  6817. e(47086);
  6818. var v = e(35799), h = e(96516), p = e(10172), d = e(11441), a = function(s) {
  6819. function u() {
  6820. return s !== null && s.apply(this, arguments) || this;
  6821. }
  6822. return n.__extends(u, s), u.prototype.className = function() {
  6823. return "ContextMenu";
  6824. }, u.prototype.show = function(f, l, o) {
  6825. var r = this, i = this, c = this.j.c.div(this.getFullElName("actions"));
  6826. (0, p.isArray)(o) && (o.forEach(function(m) {
  6827. if (m) {
  6828. var y = (0, h.Button)(r.jodit, m.icon || "empty", m.title);
  6829. r.jodit && y.setParentView(r.jodit), y.setMod("context", "menu"), y.onAction(function(g) {
  6830. var b;
  6831. return (b = m.exec) === null || b === void 0 || b.call(i, g), i.close(), !1;
  6832. }), c.appendChild(y.container);
  6833. }
  6834. }), this.setContent(c).open(function() {
  6835. return { left: f, top: l, width: 0, height: 0 };
  6836. }, !0));
  6837. }, n.__decorate([d.component], u);
  6838. }(v.Popup);
  6839. t.ContextMenu = a;
  6840. }, 97528: function(_, t, e) {
  6841. Object.defineProperty(t, "__esModule", { value: !0 }), t.Alert = void 0;
  6842. var n = e(6690), v = e(40332), h = e(64968), p = e(2074);
  6843. t.Alert = function(d, a, s, u) {
  6844. u === void 0 && (u = "jodit-dialog_alert"), (0, v.isFunction)(a) && (s = a, a = void 0);
  6845. var f = this instanceof n.Dialog ? this : new n.Dialog(), l = f.c.div(u), o = (0, p.Button)(f, "ok", "Ok");
  6846. return (0, v.asArray)(d).forEach(function(r) {
  6847. l.appendChild(h.Dom.isNode(r) ? r : f.c.fromHTML(r));
  6848. }), o.onAction(function() {
  6849. s && (0, v.isFunction)(s) && s(f) === !1 || f.close();
  6850. }), f.setFooter([o]), f.open(l, a || "&nbsp;", !0, !0), o.focus(), f;
  6851. };
  6852. }, 47360: function(_, t, e) {
  6853. Object.defineProperty(t, "__esModule", { value: !0 }), t.Confirm = void 0;
  6854. var n = e(6690), v = e(42096), h = e(96031);
  6855. t.Confirm = function(p, d, a) {
  6856. var s = this instanceof n.Dialog ? this : new n.Dialog(), u = s.c.fromHTML('<form class="jodit-dialog_prompt"></form>'), f = s.c.element("label");
  6857. (0, v.isFunction)(d) && (a = d, d = void 0), f.appendChild(s.c.fromHTML(p)), u.appendChild(f);
  6858. var l = function(i) {
  6859. return function() {
  6860. a && a(i) === !1 || s.close();
  6861. };
  6862. }, o = (0, h.Button)(s, "cancel", "Cancel"), r = (0, h.Button)(s, "ok", "Yes");
  6863. return o.onAction(l(!1)), r.onAction(l(!0)), s.e.on(u, "submit", function() {
  6864. return l(!0)(), !1;
  6865. }), s.setFooter([r, o]), s.open(u, d || "&nbsp;", !0, !0), r.focus(), s;
  6866. };
  6867. }, 6690: function(_, t, e) {
  6868. Object.defineProperty(t, "__esModule", { value: !0 }), t.Dialog = void 0;
  6869. var n = e(20255);
  6870. e(16462);
  6871. var v = e(93166), h = e(86893), p = e(40332), d = (e(52378), e(43608)), a = e(64968), s = e(56562), u = e(17332), f = e(43441), l = e(75902), o = e(2074), r = e(71014);
  6872. v.Config.prototype.dialog = { namespace: "", extraButtons: [], resizable: !0, draggable: !0, buttons: ["dialog.close"], removeButtons: [], toolbarButtonSize: "middle", zIndex: "inherit" }, v.Config.prototype.controls.dialog = { close: { icon: "cancel", exec: function(c) {
  6873. c.close();
  6874. } } };
  6875. var i = function(c) {
  6876. function m(y) {
  6877. y === void 0 && (y = {});
  6878. var g = c.call(this, y) || this;
  6879. g.destroyAfterClose = !1, g.moved = !1, g.resizable = !1, g.draggable = !1, g.startX = 0, g.startY = 0, g.startPoint = { x: 0, y: 0, w: 0, h: 0 }, g.lockSelect = function() {
  6880. g.setMod("moved", !0);
  6881. }, g.unlockSelect = function() {
  6882. g.setMod("moved", !1);
  6883. }, g.onResize = function() {
  6884. g.options && g.o.resizable && !g.moved && g.isOpened && !g.offsetX && !g.offsetY && g.setPosition();
  6885. }, g.isModal = !1, g.isOpened = !1;
  6886. var b = g;
  6887. b.options = (0, p.ConfigProto)(y, (0, p.ConfigProto)(v.Config.prototype.dialog, l.View.defaultOptions)), a.Dom.safeRemove(b.container);
  6888. var w = g.getFullElName.bind(g);
  6889. b.container = g.c.fromHTML('<div class="jodit jodit-dialog '.concat(g.componentName, `">
  6890. <div class="`).concat(w("overlay"), `"></div>
  6891. <div class="`).concat(g.getFullElName("panel"), `">
  6892. <div class="`).concat(w("header"), `">
  6893. <div class="`).concat(w("header-title"), `"></div>
  6894. <div class="`).concat(w("header-toolbar"), `"></div>
  6895. </div>
  6896. <div class="`).concat(w("content"), `"></div>
  6897. <div class="`).concat(w("footer"), `"></div>
  6898. <div class="`).concat(w("resizer"), '">').concat(o.Icon.get("resize_handler"), `</div>
  6899. </div>
  6900. </div>`)), g.o.zIndex && (g.container.style.zIndex = g.o.zIndex.toString()), (0, p.attr)(b.container, "role", "dialog"), Object.defineProperty(b.container, "component", { value: g }), b.setMod("theme", b.o.theme || "default").setMod("resizable", !!b.o.resizable);
  6901. var C = b.getElm("panel"), S = b.getElm("resizer"), j = b.getElm("header-title"), E = b.getElm("content"), x = b.getElm("footer"), k = b.getElm("header-toolbar");
  6902. g.message.destruct(), g.message = new r.UIMessages(g, C), g.dialog = C, g.resizer = S, g.dialogbox_header = j, g.dialogbox_content = E, g.dialogbox_footer = x, g.dialogbox_toolbar = k, (0, p.css)(b.dialog, { maxWidth: b.options.maxWidth, minHeight: b.options.minHeight, minWidth: b.options.minWidth });
  6903. var I = b.getElm("header");
  6904. I && b.e.on(I, "pointerdown touchstart", b.onHeaderMouseDown), b.e.on(b.resizer, "mousedown touchstart", b.onResizerMouseDown);
  6905. var M = u.pluginSystem.get("fullsize");
  6906. return (0, p.isFunction)(M) && M(b), g.e.on(b.container, "close_dialog", b.close).on(g.ow, "keydown", g.onEsc).on(g.ow, "resize", g.onResize), g;
  6907. }
  6908. return n.__extends(m, c), m.prototype.className = function() {
  6909. return "Dialog";
  6910. }, Object.defineProperty(m.prototype, "destination", { get: function() {
  6911. var y;
  6912. return (y = this.o.shadowRoot) !== null && y !== void 0 ? y : this.od.body;
  6913. }, enumerable: !1, configurable: !0 }), m.prototype.setElements = function(y, g) {
  6914. var b = this, w = [];
  6915. (0, p.asArray)(g).forEach(function(C) {
  6916. if ((0, p.isArray)(C)) {
  6917. var S = b.c.div(b.getFullElName("column"));
  6918. return w.push(S), y.appendChild(S), b.setElements(S, C);
  6919. }
  6920. var j;
  6921. j = (0, p.isString)(C) ? b.c.fromHTML(C) : (0, p.hasContainer)(C) ? C.container : C, w.push(j), j.parentNode !== y && y.appendChild(j);
  6922. }), (0, p.toArray)(y.childNodes).forEach(function(C) {
  6923. w.indexOf(C) === -1 && y.removeChild(C);
  6924. });
  6925. }, m.prototype.onMouseUp = function() {
  6926. (this.draggable || this.resizable) && (this.removeGlobalResizeListeners(), this.draggable = !1, this.resizable = !1, this.unlockSelect(), this.e && (this.removeGlobalResizeListeners(), this.e.fire(this, "endResize endMove")));
  6927. }, m.prototype.onHeaderMouseDown = function(y) {
  6928. var g = y.target;
  6929. !this.o.draggable || g && g.nodeName.match(/^(INPUT|SELECT)$/) || (this.draggable = !0, this.startX = y.clientX, this.startY = y.clientY, this.startPoint.x = (0, p.css)(this.dialog, "left"), this.startPoint.y = (0, p.css)(this.dialog, "top"), this.setMaxZIndex(), y.cancelable && y.preventDefault(), this.lockSelect(), this.addGlobalResizeListeners(), this.e && this.e.fire(this, "startMove"));
  6930. }, m.prototype.onMouseMove = function(y) {
  6931. this.draggable && this.o.draggable && (this.setPosition(this.startPoint.x + y.clientX - this.startX, this.startPoint.y + y.clientY - this.startY), this.e && this.e.fire(this, "move", y.clientX - this.startX, y.clientY - this.startY), y.stopImmediatePropagation()), this.resizable && this.o.resizable && (this.setSize(this.startPoint.w + y.clientX - this.startX, this.startPoint.h + y.clientY - this.startY), this.e && this.e.fire(this, "resizeDialog", y.clientX - this.startX, y.clientY - this.startY));
  6932. }, m.prototype.onEsc = function(y) {
  6933. if (this.isOpened && y.key === h.KEY_ESC && this.getMod("static") !== !0) {
  6934. var g = this.getMaxZIndexDialog();
  6935. g ? g.close() : this.close(), y.stopImmediatePropagation();
  6936. }
  6937. }, m.prototype.onResizerMouseDown = function(y) {
  6938. this.resizable = !0, this.startX = y.clientX, this.startY = y.clientY, this.startPoint.w = this.dialog.offsetWidth, this.startPoint.h = this.dialog.offsetHeight, this.lockSelect(), this.addGlobalResizeListeners(), this.e && this.e.fire(this, "startResize");
  6939. }, m.prototype.addGlobalResizeListeners = function() {
  6940. var y = this;
  6941. y.e.on(y.ow, "pointermove touchmove", y.onMouseMove).on(y.ow, "pointerup touchend", y.onMouseUp);
  6942. }, m.prototype.removeGlobalResizeListeners = function() {
  6943. var y = this;
  6944. y.e.off(y.ow, "mousemove pointermove", y.onMouseMove).off(y.ow, "mouseup pointerup", y.onMouseUp);
  6945. }, m.prototype.setSize = function(y, g) {
  6946. return y == null && (y = this.dialog.offsetWidth), g == null && (g = this.dialog.offsetHeight), (0, p.css)(this.dialog, { width: y, height: g }), this;
  6947. }, m.prototype.calcAutoSize = function() {
  6948. return this.setSize("auto", "auto"), this.setSize(), this;
  6949. }, m.prototype.setPosition = function(y, g) {
  6950. var b = this.ow.innerWidth / 2 - this.dialog.offsetWidth / 2, w = this.ow.innerHeight / 2 - this.dialog.offsetHeight / 2;
  6951. return 0 > b && (b = 0), 0 > w && (w = 0), y !== void 0 && g !== void 0 && (this.offsetX = y, this.offsetY = g, this.moved = Math.abs(y - b) > 100 || Math.abs(g - w) > 100), this.dialog.style.left = (y || b) + "px", this.dialog.style.top = (g || w) + "px", this;
  6952. }, m.prototype.setHeader = function(y) {
  6953. return this.setElements(this.dialogbox_header, y), this;
  6954. }, m.prototype.setContent = function(y) {
  6955. return this.setElements(this.dialogbox_content, y), this;
  6956. }, m.prototype.setFooter = function(y) {
  6957. return this.setElements(this.dialogbox_footer, y), this.setMod("footer", !!y), this;
  6958. }, m.prototype.getZIndex = function() {
  6959. return parseInt((0, p.css)(this.container, "zIndex"), 10) || 0;
  6960. }, m.prototype.getMaxZIndexDialog = function() {
  6961. var y, g, b = 0, w = this;
  6962. return (0, p.$$)(".jodit-dialog", this.destination).forEach(function(C) {
  6963. y = C.component, g = parseInt((0, p.css)(C, "zIndex"), 10), y.isOpened && !isNaN(g) && g > b && (w = y, b = g);
  6964. }), w;
  6965. }, m.prototype.setMaxZIndex = function() {
  6966. if (!this.getMod("static")) {
  6967. var y = 20000004, g = 0;
  6968. (0, p.$$)(".jodit-dialog", this.destination).forEach(function(b) {
  6969. g = parseInt((0, p.css)(b, "zIndex"), 10), y = Math.max(isNaN(g) ? 0 : g, y);
  6970. }), this.container.style.zIndex = (y + 1).toString();
  6971. }
  6972. }, m.prototype.toggleFullSize = function(y) {
  6973. (0, p.isVoid)(y) && (y = !this.getMod("fullsize")), this.setMod("fullsize", y), c.prototype.toggleFullSize.call(this, y);
  6974. }, m.prototype.open = function(y, g, b, w) {
  6975. if (u.eventEmitter.fire("closeAllPopups hideHelpers"), this.e.fire(this, "beforeOpen") === !1) return this;
  6976. (0, p.isBoolean)(y) && (b = y), (0, p.isBoolean)(g) && (w = g), this.destroyAfterClose = b === !0;
  6977. var C = (0, p.isBoolean)(y) ? void 0 : y, S = (0, p.isBoolean)(g) ? void 0 : g;
  6978. return S !== void 0 && this.setHeader(S), C && this.setContent(C), this.setMod("active", !0), this.isOpened = !0, this.setModal(w), this.destination.appendChild(this.container), this.getMod("static") !== !0 ? (this.setPosition(this.offsetX, this.offsetY), this.setMaxZIndex()) : this.container.style.removeProperty("z-index"), this.o.fullsize && this.toggleFullSize(!0), this.e.fire("afterOpen", this), this;
  6979. }, m.prototype.setModal = function(y) {
  6980. return this.isModal = !!y, this.setMod("modal", this.isModal), this;
  6981. }, m.prototype.close = function() {
  6982. return this.isDestructed || !this.isOpened || this.getMod("static") === !0 || this.e.fire("beforeClose", this) === !1 || (this.setMod("active", !1), this.isOpened = !1, this.isFullSize && this.toggleFullSize(!1), a.Dom.safeRemove(this.container), this.removeGlobalResizeListeners(), this.destroyAfterClose && this.destruct(), this.e.fire(this, "afterClose"), this.e.fire(this.ow, "joditCloseDialog")), this;
  6983. }, m.prototype.buildToolbar = function() {
  6984. this.o.buttons && this.toolbar.build((0, p.splitArray)(this.o.buttons)).setMod("mode", "header").appendTo(this.dialogbox_toolbar);
  6985. }, m.prototype.destruct = function() {
  6986. this.isInDestruct || (this.setStatus(s.STATUSES.beforeDestruct), this.isOpened && this.close(), this.events && (this.removeGlobalResizeListeners(), this.events.off(this.container, "close_dialog", self.close).off(this.ow, "keydown", this.onEsc).off(this.ow, "resize", this.onResize)), c.prototype.destruct.call(this));
  6987. }, n.__decorate([f.autobind], m.prototype, "onMouseUp", null), n.__decorate([f.autobind], m.prototype, "onHeaderMouseDown", null), n.__decorate([f.autobind], m.prototype, "onMouseMove", null), n.__decorate([f.autobind], m.prototype, "onEsc", null), n.__decorate([f.autobind], m.prototype, "onResizerMouseDown", null), n.__decorate([f.autobind], m.prototype, "close", null), n.__decorate([(0, f.hook)("ready")], m.prototype, "buildToolbar", null), n.__decorate([f.component], m);
  6988. }(d.ViewWithToolbar);
  6989. t.Dialog = i;
  6990. }, 92080: function(_, t, e) {
  6991. Object.defineProperty(t, "__esModule", { value: !0 }), t.Confirm = t.Prompt = t.Alert = t.Dialog = void 0;
  6992. var n = e(6690);
  6993. Object.defineProperty(t, "Dialog", { enumerable: !0, get: function() {
  6994. return n.Dialog;
  6995. } });
  6996. var v = e(97528);
  6997. Object.defineProperty(t, "Alert", { enumerable: !0, get: function() {
  6998. return v.Alert;
  6999. } });
  7000. var h = e(35789);
  7001. Object.defineProperty(t, "Prompt", { enumerable: !0, get: function() {
  7002. return h.Prompt;
  7003. } });
  7004. var p = e(47360);
  7005. Object.defineProperty(t, "Confirm", { enumerable: !0, get: function() {
  7006. return p.Confirm;
  7007. } });
  7008. }, 35789: function(_, t, e) {
  7009. Object.defineProperty(t, "__esModule", { value: !0 }), t.Prompt = void 0;
  7010. var n = e(92080), v = e(2074), h = e(40332);
  7011. t.Prompt = function(p, d, a, s, u) {
  7012. var f = this instanceof n.Dialog ? this : new n.Dialog(), l = (0, v.Button)(f, "cancel", "Cancel"), o = (0, v.Button)(f, "ok", "Ok"), r = f.c.element("form", { class: "jodit-dialog_prompt" }), i = f.c.element("input", { autofocus: !0, class: "jodit-input" }), c = f.c.element("label");
  7013. (0, h.isFunction)(d) && (a = d, d = void 0), s && (0, h.attr)(i, "placeholder", s), c.appendChild(f.c.text(p)), r.appendChild(c), r.appendChild(i), l.onAction(f.close);
  7014. var m = function() {
  7015. a && (0, h.isFunction)(a) && a(i.value) === !1 || f.close();
  7016. };
  7017. return o.onAction(m), f.e.on(r, "submit", function() {
  7018. return m(), !1;
  7019. }), f.setFooter([o, l]), f.open(r, d || "&nbsp;", !0, !0), i.focus(), u !== void 0 && u.length && (i.value = u, i.select()), f;
  7020. };
  7021. }, 34468: function(_, t, e) {
  7022. Object.defineProperty(t, "__esModule", { value: !0 });
  7023. var n = e(20255), v = e(64968), h = e(40332), p = e(46341), d = e(2074), a = e(21347), s = e(35503), u = e(66267), f = e(36303), l = e(48096), o = "jodit-filebrowser-preview", r = function(i, c) {
  7024. return i === void 0 && (i = "next"), c === void 0 && (c = "right"), '<div class="'.concat(o, "__navigation ").concat(o, "__navigation_arrow_").concat(i, '">') + "" + d.Icon.get("angle-" + c) + "</a>";
  7025. };
  7026. t.default = function(i) {
  7027. if (!i.o.contextMenu) return function() {
  7028. };
  7029. var c = (0, p.makeContextMenu)(i);
  7030. return function(m) {
  7031. var y = (0, a.getItem)(m.target, i.container);
  7032. if (y) {
  7033. var g = y, b = i.options, w = function(C) {
  7034. return (0, h.attr)(g, C) || "";
  7035. };
  7036. return i.async.setTimeout(function() {
  7037. var C = (0, a.elementToItem)(y, (0, u.elementsMap)(i));
  7038. C && (i.state.activeElements = [C], c.show(m.clientX, m.clientY, [!(w("data-is-file") === "1" || !b.editImage || !i.dataProvider.canI("ImageResize") && !i.dataProvider.canI("ImageCrop")) && { icon: "pencil", title: "Edit", exec: function() {
  7039. return s.openImageEditor.call(i, w("href"), w("data-name"), w("data-path"), w("data-source"));
  7040. } }, !!i.dataProvider.canI("FileRename") && { icon: "italic", title: "Rename", exec: function() {
  7041. i.e.fire("fileRename.filebrowser", w("data-name"), w("data-path"), w("data-source"));
  7042. } }, !!i.dataProvider.canI("FileRemove") && { icon: "bin", title: "Delete", exec: function() {
  7043. return n.__awaiter(void 0, void 0, Promise, function() {
  7044. var S;
  7045. return n.__generator(this, function(j) {
  7046. switch (j.label) {
  7047. case 0:
  7048. return j.trys.push([0, 2, , 3]), [4, (0, l.deleteFile)(i, w("data-name"), w("data-source"))];
  7049. case 1:
  7050. return j.sent(), [3, 3];
  7051. case 2:
  7052. return S = j.sent(), [2, i.status(S)];
  7053. case 3:
  7054. return i.state.activeElements = [], [2, (0, f.loadTree)(i).catch(i.status)];
  7055. }
  7056. });
  7057. });
  7058. } }, !!b.preview && { icon: "eye", title: "Preview", exec: function() {
  7059. var S = i.dlg({ buttons: ["fullsize", "dialog.close"] }), j = i.c.div(o, '<div class="jodit-icon_loader"></div>'), E = i.c.div(o + "__box"), x = i.c.fromHTML(r()), k = i.c.fromHTML(r("prev", "left")), I = function(M) {
  7060. var T = i.c.element("img");
  7061. T.setAttribute("src", M);
  7062. var O = function() {
  7063. var L;
  7064. i.isInDestruct || (i.e.off(T, "load"), v.Dom.detach(j), b.showPreviewNavigation && (v.Dom.prevWithClass(g, i.files.getFullElName("item")) && j.appendChild(k), v.Dom.nextWithClass(g, i.files.getFullElName("item")) && j.appendChild(x)), j.appendChild(E), E.appendChild(T), S.setPosition(), (L = i == null ? void 0 : i.events) === null || L === void 0 || L.fire("previewOpenedAndLoaded"));
  7065. };
  7066. i.e.on(T, "load", O), T.complete && O();
  7067. };
  7068. i.e.on([x, k], "click", function() {
  7069. if (!(g = this === x ? v.Dom.nextWithClass(g, i.files.getFullElName("item")) : v.Dom.prevWithClass(g, i.files.getFullElName("item")))) throw (0, h.error)("Need element");
  7070. v.Dom.detach(j), v.Dom.detach(E), j.innerHTML = '<div class="jodit-icon_loader"></div>', I(w("href"));
  7071. }), i.e.on("beforeDestruct", function() {
  7072. S.destruct();
  7073. }), S.container.classList.add(o + "__dialog"), S.setContent(j), S.setPosition(), S.open(), I(w("href")), i.events.on("beforeDestruct", function() {
  7074. S.destruct();
  7075. }).fire("previewOpened");
  7076. } }, { icon: "upload", title: "Download", exec: function() {
  7077. var S = w("href");
  7078. S && i.ow.open(S);
  7079. } }]));
  7080. }, i.defaultTimeout), i.e.on("beforeClose", function() {
  7081. return c.close();
  7082. }).on("beforeDestruct", function() {
  7083. return c.destruct();
  7084. }), m.stopPropagation(), m.preventDefault(), !1;
  7085. }
  7086. };
  7087. };
  7088. }, 66267: function(_, t) {
  7089. Object.defineProperty(t, "__esModule", { value: !0 }), t.elementsMap = void 0;
  7090. var e = /* @__PURE__ */ new WeakMap();
  7091. t.elementsMap = function(n) {
  7092. var v = e.get(n);
  7093. return v || e.set(n, v = {}), v;
  7094. };
  7095. }, 63511: function(_, t, e) {
  7096. Object.defineProperty(t, "__esModule", { value: !0 }), t.FileBrowserItem = void 0;
  7097. var n = e(40332), v = function() {
  7098. function h(p) {
  7099. var d = this;
  7100. this.data = p, Object.keys(p).forEach(function(a) {
  7101. d[a] = p[a];
  7102. });
  7103. }
  7104. return h.create = function(p) {
  7105. return p instanceof h ? p : new h(p);
  7106. }, Object.defineProperty(h.prototype, "path", { get: function() {
  7107. return (0, n.normalizePath)(this.data.source.path ? this.data.source.path + "/" : "/");
  7108. }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "imageURL", { get: function() {
  7109. var p = this.time || (/* @__PURE__ */ new Date()).getTime().toString(), d = this.data, a = d.source, s = d.thumb || d.file;
  7110. return d.thumbIsAbsolute && s ? s : (0, n.normalizeUrl)(a.baseurl, a.path, s || "") + "?_tmst=" + encodeURIComponent(p);
  7111. }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "fileURL", { get: function() {
  7112. var p = this.data.name, d = this.data, a = d.file, s = d.source;
  7113. return a !== void 0 && (p = a), d.fileIsAbsolute && p ? p : (0, n.normalizeUrl)(s.baseurl, s.path, p || "");
  7114. }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "time", { get: function() {
  7115. var p = this.data.changed;
  7116. return p && (typeof p == "number" ? new Date(p).toLocaleString() : p) || "";
  7117. }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "uniqueHashKey", { get: function() {
  7118. var p = this.data;
  7119. return [p.sourceName, p.name, p.file, this.time, p.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g, "-");
  7120. }, enumerable: !1, configurable: !0 }), h.prototype.toJSON = function() {
  7121. return this.data;
  7122. }, h;
  7123. }();
  7124. t.FileBrowserItem = v;
  7125. }, 38097: function(_, t, e) {
  7126. Object.defineProperty(t, "__esModule", { value: !0 });
  7127. var n = e(20255), v = e(93166), h = e(10172), p = e(41374), d = e(6102);
  7128. v.Config.prototype.filebrowser = { namespace: "", extraButtons: [], filter: function(a, s) {
  7129. return s = s.toLowerCase(), (0, h.isString)(a) ? a.toLowerCase().indexOf(s) !== -1 : (0, h.isString)(a.name) ? a.name.toLowerCase().indexOf(s) !== -1 : !(0, h.isString)(a.file) || a.file.toLowerCase().indexOf(s) !== -1;
  7130. }, sortBy: "changed-desc", sort: function(a, s, u) {
  7131. var f = n.__read(u.toLowerCase().split("-"), 2), l = f[0], o = f[1] === "asc", r = function(m, y) {
  7132. return y > m ? o ? -1 : 1 : m > y ? o ? 1 : -1 : 0;
  7133. };
  7134. if ((0, h.isString)(a)) return r(a.toLowerCase(), s.toLowerCase());
  7135. if (a[l] === void 0 || l === "name") return (0, h.isString)(a.name) ? r(a.name.toLowerCase(), s.name.toLowerCase()) : (0, h.isString)(a.file) ? r(a.file.toLowerCase(), s.file.toLowerCase()) : 0;
  7136. switch (l) {
  7137. case "changed":
  7138. var i = new Date(a.changed).getTime(), c = new Date(s.changed).getTime();
  7139. return o ? i - c : c - i;
  7140. case "size":
  7141. return i = (0, d.humanSizeToBytes)(a.size), c = (0, d.humanSizeToBytes)(s.size), o ? i - c : c - i;
  7142. }
  7143. return 0;
  7144. }, editImage: !0, preview: !0, showPreviewNavigation: !0, showSelectButtonInPreview: !0, contextMenu: !0, howLongShowMsg: 3e3, createNewFolder: !0, deleteFolder: !0, renameFolder: !0, moveFolder: !0, moveFile: !0, permissionsPresets: { allowFileDownload: void 0, allowFileMove: void 0, allowFileRemove: void 0, allowFileRename: void 0, allowFileUpload: void 0, allowFileUploadRemote: void 0, allowFiles: void 0, allowFolderCreate: void 0, allowFolderMove: void 0, allowFolderRemove: void 0, allowFolderRename: void 0, allowFolderTree: void 0, allowFolders: void 0, allowGeneratePdf: void 0, allowImageCrop: void 0, allowImageResize: void 0 }, showFoldersPanel: !0, storeLastOpenedFolder: !0, width: 859, height: 400, buttons: ["filebrowser.upload", "filebrowser.remove", "filebrowser.update", "filebrowser.select", "filebrowser.edit", "|", "filebrowser.tiles", "filebrowser.list", "|", "filebrowser.filter", "|", "filebrowser.sort"], removeButtons: [], fullsize: !1, showTooltip: !0, view: null, isSuccess: function(a) {
  7145. return a.success;
  7146. }, getMessage: function(a) {
  7147. return a.data.messages !== void 0 && (0, h.isArray)(a.data.messages) ? a.data.messages.join(" ") : "";
  7148. }, showFileName: !0, showFileSize: !0, showFileChangeTime: !0, saveStateInStorage: { storeLastOpenedFolder: !0, storeView: !0, storeSortBy: !0 }, pixelOffsetLoadNewChunk: 200, getThumbTemplate: function(a, s, u) {
  7149. var f = this.options, l = this.files.getFullElName("item"), o = f.showFileName, r = f.showFileSize && a.size, i = f.showFileChangeTime && a.time, c = "";
  7150. a.file !== void 0 && (c = a.file);
  7151. var m = '<div class="'.concat(l, '-info">').concat(o ? '<span class="'.concat(l, '-info-filename">').concat(c, "</span>") : "").concat(r ? '<span class="'.concat(l, '-info-filesize">').concat(a.size, "</span>") : "").concat(i ? '<span class="'.concat(l, '-info-filechanged">').concat(i, "</span>") : "", "</div>");
  7152. return `<a
  7153. data-jodit-filebrowser-item="true"
  7154. data-is-file="`.concat(a.isImage ? 0 : 1, `"
  7155. draggable="true"
  7156. class="`).concat(l, `"
  7157. href="`).concat(a.fileURL, `"
  7158. data-source="`).concat(u, `"
  7159. data-path="`).concat(a.path, `"
  7160. data-name="`).concat(c, `"
  7161. title="`).concat(c, `"
  7162. data-url="`).concat(a.fileURL, `">
  7163. <img
  7164. data-is-file="`).concat(a.isImage ? 0 : 1, `"
  7165. data-src="`).concat(a.fileURL, `"
  7166. src="`).concat(a.imageURL, `"
  7167. alt="`).concat(c, `"
  7168. loading="lazy"
  7169. />
  7170. `).concat(o || r || i ? m : "", `
  7171. </a>`);
  7172. }, ajax: n.__assign(n.__assign({}, v.Config.prototype.defaultAjaxOptions), { url: "", data: {}, cache: !0, contentType: "application/x-www-form-urlencoded; charset=UTF-8", method: "POST", processData: !0, headers: {}, prepareData: function(a) {
  7173. return a;
  7174. }, process: function(a) {
  7175. return a;
  7176. } }), create: { data: { action: "folderCreate" } }, getLocalFileByUrl: { data: { action: "getLocalFileByUrl" } }, resize: { data: { action: "imageResize" } }, crop: { data: { action: "imageCrop" } }, fileMove: { data: { action: "fileMove" } }, folderMove: { data: { action: "folderMove" } }, fileRename: { data: { action: "fileRename" } }, folderRename: { data: { action: "folderRename" } }, fileRemove: { data: { action: "fileRemove" } }, folderRemove: { data: { action: "folderRemove" } }, items: { data: { action: "files" } }, folder: { data: { action: "folders" } }, permissions: { data: { action: "permissions" } } }, v.Config.prototype.controls.filebrowser = { upload: { icon: "plus", isInput: !0, isDisabled: function(a) {
  7177. return !a.dataProvider.canI("FileUpload");
  7178. }, getContent: function(a) {
  7179. var s = new p.UIFileInput(a, { onlyImages: a.state.onlyImages });
  7180. return a.e.fire("bindUploader.filebrowser", s.container), s.container;
  7181. } }, remove: { icon: "bin", isDisabled: function(a) {
  7182. return !a.state.activeElements.length || !a.dataProvider.canI("FileRemove");
  7183. }, exec: function(a) {
  7184. a.e.fire("fileRemove.filebrowser");
  7185. } }, update: { exec: function(a) {
  7186. a.e.fire("update.filebrowser");
  7187. } }, select: { icon: "check", isDisabled: function(a) {
  7188. return !a.state.activeElements.length;
  7189. }, exec: function(a) {
  7190. a.e.fire("select.filebrowser");
  7191. } }, edit: { icon: "pencil", isDisabled: function(a) {
  7192. var s = a.state.activeElements;
  7193. return s.length !== 1 || !s[0].isImage || !(a.dataProvider.canI("ImageCrop") || a.dataProvider.canI("ImageResize"));
  7194. }, exec: function(a) {
  7195. a.e.fire("edit.filebrowser");
  7196. } }, tiles: { icon: "th", isActive: function(a) {
  7197. return a.state.view === "tiles";
  7198. }, exec: function(a) {
  7199. a.e.fire("view.filebrowser", "tiles");
  7200. } }, list: { icon: "th-list", isActive: function(a) {
  7201. return a.state.view === "list";
  7202. }, exec: function(a) {
  7203. a.e.fire("view.filebrowser", "list");
  7204. } }, filter: { isInput: !0, getContent: function(a, s, u) {
  7205. var f = u.container.querySelector(".jodit-input");
  7206. if (f) return f;
  7207. var l = a.c.element("input", { class: "jodit-input", placeholder: a.i18n("Filter") });
  7208. return l.value = a.state.filterWord, a.e.on(l, "keydown mousedown", a.async.debounce(function() {
  7209. a.e.fire("filter.filebrowser", l.value);
  7210. }, a.defaultTimeout)), l;
  7211. } }, sort: { isInput: !0, getContent: function(a) {
  7212. var s = a.c.fromHTML('<select class="jodit-input jodit-select">' + '<option value="changed-asc">'.concat(a.i18n("Sort by changed"), " (⬆)</option>") + '<option value="changed-desc">'.concat(a.i18n("Sort by changed"), " (⬇)</option>") + '<option value="name-asc">'.concat(a.i18n("Sort by name"), " (⬆)</option>") + '<option value="name-desc">'.concat(a.i18n("Sort by name"), " (⬇)</option>") + '<option value="size-asc">'.concat(a.i18n("Sort by size"), " (⬆)</option>") + '<option value="size-desc">'.concat(a.i18n("Sort by size"), " (⬇)</option>") + "</select>");
  7213. return s.value = a.state.sortBy, a.e.on("sort.filebrowser", function(u) {
  7214. s.value !== u && (s.value = u);
  7215. }).on(s, "change", function() {
  7216. a.e.fire("sort.filebrowser", s.value);
  7217. }), s;
  7218. } } };
  7219. }, 82530: function(_, t, e) {
  7220. Object.defineProperty(t, "__esModule", { value: !0 }), t.DEFAULT_SOURCE_NAME = void 0;
  7221. var n = e(20255), v = e(40332), h = e(30056), p = e(43441), d = e(63511);
  7222. t.DEFAULT_SOURCE_NAME = "default";
  7223. var a = function() {
  7224. function s(u, f) {
  7225. this.parent = u, this.options = f, this.__currentPermissions = null, this.ajaxInstances = /* @__PURE__ */ new Map(), this.progressHandler = function(l) {
  7226. };
  7227. }
  7228. return Object.defineProperty(s.prototype, "o", { get: function() {
  7229. return this.options;
  7230. }, enumerable: !1, configurable: !0 }), s.prototype.get = function(u) {
  7231. var f = this, l = this.ajaxInstances;
  7232. if (l.has(u)) {
  7233. var o = l.get(u);
  7234. o == null || o.abort(), l.delete(u);
  7235. }
  7236. var r = (0, v.ConfigProto)(this.options[u] !== void 0 ? this.options[u] : {}, (0, v.ConfigProto)({ onProgress: this.progressHandler }, this.o.ajax));
  7237. r.prepareData && (r.data = r.prepareData.call(this, r.data));
  7238. var i = new h.Ajax(r);
  7239. l.set(u, i);
  7240. var c = i.send();
  7241. return c.finally(function() {
  7242. i.destruct(), l.delete(u), f.progressHandler(100);
  7243. }).catch(function() {
  7244. return null;
  7245. }), c.then(function(m) {
  7246. return m.json();
  7247. }).then(function(m) {
  7248. if (m && !f.isSuccess(m)) throw new Error(f.getMessage(m));
  7249. return m;
  7250. });
  7251. }, s.prototype.onProgress = function(u) {
  7252. this.progressHandler = u;
  7253. }, s.prototype.permissions = function(u, f) {
  7254. return n.__awaiter(this, void 0, Promise, function() {
  7255. var l = this;
  7256. return n.__generator(this, function(o) {
  7257. return this.o.permissions ? (this.o.permissions.data.path = u, this.o.permissions.data.source = f, this.o.permissions.url ? [2, this.get("permissions").then(function(r) {
  7258. var i = l.o.permissions.process;
  7259. if (i || (i = l.o.ajax.process), i) {
  7260. var c = i.call(self, r);
  7261. c.data.permissions && (l.__currentPermissions = c.data.permissions);
  7262. }
  7263. return l.__currentPermissions;
  7264. })] : [2, null]) : [2, null];
  7265. });
  7266. });
  7267. }, s.prototype.canI = function(u) {
  7268. var f = "allow" + u, l = this.o.permissionsPresets[f];
  7269. return l !== void 0 ? l : this.__currentPermissions == null || this.__currentPermissions[f] === void 0 || this.__currentPermissions[f];
  7270. }, s.prototype.__items = function(u, f, l, o) {
  7271. var r = this, i = this.options;
  7272. return i.items ? (i.items.data.path = u, i.items.data.source = f, i.items.data.mods = l, this.get("items").then(function(c) {
  7273. var m = r.o.items.process;
  7274. return m || (m = r.o.ajax.process), m && (c = m.call(self, c)), o(c);
  7275. })) : Promise.reject("Set Items api options");
  7276. }, s.prototype.items = function(u, f, l) {
  7277. var o = this;
  7278. return l === void 0 && (l = {}), this.__items(u, f, l, function(r) {
  7279. return o.generateItemsList(r.data.sources, l);
  7280. });
  7281. }, s.prototype.itemsEx = function(u, f, l) {
  7282. var o = this;
  7283. return l === void 0 && (l = {}), this.__items(u, f, l, function(r) {
  7284. return { items: o.generateItemsList(r.data.sources, l), loadedTotal: (i = r.data.sources, i.reduce(function(c, m) {
  7285. return c + m.files.length;
  7286. }, 0)) };
  7287. var i;
  7288. });
  7289. }, s.prototype.generateItemsList = function(u, f) {
  7290. var l = this;
  7291. f === void 0 && (f = {});
  7292. var o = [];
  7293. return u.forEach(function(r) {
  7294. if (r.files && r.files.length) {
  7295. var i = l.o.sort;
  7296. (0, v.isFunction)(i) && f.sortBy && r.files.sort(function(c, m) {
  7297. return i(c, m, f.sortBy);
  7298. }), r.files.forEach(function(c) {
  7299. (function(m) {
  7300. var y;
  7301. return !(!((y = f.filterWord) === null || y === void 0) && y.length) || l.o.filter === void 0 || l.o.filter(m, f.filterWord);
  7302. })(c) && function(m) {
  7303. return m.type === "folder" || !f.onlyImages || m.isImage === void 0 || m.isImage;
  7304. }(c) && o.push(d.FileBrowserItem.create(n.__assign(n.__assign({}, c), { sourceName: r.name, source: r })));
  7305. });
  7306. }
  7307. }), o;
  7308. }, s.prototype.tree = function(u, f) {
  7309. return n.__awaiter(this, void 0, Promise, function() {
  7310. var l = this;
  7311. return n.__generator(this, function(o) {
  7312. switch (o.label) {
  7313. case 0:
  7314. return u = (0, v.normalizeRelativePath)(u), this.o.folder ? [4, this.permissions(u, f)] : [2, Promise.reject("Set Folder Api options")];
  7315. case 1:
  7316. return o.sent(), this.o.folder.data.path = u, this.o.folder.data.source = f, [2, this.get("folder").then(function(r) {
  7317. var i = l.o.folder.process;
  7318. return i || (i = l.o.ajax.process), i && (r = i.call(self, r)), r.data.sources;
  7319. })];
  7320. }
  7321. });
  7322. });
  7323. }, s.prototype.getPathByUrl = function(u) {
  7324. var f = this;
  7325. return (0, v.set)("options.getLocalFileByUrl.data.url", u, this), this.get("getLocalFileByUrl").then(function(l) {
  7326. if (f.isSuccess(l)) return l.data;
  7327. throw (0, v.error)(f.getMessage(l));
  7328. });
  7329. }, s.prototype.createFolder = function(u, f, l) {
  7330. var o = this, r = this.o.create;
  7331. if (!r) throw (0, v.error)("Set Create api options");
  7332. return r.data.source = l, r.data.path = f, r.data.name = u, this.get("create").then(function(i) {
  7333. if (o.isSuccess(i)) return !0;
  7334. throw (0, v.error)(o.getMessage(i));
  7335. });
  7336. }, s.prototype.move = function(u, f, l, o) {
  7337. var r = this, i = o ? "fileMove" : "folderMove", c = this.options[i];
  7338. if (!c) throw (0, v.error)("Set Move api options");
  7339. return c.data.from = u, c.data.path = f, c.data.source = l, this.get(i).then(function(m) {
  7340. if (r.isSuccess(m)) return !0;
  7341. throw (0, v.error)(r.getMessage(m));
  7342. });
  7343. }, s.prototype.remove = function(u, f, l, o) {
  7344. var r = this, i = this.o[u];
  7345. if (!i) throw (0, v.error)('Set "'.concat(u, '" api options'));
  7346. return i.data.path = f, i.data.name = l, i.data.source = o, this.get(u).then(function(c) {
  7347. return i.process && (c = i.process.call(r, c)), r.getMessage(c);
  7348. });
  7349. }, s.prototype.fileRemove = function(u, f, l) {
  7350. return this.remove("fileRemove", u, f, l);
  7351. }, s.prototype.folderRemove = function(u, f, l) {
  7352. return this.remove("folderRemove", u, f, l);
  7353. }, s.prototype.rename = function(u, f, l, o, r) {
  7354. var i = this, c = this.o[u];
  7355. if (!c) throw (0, v.error)('Set "'.concat(u, '" api options'));
  7356. return c.data.path = f, c.data.name = l, c.data.newname = o, c.data.source = r, this.get(u).then(function(m) {
  7357. return c.process && (m = c.process.call(self, m)), i.getMessage(m);
  7358. });
  7359. }, s.prototype.folderRename = function(u, f, l, o) {
  7360. return this.rename("folderRename", u, f, l, o);
  7361. }, s.prototype.fileRename = function(u, f, l, o) {
  7362. return this.rename("fileRename", u, f, l, o);
  7363. }, s.prototype.changeImage = function(u, f, l, o, r, i) {
  7364. this.o[u] || (this.o[u] = { data: {} });
  7365. var c = this.o[u];
  7366. return c.data === void 0 && (c.data = { action: u }), c.data.newname = r || o, i && (c.data.box = i), c.data.path = f, c.data.name = o, c.data.source = l, this.get(u).then(function() {
  7367. return !0;
  7368. });
  7369. }, s.prototype.crop = function(u, f, l, o, r) {
  7370. return this.changeImage("crop", u, f, l, o, r);
  7371. }, s.prototype.resize = function(u, f, l, o, r) {
  7372. return this.changeImage("resize", u, f, l, o, r);
  7373. }, s.prototype.getMessage = function(u) {
  7374. return this.options.getMessage(u);
  7375. }, s.prototype.isSuccess = function(u) {
  7376. return this.options.isSuccess(u);
  7377. }, s.prototype.destruct = function() {
  7378. this.ajaxInstances.forEach(function(u) {
  7379. return u.destruct();
  7380. }), this.ajaxInstances.clear();
  7381. }, n.__decorate([p.autobind], s);
  7382. }();
  7383. t.default = a;
  7384. }, 46341: function(_, t, e) {
  7385. Object.defineProperty(t, "__esModule", { value: !0 }), t.makeContextMenu = t.makeDataProvider = void 0;
  7386. var n = e(82530), v = e(60403);
  7387. t.makeDataProvider = function(h, p) {
  7388. return new n.default(h, p);
  7389. }, t.makeContextMenu = function(h) {
  7390. return new v.ContextMenu(h);
  7391. };
  7392. }, 48096: function(_, t) {
  7393. Object.defineProperty(t, "__esModule", { value: !0 }), t.deleteFile = void 0, t.deleteFile = function(e, n, v) {
  7394. return e.dataProvider.fileRemove(e.state.currentPath, n, v).then(function(h) {
  7395. e.status(h || e.i18n('File "%s" was deleted', n), !0);
  7396. }).catch(e.status);
  7397. };
  7398. }, 4253: function(_, t) {
  7399. Object.defineProperty(t, "__esModule", { value: !0 }), t.loadItems = void 0, t.loadItems = function(e) {
  7400. return e.files.setMod("active", !0), e.files.setMod("loading", !0), e.dataProvider.items(e.state.currentPath, e.state.currentSource, { sortBy: e.state.sortBy, onlyImages: e.state.onlyImages, filterWord: e.state.filterWord }).then(function(n) {
  7401. n && (e.state.elements = n, e.state.activeElements = []);
  7402. }).catch(e.status).finally(function() {
  7403. return e.files.setMod("loading", !1);
  7404. });
  7405. };
  7406. }, 36303: function(_, t, e) {
  7407. Object.defineProperty(t, "__esModule", { value: !0 }), t.loadTree = void 0;
  7408. var n = e(20255), v = e(64968), h = e(4253);
  7409. t.loadTree = function(p) {
  7410. return n.__awaiter(this, void 0, Promise, function() {
  7411. var d, a;
  7412. return n.__generator(this, function(s) {
  7413. return p.tree.setMod("active", !0), v.Dom.detach(p.tree.container), d = (0, h.loadItems)(p), p.o.showFoldersPanel ? (p.tree.setMod("loading", !0), a = p.dataProvider.tree(p.state.currentPath, p.state.currentSource).then(function(u) {
  7414. p.state.sources = u;
  7415. }).catch(p.status).finally(function() {
  7416. return p.tree.setMod("loading", !1);
  7417. }), [2, Promise.all([a, d])]) : (p.tree.setMod("active", !1), [2, d]);
  7418. });
  7419. });
  7420. };
  7421. }, 50885: function(_, t, e) {
  7422. Object.defineProperty(t, "__esModule", { value: !0 }), t.isFileBrowserFilesItem = t.FileBrowser = void 0;
  7423. var n = e(20255);
  7424. e(40692);
  7425. var v = e(93166), h = e(86893), p = e(77462), d = e(40332), a = e(64968), s = e(46341), u = e(86774), f = e(21347), l = e(44734), o = e(82530), r = e(43441), i = e(98782), c = e(55395), m = e(36303), y = e(4253), g = e(56562), b = e(59829), w = e(43608);
  7426. e(38097);
  7427. var C = function(S) {
  7428. function j(E) {
  7429. var x, k = this;
  7430. (k = S.call(this, E) || this).browser = k.c.div(k.componentName), k.status_line = k.c.div(k.getFullElName("status")), k.tree = new i.FileBrowserTree(k), k.files = new i.FileBrowserFiles(k), k.state = (0, c.observable)({ currentPath: "", currentSource: o.DEFAULT_SOURCE_NAME, currentBaseUrl: "", activeElements: [], elements: [], sources: [], view: "tiles", sortBy: "changed-desc", filterWord: "", onlyImages: !1 }), k.errorHandler = function(U) {
  7431. (0, d.isAbort)(U) || (U instanceof Error ? k.status(k.i18n(U.message)) : k.status(k.dataProvider.getMessage(U)));
  7432. }, k.close = function() {
  7433. k._dialog.close();
  7434. }, k.attachEvents(E);
  7435. var I = k;
  7436. I.options = (0, d.ConfigProto)(E || {}, v.Config.defaultOptions.filebrowser), I.storage = p.Storage.makeStorage(!!k.o.saveStateInStorage, k.componentName), I.dataProvider = (0, s.makeDataProvider)(I, I.options), I._dialog = k.dlg({ minWidth: Math.min(700, screen.width), minHeight: 300, buttons: (x = k.o.headerButtons) !== null && x !== void 0 ? x : ["fullsize", "dialog.close"] }), k.proxyDialogEvents(I), I.browser.component = k, I.container = I.browser, I.o.showFoldersPanel && I.browser.appendChild(I.tree.container), I.browser.appendChild(I.files.container), I.browser.appendChild(I.status_line), l.selfListeners.call(I), f.nativeListeners.call(I), u.stateListeners.call(I), I._dialog.setSize(I.o.width, I.o.height), ["getLocalFileByUrl", "crop", "resize", "create", "fileMove", "folderMove", "fileRename", "folderRename", "fileRemove", "folderRemove", "folder", "items", "permissions"].forEach(function(U) {
  7437. k.options[U] != null && (k.options[U] = (0, d.ConfigProto)(k.options[U], k.o.ajax));
  7438. });
  7439. var M = k.o.saveStateInStorage || { storeLastOpenedFolder: !1, storeView: !1, storeSortBy: !1 }, T = M.storeSortBy, O = M.storeLastOpenedFolder, L = M.storeView && k.storage.get("view");
  7440. I.state.view = L && k.o.view == null ? L === "list" ? "list" : "tiles" : I.o.view === "list" ? "list" : "tiles", I.files.setMod("view", I.state.view);
  7441. var N = T && I.storage.get("sortBy");
  7442. if (N) {
  7443. var H = N.split("-");
  7444. I.state.sortBy = ["changed", "name", "size"].includes(H[0]) ? N : "changed-desc";
  7445. } else I.state.sortBy = I.o.sortBy || "changed-desc";
  7446. if (O) {
  7447. var q = I.storage.get("currentPath"), F = I.storage.get("currentSource");
  7448. I.state.currentPath = q != null ? q : "", I.state.currentSource = F != null ? F : "";
  7449. }
  7450. return I.initUploader(I), I.setStatus(g.STATUSES.ready), k;
  7451. }
  7452. return n.__extends(j, S), j.prototype.className = function() {
  7453. return "Filebrowser";
  7454. }, j.prototype.onSelect = function(E) {
  7455. var x = this;
  7456. return function() {
  7457. if (x.state.activeElements.length) {
  7458. var k = [], I = [];
  7459. x.state.activeElements.forEach(function(T) {
  7460. var O = T.fileURL;
  7461. O && (k.push(O), I.push(T.isImage || !1));
  7462. }), x.close();
  7463. var M = { baseurl: "", files: k, isImages: I };
  7464. (0, d.isFunction)(E) && E(M), x.close();
  7465. }
  7466. return !1;
  7467. };
  7468. }, Object.defineProperty(j.prototype, "isOpened", { get: function() {
  7469. return this._dialog.isOpened && this.browser.style.display !== "none";
  7470. }, enumerable: !1, configurable: !0 }), j.prototype.status = function(E, x) {
  7471. E && !(0, d.isAbort)(E) && ((0, d.isString)(E) || (E = E.message), (0, d.isString)(E) && (0, d.trim)(E).length && this.message.message(E, x ? "success" : "error", this.o.howLongShowMsg));
  7472. }, j.prototype.open = function(E, x) {
  7473. var k = this;
  7474. return E === void 0 && (E = this.o.defaultCallback), x === void 0 && (x = !1), this.state.onlyImages = x, this.async.promise(function(I, M) {
  7475. if (!k.o.items || !k.o.items.url) throw (0, d.error)("Need set options.filebrowser.ajax.url");
  7476. var T = 0;
  7477. k.e.off(k.files.container, "dblclick").on(k.files.container, "dblclick", k.onSelect(E)).on(k.files.container, "touchstart", function() {
  7478. var L = (/* @__PURE__ */ new Date()).getTime();
  7479. h.EMULATE_DBLCLICK_TIMEOUT > L - T && k.onSelect(E)(), T = L;
  7480. }).off("select.filebrowser").on("select.filebrowser", k.onSelect(E));
  7481. var O = k.c.div();
  7482. k.toolbar.build(k.__getButtons()).appendTo(O), k._dialog.open(k.browser, O), k.e.fire("sort.filebrowser", k.state.sortBy), (0, m.loadTree)(k).then(I, M);
  7483. });
  7484. }, j.prototype.__getButtons = function() {
  7485. var E, x = this;
  7486. return ((E = this.o.buttons) !== null && E !== void 0 ? E : []).filter(function(k) {
  7487. if (!(0, d.isString)(k)) return !0;
  7488. switch (k) {
  7489. case "filebrowser.upload":
  7490. return x.dataProvider.canI("FileUpload");
  7491. case "filebrowser.edit":
  7492. return x.dataProvider.canI("ImageResize") || x.dataProvider.canI("ImageCrop");
  7493. case "filebrowser.remove":
  7494. return x.dataProvider.canI("FileRemove");
  7495. }
  7496. return !0;
  7497. });
  7498. }, j.prototype.initUploader = function(E) {
  7499. var x, k = this, I = this, M = (x = E == null ? void 0 : E.options) === null || x === void 0 ? void 0 : x.uploader, T = (0, d.ConfigProto)(M || {}, v.Config.defaultOptions.uploader), O = function() {
  7500. return (0, y.loadItems)(k);
  7501. };
  7502. I.uploader = I.getInstance("Uploader", T), I.uploader.setPath(I.state.currentPath).setSource(I.state.currentSource).bind(I.browser, O, I.errorHandler), this.state.on(["change.currentPath", "change.currentSource"], function() {
  7503. k.uploader.setPath(k.state.currentPath).setSource(k.state.currentSource);
  7504. }), I.e.on("bindUploader.filebrowser", function(L) {
  7505. I.uploader.bind(L, O, I.errorHandler);
  7506. });
  7507. }, j.prototype.proxyDialogEvents = function(E) {
  7508. var x = this;
  7509. ["afterClose", "beforeOpen"].forEach(function(k) {
  7510. E._dialog.events.on(E.dlg, k, function() {
  7511. x.e.fire(k);
  7512. });
  7513. });
  7514. }, j.prototype.destruct = function() {
  7515. this.isInDestruct || (S.prototype.destruct.call(this), this._dialog.destruct(), this.events && this.e.off(".filebrowser"), this.uploader && this.uploader.destruct());
  7516. }, n.__decorate([r.autobind], j.prototype, "status", null), n.__decorate([r.autobind], j.prototype, "open", null), n.__decorate([(0, r.derive)(b.Dlgs)], j);
  7517. }(w.ViewWithToolbar);
  7518. t.FileBrowser = C, t.isFileBrowserFilesItem = function(S) {
  7519. return a.Dom.isElement(S) && S.classList.contains(i.FileBrowserFiles.prototype.getFullElName("item"));
  7520. };
  7521. }, 63463: function(_, t, e) {
  7522. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(50885), t);
  7523. }, 21347: function(_, t, e) {
  7524. Object.defineProperty(t, "__esModule", { value: !0 }), t.nativeListeners = t.elementToItem = t.getItem = void 0;
  7525. var n = e(20255), v = e(40332), h = e(34468), p = e(64968), d = e(66267), a = e(36303);
  7526. t.getItem = function(s, u, f) {
  7527. return f === void 0 && (f = "a"), p.Dom.closest(s, function(l) {
  7528. return p.Dom.isTag(l, f);
  7529. }, u);
  7530. }, t.elementToItem = function(s, u) {
  7531. return u[s.dataset.key || ""].item;
  7532. }, t.nativeListeners = function() {
  7533. var s = this, u = !1, f = (0, d.elementsMap)(this), l = this;
  7534. l.e.on(l.tree.container, "dragstart", function(o) {
  7535. var r = (0, t.getItem)(o.target, l.container);
  7536. r && l.o.moveFolder && (u = r);
  7537. }).on(l.tree.container, "drop", function(o) {
  7538. if ((l.o.moveFile || l.o.moveFolder) && u) {
  7539. var r = (0, v.attr)(u, "-path") || "";
  7540. if (!l.o.moveFolder && u.classList.contains(s.tree.getFullElName("item")) || u.classList.contains(s.files.getFullElName("item")) && (r += (0, v.attr)(u, "-name"), !l.o.moveFile)) return !1;
  7541. var i = (0, t.getItem)(o.target, l.container);
  7542. if (!i) return;
  7543. l.dataProvider.move(r, (0, v.attr)(i, "-path") || "", (0, v.attr)(i, "-source") || "", u.classList.contains(s.files.getFullElName("item"))).then(function() {
  7544. return (0, a.loadTree)(s);
  7545. }).catch(l.status), u = !1;
  7546. }
  7547. }).on(l.files.container, "contextmenu", (0, h.default)(l)).on(l.files.container, "click", function(o) {
  7548. (0, v.ctrlKey)(o) || (s.state.activeElements = []);
  7549. }).on(l.files.container, "click", function(o) {
  7550. var r = (0, t.getItem)(o.target, l.container);
  7551. if (r) {
  7552. var i = (0, t.elementToItem)(r, f);
  7553. if (i) return l.state.activeElements = (0, v.ctrlKey)(o) ? n.__spreadArray(n.__spreadArray([], n.__read(l.state.activeElements), !1), [i], !1) : [i], o.stopPropagation(), !1;
  7554. }
  7555. }).on(l.files.container, "dragstart", function(o) {
  7556. if (l.o.moveFile) {
  7557. var r = (0, t.getItem)(o.target, l.container);
  7558. if (!r) return;
  7559. u = r;
  7560. }
  7561. }).on(l.container, "drop", function(o) {
  7562. return o.preventDefault();
  7563. });
  7564. };
  7565. }, 44734: function(_, t, e) {
  7566. Object.defineProperty(t, "__esModule", { value: !0 }), t.selfListeners = void 0;
  7567. var n = e(20255), v = e(10172), h = e(40332), p = e(82530), d = e(35503), a = e(36303), s = e(4253), u = e(48096);
  7568. t.selfListeners = function() {
  7569. var f = this, l = this.state, o = this.dataProvider, r = this;
  7570. r.e.on("view.filebrowser", function(i) {
  7571. i !== l.view && (l.view = i);
  7572. }).on("sort.filebrowser", function(i) {
  7573. i !== l.sortBy && (l.sortBy = i, (0, s.loadItems)(r));
  7574. }).on("filter.filebrowser", function(i) {
  7575. i !== l.filterWord && (l.filterWord = i, (0, s.loadItems)(r));
  7576. }).on("openFolder.filebrowser", function(i) {
  7577. var c;
  7578. c = i.name === ".." ? i.path.split("/").filter(function(m) {
  7579. return m.length;
  7580. }).slice(0, -1).join("/") : (0, h.normalizePath)(i.path, i.name), r.state.currentPath = c, r.state.currentSource = i.name === "." ? p.DEFAULT_SOURCE_NAME : i.source;
  7581. }).on("removeFolder.filebrowser", function(i) {
  7582. r.confirm("Are you sure?", "Delete", function(c) {
  7583. c && o.folderRemove(i.path, i.name, i.source).then(function(m) {
  7584. return r.status(m, !0), (0, a.loadTree)(r);
  7585. }).catch(r.status);
  7586. });
  7587. }).on("renameFolder.filebrowser", function(i) {
  7588. r.prompt("Enter new name", "Rename", function(c) {
  7589. if (!(0, v.isValidName)(c)) return r.status(r.i18n("Enter new name")), !1;
  7590. o.folderRename(i.path, i.name, c, i.source).then(function(m) {
  7591. return r.state.activeElements = [], r.status(m, !0), (0, a.loadTree)(r);
  7592. }).catch(r.status);
  7593. }, "type name", i.name);
  7594. }).on("addFolder.filebrowser", function(i) {
  7595. r.prompt("Enter Directory name", "Create directory", function(c) {
  7596. o.createFolder(c, i.path, i.source).then(function() {
  7597. return (0, a.loadTree)(r);
  7598. }).catch(r.status);
  7599. }, "type name");
  7600. }).on("fileRemove.filebrowser", function() {
  7601. r.state.activeElements.length && r.confirm("Are you sure?", "", function(i) {
  7602. if (i) {
  7603. var c = [];
  7604. r.state.activeElements.forEach(function(m) {
  7605. c.push((0, u.deleteFile)(r, m.file || m.name || "", m.sourceName));
  7606. }), r.state.activeElements = [], Promise.all(c).then(function() {
  7607. return (0, a.loadTree)(r).catch(r.status);
  7608. }, r.status);
  7609. }
  7610. });
  7611. }).on("edit.filebrowser", function() {
  7612. if (r.state.activeElements.length === 1) {
  7613. var i = n.__read(f.state.activeElements, 1)[0];
  7614. d.openImageEditor.call(r, i.fileURL, i.file || "", i.path, i.sourceName);
  7615. }
  7616. }).on("fileRename.filebrowser", function(i, c, m) {
  7617. r.state.activeElements.length === 1 && r.prompt("Enter new name", "Rename", function(y) {
  7618. if (!(0, v.isValidName)(y)) return r.status(r.i18n("Enter new name")), !1;
  7619. o.fileRename(c, i, y, m).then(function(g) {
  7620. r.state.activeElements = [], r.status(g, !0), (0, s.loadItems)(r);
  7621. }).catch(r.status);
  7622. }, "type name", i);
  7623. }).on("update.filebrowser", function() {
  7624. (0, a.loadTree)(f).then(f.status, f.status);
  7625. });
  7626. };
  7627. }, 86774: function(_, t, e) {
  7628. Object.defineProperty(t, "__esModule", { value: !0 }), t.stateListeners = void 0;
  7629. var n = e(64968), v = e(89693), h = e(2074), p = e(66267), d = e(36303);
  7630. t.stateListeners = function() {
  7631. var a = this, s = (0, p.elementsMap)(this), u = this, f = u.state, l = u.files, o = u.create, r = u.options;
  7632. f.on(["change.currentPath", "change.currentSource"], this.async.debounce(function() {
  7633. a.o.saveStateInStorage && a.o.saveStateInStorage.storeLastOpenedFolder && a.storage.set("currentPath", a.state.currentPath).set("currentSource", a.state.currentSource), (0, d.loadTree)(a).catch(a.status);
  7634. }, this.defaultTimeout)).on("beforeChange.activeElements", function() {
  7635. f.activeElements.forEach(function(i) {
  7636. var c = s[i.uniqueHashKey].elm;
  7637. c && c.classList.remove(l.getFullElName("item", "active", !0));
  7638. });
  7639. }).on("change.activeElements", function() {
  7640. a.e.fire("changeSelection"), f.activeElements.forEach(function(i) {
  7641. var c = s[i.uniqueHashKey].elm;
  7642. c && c.classList.add(l.getFullElName("item", "active", !0));
  7643. });
  7644. }).on("change.view", function() {
  7645. l.setMod("view", f.view), a.o.saveStateInStorage && a.o.saveStateInStorage.storeView && a.storage.set("view", f.view);
  7646. }).on("change.sortBy", function() {
  7647. a.o.saveStateInStorage && a.o.saveStateInStorage.storeSortBy && a.storage.set("sortBy", f.sortBy);
  7648. }).on("change.elements", this.async.debounce(function() {
  7649. n.Dom.detach(l.container), f.elements.length ? f.elements.forEach(function(i) {
  7650. a.files.container.appendChild(function(c) {
  7651. var m = c.uniqueHashKey;
  7652. if (s[m]) return s[m].elm;
  7653. var y = o.fromHTML(r.getThumbTemplate.call(a, c, c.source, c.sourceName.toString()));
  7654. return y.dataset.key = m, s[m] = { item: c, elm: y }, s[m].elm;
  7655. }(i));
  7656. }) : l.container.appendChild(o.div(a.componentName + "_no-files_true", a.i18n("There are no files")));
  7657. }, this.defaultTimeout)).on("change.sources", this.async.debounce(function() {
  7658. n.Dom.detach(a.tree.container), f.sources.forEach(function(i) {
  7659. var c = i.name;
  7660. if (c && c !== "default" && a.tree.container.appendChild(o.div(a.tree.getFullElName("source-title"), c)), i.folders.forEach(function(y) {
  7661. var g, b = o.a(a.tree.getFullElName("item"), { draggable: "draggable", href: "#", "data-path": (0, v.normalizePath)(i.path, y + "/"), "data-name": y, "data-source": c, "data-source-path": i.path }, o.span(a.tree.getFullElName("item-title"), y)), w = function(C) {
  7662. return function(S) {
  7663. a.e.fire("".concat(C, ".filebrowser"), { name: y, path: (0, v.normalizePath)(i.path + "/"), source: c }), S.stopPropagation(), S.preventDefault();
  7664. };
  7665. };
  7666. a.e.on(b, "click", w("openFolder")), a.tree.container.appendChild(b), y !== ".." && y !== "." && (r.renameFolder && a.dataProvider.canI("FolderRename") && ((g = (0, h.Button)(a, { icon: { name: "pencil" }, name: "rename", tooltip: "Rename", size: "tiny" })).onAction(w("renameFolder")), b.appendChild(g.container)), r.deleteFolder && a.dataProvider.canI("FolderRemove") && ((g = (0, h.Button)(a, { icon: { name: "cancel" }, name: "remove", tooltip: "Delete", size: "tiny" })).onAction(w("removeFolder")), b.appendChild(g.container)));
  7667. }), r.createNewFolder && a.dataProvider.canI("FolderCreate")) {
  7668. var m = (0, h.Button)(a, "plus", "Add folder", "secondary");
  7669. m.onAction(function() {
  7670. a.e.fire("addFolder", { path: (0, v.normalizePath)(i.path + "/"), source: c });
  7671. }), a.tree.append(m);
  7672. }
  7673. });
  7674. }, this.defaultTimeout));
  7675. };
  7676. }, 21505: function(_, t, e) {
  7677. Object.defineProperty(t, "__esModule", { value: !0 }), t.FileBrowserFiles = void 0;
  7678. var n = e(20255);
  7679. e(27452);
  7680. var v = function(h) {
  7681. function p() {
  7682. return h !== null && h.apply(this, arguments) || this;
  7683. }
  7684. return n.__extends(p, h), p.prototype.className = function() {
  7685. return "FilebrowserFiles";
  7686. }, p;
  7687. }(e(2074).UIGroup);
  7688. t.FileBrowserFiles = v;
  7689. }, 98782: function(_, t, e) {
  7690. Object.defineProperty(t, "__esModule", { value: !0 });
  7691. var n = e(20255);
  7692. n.__exportStar(e(21505), t), n.__exportStar(e(42472), t);
  7693. }, 42472: function(_, t, e) {
  7694. Object.defineProperty(t, "__esModule", { value: !0 }), t.FileBrowserTree = void 0;
  7695. var n = e(20255);
  7696. e(51422);
  7697. var v = function(h) {
  7698. function p() {
  7699. return h !== null && h.apply(this, arguments) || this;
  7700. }
  7701. return n.__extends(p, h), p.prototype.className = function() {
  7702. return "FilebrowserTree";
  7703. }, p;
  7704. }(e(2074).UIGroup);
  7705. t.FileBrowserTree = v;
  7706. }, 3107: function(_, t) {
  7707. Object.defineProperty(t, "__esModule", { value: !0 }), t.Command = void 0;
  7708. var e = function() {
  7709. function n(v, h, p, d) {
  7710. this.oldValue = v, this.newValue = h, this.history = p, this.tick = d;
  7711. }
  7712. return n.prototype.undo = function() {
  7713. this.history.snapshot.restore(this.oldValue);
  7714. }, n.prototype.redo = function() {
  7715. this.history.snapshot.restore(this.newValue);
  7716. }, n;
  7717. }();
  7718. t.Command = e;
  7719. }, 15432: function(_, t, e) {
  7720. Object.defineProperty(t, "__esModule", { value: !0 }), t.History = void 0;
  7721. var n = e(20255), v = e(93166), h = e(56562), p = e(31648), d = e(3621), a = e(3107), s = e(43441);
  7722. v.Config.prototype.history = { enable: !0, maxHistoryLength: 1 / 0, timeout: 1e3 }, v.Config.prototype.observer = v.Config.prototype.history;
  7723. var u = function(f) {
  7724. function l(o, r, i) {
  7725. r === void 0 && (r = new d.Stack(o.o.history.maxHistoryLength)), i === void 0 && (i = new p.Snapshot(o));
  7726. var c = f.call(this, o) || this;
  7727. return c.updateTick = 0, c.__stack = r, c.snapshot = i, o.o.history.enable && o.e.on("afterAddPlace.history", function() {
  7728. c.isInDestruct || (c.startValue = c.snapshot.make(), o.events.on("internalChange internalUpdate", function() {
  7729. c.startValue = c.snapshot.make();
  7730. }).on(o.editor, ["changeSelection", "selectionstart", "selectionchange", "mousedown", "mouseup", "keydown", "keyup"].map(function(m) {
  7731. return m + ".history";
  7732. }).join(" "), function() {
  7733. c.startValue.html === c.j.getNativeEditorValue() && (c.startValue = c.snapshot.make());
  7734. }).on(c, "change.history", c.onChange));
  7735. }), c;
  7736. }
  7737. return n.__extends(l, f), l.prototype.className = function() {
  7738. return "History";
  7739. }, Object.defineProperty(l.prototype, "startValue", { get: function() {
  7740. return this.__startValue;
  7741. }, set: function(o) {
  7742. this.__startValue = o;
  7743. }, enumerable: !1, configurable: !0 }), l.prototype.__upTick = function() {
  7744. this.updateTick += 1;
  7745. }, l.prototype.onChange = function() {
  7746. this.__processChanges();
  7747. }, l.prototype.__processChanges = function() {
  7748. !this.snapshot.isBlocked && this.j.o.history.enable && this.updateStack();
  7749. }, l.prototype.updateStack = function(o) {
  7750. o === void 0 && (o = !1);
  7751. var r = this.snapshot.make();
  7752. if (!p.Snapshot.equal(r, this.startValue)) {
  7753. var i = new a.Command(this.startValue, r, this, this.updateTick);
  7754. if (o) {
  7755. var c = this.__stack.current();
  7756. c && this.updateTick === c.tick && this.__stack.replace(i);
  7757. } else this.__stack.push(i);
  7758. this.startValue = r, this.fireChangeStack();
  7759. }
  7760. }, l.prototype.redo = function() {
  7761. this.__stack.redo() && (this.startValue = this.snapshot.make(), this.fireChangeStack());
  7762. }, l.prototype.canRedo = function() {
  7763. return this.__stack.canRedo();
  7764. }, l.prototype.undo = function() {
  7765. this.__stack.undo() && (this.startValue = this.snapshot.make(), this.fireChangeStack());
  7766. }, l.prototype.canUndo = function() {
  7767. return this.__stack.canUndo();
  7768. }, l.prototype.clear = function() {
  7769. this.startValue = this.snapshot.make(), this.__stack.clear(), this.fireChangeStack();
  7770. }, Object.defineProperty(l.prototype, "length", { get: function() {
  7771. return this.__stack.length;
  7772. }, enumerable: !1, configurable: !0 }), l.prototype.fireChangeStack = function() {
  7773. var o;
  7774. this.j && !this.j.isInDestruct && ((o = this.j.events) === null || o === void 0 || o.fire("changeStack"));
  7775. }, l.prototype.destruct = function() {
  7776. this.isInDestruct || (this.j.events && this.j.e.off(".history"), this.snapshot.destruct(), f.prototype.destruct.call(this));
  7777. }, n.__decorate([(0, s.debounce)()], l.prototype, "onChange", null), l;
  7778. }(h.ViewComponent);
  7779. t.History = u;
  7780. }, 31648: function(_, t, e) {
  7781. Object.defineProperty(t, "__esModule", { value: !0 }), t.Snapshot = void 0;
  7782. var n = e(20255), v = e(56562), h = e(64968), p = e(86893), d = function(a) {
  7783. function s() {
  7784. var u = a !== null && a.apply(this, arguments) || this;
  7785. return u.__isBlocked = !1, u;
  7786. }
  7787. return n.__extends(s, a), s.prototype.className = function() {
  7788. return "Snapshot";
  7789. }, s.equal = function(u, f) {
  7790. return u.html === f.html && JSON.stringify(u.range) === JSON.stringify(f.range);
  7791. }, s.countNodesBeforeInParent = function(u) {
  7792. if (!u.parentNode) return 0;
  7793. for (var f = u.parentNode.childNodes, l = 0, o = null, r = 0; f.length > r; r += 1) {
  7794. if (!o || this.isIgnoredNode(f[r]) || h.Dom.isText(o) && h.Dom.isText(f[r]) || (l += 1), f[r] === u) return l;
  7795. o = f[r];
  7796. }
  7797. return 0;
  7798. }, s.strokeOffset = function(u, f) {
  7799. for (; h.Dom.isText(u); ) h.Dom.isText(u = u.previousSibling) && u.nodeValue && (f += u.nodeValue.length);
  7800. return f;
  7801. }, s.prototype.calcHierarchyLadder = function(u) {
  7802. var f = [];
  7803. if (!u || !u.parentNode || !h.Dom.isOrContains(this.j.editor, u)) return [];
  7804. for (; u && u !== this.j.editor; ) u && !s.isIgnoredNode(u) && f.push(s.countNodesBeforeInParent(u)), u = u.parentNode;
  7805. return f.reverse();
  7806. }, s.prototype.getElementByLadder = function(u) {
  7807. var f, l = this.j.editor;
  7808. for (f = 0; l && u.length > f; f += 1) l = l.childNodes[u[f]];
  7809. return l;
  7810. }, Object.defineProperty(s.prototype, "isBlocked", { get: function() {
  7811. return this.__isBlocked;
  7812. }, enumerable: !1, configurable: !0 }), s.prototype.__block = function(u) {
  7813. this.__isBlocked = u;
  7814. }, s.prototype.transaction = function(u) {
  7815. this.__block(!0);
  7816. try {
  7817. u();
  7818. } catch (f) {
  7819. }
  7820. this.__block(!1);
  7821. }, s.prototype.make = function() {
  7822. var u = { html: "", range: { startContainer: [], startOffset: 0, endContainer: [], endOffset: 0 } };
  7823. u.html = this.removeJoditSelection(this.j.editor);
  7824. var f = this.j.s.sel;
  7825. if (f && f.rangeCount) {
  7826. var l = f.getRangeAt(0), o = this.calcHierarchyLadder(l.startContainer), r = this.calcHierarchyLadder(l.endContainer), i = s.strokeOffset(l.startContainer, l.startOffset), c = s.strokeOffset(l.endContainer, l.endOffset);
  7827. o.length || l.startContainer === this.j.editor || (i = 0), r.length || l.endContainer === this.j.editor || (c = 0), u.range = { startContainer: o, startOffset: i, endContainer: r, endOffset: c };
  7828. }
  7829. return u;
  7830. }, s.prototype.restore = function(u) {
  7831. var f = this;
  7832. this.transaction(function() {
  7833. var l = f.storeScrollState();
  7834. f.j.getNativeEditorValue() !== u.html && (f.j.value = u.html), f.restoreOnlySelection(u), f.restoreScrollState(l);
  7835. });
  7836. }, s.prototype.storeScrollState = function() {
  7837. return [this.j.ow.scrollY, this.j.editor.scrollTop];
  7838. }, s.prototype.restoreScrollState = function(u) {
  7839. var f = this.j, l = f.ow;
  7840. l.scrollTo(l.scrollX, u[0]), f.editor.scrollTop = u[1];
  7841. }, s.prototype.restoreOnlySelection = function(u) {
  7842. try {
  7843. if (u.range) {
  7844. var f = this.j.ed.createRange();
  7845. f.setStart(this.getElementByLadder(u.range.startContainer), u.range.startOffset), f.setEnd(this.getElementByLadder(u.range.endContainer), u.range.endOffset), this.j.s.selectRange(f);
  7846. }
  7847. } catch (l) {
  7848. this.j.editor.lastChild && this.j.s.setCursorAfter(this.j.editor.lastChild);
  7849. }
  7850. }, s.prototype.destruct = function() {
  7851. this.__block(!1), a.prototype.destruct.call(this);
  7852. }, s.isIgnoredNode = function(u) {
  7853. return h.Dom.isText(u) && !u.nodeValue || h.Dom.isTemporary(u);
  7854. }, s.prototype.removeJoditSelection = function(u) {
  7855. var f = u.cloneNode(!0);
  7856. return f.querySelectorAll("[".concat(p.TEMP_ATTR, "]")).forEach(h.Dom.unwrap), f.innerHTML;
  7857. }, s;
  7858. }(v.ViewComponent);
  7859. t.Snapshot = d;
  7860. }, 3621: function(_, t) {
  7861. Object.defineProperty(t, "__esModule", { value: !0 }), t.Stack = void 0;
  7862. var e = function() {
  7863. function n(v) {
  7864. this.size = v, this.commands = [], this.stackPosition = -1;
  7865. }
  7866. return Object.defineProperty(n.prototype, "length", { get: function() {
  7867. return this.commands.length;
  7868. }, enumerable: !1, configurable: !0 }), n.prototype.clearRedo = function() {
  7869. this.commands.length = this.stackPosition + 1;
  7870. }, n.prototype.clear = function() {
  7871. this.commands.length = 0, this.stackPosition = -1;
  7872. }, n.prototype.push = function(v) {
  7873. this.clearRedo(), this.commands.push(v), this.stackPosition += 1, this.commands.length > this.size && (this.commands.shift(), this.stackPosition -= 1);
  7874. }, n.prototype.replace = function(v) {
  7875. this.commands[this.stackPosition] = v;
  7876. }, n.prototype.current = function() {
  7877. return this.commands[this.stackPosition];
  7878. }, n.prototype.undo = function() {
  7879. return !!this.canUndo() && (this.commands[this.stackPosition] && this.commands[this.stackPosition].undo(), this.stackPosition -= 1, !0);
  7880. }, n.prototype.redo = function() {
  7881. return !!this.canRedo() && (this.stackPosition += 1, this.commands[this.stackPosition] && this.commands[this.stackPosition].redo(), !0);
  7882. }, n.prototype.canUndo = function() {
  7883. return this.stackPosition >= 0;
  7884. }, n.prototype.canRedo = function() {
  7885. return this.commands.length - 1 > this.stackPosition;
  7886. }, n;
  7887. }();
  7888. t.Stack = e;
  7889. }, 95356: function(_, t, e) {
  7890. Object.defineProperty(t, "__esModule", { value: !0 });
  7891. var n = e(93166), v = e(77904);
  7892. n.Config.prototype.imageeditor = { min_width: 20, min_height: 20, closeAfterSave: !1, width: "85%", height: "85%", crop: !0, resize: !0, resizeUseRatio: !0, resizeMinWidth: 20, resizeMinHeight: 20, cropUseRatio: !0, cropDefaultWidth: "70%", cropDefaultHeight: "70%" }, v.Icon.set("crop", e(3610)).set("resize", e(56170));
  7893. }, 35503: function(_, t, e) {
  7894. Object.defineProperty(t, "__esModule", { value: !0 }), t.openImageEditor = t.ImageEditor = void 0;
  7895. var n = e(20255);
  7896. e(62820);
  7897. var v = e(93166), h = e(56562), p = e(40332), d = e(64968), a = e(96516), s = e(9249), u = e(43441);
  7898. e(95356);
  7899. var f = "jodit-image-editor", l = "resize", o = "crop", r = function(i) {
  7900. function c(y) {
  7901. var g = i.call(this, y) || this;
  7902. g.resizeUseRatio = !0, g.cropUseRatio = !0, g.clicked = !1, g.start_x = 0, g.start_y = 0, g.top_x = 0, g.top_y = 0, g.width = 0, g.height = 0, g.activeTab = l, g.naturalWidth = 0, g.naturalHeight = 0, g.ratio = 0, g.new_h = 0, g.new_w = 0, g.diff_x = 0, g.diff_y = 0, g.cropBox = { x: 0, y: 0, w: 0, h: 0 }, g.resizeBox = { w: 0, h: 0 }, g.calcCropBox = function() {
  7903. var S = g.crop_box.parentNode, j = 0.8 * S.offsetWidth, E = 0.8 * S.offsetHeight, x = j, k = E, I = g.naturalWidth, M = g.naturalHeight;
  7904. j > I && E > M ? (x = I, k = M) : g.ratio > j / E ? (x = j, k = M * (j / I)) : (x = I * (E / M), k = E), (0, p.css)(g.crop_box, { width: x, height: k });
  7905. }, g.showCrop = function() {
  7906. if (g.cropImage) {
  7907. g.calcCropBox();
  7908. var S = g.cropImage.offsetWidth || g.image.offsetWidth || g.image.naturalWidth;
  7909. g.new_w = m.calcValueByPercent(S, g.o.cropDefaultWidth);
  7910. var j = g.cropImage.offsetHeight || g.image.offsetHeight || g.image.naturalHeight;
  7911. g.new_h = g.cropUseRatio ? g.new_w / g.ratio : m.calcValueByPercent(j, g.o.cropDefaultHeight), (0, p.css)(g.cropHandler, { backgroundImage: "url(" + (0, p.attr)(g.cropImage, "src") + ")", width: g.new_w, height: g.new_h, left: S / 2 - g.new_w / 2, top: j / 2 - g.new_h / 2 }), g.j.e.fire(g.cropHandler, "updatesize");
  7912. }
  7913. }, g.updateCropBox = function() {
  7914. if (g.cropImage) {
  7915. var S = g.cropImage.offsetWidth / g.naturalWidth, j = g.cropImage.offsetHeight / g.naturalHeight;
  7916. g.cropBox.x = (0, p.css)(g.cropHandler, "left") / S, g.cropBox.y = (0, p.css)(g.cropHandler, "top") / j, g.cropBox.w = g.cropHandler.offsetWidth / S, g.cropBox.h = g.cropHandler.offsetHeight / j, g.sizes.textContent = g.cropBox.w.toFixed(0) + "x" + g.cropBox.h.toFixed(0);
  7917. }
  7918. }, g.updateResizeBox = function() {
  7919. g.resizeBox.w = g.image.offsetWidth || g.naturalWidth, g.resizeBox.h = g.image.offsetHeight || g.naturalHeight;
  7920. }, g.setHandlers = function() {
  7921. var S = g, j = (0, p.refs)(g.editor), E = j.widthInput, x = j.heightInput;
  7922. S.j.e.on([S.editor.querySelector(".jodit_bottomright"), S.cropHandler], "mousedown.".concat(f), g.onResizeHandleMouseDown).on(g.j.ow, "resize.".concat(f), function() {
  7923. g.j.e.fire(S.resizeHandler, "updatesize"), S.showCrop(), g.j.e.fire(S.cropHandler, "updatesize");
  7924. }), S.j.e.on((0, p.toArray)(g.editor.querySelectorAll(".".concat(f, "__slider-title"))), "click", g.onTitleModeClick).on([E, x], "input", g.onChangeSizeInput);
  7925. var k = (0, p.refs)(g.editor), I = k.keepAspectRatioResize, M = k.keepAspectRatioCrop;
  7926. I && I.addEventListener("change", function() {
  7927. g.resizeUseRatio = I.checked;
  7928. }), M && M.addEventListener("change", function() {
  7929. g.cropUseRatio = M.checked;
  7930. }), S.j.e.on(S.resizeHandler, "updatesize", function() {
  7931. (0, p.css)(S.resizeHandler, { top: 0, left: 0, width: S.image.offsetWidth || S.naturalWidth, height: S.image.offsetHeight || S.naturalHeight }), g.updateResizeBox();
  7932. }).on(S.cropHandler, "updatesize", function() {
  7933. if (S.cropImage) {
  7934. var T = (0, p.css)(S.cropHandler, "left"), O = (0, p.css)(S.cropHandler, "top"), L = S.cropHandler.offsetWidth, N = S.cropHandler.offsetHeight;
  7935. 0 > T && (T = 0), 0 > O && (O = 0), T + L > S.cropImage.offsetWidth && (L = S.cropImage.offsetWidth - T, S.cropUseRatio && (N = L / S.ratio)), O + N > S.cropImage.offsetHeight && (N = S.cropImage.offsetHeight - O, S.cropUseRatio && (L = N * S.ratio)), (0, p.css)(S.cropHandler, { width: L, height: N, left: T, top: O, backgroundPosition: -T - 1 + "px " + (-O - 1) + "px", backgroundSize: S.cropImage.offsetWidth + "px " + S.cropImage.offsetHeight + "px" }), S.updateCropBox();
  7936. }
  7937. }), Object.values(S.buttons).forEach(function(T) {
  7938. T.onAction(function() {
  7939. var O = { action: S.activeTab, box: S.activeTab === l ? S.resizeBox : S.cropBox };
  7940. switch (T) {
  7941. case S.buttons.saveas:
  7942. S.j.prompt("Enter new name", "Save in new file", function(L) {
  7943. if (!(0, p.trim)(L)) return S.j.alert("The name should not be empty"), !1;
  7944. S.onSave(L, O, S.hide, function(N) {
  7945. S.j.alert(N.message);
  7946. });
  7947. });
  7948. break;
  7949. case S.buttons.save:
  7950. S.onSave(void 0, O, S.hide, function(L) {
  7951. S.j.alert(L.message);
  7952. });
  7953. break;
  7954. case S.buttons.reset:
  7955. S.activeTab === l ? ((0, p.css)(S.image, { width: null, height: null }), E.value = S.naturalWidth.toString(), x.value = S.naturalHeight.toString(), S.j.e.fire(S.resizeHandler, "updatesize")) : S.showCrop();
  7956. }
  7957. });
  7958. });
  7959. }, g.options = y && y.o && y.o.imageeditor ? y.o.imageeditor : v.Config.defaultOptions.imageeditor;
  7960. var b = g.options;
  7961. g.resizeUseRatio = b.resizeUseRatio, g.cropUseRatio = b.cropUseRatio, g.buttons = { reset: (0, a.Button)(g.j, "update", "Reset"), save: (0, a.Button)(g.j, "save", "Save"), saveas: (0, a.Button)(g.j, "save", "Save as ...") }, g.activeTab = b.resize ? l : o, g.editor = (0, s.form)(g.j, g.options);
  7962. var w = (0, p.refs)(g.editor), C = w.cropBox;
  7963. return g.resize_box = w.resizeBox, g.crop_box = C, g.sizes = g.editor.querySelector(".".concat(f, "__area.").concat(f, "__area_crop .jodit-image-editor__sizes")), g.resizeHandler = g.editor.querySelector(".".concat(f, "__resizer")), g.cropHandler = g.editor.querySelector(".".concat(f, "__croper")), g._dialog = g.j.dlg({ buttons: ["fullsize", "dialog.close"] }), g._dialog.setContent(g.editor), g._dialog.setSize(g.o.width, g.o.height), g._dialog.setHeader([g.buttons.reset, g.buttons.save, g.buttons.saveas]), g.setHandlers(), g;
  7964. }
  7965. var m;
  7966. return n.__extends(c, i), m = c, c.prototype.className = function() {
  7967. return "ImageEditor";
  7968. }, c.prototype.onTitleModeClick = function(y) {
  7969. var g = this, b = y.target, w = b == null ? void 0 : b.parentElement;
  7970. if (w) {
  7971. (0, p.$$)(".".concat(f, "__slider,.").concat(f, "__area"), g.editor).forEach(function(S) {
  7972. return S.classList.remove("".concat(f, "_active"));
  7973. }), w.classList.add("".concat(f, "_active")), this.activeTab = (0, p.attr)(w, "-area") || l;
  7974. var C = g.editor.querySelector(".".concat(f, "__area.").concat(f, "__area_") + g.activeTab);
  7975. C && C.classList.add("".concat(f, "_active")), g.activeTab === o && g.showCrop();
  7976. }
  7977. }, c.prototype.onChangeSizeInput = function(y) {
  7978. var g, b = this, w = y.target, C = (0, p.refs)(this.editor), S = C.widthInput, j = C.heightInput, E = (0, p.attr)(w, "data-ref") === "widthInput", x = parseInt(w.value, 10), k = E ? b.o.min_height : b.o.min_width;
  7979. x > (E ? b.o.min_width : b.o.min_height) && ((0, p.css)(b.image, E ? "width" : "height", x), b.resizeUseRatio && (g = Math.round(E ? x / b.ratio : x * b.ratio)) > k && ((0, p.css)(b.image, E ? "height" : "width", g), E ? j.value = g.toString() : S.value = g.toString())), this.j.e.fire(b.resizeHandler, "updatesize");
  7980. }, c.prototype.onResizeHandleMouseDown = function(y) {
  7981. var g = this;
  7982. g.target = y.target, y.preventDefault(), y.stopImmediatePropagation(), g.clicked = !0, g.start_x = y.clientX, g.start_y = y.clientY, g.activeTab === o ? (g.top_x = (0, p.css)(g.cropHandler, "left"), g.top_y = (0, p.css)(g.cropHandler, "top"), g.width = g.cropHandler.offsetWidth, g.height = g.cropHandler.offsetHeight) : (g.width = g.image.offsetWidth, g.height = g.image.offsetHeight), g.j.e.on(this.j.ow, "mousemove", this.onGlobalMouseMove).one(this.j.ow, "mouseup", this.onGlobalMouseUp);
  7983. }, c.prototype.onGlobalMouseUp = function(y) {
  7984. this.clicked && (this.clicked = !1, y.stopImmediatePropagation(), this.j.e.off(this.j.ow, "mousemove", this.onGlobalMouseMove));
  7985. }, c.prototype.onGlobalMouseMove = function(y) {
  7986. var g = this;
  7987. if (g.clicked) {
  7988. var b = (0, p.refs)(this.editor), w = b.widthInput, C = b.heightInput;
  7989. g.diff_x = y.clientX - g.start_x, g.diff_y = y.clientY - g.start_y, g.activeTab === l && g.resizeUseRatio || g.activeTab === o && g.cropUseRatio ? g.diff_x ? (g.new_w = g.width + g.diff_x, g.new_h = Math.round(g.new_w / g.ratio)) : (g.new_h = g.height + g.diff_y, g.new_w = Math.round(g.new_h * g.ratio)) : (g.new_w = g.width + g.diff_x, g.new_h = g.height + g.diff_y), g.activeTab === l ? (g.new_w > g.o.resizeMinWidth && ((0, p.css)(g.image, "width", g.new_w + "px"), w.value = g.new_w.toString()), g.new_h > g.o.resizeMinHeight && ((0, p.css)(g.image, "height", g.new_h + "px"), C.value = g.new_h.toString()), this.j.e.fire(g.resizeHandler, "updatesize")) : (g.target !== g.cropHandler ? (g.top_x + g.new_w > g.cropImage.offsetWidth && (g.new_w = g.cropImage.offsetWidth - g.top_x), g.top_y + g.new_h > g.cropImage.offsetHeight && (g.new_h = g.cropImage.offsetHeight - g.top_y), (0, p.css)(g.cropHandler, { width: g.new_w, height: g.new_h })) : (g.top_x + g.diff_x + g.cropHandler.offsetWidth > g.cropImage.offsetWidth && (g.diff_x = g.cropImage.offsetWidth - g.top_x - g.cropHandler.offsetWidth), (0, p.css)(g.cropHandler, "left", g.top_x + g.diff_x), g.top_y + g.diff_y + g.cropHandler.offsetHeight > g.cropImage.offsetHeight && (g.diff_y = g.cropImage.offsetHeight - g.top_y - g.cropHandler.offsetHeight), (0, p.css)(g.cropHandler, "top", g.top_y + g.diff_y)), this.j.e.fire(g.cropHandler, "updatesize"));
  7990. }
  7991. }, Object.defineProperty(c.prototype, "o", { get: function() {
  7992. return this.options;
  7993. }, enumerable: !1, configurable: !0 }), c.prototype.hide = function() {
  7994. this._dialog.close();
  7995. }, c.prototype.open = function(y, g) {
  7996. var b = this;
  7997. return this.j.async.promise(function(w) {
  7998. var C = (/* @__PURE__ */ new Date()).getTime();
  7999. b.image = b.j.c.element("img"), (0, p.$$)("img,.jodit-icon_loader", b.resize_box).forEach(d.Dom.safeRemove), (0, p.$$)("img,.jodit-icon_loader", b.crop_box).forEach(d.Dom.safeRemove), (0, p.css)(b.cropHandler, "background", "transparent"), b.onSave = g, b.resize_box.appendChild(b.j.c.element("i", { class: "jodit-icon_loader" })), b.crop_box.appendChild(b.j.c.element("i", { class: "jodit-icon_loader" })), /\?/.test(y) ? y += "&_tst=" + C : y += "?_tst=" + C, b.image.setAttribute("src", y), b._dialog.open();
  8000. var S = (0, p.refs)(b.editor), j = S.widthInput, E = S.heightInput, x = function() {
  8001. b.isDestructed || (b.image.removeEventListener("load", x), b.naturalWidth = b.image.naturalWidth, b.naturalHeight = b.image.naturalHeight, j.value = b.naturalWidth.toString(), E.value = b.naturalHeight.toString(), b.ratio = b.naturalWidth / b.naturalHeight, b.resize_box.appendChild(b.image), b.cropImage = b.image.cloneNode(!0), b.crop_box.appendChild(b.cropImage), d.Dom.safeRemove.apply(null, (0, p.$$)(".jodit-icon_loader", b.editor)), b.activeTab === o && b.showCrop(), b.j.e.fire(b.resizeHandler, "updatesize"), b.j.e.fire(b.cropHandler, "updatesize"), b._dialog.setPosition(), b.j.e.fire("afterImageEditor"), w(b._dialog));
  8002. };
  8003. b.image.addEventListener("load", x), b.image.complete && x();
  8004. });
  8005. }, c.prototype.destruct = function() {
  8006. this.isDestructed || (this._dialog && !this._dialog.isInDestruct && this._dialog.destruct(), d.Dom.safeRemove(this.editor), this.j.e && this.j.e.off(this.j.ow, "mousemove", this.onGlobalMouseMove).off(this.j.ow, "mouseup", this.onGlobalMouseUp).off(this.ow, ".".concat(f)).off(".".concat(f)), i.prototype.destruct.call(this));
  8007. }, c.calcValueByPercent = function(y, g) {
  8008. var b, w = g.toString(), C = parseFloat(y.toString());
  8009. return (b = /^[-+]?[0-9]+(px)?$/.exec(w)) ? parseInt(w, 10) : (b = /^([-+]?[0-9.]+)%$/.exec(w)) ? Math.round(C * (parseFloat(b[1]) / 100)) : C || 0;
  8010. }, n.__decorate([u.autobind], c.prototype, "onTitleModeClick", null), n.__decorate([(0, u.debounce)(), u.autobind], c.prototype, "onChangeSizeInput", null), n.__decorate([u.autobind], c.prototype, "onResizeHandleMouseDown", null), n.__decorate([u.autobind], c.prototype, "onGlobalMouseUp", null), n.__decorate([(0, u.throttle)(10)], c.prototype, "onGlobalMouseMove", null), n.__decorate([u.autobind], c.prototype, "hide", null), n.__decorate([u.autobind], c.prototype, "open", null), m = n.__decorate([u.component], c);
  8011. }(h.ViewComponent);
  8012. t.ImageEditor = r, t.openImageEditor = function(i, c, m, y, g, b) {
  8013. var w = this;
  8014. return this.getInstance("ImageEditor", this.o).open(i, function(C, S, j, E) {
  8015. return (0, p.call)(S.action === "resize" ? w.dataProvider.resize : w.dataProvider.crop, m, y, c, C, S.box).then(function(x) {
  8016. x && (j(), g && g());
  8017. }).catch(function(x) {
  8018. E(x), b && b(x);
  8019. });
  8020. });
  8021. };
  8022. }, 9249: function(_, t, e) {
  8023. Object.defineProperty(t, "__esModule", { value: !0 }), t.form = void 0;
  8024. var n = e(2074), v = "jodit-image-editor", h = n.Icon.get.bind(n.Icon), p = function(d, a) {
  8025. return a === void 0 && (a = "jodti-image-editor_active"), d ? a : "";
  8026. };
  8027. t.form = function(d, a) {
  8028. var s = d.i18n.bind(d), u = function(f, l, o) {
  8029. return o === void 0 && (o = !0), `<div class="jodit-form__group">
  8030. <label>`.concat(s(f), `</label>
  8031. <label class='jodit-switcher'>
  8032. <input `).concat(p(o, "checked"), ' data-ref="').concat(l, `" type="checkbox"/>
  8033. <span class="jodit-switcher__slider"></span>
  8034. </label>
  8035. </div>`);
  8036. };
  8037. return d.create.fromHTML('<form class="'.concat(v, ` jodit-properties">
  8038. <div class="jodit-grid jodit-grid_xs-column">
  8039. <div class="jodit_col-lg-3-4 jodit_col-sm-5-5">
  8040. `).concat(a.resize ? '<div class="'.concat(v, "__area ").concat(v, "__area_resize ").concat(v, `_active">
  8041. <div data-ref="resizeBox" class="`).concat(v, `__box"></div>
  8042. <div class="`).concat(v, `__resizer">
  8043. <i class="jodit_bottomright"></i>
  8044. </div>
  8045. </div>`) : "", `
  8046. `).concat(a.crop ? '<div class="'.concat(v, "__area ").concat(v, "__area_crop ").concat(p(!a.resize), `">
  8047. <div data-ref="cropBox" class="`).concat(v, `__box">
  8048. <div class="`).concat(v, `__croper">
  8049. <i class="jodit_bottomright"></i>
  8050. <i class="`).concat(v, `__sizes"></i>
  8051. </div>
  8052. </div>
  8053. </div>`) : "", `
  8054. </div>
  8055. <div class="jodit_col-lg-1-4 jodit_col-sm-5-5">
  8056. `).concat(a.resize ? '<div data-area="resize" class="'.concat(v, "__slider ").concat(v, `_active">
  8057. <div class="`).concat(v, `__slider-title">
  8058. `).concat(h("resize"), `
  8059. `).concat(s("Resize"), `
  8060. </div>
  8061. <div class="`).concat(v, `__slider-content">
  8062. <div class="jodit-form__group">
  8063. <label>
  8064. `).concat(s("Width"), `
  8065. </label>
  8066. <input type="number" data-ref="widthInput" class="jodit-input"/>
  8067. </div>
  8068. <div class="jodit-form__group">
  8069. <label>
  8070. `).concat(s("Height"), `
  8071. </label>
  8072. <input type="number" data-ref="heightInput" class="jodit-input"/>
  8073. </div>
  8074. `).concat(u("Keep Aspect Ratio", "keepAspectRatioResize"), `
  8075. </div>
  8076. </div>`) : "", `
  8077. `).concat(a.crop ? '<div data-area="crop" class="'.concat(v, "__slider ").concat(p(!a.resize), `'">
  8078. <div class="`).concat(v, `__slider-title">
  8079. `).concat(h("crop"), `
  8080. `).concat(s("Crop"), `
  8081. </div>
  8082. <div class="`).concat(v, `__slider-content">
  8083. `).concat(u("Keep Aspect Ratio", "keepAspectRatioCrop"), `
  8084. </div>
  8085. </div>`) : "", `
  8086. </div>
  8087. </div>
  8088. </form>`));
  8089. };
  8090. }, 87837: function(_, t, e) {
  8091. Object.defineProperty(t, "__esModule", { value: !0 }), t.PluginSystem = t.UIMessages = t.Uploader = t.ToolbarCollection = t.ToolbarEditorCollection = t.Table = t.StatusBar = t.CommitStyle = t.Select = t.Snapshot = t.History = t.ImageEditor = t.Helpers = t.ViewWithToolbar = t.View = t.Icon = t.ProgressBar = t.UIBlock = t.UICheckbox = t.UITextArea = t.UIInput = t.UIForm = t.UIList = t.UIGroup = t.UISeparator = t.Popup = t.UIButton = t.UIElement = t.Create = t.Plugin = t.LazyWalker = t.Dom = t.ContextMenu = t.STATUSES = t.ViewComponent = t.Component = t.Async = void 0;
  8092. var n = e(20255);
  8093. n.__exportStar(e(55395), t);
  8094. var v = e(22630);
  8095. Object.defineProperty(t, "Async", { enumerable: !0, get: function() {
  8096. return v.Async;
  8097. } }), n.__exportStar(e(30056), t);
  8098. var h = e(56562);
  8099. Object.defineProperty(t, "Component", { enumerable: !0, get: function() {
  8100. return h.Component;
  8101. } }), Object.defineProperty(t, "ViewComponent", { enumerable: !0, get: function() {
  8102. return h.ViewComponent;
  8103. } }), Object.defineProperty(t, "STATUSES", { enumerable: !0, get: function() {
  8104. return h.STATUSES;
  8105. } });
  8106. var p = e(60403);
  8107. Object.defineProperty(t, "ContextMenu", { enumerable: !0, get: function() {
  8108. return p.ContextMenu;
  8109. } }), n.__exportStar(e(92080), t);
  8110. var d = e(64968);
  8111. Object.defineProperty(t, "Dom", { enumerable: !0, get: function() {
  8112. return d.Dom;
  8113. } }), Object.defineProperty(t, "LazyWalker", { enumerable: !0, get: function() {
  8114. return d.LazyWalker;
  8115. } });
  8116. var a = e(57549);
  8117. Object.defineProperty(t, "Plugin", { enumerable: !0, get: function() {
  8118. return a.Plugin;
  8119. } });
  8120. var s = e(42841);
  8121. Object.defineProperty(t, "Create", { enumerable: !0, get: function() {
  8122. return s.Create;
  8123. } });
  8124. var u = e(2074);
  8125. Object.defineProperty(t, "UIElement", { enumerable: !0, get: function() {
  8126. return u.UIElement;
  8127. } }), Object.defineProperty(t, "UIButton", { enumerable: !0, get: function() {
  8128. return u.UIButton;
  8129. } }), Object.defineProperty(t, "Popup", { enumerable: !0, get: function() {
  8130. return u.Popup;
  8131. } }), Object.defineProperty(t, "UISeparator", { enumerable: !0, get: function() {
  8132. return u.UISeparator;
  8133. } }), Object.defineProperty(t, "UIGroup", { enumerable: !0, get: function() {
  8134. return u.UIGroup;
  8135. } }), Object.defineProperty(t, "UIList", { enumerable: !0, get: function() {
  8136. return u.UIList;
  8137. } }), Object.defineProperty(t, "UIForm", { enumerable: !0, get: function() {
  8138. return u.UIForm;
  8139. } }), Object.defineProperty(t, "UIInput", { enumerable: !0, get: function() {
  8140. return u.UIInput;
  8141. } }), Object.defineProperty(t, "UITextArea", { enumerable: !0, get: function() {
  8142. return u.UITextArea;
  8143. } }), Object.defineProperty(t, "UICheckbox", { enumerable: !0, get: function() {
  8144. return u.UICheckbox;
  8145. } }), Object.defineProperty(t, "UIBlock", { enumerable: !0, get: function() {
  8146. return u.UIBlock;
  8147. } }), Object.defineProperty(t, "ProgressBar", { enumerable: !0, get: function() {
  8148. return u.ProgressBar;
  8149. } }), Object.defineProperty(t, "Icon", { enumerable: !0, get: function() {
  8150. return u.Icon;
  8151. } });
  8152. var f = e(75902);
  8153. Object.defineProperty(t, "View", { enumerable: !0, get: function() {
  8154. return f.View;
  8155. } });
  8156. var l = e(43608);
  8157. Object.defineProperty(t, "ViewWithToolbar", { enumerable: !0, get: function() {
  8158. return l.ViewWithToolbar;
  8159. } }), n.__exportStar(e(63463), t);
  8160. var o = e(40332);
  8161. t.Helpers = o;
  8162. var r = e(35503);
  8163. Object.defineProperty(t, "ImageEditor", { enumerable: !0, get: function() {
  8164. return r.ImageEditor;
  8165. } });
  8166. var i = e(15432);
  8167. Object.defineProperty(t, "History", { enumerable: !0, get: function() {
  8168. return i.History;
  8169. } });
  8170. var c = e(31648);
  8171. Object.defineProperty(t, "Snapshot", { enumerable: !0, get: function() {
  8172. return c.Snapshot;
  8173. } });
  8174. var m = e(2123);
  8175. Object.defineProperty(t, "Select", { enumerable: !0, get: function() {
  8176. return m.Select;
  8177. } }), Object.defineProperty(t, "CommitStyle", { enumerable: !0, get: function() {
  8178. return m.CommitStyle;
  8179. } });
  8180. var y = e(38603);
  8181. Object.defineProperty(t, "StatusBar", { enumerable: !0, get: function() {
  8182. return y.StatusBar;
  8183. } });
  8184. var g = e(25120);
  8185. Object.defineProperty(t, "Table", { enumerable: !0, get: function() {
  8186. return g.Table;
  8187. } });
  8188. var b = e(81698);
  8189. Object.defineProperty(t, "ToolbarEditorCollection", { enumerable: !0, get: function() {
  8190. return b.ToolbarEditorCollection;
  8191. } });
  8192. var w = e(72719);
  8193. Object.defineProperty(t, "ToolbarCollection", { enumerable: !0, get: function() {
  8194. return w.ToolbarCollection;
  8195. } }), n.__exportStar(e(3890), t);
  8196. var C = e(50454);
  8197. Object.defineProperty(t, "Uploader", { enumerable: !0, get: function() {
  8198. return C.Uploader;
  8199. } });
  8200. var S = e(71014);
  8201. Object.defineProperty(t, "UIMessages", { enumerable: !0, get: function() {
  8202. return S.UIMessages;
  8203. } });
  8204. var j = e(44540);
  8205. Object.defineProperty(t, "PluginSystem", { enumerable: !0, get: function() {
  8206. return j.PluginSystem;
  8207. } });
  8208. }, 37762: function(_, t, e) {
  8209. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIMessage = void 0;
  8210. var n = e(20255), v = e(2074), h = e(11441), p = function(d) {
  8211. function a(s, u) {
  8212. var f = d.call(this, s) || this;
  8213. return f.setMod("active", !0), f.setMod("variant", u.variant), f.container.textContent = u.text, f;
  8214. }
  8215. return n.__extends(a, d), a.prototype.className = function() {
  8216. return "UIMessage";
  8217. }, n.__decorate([h.component], a);
  8218. }(v.UIElement);
  8219. t.UIMessage = p;
  8220. }, 71014: function(_, t, e) {
  8221. Object.defineProperty(t, "__esModule", { value: !0 }), t.UIMessages = void 0;
  8222. var n = e(20255);
  8223. e(63421);
  8224. var v = e(26911), h = e(61479), p = e(11441), d = e(46163), a = e(37762), s = function(u) {
  8225. function f(l, o, r) {
  8226. r === void 0 && (r = { defaultTimeout: 3e3, defaultOffset: 5 });
  8227. var i = u.call(this, l) || this;
  8228. return i.__box = o, i.options = r, i.__messages = /* @__PURE__ */ new Set(), i;
  8229. }
  8230. return n.__extends(f, u), f.prototype.className = function() {
  8231. return "UIMessages";
  8232. }, f.prototype.info = function(l, o) {
  8233. this.__message(l, "info", o);
  8234. }, f.prototype.success = function(l, o) {
  8235. this.__message(l, "success", o);
  8236. }, f.prototype.error = function(l, o) {
  8237. this.__message(l, "error", o);
  8238. }, f.prototype.message = function(l, o, r) {
  8239. this.__message(l, o, r);
  8240. }, f.prototype.__message = function(l, o, r) {
  8241. o === void 0 && (o = "info");
  8242. var i = l + ":" + o;
  8243. if (this.__messages.has(i)) this.async.updateTimeout(i, r || this.options.defaultTimeout);
  8244. else {
  8245. this.__box.appendChild(this.container);
  8246. var c = new a.UIMessage(this.j, { text: l, variant: o });
  8247. this.append(c), this.__calcOffsets(), this.__messages.add(i);
  8248. var m = this.__getRemoveCallback(c, i);
  8249. this.j.e.on(c.container, "pointerdown", m), this.async.setTimeout(m, { label: i, timeout: r || this.options.defaultTimeout });
  8250. }
  8251. }, f.prototype.__getRemoveCallback = function(l, o) {
  8252. var r = this, i = function(c) {
  8253. c && c.preventDefault(), l.isInDestruct || (r.async.clearTimeout(o), r.j.e.off(l.container, "pointerdown", i), r.__messages.delete(o), l.setMod("active", !1), r.async.setTimeout(function() {
  8254. r.remove(l), l.destruct(), r.__calcOffsets();
  8255. }, 300));
  8256. };
  8257. return i;
  8258. }, f.prototype.__calcOffsets = function() {
  8259. var l = this, o = 5;
  8260. this.elements.forEach(function(r) {
  8261. (0, v.css)(r.container, "bottom", o + "px"), o += r.container.offsetHeight + l.options.defaultOffset;
  8262. });
  8263. }, n.__decorate([(0, d.watch)(":errorMessage")], f.prototype, "__message", null), n.__decorate([p.component], f);
  8264. }(h.UIGroup);
  8265. t.UIMessages = s;
  8266. }, 38603: function(_, t, e) {
  8267. Object.defineProperty(t, "__esModule", { value: !0 }), t.StatusBar = void 0;
  8268. var n = e(20255);
  8269. e(32115);
  8270. var v = e(56562), h = e(64968), p = e(59829), d = e(43441), a = function(s) {
  8271. function u(f, l) {
  8272. var o = s.call(this, f) || this;
  8273. return o.target = l, o.mods = {}, o.container = f.c.div("jodit-status-bar"), l.appendChild(o.container), o.hide(), o;
  8274. }
  8275. return n.__extends(u, s), u.prototype.className = function() {
  8276. return "StatusBar";
  8277. }, u.prototype.hide = function() {
  8278. this.container.classList.add("jodit_hidden");
  8279. }, u.prototype.show = function() {
  8280. this.container.classList.remove("jodit_hidden");
  8281. }, Object.defineProperty(u.prototype, "isShown", { get: function() {
  8282. return !this.container.classList.contains("jodit_hidden");
  8283. }, enumerable: !1, configurable: !0 }), u.prototype.getHeight = function() {
  8284. var f, l;
  8285. return (l = (f = this.container) === null || f === void 0 ? void 0 : f.offsetHeight) !== null && l !== void 0 ? l : 0;
  8286. }, u.prototype.findEmpty = function(f) {
  8287. f === void 0 && (f = !1);
  8288. for (var l = this.getElms(f ? "item-right" : "item"), o = 0; l.length > o; o += 1) if (!l[o].innerHTML.trim().length) return l[o];
  8289. }, u.prototype.append = function(f, l) {
  8290. var o;
  8291. l === void 0 && (l = !1);
  8292. var r = this.findEmpty(l) || this.j.c.div(this.getFullElName("item"));
  8293. l && r.classList.add(this.getFullElName("item-right")), r.appendChild(f), (o = this.container) === null || o === void 0 || o.appendChild(r), this.j.o.statusbar && this.show(), this.j.e.fire("resize");
  8294. }, u.prototype.destruct = function() {
  8295. this.isInDestruct || (this.setStatus(v.STATUSES.beforeDestruct), h.Dom.safeRemove(this.container), s.prototype.destruct.call(this));
  8296. }, n.__decorate([d.component, (0, d.derive)(p.Mods, p.Elms)], u);
  8297. }(v.ViewComponent);
  8298. t.StatusBar = a;
  8299. }, 25120: function(_, t, e) {
  8300. Object.defineProperty(t, "__esModule", { value: !0 }), t.Table = void 0;
  8301. var n = e(20255), v = e(86893), h = e(64968), p = e(40332), d = e(56562), a = e(17332), s = e(43441), u = /* @__PURE__ */ new WeakMap(), f = function(o) {
  8302. function r() {
  8303. var i = o !== null && o.apply(this, arguments) || this;
  8304. return i.selected = /* @__PURE__ */ new Set(), i;
  8305. }
  8306. return n.__extends(r, o), r.prototype.className = function() {
  8307. return "Table";
  8308. }, r.prototype.recalculateStyles = function() {
  8309. var i = (0, a.getContainer)(this.j, r, "style", !0), c = [];
  8310. this.selected.forEach(function(m) {
  8311. var y = (0, p.cssPath)(m);
  8312. y && c.push(y);
  8313. }), i.innerHTML = c.length ? c.join(",") + "{".concat(this.jodit.options.table.selectionCellStyle, "}") : "";
  8314. }, r.prototype.addSelection = function(i) {
  8315. this.selected.add(i), this.recalculateStyles();
  8316. var c = h.Dom.closest(i, "table", this.j.editor);
  8317. if (c) {
  8318. var m = r.selectedByTable.get(c) || /* @__PURE__ */ new Set();
  8319. m.add(i), r.selectedByTable.set(c, m);
  8320. }
  8321. }, r.prototype.removeSelection = function(i) {
  8322. this.selected.delete(i), this.recalculateStyles();
  8323. var c = h.Dom.closest(i, "table", this.j.editor);
  8324. if (c) {
  8325. var m = r.selectedByTable.get(c);
  8326. m && (m.delete(i), m.size || r.selectedByTable.delete(c));
  8327. }
  8328. }, r.prototype.getAllSelectedCells = function() {
  8329. return (0, p.toArray)(this.selected);
  8330. }, r.getSelectedCellsByTable = function(i) {
  8331. var c = r.selectedByTable.get(i);
  8332. return c ? (0, p.toArray)(c) : [];
  8333. }, r.prototype.destruct = function() {
  8334. return this.selected.clear(), o.prototype.destruct.call(this);
  8335. }, r.getRowsCount = function(i) {
  8336. return i.rows.length;
  8337. }, r.getColumnsCount = function(i) {
  8338. return r.formalMatrix(i).reduce(function(c, m) {
  8339. return Math.max(c, m.length);
  8340. }, 0);
  8341. }, r.formalMatrix = function(i, c) {
  8342. for (var m = [[]], y = (0, p.toArray)(i.rows), g = function(S, j) {
  8343. m[j] === void 0 && (m[j] = []);
  8344. for (var E, x, k = S.colSpan, I = S.rowSpan, M = 0; m[j][M]; ) M += 1;
  8345. for (x = 0; I > x; x += 1) for (E = 0; k > E; E += 1) {
  8346. if (m[j + x] === void 0 && (m[j + x] = []), c && c(S, j + x, M + E, k, I) === !1) return !1;
  8347. m[j + x][M + E] = S;
  8348. }
  8349. }, b = 0; y.length > b; b += 1) for (var w = (0, p.toArray)(y[b].cells), C = 0; w.length > C; C += 1) if (g(w[C], b) === !1) return m;
  8350. return m;
  8351. }, r.formalCoordinate = function(i, c, m) {
  8352. m === void 0 && (m = !1);
  8353. var y = 0, g = 0, b = 1, w = 1;
  8354. return r.formalMatrix(i, function(C, S, j, E, x) {
  8355. if (c === C) return y = S, g = j, b = E || 1, w = x || 1, m && (g += (E || 1) - 1, y += (x || 1) - 1), !1;
  8356. }), [y, g, b, w];
  8357. }, r.appendRow = function(i, c, m, y) {
  8358. var g, b;
  8359. if (c) b = c.cloneNode(!0), (0, p.$$)("td,th", c).forEach(function(S) {
  8360. var j = (0, p.attr)(S, "rowspan");
  8361. if (j && parseInt(j, 10) > 1) {
  8362. var E = parseInt(j, 10) - 1;
  8363. (0, p.attr)(S, "rowspan", E > 1 ? E : null);
  8364. }
  8365. }), (0, p.$$)("td,th", b).forEach(function(S) {
  8366. S.innerHTML = "";
  8367. });
  8368. else {
  8369. var w = r.getColumnsCount(i);
  8370. b = y.element("tr");
  8371. for (var C = 0; w > C; C += 1) b.appendChild(y.element("td"));
  8372. }
  8373. m && c && c.nextSibling ? c.parentNode && c.parentNode.insertBefore(b, c.nextSibling) : !m && c ? c.parentNode && c.parentNode.insertBefore(b, c) : (((g = i.getElementsByTagName("tbody")) === null || g === void 0 ? void 0 : g[0]) || i).appendChild(b);
  8374. }, r.removeRow = function(i, c) {
  8375. var m, y = r.formalMatrix(i), g = i.rows[c];
  8376. y[c].forEach(function(b, w) {
  8377. if (m = !1, 0 > c - 1 || y[c - 1][w] !== b) if (y[c + 1] && y[c + 1][w] === b) {
  8378. if (b.parentNode === g && b.parentNode.nextSibling) {
  8379. m = !0;
  8380. for (var C = w + 1; y[c + 1][C] === b; ) C += 1;
  8381. var S = h.Dom.next(b.parentNode, function(E) {
  8382. return h.Dom.isTag(E, "tr");
  8383. }, i);
  8384. S && (y[c + 1][C] ? S.insertBefore(b, y[c + 1][C]) : S.appendChild(b));
  8385. }
  8386. } else h.Dom.safeRemove(b);
  8387. else m = !0;
  8388. if (m && (b.parentNode === g || b !== y[c][w - 1])) {
  8389. var j = b.rowSpan;
  8390. (0, p.attr)(b, "rowspan", j - 1 > 1 ? j - 1 : null);
  8391. }
  8392. }), h.Dom.safeRemove(g);
  8393. }, r.appendColumn = function(i, c, m, y) {
  8394. var g, b = r.formalMatrix(i);
  8395. for ((c === void 0 || 0 > c) && (c = r.getColumnsCount(i) - 1), g = 0; b.length > g; g += 1) {
  8396. var w = y.element("td"), C = b[g][c], S = !1;
  8397. m ? (b[g] && C && c + 1 >= b[g].length || C !== b[g][c + 1]) && (C.nextSibling ? h.Dom.before(C.nextSibling, w) : C.parentNode && C.parentNode.appendChild(w), S = !0) : (0 > c - 1 || b[g][c] !== b[g][c - 1] && b[g][c].parentNode) && (h.Dom.before(b[g][c], w), S = !0), S || (0, p.attr)(b[g][c], "colspan", parseInt((0, p.attr)(b[g][c], "colspan") || "1", 10) + 1);
  8398. }
  8399. }, r.removeColumn = function(i, c) {
  8400. var m, y = r.formalMatrix(i);
  8401. y.forEach(function(g, b) {
  8402. var w = g[c];
  8403. if (m = !1, 0 > c - 1 || y[b][c - 1] !== w ? g.length > c + 1 && y[b][c + 1] === w ? m = !0 : h.Dom.safeRemove(w) : m = !0, m && (0 > b - 1 || w !== y[b - 1][c])) {
  8404. var C = w.colSpan;
  8405. (0, p.attr)(w, "colspan", C - 1 > 1 ? (C - 1).toString() : null);
  8406. }
  8407. });
  8408. }, r.getSelectedBound = function(i, c) {
  8409. var m, y, g, b = [[1 / 0, 1 / 0], [0, 0]], w = r.formalMatrix(i);
  8410. for (m = 0; w.length > m; m += 1) for (y = 0; w[m] && w[m].length > y; y += 1) c.includes(w[m][y]) && (b[0][0] = Math.min(m, b[0][0]), b[0][1] = Math.min(y, b[0][1]), b[1][0] = Math.max(m, b[1][0]), b[1][1] = Math.max(y, b[1][1]));
  8411. for (m = b[0][0]; b[1][0] >= m; m += 1) for (g = 1, y = b[0][1]; b[1][1] >= y; y += 1) {
  8412. for (; w[m] && w[m][y - g] && w[m][y] === w[m][y - g]; ) b[0][1] = Math.min(y - g, b[0][1]), b[1][1] = Math.max(y - g, b[1][1]), g += 1;
  8413. for (g = 1; w[m] && w[m][y + g] && w[m][y] === w[m][y + g]; ) b[0][1] = Math.min(y + g, b[0][1]), b[1][1] = Math.max(y + g, b[1][1]), g += 1;
  8414. for (g = 1; w[m - g] && w[m][y] === w[m - g][y]; ) b[0][0] = Math.min(m - g, b[0][0]), b[1][0] = Math.max(m - g, b[1][0]), g += 1;
  8415. for (g = 1; w[m + g] && w[m][y] === w[m + g][y]; ) b[0][0] = Math.min(m + g, b[0][0]), b[1][0] = Math.max(m + g, b[1][0]), g += 1;
  8416. }
  8417. return b;
  8418. }, r.normalizeTable = function(i) {
  8419. var c, m, y, g, b = [], w = r.formalMatrix(i);
  8420. for (m = 0; w[0].length > m; m += 1) {
  8421. for (y = 1e6, g = !1, c = 0; w.length > c; c += 1) if (w[c][m] !== void 0) {
  8422. if (2 > w[c][m].colSpan) {
  8423. g = !0;
  8424. break;
  8425. }
  8426. y = Math.min(y, w[c][m].colSpan);
  8427. }
  8428. if (!g) for (c = 0; w.length > c; c += 1) w[c][m] !== void 0 && r.mark(w[c][m], "colspan", w[c][m].colSpan - y + 1, b);
  8429. }
  8430. for (c = 0; w.length > c; c += 1) {
  8431. for (y = 1e6, g = !1, m = 0; w[c].length > m; m += 1) if (w[c][m] !== void 0) {
  8432. if (2 > w[c][m].rowSpan) {
  8433. g = !0;
  8434. break;
  8435. }
  8436. y = Math.min(y, w[c][m].rowSpan);
  8437. }
  8438. if (!g) for (m = 0; w[c].length > m; m += 1) w[c][m] !== void 0 && r.mark(w[c][m], "rowspan", w[c][m].rowSpan - y + 1, b);
  8439. }
  8440. for (c = 0; w.length > c; c += 1) for (m = 0; w[c].length > m; m += 1) w[c][m] !== void 0 && (w[c][m].hasAttribute("rowspan") && w[c][m].rowSpan === 1 && (0, p.attr)(w[c][m], "rowspan", null), w[c][m].hasAttribute("colspan") && w[c][m].colSpan === 1 && (0, p.attr)(w[c][m], "colspan", null), w[c][m].hasAttribute("class") && !(0, p.attr)(w[c][m], "class") && (0, p.attr)(w[c][m], "class", null));
  8441. r.unmark(b);
  8442. }, r.mergeSelected = function(i, c) {
  8443. var m, y = [], g = r.getSelectedBound(i, r.getSelectedCellsByTable(i)), b = 0, w = null, C = 0, S = 0, j = 0, E = /* @__PURE__ */ new Set(), x = [];
  8444. g && (g[0][0] - g[1][0] || g[0][1] - g[1][1]) && (r.formalMatrix(i, function(k, I, M, T, O) {
  8445. if (!(g[0][0] > I || I > g[1][0] || g[0][1] > M || M > g[1][1])) {
  8446. if (E.has(m = k)) return;
  8447. E.add(m), I === g[0][0] && m.style.width && (b += m.offsetWidth), (0, p.trim)(k.innerHTML.replace(/<br(\/)?>/g, "")) !== "" && y.push(k.innerHTML), T > 1 && (S += T - 1), O > 1 && (j += O - 1), w ? (r.mark(m, "remove", 1, x), l(c).removeSelection(m)) : (w = k, C = M);
  8448. }
  8449. }), S = g[1][1] - g[0][1] + 1, j = g[1][0] - g[0][0] + 1, w && (S > 1 && r.mark(w, "colspan", S, x), j > 1 && r.mark(w, "rowspan", j, x), b && (r.mark(w, "width", (b / i.offsetWidth * 100).toFixed(v.ACCURACY) + "%", x), C && r.setColumnWidthByDelta(i, C, 0, !0, x)), w.innerHTML = y.join("<br/>"), l(c).addSelection(w), E.delete(w), r.unmark(x), r.normalizeTable(i), (0, p.toArray)(i.rows).forEach(function(k, I) {
  8450. k.cells.length || h.Dom.safeRemove(k);
  8451. })));
  8452. }, r.splitHorizontal = function(i, c) {
  8453. var m, y, g, b, w, C = [];
  8454. r.getSelectedCellsByTable(i).forEach(function(S) {
  8455. (y = c.createInside.element("td")).appendChild(c.createInside.element("br")), g = c.createInside.element("tr"), m = r.formalCoordinate(i, S), 2 > S.rowSpan ? (r.formalMatrix(i, function(j, E, x) {
  8456. m[0] === E && m[1] !== x && j !== S && r.mark(j, "rowspan", j.rowSpan + 1, C);
  8457. }), h.Dom.after(h.Dom.closest(S, "tr", i), g), g.appendChild(y)) : (r.mark(S, "rowspan", S.rowSpan - 1, C), r.formalMatrix(i, function(j, E, x) {
  8458. E > m[0] && m[0] + S.rowSpan > E && m[1] > x && j.parentNode.rowIndex === E && (w = j), E > m[0] && j === S && (b = i.rows[E]);
  8459. }), w ? h.Dom.after(w, y) : b.insertBefore(y, b.firstChild)), S.colSpan > 1 && r.mark(y, "colspan", S.colSpan, C), r.unmark(C), l(c).removeSelection(S);
  8460. }), this.normalizeTable(i);
  8461. }, r.splitVertical = function(i, c) {
  8462. var m, y, g, b = [];
  8463. r.getSelectedCellsByTable(i).forEach(function(w) {
  8464. m = r.formalCoordinate(i, w), 2 > w.colSpan ? r.formalMatrix(i, function(S, j, E) {
  8465. m[1] === E && m[0] !== j && S !== w && r.mark(S, "colspan", S.colSpan + 1, b);
  8466. }) : r.mark(w, "colspan", w.colSpan - 1, b), (y = c.createInside.element("td")).appendChild(c.createInside.element("br")), w.rowSpan > 1 && r.mark(y, "rowspan", w.rowSpan, b);
  8467. var C = w.offsetWidth;
  8468. h.Dom.after(w, y), r.mark(w, "width", (100 * (g = C / i.offsetWidth / 2)).toFixed(v.ACCURACY) + "%", b), r.mark(y, "width", (100 * g).toFixed(v.ACCURACY) + "%", b), r.unmark(b), l(c).removeSelection(w);
  8469. }), r.normalizeTable(i);
  8470. }, r.setColumnWidthByDelta = function(i, c, m, y, g) {
  8471. for (var b = r.formalMatrix(i), w = 0, C = 0; b.length > C; C += 1) if (1 >= (S = b[C][c]).colSpan || 1 >= b.length) {
  8472. r.mark(S, "width", ((S.offsetWidth + m) / i.offsetWidth * 100).toFixed(v.ACCURACY) + "%", g), w = C;
  8473. break;
  8474. }
  8475. for (C = w + 1; b.length > C; C += 1) {
  8476. var S;
  8477. r.mark(S = b[C][c], "width", null, g);
  8478. }
  8479. y || r.unmark(g);
  8480. }, r.mark = function(i, c, m, y) {
  8481. var g;
  8482. y.push(i);
  8483. var b = (g = u.get(i)) !== null && g !== void 0 ? g : {};
  8484. b[c] = m === void 0 ? 1 : m, u.set(i, b);
  8485. }, r.unmark = function(i) {
  8486. i.forEach(function(c) {
  8487. var m = u.get(c);
  8488. m && (Object.keys(m).forEach(function(y) {
  8489. var g = m[y];
  8490. switch (y) {
  8491. case "remove":
  8492. h.Dom.safeRemove(c);
  8493. break;
  8494. case "rowspan":
  8495. (0, p.attr)(c, "rowspan", (0, p.isNumber)(g) && g > 1 ? g : null);
  8496. break;
  8497. case "colspan":
  8498. (0, p.attr)(c, "colspan", (0, p.isNumber)(g) && g > 1 ? g : null);
  8499. break;
  8500. case "width":
  8501. g == null ? (c.style.removeProperty("width"), (0, p.attr)(c, "style") || (0, p.attr)(c, "style", null)) : c.style.width = g.toString();
  8502. }
  8503. delete m[y];
  8504. }), u.delete(c));
  8505. });
  8506. }, r.selectedByTable = /* @__PURE__ */ new WeakMap(), n.__decorate([(0, s.debounce)()], r.prototype, "recalculateStyles", null), r;
  8507. }(d.ViewComponent);
  8508. t.Table = f;
  8509. var l = function(o) {
  8510. return o.getInstance("Table", o.o);
  8511. };
  8512. }, 48197: function(_, t, e) {
  8513. Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarButton = void 0;
  8514. var n = e(20255);
  8515. e(53362);
  8516. var v = e(96516), h = e(43441), p = e(64968), d = e(12680), a = e(81438), s = e(40332), u = e(77904), f = e(72719), l = e(29411), o = e(38546), r = function(i) {
  8517. function c(m, y, g) {
  8518. g === void 0 && (g = null);
  8519. var b = i.call(this, m) || this;
  8520. return b.control = y, b.target = g, b.state = n.__assign(n.__assign({}, (0, v.UIButtonState)()), { theme: "toolbar", currentValue: "", hasTrigger: !1 }), b.openedPopup = null, m.e.on([b.button, b.trigger], "mousedown", function(w) {
  8521. return w.preventDefault();
  8522. }), b.onAction(b.onClick), b.hookStatus(l.STATUSES.ready, function() {
  8523. b.initFromControl(), b.initTooltip(), b.update();
  8524. }), y.mods && Object.keys(y.mods).forEach(function(w) {
  8525. y.mods && b.setMod(w, y.mods[w]);
  8526. }), b;
  8527. }
  8528. return n.__extends(c, i), c.prototype.className = function() {
  8529. return "ToolbarButton";
  8530. }, Object.defineProperty(c.prototype, "toolbar", { get: function() {
  8531. return this.closest(f.ToolbarCollection);
  8532. }, enumerable: !1, configurable: !0 }), Object.defineProperty(c.prototype, "button", { get: function() {
  8533. return this.container.querySelector("button.".concat(this.componentName, "__button"));
  8534. }, enumerable: !1, configurable: !0 }), c.prototype.update = function() {
  8535. var m = this.control, y = this.state, g = this.closest(f.ToolbarCollection);
  8536. y.disabled = this.calculateDisabledStatus(g), y.activated = this.calculateActivatedStatus(g), (0, s.isFunction)(m.update) && g && m.update(this, g.jodit), i.prototype.update.call(this);
  8537. }, c.prototype.calculateActivatedStatus = function(m) {
  8538. return !((0, s.isJoditObject)(this.j) && !this.j.editorIsActive) && (!(!(0, s.isFunction)(this.control.isActive) || !this.control.isActive(this.j, this.control, this)) || !!(m && m.shouldBeActive(this)));
  8539. }, c.prototype.calculateDisabledStatus = function(m) {
  8540. return !!this.j.o.disabled || !(!this.j.o.readonly || this.j.o.activeButtonsInReadOnly && this.j.o.activeButtonsInReadOnly.includes(this.control.name)) || !(!(0, s.isFunction)(this.control.isDisabled) || !this.control.isDisabled(this.j, this.control, this)) || !!(m && m.shouldBeDisabled(this));
  8541. }, c.prototype.onChangeActivated = function() {
  8542. (0, s.attr)(this.button, "aria-pressed", this.state.activated), i.prototype.onChangeActivated.call(this);
  8543. }, c.prototype.onChangeText = function() {
  8544. (0, s.isFunction)(this.control.template) ? this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text)) : i.prototype.onChangeText.call(this), this.setMod("text-icons", !!this.text.innerText.trim().length);
  8545. }, c.prototype.onChangeTabIndex = function() {
  8546. (0, s.attr)(this.button, "tabindex", this.state.tabIndex);
  8547. }, c.prototype.onChangeTooltip = function() {
  8548. (0, s.attr)(this.button, "aria-label", this.state.tooltip), i.prototype.onChangeTooltip.call(this);
  8549. }, c.prototype.createContainer = function() {
  8550. var m = this.componentName, y = this.j.c.span(m), g = i.prototype.createContainer.call(this);
  8551. return (0, s.attr)(y, "role", "listitem"), g.classList.remove(m), g.classList.add(m + "__button"), Object.defineProperty(g, "component", { value: this }), y.appendChild(g), this.trigger = this.j.c.fromHTML('<span role="trigger" class="'.concat(m, '__trigger">').concat(u.Icon.get("chevron"), "</span>")), y;
  8552. }, c.prototype.focus = function() {
  8553. var m;
  8554. (m = this.container.querySelector("button")) === null || m === void 0 || m.focus();
  8555. }, c.prototype.onChangeHasTrigger = function() {
  8556. this.state.hasTrigger ? this.container.appendChild(this.trigger) : p.Dom.safeRemove(this.trigger), this.setMod("with-trigger", this.state.hasTrigger || null);
  8557. }, c.prototype.onChangeDisabled = function() {
  8558. var m = this.state.disabled ? "disabled" : null;
  8559. (0, s.attr)(this.trigger, "disabled", m), (0, s.attr)(this.button, "disabled", m), (0, s.attr)(this.container, "disabled", m);
  8560. }, c.prototype.initTooltip = function() {
  8561. var m = this;
  8562. this.j.o.textIcons || !this.j.o.showTooltip || this.j.o.useNativeTooltip || this.j.e.off(this.container, "mouseenter mouseleave").on(this.container, "mousemove", function(y) {
  8563. m.state.tooltip && !m.state.disabled && m.j.e.fire("delayShowTooltip", function() {
  8564. return { x: y.clientX + 10, y: y.clientY + 10 };
  8565. }, m.state.tooltip);
  8566. }).on(this.container, "mouseleave", function() {
  8567. m.j.e.fire("hideTooltip");
  8568. });
  8569. }, c.prototype.initFromControl = function() {
  8570. var m, y = this.control, g = this.state;
  8571. this.updateSize(), g.name = y.name;
  8572. var b = this.j.o.textIcons;
  8573. if (b === !0 || (0, s.isFunction)(b) && b(y.name) || y.template) g.icon = (0, v.UIButtonState)().icon, g.text = y.text || y.name;
  8574. else {
  8575. if (y.iconURL) g.icon.iconURL = y.iconURL;
  8576. else {
  8577. var w = y.icon || y.name;
  8578. g.icon.name = u.Icon.exists(w) || !((m = this.j.o.extraIcons) === null || m === void 0) && m[w] ? w : "";
  8579. }
  8580. y.iconURL || g.icon.name || (g.text = y.text || y.name);
  8581. }
  8582. y.tooltip && (g.tooltip = this.j.i18n((0, s.isFunction)(y.tooltip) ? y.tooltip(this.j, y, this) : y.tooltip)), g.hasTrigger = !!(y.list || y.popup && y.exec);
  8583. }, c.prototype.onTriggerClick = function(m) {
  8584. var y, g, b, w = this;
  8585. if (this.openedPopup) this.closePopup();
  8586. else {
  8587. var C = this.control;
  8588. if (m.buffer = { actionTrigger: this }, C.list) return this.openControlList(C);
  8589. if ((0, s.isFunction)(C.popup)) {
  8590. var S = this.openPopup();
  8591. if (S.parentElement = this, this.j.e.fire((0, s.camelCase)("before-".concat(C.name, "-open-popup")), this.target, C, S) !== !1) {
  8592. var j = (b = (g = (y = this.toolbar) === null || y === void 0 ? void 0 : y.getTarget(this)) !== null && g !== void 0 ? g : this.target) !== null && b !== void 0 ? b : null, E = C.popup(this.j, j, C, this.closePopup, this);
  8593. E && S.setContent((0, s.isString)(E) ? this.j.c.fromHTML(E) : E).open(function() {
  8594. return (0, s.position)(w.container);
  8595. }, !1, this.j.o.allowTabNavigation ? this.container : void 0);
  8596. }
  8597. this.j.e.fire((0, s.camelCase)("after-".concat(C.name, "-open-popup")), S.container);
  8598. }
  8599. }
  8600. }, c.prototype.openControlList = function(m) {
  8601. var y, g = this, b = (y = this.jodit.options.controls) !== null && y !== void 0 ? y : {}, w = function(x) {
  8602. return (0, o.findControlType)(x, b);
  8603. }, C = m.list, S = this.openPopup(), j = (0, a.makeCollection)(this.j);
  8604. S.parentElement = this, j.parentElement = S, j.mode = "vertical";
  8605. var E = function(x, k) {
  8606. if ((0, s.isString)(k) && w(k)) return n.__assign({ name: k.toString() }, w(k));
  8607. if ((0, s.isString)(x) && w(x)) return n.__assign(n.__assign({ name: x.toString() }, w(x)), typeof k == "object" ? k : {});
  8608. (function(T) {
  8609. return (0, s.isPlainObject)(T) && "title" in T && "value" in T;
  8610. })(x) && (k = x.value, x = x.title);
  8611. var I = m.childTemplate, M = { name: x.toString(), template: I && function(T, O, L) {
  8612. return I(T, O, L, g);
  8613. }, exec: m.childExec ? function(T, O, L) {
  8614. var N;
  8615. return (N = m.childExec) === null || N === void 0 ? void 0 : N.call(m, T, O, n.__assign(n.__assign({}, L), { parentControl: m }));
  8616. } : m.exec, data: m.data, command: m.command, isActive: m.isChildActive, isDisabled: m.isChildDisabled, mode: m.mode, args: n.__spreadArray(n.__spreadArray([], n.__read(m.args ? m.args : []), !1), [x, k], !1) };
  8617. return (0, s.isString)(k) && (M.text = k), M;
  8618. };
  8619. j.build((0, s.isArray)(C) ? C.map(E) : (0, s.keys)(C, !1).map(function(x) {
  8620. return E(x, C[x]);
  8621. }), this.target), S.setContent(j.container).open(function() {
  8622. return (0, s.position)(g.container);
  8623. }, !1, this.j.o.allowTabNavigation ? this.container : void 0), this.state.activated = !0;
  8624. }, c.prototype.onOutsideClick = function(m) {
  8625. this.openedPopup && (m && p.Dom.isNode(m.target) && (p.Dom.isOrContains(this.container, m.target) || this.openedPopup.isOwnClick(m)) || this.closePopup());
  8626. }, c.prototype.openPopup = function() {
  8627. return this.closePopup(), this.openedPopup = new d.Popup(this.j, !1), this.j.e.on(this.ow, "mousedown touchstart", this.onOutsideClick).on("escape closeAllPopups", this.onOutsideClick), this.openedPopup;
  8628. }, c.prototype.closePopup = function() {
  8629. this.openedPopup && (this.j.e.off(this.ow, "mousedown touchstart", this.onOutsideClick).off("escape closeAllPopups", this.onOutsideClick), this.state.activated = !1, this.openedPopup.close(), this.openedPopup.destruct(), this.openedPopup = null);
  8630. }, c.prototype.onClick = function(m) {
  8631. var y, g, b, w, C, S, j, E = this.control;
  8632. if ((0, s.isFunction)(E.exec)) {
  8633. var x = (b = (g = (y = this.toolbar) === null || y === void 0 ? void 0 : y.getTarget(this)) !== null && g !== void 0 ? g : this.target) !== null && b !== void 0 ? b : null, k = E.exec(this.j, x, { control: E, originalEvent: m, button: this });
  8634. if (k !== !1 && k !== !0 && ((C = (w = this.j) === null || w === void 0 ? void 0 : w.e) === null || C === void 0 || C.fire("synchro"), this.parentElement && this.parentElement.update(), (j = (S = this.j) === null || S === void 0 ? void 0 : S.e) === null || j === void 0 || j.fire("closeAllPopups afterExec")), k !== !1) return;
  8635. }
  8636. return E.list ? this.openControlList(E) : (0, s.isFunction)(E.popup) ? this.onTriggerClick(m) : void ((E.command || E.name) && ((0, s.call)((0, s.isJoditObject)(this.j) ? this.j.execCommand.bind(this.j) : this.j.od.execCommand.bind(this.j.od), E.command || E.name, !1, E.args && E.args[0]), this.j.e.fire("closeAllPopups")));
  8637. }, c.prototype.destruct = function() {
  8638. return this.closePopup(), i.prototype.destruct.call(this);
  8639. }, n.__decorate([(0, h.watch)("state.tooltip")], c.prototype, "onChangeTooltip", null), n.__decorate([(0, h.watch)("state.hasTrigger")], c.prototype, "onChangeHasTrigger", null), n.__decorate([(0, h.watch)("trigger:click")], c.prototype, "onTriggerClick", null), n.__decorate([h.autobind], c.prototype, "onOutsideClick", null), n.__decorate([h.autobind], c.prototype, "closePopup", null), n.__decorate([h.component], c);
  8640. }(v.UIButton);
  8641. t.ToolbarButton = r;
  8642. }, 34375: function(_, t, e) {
  8643. Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarContent = void 0;
  8644. var n = e(20255);
  8645. e(48904);
  8646. var v = e(96516), h = e(64968), p = e(40332), d = e(43441), a = function(s) {
  8647. function u(f, l, o) {
  8648. o === void 0 && (o = null);
  8649. var r = s.call(this, f) || this;
  8650. return r.control = l, r.target = o, r.container.classList.add("".concat(r.componentName, "_").concat(r.clearName(l.name))), (0, p.attr)(r.container, "role", "content"), r;
  8651. }
  8652. return n.__extends(u, s), u.prototype.className = function() {
  8653. return "ToolbarContent";
  8654. }, u.prototype.update = function() {
  8655. var f = this.control.getContent(this.j, this.control, this);
  8656. ((0, p.isString)(f) || f.parentNode !== this.container) && (h.Dom.detach(this.container), this.container.appendChild((0, p.isString)(f) ? this.j.create.fromHTML(f) : f)), s.prototype.update.call(this);
  8657. }, u.prototype.createContainer = function() {
  8658. return this.j.c.span(this.componentName);
  8659. }, n.__decorate([d.component], u);
  8660. }(v.UIButton);
  8661. t.ToolbarContent = a;
  8662. }, 3890: function(_, t, e) {
  8663. Object.defineProperty(t, "__esModule", { value: !0 });
  8664. var n = e(20255);
  8665. n.__exportStar(e(48197), t), n.__exportStar(e(34375), t);
  8666. }, 72719: function(_, t, e) {
  8667. Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarCollection = void 0;
  8668. var n = e(20255);
  8669. e(85796);
  8670. var v = e(40332), h = e(2074), p = e(81438), d = e(43441), a = function(s) {
  8671. function u(f) {
  8672. var l = s.call(this, f) || this;
  8673. return l.__listenEvents = "updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur", l.update = l.j.async.debounce(l.__immediateUpdate, function() {
  8674. return l.j.defaultTimeout;
  8675. }), l.__tooltip = null, l.__initEvents(), l.__tooltip = h.UITooltip.make(f), l;
  8676. }
  8677. return n.__extends(u, s), u.prototype.className = function() {
  8678. return "ToolbarCollection";
  8679. }, Object.defineProperty(u.prototype, "firstButton", { get: function() {
  8680. return n.__read(this.buttons, 1)[0] || null;
  8681. }, enumerable: !1, configurable: !0 }), u.prototype.makeButton = function(f, l) {
  8682. return l === void 0 && (l = null), (0, p.makeButton)(this.j, f, l);
  8683. }, u.prototype.shouldBeActive = function(f) {
  8684. }, u.prototype.shouldBeDisabled = function(f) {
  8685. }, u.prototype.getTarget = function(f) {
  8686. return f.target || null;
  8687. }, u.prototype.__immediateUpdate = function() {
  8688. this.isDestructed || this.j.isLocked || (s.prototype.update.call(this), this.j.e.fire("afterUpdateToolbar"));
  8689. }, u.prototype.setDirection = function(f) {
  8690. this.container.style.direction = f, this.container.setAttribute("dir", f);
  8691. }, u.prototype.__initEvents = function() {
  8692. this.j.e.on(this.__listenEvents, this.update).on("afterSetMode focus", this.__immediateUpdate);
  8693. }, u.prototype.hide = function() {
  8694. this.container.remove();
  8695. }, u.prototype.show = function() {
  8696. this.appendTo(this.j.toolbarContainer);
  8697. }, u.prototype.showInline = function(f) {
  8698. throw (0, v.error)("The method is not implemented for this class.");
  8699. }, u.prototype.build = function(f, l) {
  8700. l === void 0 && (l = null);
  8701. var o = this.j.e.fire("beforeToolbarBuild", f);
  8702. return o && (f = o), s.prototype.build.call(this, f, l), this;
  8703. }, u.prototype.destruct = function() {
  8704. var f;
  8705. this.isDestructed || ((f = this.__tooltip) === null || f === void 0 || f.destruct(), this.j.e.off(this.__listenEvents, this.update).off("afterSetMode focus", this.__immediateUpdate), s.prototype.destruct.call(this));
  8706. }, n.__decorate([d.autobind], u.prototype, "__immediateUpdate", null), n.__decorate([d.component], u);
  8707. }(h.UIList);
  8708. t.ToolbarCollection = a;
  8709. }, 81698: function(_, t, e) {
  8710. Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarEditorCollection = void 0;
  8711. var n = e(20255), v = e(72719), h = e(86893), p = e(64968), d = e(40332), a = e(43441), s = function(u) {
  8712. function f(l) {
  8713. var o = u.call(this, l) || this;
  8714. return o.checkActiveStatus = function(r, i) {
  8715. var c = 0, m = 0;
  8716. return Object.keys(r).forEach(function(y) {
  8717. var g = r[y];
  8718. (0, d.isFunction)(g) ? g(o.j, (0, d.css)(i, y).toString()) && (c += 1) : g.indexOf((0, d.css)(i, y).toString()) !== -1 && (c += 1), m += 1;
  8719. }), m === c;
  8720. }, o.prependInvisibleInput(o.container), o;
  8721. }
  8722. return n.__extends(f, u), f.prototype.className = function() {
  8723. return "ToolbarEditorCollection";
  8724. }, f.prototype.shouldBeDisabled = function(l) {
  8725. var o = u.prototype.shouldBeDisabled.call(this, l);
  8726. if (o !== void 0) return o;
  8727. var r = l.control.mode === void 0 ? h.MODE_WYSIWYG : l.control.mode;
  8728. return !(r === h.MODE_SPLIT || r === this.j.getRealMode());
  8729. }, f.prototype.shouldBeActive = function(l) {
  8730. var o = this, r = u.prototype.shouldBeActive.call(this, l);
  8731. if (r !== void 0) return r;
  8732. var i = this.j.selection ? this.j.s.current() : null;
  8733. if (!i) return !1;
  8734. if (l.control.tags) {
  8735. var c = l.control.tags;
  8736. if (p.Dom.up(i, function(y) {
  8737. if (y && c.indexOf(y.nodeName.toLowerCase()) !== -1) return !0;
  8738. }, this.j.editor)) return !0;
  8739. }
  8740. if (l.control.css) {
  8741. var m = l.control.css;
  8742. if (p.Dom.up(i, function(y) {
  8743. if (y && !p.Dom.isText(y)) return o.checkActiveStatus(m, y);
  8744. }, this.j.editor)) return !0;
  8745. }
  8746. return !1;
  8747. }, f.prototype.getTarget = function(l) {
  8748. return l.target || this.j.s.current() || null;
  8749. }, f.prototype.prependInvisibleInput = function(l) {
  8750. var o = this.j.create.element("input", { tabIndex: -1, disabled: !0, style: "width: 0; height:0; position: absolute; visibility: hidden;" });
  8751. p.Dom.appendChildFirst(l, o);
  8752. }, f.prototype.showInline = function(l) {
  8753. this.jodit.e.fire("showInlineToolbar", l);
  8754. }, f.prototype.hide = function() {
  8755. this.jodit.e.fire("hidePopup"), u.prototype.hide.call(this), this.jodit.e.fire("toggleToolbar");
  8756. }, f.prototype.show = function() {
  8757. u.prototype.show.call(this), this.jodit.e.fire("toggleToolbar");
  8758. }, n.__decorate([a.component], f);
  8759. }(v.ToolbarCollection);
  8760. t.ToolbarEditorCollection = s;
  8761. }, 81438: function(_, t, e) {
  8762. Object.defineProperty(t, "__esModule", { value: !0 }), t.makeButton = t.makeCollection = void 0;
  8763. var n = e(40332), v = e(72719), h = e(81698), p = e(48197), d = e(34375);
  8764. t.makeCollection = function(a, s) {
  8765. var u = (0, n.isJoditObject)(a) ? new h.ToolbarEditorCollection(a) : new v.ToolbarCollection(a);
  8766. return a.o.textIcons && u.container.classList.add("jodit_text_icons"), s && (u.parentElement = s), a.o.toolbarButtonSize && (u.buttonSize = a.o.toolbarButtonSize), u;
  8767. }, t.makeButton = function(a, s, u) {
  8768. if (u === void 0 && (u = null), (0, n.isFunction)(s.getContent)) return new d.ToolbarContent(a, s, u);
  8769. var f = new p.ToolbarButton(a, s, u);
  8770. return f.state.tabIndex = a.o.allowTabNavigation ? 0 : -1, f;
  8771. };
  8772. }, 36262: function(_, t, e) {
  8773. Object.defineProperty(t, "__esModule", { value: !0 });
  8774. var n = e(20255), v = e(93166), h = e(49781), p = e(77892);
  8775. v.Config.prototype.enableDragAndDropFileToEditor = !0, v.Config.prototype.uploader = { url: "", insertImageAsBase64URI: !1, imagesExtensions: ["jpg", "png", "jpeg", "gif"], headers: null, data: null, filesVariableName: function(d) {
  8776. return "files[".concat(d, "]");
  8777. }, withCredentials: !1, pathVariableName: "path", format: "json", method: "POST", prepareData: function(d) {
  8778. return d;
  8779. }, isSuccess: function(d) {
  8780. return d.success;
  8781. }, getMessage: function(d) {
  8782. return d.data.messages !== void 0 && (0, h.isArray)(d.data.messages) ? d.data.messages.join(" ") : "";
  8783. }, processFileName: function(d, a, s) {
  8784. return [d, a, s];
  8785. }, process: function(d) {
  8786. return d.data;
  8787. }, error: function(d) {
  8788. this.j.e.fire("errorMessage", d.message, "error", 4e3);
  8789. }, getDisplayName: function(d, a) {
  8790. return d + a;
  8791. }, defaultHandlerSuccess: function(d) {
  8792. var a = this, s = this.j || this;
  8793. (0, p.isJoditObject)(s) && d.files && d.files.length && d.files.forEach(function(u, f) {
  8794. var l = n.__read(d.isImages && d.isImages[f] ? ["img", "src"] : ["a", "href"], 2), o = l[0], r = l[1], i = s.createInside.element(o);
  8795. i.setAttribute(r, d.baseurl + u), o === "a" && (i.textContent = s.o.uploader.getDisplayName.call(a, d.baseurl, u)), o === "img" ? s.s.insertImage(i, null, s.o.imageDefaultWidth) : s.s.insertNode(i);
  8796. });
  8797. }, defaultHandlerError: function(d) {
  8798. this.j.e.fire("errorMessage", d.message);
  8799. }, contentType: function(d) {
  8800. return (this.ow.FormData === void 0 || typeof d == "string") && "application/x-www-form-urlencoded; charset=UTF-8";
  8801. } };
  8802. }, 55778: function(_, t, e) {
  8803. Object.defineProperty(t, "__esModule", { value: !0 }), t.buildData = void 0;
  8804. var n = e(40332);
  8805. t.buildData = function(v, h) {
  8806. if ((0, n.isFunction)(v.o.buildData)) return v.o.buildData.call(v, h);
  8807. var p = v.ow.FormData;
  8808. if (p !== void 0) {
  8809. if (h instanceof p || (0, n.isString)(h)) return h;
  8810. var d = new p();
  8811. return Object.keys(h).forEach(function(a) {
  8812. d.append(a, h[a]);
  8813. }), d;
  8814. }
  8815. return h;
  8816. };
  8817. }, 98099: function(_, t) {
  8818. Object.defineProperty(t, "__esModule", { value: !0 }), t.dataURItoBlob = void 0, t.dataURItoBlob = function(e) {
  8819. for (var n = atob(e.split(",")[1]), v = e.split(",")[0].split(":")[1].split(";")[0], h = new ArrayBuffer(n.length), p = new Uint8Array(h), d = 0; n.length > d; d += 1) p[d] = n.charCodeAt(d);
  8820. return new Blob([p], { type: v });
  8821. };
  8822. }, 41566: function(_, t, e) {
  8823. Object.defineProperty(t, "__esModule", { value: !0 }), t.hasItems = t.hasFiles = void 0;
  8824. var n = e(20255);
  8825. n.__exportStar(e(32937), t), n.__exportStar(e(98099), t), n.__exportStar(e(55778), t), n.__exportStar(e(30863), t), n.__exportStar(e(20704), t), t.hasFiles = function(v) {
  8826. return !!(v && v.files && v.files.length > 0);
  8827. }, t.hasItems = function(v) {
  8828. return !!(v && v.items && v.items.length > 0);
  8829. };
  8830. }, 32937: function(_, t, e) {
  8831. Object.defineProperty(t, "__esModule", { value: !0 }), t.processOldBrowserDrag = void 0;
  8832. var n = e(86893), v = e(17332), h = e(40332), p = e(64968), d = e(41566);
  8833. t.processOldBrowserDrag = function(a, s, u, f, l) {
  8834. if (s && (!s.types.length || s.types[0] !== n.TEXT_PLAIN)) {
  8835. var o = a.j.c.div("", { tabindex: -1, style: "left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;", contenteditable: !0 });
  8836. (0, v.getContainer)(a.j, a.constructor).appendChild(o);
  8837. var r = (0, h.isJoditObject)(a.j) ? a.j.s.save() : null;
  8838. o.focus(), a.j.async.setTimeout(function() {
  8839. var i = o.firstChild;
  8840. if (p.Dom.safeRemove(o), i && i.hasAttribute("src")) {
  8841. var c = (0, h.attr)(i, "src") || "";
  8842. r && (0, h.isJoditObject)(a.j) && a.j.s.restore(), (0, d.sendFiles)(a, [(0, d.dataURItoBlob)(c)], u, f).finally(l);
  8843. }
  8844. }, a.j.defaultTimeout);
  8845. }
  8846. };
  8847. }, 20704: function(_, t, e) {
  8848. Object.defineProperty(t, "__esModule", { value: !0 }), t.sendFiles = void 0;
  8849. var n = e(20255), v = e(40332), h = e(30863);
  8850. t.sendFiles = function(p, d, a, s, u) {
  8851. if (!d) return Promise.reject((0, v.error)("Need files"));
  8852. var f = p.o, l = (0, v.toArray)(d);
  8853. if (!l.length) return Promise.reject((0, v.error)("Need files"));
  8854. var o = [];
  8855. if (f.insertImageAsBase64URI) {
  8856. var r, i = void 0, c = function() {
  8857. if ((r = l[i]) && r.type) {
  8858. var E = r.type.match(/\/([a-z0-9]+)/i), x = E[1] ? E[1].toLowerCase() : "";
  8859. if (f.imagesExtensions.includes(x)) {
  8860. var k = new FileReader();
  8861. o.push(p.j.async.promise(function(I, M) {
  8862. k.onerror = M, k.onloadend = function() {
  8863. var T = { baseurl: "", files: [k.result], isImages: [!0] };
  8864. ((0, v.isFunction)(a) ? a : f.defaultHandlerSuccess).call(p, T), I(T);
  8865. }, k.readAsDataURL(r);
  8866. })), l[i] = null;
  8867. }
  8868. }
  8869. };
  8870. for (i = 0; l.length > i; i += 1) c();
  8871. }
  8872. if ((l = l.filter(function(E) {
  8873. return E;
  8874. })).length) {
  8875. var m = new FormData();
  8876. m.append(f.pathVariableName, p.path), m.append("source", p.source);
  8877. var y = void 0;
  8878. for (i = 0; l.length > i; i += 1) if (y = l[i]) {
  8879. var g = /\.[\d\w]+$/.test(y.name), b = y.type.match(/\/([a-z0-9]+)/i), w = b && b[1] ? b[1].toLowerCase() : "", C = l[i].name || Math.random().toString().replace(".", "");
  8880. if (!g && w) {
  8881. var S = w;
  8882. ["jpeg", "jpg"].includes(S) && (S = "jpeg|jpg"), new RegExp(".(" + S + ")$", "i").test(C) || (C += "." + w);
  8883. }
  8884. var j = n.__read(f.processFileName.call(p, f.filesVariableName(i), l[i], C), 3);
  8885. m.append(j[0], j[1], j[2]);
  8886. }
  8887. u && u(m), f.data && (0, v.isPlainObject)(f.data) && Object.keys(f.data).forEach(function(E) {
  8888. m.append(E, f.data[E]);
  8889. }), f.prepareData.call(p, m), o.push((0, h.send)(p, m).then(function(E) {
  8890. return f.isSuccess.call(p, E) ? (((0, v.isFunction)(a) ? a : f.defaultHandlerSuccess).call(p, f.process.call(p, E)), E) : (((0, v.isFunction)(s) ? s : f.defaultHandlerError).call(p, (0, v.error)(f.getMessage.call(p, E))), E);
  8891. }).then(function() {
  8892. p.j.events && p.j.e.fire("filesWereUploaded");
  8893. }));
  8894. }
  8895. return Promise.all(o);
  8896. };
  8897. }, 30863: function(_, t, e) {
  8898. Object.defineProperty(t, "__esModule", { value: !0 }), t.send = t.ajaxInstances = void 0;
  8899. var n = e(30056), v = e(40332), h = e(55778);
  8900. t.ajaxInstances = /* @__PURE__ */ new WeakMap(), t.send = function(p, d) {
  8901. var a = (0, h.buildData)(p, d), s = function(u) {
  8902. var f = new n.Ajax({ xhr: function() {
  8903. var o = new XMLHttpRequest();
  8904. return p.j.ow.FormData !== void 0 && o.upload ? (p.j.progressbar.show().progress(10), o.upload.addEventListener("progress", function(r) {
  8905. if (r.lengthComputable) {
  8906. var i = r.loaded / r.total;
  8907. i *= 100, p.j.progressbar.show().progress(i), 100 > i || p.j.progressbar.hide();
  8908. }
  8909. }, !1)) : p.j.progressbar.hide(), o;
  8910. }, method: p.o.method || "POST", data: u, url: (0, v.isFunction)(p.o.url) ? p.o.url(u) : p.o.url, headers: p.o.headers, queryBuild: p.o.queryBuild, contentType: p.o.contentType.call(p, u), withCredentials: p.o.withCredentials || !1 }), l = t.ajaxInstances.get(p);
  8911. return l || (l = /* @__PURE__ */ new Set(), t.ajaxInstances.set(p, l)), l.add(f), p.j.e.one("beforeDestruct", f.destruct), f.send().then(function(o) {
  8912. return o.json();
  8913. }).catch(function(o) {
  8914. p.o.error.call(p, o);
  8915. }).finally(function() {
  8916. f.destruct(), l == null || l.delete(f);
  8917. });
  8918. };
  8919. return (0, v.isPromise)(a) ? a.then(s).catch(function(u) {
  8920. p.o.error.call(p, u);
  8921. }) : s(a);
  8922. };
  8923. }, 50454: function(_, t, e) {
  8924. Object.defineProperty(t, "__esModule", { value: !0 }), t.Uploader = void 0;
  8925. var n = e(20255);
  8926. e(28654);
  8927. var v = e(93166), h = e(86893), p = e(40332), d = e(56562), a = e(41566);
  8928. e(36262);
  8929. var s = function(u) {
  8930. function f(l, o) {
  8931. var r = u.call(this, l) || this;
  8932. return r.path = "", r.source = "default", r.options = (0, p.ConfigProto)(o || {}, (0, p.ConfigProto)(v.Config.defaultOptions.uploader, (0, p.isJoditObject)(l) ? l.o.uploader : {})), r;
  8933. }
  8934. return n.__extends(f, u), Object.defineProperty(f.prototype, "j", { get: function() {
  8935. return this.jodit;
  8936. }, enumerable: !1, configurable: !0 }), f.prototype.className = function() {
  8937. return "Uploader";
  8938. }, Object.defineProperty(f.prototype, "o", { get: function() {
  8939. return this.options;
  8940. }, enumerable: !1, configurable: !0 }), f.prototype.setPath = function(l) {
  8941. return this.path = l, this;
  8942. }, f.prototype.setSource = function(l) {
  8943. return this.source = l, this;
  8944. }, f.prototype.bind = function(l, o, r) {
  8945. var i = function() {
  8946. l.classList.remove("jodit_drag_hover");
  8947. }, c = this, m = function(y) {
  8948. var g, b, w, C = y.clipboardData, S = function(x) {
  8949. b && (x.append("extension", w), x.append("mimetype", b.type));
  8950. };
  8951. if (!h.IS_IE && (0, a.hasFiles)(C)) return (0, a.sendFiles)(c, C.files, o, r).finally(i), !1;
  8952. if (h.IS_IE) return (0, a.processOldBrowserDrag)(c, C, o, r, i);
  8953. if ((0, a.hasItems)(C)) {
  8954. var j = C.items;
  8955. for (g = 0; j.length > g; g += 1) if (j[g].kind === "file" && j[g].type === "image/png") {
  8956. if (b = j[g].getAsFile()) {
  8957. var E = b.type.match(/\/([a-z0-9]+)/i);
  8958. w = E[1] ? E[1].toLowerCase() : "", (0, a.sendFiles)(c, [b], o, r, S).finally(i);
  8959. }
  8960. y.preventDefault();
  8961. break;
  8962. }
  8963. }
  8964. };
  8965. c.j && c.j.editor !== l ? c.j.e.on(l, "paste", m) : c.j.e.on("beforePaste", m), this.attachEvents(l, o, r, i);
  8966. }, f.prototype.attachEvents = function(l, o, r, i) {
  8967. var c = this;
  8968. c.j.e.on(l, "dragend dragover dragenter dragleave drop", function(y) {
  8969. y.preventDefault();
  8970. }).on(l, "dragover", function(y) {
  8971. ((0, a.hasFiles)(y.dataTransfer) || (0, a.hasItems)(y.dataTransfer)) && (l.classList.add("jodit_drag_hover"), y.preventDefault());
  8972. }).on(l, "dragend dragleave", function(y) {
  8973. l.classList.remove("jodit_drag_hover"), (0, a.hasFiles)(y.dataTransfer) && y.preventDefault();
  8974. }).on(l, "drop", function(y) {
  8975. l.classList.remove("jodit_drag_hover"), (0, a.hasFiles)(y.dataTransfer) && (y.preventDefault(), y.stopImmediatePropagation(), (0, a.sendFiles)(c, y.dataTransfer.files, o, r).finally(i));
  8976. });
  8977. var m = l.querySelector("input[type=file]");
  8978. m && c.j.e.on(m, "change", function() {
  8979. (0, a.sendFiles)(c, m.files, o, r).then(function() {
  8980. m.value = "", /safari/i.test(navigator.userAgent) || (m.type = "", m.type = "file");
  8981. }).finally(i);
  8982. });
  8983. }, f.prototype.uploadRemoteImage = function(l, o, r) {
  8984. var i = this, c = i.o, m = (0, p.isFunction)(r) ? r : c.defaultHandlerError;
  8985. (0, a.send)(i, { action: "fileUploadRemote", url: l }).then(function(y) {
  8986. c.isSuccess.call(i, y) ? ((0, p.isFunction)(o) ? o : c.defaultHandlerSuccess).call(i, c.process.call(i, y)) : m.call(i, (0, p.error)(c.getMessage.call(i, y)));
  8987. }).catch(function(y) {
  8988. return m.call(i, y);
  8989. });
  8990. }, f.prototype.destruct = function() {
  8991. this.setStatus(d.STATUSES.beforeDestruct);
  8992. var l = a.ajaxInstances.get(this);
  8993. l && (l.forEach(function(o) {
  8994. try {
  8995. o.destruct();
  8996. } catch (r) {
  8997. }
  8998. }), l.clear()), u.prototype.destruct.call(this);
  8999. }, f;
  9000. }(d.ViewComponent);
  9001. t.Uploader = s;
  9002. }, 75243: function(_, t, e) {
  9003. Object.defineProperty(t, "__esModule", { value: !0 }), t.ColorPickerWidget = void 0, e(60819);
  9004. var n = e(40332), v = e(2074), h = e(64968);
  9005. v.Icon.set("palette", e(95331)), t.ColorPickerWidget = function(p, d, a) {
  9006. var s = "jodit-color-picker", u = (0, n.normalizeColor)(a), f = p.c.div(s), l = p.o.textIcons ? "<span>".concat(p.i18n("palette"), "</span>") : v.Icon.get("palette"), o = function(i) {
  9007. var c = [];
  9008. return (0, n.isPlainObject)(i) ? Object.keys(i).forEach(function(m) {
  9009. c.push('<div class="'.concat(s, "__group ").concat(s, "__group-").concat(m, '">')), c.push(o(i[m])), c.push("</div>");
  9010. }) : (0, n.isArray)(i) && i.forEach(function(m) {
  9011. c.push("<span class='".concat(s, "__color-item ").concat(u === m ? s + "__color-item_active_true" : "", `' title="`).concat(m, '" style="background-color:').concat(m, '" data-color="').concat(m, '"></span>'));
  9012. }), c.join("");
  9013. };
  9014. f.appendChild(p.c.fromHTML('<div class="'.concat(s, '__groups">').concat(o(p.o.colors), "</div>"))), f.appendChild(p.c.fromHTML('<div data-ref="extra" class="'.concat(s, '__extra"></div>')));
  9015. var r = (0, n.refs)(f).extra;
  9016. return p.o.showBrowserColorPicker && (0, n.hasBrowserColorPicker)() && (r.appendChild(p.c.fromHTML('<div class="'.concat(s, '__native">').concat(l, '<input type="color" value="#ffffff"/></div>'))), p.e.on(f, "change", function(i) {
  9017. i.stopPropagation();
  9018. var c = i.target;
  9019. if (c && c.tagName && h.Dom.isTag(c, "input")) {
  9020. var m = c.value || "";
  9021. (0, n.isFunction)(d) && d(m), i.preventDefault();
  9022. }
  9023. })), p.e.on(f, "mousedown touchend", function(i) {
  9024. i.stopPropagation(), i.preventDefault();
  9025. var c = i.target;
  9026. if (c && c.tagName && !h.Dom.isTag(c, "svg") && !h.Dom.isTag(c, "path") || !c.parentNode || (c = h.Dom.closest(c.parentNode, "span", p.editor)), h.Dom.isTag(c, "span") && c.classList.contains(s + "__color-item")) {
  9027. var m = (0, n.attr)(c, "-color") || "";
  9028. d && (0, n.isFunction)(d) && d(m);
  9029. }
  9030. }), p.e.fire("afterGenerateColorPicker", f, r, d, u), f;
  9031. };
  9032. }, 83029: function(_, t, e) {
  9033. Object.defineProperty(t, "__esModule", { value: !0 }), t.FileSelectorWidget = void 0;
  9034. var n = e(40332), v = e(64968), h = e(2074), p = e(60929);
  9035. t.FileSelectorWidget = function(d, a, s, u, f) {
  9036. var l;
  9037. f === void 0 && (f = !0);
  9038. var o = [];
  9039. if (a.upload && d.o.uploader && (d.o.uploader.url || d.o.uploader.insertImageAsBase64URI)) {
  9040. var r = d.c.fromHTML('<div class="jodit-drag-and-drop__file-box">' + "<strong>".concat(d.i18n(f ? "Drop image" : "Drop file"), "</strong>") + "<span><br>".concat(d.i18n("or click"), "</span>") + '<input type="file" accept="'.concat(f ? "image/*" : "*", '" tabindex="-1" dir="auto" multiple=""/>') + "</div>");
  9041. d.uploader.bind(r, function(m) {
  9042. var y = (0, n.isFunction)(a.upload) ? a.upload : d.o.uploader.defaultHandlerSuccess;
  9043. (0, n.isFunction)(y) && y.call(d, m), d.e.fire("closeAllPopups");
  9044. }, function(m) {
  9045. d.e.fire("errorMessage", m.message), d.e.fire("closeAllPopups");
  9046. }), o.push({ icon: "upload", name: "Upload", content: r });
  9047. }
  9048. if (a.filebrowser && (d.o.filebrowser.ajax.url || d.o.filebrowser.items.url) && o.push({ icon: "folder", name: "Browse", content: function() {
  9049. u && u(), a.filebrowser && d.filebrowser.open(a.filebrowser, f);
  9050. } }), a.url) {
  9051. var i = new h.UIButton(d, { type: "submit", variant: "primary", text: "Insert" }), c = new h.UIForm(d, [new h.UIInput(d, { required: !0, label: "URL", name: "url", type: "text", placeholder: "https://" }), new h.UIInput(d, { name: "text", label: "Alternative text" }), new h.UIBlock(d, [i])]);
  9052. l = null, s && !v.Dom.isText(s) && (v.Dom.isTag(s, "img") || (0, n.$$)("img", s).length) && (l = s.tagName === "IMG" ? s : (0, n.$$)("img", s)[0], (0, n.val)(c.container, "input[name=url]", (0, n.attr)(l, "src")), (0, n.val)(c.container, "input[name=text]", (0, n.attr)(l, "alt")), i.state.text = "Update"), s && v.Dom.isTag(s, "a") && ((0, n.val)(c.container, "input[name=url]", (0, n.attr)(s, "href")), (0, n.val)(c.container, "input[name=text]", (0, n.attr)(s, "title")), i.state.text = "Update"), c.onSubmit(function(m) {
  9053. (0, n.isFunction)(a.url) && a.url.call(d, m.url, m.text);
  9054. }), o.push({ icon: "link", name: "URL", content: c.container });
  9055. }
  9056. return (0, p.TabsWidget)(d, o);
  9057. };
  9058. }, 718: function(_, t, e) {
  9059. Object.defineProperty(t, "__esModule", { value: !0 });
  9060. var n = e(20255);
  9061. n.__exportStar(e(75243), t), n.__exportStar(e(60929), t), n.__exportStar(e(83029), t);
  9062. }, 60929: function(_, t, e) {
  9063. Object.defineProperty(t, "__esModule", { value: !0 }), t.TabsWidget = void 0, e(96410);
  9064. var n = e(40332), v = e(42096), h = e(2074), p = e(56562), d = e(24263);
  9065. t.TabsWidget = function(a, s, u) {
  9066. var f = a.c.div("jodit-tabs"), l = a.c.div("jodit-tabs__wrapper"), o = a.c.div("jodit-tabs__buttons"), r = {}, i = [], c = "", m = 0;
  9067. f.appendChild(o), f.appendChild(l);
  9068. var y = function(b) {
  9069. r[b] && (i.forEach(function(w) {
  9070. w.state.activated = !1;
  9071. }), (0, n.$$)(".jodit-tab", l).forEach(function(w) {
  9072. w.classList.remove("jodit-tab_active");
  9073. }), r[b].button.state.activated = !0, r[b].tab.classList.add("jodit-tab_active"));
  9074. };
  9075. if (s.forEach(function(b) {
  9076. var w = b.icon, C = b.name, S = b.content, j = a.c.div("jodit-tab"), E = (0, h.Button)(a, w || C, C);
  9077. a.e.on(E.container, "mousedown", function(x) {
  9078. return x.preventDefault();
  9079. }), c || (c = C), o.appendChild(E.container), i.push(E), E.container.classList.add("jodit-tabs__button", "jodit-tabs__button_columns_" + s.length), (0, v.isFunction)(S) ? j.appendChild(a.c.div("jodit-tab_empty")) : j.appendChild(p.Component.isInstanceOf(S, h.UIElement) ? S.container : S), l.appendChild(j), E.onAction(function() {
  9080. return y(C), (0, v.isFunction)(S) && !d.Dom.isElement(S) && S.call(a), u && (u.__activeTab = C), !1;
  9081. }), r[C] = { button: E, tab: j }, m += 1;
  9082. }), !m) return f;
  9083. if ((0, n.$$)("a", o).forEach(function(b) {
  9084. b.style.width = (100 / m).toFixed(10) + "%";
  9085. }), y(u && u.__activeTab && r[u.__activeTab] ? u.__activeTab : c), u) {
  9086. var g = u.__activeTab;
  9087. Object.defineProperty(u, "__activeTab", { configurable: !0, enumerable: !1, get: function() {
  9088. return g;
  9089. }, set: function(b) {
  9090. g = b, y(b);
  9091. } });
  9092. }
  9093. return f;
  9094. };
  9095. }, 55692: function(_, t, e) {
  9096. Object.defineProperty(t, "__esModule", { value: !0 }), e(33126);
  9097. var n = e(93166), v = e(40332), h = e(86893), p = e(17332), d = e(77904);
  9098. n.Config.prototype.controls.about = { exec: function(a) {
  9099. var s = a.dlg(), u = a.i18n.bind(a);
  9100. s.setMod("theme", a.o.theme).setHeader(u("About Jodit")).setContent(`<div class="jodit-about">
  9101. <div>`.concat(u("Jodit Editor"), " v.").concat(a.getVersion(), `</div>
  9102. <div>`).concat(u("License: %s", (0, v.isLicense)(a.o.license) ? (0, v.normalizeLicense)(a.o.license) : "MIT"), `</div>
  9103. <div>
  9104. <a href="`).concat("https://xdsoft.net/jodit/", '" target="_blank">').concat("https://xdsoft.net/jodit/", `</a>
  9105. </div>
  9106. <div>
  9107. <a href="https://xdsoft.net/jodit/doc/" target="_blank">`).concat(u("Jodit User's Guide"), `</a>
  9108. `).concat(u("contains detailed help for using"), `
  9109. </div>
  9110. <div>`).concat(u("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved."), `</div>
  9111. </div>`)), (0, v.css)(s.dialog, { minHeight: 200, minWidth: 420 }), s.open(!0);
  9112. }, tooltip: "About Jodit", mode: h.MODE_SOURCE + h.MODE_WYSIWYG }, p.pluginSystem.add("about", function(a) {
  9113. a.registerButton({ name: "about", group: "info" });
  9114. }), d.Icon.set("about", e(84279));
  9115. }, 66031: function(_, t, e) {
  9116. Object.defineProperty(t, "__esModule", { value: !0 }), t.addNewLine = void 0;
  9117. var n = e(20255);
  9118. e(30724);
  9119. var v = e(87837), h = e(40332), p = e(43441), d = e(17332);
  9120. e(46360);
  9121. var a = "addnewline", s = function(u) {
  9122. function f() {
  9123. var l = u !== null && u.apply(this, arguments) || this;
  9124. return l.line = l.j.c.fromHTML('<div role="button" tabindex="-1" title="'.concat(l.j.i18n("Break"), '" class="jodit-add-new-line"><span>').concat(v.Icon.get("enter"), "</span></div>")), l.isMatchedTag = function(o) {
  9125. return !!(o && l.j.o.addNewLineTagsTriggers.includes(o.nodeName.toLowerCase()));
  9126. }, l.preview = !1, l.lineInFocus = !1, l.isShown = !1, l.hideForce = function() {
  9127. l.isShown && (l.isShown = !1, l.j.async.clearTimeout(l.timeout), l.lineInFocus = !1, v.Dom.safeRemove(l.line), l.line.style.setProperty("--jd-offset-handle", "0"));
  9128. }, l.canGetFocus = function(o) {
  9129. return o != null && v.Dom.isBlock(o) && !/^(img|table|iframe|hr)$/i.test(o.nodeName);
  9130. }, l.onClickLine = function(o) {
  9131. var r = l.j, i = r.createInside.element(r.o.enter);
  9132. l.preview && l.current && l.current.parentNode ? l.current === r.editor ? v.Dom.prepend(r.editor, i) : l.current.parentNode.insertBefore(i, l.current) : r.editor.appendChild(i), r.s.setCursorIn(i), (0, h.scrollIntoViewIfNeeded)(i, r.editor, r.ed), r.synchronizeValues(), l.hideForce(), o.preventDefault();
  9133. }, l;
  9134. }
  9135. return n.__extends(f, u), f.prototype.show = function() {
  9136. this.isShown || this.j.o.readonly || this.j.isLocked || (this.isShown = !0, this.j.async.clearTimeout(this.timeout), this.line.classList.toggle("jodit-add-new-line_after", !this.preview), this.j.container.appendChild(this.line), this.line.style.width = this.j.container.clientWidth + "px");
  9137. }, f.prototype.onLock = function(l) {
  9138. l && this.isShown && this.hideForce();
  9139. }, f.prototype.hide = function() {
  9140. this.isShown && !this.lineInFocus && (this.timeout = this.j.async.setTimeout(this.hideForce, { timeout: 500, label: "add-new-line-hide" }));
  9141. }, f.prototype.afterInit = function(l) {
  9142. var o = this;
  9143. l.o.addNewLine && (l.e.on(this.line, "mousemove", function(r) {
  9144. r.stopPropagation();
  9145. }).on(this.line, "mousedown touchstart", this.onClickLine).on("change", this.hideForce).on(this.line, "mouseenter", function() {
  9146. o.j.async.clearTimeout(o.timeout), o.lineInFocus = !0;
  9147. }).on(this.line, "mouseleave", function() {
  9148. o.lineInFocus = !1;
  9149. }).on("changePlace", this.addEventListeners.bind(this)), this.addEventListeners());
  9150. }, f.prototype.addEventListeners = function() {
  9151. var l = this.j;
  9152. l.e.off(l.editor, "." + a).off(l.container, "." + a).on([l.ow, l.ew, l.editor], "scroll." + a, this.hideForce).on(l.editor, "click." + a, this.hide).on(l.container, "mouseleave." + a, this.hide).on(l.editor, "mousemove." + a, this.onMouseMove);
  9153. }, f.prototype.onDblClickEditor = function(l) {
  9154. var o = this.j;
  9155. if (!o.o.readonly && o.o.addNewLineOnDBLClick && l.target === o.editor && o.s.isCollapsed()) {
  9156. var r = (0, h.offset)(o.editor, o, o.ed), i = l.pageY - o.ew.pageYOffset, c = o.createInside.element(o.o.enter);
  9157. Math.abs(i - r.top) < Math.abs(i - (r.height + r.top)) && o.editor.firstChild ? o.editor.insertBefore(c, o.editor.firstChild) : o.editor.appendChild(c), o.s.setCursorIn(c), o.synchronizeValues(), this.hideForce(), l.preventDefault();
  9158. }
  9159. }, f.prototype.onMouseMove = function(l) {
  9160. var o = this.j, r = o.ed.elementFromPoint(l.clientX, l.clientY);
  9161. if (v.Dom.isHTMLElement(r) && !v.Dom.isOrContains(this.line, r) && v.Dom.isOrContains(o.editor, r)) if (o.editor === r || this.isMatchedTag(r) || (r = v.Dom.closest(r, this.isMatchedTag, o.editor)), r) {
  9162. if (this.isMatchedTag(r)) {
  9163. var i = v.Dom.up(r, v.Dom.isBlock, o.editor);
  9164. i && i !== o.editor && (r = i);
  9165. }
  9166. var c = (0, h.position)(r, this.j), m = !1, y = l.clientY, g = l.clientX;
  9167. if (this.j.iframe) {
  9168. var b = (0, h.position)(this.j.iframe, this.j, !0);
  9169. y += b.top, g += b.left;
  9170. }
  9171. var w = this.j.o.addNewLineDeltaShow;
  9172. Math.abs(y - c.top) > w || (m = c.top, this.preview = !0), Math.abs(y - (c.top + c.height)) > w || (m = c.top + c.height, this.preview = !1), m === !1 || (o.editor !== r || this.preview) && (0, h.call)(this.preview ? v.Dom.prev : v.Dom.next, r, this.canGetFocus, o.editor) ? (this.current = !1, this.hide()) : (this.line.style.top = m + "px", this.current = r, this.show(), this.line.style.setProperty("--jd-offset-handle", g - c.left - 10 + "px"));
  9173. } else this.hide();
  9174. }, f.prototype.beforeDestruct = function() {
  9175. this.j.async.clearTimeout(this.timeout), this.j.e.off(this.line).off("changePlace", this.addEventListeners), v.Dom.safeRemove(this.line), this.j.e.off([this.j.ow, this.j.ew, this.j.editor], "." + a).off(this.j.container, "." + a);
  9176. }, n.__decorate([(0, p.watch)(":lock")], f.prototype, "onLock", null), n.__decorate([p.autobind], f.prototype, "hide", null), n.__decorate([(0, p.watch)(":dblclick")], f.prototype, "onDblClickEditor", null), n.__decorate([(0, p.debounce)(function(l) {
  9177. return 5 * l.defaultTimeout;
  9178. })], f.prototype, "onMouseMove", null), f;
  9179. }(v.Plugin);
  9180. t.addNewLine = s, d.pluginSystem.add("addNewLine", s);
  9181. }, 46360: function(_, t, e) {
  9182. Object.defineProperty(t, "__esModule", { value: !0 });
  9183. var n = e(93166), v = e(2074);
  9184. n.Config.prototype.addNewLine = !0, n.Config.prototype.addNewLineOnDBLClick = !0, n.Config.prototype.addNewLineTagsTriggers = ["table", "iframe", "img", "hr", "pre", "jodit"], n.Config.prototype.addNewLineDeltaShow = 20, v.Icon.set("enter", e(11257));
  9185. }, 91241: function(_, t, e) {
  9186. Object.defineProperty(t, "__esModule", { value: !0 }), t.backspace = void 0;
  9187. var n = e(20255), v = e(57549), h = e(64968), p = e(86893), d = e(40332), a = e(10109), s = e(17332), u = e(90089), f = e(95441);
  9188. e(48229);
  9189. var l = function(o) {
  9190. function r() {
  9191. var i = o !== null && o.apply(this, arguments) || this;
  9192. return i.requires = ["hotkeys"], i;
  9193. }
  9194. return n.__extends(r, o), r.prototype.afterInit = function(i) {
  9195. var c = this;
  9196. i.e.on("afterCommand.delete", function(m) {
  9197. m === "delete" && c.afterDeleteCommand();
  9198. }), i.registerCommand("deleteButton", { exec: function() {
  9199. return c.onDelete(!1);
  9200. }, hotkeys: i.o.delete.hotkeys.delete }, { stopPropagation: !1 }).registerCommand("backspaceButton", { exec: function() {
  9201. return c.onDelete(!0);
  9202. }, hotkeys: i.o.delete.hotkeys.backspace }, { stopPropagation: !1 }).registerCommand("deleteWordButton", { exec: function() {
  9203. return c.onDelete(!1, "word");
  9204. }, hotkeys: i.o.delete.hotkeys.deleteWord }).registerCommand("backspaceWordButton", { exec: function() {
  9205. return c.onDelete(!0, "word");
  9206. }, hotkeys: i.o.delete.hotkeys.backspaceWord }).registerCommand("deleteSentenceButton", { exec: function() {
  9207. return c.onDelete(!1, "sentence");
  9208. }, hotkeys: i.o.delete.hotkeys.deleteSentence }).registerCommand("backspaceSentenceButton", { exec: function() {
  9209. return c.onDelete(!0, "sentence");
  9210. }, hotkeys: i.o.delete.hotkeys.backspaceSentence });
  9211. }, r.prototype.beforeDestruct = function(i) {
  9212. i.e.off("afterCommand.delete");
  9213. }, r.prototype.afterDeleteCommand = function() {
  9214. var i = this.j, c = i.s.current();
  9215. if (c && h.Dom.isTag(c.firstChild, "br") && i.s.removeNode(c.firstChild), !((0, d.trim)(i.editor.textContent || "") || i.editor.querySelector("img,table,jodit,iframe,hr") || c && h.Dom.closest(c, "table", i.editor))) {
  9216. i.editor.innerHTML = "";
  9217. var m = i.s.setCursorIn(i.editor);
  9218. i.s.removeNode(m);
  9219. }
  9220. }, r.prototype.onDelete = function(i, c) {
  9221. c === void 0 && (c = "char");
  9222. var m = this.j, y = m.selection;
  9223. if (y.isFocused() || y.focus(), (0, f.checkNotCollapsed)(m)) return !1;
  9224. var g = y.range, b = m.createInside.text(p.INVISIBLE_SPACE);
  9225. try {
  9226. if (h.Dom.safeInsertNode(g, b), !h.Dom.isOrContains(m.editor, b)) return;
  9227. if (m.e.fire("backSpaceBeforeCases", i, b) || ((0, a.moveNodeInsideStart)(m, b, i), u.cases.some(function(w) {
  9228. if ((0, d.isFunction)(w) && w(m, b, i, c)) return !0;
  9229. }))) return !1;
  9230. } catch (w) {
  9231. throw w;
  9232. } finally {
  9233. m.e.fire("backSpaceAfterDelete", i, b), this.safeRemoveEmptyNode(b);
  9234. }
  9235. return !1;
  9236. }, r.prototype.safeRemoveEmptyNode = function(i) {
  9237. var c, m, y = this.j.s.range;
  9238. y.startContainer === i && (i.previousSibling ? h.Dom.isText(i.previousSibling) ? y.setStart(i.previousSibling, (m = (c = i.previousSibling.nodeValue) === null || c === void 0 ? void 0 : c.length) !== null && m !== void 0 ? m : 0) : y.setStartAfter(i.previousSibling) : i.nextSibling && (h.Dom.isText(i.nextSibling) ? y.setStart(i.nextSibling, 0) : y.setStartBefore(i.nextSibling)), y.collapse(!0), this.j.s.selectRange(y)), h.Dom.safeRemove(i);
  9239. }, r;
  9240. }(v.Plugin);
  9241. t.backspace = l, s.pluginSystem.add("backspace", l);
  9242. }, 31078: function(_, t, e) {
  9243. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkJoinNeighbors = void 0;
  9244. var n = e(24263), v = e(30861);
  9245. function h(p, d, a, s) {
  9246. if (d && n.Dom.isElement(a)) {
  9247. n.Dom.moveContent(d, a, !s, (0, v.getMoveFilter)(p));
  9248. for (var u = d; u && u !== p.editor && n.Dom.isEmpty(u); ) {
  9249. var f = u.parentElement;
  9250. n.Dom.safeRemove(u), u = f;
  9251. }
  9252. return !0;
  9253. }
  9254. return !1;
  9255. }
  9256. t.checkJoinNeighbors = function(p, d, a) {
  9257. for (var s = d, u = s; s && !n.Dom.findNotEmptySibling(s, a) && s.parentElement !== p.editor; ) u = s = s.parentElement;
  9258. if (n.Dom.isElement(u) && n.Dom.isContentEditable(u, p.editor)) {
  9259. var f = n.Dom.findNotEmptySibling(u, a);
  9260. if (f && (function(l, o, r, i) {
  9261. var c = n.Dom.isTag(r, ["ol", "ul"]), m = n.Dom.isTag(o, ["ol", "ul"]), y = function(g, b) {
  9262. return b ? g.firstElementChild : g.lastElementChild;
  9263. };
  9264. return m ? (r = l.createInside.element(l.o.enterBlock), n.Dom.before(o, r), h(l, y(o, i), r, i)) : !(!r || !c || m) && h(l, o, y(r, !i), i);
  9265. }(p, u, f, a) || h(p, u, f, a))) return p.s.setCursorBefore(d), !0;
  9266. }
  9267. return !1;
  9268. };
  9269. }, 92156: function(_, t, e) {
  9270. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkJoinTwoLists = void 0;
  9271. var n = e(24263), v = e(67309), h = e(30861);
  9272. t.checkJoinTwoLists = function(p, d, a) {
  9273. var s = n.Dom.findSibling(d, a), u = n.Dom.findSibling(d, !a);
  9274. if (!n.Dom.closest(d, n.Dom.isElement, p.editor) && n.Dom.isTag(s, ["ul", "ol"]) && n.Dom.isTag(u, ["ul", "ol"]) && n.Dom.isTag(s.lastElementChild, "li") && n.Dom.isTag(u.firstElementChild, "li")) {
  9275. var f = p.s, l = f.setCursorBefore, o = f.setCursorAfter, r = s.lastElementChild;
  9276. return (0, v.call)(a ? n.Dom.prepend : n.Dom.append, u.firstElementChild, d), n.Dom.moveContent(u, s, !a, (0, h.getMoveFilter)(p)), n.Dom.safeRemove(u), (0, v.call)(a ? n.Dom.append : n.Dom.prepend, r, d), (0, v.call)(a ? l : o, d), !0;
  9277. }
  9278. return !1;
  9279. };
  9280. }, 95441: function(_, t) {
  9281. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkNotCollapsed = void 0, t.checkNotCollapsed = function(e) {
  9282. return !e.s.isCollapsed() && (e.execCommand("Delete"), !0);
  9283. };
  9284. }, 13116: function(_, t, e) {
  9285. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveChar = void 0;
  9286. var n = e(64968), v = e(40332), h = e(86893), p = e(30861);
  9287. t.checkRemoveChar = function d(a, s, u, f) {
  9288. var l, o, r, i, c = u ? -1 : 1, m = n.Dom.sibling(s, !u), y = n.Dom.sibling(s, u), g = null, b = !1, w = function(k) {
  9289. var I = n.Dom.sibling(k, u);
  9290. return !I && k.parentNode && k.parentNode !== a.editor && (I = (0, p.findMostNestedNeighbor)(k, !u, a.editor, !0)), I;
  9291. };
  9292. for (y || (y = w(s)); y && (n.Dom.isText(y) || n.Dom.isInlineBlock(y)); ) {
  9293. for (; n.Dom.isInlineBlock(y); ) y = u ? y == null ? void 0 : y.lastChild : y == null ? void 0 : y.firstChild;
  9294. if (!y) break;
  9295. if (!((l = y.nodeValue) === null || l === void 0) && l.length) {
  9296. var C = (0, v.toArray)(y.nodeValue), S = C.length, j = u ? S - 1 : 0;
  9297. if (C[j] === h.INVISIBLE_SPACE) for (; C[j] === h.INVISIBLE_SPACE; ) j += c;
  9298. if (i = C[j], C[j + c] === h.INVISIBLE_SPACE) {
  9299. for (j += c; C[j] === h.INVISIBLE_SPACE; ) j += c;
  9300. j += u ? 1 : -1;
  9301. }
  9302. if (C = u && 0 > j ? [] : C.slice(u ? 0 : j + 1, u ? j : S), !m || !n.Dom.isText(m) || (u ? /^ / : / $/).test((o = m.nodeValue) !== null && o !== void 0 ? o : "") || !(0, v.trimInv)(m.nodeValue || "").length) for (var E = u ? C.length - 1 : 0; (u ? E >= 0 : C.length > E) && C[E] === " "; E += u ? -1 : 1) C[E] = h.NBSP_SPACE;
  9303. y.nodeValue = C.join("");
  9304. }
  9305. if (!((r = y.nodeValue) === null || r === void 0) && r.length || (g = y), !(0, v.isVoid)(i) && i !== h.INVISIBLE_SPACE) {
  9306. b = !0, (0, v.call)(u ? n.Dom.after : n.Dom.before, y, s), (f === "sentence" || f === "word" && i !== " " && i !== h.NBSP_SPACE) && d(a, s, u, f);
  9307. break;
  9308. }
  9309. var x = w(y);
  9310. g && (n.Dom.safeRemove(g), g = null), y = x;
  9311. }
  9312. return g && (n.Dom.safeRemove(g), g = null), b && (function(k, I) {
  9313. for (var M = k.parentElement; M && n.Dom.isInlineBlock(M) && n.Dom.isTag(M, I); ) {
  9314. var T = M.parentElement;
  9315. n.Dom.isEmpty(M) && (n.Dom.after(M, k), n.Dom.safeRemove(M)), M = T;
  9316. }
  9317. }(s, ["a"]), function(k, I) {
  9318. I.parentElement !== k.editor && n.Dom.isBlock(I.parentElement) && n.Dom.each(I.parentElement, n.Dom.isEmptyTextNode) && n.Dom.after(I, k.createInside.element("br"));
  9319. }(a, s), a.s.setCursorBefore(s), n.Dom.isTag(s.previousSibling, "br") && !n.Dom.findNotEmptySibling(s, !1) && n.Dom.after(s, a.createInside.element("br"))), b;
  9320. };
  9321. }, 74217: function(_, t, e) {
  9322. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveContentNotEditable = void 0;
  9323. var n = e(64968), v = e(40332), h = e(10109);
  9324. t.checkRemoveContentNotEditable = function(p, d, a) {
  9325. var s = n.Dom.findSibling(d, a);
  9326. return !s && d.parentElement && d.parentElement !== p.editor && (s = n.Dom.findSibling(d.parentElement, a)), !(!n.Dom.isElement(s) || n.Dom.isContentEditable(s, p.editor) || ((0, v.call)(a ? n.Dom.before : n.Dom.after, s, d), n.Dom.safeRemove(s), (0, h.moveNodeInsideStart)(p, d, a), (0, v.call)(a ? p.s.setCursorBefore : p.s.setCursorAfter, d), 0));
  9327. };
  9328. }, 34181: function(_, t, e) {
  9329. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveEmptyNeighbor = void 0;
  9330. var n = e(24263);
  9331. t.checkRemoveEmptyNeighbor = function(v, h, p) {
  9332. var d = n.Dom.closest(h, n.Dom.isElement, v.editor);
  9333. if (!d) return !1;
  9334. var a = n.Dom.findNotEmptySibling(d, p);
  9335. return !(!a || !n.Dom.isEmpty(a) || (n.Dom.safeRemove(a), v.s.setCursorBefore(h), 0));
  9336. };
  9337. }, 13890: function(_, t, e) {
  9338. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveEmptyParent = void 0;
  9339. var n = e(64968), v = e(86893), h = e(92156);
  9340. t.checkRemoveEmptyParent = function(p, d, a) {
  9341. var s = !1, u = p.s, f = u.setCursorBefore, l = u.setCursorIn, o = n.Dom.closest(d, n.Dom.isElement, p.editor);
  9342. if (!o || !n.Dom.isEmpty(o)) return !1;
  9343. var r = n.Dom.findNotEmptyNeighbor(d, a, p.editor);
  9344. do {
  9345. if (!o || !n.Dom.isEmpty(o) || n.Dom.isCell(o)) break;
  9346. n.Dom.after(o, d);
  9347. var i = n.Dom.closest(o, function(c) {
  9348. return n.Dom.isElement(c) && c !== o;
  9349. }, p.editor);
  9350. n.Dom.safeRemove(o), s = !0, o = i;
  9351. } while (o);
  9352. return !(!s || !(0, h.checkJoinTwoLists)(p, d, a)) || (!r || n.Dom.isText(r) || n.Dom.isTag(r, v.INSEPARABLE_TAGS) ? f(d) : l(r, !a), s);
  9353. };
  9354. }, 8249: function(_, t, e) {
  9355. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveUnbreakableElement = void 0;
  9356. var n = e(24263), v = e(86893), h = e(13890);
  9357. t.checkRemoveUnbreakableElement = function(p, d, a) {
  9358. var s = n.Dom.findSibling(d, a);
  9359. return !(!n.Dom.isElement(s) || !n.Dom.isTag(s, v.INSEPARABLE_TAGS) && !n.Dom.isEmpty(s) || (n.Dom.safeRemove(s), n.Dom.isTag(s, "br") && !n.Dom.findNotEmptySibling(d, !1) && n.Dom.after(d, p.createInside.element("br")), p.s.setCursorBefore(d), n.Dom.isTag(s, "br") && (0, h.checkRemoveEmptyParent)(p, d, a), 0));
  9360. };
  9361. }, 58368: function(_, t, e) {
  9362. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkTableCell = void 0;
  9363. var n = e(24263);
  9364. t.checkTableCell = function(v, h) {
  9365. return !!n.Dom.isCell(h.parentElement);
  9366. };
  9367. }, 6028: function(_, t, e) {
  9368. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkUnwrapFirstListItem = void 0;
  9369. var n = e(24263), v = e(76502);
  9370. t.checkUnwrapFirstListItem = function(h, p, d) {
  9371. var a, s = n.Dom.closest(p, n.Dom.isElement, h.editor), u = h.s;
  9372. if (n.Dom.isTag(s, "li") && ((a = s == null ? void 0 : s.parentElement) === null || a === void 0 ? void 0 : a[d ? "firstElementChild" : "lastElementChild"]) === s && u.cursorInTheEdge(d, s)) {
  9373. var f = s.parentElement, l = h.createInside.element(h.o.enterBlock);
  9374. return (0, v.call)(d ? n.Dom.before : n.Dom.after, f, l), n.Dom.moveContent(s, l), n.Dom.safeRemove(s), n.Dom.isEmpty(f) && n.Dom.safeRemove(f), (0, v.call)(d ? u.setCursorBefore : u.setCursorAfter, p), !0;
  9375. }
  9376. return !1;
  9377. };
  9378. }, 90089: function(_, t, e) {
  9379. Object.defineProperty(t, "__esModule", { value: !0 }), t.cases = void 0;
  9380. var n = e(8249), v = e(74217), h = e(13116), p = e(58368), d = e(13890), a = e(34181), s = e(92156), u = e(31078), f = e(6028);
  9381. t.cases = [n.checkRemoveUnbreakableElement, v.checkRemoveContentNotEditable, h.checkRemoveChar, p.checkTableCell, d.checkRemoveEmptyParent, a.checkRemoveEmptyNeighbor, s.checkJoinTwoLists, u.checkJoinNeighbors, f.checkUnwrapFirstListItem];
  9382. }, 48229: function(_, t, e) {
  9383. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.delete = { hotkeys: { delete: ["delete", "cmd+backspace"], deleteWord: ["ctrl+delete", "cmd+alt+backspace", "ctrl+alt+backspace"], deleteSentence: ["ctrl+shift+delete", "cmd+shift+delete"], backspace: ["backspace"], backspaceWord: ["ctrl+backspace"], backspaceSentence: ["ctrl+shift+backspace", "cmd+shift+backspace"] } };
  9384. }, 30861: function(_, t, e) {
  9385. Object.defineProperty(t, "__esModule", { value: !0 }), t.getMoveFilter = t.findMostNestedNeighbor = void 0;
  9386. var n = e(64968);
  9387. t.findMostNestedNeighbor = function(v, h, p, d) {
  9388. d === void 0 && (d = !1);
  9389. var a = function(u) {
  9390. return h ? u.firstChild : u.lastChild;
  9391. }, s = n.Dom.findNotEmptyNeighbor(v, !h, p);
  9392. if (d && n.Dom.isElement(s) && !n.Dom.isInlineBlock(s)) return null;
  9393. if (s) do {
  9394. if (!a(s)) return s;
  9395. s = a(s);
  9396. } while (s);
  9397. return null;
  9398. }, t.getMoveFilter = function(v) {
  9399. return function(h) {
  9400. return v.e.fire("backSpaceIsMovedIgnore", h) !== !0;
  9401. };
  9402. };
  9403. }, 87565: function(_, t, e) {
  9404. Object.defineProperty(t, "__esModule", { value: !0 }), t.bold = void 0;
  9405. var n = e(20255), v = e(93166), h = e(40332), p = e(17332), d = e(77904);
  9406. function a(s) {
  9407. var u = function(f) {
  9408. var l, o = v.Config.defaultOptions.controls[f], r = n.__assign({}, o.css);
  9409. return Object.keys(r).forEach(function(i) {
  9410. l || (l = {}), l[i] = (0, h.isArray)(r[i]) ? r[i][0] : r[i];
  9411. }), s.s.applyStyle(l, { element: o.tags ? o.tags[0] : void 0 }), s.synchronizeValues(), !1;
  9412. };
  9413. ["bold", "italic", "underline", "strikethrough"].forEach(function(f) {
  9414. s.registerButton({ name: f, group: "font-style" });
  9415. }), ["superscript", "subscript"].forEach(function(f) {
  9416. s.registerButton({ name: f, group: "script" });
  9417. }), s.registerCommand("bold", { exec: u, hotkeys: ["ctrl+b", "cmd+b"] }).registerCommand("italic", { exec: u, hotkeys: ["ctrl+i", "cmd+i"] }).registerCommand("underline", { exec: u, hotkeys: ["ctrl+u", "cmd+u"] }).registerCommand("strikethrough", { exec: u }).registerCommand("subscript", { exec: u }).registerCommand("superscript", { exec: u });
  9418. }
  9419. e(58334), e(90740), t.bold = a, p.pluginSystem.add("bold", a), d.Icon.set("bold", e(25141)).set("italic", e(24557)).set("strikethrough", e(10859)).set("subscript", e(9813)).set("superscript", e(93395)).set("underline", e(98213));
  9420. }, 90740: function(_, t, e) {
  9421. Object.defineProperty(t, "__esModule", { value: !0 });
  9422. var n = e(93166);
  9423. n.Config.prototype.controls.subscript = { tags: ["sub"], tooltip: "subscript" }, n.Config.prototype.controls.superscript = { tags: ["sup"], tooltip: "superscript" }, n.Config.prototype.controls.bold = { tagRegExp: /^(strong|b)$/i, tags: ["strong", "b"], css: { "font-weight": ["bold", "700"] }, tooltip: "Bold" }, n.Config.prototype.controls.italic = { tagRegExp: /^(em|i)$/i, tags: ["em", "i"], css: { "font-style": "italic" }, tooltip: "Italic" }, n.Config.prototype.controls.underline = { tagRegExp: /^(u)$/i, tags: ["u"], css: { "text-decoration-line": "underline" }, tooltip: "Underline" }, n.Config.prototype.controls.strikethrough = { tagRegExp: /^(s)$/i, tags: ["s"], css: { "text-decoration-line": "line-through" }, tooltip: "Strike through" };
  9424. }, 58334: function() {
  9425. }, 60894: function(_, t, e) {
  9426. Object.defineProperty(t, "__esModule", { value: !0 }), t.classSpan = void 0;
  9427. var n = e(20255), v = e(57549), h = e(93166), p = e(64968), d = e(40332), a = e(17332), s = e(2074);
  9428. h.Config.prototype.controls.classSpan = { command: "applyClassName", exec: d.memorizeExec, list: ["enabled", "disabled", "activated", "text-left", "text-center", "text-right", "warning", "error"], isChildActive: function(f, l) {
  9429. var o = f.s.current();
  9430. if (o) {
  9431. var r = p.Dom.closest(o, p.Dom.isElement, f.editor) || f.editor;
  9432. return !!(l.args && r.classList.contains(l.args[0].toString()));
  9433. }
  9434. return !1;
  9435. }, isActive: function(f, l) {
  9436. var o = f.s.current();
  9437. if (o) {
  9438. var r = p.Dom.closest(o, p.Dom.isElement, f.editor) || f.editor, i = !1;
  9439. return l.list && Object.keys(l.list).forEach(function(c) {
  9440. r.classList.contains(c) && (i = !0);
  9441. }), !!(r && r !== f.editor && l.list !== void 0 && i);
  9442. }
  9443. return !1;
  9444. }, childTemplate: function(f, l, o) {
  9445. return '<span class="'.concat(l, '">').concat(f.i18n(o), "</span>");
  9446. }, tooltip: "Insert className" };
  9447. var u = function(f) {
  9448. function l() {
  9449. var o = f !== null && f.apply(this, arguments) || this;
  9450. return o.buttons = [{ name: "classSpan", group: "font" }], o;
  9451. }
  9452. return n.__extends(l, f), l.prototype.afterInit = function(o) {
  9453. o.registerCommand("applyClassName", function(r, i, c) {
  9454. return o.s.applyStyle(void 0, { className: c }), !1;
  9455. });
  9456. }, l.prototype.beforeDestruct = function() {
  9457. }, l;
  9458. }(v.Plugin);
  9459. t.classSpan = u, a.pluginSystem.add("classSpan", u), s.Icon.set("class-span", e(20026));
  9460. }, 90302: function(_, t, e) {
  9461. Object.defineProperty(t, "__esModule", { value: !0 }), t.cleanHtml = void 0;
  9462. var n = e(20255), v = e(67128), h = e(85605), p = e(43441), d = e(33841), a = e(17332), s = e(24263), u = e(57713);
  9463. e(98889);
  9464. var f = function(l) {
  9465. function o() {
  9466. var r = l !== null && l.apply(this, arguments) || this;
  9467. return r.buttons = [{ name: "eraser", group: "font-style" }], r.currentSelectionNode = null, r.walker = new d.LazyWalker(r.j.async, { timeout: r.j.o.cleanHTML.timeout }), r;
  9468. }
  9469. return n.__extends(o, l), o.prototype.afterInit = function(r) {
  9470. }, Object.defineProperty(o.prototype, "isEditMode", { get: function() {
  9471. return !(this.j.isInDestruct || !this.j.isEditorMode() || this.j.getReadOnly());
  9472. }, enumerable: !1, configurable: !0 }), o.prototype.onChangeCleanHTML = function() {
  9473. if (this.isEditMode) {
  9474. var r = this.j;
  9475. this.walker.setWork(r.editor), this.currentSelectionNode = r.s.current();
  9476. }
  9477. }, o.prototype.startWalker = function() {
  9478. var r = this, i = this.jodit, c = (0, u.getHash)(this.j.o.cleanHTML.allowTags), m = (0, u.getHash)(this.j.o.cleanHTML.denyTags);
  9479. this.walker.on("visit", function(y) {
  9480. return (0, u.visitNodeWalker)(i, y, c, m, r.currentSelectionNode);
  9481. }).on("end", function(y) {
  9482. r.j.e.fire(y ? "internalChange finishedCleanHTMLWorker" : "finishedCleanHTMLWorker");
  9483. });
  9484. }, o.prototype.beforeCommand = function(r) {
  9485. if (r.toLowerCase() === "removeformat") return this.j.s.isCollapsed() ? (0, u.removeFormatForCollapsedSelection)(this.j) : (0, u.removeFormatForSelection)(this.j), !1;
  9486. }, o.prototype.onBeforeSetNativeEditorValue = function(r) {
  9487. var i = this.j.o.cleanHTML.useIframeSandbox ? this.j.createInside.sandbox() : this.j.createInside.div();
  9488. return i.innerHTML = r.value, this.onSafeHTML(i), r.value = i.innerHTML, (0, v.safeHTML)(i, { safeJavaScriptLink: !0, removeOnError: !0 }), s.Dom.safeRemove(i), !1;
  9489. }, o.prototype.onSafeHTML = function(r) {
  9490. (0, v.safeHTML)(r, this.j.o.cleanHTML);
  9491. }, o.prototype.beforeDestruct = function() {
  9492. this.walker.destruct();
  9493. }, n.__decorate([(0, p.watch)([":change", ":afterSetMode", ":afterInit", ":mousedown", ":keydown"])], o.prototype, "onChangeCleanHTML", null), n.__decorate([(0, p.hook)("ready")], o.prototype, "startWalker", null), n.__decorate([(0, p.watch)(":beforeCommand")], o.prototype, "beforeCommand", null), n.__decorate([(0, p.watch)(":beforeSetNativeEditorValue")], o.prototype, "onBeforeSetNativeEditorValue", null), n.__decorate([(0, p.watch)(":safeHTML")], o.prototype, "onSafeHTML", null), o;
  9494. }(h.Plugin);
  9495. t.cleanHtml = f, a.pluginSystem.add("cleanHtml", f);
  9496. }, 98889: function(_, t, e) {
  9497. Object.defineProperty(t, "__esModule", { value: !0 });
  9498. var n = e(93166), v = e(77904);
  9499. n.Config.prototype.cleanHTML = { timeout: 300, removeEmptyElements: !0, fillEmptyParagraph: !0, replaceNBSP: !0, replaceOldTags: { i: "em", b: "strong" }, allowTags: !1, denyTags: "script", useIframeSandbox: !1, removeOnError: !0, safeJavaScriptLink: !0, disableCleanFilter: null }, n.Config.prototype.controls.eraser = { command: "removeFormat", tooltip: "Clear Formatting" }, v.Icon.set("eraser", e(66911));
  9500. }, 38655: function(_, t, e) {
  9501. Object.defineProperty(t, "__esModule", { value: !0 }), t.getHash = void 0;
  9502. var n = e(33941), v = e(24421);
  9503. t.getHash = function(h) {
  9504. var p = /([^[]*)\[([^\]]+)]/, d = /[\s]*,[\s]*/, a = /^(.*)[\s]*=[\s]*(.*)$/, s = {};
  9505. return (0, v.isString)(h) ? (h.split(d).map(function(u) {
  9506. u = (0, n.trim)(u);
  9507. var f = p.exec(u), l = {};
  9508. if (f) {
  9509. var o = f[2].split(d);
  9510. f[1] && (o.forEach(function(r) {
  9511. r = (0, n.trim)(r);
  9512. var i = a.exec(r);
  9513. i ? l[i[1]] = i[2] : l[r] = !0;
  9514. }), s[f[1].toUpperCase()] = l);
  9515. } else s[u.toUpperCase()] = !0;
  9516. }), s) : !!h && (Object.keys(h).forEach(function(u) {
  9517. s[u.toUpperCase()] = h[u];
  9518. }), s);
  9519. };
  9520. }, 57713: function(_, t, e) {
  9521. Object.defineProperty(t, "__esModule", { value: !0 });
  9522. var n = e(20255);
  9523. n.__exportStar(e(38655), t), n.__exportStar(e(72170), t), n.__exportStar(e(87783), t), n.__exportStar(e(88972), t);
  9524. }, 72170: function(_, t, e) {
  9525. Object.defineProperty(t, "__esModule", { value: !0 }), t.isInlineBlock = t.removeFormatForCollapsedSelection = void 0;
  9526. var n = e(24263), v = e(86893);
  9527. function h(p) {
  9528. return n.Dom.isInlineBlock(p) && !n.Dom.isTag(p, v.INSEPARABLE_TAGS);
  9529. }
  9530. t.removeFormatForCollapsedSelection = function(p, d) {
  9531. var a = p.s, s = d;
  9532. if (!s) {
  9533. s = p.createInside.fake();
  9534. var u = a.range;
  9535. n.Dom.safeInsertNode(u, s), u.collapse();
  9536. }
  9537. var f = n.Dom.furthest(s, h, p.editor);
  9538. if (f) if (a.cursorOnTheLeft(f)) n.Dom.before(f, s);
  9539. else if (a.cursorOnTheRight(f)) n.Dom.after(f, s);
  9540. else {
  9541. var l = a.splitSelection(f);
  9542. l && n.Dom.after(l, s);
  9543. }
  9544. d || (a.setCursorBefore(s), n.Dom.safeRemove(s));
  9545. }, t.isInlineBlock = h;
  9546. }, 87783: function(_, t, e) {
  9547. Object.defineProperty(t, "__esModule", { value: !0 }), t.removeFormatForSelection = void 0;
  9548. var n = e(24263), v = e(76502), h = e(72170);
  9549. t.removeFormatForSelection = function(p) {
  9550. var d = p.s, a = p.editor, s = p.createInside, u = d.range, f = u.cloneRange(), l = u.cloneRange(), o = s.fake(), r = s.fake();
  9551. f.collapse(!0), l.collapse(!1), n.Dom.safeInsertNode(f, o), n.Dom.safeInsertNode(l, r), u.setStartBefore(o), u.collapse(!0), d.selectRange(u), (0, h.removeFormatForCollapsedSelection)(p, o), u.setEndAfter(r), u.collapse(!1), d.selectRange(u), (0, h.removeFormatForCollapsedSelection)(p, r);
  9552. var i = [];
  9553. n.Dom.between(o, r, function(m) {
  9554. (0, h.isInlineBlock)(m) && !n.Dom.isTag(m, ["a"]) && i.push(m), n.Dom.isElement(m) && (0, v.attr)(m, "style") && (0, v.attr)(m, "style", null);
  9555. }), i.forEach(function(m) {
  9556. return n.Dom.unwrap(m);
  9557. });
  9558. var c = function(m, y) {
  9559. if (!n.Dom.findNotEmptySibling(m, y)) {
  9560. var g = m.parentNode;
  9561. if (g && g !== a && (0, v.attr)(g, "style")) return (0, v.attr)(g, "style", null), c(g, y), !0;
  9562. }
  9563. };
  9564. c(o, !0) && c(r, !1), u.setStartAfter(o), u.setEndBefore(r), d.selectRange(u), n.Dom.safeRemove(o), n.Dom.safeRemove(r);
  9565. };
  9566. }, 9948: function(_, t, e) {
  9567. Object.defineProperty(t, "__esModule", { value: !0 }), t.allowAttributes = void 0;
  9568. var n = e(24263);
  9569. t.allowAttributes = function(v, h, p, d) {
  9570. if (d && n.Dom.isElement(h) && d[h.nodeName] !== !0) {
  9571. var a = h.attributes;
  9572. if (a && a.length) {
  9573. for (var s = [], u = 0; a.length > u; u += 1) {
  9574. var f = d[h.nodeName][a[u].name];
  9575. (!f || f !== !0 && f !== a[u].value) && s.push(a[u].name);
  9576. }
  9577. s.length && (p = !0), s.forEach(function(l) {
  9578. h.removeAttribute(l);
  9579. });
  9580. }
  9581. }
  9582. return p;
  9583. };
  9584. }, 74722: function(_, t, e) {
  9585. Object.defineProperty(t, "__esModule", { value: !0 }), t.fillEmptyParagraph = void 0;
  9586. var n = e(24263), v = e(86893);
  9587. t.fillEmptyParagraph = function(h, p, d) {
  9588. if (h.o.cleanHTML.fillEmptyParagraph && n.Dom.isBlock(p) && n.Dom.isEmpty(p, v.INSEPARABLE_TAGS)) {
  9589. var a = h.createInside.element("br");
  9590. return p.appendChild(a), !0;
  9591. }
  9592. return d;
  9593. };
  9594. }, 2549: function(_, t, e) {
  9595. Object.defineProperty(t, "__esModule", { value: !0 });
  9596. var n = e(20255);
  9597. n.__exportStar(e(55901), t), n.__exportStar(e(9948), t), n.__exportStar(e(74722), t), n.__exportStar(e(75096), t), n.__exportStar(e(28194), t), n.__exportStar(e(94254), t), n.__exportStar(e(64701), t);
  9598. }, 28194: function(_, t, e) {
  9599. Object.defineProperty(t, "__esModule", { value: !0 }), t.removeEmptyTextNode = void 0;
  9600. var n = e(24263);
  9601. t.removeEmptyTextNode = function(v, h, p, d, a, s) {
  9602. return n.Dom.isText(h) && !h.nodeValue ? (h === s && v.s.isCollapsed() && v.s.setCursorAfter(h), n.Dom.safeRemove(h), !0) : p;
  9603. };
  9604. }, 94254: function(_, t, e) {
  9605. Object.defineProperty(t, "__esModule", { value: !0 }), t.removeInvTextNodes = void 0;
  9606. var n = e(86893), v = e(24263);
  9607. t.removeInvTextNodes = function(h, p, d, a, s, u) {
  9608. return u !== p && v.Dom.isText(p) && p.nodeValue != null && (0, n.INVISIBLE_SPACE_REG_EXP)().test(p.nodeValue) ? (p.nodeValue = p.nodeValue.replace((0, n.INVISIBLE_SPACE_REG_EXP)(), ""), p === u && h.s.isCollapsed() && h.s.setCursorAfter(p), p.nodeValue || v.Dom.safeRemove(p), !0) : d;
  9609. };
  9610. }, 55901: function(_, t, e) {
  9611. Object.defineProperty(t, "__esModule", { value: !0 }), t.replaceOldTags = void 0;
  9612. var n = e(24263);
  9613. t.replaceOldTags = function(v, h, p) {
  9614. var d = function(a, s, u) {
  9615. if (!u || !n.Dom.isHTMLElement(s)) return s;
  9616. var f = u[s.nodeName.toLowerCase()] || u[s.nodeName];
  9617. return f ? n.Dom.replace(s, f, a.createInside, !0, !1) : s;
  9618. }(v, h, v.o.cleanHTML.replaceOldTags);
  9619. return h !== d ? (h = d, !0) : p;
  9620. };
  9621. }, 64701: function(_, t, e) {
  9622. Object.defineProperty(t, "__esModule", { value: !0 }), t.sanitizeAttributes = void 0;
  9623. var n = e(24263), v = e(40332);
  9624. t.sanitizeAttributes = function(h, p, d) {
  9625. return !(!n.Dom.isElement(p) || !(0, v.sanitizeHTMLElement)(p, { safeJavaScriptLink: h.options.cleanHTML.safeJavaScriptLink, removeOnError: h.options.cleanHTML.removeOnError })) || d;
  9626. };
  9627. }, 75096: function(_, t, e) {
  9628. Object.defineProperty(t, "__esModule", { value: !0 }), t.tryRemoveNode = void 0;
  9629. var n = e(24263), v = e(86893), h = e(33941);
  9630. t.tryRemoveNode = function(p, d, a, s, u, f) {
  9631. return function(l, o, r, i, c) {
  9632. return !(n.Dom.isText(o) || !(i && !i[o.nodeName] || c && c[o.nodeName])) || l.o.cleanHTML.removeEmptyElements && n.Dom.isElement(o) && o.nodeName.match(v.IS_INLINE) != null && !n.Dom.isTemporary(o) && (0, h.trim)(o.innerHTML).length === 0 && (r == null || !n.Dom.isOrContains(o, r));
  9633. }(p, d, f, s, u) ? (n.Dom.safeRemove(d), !0) : a;
  9634. };
  9635. }, 88972: function(_, t, e) {
  9636. Object.defineProperty(t, "__esModule", { value: !0 }), t.visitNodeWalker = void 0;
  9637. var n = e(20255), v = e(2549), h = Object.keys(v);
  9638. t.visitNodeWalker = function(p, d, a, s, u) {
  9639. var f, l, o = !1, r = p.o.cleanHTML.disableCleanFilter;
  9640. try {
  9641. for (var i = n.__values(h), c = i.next(); !c.done; c = i.next()) {
  9642. var m = c.value;
  9643. if (!(r && r.has(m) || (o = (0, v[m])(p, d, o, a, s, u), d.isConnected))) return !0;
  9644. }
  9645. } catch (y) {
  9646. f = { error: y };
  9647. } finally {
  9648. try {
  9649. c && !c.done && (l = i.return) && l.call(i);
  9650. } finally {
  9651. if (f) throw f.error;
  9652. }
  9653. }
  9654. return o;
  9655. };
  9656. }, 92138: function(_, t, e) {
  9657. Object.defineProperty(t, "__esModule", { value: !0 }), t.clipboard = void 0;
  9658. var n = e(86893), v = e(40332), h = e(17332);
  9659. e(31473);
  9660. var p = function() {
  9661. function d() {
  9662. this.buttons = [{ name: "cut", group: "clipboard" }, { name: "copy", group: "clipboard" }, { name: "paste", group: "clipboard" }, { name: "selectall", group: "clipboard" }];
  9663. }
  9664. return d.prototype.init = function(a) {
  9665. var s;
  9666. (s = this.buttons) === null || s === void 0 || s.forEach(function(u) {
  9667. return a.registerButton(u);
  9668. }), a.e.off("copy.".concat(n.CLIPBOARD_ID, " cut.").concat(n.CLIPBOARD_ID)).on("copy.".concat(n.CLIPBOARD_ID, " cut.").concat(n.CLIPBOARD_ID), function(u) {
  9669. var f, l = a.s.html, o = (0, v.getDataTransfer)(u) || (0, v.getDataTransfer)(a.ew) || (0, v.getDataTransfer)(u.originalEvent);
  9670. o && (o.setData(n.TEXT_PLAIN, (0, v.stripTags)(l)), o.setData(n.TEXT_HTML, l)), a.buffer.set(n.CLIPBOARD_ID, l), a.e.fire("pasteStack", { html: l, action: a.o.defaultActionOnPaste || n.INSERT_AS_HTML }), u.type === "cut" && (a.s.remove(), a.s.focus()), u.preventDefault(), (f = a == null ? void 0 : a.events) === null || f === void 0 || f.fire("afterCopy", l);
  9671. });
  9672. }, d.prototype.destruct = function(a) {
  9673. var s, u;
  9674. (s = a == null ? void 0 : a.buffer) === null || s === void 0 || s.set(n.CLIPBOARD_ID, ""), (u = a == null ? void 0 : a.events) === null || u === void 0 || u.off("." + n.CLIPBOARD_ID);
  9675. }, d;
  9676. }();
  9677. t.clipboard = p, h.pluginSystem.add("clipboard", p);
  9678. }, 31473: function(_, t, e) {
  9679. Object.defineProperty(t, "__esModule", { value: !0 });
  9680. var n = e(93166), v = e(77904);
  9681. n.Config.prototype.controls.cut = { command: "cut", isDisabled: function(h) {
  9682. return h.s.isCollapsed();
  9683. }, tooltip: "Cut selection" }, n.Config.prototype.controls.copy = { command: "copy", isDisabled: function(h) {
  9684. return h.s.isCollapsed();
  9685. }, tooltip: "Copy selection" }, n.Config.prototype.controls.selectall = { icon: "select-all", command: "selectall", tooltip: "Select all" }, v.Icon.set("copy", e(50018)).set("cut", e(99738)).set("paste", e(9185)).set("select-all", e(8619));
  9686. }, 88412: function(_, t, e) {
  9687. Object.defineProperty(t, "__esModule", { value: !0 }), t.color = void 0;
  9688. var n = e(40332), v = e(17332);
  9689. function h(p) {
  9690. p.registerButton({ name: "brush", group: "color" });
  9691. var d = function(a, s, u) {
  9692. var f = (0, n.normalizeColor)(u);
  9693. switch (a) {
  9694. case "background":
  9695. p.s.applyStyle({ backgroundColor: f || "" });
  9696. break;
  9697. case "forecolor":
  9698. p.s.applyStyle({ color: f || "" });
  9699. }
  9700. return p.synchronizeValues(), !1;
  9701. };
  9702. p.registerCommand("forecolor", d).registerCommand("background", d);
  9703. }
  9704. e(21924), t.color = h, v.pluginSystem.add("color", h);
  9705. }, 21924: function(_, t, e) {
  9706. Object.defineProperty(t, "__esModule", { value: !0 });
  9707. var n = e(93166), v = e(40332), h = e(718), p = e(77904), d = e(24263);
  9708. p.Icon.set("brush", e(73894)), n.Config.prototype.controls.brush = { update: function(a, s) {
  9709. var u = (0, v.dataBind)(a, "color"), f = function(i, c) {
  9710. c && c !== (0, v.css)(s.editor, i).toString() && (a.state.icon.fill = c);
  9711. };
  9712. if (u) {
  9713. var l = (0, v.dataBind)(a, "color");
  9714. f(l === "color" ? l : "background-color", u);
  9715. } else {
  9716. var o = s.s.current();
  9717. if (o && !a.state.disabled) {
  9718. var r = d.Dom.closest(o, d.Dom.isElement, s.editor) || s.editor;
  9719. f("color", (0, v.css)(r, "color").toString()), f("background-color", (0, v.css)(r, "background-color").toString());
  9720. }
  9721. a.state.icon.fill = "", a.state.activated = !1;
  9722. }
  9723. }, popup: function(a, s, u, f, l) {
  9724. var o = "", r = "", i = [], c = null;
  9725. return s && s !== a.editor && d.Dom.isNode(s) && (d.Dom.isElement(s) && a.s.isCollapsed() && !d.Dom.isTag(s, ["br", "hr"]) && (c = s), d.Dom.up(s, function(m) {
  9726. if (d.Dom.isHTMLElement(m)) {
  9727. var y = (0, v.css)(m, "color", !0), g = (0, v.css)(m, "background-color", !0);
  9728. if (y) return o = y.toString(), !0;
  9729. if (g) return r = g.toString(), !0;
  9730. }
  9731. }, a.editor)), i = [{ name: "Background", content: (0, h.ColorPickerWidget)(a, function(m) {
  9732. c ? c.style.backgroundColor = m : a.execCommand("background", !1, m), (0, v.dataBind)(l, "color", m), (0, v.dataBind)(l, "color-mode", "background"), f();
  9733. }, r) }, { name: "Text", content: (0, h.ColorPickerWidget)(a, function(m) {
  9734. c ? c.style.color = m : a.execCommand("forecolor", !1, m), (0, v.dataBind)(l, "color", m), (0, v.dataBind)(l, "color-mode", "color"), f();
  9735. }, o) }], a.o.colorPickerDefaultTab !== "background" && (i = i.reverse()), (0, h.TabsWidget)(a, i, c);
  9736. }, exec: function(a, s, u) {
  9737. var f = u.button, l = (0, v.dataBind)(f, "color-mode"), o = (0, v.dataBind)(f, "color");
  9738. if (!l) return !1;
  9739. if (s && s !== a.editor && d.Dom.isNode(s) && d.Dom.isElement(s)) switch (l) {
  9740. case "color":
  9741. s.style.color = o;
  9742. break;
  9743. case "background":
  9744. s.style.backgroundColor = o;
  9745. }
  9746. else a.execCommand(l === "background" ? l : "forecolor", !1, o);
  9747. }, tooltip: "Fill color or set the text color" };
  9748. }, 79308: function(_, t, e) {
  9749. Object.defineProperty(t, "__esModule", { value: !0 }), t.copyFormat = void 0;
  9750. var n = e(93166), v = e(24263), h = e(26911), p = e(17332), d = e(77904), a = "copy-format", s = ["fontWeight", "fontStyle", "fontSize", "color", "margin", "padding", "borderWidth", "borderStyle", "borderColor", "borderRadius", "backgroundColor", "textDecorationLine", "fontFamily"], u = function(l, o, r, i) {
  9751. var c = (0, h.css)(r, o);
  9752. return c === i[o] && (c = r.parentNode && r !== l.editor && r.parentNode !== l.editor ? u(l, o, r.parentNode, i) : void 0), c;
  9753. };
  9754. function f(l) {
  9755. l.registerButton({ name: "copyformat", group: "clipboard" }), (0, p.extendLang)(e(9188));
  9756. }
  9757. n.Config.prototype.controls.copyformat = { exec: function(l, o, r) {
  9758. var i = r.button;
  9759. if (o) {
  9760. if (l.buffer.exists(a)) l.buffer.delete(a), l.e.off(l.editor, "mouseup." + a);
  9761. else {
  9762. var c = {}, m = v.Dom.up(o, function(b) {
  9763. return b && !v.Dom.isText(b);
  9764. }, l.editor) || l.editor, y = l.createInside.span();
  9765. l.editor.appendChild(y), s.forEach(function(b) {
  9766. c[b] = (0, h.css)(y, b);
  9767. }), y !== l.editor && v.Dom.safeRemove(y);
  9768. var g = function(b, w, C) {
  9769. var S = {};
  9770. return w && s.forEach(function(j) {
  9771. S[j] = u(b, j, w, C), j.match(/border(Style|Color)/) && !S.borderWidth && (S[j] = void 0);
  9772. }), S;
  9773. }(l, m, c);
  9774. l.e.on(l.editor, "mouseup." + a, function() {
  9775. l.buffer.delete(a);
  9776. var b = l.s.current();
  9777. b && (v.Dom.isTag(b, "img") ? (0, h.css)(b, g) : l.s.applyStyle(g)), l.e.off(l.editor, "mouseup." + a);
  9778. }), l.buffer.set(a, !0);
  9779. }
  9780. i.update();
  9781. }
  9782. }, isActive: function(l) {
  9783. return l.buffer.exists(a);
  9784. }, tooltip: "Paint format" }, t.copyFormat = f, p.pluginSystem.add("copyformat", f), d.Icon.set("copyformat", e(83301));
  9785. }, 9188: function(_, t, e) {
  9786. Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
  9787. var n = e(80078);
  9788. t.ar = n;
  9789. var v = e(16986);
  9790. t.cs_cz = v;
  9791. var h = e(59347);
  9792. t.de = h;
  9793. var p = e(63640);
  9794. t.es = p;
  9795. var d = e(53434);
  9796. t.fa = d;
  9797. var a = e(85638);
  9798. t.fr = a;
  9799. var s = e(31743);
  9800. t.he = s;
  9801. var u = e(66219);
  9802. t.hu = u;
  9803. var f = e(50331);
  9804. t.id = f;
  9805. var l = e(25582);
  9806. t.it = l;
  9807. var o = e(82066);
  9808. t.ja = o;
  9809. var r = e(71925);
  9810. t.ko = r;
  9811. var i = e(65274);
  9812. t.nl = i;
  9813. var c = e(58548);
  9814. t.pl = c;
  9815. var m = e(82958);
  9816. t.pt_br = m;
  9817. var y = e(52315);
  9818. t.ru = y;
  9819. var g = e(87727);
  9820. t.tr = g;
  9821. var b = e(9396);
  9822. t.zh_cn = b;
  9823. var w = e(28765);
  9824. t.zh_tw = w;
  9825. }, 9412: function(_, t, e) {
  9826. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.draggableTags = ["img", "jodit-media", "jodit"];
  9827. }, 30598: function(_, t, e) {
  9828. Object.defineProperty(t, "__esModule", { value: !0 }), t.dragAndDropElement = void 0;
  9829. var n, v = e(20255), h = e(40332), p = e(57549), d = e(64968), a = e(17332), s = e(43441);
  9830. e(9412), function(f) {
  9831. f[f.IDLE = 0] = "IDLE", f[f.WAIT_DRAGGING = 1] = "WAIT_DRAGGING", f[f.DRAGGING = 2] = "DRAGGING";
  9832. }(n || (n = {}));
  9833. var u = function(f) {
  9834. function l() {
  9835. var o = f !== null && f.apply(this, arguments) || this;
  9836. return o.dragList = [], o.draggable = null, o.isCopyMode = !1, o.diffStep = 10, o.startX = 0, o.startY = 0, o.state = n.IDLE, o;
  9837. }
  9838. return v.__extends(l, f), l.prototype.afterInit = function() {
  9839. this.dragList = this.j.o.draggableTags ? (0, h.splitArray)(this.j.o.draggableTags).filter(Boolean).map(function(o) {
  9840. return o.toLowerCase();
  9841. }) : [], this.dragList.length && this.j.e.on("mousedown dragstart", this.onDragStart);
  9842. }, l.prototype.onDragStart = function(o) {
  9843. var r = this;
  9844. if (o.type === "dragstart" && this.draggable) return !1;
  9845. if (n.IDLE >= this.state) {
  9846. var i = o.target;
  9847. if (this.dragList.length && i) {
  9848. var c = function(y) {
  9849. return !!(y && r.dragList.includes(y.nodeName.toLowerCase()));
  9850. }, m = d.Dom.furthest(i, c, this.j.editor) || (c(i) ? i : null);
  9851. m && (d.Dom.isTag(m.parentElement, "a") && m.parentElement.firstChild === m && m.parentElement.lastChild === m && (m = m.parentElement), this.startX = o.clientX, this.startY = o.clientY, this.isCopyMode = (0, h.ctrlKey)(o), this.draggable = m.cloneNode(!0), (0, h.dataBind)(this.draggable, "target", m), this.state = n.WAIT_DRAGGING, this.addDragListeners());
  9852. }
  9853. }
  9854. }, l.prototype.onDrag = function(o) {
  9855. var r, i;
  9856. if (this.draggable && this.state !== n.IDLE) {
  9857. var c = o.clientY;
  9858. if (this.state !== n.WAIT_DRAGGING || Math.sqrt(Math.pow(o.clientX - this.startX, 2) + Math.pow(c - this.startY, 2)) >= this.diffStep) {
  9859. if (this.state === n.WAIT_DRAGGING && (this.j.lock("drag-and-drop-element"), this.state = n.DRAGGING), this.j.e.fire("hidePopup hideResizer"), !this.draggable.parentNode) {
  9860. var m = (0, h.dataBind)(this.draggable, "target");
  9861. (0, h.css)(this.draggable, { zIndex: 1e13, pointerEvents: "none", pointer: "drag", position: "fixed", opacity: 0.7, display: "inline-block", left: o.clientX, top: o.clientY, width: (r = m == null ? void 0 : m.offsetWidth) !== null && r !== void 0 ? r : 100, height: (i = m == null ? void 0 : m.offsetHeight) !== null && i !== void 0 ? i : 100 }), (0, a.getContainer)(this.j, l).appendChild(this.draggable);
  9862. }
  9863. (0, h.css)(this.draggable, { left: o.clientX, top: o.clientY }), this.j.s.insertCursorAtPoint(o.clientX, o.clientY);
  9864. }
  9865. }
  9866. }, l.prototype.onDragEnd = function() {
  9867. this.isInDestruct || (this.removeDragListeners(), this.j.unlock(), this.state = n.IDLE, this.draggable && (d.Dom.safeRemove(this.draggable), this.draggable = null));
  9868. }, l.prototype.onDrop = function() {
  9869. if (this.draggable && this.state >= n.DRAGGING) {
  9870. var o = (0, h.dataBind)(this.draggable, "target");
  9871. this.onDragEnd(), this.isCopyMode && (o = o.cloneNode(!0));
  9872. var r = o.parentElement;
  9873. this.j.s.insertNode(o, !0, !1), r && d.Dom.isEmpty(r) && !d.Dom.isTag(r, ["td", "th"]) && d.Dom.safeRemove(r), d.Dom.isTag(o, "img") && this.j.e && this.j.e.fire("afterInsertImage", o), this.j.e.fire("synchro");
  9874. } else this.onDragEnd();
  9875. }, l.prototype.addDragListeners = function() {
  9876. this.j.e.on(this.j.editor, "mousemove", this.onDrag).on("mouseup", this.onDrop).on([this.j.ew, this.ow], "mouseup", this.onDragEnd);
  9877. }, l.prototype.removeDragListeners = function() {
  9878. this.j.e.off(this.j.editor, "mousemove", this.onDrag).off("mouseup", this.onDrop).off([this.j.ew, this.ow], "mouseup", this.onDragEnd);
  9879. }, l.prototype.beforeDestruct = function() {
  9880. this.onDragEnd(), this.j.e.off("mousedown dragstart", this.onDragStart), this.removeDragListeners();
  9881. }, v.__decorate([s.autobind], l.prototype, "onDragStart", null), v.__decorate([(0, s.throttle)(function(o) {
  9882. return o.defaultTimeout / 10;
  9883. })], l.prototype, "onDrag", null), v.__decorate([s.autobind], l.prototype, "onDragEnd", null), v.__decorate([s.autobind], l.prototype, "onDrop", null), l;
  9884. }(p.Plugin);
  9885. t.dragAndDropElement = u, a.pluginSystem.add("dragAndDropElement", u);
  9886. }, 19268: function(_, t, e) {
  9887. Object.defineProperty(t, "__esModule", { value: !0 }), t.dragAndDrop = void 0;
  9888. var n = e(20255), v = e(86893), h = e(24263), p = e(40332), d = e(57549), a = e(43441), s = e(63463), u = e(17332), f = function(l) {
  9889. function o() {
  9890. var r = l !== null && l.apply(this, arguments) || this;
  9891. return r.isFragmentFromEditor = !1, r.isCopyMode = !1, r.startDragPoint = { x: 0, y: 0 }, r.draggable = null, r.bufferRange = null, r.getText = function(i) {
  9892. var c = (0, p.getDataTransfer)(i);
  9893. return c ? c.getData(v.TEXT_HTML) || c.getData(v.TEXT_PLAIN) : null;
  9894. }, r;
  9895. }
  9896. return n.__extends(o, l), o.prototype.afterInit = function() {
  9897. this.j.e.on([window, this.j.ed, this.j.editor], "dragstart.DragAndDrop", this.onDragStart);
  9898. }, o.prototype.onDragStart = function(r) {
  9899. var i = r.target;
  9900. if (this.onDragEnd(), this.isFragmentFromEditor = h.Dom.isOrContains(this.j.editor, i, !0), this.isCopyMode = !this.isFragmentFromEditor || (0, p.ctrlKey)(r), this.isFragmentFromEditor) {
  9901. var c = this.j.s.sel, m = c && c.rangeCount ? c.getRangeAt(0) : null;
  9902. m && (this.bufferRange = m.cloneRange());
  9903. } else this.bufferRange = null;
  9904. this.startDragPoint.x = r.clientX, this.startDragPoint.y = r.clientY, (0, s.isFileBrowserFilesItem)(i) && (i = i.querySelector("img")), h.Dom.isTag(i, "img") && (this.draggable = i.cloneNode(!0), (0, p.dataBind)(this.draggable, "target", i)), this.addDragListeners();
  9905. }, o.prototype.addDragListeners = function() {
  9906. this.j.e.on("dragover", this.onDrag).on("drop.DragAndDrop", this.onDrop).on(window, "dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop", this.onDragEnd);
  9907. }, o.prototype.removeDragListeners = function() {
  9908. this.j.e.off("dragover", this.onDrag).off("drop.DragAndDrop", this.onDrop).off(window, "dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop", this.onDragEnd);
  9909. }, o.prototype.onDrag = function(r) {
  9910. this.draggable && (this.j.e.fire("hidePopup"), this.j.s.insertCursorAtPoint(r.clientX, r.clientY), r.preventDefault(), r.stopPropagation());
  9911. }, o.prototype.onDragEnd = function() {
  9912. this.draggable && (h.Dom.safeRemove(this.draggable), this.draggable = null), this.isCopyMode = !1, this.removeDragListeners();
  9913. }, o.prototype.onDrop = function(r) {
  9914. if (!r.dataTransfer || !r.dataTransfer.files || !r.dataTransfer.files.length) {
  9915. if (!this.isFragmentFromEditor && !this.draggable) return this.j.e.fire("paste", r), r.preventDefault(), r.stopPropagation(), !1;
  9916. var i = this.j.s.sel, c = this.bufferRange || (i && i.rangeCount ? i.getRangeAt(0) : null), m = null;
  9917. if (!this.draggable && c) m = this.isCopyMode ? c.cloneContents() : c.extractContents();
  9918. else if (this.draggable) if (this.isCopyMode) {
  9919. var y = n.__read((0, p.attr)(this.draggable, "-is-file") === "1" ? ["a", "href"] : ["img", "src"], 2), g = y[0], b = y[1];
  9920. (m = this.j.createInside.element(g)).setAttribute(b, (0, p.attr)(this.draggable, "data-src") || (0, p.attr)(this.draggable, "src") || ""), g === "a" && (m.textContent = (0, p.attr)(m, b) || "");
  9921. } else m = (0, p.dataBind)(this.draggable, "target");
  9922. else this.getText(r) && (m = this.j.createInside.fromHTML(this.getText(r)));
  9923. i && i.removeAllRanges(), this.j.s.insertCursorAtPoint(r.clientX, r.clientY), m && (this.j.s.insertNode(m, !1, !1), c && m.firstChild && m.lastChild && (c.setStartBefore(m.firstChild), c.setEndAfter(m.lastChild), this.j.s.selectRange(c), this.j.e.fire("synchro")), h.Dom.isTag(m, "img") && this.j.events && this.j.e.fire("afterInsertImage", m)), r.preventDefault(), r.stopPropagation();
  9924. }
  9925. this.isFragmentFromEditor = !1, this.removeDragListeners();
  9926. }, o.prototype.beforeDestruct = function() {
  9927. this.onDragEnd(), this.j.e.off(window, ".DragAndDrop").off(".DragAndDrop").off([window, this.j.ed, this.j.editor], "dragstart.DragAndDrop", this.onDragStart);
  9928. }, n.__decorate([a.autobind], o.prototype, "onDragStart", null), n.__decorate([(0, a.throttle)(function(r) {
  9929. return r.defaultTimeout / 10;
  9930. })], o.prototype, "onDrag", null), n.__decorate([a.autobind], o.prototype, "onDragEnd", null), n.__decorate([a.autobind], o.prototype, "onDrop", null), o;
  9931. }(d.Plugin);
  9932. t.dragAndDrop = f, u.pluginSystem.add("dragAndDrop", f);
  9933. }, 95049: function(_, t, e) {
  9934. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(69516), t);
  9935. }, 69516: function(_, t, e) {
  9936. Object.defineProperty(t, "__esModule", { value: !0 }), t.removeExtraBr = void 0;
  9937. var n = e(24263);
  9938. t.removeExtraBr = function(v, h) {
  9939. if (v.o.dtd.removeExtraBr && !n.Dom.isTag(h, "br")) {
  9940. var p = n.Dom.furthest(h, n.Dom.isBlock, v.editor);
  9941. if (p && !n.Dom.isTag(p, ["table", "pre", "blockquote", "code"])) {
  9942. var d = n.Dom.isTag(h, "br") ? h : n.Dom.findNotEmptySibling(h, !1);
  9943. if (!n.Dom.isTag(d, "br")) return;
  9944. v.s.setCursorBefore(d), n.Dom.safeRemove(d);
  9945. }
  9946. }
  9947. };
  9948. }, 73967: function(_, t, e) {
  9949. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkBlockNesting = void 0;
  9950. var n = e(24263);
  9951. t.checkBlockNesting = function(v, h) {
  9952. if (n.Dom.isFragment(h) && (h = h.firstChild), v.o.dtd.checkBlockNesting && n.Dom.isBlock(h)) {
  9953. var p = n.Dom.furthest(v.s.current(), n.Dom.isBlock, v.editor);
  9954. p && !v.o.dtd.blockLimits[p.tagName.toLowerCase()] && (v.s.setCursorAfter(p), n.Dom.isEmpty(p) && n.Dom.safeRemove(p));
  9955. }
  9956. };
  9957. }, 73690: function(_, t, e) {
  9958. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(73967), t);
  9959. }, 20173: function(_, t, e) {
  9960. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.dtd = { removeExtraBr: !0, checkBlockNesting: !0, blockLimits: { article: 1, aside: 1, audio: 1, body: 1, caption: 1, details: 1, dir: 1, div: 1, dl: 1, fieldset: 1, figcaption: 1, figure: 1, footer: 1, form: 1, header: 1, hgroup: 1, main: 1, menu: 1, nav: 1, ol: 1, section: 1, table: 1, td: 1, th: 1, tr: 1, ul: 1, video: 1 } };
  9961. }, 96899: function(_, t, e) {
  9962. Object.defineProperty(t, "__esModule", { value: !0 });
  9963. var n = e(20255), v = e(57549), h = e(17332), p = e(46163);
  9964. e(20173);
  9965. var d = e(73690), a = e(95049), s = function(u) {
  9966. function f() {
  9967. return u !== null && u.apply(this, arguments) || this;
  9968. }
  9969. return n.__extends(f, u), f.prototype.afterInit = function(l) {
  9970. }, f.prototype.beforeDestruct = function(l) {
  9971. }, f.prototype.__onBeforeInsertNode = function(l) {
  9972. var o = this;
  9973. Object.keys(d).forEach(function(r) {
  9974. d[r](o.j, l);
  9975. });
  9976. }, f.prototype.__onAfterInsertNode = function(l) {
  9977. var o = this;
  9978. Object.keys(a).forEach(function(r) {
  9979. a[r](o.j, l);
  9980. });
  9981. }, n.__decorate([(0, p.watch)(":beforeInsertNode")], f.prototype, "__onBeforeInsertNode", null), n.__decorate([(0, p.watch)(":afterInsertNode")], f.prototype, "__onAfterInsertNode", null), f;
  9982. }(v.Plugin);
  9983. h.pluginSystem.add("dtd", s);
  9984. }, 33122: function(_, t, e) {
  9985. Object.defineProperty(t, "__esModule", { value: !0 }), t.enter = void 0;
  9986. var n = e(20255), v = e(24263), h = e(85605), p = e(86893), d = e(43441), a = e(67749), s = e(23217), u = e(17332);
  9987. e(26231);
  9988. var f = function(l) {
  9989. function o() {
  9990. return l !== null && l.apply(this, arguments) || this;
  9991. }
  9992. return n.__extends(o, l), o.prototype.afterInit = function(r) {
  9993. var i = this, c = r.o.enter.toLowerCase(), m = c === p.BR.toLowerCase();
  9994. r.o.enterBlock || (r.o.enterBlock = m ? p.PARAGRAPH : c), r.registerCommand("enter", function(y, g, b) {
  9995. return b === void 0 && (b = {}), i.onEnter(b);
  9996. });
  9997. }, o.prototype.onEnterKeyDown = function(r) {
  9998. if (r.key === p.KEY_ENTER) {
  9999. var i = this.j, c = i.e.fire("beforeEnter", r);
  10000. return c !== void 0 ? c : (i.s.isCollapsed() || i.execCommand("Delete"), i.s.focus(), this.onEnter(r), i.e.fire("afterEnter", r), i.synchronizeValues(), !1);
  10001. }
  10002. }, o.prototype.onEnter = function(r) {
  10003. var i = this.jodit, c = i.createInside.fake();
  10004. try {
  10005. v.Dom.safeInsertNode(i.s.range, c), (0, s.moveCursorOutFromSpecialTags)(i, c, ["a"]);
  10006. var m = (0, s.getBlockWrapper)(c, i), y = v.Dom.isTag(m, "li");
  10007. if ((!y || r != null && r.shiftKey) && (0, s.checkBR)(c, i, r == null ? void 0 : r.shiftKey)) return !1;
  10008. if (m || (0, s.hasPreviousBlock)(c, i) || (m = (0, s.wrapText)(c, i)), !m) return (0, s.insertParagraph)(c, i, y ? "li" : i.o.enter), !1;
  10009. if (!(0, s.checkUnsplittableBox)(c, i, m)) return !1;
  10010. if (y && this.__isEmptyListLeaf(m)) return (0, s.processEmptyLILeaf)(c, i, m), !1;
  10011. (0, s.splitFragment)(c, i, m);
  10012. } finally {
  10013. c.isConnected && i.s.setCursorBefore(c), v.Dom.safeRemove(c);
  10014. }
  10015. }, o.prototype.__isEmptyListLeaf = function(r) {
  10016. var i = this.j.e.fire("enterIsEmptyListLeaf", r);
  10017. return (0, a.isBoolean)(i) ? i : v.Dom.isEmpty(r);
  10018. }, o.prototype.beforeDestruct = function(r) {
  10019. r.e.off("keydown.enter");
  10020. }, n.__decorate([(0, d.watch)(":keydown.enter")], o.prototype, "onEnterKeyDown", null), o;
  10021. }(h.Plugin);
  10022. t.enter = f, u.pluginSystem.add("enter", f);
  10023. }, 94149: function(_, t, e) {
  10024. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkBR = void 0;
  10025. var n = e(24263), v = e(9005), h = e(86893);
  10026. function p(d) {
  10027. if (!d) return !1;
  10028. var a = n.Dom.findSibling(d, !0);
  10029. return !(!a || !n.Dom.isTag(a, "br")) && a;
  10030. }
  10031. t.checkBR = function(d, a, s) {
  10032. var u = !!n.Dom.closest(d, ["pre", "blockquote"], a.editor);
  10033. if (a.o.enter.toLowerCase() === h.BR.toLowerCase() || s && !u || !s && u) {
  10034. if (u && function(o) {
  10035. var r = p(p(o));
  10036. return !!r && (n.Dom.safeRemove(p(o)), n.Dom.safeRemove(r), !0);
  10037. }(d)) return !1;
  10038. var f = a.createInside.element("br");
  10039. if (n.Dom.before(d, f), !n.Dom.findNotEmptySibling(f, !1)) {
  10040. var l = f.cloneNode();
  10041. n.Dom.after(f, l), n.Dom.before(l, d);
  10042. }
  10043. return (0, v.scrollIntoViewIfNeeded)(f, a.editor, a.ed), !0;
  10044. }
  10045. return !1;
  10046. };
  10047. }, 58921: function(_, t, e) {
  10048. Object.defineProperty(t, "__esModule", { value: !0 }), t.checkUnsplittableBox = void 0;
  10049. var n = e(24263);
  10050. t.checkUnsplittableBox = function(v, h, p) {
  10051. return !!n.Dom.canSplitBlock(p) || (n.Dom.before(v, h.createInside.element("br")), !1);
  10052. };
  10053. }, 70638: function(_, t, e) {
  10054. Object.defineProperty(t, "__esModule", { value: !0 }), t.getBlockWrapper = void 0;
  10055. var n = e(86893), v = e(24263);
  10056. t.getBlockWrapper = function h(p, d, a) {
  10057. a === void 0 && (a = n.IS_BLOCK);
  10058. var s = p, u = d.editor;
  10059. do {
  10060. if (!s || s === u) break;
  10061. if (a.test(s.nodeName)) return v.Dom.isTag(s, "li") ? s : h(s.parentNode, d, /^li$/i) || s;
  10062. s = s.parentNode;
  10063. } while (s && s !== u);
  10064. return null;
  10065. };
  10066. }, 50781: function(_, t, e) {
  10067. Object.defineProperty(t, "__esModule", { value: !0 }), t.hasPreviousBlock = void 0;
  10068. var n = e(24263);
  10069. t.hasPreviousBlock = function(v, h) {
  10070. return !!n.Dom.prev(v, function(p) {
  10071. return n.Dom.isBlock(p) || n.Dom.isImage(p);
  10072. }, h.editor);
  10073. };
  10074. }, 23217: function(_, t, e) {
  10075. Object.defineProperty(t, "__esModule", { value: !0 });
  10076. var n = e(20255);
  10077. n.__exportStar(e(94149), t), n.__exportStar(e(58921), t), n.__exportStar(e(92291), t), n.__exportStar(e(70638), t), n.__exportStar(e(50781), t), n.__exportStar(e(90443), t), n.__exportStar(e(52521), t), n.__exportStar(e(81512), t), n.__exportStar(e(29575), t);
  10078. }, 90443: function(_, t, e) {
  10079. Object.defineProperty(t, "__esModule", { value: !0 }), t.insertParagraph = void 0;
  10080. var n = e(24263), v = e(9005);
  10081. t.insertParagraph = function(h, p, d, a) {
  10082. var s = d.toLowerCase() === "br", u = p.createInside, f = u.element(d), l = u.element("br");
  10083. return s || f.appendChild(l), a && a.cssText && f.setAttribute("style", a.cssText), n.Dom.after(h, f), n.Dom.before(s ? f : l, h), (0, v.scrollIntoViewIfNeeded)(f, p.editor, p.ed), f;
  10084. };
  10085. }, 29575: function(_, t, e) {
  10086. Object.defineProperty(t, "__esModule", { value: !0 }), t.moveCursorOutFromSpecialTags = void 0;
  10087. var n = e(24263);
  10088. t.moveCursorOutFromSpecialTags = function(v, h, p) {
  10089. var d = v.s, a = n.Dom.closest(h, p, v.editor);
  10090. a && (d.cursorOnTheRight(a, h) ? n.Dom.after(a, h) : d.cursorOnTheLeft(a, h) && n.Dom.before(a, h));
  10091. };
  10092. }, 92291: function(_, t, e) {
  10093. Object.defineProperty(t, "__esModule", { value: !0 }), t.processEmptyLILeaf = void 0;
  10094. var n = e(24263), v = e(54188), h = e(90443);
  10095. t.processEmptyLILeaf = function(p, d, a) {
  10096. var s = n.Dom.closest(a, ["ol", "ul"], d.editor);
  10097. if (s) {
  10098. var u = s.parentElement, f = n.Dom.isTag(u, "li"), l = f ? u : s, o = d.s.createRange();
  10099. o.setStartAfter(a), o.setEndAfter(s);
  10100. var r = o.extractContents();
  10101. n.Dom.after(l, p), n.Dom.safeRemove(a), (0, v.$$)("li", s).length || n.Dom.safeRemove(s);
  10102. var i = (0, h.insertParagraph)(p, d, f ? "li" : d.o.enter);
  10103. r.querySelector("li") && (f ? i.appendChild(r) : n.Dom.after(i, r));
  10104. }
  10105. };
  10106. }, 52521: function(_, t, e) {
  10107. Object.defineProperty(t, "__esModule", { value: !0 }), t.splitFragment = void 0;
  10108. var n = e(9005), v = e(24263), h = e(90443);
  10109. t.splitFragment = function(p, d, a) {
  10110. var s = d.s, u = d.o.enter.toLowerCase(), f = v.Dom.isTag(a, "li"), l = a.tagName.toLowerCase() === u || f, o = s.cursorOnTheRight(a, p), r = s.cursorOnTheLeft(a, p);
  10111. if (!l && (o || r)) return o ? v.Dom.after(a, p) : v.Dom.before(a, p), (0, h.insertParagraph)(p, d, u), void (r && !o && v.Dom.prepend(a, p));
  10112. var i = s.splitSelection(a, p);
  10113. (0, n.scrollIntoViewIfNeeded)(i, d.editor, d.ed);
  10114. };
  10115. }, 81512: function(_, t, e) {
  10116. Object.defineProperty(t, "__esModule", { value: !0 }), t.wrapText = void 0;
  10117. var n = e(24263);
  10118. t.wrapText = function(v, h) {
  10119. var p = v;
  10120. n.Dom.up(p, function(s) {
  10121. s && s.hasChildNodes() && s !== h.editor && (p = s);
  10122. }, h.editor);
  10123. var d = n.Dom.wrapInline(p, h.o.enter, h);
  10124. if (n.Dom.isEmpty(d)) {
  10125. var a = h.createInside.element("br");
  10126. d.appendChild(a), n.Dom.before(a, v);
  10127. }
  10128. return d;
  10129. };
  10130. }, 26231: function() {
  10131. }, 10135: function(_, t, e) {
  10132. Object.defineProperty(t, "__esModule", { value: !0 }), t.file = void 0;
  10133. var n = e(93166), v = e(24263), h = e(718), p = e(17332);
  10134. function d(a) {
  10135. a.registerButton({ name: "file", group: "media" });
  10136. }
  10137. n.Config.prototype.controls.file = { popup: function(a, s, u, f) {
  10138. var l = function(r, i) {
  10139. i === void 0 && (i = ""), a.s.insertNode(a.createInside.fromHTML('<a href="'.concat(r, '" title="').concat(i, '">').concat(i || r, "</a>")));
  10140. }, o = null;
  10141. return s && (v.Dom.isTag(s, "a") || v.Dom.closest(s, "a", a.editor)) && (o = v.Dom.isTag(s, "a") ? s : v.Dom.closest(s, "a", a.editor)), (0, h.FileSelectorWidget)(a, { filebrowser: function(r) {
  10142. r.files && r.files.forEach(function(i) {
  10143. return l(r.baseurl + i);
  10144. }), f();
  10145. }, upload: !0, url: function(r, i) {
  10146. o ? (o.setAttribute("href", r), o.setAttribute("title", i)) : l(r, i), f();
  10147. } }, o, f, !1);
  10148. }, tags: ["a"], tooltip: "Insert file" }, t.file = d, p.pluginSystem.add("file", d);
  10149. }, 66994: function(_, t, e) {
  10150. Object.defineProperty(t, "__esModule", { value: !0 }), t.focus = void 0;
  10151. var n = e(93166), v = e(64968), h = e(17332);
  10152. function p(d) {
  10153. d.o.saveSelectionOnBlur && d.e.on("blur", function() {
  10154. d.isEditorMode() && d.s.save(!0);
  10155. }).on("focus", function() {
  10156. d.s.restore();
  10157. });
  10158. var a = function() {
  10159. if (d.s.focus(), d.o.cursorAfterAutofocus === "end") {
  10160. var s = v.Dom.last(d.editor, function(u) {
  10161. return v.Dom.isText(u);
  10162. });
  10163. s && d.s.setCursorIn(s, !1);
  10164. }
  10165. };
  10166. d.e.on("afterInit", function() {
  10167. d.o.autofocus && (d.defaultTimeout ? d.async.setTimeout(a, 300) : a());
  10168. }), d.e.on("afterInit afterAddPlace", function() {
  10169. d.e.off(d.editor, "mousedown.autofocus").on(d.editor, "mousedown.autofocus", function(s) {
  10170. d.isEditorMode() && s.target && v.Dom.isBlock(s.target) && !s.target.childNodes.length && (d.editor === s.target ? d.s.focus() : d.s.setCursorIn(s.target));
  10171. });
  10172. });
  10173. }
  10174. n.Config.prototype.autofocus = !1, n.Config.prototype.cursorAfterAutofocus = "end", n.Config.prototype.saveSelectionOnBlur = !0, t.focus = p, h.pluginSystem.add("focus", p);
  10175. }, 8082: function(_, t, e) {
  10176. Object.defineProperty(t, "__esModule", { value: !0 });
  10177. var n = e(20255), v = e(93166), h = e(24263), p = e(76502), d = e(77904);
  10178. v.Config.prototype.defaultFontSizePoints = "px", d.Icon.set("font", e(84142)).set("fontsize", e(57292)), v.Config.prototype.controls.fontsize = { command: "fontsize", data: { cssRule: "font-size" }, list: ["8", "9", "10", "11", "12", "14", "16", "18", "24", "30", "36", "48", "60", "72", "96"], exec: function(a, s, u) {
  10179. var f = u.control;
  10180. return (0, p.memorizeExec)(a, s, { control: f }, function(l) {
  10181. var o;
  10182. return ((o = f.command) === null || o === void 0 ? void 0 : o.toLowerCase()) === "fontsize" ? "".concat(l).concat(a.o.defaultFontSizePoints) : l;
  10183. });
  10184. }, childTemplate: function(a, s, u) {
  10185. return "".concat(u).concat(a.o.defaultFontSizePoints);
  10186. }, tooltip: "Font size", isChildActive: function(a, s) {
  10187. var u, f, l = a.s.current(), o = ((u = s.data) === null || u === void 0 ? void 0 : u.cssRule) || "font-size", r = ((f = s.data) === null || f === void 0 ? void 0 : f.normalize) || function(m) {
  10188. return /pt$/i.test(m) && a.o.defaultFontSizePoints === "pt" ? m.replace(/pt$/i, "") : m;
  10189. };
  10190. if (l) {
  10191. var i = h.Dom.closest(l, h.Dom.isElement, a.editor) || a.editor, c = (0, p.css)(i, o);
  10192. return !!(c && s.args && r(s.args[0].toString()) === r(c.toString()));
  10193. }
  10194. return !1;
  10195. } }, v.Config.prototype.controls.font = n.__assign(n.__assign({}, v.Config.prototype.controls.fontsize), { command: "fontname", list: { "": "Default", "helvetica,sans-serif": "Helvetica", "arial,helvetica,sans-serif": "Arial", "georgia,palatino,serif": "Georgia", "impact,charcoal,sans-serif": "Impact", "tahoma,geneva,sans-serif": "Tahoma", "times new roman,times,serif": "Times New Roman", "verdana,geneva,sans-serif": "Verdana" }, childTemplate: function(a, s, u) {
  10196. var f = !1;
  10197. try {
  10198. f = s.indexOf("dings") === -1 && document.fonts.check("16px ".concat(s), u);
  10199. } catch (l) {
  10200. }
  10201. return '<span data-style="'.concat(s, '" style="').concat(f ? "font-family: ".concat(s, "!important;") : "", '">').concat(u, "</span>");
  10202. }, data: { cssRule: "font-family", normalize: function(a) {
  10203. return a.toLowerCase().replace(/['"]+/g, "").replace(/[^a-z0-9]+/g, ",");
  10204. } }, tooltip: "Font family" });
  10205. }, 54798: function(_, t, e) {
  10206. Object.defineProperty(t, "__esModule", { value: !0 }), t.font = void 0;
  10207. var n = e(40332), v = e(17332);
  10208. function h(p) {
  10209. p.registerButton({ name: "font", group: "font" }).registerButton({ name: "fontsize", group: "font" });
  10210. var d = function(a, s, u) {
  10211. switch (a) {
  10212. case "fontsize":
  10213. p.s.applyStyle({ fontSize: (0, n.normalizeSize)(u) });
  10214. break;
  10215. case "fontname":
  10216. p.s.applyStyle({ fontFamily: u });
  10217. }
  10218. return p.synchronizeValues(), !1;
  10219. };
  10220. p.registerCommand("fontsize", d).registerCommand("fontname", d);
  10221. }
  10222. e(8082), t.font = h, v.pluginSystem.add("font", h);
  10223. }, 12908: function(_, t, e) {
  10224. Object.defineProperty(t, "__esModule", { value: !0 }), t.formatBlock = void 0;
  10225. var n = e(93166), v = e(87837), h = e(40332), p = e(17332);
  10226. function d(a) {
  10227. a.registerButton({ name: "paragraph", group: "font" }), a.registerCommand("formatblock", function(s, u, f) {
  10228. return a.s.applyStyle(void 0, { element: f }), a.synchronizeValues(), !1;
  10229. });
  10230. }
  10231. e(77904).Icon.set("paragraph", e(18019)), n.Config.prototype.controls.paragraph = { command: "formatBlock", update: function(a, s) {
  10232. var u = a.control, f = s.s.current();
  10233. if (f && s.o.textIcons) {
  10234. var l = (v.Dom.closest(f, v.Dom.isBlock, s.editor) || s.editor).nodeName.toLowerCase(), o = u.list;
  10235. a && u.data && u.data.currentValue !== l && o && o[l] && (s.o.textIcons ? a.state.text = l : a.state.icon.name = l, u.data.currentValue = l);
  10236. }
  10237. return !1;
  10238. }, exec: h.memorizeExec, data: { currentValue: "left" }, list: { p: "Normal", h1: "Heading 1", h2: "Heading 2", h3: "Heading 3", h4: "Heading 4", blockquote: "Quote", pre: "Code" }, isChildActive: function(a, s) {
  10239. var u = a.s.current();
  10240. if (u) {
  10241. var f = v.Dom.closest(u, v.Dom.isBlock, a.editor);
  10242. return !!(f && f !== a.editor && s.args !== void 0 && f.nodeName.toLowerCase() === s.args[0]);
  10243. }
  10244. return !1;
  10245. }, isActive: function(a, s) {
  10246. var u = a.s.current();
  10247. if (u) {
  10248. var f = v.Dom.closest(u, v.Dom.isBlock, a.editor);
  10249. return !!(f && f !== a.editor && s.list !== void 0 && !v.Dom.isTag(f, "p") && s.list[f.nodeName.toLowerCase()] !== void 0);
  10250. }
  10251. return !1;
  10252. }, childTemplate: function(a, s, u) {
  10253. return "<".concat(s, ' style="margin:0;padding:0"><span>').concat(a.i18n(u), "</span></").concat(s, ">");
  10254. }, tooltip: "Insert format block" }, t.formatBlock = d, p.pluginSystem.add("formatBlock", d);
  10255. }, 15045: function(_, t, e) {
  10256. Object.defineProperty(t, "__esModule", { value: !0 }), e(14320);
  10257. var n = e(93166), v = e(86893), h = e(77904);
  10258. n.Config.prototype.fullsize = !1, n.Config.prototype.globalFullSize = !0, h.Icon.set("fullsize", e(45146)).set("shrink", e(53576)), n.Config.prototype.controls.fullsize = { exec: function(p) {
  10259. p.toggleFullSize();
  10260. }, update: function(p, d) {
  10261. var a = d.isFullSize ? "shrink" : "fullsize";
  10262. p.state.activated = d.isFullSize, d.o.textIcons ? p.state.text = a : p.state.icon.name = a;
  10263. }, tooltip: "Open in fullsize", mode: v.MODE_SOURCE + v.MODE_WYSIWYG };
  10264. }, 65123: function(_, t, e) {
  10265. Object.defineProperty(t, "__esModule", { value: !0 }), t.fullsize = void 0, e(14320);
  10266. var n = e(26911), v = e(77892), h = e(17332);
  10267. e(15045);
  10268. var p = /* @__PURE__ */ new Set();
  10269. function d(a) {
  10270. a.registerButton({ name: "fullsize" });
  10271. var s = !1, u = 0, f = 0, l = !1, o = function() {
  10272. var i = a.container;
  10273. a.events && (s ? (u = (0, n.css)(i, "height", !0), f = (0, n.css)(i, "width", !0), (0, n.css)(i, { height: a.ow.innerHeight, width: a.ow.innerWidth }), l = !0) : l && (0, n.css)(i, { height: u || "auto", width: f || "auto" }));
  10274. }, r = function(i) {
  10275. var c = a.container, m = a.events;
  10276. if (c) {
  10277. if (i === void 0 && (i = !c.classList.contains("jodit_fullsize")), a.setMod("fullsize", i), a.o.fullsize = i, s = i, c.classList.toggle("jodit_fullsize", i), a.toolbar && ((0, v.isJoditObject)(a) && a.toolbarContainer.appendChild(a.toolbar.container), (0, n.css)(a.toolbar.container, "width", "auto")), i ? p.add(c) : p.delete(c), a.o.globalFullSize && (p.size === 1 && i || p.size === 0 && !i)) {
  10278. for (var y = c.parentNode; y && y.nodeType !== Node.DOCUMENT_NODE && y.nodeType !== Node.DOCUMENT_FRAGMENT_NODE; ) y.classList.toggle("jodit_fullsize-box_true", i), y = y.parentNode;
  10279. o();
  10280. }
  10281. m.fire("afterResize");
  10282. }
  10283. };
  10284. a.o.globalFullSize && a.e.on(a.ow, "resize", o), a.e.on("afterInit afterOpen", function() {
  10285. var i;
  10286. a.toggleFullSize((i = a == null ? void 0 : a.options) === null || i === void 0 ? void 0 : i.fullsize);
  10287. }).on("toggleFullSize", r).on("beforeDestruct", function() {
  10288. s && r(!1);
  10289. }).on("beforeDestruct", function() {
  10290. a.events && a.e.off(a.ow, "resize", o);
  10291. });
  10292. }
  10293. t.fullsize = d, h.pluginSystem.add("fullsize", d);
  10294. }, 16829: function(_, t, e) {
  10295. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.commandToHotkeys = { removeFormat: ["ctrl+shift+m", "cmd+shift+m"], insertOrderedList: ["ctrl+shift+7", "cmd+shift+7"], insertUnorderedList: ["ctrl+shift+8, cmd+shift+8"], selectall: ["ctrl+a", "cmd+a"] };
  10296. }, 83228: function(_, t, e) {
  10297. Object.defineProperty(t, "__esModule", { value: !0 }), t.hotkeys = void 0;
  10298. var n = e(20255), v = e(57549), h = e(40332), p = e(86893), d = e(17332);
  10299. e(16829);
  10300. var a = function(s) {
  10301. function u() {
  10302. var f = s !== null && s.apply(this, arguments) || this;
  10303. return f.onKeyPress = function(l) {
  10304. var o = f.specialKeys[l.which], r = (l.key || String.fromCharCode(l.which)).toLowerCase(), i = [o || r];
  10305. return ["alt", "ctrl", "shift", "meta"].forEach(function(c) {
  10306. l[c + "Key"] && o !== c && i.push(c);
  10307. }), (0, h.normalizeKeyAliases)(i.join("+"));
  10308. }, f.specialKeys = { 8: "backspace", 9: "tab", 10: "return", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause", 20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home", 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del", 59: ";", 61: "=", 91: "meta", 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7", 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111: "/", 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8", 120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 173: "-", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'" }, f;
  10309. }
  10310. return n.__extends(u, s), u.prototype.afterInit = function(f) {
  10311. var l = this;
  10312. (0, h.keys)(f.o.commandToHotkeys, !1).forEach(function(r) {
  10313. var i = f.o.commandToHotkeys[r];
  10314. i && ((0, h.isArray)(i) || (0, h.isString)(i)) && f.registerHotkeyToCommand(i, r);
  10315. });
  10316. var o = !1;
  10317. f.e.off(".hotkeys").on([f.ow, f.ew], "keydown.hotkeys", function(r) {
  10318. if (r.key === p.KEY_ESC) return l.j.e.fire("escape", r);
  10319. }).on("keydown.hotkeys", function(r) {
  10320. var i = l.onKeyPress(r), c = { shouldStop: !0 };
  10321. if (l.j.e.fire(i + ".hotkey", r.type, c) === !1) {
  10322. if (c.shouldStop) return o = !0, f.e.stopPropagation("keydown"), !1;
  10323. r.preventDefault();
  10324. }
  10325. }, { top: !0 }).on("keyup.hotkeys", function() {
  10326. if (o) return o = !1, f.e.stopPropagation("keyup"), !1;
  10327. }, { top: !0 });
  10328. }, u.prototype.beforeDestruct = function(f) {
  10329. f.events && f.e.off(".hotkeys");
  10330. }, u;
  10331. }(v.Plugin);
  10332. t.hotkeys = a, d.pluginSystem.add("hotkeys", a);
  10333. }, 43889: function(_, t, e) {
  10334. Object.defineProperty(t, "__esModule", { value: !0 }), t.hr = void 0;
  10335. var n = e(93166), v = e(64968), h = e(17332);
  10336. function p(d) {
  10337. d.registerButton({ name: "hr", group: "insert" }), d.registerCommand("insertHorizontalRule", function() {
  10338. var a = d.createInside.element("hr");
  10339. d.s.insertNode(a, !1, !1);
  10340. var s = v.Dom.closest(a.parentElement, v.Dom.isBlock, d.editor);
  10341. s && v.Dom.isEmpty(s) && s !== d.editor && (v.Dom.after(s, a), v.Dom.safeRemove(s));
  10342. var u = v.Dom.next(a, v.Dom.isBlock, d.editor, !1);
  10343. return u || (u = d.createInside.element(d.o.enter), v.Dom.after(a, u)), d.s.setCursorIn(u), !1;
  10344. });
  10345. }
  10346. e(77904).Icon.set("hr", e(14655)), n.Config.prototype.controls.hr = { command: "insertHorizontalRule", tags: ["hr"], tooltip: "Insert Horizontal Line" }, t.hr = p, h.pluginSystem.add("hr", p);
  10347. }, 2509: function(_, t, e) {
  10348. Object.defineProperty(t, "__esModule", { value: !0 });
  10349. var n = e(93166);
  10350. n.Config.prototype.iframeBaseUrl = "", n.Config.prototype.iframeTitle = "Jodit Editor", n.Config.prototype.iframeDoctype = "<!DOCTYPE html>", n.Config.prototype.iframeDefaultSrc = "about:blank", n.Config.prototype.iframeStyle = 'html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}', n.Config.prototype.iframeCSSLinks = [];
  10351. }, 93300: function(_, t, e) {
  10352. Object.defineProperty(t, "__esModule", { value: !0 }), t.iframe = void 0;
  10353. var n = e(40332), v = e(40332), h = e(86893), p = e(17332);
  10354. function d(a) {
  10355. var s = a.options;
  10356. a.e.on("afterSetMode", function() {
  10357. a.isEditorMode() && a.s.focus();
  10358. }).on("generateDocumentStructure.iframe", function(u, f) {
  10359. var l = u || f.iframe.contentWindow.document;
  10360. if (l.open(), l.write(s.iframeDoctype + '<html dir="'.concat(s.direction, '" class="jodit" lang="').concat((0, n.defaultLanguage)(s.language), '">') + "<head>" + "<title>".concat(s.iframeTitle, "</title>") + (s.iframeBaseUrl ? '<base href="'.concat(s.iframeBaseUrl, '"/>') : "") + '</head><body class="jodit-wysiwyg"></body></html>'), l.close(), s.iframeCSSLinks && s.iframeCSSLinks.forEach(function(r) {
  10361. var i = l.createElement("link");
  10362. i.setAttribute("rel", "stylesheet"), i.setAttribute("href", r), l.head && l.head.appendChild(i);
  10363. }), s.iframeStyle) {
  10364. var o = l.createElement("style");
  10365. o.innerHTML = s.iframeStyle, l.head && l.head.appendChild(o);
  10366. }
  10367. }).on("createEditor", function() {
  10368. if (s.iframe) {
  10369. var u = a.c.element("iframe");
  10370. u.style.display = "block", u.src = "about:blank", u.className = "jodit-wysiwyg_iframe", u.setAttribute("allowtransparency", "true"), u.setAttribute("tabindex", s.tabIndex.toString()), u.setAttribute("frameborder", "0"), a.workplace.appendChild(u), a.iframe = u;
  10371. var f = a.e.fire("generateDocumentStructure.iframe", null, a);
  10372. return (0, n.callPromise)(f, function() {
  10373. if (!a.iframe) return !1;
  10374. var l = a.iframe.contentWindow.document;
  10375. a.editorWindow = a.iframe.contentWindow;
  10376. var o = function() {
  10377. (0, n.attr)(l.body, "contenteditable", a.getMode() !== h.MODE_SOURCE && !a.getReadOnly() || null);
  10378. }, r = function(y) {
  10379. var g = /<body.*<\/body>/im, b = "{%%BODY%%}", w = g.exec(y);
  10380. return w && (y = y.replace(g, b).replace(/<span([^>]*?)>(.*?)<\/span>/gim, "").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim, "").replace(b, w[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im, "$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im, "$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g, "")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g, "$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim, "$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim, "$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim, "$1")), y;
  10381. };
  10382. if (s.editHTMLDocumentMode) {
  10383. var i = a.element.tagName;
  10384. if (i !== "TEXTAREA" && i !== "INPUT") throw (0, v.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");
  10385. a.e.on("beforeGetNativeEditorValue", function() {
  10386. return r(a.o.iframeDoctype + l.documentElement.outerHTML);
  10387. }).on("beforeSetNativeEditorValue", function(y) {
  10388. var g = y.value;
  10389. return !a.isLocked && (/<(html|body)/i.test(g) ? r(l.documentElement.outerHTML) !== r(g) && (l.open(), l.write(a.o.iframeDoctype + r(g)), l.close(), a.editor = l.body, a.e.fire("safeHTML", a.editor), o(), a.e.fire("prepareWYSIWYGEditor"), a.e.stopPropagation("beforeSetNativeEditorValue")) : l.body.innerHTML = g, !0);
  10390. }, { top: !0 });
  10391. }
  10392. if (a.editor = l.body, a.e.on("afterSetMode afterInit afterAddPlace", o), s.height === "auto") {
  10393. l.documentElement && (l.documentElement.style.overflowY = "hidden");
  10394. var c = a.async.throttle(function() {
  10395. if (a.editor && a.iframe && s.height === "auto") {
  10396. var y = a.ew.getComputedStyle(a.editor), g = parseInt(y.marginTop || "0", 10) + parseInt(y.marginBottom || "0", 10);
  10397. (0, n.css)(a.iframe, "height", a.editor.offsetHeight + g);
  10398. }
  10399. }, a.defaultTimeout / 2);
  10400. if (a.e.on("change afterInit afterSetMode resize", c).on([a.iframe, a.ew, l.documentElement], "load", c).on(l, "readystatechange DOMContentLoaded", c), typeof ResizeObserver == "function") {
  10401. var m = new ResizeObserver(c);
  10402. m.observe(l.body), a.e.on("beforeDestruct", function() {
  10403. m.unobserve(l.body);
  10404. });
  10405. }
  10406. }
  10407. return l.documentElement && a.e.on(l.documentElement, "mousedown touchend", function() {
  10408. a.s.isFocused() || (a.s.focus(), a.editor === l.body && a.s.setCursorIn(l.body));
  10409. }).on(a.ew, "mousedown touchstart keydown keyup touchend click mouseup mousemove scroll", function(y) {
  10410. var g;
  10411. (g = a.events) === null || g === void 0 || g.fire(a.ow, y);
  10412. }), !1;
  10413. });
  10414. }
  10415. });
  10416. }
  10417. e(2509), t.iframe = d, p.pluginSystem.add("iframe", d);
  10418. }, 18226: function(_, t, e) {
  10419. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.imageProcessor = { replaceDataURIToBlobIdInView: !0 };
  10420. }, 92575: function(_, t, e) {
  10421. Object.defineProperty(t, "__esModule", { value: !0 }), t.imageProcessor = void 0;
  10422. var n = e(20255), v = e(40332), h = e(57549), p = e(43441), d = e(86893), a = e(17332);
  10423. e(18226);
  10424. var s = "__jodit_imageprocessor_binded", u = "__jodit_imageprocessor_bindedblob-id", f = function(l) {
  10425. function o() {
  10426. return l !== null && l.apply(this, arguments) || this;
  10427. }
  10428. return n.__extends(o, l), o.prototype.afterInit = function(r) {
  10429. }, o.prototype.beforeDestruct = function(r) {
  10430. var i, c, m = r.buffer.get(u);
  10431. if (m) {
  10432. var y = Object.keys(m);
  10433. try {
  10434. for (var g = n.__values(y), b = g.next(); !b.done; b = g.next()) URL.revokeObjectURL(b.value);
  10435. } catch (w) {
  10436. i = { error: w };
  10437. } finally {
  10438. try {
  10439. b && !b.done && (c = g.return) && c.call(g);
  10440. } finally {
  10441. if (i) throw i.error;
  10442. }
  10443. }
  10444. r.buffer.delete(u);
  10445. }
  10446. }, o.prototype.onAfterGetValueFromEditor = function(r, i) {
  10447. if (i !== d.SOURCE_CONSUMER) return this.onBeforeSetElementValue(r);
  10448. }, o.prototype.onBeforeSetElementValue = function(r) {
  10449. var i, c, m = this.jodit;
  10450. if (m.o.imageProcessor.replaceDataURIToBlobIdInView) {
  10451. var y = m.buffer.get(u);
  10452. if (y) {
  10453. var g = Object.keys(y);
  10454. try {
  10455. for (var b = n.__values(g), w = b.next(); !w.done; w = b.next()) for (var C = w.value; r.value.includes(C); ) r.value = r.value.replace(C, y[C]);
  10456. } catch (S) {
  10457. i = { error: S };
  10458. } finally {
  10459. try {
  10460. w && !w.done && (c = b.return) && c.call(b);
  10461. } finally {
  10462. if (i) throw i.error;
  10463. }
  10464. }
  10465. }
  10466. }
  10467. }, o.prototype.afterChange = function(r) {
  10468. return n.__awaiter(this, void 0, Promise, function() {
  10469. var i;
  10470. return n.__generator(this, function(c) {
  10471. return (i = this.jodit).editor ? ((0, v.$$)("img", i.editor).forEach(function(m) {
  10472. (0, v.dataBind)(m, s) || ((0, v.dataBind)(m, s, !0), m.complete || i.e.on(m, "load", function y() {
  10473. var g;
  10474. !i.isInDestruct && ((g = i.e) === null || g === void 0 || g.fire("resize")), i.e.off(m, "load", y);
  10475. }), m.src && /^data:/.test(m.src) && function(y, g) {
  10476. if (y.o.imageProcessor.replaceDataURIToBlobIdInView && typeof ArrayBuffer != "undefined" && typeof URL != "undefined") {
  10477. var b = g.src, w = function(S) {
  10478. for (var j = atob(S.split(",")[1]), E = S.split(",")[0].split(":")[1].split(";")[0], x = new ArrayBuffer(j.length), k = new Uint8Array(x), I = 0; j.length > I; I++) k[I] = j.charCodeAt(I);
  10479. return new Blob([x], { type: E });
  10480. }(b);
  10481. g.src = URL.createObjectURL(w), y.e.fire("internalUpdate");
  10482. var C = y.buffer.get(u) || {};
  10483. C[g.src] = b, y.buffer.set(u, C);
  10484. }
  10485. }(i, m), i.e.on(m, "mousedown touchstart", function() {
  10486. i.s.select(m);
  10487. }));
  10488. }), [2]) : [2];
  10489. });
  10490. });
  10491. }, n.__decorate([(0, p.watch)(":afterGetValueFromEditor")], o.prototype, "onAfterGetValueFromEditor", null), n.__decorate([(0, p.watch)(":beforeSetElementValue")], o.prototype, "onBeforeSetElementValue", null), n.__decorate([(0, p.watch)([":change", ":afterInit", ":changePlace"]), (0, p.debounce)()], o.prototype, "afterChange", null), o;
  10492. }(h.Plugin);
  10493. t.imageProcessor = f, a.pluginSystem.add("imageProcessor", f);
  10494. }, 1601: function(_, t, e) {
  10495. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.image = { dialogWidth: 600, openOnDblClick: !0, editSrc: !0, useImageEditor: !0, editTitle: !0, editAlt: !0, editLink: !0, editSize: !0, editBorderRadius: !0, editMargins: !0, editClass: !0, availableClasses: [], editStyle: !0, editId: !0, editAlign: !0, showPreview: !0, selectImageAfterClose: !0 };
  10496. }, 15747: function(_, t, e) {
  10497. Object.defineProperty(t, "__esModule", { value: !0 }), t.imageProperties = void 0;
  10498. var n = e(20255);
  10499. e(9947);
  10500. var v = e(87837), h = e(40332), p = e(718), d = e(96516), a = e(43441), s = e(35503), u = e(17332), f = e(49391), l = e(27506), o = e(50109);
  10501. e(1601);
  10502. var r = function(m) {
  10503. return m = (0, h.trim)(m), /^[0-9]+$/.test(m) ? m + "px" : m;
  10504. }, i = function(m) {
  10505. return /^[-+]?[0-9.]+px$/.test(m.toString()) ? parseFloat(m.toString()) : m;
  10506. }, c = function(m) {
  10507. function y() {
  10508. var g = m !== null && m.apply(this, arguments) || this;
  10509. return g.state = { image: new Image(), get ratio() {
  10510. return this.image.naturalWidth / this.image.naturalHeight || 1;
  10511. }, sizeIsLocked: !0, marginIsLocked: !0 }, g.activeTabState = { __activeTab: "Image" }, g;
  10512. }
  10513. return n.__extends(y, m), y.prototype.onChangeMarginIsLocked = function() {
  10514. var g = this;
  10515. if (this.form) {
  10516. var b = (0, h.refs)(this.form), w = b.lockMargin;
  10517. [b.marginRight, b.marginBottom, b.marginLeft].forEach(function(C) {
  10518. (0, h.attr)(C, "disabled", g.state.marginIsLocked || null);
  10519. }), w.innerHTML = v.Icon.get(this.state.marginIsLocked ? "lock" : "unlock");
  10520. }
  10521. }, y.prototype.onChangeSizeIsLocked = function() {
  10522. if (this.form) {
  10523. var g = (0, h.refs)(this.form), b = g.lockSize, w = g.imageWidth;
  10524. b.innerHTML = v.Icon.get(this.state.sizeIsLocked ? "lock" : "unlock"), b.classList.remove("jodit-properties__lock"), b.classList.remove("jodit-properties__unlock"), b.classList.add(this.state.sizeIsLocked ? "jodit-properties__lock" : "jodit-properties__unlock"), this.j.e.fire(w, "change");
  10525. }
  10526. }, y.prototype.open = function() {
  10527. return this.makeForm(), this.activeTabState.__activeTab = "Image", this.j.e.fire("hidePopup"), (0, h.markOwner)(this.j, this.dialog.container), this.state.marginIsLocked = !0, this.state.sizeIsLocked = !0, this.onChangeMarginIsLocked(), this.onChangeSizeIsLocked(), this.updateValues(), this.dialog.open().setModal(!0).setPosition(), !1;
  10528. }, y.prototype.makeForm = function() {
  10529. var g = this;
  10530. if (!this.dialog) {
  10531. this.dialog = this.j.dlg({ minWidth: Math.min(400, screen.width), minHeight: 590, buttons: ["fullsize", "dialog.close"] });
  10532. var b = this.j, w = b.o, C = b.i18n.bind(b), S = { check: (0, d.Button)(b, "ok", "Apply", "primary"), remove: (0, d.Button)(b, "bin", "Delete") };
  10533. b.e.on(this.dialog, "afterClose", function() {
  10534. g.state.image.parentNode && w.image.selectImageAfterClose && b.s.select(g.state.image);
  10535. }), S.remove.onAction(function() {
  10536. b.s.removeNode(g.state.image), g.dialog.close();
  10537. });
  10538. var j = this.dialog;
  10539. j.setHeader(C("Image properties"));
  10540. var E = (0, f.form)(b);
  10541. this.form = E, j.setContent(E);
  10542. var x = (0, h.refs)(this.form).tabsBox;
  10543. x && x.appendChild((0, p.TabsWidget)(b, [{ name: "Image", content: (0, l.mainTab)(b) }, { name: "Advanced", content: (0, o.positionTab)(b) }], this.activeTabState)), S.check.onAction(this.onApply);
  10544. var k = (0, h.refs)(this.form), I = k.editImage;
  10545. b.e.on(k.changeImage, "click", this.openImagePopup), w.image.useImageEditor && b.e.on(I, "click", this.openImageEditor);
  10546. var M = (0, h.refs)(E), T = M.lockSize, O = M.lockMargin, L = M.imageWidth, N = M.imageHeight;
  10547. T && b.e.on(T, "click", function() {
  10548. g.state.sizeIsLocked = !g.state.sizeIsLocked;
  10549. }), b.e.on(O, "click", function(q) {
  10550. g.state.marginIsLocked = !g.state.marginIsLocked, q.preventDefault();
  10551. });
  10552. var H = function(q) {
  10553. if ((0, h.isNumeric)(L.value) && (0, h.isNumeric)(N.value)) {
  10554. var F = parseFloat(L.value), U = parseFloat(N.value);
  10555. q.target === L ? N.value = Math.round(F / g.state.ratio).toString() : L.value = Math.round(U * g.state.ratio).toString();
  10556. }
  10557. };
  10558. b.e.on([L, N], "change keydown mousedown paste", function(q) {
  10559. g.state.sizeIsLocked && b.async.setTimeout(H.bind(g, q), { timeout: b.defaultTimeout, label: "image-properties-changeSize" });
  10560. }), j.setFooter([S.remove, S.check]), j.setSize(this.j.o.image.dialogWidth);
  10561. }
  10562. }, y.prototype.updateValues = function() {
  10563. var g, b, w = this, C = this.j.o, S = this.state.image, j = (0, h.refs)(this.form), E = j.marginTop, x = j.marginRight, k = j.marginBottom, I = j.marginLeft, M = j.imageSrc, T = j.id, O = j.classes, L = j.align, N = j.style, H = j.imageTitle, q = j.imageAlt, F = j.borderRadius, U = j.imageLink, Y = j.imageWidth, P = j.imageHeight, D = j.imageLinkOpenInNewTab, z = j.imageViewSrc, R = j.lockSize;
  10564. j.lockMargin.checked = w.state.marginIsLocked, R.checked = w.state.sizeIsLocked, M.value = (0, h.attr)(S, "src") || "", z && (0, h.attr)(z, "src", (0, h.attr)(S, "src") || ""), function() {
  10565. H.value = (0, h.attr)(S, "title") || "", q.value = (0, h.attr)(S, "alt") || "";
  10566. var A = v.Dom.closest(S, "a", w.j.editor);
  10567. A ? (U.value = (0, h.attr)(A, "href") || "", D.checked = (0, h.attr)(A, "target") === "_blank") : (U.value = "", D.checked = !1);
  10568. }(), g = (0, h.attr)(S, "width") || (0, h.css)(S, "width", !0) || !1, b = (0, h.attr)(S, "height") || (0, h.css)(S, "height", !0) || !1, Y.value = g !== !1 ? i(g).toString() : S.offsetWidth.toString(), P.value = b !== !1 ? i(b).toString() : S.offsetHeight.toString(), w.state.sizeIsLocked = function() {
  10569. if (!(0, h.isNumeric)(Y.value) || !(0, h.isNumeric)(P.value)) return !1;
  10570. var A = parseFloat(Y.value), B = parseFloat(P.value);
  10571. return 1 > Math.abs(A - B * w.state.ratio);
  10572. }(), function() {
  10573. if (C.image.editMargins) {
  10574. var A = !0, B = !1;
  10575. [E, x, k, I].forEach(function(J) {
  10576. var W = (0, h.attr)(J, "data-ref") || "", Q = S.style.getPropertyValue((0, h.kebabCase)(W));
  10577. if (!Q) return B = !0, void (J.value = "");
  10578. /^[0-9]+(px)?$/.test(Q) && (Q = parseInt(Q, 10)), J.value = Q.toString() || "", (B && J.value || A && W !== "marginTop" && J.value !== E.value) && (A = !1);
  10579. }), w.state.marginIsLocked = A;
  10580. }
  10581. }(), O.value = ((0, h.attr)(S, "class") || "").replace(/jodit_focused_image[\s]*/, ""), T.value = (0, h.attr)(S, "id") || "", F.value = (parseInt(S.style.borderRadius || "0", 10) || "0").toString(), S.style.cssFloat && ["left", "right"].indexOf(S.style.cssFloat.toLowerCase()) !== -1 ? L.value = (0, h.css)(S, "float") : (0, h.css)(S, "display") === "block" && S.style.marginLeft === "auto" && S.style.marginRight === "auto" && (L.value = "center"), N.value = (0, h.attr)(S, "style") || "";
  10582. }, y.prototype.onApply = function() {
  10583. var g = (0, h.refs)(this.form), b = g.imageSrc, w = g.borderRadius, C = g.imageTitle, S = g.imageAlt, j = g.imageLink, E = g.imageWidth, x = g.imageHeight, k = g.marginTop, I = g.marginRight, M = g.marginBottom, T = g.marginLeft, O = g.imageLinkOpenInNewTab, L = g.align, N = g.classes, H = g.id, q = this.j.o, F = this.state.image;
  10584. if (q.image.editStyle && (0, h.attr)(F, "style", g.style.value || null), !b.value) return v.Dom.safeRemove(F), void this.dialog.close();
  10585. (0, h.attr)(F, "src", b.value), F.style.borderRadius = w.value !== "0" && /^[0-9]+$/.test(w.value) ? w.value + "px" : "", (0, h.attr)(F, "title", C.value || null), (0, h.attr)(F, "alt", S.value || null);
  10586. var U = v.Dom.closest(F, "a", this.j.editor);
  10587. if (j.value ? (U || (U = v.Dom.wrap(F, "a", this.j.createInside)), (0, h.attr)(U, "href", j.value), (0, h.attr)(U, "target", O.checked ? "_blank" : null)) : U && U.parentNode && U.parentNode.replaceChild(F, U), E.value !== F.offsetWidth.toString() || x.value !== F.offsetHeight.toString()) {
  10588. var Y = (0, h.trim)(E.value) ? r(E.value) : null, P = (0, h.trim)(x.value) ? r(x.value) : null;
  10589. (0, h.css)(F, { width: Y, height: P }), (0, h.attr)(F, "width", (0, h.attr)(F, "width") ? Y : null), (0, h.attr)(F, "height", (0, h.attr)(F, "height") ? P : null);
  10590. }
  10591. var D = [k, I, M, T];
  10592. q.image.editMargins && (this.state.marginIsLocked ? (0, h.css)(F, "margin", r(k.value)) : D.forEach(function(z) {
  10593. var R = (0, h.attr)(z, "data-ref") || "";
  10594. (0, h.css)(F, R, r(z.value));
  10595. })), q.image.editClass && (0, h.attr)(F, "class", N.value || null), q.image.editId && (0, h.attr)(F, "id", H.value || null), q.image.editAlign && (0, h.hAlignElement)(F, L.value), this.j.synchronizeValues(), this.dialog.close();
  10596. }, y.prototype.openImageEditor = function() {
  10597. var g = this, b = (0, h.attr)(this.state.image, "src") || "", w = this.j.c.element("a"), C = function() {
  10598. w.host === location.host || g.j.confirm("You can only edit your own images. Download this image on the host?", function(S) {
  10599. S && g.j.uploader && g.j.uploader.uploadRemoteImage(w.href.toString(), function(j) {
  10600. g.j.alert("The image has been successfully uploaded to the host!", function() {
  10601. (0, h.isString)(j.newfilename) && ((0, h.attr)(g.state.image, "src", j.baseurl + j.newfilename), g.updateValues());
  10602. });
  10603. }, function(j) {
  10604. g.j.alert("There was an error loading %s", j.message);
  10605. });
  10606. });
  10607. };
  10608. w.href = b, this.j.filebrowser.dataProvider.getPathByUrl(w.href.toString()).then(function(S) {
  10609. s.openImageEditor.call(g.j.filebrowser, w.href, S.name, S.path, S.source, function() {
  10610. var j = (/* @__PURE__ */ new Date()).getTime();
  10611. (0, h.attr)(g.state.image, "src", b + (b.indexOf("?") !== -1 ? "" : "?") + "&_tmp=" + j.toString()), g.updateValues();
  10612. }, function(j) {
  10613. g.j.alert(j.message);
  10614. });
  10615. }).catch(function(S) {
  10616. g.j.alert(S.message, C);
  10617. });
  10618. }, y.prototype.openImagePopup = function(g) {
  10619. var b = this, w = new v.Popup(this.j), C = (0, h.refs)(this.form).changeImage;
  10620. w.setZIndex(this.dialog.getZIndex() + 1), w.setContent((0, p.FileSelectorWidget)(this.j, { upload: function(S) {
  10621. S.files && S.files.length && (0, h.attr)(b.state.image, "src", S.baseurl + S.files[0]), b.updateValues(), w.close();
  10622. }, filebrowser: function(S) {
  10623. S && (0, h.isArray)(S.files) && S.files.length && ((0, h.attr)(b.state.image, "src", S.files[0]), w.close(), b.updateValues());
  10624. } }, this.state.image, w.close)).open(function() {
  10625. return (0, h.position)(C);
  10626. }), g.stopPropagation();
  10627. }, y.prototype.afterInit = function(g) {
  10628. var b = this, w = this;
  10629. g.e.on("afterConstructor changePlace", function() {
  10630. g.e.off(g.editor, ".imageproperties").on(g.editor, "dblclick.imageproperties", function(C) {
  10631. var S = C.target;
  10632. if (v.Dom.isTag(S, "img")) if (g.o.image.openOnDblClick) {
  10633. if (b.j.e.fire("openOnDblClick", S) === !1) return;
  10634. w.state.image = S, g.o.readonly || (C.stopImmediatePropagation(), C.preventDefault(), w.open());
  10635. } else C.stopImmediatePropagation(), g.s.select(S);
  10636. });
  10637. }).on("openImageProperties.imageproperties", function(C) {
  10638. b.state.image = C, b.open();
  10639. });
  10640. }, y.prototype.beforeDestruct = function(g) {
  10641. this.dialog && this.dialog.destruct(), g.e.off(g.editor, ".imageproperties").off(".imageproperties");
  10642. }, n.__decorate([(0, a.watch)("state.marginIsLocked")], y.prototype, "onChangeMarginIsLocked", null), n.__decorate([(0, a.watch)("state.sizeIsLocked")], y.prototype, "onChangeSizeIsLocked", null), n.__decorate([a.autobind], y.prototype, "onApply", null), n.__decorate([a.autobind], y.prototype, "openImageEditor", null), n.__decorate([a.autobind], y.prototype, "openImagePopup", null), y;
  10643. }(v.Plugin);
  10644. t.imageProperties = c, u.pluginSystem.add("imageProperties", c);
  10645. }, 49391: function(_, t, e) {
  10646. Object.defineProperty(t, "__esModule", { value: !0 }), t.form = void 0;
  10647. var n = e(77904);
  10648. t.form = function(v) {
  10649. var h = v.o.image, p = h.showPreview, d = h.editSize, a = n.Icon.get.bind(n.Icon);
  10650. return v.c.fromHTML(`<form class="jodit-properties">
  10651. <div class="jodit-grid jodit-grid_xs-column">
  10652. <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
  10653. <div class="jodit-properties_view_box">
  10654. <div style="`.concat(p ? "" : "display:none", `" class="jodit-properties_image_view">
  10655. <img data-ref="imageViewSrc" src="" alt=""/>
  10656. </div>
  10657. <div style="`).concat(d ? "" : "display:none", `" class="jodit-form__group jodit-properties_image_sizes">
  10658. <input data-ref="imageWidth" type="text" class="jodit-input"/>
  10659. <a data-ref="lockSize" class="jodit-properties__lock">`).concat(a("lock"), `</a>
  10660. <input data-ref="imageHeight" type="text" class="imageHeight jodit-input"/>
  10661. </div>
  10662. </div>
  10663. </div>
  10664. <div data-ref="tabsBox" class="jodit_col-lg-3-5 jodit_col-xs-5-5"></div>
  10665. </div>
  10666. </form>`));
  10667. };
  10668. }, 27506: function(_, t, e) {
  10669. Object.defineProperty(t, "__esModule", { value: !0 }), t.mainTab = void 0;
  10670. var n = e(77904);
  10671. t.mainTab = function(v) {
  10672. var h = v.o, p = v.i18n.bind(v), d = n.Icon.get.bind(n.Icon), a = h.filebrowser.ajax.url || h.uploader.url, s = h.image.useImageEditor;
  10673. return v.c.fromHTML('<div style="'.concat(h.image.editSrc ? "" : "display:none", `" class="jodit-form__group">
  10674. <label>`).concat(p("Src"), `</label>
  10675. <div class="jodit-input_group">
  10676. <input data-ref="imageSrc" class="jodit-input" type="text"/>
  10677. <div
  10678. class="jodit-input_group-buttons"
  10679. style="`).concat(a ? "" : "display: none", `"
  10680. >
  10681. <a
  10682. data-ref="changeImage"
  10683. class="jodit-button"
  10684. >`).concat(d("image"), `</a>
  10685. <a
  10686. data-ref="editImage"
  10687. class="jodit-button"
  10688. style="`).concat(s ? "" : "display: none", `"
  10689. >`).concat(d("crop"), `</a>
  10690. </div>
  10691. </div>
  10692. </div>
  10693. <div style="`).concat(h.image.editTitle ? "" : "display:none", `" class="jodit-form__group">
  10694. <label>`).concat(p("Title"), `</label>
  10695. <input data-ref="imageTitle" type="text" class="jodit-input"/>
  10696. </div>
  10697. <div style="`).concat(h.image.editAlt ? "" : "display:none", `" class="jodit-form__group">
  10698. <label>`).concat(p("Alternative"), `</label>
  10699. <input data-ref="imageAlt" type="text" class="jodit-input"/>
  10700. </div>
  10701. <div style="`).concat(h.image.editLink ? "" : "display:none", `" class="jodit-form__group">
  10702. <label>`).concat(p("Link"), `</label>
  10703. <input data-ref="imageLink" type="text" class="jodit-input"/>
  10704. </div>
  10705. <div style="`).concat(h.image.editLink ? "" : "display:none", `" class="jodit-form__group">
  10706. <label class="jodit_vertical_middle">
  10707. <input data-ref="imageLinkOpenInNewTab" type="checkbox" class="jodit-checkbox"/>
  10708. <span>`).concat(p("Open link in new tab"), `</span>
  10709. </label>
  10710. </div>`));
  10711. };
  10712. }, 50109: function(_, t, e) {
  10713. Object.defineProperty(t, "__esModule", { value: !0 }), t.positionTab = void 0;
  10714. var n = e(77904);
  10715. t.positionTab = function(v) {
  10716. var h = v.o, p = v.i18n.bind(v), d = n.Icon.get.bind(n.Icon), a = [];
  10717. return h.image.availableClasses.length > 0 ? (a.push('<select data-ref="classes" class="jodit-input jodit-select">'), h.image.availableClasses.forEach(function(s) {
  10718. a.push(typeof s == "string" ? '<option value="'.concat(s, '">').concat(s, "</option>") : '<option value="'.concat(s[0], '">').concat(s[1], "</option>"));
  10719. }), a.push("</select>")) : a.push('<input data-ref="classes" type="text" class="jodit-input"/>'), v.c.fromHTML('<div style="'.concat(h.image.editMargins ? "" : "display:none", `" class="jodit-form__group">
  10720. <label>`).concat(p("Margins"), `</label>
  10721. <div class="jodit-grid jodit_vertical_middle">
  10722. <input class="jodit_col-lg-1-5 jodit-input" data-ref="marginTop" type="text" placeholder="`).concat(p("top"), `"/>
  10723. <a style="text-align: center;" data-ref="lockMargin" class="jodit-properties__lock jodit_col-lg-1-5">`).concat(d("lock"), `</a>
  10724. <input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginRight" type="text" placeholder="`).concat(p("right"), `"/>
  10725. <input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginBottom" type="text" placeholder="`).concat(p("bottom"), `"/>
  10726. <input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginLeft" type="text" placeholder="`).concat(p("left"), `"/>
  10727. </div>
  10728. </div>
  10729. <div
  10730. style="`).concat(h.image.editAlign ? "" : "display:none", `"
  10731. class="jodit-form__group"
  10732. >
  10733. <label>`).concat(p("Align"), `</label>
  10734. <select data-ref="align" class="jodit-select">
  10735. <option value="">`).concat(p("--Not Set--"), `</option>
  10736. <option value="left">`).concat(p("Left"), `</option>
  10737. <option value="center">`).concat(p("Center"), `</option>
  10738. <option value="right">`).concat(p("Right"), `</option>
  10739. </select>
  10740. </div>
  10741. <div style="`).concat(h.image.editStyle ? "" : "display:none", `" class="jodit-form__group">
  10742. <label>`).concat(p("Styles"), `</label>
  10743. <input data-ref="style" type="text" class="jodit-input"/>
  10744. </div>
  10745. <div style="`).concat(h.image.editClass ? "" : "display:none", `" class="jodit-form__group">
  10746. <label>`).concat(p("Classes"), `</label>
  10747. `).concat(a.join(""), `
  10748. </div>
  10749. <div style="`).concat(h.image.editId ? "" : "display:none", `" class="jodit-form__group">
  10750. <label>Id</label>
  10751. <input data-ref="id" type="text" class="jodit-input"/>
  10752. </div>
  10753. <div
  10754. style="`).concat(h.image.editBorderRadius ? "" : "display:none", `"
  10755. class="jodit-form__group"
  10756. >
  10757. <label>`).concat(p("Border radius"), `</label>
  10758. <input data-ref="borderRadius" type="number" class="jodit-input"/>
  10759. </div>`));
  10760. };
  10761. }, 67547: function(_, t, e) {
  10762. Object.defineProperty(t, "__esModule", { value: !0 }), t.image = void 0;
  10763. var n = e(20255), v = e(64968), h = e(40332), p = e(718), d = e(93166), a = e(17332);
  10764. function s(u) {
  10765. u.registerButton({ name: "image", group: "media" });
  10766. }
  10767. e(77904).Icon.set("image", e(53477)), d.Config.prototype.controls.image = { popup: function(u, f, l, o) {
  10768. var r = null;
  10769. return f && !v.Dom.isText(f) && v.Dom.isHTMLElement(f) && (v.Dom.isTag(f, "img") || (0, h.$$)("img", f).length) && (r = v.Dom.isTag(f, "img") ? f : (0, h.$$)("img", f)[0]), u.s.save(), (0, p.FileSelectorWidget)(u, { filebrowser: function(i) {
  10770. u.s.restore(), i.files && i.files.forEach(function(c) {
  10771. return u.s.insertImage(i.baseurl + c, null, u.o.imageDefaultWidth);
  10772. }), o();
  10773. }, upload: !0, url: function(i, c) {
  10774. return n.__awaiter(void 0, void 0, void 0, function() {
  10775. var m;
  10776. return n.__generator(this, function(y) {
  10777. switch (y.label) {
  10778. case 0:
  10779. return u.s.restore(), /^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(i) && (i = "//" + i), (m = r || u.createInside.element("img")).setAttribute("src", i), m.setAttribute("alt", c), r ? [3, 2] : [4, u.s.insertImage(m, null, u.o.imageDefaultWidth)];
  10780. case 1:
  10781. y.sent(), y.label = 2;
  10782. case 2:
  10783. return o(), [2];
  10784. }
  10785. });
  10786. });
  10787. } }, r, o);
  10788. }, tags: ["img"], tooltip: "Insert Image" }, t.image = s, a.pluginSystem.add("image", s);
  10789. }, 2916: function(_, t, e) {
  10790. Object.defineProperty(t, "__esModule", { value: !0 });
  10791. var n = e(93166), v = e(64968), h = e(77904), p = e(26011);
  10792. h.Icon.set("indent", e(90053)).set("outdent", e(72230)), n.Config.prototype.controls.indent = { tooltip: "Increase Indent" }, n.Config.prototype.controls.outdent = { isDisabled: function(d) {
  10793. var a = d.s.current();
  10794. if (a) {
  10795. var s = v.Dom.closest(a, v.Dom.isBlock, d.editor);
  10796. if (s) {
  10797. var u = (0, p.getKey)(d.o.direction, s);
  10798. return !s.style[u] || 0 >= parseInt(s.style[u], 10);
  10799. }
  10800. }
  10801. return !0;
  10802. }, tooltip: "Decrease Indent" }, n.Config.prototype.indentMargin = 10;
  10803. }, 26011: function(_, t, e) {
  10804. Object.defineProperty(t, "__esModule", { value: !0 }), t.getKey = void 0;
  10805. var n = e(24263);
  10806. t.getKey = function(v, h) {
  10807. return "".concat(n.Dom.isCell(h) ? "padding" : "margin").concat(v === "rtl" ? "Right" : "Left");
  10808. };
  10809. }, 71838: function(_, t, e) {
  10810. Object.defineProperty(t, "__esModule", { value: !0 }), t.indent = void 0;
  10811. var n = e(86893), v = e(64968), h = e(40332), p = e(17332);
  10812. e(2916);
  10813. var d = e(26011);
  10814. function a(s) {
  10815. s.registerButton({ name: "indent", group: "indent" }).registerButton({ name: "outdent", group: "indent" });
  10816. var u = function(f) {
  10817. var l = [];
  10818. return s.s.eachSelection(function(o) {
  10819. s.s.save();
  10820. var r = !!o && v.Dom.up(o, v.Dom.isBlock, s.editor), i = s.o.enter;
  10821. if (!r && o && (r = v.Dom.wrapInline(o, i !== n.BR ? i : n.PARAGRAPH, s)), !r) return s.s.restore(), !1;
  10822. var c = l.includes(r);
  10823. if (r && !c) {
  10824. var m = (0, d.getKey)(s.o.direction, r);
  10825. l.push(r);
  10826. var y = r.style[m] ? parseInt(r.style[m], 10) : 0;
  10827. r.style[m] = (y += s.o.indentMargin * (f === "outdent" ? -1 : 1)) > 0 ? y + "px" : "", (0, h.attr)(r, "style") || (0, h.attr)(r, "style", null);
  10828. }
  10829. s.s.restore();
  10830. }), s.synchronizeValues(), !1;
  10831. };
  10832. s.registerCommand("indent", { exec: u, hotkeys: ["ctrl+]", "cmd+]"] }), s.registerCommand("outdent", { exec: u, hotkeys: ["ctrl+[", "cmd+["] });
  10833. }
  10834. t.indent = a, p.pluginSystem.add("indent", a);
  10835. }, 70022: function(_, t, e) {
  10836. Object.defineProperty(t, "__esModule", { value: !0 }), e(55692), e(66031), e(91241), e(87565), e(60894), e(90302), e(92138), e(88412), e(79308), e(19268), e(30598), e(33122), e(10135), e(66994), e(54798), e(12908), e(65123), e(83228), e(43889), e(93300), e(67547), e(92575), e(15747), e(71838), e(54752), e(54452), e(46324), e(27738), e(61421), e(27582), e(76303), e(19806), e(52598), e(19483), e(15428), e(47224), e(83211), e(88297), e(72930), e(51197), e(2327), e(47608), e(90523), e(69257), e(14889), e(95323), e(37458), e(71003), e(86030), e(17002), e(1557), e(82808), e(48560), e(32246), e(45842), e(23308), e(19889), e(20728), e(96899), e(18238);
  10837. }, 35387: function(_, t, e) {
  10838. Object.defineProperty(t, "__esModule", { value: !0 });
  10839. var n = e(93166), v = e(77904);
  10840. n.Config.prototype.toolbarInline = !0, n.Config.prototype.toolbarInlineForSelection = !1, n.Config.prototype.toolbarInlineDisableFor = [], n.Config.prototype.toolbarInlineDisabledButtons = ["source"], v.Icon.set("addcolumn", e(78321)).set("addrow", e(77654)).set("merge", e(43371)).set("th", e(52242)).set("splitg", e(44563)).set("splitv", e(53183)).set("th-list", e(18548)), n.Config.prototype.popup = { a: e(27487).Z, img: e(97425).default, cells: e(59500).Z, toolbar: e(55350).Z, jodit: e(66686).Z, iframe: e(66686).Z, "jodit-media": e(66686).Z, selection: ["bold", "underline", "italic", "ul", "ol", `
  10841. `, "outdent", "indent", "fontsize", "brush", "cut", `
  10842. `, "paragraph", "link", "align", "dots"] };
  10843. }, 27487: function(_, t, e) {
  10844. var n = e(76502);
  10845. t.Z = [{ name: "eye", tooltip: "Open link", exec: function(v, h) {
  10846. var p = (0, n.attr)(h, "href");
  10847. h && p && v.ow.open(p);
  10848. } }, { name: "link", tooltip: "Edit link", icon: "pencil" }, "unlink", "brush", "file"];
  10849. }, 59500: function(_, t, e) {
  10850. var n = e(10172), v = e(26911), h = e(718), p = function(d) {
  10851. return d.args && (0, n.isString)(d.args[0]) ? d.args[0].toLowerCase() : "";
  10852. };
  10853. t.Z = [{ name: "brush", popup: function(d, a, s, u) {
  10854. if ((0, n.isJoditObject)(d)) {
  10855. var f = d.getInstance("Table", d.o).getAllSelectedCells();
  10856. if (!f.length) return !1;
  10857. var l = function(o) {
  10858. return (0, h.ColorPickerWidget)(d, function(r) {
  10859. f.forEach(function(i) {
  10860. (0, v.css)(i, o, r);
  10861. }), d.lock(), d.synchronizeValues(), u(), d.unlock();
  10862. }, (0, v.css)(f[0], o));
  10863. };
  10864. return (0, h.TabsWidget)(d, [{ name: "Background", content: l("background-color") }, { name: "Text", content: l("color") }, { name: "Border", content: l("border-color") }]);
  10865. }
  10866. }, tooltip: "Background" }, { name: "valign", list: ["Top", "Middle", "Bottom", "Normal"], childTemplate: function(d, a, s) {
  10867. return s;
  10868. }, exec: function(d, a, s) {
  10869. var u = p(s.control);
  10870. d.getInstance("Table", d.o).getAllSelectedCells().forEach(function(f) {
  10871. (0, v.css)(f, "vertical-align", u === "normal" ? "" : u);
  10872. });
  10873. }, tooltip: "Vertical align" }, { name: "splitv", list: { tablesplitv: "Split vertical", tablesplitg: "Split horizontal" }, tooltip: "Split" }, { name: "align", icon: "left" }, `
  10874. `, { name: "merge", command: "tablemerge", tooltip: "Merge" }, { name: "addcolumn", list: { tableaddcolumnbefore: "Insert column before", tableaddcolumnafter: "Insert column after" }, exec: function(d, a, s) {
  10875. var u = s.control;
  10876. if ((0, n.isJoditObject)(d)) {
  10877. var f = p(u);
  10878. d.execCommand(f, !1, a);
  10879. }
  10880. }, tooltip: "Add column" }, { name: "addrow", list: { tableaddrowbefore: "Insert row above", tableaddrowafter: "Insert row below" }, exec: function(d, a, s) {
  10881. var u = s.control;
  10882. if ((0, n.isJoditObject)(d)) {
  10883. var f = p(u);
  10884. d.execCommand(f, !1, a);
  10885. }
  10886. }, tooltip: "Add row" }, { name: "delete", icon: "bin", list: { tablebin: "Delete table", tablebinrow: "Delete row", tablebincolumn: "Delete column", tableempty: "Empty cell" }, exec: function(d, a, s) {
  10887. var u = s.control;
  10888. if ((0, n.isJoditObject)(d)) {
  10889. var f = p(u);
  10890. d.execCommand(f, !1, a), d.e.fire("hidePopup");
  10891. }
  10892. }, tooltip: "Delete" }];
  10893. }, 66686: function(_, t, e) {
  10894. var n = e(97425);
  10895. t.Z = [{ name: "bin", tooltip: "Delete", exec: function(v, h) {
  10896. h && v.s.removeNode(h);
  10897. } }, n.align];
  10898. }, 97425: function(_, t, e) {
  10899. Object.defineProperty(t, "__esModule", { value: !0 }), t.align = void 0;
  10900. var n = e(64968), v = e(24421), h = e(26911), p = e(60303);
  10901. t.align = { name: "left", childTemplate: function(d, a, s) {
  10902. return s;
  10903. }, list: ["Left", "Right", "Center", "Normal"], exec: function(d, a, s) {
  10904. var u = s.control;
  10905. if (n.Dom.isTag(a, ["img", "jodit", "jodit-media"])) {
  10906. var f = u.args && (0, v.isString)(u.args[0]) ? u.args[0].toLowerCase() : "";
  10907. if (!f) return !1;
  10908. (0, p.hAlignElement)(a, f), n.Dom.isTag(a, ["jodit", "jodit-media"]) && a.firstElementChild && (0, p.hAlignElement)(a.firstElementChild, f), d.synchronizeValues(), d.e.fire("recalcPositionPopup");
  10909. }
  10910. }, tooltip: "Horizontal align" }, t.default = [{ name: "delete", icon: "bin", tooltip: "Delete", exec: function(d, a) {
  10911. a && d.s.removeNode(a);
  10912. } }, { name: "pencil", exec: function(d, a) {
  10913. a.tagName.toLowerCase() === "img" && d.e.fire("openImageProperties", a);
  10914. }, tooltip: "Edit" }, { name: "valign", list: ["Top", "Middle", "Bottom", "Normal"], tooltip: "Vertical align", exec: function(d, a, s) {
  10915. var u = s.control;
  10916. if (n.Dom.isTag(a, "img")) {
  10917. var f = u.args && (0, v.isString)(u.args[0]) ? u.args[0].toLowerCase() : "";
  10918. if (!f) return !1;
  10919. (0, h.css)(a, "vertical-align", f === "normal" ? "" : f), d.e.fire("recalcPositionPopup");
  10920. }
  10921. } }, t.align];
  10922. }, 55350: function(_, t) {
  10923. t.Z = ["bold", "italic", "|", "ul", "ol", "eraser", "|", "fontsize", "brush", "paragraph", "---", "image", "table", `
  10924. `, "link", "|", "align", "|", "undo", "redo", "|", "copyformat", "fullsize", "---", "dots"];
  10925. }, 54752: function(_, t, e) {
  10926. Object.defineProperty(t, "__esModule", { value: !0 }), t.inlinePopup = void 0;
  10927. var n = e(20255);
  10928. e(45109);
  10929. var v = e(57549), h = e(81438), p = e(35799), d = e(40332), a = e(64968), s = e(2074), u = e(43441), f = e(17332);
  10930. e(35387);
  10931. var l = function(o) {
  10932. function r() {
  10933. var i = o !== null && o.apply(this, arguments) || this;
  10934. return i.requires = ["select"], i.type = null, i.popup = new p.Popup(i.jodit, !1), i.toolbar = (0, h.makeCollection)(i.jodit, i.popup), i.snapRange = null, i.elmsList = (0, d.keys)(i.j.o.popup, !1).filter(function(c) {
  10935. return !i.isExcludedTarget(c);
  10936. }), i;
  10937. }
  10938. return n.__extends(r, o), r.prototype.onClick = function(i) {
  10939. var c = this, m = this.elmsList, y = a.Dom.isTag(i, "img") ? i : a.Dom.closest(i, m, this.j.editor);
  10940. if (y && this.canShowPopupForType(y.nodeName.toLowerCase())) return this.showPopup(function() {
  10941. return (0, d.position)(y, c.j);
  10942. }, y.nodeName.toLowerCase(), y), !1;
  10943. }, r.prototype.showPopup = function(i, c, m) {
  10944. if (c = c.toLowerCase(), !this.canShowPopupForType(c)) return !1;
  10945. if (this.type !== c || m !== this.previousTarget) {
  10946. this.previousTarget = m;
  10947. var y = this.j.o.popup[c], g = void 0;
  10948. g = (0, d.isFunction)(y) ? y(this.j, m, this.popup.close) : y, (0, d.isArray)(g) && (this.toolbar.build(g, m), this.toolbar.buttonSize = this.j.o.toolbarButtonSize, g = this.toolbar.container), this.popup.setContent(g), this.type = c;
  10949. }
  10950. return this.popup.open(i), !0;
  10951. }, r.prototype.hidePopup = function(i) {
  10952. (0, d.isString)(i) && i !== this.type || this.popup.close();
  10953. }, r.prototype.onOutsideClick = function() {
  10954. this.popup.close();
  10955. }, r.prototype.canShowPopupForType = function(i) {
  10956. var c = this.j.o.popup[i.toLowerCase()];
  10957. return !(this.j.o.readonly || !this.j.o.toolbarInline || !c || this.isExcludedTarget(i));
  10958. }, r.prototype.isExcludedTarget = function(i) {
  10959. return (0, d.splitArray)(this.j.o.toolbarInlineDisableFor).map(function(c) {
  10960. return c.toLowerCase();
  10961. }).includes(i.toLowerCase());
  10962. }, r.prototype.afterInit = function(i) {
  10963. var c = this;
  10964. this.j.e.on("getDiffButtons.mobile", function(m) {
  10965. if (c.toolbar === m) {
  10966. var y = c.toolbar.getButtonsNames();
  10967. return (0, d.toArray)(i.registeredButtons).filter(function(g) {
  10968. return !c.j.o.toolbarInlineDisabledButtons.includes(g.name);
  10969. }).filter(function(g) {
  10970. var b = (0, d.isString)(g) ? g : g.name;
  10971. return b && b !== "|" && b !== `
  10972. ` && !y.includes(b);
  10973. });
  10974. }
  10975. }).on("hidePopup", this.hidePopup).on("showInlineToolbar", this.showInlineToolbar).on("showPopup", function(m, y, g) {
  10976. c.showPopup(y, g || ((0, d.isString)(m) ? m : m.nodeName), (0, d.isString)(m) ? void 0 : m);
  10977. }).on("mousedown keydown", this.onSelectionStart).on("change", function() {
  10978. c.popup.isOpened && c.previousTarget && !c.previousTarget.parentNode && (c.hidePopup(), c.previousTarget = void 0);
  10979. }).on([this.j.ew, this.j.ow], "mouseup keyup", this.onSelectionEnd), this.addListenersForElements();
  10980. }, r.prototype.onSelectionStart = function() {
  10981. this.snapRange = this.j.s.range.cloneRange();
  10982. }, r.prototype.onSelectionEnd = function(i) {
  10983. if (!(i && i.target && s.UIElement.closestElement(i.target, p.Popup))) {
  10984. var c = this.snapRange, m = this.j.s.range;
  10985. c && !m.collapsed && m.startContainer === c.startContainer && m.startOffset === c.startOffset && m.endContainer === c.endContainer && m.endOffset === c.endOffset || this.onSelectionChange();
  10986. }
  10987. }, r.prototype.onSelectionChange = function() {
  10988. if (this.j.o.toolbarInlineForSelection) {
  10989. var i = "selection", c = this.j.s.sel, m = this.j.s.range;
  10990. c != null && c.isCollapsed || this.isSelectedTarget(m) || this.tableModule.getAllSelectedCells().length ? this.type === i && this.popup.isOpened && this.hidePopup() : this.j.s.current() && this.showPopup(function() {
  10991. return m.getBoundingClientRect();
  10992. }, i);
  10993. }
  10994. }, r.prototype.isSelectedTarget = function(i) {
  10995. var c = i.startContainer;
  10996. return a.Dom.isElement(c) && c === i.endContainer && a.Dom.isTag(c.childNodes[i.startOffset], (0, d.keys)(this.j.o.popup, !1)) && i.startOffset === i.endOffset - 1;
  10997. }, Object.defineProperty(r.prototype, "tableModule", { get: function() {
  10998. return this.j.getInstance("Table", this.j.o);
  10999. }, enumerable: !1, configurable: !0 }), r.prototype.beforeDestruct = function(i) {
  11000. i.e.off("showPopup").off([this.j.ew, this.j.ow], "mouseup keyup", this.onSelectionEnd), this.removeListenersForElements();
  11001. }, r.prototype._eventsList = function() {
  11002. var i = this.elmsList;
  11003. return i.map(function(c) {
  11004. return (0, d.camelCase)("click_".concat(c));
  11005. }).concat(i.map(function(c) {
  11006. return (0, d.camelCase)("touchstart_".concat(c));
  11007. })).join(" ");
  11008. }, r.prototype.addListenersForElements = function() {
  11009. this.j.e.on(this._eventsList(), this.onClick);
  11010. }, r.prototype.removeListenersForElements = function() {
  11011. this.j.e.off(this._eventsList(), this.onClick);
  11012. }, r.prototype.showInlineToolbar = function(i) {
  11013. var c = this;
  11014. this.showPopup(function() {
  11015. return i || c.j.s.range.getBoundingClientRect();
  11016. }, "toolbar");
  11017. }, n.__decorate([u.autobind], r.prototype, "onClick", null), n.__decorate([(0, u.wait)(function(i) {
  11018. return !i.j.isLocked;
  11019. })], r.prototype, "showPopup", null), n.__decorate([(0, u.watch)(":clickEditor"), u.autobind], r.prototype, "hidePopup", null), n.__decorate([(0, u.watch)(":outsideClick")], r.prototype, "onOutsideClick", null), n.__decorate([u.autobind], r.prototype, "onSelectionStart", null), n.__decorate([u.autobind], r.prototype, "onSelectionEnd", null), n.__decorate([(0, u.debounce)(function(i) {
  11020. return i.defaultTimeout;
  11021. })], r.prototype, "onSelectionChange", null), n.__decorate([u.autobind], r.prototype, "showInlineToolbar", null), r;
  11022. }(v.Plugin);
  11023. t.inlinePopup = l, f.pluginSystem.add("inlinePopup", l);
  11024. }, 54452: function(_, t, e) {
  11025. Object.defineProperty(t, "__esModule", { value: !0 }), t.justify = void 0;
  11026. var n = e(93166), v = e(24263), h = e(26911), p = e(60303), d = e(17332);
  11027. function a(s) {
  11028. s.registerButton({ name: "align", group: "indent" });
  11029. var u = function(f) {
  11030. return s.s.focus(), s.s.eachSelection(function(l) {
  11031. if (l) {
  11032. var o = v.Dom.up(l, v.Dom.isBlock, s.editor);
  11033. o || (o = v.Dom.wrapInline(l, s.o.enterBlock, s)), (0, p.alignElement)(f, o);
  11034. }
  11035. }), !1;
  11036. };
  11037. s.registerCommand("justifyfull", u), s.registerCommand("justifyright", u), s.registerCommand("justifyleft", u), s.registerCommand("justifycenter", u);
  11038. }
  11039. e(77904).Icon.set("justify", e(87498)), n.Config.prototype.controls.align = { name: "left", tooltip: "Align", update: function(s, u) {
  11040. var f = s.control, l = u.s.current();
  11041. if (l) {
  11042. var o = v.Dom.closest(l, v.Dom.isBlock, u.editor) || u.editor, r = (0, h.css)(o, "text-align").toString();
  11043. f.defaultValue && f.defaultValue.indexOf(r) !== -1 && (r = "left"), f.data && f.data.currentValue !== r && f.list && f.list.indexOf(r) !== -1 && (u.o.textIcons ? s.state.text = r : s.state.icon.name = r, f.data.currentValue = r);
  11044. }
  11045. }, isActive: function(s, u) {
  11046. var f = s.s.current();
  11047. if (f && u.defaultValue) {
  11048. var l = v.Dom.closest(f, v.Dom.isBlock, s.editor) || s.editor;
  11049. return u.defaultValue.indexOf((0, h.css)(l, "text-align").toString()) === -1;
  11050. }
  11051. return !1;
  11052. }, defaultValue: ["left", "start", "inherit"], data: { currentValue: "left" }, list: ["center", "left", "right", "justify"] }, n.Config.prototype.controls.center = { command: "justifyCenter", css: { "text-align": "center" }, tooltip: "Align Center" }, n.Config.prototype.controls.justify = { command: "justifyFull", css: { "text-align": "justify" }, tooltip: "Align Justify" }, n.Config.prototype.controls.left = { command: "justifyLeft", css: { "text-align": "left" }, tooltip: "Align Left" }, n.Config.prototype.controls.right = { command: "justifyRight", css: { "text-align": "right" }, tooltip: "Align Right" }, t.justify = a, d.pluginSystem.add("justify", a);
  11053. }, 46324: function(_, t, e) {
  11054. Object.defineProperty(t, "__esModule", { value: !0 }), t.keyArrowOutside = void 0;
  11055. var n = e(20255), v = e(57549), h = e(43441), p = e(86893), d = e(24263), a = e(17332), s = function(u) {
  11056. function f() {
  11057. return u !== null && u.apply(this, arguments) || this;
  11058. }
  11059. return n.__extends(f, u), f.prototype.afterInit = function(l) {
  11060. }, f.prototype.beforeDestruct = function(l) {
  11061. }, f.prototype.onKeyDownArrow = function(l) {
  11062. var o;
  11063. if (l.key === p.KEY_RIGHT && this.j.selection.isCollapsed()) {
  11064. var r = this.j.selection.range, i = r.endContainer, c = r.endOffset;
  11065. if (d.Dom.isText(i) && ((o = i.nodeValue) === null || o === void 0 ? void 0 : o.length) === c) {
  11066. var m = i.parentNode;
  11067. d.Dom.isInlineBlock(m) && !d.Dom.findNotEmptyNeighbor(m, !1, this.j.editor) && d.Dom.after(m, this.j.createInside.text(p.NBSP_SPACE));
  11068. }
  11069. }
  11070. }, n.__decorate([(0, h.watch)(":keydown")], f.prototype, "onKeyDownArrow", null), f;
  11071. }(v.Plugin);
  11072. t.keyArrowOutside = s, a.pluginSystem.add("keyArrowOutside", s);
  11073. }, 19250: function(_, t, e) {
  11074. Object.defineProperty(t, "__esModule", { value: !0 });
  11075. var n = e(93166);
  11076. n.Config.prototype.limitWords = !1, n.Config.prototype.limitChars = !1, n.Config.prototype.limitHTML = !1;
  11077. }, 27738: function(_, t, e) {
  11078. Object.defineProperty(t, "__esModule", { value: !0 }), t.limit = void 0;
  11079. var n = e(20255), v = e(57549), h = e(86893), p = e(43441), d = e(17332);
  11080. e(19250);
  11081. var a = function(u) {
  11082. function f() {
  11083. return u !== null && u.apply(this, arguments) || this;
  11084. }
  11085. return n.__extends(f, u), f.prototype.afterInit = function(l) {
  11086. var o = this, r = l.o;
  11087. if (l && (r.limitWords || r.limitChars)) {
  11088. var i = null;
  11089. l.e.off(".limit").on("beforePaste.limit", function() {
  11090. i = l.history.snapshot.make();
  11091. }).on("keydown.limit keyup.limit beforeEnter.limit", this.checkPreventKeyPressOrPaste).on("change.limit", this.checkPreventChanging).on("afterPaste.limit", function() {
  11092. if (o.__shouldDenyInput(!0) && i) return l.history.snapshot.restore(i), l.e.fire("denyPaste.limit"), !1;
  11093. });
  11094. }
  11095. }, f.prototype.shouldPreventInsertHTML = function(l) {
  11096. return (!l || !(h.COMMAND_KEYS.includes(l.key) || l.ctrlKey || l.metaKey)) && this.__shouldDenyInput(!1);
  11097. }, f.prototype.__shouldDenyInput = function(l) {
  11098. var o = this.jodit, r = o.o, i = r.limitWords, c = r.limitChars, m = this.__splitWords(o.o.limitHTML ? o.value : o.text);
  11099. if (i && s(m.length, i, l)) return o.e.fire("denyWords.limit limit.limit"), !0;
  11100. var y = !!(c && s(m.join("").length, c, l));
  11101. return y && o.e.fire("denyChars.limit limit.limit"), y;
  11102. }, f.prototype.checkPreventKeyPressOrPaste = function(l) {
  11103. if (this.shouldPreventInsertHTML(l)) return !1;
  11104. }, f.prototype.checkPreventChanging = function(l, o) {
  11105. var r = this.jodit;
  11106. this.__shouldDenyInput(!0) && (r.value = o);
  11107. }, f.prototype.__splitWords = function(l) {
  11108. return l.replace((0, h.INVISIBLE_SPACE_REG_EXP)(), "").split((0, h.SPACE_REG_EXP)()).filter(function(o) {
  11109. return o.length;
  11110. });
  11111. }, f.prototype.beforeDestruct = function(l) {
  11112. l.e.off(".limit");
  11113. }, n.__decorate([p.autobind], f.prototype, "checkPreventKeyPressOrPaste", null), n.__decorate([p.autobind], f.prototype, "checkPreventChanging", null), f;
  11114. }(v.Plugin);
  11115. function s(u, f, l) {
  11116. return l ? u > f : u >= f;
  11117. }
  11118. t.limit = a, d.pluginSystem.add("limit", a);
  11119. }, 29490: function(_, t, e) {
  11120. Object.defineProperty(t, "__esModule", { value: !0 });
  11121. var n = e(93166), v = e(40332), h = e(77904);
  11122. n.Config.prototype.defaultLineHeight = null, h.Icon.set("line-height", e(7986)), n.Config.prototype.controls.lineHeight = { command: "applyLineHeight", tags: ["ol"], tooltip: "Line height", list: [1, 1.1, 1.2, 1.3, 1.4, 1.5, 2], exec: function(p, d, a) {
  11123. return (0, v.memorizeExec)(p, d, { control: a.control }, function(s) {
  11124. return s;
  11125. });
  11126. } };
  11127. }, 26752: function(_, t, e) {
  11128. Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
  11129. var n = e(47762);
  11130. t.ar = n;
  11131. var v = e(97495);
  11132. t.cs_cz = v;
  11133. var h = e(80131);
  11134. t.de = h;
  11135. var p = e(1201);
  11136. t.es = p;
  11137. var d = e(89912);
  11138. t.fa = d;
  11139. var a = e(3405);
  11140. t.fr = a;
  11141. var s = e(14129);
  11142. t.he = s;
  11143. var u = e(93729);
  11144. t.hu = u;
  11145. var f = e(16106);
  11146. t.id = f;
  11147. var l = e(89690);
  11148. t.it = l;
  11149. var o = e(33216);
  11150. t.ja = o;
  11151. var r = e(17282);
  11152. t.ko = r;
  11153. var i = e(91761);
  11154. t.nl = i;
  11155. var c = e(61675);
  11156. t.pl = c;
  11157. var m = e(69709);
  11158. t.pt_br = m;
  11159. var y = e(82591);
  11160. t.ru = y;
  11161. var g = e(87649);
  11162. t.tr = g;
  11163. var b = e(60268);
  11164. t.zh_cn = b;
  11165. var w = e(58214);
  11166. t.zh_tw = w;
  11167. }, 61421: function(_, t, e) {
  11168. Object.defineProperty(t, "__esModule", { value: !0 }), t.lineHeight = void 0;
  11169. var n = e(20255), v = e(57549), h = e(40332), p = e(43441), d = e(24263), a = e(17332);
  11170. e(29490);
  11171. var s = function(u) {
  11172. function f(l) {
  11173. var o = u.call(this, l) || this;
  11174. return o.buttons = [{ name: "lineHeight", group: "font" }], (0, a.extendLang)(e(26752)), o;
  11175. }
  11176. return n.__extends(f, u), f.prototype.afterInit = function(l) {
  11177. (0, h.css)(l.editor, { lineHeight: l.o.defaultLineHeight }), l.registerCommand("applyLineHeight", this.applyLineHeight);
  11178. }, f.prototype.applyLineHeight = function(l, o, r) {
  11179. var i, c = this.j, m = c.s, y = c.createInside, g = c.editor, b = c.o;
  11180. m.isFocused() || m.focus(), m.save();
  11181. var w = function(S) {
  11182. var j = d.Dom.closest(S, d.Dom.isBlock, g);
  11183. j || (j = d.Dom.wrap(S, b.enter, y));
  11184. var E = (0, h.css)(j, "lineHeight");
  11185. i === void 0 && (i = E.toString() !== r.toString()), (0, h.css)(j, "lineHeight", i ? r : null);
  11186. };
  11187. try {
  11188. if (m.isCollapsed()) {
  11189. var C = y.fake();
  11190. m.insertNode(C, !1, !1), w(C), d.Dom.safeRemove(C);
  11191. } else m.eachSelection(w);
  11192. } finally {
  11193. m.restore();
  11194. }
  11195. }, f.prototype.beforeDestruct = function(l) {
  11196. (0, h.css)(l.editor, { lineHeight: null });
  11197. }, n.__decorate([p.autobind], f.prototype, "applyLineHeight", null), f;
  11198. }(v.Plugin);
  11199. t.lineHeight = s, a.pluginSystem.add("lineHeight", s);
  11200. }, 56367: function(_, t, e) {
  11201. Object.defineProperty(t, "__esModule", { value: !0 });
  11202. var n = e(93166), v = e(54238), h = e(24263), p = e(77904);
  11203. n.Config.prototype.link = { formTemplate: v.formTemplate, followOnDblClick: !1, processVideoLink: !0, processPastedLink: !0, noFollowCheckbox: !0, openInNewTabCheckbox: !0, modeClassName: "input", selectMultipleClassName: !0, selectSizeClassName: 3, selectOptionsClassName: [], hotkeys: ["ctrl+k", "cmd+k"] }, p.Icon.set("link", e(23075)).set("unlink", e(10655)), n.Config.prototype.controls.unlink = { exec: function(d, a) {
  11204. var s = h.Dom.closest(a, "a", d.editor);
  11205. s && h.Dom.unwrap(s), d.synchronizeValues(), d.e.fire("hidePopup");
  11206. }, tooltip: "Unlink" }, n.Config.prototype.controls.link = { isActive: function(d) {
  11207. var a = d.s.current();
  11208. return !!(a && h.Dom.closest(a, "a", d.editor));
  11209. }, popup: function(d, a, s, u) {
  11210. return d.e.fire("generateLinkForm.link", a, u);
  11211. }, tags: ["a"], tooltip: "Insert link" };
  11212. }, 27582: function(_, t, e) {
  11213. Object.defineProperty(t, "__esModule", { value: !0 }), t.link = void 0;
  11214. var n = e(20255), v = e(64968), h = e(40332), p = e(57549), d = e(43441), a = e(17332);
  11215. e(56367);
  11216. var s = function(u) {
  11217. function f() {
  11218. var l = u !== null && u.apply(this, arguments) || this;
  11219. return l.buttons = [{ name: "link", group: "insert" }], l;
  11220. }
  11221. return n.__extends(f, u), f.prototype.afterInit = function(l) {
  11222. var o = this;
  11223. l.o.link.followOnDblClick && l.e.on("dblclick.link", this.onDblClickOnLink), l.o.link.processPastedLink && l.e.on("processPaste.link", this.onProcessPasteLink), l.e.on("generateLinkForm.link", this.__generateForm), l.registerCommand("openLinkDialog", { exec: function() {
  11224. var r = l.dlg({ resizable: !1 }), i = o.__generateForm(l.s.current(), function() {
  11225. r.close();
  11226. });
  11227. i.container.classList.add("jodit-dialog_alert"), r.setContent(i), r.open(), l.async.requestIdleCallback(function() {
  11228. var c = (0, h.refs)(i.container).url_input;
  11229. c == null || c.focus();
  11230. });
  11231. }, hotkeys: l.o.link.hotkeys });
  11232. }, f.prototype.onDblClickOnLink = function(l) {
  11233. if (v.Dom.isTag(l.target, "a")) {
  11234. var o = (0, h.attr)(l.target, "href");
  11235. o && (location.href = o, l.preventDefault());
  11236. }
  11237. }, f.prototype.onProcessPasteLink = function(l, o) {
  11238. var r = this.jodit;
  11239. if ((0, h.isURL)(o) && r.o.link.processPastedLink) {
  11240. if (r.e.stopPropagation("processPaste"), r.o.link.processVideoLink) {
  11241. var i = (0, h.convertMediaUrlToVideoEmbed)(o);
  11242. if (i !== o) return r.createInside.fromHTML(i);
  11243. }
  11244. if (r.s.isCollapsed()) {
  11245. var c = r.createInside.element("a");
  11246. return c.setAttribute("href", o), c.textContent = o, r.e.fire("applyLink", r, c, null), c;
  11247. }
  11248. return r.s.applyStyle(void 0, { element: "a", attributes: { href: o } }), !0;
  11249. }
  11250. }, f.prototype.__generateForm = function(l, o) {
  11251. var r, i = this.jodit, c = i.i18n.bind(i), m = i.o.link, y = m.openInNewTabCheckbox, g = m.noFollowCheckbox, b = m.formClassName, w = m.modeClassName, C = (0, m.formTemplate)(i), S = (0, h.isString)(C) ? i.c.fromHTML(C, { target_checkbox_box: y, nofollow_checkbox_box: g }) : C, j = v.Dom.isElement(S) ? S : S.container, E = (0, h.refs)(j), x = E.insert, k = E.unlink, I = E.content_input_box, M = E.target_checkbox, T = E.nofollow_checkbox, O = E.url_input, L = v.Dom.isImage(l), N = E.content_input, H = E.className_input, q = E.className_select;
  11252. N || (N = i.c.element("input", { type: "hidden", ref: "content_input" })), b && j.classList.add(b), L && v.Dom.hide(I);
  11253. var F = function() {
  11254. return r ? r.innerText : (0, h.stripTags)(i.s.range.cloneContents(), i.ed);
  11255. };
  11256. if (r = !(!l || !v.Dom.closest(l, "a", i.editor)) && v.Dom.closest(l, "a", i.editor), !L && l && (N.value = F()), r) {
  11257. if (O.value = (0, h.attr)(r, "href") || "", w) switch (w) {
  11258. case "input":
  11259. H && (H.value = (0, h.attr)(r, "class") || "");
  11260. break;
  11261. case "select":
  11262. if (q) {
  11263. for (var U = 0; q.selectedOptions.length > U; U++) {
  11264. var Y = q.options.item(U);
  11265. Y && (Y.selected = !1);
  11266. }
  11267. ((0, h.attr)(r, "class") || "").split(" ").forEach(function(z) {
  11268. if (z) for (var R = 0; q.options.length > R; R++) {
  11269. var A = q.options.item(R);
  11270. A != null && A.value && A.value === z && (A.selected = !0);
  11271. }
  11272. });
  11273. }
  11274. }
  11275. y && M && (M.checked = (0, h.attr)(r, "target") === "_blank"), g && T && (T.checked = (0, h.attr)(r, "rel") === "nofollow"), x.textContent = c("Update");
  11276. } else v.Dom.hide(k);
  11277. i.editor.normalize();
  11278. var P = i.history.snapshot.make();
  11279. k && i.e.on(k, "click", function(z) {
  11280. i.s.restore(), i.history.snapshot.restore(P), r && v.Dom.unwrap(r), i.synchronizeValues(), o(), z.preventDefault();
  11281. });
  11282. var D = function() {
  11283. if (!O.value.trim().length) return O.focus(), O.classList.add("jodit_error"), !1;
  11284. var z;
  11285. i.s.restore(), i.s.removeMarkers(), i.editor.normalize(), i.history.snapshot.restore(P);
  11286. var R = F() !== N.value.trim(), A = i.createInside;
  11287. if (r) z = [r];
  11288. else {
  11289. if (i.s.isCollapsed()) {
  11290. var B = A.element("a");
  11291. i.s.insertNode(B, !1, !1), z = [B];
  11292. } else {
  11293. var J = i.s.current();
  11294. z = v.Dom.isTag(J, ["img"]) ? [v.Dom.wrap(J, "a", A)] : i.s.wrapInTag("a");
  11295. }
  11296. z.forEach(function(W) {
  11297. return i.s.select(W);
  11298. });
  11299. }
  11300. return z.forEach(function(W) {
  11301. var Q;
  11302. if ((0, h.attr)(W, "href", O.value), w && (H != null ? H : q)) {
  11303. if (w === "input") H.value === "" && W.hasAttribute("class") && (0, h.attr)(W, "class", null), H.value !== "" && (0, h.attr)(W, "class", H.value);
  11304. else if (w === "select") {
  11305. W.hasAttribute("class") && (0, h.attr)(W, "class", null);
  11306. for (var te = 0; q.selectedOptions.length > te; te++) {
  11307. var le = (Q = q.selectedOptions.item(te)) === null || Q === void 0 ? void 0 : Q.value;
  11308. le && W.classList.add(le);
  11309. }
  11310. }
  11311. }
  11312. if (!L) {
  11313. var ne = W.textContent;
  11314. N.value.trim().length ? R && (ne = N.value) : ne = O.value, ne !== W.textContent && (W.textContent = ne);
  11315. }
  11316. y && M && (0, h.attr)(W, "target", M.checked ? "_blank" : null), g && T && (0, h.attr)(W, "rel", T.checked ? "nofollow" : null), i.e.fire("applyLink", i, W, S);
  11317. }), i.synchronizeValues(), o(), !1;
  11318. };
  11319. return v.Dom.isElement(S) ? i.e.on(S, "submit", function(z) {
  11320. return z.preventDefault(), z.stopImmediatePropagation(), D(), !1;
  11321. }) : S.onSubmit(D), S;
  11322. }, f.prototype.beforeDestruct = function(l) {
  11323. l.e.off("generateLinkForm.link", this.__generateForm).off("dblclick.link", this.onDblClickOnLink).off("processPaste.link", this.onProcessPasteLink);
  11324. }, n.__decorate([d.autobind], f.prototype, "onDblClickOnLink", null), n.__decorate([d.autobind], f.prototype, "onProcessPasteLink", null), n.__decorate([d.autobind], f.prototype, "__generateForm", null), f;
  11325. }(p.Plugin);
  11326. t.link = s, a.pluginSystem.add("link", s);
  11327. }, 54238: function(_, t, e) {
  11328. Object.defineProperty(t, "__esModule", { value: !0 }), t.formTemplate = void 0;
  11329. var n = e(95963), v = e(96516);
  11330. t.formTemplate = function(h) {
  11331. var p = h.o.link, d = p.openInNewTabCheckbox, a = p.noFollowCheckbox, s = p.modeClassName, u = p.selectSizeClassName, f = p.selectMultipleClassName, l = p.selectOptionsClassName;
  11332. return new n.UIForm(h, [new n.UIBlock(h, [new n.UIInput(h, { name: "url", type: "text", ref: "url_input", label: "URL", placeholder: "http://", required: !0 })]), new n.UIBlock(h, [new n.UIInput(h, { name: "content", ref: "content_input", label: "Text" })], { ref: "content_input_box" }), s ? new n.UIBlock(h, [s === "input" ? new n.UIInput(h, { name: "className", ref: "className_input", label: "Class name" }) : s === "select" ? new n.UISelect(h, { name: "className", ref: "className_select", label: "Class name", size: u, multiple: f, options: l }) : null]) : null, d ? new n.UICheckbox(h, { name: "target", ref: "target_checkbox", label: "Open in new tab" }) : null, a ? new n.UICheckbox(h, { name: "nofollow", ref: "nofollow_checkbox", label: "No follow" }) : null, new n.UIBlock(h, [new v.UIButton(h, { name: "unlink", variant: "default", text: "Unlink" }), new v.UIButton(h, { name: "insert", type: "submit", variant: "primary", text: "Insert" })], { align: "full" })]);
  11333. };
  11334. }, 11737: function(_, t, e) {
  11335. Object.defineProperty(t, "__esModule", { value: !0 });
  11336. var n = e(93166);
  11337. n.Config.prototype.mediaFakeTag = "jodit-media", n.Config.prototype.mediaInFakeBlock = !0, n.Config.prototype.mediaBlocks = ["video", "audio"];
  11338. }, 76303: function(_, t, e) {
  11339. Object.defineProperty(t, "__esModule", { value: !0 }), t.media = void 0;
  11340. var n = e(86893), v = e(76502), h = e(17332);
  11341. function p(d) {
  11342. var a = "jodit_fake_wrapper", s = d.options, u = s.mediaFakeTag, f = s.mediaBlocks;
  11343. s.mediaInFakeBlock && d.e.on("afterGetValueFromEditor", function(l) {
  11344. var o = new RegExp("<".concat(u, "[^>]+data-").concat(a, "[^>]+>([^]+?)</").concat(u, ">"), "ig");
  11345. o.test(l.value) && (l.value = l.value.replace(o, "$1"));
  11346. }).on("change afterInit afterSetMode changePlace", d.async.debounce(function() {
  11347. d.isDestructed || d.getMode() === n.MODE_SOURCE || (0, v.$$)(f.join(","), d.editor).forEach(function(l) {
  11348. (0, v.dataBind)(l, a) || ((0, v.dataBind)(l, a, !0), function(o) {
  11349. var r;
  11350. if (o.parentNode && (0, v.attr)(o.parentNode, "data-jodit_iframe_wrapper")) o = o.parentNode;
  11351. else {
  11352. var i = d.createInside.element(u, ((r = { "data-jodit-temp": 1, contenteditable: !1, draggable: !0 })["data-".concat(a)] = 1, r));
  11353. (0, v.attr)(i, "style", (0, v.attr)(o, "style")), i.style.display = o.style.display === "inline-block" ? "inline-block" : "block", i.style.width = o.offsetWidth + "px", i.style.height = o.offsetHeight + "px", o.parentNode && o.parentNode.insertBefore(i, o), i.appendChild(o), o = i;
  11354. }
  11355. d.e.off(o, "mousedown.select touchstart.select").on(o, "mousedown.select touchstart.select", function() {
  11356. d.s.setCursorAfter(o);
  11357. });
  11358. }(l));
  11359. });
  11360. }, d.defaultTimeout));
  11361. }
  11362. e(11737), t.media = p, h.pluginSystem.add("media", p);
  11363. }, 8860: function(_, t, e) {
  11364. Object.defineProperty(t, "__esModule", { value: !0 });
  11365. var n = e(93166), v = e(86893), h = e(81438), p = e(40332), d = e(72719);
  11366. n.Config.prototype.mobileTapTimeout = 300, n.Config.prototype.toolbarAdaptive = !0, n.Config.prototype.controls.dots = { mode: v.MODE_SOURCE + v.MODE_WYSIWYG, popup: function(a, s, u, f, l) {
  11367. var o = u.data;
  11368. return o === void 0 && (o = { toolbar: (0, h.makeCollection)(a), rebuild: function() {
  11369. var r;
  11370. if (l) {
  11371. var i = a.e.fire("getDiffButtons.mobile", l.closest(d.ToolbarCollection));
  11372. if (i && o) {
  11373. o.toolbar.build((0, p.splitArray)(i));
  11374. var c = ((r = a.toolbar.firstButton) === null || r === void 0 ? void 0 : r.container.offsetWidth) || 36;
  11375. o.toolbar.container.style.width = 3 * (c + 4) + "px";
  11376. }
  11377. }
  11378. } }, u.data = o), o.rebuild(), o.toolbar;
  11379. }, tooltip: "Show all" };
  11380. }, 19806: function(_, t, e) {
  11381. Object.defineProperty(t, "__esModule", { value: !0 }), t.mobile = void 0;
  11382. var n = e(40332), v = e(97642), h = e(17332);
  11383. function p(d) {
  11384. var a = 0, s = (0, n.splitArray)(d.o.buttons);
  11385. d.o.mobileTapTimeout && d.e.on("touchend", function(u) {
  11386. if (u.changedTouches && u.changedTouches.length) {
  11387. var f = (/* @__PURE__ */ new Date()).getTime(), l = f - a;
  11388. l > d.o.mobileTapTimeout && (a = f, 1.5 * d.o.mobileTapTimeout > l && d.s.insertCursorAtPoint(u.clientX, u.clientY));
  11389. }
  11390. }), d.e.on("getDiffButtons.mobile", function(u) {
  11391. if (u === d.toolbar) {
  11392. var f = (0, v.flatButtonsSet)((0, n.splitArray)(d.o.buttons), d), l = (0, v.flatButtonsSet)(s, d);
  11393. return (0, n.toArray)(f).reduce(function(o, r) {
  11394. return l.has(r) || o.push(r), o;
  11395. }, []);
  11396. }
  11397. }), d.o.toolbarAdaptive && d.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace", function() {
  11398. var u;
  11399. if (d.o.toolbar) {
  11400. var f = ((u = d.container.parentElement) !== null && u !== void 0 ? u : d.container).offsetWidth, l = (0, n.splitArray)(d.isFullSize || f >= d.o.sizeLG ? d.o.buttons : d.o.sizeMD > f ? d.o.sizeSM > f ? d.o.buttonsXS : d.o.buttonsSM : d.o.buttonsMD);
  11401. l.toString() !== s.toString() && (s = l, d.e.fire("closeAllPopups"), d.toolbar.setRemoveButtons(d.o.removeButtons).build(s.concat(d.o.extraButtons)));
  11402. }
  11403. }).on(d.ow, "load resize", function() {
  11404. return d.e.fire("recalcAdaptive");
  11405. });
  11406. }
  11407. e(8860), t.mobile = p, h.pluginSystem.add("mobile", p);
  11408. }, 73013: function(_, t, e) {
  11409. Object.defineProperty(t, "__esModule", { value: !0 });
  11410. var n = e(93166), v = e(63122), h = function(p, d, a) {
  11411. var s, u = a.control, f = "button".concat(u.command), l = (s = u.args && u.args[0]) !== null && s !== void 0 ? s : (0, v.dataBind)(p, f);
  11412. (0, v.dataBind)(p, f, l), p.execCommand(u.command, !1, l === "default" ? null : l);
  11413. };
  11414. e(77904).Icon.set("ol", e(15476)).set("ul", e(59403)), n.Config.prototype.controls.ul = { command: "insertUnorderedList", tags: ["ul"], tooltip: "Insert Unordered List", list: { default: "Default", circle: "Circle", disc: "Dot", square: "Quadrate" }, exec: h }, n.Config.prototype.controls.ol = { command: "insertOrderedList", tags: ["ol"], tooltip: "Insert Ordered List", list: { default: "Default", "lower-alpha": "Lower Alpha", "lower-greek": "Lower Greek", "lower-roman": "Lower Roman", "upper-alpha": "Upper Alpha", "upper-roman": "Upper Roman" }, exec: h };
  11415. }, 52598: function(_, t, e) {
  11416. Object.defineProperty(t, "__esModule", { value: !0 }), t.orderedList = void 0;
  11417. var n = e(20255), v = e(57549), h = e(43441), p = e(17332);
  11418. e(73013);
  11419. var d = function(a) {
  11420. function s() {
  11421. var u = a !== null && a.apply(this, arguments) || this;
  11422. return u.buttons = [{ name: "ul", group: "list" }, { name: "ol", group: "list" }], u;
  11423. }
  11424. return n.__extends(s, a), s.prototype.afterInit = function(u) {
  11425. u.registerCommand("insertUnorderedList", this.onCommand).registerCommand("insertOrderedList", this.onCommand);
  11426. }, s.prototype.onCommand = function(u, f, l) {
  11427. return this.jodit.s.applyStyle({ listStyleType: l != null ? l : null }, { element: u === "insertunorderedlist" ? "ul" : "ol" }), this.jodit.synchronizeValues(), !1;
  11428. }, s.prototype.beforeDestruct = function(u) {
  11429. }, n.__decorate([h.autobind], s.prototype, "onCommand", null), s;
  11430. }(v.Plugin);
  11431. t.orderedList = d, p.pluginSystem.add("orderedList", d);
  11432. }, 47470: function(_, t, e) {
  11433. Object.defineProperty(t, "__esModule", { value: !0 });
  11434. var n = e(93166), v = e(86893);
  11435. n.Config.prototype.askBeforePasteFromWord = !0, n.Config.prototype.processPasteFromWord = !0, n.Config.prototype.defaultActionOnPasteFromWord = null, n.Config.prototype.pasteFromWordActionList = [{ value: v.INSERT_AS_HTML, text: "Keep" }, { value: v.INSERT_AS_TEXT, text: "Clean" }, { value: v.INSERT_ONLY_TEXT, text: "Insert only Text" }];
  11436. }, 15428: function(_, t, e) {
  11437. Object.defineProperty(t, "__esModule", { value: !0 }), t.pasteFromWord = void 0;
  11438. var n = e(20255), v = e(57549), h = e(40332), p = e(86893), d = e(43441), a = e(64280), s = e(17332);
  11439. e(47470);
  11440. var u = function(f) {
  11441. function l() {
  11442. var o = f !== null && f.apply(this, arguments) || this;
  11443. return o.requires = ["paste"], o;
  11444. }
  11445. return n.__extends(l, f), l.prototype.afterInit = function(o) {
  11446. }, l.prototype.beforeDestruct = function(o) {
  11447. }, l.prototype.processWordHTML = function(o, r, i) {
  11448. var c = this, m = this.j, y = m.o, g = y.askBeforePasteFromWord, b = y.defaultActionOnPasteFromWord, w = y.defaultActionOnPaste, C = y.pasteFromWordActionList;
  11449. return !(!y.processPasteFromWord || !(0, h.isHtmlFromWord)(r) || (g ? (0, a.askInsertTypeDialog)(m, "The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?", "Word Paste Detected", function(S) {
  11450. c.insertFromWordByType(o, r, S, i);
  11451. }, C) : this.insertFromWordByType(o, r, b || w, i), 0));
  11452. }, l.prototype.insertFromWordByType = function(o, r, i, c) {
  11453. var m;
  11454. switch (i) {
  11455. case p.INSERT_AS_HTML:
  11456. r = (0, h.applyStyles)(r);
  11457. var y = (m = this.j.events) === null || m === void 0 ? void 0 : m.fire("beautifyHTML", r);
  11458. (0, h.isString)(y) && (r = y);
  11459. break;
  11460. case p.INSERT_AS_TEXT:
  11461. r = (0, h.cleanFromWord)(r);
  11462. break;
  11463. case p.INSERT_ONLY_TEXT:
  11464. r = (0, h.stripTags)((0, h.cleanFromWord)(r));
  11465. }
  11466. (0, a.pasteInsertHtml)(o, this.j, r);
  11467. }, n.__decorate([(0, d.watch)(":processHTML")], l.prototype, "processWordHTML", null), l;
  11468. }(v.Plugin);
  11469. t.pasteFromWord = u, s.pluginSystem.add("pasteFromWord", u);
  11470. }, 47224: function(_, t, e) {
  11471. Object.defineProperty(t, "__esModule", { value: !0 }), t.pasteStorage = void 0;
  11472. var n = e(20255);
  11473. e(71708);
  11474. var v = e(86893), h = e(85605), p = e(24263), d = e(40332), a = e(96031), s = e(17332), u = function(f) {
  11475. function l() {
  11476. var o = f !== null && f.apply(this, arguments) || this;
  11477. return o.currentIndex = 0, o.list = [], o.container = null, o.listBox = null, o.previewBox = null, o.dialog = null, o.paste = function() {
  11478. if (o.j.s.focus(), o.j.s.insertHTML(o.list[o.currentIndex]), o.currentIndex !== 0) {
  11479. var r = o.list[0];
  11480. o.list[0] = o.list[o.currentIndex], o.list[o.currentIndex] = r;
  11481. }
  11482. o.dialog && o.dialog.close(), o.j.synchronizeValues(), o.j.e.fire("afterPaste");
  11483. }, o.onKeyDown = function(r) {
  11484. var i = o.currentIndex;
  11485. [v.KEY_UP, v.KEY_DOWN, v.KEY_ENTER].indexOf(r.key) !== -1 && (r.key === v.KEY_UP && (i === 0 ? i = o.list.length - 1 : i -= 1), r.key === v.KEY_DOWN && (i === o.list.length - 1 ? i = 0 : i += 1), r.key !== v.KEY_ENTER ? (i !== o.currentIndex && o.selectIndex(i), r.stopImmediatePropagation(), r.preventDefault()) : o.paste());
  11486. }, o.selectIndex = function(r) {
  11487. o.listBox && (0, d.toArray)(o.listBox.childNodes).forEach(function(i, c) {
  11488. i.classList.remove("jodit_active"), r === c && o.previewBox && (i.classList.add("jodit_active"), o.previewBox.innerHTML = o.list[r], i.focus());
  11489. }), o.currentIndex = r;
  11490. }, o.showDialog = function() {
  11491. 2 > o.list.length || (o.dialog || o.createDialog(), o.listBox && (o.listBox.innerHTML = ""), o.previewBox && (o.previewBox.innerHTML = ""), o.list.forEach(function(r, i) {
  11492. var c = o.j.c.element("a");
  11493. c.textContent = i + 1 + ". " + r.replace((0, v.SPACE_REG_EXP)(), ""), o.j.e.on(c, "keydown", o.onKeyDown), (0, d.attr)(c, "href", "#"), (0, d.attr)(c, "data-index", i.toString()), (0, d.attr)(c, "tab-index", "-1"), o.listBox && o.listBox.appendChild(c);
  11494. }), o.dialog && o.dialog.open(), o.j.async.setTimeout(function() {
  11495. o.selectIndex(0);
  11496. }, 100));
  11497. }, o;
  11498. }
  11499. return n.__extends(l, f), l.prototype.createDialog = function() {
  11500. var o = this;
  11501. this.dialog = this.j.dlg();
  11502. var r = (0, a.Button)(this.j, "paste", "Paste", "primary");
  11503. r.onAction(this.paste);
  11504. var i = (0, a.Button)(this.j, "", "Cancel");
  11505. i.onAction(this.dialog.close), this.container = this.j.c.div(), this.container.classList.add("jodit-paste-storage"), this.listBox = this.j.c.div(), this.previewBox = this.j.c.div(), this.container.appendChild(this.listBox), this.container.appendChild(this.previewBox), this.dialog.setHeader(this.j.i18n("Choose Content to Paste")), this.dialog.setContent(this.container), this.dialog.setFooter([r, i]), this.j.e.on(this.listBox, "click dblclick", function(c) {
  11506. var m = c.target;
  11507. return p.Dom.isTag(m, "a") && m.hasAttribute("data-index") && o.selectIndex(parseInt((0, d.attr)(m, "-index") || "0", 10)), c.type === "dblclick" && o.paste(), !1;
  11508. });
  11509. }, l.prototype.afterInit = function() {
  11510. var o = this;
  11511. this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage", function() {
  11512. return o.list.length;
  11513. }).on("afterCopy.paste-storage", function(r) {
  11514. o.list.indexOf(r) !== -1 && o.list.splice(o.list.indexOf(r), 1), o.list.unshift(r), o.list.length > 5 && (o.list.length = 5);
  11515. }), this.j.registerCommand("showPasteStorage", { exec: this.showDialog, hotkeys: ["ctrl+shift+v", "cmd+shift+v"] });
  11516. }, l.prototype.beforeDestruct = function() {
  11517. this.dialog && this.dialog.destruct(), this.j.e.off(".paste-storage"), p.Dom.safeRemove(this.previewBox), p.Dom.safeRemove(this.listBox), p.Dom.safeRemove(this.container), this.container = null, this.listBox = null, this.previewBox = null, this.dialog = null, this.list = [];
  11518. }, l;
  11519. }(h.Plugin);
  11520. t.pasteStorage = u, s.pluginSystem.add("pasteStorage", u);
  11521. }, 24703: function(_, t, e) {
  11522. var n;
  11523. Object.defineProperty(t, "__esModule", { value: !0 });
  11524. var v = e(20255), h = e(86893), p = e(93166), d = e(64280);
  11525. p.Config.prototype.askBeforePasteHTML = !0, p.Config.prototype.processPasteHTML = !0, p.Config.prototype.pasteHTMLActionList = [{ value: h.INSERT_AS_HTML, text: "Keep" }, { value: h.INSERT_AS_TEXT, text: "Insert as Text" }, { value: h.INSERT_ONLY_TEXT, text: "Insert only Text" }], p.Config.prototype.memorizeChoiceWhenPasteFragment = !1, p.Config.prototype.nl2brInPlainText = !0;
  11526. var a = "pasteStorage";
  11527. p.Config.prototype.controls.paste = { tooltip: "Paste from clipboard", exec: function(s, u, f) {
  11528. var l = f.control;
  11529. return v.__awaiter(this, void 0, void 0, function() {
  11530. var o, r, i, c, m;
  11531. return v.__generator(this, function(y) {
  11532. switch (y.label) {
  11533. case 0:
  11534. if (l.name === a) return s.execCommand("showPasteStorage"), [2];
  11535. if (s.s.focus(), o = "", r = !0, !navigator.clipboard) return [3, 11];
  11536. y.label = 1;
  11537. case 1:
  11538. return y.trys.push([1, 6, , 7]), [4, navigator.clipboard.read()];
  11539. case 2:
  11540. return (i = y.sent()) && i.length ? [4, i[0].getType(h.TEXT_PLAIN)] : [3, 5];
  11541. case 3:
  11542. return c = y.sent(), [4, new Response(c).text()];
  11543. case 4:
  11544. o = y.sent(), y.label = 5;
  11545. case 5:
  11546. return r = !1, [3, 7];
  11547. case 6:
  11548. return y.sent(), [3, 7];
  11549. case 7:
  11550. if (!r) return [3, 11];
  11551. y.label = 8;
  11552. case 8:
  11553. return y.trys.push([8, 10, , 11]), [4, navigator.clipboard.readText()];
  11554. case 9:
  11555. return o = y.sent(), r = !1, [3, 11];
  11556. case 10:
  11557. return y.sent(), [3, 11];
  11558. case 11:
  11559. return r && (o = s.buffer.get(h.CLIPBOARD_ID) || "", r = o.length === 0), m = s.value, r ? (s.ed.execCommand("paste"), !(r = m === s.value) && s.e.fire("afterPaste")) : o.length ? ((0, d.pasteInsertHtml)(null, s, o), s.e.fire("afterPaste")) : r && s.alert("Your browser doesn't support direct access to the clipboard.", function() {
  11560. s.s.focus();
  11561. }), [2];
  11562. }
  11563. });
  11564. });
  11565. }, list: (n = {}, n[a] = "Paste Storage", n), isChildDisabled: function(s) {
  11566. return 2 > s.e.fire("pasteStorageList");
  11567. } };
  11568. }, 64280: function(_, t, e) {
  11569. Object.defineProperty(t, "__esModule", { value: !0 }), t.askInsertTypeDialog = t.getAllTypes = t.pasteInsertHtml = void 0;
  11570. var n = e(20255), v = e(10172), h = e(24263), p = e(86893), d = e(96031);
  11571. t.pasteInsertHtml = function(a, s, u) {
  11572. if (!s.isInDestruct) {
  11573. (function(l) {
  11574. return !!(l && l.type === "drop");
  11575. })(a) && s.s.insertCursorAtPoint(a.clientX, a.clientY);
  11576. var f = s.e.fire("beforePasteInsert", u);
  11577. !(0, v.isVoid)(f) && ((0, v.isString)(f) || (0, v.isNumber)(f) || h.Dom.isNode(f)) && (u = f), (0, v.isString)(u) && (u = function(l) {
  11578. var o = (l = l.replace(/<meta[^>]+?>/g, "")).search(/<!--StartFragment-->/i);
  11579. o !== -1 && (l = l.substring(o + 20));
  11580. var r = l.search(/<!--EndFragment-->/i);
  11581. return r !== -1 && (l = l.substring(0, r)), l;
  11582. }(u)), s.s.insertHTML(u);
  11583. }
  11584. }, t.getAllTypes = function(a) {
  11585. var s = a.types, u = "";
  11586. if ((0, v.isArray)(s) || {}.toString.call(s) === "[object DOMStringList]") for (var f = 0; s.length > f; f += 1) u += s[f] + ";";
  11587. else u = (s || p.TEXT_PLAIN).toString() + ";";
  11588. return u;
  11589. }, t.askInsertTypeDialog = function(a, s, u, f, l) {
  11590. if (a.e.fire("beforeOpenPasteDialog", s, u, f, l) !== !1) {
  11591. var o = a.confirm('<div style="word-break: normal; white-space: normal">'.concat(a.i18n(s), "</div>"), a.i18n(u)), r = l.map(function(c) {
  11592. var m = c.text, y = c.value;
  11593. return (0, d.Button)(a, { text: m, name: m.toLowerCase(), tabIndex: 0 }).onAction(function() {
  11594. o.close(), f(y);
  11595. });
  11596. });
  11597. o.e.one(o, "afterClose", function() {
  11598. a.s.isFocused() || a.s.focus();
  11599. });
  11600. var i = (0, d.Button)(a, { text: "Cancel", tabIndex: 0 }).onAction(function() {
  11601. o.close();
  11602. });
  11603. return o.setFooter(n.__spreadArray(n.__spreadArray([], n.__read(r), !1), [i], !1)), r[0].focus(), r[0].state.variant = "primary", a.e.fire("afterOpenPasteDialog", o, s, u, f, l), o;
  11604. }
  11605. };
  11606. }, 19483: function(_, t, e) {
  11607. Object.defineProperty(t, "__esModule", { value: !0 }), t.paste = void 0;
  11608. var n = e(20255), v = e(85605), h = e(86893), p = e(24263), d = e(43441), a = e(40332), s = e(17332), u = e(64280);
  11609. e(24703);
  11610. var f = function(l) {
  11611. function o() {
  11612. var r = l !== null && l.apply(this, arguments) || this;
  11613. return r.pasteStack = new a.LimitedStack(20), r._isDialogOpened = !1, r;
  11614. }
  11615. return n.__extends(o, l), o.prototype.afterInit = function(r) {
  11616. var i = this;
  11617. r.e.on("paste.paste", this.onPaste).on("pasteStack.paste", function(c) {
  11618. return i.pasteStack.push(c);
  11619. }), r.o.nl2brInPlainText && this.j.e.on("processPaste.paste", this.onProcessPasteReplaceNl2Br);
  11620. }, o.prototype.beforeDestruct = function(r) {
  11621. r.e.off("paste.paste", this.onPaste).off("processPaste.paste", this.onProcessPasteReplaceNl2Br).off(".paste");
  11622. }, o.prototype.onPaste = function(r) {
  11623. try {
  11624. if (this.customPasteProcess(r) === !1 || this.j.e.fire("beforePaste", r) === !1) return r.preventDefault(), !1;
  11625. this.defaultPasteProcess(r);
  11626. } finally {
  11627. this.j.e.fire("afterPaste", r);
  11628. }
  11629. }, o.prototype.customPasteProcess = function(r) {
  11630. if (this.j.o.processPasteHTML) {
  11631. var i, c = (0, a.getDataTransfer)(r), m = { html: c == null ? void 0 : c.getData(h.TEXT_HTML), plain: c == null ? void 0 : c.getData(h.TEXT_PLAIN), rtf: c == null ? void 0 : c.getData(h.TEXT_RTF) };
  11632. for (i in m) {
  11633. var y = m[i];
  11634. if ((0, a.isHTML)(y) && (this.j.e.fire("processHTML", r, y, m) || this.processHTML(r, y))) return !1;
  11635. }
  11636. }
  11637. }, o.prototype.defaultPasteProcess = function(r) {
  11638. var i = (0, a.getDataTransfer)(r), c = (i == null ? void 0 : i.getData(h.TEXT_HTML)) || (i == null ? void 0 : i.getData(h.TEXT_PLAIN));
  11639. if (i && c && (0, a.trim)(c) !== "") {
  11640. var m = this.j.e.fire("processPaste", r, c, (0, u.getAllTypes)(i));
  11641. m !== void 0 && (c = m), ((0, a.isString)(c) || p.Dom.isNode(c)) && this.insertByType(r, c, this.j.o.defaultActionOnPaste), r.preventDefault(), r.stopPropagation();
  11642. }
  11643. }, o.prototype.processHTML = function(r, i) {
  11644. var c = this;
  11645. if (this.j.o.askBeforePasteHTML) {
  11646. if (this.j.o.memorizeChoiceWhenPasteFragment) {
  11647. var m = this.pasteStack.find(function(g) {
  11648. return g.html === i;
  11649. });
  11650. if (m) return this.insertByType(r, i, m.action || this.j.o.defaultActionOnPaste), !0;
  11651. }
  11652. if (this._isDialogOpened) return !0;
  11653. var y = (0, u.askInsertTypeDialog)(this.j, "Your code is similar to HTML. Keep as HTML?", "Paste as HTML", function(g) {
  11654. c._isDialogOpened = !1, c.insertByType(r, i, g);
  11655. }, this.j.o.pasteHTMLActionList);
  11656. return y && (this._isDialogOpened = !0, y.e.on("beforeClose", function() {
  11657. c._isDialogOpened = !1;
  11658. })), !0;
  11659. }
  11660. return !1;
  11661. }, o.prototype.insertByType = function(r, i, c) {
  11662. if (this.pasteStack.push({ html: i, action: c }), (0, a.isString)(i)) switch (this.j.buffer.set(h.CLIPBOARD_ID, i), c) {
  11663. case h.INSERT_CLEAR_HTML:
  11664. i = (0, a.cleanFromWord)(i);
  11665. break;
  11666. case h.INSERT_ONLY_TEXT:
  11667. i = (0, a.stripTags)(i);
  11668. break;
  11669. case h.INSERT_AS_TEXT:
  11670. i = (0, a.htmlspecialchars)(i);
  11671. }
  11672. (0, u.pasteInsertHtml)(r, this.j, i);
  11673. }, o.prototype.onProcessPasteReplaceNl2Br = function(r, i, c) {
  11674. if (c === h.TEXT_PLAIN + ";" && !(0, a.isHTML)(i)) return (0, a.nl2br)(i);
  11675. }, n.__decorate([d.autobind], o.prototype, "onPaste", null), n.__decorate([d.autobind], o.prototype, "onProcessPasteReplaceNl2Br", null), o;
  11676. }(v.Plugin);
  11677. t.paste = f, s.pluginSystem.add("paste", f);
  11678. }, 76952: function(_, t, e) {
  11679. Object.defineProperty(t, "__esModule", { value: !0 });
  11680. var n = e(93166);
  11681. n.Config.prototype.showPlaceholder = !0, n.Config.prototype.placeholder = "Type something", n.Config.prototype.useInputsPlaceholder = !0;
  11682. }, 83211: function(_, t, e) {
  11683. Object.defineProperty(t, "__esModule", { value: !0 }), t.placeholder = t.isEditorEmpty = void 0;
  11684. var n = e(20255);
  11685. e(51629);
  11686. var v = e(86893), h = e(67309), p = e(26911), d = e(37204), a = e(24263), s = e(85605), u = e(86893), f = e(43441), l = e(17332);
  11687. function o(i) {
  11688. var c;
  11689. if (!i.firstChild) return !0;
  11690. var m = i.firstChild;
  11691. if (u.INSEPARABLE_TAGS.has((c = m.nodeName) === null || c === void 0 ? void 0 : c.toLowerCase()) || /^(TABLE)$/i.test(m.nodeName)) return !1;
  11692. var y = a.Dom.next(m, function(g) {
  11693. return g && !a.Dom.isEmptyTextNode(g);
  11694. }, i);
  11695. return a.Dom.isText(m) && !y ? a.Dom.isEmptyTextNode(m) : !y && a.Dom.each(m, function(g) {
  11696. return !a.Dom.isTag(g, ["ul", "li", "ol"]) && (a.Dom.isEmpty(g) || a.Dom.isTag(g, "br"));
  11697. });
  11698. }
  11699. e(76952), t.isEditorEmpty = o;
  11700. var r = function(i) {
  11701. function c() {
  11702. var m = i !== null && i.apply(this, arguments) || this;
  11703. return m.addNativeListeners = function() {
  11704. m.j.e.off(m.j.editor, "input.placeholder keydown.placeholder").on(m.j.editor, "input.placeholder keydown.placeholder", m.toggle);
  11705. }, m.addEvents = function() {
  11706. var y = m.j;
  11707. y.o.useInputsPlaceholder && y.element.hasAttribute("placeholder") && (m.placeholderElm.innerHTML = (0, h.attr)(y.element, "placeholder") || ""), y.e.fire("placeholder", m.placeholderElm.innerHTML), y.e.off(".placeholder").on("changePlace.placeholder", m.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder", m.toggle).on(window, "load", m.toggle), m.addNativeListeners(), m.toggle();
  11708. }, m;
  11709. }
  11710. return n.__extends(c, i), c.prototype.afterInit = function(m) {
  11711. var y = this;
  11712. m.o.showPlaceholder && (this.placeholderElm = m.c.fromHTML('<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">'.concat(m.i18n(m.o.placeholder), "</span>")), m.o.direction === "rtl" && (this.placeholderElm.style.right = "0px", this.placeholderElm.style.direction = "rtl"), m.e.on("readonly", function(g) {
  11713. g ? y.hide() : y.toggle();
  11714. }).on("changePlace", this.addEvents), this.addEvents());
  11715. }, c.prototype.show = function() {
  11716. var m = this.j;
  11717. if (!m.o.readonly) {
  11718. var y = 0, g = 0, b = m.s.current(), w = b && a.Dom.closest(b, a.Dom.isBlock, m.editor) || m.editor, C = m.ew.getComputedStyle(w), S = m.ew.getComputedStyle(m.editor);
  11719. m.workplace.appendChild(this.placeholderElm);
  11720. var j = m.editor.firstChild;
  11721. if (a.Dom.isElement(j) && !(0, d.isMarker)(j)) {
  11722. var E = m.ew.getComputedStyle(j);
  11723. y = parseInt(E.getPropertyValue("margin-top"), 10), g = parseInt(E.getPropertyValue("margin-left"), 10), this.placeholderElm.style.fontSize = parseInt(E.getPropertyValue("font-size"), 10) + "px", this.placeholderElm.style.lineHeight = E.getPropertyValue("line-height");
  11724. } else this.placeholderElm.style.fontSize = parseInt(C.getPropertyValue("font-size"), 10) + "px", this.placeholderElm.style.lineHeight = C.getPropertyValue("line-height");
  11725. (0, p.css)(this.placeholderElm, { display: "block", textAlign: C.getPropertyValue("text-align"), paddingTop: parseInt(S.paddingTop, 10) + "px", paddingLeft: parseInt(S.paddingLeft, 10) + "px", paddingRight: parseInt(S.paddingRight, 10) + "px", marginTop: Math.max(parseInt(C.getPropertyValue("margin-top"), 10), y), marginLeft: Math.max(parseInt(C.getPropertyValue("margin-left"), 10), g) });
  11726. }
  11727. }, c.prototype.hide = function() {
  11728. a.Dom.safeRemove(this.placeholderElm);
  11729. }, c.prototype.toggle = function() {
  11730. var m = this.j;
  11731. m.editor && !m.isInDestruct && (m.getRealMode() === v.MODE_WYSIWYG && o(m.editor) ? this.show() : this.hide());
  11732. }, c.prototype.beforeDestruct = function(m) {
  11733. this.hide(), m.e.off(".placeholder").off(window, "load", this.toggle);
  11734. }, n.__decorate([(0, f.debounce)(function(m) {
  11735. return m.defaultTimeout / 10;
  11736. }, !0)], c.prototype, "toggle", null), c;
  11737. }(s.Plugin);
  11738. t.placeholder = r, l.pluginSystem.add("placeholder", r);
  11739. }, 88297: function(_, t, e) {
  11740. Object.defineProperty(t, "__esModule", { value: !0 }), t.poweredByJodit = void 0;
  11741. var n = e(17332);
  11742. function v(h) {
  11743. var p = h.o;
  11744. p.hidePoweredByJodit || p.inline || !(p.showCharsCounter || p.showWordsCounter || p.showXPathInStatusbar) || h.hookStatus("ready", function() {
  11745. h.statusbar.append(h.create.fromHTML(`<a
  11746. tabindex="-1"
  11747. style="text-transform: uppercase"
  11748. class="jodit-status-bar-link"
  11749. target="_blank"
  11750. href="https://xdsoft.net/jodit/">
  11751. Powered by Jodit
  11752. </a>`), !0);
  11753. });
  11754. }
  11755. t.poweredByJodit = v, n.pluginSystem.add("poweredByJodit", v);
  11756. }, 72930: function(_, t, e) {
  11757. Object.defineProperty(t, "__esModule", { value: !0 }), t.preview = void 0, e(54860);
  11758. var n = e(93166), v = e(86893), h = e(21498), p = e(17332);
  11759. function d(a) {
  11760. a.registerButton({ name: "preview" }), a.registerCommand("preview", function(s, u, f) {
  11761. var l = a.dlg();
  11762. l.setSize(1024, 600).open("", a.i18n("Preview")).setModal(!0), (0, h.previewBox)(a, f, "px", l.getElm("content"));
  11763. });
  11764. }
  11765. n.Config.prototype.controls.preview = { icon: "eye", command: "preview", mode: v.MODE_SOURCE + v.MODE_WYSIWYG, tooltip: "Preview" }, t.preview = d, p.pluginSystem.add("preview", d);
  11766. }, 20137: function(_, t, e) {
  11767. Object.defineProperty(t, "__esModule", { value: !0 }), t.generateCriticalCSS = void 0;
  11768. var n = e(20255), v = e(1853);
  11769. t.generateCriticalCSS = function(h) {
  11770. var p = function(a, s) {
  11771. return s === void 0 && (s = a.ownerDocument.styleSheets), (0, v.toArray)(s).map(function(u) {
  11772. try {
  11773. return (0, v.toArray)(u.cssRules);
  11774. } catch (f) {
  11775. }
  11776. return [];
  11777. }).flat().filter(function(u) {
  11778. try {
  11779. return !!(u && a.matches(u.selectorText));
  11780. } catch (f) {
  11781. }
  11782. return !1;
  11783. });
  11784. }, d = function() {
  11785. function a(s, u, f) {
  11786. var l = this;
  11787. this.css = {};
  11788. var o = f || {}, r = function(i) {
  11789. var c = i.selectorText.split(",").map(function(b) {
  11790. return b.trim();
  11791. }).sort().join(",");
  11792. !l.css[c] && (l.css[c] = {});
  11793. for (var m = i.style.cssText.split(/;(?![A-Za-z0-9])/), y = 0; m.length > y; y++) if (m[y]) {
  11794. var g = m[y].split(":");
  11795. g[0] = g[0].trim(), g[1] = g[1].trim(), l.css[c][g[0]] = g[1].replace(/var\(([^)]+)\)/g, function(b, w) {
  11796. var C = n.__read(w.split(","), 2), S = C[0], j = C[1];
  11797. return (h.ew.getComputedStyle(h.editor).getPropertyValue(S.trim()) || j || b).trim();
  11798. });
  11799. }
  11800. };
  11801. (function() {
  11802. for (var i = s.innerHeight, c = u.createTreeWalker(h.editor, NodeFilter.SHOW_ELEMENT, function() {
  11803. return NodeFilter.FILTER_ACCEPT;
  11804. }); c.nextNode(); ) {
  11805. var m = c.currentNode;
  11806. if (i > m.getBoundingClientRect().top || o.scanFullPage) {
  11807. var y = p(m);
  11808. if (y) for (var g = 0; y.length > g; g++) r(y[g]);
  11809. }
  11810. }
  11811. })();
  11812. }
  11813. return a.prototype.generateCSS = function() {
  11814. var s = "";
  11815. for (var u in this.css) if (!/:not\(/.test(u)) {
  11816. for (var f in s += u + " { ", this.css[u]) s += f + ": " + this.css[u][f] + "; ";
  11817. s += `}
  11818. `;
  11819. }
  11820. return s;
  11821. }, a;
  11822. }();
  11823. try {
  11824. return new d(h.ew, h.ed, { scanFullPage: !0 }).generateCSS();
  11825. } catch (a) {
  11826. }
  11827. return "";
  11828. };
  11829. }, 51197: function(_, t, e) {
  11830. Object.defineProperty(t, "__esModule", { value: !0 }), t.print = void 0;
  11831. var n = e(93166), v = e(17332), h = e(64968), p = e(93351), d = e(86893), a = e(17332), s = e(77904), u = e(20137), f = e(21498);
  11832. function l(o) {
  11833. o.registerButton({ name: "print" });
  11834. }
  11835. s.Icon.set("print", e(22860)), n.Config.prototype.controls.print = { exec: function(o) {
  11836. var r = o.create.element("iframe");
  11837. Object.assign(r.style, { position: "fixed", right: 0, bottom: 0, width: 0, height: 0, border: 0 }), (0, v.getContainer)(o, n.Config).appendChild(r);
  11838. var i = function() {
  11839. o.e.off(o.ow, "mousemove", i), h.Dom.safeRemove(r);
  11840. }, c = r.contentWindow;
  11841. if (c) {
  11842. o.e.on(c, "onbeforeunload onafterprint", i).on(o.ow, "mousemove", i), o.o.iframe ? (o.e.fire("generateDocumentStructure.iframe", c.document, o), c.document.body.innerHTML = o.value) : (c.document.write('<!doctype html><html lang="' + (0, p.defaultLanguage)(o.o.language) + '"><head><title></title></head><style>' + (0, u.generateCriticalCSS)(o) + "</style><body></body></html>"), c.document.close(), (0, f.previewBox)(o, void 0, "px", c.document.body));
  11843. var m = c.document.createElement("style");
  11844. m.innerHTML = `@media print {
  11845. body {
  11846. -webkit-print-color-adjust: exact;
  11847. }
  11848. }`, c.document.head.appendChild(m), c.focus(), c.print();
  11849. }
  11850. }, mode: d.MODE_SOURCE + d.MODE_WYSIWYG, tooltip: "Print" }, t.print = l, a.pluginSystem.add("print", l);
  11851. }, 2327: function(_, t, e) {
  11852. Object.defineProperty(t, "__esModule", { value: !0 }), t.redoUndo = void 0;
  11853. var n = e(20255), v = e(93166), h = e(86893), p = e(85605), d = e(17332);
  11854. e(77904).Icon.set("redo", e(95600)).set("undo", e(76214)), v.Config.prototype.controls.redo = { mode: h.MODE_SPLIT, isDisabled: function(s) {
  11855. return !s.history.canRedo();
  11856. }, tooltip: "Redo" }, v.Config.prototype.controls.undo = { mode: h.MODE_SPLIT, isDisabled: function(s) {
  11857. return !s.history.canUndo();
  11858. }, tooltip: "Undo" };
  11859. var a = function(s) {
  11860. function u() {
  11861. var f = s !== null && s.apply(this, arguments) || this;
  11862. return f.buttons = [{ name: "undo", group: "history" }, { name: "redo", group: "history" }], f;
  11863. }
  11864. return n.__extends(u, s), u.prototype.beforeDestruct = function() {
  11865. }, u.prototype.afterInit = function(f) {
  11866. var l = function(o) {
  11867. return f.history[o](), !1;
  11868. };
  11869. f.registerCommand("redo", { exec: l, hotkeys: ["ctrl+y", "ctrl+shift+z", "cmd+y", "cmd+shift+z"] }), f.registerCommand("undo", { exec: l, hotkeys: ["ctrl+z", "cmd+z"] });
  11870. }, u;
  11871. }(p.Plugin);
  11872. t.redoUndo = a, d.pluginSystem.add("redoUndo", a);
  11873. }, 52444: function(_, t, e) {
  11874. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.tableAllowCellResize = !0;
  11875. }, 47608: function(_, t, e) {
  11876. Object.defineProperty(t, "__esModule", { value: !0 }), t.resizeCells = void 0;
  11877. var n = e(20255);
  11878. e(47818);
  11879. var v = e(86893), h = e(87837), p = e(40332), d = e(43441), a = e(24263), s = e(17332);
  11880. e(52444);
  11881. var u = "table_processor_observer-resize", f = function(l) {
  11882. function o() {
  11883. var r = l !== null && l.apply(this, arguments) || this;
  11884. return r.selectMode = !1, r.resizeDelta = 0, r.createResizeHandle = function() {
  11885. r.resizeHandler || (r.resizeHandler = r.j.c.div("jodit-table-resizer"), r.j.e.on(r.resizeHandler, "mousedown.table touchstart.table", r.onHandleMouseDown).on(r.resizeHandler, "mouseenter.table", function() {
  11886. r.j.async.clearTimeout(r.hideTimeout);
  11887. }));
  11888. }, r.hideTimeout = 0, r.drag = !1, r.minX = 0, r.maxX = 0, r.startX = 0, r;
  11889. }
  11890. return n.__extends(o, l), Object.defineProperty(o.prototype, "module", { get: function() {
  11891. return this.j.getInstance("Table", this.j.o);
  11892. }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "isRTL", { get: function() {
  11893. return this.j.o.direction === "rtl";
  11894. }, enumerable: !1, configurable: !0 }), o.prototype.showResizeHandle = function() {
  11895. this.j.async.clearTimeout(this.hideTimeout), this.j.workplace.appendChild(this.resizeHandler);
  11896. }, o.prototype.hideResizeHandle = function() {
  11897. var r = this;
  11898. this.hideTimeout = this.j.async.setTimeout(function() {
  11899. a.Dom.safeRemove(r.resizeHandler);
  11900. }, { timeout: this.j.defaultTimeout, label: "hideResizer" });
  11901. }, o.prototype.onHandleMouseDown = function(r) {
  11902. var i = this;
  11903. if (!this.j.isLocked) {
  11904. this.drag = !0, this.j.e.on(this.j.ow, "mouseup.resize-cells touchend.resize-cells", this.onMouseUp).on(this.j.ew, "mousemove.table touchmove.table", this.onMouseMove), this.startX = r.clientX, this.j.lock(u), this.resizeHandler.classList.add("jodit-table-resizer_moved");
  11905. var c, m = this.workTable.getBoundingClientRect();
  11906. if (this.minX = 0, this.maxX = 1e6, this.wholeTable != null) m = this.workTable.parentNode.getBoundingClientRect(), this.minX = m.left, this.maxX = this.minX + m.width;
  11907. else {
  11908. var y = h.Table.formalCoordinate(this.workTable, this.workCell, !0);
  11909. h.Table.formalMatrix(this.workTable, function(g, b, w) {
  11910. y[1] === w && (c = g.getBoundingClientRect(), i.minX = Math.max(c.left + v.NEARBY / 2, i.minX)), y[1] + (i.isRTL ? -1 : 1) === w && (c = g.getBoundingClientRect(), i.maxX = Math.min(c.left + c.width - v.NEARBY / 2, i.maxX));
  11911. });
  11912. }
  11913. return !1;
  11914. }
  11915. }, o.prototype.onMouseMove = function(r) {
  11916. if (this.drag) {
  11917. this.j.e.fire("closeAllPopups");
  11918. var i = r.clientX, c = (0, p.offset)(this.resizeHandler.parentNode || this.j.od.documentElement, this.j, this.j.od, !0);
  11919. this.minX > i && (i = this.minX), i > this.maxX && (i = this.maxX), this.resizeDelta = i - this.startX + (this.j.o.iframe ? c.left : 0), this.resizeHandler.style.left = i - (this.j.o.iframe ? 0 : c.left) + "px";
  11920. var m = this.j.s.sel;
  11921. m && m.removeAllRanges();
  11922. }
  11923. }, o.prototype.onMouseUp = function(r) {
  11924. (this.selectMode || this.drag) && (this.selectMode = !1, this.j.unlock()), this.resizeHandler && this.drag && (this.drag = !1, this.j.e.off(this.j.ew, "mousemove.table touchmove.table", this.onMouseMove), this.resizeHandler.classList.remove("jodit-table-resizer_moved"), this.startX !== r.clientX && (this.wholeTable == null ? this.resizeColumns() : this.resizeTable()), this.j.synchronizeValues(), this.j.s.focus());
  11925. }, o.prototype.resizeColumns = function() {
  11926. var r = this.resizeDelta, i = [];
  11927. h.Table.setColumnWidthByDelta(this.workTable, h.Table.formalCoordinate(this.workTable, this.workCell, !0)[1], r, !0, i);
  11928. var c = (0, p.call)(this.isRTL ? a.Dom.prev : a.Dom.next, this.workCell, a.Dom.isCell, this.workCell.parentNode);
  11929. h.Table.setColumnWidthByDelta(this.workTable, h.Table.formalCoordinate(this.workTable, c)[1], -r, !1, i);
  11930. }, o.prototype.resizeTable = function() {
  11931. var r = this.resizeDelta * (this.isRTL ? -1 : 1), i = this.workTable.offsetWidth, c = (0, p.getContentWidth)(this.workTable.parentNode, this.j.ew), m = !this.wholeTable;
  11932. if (this.isRTL ? !m : m) this.workTable.style.width = (i + r) / c * 100 + "%";
  11933. else {
  11934. var y = this.isRTL ? "marginRight" : "marginLeft", g = parseInt(this.j.ew.getComputedStyle(this.workTable)[y] || "0", 10);
  11935. this.workTable.style.width = (i - r) / c * 100 + "%", this.workTable.style[y] = (g + r) / c * 100 + "%";
  11936. }
  11937. }, o.prototype.setWorkCell = function(r, i) {
  11938. i === void 0 && (i = null), this.wholeTable = i, this.workCell = r, this.workTable = a.Dom.up(r, function(c) {
  11939. return a.Dom.isTag(c, "table");
  11940. }, this.j.editor);
  11941. }, o.prototype.calcHandlePosition = function(r, i, c, m) {
  11942. c === void 0 && (c = 0), m === void 0 && (m = 0);
  11943. var y = (0, p.offset)(i, this.j, this.j.ed);
  11944. if (c > v.NEARBY && y.width - v.NEARBY > c) this.hideResizeHandle();
  11945. else {
  11946. var g = (0, p.offset)(this.j.workplace, this.j, this.j.od, !0), b = (0, p.offset)(r, this.j, this.j.ed);
  11947. if (this.resizeHandler.style.left = (c > v.NEARBY ? y.left + y.width : y.left) - g.left + m + "px", Object.assign(this.resizeHandler.style, { height: b.height + "px", top: b.top - g.top + "px" }), this.showResizeHandle(), c > v.NEARBY) {
  11948. var w = (0, p.call)(this.isRTL ? a.Dom.prev : a.Dom.next, i, a.Dom.isCell, i.parentNode);
  11949. this.setWorkCell(i, !!w && null);
  11950. } else {
  11951. var C = (0, p.call)(this.isRTL ? a.Dom.next : a.Dom.prev, i, a.Dom.isCell, i.parentNode);
  11952. this.setWorkCell(C || i, !C || null);
  11953. }
  11954. }
  11955. }, o.prototype.afterInit = function(r) {
  11956. var i = this;
  11957. r.o.tableAllowCellResize && r.e.off(this.j.ow, ".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells", function() {
  11958. (0, p.$$)("table", r.editor).forEach(i.observe);
  11959. }).on(this.j.ow, "scroll.resize-cells", function() {
  11960. if (i.drag) {
  11961. var c = a.Dom.up(i.workCell, function(y) {
  11962. return a.Dom.isTag(y, "table");
  11963. }, r.editor);
  11964. if (c) {
  11965. var m = c.getBoundingClientRect();
  11966. i.resizeHandler.style.top = m.top + "px";
  11967. }
  11968. }
  11969. }).on("beforeSetMode.resize-cells", function() {
  11970. i.module.getAllSelectedCells().forEach(function(c) {
  11971. i.module.removeSelection(c), h.Table.normalizeTable(a.Dom.closest(c, "table", r.editor));
  11972. });
  11973. });
  11974. }, o.prototype.observe = function(r) {
  11975. var i = this;
  11976. (0, p.dataBind)(r, u) || ((0, p.dataBind)(r, u, !0), this.j.e.on(r, "mouseleave.resize-cells", function(c) {
  11977. i.resizeHandler && i.resizeHandler !== c.relatedTarget && i.hideResizeHandle();
  11978. }).on(r, "mousemove.resize-cells touchmove.resize-cells", this.j.async.throttle(function(c) {
  11979. if (!i.j.isLocked) {
  11980. var m = a.Dom.up(c.target, a.Dom.isCell, r);
  11981. m && i.calcHandlePosition(r, m, c.offsetX);
  11982. }
  11983. }, { timeout: this.j.defaultTimeout })), this.createResizeHandle());
  11984. }, o.prototype.beforeDestruct = function(r) {
  11985. r.events && (r.e.off(this.j.ow, ".resize-cells"), r.e.off(".resize-cells"));
  11986. }, n.__decorate([d.autobind], o.prototype, "onHandleMouseDown", null), n.__decorate([d.autobind], o.prototype, "onMouseMove", null), n.__decorate([d.autobind], o.prototype, "onMouseUp", null), n.__decorate([d.autobind], o.prototype, "observe", null), o;
  11987. }(h.Plugin);
  11988. t.resizeCells = f, s.pluginSystem.add("resizeCells", f);
  11989. }, 91637: function(_, t, e) {
  11990. Object.defineProperty(t, "__esModule", { value: !0 });
  11991. var n = e(93166);
  11992. n.Config.prototype.allowResizeX = !1, n.Config.prototype.allowResizeY = !0;
  11993. }, 90523: function(_, t, e) {
  11994. Object.defineProperty(t, "__esModule", { value: !0 }), t.resizeHandler = void 0;
  11995. var n = e(20255), v = e(57549), h = e(64968), p = e(43441), d = e(2074), a = e(17332);
  11996. e(91637);
  11997. var s = function(u) {
  11998. function f() {
  11999. var l = u !== null && u.apply(this, arguments) || this;
  12000. return l.isResized = !1, l.start = { x: 0, y: 0, w: 0, h: 0 }, l.handle = l.j.c.div("jodit-editor__resize", d.Icon.get("resize_handler")), l;
  12001. }
  12002. return n.__extends(f, u), f.prototype.afterInit = function(l) {
  12003. var o = this, r = l.o, i = r.height, c = r.width, m = l.o.allowResizeY;
  12004. i === "auto" && c !== "auto" && (m = !1), i === "auto" && c === "auto" || !r.allowResizeX && !m || (l.statusbar.setMod("resize-handle", !0), l.e.on("toggleFullSize.resizeHandler", function() {
  12005. o.handle.style.display = l.isFullSize ? "none" : "block";
  12006. }).on(this.handle, "mousedown touchstart", this.onHandleResizeStart).on(l.ow, "mouseup touchend", this.onHandleResizeEnd), l.container.appendChild(this.handle));
  12007. }, f.prototype.onHandleResizeStart = function(l) {
  12008. this.isResized = !0, this.start.x = l.clientX, this.start.y = l.clientY, this.start.w = this.j.container.offsetWidth, this.start.h = this.j.container.offsetHeight, this.j.lock(), this.j.e.on(this.j.ow, "mousemove touchmove", this.onHandleResize), l.preventDefault();
  12009. }, f.prototype.onHandleResize = function(l) {
  12010. this.isResized && (this.j.o.allowResizeY && this.j.e.fire("setHeight", this.start.h + l.clientY - this.start.y), this.j.o.allowResizeX && this.j.e.fire("setWidth", this.start.w + l.clientX - this.start.x), this.j.e.fire("resize"));
  12011. }, f.prototype.onHandleResizeEnd = function() {
  12012. this.isResized && (this.isResized = !1, this.j.e.off(this.j.ow, "mousemove touchmove", this.onHandleResize), this.j.unlock());
  12013. }, f.prototype.beforeDestruct = function() {
  12014. h.Dom.safeRemove(this.handle), this.j.e.off(this.j.ow, "mouseup touchsend", this.onHandleResizeEnd);
  12015. }, f.requires = ["size"], n.__decorate([p.autobind], f);
  12016. }(v.Plugin);
  12017. t.resizeHandler = s, a.pluginSystem.add("resizeHandler", s);
  12018. }, 36560: function(_, t, e) {
  12019. Object.defineProperty(t, "__esModule", { value: !0 });
  12020. var n = e(93166);
  12021. n.Config.prototype.allowResizeTags = ["img", "iframe", "table", "jodit"], n.Config.prototype.resizer = { showSize: !0, hideSizeTimeout: 1e3, forImageChangeAttributes: !0, min_width: 10, min_height: 10, useAspectRatio: ["img"] };
  12022. }, 69257: function(_, t, e) {
  12023. Object.defineProperty(t, "__esModule", { value: !0 }), t.resizer = void 0;
  12024. var n = e(20255);
  12025. e(6316);
  12026. var v = e(86893), h = e(86893), p = e(24263), d = e(40332), a = e(85605), s = e(17332), u = e(43441), f = e(17332);
  12027. e(36560);
  12028. var l = "__jodit-resizer_binded", o = function(r) {
  12029. function i() {
  12030. var c = r !== null && r.apply(this, arguments) || this;
  12031. return c.LOCK_KEY = "resizer", c.element = null, c.isResizeMode = !1, c.isShown = !1, c.startX = 0, c.startY = 0, c.width = 0, c.height = 0, c.ratio = 0, c.rect = c.j.c.fromHTML('<div title="'.concat(c.j.i18n("Press Alt for custom resizing"), `" class="jodit-resizer">
  12032. <div class="jodit-resizer__top-left"></div>
  12033. <div class="jodit-resizer__top-right"></div>
  12034. <div class="jodit-resizer__bottom-right"></div>
  12035. <div class="jodit-resizer__bottom-left"></div>
  12036. <span>100x100</span>
  12037. </div>`)), c.sizeViewer = c.rect.getElementsByTagName("span")[0], c.pointerX = 0, c.pointerY = 0, c.isAltMode = !1, c.onClickElement = function(m) {
  12038. c.isResizeMode || c.element === m && c.isShown || (c.element = m, c.show(), p.Dom.isTag(c.element, "img") && !c.element.complete && c.j.e.one(c.element, "load", c.updateSize));
  12039. }, c.updateSize = function() {
  12040. if (!c.isInDestruct && c.isShown && c.element && c.rect) {
  12041. var m = c.getWorkplacePosition(), y = (0, d.offset)(c.element, c.j, c.j.ed), g = parseInt(c.rect.style.left || "0", 10), b = parseInt(c.rect.style.top || "0", 10), w = y.top - m.top, C = y.left - m.left;
  12042. b === w && g === C && c.rect.offsetWidth === c.element.offsetWidth && c.rect.offsetHeight === c.element.offsetHeight || ((0, d.css)(c.rect, { top: w, left: C, width: c.element.offsetWidth, height: c.element.offsetHeight }), c.j.events && (c.j.e.fire(c.element, "changesize"), isNaN(g) || c.j.e.fire("resize")));
  12043. }
  12044. }, c.hideSizeViewer = function() {
  12045. c.sizeViewer.style.opacity = "0";
  12046. }, c;
  12047. }
  12048. return n.__extends(i, r), i.prototype.afterInit = function(c) {
  12049. var m = this;
  12050. (0, d.$$)("div", this.rect).forEach(function(y) {
  12051. c.e.on(y, "mousedown.resizer touchstart.resizer", m.onStartResizing.bind(m, y));
  12052. }), s.eventEmitter.on("hideHelpers", this.hide), c.e.on("readonly", function(y) {
  12053. y && m.hide();
  12054. }).on("afterInit changePlace", this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer", function(y) {
  12055. var g = /<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;
  12056. g.test(y.value) && (y.value = y.value.replace(g, "$1"));
  12057. }).on("hideResizer", this.hide).on("change afterInit afterSetMode", this.onChangeEditor), this.addEventListeners(), this.onChangeEditor();
  12058. }, i.prototype.onEditorClick = function(c) {
  12059. for (var m = c.target, y = this.j, g = y.editor, b = y.options.allowResizeTags; m && m !== g; ) {
  12060. if (p.Dom.isTag(m, b)) return this.bind(m), void this.onClickElement(m);
  12061. m = m.parentNode;
  12062. }
  12063. }, i.prototype.addEventListeners = function() {
  12064. var c = this, m = this.j;
  12065. m.e.off(m.editor, ".resizer").off(m.ow, ".resizer").on(m.editor, "keydown.resizer", function(y) {
  12066. c.isShown && y.key === v.KEY_DELETE && c.element && !p.Dom.isTag(c.element, "table") && c.onDelete(y);
  12067. }).on(m.ow, "resize.resizer", this.updateSize).on("resize.resizer", this.updateSize).on([m.ow, m.editor], "scroll.resizer", function() {
  12068. c.isShown && !c.isResizeMode && c.hide();
  12069. }).on(m.ow, "keydown.resizer", this.onKeyDown).on(m.ow, "keyup.resizer", this.onKeyUp).on(m.ow, "mouseup.resizer touchend.resizer", this.onClickOutside);
  12070. }, i.prototype.onStartResizing = function(c, m) {
  12071. if (!this.element || !this.element.parentNode) return this.hide(), !1;
  12072. this.handle = c, m.cancelable && m.preventDefault(), m.stopImmediatePropagation(), this.width = this.element.offsetWidth, this.height = this.element.offsetHeight, this.ratio = this.width / this.height, this.isResizeMode = !0, this.startX = m.clientX, this.startY = m.clientY, this.pointerX = m.clientX, this.pointerY = m.clientY;
  12073. var y = this.j;
  12074. y.e.fire("hidePopup"), y.lock(this.LOCK_KEY), y.e.on(y.ow, "mousemove.resizer touchmove.resizer", this.onResize);
  12075. }, i.prototype.onEndResizing = function() {
  12076. var c = this.j;
  12077. c.unlock(), this.isResizeMode = !1, this.isAltMode = !1, c.synchronizeValues(), c.e.off(c.ow, "mousemove.resizer touchmove.resizer", this.onResize);
  12078. }, i.prototype.onResize = function(c) {
  12079. if (this.isResizeMode) {
  12080. if (!this.element) return;
  12081. this.pointerX = c.clientX, this.pointerY = c.clientY;
  12082. var m = void 0, y = void 0;
  12083. if (this.j.options.iframe) {
  12084. var g = this.getWorkplacePosition();
  12085. m = c.clientX + g.left - this.startX, y = c.clientY + g.top - this.startY;
  12086. } else m = this.pointerX - this.startX, y = this.pointerY - this.startY;
  12087. var b = this.handle.className, w = 0, C = 0, S = this.j.o.resizer.useAspectRatio;
  12088. !this.isAltMode && (S === !0 || Array.isArray(S) && p.Dom.isTag(this.element, S)) ? (m ? (w = this.width + (b.match(/left/) ? -1 : 1) * m, C = Math.round(w / this.ratio)) : (C = this.height + (b.match(/top/) ? -1 : 1) * y, w = Math.round(C * this.ratio)), w > (0, d.innerWidth)(this.j.editor, this.j.ow) && (w = (0, d.innerWidth)(this.j.editor, this.j.ow), C = Math.round(w / this.ratio))) : (w = this.width + (b.match(/left/) ? -1 : 1) * m, C = this.height + (b.match(/top/) ? -1 : 1) * y), w > this.j.o.resizer.min_width && this.applySize(this.element, "width", this.rect.parentNode.offsetWidth > w ? w : "100%"), C > this.j.o.resizer.min_height && this.applySize(this.element, "height", C), this.updateSize(), this.showSizeViewer(this.element.offsetWidth, this.element.offsetHeight), c.stopImmediatePropagation();
  12089. }
  12090. }, i.prototype.onKeyDown = function(c) {
  12091. this.isAltMode = c.key === h.KEY_ALT, !this.isAltMode && this.isResizeMode && this.onEndResizing();
  12092. }, i.prototype.onKeyUp = function() {
  12093. this.isAltMode && this.isResizeMode && this.element && (this.width = this.element.offsetWidth, this.height = this.element.offsetHeight, this.ratio = this.width / this.height, this.startX = this.pointerX, this.startY = this.pointerY), this.isAltMode = !1;
  12094. }, i.prototype.onClickOutside = function(c) {
  12095. if (this.isShown) {
  12096. if (!this.isResizeMode) return this.hide();
  12097. c.stopImmediatePropagation(), this.onEndResizing();
  12098. }
  12099. }, i.prototype.getWorkplacePosition = function() {
  12100. return (0, d.offset)(this.rect.parentNode || this.j.od.documentElement, this.j, this.j.od, !0);
  12101. }, i.prototype.applySize = function(c, m, y) {
  12102. var g = p.Dom.isImage(c) && this.j.o.resizer.forImageChangeAttributes;
  12103. g && (0, d.attr)(c, m, y), g && !c.style[m] || (0, d.css)(c, m, y);
  12104. }, i.prototype.onDelete = function(c) {
  12105. this.element && (this.element.tagName !== "JODIT" ? this.j.s.select(this.element) : (p.Dom.safeRemove(this.element), this.hide(), c.preventDefault()));
  12106. }, i.prototype.onChangeEditor = function() {
  12107. this.isShown && (this.element && this.element.parentNode ? this.updateSize() : this.hide()), (0, d.$$)("iframe", this.j.editor).forEach(this.bind);
  12108. }, i.prototype.bind = function(c) {
  12109. var m = this;
  12110. if (p.Dom.isHTMLElement(c) && this.j.o.allowResizeTags.includes(c.tagName.toLowerCase()) && !(0, d.dataBind)(c, l)) {
  12111. var y;
  12112. if ((0, d.dataBind)(c, l, !0), p.Dom.isTag(c, "iframe")) {
  12113. var g = c;
  12114. p.Dom.isHTMLElement(c.parentNode) && (0, d.attr)(c.parentNode, "-jodit_iframe_wrapper") ? c = c.parentNode : (y = this.j.createInside.element("jodit", { "data-jodit-temp": 1, contenteditable: !1, draggable: !0, "data-jodit_iframe_wrapper": 1 }), (0, d.attr)(y, "style", (0, d.attr)(c, "style")), (0, d.css)(y, { display: c.style.display === "inline-block" ? "inline-block" : "block", width: c.offsetWidth, height: c.offsetHeight }), c.parentNode && c.parentNode.insertBefore(y, c), y.appendChild(c), this.j.e.on(y, "click", function() {
  12115. (0, d.attr)(y, "data-jodit-wrapper_active", !0);
  12116. }), c = y), this.j.e.off(c, "mousedown.select touchstart.select").on(c, "mousedown.select touchstart.select", function() {
  12117. m.j.s.select(c);
  12118. }).off(c, "changesize").on(c, "changesize", function() {
  12119. g.setAttribute("width", c.offsetWidth + "px"), g.setAttribute("height", c.offsetHeight + "px");
  12120. });
  12121. }
  12122. this.j.e.on(c, "dragstart", this.hide), h.IS_IE && this.j.e.on(c, "mousedown", function(b) {
  12123. p.Dom.isTag(c, "img") && b.preventDefault();
  12124. });
  12125. }
  12126. }, i.prototype.showSizeViewer = function(c, m) {
  12127. this.j.o.resizer.showSize && (this.sizeViewer.offsetWidth > c || this.sizeViewer.offsetHeight > m ? this.hideSizeViewer() : (this.sizeViewer.style.opacity = "1", this.sizeViewer.textContent = "".concat(c, " x ").concat(m), this.j.async.setTimeout(this.hideSizeViewer, { timeout: this.j.o.resizer.hideSizeTimeout, label: "hideSizeViewer" })));
  12128. }, i.prototype.show = function() {
  12129. this.j.o.readonly || this.isShown || (this.isShown = !0, this.rect.parentNode || ((0, d.markOwner)(this.j, this.rect), this.j.workplace.appendChild(this.rect)), this.j.isFullSize && (this.rect.style.zIndex = (0, d.css)(this.j.container, "zIndex").toString()), this.updateSize());
  12130. }, i.prototype.hide = function() {
  12131. this.isResizeMode || (this.isResizeMode = !1, this.isShown = !1, this.element = null, p.Dom.safeRemove(this.rect), (0, d.$$)("[data-jodit-wrapper_active='true']", this.j.editor).forEach(function(c) {
  12132. return (0, d.attr)(c, "data-jodit-wrapper_active", !1);
  12133. }));
  12134. }, i.prototype.beforeDestruct = function(c) {
  12135. this.hide(), s.eventEmitter.off("hideHelpers", this.hide), c.e.off(this.j.ow, ".resizer").off(".resizer");
  12136. }, n.__decorate([(0, u.watch)(":click")], i.prototype, "onEditorClick", null), n.__decorate([u.autobind], i.prototype, "onStartResizing", null), n.__decorate([u.autobind], i.prototype, "onEndResizing", null), n.__decorate([u.autobind], i.prototype, "onResize", null), n.__decorate([u.autobind], i.prototype, "onKeyDown", null), n.__decorate([u.autobind], i.prototype, "onKeyUp", null), n.__decorate([u.autobind], i.prototype, "onClickOutside", null), n.__decorate([(0, u.debounce)()], i.prototype, "onChangeEditor", null), n.__decorate([u.autobind], i.prototype, "bind", null), n.__decorate([u.autobind], i.prototype, "hide", null), i;
  12137. }(a.Plugin);
  12138. t.resizer = o, f.pluginSystem.add("resizer", o);
  12139. }, 61975: function(_, t, e) {
  12140. Object.defineProperty(t, "__esModule", { value: !0 });
  12141. var n = e(93166), v = e(77904);
  12142. e(59535), n.Config.prototype.useSearch = !0, n.Config.prototype.search = { lazyIdleTimeout: 0 }, v.Icon.set("search", e(41197)), n.Config.prototype.controls.find = { tooltip: "Find", icon: "search", exec: function(h, p, d) {
  12143. var a = d.control;
  12144. switch (a.args && a.args[0]) {
  12145. case "findPrevious":
  12146. h.e.fire("searchPrevious");
  12147. break;
  12148. case "findNext":
  12149. h.e.fire("searchNext");
  12150. break;
  12151. case "replace":
  12152. h.execCommand("openReplaceDialog");
  12153. break;
  12154. default:
  12155. h.execCommand("openSearchDialog");
  12156. }
  12157. }, list: { search: "Find", findNext: "Find Next", findPrevious: "Find Previous", replace: "Replace" }, childTemplate: function(h, p, d) {
  12158. return d;
  12159. } };
  12160. }, 73934: function(_, t, e) {
  12161. Object.defineProperty(t, "__esModule", { value: !0 });
  12162. var n = e(20255);
  12163. n.__exportStar(e(18562), t), n.__exportStar(e(3928), t);
  12164. }, 18562: function(_, t, e) {
  12165. Object.defineProperty(t, "__esModule", { value: !0 }), t.SentenceFinder = void 0;
  12166. var n = e(20255), v = e(93163), h = function() {
  12167. function p(d) {
  12168. d === void 0 && (d = v.fuzzySearchIndex), this.searchIndex = d, this.queue = [], this.value = "";
  12169. }
  12170. return p.prototype.add = function(d) {
  12171. var a, s = ((a = d.nodeValue) !== null && a !== void 0 ? a : "").toLowerCase();
  12172. if (s.length) {
  12173. var u = this.value.length;
  12174. this.queue.push({ startIndex: u, endIndex: u + s.length, node: d }), this.value += s;
  12175. }
  12176. }, p.prototype.ranges = function(d, a) {
  12177. var s;
  12178. a === void 0 && (a = 0);
  12179. var u = [], f = a, l = 0, o = 0;
  12180. do
  12181. if (l = (s = n.__read(this.searchIndex(d, this.value, f), 2))[1], (f = s[0]) !== -1) {
  12182. for (var r = void 0, i = 0, c = void 0, m = 0, y = o; this.queue.length > y; y += 1) if (!r && this.queue[y].endIndex > f && (r = this.queue[y].node, i = f - this.queue[y].startIndex), r && this.queue[y].endIndex >= f + l) {
  12183. c = this.queue[y].node, m = f + l - this.queue[y].startIndex, o = y;
  12184. break;
  12185. }
  12186. r && c && u.push({ startContainer: r, startOffset: i, endContainer: c, endOffset: m }), f += l;
  12187. }
  12188. while (f !== -1);
  12189. return u.length === 0 ? null : u;
  12190. }, p;
  12191. }();
  12192. t.SentenceFinder = h;
  12193. }, 3928: function(_, t, e) {
  12194. Object.defineProperty(t, "__esModule", { value: !0 }), t.isSelectionWrapper = t.clearSelectionWrappersFromHTML = t.clearSelectionWrappers = t.getSelectionWrappers = t.wrapRangesTextsInTmpSpan = void 0;
  12195. var n = e(20255), v = e(24263), h = e(54188), p = "jd-tmp-selection";
  12196. function d(s) {
  12197. return (0, h.$$)("[".concat(p, "]"), s);
  12198. }
  12199. function a(s) {
  12200. return v.Dom.isElement(s) && s.hasAttribute(p);
  12201. }
  12202. t.wrapRangesTextsInTmpSpan = function(s, u, f, l) {
  12203. var o, r, i;
  12204. if (s.startContainer.nodeValue != null && s.endContainer.nodeValue != null) {
  12205. var c = f.element("span", ((o = {})[p] = !0, o));
  12206. v.Dom.markTemporary(c);
  12207. var m = s.startContainer.nodeValue, y = 0;
  12208. if (s.startOffset !== 0) {
  12209. var g = f.text(m.substring(0, s.startOffset));
  12210. s.startContainer.nodeValue = m.substring(s.startOffset), v.Dom.before(s.startContainer, g), s.startContainer === s.endContainer && (s.endOffset -= y = s.startOffset), s.startOffset = 0;
  12211. }
  12212. var b = s.endContainer.nodeValue;
  12213. if (s.endOffset !== b.length) {
  12214. g = f.text(b.substring(s.endOffset)), s.endContainer.nodeValue = b.substring(0, s.endOffset), v.Dom.after(s.endContainer, g);
  12215. try {
  12216. for (var w = n.__values(u), C = w.next(); !C.done; C = w.next()) {
  12217. var S = C.value;
  12218. if (S.startContainer !== s.endContainer) break;
  12219. S.startContainer = g, S.startOffset = S.startOffset - s.endOffset - y, S.endContainer === s.endContainer && (S.endContainer = g, S.endOffset = S.endOffset - s.endOffset - y);
  12220. }
  12221. } catch (x) {
  12222. r = { error: x };
  12223. } finally {
  12224. try {
  12225. C && !C.done && (i = w.return) && i.call(w);
  12226. } finally {
  12227. if (r) throw r.error;
  12228. }
  12229. }
  12230. s.endOffset = s.endContainer.nodeValue.length;
  12231. }
  12232. var j = s.startContainer;
  12233. do {
  12234. if (!j || (v.Dom.isText(j) && !a(j.parentNode) && v.Dom.wrap(j, c.cloneNode(), f), j === s.endContainer)) break;
  12235. var E = j.firstChild || j.nextSibling;
  12236. if (!E) {
  12237. for (; j && !j.nextSibling && j !== l; ) j = j.parentNode;
  12238. E = j == null ? void 0 : j.nextSibling;
  12239. }
  12240. j = E;
  12241. } while (j && j !== l);
  12242. }
  12243. }, t.getSelectionWrappers = d, t.clearSelectionWrappers = function(s) {
  12244. d(s).forEach(function(u) {
  12245. return v.Dom.unwrap(u);
  12246. });
  12247. }, t.clearSelectionWrappersFromHTML = function(s) {
  12248. return s.replace(RegExp("<span[^>]+".concat(p, "[^>]+>(.*?)</span>"), "g"), "$1");
  12249. }, t.isSelectionWrapper = a;
  12250. }, 59535: function() {
  12251. }, 14889: function(_, t, e) {
  12252. Object.defineProperty(t, "__esModule", { value: !0 }), t.search = void 0;
  12253. var n = e(20255), v = e(64968), h = e(57549), p = e(43441), d = e(72235), a = e(40332), s = e(17332), u = e(73934);
  12254. e(61975);
  12255. var f = function(l) {
  12256. function o() {
  12257. var r = l !== null && l.apply(this, arguments) || this;
  12258. return r.buttons = [{ name: "find", group: "search" }], r.previousQuery = "", r.drawPromise = null, r.walker = null, r.walkerCount = null, r.cache = {}, r.wrapFrameRequest = 0, r;
  12259. }
  12260. return n.__extends(o, l), Object.defineProperty(o.prototype, "ui", { get: function() {
  12261. return new d.UISearch(this.j);
  12262. }, enumerable: !1, configurable: !0 }), o.prototype.updateCounters = function() {
  12263. return n.__awaiter(this, void 0, Promise, function() {
  12264. var r;
  12265. return n.__generator(this, function(i) {
  12266. switch (i.label) {
  12267. case 0:
  12268. return this.ui.isOpened ? (r = this.ui, [4, this.calcCounts(this.ui.query)]) : [2];
  12269. case 1:
  12270. return r.count = i.sent(), [2];
  12271. }
  12272. });
  12273. });
  12274. }, o.prototype.onPressReplaceButton = function() {
  12275. this.findAndReplace(this.ui.query), this.updateCounters();
  12276. }, o.prototype.tryScrollToElement = function(r) {
  12277. var i = v.Dom.closest(r, v.Dom.isElement, this.j.editor);
  12278. i || (i = v.Dom.prev(r, v.Dom.isElement, this.j.editor)), i && i !== this.j.editor && (0, a.scrollIntoViewIfNeeded)(i, this.j.editor, this.j.ed);
  12279. }, o.prototype.calcCounts = function(r) {
  12280. return n.__awaiter(this, void 0, Promise, function() {
  12281. return n.__generator(this, function(i) {
  12282. switch (i.label) {
  12283. case 0:
  12284. return [4, this.findQueryBounds(r, "walkerCount")];
  12285. case 1:
  12286. return [2, i.sent().length];
  12287. }
  12288. });
  12289. });
  12290. }, o.prototype.findQueryBounds = function(r, i) {
  12291. return n.__awaiter(this, void 0, Promise, function() {
  12292. var c;
  12293. return n.__generator(this, function(m) {
  12294. return (c = this[i]) && c.break(), c = new v.LazyWalker(this.j.async, { timeout: this.j.o.search.lazyIdleTimeout }), this[i] = c, [2, this.find(c, r).catch(function(y) {
  12295. return [];
  12296. })];
  12297. });
  12298. });
  12299. }, o.prototype.findAndReplace = function(r) {
  12300. return n.__awaiter(this, void 0, Promise, function() {
  12301. var i, c, m, y, g;
  12302. return n.__generator(this, function(b) {
  12303. switch (b.label) {
  12304. case 0:
  12305. return [4, this.findQueryBounds(r, "walker")];
  12306. case 1:
  12307. if (!(i = b.sent()).length) return [2, !1];
  12308. if ((c = this.findCurrentIndexInRanges(i, this.j.s.range)) === -1 && (c = 0), !(m = i[c])) return [3, 6];
  12309. b.label = 2;
  12310. case 2:
  12311. return b.trys.push([2, , 4, 5]), (y = this.j.ed.createRange()).setStart(m.startContainer, m.startOffset), y.setEnd(m.endContainer, m.endOffset), y.deleteContents(), g = this.j.createInside.text(this.ui.replace), v.Dom.safeInsertNode(y, g), (0, u.clearSelectionWrappers)(this.j.editor), this.j.s.setCursorAfter(g), this.tryScrollToElement(g), this.cache = {}, this.ui.currentIndex = c, [4, this.findAndSelect(r, !0).catch(function(w) {
  12312. return null;
  12313. })];
  12314. case 3:
  12315. return b.sent(), [3, 5];
  12316. case 4:
  12317. return this.j.synchronizeValues(), [7];
  12318. case 5:
  12319. return this.j.e.fire("afterFindAndReplace"), [2, !0];
  12320. case 6:
  12321. return [2, !1];
  12322. }
  12323. });
  12324. });
  12325. }, o.prototype.findAndSelect = function(r, i) {
  12326. var c;
  12327. return n.__awaiter(this, void 0, Promise, function() {
  12328. var m, y, g, b;
  12329. return n.__generator(this, function(w) {
  12330. switch (w.label) {
  12331. case 0:
  12332. return [4, this.findQueryBounds(r, "walker")];
  12333. case 1:
  12334. if (!(m = w.sent()).length) return [2, !1];
  12335. if (this.previousQuery === r && (0, u.getSelectionWrappers)(this.j.editor).length || ((c = this.drawPromise) === null || c === void 0 || c.rejectCallback(), this.j.async.cancelAnimationFrame(this.wrapFrameRequest), (0, u.clearSelectionWrappers)(this.j.editor), this.drawPromise = this.drawSelectionRanges(m)), this.previousQuery = r, this.ui.currentIndex = (y = (y = this.ui.currentIndex - 1) == -1 ? 0 : i ? y === m.length - 1 ? 0 : y + 1 : y === 0 ? m.length - 1 : y - 1) + 1, !(g = m[y])) return [3, 4];
  12336. b = this.j.ed.createRange();
  12337. try {
  12338. b.setStart(g.startContainer, g.startOffset), b.setEnd(g.endContainer, g.endOffset), this.j.s.selectRange(b);
  12339. } catch (C) {
  12340. }
  12341. return this.tryScrollToElement(g.startContainer), [4, this.updateCounters()];
  12342. case 2:
  12343. return w.sent(), [4, this.drawPromise];
  12344. case 3:
  12345. return w.sent(), this.j.e.fire("afterFindAndSelect"), [2, !0];
  12346. case 4:
  12347. return [2, !1];
  12348. }
  12349. });
  12350. });
  12351. }, o.prototype.findCurrentIndexInRanges = function(r, i) {
  12352. return r.findIndex(function(c) {
  12353. return c.startContainer === i.startContainer && c.startOffset === i.startOffset && c.endContainer === i.startContainer && c.endOffset === i.endOffset;
  12354. });
  12355. }, o.prototype.isValidCache = function(r) {
  12356. return n.__awaiter(this, void 0, Promise, function() {
  12357. return n.__generator(this, function(i) {
  12358. switch (i.label) {
  12359. case 0:
  12360. return [4, r];
  12361. case 1:
  12362. return [2, i.sent().every(function(c) {
  12363. var m, y, g, b;
  12364. return c.startContainer.isConnected && c.startOffset <= ((y = (m = c.startContainer.nodeValue) === null || m === void 0 ? void 0 : m.length) !== null && y !== void 0 ? y : 0) && c.endContainer.isConnected && c.endOffset <= ((b = (g = c.endContainer.nodeValue) === null || g === void 0 ? void 0 : g.length) !== null && b !== void 0 ? b : 0);
  12365. })];
  12366. }
  12367. });
  12368. });
  12369. }, o.prototype.find = function(r, i) {
  12370. return n.__awaiter(this, void 0, Promise, function() {
  12371. var c, m, y = this;
  12372. return n.__generator(this, function(g) {
  12373. switch (g.label) {
  12374. case 0:
  12375. return i.length ? (m = c = this.cache[i]) ? [4, this.isValidCache(c)] : [3, 2] : [2, []];
  12376. case 1:
  12377. m = g.sent(), g.label = 2;
  12378. case 2:
  12379. return m ? [2, c] : (this.cache[i] = this.j.async.promise(function(b) {
  12380. var w = new u.SentenceFinder(y.j.o.search.fuzzySearch);
  12381. r.on("break", function() {
  12382. b([]);
  12383. }).on("visit", function(C) {
  12384. return v.Dom.isText(C) && w.add(C), !1;
  12385. }).on("end", function() {
  12386. var C;
  12387. b((C = w.ranges(i)) !== null && C !== void 0 ? C : []);
  12388. }).setWork(y.j.editor);
  12389. }), [2, this.cache[i]]);
  12390. }
  12391. });
  12392. });
  12393. }, o.prototype.drawSelectionRanges = function(r) {
  12394. var i = this, c = this.j, m = c.async, y = c.createInside, g = c.editor;
  12395. m.cancelAnimationFrame(this.wrapFrameRequest);
  12396. var b, w = n.__spreadArray([], n.__read(r), !1), C = 0;
  12397. return m.promise(function(S) {
  12398. var j = function() {
  12399. do
  12400. (b = w.shift()) && (0, u.wrapRangesTextsInTmpSpan)(b, w, y, g), C += 1;
  12401. while (b && 5 >= C);
  12402. w.length ? i.wrapFrameRequest = m.requestAnimationFrame(j) : S();
  12403. };
  12404. j();
  12405. });
  12406. }, o.prototype.onAfterGetValueFromEditor = function(r) {
  12407. r.value = (0, u.clearSelectionWrappersFromHTML)(r.value);
  12408. }, o.prototype.afterInit = function(r) {
  12409. var i = this;
  12410. if (r.o.useSearch) {
  12411. var c = this;
  12412. r.e.on("beforeSetMode.search", function() {
  12413. i.ui.close();
  12414. }).on(this.ui, "afterClose", function() {
  12415. (0, u.clearSelectionWrappers)(r.editor), i.ui.currentIndex = 0, i.ui.count = 0, i.cache = {};
  12416. }).on("click", function() {
  12417. i.ui.currentIndex = 0, (0, u.clearSelectionWrappers)(r.editor);
  12418. }).on("change.search", function() {
  12419. i.cache = {};
  12420. }).on("keydown.search mousedown.search", r.async.debounce(function() {
  12421. i.ui.selInfo && (r.s.removeMarkers(), i.ui.selInfo = null), i.ui.isOpened && i.updateCounters();
  12422. }, r.defaultTimeout)).on("searchNext.search searchPrevious.search", function() {
  12423. return i.ui.isOpened || i.ui.open(), c.findAndSelect(c.ui.query, r.e.current === "searchNext").catch(function(m) {
  12424. });
  12425. }).on("search.search", function(m, y) {
  12426. return y === void 0 && (y = !0), i.ui.currentIndex = 0, c.findAndSelect(m || "", y).catch(function(g) {
  12427. });
  12428. }), r.registerCommand("search", { exec: function(m, y, g) {
  12429. return g === void 0 && (g = !0), y && c.findAndSelect(y, g).catch(function(b) {
  12430. }), !1;
  12431. } }).registerCommand("openSearchDialog", { exec: function(m, y) {
  12432. return c.ui.open(y), !1;
  12433. }, hotkeys: ["ctrl+f", "cmd+f"] }).registerCommand("openReplaceDialog", { exec: function(m, y, g) {
  12434. return r.o.readonly || c.ui.open(y, g, !0), !1;
  12435. }, hotkeys: ["ctrl+h", "cmd+h"] });
  12436. }
  12437. }, o.prototype.beforeDestruct = function(r) {
  12438. this.ui.destruct(), r.e.off(".search");
  12439. }, n.__decorate([p.cache], o.prototype, "ui", null), n.__decorate([(0, p.watch)("ui:needUpdateCounters")], o.prototype, "updateCounters", null), n.__decorate([(0, p.watch)("ui:pressReplaceButton")], o.prototype, "onPressReplaceButton", null), n.__decorate([p.autobind], o.prototype, "findQueryBounds", null), n.__decorate([p.autobind], o.prototype, "findAndReplace", null), n.__decorate([p.autobind], o.prototype, "findAndSelect", null), n.__decorate([p.autobind], o.prototype, "find", null), n.__decorate([(0, p.watch)(":afterGetValueFromEditor")], o.prototype, "onAfterGetValueFromEditor", null), o;
  12440. }(h.Plugin);
  12441. t.search = f, s.pluginSystem.add("search", f);
  12442. }, 72235: function(_, t, e) {
  12443. Object.defineProperty(t, "__esModule", { value: !0 }), t.UISearch = void 0;
  12444. var n = e(20255);
  12445. e(88582);
  12446. var v = e(2074), h = e(40332), p = e(86893), d = e(86893), a = e(43441), s = e(64968), u = function(f) {
  12447. function l(o) {
  12448. var r = f.call(this, o) || this;
  12449. r.selInfo = null, r._currentIndex = 0, r.isOpened = !1;
  12450. var i = (0, h.refs)(r.container), c = i.replace, m = i.cancel, y = i.next, g = i.prev, b = i.replaceBtn, w = i.current, C = i.count;
  12451. return r.queryInput = i.query, r.replaceInput = c, r.closeButton = m, r.replaceButton = b, r.currentBox = w, r.countBox = C, o.e.on(r.closeButton, "pointerdown", function() {
  12452. return r.close(), !1;
  12453. }).on(r.queryInput, "input", function() {
  12454. r.currentIndex = 0;
  12455. }).on(r.queryInput, "pointerdown", function() {
  12456. o.s.isFocused() && (o.s.removeMarkers(), r.selInfo = o.s.save());
  12457. }).on(r.replaceButton, "pointerdown", function() {
  12458. return o.e.fire(r, "pressReplaceButton"), !1;
  12459. }).on(y, "pointerdown", function() {
  12460. return o.e.fire("searchNext"), !1;
  12461. }).on(g, "pointerdown", function() {
  12462. return o.e.fire("searchPrevious"), !1;
  12463. }).on(r.queryInput, "input", function() {
  12464. r.setMod("empty-query", !(0, h.trim)(r.queryInput.value).length);
  12465. }).on(r.queryInput, "keydown", r.j.async.debounce(function(S) {
  12466. S.key === d.KEY_ENTER ? (S.preventDefault(), S.stopImmediatePropagation(), o.e.fire("searchNext") && r.close()) : o.e.fire(r, "needUpdateCounters");
  12467. }, r.j.defaultTimeout)), r;
  12468. }
  12469. return n.__extends(l, f), l.prototype.className = function() {
  12470. return "UISearch";
  12471. }, l.prototype.render = function() {
  12472. return `<div>
  12473. <div class="&__box">
  12474. <div class="&__inputs">
  12475. <input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>
  12476. <input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>
  12477. </div>
  12478. <div class="&__counts">
  12479. <span data-ref="counter-box">
  12480. <span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>
  12481. </span>
  12482. </div>
  12483. <div class="&__buttons">
  12484. <button data-ref="next" tabindex="0" type="button">`.concat(v.Icon.get("angle-down"), `</button>
  12485. <button data-ref="prev" tabindex="0" type="button">`).concat(v.Icon.get("angle-up"), `</button>
  12486. <button data-ref="cancel" tabindex="0" type="button">`).concat(v.Icon.get("cancel"), `</button>
  12487. <button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
  12488. </div>
  12489. </div>
  12490. </div>`);
  12491. }, Object.defineProperty(l.prototype, "currentIndex", { get: function() {
  12492. return this._currentIndex;
  12493. }, set: function(o) {
  12494. this._currentIndex = o, this.currentBox.innerText = o.toString();
  12495. }, enumerable: !1, configurable: !0 }), Object.defineProperty(l.prototype, "count", { set: function(o) {
  12496. this.countBox.innerText = o.toString();
  12497. }, enumerable: !1, configurable: !0 }), Object.defineProperty(l.prototype, "query", { get: function() {
  12498. return this.queryInput.value;
  12499. }, enumerable: !1, configurable: !0 }), Object.defineProperty(l.prototype, "replace", { get: function() {
  12500. return this.replaceInput.value;
  12501. }, enumerable: !1, configurable: !0 }), l.prototype.onEditorKeyDown = function(o) {
  12502. if (this.isOpened) {
  12503. var r = this.j;
  12504. if (r.getRealMode() === p.MODE_WYSIWYG) switch (o.key) {
  12505. case d.KEY_ESC:
  12506. this.close();
  12507. break;
  12508. case d.KEY_F3:
  12509. this.queryInput.value && (r.e.fire(o.shiftKey ? "searchPrevious" : "searchNext"), o.preventDefault());
  12510. }
  12511. }
  12512. }, l.prototype.open = function(o, r, i) {
  12513. i === void 0 && (i = !1), this.isOpened || (this.j.workplace.appendChild(this.container), this.isOpened = !0), this.calcSticky(this.j.e.fire("getStickyState.sticky") || !1), this.j.e.fire("hidePopup"), this.setMod("replace", i);
  12514. var c = o != null ? o : (this.j.s.sel || "").toString();
  12515. c && (this.queryInput.value = c), r && (this.replaceInput.value = r), this.setMod("empty-query", !c.length), this.j.e.fire(this, "needUpdateCounters"), c ? this.queryInput.select() : this.queryInput.focus();
  12516. }, l.prototype.close = function() {
  12517. this.isOpened && (this.j.s.restore(), s.Dom.safeRemove(this.container), this.isOpened = !1, this.j.e.fire(this, "afterClose"));
  12518. }, l.prototype.calcSticky = function(o) {
  12519. if (this.isOpened) if (this.setMod("sticky", o), o) {
  12520. var r = (0, h.position)(this.j.toolbarContainer);
  12521. (0, h.css)(this.container, { top: r.top + r.height, left: r.left + r.width });
  12522. } else (0, h.css)(this.container, { top: null, left: null });
  12523. }, n.__decorate([(0, a.watch)([":keydown", "queryInput:keydown"])], l.prototype, "onEditorKeyDown", null), n.__decorate([a.autobind], l.prototype, "open", null), n.__decorate([a.autobind], l.prototype, "close", null), n.__decorate([(0, a.watch)(":toggleSticky")], l.prototype, "calcSticky", null), n.__decorate([a.component], l);
  12524. }(v.UIElement);
  12525. t.UISearch = u;
  12526. }, 14189: function(_, t, e) {
  12527. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.tableAllowCellSelection = !0;
  12528. }, 37458: function(_, t, e) {
  12529. Object.defineProperty(t, "__esModule", { value: !0 }), t.selectCells = void 0;
  12530. var n = e(20255), v = e(57549), h = e(87837), p = e(24263), d = e(40332), a = e(86893), s = e(43441), u = e(17332);
  12531. e(14189);
  12532. var f = "table_processor_observer", l = "onMoveTableSelectCell", o = function(r) {
  12533. function i() {
  12534. var c = r !== null && r.apply(this, arguments) || this;
  12535. return c.requires = ["select"], c.selectedCell = null, c.isSelectionMode = !1, c;
  12536. }
  12537. return n.__extends(i, r), Object.defineProperty(i.prototype, "module", { get: function() {
  12538. return this.j.getInstance("Table", this.j.o);
  12539. }, enumerable: !1, configurable: !0 }), i.prototype.afterInit = function(c) {
  12540. var m = this;
  12541. c.o.tableAllowCellSelection && c.e.on("keydown.select-cells", function(y) {
  12542. y.key === a.KEY_TAB && m.unselectCells();
  12543. }).on("beforeCommand.select-cells", this.onExecCommand).on("afterCommand.select-cells", this.onAfterCommand).on(["clickEditor", "mousedownTd", "mousedownTh", "touchstartTd", "touchstartTh"].map(function(y) {
  12544. return y + ".select-cells";
  12545. }).join(" "), this.onStartSelection).on("clickTr clickTbody", function() {
  12546. var y, g = m.module.getAllSelectedCells().length;
  12547. if (g) return g > 1 && ((y = m.j.s.sel) === null || y === void 0 || y.removeAllRanges()), !1;
  12548. });
  12549. }, i.prototype.onStartSelection = function(c) {
  12550. if (!this.j.o.readonly && (this.unselectCells(), c !== this.j.editor)) {
  12551. var m = p.Dom.closest(c, "table", this.j.editor);
  12552. if (c && m) return c.firstChild || c.appendChild(this.j.createInside.element("br")), this.isSelectionMode = !0, this.selectedCell = c, this.module.addSelection(c), this.j.e.on(m, "mousemove.select-cells touchmove.select-cells", this.j.async.throttle(this.onMove.bind(this, m), { label: l, timeout: this.j.defaultTimeout / 2 })).on(m, "mouseup.select-cells touchend.select-cells", this.onStopSelection.bind(this, m)), !1;
  12553. }
  12554. }, i.prototype.onOutsideClick = function() {
  12555. this.selectedCell = null, this.onRemoveSelection();
  12556. }, i.prototype.onChange = function() {
  12557. this.j.isLocked || this.isSelectionMode || this.onRemoveSelection();
  12558. }, i.prototype.onMove = function(c, m) {
  12559. var y, g = this;
  12560. if ((!this.j.o.readonly || this.j.isLocked) && !this.j.isLockedNotBy(f)) {
  12561. var b = this.j.ed.elementFromPoint(m.clientX, m.clientY);
  12562. if (b) {
  12563. var w = p.Dom.closest(b, ["td", "th"], c);
  12564. if (w && this.selectedCell) {
  12565. w !== this.selectedCell && this.j.lock(f), this.unselectCells();
  12566. for (var C = h.Table.getSelectedBound(c, [w, this.selectedCell]), S = h.Table.formalMatrix(c), j = C[0][0]; C[1][0] >= j; j += 1) for (var E = C[0][1]; C[1][1] >= E; E += 1) this.module.addSelection(S[j][E]);
  12567. var x;
  12568. this.module.getAllSelectedCells().length > 1 && ((y = this.j.s.sel) === null || y === void 0 || y.removeAllRanges()), this.j.e.fire("hidePopup"), m.stopPropagation(), x = g.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>'), w.appendChild(x), g.j.async.setTimeout(function() {
  12569. var k;
  12570. (k = x.parentNode) === null || k === void 0 || k.removeChild(x);
  12571. }, g.j.defaultTimeout / 5);
  12572. }
  12573. }
  12574. }
  12575. }, i.prototype.onRemoveSelection = function(c) {
  12576. var m;
  12577. if (!(!((m = c == null ? void 0 : c.buffer) === null || m === void 0) && m.actionTrigger) && !this.selectedCell && this.module.getAllSelectedCells().length) return this.j.unlock(), this.unselectCells(), void this.j.e.fire("hidePopup", "cells");
  12578. this.isSelectionMode = !1, this.selectedCell = null;
  12579. }, i.prototype.onStopSelection = function(c, m) {
  12580. var y = this;
  12581. if (this.selectedCell) {
  12582. this.isSelectionMode = !1, this.j.unlock();
  12583. var g = this.j.ed.elementFromPoint(m.clientX, m.clientY);
  12584. if (g) {
  12585. var b = p.Dom.closest(g, ["td", "th"], c);
  12586. if (b) {
  12587. var w = p.Dom.closest(b, "table", c);
  12588. if (!w || w === c) {
  12589. var C = h.Table.getSelectedBound(c, [b, this.selectedCell]), S = h.Table.formalMatrix(c), j = S[C[1][0]][C[1][1]], E = S[C[0][0]][C[0][1]];
  12590. this.j.e.fire("showPopup", c, function() {
  12591. var x = (0, d.position)(E, y.j), k = (0, d.position)(j, y.j);
  12592. return { left: x.left, top: x.top, width: k.left - x.left + k.width, height: k.top - x.top + k.height };
  12593. }, "cells"), (0, d.$$)("table", this.j.editor).forEach(function(x) {
  12594. y.j.e.off(x, "mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells");
  12595. }), this.j.async.clearTimeout(l);
  12596. }
  12597. }
  12598. }
  12599. }
  12600. }, i.prototype.unselectCells = function(c) {
  12601. var m = this.module, y = m.getAllSelectedCells();
  12602. y.length && y.forEach(function(g) {
  12603. c && c === g || m.removeSelection(g);
  12604. });
  12605. }, i.prototype.onExecCommand = function(c) {
  12606. if (/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(c)) {
  12607. c = c.replace("table", "");
  12608. var m = this.module.getAllSelectedCells();
  12609. if (m.length) {
  12610. var y = n.__read(m, 1)[0];
  12611. if (!y) return;
  12612. var g = p.Dom.closest(y, "table", this.j.editor);
  12613. if (!g) return;
  12614. switch (c) {
  12615. case "splitv":
  12616. h.Table.splitVertical(g, this.j);
  12617. break;
  12618. case "splitg":
  12619. h.Table.splitHorizontal(g, this.j);
  12620. break;
  12621. case "merge":
  12622. h.Table.mergeSelected(g, this.j);
  12623. break;
  12624. case "empty":
  12625. m.forEach(function(w) {
  12626. return p.Dom.detach(w);
  12627. });
  12628. break;
  12629. case "bin":
  12630. p.Dom.safeRemove(g);
  12631. break;
  12632. case "binrow":
  12633. new Set(m.map(function(w) {
  12634. return w.parentNode;
  12635. })).forEach(function(w) {
  12636. h.Table.removeRow(g, w.rowIndex);
  12637. });
  12638. break;
  12639. case "bincolumn":
  12640. var b = /* @__PURE__ */ new Set();
  12641. m.reduce(function(w, C) {
  12642. return b.has(C.cellIndex) || (w.push(C), b.add(C.cellIndex)), w;
  12643. }, []).forEach(function(w) {
  12644. h.Table.removeColumn(g, w.cellIndex);
  12645. });
  12646. break;
  12647. case "addcolumnafter":
  12648. case "addcolumnbefore":
  12649. h.Table.appendColumn(g, y.cellIndex, c === "addcolumnafter", this.j.createInside);
  12650. break;
  12651. case "addrowafter":
  12652. case "addrowbefore":
  12653. h.Table.appendRow(g, y.parentNode, c === "addrowafter", this.j.createInside);
  12654. }
  12655. }
  12656. return !1;
  12657. }
  12658. }, i.prototype.onAfterCommand = function(c) {
  12659. /^justify/.test(c) && this.module.getAllSelectedCells().forEach(function(m) {
  12660. return (0, d.alignElement)(c, m);
  12661. });
  12662. }, i.prototype.beforeDestruct = function(c) {
  12663. this.onRemoveSelection(), c.e.off(".select-cells");
  12664. }, n.__decorate([s.autobind], i.prototype, "onStartSelection", null), n.__decorate([(0, s.watch)(":outsideClick")], i.prototype, "onOutsideClick", null), n.__decorate([(0, s.watch)(":change")], i.prototype, "onChange", null), n.__decorate([s.autobind], i.prototype, "onRemoveSelection", null), n.__decorate([s.autobind], i.prototype, "onStopSelection", null), n.__decorate([s.autobind], i.prototype, "onExecCommand", null), n.__decorate([s.autobind], i.prototype, "onAfterCommand", null), i;
  12665. }(v.Plugin);
  12666. t.selectCells = o, u.pluginSystem.add("selectCells", o);
  12667. }, 33100: function(_, t, e) {
  12668. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.select = { normalizeSelectionBeforeCutAndCopy: !1 };
  12669. }, 95323: function(_, t, e) {
  12670. Object.defineProperty(t, "__esModule", { value: !0 }), t.select = void 0;
  12671. var n = e(20255), v = e(57549), h = e(43441), p = e(26596), d = e(24263), a = e(2074), s = e(17332);
  12672. e(33100);
  12673. var u = function(f) {
  12674. function l() {
  12675. var o = f !== null && f.apply(this, arguments) || this;
  12676. return o.proxyEventsList = ["click", "mousedown", "touchstart", "mouseup", "touchend"], o;
  12677. }
  12678. return n.__extends(l, f), l.prototype.afterInit = function(o) {
  12679. var r = this;
  12680. this.proxyEventsList.forEach(function(i) {
  12681. o.e.on(i + ".select", r.onStartSelection);
  12682. });
  12683. }, l.prototype.beforeDestruct = function(o) {
  12684. var r = this;
  12685. this.proxyEventsList.forEach(function(i) {
  12686. o.e.on(i + ".select", r.onStartSelection);
  12687. });
  12688. }, l.prototype.onStartSelection = function(o) {
  12689. for (var r, i = this.j, c = o.target; r === void 0 && c && c !== i.editor; ) r = i.e.fire((0, p.camelCase)(o.type + "_" + c.nodeName.toLowerCase()), c, o), c = c.parentElement;
  12690. o.type === "click" && r === void 0 && c === i.editor && i.e.fire(o.type + "Editor", c, o);
  12691. }, l.prototype.onOutsideClick = function(o) {
  12692. var r = this, i = o.target;
  12693. d.Dom.up(i, function(c) {
  12694. return c === r.j.editor;
  12695. }) || a.UIElement.closestElement(i, a.Popup) || this.j.e.fire("outsideClick", o);
  12696. }, l.prototype.beforeCommandCut = function(o) {
  12697. var r = this.j.s;
  12698. if (o === "cut" && !r.isCollapsed()) {
  12699. var i = r.current();
  12700. i && d.Dom.isOrContains(this.j.editor, i) && this.onCopyNormalizeSelectionBound();
  12701. }
  12702. }, l.prototype.onCopyNormalizeSelectionBound = function(o) {
  12703. var r = this.j, i = r.editor;
  12704. r.o.select.normalizeSelectionBeforeCutAndCopy && !r.s.isCollapsed() && (!o || o.isTrusted && d.Dom.isNode(o.target) && d.Dom.isOrContains(i, o.target)) && this.jodit.s.expandSelection();
  12705. }, n.__decorate([h.autobind], l.prototype, "onStartSelection", null), n.__decorate([(0, h.watch)("ow:click")], l.prototype, "onOutsideClick", null), n.__decorate([(0, h.watch)([":beforeCommand"])], l.prototype, "beforeCommandCut", null), n.__decorate([(0, h.watch)([":copy", ":cut"])], l.prototype, "onCopyNormalizeSelectionBound", null), l;
  12706. }(v.Plugin);
  12707. t.select = u, s.pluginSystem.add("select", u);
  12708. }, 53387: function(_, t, e) {
  12709. Object.defineProperty(t, "__esModule", { value: !0 });
  12710. var n = e(93166);
  12711. n.Config.prototype.minWidth = 200, n.Config.prototype.maxWidth = "100%", n.Config.prototype.minHeight = 200, n.Config.prototype.maxHeight = "auto", n.Config.prototype.saveHeightInStorage = !1;
  12712. }, 71003: function(_, t, e) {
  12713. Object.defineProperty(t, "__esModule", { value: !0 }), t.size = void 0;
  12714. var n = e(20255);
  12715. e(30962);
  12716. var v = e(40332), h = e(85605), p = e(43441), d = e(17332);
  12717. e(53387);
  12718. var a = function(s) {
  12719. function u() {
  12720. var f = s !== null && s.apply(this, arguments) || this;
  12721. return f.resizeWorkspaces = f.j.async.debounce(f.resizeWorkspaceImd, f.j.defaultTimeout, !0), f;
  12722. }
  12723. return n.__extends(u, s), u.prototype.afterInit = function(f) {
  12724. f.e.on("setHeight.size", this.setHeight).on("setWidth.size", this.setWidth).on("afterInit.size changePlace.size", this.initialize, { top: !0 }).on(f.ow, "load.size", this.resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size", this.resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size", this.resizeWorkspaceImd), this.initialize();
  12725. }, u.prototype.initialize = function() {
  12726. var f = this.j;
  12727. if (!f.o.inline) {
  12728. var l = f.o.height;
  12729. if (f.o.saveHeightInStorage && l !== "auto") {
  12730. var o = f.storage.get("height");
  12731. o && (l = o);
  12732. }
  12733. (0, v.css)(f.editor, { minHeight: "100%" }), (0, v.css)(f.container, { minHeight: f.o.minHeight, maxHeight: f.o.maxHeight, minWidth: f.o.minWidth, maxWidth: f.o.maxWidth }), this.setHeight(l), this.setWidth(f.o.width);
  12734. }
  12735. }, u.prototype.setHeight = function(f) {
  12736. if ((0, v.isNumber)(f)) {
  12737. var l = this.j.o, o = l.minHeight, r = l.maxHeight;
  12738. (0, v.isNumber)(o) && o > f && (f = o), (0, v.isNumber)(r) && f > r && (f = r);
  12739. }
  12740. (0, v.css)(this.j.container, "height", f), this.j.o.saveHeightInStorage && this.j.storage.set("height", f), this.resizeWorkspaceImd();
  12741. }, u.prototype.setWidth = function(f) {
  12742. if ((0, v.isNumber)(f)) {
  12743. var l = this.j.o, o = l.minWidth, r = l.maxWidth;
  12744. (0, v.isNumber)(o) && o > f && (f = o), (0, v.isNumber)(r) && f > r && (f = r);
  12745. }
  12746. (0, v.css)(this.j.container, "width", f), this.resizeWorkspaceImd();
  12747. }, u.prototype.getNotWorkHeight = function() {
  12748. var f, l;
  12749. return (((f = this.j.toolbarContainer) === null || f === void 0 ? void 0 : f.offsetHeight) || 0) + (((l = this.j.statusbar) === null || l === void 0 ? void 0 : l.getHeight()) || 0) + 2;
  12750. }, u.prototype.resizeWorkspaceImd = function() {
  12751. if (this.j && !this.j.isDestructed && this.j.o && !this.j.o.inline && this.j.container && this.j.container.parentNode) {
  12752. var f = ((0, v.css)(this.j.container, "minHeight") || 0) - this.getNotWorkHeight();
  12753. if ((0, v.isNumber)(f) && f > 0 && ([this.j.workplace, this.j.iframe, this.j.editor].map(function(o) {
  12754. o && (0, v.css)(o, "minHeight", f);
  12755. }), this.j.e.fire("setMinHeight", f)), (0, v.isNumber)(this.j.o.maxHeight)) {
  12756. var l = this.j.o.maxHeight - this.getNotWorkHeight();
  12757. [this.j.workplace, this.j.iframe, this.j.editor].map(function(o) {
  12758. o && (0, v.css)(o, "maxHeight", l);
  12759. }), this.j.e.fire("setMaxHeight", l);
  12760. }
  12761. this.j.container && (0, v.css)(this.j.workplace, "height", this.j.o.height !== "auto" || this.j.isFullSize ? this.j.container.offsetHeight - this.getNotWorkHeight() : "auto");
  12762. }
  12763. }, u.prototype.beforeDestruct = function(f) {
  12764. f.e.off(f.ow, "load.size", this.resizeWorkspaces).off(".size");
  12765. }, n.__decorate([p.autobind], u.prototype, "resizeWorkspaceImd", null), n.__decorate([p.autobind], u);
  12766. }(h.Plugin);
  12767. t.size = a, d.pluginSystem.add("size", a);
  12768. }, 13985: function(_, t, e) {
  12769. Object.defineProperty(t, "__esModule", { value: !0 });
  12770. var n = e(93166), v = e(86893), h = e(77904);
  12771. n.Config.prototype.beautifyHTML = !v.IS_IE, n.Config.prototype.sourceEditor = "ace", n.Config.prototype.sourceEditorNativeOptions = { showGutter: !0, theme: "ace/theme/idle_fingers", mode: "ace/mode/html", wrap: !0, highlightActiveLine: !0 }, n.Config.prototype.sourceEditorCDNUrlsJS = ["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"], n.Config.prototype.beautifyHTMLCDNUrlsJS = ["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js", "https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"], h.Icon.set("source", e(9342)), n.Config.prototype.controls.source = { mode: v.MODE_SPLIT, exec: function(p) {
  12772. p.toggleMode();
  12773. }, isActive: function(p) {
  12774. return p.getRealMode() === v.MODE_SOURCE;
  12775. }, tooltip: "Change mode" };
  12776. }, 34186: function(_, t, e) {
  12777. Object.defineProperty(t, "__esModule", { value: !0 }), t.AceEditor = void 0;
  12778. var n = e(20255), v = e(86893), h = e(40332), p = function(d) {
  12779. function a() {
  12780. var s = d !== null && d.apply(this, arguments) || this;
  12781. return s.className = "jodit_ace_editor", s.proxyOnBlur = function(u) {
  12782. s.j.e.fire("blur", u);
  12783. }, s.proxyOnFocus = function(u) {
  12784. s.j.e.fire("focus", u);
  12785. }, s.proxyOnMouseDown = function(u) {
  12786. s.j.e.fire("mousedown", u);
  12787. }, s;
  12788. }
  12789. return n.__extends(a, d), a.prototype.aceExists = function() {
  12790. return this.j.ow.ace !== void 0;
  12791. }, a.prototype.getLastColumnIndex = function(s) {
  12792. return this.instance.session.getLine(s).length;
  12793. }, a.prototype.getLastColumnIndices = function() {
  12794. for (var s = this.instance.session.getLength(), u = [], f = 0, l = 0; s > l; l++) f += this.getLastColumnIndex(l), l > 0 && (f += 1), u[l] = f;
  12795. return u;
  12796. }, a.prototype.getRowColumnIndices = function(s) {
  12797. var u = this.getLastColumnIndices();
  12798. if (u[0] >= s) return { row: 0, column: s };
  12799. for (var f = 1, l = 1; u.length > l; l++) s > u[l] && (f = l + 1);
  12800. return { row: f, column: s - u[f - 1] - 1 };
  12801. }, a.prototype.setSelectionRangeIndices = function(s, u) {
  12802. var f = this.getRowColumnIndices(s), l = this.getRowColumnIndices(u);
  12803. this.instance.getSelection().setSelectionRange({ start: f, end: l });
  12804. }, a.prototype.getIndexByRowColumn = function(s, u) {
  12805. return this.getLastColumnIndices()[s] - this.getLastColumnIndex(s) + u;
  12806. }, a.prototype.init = function(s) {
  12807. var u = this, f = function() {
  12808. if (u.instance === void 0 && u.aceExists()) {
  12809. var l = u.j.c.div("jodit-source__mirror-fake");
  12810. u.container.appendChild(l), u.instance = s.ow.ace.edit(l), u.instance.setTheme(s.o.sourceEditorNativeOptions.theme), u.instance.renderer.setShowGutter(s.o.sourceEditorNativeOptions.showGutter), u.instance.getSession().setMode(s.o.sourceEditorNativeOptions.mode), u.instance.setHighlightActiveLine(s.o.sourceEditorNativeOptions.highlightActiveLine), u.instance.getSession().setUseWrapMode(!0), u.instance.setOption("indentedSoftWrap", !1), u.instance.setOption("wrap", s.o.sourceEditorNativeOptions.wrap), u.instance.getSession().setUseWorker(!1), u.instance.$blockScrolling = 1 / 0, u.instance.on("change", u.toWYSIWYG), u.instance.on("focus", u.proxyOnFocus), u.instance.on("mousedown", u.proxyOnMouseDown), u.instance.on("blur", u.proxyOnBlur), s.getRealMode() !== v.MODE_WYSIWYG && u.setValue(u.getValue());
  12811. var o = u.j.async.debounce(function() {
  12812. s.isInDestruct || (u.instance.setOption("maxLines", s.o.height !== "auto" ? s.workplace.offsetHeight / u.instance.renderer.lineHeight : 1 / 0), u.instance.resize());
  12813. }, 2 * u.j.defaultTimeout);
  12814. s.e.on("afterResize afterSetMode", o), o(), u.onReady();
  12815. }
  12816. };
  12817. s.e.on("afterSetMode", function() {
  12818. s.getRealMode() !== v.MODE_SOURCE && s.getMode() !== v.MODE_SPLIT || (u.fromWYSIWYG(), f());
  12819. }), f(), this.aceExists() || (0, h.loadNext)(s, s.o.sourceEditorCDNUrlsJS).then(function() {
  12820. s.isInDestruct || f();
  12821. }).catch(function() {
  12822. return null;
  12823. });
  12824. }, a.prototype.destruct = function() {
  12825. var s, u;
  12826. this.instance.off("change", this.toWYSIWYG), this.instance.off("focus", this.proxyOnFocus), this.instance.off("mousedown", this.proxyOnMouseDown), this.instance.destroy(), (u = (s = this.j) === null || s === void 0 ? void 0 : s.events) === null || u === void 0 || u.off("aceInited.source");
  12827. }, a.prototype.setValue = function(s) {
  12828. if (!this.j.o.editHTMLDocumentMode && this.j.o.beautifyHTML) {
  12829. var u = this.j.e.fire("beautifyHTML", s);
  12830. (0, h.isString)(u) && (s = u);
  12831. }
  12832. this.instance.setValue(s), this.instance.clearSelection();
  12833. }, a.prototype.getValue = function() {
  12834. return this.instance.getValue();
  12835. }, a.prototype.setReadOnly = function(s) {
  12836. this.instance.setReadOnly(s);
  12837. }, Object.defineProperty(a.prototype, "isFocused", { get: function() {
  12838. return this.instance.isFocused();
  12839. }, enumerable: !1, configurable: !0 }), a.prototype.focus = function() {
  12840. this.instance.focus();
  12841. }, a.prototype.blur = function() {
  12842. this.instance.blur();
  12843. }, a.prototype.getSelectionStart = function() {
  12844. var s = this.instance.selection.getRange();
  12845. return this.getIndexByRowColumn(s.start.row, s.start.column);
  12846. }, a.prototype.getSelectionEnd = function() {
  12847. var s = this.instance.selection.getRange();
  12848. return this.getIndexByRowColumn(s.end.row, s.end.column);
  12849. }, a.prototype.selectAll = function() {
  12850. this.instance.selection.selectAll();
  12851. }, a.prototype.insertRaw = function(s) {
  12852. var u = this.instance.selection.getCursor(), f = this.instance.session.insert(u, s);
  12853. this.instance.selection.setRange({ start: u, end: f }, !1);
  12854. }, a.prototype.setSelectionRange = function(s, u) {
  12855. this.setSelectionRangeIndices(s, u);
  12856. }, a.prototype.setPlaceHolder = function(s) {
  12857. }, a.prototype.replaceUndoManager = function() {
  12858. var s = this.jodit.history;
  12859. this.instance.commands.addCommand({ name: "Undo", bindKey: { win: "Ctrl-Z", mac: "Command-Z" }, exec: function() {
  12860. s.undo();
  12861. } }), this.instance.commands.addCommand({ name: "Redo", bindKey: { win: "Ctrl-Shift-Z", mac: "Command-Shift-Z" }, exec: function() {
  12862. s.redo();
  12863. } });
  12864. }, a;
  12865. }(e(36729).SourceEditor);
  12866. t.AceEditor = p;
  12867. }, 58633: function(_, t, e) {
  12868. Object.defineProperty(t, "__esModule", { value: !0 }), t.TextAreaEditor = void 0;
  12869. var n = e(20255), v = e(26911), h = e(24263), p = function(d) {
  12870. function a() {
  12871. var s = d !== null && d.apply(this, arguments) || this;
  12872. return s.autosize = s.j.async.debounce(function() {
  12873. s.instance.style.height = "auto", s.instance.style.height = s.instance.scrollHeight + "px";
  12874. }, s.j.defaultTimeout), s;
  12875. }
  12876. return n.__extends(a, d), a.prototype.init = function(s) {
  12877. var u = this;
  12878. this.instance = s.c.element("textarea", { class: "jodit-source__mirror" }), this.container.appendChild(this.instance), s.e.on(this.instance, "mousedown keydown touchstart input", s.async.debounce(this.toWYSIWYG, s.defaultTimeout)).on("setMinHeight.source", function(f) {
  12879. (0, v.css)(u.instance, "minHeight", f);
  12880. }).on(this.instance, "change keydown mousedown touchstart input", this.autosize).on("afterSetMode.source", this.autosize).on(this.instance, "mousedown focus", function(f) {
  12881. s.e.fire(f.type, f);
  12882. }), this.autosize(), this.onReady();
  12883. }, a.prototype.destruct = function() {
  12884. h.Dom.safeRemove(this.instance);
  12885. }, a.prototype.getValue = function() {
  12886. return this.instance.value;
  12887. }, a.prototype.setValue = function(s) {
  12888. this.instance.value = s;
  12889. }, a.prototype.insertRaw = function(s) {
  12890. var u = this.getValue();
  12891. if (0 > this.getSelectionStart()) this.setValue(u + s);
  12892. else {
  12893. var f = this.getSelectionStart(), l = this.getSelectionEnd();
  12894. this.setValue(u.substring(0, f) + s + u.substring(l, u.length));
  12895. }
  12896. }, a.prototype.getSelectionStart = function() {
  12897. return this.instance.selectionStart;
  12898. }, a.prototype.getSelectionEnd = function() {
  12899. return this.instance.selectionEnd;
  12900. }, a.prototype.setSelectionRange = function(s, u) {
  12901. u === void 0 && (u = s), this.instance.setSelectionRange(s, u);
  12902. }, Object.defineProperty(a.prototype, "isFocused", { get: function() {
  12903. return this.instance === this.j.od.activeElement;
  12904. }, enumerable: !1, configurable: !0 }), a.prototype.focus = function() {
  12905. this.instance.focus();
  12906. }, a.prototype.blur = function() {
  12907. this.instance.blur();
  12908. }, a.prototype.setPlaceHolder = function(s) {
  12909. this.instance.setAttribute("placeholder", s);
  12910. }, a.prototype.setReadOnly = function(s) {
  12911. s ? this.instance.setAttribute("readonly", "true") : this.instance.removeAttribute("readonly");
  12912. }, a.prototype.selectAll = function() {
  12913. this.instance.select();
  12914. }, a.prototype.replaceUndoManager = function() {
  12915. var s = this, u = this.jodit.history;
  12916. this.j.e.on(this.instance, "keydown", function(f) {
  12917. if ((f.ctrlKey || f.metaKey) && f.key === "z") return f.shiftKey ? u.redo() : u.undo(), s.setSelectionRange(s.getValue().length), !1;
  12918. });
  12919. }, a;
  12920. }(e(36729).SourceEditor);
  12921. t.TextAreaEditor = p;
  12922. }, 52834: function(_, t, e) {
  12923. Object.defineProperty(t, "__esModule", { value: !0 });
  12924. var n = e(20255);
  12925. n.__exportStar(e(58633), t), n.__exportStar(e(34186), t);
  12926. }, 94785: function(_, t, e) {
  12927. Object.defineProperty(t, "__esModule", { value: !0 }), t.createSourceEditor = void 0;
  12928. var n = e(40332), v = e(52834);
  12929. t.createSourceEditor = function(h, p, d, a, s) {
  12930. var u;
  12931. if ((0, n.isFunction)(h)) u = h(p);
  12932. else switch (h) {
  12933. case "ace":
  12934. if (!p.o.shadowRoot) {
  12935. u = new v.AceEditor(p, d, a, s);
  12936. break;
  12937. }
  12938. default:
  12939. u = new v.TextAreaEditor(p, d, a, s);
  12940. }
  12941. return u.init(p), u.onReadyAlways(function() {
  12942. u.setReadOnly(p.o.readonly);
  12943. }), u;
  12944. };
  12945. }, 36729: function(_, t) {
  12946. Object.defineProperty(t, "__esModule", { value: !0 }), t.SourceEditor = void 0;
  12947. var e = function() {
  12948. function n(v, h, p, d) {
  12949. this.jodit = v, this.container = h, this.toWYSIWYG = p, this.fromWYSIWYG = d, this.className = "", this.isReady = !1;
  12950. }
  12951. return Object.defineProperty(n.prototype, "j", { get: function() {
  12952. return this.jodit;
  12953. }, enumerable: !1, configurable: !0 }), n.prototype.onReady = function() {
  12954. this.replaceUndoManager(), this.isReady = !0, this.j.e.fire(this, "ready");
  12955. }, n.prototype.onReadyAlways = function(v) {
  12956. var h;
  12957. this.isReady ? v() : (h = this.j.events) === null || h === void 0 || h.on(this, "ready", v);
  12958. }, n;
  12959. }();
  12960. t.SourceEditor = e;
  12961. }, 86030: function(_, t, e) {
  12962. Object.defineProperty(t, "__esModule", { value: !0 }), t.source = void 0;
  12963. var n = e(20255);
  12964. e(68197);
  12965. var v = e(86893), h = e(86893), p = e(57549), d = e(24263), a = e(40332), s = e(43441), u = e(17332), f = e(94785);
  12966. e(13985);
  12967. var l = function(o) {
  12968. function r() {
  12969. var i = o !== null && o.apply(this, arguments) || this;
  12970. return i.buttons = [{ name: "source", group: "source" }], i.__lock = !1, i.__oldMirrorValue = "", i.tempMarkerStart = "{start-jodit-selection}", i.tempMarkerStartReg = /{start-jodit-selection}/g, i.tempMarkerEnd = "{end-jodit-selection}", i.tempMarkerEndReg = /{end-jodit-selection}/g, i.getSelectionStart = function() {
  12971. var c, m;
  12972. return (m = (c = i.sourceEditor) === null || c === void 0 ? void 0 : c.getSelectionStart()) !== null && m !== void 0 ? m : 0;
  12973. }, i.getSelectionEnd = function() {
  12974. var c, m;
  12975. return (m = (c = i.sourceEditor) === null || c === void 0 ? void 0 : c.getSelectionEnd()) !== null && m !== void 0 ? m : 0;
  12976. }, i;
  12977. }
  12978. return n.__extends(r, o), r.prototype.onInsertHTML = function(i) {
  12979. var c;
  12980. if (!this.j.o.readonly && !this.j.isEditorMode()) return (c = this.sourceEditor) === null || c === void 0 || c.insertRaw(i), this.toWYSIWYG(), !1;
  12981. }, r.prototype.fromWYSIWYG = function(i) {
  12982. if (i === void 0 && (i = !1), !this.__lock || i === !0) {
  12983. this.__lock = !0;
  12984. var c = this.j.getEditorValue(!1, h.SOURCE_CONSUMER);
  12985. c !== this.getMirrorValue() && this.setMirrorValue(c), this.__lock = !1;
  12986. }
  12987. }, r.prototype.toWYSIWYG = function() {
  12988. if (!this.__lock) {
  12989. var i = this.getMirrorValue();
  12990. i !== this.__oldMirrorValue && (this.__lock = !0, this.j.value = i, this.__lock = !1, this.__oldMirrorValue = i);
  12991. }
  12992. }, r.prototype.getNormalPosition = function(i, c) {
  12993. for (c = c.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im, function(y) {
  12994. for (var g = "", b = 0; y.length > b; b += 1) g += h.INVISIBLE_SPACE;
  12995. return g;
  12996. }); i > 0 && c[i] === h.INVISIBLE_SPACE; ) i--;
  12997. for (var m = i; m > 0; ) {
  12998. if (c[--m] === "<" && c[m + 1] !== void 0 && c[m + 1].match(/[\w/]+/i)) return m;
  12999. if (c[m] === ">") return i;
  13000. }
  13001. return i;
  13002. }, r.prototype.clnInv = function(i) {
  13003. return i.replace(v.INVISIBLE_SPACE_REG_EXP(), "");
  13004. }, r.prototype.onSelectAll = function(i) {
  13005. var c;
  13006. if (i.toLowerCase() === "selectall" && this.j.getRealMode() === h.MODE_SOURCE) return (c = this.sourceEditor) === null || c === void 0 || c.selectAll(), !1;
  13007. }, r.prototype.getMirrorValue = function() {
  13008. var i;
  13009. return ((i = this.sourceEditor) === null || i === void 0 ? void 0 : i.getValue()) || "";
  13010. }, r.prototype.setMirrorValue = function(i) {
  13011. var c;
  13012. (c = this.sourceEditor) === null || c === void 0 || c.setValue(i);
  13013. }, r.prototype.setFocusToMirror = function() {
  13014. var i;
  13015. (i = this.sourceEditor) === null || i === void 0 || i.focus();
  13016. }, r.prototype.saveSelection = function() {
  13017. if (this.j.getRealMode() === v.MODE_WYSIWYG) this.j.s.save(), this.j.synchronizeValues(), this.fromWYSIWYG(!0);
  13018. else {
  13019. if (this.j.o.editHTMLDocumentMode) return;
  13020. var i = this.getMirrorValue();
  13021. if (this.getSelectionStart() === this.getSelectionEnd()) {
  13022. var c = this.j.s.marker(!0), m = this.getNormalPosition(this.getSelectionStart(), this.getMirrorValue());
  13023. this.setMirrorValue(i.substring(0, m) + this.clnInv(c.outerHTML) + i.substring(m));
  13024. } else {
  13025. var y = this.j.s.marker(!0), g = this.j.s.marker(!1), b = (m = this.getNormalPosition(this.getSelectionStart(), i), this.getNormalPosition(this.getSelectionEnd(), i));
  13026. this.setMirrorValue(i.substring(0, m) + this.clnInv(y.outerHTML) + i.substring(m, b - m) + this.clnInv(g.outerHTML) + i.substring(b));
  13027. }
  13028. this.toWYSIWYG();
  13029. }
  13030. }, r.prototype.removeSelection = function() {
  13031. if (this.j.getRealMode() === v.MODE_WYSIWYG) return this.__lock = !0, this.j.s.restore(), void (this.__lock = !1);
  13032. var i = this.getMirrorValue(), c = 0, m = 0;
  13033. try {
  13034. if (i = i.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim, this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim, this.tempMarkerEnd), !this.j.o.editHTMLDocumentMode && this.j.o.beautifyHTML) {
  13035. var y = this.j.e.fire("beautifyHTML", i);
  13036. (0, a.isString)(y) && (i = y);
  13037. }
  13038. if (m = c = i.indexOf(this.tempMarkerStart), i = i.replace(this.tempMarkerStartReg, ""), c !== -1) {
  13039. var g = i.indexOf(this.tempMarkerEnd);
  13040. g !== -1 && (m = g);
  13041. }
  13042. i = i.replace(this.tempMarkerEndReg, "");
  13043. } finally {
  13044. i = i.replace(this.tempMarkerEndReg, "").replace(this.tempMarkerStartReg, "");
  13045. }
  13046. this.setMirrorValue(i), this.setMirrorSelectionRange(c, m), this.toWYSIWYG(), this.setFocusToMirror();
  13047. }, r.prototype.setMirrorSelectionRange = function(i, c) {
  13048. var m;
  13049. (m = this.sourceEditor) === null || m === void 0 || m.setSelectionRange(i, c);
  13050. }, r.prototype.onReadonlyReact = function() {
  13051. var i;
  13052. (i = this.sourceEditor) === null || i === void 0 || i.setReadOnly(this.j.o.readonly);
  13053. }, r.prototype.afterInit = function(i) {
  13054. var c = this;
  13055. if (this.mirrorContainer = i.c.div("jodit-source"), i.workplace.appendChild(this.mirrorContainer), i.e.on("afterAddPlace changePlace afterInit", function() {
  13056. i.workplace.appendChild(c.mirrorContainer);
  13057. }), this.sourceEditor = (0, f.createSourceEditor)("area", i, this.mirrorContainer, this.toWYSIWYG, this.fromWYSIWYG), i.e.on(i.ow, "keydown", function(y) {
  13058. var g;
  13059. y.key === h.KEY_ESC && (!((g = c.sourceEditor) === null || g === void 0) && g.isFocused) && c.sourceEditor.blur();
  13060. }), this.onReadonlyReact(), i.e.on("placeholder.source", function(y) {
  13061. var g;
  13062. (g = c.sourceEditor) === null || g === void 0 || g.setPlaceHolder(y);
  13063. }).on("change.source", this.syncValueFromWYSIWYG).on("beautifyHTML", function(y) {
  13064. return y;
  13065. }), i.o.beautifyHTML) {
  13066. var m = function() {
  13067. var y, g = i.ow.html_beautify;
  13068. return !(!g || i.isInDestruct || ((y = i.events) === null || y === void 0 || y.off("beautifyHTML").on("beautifyHTML", function(b) {
  13069. return g(b);
  13070. }), 0));
  13071. };
  13072. m() || (0, a.loadNext)(i, i.o.beautifyHTMLCDNUrlsJS).then(m);
  13073. }
  13074. this.syncValueFromWYSIWYG(!0), this.initSourceEditor(i);
  13075. }, r.prototype.syncValueFromWYSIWYG = function(i) {
  13076. i === void 0 && (i = !1);
  13077. var c = this.j;
  13078. c.getMode() !== h.MODE_SPLIT && c.getMode() !== h.MODE_SOURCE || this.fromWYSIWYG(i);
  13079. }, r.prototype.initSourceEditor = function(i) {
  13080. var c, m = this;
  13081. if (i.o.sourceEditor !== "area") {
  13082. var y = (0, f.createSourceEditor)(i.o.sourceEditor, i, this.mirrorContainer, this.toWYSIWYG, this.fromWYSIWYG);
  13083. y.onReadyAlways(function() {
  13084. var g, b;
  13085. (g = m.sourceEditor) === null || g === void 0 || g.destruct(), m.sourceEditor = y, m.syncValueFromWYSIWYG(!0), (b = i.events) === null || b === void 0 || b.fire("sourceEditorReady", i);
  13086. });
  13087. } else (c = this.sourceEditor) === null || c === void 0 || c.onReadyAlways(function() {
  13088. var g;
  13089. m.syncValueFromWYSIWYG(!0), (g = i.events) === null || g === void 0 || g.fire("sourceEditorReady", i);
  13090. });
  13091. }, r.prototype.beforeDestruct = function() {
  13092. this.sourceEditor && (this.sourceEditor.destruct(), delete this.sourceEditor), d.Dom.safeRemove(this.mirrorContainer);
  13093. }, n.__decorate([(0, s.watch)(":insertHTML.source")], r.prototype, "onInsertHTML", null), n.__decorate([s.autobind], r.prototype, "fromWYSIWYG", null), n.__decorate([s.autobind], r.prototype, "toWYSIWYG", null), n.__decorate([s.autobind], r.prototype, "getNormalPosition", null), n.__decorate([(0, s.watch)(":beforeCommand.source")], r.prototype, "onSelectAll", null), n.__decorate([(0, s.watch)(":beforeSetMode.source")], r.prototype, "saveSelection", null), n.__decorate([(0, s.watch)(":afterSetMode.source")], r.prototype, "removeSelection", null), n.__decorate([s.autobind], r.prototype, "setMirrorSelectionRange", null), n.__decorate([(0, s.watch)(":readonly.source")], r.prototype, "onReadonlyReact", null), n.__decorate([s.autobind], r.prototype, "syncValueFromWYSIWYG", null), r;
  13094. }(p.Plugin);
  13095. t.source = l, u.pluginSystem.add("source", l);
  13096. }, 50876: function(_, t, e) {
  13097. Object.defineProperty(t, "__esModule", { value: !0 });
  13098. var n = e(93166), v = e(77904);
  13099. n.Config.prototype.spellcheck = !1, v.Icon.set("spellcheck", e(69546)), n.Config.prototype.controls.spellcheck = { isActive: function(h) {
  13100. return h.o.spellcheck;
  13101. }, icon: e(69546), name: "spellcheck", command: "toggleSpellcheck", tooltip: "Spellcheck" };
  13102. }, 87882: function(_, t, e) {
  13103. Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
  13104. var n = e(5586);
  13105. t.ar = n;
  13106. var v = e(66023);
  13107. t.cs_cz = v;
  13108. var h = e(65860);
  13109. t.de = h;
  13110. var p = e(86055);
  13111. t.es = p;
  13112. var d = e(50037);
  13113. t.fa = d;
  13114. var a = e(7118);
  13115. t.fr = a;
  13116. var s = e(30298);
  13117. t.he = s;
  13118. var u = e(52107);
  13119. t.hu = u;
  13120. var f = e(31240);
  13121. t.id = f;
  13122. var l = e(4101);
  13123. t.it = l;
  13124. var o = e(69286);
  13125. t.ja = o;
  13126. var r = e(13402);
  13127. t.ko = r;
  13128. var i = e(89574);
  13129. t.nl = i;
  13130. var c = e(63630);
  13131. t.pl = c;
  13132. var m = e(72212);
  13133. t.pt_br = m;
  13134. var y = e(82570);
  13135. t.ru = y;
  13136. var g = e(19323);
  13137. t.tr = g;
  13138. var b = e(50279);
  13139. t.zh_cn = b;
  13140. var w = e(98364);
  13141. t.zh_tw = w;
  13142. }, 17002: function(_, t, e) {
  13143. Object.defineProperty(t, "__esModule", { value: !0 }), t.spellcheck = void 0;
  13144. var n = e(20255), v = e(57549), h = e(67309), p = e(43441), d = e(17332);
  13145. e(50876);
  13146. var a = function(s) {
  13147. function u(f) {
  13148. var l = s.call(this, f) || this;
  13149. return l.buttons = [{ group: "state", name: "spellcheck" }], (0, d.extendLang)(e(87882)), l;
  13150. }
  13151. return n.__extends(u, s), u.prototype.afterInit = function(f) {
  13152. var l = this;
  13153. f.e.on("afterInit afterAddPlace prepareWYSIWYGEditor", this.toggleSpellcheck), this.toggleSpellcheck(), f.registerCommand("toggleSpellcheck", function() {
  13154. l.jodit.o.spellcheck = !l.jodit.o.spellcheck, l.toggleSpellcheck(), l.j.e.fire("updateToolbar");
  13155. });
  13156. }, u.prototype.toggleSpellcheck = function() {
  13157. (0, h.attr)(this.jodit.editor, "spellcheck", this.jodit.o.spellcheck);
  13158. }, u.prototype.beforeDestruct = function(f) {
  13159. }, n.__decorate([p.autobind], u.prototype, "toggleSpellcheck", null), u;
  13160. }(v.Plugin);
  13161. t.spellcheck = a, d.pluginSystem.add("spellcheck", a);
  13162. }, 59818: function(_, t, e) {
  13163. Object.defineProperty(t, "__esModule", { value: !0 });
  13164. var n = e(93166);
  13165. n.Config.prototype.showCharsCounter = !0, n.Config.prototype.countHTMLChars = !1, n.Config.prototype.showWordsCounter = !0;
  13166. }, 1557: function(_, t, e) {
  13167. Object.defineProperty(t, "__esModule", { value: !0 }), t.stat = void 0;
  13168. var n = e(20255), v = e(86893), h = e(85605), p = e(24263), d = e(17332);
  13169. e(59818);
  13170. var a = function(s) {
  13171. function u() {
  13172. var f = s !== null && s.apply(this, arguments) || this;
  13173. return f.charCounter = null, f.wordCounter = null, f.reInit = function() {
  13174. f.j.o.showCharsCounter && f.charCounter && f.j.statusbar.append(f.charCounter, !0), f.j.o.showWordsCounter && f.wordCounter && f.j.statusbar.append(f.wordCounter, !0), f.j.e.off("change keyup", f.calc).on("change keyup", f.calc), f.calc();
  13175. }, f.calc = f.j.async.throttle(function() {
  13176. var l = f.j.text;
  13177. if (f.j.o.showCharsCounter && f.charCounter) {
  13178. var o = f.j.o.countHTMLChars ? f.j.value : l.replace((0, v.SPACE_REG_EXP)(), "");
  13179. f.charCounter.textContent = f.j.i18n("Chars: %d", o.length);
  13180. }
  13181. f.j.o.showWordsCounter && f.wordCounter && (f.wordCounter.textContent = f.j.i18n("Words: %d", l.replace((0, v.INVISIBLE_SPACE_REG_EXP)(), "").split((0, v.SPACE_REG_EXP)()).filter(function(r) {
  13182. return r.length;
  13183. }).length));
  13184. }, f.j.defaultTimeout), f;
  13185. }
  13186. return n.__extends(u, s), u.prototype.afterInit = function() {
  13187. this.charCounter = this.j.c.span(), this.wordCounter = this.j.c.span(), this.j.e.on("afterInit changePlace afterAddPlace", this.reInit), this.reInit();
  13188. }, u.prototype.beforeDestruct = function() {
  13189. p.Dom.safeRemove(this.charCounter), p.Dom.safeRemove(this.wordCounter), this.j.e.off("afterInit changePlace afterAddPlace", this.reInit), this.charCounter = null, this.wordCounter = null;
  13190. }, u;
  13191. }(h.Plugin);
  13192. t.stat = a, d.pluginSystem.add("stat", a);
  13193. }, 40790: function(_, t, e) {
  13194. Object.defineProperty(t, "__esModule", { value: !0 });
  13195. var n = e(93166);
  13196. n.Config.prototype.toolbarSticky = !0, n.Config.prototype.toolbarDisableStickyForMobile = !0, n.Config.prototype.toolbarStickyOffset = 0;
  13197. }, 82808: function(_, t, e) {
  13198. Object.defineProperty(t, "__esModule", { value: !0 }), t.sticky = void 0;
  13199. var n = e(20255);
  13200. e(60057);
  13201. var v = e(86893), h = e(85605), p = e(24263), d = e(40332), a = e(43441), s = e(17332);
  13202. e(40790);
  13203. var u = function(f) {
  13204. function l() {
  13205. var o = f !== null && f.apply(this, arguments) || this;
  13206. return o.isToolbarSticked = !1, o.createDummy = function(r) {
  13207. v.IS_IE && !o.dummyBox && (o.dummyBox = o.j.c.div(), o.dummyBox.classList.add("jodit_sticky-dummy_toolbar"), o.j.container.insertBefore(o.dummyBox, r));
  13208. }, o.addSticky = function(r) {
  13209. o.isToolbarSticked || (o.createDummy(r), o.j.container.classList.add("jodit_sticky"), o.isToolbarSticked = !0), (0, d.css)(r, { top: o.j.o.toolbarStickyOffset || null, width: o.j.container.offsetWidth - 2 }), v.IS_IE && o.dummyBox && (0, d.css)(o.dummyBox, { height: r.offsetHeight });
  13210. }, o.removeSticky = function(r) {
  13211. o.isToolbarSticked && ((0, d.css)(r, { width: "", top: "" }), o.j.container.classList.remove("jodit_sticky"), o.isToolbarSticked = !1);
  13212. }, o;
  13213. }
  13214. return n.__extends(l, f), l.prototype.afterInit = function(o) {
  13215. var r = this;
  13216. o.e.on(o.ow, "scroll.sticky wheel.sticky mousewheel.sticky resize.sticky", this.onScroll).on("getStickyState.sticky", function() {
  13217. return r.isToolbarSticked;
  13218. });
  13219. }, l.prototype.onScroll = function() {
  13220. var o = this.jodit, r = o.ow.pageYOffset || o.od.documentElement && o.od.documentElement.scrollTop || 0, i = (0, d.offset)(o.container, o, o.od, !0), c = o.getMode() === v.MODE_WYSIWYG && r + o.o.toolbarStickyOffset > i.top && i.top + i.height > r + o.o.toolbarStickyOffset && !(o.o.toolbarDisableStickyForMobile && this.isMobile());
  13221. if (o.o.toolbarSticky && o.o.toolbar === !0 && this.isToolbarSticked !== c) {
  13222. var m = o.toolbarContainer;
  13223. m && (c ? this.addSticky(m) : this.removeSticky(m)), o.e.fire("toggleSticky", c);
  13224. }
  13225. }, l.prototype.isMobile = function() {
  13226. return this.j && this.j.options && this.j.container && this.j.o.sizeSM >= this.j.container.offsetWidth;
  13227. }, l.prototype.beforeDestruct = function(o) {
  13228. this.dummyBox && p.Dom.safeRemove(this.dummyBox), o.e.off(o.ow, "scroll.sticky wheel.sticky mousewheel.sticky resize.sticky", this.onScroll).off(".sticky");
  13229. }, n.__decorate([(0, a.throttle)()], l.prototype, "onScroll", null), l;
  13230. }(h.Plugin);
  13231. t.sticky = u, s.pluginSystem.add("sticky", u);
  13232. }, 31750: function(_, t, e) {
  13233. Object.defineProperty(t, "__esModule", { value: !0 });
  13234. var n = e(93166), v = e(77904);
  13235. n.Config.prototype.usePopupForSpecialCharacters = !1, n.Config.prototype.specialCharacters = ["!", "&quot;", "#", "$", "%", "&amp;", "'", "(", ")", "*", "+", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "&lt;", "=", "&gt;", "?", "@", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "]", "^", "_", "`", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "{", "|", "}", "~", "&euro;", "&lsquo;", "&rsquo;", "&ldquo;", "&rdquo;", "&ndash;", "&mdash;", "&iexcl;", "&cent;", "&pound;", "&curren;", "&yen;", "&brvbar;", "&sect;", "&uml;", "&copy;", "&ordf;", "&laquo;", "&raquo;", "&not;", "&reg;", "&macr;", "&deg;", "&sup2;", "&sup3;", "&acute;", "&micro;", "&para;", "&middot;", "&cedil;", "&sup1;", "&ordm;", "&frac14;", "&frac12;", "&frac34;", "&iquest;", "&Agrave;", "&Aacute;", "&Acirc;", "&Atilde;", "&Auml;", "&Aring;", "&AElig;", "&Ccedil;", "&Egrave;", "&Eacute;", "&Ecirc;", "&Euml;", "&Igrave;", "&Iacute;", "&Icirc;", "&Iuml;", "&ETH;", "&Ntilde;", "&Ograve;", "&Oacute;", "&Ocirc;", "&Otilde;", "&Ouml;", "&times;", "&Oslash;", "&Ugrave;", "&Uacute;", "&Ucirc;", "&Uuml;", "&Yacute;", "&THORN;", "&szlig;", "&agrave;", "&aacute;", "&acirc;", "&atilde;", "&auml;", "&aring;", "&aelig;", "&ccedil;", "&egrave;", "&eacute;", "&ecirc;", "&euml;", "&igrave;", "&iacute;", "&icirc;", "&iuml;", "&eth;", "&ntilde;", "&ograve;", "&oacute;", "&ocirc;", "&otilde;", "&ouml;", "&divide;", "&oslash;", "&ugrave;", "&uacute;", "&ucirc;", "&uuml;", "&yacute;", "&thorn;", "&yuml;", "&OElig;", "&oelig;", "&#372;", "&#374", "&#373", "&#375;", "&sbquo;", "&#8219;", "&bdquo;", "&hellip;", "&trade;", "&#9658;", "&bull;", "&rarr;", "&rArr;", "&hArr;", "&diams;", "&asymp;"], v.Icon.set("symbols", e(43158)), n.Config.prototype.controls.symbols = { hotkeys: ["ctrl+shift+i", "cmd+shift+i"], tooltip: "Insert Special Character", popup: function(h, p, d, a) {
  13236. var s = h.e.fire("generateSpecialCharactersTable.symbols");
  13237. if (s) {
  13238. if (h.o.usePopupForSpecialCharacters) {
  13239. var u = h.c.div();
  13240. return u.classList.add("jodit-symbols"), u.appendChild(s), h.e.on(s, "close_dialog", a), u;
  13241. }
  13242. h.alert(s, "Select Special Character", void 0, "jodit-symbols").bindDestruct(h);
  13243. var f = s.querySelector("a");
  13244. f && f.focus();
  13245. }
  13246. } };
  13247. }, 21236: function(_, t, e) {
  13248. Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
  13249. var n = e(54261);
  13250. t.ar = n;
  13251. var v = e(60425);
  13252. t.cs_cz = v;
  13253. var h = e(7057);
  13254. t.de = h;
  13255. var p = e(48356);
  13256. t.es = p;
  13257. var d = e(11428);
  13258. t.fa = d;
  13259. var a = e(29084);
  13260. t.fr = a;
  13261. var s = e(22876);
  13262. t.he = s;
  13263. var u = e(20890);
  13264. t.hu = u;
  13265. var f = e(75987);
  13266. t.id = f;
  13267. var l = e(60379);
  13268. t.it = l;
  13269. var o = e(99950);
  13270. t.ja = o;
  13271. var r = e(60934);
  13272. t.ko = r;
  13273. var i = e(21994);
  13274. t.nl = i;
  13275. var c = e(38128);
  13276. t.pl = c;
  13277. var m = e(71515);
  13278. t.pt_br = m;
  13279. var y = e(58194);
  13280. t.ru = y;
  13281. var g = e(65802);
  13282. t.tr = g;
  13283. var b = e(86628);
  13284. t.zh_cn = b;
  13285. var w = e(32210);
  13286. t.zh_tw = w;
  13287. }, 48560: function(_, t, e) {
  13288. Object.defineProperty(t, "__esModule", { value: !0 }), t.symbols = void 0;
  13289. var n = e(20255);
  13290. e(33393);
  13291. var v = e(86893), h = e(85605), p = e(24263), d = e(76502), a = e(17332);
  13292. e(31750);
  13293. var s = function(u) {
  13294. function f(l) {
  13295. var o = u.call(this, l) || this;
  13296. return o.buttons = [{ name: "symbols", group: "insert" }], o.countInRow = 17, (0, a.extendLang)(e(21236)), o;
  13297. }
  13298. return n.__extends(f, u), f.prototype.afterInit = function(l) {
  13299. var o = this;
  13300. l.e.on("generateSpecialCharactersTable.symbols", function() {
  13301. for (var r = l.c.fromHTML(`<div class="jodit-symbols__container">
  13302. <div class="jodit-symbols__container_table">
  13303. <table class="jodit-symbols__table"><tbody></tbody></table>
  13304. </div>
  13305. <div class="jodit-symbols__container_preview">
  13306. <div class="jodit-symbols__preview"></div>
  13307. </div>
  13308. </div>`), i = r.querySelector(".jodit-symbols__preview"), c = r.querySelector("table").tBodies[0], m = [], y = 0; l.o.specialCharacters.length > y; ) {
  13309. for (var g = l.c.element("tr"), b = 0; o.countInRow > b && l.o.specialCharacters.length > y; b += 1, y += 1) {
  13310. var w = l.c.element("td"), C = l.c.fromHTML(`<a
  13311. data-index="`.concat(y, `"
  13312. data-index-j="`).concat(b, `"
  13313. role="option"
  13314. tabindex="-1"
  13315. >`).concat(l.o.specialCharacters[y], "</a>"));
  13316. m.push(C), w.appendChild(C), g.appendChild(w);
  13317. }
  13318. c.appendChild(g);
  13319. }
  13320. var S = o;
  13321. return l.e.on(m, "focus", function() {
  13322. i.innerHTML = this.innerHTML;
  13323. }).on(m, "mousedown", function(j) {
  13324. p.Dom.isTag(this, "a") && (l.s.focus(), l.s.insertHTML(this.innerHTML), l.e.fire(this, "close_dialog"), j && j.preventDefault(), j && j.stopImmediatePropagation());
  13325. }).on(m, "mouseenter", function() {
  13326. p.Dom.isTag(this, "a") && this.focus();
  13327. }).on(m, "keydown", function(j) {
  13328. var E = j.target;
  13329. if (p.Dom.isTag(E, "a")) {
  13330. var x = parseInt((0, d.attr)(E, "-index") || "0", 10), k = parseInt((0, d.attr)(E, "data-index-j") || "0", 10), I = void 0;
  13331. switch (j.key) {
  13332. case v.KEY_UP:
  13333. case v.KEY_DOWN:
  13334. m[I = j.key === v.KEY_UP ? x - S.countInRow : x + S.countInRow] === void 0 && (I = j.key === v.KEY_UP ? Math.floor(m.length / S.countInRow) * S.countInRow + k : k) > m.length - 1 && (I -= S.countInRow), m[I] && m[I].focus();
  13335. break;
  13336. case v.KEY_RIGHT:
  13337. case v.KEY_LEFT:
  13338. m[I = j.key === v.KEY_LEFT ? x - 1 : x + 1] === void 0 && (I = j.key === v.KEY_LEFT ? m.length - 1 : 0), m[I] && m[I].focus();
  13339. break;
  13340. case v.KEY_ENTER:
  13341. l.e.fire(E, "mousedown"), j.stopImmediatePropagation(), j.preventDefault();
  13342. }
  13343. }
  13344. }), r;
  13345. });
  13346. }, f.prototype.beforeDestruct = function(l) {
  13347. l.e.off("generateSpecialCharactersTable.symbols");
  13348. }, f;
  13349. }(h.Plugin);
  13350. t.symbols = s, a.pluginSystem.add("symbols", s);
  13351. }, 15797: function(_, t, e) {
  13352. Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(41170), t);
  13353. }, 41170: function(_, t, e) {
  13354. Object.defineProperty(t, "__esModule", { value: !0 }), t.onTabInsideLi = void 0;
  13355. var n = e(20255), v = e(24263);
  13356. e(603), t.onTabInsideLi = function(h, p) {
  13357. if (p === void 0 && (p = !1), !h.o.tab.tabInsideLiInsertNewList) return !1;
  13358. var d = n.__read(function(o) {
  13359. var r = o.createInside.fake(), i = o.createInside.fake(), c = o.s.range.cloneRange();
  13360. c.collapse(!0), c.insertNode(r);
  13361. var m = o.s.range.cloneRange();
  13362. return m.collapse(!1), m.insertNode(i), [r, i];
  13363. }(h), 2), a = d[0], s = d[1];
  13364. try {
  13365. var u = function(o, r, i) {
  13366. var c = v.Dom.closest(r, "li", o.editor);
  13367. return !!c && !(!i && !v.Dom.isTag(c.previousElementSibling, "li")) && !(i && !v.Dom.closest(c, "li", o.editor)) && c;
  13368. }(h, a, p);
  13369. if (!u || !function(o, r, i) {
  13370. var c = v.Dom.closest(i, "li", r.editor);
  13371. return !(!c || c !== o && !o.contains(c));
  13372. }(u, h, a)) return !1;
  13373. var f = v.Dom.closest(u, ["ol", "ul"], h.editor);
  13374. return !(!f || p && !v.Dom.closest(f, "li", h.editor) || (p ? function(o, r, i) {
  13375. var c = v.Dom.closest(r, "li", o.editor), m = Array.from(r.children).filter(function(w) {
  13376. return v.Dom.isTag(w, "li");
  13377. });
  13378. v.Dom.after(c, i);
  13379. var y = m.indexOf(i);
  13380. if (y !== 0 && m.length !== 1 || v.Dom.safeRemove(r), y !== m.length - 1) {
  13381. var g = r.cloneNode();
  13382. v.Dom.append(i, g);
  13383. for (var b = y + 1; m.length > b; b += 1) v.Dom.append(g, m[b]);
  13384. }
  13385. }(h, f, u) : function(o, r, i) {
  13386. var c = i.previousElementSibling, m = c.lastElementChild, y = v.Dom.isTag(m, r.tagName) ? m : o.createInside.element(r.tagName, Array.from(r.attributes).reduce(function(g, b) {
  13387. return g[b.name] = b.value, g;
  13388. }, {}));
  13389. y.appendChild(i), m !== y && c.appendChild(y);
  13390. }(h, f, u), 0));
  13391. } finally {
  13392. var l = h.s.createRange();
  13393. l.setStartAfter(a), l.setEndBefore(s), h.s.selectRange(l), v.Dom.safeRemove(a), v.Dom.safeRemove(s);
  13394. }
  13395. return !1;
  13396. };
  13397. }, 56198: function(_, t, e) {
  13398. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.tab = { tabInsideLiInsertNewList: !0 };
  13399. }, 32246: function(_, t, e) {
  13400. Object.defineProperty(t, "__esModule", { value: !0 });
  13401. var n = e(20255), v = e(57549), h = e(43441), p = e(86893), d = e(17332), a = e(15797);
  13402. e(56198);
  13403. var s = function(u) {
  13404. function f() {
  13405. return u !== null && u.apply(this, arguments) || this;
  13406. }
  13407. return n.__extends(f, u), f.prototype.afterInit = function(l) {
  13408. }, f.prototype.__onTab = function(l) {
  13409. if (l.key === p.KEY_TAB && this.__onShift(l.shiftKey)) return !1;
  13410. }, f.prototype.__onCommand = function(l) {
  13411. if ((l === "indent" || l === "outdent") && this.__onShift(l === "outdent")) return !1;
  13412. }, f.prototype.__onShift = function(l) {
  13413. var o = (0, a.onTabInsideLi)(this.j, l);
  13414. return o && this.j.e.fire("afterTab", l), o;
  13415. }, f.prototype.beforeDestruct = function(l) {
  13416. }, n.__decorate([(0, h.watch)(":keydown.tab")], f.prototype, "__onTab", null), n.__decorate([(0, h.watch)(":beforeCommand.tab")], f.prototype, "__onCommand", null), f;
  13417. }(v.Plugin);
  13418. d.pluginSystem.add("tab", s);
  13419. }, 23308: function(_, t, e) {
  13420. Object.defineProperty(t, "__esModule", { value: !0 }), t.tableKeyboardNavigation = void 0;
  13421. var n = e(86893), v = e(24263), h = e(25120), p = e(17332);
  13422. function d(a) {
  13423. a.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation", function(s) {
  13424. var u, f;
  13425. if ((s.key === n.KEY_TAB || s.key === n.KEY_LEFT || s.key === n.KEY_RIGHT || s.key === n.KEY_UP || s.key === n.KEY_DOWN) && (u = a.s.current(), f = v.Dom.up(u, function(b) {
  13426. return b && b.nodeName && /^td|th$/i.test(b.nodeName);
  13427. }, a.editor))) {
  13428. var l = a.s.range;
  13429. if (s.key === n.KEY_TAB || u === f || (s.key !== n.KEY_LEFT && s.key !== n.KEY_UP || !(v.Dom.prev(u, function(b) {
  13430. return s.key === n.KEY_UP ? v.Dom.isTag(b, "br") : !!b;
  13431. }, f) || s.key !== n.KEY_UP && v.Dom.isText(u) && l.startOffset !== 0)) && (s.key !== n.KEY_RIGHT && s.key !== n.KEY_DOWN || !(v.Dom.next(u, function(b) {
  13432. return s.key === n.KEY_DOWN ? v.Dom.isTag(b, "br") : !!b;
  13433. }, f) || s.key !== n.KEY_DOWN && v.Dom.isText(u) && u.nodeValue && l.startOffset !== u.nodeValue.length))) {
  13434. var o = v.Dom.up(f, function(b) {
  13435. return b && /^table$/i.test(b.nodeName);
  13436. }, a.editor), r = null;
  13437. switch (s.key) {
  13438. case n.KEY_TAB:
  13439. case n.KEY_LEFT:
  13440. var i = s.key === n.KEY_LEFT || s.shiftKey ? "prev" : "next";
  13441. (r = v.Dom[i](f, function(b) {
  13442. return b && /^td|th$/i.test(b.tagName);
  13443. }, o)) || (h.Table.appendRow(o, i !== "next" && o.querySelector("tr"), i === "next", a.createInside), r = v.Dom[i](f, v.Dom.isCell, o));
  13444. break;
  13445. case n.KEY_UP:
  13446. case n.KEY_DOWN:
  13447. var c = 0, m = 0, y = h.Table.formalMatrix(o, function(b, w, C) {
  13448. b === f && (c = w, m = C);
  13449. });
  13450. s.key === n.KEY_UP ? y[c - 1] !== void 0 && (r = y[c - 1][m]) : y[c + 1] !== void 0 && (r = y[c + 1][m]);
  13451. }
  13452. if (r) {
  13453. if (r.firstChild) s.key === n.KEY_TAB ? a.s.select(r, !0) : a.s.setCursorIn(r, s.key === n.KEY_RIGHT || s.key === n.KEY_DOWN);
  13454. else {
  13455. var g = a.createInside.element("br");
  13456. r.appendChild(g), a.s.setCursorBefore(g);
  13457. }
  13458. return !1;
  13459. }
  13460. }
  13461. }
  13462. });
  13463. }
  13464. t.tableKeyboardNavigation = d, p.pluginSystem.add("tableKeyboardNavigation", d);
  13465. }, 30739: function(_, t, e) {
  13466. Object.defineProperty(t, "__esModule", { value: !0 });
  13467. var n = e(93166), v = e(64968), h = e(76502), p = e(40332), d = e(77904);
  13468. n.Config.prototype.table = { selectionCellStyle: "border: 1px double #1e88e5 !important;", useExtraClassesOptions: !1 }, d.Icon.set("table", e(51716)), n.Config.prototype.controls.table = { data: { cols: 10, rows: 10, classList: { "table table-bordered": "Bootstrap Bordered", "table table-striped": "Bootstrap Striped", "table table-dark": "Bootstrap Dark" } }, popup: function(a, s, u, f, l) {
  13469. for (var o = u.data && u.data.rows ? u.data.rows : 10, r = u.data && u.data.cols ? u.data.cols : 10, i = a.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">' + function() {
  13470. if (!a.o.table.useExtraClassesOptions) return "";
  13471. var E = [];
  13472. if (u.data) {
  13473. var x = u.data.classList;
  13474. Object.keys(x).forEach(function(k) {
  13475. E.push('<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="'.concat(k, '" type="checkbox"/>').concat(x[k], "</label>"));
  13476. });
  13477. }
  13478. return E.join("");
  13479. }() + '</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'), c = i.querySelectorAll("span")[0], m = i.querySelectorAll("span")[1], y = i.querySelector(".jodit-form__container"), g = i.querySelector(".jodit-form__options"), b = [], w = o * r, C = 0; w > C; C += 1) b[C] || b.push(a.c.element("span", { dataIndex: C }));
  13480. if (a.e.on(y, "mousemove", function(E, x) {
  13481. var k = E.target;
  13482. if (v.Dom.isTag(k, "span")) {
  13483. for (var I = x === void 0 || isNaN(x) ? parseInt((0, h.attr)(k, "-index") || "0", 10) : x || 0, M = Math.ceil((I + 1) / r), T = I % r + 1, O = 0; b.length > O; O += 1) b[O].className = O % r + 1 > T || M < Math.ceil((O + 1) / r) ? "" : "jodit_hovered";
  13484. m.textContent = T.toString(), c.textContent = M.toString();
  13485. }
  13486. }).on(y, "touchstart mousedown", function(E) {
  13487. var x = E.target;
  13488. if (E.preventDefault(), E.stopImmediatePropagation(), v.Dom.isTag(x, "span")) {
  13489. var k = parseInt((0, h.attr)(x, "-index") || "0", 10), I = Math.ceil((k + 1) / r), M = k % r + 1, T = a.createInside, O = T.element("tbody"), L = T.element("table");
  13490. L.appendChild(O);
  13491. for (var N, H, q = null, F = 1; I >= F; F += 1) {
  13492. N = T.element("tr");
  13493. for (var U = 1; M >= U; U += 1) H = T.element("td"), q || (q = H), (0, p.css)(H, "width", (100 / M).toFixed(4) + "%"), H.appendChild(T.element("br")), N.appendChild(T.text(`
  13494. `)), N.appendChild(T.text(" ")), N.appendChild(H);
  13495. O.appendChild(T.text(`
  13496. `)), O.appendChild(N);
  13497. }
  13498. (0, p.$$)("input[type=checkbox]:checked", g).forEach(function(Y) {
  13499. Y.value.split(/[\s]+/).forEach(function(P) {
  13500. L.classList.add(P);
  13501. });
  13502. }), a.editor.firstChild && a.s.insertNode(T.text(`
  13503. `), !1, !1), a.s.insertNode(L, !1), q && (a.s.setCursorIn(q), (0, p.scrollIntoViewIfNeeded)(q, a.editor, a.ed)), f();
  13504. }
  13505. }), l && l.parentElement) {
  13506. for (C = 0; o > C; C += 1) {
  13507. for (var S = a.c.div(), j = 0; r > j; j += 1) S.appendChild(b[C * r + j]);
  13508. y.appendChild(S);
  13509. }
  13510. b[0] && (b[0].className = "hovered");
  13511. }
  13512. return i;
  13513. }, tooltip: "Insert table" };
  13514. }, 45842: function(_, t, e) {
  13515. Object.defineProperty(t, "__esModule", { value: !0 }), t.table = void 0, e(51057);
  13516. var n = e(17332);
  13517. function v(h) {
  13518. h.registerButton({ name: "table", group: "insert" });
  13519. }
  13520. e(30739), t.table = v, n.pluginSystem.add("table", v);
  13521. }, 79114: function(_, t, e) {
  13522. Object.defineProperty(t, "__esModule", { value: !0 });
  13523. var n = e(93166), v = e(718), h = e(40332), p = e(95963), d = e(96516);
  13524. e(77904).Icon.set("video", e(49222)), n.Config.prototype.controls.video = { popup: function(a, s, u, f) {
  13525. var l = new p.UIForm(a, [new p.UIBlock(a, [new p.UIInput(a, { name: "url", required: !0, label: "URL", placeholder: "https://", validators: ["url"] })]), new p.UIBlock(a, [(0, d.Button)(a, "", "Insert", "primary").onAction(function() {
  13526. return l.submit();
  13527. })])]), o = new p.UIForm(a, [new p.UIBlock(a, [new p.UITextArea(a, { name: "code", required: !0, label: "Embed code" })]), new p.UIBlock(a, [(0, d.Button)(a, "", "Insert", "primary").onAction(function() {
  13528. return o.submit();
  13529. })])]), r = [], i = function(c) {
  13530. a.s.restore(), a.s.insertHTML(c), f();
  13531. };
  13532. return a.s.save(), r.push({ icon: "link", name: "Link", content: l.container }, { icon: "source", name: "Code", content: o.container }), l.onSubmit(function(c) {
  13533. i((0, h.convertMediaUrlToVideoEmbed)(c.url));
  13534. }), o.onSubmit(function(c) {
  13535. i(c.code);
  13536. }), (0, v.TabsWidget)(a, r);
  13537. }, tags: ["iframe"], tooltip: "Insert youtube/vimeo video" };
  13538. }, 19889: function(_, t, e) {
  13539. Object.defineProperty(t, "__esModule", { value: !0 });
  13540. var n = e(17332);
  13541. e(79114), n.pluginSystem.add("video", function(v) {
  13542. v.registerButton({ name: "video", group: "media" });
  13543. });
  13544. }, 64401: function(_, t, e) {
  13545. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.wrapNodes = { exclude: ["hr", "style", "br"], emptyBlockAfterInit: !0 };
  13546. }, 20728: function(_, t, e) {
  13547. Object.defineProperty(t, "__esModule", { value: !0 });
  13548. var n = e(20255), v = e(57549), h = e(64968), p = e(24421), d = e(43441), a = e(17332);
  13549. e(64401);
  13550. var s = function(u) {
  13551. function f() {
  13552. var l = u !== null && u.apply(this, arguments) || this;
  13553. return l.isSuitableStart = function(o) {
  13554. return h.Dom.isText(o) && (0, p.isString)(o.nodeValue) && /[^\s]/.test(o.nodeValue) || l.isNotClosed(o) && !h.Dom.isTemporary(o);
  13555. }, l.isSuitable = function(o) {
  13556. return h.Dom.isText(o) || l.isNotClosed(o);
  13557. }, l.isNotClosed = function(o) {
  13558. return h.Dom.isElement(o) && !(h.Dom.isBlock(o) || h.Dom.isTag(o, l.j.o.wrapNodes.exclude));
  13559. }, l;
  13560. }
  13561. return n.__extends(f, u), f.prototype.afterInit = function(l) {
  13562. l.o.enter.toLowerCase() !== "br" && l.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn", this.preprocessInput, { top: !0 }).on("afterInit.wtn postProcessSetEditorValue.wtn", this.postProcessSetEditorValue);
  13563. }, f.prototype.beforeDestruct = function(l) {
  13564. l.e.off(".wtn");
  13565. }, f.prototype.postProcessSetEditorValue = function() {
  13566. var l = this.jodit;
  13567. if (l.isEditorMode()) {
  13568. for (var o = l.editor.firstChild, r = !1; o; ) {
  13569. if (o = this.checkAloneListLeaf(o, l), this.isSuitableStart(o)) {
  13570. r || l.s.save(), r = !0;
  13571. var i = l.createInside.element(l.o.enter);
  13572. for (h.Dom.before(o, i); o && this.isSuitable(o); ) {
  13573. var c = o.nextSibling;
  13574. i.appendChild(o), o = c;
  13575. }
  13576. i.normalize(), o = i;
  13577. }
  13578. o = o && o.nextSibling;
  13579. }
  13580. r && (l.s.restore(), l.e.current === "afterInit" && l.e.fire("internalChange"));
  13581. }
  13582. }, f.prototype.checkAloneListLeaf = function(l, o) {
  13583. var r = l, i = l;
  13584. do {
  13585. if (!h.Dom.isElement(i) || !h.Dom.isTag(i, "li") || h.Dom.isTag(i.parentElement, ["ul", "ol"])) break;
  13586. var c = h.Dom.findNotEmptySibling(i, !1);
  13587. h.Dom.isTag(r, "ul") ? r.appendChild(i) : r = h.Dom.wrap(i, "ul", o.createInside), i = c;
  13588. } while (i);
  13589. return r;
  13590. }, f.prototype.preprocessInput = function() {
  13591. var l = this.jodit, o = l.e.current === "afterInit";
  13592. if (l.isEditorMode() && !l.editor.firstChild && (l.o.wrapNodes.emptyBlockAfterInit || !o)) {
  13593. var r = l.createInside.element(l.o.enter), i = l.createInside.element("br");
  13594. h.Dom.append(r, i), h.Dom.append(l.editor, r), l.s.isFocused() && l.s.setCursorBefore(i), l.e.fire("internalChange");
  13595. }
  13596. }, n.__decorate([d.autobind], f.prototype, "postProcessSetEditorValue", null), n.__decorate([d.autobind], f.prototype, "preprocessInput", null), f;
  13597. }(v.Plugin);
  13598. a.pluginSystem.add("wrapNodes", s);
  13599. }, 71707: function(_, t, e) {
  13600. Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.showXPathInStatusbar = !0;
  13601. }, 18238: function(_, t, e) {
  13602. Object.defineProperty(t, "__esModule", { value: !0 });
  13603. var n = e(20255);
  13604. e(64618);
  13605. var v = e(86893), h = e(60403), p = e(64968), d = e(40332), a = e(57549), s = e(81438), u = e(17332);
  13606. e(71707);
  13607. var f = function(l) {
  13608. function o() {
  13609. var r = l !== null && l.apply(this, arguments) || this;
  13610. return r.onContext = function(i, c) {
  13611. return r.menu || (r.menu = new h.ContextMenu(r.j)), r.menu.show(c.clientX, c.clientY, [{ icon: "bin", title: i === r.j.editor ? "Clear" : "Remove", exec: function() {
  13612. i !== r.j.editor ? p.Dom.safeRemove(i) : r.j.value = "", r.j.synchronizeValues();
  13613. } }, { icon: "select-all", title: "Select", exec: function() {
  13614. r.j.s.select(i);
  13615. } }]), !1;
  13616. }, r.onSelectPath = function(i, c) {
  13617. r.j.s.focus();
  13618. var m = (0, d.attr)(c.target, "-path") || "/";
  13619. if (m === "/") return r.j.execCommand("selectall"), !1;
  13620. try {
  13621. var y = r.j.ed.evaluate(m, r.j.editor, null, XPathResult.ANY_TYPE, null).iterateNext();
  13622. if (y) return r.j.s.select(y), !1;
  13623. } catch (g) {
  13624. }
  13625. return r.j.s.select(i), !1;
  13626. }, r.tpl = function(i, c, m, y) {
  13627. var g = r.j.c.fromHTML('<span class="jodit-xpath__item"><a role="button" data-path="'.concat(c, '" title="').concat(y, `" tabindex="-1"'>`).concat((0, d.trim)(m), "</a></span>")), b = g.firstChild;
  13628. return r.j.e.on(b, "click", r.onSelectPath.bind(r, i)).on(b, "contextmenu", r.onContext.bind(r, i)), g;
  13629. }, r.removeSelectAll = function() {
  13630. r.selectAllButton && (r.selectAllButton.destruct(), delete r.selectAllButton);
  13631. }, r.appendSelectAll = function() {
  13632. r.removeSelectAll(), r.selectAllButton = (0, s.makeButton)(r.j, n.__assign({ name: "selectall" }, r.j.o.controls.selectall)), r.selectAllButton.state.size = "tiny", r.container && r.container.insertBefore(r.selectAllButton.container, r.container.firstChild);
  13633. }, r.calcPathImd = function() {
  13634. if (!r.isDestructed) {
  13635. var i, c, m, y = r.j.s.current();
  13636. r.container && (r.container.innerHTML = v.INVISIBLE_SPACE), y && p.Dom.up(y, function(g) {
  13637. g && r.j.editor !== g && !p.Dom.isText(g) && (i = g.nodeName.toLowerCase(), c = (0, d.getXPathByElement)(g, r.j.editor).replace(/^\//, ""), m = r.tpl(g, c, i, r.j.i18n("Select %s", i)), r.container && r.container.insertBefore(m, r.container.firstChild));
  13638. }, r.j.editor), r.appendSelectAll();
  13639. }
  13640. }, r.calcPath = r.j.async.debounce(r.calcPathImd, 2 * r.j.defaultTimeout), r;
  13641. }
  13642. return n.__extends(o, l), o.prototype.afterInit = function() {
  13643. var r = this;
  13644. this.j.o.showXPathInStatusbar && (this.container = this.j.c.div("jodit-xpath"), this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath", this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath", function() {
  13645. r.j.o.showXPathInStatusbar && r.container && (r.j.statusbar.append(r.container), r.j.getRealMode() === v.MODE_WYSIWYG ? r.calcPath() : (r.container && (r.container.innerHTML = v.INVISIBLE_SPACE), r.appendSelectAll()));
  13646. }), this.calcPath());
  13647. }, o.prototype.beforeDestruct = function() {
  13648. this.j && this.j.events && this.j.e.off(".xpath"), this.removeSelectAll(), this.menu && this.menu.destruct(), p.Dom.safeRemove(this.container), delete this.menu, delete this.container;
  13649. }, o;
  13650. }(a.Plugin);
  13651. u.pluginSystem.add("xpath", f);
  13652. }, 89019: function(_, t, e) {
  13653. Object.defineProperty(t, "__esModule", { value: !0 }), e(61227), e(690), e(66622), e(69220), e(10444), Array.prototype.includes || (Array.prototype.includes = function(n) {
  13654. return this.indexOf(n) > -1;
  13655. }), typeof Object.assign != "function" && Object.defineProperty(Object, "assign", { value: function(n, v) {
  13656. if (n == null) throw new TypeError("Cannot convert undefined or null to object");
  13657. for (var h = Object(n), p = 1; arguments.length > p; p++) {
  13658. var d = arguments[p];
  13659. if (d != null) for (var a in d) Object.prototype.hasOwnProperty.call(d, a) && (h[a] = d[a]);
  13660. }
  13661. return h;
  13662. }, writable: !0, configurable: !0 }), Array.prototype.find || (Array.prototype.find = function(n) {
  13663. return this.indexOf(n) > -1 ? n : void 0;
  13664. }), String.prototype.endsWith || (String.prototype.endsWith = function(n) {
  13665. return this[this.length - 1] === n;
  13666. });
  13667. }, 15261: function(_, t, e) {
  13668. Object.defineProperty(t, "__esModule", { value: !0 }), t.valign = t.upload = t.update = t.unlock = t.settings = t.save = t.right = t.resize_handler = t.plus = t.pencil = t.ok = t.lock = t.left = t.info_circle = t.folder = t.file = t.eye = t.dots = t.chevron = t.check = t.center = t.cancel = t.bin = t.angle_up = t.angle_right = t.angle_left = t.angle_down = void 0;
  13669. var n = e(1755);
  13670. t.angle_down = n;
  13671. var v = e(74911);
  13672. t.angle_left = v;
  13673. var h = e(8805);
  13674. t.angle_right = h;
  13675. var p = e(16547);
  13676. t.angle_up = p;
  13677. var d = e(10856);
  13678. t.bin = d;
  13679. var a = e(98441);
  13680. t.cancel = a;
  13681. var s = e(52488);
  13682. t.center = s;
  13683. var u = e(9370);
  13684. t.check = u;
  13685. var f = e(66543);
  13686. t.chevron = f;
  13687. var l = e(608);
  13688. t.dots = l;
  13689. var o = e(42840);
  13690. t.eye = o;
  13691. var r = e(79096);
  13692. t.file = r;
  13693. var i = e(33014);
  13694. t.folder = i;
  13695. var c = e(91677);
  13696. t.info_circle = c;
  13697. var m = e(8259);
  13698. t.left = m;
  13699. var y = e(64467);
  13700. t.lock = y;
  13701. var g = e(86934);
  13702. t.ok = g;
  13703. var b = e(76133);
  13704. t.pencil = b;
  13705. var w = e(45519);
  13706. t.plus = w;
  13707. var C = e(90265);
  13708. t.resize_handler = C;
  13709. var S = e(81279);
  13710. t.right = S;
  13711. var j = e(68899);
  13712. t.save = j;
  13713. var E = e(70744);
  13714. t.settings = E;
  13715. var x = e(19201);
  13716. t.unlock = x;
  13717. var k = e(84930);
  13718. t.update = k;
  13719. var I = e(99704);
  13720. t.upload = I;
  13721. var M = e(2304);
  13722. t.valign = M;
  13723. }, 80078: function(_) {
  13724. _.exports = { "copy-format": "نسخ التنسيق" };
  13725. }, 16986: function(_) {
  13726. _.exports = { "copy-format": "Kopírovat formát" };
  13727. }, 59347: function(_) {
  13728. _.exports = { "copy-format": "Format kopierenт" };
  13729. }, 63640: function(_) {
  13730. _.exports = { "copy-format": "Copiar formato" };
  13731. }, 53434: function(_) {
  13732. _.exports = { "copy-format": "کپی کردن قالب" };
  13733. }, 85638: function(_) {
  13734. _.exports = { "copy-format": "Format de copie" };
  13735. }, 31743: function(_) {
  13736. _.exports = { "copy-format": "העתק עיצוב" };
  13737. }, 66219: function(_) {
  13738. _.exports = { "copy-format": "Formátum másolás" };
  13739. }, 50331: function(_) {
  13740. _.exports = { "copy-format": "salin format" };
  13741. }, 25582: function(_) {
  13742. _.exports = { "copy-format": "Copia il formato" };
  13743. }, 82066: function(_) {
  13744. _.exports = { "copy-format": "copyformat" };
  13745. }, 71925: function(_) {
  13746. _.exports = { "copy-format": "복사 형식" };
  13747. }, 65274: function(_) {
  13748. _.exports = { "copy-format": "opmaak kopiëren" };
  13749. }, 58548: function(_) {
  13750. _.exports = { "copy-format": "format kopii" };
  13751. }, 82958: function(_) {
  13752. _.exports = { "copy-format": "Copiar formato" };
  13753. }, 52315: function(_) {
  13754. _.exports = { "copy-format": "Копировать формат" };
  13755. }, 87727: function(_) {
  13756. _.exports = { "copy-format": "Kopyalama Biçimi" };
  13757. }, 9396: function(_) {
  13758. _.exports = { "copy-format": "复制格式" };
  13759. }, 28765: function(_) {
  13760. _.exports = { "copy-format": "複製格式" };
  13761. }, 47762: function(_) {
  13762. _.exports = { "Line height": "ارتفاع الخط" };
  13763. }, 97495: function(_) {
  13764. _.exports = { "Line height": "Výška čáry" };
  13765. }, 80131: function(_) {
  13766. _.exports = { "Line height": "Zeilenhöhe" };
  13767. }, 1201: function(_) {
  13768. _.exports = { "Line height": "Altura de la línea" };
  13769. }, 89912: function(_) {
  13770. _.exports = { "Line height": "ارتفاع خط" };
  13771. }, 3405: function(_) {
  13772. _.exports = { "Line height": "Hauteur de ligne" };
  13773. }, 14129: function(_) {
  13774. _.exports = { "Line height": "גובה שורה" };
  13775. }, 93729: function(_) {
  13776. _.exports = { "Line height": "Vonal magassága" };
  13777. }, 16106: function(_) {
  13778. _.exports = { "Line height": "Tinggi baris" };
  13779. }, 89690: function(_) {
  13780. _.exports = { "Line height": "Altezza linea" };
  13781. }, 33216: function(_) {
  13782. _.exports = { "Line height": "ラインの高さ" };
  13783. }, 17282: function(_) {
  13784. _.exports = { "Line height": "선 높이" };
  13785. }, 91761: function(_) {
  13786. _.exports = { "Line height": "Lijnhoogte" };
  13787. }, 61675: function(_) {
  13788. _.exports = { "Line height": "Wysokość linii" };
  13789. }, 69709: function(_) {
  13790. _.exports = { "Line height": "Altura da linha" };
  13791. }, 82591: function(_) {
  13792. _.exports = { "Line height": "Высота линии" };
  13793. }, 87649: function(_) {
  13794. _.exports = { "Line height": "Çizgi yüksekliği" };
  13795. }, 60268: function(_) {
  13796. _.exports = { "Line height": "线高" };
  13797. }, 58214: function(_) {
  13798. _.exports = { "Line height": "ความสูงเส้น" };
  13799. }, 5586: function(_) {
  13800. _.exports = { Spellcheck: "التدقيق الإملائي" };
  13801. }, 66023: function(_) {
  13802. _.exports = { Spellcheck: "Kontrola pravopisu" };
  13803. }, 65860: function(_) {
  13804. _.exports = { Spellcheck: "Rechtschreibprüfung" };
  13805. }, 86055: function(_) {
  13806. _.exports = { Spellcheck: "Corrección ortográfica" };
  13807. }, 50037: function(_) {
  13808. _.exports = { Spellcheck: "غلطیابی املایی" };
  13809. }, 7118: function(_) {
  13810. _.exports = { Spellcheck: "Vérification Orthographique" };
  13811. }, 30298: function(_) {
  13812. _.exports = { Spellcheck: "בדיקת איות" };
  13813. }, 52107: function(_) {
  13814. _.exports = { Spellcheck: "Helyesírás-ellenőrzés" };
  13815. }, 31240: function(_) {
  13816. _.exports = { Spellcheck: "Spellchecking" };
  13817. }, 4101: function(_) {
  13818. _.exports = { Spellcheck: "Controllo ortografico" };
  13819. }, 69286: function(_) {
  13820. _.exports = { Spellcheck: "スペルチェック" };
  13821. }, 13402: function(_) {
  13822. _.exports = { Spellcheck: "맞춤법 검사" };
  13823. }, 89574: function(_) {
  13824. _.exports = { Spellcheck: "Spellingcontrole" };
  13825. }, 63630: function(_) {
  13826. _.exports = { Spellcheck: "Sprawdzanie pisowni" };
  13827. }, 72212: function(_) {
  13828. _.exports = { Spellcheck: "Verificação ortográfica" };
  13829. }, 82570: function(_) {
  13830. _.exports = { Spellcheck: "Проверка орфографии" };
  13831. }, 19323: function(_) {
  13832. _.exports = { Spellcheck: "Yazım denetimi" };
  13833. }, 50279: function(_) {
  13834. _.exports = { Spellcheck: "拼写检查" };
  13835. }, 98364: function(_) {
  13836. _.exports = { Spellcheck: "สะกดคำ" };
  13837. }, 54261: function(_) {
  13838. _.exports = { symbols: "رمز" };
  13839. }, 60425: function(_) {
  13840. _.exports = { symbols: "symbol" };
  13841. }, 7057: function(_) {
  13842. _.exports = { symbols: "Symbol" };
  13843. }, 48356: function(_) {
  13844. _.exports = { symbols: "Símbolo" };
  13845. }, 11428: function(_) {
  13846. _.exports = { symbols: "سمبل" };
  13847. }, 29084: function(_) {
  13848. _.exports = { symbols: "caractère" };
  13849. }, 22876: function(_) {
  13850. _.exports = { symbols: "תו מיוחד" };
  13851. }, 20890: function(_) {
  13852. _.exports = { symbols: "Szimbólum" };
  13853. }, 75987: function(_) {
  13854. _.exports = { symbols: "simbol" };
  13855. }, 60379: function(_) {
  13856. _.exports = { symbols: "Simbolo" };
  13857. }, 99950: function(_) {
  13858. _.exports = { symbols: "symbol" };
  13859. }, 60934: function(_) {
  13860. _.exports = { symbols: "기호" };
  13861. }, 21994: function(_) {
  13862. _.exports = { symbols: "symbool" };
  13863. }, 38128: function(_) {
  13864. _.exports = { symbols: "symbol" };
  13865. }, 71515: function(_) {
  13866. _.exports = { symbols: "Símbolo" };
  13867. }, 58194: function(_) {
  13868. _.exports = { symbols: "символ" };
  13869. }, 65802: function(_) {
  13870. _.exports = { symbols: "Sembol" };
  13871. }, 86628: function(_) {
  13872. _.exports = { symbols: "符号" };
  13873. }, 32210: function(_) {
  13874. _.exports = { symbols: "符號" };
  13875. }, 52378: function(_) {
  13876. _.exports = { assert() {
  13877. } };
  13878. } }, ue = {};
  13879. function X(_) {
  13880. var t = ue[_];
  13881. if (t !== void 0) return t.exports;
  13882. var e = ue[_] = { exports: {} };
  13883. return se[_].call(e.exports, e, e.exports, X), e.exports;
  13884. }
  13885. X.m = se, Z = [], X.O = function(_, t, e, n) {
  13886. if (!t) {
  13887. var v = 1 / 0;
  13888. for (a = 0; Z.length > a; a++) {
  13889. t = Z[a][0], e = Z[a][1], n = Z[a][2];
  13890. for (var h = !0, p = 0; t.length > p; p++) (!1 & n || v >= n) && Object.keys(X.O).every(function(s) {
  13891. return X.O[s](t[p]);
  13892. }) ? t.splice(p--, 1) : (h = !1, v > n && (v = n));
  13893. if (h) {
  13894. Z.splice(a--, 1);
  13895. var d = e();
  13896. d !== void 0 && (_ = d);
  13897. }
  13898. }
  13899. return _;
  13900. }
  13901. n = n || 0;
  13902. for (var a = Z.length; a > 0 && Z[a - 1][2] > n; a--) Z[a] = Z[a - 1];
  13903. Z[a] = [t, e, n];
  13904. }, X.g = function() {
  13905. if (typeof globalThis == "object") return globalThis;
  13906. try {
  13907. return this || new Function("return this")();
  13908. } catch (_) {
  13909. if (typeof window == "object") return window;
  13910. }
  13911. }(), X.o = function(_, t) {
  13912. return Object.prototype.hasOwnProperty.call(_, t);
  13913. }, X.r = function(_) {
  13914. typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(_, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(_, "__esModule", { value: !0 });
  13915. }, function() {
  13916. var _ = { 670: 0 };
  13917. X.O.j = function(n) {
  13918. return _[n] === 0;
  13919. };
  13920. var t = function(n, v) {
  13921. var h, p, d = v[0], a = v[1], s = v[2], u = 0;
  13922. if (d.some(function(l) {
  13923. return _[l] !== 0;
  13924. })) {
  13925. for (h in a) X.o(a, h) && (X.m[h] = a[h]);
  13926. if (s) var f = s(X);
  13927. }
  13928. for (n && n(v); d.length > u; u++) X.o(_, p = d[u]) && _[p] && _[p][0](), _[p] = 0;
  13929. return X.O(f);
  13930. }, e = self.webpackChunkjodit = self.webpackChunkjodit || [];
  13931. e.forEach(t.bind(null, 0)), e.push = t.bind(null, e.push.bind(e));
  13932. }();
  13933. var de = {};
  13934. return function() {
  13935. var _ = de;
  13936. Object.defineProperty(_, "__esModule", { value: !0 }), _.CommitMode = _.Jodit = void 0, X(90176), typeof window != "undefined" && X(89019);
  13937. var t = X(37920);
  13938. Object.defineProperty(_, "Jodit", { enumerable: !0, get: function() {
  13939. return t.Jodit;
  13940. } });
  13941. var e = X(26435), n = X(43441), v = X(86893), h = X(87837), p = X(15261);
  13942. X(70022), X(91147), Object.keys(v).forEach(function(a) {
  13943. t.Jodit[a] = v[a];
  13944. });
  13945. var d = function(a) {
  13946. return a !== "__esModule";
  13947. };
  13948. Object.keys(p).filter(d).forEach(function(a) {
  13949. h.Icon.set(a.replace("_", "-"), p[a]);
  13950. }), Object.keys(h).filter(d).forEach(function(a) {
  13951. t.Jodit.modules[a] = h[a];
  13952. }), Object.keys(n).filter(d).forEach(function(a) {
  13953. t.Jodit.decorators[a] = n[a];
  13954. }), ["Confirm", "Alert", "Prompt"].forEach(function(a) {
  13955. t.Jodit[a] = h[a];
  13956. }), Object.keys(e.default).filter(d).forEach(function(a) {
  13957. t.Jodit.lang[a] = e.default[a];
  13958. }), _.CommitMode = function() {
  13959. };
  13960. }(), X.O(de);
  13961. }();
  13962. });
  13963. })(xe);
  13964. var ke = xe.exports;
  13965. const Be = {
  13966. __name: "SEditor",
  13967. props: {
  13968. modelValue: String,
  13969. config: { type: Object, default: () => ({}) }
  13970. },
  13971. emits: ["update:modelValue"],
  13972. setup(re, { emit: ee }) {
  13973. let Z = De(null);
  13974. const se = re, ue = ee;
  13975. let X;
  13976. const de = {
  13977. theme: "default",
  13978. //主题:默认default,暗色dark
  13979. placeholder: window.$l("请输入内容..."),
  13980. zIndex: 10,
  13981. language: "zh_cn",
  13982. width: "100%",
  13983. height: "100%",
  13984. minHeight: 400,
  13985. saveModeInCookie: !1,
  13986. toolbarSticky: !1,
  13987. //工具栏设置sticky
  13988. statusbar: !1,
  13989. //底部状态栏(左:html元素;右:单词数,字符数统计)
  13990. image: {
  13991. //图片相关配置
  13992. editSrc: !1,
  13993. editStyle: !1,
  13994. useImageEditor: !1
  13995. },
  13996. link: {
  13997. noFollowCheckbox: !1,
  13998. modeClassName: ""
  13999. },
  14000. i18n: {
  14001. zh_cn: {
  14002. top: "上",
  14003. right: "右",
  14004. bottom: "下",
  14005. left: "左",
  14006. Title: "标题",
  14007. Link: "链接",
  14008. "Line height": "行高",
  14009. Alternative: "描述",
  14010. "Alternative text": "描述",
  14011. "Lower Alpha": "小写英文字母",
  14012. "Lower Greek": "小写希腊字母",
  14013. "Lower Roman": "小写罗马数字",
  14014. "Upper Alpha": "大写英文字母",
  14015. "Upper Roman": "大写罗马数字"
  14016. }
  14017. },
  14018. createAttributes: {
  14019. blockquote: {
  14020. style: `
  14021. display: block;
  14022. padding: 16px;
  14023. margin: 0 0 24px;
  14024. border-left: 8px solid #dddfe4;
  14025. background: #eef0f4;
  14026. color: rgba(0, 0, 0, 0.5);
  14027. overflow: auto;
  14028. word-break: break-word !important;`,
  14029. class: "blockquote-box"
  14030. //在css中编写类名对应的样式
  14031. }
  14032. },
  14033. sourceEditorCDNUrlsJS: [
  14034. // "https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js",
  14035. "https://cdn.staticfile.org/ace/1.4.2/ace.js"
  14036. ],
  14037. beautifyHTMLCDNUrlsJS: [
  14038. "https://cdn.staticfile.org/js-beautify/1.14.4/beautifier.min.js",
  14039. "https://cdn.staticfile.org/js-beautify/1.14.4/beautify-html.min.js"
  14040. ],
  14041. disablePlugins: "stat, selectall, hr",
  14042. //要禁用的插件,以逗号分割。stat是底部字符数与单词数统计
  14043. buttons: `source,
  14044. bold,
  14045. italic,
  14046. underline,
  14047. strikethrough,
  14048. eraser,
  14049. superscript,
  14050. subscript,
  14051. ol,
  14052. ul,
  14053. indent,
  14054. outdent,
  14055. left,
  14056. font,
  14057. fontsize,
  14058. paragraph,
  14059. brush,
  14060. lineHeight,
  14061. image,
  14062. file,
  14063. video,
  14064. copyformat,
  14065. table,
  14066. link,
  14067. symbols,
  14068. undo,
  14069. redo,
  14070. fullsize,
  14071. preview`,
  14072. controls: {
  14073. font: {
  14074. list: ke.Jodit.atom({
  14075. "Microsoft YaHei": "微软雅黑",
  14076. KaiTi: "楷体",
  14077. 方正喵呜体: "方正喵呜体",
  14078. "思源宋体 Heavy": "思源宋体",
  14079. SimHei: "黑体",
  14080. NSimSun: "新宋体",
  14081. 华文行楷: "华文行楷"
  14082. })
  14083. }
  14084. },
  14085. uploader: {
  14086. url: "/api/uploads",
  14087. //上传地址
  14088. isSuccess(_) {
  14089. return _;
  14090. },
  14091. defaultHandlerSuccess(_) {
  14092. console.log("defaultHandlerSuccess", _), _.forEach((t) => {
  14093. this.s.insertImage(t.url);
  14094. });
  14095. },
  14096. defaultHandlerError(_) {
  14097. console.log("defaultHandlerError", _), this.jodit.events.fire("errorMessage", _);
  14098. },
  14099. error(_) {
  14100. console.log("error", _), this.jodit.events.fire("errorMessage", window.$l("文件上传失败"));
  14101. }
  14102. }
  14103. };
  14104. return Oe(() => {
  14105. X = ke.Jodit.make("#editorRef", _e(_e({}, de), se.config)), X.value = se.modelValue, X.events.on("change", (_) => {
  14106. ue("update:modelValue", _);
  14107. });
  14108. }), ze(() => {
  14109. X.destruct(), X = null;
  14110. }), Ae(
  14111. () => se.modelValue,
  14112. (_) => {
  14113. X.value !== _ && (X.value = _);
  14114. }
  14115. ), (_, t) => (Le(), Ne("textarea", {
  14116. id: "editorRef",
  14117. ref_key: "editorRef",
  14118. ref: Z,
  14119. name: "editor"
  14120. }, null, 512));
  14121. }
  14122. }, Ve = /* @__PURE__ */ Re(Be, [["__scopeId", "data-v-aadb8230"]]);
  14123. export {
  14124. Ve as default
  14125. };