1/*! LICENSE: 5943.7887a1acb3.js.LICENSE.txt */ 2(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[5943],{59516(){},69490(e){e.exports&&(e.exports=function(){function e(e,t){void 0===t&&(t=0);var n=e.charCodeAt(t);if(55296<=n&&n<=56319&&t<e.length-1){var r=n,i=e.charCodeAt(t+1);return 56320<=i&&i<=57343?(r-55296)*1024+(i-56320)+65536:r}if(56320<=n&&n<=57343&&t>=1){var r=e.charCodeAt(t-1),i=n;return 55296<=r&&r<=56319?(r-55296)*1024+(i-56320)+65536:i}return n}function t(e){return 1536<=e&&e<=1541||1757==e||1807==e||2274==e||3406==e||69821==e||70082<=e&&e<=70083||72250==e||72326<=e&&e<=72329||73030==e?12:13==e?0:10==e?1:0<=e&&e<=9||11<=e&&e<=12||14<=e&&e<=31||127<=e&&e<=159||173==e||1564==e||6158==e||8203==e||8206<=e&&e<=8207||8232==e||8233==e||8234<=e&&e<=8238||8288<=e&&e<=8292||8293==e||8294<=e&&e<=8303||55296<=e&&e<=57343||65279==e||65520<=e&&e<=65528||65529<=e&&e<=65531||113824<=e&&e<=113827||119155<=e&&e<=119162||917504==e||917505==e||917506<=e&&e<=917535||917632<=e&&e<=917759||918e3<=e&&e<=921599?2:768<=e&&e<=879||1155<=e&&e<=1159||1160<=e&&e<=1161||1425<=e&&e<=1469||1471==e||1473<=e&&e<=1474||1476<=e&&e<=1477||1479==e||1552<=e&&e<=1562||1611<=e&&e<=1631||1648==e||1750<=e&&e<=1756||1759<=e&&e<=1764||1767<=e&&e<=1768||1770<=e&&e<=1773||1809==e||1840<=e&&e<=1866||1958<=e&&e<=1968||2027<=e&&e<=2035||2070<=e&&e<=2073||2075<=e&&e<=2083||2085<=e&&e<=2087||2089<=e&&e<=2093||2137<=e&&e<=2139||2260<=e&&e<=2273||2275<=e&&e<=2306||2362==e||2364==e||2369<=e&&e<=2376||2381==e||2385<=e&&e<=2391||2402<=e&&e<=2403||2433==e||2492==e||2494==e||2497<=e&&e<=2500||2509==e||2519==e||2530<=e&&e<=2531||2561<=e&&e<=2562||2620==e||2625<=e&&e<=2626||2631<=e&&e<=2632||2635<=e&&e<=2637||2641==e||2672<=e&&e<=2673||2677==e||2689<=e&&e<=2690||2748==e||2753<=e&&e<=2757||2759<=e&&e<=2760||2765==e||2786<=e&&e<=2787||2810<=e&&e<=2815||2817==e||2876==e||2878==e||2879==e||2881<=e&&e<=2884||2893==e||2902==e||2903==e||2914<=e&&e<=2915||2946==e||3006==e||3008==e||3021==e||3031==e||3072==e||3134<=e&&e<=3136||3142<=e&&e<=3144||3146<=e&&e<=3149||3157<=e&&e<=3158||3170<=e&&e<=3171||3201==e||3260==e||3263==e||3266==e||3270==e||3276<=e&&e<=3277||3285<=e&&e<=3286||3298<=e&&e<=3299||3328<=e&&e<=3329||3387<=e&&e<=3388||3390==e||3393<=e&&e<=3396||3405==e||3415==e||3426<=e&&e<=3427||3530==e||3535==e||3538<=e&&e<=3540||3542==e||3551==e||3633==e||3636<=e&&e<=3642||3655<=e&&e<=3662||3761==e||3764<=e&&e<=3769||3771<=e&&e<=3772||3784<=e&&e<=3789||3864<=e&&e<=3865||3893==e||3895==e||3897==e||3953<=e&&e<=3966||3968<=e&&e<=3972||3974<=e&&e<=3975||3981<=e&&e<=3991||3993<=e&&e<=4028||4038==e||4141<=e&&e<=4144||4146<=e&&e<=4151||4153<=e&&e<=4154||4157<=e&&e<=4158||4184<=e&&e<=4185||4190<=e&&e<=4192||4209<=e&&e<=4212||4226==e||4229<=e&&e<=4230||4237==e||4253==e||4957<=e&&e<=4959||5906<=e&&e<=5908||5938<=e&&e<=5940||5970<=e&&e<=5971||6002<=e&&e<=6003||6068<=e&&e<=6069||6071<=e&&e<=6077||6086==e||6089<=e&&e<=6099||6109==e||6155<=e&&e<=6157||6277<=e&&e<=6278||6313==e||6432<=e&&e<=6434||6439<=e&&e<=6440||6450==e||6457<=e&&e<=6459||6679<=e&&e<=6680||6683==e||6742==e||6744<=e&&e<=6750||6752==e||6754==e||6757<=e&&e<=6764||6771<=e&&e<=6780||6783==e||6832<=e&&e<=6845||6846==e||6912<=e&&e<=6915||6964==e||6966<=e&&e<=6970||6972==e||6978==e||7019<=e&&e<=7027||7040<=e&&e<=7041||7074<=e&&e<=7077||7080<=e&&e<=7081||7083<=e&&e<=7085||7142==e||7144<=e&&e<=7145||7149==e||7151<=e&&e<=7153||7212<=e&&e<=7219||7222<=e&&e<=7223||7376<=e&&e<=7378||7380<=e&&e<=7392||7394<=e&&e<=7400||7405==e||7412==e||7416<=e&&e<=7417||7616<=e&&e<=7673||7675<=e&&e<=7679||8204==e||8400<=e&&e<=8412||8413<=e&&e<=8416||8417==e||8418<=e&&e<=8420||8421<=e&&e<=8432||11503<=e&&e<=11505||11647==e||11744<=e&&e<=11775||12330<=e&&e<=12333||12334<=e&&e<=12335||12441<=e&&e<=12442||42607==e||42608<=e&&e<=42610||42612<=e&&e<=42621||42654<=e&&e<=42655||42736<=e&&e<=42737||43010==e||43014==e||43019==e||43045<=e&&e<=43046||43204<=e&&e<=43205||43232<=e&&e<=43249||43302<=e&&e<=43309||43335<=e&&e<=43345||43392<=e&&e<=43394||43443==e||43446<=e&&e<=43449||43452==e||43493==e||43561<=e&&e<=43566||43569<=e&&e<=43570||43573<=e&&e<=43574||43587==e||43596==e||43644==e||43
2696==e||43698<=e&&e<=43700||43703<=e&&e<=43704||43710<=e&&e<=43711||43713==e||43756<=e&&e<=43757||43766==e||44005==e||44008==e||44013==e||64286==e||65024<=e&&e<=65039||65056<=e&&e<=65071||65438<=e&&e<=65439||66045==e||66272==e||66422<=e&&e<=66426||68097<=e&&e<=68099||68101<=e&&e<=68102||68108<=e&&e<=68111||68152<=e&&e<=68154||68159==e||68325<=e&&e<=68326||69633==e||69688<=e&&e<=69702||69759<=e&&e<=69761||69811<=e&&e<=69814||69817<=e&&e<=69818||69888<=e&&e<=69890||69927<=e&&e<=69931||69933<=e&&e<=69940||70003==e||70016<=e&&e<=70017||70070<=e&&e<=70078||70090<=e&&e<=70092||70191<=e&&e<=70193||70196==e||70198<=e&&e<=70199||70206==e||70367==e||70371<=e&&e<=70378||70400<=e&&e<=70401||70460==e||70462==e||70464==e||70487==e||70502<=e&&e<=70508||70512<=e&&e<=70516||70712<=e&&e<=70719||70722<=e&&e<=70724||70726==e||70832==e||70835<=e&&e<=70840||70842==e||70845==e||70847<=e&&e<=70848||70850<=e&&e<=70851||71087==e||71090<=e&&e<=71093||71100<=e&&e<=71101||71103<=e&&e<=71104||71132<=e&&e<=71133||71219<=e&&e<=71226||71229==e||71231<=e&&e<=71232||71339==e||71341==e||71344<=e&&e<=71349||71351==e||71453<=e&&e<=71455||71458<=e&&e<=71461||71463<=e&&e<=71467||72193<=e&&e<=72198||72201<=e&&e<=72202||72243<=e&&e<=72248||72251<=e&&e<=72254||72263==e||72273<=e&&e<=72278||72281<=e&&e<=72283||72330<=e&&e<=72342||72344<=e&&e<=72345||72752<=e&&e<=72758||72760<=e&&e<=72765||72767==e||72850<=e&&e<=72871||72874<=e&&e<=72880||72882<=e&&e<=72883||72885<=e&&e<=72886||73009<=e&&e<=73014||73018==e||73020<=e&&e<=73021||73023<=e&&e<=73029||73031==e||92912<=e&&e<=92916||92976<=e&&e<=92982||94095<=e&&e<=94098||113821<=e&&e<=113822||119141==e||119143<=e&&e<=119145||119150<=e&&e<=119154||119163<=e&&e<=119170||119173<=e&&e<=119179||119210<=e&&e<=119213||119362<=e&&e<=119364||121344<=e&&e<=121398||121403<=e&&e<=121452||121461==e||121476==e||121499<=e&&e<=121503||121505<=e&&e<=121519||122880<=e&&e<=122886||122888<=e&&e<=122904||122907<=e&&e<=122913||122915<=e&&e<=122916||122918<=e&&e<=122922||125136<=e&&e<=125142||125252<=e&&e<=125258||917536<=e&&e<=917631||917760<=e&&e<=917999?3:127462<=e&&e<=127487?4:2307==e||2363==e||2366<=e&&e<=2368||2377<=e&&e<=2380||2382<=e&&e<=2383||2434<=e&&e<=2435||2495<=e&&e<=2496||2503<=e&&e<=2504||2507<=e&&e<=2508||2563==e||2622<=e&&e<=2624||2691==e||2750<=e&&e<=2752||2761==e||2763<=e&&e<=2764||2818<=e&&e<=2819||2880==e||2887<=e&&e<=2888||2891<=e&&e<=2892||3007==e||3009<=e&&e<=3010||3014<=e&&e<=3016||3018<=e&&e<=3020||3073<=e&&e<=3075||3137<=e&&e<=3140||3202<=e&&e<=3203||3262==e||3264<=e&&e<=3265||3267<=e&&e<=3268||3271<=e&&e<=3272||3274<=e&&e<=3275||3330<=e&&e<=3331||3391<=e&&e<=3392||3398<=e&&e<=3400||3402<=e&&e<=3404||3458<=e&&e<=3459||3536<=e&&e<=3537||3544<=e&&e<=3550||3570<=e&&e<=3571||3635==e||3763==e||3902<=e&&e<=3903||3967==e||4145==e||4155<=e&&e<=4156||4182<=e&&e<=4183||4228==e||6070==e||6078<=e&&e<=6085||6087<=e&&e<=6088||6435<=e&&e<=6438||6441<=e&&e<=6443||6448<=e&&e<=6449||6451<=e&&e<=6456||6681<=e&&e<=6682||6741==e||6743==e||6765<=e&&e<=6770||6916==e||6965==e||6971==e||6973<=e&&e<=6977||6979<=e&&e<=6980||7042==e||7073==e||7078<=e&&e<=7079||7082==e||7143==e||7146<=e&&e<=7148||7150==e||7154<=e&&e<=7155||7204<=e&&e<=7211||7220<=e&&e<=7221||7393==e||7410<=e&&e<=7411||7415==e||43043<=e&&e<=43044||43047==e||43136<=e&&e<=43137||43188<=e&&e<=43203||43346<=e&&e<=43347||43395==e||43444<=e&&e<=43445||43450<=e&&e<=43451||43453<=e&&e<=43456||43567<=e&&e<=43568||43571<=e&&e<=43572||43597==e||43755==e||43758<=e&&e<=43759||43765==e||44003<=e&&e<=44004||44006<=e&&e<=44007||44009<=e&&e<=44010||44012==e||69632==e||69634==e||69762==e||69808<=e&&e<=69810||69815<=e&&e<=69816||69932==e||70018==e||70067<=e&&e<=70069||70079<=e&&e<=70080||70188<=e&&e<=70190||70194<=e&&e<=70195||70197==e||70368<=e&&e<=70370||70402<=e&&e<=70403||70463==e||70465<=e&&e<=70468||70471<=e&&e<=70472||70475<=e&&e<=70477||70498<=e&&e<=70499||70709<=e&&e<=70711||70720<=e&&e<=70721||70725==e||70833<=e&&e<=70834||70841==e||70843<=e&&e<=70844||70846==e||70849==e||71088<=e&&e<=71089||71096<=e&&e<=71099||71102==e||71216<=e&&e<=71218||71227<=e&&e<=71228||71230==e||71340==e||71342<=e&&e<=71343||71350==e||71456<=e&&e<=71457||71462==e||72199<=e&&e<=72200||72249==e||72279<=e&&e<=72280||72343==e||72751==e||72766==e||72873==e||72881==e||72884==e||94033<=e&&e<=94078||119142==e||119149==e?5:4352<=e&&e<=4447||43360<=e&&e<=43388?6:4448<=e&&e<=4519||552
216<=e&&e<=55238?7:4520<=e&&e<=4607||55243<=e&&e<=55291?8:44032==e||44060==e||44088==e||44116==e||44144==e||44172==e||44200==e||44228==e||44256==e||44284==e||44312==e||44340==e||44368==e||44396==e||44424==e||44452==e||44480==e||44508==e||44536==e||44564==e||44592==e||44620==e||44648==e||44676==e||44704==e||44732==e||44760==e||44788==e||44816==e||44844==e||44872==e||44900==e||44928==e||44956==e||44984==e||45012==e||45040==e||45068==e||45096==e||45124==e||45152==e||45180==e||45208==e||45236==e||45264==e||45292==e||45320==e||45348==e||45376==e||45404==e||45432==e||45460==e||45488==e||45516==e||45544==e||45572==e||45600==e||45628==e||45656==e||45684==e||45712==e||45740==e||45768==e||45796==e||45824==e||45852==e||45880==e||45908==e||45936==e||45964==e||45992==e||46020==e||46048==e||46076==e||46104==e||46132==e||46160==e||46188==e||46216==e||46244==e||46272==e||46300==e||46328==e||46356==e||46384==e||46412==e||46440==e||46468==e||46496==e||46524==e||46552==e||46580==e||46608==e||46636==e||46664==e||46692==e||46720==e||46748==e||46776==e||46804==e||46832==e||46860==e||46888==e||46916==e||46944==e||46972==e||47e3==e||47028==e||47056==e||47084==e||47112==e||47140==e||47168==e||47196==e||47224==e||47252==e||47280==e||47308==e||47336==e||47364==e||47392==e||47420==e||47448==e||47476==e||47504==e||47532==e||47560==e||47588==e||47616==e||47644==e||47672==e||47700==e||47728==e||47756==e||47784==e||47812==e||47840==e||47868==e||47896==e||47924==e||47952==e||47980==e||48008==e||48036==e||48064==e||48092==e||48120==e||48148==e||48176==e||48204==e||48232==e||48260==e||48288==e||48316==e||48344==e||48372==e||48400==e||48428==e||48456==e||48484==e||48512==e||48540==e||48568==e||48596==e||48624==e||48652==e||48680==e||48708==e||48736==e||48764==e||48792==e||48820==e||48848==e||48876==e||48904==e||48932==e||48960==e||48988==e||49016==e||49044==e||49072==e||49100==e||49128==e||49156==e||49184==e||49212==e||49240==e||49268==e||49296==e||49324==e||49352==e||49380==e||49408==e||49436==e||49464==e||49492==e||49520==e||49548==e||49576==e||49604==e||49632==e||49660==e||49688==e||49716==e||49744==e||49772==e||49800==e||49828==e||49856==e||49884==e||49912==e||49940==e||49968==e||49996==e||50024==e||50052==e||50080==e||50108==e||50136==e||50164==e||50192==e||50220==e||50248==e||50276==e||50304==e||50332==e||50360==e||50388==e||50416==e||50444==e||50472==e||50500==e||50528==e||50556==e||50584==e||50612==e||50640==e||50668==e||50696==e||50724==e||50752==e||50780==e||50808==e||50836==e||50864==e||50892==e||50920==e||50948==e||50976==e||51004==e||51032==e||51060==e||51088==e||51116==e||51144==e||51172==e||51200==e||51228==e||51256==e||51284==e||51312==e||51340==e||51368==e||51396==e||51424==e||51452==e||51480==e||51508==e||51536==e||51564==e||51592==e||51620==e||51648==e||51676==e||51704==e||51732==e||51760==e||51788==e||51816==e||51844==e||51872==e||51900==e||51928==e||51956==e||51984==e||52012==e||52040==e||52068==e||52096==e||52124==e||52152==e||52180==e||52208==e||52236==e||52264==e||52292==e||52320==e||52348==e||52376==e||52404==e||52432==e||52460==e||52488==e||52516==e||52544==e||52572==e||52600==e||52628==e||52656==e||52684==e||52712==e||52740==e||52768==e||52796==e||52824==e||52852==e||52880==e||52908==e||52936==e||52964==e||52992==e||53020==e||53048==e||53076==e||53104==e||53132==e||53160==e||53188==e||53216==e||53244==e||53272==e||53300==e||53328==e||53356==e||53384==e||53412==e||53440==e||53468==e||53496==e||53524==e||53552==e||53580==e||53608==e||53636==e||53664==e||53692==e||53720==e||53748==e||53776==e||53804==e||53832==e||53860==e||53888==e||53916==e||53944==e||53972==e||54e3==e||54028==e||54056==e||54084==e||54112==e||54140==e||54168==e||54196==e||54224==e||54252==e||54280==e||54308==e||54336==e||54364==e||54392==e||54420==e||54448==e||54476==e||54504==e||54532==e||54560==e||54588==e||54616==e||54644==e||54672==e||54700==e||54728==e||54756==e||54784==e||54812==e||54840==e||54868==e||54896==e||54924==e||54952==e||54980==e||55008==e||55036==e||55064==e||55092==e||55120==e||55148==e||55176==e?9:44033<=e&&e<=44059||44061<=e&&e<=44087||44089<=e&&e<=44115||44117<=e&&e<=44143||44145<=e&&e<=44171||44173<=e&&e<=44199||44201<=e&&e<=44227||44229<=e&&e<=44255||44257<=e&&e<=44283||44285<=e&&e<=44311||44313<=e&&e<=44339||44341<=e&&e<=44367||44369<=e&&e<=44395||44397<=e&&e<=44423||44425<=e&&e<=44451||44453<=e&&e<=44479||44481<=e&&e<=44507||44509<=e&&e<=44535||44537<=e&&e<=44563||44565<=e&&e<=44591||44593<=e&&e<=44619||44621<=e&&e<=44647||44649<=e&&e<=44675||44677<=e&&e<=44703||44705<=e&&e<=44731||44733<=e&&e<=44759||44761<=e&&e<=44787||44789<=e&&e<=44815||44817<=e&&e<=44843||44845<=e&&e<=44871||44873<=e&&e<=44899||44901<=e&&e<=44927||44929<=e&&e<=44955||44957<=e&&e<=44983||44985<=e&&e<=45011||45013<=e&&e<=45039||45041<=e&&e<=45067||45069<=e&&e<=45095||45097<=e&&e<=45123||45125<=e&&e<=45151||45153<=e&&e<=45179||45181<=e&&e<=45207||45209<=e&&e<=45235||45237<=e&&e<=45263||45265<=e&&e<=45291||45293<=e&&e<=45319||45321<=e&&e<=45347||45349<=e&&e<=45375||45377<=e&&e<=45403||45405<=e&&e<=45431||45433<=e&&e<=45459||45461<=e&&e<=45487||45489<=e&&e<=45515||45517<=e&&e<=45543||45545<=e&&e<=45571||45573<=e&&e<=45599||45601<=e&&e<=45627||45629<=e&&e<=45655||45657<=e&&e<=45683||45685<=e&&e<=45711||45713<=e&&e<=45739||45741<=e&&e<=45767||45769<=e&&e<=45795||45797<=e&&e<=45823||45825<=e&&e<=45851||45853<=e&&e<=45879||45881<=e&&e<=45907||45909<=e&&e<=45935||45937<=e&&e<=45963||45965<=e&&e<=45991||45993<=e&&e<=46019||46021<=e&&e<=46047||46049<=e&&e<=46075||46077<=e&&e<=46103||46105<=e&&e<=46131||46133<=e&&e<=46159||46161<=e&&e<=46187||46189<=e&&e<=46215||46217<=e&&e<=46243||46245<=e&&e<=46271||46273<=e&&e<=46299||46301<=e&&e<=46327||46329<=e&&e<=46355||46357<=e&&e<=46383||46385<=e&&e<=46411||46413<=e&&e<=46439||46441<=e&&e<=46467||46469<=e&&e<=46495||46497<=e&&e<=46523||46525<=e&&e<=46551||46553<=e&&e<=46579||46581<=e&&e<=46607||46609<=e&&e<=46635||46637<=e&&e<=46663||46665<=e&&e<=46691||46693<=e&&e<=46719||46721<=e&&e<=46747||46749<=e&&e<=46775||46777<=e&&e<=46803||46805<=e&&e<=46831||46833<=e&&e<=46859||46861<=e&&e<=46887||46889<=e&&e<=46915||46917<=e&&e<=46943||46945<=e&&e<=46971||46973<=e&&e<=46999||47001<=e&&e<=47027||47029<=e&&e<=47055||47057<=e&&e<=47083||47085<=e&&e<=47111||47113<=e&&e<=47139||47141<=e&&e<=47167||47169<=e&&e<=47195||47197<=e&&e<=47223||47225<=e&&e<=47251||47253<=e&&e<=47279||47281<=e&&e<=47307||47309<=e&&e<=47335||47337<=e&&e<=47363||47365<=e&&e<=47391||47393<=e&&e<=47419||47421<=e&&e<=47447||47449<=e&&e<=47475||47477<=e&&e<=47503||47505<=e&&e<=47531||47533<=e&&e<=47559||47561<=e&&e<=47587||47589<=e&&e<=47615||47617<=e&&e<=47643||47645<=e&&e<=47671||47673<=e&&e<=47699||47701<=e&&e<=47727||47729<=e&&e<=47755||47757<=e&&e<=47783||47785<=e&&e<=47811||47813<=e&&e<=47839||47841<=e&&e<=47867||47869<=e&&e<=47895||47897<=e&&e<=47923||47925<=e&&e<=47951||47953<=e&&e<=47979||47981<=e&&e<=48007||48009<=e&&e<=48035||48037<=e&&e<=48063||48065<=e&&e<=48091||48093<=e&&e<=48119||48121<=e&&e<=48147||48149<=e&&e<=48175||48177<=e&&e<=48203||48205<=e&&e<=48231||48233<=e&&e<=48259||48261<=e&&e<=48287||48289
2<=e&&e<=48315||48317<=e&&e<=48343||48345<=e&&e<=48371||48373<=e&&e<=48399||48401<=e&&e<=48427||48429<=e&&e<=48455||48457<=e&&e<=48483||48485<=e&&e<=48511||48513<=e&&e<=48539||48541<=e&&e<=48567||48569<=e&&e<=48595||48597<=e&&e<=48623||48625<=e&&e<=48651||48653<=e&&e<=48679||48681<=e&&e<=48707||48709<=e&&e<=48735||48737<=e&&e<=48763||48765<=e&&e<=48791||48793<=e&&e<=48819||48821<=e&&e<=48847||48849<=e&&e<=48875||48877<=e&&e<=48903||48905<=e&&e<=48931||48933<=e&&e<=48959||48961<=e&&e<=48987||48989<=e&&e<=49015||49017<=e&&e<=49043||49045<=e&&e<=49071||49073<=e&&e<=49099||49101<=e&&e<=49127||49129<=e&&e<=49155||49157<=e&&e<=49183||49185<=e&&e<=49211||49213<=e&&e<=49239||49241<=e&&e<=49267||49269<=e&&e<=49295||49297<=e&&e<=49323||49325<=e&&e<=49351||49353<=e&&e<=49379||49381<=e&&e<=49407||49409<=e&&e<=49435||49437<=e&&e<=49463||49465<=e&&e<=49491||49493<=e&&e<=49519||49521<=e&&e<=49547||49549<=e&&e<=49575||49577<=e&&e<=49603||49605<=e&&e<=49631||49633<=e&&e<=49659||49661<=e&&e<=49687||49689<=e&&e<=49715||49717<=e&&e<=49743||49745<=e&&e<=49771||49773<=e&&e<=49799||49801<=e&&e<=49827||49829<=e&&e<=49855||49857<=e&&e<=49883||49885<=e&&e<=49911||49913<=e&&e<=49939||49941<=e&&e<=49967||49969<=e&&e<=49995||49997<=e&&e<=50023||50025<=e&&e<=50051||50053<=e&&e<=50079||50081<=e&&e<=50107||50109<=e&&e<=50135||50137<=e&&e<=50163||50165<=e&&e<=50191||50193<=e&&e<=50219||50221<=e&&e<=50247||50249<=e&&e<=50275||50277<=e&&e<=50303||50305<=e&&e<=50331||50333<=e&&e<=50359||50361<=e&&e<=50387||50389<=e&&e<=50415||50417<=e&&e<=50443||50445<=e&&e<=50471||50473<=e&&e<=50499||50501<=e&&e<=50527||50529<=e&&e<=50555||50557<=e&&e<=50583||50585<=e&&e<=50611||50613<=e&&e<=50639||50641<=e&&e<=50667||50669<=e&&e<=50695||50697<=e&&e<=50723||50725<=e&&e<=50751||50753<=e&&e<=50779||50781<=e&&e<=50807||50809<=e&&e<=50835||50837<=e&&e<=50863||50865<=e&&e<=50891||50893<=e&&e<=50919||50921<=e&&e<=50947||50949<=e&&e<=50975||50977<=e&&e<=51003||51005<=e&&e<=51031||51033<=e&&e<=51059||51061<=e&&e<=51087||51089<=e&&e<=51115||51117<=e&&e<=51143||51145<=e&&e<=51171||51173<=e&&e<=51199||51201<=e&&e<=51227||51229<=e&&e<=51255||51257<=e&&e<=51283||51285<=e&&e<=51311||51313<=e&&e<=51339||51341<=e&&e<=51367||51369<=e&&e<=51395||51397<=e&&e<=51423||51425<=e&&e<=51451||51453<=e&&e<=51479||51481<=e&&e<=51507||51509<=e&&e<=51535||51537<=e&&e<=51563||51565<=e&&e<=51591||51593<=e&&e<=51619||51621<=e&&e<=51647||51649<=e&&e<=51675||51677<=e&&e<=51703||51705<=e&&e<=51731||51733<=e&&e<=51759||51761<=e&&e<=51787||51789<=e&&e<=51815||51817<=e&&e<=51843||51845<=e&&e<=51871||51873<=e&&e<=51899||51901<=e&&e<=51927||51929<=e&&e<=51955||51957<=e&&e<=51983||51985<=e&&e<=52011||52013<=e&&e<=52039||52041<=e&&e<=52067||52069<=e&&e<=52095||52097<=e&&e<=52123||52125<=e&&e<=52151||52153<=e&&e<=52179||52181<=e&&e<=52207||52209<=e&&e<=52235||52237<=e&&e<=52263||52265<=e&&e<=52291||52293<=e&&e<=52319||52321<=e&&e<=52347||52349<=e&&e<=52375||52377<=e&&e<=52403||52405<=e&&e<=52431||52433<=e&&e<=52459||52461<=e&&e<=52487||52489<=e&&e<=52515||52517<=e&&e<=52543||52545<=e&&e<=52571||52573<=e&&e<=52599||52601<=e&&e<=52627||52629<=e&&e<=52655||52657<=e&&e<=52683||52685<=e&&e<=52711||52713<=e&&e<=52739||52741<=e&&e<=52767||52769<=e&&e<=52795||52797<=e&&e<=52823||52825<=e&&e<=52851||52853<=e&&e<=52879||52881<=e&&e<=52907||52909<=e&&e<=52935||52937<=e&&e<=52963||52965<=e&&e<=52991||52993<=e&&e<=53019||53021<=e&&e<=53047||53049<=e&&e<=53075||53077<=e&&e<=53103||53105<=e&&e<=53131||53133<=e&&e<=53159||53161<=e&&e<=53187||53189<=e&&e<=53215||53217<=e&&e<=53243||53245<=e&&e<=53271||53273<=e&&e<=53299||53301<=e&&e<=53327||53329<=e&&e<=53355||53357<=e&&e<=53383||53385<=e&&e<=53411||53413<=e&&e<=53439||53441<=e&&e<=53467||53469<=e&&e<=53495||53497<=e&&e<=53523||53525<=e&&e<=53551||53553<=e&&e<=53579||53581<=e&&e<=53607||53609<=e&&e<=53635||53637<=e&&e<=53663||53665<=e&&e<=53691||53693<=e&&e<=53719||53721<=e&&e<=53747||53749<=e&&e<=53775||53777<=e&&e<=53803||53805<=e&&e<=53831||53833<=e&&e<=53859||53861<=e&&e<=53887||53889<=e&&e<=53915||53917<=e&&e<=53943||53945<=e&&e<=53971||53973<=e&&e<=53999||54001<=e&&e<=54027||54029<=e&&e<=54055||54057<=e&&e<=54083||54085<=e&&e<=54111||54113<=e&&e<=54139||54141<=e&&e<=54167||54169<=e&&e<=54195||54197<=e&&e<=54223||54225<=e&&e<=54251||54253<=e&&e<=54279||54281<=e&&e<=54307||54309<=e&&e<=54335||54337<=e&&e<=54363||54365<=e&&e<=54391||54393<=e&&e<=54419||54421<=e&&e<=54447||54449<=e&&e<=54475||54477<=e&&e<=54503||54505<=e&&e<=54531||54533<=e&&e<=54559||54561<=e&&e<=54587||54589<=e&&e<=54615||54617<=e&&e<=54643||54645<=e&&e<=54671||54673<=e&&e<=54699||54701<=e&&e<=54727||54729<=e&&e<=54755||54757<=e&&e<=54783||54785<=e&&e<=54811||54813<=e&&e<=54839||54841<=e&&e<=54867||54869<=e&&e<=54895||54897<=e&&e<=54923||54925<=e&&e<=54951||54953<=e&&e<=54979||54981<=e&&e<=55007||55009<=e&&e<=55035||55037<=e&&e<=55063||55065<=e&&e<=55091||55093<=e&&e<=55119||55121<=e&&e<=55147||55149<=e&&e<=55175||551
277<=e&&e<=55203?10:9757==e||9977==e||9994<=e&&e<=9997||127877==e||127938<=e&&e<=127940||127943==e||127946<=e&&e<=127948||128066<=e&&e<=128067||128070<=e&&e<=128080||128110==e||128112<=e&&e<=128120||128124==e||128129<=e&&e<=128131||128133<=e&&e<=128135||128170==e||128372<=e&&e<=128373||128378==e||128400==e||128405<=e&&e<=128406||128581<=e&&e<=128583||128587<=e&&e<=128591||128675==e||128692<=e&&e<=128694||128704==e||128716==e||129304<=e&&e<=129308||129310<=e&&e<=129311||129318==e||129328<=e&&e<=129337||129341<=e&&e<=129342||129489<=e&&e<=129501?13:127995<=e&&e<=127999?14:8205==e?15:9792==e||9794==e||9877<=e&&e<=9878||9992==e||10084==e||127752==e||127806==e||127859==e||127891==e||127908==e||127912==e||127979==e||127981==e||128139==e||128187<=e&&e<=128188||128295==e||128300==e||128488==e||128640==e||128658==e?16:128102<=e&&e<=128105?17:11}return this.nextBreak=function(n,r){if(void 0===r&&(r=0),r<0)return 0;if(r>=n.length-1)return n.length;for(var i,a=t(e(n,r)),o=[],l=r+1;l<n.length;l++)if(i=l-1,!(55296<=n.charCodeAt(i)&&56319>=n.charCodeAt(i)&&56320<=n.charCodeAt(i+1)&&57343>=n.charCodeAt(i+1))){var s=t(e(n,l));if(function(e,t,n){var r=[e].concat(t).concat([n]),i=r[r.length-2],a=r.lastIndexOf(14);if(a>1&&r.slice(1,a).every(function(e){return 3==e})&&-1==[3,13,17].indexOf(e))return 2;var o=r.lastIndexOf(4);if(o>0&&r.slice(1,o).every(function(e){return 4==e})&&-1==[12,4].indexOf(i))if(r.filter(function(e){return 4==e}).length%2==1)return 3;else return 4;if(0==i&&1==n)return 0;if(2==i||0==i||1==i)if(14==n&&t.every(function(e){return 3==e}))return 2;else return 1;if(2==n||0==n||1==n)return 1;if(6==i&&(6==n||7==n||9==n||10==n))return 0;if((9==i||7==i)&&(7==n||8==n))return 0;else if((10==i||8==i)&&8==n)return 0;else if(3==n||15==n)return 0;else if(5==n)return 0;else if(12==i)return 0;var l=-1!=r.indexOf(3)?r.lastIndexOf(3)-1:r.length-2;return -1!=[13,17].indexOf(r[l])&&r.slice(l+1,-1).every(function(e){return 3==e})&&14==n||15==i&&-1!=[16,17].indexOf(n)?0:-1!=t.indexOf(4)?2:+(4!=i||4!=n)}(a,o,s))return l;o.push(s)}return n.length},this.splitGraphemes=function(e){for(var t,n=[],r=0;(t=this.nextBreak(e,r))<e.length;)n.push(e.slice(r,t)),r=t;return r<e.length&&n.push(e.slice(r)),n},this.iterateGraphemes=function(e){var t=0,n={next:(function(){var n,r;return(r=this.nextBreak(e,t))<e.length?(n=e.slice(t,r),t=r,{value:n,done:!1}):t<e.length?(n=e.slice(t),t=e.length,{value:n,done:!1}):{value:void 0,done:!0}}).bind(this)};return"u">typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return n}),n},this.countGraphemes=function(e){for(var t,n=0,r=0;(t=this.nextBreak(e,r))<e.length;)r=t,n++;return r<e.length&&n++,n},this})},34477(){Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean},89866(){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}
2],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},89373(){var e,t,n;e=Prism,t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source}),e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])},90871(){var e,t,n;t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,(e=Prism).languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(n=e.languages.markup)&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))},85790(){var e,t,n,r;e=Prism,t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;
2?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})},36525(){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source)+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}
2/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},78443(){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}
2|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){("markdown"===e.language||"md"===e.language)&&function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var i=t[n];
2if("code"!==i.type){e(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content){var l=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());o.alias?"string"==typeof o.alias?o.alias=[o.alias,s]:o.alias.push(s):o.alias=[s]}}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n,r="",i=0,a=t.classes.length;i<a;i++){var u=t.classes[i],c=/language-(.+)/.exec(u);if(c){r=c[1];break}}var d=e.languages[r];if(d){t.content=e.highlight((n=t.content.replace(o,"")).replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){if("#"===(t=t.toLowerCase())[0])return s("x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)));var n=l[t];return n||e}),d,r)}else if(r&&"none"!==r&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=g,e.plugins.autoloader.loadLanguages(r,function(){var t=document.getElementById(g);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[r],r))})}}});var o=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)},74798(){Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},56850(){Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec},311(){var e;(e=Prism.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}
2],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/}).string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}},52892(){Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},23892(){for(var e=Prism,t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}
vendor: 5,663 bytes, line 2
2],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string},27548(){Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},36647(){Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]
2*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*")+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift})},38733(){var e,t;(e=Prism).languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"],t=e.languages.extend("typescript",{}),delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript},22554(e,t,n){var r,i,a=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,a;switch(n=n||{},i.util.type(t)){case"Object":if(n[a=i.util.objId(t)])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":if(n[a=i.util.objId(t)])return n[a];return r=[],n[a]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r;default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("u"<typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName&&1)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;
2if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var a=(r=r||i.languages)[e],o={};for(var l in a)if(a.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(l)||(o[l]=a[l])}var u=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===u&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a=a||{};var o=i.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var s=t[l],u=i.util.type(s);"Object"!==u||a[o(s)]?"Array"!==u||a[o(s)]||(a[o(s)]=!0,e(s,n,l,a)):(a[o(s)]=!0,e(s,n,null,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var a,o=0;a=r.elements[o++];)i.highlightElement(a,!0===t,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var l=t.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&i.util.setLanguage(l,a);var s=t.textContent,u={element:t,language:a,grammar:o,code:s};function c(e){u.highlightedCode=e,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),r&&r.call(u.element)}if(i.hooks.run("before-sanity-check",u),(l=u.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!u.code){i.hooks.run("complete",u),r&&r.call(u.element);return}if(i.hooks.run("before-highlight",u),!u.grammar)return void c(i.util.encode(u.code));if(n&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(i.highlight(u.code,u.grammar,u.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var u=new l;return s(u,u.head,e),function e(t,n,r,l,u,c){for(var d in r)if(r.hasOwnProperty(d)&&r[d]){var g=r[d];g=Array.isArray(g)?g:[g];for(var p=0;p<g.length;++p){if(c&&c.cause==d+","+p)return;var h=g[p],m=h.inside,f=!!h.lookbehind,b=!!h.greedy,v=h.alias;if(b&&!h.pattern.global){var C=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,C+"g")}for(var y=h.pattern||h,x=l.next,w=u;x!==n.tail&&(!c||!(w>=c.reach));w+=x.value.length,x=x.next){var _,k=x.value;if(n.length>t.length)return;if(!(k instanceof a)){var E=1;if(b){if(!(_=o(y,w,t,f))||_.index>=t.length)break;var S=_.index,T=_.index+_[0].length,N=w;for(N+=x.value.length;S>=N;)N+=(x=x.next).value.length;if(N-=x.value.length,w=N,x.value instanceof a)continue;for(var L=x;L!==n.tail&&(N<T||"string"==typeof L.value);L=L.next)E++,N+=L.value.length;E--,k=t.slice(w,N),_.index-=w}else if(!(_=o(y,0,k,f)))continue;var S=_.index,A=_[0],I=k.slice(0,S),F=k.slice(S+A.length),P=w+k.length;c&&P>c.reach&&(c.reach=P);var O=x.prev;if(I&&(O=s(n,O,I),w+=I.length),function(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}(n,O,E),x=s(n,O,new a(d,m?i.tokenize(A,m):A,v,A)),F&&s(n,x,F),E>1){var M={cause:d+","+p,reach:P};e(t,n,r,x.prev,w,M),c&&M.reach>c.reach&&(c.reach=M.reach)}}}}}}(e,u,t,u.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(u)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}if(e.Prism=i,a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run("wrap",a);var l="";for(var s in a.attributes)l+=" "+s+'="'+(a.attributes[s]||"").replace(/"/g,""")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+l+">"+a.content+"</"+a.tag+">"},!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()},!1)),i;var u=i.util.currentScript();function c(){i.manual||i.highlightAll()}if(u&&(i.filename=u.src,u.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var d=document.readyState;"loading"===d||"interactive"===d&&u&&u.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return i}("u">typeof window?window:"u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=a),void 0!==n.g&&(n.g.Prism=a),a.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>
2\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:a.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},a.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(e,t){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:a.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css,(i=a.languages.markup)&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css")),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source)+"|"+/(?:\d+(?:_\d+)*(?
2:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,function(){if(void 0!==a&&"u">typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",r="loaded",i="pre[data-src]:not(["+t+'="'+r+'"]):not(['+t+'="'+n+'"])';a.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),a.hooks.add("before-sanity-check",function(o){var l=o.element;if(l.matches(i)){o.code="",l.setAttribute(t,n);var s,u,c,d,g=l.appendChild(document.createElement("CODE"));g.textContent="Loadingâ¦";var p=l.getAttribute("data-src"),h=o.language;if("none"===h){var m=(/\.(\w+)$/.exec(p)||[,"none"])[1];h=e[m]||m}a.util.setLanguage(g,h),a.util.setLanguage(l,h);var f=a.plugins.autoloader;f&&f.loadLanguages(h),s=p,u=function(e){l.setAttribute(t,r);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}(l.getAttribute("data-range"));if(n){var i=e.split(/\r\n?|\n/g),o=n[0],s=null==n[1]?i.length:n[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),s<0&&(s+=i.length),s=Math.max(0,Math.min(s,i.length)),e=i.slice(o,s).join("\n"),l.hasAttribute("data-start")||l.setAttribute("data-start",String(o+1))}g.textContent=e,a.highlightElement(g)},c=function(e){l.setAttribute(t,"failed"),g.textContent=e},(d=new XMLHttpRequest).open("GET",s,!0),d.onreadystatechange=function(){var e;4==d.readyState&&(d.status<400&&d.responseText?u(d.responseText):d.status>=400?c((e=d.status,"â Error "+e+" while fetching file: "+d.statusText)):c("â Error: File does not exist or is empty"))},d.send(null)}}),a.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(i),r=0;t=n[r++];)a.highlightElement(t)}};var o=!1;a.fileHighlight=function(){o||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),o=!0),a.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},17521(e,t,n){"use strict";t.ih=void 0;var r=n(52339);Object.defineProperty(t,"ih",{enumerable:!0,get:function(){return r.SegmentedMessage}}),n(96517)}
2,5420(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(72047));t.default=function(){function e(e,t){if(this.raw=e,this.encoding=t,this.isGSM7=!!(e&&1===e.length&&i.default[e.charCodeAt(0)]),this.isGSM7)this.codeUnits="UCS-2"===t?[e.charCodeAt(0)]:i.default[e.charCodeAt(0)];else{this.codeUnits=[];for(var n=0;n<e.length;n++)this.codeUnits.push(e.charCodeAt(n))}}return e.prototype.codeUnitSizeInBits=function(){return"GSM-7"===this.encoding?7:8},e.prototype.sizeInBits=function(){return"UCS-2"===this.encoding&&this.isGSM7?16:("GSM-7"===this.encoding?7:16)*this.codeUnits.length},e}()},96517(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RcsSegmentedMessage=void 0;var r=n(70018),i=["us","international"];t.RcsSegmentedMessage=function(e,t){if(void 0===t&&(t="us"),this.encodingName="UTF-8",!i.includes(t))throw Error('Invalid region "'.concat(t,'". Must be one of: ').concat(i.join(", ")));this.message=e,this.region=t;var n=(0,r.countUtf8Bytes)(e);if(this.numberOfBytes=n,this.messageSize=8*n,this.totalSize=this.messageSize,0===n){this.segmentsCount=0,this.messageType="us"===t?"Rich":"Basic",this.segments=[];return}if("us"===t){this.segmentsCount=Math.ceil(n/160),this.messageType="Rich",this.segments=[];for(var a=n,o=0;o<this.segmentsCount;o+=1){var l=Math.min(160,a);this.segments.push({index:o,capacity:160,used:l}),a-=l}}else{this.segmentsCount=1;var s=n<=160;this.messageType=s?"Basic":"Single",this.segments=[{index:0,capacity:s?160:1600,used:n}]}}},34203(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(27158));t.default=function(e){function t(n){void 0===n&&(n=!1);var r=e.call(this)||this;if(Object.setPrototypeOf(r,Object.create(t.prototype)),r.hasTwilioReservedBits=n,r.hasUserDataHeader=n,n)for(var i=0;i<6;i++)r.push(new o.default);return r}return i(t,e),t.prototype.sizeInBits=function(){return this.reduce(function(e,t){return e+t.sizeInBits()},0)},t.prototype.messageSizeInBits=function(){return this.reduce(function(e,t){return e+(t instanceof o.default?0:t.sizeInBits())},0)},t.prototype.freeSizeInBits=function(){return 1120-this.sizeInBits()},t.prototype.addHeader=function(){if(this.hasUserDataHeader)return[];var e=[];this.hasTwilioReservedBits=!0,this.hasUserDataHeader=!1;for(var t=0;t<6;t++)this.unshift(new o.default);for(;0>this.freeSizeInBits();)e.unshift(this.pop());return e},t}(Array)},52339(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentedMessage=void 0;var l=o(n(34203)),s=o(n(5420)),u=o(n(72047)),c=o(n(990)),d=n(70018),g=["GSM-7","UCS-2","auto"];t.SegmentedMessage=function(){function e(e,t,n){if(void 0===t&&(t="auto"),void 0===n&&(n=!1),!g.includes(t))throw Error("Encoding ".concat(t," not supported. Valid values for encoding are ").concat(g.join(", ")));if(n&&(e=i([],r(e),!1).map(function(e){return void 0===c.default[e]?e:c.default[e]}).join("")),this.graphemes=(0,d.splitGraphemes)(e),this.numberOfUnicodeScalars=i([],r(e),!1).length,this.encoding=t,"auto"===this.encoding)this.encodingName=this._hasA
2nyUCSCharacters(this.graphemes)?"UCS-2":"GSM-7";else{if("GSM-7"===t&&this._hasAnyUCSCharacters(this.graphemes))throw Error("The string provided is incompatible with GSM-7 encoding");this.encodingName=this.encoding}this.encodedChars=this._encodeChars(this.graphemes),this.numberOfCharacters="UCS-2"===this.encodingName?this.graphemes.length:this._countCodeUnits(this.encodedChars),this.segments=this._buildSegments(this.encodedChars),this.lineBreakStyle=this._detectLineBreakStyle(e),this.warnings=this._checkForWarnings()}return e.prototype._hasAnyUCSCharacters=function(e){var t,n,r=!1;try{for(var i=a(e),o=i.next();!o.done;o=i.next()){var l=o.value;if(l.length>=2||1===l.length&&!u.default[l.charCodeAt(0)]){r=!0;break}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.prototype._buildSegments=function(e){var t,n,r=[];r.push(new l.default);var i=r[0];try{for(var o=a(e),s=o.next();!s.done;s=o.next()){var u=s.value;if(i.freeSizeInBits()<u.sizeInBits()){r.push(new l.default(!0)),i=r[r.length-1];var c=r[r.length-2];c.hasUserDataHeader||c.addHeader().forEach(function(e){return i.push(e)})}i.push(u)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},e.prototype.getEncodingName=function(){return this.encodingName},e.prototype._encodeChars=function(e){var t,n,r=[];try{for(var i=a(e),o=i.next();!o.done;o=i.next()){var l=o.value;r.push(new s.default(l,this.encodingName))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.prototype._countCodeUnits=function(e){return e.reduce(function(e,t){return e+t.codeUnits.length},0)},Object.defineProperty(e.prototype,"totalSize",{get:function(){var e,t,n=0;try{for(var r=a(this.segments),i=r.next();!i.done;i=r.next()){var o=i.value;n+=o.sizeInBits()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"messageSize",{get:function(){var e,t,n=0;try{for(var r=a(this.segments),i=r.next();!i.done;i=r.next()){var o=i.value;n+=o.messageSizeInBits()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"segmentsCount",{get:function(){return this.segments.length},enumerable:!1,configurable:!0}),e.prototype.getNonGsmCharacters=function(){return this.encodedChars.filter(function(e){return!e.isGSM7}).map(function(e){return e.raw})},e.prototype._detectLineBreakStyle=function(e){var t=e.includes("\r\n"),n=e.replace(/\r\n/g,"").includes("\n");if(!(!t&&!n))return t&&n?"LF+CRLF":n?"LF":"CRLF"},e.prototype._checkForWarnings=function(){var e=[];return this.lineBreakStyle&&e.push("The message has line breaks, the web page utility only supports LF style. If you insert a CRLF it will be converted to LF."),e},e}()},990(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"«":'"',"»":'"',"â":'"',"â":'"',ʺ:'"',Ë®:'"',"â":'"',"â":'"',"â":'"',"â":'"',"ã":'"',"ã":'"',"ï¼":'"',"â":"'","â":"'",Ê»:"'",Ë:"'",ʼ:"'",ʽ:"'",ʹ:"'","â":"'","ï¼":"'","´":"'",Ë:"'","`":"'",Ë:"'","â":"'","â":"'","Ì":"'","Ì":"'","ï¸":"'","ï¸":"'","÷":"/","¼":"1/4","½":"1/2","¾":"3/4","⧸":"/","Ì·":"/","̸":"/","â":"/","â":"/","ï¼":"/","â§¹":"\\","â§µ":"\\","â¥":"\\","﹨":"\\","ï¼¼":"\\","̲":"_","_":"_","â":"|","â":"|","â£":"|","ï½":"|","â¸":"|","â¹":"|","â":"|","â":"|","â":"|","â¼":"-","â½":"-","â":"-","ï¹£":"-","ï¼":"-","â":"-","â":"-","﹫":"@","ï¼ ":"@","﹩":"$","ï¼":"$",Ç:"!","ï¸":"
2!","ï¹":"!","ï¼":"!","ï¹":"#","ï¼":"#","﹪":"%","ï¼ ":"%","ï¹ ":"&","ï¼":"&","â":",","̦":",","ï¹":",","ï¹":",","ï¼":",","、":",","â¨":"(","âª":"(","ï¹":"(","ï¼":"(","â®":"(","⦠":"(","â©":")","â«":")","ï¹":")","ï¼":")","â¯":")","â¦":")","â":"*","â":"*","â":"*","â¢":"*","â£":"*","â¤":"*","â¥":"*","â±":"*","â²":"*","â³":"*","âº":"*","â»":"*","â¼":"*","â½":"*","â":"*","â":"*","â":"*","â":"*","â§":"*","﹡":"*","ï¼":"*","Ë":"+","ï¹¢":"+","ï¼":"+","ã":".","ï¹":".","ï¼":".","。":".","ï¼":"0","ï¼":"1","ï¼":"2","ï¼":"3","ï¼":"4","ï¼":"5","ï¼":"6","ï¼":"7","ï¼":"8","ï¼":"9",Ë:":","˸":":","â¦":":","ê":":","ï¸":":","ï¼":":","â":";","ï¸":";","ï¹":";","ï¼":";","﹤":"<","ï¼":"<","Í":"=","ê":"=","﹦":"=","ï¼":"=","ï¹¥":">","ï¼":">","ï¸":"?","ï¹":"?","ï¼":"?",A:"A",á´:"A",ï¼¢:"B",Ê:"B",ï¼£:"C",á´:"C",D:"D",á´ :"D",ï¼¥:"E",á´:"E",F:"F",ê°:"F",ï¼§:"G",É¢:"G",H:"H",Ê:"H",I:"I",ɪ:"I",J:"J",á´:"J",K:"K",á´:"K",L:"L",Ê:"L",ï¼:"M",á´:"M",ï¼®:"N",É´:"N",O:"O",á´:"O",ï¼°:"P",á´:"P",ï¼±:"Q",ï¼²:"R",Ê:"R",ï¼³:"S",ê±:"S",ï¼´:"T",á´:"T",ï¼µ:"U",á´:"U",ï¼¶:"V",á´ :"V",ï¼·:"W",á´¡:"W",X:"X",ï¼¹:"Y",Ê:"Y",Z:"Z",á´¢:"Z",Ë:"^","Ì":"^","ï¼¾":"^","á·":"^","â´":"{","ï¹":"{","ï½":"{","âµ":"}","ï¹":"}","ï½":"}","ï¼»":"[","ï¼½":"]","Ë":"~","Ë·":"~","Ì":"~","̰":"~","Ì´":"~","â¼":"~","ï½":"~"," ":" ","â":" ","â":" ","â":" ","â":" ","â ":" ","â":" ","â":" ","â":" ","â":" ","â":" ","â¯":" ","â":" ","ã":" ","Â":" ","Â":" ","Â":" ","Â":" ","Â":" ","\x10":""," ":" ","\0":"","\x03":"","\x04":"","\x17":"","\x19":"","\x11":"","\x12":"","\x13":"","\x14":"","â ":"","â":"_","â":"-","â":"-","â¹":"<","âº":">","â¼":"!!","\u2028":" ","\u2029":" ","â¦":"...","â":" ","â":"","â":"","ã":",","\uFEFF":"","â¢":"-"}},72047(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={10:[10],12:[27,10],13:[13],32:[32],33:[33],34:[34],35:[35],36:[2],37:[37],38:[38],39:[39],40:[40],41:[41],42:[42],43:[43],44:[44],45:[45],46:[46],47:[47],48:[48],49:[49],50:[50],51:[51],52:[52],53:[53],54:[54],55:[55],56:[56],57:[57],58:[58],59:[59],60:[60],61:[61],62:[62],63:[63],64:[0],65:[65],66:[66],67:[67],68:[68],69:[69],70:[70],71:[71],72:[72],73:[73],74:[74],75:[75],76:[76],77:[77],78:[78],79:[79],80:[80],81:[81],82:[82],83:[83],84:[84],85:[85],86:[86],87:[87],88:[88],89:[89],90:[90],91:[27,60],92:[27,47],93:[27,62],94:[27,20],95:[17],97:[97],98:[98],99:[99],100:[100],101:[101],102:[102],103:[103],104:[104],105:[105],106:[106],107:[107],108:[108],109:[109],110:[110],111:[111],112:[112],113:[113],114:[114],115:[115],116:[116],117:[117],118:[118],119:[119],120:[120],121:[121],122:[122],123:[27,40],124:[27,64],125:[27,41],126:[27,61],161:[64],163:[1],164:[36],165:[3],167:[95],191:[96],196:[91],197:[14],198:[28],201:[31],209:[93],214:[92],216:[11],220:[94],223:[30],224:[127],228:[123],229:[15],230:[29],199:[9],232:[4],233:[5],236:[7],241:[125],242:[8],246:[124],248:[12],249:[6],252:[126],915:[19],916:[16],920:[25],923:[20],926:[26],928:[22],931:[24],934:[18],936:[23],937:[21],8364:[27,101]}},27158(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(){this.isReservedChar=!0,this.isUserDataHeader=!0}return e.codeUnitSizeInBits=function(){return 8},e.prototype.sizeInBits=function(){return 8},e}()},70018(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.countUtf8Bytes=t.splitGraphemes=void 0;var i=r(n(69490));t.splitGraphemes=function(e){return new i.default().splitGraphemes(e).reduce(function(e,t){var n="\r\n"===t?t.split(""):[t];return e.concat(n)},[])},t.countUtf8Bytes=function(e){return"u">typeof TextEncoder?new TextEncoder().encode(e).length:Array.from(e).reduce(function(e,t){var n=t.codePointAt(0);return e+(void 0===n?0:n<=127?1:n<=2047?2:n<=65535?3:4)},0)}},47016(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(86172),i="u">typeof window&&void 0!==window.StaticReactV2BId?window.StaticReactV2BId:"IwY1~qWWwbNaxnBeKVPrNw==",a="u">typeof window&&void 0!==window.StaticReactV2UId?window.StaticReactV2UId:"er1vaA6-85U9jkS34hxL8A==";window.groupID="u">typeof window&&void 0!==window.groupID?window.groupID:"us02",window.VagaroCoreAPIURLV2="u">typeof window&&void 0!==window.VagaroCoreAPIURLV2?window.VagaroCoreAPIURLV2:"https://api.vagaro.com/us02/api/v2/";let o={"Content-Type":"application/json",merchantId:i,userId:a,employeeid:a};window.groupID="u">typeof window&&void 0!==window.groupID?window.groupID:"us02",window.VagaroCoreAPIURLV2="u">typeof window&&void 0!==window.VagaroCoreAPIURLV2?window.VagaroCoreAPIURLV2:"https://api.vagaro.com/us02/api/v2/";let l={Get:(e="",t,n,i,a)=>{let l=e+("u">typeof window&&void 0!==window.groupID?window.groupID:"us02")+"/api/v2/"+t;""!=n?r.A.get(l,n,{headers:o}).then(e=>{i(e)}).catch(e=>{a(e)}):r.A.get(l,{headers:o}).then(e=>{i(e)}).catch(e=>{a(e)})},Post:(e,t,n,i)=>{let a=window.VagaroCoreAPIURLV2+e;r.A.post(a,t,{headers:o}).then(e=>{n(e)}).catch(e=>{i(e)})},Put:(e,t,n,i)=>{let a=window.VagaroCoreAPIURLV2+e;r.A.put(a,t,{headers:o}).then(e=>{n(e)}).catch(e=>{i(e)})},Patch:(e,t,n,i)=>{let a=window.VagaroCoreAPIURLV2+e;r.A.patch(a,t,{headers:{"Content-Type":"application/json"}}).then(e=>{n(e)}).catch(e=>{i(e)})},Delete:(e,t,n,i)=>{let a=window.VagaroCoreAPIURLV2+e;r.A.delete(a,{headers:o,data:t}).then(e=>{n(e)}).catch(e=>{i(e)})},GetV2:(e,t,n,i,a)=>{t&&t.params?r.A.get(e,{headers:a,params:t.params}).then(e=>{n(e)}).catch(e=>{i(e)}):r.A.get(e,{headers:a}).then(e=>{n(e)}).catch(e=>{i(e)})},PostV2:(e,t,n,i,a)=>{r.A.post(e,t,{headers:a}).then(e=>{n(e)}).catch(e=>{i(e)})}}},22495(e,t,n){"use strict";n.d(t,{S:()=>o,W:()=>s});var r=n(47016);let i=null,a=null,o=e=>{if(!e)throw Error("EnvironmentUrl is required. Please pass EnvironmentUrl prop to the component.");return i?Promise.resolve(i):(a||(a=new Promise((t,n)=>{r.A.Get(e,"countrylist/countrylistdetails","",e=>{let n=e?.data?.data||[];i=n,t(n)},e=>{n(e)})})),a)},l=new Map;function s(e,t){let n=l.get(e);if(n)return n;let r=t().finally(()=>l.delete(e));return l.set(e,r),r}},44(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(74848),i=n(96540),a=n(65195),o=n(67247),l=n(7247),s=n(68468);n(55260),n(59516);var u=n(33733),c=n(52304);let d=async(e,t,n={})=>{let r=t.tone||t.Tone||"unknown",i="number"==typeof t.range?t.range:t.lengthValue||0;return new Promise((a,l)=>{(0,c.l9)(e,t,e=>{try{if(e?.data?.responseCode===o.BL.Success){let t=e?.data?.data?.isBase64,n=e?.data?.data?.message,o=e?.data?.data?.generatedText||e?.data?.data?.text||(t&&"string"==typeof n?(e=>{if(!e)return"";try{if("u">typeof globalThis&&"function"==typeof globalThis.atob){let t=globalThis.atob(e),n=Uint8Array.from(t,e=>e.codePointAt(0)||0);return new TextDecoder().decode(n)}return e}catch{return e}})(n):n)||"";a({success:!0,generatedText:o,tone:r,range:i})}else o.Wp.displayErrorMessage("Fail","AI generation failed. Please try again."),a({success:!1,generatedText:"",tone:r,range:i})}catch(e){o.Wp.displayErrorMessage("Fail","Something went wrong with AI response."),l(e)}},e=>{l(e)},n)})};var g=n(22495);function p(e,t){if(!t)return e;let n=e;if(t.isBold&&(n=`<b>${n}</b>`),t.isItalic&&(n=`<i>${n}</i>`),t.isUnderline&&(n=`<u>${n}</u>`),t.isStrikethrough&&(n=`<s>${n}</s>`),t.isSubscript&&(n=`<sub>${n}</sub>`),t.isSuperscript&&(n=`<sup>${n}</sup>`),t.isCode&&(n=`<code>${n}</code>`),t.isLink&&(n=`<a href="#">${n}</a>`),"number"===t.blockType&&(n=`<ol><li>${n}</li></ol>`),"bullet"===t.blockType&&(n=`<ul><li>${n}</li></ul>`),t.tableHtml){let e=t.tableHtml.match(/<table[^>]*>[\s\S]*?<\/table>/i);if(e){let r=e[0].replace(/<p[^>]*>/gi,"").replace(/<\/p>/gi,"").replace(/<br\s*\/?>/gi,"").trim(),i=` 3 color: ${t.fontColor||"#000"}; 4 background-color: ${t.bgColor||"#fff"}; 5 font-family: ${t.fontFamily||"Arial"}; 6 font-size: ${t.fontSize||"14px"}; 7 text-align: ${t.alignment||"left"}; 8 `.trim(),a=t.blockType?.startsWith("h")?t.blockType:"p",o=`<${a} style="${i}">${n}</${a}>`;return`${o} 9${r}`}}let r=` 10 color: ${t.fontColor||"#000"}; 11 background-color: ${t.bgColor||"#fff"}; 12 font-family: ${t.fontFamily||"Arial"}; 13 font-size: ${t.fontSize||"14px"}; 14 text-align: ${t.alignment||"left"}; 15 `.trim(),i=t.blockType?.startsWith("h")?t.blockType:"p";return`<${i} style="${r}">${n}</${i}>`}let h=({RawData:e=[],NativeAction:t=0,Footer:n=0,TimerCount:c=0,IsFullLength:h=!1,CharacterCountEnable:m=!1,MaximumLength:f=1500,AiControlId:b="",CloseBackTitle:v,ToneMetadata:C=[],OnClickClose:y=()=>{},OnClickCancle:x=()=>{},OnPopupStateChange:w=()=>{},OnClickUseThisText:_=()=>{},OnChangeRange:k=()=>{},OnChangeTone:E=()=>{},OnClickRegenerate:S=()=>{},OnClickPrevious:T=()=>{},OnClickNext:N=()=>{},VagaroToolkit:L=0,OnBlur:A=()=>{},AiControl:I=!1,Name:F="",SetIndex:P,ReviewSection:O=!1,ReviewSectionBody:M,setSubmit:R=()=>{},isSubmit:j=!1,AiPopupSetValue:D={Index:0,InputDescription:"",Tone:"professional",Range:0},IsEditor:B=!1,ToolbarState:U,AiPopupToolbarRawData:$={FontFormat:!0,Fontfamily:!0,Fontsize:!0,Bold:!0,Fontcolor:!0,Backgroun
15dColor:!0,Link:!0,Underline:!0,Alignment:!0,Strikethrough:!0,Clear:!0,Italic:!0,InsertNames:!0,Undo:!1,Redo:!1,NumberListButton:!1,BulletListButton:!1,Table:!0},ApiUrl:H="",ApiRequestParams:z,AiTextEditorHeight:V="",ExternalPayload:K={},InitialPayloadMessage:J="",IsOldAIAPICall:Z,IsAllowEnter:q=!0,customClassName:W=""})=>{var G;let X,Y,Q=(0,i.useRef)(void 0===J?void 0:J),ee=(0,i.useRef)(null),et=(0,i.useRef)(null);(0,i.useEffect)(()=>{Q.current=void 0===J?void 0:J},[J]);let en=(0,i.useRef)(!1),er=D?.Tone||"professional",ei=D?.Range||50,ea=D?.InputDescription||"",eo=e=>e<25?"shorter":e<45?"slightly_shorter":e>=45&&e<=55?"similar":e>55&&e<=75?"slightly_longer":"longer",[el,es]=(0,i.useState)([]),[eu,ec]=(0,i.useState)(0),[ed,eg]=(0,i.useState)(er),[ep,eh]=(0,i.useState)(ei),[em,ef]=(0,i.useState)(""),[eb,ev]=(0,i.useState)(!0),[eC,ey]=(0,i.useState)(!0),ex=(0,i.useRef)(!1),[ew,e_]=(0,i.useState)([]),[ek,eE]=(0,i.useState)(eo(ei)),[eS,eT]=(0,i.useState)(!1),[eN,eL]=(0,i.useState)(B?ea:p(ea,U)),[eA,eI]=(0,i.useState)(U),[eF,eP]=(0,i.useState)(!1),[eO,eM]=(0,i.useState)(!1),eR=(0,i.useRef)(null),ej=(0,i.useRef)(U),eD=(0,i.useRef)(!1),eB=(0,i.useRef)(U),eU=()=>{let e=(em||"").toString().trim();if(B){if(et?.current?.validate){let{plain:e}=et.current.validate();return!e||0===e.trim().length}return 0===(em||"").toString().replace(/<[^>]*>/g,"").replace(/\u200B/g,"").trim().length}return ee?.current?.validate&&ee?.current?.validate(),0===e.length};(0,i.useEffect)(()=>(U&&(eI(U),ej.current=U),eR.current=setTimeout(()=>{eP(!0)},1e3),()=>{eR.current&&clearTimeout(eR.current)}),[]);let e$=(X=U||ej.current,eO&&eF?eA:X);(0,i.useEffect)(()=>{B?eL(em||ea||""):eL(p(em||"",eB.current||e$))},[em,e$,B]),(0,i.useEffect)(()=>{if(el.length>0){let e=el.map((e,t)=>({tone:e.Tone,range:e.Range,description:e.InputDescription||"",index:t+1})).filter(e=>e.description&&""!==e.description.trim());e_(e),ec(e.length>0?e.length:0);let t=el[el.length-1];t&&t.InputDescription&&""!==t.InputDescription.trim()&&(ef(t.InputDescription),eg(t.Tone),eh(t.Range),eE(eo(t.Range)),eL(p(t.InputDescription,eB.current||e$)),ey(!1))}},[el]),(0,i.useEffect)(()=>{if(!eC&&ew.length>0){let e=ew.length;if(eu>=1&&eu<=e){let e=ew[eu-1];e&&(eh(e.range),eg(e.tone),ef(e.description))}}},[eu,ew,eC]);let eH=(G=(e,t)=>{k?.(e,t)},(...e)=>{clearTimeout(Y),Y=setTimeout(()=>G(...e),500)}),ez=async e=>{try{let t=Z?{description_length_adjuster:e.rangeLabel}:{descriptionLengthAdjuster:e.rangeLabel,message:e.InputDescription},n=await (0,g.W)("VgAiPopup_handleAIGenerate",async()=>{if(B){let t=(e=>{try{return"u">typeof window?btoa(unescape(encodeURIComponent(e||""))):""}catch(t){return e||""}})(e.InputDescription||""),n={...{tone:e.Tone,descriptionLengthAdjuster:e.rangeLabel,productDetail:t},...K};return await d(H,n,z?.headers)}{let n={...{tone:e.Tone,...t,description:e.InputDescription},...K};return await d(H,n,z?.headers)}});if(n?.success){let t=(n.generatedText??"").toString(),r="boolean"==typeof n.isBase64?n.isBase64:"boolean"==typeof n.data?.isBase64&&n.data.isBase64;if(B&&r&&(t=(e=>{try{return"u">typeof window?decodeURIComponent(escape(atob(e||""))):""}catch(t){return e||""}})(t)),""===t.trim())return;let i={Index:el.length,Tone:n.tone||e.Tone,Range:n.range||e.Range,InputDescription:t};es(e=>[...e,i]),ey(!1)}}catch(e){}},eV=async e=>{R(!1);let t=e.target.value;eg(t);let n={Tone:t,Range:ep,rangeLabel:ek,InputDescription:em,Index:eu};if(eU()){E&&E(e,n);return}ez(n),E(e,n)},eK=async e=>{let t={Tone:ed,Range:ep,rangeLabel:ek,InputDescription:em,Index:eu,headers:z?.headers};eU()||(await ez(t),S(e,t))},eJ=o.Wp.CheckIsFromProAppWithoutState(),eZ=e=>{if(eJ){o.Wp.CallBackGivenToMobileApp(t,v,n,c,h);let e={message:"",messageType:0,screenTitle:v,screenType:0,navType:0,action:"53|~|"+JSON.stringify({NativeAction:t,Footer:n,TimerCount:c,callFromLocation:b,VagaroToolkit:L,IsFullLength:h})};o.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(e))}ev(!1),eQ(),y(e)},eq=(e,t)=>{if(R(!0),eU())return;let n=t;if(B)n=t;else{let e=ee?.current?.validate?.();n=e?.value??t}if(_){let t={Tone:ed,Range:ep,rangeLabel:ek,InputDescription:n,Index:eu};ev(!1),eQ(),_(e,t)}},eW=()=>{eT(!1)},eG=(0,i.useRef)(w);(0,i.useEffect)(()=>{eG.current=w},[w]);let eX=(0,i.useRef)(!1),eY=(0,i.useRef)(!1),eQ=()=>{eY.current||(eY.current=!0,eG.current("Close"))};return(0,i.useEffect)(()=>{eX.current||(eX.current=!0,eG.current("Open"))},[]),(0,i.useEffect)(()=>
15{if(eb){let e=document.querySelector('.vg-ai-popup [contenteditable], .vg-ai-popup textarea, .vg-ai-popup input[type="text"], .vg-ai-popup input:not([type])');e?.focus()}},[eb]),(0,i.useEffect)(()=>{if(!eb){let e=document.querySelector(".editor-container .editor");e?.focus()}},[eb]),(0,i.useEffect)(()=>(eS?document.body.classList.add("bottom-sheet-open"):document.body.classList.remove("bottom-sheet-open"),()=>{document.body.classList.remove("bottom-sheet-open")}),[eS]),(0,i.useEffect)(()=>{if(!ex.current){ex.current=!0;let e=void 0!==Q.current,t=Q.current,n="";e&&("object"==typeof t&&null!==t&&"InputDescription"in t?n=t.InputDescription:"string"==typeof t&&(n=t)),e&&n&&ef(n),(e||""===em)&&ez({Tone:ed,Range:ep,rangeLabel:ek,InputDescription:n,Index:eu,useDescriptionField:!0})}},[]),(0,i.useEffect)(()=>{D&&(D.Tone&&eg(D.Tone),"number"==typeof D.Range&&(eh(D.Range),eE(eo(D.Range))))},[D]),(0,r.jsxs)(i.Fragment,{children:[eb&&(0,r.jsx)(l.A,{wrapperElementId:"Popup",children:(0,r.jsx)("div",{className:"modal-overlay","data-identity":eJ?"full-popup":"",children:(0,r.jsx)("div",{className:`vg-modal-dialog mobilefullScreen vg-modalsummary modal-dialog-centered modal-dialog-scrollable center large vg-ai-content-popup ${W}`,children:(0,r.jsxs)("div",{className:"vg-modal-content",children:[(0,r.jsxs)("div",{className:"vg-modal-header",children:[(0,r.jsxs)("div",{className:"vg-modal-title",id:"modal-footer",children:[(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M10.0801 2.89453L11.75 2.25L12.3652 0.609375C12.3945 0.462891 12.541 0.375 12.6875 0.375C12.8047 0.375 12.9512 0.462891 12.9805 0.609375L13.625 2.25L15.2656 2.89453C15.4121 2.92383 15.5 3.07031 15.5 3.1875C15.5 3.33398 15.4121 3.48047 15.2656 3.50977L13.625 4.125L12.9805 5.79492C12.9512 5.91211 12.8047 6 12.6875 6C12.541 6 12.3945 5.91211 12.3652 5.79492L11.75 4.125L10.0801 3.50977C9.93359 3.48047 9.875 3.33398 9.875 3.1875C9.875 3.07031 9.93359 2.92383 10.0801 2.89453ZM8.0293 5.88281L11.3691 7.40625C11.5449 7.49414 11.6621 7.66992 11.6621 7.8457C11.6621 8.02148 11.5449 8.19727 11.3691 8.28516L8.0293 9.80859L6.50586 13.1484C6.41797 13.3242 6.24219 13.4414 6.06641 13.4414C5.89062 13.4414 5.71484 13.3242 5.65625 13.1484L4.10352 9.80859L0.763672 8.28516C0.587891 8.19727 0.5 8.02148 0.5 7.8457C0.5 7.66992 0.587891 7.49414 0.763672 7.40625L4.10352 5.88281L5.65625 2.54297C5.71484 2.36719 5.89062 2.25 6.06641 2.25C6.24219 2.25 6.41797 2.36719 6.50586 2.54297L8.0293 5.88281ZM12.3652 9.98438C12.3945 9.83789 12.541 9.75 12.6875 9.75C12.8047 9.75 12.9512 9.83789 12.9805 9.98438L13.625 11.625L15.2656 12.2695C15.4121 12.2988 15.5 12.4453 15.5 12.5625C15.5 12.709 15.4121 12.8555 15.2656 12.8848L13.625 13.5L12.9805 15.1699C12.9512 15.2871 12.8047 15.375 12.6875 15.375C12.541 15.375 12.3945 15.2871 12.3652 15.1699L11.75 13.5L10.0801 12.8848C9.93359 12.8555 9.875 12.709 9.875 12.5625C9.875 12.4453 9.93359 12.2988 10.0801 12.2695L11.75 11.625L12.3652 9.98438Z",fill:"#C643F4"})}),"Enhance with Vera"]}),(0,r.jsx)("div",{className:"vg-btn-close",id:"modal-footer",onClick:eZ,children:(0,r.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12.3945 11.4805C12.7754 11.832 12.7754 12.4473 12.3945 12.7988C12.2188 12.9746 11.9844 13.0625 11.75 13.0625C11.4863 13.0625 11.252 12.9746 11.0762 12.7988L8 9.72266L4.89453 12.7988C4.71875 12.9746 4.48438 13.0625 4.25 13.0625C3.98633 13.0625 3.75195 12.9746 3.57617 12.7988C3.19531 12.4473 3.19531 11.832 3.57617 11.4805L6.65234 8.375L3.57617 5.29883C3.19531 4.94727 3.19531 4.33203 3.57617 3.98047C3.92773 3.59961 4.54297 3.59961 4.89453 3.98047L8 7.05664L11.0762 3.98047C11.4277 3.59961 12.043 3.59961 12.3945 3.98047C12.7754 4.33203 12.7754 4.94727 12.3945 5.29883L9.31836 8.4043L12.3945 11.4805Z"})})})]}),(0,r.jsxs)("div",{className:"vg-modal-body",children:[(0,r.jsxs)("div",{className:"d-ai-flex",children:[(0,r.jsxs)("div",{className:"ai-vg-select",children:[(0,r.jsx)("label",{className:"vg-input-label",children:"Tone:"}),(0,r.jsxs)("div",{className:"vg-ai-tone",children:[(0,r.jsxs)("div",{className:"vg-ai-tone-select",children:[(0,r.jsx)("select",{className:"vg-input-control",value:ed,onChange:eV,children:C.map((e,t)=>(0,r.jsx)("option",{value:e.value,children:e.label},t))}),(0,r.jsx)("span",{className:"downArrow-icon"})]}),(0,r.jsxs)("div",{className:"vg-ai-tone-bottomsheet",children:[(0,r.jsx)("span",{onClick:()=>{eT(!0)},children:ed}),(0,r.jsx)("button",{className:"btn-page",children:(0,r.jsx)("i",{className:"fa fa-solid fa-angle-right"})}),(0,r.jsx)("div",{className:`vg-bottom-sheet ${eS?"bottomsheet-show":"bottomsheet-hide"}`,style:{transform:eS?"translateY(0)":"translateY(100%)"},children:(0,r.jsxs)("div",{className:"bottomsheet-menu",children:[(0,r.jsx)("span",{className:"dropdown-item bottomsheet-heading",children:"Tone"}),C.map((e,t)=>(0,r.jsx)("a",{className:"dropdown-item",onClick:()=>{var t;let n;t=e.value,R(!1),eg(t),n={Tone:t,Range:t,rangeLabel:eo(t),InputDescription:em,Index:eu},E&&E({target:{value:t}},n),eW()},children:(0,r.jsx)("span",{children:e.label})},t))]})}),eS&&(0,r.jsx)("div",{className:"bottom-sheet-overlay ",onClick:eW})]})]})]}
15),(0,r.jsx)("div",{className:"vg-ai-slider",children:(0,r.jsxs)("div",{className:"w-ai-col w-ai-col-6 rightRangeDiv",children:[(0,r.jsx)("label",{className:"vg-input-label",children:"Length:"}),(0,r.jsxs)("div",{className:"range-slider range-slider-div ",children:[(0,r.jsx)("input",{className:"range-slider__range",type:"range",min:"0",max:"100",step:"25",value:ep,onChange:e=>{let t=Number(e.target.value),n=eo(t);if(eE(n),eh(t),en.current)return;let r={Tone:ed,Range:t,rangeLabel:n,InputDescription:em,Index:eu};eU()||(eH(e,r),ez(r))},onMouseUp:e=>{if(en.current){let e=Number(ep),t=eo(e);if(eU())return;ez({Tone:ed,Range:e,rangeLabel:t,InputDescription:em,Index:eu})}en.current=!1},onMouseDown:()=>{en.current=!0},style:{background:`linear-gradient(90deg, #CC4744 ${ep}%, var(--bkg_neutral_tiertiary) ${ep+.1}%)`},name:F}),(0,r.jsx)("span",{className:"range-slider__value"}),(0,r.jsxs)("div",{className:"rangeLabel space-between d-ai-flex-content",children:[(0,r.jsx)("span",{className:"smallLabel",children:"Shorter"}),(0,r.jsx)("span",{className:"smallLabel",children:"Longer"})]})]})]})})]}),B?(0,r.jsx)(u.default,{ref:et,AiClickEvent:()=>{},AiControlPopup:!1,OnChange:e=>{ef(e.html)},OnChangeRange:()=>{},OnChangeTone:e=>{ef(e.text)},OnClickCancle:()=>{},OnClickClose:()=>{},OnClickNext:()=>{},OnClickPrevious:()=>{},OnClickRegenerate:()=>{},OnClickUseThisText:()=>{},PlaceHolder:"Enter description",SetValue:eN,Style:!0,SubTitle:"",Title:"",ToolbarRawData:$,baseUrl:"https://dev50apiv2.bookitall.com/",CharacterCountEnable:m,MaximumLength:f,ToolbarState:e$,setState:e=>{eF&&!eD.current&&(eI(e),eM(!0),eB.current=e)},state:eA,AiTextEditorHeight:V,Required:!0,ValidationMessage:"Description is Required",IsAllowEnter:q}):(0,r.jsx)("div",{className:"vg-ai-col-12 ai-textarea-input",children:(0,r.jsx)(s.default,{ref:ee,AiClickEvent:()=>{},AiControlId:"AiControlId1",IsAllowEnter:q,CloseBackTitle:v,DialogShowHide:!0,Footer:n,CharacterCountEnable:m,Label:!0,LabelText:"Title:",MaximumLength:f,Name:"",NativeAction:t,IsFullLength:h,PlaceHolder:"Type here...",SetValue:em,TextAreaId:"",TextareaVariant:"Default",TimerCount:c,VagaroToolkit:L,AsyncClickEvent:!0,Required:!0,onChange:e=>ef(e.target.value),ValidationMessage:"Description is Required"})}),(0,r.jsxs)("div",{className:"aiPaginationWrap",children:[ew?.length>1&&!j&&(0,r.jsxs)("span",{id:"aiPagination",className:"aiPagination",style:{display:"inline-flex"},children:[(0,r.jsx)("button",{className:"btn-page",onClick:e=>{if(ey(!1),0===ew.length||eu<=1)return;let t=eu-1,n=ew[t-1];n&&(ec(t),eh(n.range),eg(n.tone),ef(n.description),eL(p(n.description,eB.current||e$))),T&&T(e,t)},disabled:eu<=1,children:(0,r.jsx)("i",{className:"fa fa-solid fa-caret-left"})}),(0,r.jsxs)("span",{className:"aiPaginationCount",children:[eu,"/",ew.length]}),(0,r.jsx)("button",{className:"btn-page",onClick:e=>{if(ey(!1),0===ew.length||eu>=ew.length)return;let t=eu+1,n=ew[t-1];n&&(ec(t),eh(n.range),eg(n.tone),ef(n.description),eL(p(n.description,eB.current||e$))),N&&N(e,t)},disabled:eu===ew.length,children:(0,r.jsx)("i",{className:"fa fa-solid fa-caret-right"})})]}),(0,r.jsxs)("span",{id:"tryAgainLink",className:"linkField",onClick:eK,children:[(0,r.jsx)("span",{children:(0,r.jsx)("svg",{width:"18px",height:"18px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C9.69494 21 7.59227 20.1334 6 18.7083L3 16M3 12C3 7.02944 7.02944 3 12 3C14.3051 3 16.4077 3.86656 18 5.29168L21 8M3 21V16M3 16H8M21 3V8M21 8H16",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})})}),"Regenerate"]})]}),O&&(0,r.jsx)("div",{children:M()})]}),(0,r.jsxs)("div",{className:"vg-modal-footer",id:"modal-footer",children:[(0,r.jsx)(a.default,{ButtonVariant:"secondary",ButtononClick:e=>{eQ(),x&&x(e)},IconPlacement:"prefix",children:"Cancel"}),(0,r.jsx)(a.default,{ButtonVariant:"ai",ButtononClick:e=>eq(e,em),IconPlacement:"prefix",children:"Use this Text"})]}),(0,r.jsxs)("div",{className:"vg-modal-footer ai-modal-footer",id:"RegenerateButton",children:[(0,r.jsxs)(a.default,{ButtonVariant:"secondary",ButtononClick:eK,IconPlacement:"prefix",children:[(0,r.jsx)("svg",{width:"18px",height:"18px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C9.69494 21 7.59227 20.1334 6 18.7083L3 16M3 12C3 7.02944 7.02944 3 12 3C14.3051 3 16.4077 3.86656 18 5.29168L21 8M3 21V16M3 16H8M21 3V8M21 8H16",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),"Regenerate"]}),(0,r.jsx)(a.default,{ButtonVariant:"ai",ButtononClick:e=>eq(e,em),IconPlacement:"prefix",children:"Use this Text"})]})]})})})}),(0,r.jsx)("input",{type:"hidden",onClick:e=>eZ(e),id:b}),eb&&(0,r.jsx)("input",{type:"hidden",onClick:e=>eZ(e),id:"closeAiPopupEvent"})]})}},33733(e,t,n){"use strict";n.r(t),n.d(t,{VgTextEditor:()=>iI,default:()=>iF});var r,i,a,o,l,s,u,c=n(74848),d=n(1527),g=n(92234);let p=new Set(["http:","https:","mailto:","sms:","tel:"]);class h extends g.fG{static getType(){return"link"}static clone(e){return new h(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,t={},n){super(n);const{target:r=null,rel:i=null,title:a=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=a}createDOM(e){let t=document.createElement("a");return t.href=this.sanitizeUrl(this.__url),null!==this.__target&&(t.target=this.__target),null!==this.__rel&&(t.rel=this.__rel),null!==this.__title&&(t.title=this.__title),(0,d.ZB)(t,e.theme.link),t}updateDOM(e,t,n){if(t instanceof HTMLAnchorElement){let n=this.__url,r=this.__target,i=this.__rel,a=this.__title;n!==e.__url&&(t.href=n),r!==e.__target&&(r?t.target=r:t.removeAttribute("target")),i!==e.__rel&&(i?t.rel=i:t.removeAttribute("rel")),a!==e.__title&&(a?t.title=a:t.removeAttribute("title"))}return!1}static importDOM(){return{a:e=>({conversion:m,priority:1})}}static importJSON(e){let t=f(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{let t=new URL(e);if(!p.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,t=!0){let n=f(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!(0,g.I2)(t))return!1;let r=t.anchor.getNode(),i=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function m(e){let t=null;if((0,g.nY)(e)){let n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=f(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function f(e,t){return(0,g.pT)(new h(e,t))}function b(e){return e instanceof h}class v extends h{constructor(e,t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new v(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){let t=C(e.url,{isUnlinked:e.isUnlinked,rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked,type:"autolink",version:1}}insertNewAfter(e,t=!0){let n=this.getParentOrThrow().insertNewAfter(e,t);if((0,g.ff)(n)){let e=C(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(e),e}return null}}function C(e,t){return(0,g.pT)(new v(e,t))}function y(e){return e instanceof v}let x=(0,g.gu)("TOGGLE_LINK_COMMAND");function w(e,t={}){let{target:n,title:r}=t,i=void 0===t.rel?"noreferrer":t.rel,a=(0,g.vJ)();if(!(0,g.I2)(a))return;let o=a.extract();
15if(null===e)o.forEach(e=>{let t=(0,d.Bt)(e,e=>!y(e)&&b(e));if(t){let e=t.getChildren();for(let n=0;n<e.length;n++)t.insertBefore(e[n]);t.remove()}});else{if(1===o.length){let t=function(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}(o[0],b);if(null!==t)return t.setURL(e),void 0!==n&&t.setTarget(n),null!==i&&t.setRel(i),void(void 0!==r&&t.setTitle(r))}let t=null,a=null;o.forEach(o=>{let l=o.getParent();if(l!==a&&null!==l&&(!(0,g.ff)(o)||o.isInline())){if(b(l))return a=l,l.setURL(e),void 0!==n&&l.setTarget(n),null!==i&&a.setRel(i),void(void 0!==r&&a.setTitle(r));if(l.is(t)||(t=l,a=f(e,{rel:i,target:n,title:r}),b(l)?null===o.getPreviousSibling()?l.insertBefore(a):l.insertAfter(a):o.insertBefore(a)),b(o)){if(o.is(a))return;if(null!==a){let e=o.getChildren();for(let t=0;t<e.length;t++)a.append(e[t])}o.remove()}else null!==a&&a.append(o)}})}}var _=(r=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}).__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;function k(e){let t=1,n=e.getParent();for(;null!=n;){if(B(n)){let e=n.getParent();if(J(e)){t++,n=e.getParent();continue}_(40)}break}return t}function E(e){let t=e.getParent();J(t)||_(40);let n=t;for(;null!==n;)J(n=n.getParent())&&(t=n);return t}function S(e){return B(e)&&J(e.getFirstChild())}function T(e){return D().append(e)}function N(e,t){return B(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function L(e,t){e.update(()=>{let e=(0,g.vJ)();if(null!==e){let n=e.getNodes();if((0,g.I2)(e)){let r=e.getStartEndPoints();null===r&&_(143);let[i]=r,a=i.getNode(),o=a.getParent();if(N(a,n)){let e=K(t);if((0,g.Iq)(o)){a.replace(e);let t=D();(0,g.ff)(a)&&(t.setFormat(a.getFormatType()),t.setIndent(a.getIndent())),e.append(t)}else if(B(a)){let t=a.getParentOrThrow();A(e,t.getChildren()),t.replace(e)}return}}let r=new Set;for(let e=0;e<n.length;e++){let i=n[e];if(!(0,g.ff)(i)||!i.isEmpty()||B(i)||r.has(i.getKey())){if((0,g.jG)(i)){let e=i.getParent();for(;null!=e;){let n=e.getKey();if(J(e)){if(!r.has(n)){let i=K(t);A(i,e.getChildren()),e.replace(i),r.add(n)}break}{let i=e.getParent();if((0,g.Iq)(i)&&!r.has(n)){r.add(n),I(e,t);break}e=i}}}}else I(i,t)}}})}function A(e,t){e.splice(e.getChildrenSize(),0,t)}function I(e,t){let n;if(J(e))return e;let r=e.getPreviousSibling(),i=e.getNextSibling(),a=D();
15if(A(a,e.getChildren()),J(r)&&t===r.getListType())r.append(a),J(i)&&t===i.getListType()&&(A(r,i.getChildren()),i.remove()),n=r;else if(J(i)&&t===i.getListType())i.getFirstChildOrThrow().insertBefore(a),n=i;else{let r=K(t);r.append(a),e.replace(r),n=r}return a.setFormat(e.getFormatType()),a.setIndent(e.getIndent()),e.remove(),n}function F(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&S(n)&&S(r)&&(F(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function P(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}class O extends g.fG{static getType(){return"listitem"}static clone(e){return new O(e.__value,e.__checked,e.__key)}constructor(e,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}createDOM(e){let t=document.createElement("li"),n=this.getParent();return J(n)&&"check"===n.getListType()&&R(t,this,null),t.value=this.__value,M(t,e.theme,this),t}updateDOM(e,t,n){let r=this.getParent();return J(r)&&"check"===r.getListType()&&R(t,this,e),t.value=this.__value,M(t,n.theme,this),!1}static transform(){return e=>{if(B(e)||_(144),null==e.__checked)return;let t=e.getParent();J(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:j,priority:0})}}static importJSON(e){let t=D();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportDOM(e){let t=this.createDOM(e._config);return t.style.textAlign=this.getFormatType(),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if((0,g.ff)(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(B(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!J(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=K(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}
15return t&&((0,g.ff)(e)||_(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){let n=this.getParentOrThrow();if(J(n)||_(39),B(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){let i=K(n.getListType());r.forEach(e=>i.append(e)),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&S(t)&&S(n)&&(F(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){let n=D(null==this.__checked&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){let t=(0,g.lJ)();this.getChildren().forEach(e=>t.append(e));let n=this.getParentOrThrow(),r=n.getParentOrThrow(),i=B(r);if(1===n.getChildrenSize())if(i)n.remove(),r.select();else{n.insertBefore(t),n.remove();let r=e.anchor,i=e.focus,a=t.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(a,r.offset,"element"),"element"===i.type&&i.getNode().is(this)&&i.set(a,i.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){let e,t=this.getLatest(),n=this.getParent();return J(n)&&(e=n.getListType()),"check"===e?!!t.__checked:void 0}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){let e=this.getParent();if(null===e)return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;B(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&_(117),(e=Math.floor(e))>=0||_(199);let t=this.getIndent();for(;t!==e;)t<e?(function(e){let t=new Set;if(S(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(S(r)&&S(i)){let n=i.getFirstChild();if(J(n)){n.append(e);let i=r.getFirstChild();J(i)&&(A(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(S(r)){let t=r.getFirstChild();if(J(t)){let n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(S(i)){let t=i.getFirstChild();J(t)&&t.append(e)}else if(J(n)){let t=D(),a=K(n.getListType());t.append(a),a.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}(this),t++):(function(e){if(S(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(J(n?n.getParent():void 0)&&B(n)&&J(t)){let r=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=t.getListType(),i=D(),a=K(r);
15i.append(a),e.getPreviousSiblings().forEach(e=>a.append(e));let o=D(),l=K(r);o.append(l),A(l,e.getNextSiblings()),n.insertBefore(i),n.insertAfter(o),n.replace(e)}}}(this),t--);return this}canInsertAfter(e){return B(e)}canReplaceWith(e){return B(e)}canMergeWith(e){return(0,g.bS)(e)||B(e)}extractWithChild(e,t){if(!(0,g.I2)(t))return!1;let n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return K("bullet")}canMergeWhenEmpty(){return!0}}function M(e,t,n){let r,i=[],a=[],o=t.list,l=o?o.listitem:void 0;if(o&&o.nested&&(r=o.nested.listitem),void 0!==l&&i.push(...P(l)),o){let e=n.getParent(),t=J(e)&&"check"===e.getListType(),r=n.getChecked();t&&!r||a.push(o.listitemUnchecked),t&&r||a.push(o.listitemChecked),t&&i.push(r?o.listitemChecked:o.listitemUnchecked)}if(void 0!==r){let e=P(r);n.getChildren().some(e=>J(e))?i.push(...e):a.push(...e)}a.length>0&&(0,d.HE)(e,...a),i.length>0&&(0,d.ZB)(e,...i)}function R(e,t,n,r){J(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}function j(e){if(e.classList.contains("task-list-item")){for(let n of e.children)if("INPUT"===n.tagName){var t;return"checkbox"!==(t=n).getAttribute("type")?{node:null}:{node:D(t.hasAttribute("checked"))}}}let n=e.getAttribute("aria-checked");return{node:D("true"===n||"false"!==n&&void 0)}}function D(e){return(0,g.pT)(new O(void 0,e))}function B(e){return e instanceof O}class U extends g.fG{static getType(){return"list"}static clone(e){return new U(e.__listType||V[e.__tag],e.__start,e.__key)}constructor(e,t,n){super(n);const r=V[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}getTag(){return this.__tag}setListType(e){let t=this.getWritable();t.__listType=e,t.__tag="number"===e?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e,t){let n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,$(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||($(t,n.theme,this),!1)}static transform(){return e=>{let t;J(e)||_(163),J(t=e.getNextSibling())&&e.getListType()===t.getListType()&&F(e,t),function(e){let t="check"!==e.getListType(),n=e.getStart();for(let r of e.getChildren())B(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),J(r.getFirstChild())||n++)}(e)}}static importDOM(){return{ol:()=>({conversion:z,priority:0}),ul:()=>({conversion:z,priority:0})}}static importJSON(e){let t=K(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){let t=this.createDOM(e._config,e);return t&&(0,g.sb)(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if(B(n))super.append(n);else{let e=D();if(J(n))e.append(n);else if((0,g.ff)(n))if(n.isInline())e.append(n);else{let t=(0,g.sT)(n.getTextContent());e.append(t)}else e.append(n);super.append(e)}}return this}extractWithChild(e){return B(e)}}function $(e,t,n){let r=[],i=[],a=t.list;if(void 0!==a){let e,t=a[`${n.__tag}Depth`]||[],o=k(n)-1,l=o%t.length,s=t[l],u=a[n.__tag],c=a.nested,d=a.checklist;if(void 0!==c&&c.list&&(e=c.list),void 0!==u&&r.push(u),void 0!==d&&"check"===n.__listType&&r.push(d),void 0!==s){r.push(...P(s));for(let e=0;e<t.length;e++)e!==l&&i.push(n.__tag+e)}if(void 0!==e){let t=P(e);o>1?r.push(...t):i.push(...t)}}i.length>0&&(0,d.HE)(e,...i),r.length>0&&(0,d.ZB)(e,...r)}function H(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(B(r)){t.push(r);let e=r.getChildren();e.length>
151&&e.forEach(e=>{J(e)&&t.push(T(e))})}else t.push(T(r))}return t}function z(e){let t=e.nodeName.toLowerCase(),n=null;return"ol"===t?n=K("number",e.start):"ul"===t&&(n=!function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list"))return!0;for(let t of e.childNodes)if((0,g.sb)(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?K("bullet"):K("check")),{after:H,node:n}}let V={ol:"number",ul:"bullet"};function K(e,t=1){return(0,g.pT)(new U(e,t))}function J(e){return e instanceof U}let Z=(0,g.gu)("INSERT_UNORDERED_LIST_COMMAND"),q=(0,g.gu)("INSERT_ORDERED_LIST_COMMAND"),W=((0,g.gu)("INSERT_CHECK_LIST_COMMAND"),(0,g.gu)("REMOVE_LIST_COMMAND"));var G=n(27300),X=n(96554),Y=n(96540),Q=n(17521),ee=n(40961);function et({children:e}){return(0,ee.createPortal)((0,c.jsx)("div",{className:"FlashMessage__overlay",role:"dialog",children:(0,c.jsx)("p",{className:"FlashMessage__alert",role:"alert",children:e})}),document.body)}let en=(0,Y.createContext)(void 0),er={},ei=({children:e})=>{let[t,n]=(0,Y.useState)(er),r=(0,Y.useCallback)((e,t)=>n(e?{duration:t,message:e}:er),[]);return(0,Y.useEffect)(()=>{if(t.message){let e=setTimeout(()=>n(er),t.duration??1e3);return()=>clearTimeout(e)}},[t]),(0,c.jsxs)(en.Provider,{value:r,children:[e,t.message&&(0,c.jsx)(et,{children:t.message})]})},ea=window.location.hostname,eo={disableBeforeInput:!1,emptyEditor:"playground.lexical.dev"!==ea&&"lexical-playground.vercel.app"!==ea,hasLinkAttributes:!1,isAutocomplete:!1,isCharLimit:!1,isCharLimitUtf8:!1,isCollab:!1,isMaxLength:!1,isRichText:!0,measureTypingPerf:!1,shouldPreserveNewLinesInMarkdown:!1,shouldUseLexicalContextMenu:!1,showNestedEditorTreeView:!1,showTableOfContents:!1,showTreeView:!0,tableCellBackgroun
15dColor:!0,tableCellMerge:!0},el={...eo},es=(0,Y.createContext)({setOption:(e,t)=>{},settings:el}),eu=({children:e})=>{let[t,n]=(0,Y.useState)(el),r=(0,Y.useCallback)((e,t)=>{let r,i;n(n=>({...n,[e]:t})),i=new URLSearchParams((r=new URL(window.location.href)).search),t!==eo[e]?i.set(e,String(t)):i.delete(e),r.search=i.toString(),window.history.pushState(null,"",r.toString())},[]),i=(0,Y.useMemo)(()=>({setOption:r,settings:t}),[r,t]);return(0,c.jsx)(es.Provider,{value:i,children:e})},ec=()=>(0,Y.useContext)(es),ed=(0,Y.createContext)([e=>()=>{},e=>{}]),eg=({children:e})=>{let t=(0,Y.useMemo)(()=>{let e=null,t=new Set;return[n=>(n(e),t.add(n),()=>{t.delete(n)}),n=>{for(let r of(e=n,t))r(n)}]},[]);return(0,c.jsx)(ed.Provider,{value:t,children:e})},ep=()=>{let[e,t]=(0,Y.useContext)(ed),[n,r]=(0,Y.useState)(null);return(0,Y.useEffect)(()=>e(e=>{r(e)}),[e]),[n,t]};var eh=n(38357);let em=(0,Y.createContext)({}),ef=({children:e})=>{let t=(0,Y.useMemo)(()=>({historyState:(0,eh.h)()}),[]);return(0,c.jsx)(em.Provider,{value:t,children:e})},eb={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote"},ev={bgColor:"#fff",blockType:"paragraph",canRedo:!1,canUndo:!1,codeLanguage:"",elementFormat:"left",fontColor:"#000",fontFamily:"Arial",fontSize:"15px",fontSizeInputValue:"15",isBold:!1,isCode:!1,isImageCaption:!1,isItalic:!1,isLink:!1,isRTL:!1,isStrikethrough:!1,isSubscript:!1,isSuperscript:!1,isUnderline:!1,rootType:"root",alignment:"left",isTable:!1},eC=(0,Y.createContext)(void 0),ey=({children:e})=>{let[t,n]=(0,Y.useState)(ev),r=t.fontSize,i=(0,Y.useCallback)((e,t)=>{n(n=>({...n,[e]:t}))},[]);(0,Y.useEffect)(()=>{i("fontSizeInputValue",r.slice(0,-2))},[r,i]);let a=(0,Y.useMemo)(()=>({toolbarState:t,updateToolbarState:i}),[t,i]);return(0,c.jsx)(eC.Provider,{value:a,children:e})},ex=()=>{let e=(0,Y.useContext)(eC);if(void 0===e)throw Error("useToolbarState must be used within a ToolbarProvider");return e};var ew=n(45822),e_=n(34237),ek=n(13396),eE=n(35415);function eS(){let[e]=(0,e_.DF)();return(0,Y.useEffect)(()=>{if(!e.hasNodes([U,O]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[e]),(0,Y.useEffect)(()=>(0,d.Sd)(e.registerCommand(q,()=>(L(e,"number"),!0),1),e.registerCommand(Z,()=>(L(e,"bullet"),!0),1),e.registerCommand(W,()=>(e.update(()=>{let e=(0,g.vJ)();if((0,g.I2)(e)){let t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(N(r,n))t.add(E(r));else for(let e=0;e<n.length;e++){let r=n[e];if((0,g.jG)(r)){let e=(0,d.eu)(r,O);null!=e&&t.add(E(e))}}for(let n of t){let t=n;for(let r of function e(t){let n=[],r=t.getChildren().filter(B);for(let t=0;t<r.length;t++){let i=r[t],a=i.getFirstChild();J(a)?n=n.concat(e(a)):n.push(i)}return n}(n)){let n=(0,g.lJ)();A(n,r.getChildren()),t.insertAfter(n),t=n,r.__key===e.anchor.key&&e.anchor.set(n.getKey(),0,"element"),r.__key===e.focus.key&&e.focus.set(n.getKey(),0,"element"),r.remove()}n.remove()}}}),!0),1),e.registerCommand(g.XK,()=>!!function(){let e,t=(0,g.vJ)();if(!(0,g.I2)(t)||!t.isCollapsed())return!1;let n=t.anchor.getNode();if(!B(n)||0!==n.getChildrenSize())return!1;let r=E(n),i=n.getParent();J(i)||_(40);let a=i.getParent();if((0,g.Iq)(a))e=(0,g.lJ)(),r.insertAfter(e);else{if(!B(a))return!1;e=D(),a.insertAfter(e)}e.select();let o=n.getNextSiblings();if(o.length>0){let t=K(i.getListType());if((0,g.bS)(e))e.insertAfter(t);else{let n=D();n.append(t),e.insertAfter(n)}o.forEach(e=>{e.remove(),t.append(e)})}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){let e=t.getParent();if(null==e||!B(t)&&!J(t))break;t=e}t.remove()}(n),!0}(),1)),[e]),null}var eT=n(3153),eN=n(28455),eL=n(80711),eA=n(87177),eI=n(517);let eF="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,eP=eF&&"documentMode"in document?document.documentMode:null,eO=!(!eF||!("InputEvent"in window)||eP)&&"getTargetRanges"in new window.InputEvent("input"),eM=eF&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),eR=eF&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ej=eF&&/^(?=.*Chrome).*/i.test(navigator.userAgent),eD=eF&&/AppleWeb
15Kit\/[\d.]+/.test(navigator.userAgent)&&!ej;function eB(e,t){t.update(()=>{if(null!==e){let n=(0,d.xj)(e,KeyboardEvent)?null:e.clipboardData,r=(0,g.vJ)();if(null!==r&&null!=n){e.preventDefault();let i=(0,eA.Pv)(t);null!==i&&n.setData("text/html",i),n.setData("text/plain",r.getTextContent())}}})}let eU="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Y.useLayoutEffect:Y.useEffect;function e$(e){return e.getEditorState().read((0,eN.yl)(e.isComposing()))}function eH({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){var r;let[i]=(0,e_.DF)(),a=function(e,t){let[n,r]=(0,Y.useState)(()=>e.getDecorators());return eU(()=>e.registerDecoratorListener(e=>{(0,ee.flushSync)(()=>{r(e)})}),[e]),(0,Y.useEffect)(()=>{r(e.getDecorators())},[e]),(0,Y.useMemo)(()=>{let r=[],i=Object.keys(n);for(let a=0;a<i.length;a++){let o=i[a],l=(0,c.jsx)(t,{onError:t=>e._onError(t),children:(0,c.jsx)(Y.Suspense,{fallback:null,children:n[o]})}),s=e.getElementByKey(o);null!==s&&r.push((0,ee.createPortal)(l,s,o))}return r},[t,n,e])}(i,n);return eU(()=>{var e;return(0,d.Sd)((e=r,(0,d.Sd)(e.registerCommand(g.Wu,e=>{let t=(0,g.vJ)();return!!(0,g.I2)(t)&&(t.deleteCharacter(e),!0)},0),e.registerCommand(g.hi,e=>{let t=(0,g.vJ)();return!!(0,g.I2)(t)&&(t.deleteWord(e),!0)},0),e.registerCommand(g.vi,e=>{let t=(0,g.vJ)();return!!(0,g.I2)(t)&&(t.deleteLine(e),!0)},0),e.registerCommand(g.bM,e=>{let t=(0,g.vJ)();if(!(0,g.I2)(t))return!1;if("string"==typeof e)t.insertText(e);else{let n=e.dataTransfer;if(null!=n)(0,eA.Z3)(n,t);else{let n=e.data;n&&t.insertText(n)}}return!0},0),e.registerCommand(g.$e,()=>{let e=(0,g.vJ)();return!!(0,g.I2)(e)&&(e.removeText(),!0)},0),e.registerCommand(g.FE,e=>{let t=(0,g.vJ)();return!!(0,g.I2)(t)&&(t.insertLineBreak(e),!0)},0),e.registerCommand(g.XK,()=>{let e=(0,g.vJ)();return!!(0,g.I2)(e)&&(e.insertLineBreak(),!0)},0),e.registerCommand(g.AX,e=>{let t=(0,g.vJ)();if(!(0,g.I2)(t))return!1;let n=e.shiftKey;return!!(0,eI.Cb)(t,!0)&&(e.preventDefault(),(0,eI.Rk)(t,n,!0),!0)},0),e.registerCommand(g.JM,e=>{let t=(0,g.vJ)();if(!(0,g.I2)(t))return!1;let n=e.shiftKey;return!!(0,eI.Cb)(t,!1)&&(e.preventDefault(),(0,eI.Rk)(t,n,!1),!0)},0),e.registerCommand(g.gC,t=>{let n=(0,g.vJ)();return!!(0,g.I2)(n)&&(!eR||"ko-KR"!==navigator.language)&&(t.preventDefault(),e.dispatchCommand(g.Wu,!0))},0),e.registerCommand(g.w$,t=>{let n=(0,g.vJ)();return!!(0,g.I2)(n)&&(t.preventDefault(),e.dispatchCommand(g.Wu,!1))},0),e.registerCommand(g.if,t=>{let n=(0,g.vJ)();if(!(0,g.I2)(n))return!1;if(null!==t){if((eR||eM||eD)&&eO)return!1;t.preventDefault()}return e.dispatchCommand(g.FE,!1)},0),e.registerCommand(g.HY,()=>((0,g.e1)(),!0),0),e.registerCommand(g.u5,t=>{let n=(0,g.vJ)();return!!(0,g.I2)(n)&&(eB(t,e),!0)},0),e.registerCommand(g.VS,t=>{let n=(0,g.vJ)();return!!(0,g.I2)(n)&&(eB(t,e),e.update(()=>{let e=(0,g.vJ)();(0,g.I2)(e)&&e.removeText()}),!0)},0),e.registerCommand(g.w,t=>{let n=(0,g.vJ)();return!!(0,g.I2)(n)&&(t.preventDefault(),e.update(()=>{let e=(0,g.vJ)(),{clipboardData:n}=t;null!=n&&(0,g.I2)(e)&&(0,eA.Z3)(n,e)},{tag:"paste"}),!0)},0),e.registerCommand(g.Sr,e=>{let t=(0,g.vJ)();return!!(0,g.I2)(t)&&(e.preventDefault(),!0)},0),e.registerCommand(g.Tg,e=>{let t=(0,g.vJ)();return!!(0,g.I2)(t)&&(e.preventDefault(),!0)},0))),(0,eL.U)(r))},[r=i]),(0,c.jsxs)(c.Fragment,{children:[e,(0,c.jsx)(ez,{content:t}),a]})}function ez({content:e}){let[t]=(0,e_.DF)(),n=function(e){let[t,n]=(0,Y.useState)(()=>e$(e));return eU(()=>{function t(){n(e$(e))}return t(),(0,d.Sd)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=(0,eT.a)();return n?"function"==typeof e?e(r):e:null}var eV=n(48964),eK=n(44908),eJ=n(13435);let eZ=/^(\d+(?:\.\d+)?)px$/;class eq extends g.fG{static getType(){return"tablecell"}static clone(e){return new eq(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor}static importDOM(){return{td:e=>({conversion:eW,priority:0}),th:e=>({conversion:eW,priority:0})}}static importJSON(e){let t=e.colSpan||1,n=e.rowSpan||1;return eG(e.headerState,t,e.width||void 0).setRowSpan(n).setBackgroun
15dColor(e.backgroundColor||null)}constructor(e=0,t=1,n,r){super(r),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=n,this.__backgroundColor=null}createDOM(e){let t=document.createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),null!==this.__backgroundColor&&(t.style.backgroundColor=this.__backgroundColor),(0,d.ZB)(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){let t=super.exportDOM(e);if(t.element){let e=t.element;e.style.border="1px solid black",this.__colSpan>1&&(e.colSpan=this.__colSpan),this.__rowSpan>1&&(e.rowSpan=this.__rowSpan),e.style.width=`${this.getWidth()||75}px`,e.style.verticalAlign="top",e.style.textAlign="start",null===this.__backgroundColor&&this.hasHeader()&&(e.style.backgroundColor="#f2f3f5")}return t}exportJSON(){return{...super.exportJSON(),backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,type:"tablecell",width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){let t=this.getWritable();return t.__colSpan=e,t}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){let t=this.getWritable();return t.__rowSpan=e,t}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,t=3){let n=this.getWritable();return n.__headerState=e&t|n.__headerState&~t,n}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){let t=this.getWritable();return t.__width=e,t}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){let t=this.getWritable();return t.__backgroundColor=e,t}toggleHeaderStyle(e){let t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return 0!==this.getLatest().__headerState}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function eW(e){let t,n=e.nodeName.toLowerCase();eZ.test(e.style.width)&&(t=parseFloat(e.style.width));let r=eG(1*("th"===n),e.colSpan,t);r.__rowSpan=e.rowSpan;let i=e.style.backgroundColor;""!==i&&(r.__backgroundColor=i);let a=e.style,o=(a&&a.textDecoration||"").split(" "),l="700"===a.fontWeight||"bold"===a.fontWeight,s=o.includes("line-through"),u="italic"===a.fontStyle,c=o.includes("underline");return{after:e=>(0===e.length&&e.push((0,g.lJ)()),e),forChild:(e,t)=>{if(eX(t)&&!(0,g.ff)(e)){let t=(0,g.lJ)();return(0,g.wH)(e)&&"\n"===e.getTextContent()?null:((0,g.kF)(e)&&(l&&e.toggleFormat("bold"),s&&e.toggleFormat("strikethrough"),u&&e.toggleFormat("italic"),c&&e.toggleFormat("underline")),t.append(e),t)}return e},node:r}}function eG(e,t=1,n){return(0,g.pT)(new eq(e,t,n))}function eX(e){return e instanceof eq}let eY=(0,g.gu)("INSERT_TABLE_COMMAND");var eQ=(i=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}).__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i;let e1="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,e0=e1&&"documentMode"in document?document.documentMode:null,e5=e1&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);e1&&"InputEvent"in window&&!e0&&new window.InputEvent("input");class e4 extends g.fG{static getType(){return"tablerow"}static clone(e){return new e4(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:e2,priority:0})}}static importJSON(e){return e3(e.height)}constructor(e,t){super(t),this.__height=e}exportJSON(){return{...super.exportJSON(),...this.getHeight()&&{height:this.getHeight()},type:"tablerow",version:1}}createDOM(e){let t=document.createElement("tr");return this.__height&&(t.style.height=`${this.__height}px`),(0,d.ZB)(t,e.theme.tableRow),t}
15isShadowRoot(){return!0}setHeight(e){return this.getWritable().__height=e,this.__height}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function e2(e){let t;return eZ.test(e.style.height)&&(t=parseFloat(e.style.height)),{node:e3(t)}}function e3(e){return(0,g.pT)(new e4(e))}function e7(e){return e instanceof e4}function e6(e,t,n=!0){let r=t$();for(let i=0;i<e;i++){let e=e3();for(let r=0;r<t;r++){let t=0;"object"==typeof n?(0===i&&n.rows&&(t|=1),0===r&&n.columns&&(t|=2)):n&&(0===i&&(t|=1),0===r&&(t|=2));let a=eG(t),o=(0,g.lJ)();o.append((0,g.sT)()),a.append(o),e.append(a)}r.append(e)}return r}function e8(e,t,n){let[r,i,a]=e9(e,t,n);return null===i&&eQ(207),null===a&&eQ(208),[r,i,a]}function e9(e,t,n){let r=[],i=null,a=null;function o(e){let t=r[e];return void 0===t&&(r[e]=t=[]),t}let l=e.getChildren();for(let e=0;e<l.length;e++){let r=l[e];e7(r)||eQ(209);for(let s=r.getFirstChild(),u=0;null!=s;s=s.getNextSibling()){eX(s)||eQ(147);let r=o(e);for(;void 0!==r[u];)u++;let c={cell:s,startColumn:u,startRow:e},{__rowSpan:d,__colSpan:g}=s;for(let t=0;t<d&&!(e+t>=l.length);t++){let n=o(e+t);for(let e=0;e<g;e++)n[u+e]=c}null!==t&&null===i&&t.is(s)&&(i=c),null!==n&&null===a&&n.is(s)&&(a=c)}}return[r,i,a]}function te(e){let t;if(e instanceof eq)t=e;else if("__type"in e){let n=(0,d.Bt)(e,eX);eX(n)||eQ(148),t=n}else{let n=(0,d.Bt)(e.getNode(),eX);eX(n)||eQ(148),t=n}let n=t.getParent();e7(n)||eQ(149);let r=n.getParent();return tH(r)||eQ(210),[t,n,r]}function tt(e,t,n){let r=Math.min(t.startColumn,n.startColumn),i=Math.min(t.startRow,n.startRow),a=Math.max(t.startColumn+t.cell.__colSpan-1,n.startColumn+n.cell.__colSpan-1),o=Math.max(t.startRow+t.cell.__rowSpan-1,n.startRow+n.cell.__rowSpan-1),l=r,s=i,u=r,c=i;function d(e){let{cell:t,startColumn:n,startRow:l}=e;r=Math.min(r,n),i=Math.min(i,l),a=Math.max(a,n+t.__colSpan-1),o=Math.max(o,l+t.__rowSpan-1)}for(;r<l||i<s||a>u||o>c;){if(r<l){let t=c-s,n=l-1;for(let r=0;r<=t;r++)d(e[s+r][n]);l=n}if(i<s){let t=u-l,n=s-1;for(let r=0;r<=t;r++)d(e[n][l+r]);s=n}if(a>u){let t=c-s,n=u+1;for(let r=0;r<=t;r++)d(e[s+r][n]);u=n}if(o>c){let t=u-l,n=c+1;for(let r=0;r<=t;r++)d(e[n][l+r]);c=n}}return{maxColumn:a,maxRow:o,minColumn:r,minRow:i}}function tn(e){let[t,,n]=te(e),r=n.getChildren(),i=r.length,a=r[0].getChildren().length,o=Array(i);for(let e=0;e<i;e++)o[e]=Array(a);for(let e=0;e<i;e++){let n=r[e].getChildren(),i=0;for(let r=0;r<n.length;r++){for(;o[e][i];)i++;let a=n[r],l=a.__rowSpan||1,s=a.__colSpan||1;for(let t=0;t<l;t++)for(let n=0;n<s;n++)o[e+t][i+n]=a;if(t===a)return{colSpan:s,columnIndex:i,rowIndex:e,rowSpan:l};i+=s}}return null}function tr(e){let[[t,n,r,i],[a,o,l,s]]=["anchor","focus"].map(t=>{let n=e[t].getNode(),r=(0,d.Bt)(n,eX);eX(r)||eQ(238,t,n.getKey(),n.getType());let i=r.getParent();e7(i)||eQ(239,t);let a=i.getParent();return tH(a)||eQ(240,t),[n,r,i,a]});return i.is(s)||eQ(241),{anchorCell:n,anchorNode:t,anchorRow:r,anchorTable:i,focusCell:o,focusNode:a,focusRow:l,focusTable:s}}class ti{constructor(e,t,n){this.anchor=t,this.focus=n,t._selection=this,n._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=e}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){return"root"!==this.tableKey&&"root"!==this.anchor.key&&"element"===this.anchor.type&&"root"!==this.focus.key&&"element"===this.focus.type}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return ta(e)&&this.tableKey===e.tableKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)}set(e,t,n){this.dirty=this.dirty||e!==this.tableKey||t!==this.anchor.key||n!==this.focus.key,this.tableKey=e,this.anchor.key=t,this.focus.key=n,this._cachedNodes=null}clone(){return new ti(this.tableKey,(0,g.z8)(this.anchor.key,this.anchor.offset,this.anchor.type),(0,g.z8)(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(e){}insertText(){}hasFormat(e){let t=0;this.getNodes().filter(eX).forEach(e=>{let n=e.getFirstChild();(0,g.bS)(n)&&(t|=n.getTextFormat())});let n=g.LZ[e];return!!(t&n)}insertNodes(e){let t=this.focus.getNode();(0,g.ff)(t)||eQ(151),(0,g.C)(t.select(0,t.getChildrenSize())).insertNodes(e)}getShape(){let{anchorCell:e,focusCell:t}=tr(this),n=tn(e);null===n&&eQ(153);let r=tn(t);null===r&&eQ(155);let i=Math.min(n.columnIndex,r.columnIndex),a=Math.max(n.columnIndex+n.colSpan-1,r.columnIndex+r.colSpan-1),o=Math.min(n.rowIndex,r.rowIndex),l=Math.max(n.rowIndex+n.rowSpan-1,r.rowIndex+r.rowSpan-1);return{fromX:Math.min(i,a),fromY:Math.min(o,l),toX:Math.max(i,a),toY:Math.max(o,l)}}getNodes(){if(!this.isValid())return[];let e=this._cachedNodes;if(null!==e)return e;let{anchorTable:t,anchorCell:n,focusCell:r}=tr(this),i=r.getParents()[1];if(i!==t){if(t.isParentOf(r)){let e=i.getParent();null==e&&eQ(159),this.set(this.tableKey,r.getKey(),e.getKey())}else{let e=t.getParent();null==e&&eQ(158),this.set(this.tableKey,e.getKey(),r.getKey())}return this.getNodes()}let[a,o,l]=e8(t,n,r),{minColumn:s,maxColumn:u,minRow:c,maxRow:d}=tt(a,o,l),p=new Map([[t.getKey(),t]]),h=null;for(let e=c;e<=d;e++)for(let t=s;t<=u;t++){let{cell:n}=a[e][t],r=n.getParent();
15e7(r)||eQ(160),r!==h&&(p.set(r.getKey(),r),h=r),p.has(n.getKey())||function(e,t){let n=[[e]];for(let e=n.at(-1);void 0!==e&&n.length>0;e=n.at(-1)){let r=e.pop();void 0===r?n.pop():!1!==t(r)&&(0,g.ff)(r)&&n.push(r.getChildren())}}(n,e=>{p.set(e.getKey(),e)})}let m=Array.from(p.values());return(0,g.Gc)()||(this._cachedNodes=m),m}getTextContent(){let e=this.getNodes().filter(e=>eX(e)),t="";for(let n=0;n<e.length;n++){let r=e[n],i=r.__parent,a=(e[n+1]||{}).__parent;t+=r.getTextContent()+(a!==i?"\n":" ")}return t}}function ta(e){return e instanceof ti}function to(){return new ti("root",(0,g.z8)("root",0,"element"),(0,g.z8)("root",0,"element"))}function tl(e,t=(0,g.i0)()){let n=(0,g.ns)(e);tH(n)||eQ(231,e);let r=tc(n,t.getElementByKey(e));return null===r&&eQ(232,e),{tableElement:r,tableNode:n}}class ts{constructor(e,t){this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.nextFocus=null,this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(e=>e()),this.listenersToRemove.clear()}$lookup(){return tl(this.tableNodeKey,this.editor)}trackTable(){let e=new MutationObserver(e=>{this.editor.getEditorState().read(()=>{let t=!1;for(let n=0;n<e.length;n++){let r=e[n].target.nodeName;if("TABLE"===r||"TBODY"===r||"THEAD"===r||"TR"===r){t=!0;break}}if(!t)return;let{tableNode:n,tableElement:r}=this.$lookup();this.table=tb(n,r)},{editor:this.editor})});this.editor.getEditorState().read(()=>{let{tableNode:t,tableElement:n}=this.$lookup();this.table=tb(t,n),e.observe(n,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}$clearHighlight(){let e=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.$enableHighlightStyle();let{tableNode:t,tableElement:n}=this.$lookup();tv(e,tb(t,n),null),null!==(0,g.vJ)()&&((0,g.n1)(null),e.dispatchCommand(g.Mv,void 0))}$enableHighlightStyle(){let e=this.editor,{tableElement:t}=this.$lookup();(0,d.HE)(t,e._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1}$disableHighlightStyle(){let{tableElement:e}=this.$lookup();(0,d.ZB)(e,this.editor._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0}$updateTableTableSelection(e){if(null!==e){e.tableKey!==this.tableNodeKey&&eQ(233,e.tableKey,this.tableNodeKey);let t=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.$disableHighlightStyle(),this.updateDOMSelection(),tv(t,this.table,this.tableSelection)}else this.$clearHighlight()}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return!!this.shouldCheckSelection&&(this.shouldCheckSelection=!1,!0)}setNextFocus(e){this.nextFocus=e}getAndClearNextFocus(){let{nextFocus:e}=this;return null!==e&&(this.nextFocus=null),e}updateDOMSelection(){if(null!==this.anchorCell&&null!==this.focusCell){let e=(0,g.pe)(this.editor._window);e&&e.rangeCount>0&&e.removeAllRanges()}}$setFocusCellForSelection(e,t=!1){let n=this.editor,{tableNode:r}=this.$lookup(),i=e.x,a=e.y;if(this.focusCell=e,this.isHighlightingCells||this.anchorX===i&&this.anchorY===a&&!t){if(i===this.focusX&&a===this.focusY)return!1}else this.isHighlightingCells=!0,this.$disableHighlightStyle();if(this.focusX=i,this.focusY=a,this.isHighlightingCells){let t=tO(r,e.elem);if(null!=this.tableSelection&&null!=this.anchorCellNodeKey&&null!==t){var o;let e,i;return this.focusCellNodeKey=t.getKey(),this.tableSelection=(o=this.$getAnchorTableCellOrThrow(),r.getKey(),o.getKey(),t.getKey(),(i=ta(e=(0,g.vJ)())?e.clone():to()).set(r.getKey(),o.getKey(),t.getKey()),i),(0,g.n1)(this.tableSelection),n.dispatchCommand(g.Mv,void 0),tv(n,this.table,this.tableSelection),!0}}return!1}$getAnchorTableCell(){return this.anchorCellNodeKey?(0,g.ns)(this.anchorCellNodeKey):null}$getAnchorTableCellOrThrow(){let e=this.$getAnchorTableCell();return null===e&&eQ(234),e}$getFocusTableCell(){return this.focusCellNodeKey?(0,g.ns)(this.focusCellNodeKey):null}$getFocusTableCellOrThrow(){let e=this.$getFocusTableCell();return null===e&&eQ(235),e}
15$setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y;let{tableNode:t}=this.$lookup(),n=tO(t,e.elem);if(null!==n){let e=n.getKey();this.tableSelection=null!=this.tableSelection?this.tableSelection.clone():to(),this.anchorCellNodeKey=e}}$formatCells(e){let t=(0,g.vJ)();ta(t)||eQ(236);let n=(0,g.uT)(),r=n.anchor,i=n.focus,a=t.getNodes().filter(eX);a.length>0||eQ(237);let o=a[0].getFirstChild(),l=(0,g.bS)(o)?o.getFormatFlags(e,null):null;a.forEach(t=>{r.set(t.getKey(),0,"element"),i.set(t.getKey(),t.getChildrenSize(),"element"),n.formatText(e,l)}),(0,g.n1)(t),this.editor.dispatchCommand(g.Mv,void 0)}$clearText(){let{editor:e}=this,t=(0,g.ns)(this.tableNodeKey);if(!tH(t))throw Error("Expected TableNode.");let n=(0,g.vJ)();ta(n)||eQ(11);let r=n.getNodes().filter(eX);r.length!==this.table.columns*this.table.rows?(r.forEach(e=>{if((0,g.ff)(e)){let t=(0,g.lJ)(),n=(0,g.sT)();t.append(n),e.append(t),e.getChildren().forEach(e=>{e!==t&&e.remove()})}}),tv(e,this.table,null),(0,g.n1)(null),e.dispatchCommand(g.Mv,void 0)):(t.selectPrevious(),t.remove(),(0,g.Ni)().selectStart())}}let tu="__lexicalTableSelection";function tc(e,t){if(!t)return t;let n="TABLE"===t.nodeName?t:e.getDOMSlot(t).element;return"TABLE"!==n.nodeName&&eQ(245,t.nodeName),n}function td(e){return e._window}function tg(e,t){for(let n=t,r=null;null!==n;n=n.getParent()){if(e.is(n))return r;eX(n)&&(r=n)}return null}let tp=[[g.bb,"down"],[g.UD,"up"],[g.AX,"backward"],[g.JM,"forward"]],th=[g.hi,g.vi,g.Wu],tm=[g.gC,g.w$];function tf(e){let t=e;for(;null!=t;){let e=t.nodeName;if("TD"===e||"TH"===e){let e=t._cell;return void 0===e?null:e}t=t.parentNode}return null}function tb(e,t){let n=[],r={columns:0,domRows:n,rows:0},i=tc(e,t).querySelector("tr"),a=0,o=0;for(n.length=0;null!=i;){let e=i.nodeName;if("TD"===e||"TH"===e){let e={elem:i,hasBackgroundColor:""!==i.style.backgroundColor,highlighted:!1,x:a,y:o};i._cell=e;let t=n[o];void 0===t&&(t=n[o]=[]),t[a]=e}else{let e=i.firstChild;if(null!=e){i=e;continue}}let t=i.nextSibling;if(null!=t){a++,i=t;continue}let r=i.parentNode;if(null!=r){let e=r.nextSibling;if(null==e)break;o++,a=0,i=e}}return r.columns=a+1,r.rows=o+1,r}function tv(e,t,n){let r=new Set(n?n.getNodes():[]);tC(t,(t,n)=>{let i=t.elem;r.has(n)?(t.highlighted=!0,tS(e,t)):(t.highlighted=!1,tT(e,t),i.getAttribute("style")||i.removeAttribute("style"))})}function tC(e,t){let{domRows:n}=e;for(let e=0;e<n.length;e++){let r=n[e];if(r)for(let n=0;n<r.length;n++){let i=r[n];if(!i)continue;let a=(0,g.xL)(i.elem);null!==a&&t(i,a,{x:n,y:e})}}}function ty(e,t){t.$disableHighlightStyle(),tC(t.table,t=>{t.highlighted=!0,tS(e,t)})}function tx(e,t){let n,r;if(t.startColumn===e.minColumn)n="minColumn";else{if(t.startColumn+t.cell.__colSpan-1!==e.maxColumn)return null;n="maxColumn"}if(t.startRow===e.minRow)r="minRow";else{if(t.startRow+t.cell.__rowSpan-1!==e.maxRow)return null;r="maxRow"}return[n,r]}function tw([e,t]){return["minColumn"===e?"maxColumn":"minColumn","minRow"===t?"maxRow":"minRow"]}function t_(e,t,[n,r]){let i=t[r],a=e[i];void 0===a&&eQ(250,r,String(i));let o=t[n],l=a[o];return void 0===l&&eQ(250,n,String(o)),l}function tk(e,t){if((0,g.I2)(e)||ta(e)){let n=t.isParentOf(e.anchor.getNode()),r=t.isParentOf(e.focus.getNode());return n&&r}return!1}function tE(e,t){t?e.selectStart():e.selectEnd()}function tS(e,t){let n=t.elem,r=e._config.theme;eX((0,g.xL)(n))||eQ(131),(0,d.ZB)(n,r.tableCellSelected)}function tT(e,t){let n=t.elem;eX((0,g.xL)(n))||eQ(131);let r=e._config.theme;(0,d.HE)(n,r.tableCellSelected)}function tN(e){let t=(0,d.Bt)(e,eX);return eX(t)?t:null}function tL(e){let t=(0,d.Bt)(e,tH);return tH(t)?t:null}function tA(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}function tI(e,t,n){let r=(0,g.lJ)();"first"===e?t.insertBefore(r):t.insertAfter(r),r.append(...n||[]),r.selectEnd()}function tF(e,t,n){let r=n.getParent();if(!r)return;let i=(0,g.pe)(td(e));if(!i)return;let a=i.anchorNode,o=e.getElementByKey(r.getKey()),l=tc(n,e.getElementByKey(n.getKey()));if(!a||!o||!l||!o.contains(a)||l.contains(a))return;let s=(0,d.Bt)(t.anchor.getNode(),e=>eX(e));if(!s)return;let u=(0,d.Bt)(s,e=>tH(e));if(!tH(u)||!u.is(n))return;let[c,p]=e8(n,s,s),h=c[0][0],m=c[c.length-1][c[0].length-1],{startRow:f,startColumn:b}=p,v=f===h.startRow&&b===h.startColumn,C=f===m.startRow&&b===m.startColumn;return v?"first":C?"last":void 0}function tP(e,t){let{tableNode:n}=e.$lookup(),r=n.getCordsFromCellNode(t,e.table);return n.getDOMCellFromCordsOrThrow(r.x,r.y,e.table)}
15function tO(e,t,n){return tg(e,(0,g.xL)(t,n))}function tM(e,t,n,r){let i=e.querySelector("colgroup");if(!i)return;let a=[];for(let e=0;e<n;e++){let t=document.createElement("col"),n=r&&r[e];n&&(t.style.width=`${n}px`),a.push(t)}i.replaceChildren(...a)}function tR(e,t,n){n?((0,d.ZB)(e,t.theme.tableRowStriping),e.setAttribute("data-lexical-row-striping","true")):((0,d.HE)(e,t.theme.tableRowStriping),e.removeAttribute("data-lexical-row-striping"))}let tj=new WeakSet;function tD(e=(0,g.i0)()){return tj.has(e)}class tB extends g.fG{static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let t=this.getWritable();return t.__colWidths=e,t}static clone(e){return new tB(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping}static importDOM(){return{table:e=>({conversion:tU,priority:1})}}static importJSON(e){let t=t$();return t.__rowStriping=e.rowStriping||!1,t.__colWidths=e.colWidths,t}constructor(e){super(e),this.__rowStriping=!1}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),rowStriping:this.__rowStriping?this.__rowStriping:void 0,type:"table",version:1}}getDOMSlot(e){let t="TABLE"!==e.nodeName&&e.querySelector("table")||e;return"TABLE"!==t.nodeName&&eQ(229),super.getDOMSlot(t).withAfter(t.querySelector("colgroup"))}createDOM(e,t){let n=document.createElement("table"),r=document.createElement("colgroup");if(n.appendChild(r),tM(n,0,this.getColumnCount(),this.getColWidths()),(0,g.pd)(r),(0,d.ZB)(n,e.theme.table),this.__rowStriping&&tR(n,e,!0),tD(t)){let t=document.createElement("div"),r=e.theme.tableScrollableWrapper;return r?(0,d.ZB)(t,r):t.style.cssText="overflow-x: auto;",t.appendChild(n),t}return n}updateDOM(e,t,n){return e.__rowStriping!==this.__rowStriping&&tR(t,n,this.__rowStriping),tM(t,0,this.getColumnCount(),this.getColWidths()),!1}exportDOM(e){let{element:t,after:n}=super.exportDOM(e);return{after:e=>{if(n&&(e=n(e)),e&&(0,g.sb)(e)&&"TABLE"!==e.nodeName&&(e=e.querySelector("table")),!e||!(0,g.sb)(e))return null;let t=e.querySelectorAll(":scope > tr");if(t.length>0){let n=document.createElement("tbody");n.append(...t),e.append(n)}return e},element:t&&(0,g.sb)(t)&&"TABLE"!==t.nodeName?t.querySelector("table"):t}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){let{rows:n,domRows:r}=t;for(let t=0;t<n;t++){let n=r[t];if(null!=n)for(let r=0;r<n.length;r++){let i=n[r];if(null==i)continue;let{elem:a}=i,o=tO(this,a);if(null!==o&&e.is(o))return{x:r,y:t}}}throw Error("Cell not found in table.")}getDOMCellFromCords(e,t,n){let{domRows:r}=n,i=r[t];if(null==i)return null;let a=i[e<i.length?e:i.length-1];return null==a?null:a}getDOMCellFromCordsOrThrow(e,t,n){let r=this.getDOMCellFromCords(e,t,n);if(!r)throw Error("Cell not found at cords.");return r}getCellNodeFromCords(e,t,n){let r=this.getDOMCellFromCords(e,t,n);if(null==r)return null;let i=(0,g.xL)(r.elem);return eX(i)?i:null}getCellNodeFromCordsOrThrow(e,t,n){let r=this.getCellNodeFromCords(e,t,n);if(!r)throw Error("Node at cords not TableCellNode.");return r}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){this.getWritable().__rowStriping=e}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){let e=this.getFirstChild();if(!e)return 0;let t=0;
15return e.getChildren().forEach(e=>{eX(e)&&(t+=e.getColSpan())}),t}}function tU(e){let t=t$();e.hasAttribute("data-lexical-row-striping")&&t.setRowStriping(!0);let n=e.querySelector(":scope > colgroup");if(n){let e=[];for(let t of n.querySelectorAll(":scope > col")){let n=t.style.width;if(!n||!eZ.test(n)){e=void 0;break}e.push(parseFloat(n))}e&&t.setColWidths(e)}return{node:t}}function t$(){return(0,g.pT)(new tB)}function tH(e){return e instanceof tB}var tz=(a=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}).__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;function tV({hasCellMerge:e=!0,hasCellBackgroundColor:t=!0,hasTabHandler:n=!0,hasHorizontalScroll:r=!1}){let[i]=(0,e_.DF)();return(0,Y.useEffect)(()=>{r?tj.add(i):tj.delete(i)},[i,r]),(0,Y.useEffect)(()=>(i.hasNodes([tB,eq,e4])||tz(10),(0,d.Sd)(i.registerCommand(eY,({columns:e,rows:t,includeHeaders:n})=>{let r=e6(Number(t),Number(e),n);(0,d.Pe)(r);let i=r.getFirstDescendant();return(0,g.kF)(i)&&i.select(),!0},0),i.registerNodeTransform(tB,e=>{let[t]=e9(e,null,null),n=t.reduce((e,t)=>Math.max(e,t.length),0),r=e.getChildren();for(let e=0;e<t.length;++e){let i=r[e];if(!i)continue;let a=t[e].reduce((e,t)=>t?1+e:e,0);if(a!==n)for(let e=a;e<n;++e){let e=eG(0);e.append((0,g.lJ)()),i.append(e)}}}))),[i]),(0,Y.useEffect)(()=>{let e=new Map,t=(t,r,a)=>{let o=tc(t,a),l=function(e,t,n,r){let i=n.getRootElement(),a=td(n);null!==i&&null!==a||eQ(246);let o=new ts(n,e.getKey()),l=tc(e,t);for(let[t,r]of(null!==(l[tu]||null)&&eQ(205),l[tu]=o,o.listenersToRemove.add(()=>{(l[tu]||null)===o&&delete l[tu]}),l.addEventListener("mousedown",t=>{if(0!==t.button||!a)return;let r=tf(t.target);null!==r&&n.update(()=>{let n=(0,g.S1)();if(e5&&t.shiftKey&&tk(n,e)&&((0,g.I2)(n)||ta(n))){let i=n.anchor.getNode(),a=tg(e,n.anchor.getNode());a?(o.$setAnchorCellForSelection(tP(o,a)),o.$setFocusCellForSelection(r),tA(t)):(e.isBefore(i)?e.selectStart():e.selectEnd()).anchor.set(n.anchor.key,n.anchor.offset,n.anchor.type)}else o.$setAnchorCellForSelection(r)}),(()=>{if(o.isSelecting)return;let e=()=>{o.isSelecting=!1,a.removeEventListener("mouseup",e),a.removeEventListener("mousemove",t)},t=r=>{if(1&~r.buttons&&o.isSelecting)return o.isSelecting=!1,a.removeEventListener("mouseup",e),void a.removeEventListener("mousemove",t);let i=!l.contains(r.target),s=null;if(i){for(let e of document.elementsFromPoint(r.clientX,r.clientY))if(s=l.contains(e)?tf(e):null)break}else s=tf(r.target);s&&(null===o.focusCell||s.elem!==o.focusCell.elem)&&(o.setNextFocus({focusCell:s,override:i}),n.dispatchCommand(g.Mv,void 0))};o.isSelecting=!0,a.addEventListener("mouseup",e,o.listenerOptions),a.addEventListener("mousemove",t,o.listenerOptions)})()},o.listenerOptions),a.addEventListener("mousedown",e=>{0===e.button&&n.update(()=>{let t=(0,g.vJ)(),n=e.target;ta(t)&&t.tableKey===o.tableNodeKey&&i.contains(n)&&o.$clearHighlight()})},o.listenerOptions),tp))o.listenersToRemove.add(n.registerCommand(t,t=>(function e(t,n,r,i,a){let o;if(("up"===r||"down"===r)&&(o=t.getRootElement())&&o.hasAttribute("aria-controls")&&"typeahead-menu"===o.getAttribute("aria-controls"))return!1;let l=(0,g.vJ)();if(!tk(l,i)){if((0,g.I2)(l)){if("backward"===r){if(l.focus.offset>0)return!1;let e=function(e){for(let t=e,n=e;null!==n;t=n,n=n.getParent())if((0,g.ff)(n)){if(n!==t&&n.getFirstChild()!==t)return null;if(!n.isInline())return n}return null}(l.focus.getNode());if(!e)return!1;let t=e.getPreviousSibling();return!!tH(t)&&(tA(n),n.shiftKey?l.focus.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent(),"element"):t.selectEnd(),!0)}if(n.shiftKey&&("up"===r||"down"===r)){let e=l.focus.getNode();if(!l.isCollapsed()&&("up"===r&&!l.isBackward()||"down"===r&&l.isBackward())){let t=(0,d.Bt)(e,e=>tH(e));if(eX(t)&&(t=(0,d.Bt)(t,tH)),t!==i||!t)return!1;let a="down"===r?t.getNextSibling():t.getPreviousSibling();if(!a)return!1;let o=0;"up"===r&&(0,g.ff)(a)&&(o=a.getChildrenSize());let s=a;"up"===r&&(0,g.ff)(a)&&(s=a.getLastChild()||a,o=(0,g.kF)(s)?s.getTextContentSize():0);let u=l.clone();return u.focus.set(s.getKey(),o,(0,g.kF)(s)?"text":"element"),(0,g.n1)(u),tA(n),!0}if((0,g.Iq)(e)){let e="up"===r?l.getNodes()[l.getNodes().length-1]:l.getNodes()[0];if(e&&null!==tg(i,e)){let e=i.getFirstDescendant(),t=i.getLastDescendant();if(!e||!t)return!1;let[n]=te(e),[r]=te(t),o=i.getCordsFromCellNode(n,a.table),l=i.getCordsFromCellNode(r,a.table),s=i.getDOMCellFromCordsOrThrow(o.x,o.y,a.table),u=i.getDOMCellFromCordsOrThrow(l.x,l.y,a.table);
15return a.$setAnchorCellForSelection(s),a.$setFocusCellForSelection(u,!0),!0}return!1}{let t=(0,d.Bt)(e,e=>(0,g.ff)(e)&&!e.isInline());if(eX(t)&&(t=(0,d.Bt)(t,tH)),!t)return!1;let i="down"===r?t.getNextSibling():t.getPreviousSibling();if(tH(i)&&a.tableNodeKey===i.getKey()){let e=i.getFirstDescendant(),t=i.getLastDescendant();if(!e||!t)return!1;let[a]=te(e),[o]=te(t),s=l.clone();return s.focus.set(("up"===r?a:o).getKey(),"up"===r?0:o.getChildrenSize(),"element"),tA(n),(0,g.n1)(s),!0}}}}return"down"===r&&tD(t)&&a.setShouldCheckSelection(),!1}if((0,g.I2)(l)&&l.isCollapsed()){let o,{anchor:s,focus:u}=l,c=(0,d.Bt)(s.getNode(),eX),p=(0,d.Bt)(u.getNode(),eX);if(!eX(c)||!c.is(p))return!1;let h=tL(c);if(h!==i&&null!=h){let i=tc(h,t.getElementByKey(h.getKey()));if(null!=i)return a.table=tb(h,i),e(t,n,r,h,a)}if("backward"===r||"forward"===r){let e=s.type,t=s.offset,a=s.getNode();if(!a)return!1;let o=l.getNodes();return(1!==o.length||!(0,g.Cy)(o[0]))&&!!("element"===e&&("backward"===r?null===a.getPreviousSibling():null===a.getNextSibling())||function(e,t,n,r){let i=(0,d.Bt)(n,e=>(0,g.ff)(e)&&!e.isInline());if(!i)return!1;let a="backward"===r?0===t:t===n.getTextContentSize();return"text"===e&&a&&("backward"===r?null===i.getPreviousSibling():null===i.getNextSibling())}(e,t,a,r))&&function(e,t,n,r,i){let[a,o]=e8(r,n,n);if(!function(e,t,n){let r=e[0][0],i=e[e.length-1][e[0].length-1],{startColumn:a,startRow:o}=t;return"backward"===n?a===r.startColumn&&o===r.startRow:a===i.startColumn&&o===i.startRow}(a,o,i))return!1;let l=function(e,t,n){let r=(0,d.Bt)(e,e=>(0,g.ff)(e)&&!e.isInline());if(!r)return;let i="backward"===t?r.getPreviousSibling():r.getNextSibling();return i&&tH(i)?i:"backward"===t?n.getPreviousSibling():n.getNextSibling()}(t,i,r);return!(!l||tH(l))&&(tA(e),"backward"===i?l.selectEnd():l.selectStart(),!0)}(n,a,c,i,r)}let m=t.getElementByKey(c.__key),f=t.getElementByKey(s.key);if(null==f||null==m)return!1;if("element"===s.type)o=f.getBoundingClientRect();else{let e=(0,g.pe)(td(t));if(null===e||0===e.rangeCount)return!1;o=e.getRangeAt(0).getBoundingClientRect()}let b="up"===r?c.getFirstChild():c.getLastChild();if(null==b)return!1;let v=t.getElementByKey(b.__key);if(null==v)return!1;let C=v.getBoundingClientRect();if("up"===r?C.top>o.top-o.height:o.bottom+o.height>C.bottom){tA(n);let e=i.getCordsFromCellNode(c,a.table);if(!n.shiftKey)return((e,t,n,r,i)=>{let a="forward"===i;switch(i){case"backward":case"forward":return n!==(a?e.table.columns-1:0)?tE(t.getCellNodeFromCordsOrThrow(n+(a?1:-1),r,e.table),a):r!==(a?e.table.rows-1:0)?tE(t.getCellNodeFromCordsOrThrow(a?0:e.table.columns-1,r+(a?1:-1),e.table),a):a?t.selectNext():t.selectPrevious(),!0;case"up":return 0!==r?tE(t.getCellNodeFromCordsOrThrow(n,r-1,e.table),!1):t.selectPrevious(),!0;case"down":return r!==e.table.rows-1?tE(t.getCellNodeFromCordsOrThrow(n,r+1,e.table),!0):t.selectNext(),!0;default:return!1}})(a,i,e.x,e.y,r);{let t=i.getDOMCellFromCordsOrThrow(e.x,e.y,a.table);a.$setAnchorCellForSelection(t),a.$setFocusCellForSelection(t,!0)}return!0}}else if(ta(l)){let{anchor:e,focus:o}=l,s=(0,d.Bt)(e.getNode(),eX),u=(0,d.Bt)(o.getNode(),eX),[c]=l.getNodes();tH(c)||eQ(251);let g=tc(c,t.getElementByKey(c.getKey()));if(!eX(s)||!eX(u)||!tH(c)||null==g)return!1;a.$updateTableTableSelection(l);let p=tb(c,g),h=i.getCordsFromCellNode(s,p),m=i.getDOMCellFromCordsOrThrow(h.x,h.y,p);if(a.$setAnchorCellForSelection(m),tA(n),n.shiftKey){let[e,t,n]=e8(i,s,u);return function(e,t,n,r,i){let a,o=tt(t,n,r),{topSpan:l,leftSpan:s,bottomSpan:u,rightSpan:c}=function(e,t){let{minColumn:n,maxColumn:r,minRow:i,maxRow:a}=t,o=1,l=1,s=1,u=1,c=e[i],d=e[a];for(let e=n;e<=r;e++)o=Math.max(o,c[e].cell.__rowSpan),u=Math.max(u,d[e].cell.__rowSpan);for(let t=i;t<=a;t++)l=Math.max(l,e[t][n].cell.__colSpan),s=Math.max(s,e[t][r].cell.__colSpan);return{bottomSpan:u,leftSpan:l,rightSpan:s,topSpan:o}}(t,o),[d,g]=tw((null===(a=tx(o,n))&&eQ(249,n.cell.getKey()),a)),p=o[d],h=o[g];"forward"===i?p+="maxColumn"===d?1:s:"backward"===i?p-="minColumn"===d?1:c:"down"===i?h+="maxRow"===g?1:l:"up"===i&&(h-="minRow"===g?1:u);let m=t[h];if(void 0===m)return!1;let f=m[p];if(void 0===f)return!1;let[b,v]=function(e,t,n){let r=tt(e,t,n),i=tx(r,t);if(i)return[t_(e,r,i),t_(e,r,tw(i))];let a=tx(r,n);if(a)return[t_(e,r,tw(a)),t_(e,r,a)];let o=["minColumn","minRow"];return[t_(e,r,o),t_(e,r,tw(o))]}(t,n,f),C=tP(e,b.cell),y=tP(e,v.cell);
15return e.$setAnchorCellForSelection(C),e.$setFocusCellForSelection(y,!0),!0}(a,e,t,n,r)}return u.selectEnd(),!0}return!1})(n,t,r,e,o),3));o.listenersToRemove.add(n.registerCommand(g.Q$,t=>{let n=(0,g.vJ)();if(ta(n)){let r=tg(e,n.focus.getNode());if(null!==r)return tA(t),r.selectEnd(),!0}return!1},3));let s=t=>()=>{let n=(0,g.vJ)();if(!tk(n,e))return!1;if(ta(n))return o.$clearText(),!0;if((0,g.I2)(n)){if(!eX(tg(e,n.anchor.getNode())))return!1;let r=n.anchor.getNode(),i=n.focus.getNode(),a=e.isParentOf(r),l=e.isParentOf(i);if(a&&!l||l&&!a)return o.$clearText(),!0;let s=(0,d.Bt)(n.anchor.getNode(),e=>(0,g.ff)(e)),u=s&&(0,d.Bt)(s,e=>(0,g.ff)(e)&&eX(e.getParent()));if(!(0,g.ff)(u)||!(0,g.ff)(s))return!1;if(t===g.vi&&null===u.getPreviousSibling())return!0}return!1};for(let e of th)o.listenersToRemove.add(n.registerCommand(e,s(e),4));let u=t=>{let n=(0,g.vJ)();if(!ta(n)&&!(0,g.I2)(n))return!1;let r=e.isParentOf(n.anchor.getNode());if(r!==e.isParentOf(n.focus.getNode())){let t=r?"focus":"anchor",{key:i,offset:a,type:o}=n[t];return e[n[r?"anchor":"focus"].isBefore(n[t])?"selectPrevious":"selectNext"]()[t].set(i,a,o),!1}return!!ta(n)&&(t&&(t.preventDefault(),t.stopPropagation()),o.$clearText(),!0)};for(let e of tm)o.listenersToRemove.add(n.registerCommand(e,u,4));return o.listenersToRemove.add(n.registerCommand(g.VS,e=>{let t=(0,g.vJ)();if(t){if(!ta(t)&&!(0,g.I2)(t))return!1;(0,eA.lW)(n,(0,d.xj)(e,ClipboardEvent)?e:null,(0,eA.xg)(t));let r=u(e);return(0,g.I2)(t)?(t.removeText(),!0):r}return!1},4)),o.listenersToRemove.add(n.registerCommand(g.mB,t=>{let n=(0,g.vJ)();if(!tk(n,e))return!1;if(ta(n))return o.$formatCells(t),!0;if((0,g.I2)(n)){let e=(0,d.Bt)(n.anchor.getNode(),e=>eX(e));eX(e)}return!1},4)),o.listenersToRemove.add(n.registerCommand(g.fU,t=>{let n=(0,g.vJ)();if(!ta(n)||!tk(n,e))return!1;let r=n.anchor.getNode(),i=n.focus.getNode();if(!eX(r)||!eX(i))return!1;let[a,o,l]=e8(e,r,i),s=Math.max(o.startRow+o.cell.__rowSpan-1,l.startRow+l.cell.__rowSpan-1),u=Math.max(o.startColumn+o.cell.__colSpan-1,l.startColumn+l.cell.__colSpan-1),c=Math.min(o.startRow,l.startRow),d=Math.min(o.startColumn,l.startColumn),p=new Set;for(let e=c;e<=s;e++)for(let n=d;n<=u;n++){let r=a[e][n].cell;if(p.has(r))continue;p.add(r),r.setFormat(t);let i=r.getChildren();for(let e=0;e<i.length;e++){let n=i[e];(0,g.ff)(n)&&!n.isInline()&&n.setFormat(t)}}return!0},4)),o.listenersToRemove.add(n.registerCommand(g.bM,t=>{let r=(0,g.vJ)();if(!tk(r,e))return!1;if(ta(r))return o.$clearHighlight(),!1;if((0,g.I2)(r)){let i=(0,d.Bt)(r.anchor.getNode(),e=>eX(e));if(!eX(i))return!1;if("string"==typeof t){let i=tF(n,r,e);if(i)return tI(i,e,[(0,g.sT)(t)]),!0}}return!1},4)),r&&o.listenersToRemove.add(n.registerCommand(g.OX,t=>{let n=(0,g.vJ)();if(!(0,g.I2)(n)||!n.isCollapsed()||!tk(n,e))return!1;let r=tN(n.anchor.getNode());return!(null===r||!e.is(tL(r)))&&(tA(t),function(e,t){let n="next"===t?"getNextSibling":"getPreviousSibling",r="next"===t?"getFirstChild":"getLastChild",i=e[n]();if((0,g.ff)(i))return i.selectEnd();let a=(0,d.Bt)(e,e7);null===a&&eQ(247);for(let e=a[n]();e7(e);e=e[n]()){let t=e[r]();if((0,g.ff)(t))return t.selectEnd()}let o=(0,d.Bt)(a,tH);null===o&&eQ(248),"next"===t?o.selectNext():o.selectPrevious()}(r,t.shiftKey?"previous":"next"),!0)},4)),o.listenersToRemove.add(n.registerCommand(g.$7,t=>e.isSelected(),3)),o.listenersToRemove.add(n.registerCommand(g.oq,e=>{let{nodes:t,selection:n}=e,r=n.getStartEndPoints(),i=ta(n),a=(0,g.I2)(n)&&null!==(0,d.Bt)(n.anchor.getNode(),e=>eX(e))&&null!==(0,d.Bt)(n.focus.getNode(),e=>eX(e))||i;if(1!==t.length||!tH(t[0])||!a||null===r)return!1;let[o]=r,l=t[0],s=l.getChildren(),u=l.getFirstChildOrThrow().getChildrenSize(),c=l.getChildrenSize(),p=(0,d.Bt)(o.getNode(),e=>eX(e)),h=p&&(0,d.Bt)(p,e=>e7(e)),m=h&&(0,d.Bt)(h,e=>tH(e));if(!eX(p)||!e7(h)||!tH(m))return!1;let f=h.getIndexWithinParent(),b=Math.min(m.getChildrenSize()-1,f+c-1),v=p.getIndexWithinParent(),C=Math.min(h.getChildrenSize()-1,v+u-1),y=Math.min(v,C),x=Math.min(f,b),w=Math.max(v,C),_=Math.max(f,b),k=m.getChildren(),E=0;for(let e=x;e<=_;e++){let t=k[e];if(!e7(t))return!1;let n=s[E];if(!e7(n))return!1;let r=t.getChildren(),i=n.getChildren(),a=0;for(let e=y;e<=w;e++){let t=r[e];if(!eX(t))return!1;let n=i[a];if(!eX(n))return!1;let o=t.getChildren();
15n.getChildren().forEach(e=>{(0,g.kF)(e)&&(0,g.lJ)().append(e),t.append(e)}),o.forEach(e=>e.remove()),a++}E++}return!0},4)),o.listenersToRemove.add(n.registerCommand(g.Mv,()=>{let t=(0,g.vJ)(),r=(0,g.S1)(),i=o.getAndClearNextFocus();if(null!==i){let{focusCell:n}=i;if(ta(t)&&t.tableKey===o.tableNodeKey)return(n.x!==o.focusX||n.y!==o.focusY)&&(o.$setFocusCellForSelection(n),!0);if(n!==o.anchorCell&&tk(t,e))return o.$setFocusCellForSelection(n),!0}if(o.getAndClearShouldCheckSelection()&&(0,g.I2)(r)&&(0,g.I2)(t)&&t.isCollapsed()){let n=t.anchor.getNode(),r=e.getFirstChild(),i=tN(n);if(null!==i&&e7(r)){let t=r.getFirstChild();if(eX(t)&&e.is((0,d.Bt)(i,n=>n.is(e)||n.is(t))))return t.selectStart(),!0}}if((0,g.I2)(t)){let{anchor:r,focus:i}=t,a=r.getNode(),l=i.getNode(),s=tN(a),u=tN(l),c=!(!s||!e.is(tL(s))),d=!(!u||!e.is(tL(u))),p=t.isBackward();if(c!==d){let r=t.clone();if(d){let[t]=e8(e,u,u),n=t[0][0].cell,i=t[t.length-1].at(-1).cell;r.focus.set(p?n.getKey():i.getKey(),p?n.getChildrenSize():i.getChildrenSize(),"element")}else if(c){let[t]=e8(e,s,s),n=t[0][0].cell,i=t[t.length-1].at(-1).cell;r.anchor.set(p?i.getKey():n.getKey(),p?i.getChildrenSize():0,"element")}(0,g.n1)(r),ty(n,o)}else c&&d&&(s.is(u)||(o.$setAnchorCellForSelection(tP(o,s)),o.$setFocusCellForSelection(tP(o,u),!0)))}else if(t&&ta(t)&&t.is(r)&&t.tableKey===e.getKey()){let r=(0,g.pe)(a);if(r&&r.anchorNode&&r.focusNode){let i=(0,g.xL)(r.focusNode),a=i&&!e.isParentOf(i),o=(0,g.xL)(r.anchorNode),l=o&&e.isParentOf(o);if(a&&l&&r.rangeCount>0){let i=(0,g.OB)(r,n);i&&(i.anchor.set(e.getKey(),t.isBackward()?e.getChildrenSize():0,"element"),r.removeAllRanges(),(0,g.n1)(i))}}}return t&&!t.is(r)&&(ta(t)||ta(r))&&o.tableSelection&&!o.tableSelection.is(r)?ta(t)&&t.tableKey===o.tableNodeKey?o.$updateTableTableSelection(t):!ta(t)&&ta(r)&&r.tableKey===o.tableNodeKey&&o.$updateTableTableSelection(null):o.hasHijackedSelectionStyles&&!e.isSelected()?(o.$enableHighlightStyle(),tC(o.table,e=>{let t=e.elem;e.highlighted=!1,tT(n,e),t.getAttribute("style")||t.removeAttribute("style")})):!o.hasHijackedSelectionStyles&&e.isSelected()&&ty(n,o),!1},4)),o.listenersToRemove.add(n.registerCommand(g.XK,()=>{let t=(0,g.vJ)();if(!(0,g.I2)(t)||!t.isCollapsed()||!tk(t,e))return!1;let r=tF(n,t,e);return!!r&&(tI(r,e),!0)},4)),o}(t,o,i,n);e.set(r,[l,o])},r=i.registerMutationListener(tB,n=>{i.getEditorState().read(()=>{for(let[r,i]of n){let n=e.get(r);if("created"===i||"updated"===i){let{tableNode:i,tableElement:a}=tl(r);void 0===n?t(i,r,a):a!==n[1]&&(n[0].removeListeners(),e.delete(r),t(i,r,a))}else"destroyed"===i&&void 0!==n&&(n[0].removeListeners(),e.delete(r))}},{editor:i})},{skipInitialization:!1});return()=>{for(let[,[t]]of(r(),e))t.removeListeners()}},[i,n]),(0,Y.useEffect)(()=>{if(!e)return i.registerNodeTransform(eq,e=>{if(e.getColSpan()>1||e.getRowSpan()>1){let[,,t]=te(e),[n]=e8(t,e,e),r=n.length,i=n[0].length,a=t.getFirstChild();e7(a)||tz(175);let o=[];for(let e=0;e<r;e++){0!==e&&(e7(a=a.getNextSibling())||tz(175));let t=null;for(let r=0;r<i;r++){let i=n[e][r],l=i.cell;if(i.startRow===e&&i.startColumn===r)t=l,o.push(l);else if(l.getColSpan()>1||l.getRowSpan()>1){eX(l)||tz(176);let e=eG(l.__headerState);null!==t?t.insertAfter(e):(0,d.K2)(a,e)}}}for(let e of o)e.setColSpan(1),e.setRowSpan(1)}})},[i,e]),(0,Y.useEffect)(()=>{if(!t)return i.registerNodeTransform(eq,e=>{null!==e.getBackgroundColor()&&e.setBackgroundColor(null)})},[i,t,e]),null}class tK extends g.Kp{__uuid;static clone(e){return new tK(e.__uuid,e.__key)}static getType(){return"autocomplete"}static importJSON(e){return new tK(e.uuid)}exportJSON(){return{...super.exportJSON(),type:"autocomplete",uuid:this.__uuid,version:1}}constructor(e,t){super(t),this.__uuid=e}updateDOM(e,t,n){return!1}createDOM(e){return document.createElement("span")}decorate(e,t){return this.__uuid!==tW?null:(0,c.jsx)(tJ,{className:t.theme.autocomplete})}}function tJ({className:e}){let[t]=ep(),n=window.navigator.userAgentData;return(0,c.jsxs)("span",{className:e,spellCheck:"false",children:[t," ",(void 0!==n?n.mobile:window.innerWidth<=800&&window.innerHeight<=600)?"(SWIPE â®)":"(TAB)"]})}let tZ=new WeakMap;function tq(e){let t=e.changedTouches[0];return void 0===t?null:[t.clientX,t.clientY]}let tW=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);function tG(e){let t;if(!(0,g.I2)(e)||!e.isCollapsed())return[!1,""];let n=e.getNodes()[0],r=e.anchor;if(!(0,g.kF)(n)||!n.isSimpleText()||!(0,eI.Nx)(r))return[!1,""];let i=[],a=n.getTextContent(),o=n.getTextContentSize();for(;o--&&o>=0&&" "!==(t=a[o]);)i.push(t);return 0===i.length?[!1,""]:[!0,i.reverse().join("")]}class tX{DATABASE=tY;LATENCY=200;query=e=>{let t=!1;return{dismiss:()=>{t=!0},promise:new Promise((n,r)=>{setTimeout(()=>{if(t)return r("Dismissed");let i=e.length;if(""===e||i<4)return n(null);let a=e.charCodeAt(0),o=a>=65&&a<=90,l=o?String.fromCharCode(a+32)+e.substring(1):e,s=this.DATABASE.find(e=>e.startsWith(l)??null);if(void 0===s)return n(null);let u=(o?String.fromCharCode(s.charCodeAt(0)-32)+s.substring(1):s).substring(i);return""===u?n(null):n(u)},this.LATENCY)})}}}let tY=["information","available","copyright","university","management","international","development","education","community","technology","following","resources","including","directory","government","department","description","insurance","different","categories","conditions","accessories","september","questions","application","financial","equipment","performance","experience","important","activities","additional","something","professional","committee","washington","california","reference","companies","computers","president","australia","discu
15ssion","entertainment","agreement","marketing","association","collection","solutions","electronics","technical","microsoft","conference","environment","statement","downloads","applications","requirements","individual","subscribe","everything","production","commercial","advertising","treatment","newsletter","knowledge","currently","construction","registered","protection","engineering","published","corporate","customers","materials","countries","standards","political","advertise","environmental","availability","employment","commission","administration","institute","sponsored","electronic","condition","effective","organization","selection","corporation","executive","necessary","according","particular","facilities","opportunities","appropriate","statistics","investment","christmas","registration","furniture","wednesday","structure","distribution","industrial","potential","responsible","communications","associated","foundation","documents","communication","independent","operating","developed","telephone","population","navigation","operations","therefore","christian","understand","publications","worldwide","connection","publisher","introduction","properties","accommodation","excellent","opportunity","assessment","especially","interface","operation","restaurants","beautiful","locations","significant","technologies","manufacturer","providing","authority","considered","programme","enterprise","educational","employees","alternative","processing","responsibility","resolution","publication","relations","photography","components","assistance","completed","organizations","otherwise","transportation","disclaimer","membership","recommended","background","character","maintenance","functions","trademarks","phentermine","submitted","television","interested","throughout","established","programming","regarding","instructions","increased","understanding","beginning","associates","instruments","businesses","specified","restaurant","procedures","relationship","traditional","sometimes","themselves","transport","interesting","evaluation","implementation","galleries","references","presented","literature","respective","definition","secretary","networking","australian","magazines","francisco","individuals","guidelines","installation","described","attention","difference","regulations","certificate","directions","documentation","automotive","successful","communities","situation","publishing","emergency","developing","determine","temperature","announcements","historical","ringtones","difficult","scientific","satellite","particularly","functional","monitoring","architecture","recommend","dictionary","accounting","manufacturing","professor","generally","continued","techniques","permission","generation","component","guarantee","processes","interests","paperback","classifieds","supported","competition","providers","characters","thousands","apartments","generated","administrative","practices","reporting","essential","affiliate","immediately","designated","integrated","configuration","comprehensive","universal","presentation","languages","compliance","improvement","pennsylvania","challenge","acceptance","strategies","affiliates","multimedia","certified","computing","interactive","procedure","leadership","religious","breakfast","developer","approximately","recommendations","comparison","automatically","minnesota","adventure","institutions","assistant","advertisement","headlines","yesterday","determined","wholesale","extension","statements","completely","electrical","applicable","manufacturers","classical","dedicated","direction","basketball","wisconsin","personnel","identified","professionals","advantage","newsletters","estimated","anonymous","miscellaneous","integration","interview","framework","installed","massachusetts","associate","frequently","discussions","laboratory","destination","intelligence","specifications","tripadvisor","residential","decisions","industries","partnership","editorial","expression","provisions","principles","suggestions","replacement","strategic","economics","compatible","apartment","netherlands","consulting","recreation","participants","favorites","translation","estimates","protected","philadelphia","officials","contained","legislation","parameters","relationships","tennessee","representative","frequency","introduced","departments","residents","displayed","performed","administrator","addresses","permanent","agriculture","constitutes","portfolio","practical","delivered","collectibles","infrastru
15cture","exclusive","originally","utilities","philosophy","regulation","reduction","nutrition","recording","secondary","wonderful","announced","prevention","mentioned","automatic","healthcare","maintained","increasing","connected","directors","participation","containing","combination","amendment","guaranteed","libraries","distributed","singapore","enterprises","convention","principal","certification","previously","buildings","household","batteries","positions","subscription","contemporary","panasonic","permalink","signature","provision","certainly","newspaper","liability","trademark","trackback","americans","promotion","conversion","reasonable","broadband","influence","importance","webmaster","prescription","specifically","represent","conservation","louisiana","javascript","marketplace","evolution","certificates","objectives","suggested","concerned","structures","encyclopedia","continuing","interracial","competitive","suppliers","preparation","receiving","accordance","discussed","elizabeth","reservations","playstation","instruction","annotation","differences","establish","expressed","paragraph","mathematics","compensation","conducted","percentage","mississippi","requested","connecticut","personals","immediate","agricultural","supporting","collections","participate","specialist","experienced","investigation","institution","searching","proceedings","transmission","characteristics","experiences","extremely","verzeichnis","contracts","concerning","developers","equivalent","chemistry","neighborhood","variables","continues","curriculum","psychology","responses","circumstances","identification","appliances","elementary","unlimited","printable","enforcement","hardcover","celebrity","chocolate","hampshire","bluetooth","controlled","requirement","authorities","representatives","pregnancy","biography","attractions","transactions","authorized","retirement","financing","efficiency","efficient","commitment","specialty","interviews","qualified","discovery","classified","confidence","lifestyle","consistent","clearance","connections","inventory","converter","organisation","objective","indicated","securities","volunteer","democratic","switzerland","parameter","processor","dimensions","contribute","challenges","recognition","submission","encourage","regulatory","inspection","consumers","territory","transaction","manchester","contributions","continuous","resulting","cambridge","initiative","execution","disability","increases","contractor","examination","indicates","committed","extensive","affordable","candidate","databases","outstanding","perspective","messenger","tournament","consideration","discounts","catalogue","publishers","caribbean","reservation","remaining","depending","expansion","purchased","performing","collected","absolutely","featuring","implement","scheduled","calculator","significantly","temporary","sufficient","awareness","vancouver","contribution","measurement","constitution","packaging","consultation","northwest","classroom","democracy","wallpaper","merchandise","resistance","baltimore","candidates","charlotte","biological","transition","preferences","instrument","classification","physician","hollywood","wikipedia","spiritual","photographs","relatively","satisfaction","represents","pittsburgh","preferred","intellectual","comfortable","interaction","listening","effectively","experimental","revolution","consolidation","landscape","dependent","mechanical","consultants","applicant","cooperation","acquisition","implemented","directories","recognized","notification","licensing","textbooks","diversity","cleveland","investments","accessibility","sensitive","templates","completion","universities","technique","contractors","subscriptions","calculate","alexander","broadcast","converted","anniversary","improvements","specification","accessible","accessory","typically","representation","arrangements","conferences","uniprotkb","consumption","birmingham","afternoon","consultant","controller","ownership","committees","legislative","researchers","unsubscribe","molecular","residence","attorneys","operators","sustainable","philippines","statistical","innovation","employers","definitions","elections","stainless","newspapers","hospitals","exception","successfully","indonesia","primarily","capabilities","recommendation","recruitment","organized","improving","expensive","organisations","explained","programmes","expertise","mechanism","jewellery","eventually","agreements","considering","innovative","conclusion","disorders","collaboration","detection","formation","engineers","proposals","moderator","tutorials","settlement","collectables","fantastic","governments","purchasing","appointed","operational","corresponding","descriptions","determination","animation","productions","telecommunications","instructor","approaches","highlights","de
15signers","melbourne","scientists","blackjack","argentina","possibility","commissioner","dangerous","reliability","unfortunately","respectively","volunteers","attachment","appointment","workshops","hurricane","represented","mortgages","responsibilities","carefully","productivity","investors","underground","diagnosis","principle","vacations","calculated","appearance","incorporated","notebooks","algorithm","valentine","involving","investing","christopher","admission","terrorism","parliament","situations","allocated","corrections","structural","municipal","describes","disabilities","substance","prohibited","addressed","simulation","initiatives","concentration","interpretation","bankruptcy","optimization","substances","discovered","restrictions","participating","exhibition","composition","nationwide","definitely","existence","commentary","limousines","developments","immigration","destinations","necessarily","attribute","apparently","surrounding","mountains","popularity","postposted","coordinator","obviously","fundamental","substantial","progressive","championship","sacramento","impossible","depression","testimonials","memorabilia","cartridge","explanation","cincinnati","subsection","electricity","permitted","workplace","confirmed","wallpapers","infection","eligibility","involvement","placement","observations","vbulletin","subsequent","motorcycle","disclosure","establishment","presentations","undergraduate","occupation","donations","associations","citysearch","radiation","seriously","elsewhere","pollution","conservative","guestbook","effectiveness","demonstrate","atmosphere","experiment","purchases","federation","assignment","chemicals","everybody","nashville","counseling","acceptable","satisfied","measurements","milwaukee","medication","warehouse","shareware","violation","configure","stability","southwest","institutional","expectations","independence","metabolism","personally","excellence","somewhere","attributes","recognize","screening","thumbnail","forgotten","intelligent","edinburgh","obligation","regardless","restricted","republican","merchants","attendance","arguments","amsterdam","adventures","announcement","appreciate","regularly","mechanisms","customize","tradition","indicators","emissions","physicians","complaint","experiments","afghanistan","scholarship","governance","supplements","camcorder","implementing","ourselves","conversation","capability","producing","precision","contributed","reproduction","ingredients","franchise","complaints","promotions","rehabilitation","maintaining","environments","reception","correctly","consequences","geography","appearing","integrity","discrimination","processed","implications","functionality","intermediate","emotional","platforms","overnight","geographic","preliminary","districts","introduce","promotional","chevrolet","specialists","generator","suspension","correction","authentication","communicate","supplement","showtimes","promoting","machinery","bandwidth","probability","dimension","schedules","admissions","quarterly","illustrated","continental","alternate","achievement","limitations","automated","passenger","convenient","orientation","childhood","flexibility","jurisdiction","displaying","encouraged","cartridges","declaration","automation","advantages","preparing","recipient","extensions","athletics","southeast","alternatives","determining","personalized","conditioning","partnerships","destruction","increasingly","migration","basically","conventional","applicants","occupational","adjustment","treatments","camcorders","difficulty","collective","coalition","enrollment","producers","collector","interfaces","advertisers","representing","observation","restoration","convenience","returning","opposition","container","defendant","confirmation","supervisor","peripherals","bestsellers","departure","minneapolis","interactions","intervention","attraction","modification","customized","understood","assurance","happening","amendments","metropolitan","compilation","verification","attractive","recordings","jefferson","gardening","obligations","orchestra","polyphonic","outsourcing","adjustable","allocation","discipline","demonstrated","identifying","alphabetical","dispatched","installing","voluntary","photographer","messaging","constructed","additions","requiring","engagement","refinance","calendars","arrangement","conclusions","bibliography","compatibility","furthermore","cooperative","measuring","jacksonville","headquarters","transfers","transformation","attachments","administrators","personality","facilitate","subscriber","priorities","bookstore","parenting","incredible","commonwealth","pharmaceutical","manhattan","workforce","organizational","portuguese","everywhere","discharge","halloween","hazardous","methodology","housewares","reputation","resistant","democrats","re
15cycling","qualifications","slideshow","variation","transferred","photograph","distributor","underlying","wrestling","photoshop","gathering","projection","mathematical","specialized","diagnostic","indianapolis","corporations","criticism","automobile","confidential","statutory","accommodations","northeast","downloaded","paintings","injection","yorkshire","populations","protective","initially","indicator","eliminate","sunglasses","preference","threshold","venezuela","exploration","sequences","astronomy","translate","announces","compression","establishing","constitutional","perfectly","instantly","litigation","submissions","broadcasting","horizontal","terrorist","informational","ecommerce","suffering","prospective","ultimately","artificial","spectacular","coordination","connector","affiliated","activation","naturally","subscribers","mitsubishi","underwear","potentially","constraints","inclusive","dimensional","considerable","selecting","processors","pantyhose","difficulties","complexity","constantly","barcelona","presidential","documentary","territories","palestinian","legislature","hospital
15ity","procurement","theoretical","exercises","surveillance","protocols","highlight","substitute","inclusion","hopefully","brilliant","evaluated","assignments","termination","households","authentic","montgomery","architectural","louisville","macintosh","movements","amenities","virtually","authorization","projector","comparative","psychological","surprised","genealogy","expenditure","liverpool","connectivity","algorithms","similarly","collaborative","excluding","commander","suggestion","spotlight","investigate","connecting","logistics","proportion","significance","symposium","essentials","protecting","transmitted","screenshots","intensive","switching","correspondence","supervision","expenditures","separation","testimony","celebrities","mandatory","boundaries","syndication","celebration","filtering","luxembourg","offensive","deployment","colleagues","separated","directive","governing","retailers","occasionally","attending","recruiting","instructional","traveling","permissions","biotechnology","prescribed","catherine","reproduced","calculation","consolidated","occasions","equations","exceptional","respondents","considerations","queensland","musicians","composite","unavailable","essentially","designing","assessments","brunswick","sensitivity","preservation","streaming","intensity","technological","syndicate","antivirus","addressing","discounted","bangladesh","constitute","concluded","desperate","demonstration","governmental","manufactured","graduation","variations","addiction","springfield","synthesis","undefined","unemployment","enhancement","newcastle","performances","societies","brazilian","identical","petroleum","norwegian","retention","exchanges","soundtrack","wondering","profession","separately","physiology","collecting","participant","scholarships","recreational","dominican","friendship","expanding","provincial","investigations","medications","rochester","advertiser","encryption","downloadable","sophisticated","possession","laboratories","vegetables","thumbnails","stockings","respondent","destroyed","manufacture","wordpress","vulnerability","accountability","celebrate","accredited","appliance","compressed","scheduling","perspectives","mortality","christians","therapeutic","impressive","accordingly","architect","challenging","microwave","accidents","relocation","contributors","violations","temperatures","competitions","discretion","cosmetics","repository","concentrations","christianity","negotiations","realistic","generating","christina","congressional","photographic","modifications","millennium","achieving","fisheries","exceptions","reactions","macromedia","companion","divisions","additionally","fellowship","victorian","copyrights","lithuania","mastercard","chronicles","obtaining","distribute","decorative","enlargement","campaigns","conjunction","instances","indigenous","validation","corruption","incentives","cholesterol","differential","scientist","starsmerchant","arthritis","nevertheless","practitioners","transcript","inflation","compounds","contracting","structured","reasonably","graduates","recommends","controlling","distributors","arlington","particles","extraordinary","indicating","coordinate","exclusively","limitation","widescreen","illustration","construct","inquiries","inspiration","affecting","downloading","aggregate","forecasts","complicated","shopzilla","decorating","expressions","shakespeare","connectors","conflicts","travelers","offerings","incorrect","furnishings","guatemala","perception","renaissance","pathology","ordinance","photographers","infections","configured","festivals","possibilities","contributing","analytical","circulation","assumption","jerusalem","transexuales","invention","technician","executives","enquiries","cognitive","exploring","registrar","supporters","withdrawal","predicted","saskatchewan","cancellation","ministers","veterinary","prostores","relevance","incentive","butterfly","mechanics","numerical","reflection","accompanied","invitation","princeton","spirituality","meanwhile","proprietary","childrens","thumbzilla","porcelain","pichunter","translated","columnists","consensus","delivering","journalism","intention","undertaken","statewide","semiconductor","
15illustrations","happiness","substantially","identifier","calculations","conducting","accomplished","calculators","impression","correlation","fragrance","neighbors","transparent","charleston","champions","selections","projectors","inappropriate","comparing","vocational","pharmacies","introducing","appreciated","albuquerque","distinguished","projected","assumptions","shareholders","developmental","regulated","anticipated","completing","comparable","confusion","copyrighted","warranties","documented","paperbacks","keyboards","vulnerable","reflected","respiratory","notifications","transexual","mainstream","evaluating","subcommittee","maternity","journalists","foundations","volleyball","liabilities","decreased","tolerance","creativity","describing","lightning","quotations","inspector","bookmarks","behavioral","riverside","bathrooms","abilities","initiated","nonprofit","lancaster","suspended","containers","attitudes","simultaneously","integrate","sociology","screenshot","exhibitions","confident","retrieved","officially","consortium","recipients","delicious","traditions","periodically","hungarian","referring","transform","educators","vegetable","humanities","independently","alignment","henderson","britannica","competitors","visibility","consciousness","encounter","resolutions","accessing","attempted","witnesses","administered","strengthen","frederick","aggressive","advertisements","sublimedirectory","disturbed","determines","sculpture","motivation","pharmacology","passengers","quantities","petersburg","consistently","powerpoint","obituaries","punishment","appreciation","subsequently","providence","restriction","incorporate","backgrounds","treasurer","lightweight","transcription","complications","scripting","remembered","synthetic","testament","specifics","partially","wilderness","generations","tournaments","sponsorship","headphones","proceeding","volkswagen","uncertainty","breakdown","reconstruction","subsidiary","strengths","encouraging","furnished","terrorists","comparisons","beneficial","distributions","viewpicture","threatened","republicans","discusses","responded","abstracts","prediction","pharmaceuticals","thesaurus","individually","battlefield","literally","ecological","appraisal","consisting","submitting","citations","geographical","mozambique","disclaimers","championships","sheffield","finishing","wellington","prospects","bulgarian","aboriginal","remarkable","preventing","productive","boulevard","compliant","penalties","imagination","refurbished","activated","conferencing","armstrong","politicians","trackbacks","accommodate","christine","accepting","precipitation","isolation","sustained","approximate","programmer","greetings","inherited","incomplete","chronicle","legitimate","biographies","investigator","plaintiff","prisoners","mediterranean","nightlife","architects","entrepreneur","freelance","excessive","screensaver","valuation","unexpected","cigarette","characteristic","metallica","consequently","appointments","narrative","academics","quantitative","screensavers","subdivision","distinction","livestock","exemption","sustainability","formatting","nutritional","nicaragua","affiliation","relatives","satisfactory","revolutionary","bracelets","telephony","breathing","thickness","adjustments","graphical","discussing","aerospace","meaningful","maintains","shortcuts","voyeurweb","extending","specifies","accreditation","blackberry","meditation","microphone","macedonia","combining","instrumental","organizing","moderators","kazakhstan","standings","partition","invisible","translations","commodity","kilometers","thanksgiving","guarantees","indication","congratulations","cigarettes","controllers","consultancy","conventions","coordinates","responding","physically","stakeholders","hydrocodone","consecutive","attempting","representations","competing","peninsula","accurately","considers","ministries","vacancies","parliamentary","acknowledge","thoroughly","nottingham","identifies","questionnaire","qualification","modelling","miniature","interstate","consequence","systematic","perceived","madagascar","presenting","troubleshooting","uzbekistan","centuries","magnitude","ric
15hardson","fragrances","vocabulary","earthquake","fundraising","geological","assessing","introduces","webmasters","computational","acdbentity","participated","handhelds","answering","impressed","conspiracy","organizer","combinations","preceding","cumulative","amplifier","arbitrary","prominent","lexington","contacted","recorders","occasional","innovations","postcards","reviewing","explicitly","transsexual","citizenship","informative","girlfriend","bloomberg","hierarchy","influenced","abandoned","complement","mauritius","checklist","requesting","lauderdale","scenarios","extraction","elevation","utilization","beverages","calibration","efficiently","entertaining","prerequisite","hypothesis","medicines","regression","enhancements","renewable","intersection","passwords","consistency","collectors","azerbaijan","astrology","occurring","supplemental","travelling","induction","precisely","spreading","provinces","widespread","incidence","incidents","enhancing","interference","palestine","listprice","atmospheric","knowledgestorm","referenced","publicity","proposition","allowance","designation","duplicate","criterion","civilization","vietnamese","tremendous","corrected","encountered","internationally","surrounded","creatures","commented","accomplish","vegetarian","newfoundland","investigated","ambassador","stephanie","contacting","vegetation","findarticles","specially","infectious","continuity","phenomenon","conscious","referrals","differently","integrating","revisions","reasoning","charitable","annotated","convinced","burlington","replacing","researcher","watershed","occupations","acknowledged","equilibrium","characterized","privilege","qualifying","estimation","pediatric","techrepublic","institutes","brochures","traveller","appropriations","suspected","benchmark","beginners","instructors","highlighted","stationery","unauthorized","competent","contributor","demonstrates","gradually","desirable","journalist","afterwards","religions","explosion","signatures","disciplines","daughters","conversations","simplified","motherboard","bibliographic","champagne","deviation","superintendent","housewives","influences","inspections","irrigation","hydraulic","robertson","penetration","conviction","omissions","retrieval","qualities","prototype","importantly","apparatus","explaining","nomination","empirical","dependence","sexuality","polyester","commitments","suggesting","remainder","privileges","televisions","specializing","commodities","motorcycles","concentrate","reproductive","molecules","refrigerator","intervals","sentences","exclusion","workstation","holocaust","receivers","disposition","navigator","investigators","marijuana","cathedral","fairfield","fascinating","landscapes","lafayette","computation","cardiovascular","salvation","predictions","accompanying","selective","arbitration","configuring","editorials","sacrifice","removable","convergence","gibraltar","anthropology","malpractice","reporters","necessity","rendering","hepatitis","nationally","waterproof","specialties","humanitarian","invitations","functioning","economies","alexandria","bacterial","undertake","continuously","achievements","convertible","secretariat","paragraphs","adolescent","nominations","cancelled","introductory","reservoir","occurrence","worcester","demographic","disciplinary","respected","portraits","interpreted","evaluations","elimination","hypothetical","immigrants","complimentary","helicopter","performer","commissions","powerseller","graduated","surprising","unnecessary","dramatically","yugoslavia","characterization","likelihood","fundamentals","contamination","endangered","compromise","expiration","namespace","peripheral","negotiation","opponents","nominated","confidentiality","electoral","changelog","alternatively","greensboro","controversial","recovered","upgrading","frontpage","demanding","defensive","forbidden","programmers","monitored","installations","deutschland","practitioner","motivated","smithsonian","examining","revelation","delegation","dictionaries","greenhouse","transparency","currencies","survivors","positioning","descending","temporarily","frequencies","reflections","municipality","detective","experiencing","fireplace","endorsement","psychiatry","persistent","summaries","looksmart","magnificent","colleague","adaptation","paintball","enclosure","supervisors","westminster","distances","absorption","treasures","transcripts","disappointed","continually","communist","collectible","entrepreneurs","creations","acquisitions","biodiversity","excitement","presently","mysterious","librarian","subsidiaries","stockholm","indonesian","therapist","promising","relaxation","thereafter","commissioners","forwarding","nightmare","reductions","southampton","organisms","telescope","portsmouth","advancement","harassment","generators","generates","replication","inexpensive","receptors","interventions","huntington","internship","aluminium","snowboard","beastality","evanesce
15nce","coordinated","shipments","antarctica","chancellor","controversy","legendary","beautifully","antibodies","examinations","immunology","departmental","terminology","gentleman","reproduce","convicted","roommates","threatening","spokesman","activists","frankfurt","encourages","assembled","restructuring","terminals","simulations","sufficiently","conditional","crossword","conceptual","liechtenstein","translator","automobiles","continent","longitude","challenged","telecharger","insertion","instrumentation","constraint","groundwater","strengthening","insulation","infringement","subjective","swaziland","varieties","mediawiki","configurations"];function tQ(){let[e]=(0,e_.DF)(),[,t]=ep(),n=(0,Y.useCallback)(e=>new tX().query(e),[]);return(0,Y.useEffect)(()=>{var r;let i=null,a=null,o=null,l=null;function s(){let e=null!==i?(0,g.ns)(i):null;null!==e&&e.isAttached()&&(e.remove(),i=null),null!==l&&(l.dismiss(),l=null),a=null,o=null,t(null)}function u(){if(null===o||null===i)return!1;let e=(0,g.ns)(i);if(null===e)return!1;let t=(0,g.sT)(o);return e.replace(t),t.selectNext(),s(),!0}function c(e){return!!u()&&(e.preventDefault(),!0)}let p=e.getRootElement();return(0,d.Sd)(e.registerNodeTransform(tK,function(e){let t=e.getKey();e.__uuid===tW&&t!==i&&s()}),e.registerUpdateListener(function(){e.update(()=>{let[r,u]=tG((0,g.vJ)());r?u!==a&&(s(),(l=n(u)).promise.then(n=>{var r;null!==l&&(r=l,l===r&&null!==n&&e.update(()=>{let e=(0,g.vJ)(),[r,l]=tG(e);if(!r||l!==a||!(0,g.I2)(e))return;let s=e.clone(),u=new tK(tW);i=u.getKey(),e.insertNodes([u]),(0,g.n1)(s),o=n,t(n)},{tag:"history-merge"}))}).catch(e=>{}),a=u):s()})}),e.registerCommand(g.OX,c,1),e.registerCommand(g.JM,c,1),...null!==p?[(r=function(t,n){e.update(()=>{u()&&n.preventDefault()})},function(e,t){let n=tZ.get(e);if(void 0===n){let t=new Set,r=e=>{void 0!==n&&(n.start=tq(e))},i=e=>{if(void 0===n)return;let r=n.start;if(null===r)return;let i=tq(e);for(let n of t)null!==i&&n([i[0]-r[0],i[1]-r[1]],e)};e.addEventListener("touchstart",r),e.addEventListener("touchend",i),n={handleTouchend:i,handleTouchstart:r,listeners:t,start:null},tZ.set(e,n)}return n.listeners.add(t),()=>(function(e,t){let n=tZ.get(e);if(void 0===n)return;let r=n.listeners;r.delete(t),0===r.size&&(tZ.delete(e),e.removeEventListener("touchstart",n.handleTouchstart),e.removeEventListener("touchend",n.handleTouchend))})(e,t)}(p,(e,t)=>{let[n,i]=e;n>0&&n>Math.abs(i)&&r(n,t)}))]:[],function(){e.update(()=>{s()})})},[e,n,t]),null}var t1=(o=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}).__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o;function t0(e,t=e=>e){return n=>{let r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}function t5(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}let t4=/[.,;\s]/;function t2(e){return t4.test(e)}function t3(e){return t2(e[e.length-1])}function t7(e){let t=e.getPreviousSibling();return(0,g.ff)(t)&&(t=t.getLastDescendant()),null===t||(0,g.wH)(t)||(0,g.kF)(t)&&t3(t.getTextContent())}function t6(e){let t=e.getNextSibling();return(0,g.ff)(t)&&(t=t.getFirstDescendant()),null===t||(0,g.wH)(t)||(0,g.kF)(t)&&t2(t.getTextContent()[0])}function t8(e,t,n){let r=e.getChildren(),i=r.length;for(let t=0;t<i;t++){let i=r[t];if(!(0,g.kF)(i)||!i.isSimpleText())return t9(e),void n(null,e.getURL())}let a=e.getTextContent(),o=t5(a,t);if(null===o||o.text!==a||!t7(e)||!t6(e))return t9(e),void n(null,e.getURL());let l=e.getURL();if(l!==o.url&&(e.setURL(o.url),n(o.url,l)),o.attributes){let t=e.getRel();t!==o.attributes.rel&&(e.setRel(o.attributes.rel||null),n(o.attributes.rel||null,t));let r=e.getTarget();r!==o.attributes.target&&(e.setTarget(o.attributes.target||null),n(o.attributes.target||null,r))}}function t9(e){let t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map(e=>e.getLatest())}function ne({matchers:e,onChange:t}){let[n]=(0,e_.DF)();return(0,Y.useEffect)(()=>{n.hasNodes([v])||t1(77);let r=(e,n)=>{t&&t(e,n)};return(0,d.Sd)(n.registerNodeTransform(g.Ey,t=>{let n=t.getParentOrThrow(),i=t.getPreviousSibling();if(y(n)&&!n.getIsUnlinked())t8(n,e,r);else if(!b(n)){var a,o,l;let n,s,u;t.isSimpleText()&&(t2(t.getTextContent()[0])||!y(i))&&function(e,t,n){let r=[...e],i=r.map(e=>e.getTextContent()).join(""),a,o=i,l=0;for(;(a=t5(o,t))&&null!==a;){var s,u,c;let e=a.index,t=e+a.length;if(s=l+e,u=l+t,c=r,(s>0?t2(i[s-1]):t7(c[0]))&&(u<i.length?t2(i[u]):t6(c[c.length-1]))){let[i,,o,s]=function(e,t,n){let r=[],i=[],a=[],o=0,l=0,s=[...e];for(;s.length>0;){let e=s[0],u=e.getTextContent().length,c=l;l+u<=t?(r.push(e),o+=u):c>=n?a.push(e):i.push(e),l+=u,s.shift()}return[o,r,i,a]}(r,l+e,l+t),u=function(e,t,n,r){let i=C(r.url,r.attributes);if(1===e.length){let a,o=e[0];0===t?[a,o]=o.splitText(n):[,a,o]=o.splitText(t,n);let l=(0,g.sT)(r.text);return l.setFormat(a.getFormat()),l.setDetail(a.getDetail()),l.setStyle(a.getStyle()),i.append(l),a.replace(i),o}if(e.length>1){let r,a=e[0],o,l=a.getTextContent().length;0===t?o=a:[,o]=a.splitText(t);let s=[];for(let t=1;t<e.length;t++){let i=e[t],a=i.getTextContent().length,o=l;if(o<n)if(l+a<=n)s.push(i);else{let[e,t]=i.splitText(n-o);s.push(e),r=t}l+=a}let u=(0,g.vJ)(),c=u?u.getNodes().find(g.kF):void 0,d=(0,g.sT)(o.getTextContent());return d.setFormat(o.getFormat()),d.setDetail(o.getDetail()),d.setStyle(o.getStyle()),i.append(d,...s),c&&c===o&&((0,g.I2)(u)?d.select(u.anchor.offset,u.focus.offset):(0,g.RT)(u)&&d.select(0,d.getTextContent().length)),o.replace(i),r}}(o,l+e-i,l+t-i,a);r=u?[u,...s]:s,n(a.url,null),l=0}else l+=t;o=o.substring(t)}}(function(e){let t=[e],n=e.getNextSibling();for(;null!==n&&(0,g.kF)(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(t),e,r);a=t,o=e,l=r,n=a.getPreviousSibling(),s=a.getNextSibling(),u=a.getTextContent(),!y(n)||n.getIsUnlinked()||t2(u[0])&&!(n.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(u):/^\.[a-zA-Z0-9]{1,}/.test(u))||(n.append(a),t8(n,o,l),l(null,n.getURL())),!y(s)||s.getIsUnlinked()||t3(u)||(t9(s),t8(s,o,l),l(null,s.getURL()))}}),n.registerCommand(x,e=>{let t=(0,g.vJ)();
15return null===e&&!!(0,g.I2)(t)&&(t.extract().forEach(e=>{let t=e.getParent();if(y(t))return t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty(),!0}),!1)},1))},[n,e,t]),null}let nt=[t0(/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,e=>{let t=e.replace(/[-.+():%\s]+$/,"").replace(/\.$/,"");return t.startsWith("http")?t:`https://${t}`}),t0(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)];function nn(){return(0,c.jsx)(ne,{matchers:nt})}n(22554),n(89866),n(36525),n(74798),n(78443),n(34477),n(90871),n(56850),n(27548),n(311),n(52892),n(23892),n(36647),n(38733),n(85790),n(89373),"u">typeof globalThis||("u">typeof window?window:"u">typeof global?global:"u">typeof self&&self);var nr=(l=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}).__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l;let ni=globalThis.Prism||window.Prism,na=e=>{try{return!!e&&ni.languages.hasOwnProperty(e)}catch(e){return!1}},no="data-language",nl="data-highlight-language";class ns extends g.fG{static getType(){return"code"}static clone(e){return new ns(e.__language,e.__key)}constructor(e,t){super(t),this.__language=e,this.__isSyntaxHighlightSupported=na(e)}createDOM(e){let t=document.createElement("code");(0,d.ZB)(t,e.theme.code),t.setAttribute("spellcheck","false");let n=this.getLanguage();return n&&(t.setAttribute(no,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(nl,n)),t}updateDOM(e,t,n){let r=this.__language,i=e.__language;return r?r!==i&&(t.setAttribute(no,r),this.__isSyntaxHighlightSupported&&t.setAttribute(nl,r)):i&&(t.removeAttribute(no),e.__isSyntaxHighlightSupported&&t.removeAttribute(nl)),!1}exportDOM(e){let t=document.createElement("pre");(0,d.ZB)(t,e._config.theme.code),t.setAttribute("spellcheck","false");let n=this.getLanguage();return n&&(t.setAttribute(no,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(nl,n)),{element:t}}static importDOM(){return{code:e=>null!=e.textContent&&(/\r?\n/.test(e.textContent)||function e(t,n){for(let r of t.childNodes){if((0,g.sb)(r)&&r.tagName===n)return!0;e(r,n)}return!1}(e,"BR"))?{conversion:nd,priority:1}:null,div:()=>({conversion:ng,priority:1}),pre:()=>({conversion:nd,priority:0}),table:e=>nf(e)?{conversion:np,priority:3}:null,td:e=>{let t=e.closest("table");return e.classList.contains("js-file-line")||t&&nf(t)?{conversion:nh,priority:3}:null},tr:e=>{let t=e.closest("table");return t&&nf(t)?{conversion:nh,priority:3}:null}}}static importJSON(e){let t=nu(e.language);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e,t=!0){let n=this.getChildren(),r=n.length;if(r>=2&&"\n"===n[r-1].getTextContent()&&"\n"===n[r-2].getTextContent()&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r){n[r-1].remove(),n[r-2].remove();let e=(0,g.lJ)();return this.insertAfter(e,t),e}let{anchor:i,focus:a}=e,o=(i.isBefore(a)?i:a).getNode();if((0,g.kF)(o)){let e=n_(o),t=[];for(;;)if((0,g.MK)(e))t.push((0,g.ev)()),e=e.getNextSibling();else{if(!nw(e))break;{let n=0,r=e.getTextContent(),i=e.getTextContentSize();for(;n<i&&" "===r[n];)n++;if(0!==n&&t.push(nx(" ".repeat(n))),n!==i)break;e=e.getNextSibling()}}let n=o.splitText(i.offset)[0],r=+(0!==i.offset),a=n.getIndexWithinParent()+r,l=o.getParentOrThrow(),s=[(0,g.WK)(),...t];l.splice(a,0,s);let u=t[t.length-1];u?u.select():0===i.offset?n.selectPrevious():n.getNextSibling().selectNext(0,0)}if(nc(o)){let{offset:t}=e.anchor;o.splice(t,0,[(0,g.WK)()]),o.select(t+1,t+1)}return null}canIndent(){return!1}collapseAtStart(){let e=(0,g.lJ)();
15return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}setLanguage(e){let t=this.getWritable();t.__language=e,t.__isSyntaxHighlightSupported=na(e)}getLanguage(){return this.getLatest().__language}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}}function nu(e){return(0,g.pT)(new ns(e))}function nc(e){return e instanceof ns}function nd(e){return{node:nu(e.getAttribute(no))}}function ng(e){let t=nm(e);return t||function(e){let t=e.parentElement;for(;null!==t;){if(nm(t))return!0;t=t.parentElement}return!1}(e)?{node:t?nu():null}:{node:null}}function np(){return{node:nu()}}function nh(){return{node:null}}function nm(e){return null!==e.style.fontFamily.match("monospace")}function nf(e){return e.classList.contains("js-file-line-container")}let nb={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",powershell:"PowerShell",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},nv={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};class nC extends g.Ey{constructor(e,t,n){super(e,n),this.__highlightType=t}static getType(){return"code-highlight"}static clone(e){return new nC(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}canHaveFormat(){return!1}createDOM(e){let t=super.createDOM(e),n=ny(e.theme,this.__highlightType);return(0,d.ZB)(t,n),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n),i=ny(n.theme,e.__highlightType),a=ny(n.theme,this.__highlightType);return i!==a&&(i&&(0,d.HE)(t,i),a&&(0,d.ZB)(t,a)),r}static importJSON(e){let t=nx(e.text,e.highlightType);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return nu()}}function ny(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function nx(e,t){return(0,g.pT)(new nC(e,t))}function nw(e){return e instanceof nC}function n_(e){let t=e,n=e;for(;nw(n)||(0,g.MK)(n);)t=n,n=n.getPreviousSibling();return t}function nk(e){let t=e,n=e;for(;nw(n)||(0,g.MK)(n);)t=n,n=n.getNextSibling();return t}let nE={defaultLanguage:"javascript",tokenize(e,t){return ni.tokenize(e,ni.languages[t||""]||ni.languages[this.defaultLanguage])}};function nS(e,t,n){let r=e.getParent();nc(r)?nN(r,t,n):nw(e)&&e.replace((0,g.sT)(e.__text))}let nT=new Set;function nN(e,t,n){let r=e.getKey();nT.has(r)||(nT.add(r),void 0===e.getLanguage()&&e.setLanguage(n.defaultLanguage),t.update(()=>{!function(e,t){let n=(0,g.ns)(e);if(!nc(n)||!n.isAttached())return;let r=(0,g.vJ)();if(!(0,g.I2)(r))return t();let i=r.anchor,a=i.offset,o="element"===i.type&&(0,g.wH)(n.getChildAtIndex(i.offset-1)),l=0;if(o||(l=a+i.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),t()){if(o)return i.getNode().select(a,a);n.getChildren().some(e=>{let t=(0,g.kF)(e);if(t||(0,g.wH)(e)){let n=e.getTextContentSize();if(t&&n>=l)return e.select(l,l),!0;l-=n}return!1})}}(r,()=>{let t=(0,g.ns)(r);if(!nc(t)||!t.isAttached())return!1;let i=t.getTextContent(),a=function e(t,n){let r=[];for(let i of t)if("string"==typeof i){let e=i.split(/(\n|\t)/),t=e.length;for(let i=0;i<t;i++){let t=e[i];"\n"===t||"\r\n"===t?r.push((0,g.WK)()):" "===t?r.push((0,g.ev)()):t.length>0&&r.push(nx(t,n))}}else{let{content:t}=i;"string"==typeof t?r.push(...e([t],i.type)):Array.isArray(t)&&r.push(...e(t,i.type))}return r}(n.tokenize(i,t.getLanguage()||n.defaultLanguage)),{from:o,to:l,nodesForReplacement:s}=function(e,t){let n=0;for(;n<e.length&&nL(e[n],t[n]);)n++;let r=e.length,i=t.length,a=Math.min(r,i)-n,o=0;for(;o<a;)if(!nL(e[r-++o],t[i-o])){o--;break}let l=r-o;return{from:n,nodesForReplacement:t.slice(n,i-o),to:l}}(t.getChildren(),a);return!(o===l&&!s.length)&&(e.splice(o,l-o,s),!0)})},{onUpdate:()=>{nT.delete(r)},skipTransforms:!0}))}function nL(e,t){return nw(e)&&nw(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType||(0,g.MK)(e)&&(0,g.MK)(t)||(0,g.wH)(e)&&(0,g.wH)(t)}function nA(e){if(!(0,g.I2)(e))return!1;let t=e.anchor.getNode(),n=e.focus.getNode();if(t.is(n)&&nc(t))return!0;let r=t.getParent();return nc(r)&&r.is(n.getParent())}function nI(e){let t=e.getNodes(),n=[[]];if(1===t.length&&nc(t[0]))return n;let r=n[0];for(let e=0;e<t.length;e++){let i=t[e];nw(i)||(0,g.MK)(i)||(0,g.wH)(i)||nr(169),(0,g.wH)(i)?0!==e&&r.length>0&&(r=[],n.push(r)):r.push(i)}return n}function nF(e){let t=(0,g.vJ)();if(!(0,g.I2)(t)||!nA(t))return!1;let n=nI(t),r=n.length;if(n.length>1){for(let t=0;t<r;t++){let r=n[t];if(r.length>0){let n=r[0];0===t&&(n=n_(n)),null!==n&&(e===g.Pi?n.insertBefore((0,g.ev)()):(0,g.MK)(n)&&n.remove())}}return!0}let i=t.getNodes()[0];if(nc(i)||nw(i)||(0,g.MK)(i)||(0,g.wH)(i)||nr(171),nc(i))return e===g.Pi&&t.insertN
15odes([(0,g.ev)()]),!0;let a=n_(i);return null===a&&nr(172),e===g.Pi?(0,g.wH)(a)?a.insertAfter((0,g.ev)()):a.insertBefore((0,g.ev)()):(0,g.MK)(a)&&a.remove(),!0}function nP(e,t){let n,r,i=(0,g.vJ)();if(!(0,g.I2)(i))return!1;let{anchor:a,focus:o}=i,l=a.offset,s=o.offset,u=a.getNode(),c=o.getNode(),d=e===g.UD;if(!nA(i)||!nw(u)&&!(0,g.MK)(u)||!nw(c)&&!(0,g.MK)(c))return!1;if(!t.altKey){if(i.isCollapsed()){let e=u.getParentOrThrow();if(d&&0===l&&null===u.getPreviousSibling()){if(null===e.getPreviousSibling())return e.selectPrevious(),t.preventDefault(),!0}else if(!d&&l===u.getTextContentSize()&&null===u.getNextSibling()&&null===e.getNextSibling())return e.selectNext(),t.preventDefault(),!0}return!1}if(u.isBefore(c)?(n=n_(u),r=nk(c)):(n=n_(c),r=nk(u)),null==n||null==r)return!1;let p=n.getNodesBetween(r);for(let e=0;e<p.length;e++){let t=p[e];if(!nw(t)&&!(0,g.MK)(t)&&!(0,g.wH)(t))return!1}t.preventDefault(),t.stopPropagation();let h=d?n.getPreviousSibling():r.getNextSibling();if(!(0,g.wH)(h))return!0;let m=d?h.getPreviousSibling():h.getNextSibling();if(null==m)return!0;let f=nw(m)||(0,g.MK)(m)||(0,g.wH)(m)?d?n_(m):nk(m):null,b=null!=f?f:m;return h.remove(),p.forEach(e=>e.remove()),e===g.UD?(p.forEach(e=>b.insertBefore(e)),b.insertBefore(h)):(b.insertAfter(h),b=h,p.forEach(e=>{b.insertAfter(e),b=e})),i.setTextNodeRange(u,l,c,s),!0}function nO(e,t){let n=(0,g.vJ)();if(!(0,g.I2)(n))return!1;let{anchor:r,focus:i}=n,a=r.getNode(),o=i.getNode(),l=e===g.Rp;if(!nA(n)||!nw(a)&&!(0,g.MK)(a)||!nw(o)&&!(0,g.MK)(o))return!1;if(l){let e=function(e,t){let n=null,r=null,i=e,a=t,o=e.getTextContent();for(;;){if(0===a){if(null===(i=i.getPreviousSibling()))break;if(nw(i)||(0,g.MK)(i)||(0,g.wH)(i)||nr(167),(0,g.wH)(i)){n={node:i,offset:1};break}a=Math.max(0,i.getTextContentSize()-1),o=i.getTextContent()}else a--;let e=o[a];nw(i)&&" "!==e&&(r={node:i,offset:a})}if(null!==r)return r;let l=null;if(t<e.getTextContentSize())nw(e)&&(l=e.getTextContent()[t]);else{let t=e.getNextSibling();nw(t)&&(l=t.getTextContent()[0])}if(null!==l&&" "!==l)return n;{let r=function(e,t){let n=e,r=t,i=e.getTextContent(),a=e.getTextContentSize();for(;;){if(!nw(n)||r===a){if(null===(n=n.getNextSibling())||(0,g.wH)(n))return null;nw(n)&&(r=0,i=n.getTextContent(),a=n.getTextContentSize())}if(nw(n)){if(" "!==i[r])return{node:n,offset:r};r++}}}(e,t);return null!==r?r:n}}(o,i.offset);if(null!==e){let{node:t,offset:r}=e;(0,g.wH)(t)?t.selectNext(0,0):n.setTextNodeRange(t,r,t,r)}else o.getParentOrThrow().selectStart()}else{let e;(e=nk(o),(0,g.wH)(e)&&nr(168),e).select()}return t.preventDefault(),t.stopPropagation(),!0}function nM(){let[e]=(0,e_.DF)();return(0,Y.useEffect)(()=>(function(e,t){if(!e.hasNodes([ns,nC]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return null==t&&(t=nE),(0,d.Sd)(e.registerMutationListener(ns,t=>{e.update(()=>{for(let[n,r]of t)if("destroyed"!==r){let t=(0,g.ns)(n);null!==t&&function(e,t){let n=t.getElementByKey(e.getKey());if(null===n)return;let r=e.getChildren(),i=r.length;if(i===n.__cachedChildrenLength)return;n.__cachedChildrenLength=i;let a="1",o=1;for(let e=0;e<i;e++)(0,g.wH)(r[e])&&(a+="\n"+ ++o);n.setAttribute("data-gutter",a)}(t,e)}})},{skipInitialization:!1}),e.registerNodeTransform(ns,n=>nN(n,e,t)),e.registerNodeTransform(g.Ey,n=>nS(n,e,t)),e.registerNodeTransform(nC,n=>nS(n,e,t)),e.registerCommand(g.OX,t=>{let n=function(e){let t,n,r=(0,g.vJ)();if(!(0,g.I2)(r)||!nA(r))return null;let i=e?g.si:g.Pi,a=e?g.si:g.YW;if(nI(r).length>1)return i;let o=r.getNodes()[0];
15if(nc(o)||nw(o)||(0,g.MK)(o)||(0,g.wH)(o)||nr(170),nc(o))return i;let l=n_(o),s=nk(o),u=r.anchor,c=r.focus;return c.isBefore(u)?(t=c,n=u):(t=u,n=c),null!==l&&null!==s&&t.key===l.getKey()&&0===t.offset&&n.key===s.getKey()&&n.offset===s.getTextContentSize()?i:a}(t.shiftKey);return null!==n&&(t.preventDefault(),e.dispatchCommand(n,void 0),!0)},1),e.registerCommand(g.YW,()=>!!nA((0,g.vJ)())&&((0,g.H2)([(0,g.ev)()]),!0),1),e.registerCommand(g.Pi,e=>nF(g.Pi),1),e.registerCommand(g.si,e=>nF(g.si),1),e.registerCommand(g.UD,e=>nP(g.UD,e),1),e.registerCommand(g.bb,e=>nP(g.bb,e),1),e.registerCommand(g.A6,e=>nO(g.A6,e),1),e.registerCommand(g.Rp,e=>nO(g.Rp,e),1))})(e),[e]),null}let nR="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,nj=nR&&"documentMode"in document?document.documentMode:null,nD=(nR&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),nR&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),nR&&"InputEvent"in window&&!nj&&new window.InputEvent("input"),nR&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),nR&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,nR&&/Android/.test(navigator.userAgent),nR&&/^(?=.*Chrome).*/i.test(navigator.userAgent));function nB(e,t){if(!e)throw Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+t)}function nU(e){e.hidden="until-found"}function n$(e){return{node:new nH(void 0===e.open||e.open)}}nR&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);class nH extends g.fG{__open;constructor(e,t){super(t),this.__open=e}static getType(){return"collapsible-container"}static clone(e){return new nH(e.__open,e.__key)}createDOM(e,t){let n;if(nD)(n=document.createElement("div")).setAttribute("open","");else{let e=document.createElement("details");e.open=this.__open,e.addEventListener("toggle",()=>{t.getEditorState().read(()=>this.getOpen())!==e.open&&t.update(()=>this.toggleOpen())}),n=e}return n.classList.add("Collapsible__container"),n}updateDOM(e,t){let n=this.__open;if(e.__open!==n)if(nD){let e=t.children[1];nB((0,g.sb)(e),"Expected contentDom to be an HTMLElement"),n?(t.setAttribute("open",""),e.hidden=!1):(t.removeAttribute("open"),nU(e))}else t.open=this.__open;return!1}static importDOM(){return{details:e=>({conversion:n$,priority:1})}}static importJSON(e){return new nH(e.open)}exportDOM(){let e=document.createElement("details");return e.classList.add("Collapsible__container"),e.setAttribute("open",this.__open.toString()),{element:e}}exportJSON(){return{...super.exportJSON(),open:this.__open,type:"collapsible-container",version:1}}setOpen(e){this.getWritable().__open=e}getOpen(){return this.getLatest().__open}toggleOpen(){this.setOpen(!this.getOpen())}}function nz(e){return e instanceof nH}function nV(e){return{node:new nK}}class nK extends g.fG{static getType(){return"collapsible-content"}static clone(e){return new nK(e.__key)}createDOM(e,t){let n=document.createElement("div");return n.classList.add("Collapsible__content"),nD&&(t.getEditorState().read(()=>{let e=this.getParentOrThrow();nB(nz(e),"Expected parent node to be a CollapsibleContainerNode"),e.__open||nU(n)}),n.onbeforematch=()=>{t.update(()=>{let e=this.getParentOrThrow().getLatest();nB(nz(e),"Expected parent node to be a CollapsibleContainerNode"),e.__open||e.toggleOpen()})}),n}updateDOM(e,t){return!1}static importDOM(){return{div:e=>e.hasAttribute("data-lexical-collapsible-content")?{conversion:nV,priority:2}:null}}exportDOM(){let e=document.createElement("div");return e.classList.add("Collapsible__content"),e.setAttribute("data-lexical-collapsible-content","true"),{element:e}}static importJSON(e){return new nK}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"collapsible-content",version:1}}}function nJ(e){return e instanceof nK}function nZ(e){return{node:new nq}}class nq extends g.fG{static getType(){return"collapsible-title"}static clone(e){return new nq(e.__key)}createDOM(e,t){let n=document.createElement("summary");return n.classList.add("Collapsible__title"),nD&&n.addEventListener("click",()=>{t.update(()=>{let e=this.getLatest().getParentOrThrow();nB(nz(e),"Expected parent node to be a CollapsibleContainerNode"),e.toggleOpen()})}),n}updateDOM(e,t){return!1}static importDOM(){return{summary:e=>({conversion:nZ,priority:1})}}static importJSON(e){return new nq}exportJSON(){return{...super.exportJSON(),type:"collapsible-title",version:1}}collapseAtStart(e){return this.getParentOrThrow().insertBefore(this),!0}static transform(){return e=>{nB(nW(e),"node is not a CollapsibleTitleNode"),e.isEmpty()&&e.remove()}}insertNewAfter(e,t=!0){let n=this.getParentOrThrow();if(!nz(n))throw Error("CollapsibleTitleNode expects to be child of CollapsibleContainerNode");if(n.getOpen()){let e=this.getNextSibling();if(!nJ(e))throw Error("CollapsibleTitleNode expects to have CollapsibleContentNode sibling");let t=e.getFirstChild();if((0,g.ff)(t))return t;{let t=(0,g.lJ)();return e.append(t),t}}{let e=(0,g.lJ)();return n.insertAfter(e,t),e}}}function nW(e){return e instanceof nq}let nG=(0,g.gu)();function nX(){let[e]=(0,e_.DF)();return(0,Y.useEffect)(()=>
15{if(!e.hasNodes([nH,nq,nK]))throw Error("CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor");let t=()=>{let e=(0,g.vJ)();if((0,g.I2)(e)&&e.isCollapsed()&&0===e.anchor.offset){let t=(0,d.Bt)(e.anchor.getNode(),nz);if(nz(t)){let n=t.getParent();null!==n&&n.getFirstChild()===t&&e.anchor.key===t.getFirstDescendant()?.getKey()&&t.insertBefore((0,g.lJ)())}}return!1},n=()=>{let e=(0,g.vJ)();if((0,g.I2)(e)&&e.isCollapsed()){let t=(0,d.Bt)(e.anchor.getNode(),nz);if(nz(t)){let n=t.getParent();if(null!==n&&n.getLastChild()===t){let n=t.getFirstDescendant(),r=t.getLastDescendant();(null!==r&&e.anchor.key===r.getKey()&&e.anchor.offset===r.getTextContentSize()||null!==n&&e.anchor.key===n.getKey()&&e.anchor.offset===n.getTextContentSize())&&t.insertAfter((0,g.lJ)())}}}return!1};return(0,d.Sd)(e.registerNodeTransform(nK,e=>{if(!nz(e.getParent())){for(let t of e.getChildren())e.insertBefore(t);e.remove()}}),e.registerNodeTransform(nq,e=>{if(!nz(e.getParent()))return void e.replace((0,g.lJ)().append(...e.getChildren()))}),e.registerNodeTransform(nH,e=>{let t=e.getChildren();if(2!==t.length||!nW(t[0])||!nJ(t[1])){for(let n of t)e.insertBefore(n);e.remove()}}),e.registerCommand(g.Wu,()=>{let e=(0,g.vJ)();if(!(0,g.I2)(e)||!e.isCollapsed()||0!==e.anchor.offset)return!1;let t=e.anchor.getNode().getTopLevelElement();if(null===t)return!1;let n=t.getPreviousSibling();return!(!nz(n)||n.getOpen())&&(n.setOpen(!0),!0)},1),e.registerCommand(g.bb,n,1),e.registerCommand(g.JM,n,1),e.registerCommand(g.UD,t,1),e.registerCommand(g.AX,t,1),e.registerCommand(g.XK,()=>{let e=(0,g.vJ)();if((0,g.I2)(e)){let t=(0,d.Bt)(e.anchor.getNode(),e=>nW(e));if(nW(t)){let e=t.getParent();if(e&&nz(e))return e.getOpen()||e.toggleOpen(),t.getNextSibling()?.selectEnd(),!0}}return!1},1),e.registerCommand(nG,()=>(e.update(()=>{let e=new nq,t=(0,g.lJ)();(0,d.Pe)(new nH(!0).append(e.append(t),(new nK).append((0,g.lJ)()))),t.select()}),!0),1))},[e]),null}function nY({validateUrl:e,attributes:t}){let[n]=(0,e_.DF)();return(0,Y.useEffect)(()=>{if(!n.hasNodes([h]))throw Error("LinkPlugin: LinkNode not registered on editor");return(0,d.Sd)(n.registerCommand(x,n=>{if(null===n)return w(n),!0;if("string"==typeof n)return!(void 0!==e&&!e(n))&&(w(n,t),!0);{let{url:e,target:r,rel:i,title:a}=n;return w(e,{...t,rel:i,target:r,title:a}),!0}},1),void 0!==e?n.registerCommand(g.w,r=>{let i=(0,g.vJ)();if(!(0,g.I2)(i)||i.isCollapsed()||!(0,d.xj)(r,ClipboardEvent)||null===r.clipboardData)return!1;let a=r.clipboardData.getData("text");return!!e(a)&&!i.getNodes().some(e=>(0,g.ff)(e))&&(n.dispatchCommand(x,{...t,url:a}),r.preventDefault(),!0)},1):()=>{})},[n,e,t]),null}let nQ=new Set(["http:","https:","mailto:","sms:","tel:"]);function n1(e){try{let t=new URL(e);if(!nQ.has(t.protocol))return"about:blank"}catch{}return e}let n0=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/);function n5(e){return"https://"===e||n0.test(e)}function n4({hasLinkAttributes:e=!1}){return(0,c.jsx)(nY,{validateUrl:n5,attributes:e?{rel:"noopener noreferrer",target:"_blank"}:void 0})}function n2({maxDepth:e=7}){let[t]=(0,e_.DF)();return(0,Y.useEffect)(()=>t.registerCommand(g.Pi,()=>(function(e){let t,n=(0,g.vJ)();if(!(0,g.I2)(n))return!1;let r=new Set(0===(t=n.getNodes()).length?[n.anchor.getNode().getParentOrThrow(),n.focus.getNode().getParentOrThrow()]:t.map(e=>(0,g.ff)(e)?e:e.getParentOrThrow())),i=0;for(let e of r)if(J(e))i=Math.max(k(e)+1,i);else if(B(e)){let t=e.getParent();if(!J(t))throw Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");i=Math.max(k(t)+1,i)}return i>e})(e),4),[t,e]),null}function n3({maxLength:e,countFn:t,onMaxLengthExceeded:n}){let[r]=(0,e_.DF)(),i=(0,Y.useRef)(n);return i.current=n,(0,Y.useEffect)(()=>{let n=null,a=e=>{let n=[];for(let t of e.getChildren())try{if(t.getType?.()==="table")continue;n.push(t.getTextContent())}catch{}return t?n.join("\n"):n.join("").replaceAll("â","").split(/\s+/).join(" ").trim()};return r.registerNodeTransform(g.h,o=>{let l=(0,g.vJ)();if(!(0,g.I2)(l)||!l.isCollapsed())return;let s=r.getEditorState(),u=s.read(()=>a((0,g.Ni)())),c=a(o),p=t?t(u):u.length,h=t?t(c):c.length;if(p!==h){let t=h-e,a=l.anchor;t>0&&(p===e&&n!==s?(n=s,(0,d.Xq)(r,s),i.current?.()):(0,eI._A)(r,a,t))}})},[r,e]),null}function n7(e){return[e.getKey(),e.getTextContent(),e.getTag()]}function n6(e,t,n){let r=[],i=n7(t);
15for(let a of(e||r.push(i),n))a[0]!==t.getKey()&&(r.push(a),e&&a[0]===e.getKey()&&r.push(i));return r}function n8(e){let t=(0,d.Pr)(e);for(;null!==t&&!(0,X.Pi)(t);)t=(0,d.Pr)(t);return t}function n9({children:e}){let[t,n]=(0,Y.useState)([]),[r]=(0,e_.DF)();return(0,Y.useEffect)(()=>{let e=[];r.getEditorState().read(()=>{let t=n=>{for(let r of n.getChildren())(0,X.Pi)(r)?e.push([r.getKey(),r.getTextContent(),r.getTag()]):(0,g.ff)(r)&&t(r)};t((0,g.Ni)()),n(e)});let t=r.registerUpdateListener(({editorState:t,dirtyElements:r})=>{t.read(()=>{let t=r=>{for(let i of r.getChildren())(0,X.Pi)(i)?n(e=n6(n8(i),i,e)):(0,g.ff)(i)&&t(i)};(0,g.Ni)().getChildren().forEach(e=>{(0,g.ff)(e)&&r.get(e.__key)&&t(e)})})}),i=r.registerMutationListener(X.jL,t=>{r.getEditorState().read(()=>{for(let[n,r]of t)if("created"===r){let t=(0,g.ns)(n);null!==t&&(e=function(e,t,n){if(null===t)return n;let r=n7(t),i=[];if(null===e){if(n.length>0&&n[0][0]===t.__key)return n;i=[r,...n]}else for(let a=0;a<n.length;a++){let o=n[a][0];if(i.push(n[a]),o===e.getKey()&&o!==t.getKey()){if(a+1<n.length&&n[a+1][0]===t.__key)return n;i.push(r)}}return i}(n8(t),t,e))}else if("destroyed"===r)e=function(e,t){let n=[];for(let r of t)r[0]!==e&&n.push(r);return n}(n,e);else if("updated"===r){let t=(0,g.ns)(n);null!==t&&(e=n6(n8(t),t,e))}n(e)})},{skipInitialization:!0}),a=r.registerMutationListener(g.Ey,t=>{r.getEditorState().read(()=>{for(let[r,i]of t)if("updated"===i){let t=(0,g.ns)(r);if(null!==t){let r=t.getParentOrThrow();(0,X.Pi)(r)&&n(e=function(e,t){let n=[];for(let r of t)r[0]===e.getKey()?n.push(n7(e)):n.push(r);return n}(r,e))}}})},{skipInitialization:!0});return()=>{i(),a(),t()}},[r]),e(t,r)}function re(e){return e?.getClientRects()[0].y<624}function rt(e){return e?.getClientRects()[0].y>=633}function rn({tableOfContents:e}){let[t,n]=(0,Y.useState)(""),r=(0,Y.useRef)(0),[i]=(0,e_.DF)();function a(e,t){i.getEditorState().read(()=>{let a=i.getElementByKey(e);null!==a&&(a.scrollIntoView(),n(e),r.current=t)})}return(0,Y.useEffect)(()=>{let t;function a(){if(0!==e.length&&r.current<e.length-1){let t=i.getElementByKey(e[r.current][0]);if(null!==t){if(rt(t)){for(;null!==t&&rt(t)&&r.current>0;){let n=i.getElementByKey(e[r.current-1][0]);null!==n&&(re(n)||rt(n))&&r.current--,t=n}n(e[r.current][0])}else if(re(t)){for(;null!==t&&re(t)&&r.current<e.length-1;){let n=i.getElementByKey(e[r.current+1][0]);null!==n&&(function(e){let t=e?.getClientRects()[0].y;return t>=624&&t<=633}(n)||re(n))&&r.current++,t=n}n(e[r.current][0])}}}else r.current=0}function o(){clearTimeout(t),t=setTimeout(a,10)}return document.addEventListener("scroll",o),()=>document.removeEventListener("scroll",o)},[e,i]),(0,c.jsx)("div",{className:"table-of-contents",children:(0,c.jsx)("ul",{className:"headings",children:e.map(([e,n,r],i)=>0===i?(0,c.jsxs)("div",{className:"normal-heading-wrapper",children:[(0,c.jsx)("div",{className:"first-heading",onClick:()=>a(e,i),role:"button",tabIndex:0,children:(""+n).length>20?n.substring(0,20)+"...":n}),(0,c.jsx)("br",{})]},e):(0,c.jsx)("div",{className:`normal-heading-wrapper ${t===e?"selected-heading-wrapper":""}`,children:(0,c.jsx)("div",{onClick:()=>a(e,i),role:"button",className:"h2"===r?"heading2":"h3"===r?"heading3":void 0,tabIndex:0,children:(0,c.jsx)("li",{className:`normal-heading ${t===e?"selected-heading":""} 16 `,children:(""+n).length>27?n.substring(0,27)+"...":n})})},e))})})}function rr(){return(0,c.jsx)(n9,{children:e=>(0,c.jsx)(rn,{tableOfContents:e})})}var ri=n(53949),ra=n(9163);function ro({onClose:e,children:t,title:n,closeOnClickOutside:r}){let i=(0,Y.useRef)(null);return(0,Y.useEffect)(()=>{null!==i.current&&i.current.focus()},[]),(0,Y.useEffect)(()=>{let t=null,n=t=>{"Escape"===t.key&&e()},a=t=>{let n=t.target;null!==i.current&&!i.current.contains(n)&&r&&e()},o=i.current;return null!==o&&null!==(t=o.parentElement)&&t.addEventListener("click",a),window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n),null!==t&&t?.removeEventListener("click",a)}},[r,e]),(0,c.jsx)("div",{className:"Modal__overlay",role:"dialog",children:(0,c.jsxs)("div",{className:"Modal__modal",tabIndex:-1,ref:i,children:[(0,c.jsx)("h2",{className:"Modal__title",children:n}),(0,c.jsx)("button",{className:"Modal__closeButton","aria-label":"Close modal",type:"button",onClick:e,children:"X"}),(0,c.jsx)("div",{className:"Modal__content",children:t})]})})}function rl({onClose:e,children:t,title:n,closeOnClickOutside:r=!1}){return(0,ee.createPortal)((0,c.jsx)(ro,{onClose:e,title:n,closeOnClickOutside:r,children:t}),document.body)}let rs=Y.createContext(null);function ru({children:e,className:t,onClick:n,title:r}){let i=(0,Y.useRef)(null),a=Y.useContext(rs);if(null===a)throw Error("DropDownItem must be used within a DropDown");let{registerItem:o}=a;return(0,Y.useEffect)(()=>{i&&i.current&&o(i)},[i,o]),(0,c.jsx)("button",{className:t,onClick:n,ref:i,title:r,type:"button",children:e})}function rc({children:e,dropDownRef:t,onClose:n}){let[r,i]=(0,Y.useState)(),[a,o]=(0,Y.useState)(),l=(0,Y.useCallback)(e=>{i(t=>t?[...t,e]:[e])},[i]),s=(0,Y.useMemo)(()=>({registerItem:l}),[l]);return(0,Y.useEffect)(()=>{r&&!a&&o(r[0]),a&&a.current&&a.current.focus()},[r,a]),(0,c.jsx)(rs.Provider,{value:s,children:(0,c.jsx)("div",{className:"dropdown",ref:t,onKeyDown:e=>{if(!r)return;let t=e.key;["Escape","ArrowUp","ArrowDown","Tab"].includes(t)&&e.preventDefault(),"Escape"===t||"Tab"===t?n():"ArrowUp"===t?o(e=>{if(!e)return r[0];let t=r.indexOf(e)-1;return r[-1===t?r.length-1:t]}):"ArrowDown"===t&&o(e=>e?r[r.indexOf(e)+1]:r[0])},children:e})})}function rd({disabled:e=!1,buttonLabel:t,buttonAriaLabel:n,buttonClassName:r,buttonIconClassName:i,children:a,stopCloseOnClickSelf:o}){let l=(0,Y.useRef)(null),s=(0,Y.useRef)(null),[u,d]=(0,Y.useState)(!1);return(0,Y.useEffect)(()=>{let e=s.current,t=l.current;if(u&&null!==e&&null!==t){let{top:n,left:r}=e.getBoundingClientRect();t.style.top=`${n+e.offsetHeight+4}px`,t.style.left=`${Math.min(r,window.innerWidth-t.offsetWidth-20)}px`}}
16,[l,s,u]),(0,Y.useEffect)(()=>{let e=s.current;if(null!==e&&u){let t=t=>{let n=t.target;!(o&&l.current&&l.current.contains(n))&&(e.contains(n)||d(!1))};return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}}},[l,s,u,o]),(0,Y.useEffect)(()=>{let e=()=>{if(u){let e=s.current,t=l.current;if(null!==e&&null!==t){let{top:n}=e.getBoundingClientRect(),r=n+e.offsetHeight+4;r!==t.getBoundingClientRect().top&&(t.style.top=`${r}px`)}}};return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}},[s,l,u]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("button",{type:"button",disabled:e,"aria-label":n||t,className:r,onClick:()=>d(!u),ref:s,children:[i&&(0,c.jsx)("span",{className:i}),t&&(0,c.jsx)("span",{className:"text dropdown-button-text",children:t}),(0,c.jsx)("i",{className:"chevron-down"})]}),u&&(0,ee.createPortal)((0,c.jsx)(rc,{dropDownRef:l,onClose:()=>{d(!1),s&&s.current&&s.current.focus()},children:a}),document.body)]})}function rg(e){let t=e.anchor,n=e.focus,r=e.anchor.getNode(),i=e.focus.getNode();return r===i?r:e.isBackward()?(0,eI.Nx)(n)?r:i:(0,eI.Nx)(t)?r:i}function rp({editor:e,value:t,style:n,disabled:r=!1}){let i=(0,Y.useCallback)(t=>{e.update(()=>{let e=(0,g.vJ)();null!==e&&(0,eI.BJ)(e,{[n]:`${t}px`})})},[e,n]),a="font-family"===n?"Formatting options for font family":"Formatting options for font size";return(0,c.jsx)(rd,{disabled:r,buttonClassName:"toolbar-item "+n,buttonLabel:t.replace("px",""),buttonIconClassName:"font-size",buttonAriaLabel:a,children:[[8,"8"],[9,"9"],[10,"10"],[11,"11"],[12,"12"],[14,"14"],[16,"16"],[18,"18"],[20,"20"],[22,"22"],[24,"24"],[26,"26"],[28,"28"],[36,"36"],[48,"48"],[72,"72"]].map(([e,r])=>(0,c.jsx)(ru,{className:`item ${t===`${e}px`?"active":""} ${"font-size"===n?"fontsize-item":""}`,onClick:()=>i(e),children:(0,c.jsx)("span",{className:"text",style:{fontSize:"font-size"===n?e:"14px"},children:r})},e))})}class rh extends g.Kp{constructor(e,t){super(t),this.__format=e||""}exportJSON(){return{format:this.__format||"",type:"decorator-block",version:1}}canIndent(){return!1}createDOM(){return document.createElement("div")}updateDOM(){return!1}setFormat(e){this.getWritable().__format=e}isInline(){return!1}}(s={})[s.increment=1]="increment",s[s.decrement=2]="decrement";let rm=e=>{e.update(()=>{let e=(0,g.vJ)();(0,g.I2)(e)&&(0,eI.zI)(e,()=>(0,g.lJ)())})},rf=(e,t,n)=>{t!==n&&e.update(()=>{(0,eI.zI)((0,g.vJ)(),()=>(0,X.fi)(n))})};function rb(e,t){return e.getEditorState().read(()=>{let e=(0,g.ns)(t);return null!==e&&e.isSelected()})}function rv(e){let[t]=(0,e_.DF)(),[n,r]=(0,Y.useState)(()=>rb(t,e));return(0,Y.useEffect)(()=>{let n=!0,i=t.registerUpdateListener(()=>{n&&r(rb(t,e))});return()=>{n=!1,i()}},[t,e]),[n,(0,Y.useCallback)(n=>{t.update(()=>{let t=(0,g.vJ)();(0,g.RT)(t)||(t=(0,g.rU)(),(0,g.n1)(t)),(0,g.RT)(t)&&(n?t.add(e):t.delete(e))})},[t,e]),(0,Y.useCallback)(()=>{t.update(()=>{let e=(0,g.vJ)();(0,g.RT)(e)&&e.clear()})},[t])]}function rC({tableKey:e}){let[t]=(0,e_.DF)(),n=(0,Y.useRef)(null),[r,i]=(0,Y.useState)(null),a=(0,Y.useRef)(null),o=(0,Y.useRef)(!1),l=(0,Y.useRef)({w:0,h:0}),s=(0,Y.useRef)({x:0,y:0});(0,Y.useEffect)(()=>{let r=null,o=t.registerRootListener(e=>{n.current=e}),l=t.registerUpdateListener(({editorState:o})=>{o.read(()=>{let o=n.current;if(!o)return;let l=(0,g.ns)(e);if(!l||!tH(l)){i(null),a.current=null;return}let s=t.getElementByKey(e);if(!s){i(null),a.current=null;return}a.current=s;let u=s.getBoundingClientRect(),c=o.getBoundingClientRect();i({top:u.top-c.top,left:u.left-c.left,width:u.width,height:u.height}),r?.disconnect(),(r=new ResizeObserver(()=>{let e=n.current?.getBoundingClientRect();if(!e)return;let t=s.getBoundingClientRect();i({top:t.top-e.top,left:t.left-e.left,width:t.width,height:t.height})})).observe(s)})});return()=>{o(),l(),r?.disconnect()}},[t,e]);let u=(e,t)=>{if(!r||!a.current||!n.current)return;let u=a.current.getBoundingClientRect();o.current=!0,s.current={x:e,y:t},l.current={w:u.width,h:u.height};let c=n.current.getBoundingClientRect(),d=(e,t)=>{if(!o.current)return;let n=a.current;n.style.tableLayout="fixed";let r=e-s.current.x,u=t-s.current.y,d=Math.max(50,l.current.w+r),g=Math.max(30,l.current.h+u);n.style.width=`${Math.round(d)}px`,n.style.height=`${Math.round(g)}px`;let p=n.getBoundingClientRect();
16i({top:p.top-c.top,left:p.left-c.left,width:p.width,height:p.height})},g=e=>d(e.clientX,e.clientY),p=e=>{e.touches.length>0&&d(e.touches[0].clientX,e.touches[0].clientY)},h=()=>{o.current=!1,window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",h),window.removeEventListener("touchmove",p),window.removeEventListener("touchend",h)};window.addEventListener("mousemove",g),window.addEventListener("mouseup",h,{once:!0}),window.addEventListener("touchmove",p,{passive:!1}),window.addEventListener("touchend",h,{once:!0})};if(!r||!n.current)return null;let d=r.left+r.width;return(0,c.jsx)("div",{contentEditable:!1,className:"resize-handle-corner table-ui",title:"Resize table",style:{position:"absolute",top:r.top+r.height-17,left:d-17,pointerEvents:"auto"},onMouseDown:e=>{e.preventDefault(),u(e.clientX,e.clientY)},onTouchStart:e=>{e.touches.length>0&&(e.preventDefault(),u(e.touches[0].clientX,e.touches[0].clientY))}})}function ry({scope:e,tableKey:t}){let[n]=(0,e_.DF)(),r=(0,Y.useRef)(null),[i,a]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{let e=document.querySelector(`.table-wrapper-${t}`);e&&e.classList.add(`has-resize-${t}`)},[n,t]),(0,Y.useEffect)(()=>{let i=null,o=n.registerRootListener(t=>{e?r.current=t?.querySelector(`.${e}`)??null:r.current=t}),l=n.registerUpdateListener(({editorState:e})=>{e.read(()=>{let e=r.current;if(!e)return;let o=n.getElementByKey(t);if(!o)return void a(null);let l=o.getBoundingClientRect(),s=e.getBoundingClientRect();a({top:l.top-s.top,left:l.left-s.left,width:l.width,height:l.height}),i?.disconnect(),(i=new ResizeObserver(()=>{let e=r.current?.getBoundingClientRect();if(!e)return;let t=o.getBoundingClientRect();a({top:t.top-e.top,left:t.left-e.left,width:t.width,height:t.height})})).observe(o)})});return()=>{o(),l(),i?.disconnect()}},[n,t]);let o=e=>{n.update(()=>{let n=(0,g.ns)(t);if(!n||!tH(n)||!n.getParent())return;let r=(0,g.lJ)();"above"===e?(n.insertBefore(r),r.selectStart()):(n.insertAfter(r),r.selectEnd())})};if(!i||!r.current)return null;let l=i.top,s=i.top+i.height,u=i.left+i.width-25;return(0,c.jsxs)("div",{contentEditable:!1,className:`insert-after-before table-ui insertable-table-ui table-plugin ${t}`,style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none"},children:[(0,c.jsx)("button",{style:{position:"absolute",top:l+8,left:i.left+36,transform:"translate(-50%, -100%)",pointerEvents:"auto"},type:"button",onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:e=>{e.preventDefault(),e.stopPropagation(),o("above")},title:"Insert paragraph above",children:"âP"}),(0,c.jsx)("button",{style:{position:"absolute",top:s-6,left:u,transform:"translate(-50%, 0)",pointerEvents:"auto"},type:"button",onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:e=>{e.preventDefault(),e.stopPropagation(),o("below")},title:"Insert paragraph below",children:"âP"})]})}function rx({tableKey:e}){let[t]=(0,e_.DF)(),n=(0,Y.useRef)(null),[r,i]=(0,Y.useState)([]),a=(0,Y.useRef)(null),o=(0,Y.useRef)(!1),l=(0,Y.useRef)(null),s=(0,Y.useRef)([]),u=(0,Y.useRef)(-1);(0,Y.useEffect)(()=>t.registerRootListener(e=>{n.current=e}),[t]),(0,Y.useEffect)(()=>t.registerUpdateListener(({editorState:e})=>{e.read(()=>{let e=n.current;if(!e)return;let r=(0,g.Ni)(),a=e.getBoundingClientRect(),o=[];
16r.getChildren().forEach(e=>{if(tH(e)){let n=e.getKey(),r=t.getElementByKey(n);if(!r)return;let i=r.getBoundingClientRect();o.push({key:n,top:i.top-a.top,left:i.left-a.left,width:i.width,height:i.height}),r.classList.add("table-highlight")}}),i(o)})}),[t]),(0,Y.useEffect)(()=>{let e=n.current;if(e){if(!a.current){let t=document.createElement("div");t.className="drop-guide",t.style.position="absolute",t.style.height="2px",t.style.width="100%",t.style.background="blue",t.style.display="none",e.parentElement?.appendChild(t),a.current=t}return()=>{a.current?.remove(),a.current=null}}},[]);let d=e=>{let r,i;o.current=!0,l.current=e,r=n.current.getBoundingClientRect(),i=[],t.getEditorState().read(()=>{(0,g.Ni)().getChildren().forEach(e=>{let n=e.getKey(),a=t.getElementByKey(n);if(!a)return;let o=a.getBoundingClientRect();i.push({key:n,top:o.top-r.top,bottom:o.bottom-r.top})})}),s.current=i},p=e=>{let t=e-n.current.getBoundingClientRect().top,r=a.current,i=s.current||[],o=i.length;for(let e=0;e<i.length;e++)if(t<(i[e].top+i[e].bottom)/2){o=e;break}u.current=o;let l=o===i.length?i.length?i[i.length-1].bottom:0:i[o].top;r.style.top=`${l-1}px`,r.style.display="block"},h=()=>{if(!o.current)return;o.current=!1,a.current.style.display="none";let e=l.current;l.current=null;let n=u.current;u.current=-1,e&&!(n<0)&&t.update(()=>{let t=(0,g.ns)(e);if(!t)return;let r=(0,g.Ni)(),i=t.getIndexWithinParent();t.remove();let a=r.getChildrenSize(),o=n;if(i<n&&(o=Math.max(0,n-1)),(o=Math.max(0,Math.min(o,a)))===a)r.append(t);else{let e=r.getChildAtIndex(o);e?e.insertBefore(t):r.append(t)}})},m=e=>{o.current&&(e.preventDefault(),p(e.clientY))},f=e=>{o.current&&(e.preventDefault(),p(e.touches[0].clientY))},b=()=>{h(),document.removeEventListener("touchmove",f),document.removeEventListener("touchend",b)},v=()=>h(),C=()=>h();return((0,Y.useEffect)(()=>(window.addEventListener("dragover",m),window.addEventListener("drop",v),window.addEventListener("dragend",C),()=>{window.removeEventListener("dragover",m),window.removeEventListener("drop",v),window.removeEventListener("dragend",C)}),[]),r.length)?(0,c.jsx)(c.Fragment,{children:r.filter(({key:t})=>t===e).map(({key:e,top:t,left:n})=>(0,c.jsx)("button",{type:"button",draggable:!0,className:"drag-handle",style:{top:t-18,left:n-2,position:"absolute"},title:"Drag table",onDragStart:t=>{let n;return t&&"function"==typeof t.preventDefault&&t.preventDefault(),d(e),void((n=new Image).src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4=",t.dataTransfer.setDragImage(n,0,0),t.dataTransfer.effectAllowed="move")},onTouchStart:t=>{t&&"function"==typeof t.preventDefault&&t.preventDefault(),d(e),document.addEventListener("touchmove",f,{passive:!1}),document.addEventListener("touchend",b,{passive:!1})},children:(0,c.jsxs)("svg",{className:"vg-text-editor-move-icon",viewBox:"0 0 16 16",children:[(0,c.jsx)("path",{d:"M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"}),(0,c.jsx)("path",{fillOpacity:".256",d:"M1 1h14v14H1z"}),(0,c.jsxs)("g",{className:"ck-icon__selected-indicator",children:[(0,c.jsx)("path",{d:"M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"}),(0,c.jsx)("path",{fillOpacity:".254",d:"M1 1h14v14H1z"})]})]})},e))}):null}(0,g.gu)("INSERT_NEW_TABLE_COMMAND");let rw=(0,Y.createContext)({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function r_({children:e}){let[t,n]=(0,Y.useState)({cellEditorConfig:null,cellEditorPlugins:null});return(0,c.jsx)(rw.Provider,{value:(0,Y.useMemo)(()=>({cellEditorConfig:t.cellEditorConfig,cellEditorPlugins:t.cellEditorPlugins,set:(e,t)=>{n({cellEditorConfig:e,cellEditorPlugins:t})}}),[t.cellEditorConfig,t.cellEditorPlugins]),children:e})}function rk({activeEditor:e,onClose:t,maxRows:n=10,maxCols:r=10}){let[i,a]=(0,Y.useState)({rows:0,cols:0});return(0,c.jsxs)("div",{className:"table-grid-picker bg-bkg_neutral_default border border-gray-300 rounded-sm shadow-md p-3",children:[(0,c.jsx)("div",{className:"grid space-y-1",children:Array.from({length:n}).map((n,o)=>(0,c.jsx)("div",{className:"row flex space-x-1",children:Array.from({length:r}).map((n,r)=>{let l=o<i.rows&&r<i.cols;return(0,c.jsx)("div",{className:`cell w-3 h-3 border border-solid bg-bkg_neutral_default rounded-sm cursor-pointer transition-colors ${l?"border-border_neutral_strong":"border-border-default hover:border-border_neutral_strong"}`,onMouseEnter:()=>a({rows:o+1,cols:r+1}),onClick:()=>{var n,i,l,s,u;return n=o+1,i=r+1,void(n>0&&i>0&&(a({rows:n,cols:i}),l=e,s=n,u=i,l.update(()=>{let e=e6(s,u,void 0),t=new rS(e.getKey());(0,g.Ni)().append(e),(0,g.Ni)().append(t);let n=(0,g.lJ)();(0,g.Ni)().append(n),n.select();let r=l.getElementByKey(e.getKey());
16r&&r.querySelectorAll("th, td").forEach(e=>{e.setAttribute("tabindex","0"),e.addEventListener("focus",()=>{e.classList.add("vg-edit-focus")}),e.addEventListener("blur",()=>{e.classList.remove("vg-edit-focus")})})}),t()))}},r)})},o))}),(0,c.jsxs)("div",{className:"info mt-2 text-sm text-text_neutral_default text-center font-medium",children:[i.rows," Ã ",i.cols]})]})}function rE(){let[e]=(0,e_.DF)();return(0,Y.useEffect)(()=>{let t=e.registerUpdateListener(()=>{e.getEditorState().read(()=>{let t=(0,g.vJ)();if(!(0,g.I2)(t))return;document.querySelectorAll(".vg-edit-focus").forEach(e=>{e.classList.remove("vg-edit-focus")});let n=t.anchor.getNode(),r=null;for(;n;){if(eX(n)){r=n;break}n=n.getParent()}if(r){let t=e.getElementByKey(r.getKey());t&&t.classList.add("vg-edit-focus")}})}),n=e.getRootElement();if(!n)return t;let r=e=>{e.target.closest(".table-highlight")&&document.body.classList.add("hover-on-table")},i=e=>{e.target.closest(".table-highlight")&&document.body.classList.remove("hover-on-table")};return n.addEventListener("mouseover",r),n.addEventListener("mouseout",i),()=>{t(),n.removeEventListener("mouseover",r),n.removeEventListener("mouseout",i),document.body.classList.remove("hover-on-table")}},[e]),null}class rS extends g.Kp{__tableKey;constructor(e,t){super(t),this.__tableKey=e}static getType(){return"table-wrapper"}static clone(e){return new rS(e.__tableKey,e.__key)}createDOM(){let e=document.createElement("div");return e.className=`table-wrapper table-wrapper-${this.__tableKey}`,e}updateDOM(){return!1}decorate(e){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:`plugins-wrapper plugins-${this.__tableKey}`,children:[(0,c.jsx)(rx,{tableKey:this.__tableKey}),(0,c.jsx)(ry,{tableKey:this.__tableKey}),(0,c.jsx)(rE,{}),(0,c.jsx)(rT,{tableKey:this.__tableKey}),(0,c.jsx)(rN,{tableKey:this.__tableKey})]}),(0,c.jsx)(rC,{tableKey:this.__tableKey})]})}exportJSON(){return{type:"table-wrapper",version:1,tableKey:this.__tableKey}}static importJSON(e){return new rS(e.tableKey)}}function rT({tableKey:e}){let[t]=(0,e_.DF)(),[n]=rv(e);return(0,Y.useEffect)(()=>{t.getEditorState().read(()=>{let r=t.getElementByKey(e);r&&(r.classList.add(`table-for-wrapper-${e}`),r.setAttribute("data-wrapper-id",e),n?(r.style.outline="2px solid #3578e5",r.style.outlineOffset="2px",r.style.borderRadius="2px",r.style.boxShadow="0 0 0 4px rgba(53, 120, 229, 0.2)",r.style.transition="outline 0.1s ease, box-shadow 0.1s ease"):(r.style.outline="none",r.style.boxShadow="none"));let i=document.querySelector(`.table-wrapper-${e}`);i&&(i.classList.add(`table-wrapper-${e}`),i.setAttribute("data-wrapper-id",e))})},[t,e,n]),null}function rN({tableKey:e}){let[t]=(0,e_.DF)();return(0,Y.useEffect)(()=>{let t=document.querySelector(`.table-for-wrapper-${e}[data-wrapper-id="${e}"]`),n=document.querySelector(`.table-wrapper-${e}[data-wrapper-id="${e}"] .plugins-wrapper `);if(!t||!n)return;let r=()=>{n.style.display="block",n.style.zIndex="10000"},i=()=>{n.style.display="none",n.style.zIndex="0"};return t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",i),n.addEventListener("mouseenter",r),n.addEventListener("mouseleave",i),()=>{t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",i),n.removeEventListener("mouseenter",r),n.removeEventListener("mouseleave",i)}},[t,e]),null}var rL=n(7247),rA=n(67247);let rI=function(){let e=[];for(let[t,n]of Object.entries(nb))e.push([t,n]);return e}(),rF=[["Arial","Arial"],["Courier New","Courier New"],["Georgia","Georgia"],["Lucida Sans Unicode","lucida sans unicode"],["Tahoma","tahoma"],["Times New Roman","Times New Roman"],["Trebuchet MS","Trebuchet MS"],["Verdana","Verdana"]],rP=[["10px","10px"],["11px","11px"],["12px","12px"],["13px","13px"],["14px","14px"],["15px","15px"],["16px","16px"],["17px","17px"],["18px","18px"],["19px","19px"],["20px","20px"]],rO=["First Name","First Name and Last Name"],rM=[{label:"Left Align",value:"left",icon:(0,c.jsx)("i",{className:"icon left-align drop-svg no-space"})},{label:"Center Align",value:"center",icon:(0,c.jsx)("i",{className:"icon center-align drop-svg no-space"})},{label:"Right Align",value:"right",icon:(0,c.jsx)("i",{className:"icon right-align drop-svg no-space"})},{label:"Justify Align",value:"justify",icon:(0,c.jsx)("i",{className:"icon justify-align drop-svg no-space"})}],rR=[{label:"Bold",value:(0,c.jsx)("i",{className:"format drop-svg bold"})},{label:"Italic",value:(0,c.jsx)("i",{className:"format drop-svg italic"})},{label:"Underline",value:(0,c.jsx)("i",{className:"format drop-svg underline"})}
16,{label:"Strikethrough",value:(0,c.jsx)("i",{className:"icon drop-svg strikethrough"})}];function rj(e){return e?"active dropdown-item-active":""}function rD({editor:e,blockType:t,disabled:n=!1}){return(0,c.jsxs)(rd,{disabled:n,buttonClassName:"toolbar-item block-controls vg-textformatter-hide",buttonLabel:eb[t],buttonAriaLabel:"Formatting options for text style",children:[(0,c.jsx)(ru,{className:"item wide "+rj("paragraph"===t),onClick:()=>rm(e),children:(0,c.jsx)("div",{className:"icon-text-container",children:(0,c.jsx)("span",{className:"text",children:"Normal"})})}),(0,c.jsx)(ru,{className:"item wide "+rj("h1"===t),onClick:()=>rf(e,t,"h1"),children:(0,c.jsx)("div",{className:"icon-text-container",children:(0,c.jsx)("h1",{className:"text",children:"Heading 1"})})}),(0,c.jsx)(ru,{className:"item wide "+rj("h2"===t),onClick:()=>rf(e,t,"h2"),children:(0,c.jsx)("div",{className:"icon-text-container",children:(0,c.jsx)("h2",{className:"text",children:"Heading 2"})})}),(0,c.jsx)(ru,{className:"item wide "+rj("h3"===t),onClick:()=>rf(e,t,"h3"),children:(0,c.jsx)("div",{className:"icon-text-container",children:(0,c.jsx)("h3",{className:"text",children:"Heading 3"})})})]})}function rB(){return(0,c.jsx)("div",{className:"divider-line"})}function rU({editor:e,value:t,style:n,disabled:r=!1}){let i=(0,Y.useCallback)(t=>{e.update(()=>{let e=(0,g.vJ)();null!==e&&(0,eI.BJ)(e,{[n]:t})})},[e,n]),a="font-family"===n?"Formatting options for font family":"Formatting options for font size";return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(rd,{disabled:r,buttonClassName:"toolbar-item vg-textformatter-hide "+n,buttonLabel:t,buttonIconClassName:"font-family",buttonAriaLabel:a,children:("font-family"===n?rF:rP).map(([e,r])=>(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(ru,{className:`item ${rj(t===e)} ${"font-size"===n?"fontsize-item":""}`,onClick:()=>i(e),children:(0,c.jsx)("span",{className:"text",style:{fontFamily:"font-family"===n?e:"inherit"},children:r})},e)}))})})}function r$({editor:e,blockType:t,disabled:n=!1}){return(0,c.jsx)("button",{onClick:()=>{"number"!==t?e.dispatchCommand(q,void 0):rm(e)},type:"button","aria-label":"Toggle number list",className:"toolbar-item spacing "+("number"===t?"active":""),title:"Numbered list",disabled:n,children:(0,c.jsx)("div",{className:"icon-text-container",children:(0,c.jsx)("svg",{className:"icon no-space",width:"16",height:"14",viewBox:"0 0 16 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M1.17383 0.744873C1.17383 0.334717 1.49609 0.041748 1.87695 0.041748H2.81445C3.22461 0.041748 3.51758 0.334717 3.51758 0.744873V4.2312H3.98633C4.39648 4.2312 4.68945 4.55347 4.68945 4.93433C4.68945 5.34448 4.39648 5.63745 3.98633 5.63745H1.64258C1.26172 5.63745 0.939453 5.34448 0.939453 4.93433C0.939453 4.55347 1.26172 4.2312 1.64258 4.2312H2.11133V1.448H1.87695C1.49609 1.448 1.17383 1.12573 1.17383 0.744873ZM3.01953 9.09448C2.84375 8.86011 2.49219 8.8894 2.31641 9.12378L1.99414 9.56323C1.75977 9.8855 1.32031 9.97339 1.02734 9.73901C0.705078 9.50464 0.617188 9.06519 0.851562 8.77222L1.17383 8.30347C1.87695 7.33667 3.2832 7.24878 4.07422 8.15698C4.71875 8.86011 4.68945 9.94409 4.04492 10.6472L3.01953 11.7312H4.01562C4.39648 11.7312 4.71875 12.0535 4.71875 12.4343C4.71875 12.8445 4.39648 13.1375 4.01562 13.1375H1.4375C1.14453 13.1375 0.880859 12.991 0.792969 12.7273C0.675781 12.4636 0.705078 12.1707 0.910156 11.9656L3.01953 9.68042C3.16602 9.50464 3.16602 9.27026 3.01953 9.09448ZM14.7969 1.18433C15.1777 1.18433 15.5 1.50659 15.5 1.88745C15.5 2.29761 15.1777 2.59058 14.7969 2.59058H6.82812C6.41797 2.59058 6.125 2.29761 6.125 1.88745C6.125 1.50659 6.41797 1.18433 6.82812 1.18433H14.7969ZM14.7969 5.87183C15.1777 5.87183 15.5 6.19409 15.5 6.57495C15.5 6.98511 15.1777 7.27808 14.7969 7.27808H6.82812C6.41797 7.27808 6.125 6.98511 6.125 6.57495C6.125 6.19409 6.41797 5.87183 6.82812 5.87183H14.7969ZM14.7969 10.5593C15.1777 10.5593 15.5 10.8816 15.5 11.2625C15.5 11.6726 15.1777 11.9656 14.7969 11.9656H6.82812C6.41797 11.9656 6.125 11.6726 6.125 11.2625C6.125 10.8816 6.41797 10.5593 6.82812 10.5593H14.7969Z"})})})})}function rH({editor:e,blockType:t,disabled:n=!1}){return(0,c.jsx)("button",{onClick:()=>{"bullet"!==t?e.dispatchCommand(Z,void 0):rm(e)},type:"button","aria-label":"Toggle bullet list",className:"toolbar-item spacing "+("bullet"===t?"active":""),title:"Bulleted list",disabled:n,children:(0,c.jsx)("div",{className:"icon-text-container",children:(0,c.jsx)("svg",{className:"icon no-space",width:"16",height:"13",viewBox:"0 0 16 13",fill:"
16currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M3.07812 0.481201C3.45898 0.481201 3.78125 0.803467 3.78125 1.18433V2.59058C3.78125 3.00073 3.45898 3.2937 3.07812 3.2937H1.67188C1.26172 3.2937 0.96875 3.00073 0.96875 2.59058V1.18433C0.96875 0.803467 1.26172 0.481201 1.67188 0.481201H3.07812ZM14.7969 1.18433C15.1777 1.18433 15.5 1.50659 15.5 1.88745C15.5 2.29761 15.1777 2.59058 14.7969 2.59058H5.89062C5.48047 2.59058 5.1875 2.29761 5.1875 1.88745C5.1875 1.50659 5.48047 1.18433 5.89062 1.18433H14.7969ZM14.7969 5.87183C15.1777 5.87183 15.5 6.19409 15.5 6.57495C15.5 6.98511 15.1777 7.27808 14.7969 7.27808H5.89062C5.48047 7.27808 5.1875 6.98511 5.1875 6.57495C5.1875 6.19409 5.48047 5.87183 5.89062 5.87183H14.7969ZM14.7969 10.5593C15.1777 10.5593 15.5 10.8816 15.5 11.2625C15.5 11.6726 15.1777 11.9656 14.7969 11.9656H5.89062C5.48047 11.9656 5.1875 11.6726 5.1875 11.2625C5.1875 10.8816 5.48047 10.5593 5.89062 10.5593H14.7969ZM0.96875 5.87183C0.96875 5.49097 1.26172 5.1687 1.67188 5.1687H3.07812C3.45898 5.1687 3.78125 5.49097 3.78125 5.87183V7.27808C3.78125 7.68823 3.45898 7.9812 3.07812 7.9812H1.67188C1.26172 7.9812 0.96875 7.68823 0.96875 7.27808V5.87183ZM3.07812 9.8562C3.45898 9.8562 3.78125 10.1785 3.78125 10.5593V11.9656C3.78125 12.3757 3.45898 12.6687 3.07812 12.6687H1.67188C1.26172 12.6687 0.96875 12.3757 0.96875 11.9656V10.5593C0.96875 10.1785 1.26172 9.8562 1.67188 9.8562H3.07812Z"})})})})}function rz({editor:e,value:t,isRTL:n,disabled:r}){let{toolbarState:i,updateToolbarState:a}=ex(),o=(t,n)=>{n&&"function"==typeof n.preventDefault&&n.preventDefault(),e.dispatchCommand(g.fU,t),a("alignment",t)};return(0,c.jsxs)("div",{className:"vg-texteditor-icon-group",children:[(0,c.jsx)("button",{onClick:e=>o("left",e),className:`item wide toolbar-item ${"left"===i.alignment?"active":""} `,type:"button","aria-label":"left",title:"Align left",disabled:r,children:(0,c.jsx)("div",{className:"icon-text-container",children:(0,c.jsx)("svg",{className:"icon no-space",width:"16",height:"17",viewBox:"0 0 16 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M9.17188 2.24683C9.55273 2.24683 9.875 2.56909 9.875 2.94995C9.875 3.36011 9.55273 3.65308 9.17188 3.65308H2.14062C1.73047 3.65308 1.4375 3.36011 1.4375 2.94995C1.4375 2.56909 1.73047 2.24683 2.14062 2.24683H9.17188ZM13.8594 5.99683C14.2402 5.99683 14.5625 6.31909 14.5625 6.69995C14.5625 7.11011 14.2402 7.40308 13.8594 7.40308H2.14062C1.73047 7.40308 1.4375 7.11011 1.4375 6.69995C1.4375 6.31909 1.73047 5.99683 2.14062 5.99683H13.8594ZM1.4375 10.45C1.4375 10.0691 1.73047 9.74683 2.14062 9.74683H9.17188C9.55273 9.74683 9.875 10.0691 9.875 10.45C9.875 10.8601 9.55273 11.1531 9.17188 11.1531H2.14062C1.73047 11.1531 1.4375 10.8601 1.4375 10.45ZM13.8594 13.4968C14.2402 13.4968 14.5625 13.8191 14.5625 14.2C14.5625 14.6101 14.2402 14.9031 13.8594 14.9031H2.14062C1.73047 14.9031 1.4375 14.6101 1.4375 14.2C1.4375 13.8191 1.73047 13.4968 2.14062 13.4968H13.8594Z"})})})}),(0,c.jsx)("button",{onClick:e=>o("center",e),className:`item wide toolbar-item ${"center"===i.alignment?"active":""} `,type:"button","aria-label":"center",title:"Align center",disabled:r,children:(0,c.jsx)("div",{className:"icon-text-container",children:(0,c.jsx)("svg",{className:"icon no-space",width:"16",height:"17",viewBox:"0 0 16 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M11.0469 2.24683C11.4277 2.24683 11.75 2.56909 11.75 2.94995C11.75 3.36011 11.4277 3.65308 11.0469 3.65308H4.95312C4.54297 3.65308 4.25 3.36011 4.25 2.94995C4.25 2.56909 4.54297 2.24683 4.95312 2.24683H11.0469ZM13.8594 5.99683C14.2402 5.99683 14.5625 6.31909 14.5625 6.69995C14.5625 7.11011 14.2402 7.40308 13.8594 7.40308H2.14062C1.73047 7.40308 1.4375 7.11011 1.4375 6.69995C1.4375 6.31909 1.73047 5.99683 2.14062 5.99683H13.8594ZM4.25 10.45C4.25 10.0691 4.54297 9.74683 4.95312 9.74683H11.0469C11.4277 9.74683 11.75 10.0691 11.75 10.45C11.75 10.8601 11.4277 11.1531 11.0469 11.1531H4.95312C4.54297 11.1531 4.25 10.8601 4.25 10.45ZM13.8594 13.4968C14.2402 13.4968 14.5625 13.8191 14.5625 14.2C14.5625 14.6101 14.2402 14.9031 13.8594
1614.9031H2.14062C1.73047 14.9031 1.4375 14.6101 1.4375 14.2C1.4375 13.8191 1.73047 13.4968 2.14062 13.4968H13.8594Z"})})})}),(0,c.jsx)("button",{onClick:e=>o("right",e),className:`item wide toolbar-item ${"right"===i.alignment?"active":""}`,type:"button","aria-label":"right",title:"Align right",disabled:r,children:(0,c.jsx)("div",{className:"icon-text-container",children:(0,c.jsx)("svg",{className:"icon no-space",width:"16",height:"17",viewBox:"0 0 16 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M13.8594 2.24683C14.2402 2.24683 14.5625 2.56909 14.5625 2.94995C14.5625 3.36011 14.2402 3.65308 13.8594 3.65308H6.82812C6.41797 3.65308 6.125 3.36011 6.125 2.94995C6.125 2.56909 6.41797 2.24683 6.82812 2.24683H13.8594ZM13.8594 5.99683C14.2402 5.99683 14.5625 6.31909 14.5625 6.69995C14.5625 7.11011 14.2402 7.40308 13.8594 7.40308H2.14062C1.73047 7.40308 1.4375 7.11011 1.4375 6.69995C1.4375 6.31909 1.73047 5.99683 2.14062 5.99683H13.8594ZM13.8594 11.1531H6.82812C6.41797 11.1531 6.125 10.8601 6.125 10.45C6.125 10.0691 6.41797 9.74683 6.82812 9.74683H13.8594C14.2402 9.74683 14.5625 10.0691 14.5625 10.45C14.5625 10.8601 14.2402 11.1531 13.8594 11.1531ZM13.8594 13.4968C14.2402 13.4968 14.5625 13.8191 14.5625 14.2C14.5625 14.6101 14.2402 14.9031 13.8594 14.9031H2.14062C1.73047 14.9031 1.4375 14.6101 1.4375 14.2C1.4375 13.8191 1.73047 13.4968 2.14062 13.4968H13.8594Z"})})})}),(0,c.jsx)("button",{onClick:e=>o("end",e),className:`item wide toolbar-item ${"end"===i.alignment?"active":""}`,type:"button","aria-label":"end",title:"Increase indent",disabled:r,children:(0,c.jsx)("div",{className:"icon-text-container",children:(0,c.jsx)("svg",{className:"icon no-space",width:"14",height:"13",viewBox:"0 0 14 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M0.4375 0.949951C0.4375 0.569092 0.730469 0.246826 1.14062 0.246826H12.8594C13.2402 0.246826 13.5625 0.569092 13.5625 0.949951C13.5625 1.36011 13.2402 1.65308 12.8594 1.65308H1.14062C0.730469 1.65308 0.4375 1.36011 0.4375 0.949951ZM6.0625 4.69995C6.0625 4.31909 6.35547 3.99683 6.76562 3.99683H12.8594C13.2402 3.99683 13.5625 4.31909 13.5625 4.69995C13.5625 5.11011 13.2402 5.40308 12.8594 5.40308H6.76562C6.35547 5.40308 6.0625 5.11011 6.0625 4.69995ZM12.8594 7.74683C13.2402 7.74683 13.5625 8.06909 13.5625 8.44995C13.5625 8.86011 13.2402 9.15308 12.8594 9.15308H6.76562C6.35547 9.15308 6.0625 8.86011 6.0625 8.44995C6.0625 8.06909 6.35547 7.74683 6.76562 7.74683H12.8594ZM0.4375 12.2C0.4375 11.8191 0.730469 11.4968 1.14062 11.4968H12.8594C13.2402 11.4968 13.5625 11.8191 13.5625 12.2C13.5625 12.6101 13.2402 12.9031 12.8594 12.9031H1.14062C0.730469 12.9031 0.4375 12.6101 0.4375 12.2ZM1.19922 9.24097C0.876953 9.47534 0.4375 9.27026 0.4375 8.8894V4.28979C0.4375 3.90894 0.876953 3.67456 1.19922 3.93823L3.98242 6.22339C4.1875 6.39917 4.1875 6.75073 3.98242 6.95581L1.19922 9.24097Z"})})})}),(0,c.jsx)("button",{onClick:e=>o("start",e),className:`item wide toolbar-item ${"start"===i.alignment?"active":""} `,type:"button","aria-label":"start",title:"Decrease indent",disabled:r,children:(0,c.jsx)("div",{className:"icon-text-container",children:(0,c.jsx)("svg",{className:"icon no-space",width:"14",height:"13",viewBox:"0 0 14 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M0.4375 0.949951C0.4375 0.569092 0.730469 0.246826 1.14062 0.246826H12.8594C13.2402 0.246826 13.5625 0.569092 13.5625 0.949951C13.5625 1.36011 13.2402 1.65308 12.8594 1.65308H1.14062C0.730469 1.65308 0.4375 1.36011 0.4375 0.949951ZM6.0625 4.69995C6.0625 4.31909 6.35547 3.99683 6.76562 3.99683H12.8594C13.2402 3.99683 13.5625 4.31909 13.5625 4.69995C13.5625 5.11011 13.2402 5.40308 12.8594 5.40308H6.76562C6.35547 5.40308 6.0625 5.11011 6.0625 4.69995ZM12.8594 7.74683C13.2402 7.74683 13.5625 8.06909 13.5625 8.44995C13.5625 8.86011 13.2402 9.15308 12.8594 9.15308H6.76562C6.35547 9.15308 6.0625 8.86011 6.0625 8.44995C6.0625 8.06909 6.35547 7.74683 6.76562 7.74683H12.8594ZM0.4375 12.2C0.4375 11.8191 0.730469 11.4968 1.14062 11.4968H12.8594C13.2402 11.4968 13.5625 11.8191 13.5625 12.2C13.5625 12.6101 13.2402 12.9031 12.8594 12.9031H1.14062C0.730469 12.9031 0.4375 12.6101 0.4375 12.2ZM0.613281 6.95581C0.408203 6.75073 0.408203 6.39917 0.613281 6.22339L3.39648 3.93823C3.71875 3.67456 4.1582 3.90894 4.1582 4.28979V8.8894C4.1582 9.27026 3.71875 9.47534 3.39648 9.24097L0.613281 6.95581Z"})})})})]})}function rV({editor:e,activeEditor:t,setActiveEditor:n,setIsLinkEditMode:r,ToolbarRawData:i,RawData:a,activeTab:o,setActiveTab:l,floatingAnchorElem:s,setFloatingAnchorElem:u,isSmallWidthViewport:p,setIsSmallWidthViewport:h,hovered:m,disabled:f,ExpandEditorMobile:v,AiControlPopup:C}){var y;let w,[_,k]=(0,Y.useState)(null),[E,S]=function(){let[e,t]=(0,Y.useState)(null),n=(0,Y.useCallback)(()=>{t(null)},[]);return[(0,Y.useMemo)(()=>
16{if(null===e)return null;let{title:t,content:r,closeOnClickOutside:i}=e;return(0,c.jsx)(rl,{onClose:n,title:t,closeOnClickOutside:i,children:r})},[e,n]),(0,Y.useCallback)((e,r,i=!1)=>{t({closeOnClickOutside:i,content:r(n),title:e})},[n])]}(),[T,N]=(0,Y.useState)(()=>e.isEditable()),[L,A]=(0,Y.useState)(rR[0].value),[I,F]=(0,Y.useState)(rM[0].icon),{toolbarState:P,updateToolbarState:O}=ex(),[M,R]=(0,Y.useState)(!1),j=(0,Y.useRef)(null),D=(0,Y.useRef)(`toolbar-${Math.random().toString(36).slice(2)}`),B=(0,Y.useCallback)(()=>{let n=(0,g.vJ)();if((0,g.I2)(n)){let r;if(t!==e&&(0,d.CG)(t)){let e=t.getRootElement();O("isImageCaption",!!e?.parentElement?.classList.contains("image-caption-container"))}else O("isImageCaption",!1);let i=n.anchor.getNode(),a="root"===i.getKey()?i:(0,d.Bt)(i,e=>{let t=e.getParent();return null!==t&&(0,g.Iq)(t)});null===a&&(a=i.getTopLevelElementOrThrow());let o=a.getKey(),l=t.getElementByKey(o);O("isRTL",(0,eI.LP)(n));let s=rg(n),u=s.getParent();O("isLink",b(u)||b(s));let c=(0,d.Bt)(s,tH);if(tH(c)?O("rootType","table"):O("rootType","root"),null!==l)if(k(o),J(a)){let e=(0,d.eu)(i,U);O("blockType",e?e.getListType():a.getListType())}else{let e=(0,X.Pi)(a)?a.getTag():a.getType();if(e in eb&&O("blockType",e),nc(a)){let e=a.getLanguage();O("codeLanguage",e?nv[e]||e:"");return}}O("fontColor",(0,eI.$S)(n,"color","#000")),O("bgColor",(0,eI.$S)(n,"background-color","#fff")),O("fontFamily",(0,eI.$S)(n,"font-family","Arial")),b(u)&&(r=(0,d.Bt)(s,e=>(0,g.ff)(e)&&!e.isInline()));let p=(0,g.ff)(r)?r.getFormatType():(0,g.ff)(s)?s.getFormatType():u?.getFormatType()||"left";O("elementFormat",p),O("alignment",""===p?"left":p)}((0,g.I2)(n)||ta(n))&&(O("isBold",n.hasFormat("bold")),O("isItalic",n.hasFormat("italic")),O("isUnderline",n.hasFormat("underline")),O("isStrikethrough",n.hasFormat("strikethrough")),O("isSubscript",n.hasFormat("subscript")),O("isSuperscript",n.hasFormat("superscript")),O("isCode",n.hasFormat("code")),O("fontSize",(0,eI.$S)(n,"font-size","8px")),O("isTable",null!==(0,d.Bt)(n.anchor.getNode(),tH)))},[t,e,O]);(0,Y.useEffect)(()=>e.registerCommand(g.if,()=>(queueMicrotask(()=>{t.update(()=>{let e=(0,g.vJ)();if(!(0,g.I2)(e)||null===(0,d.Bt)(e.anchor.getNode(),J))return;let n=P.alignment;"left"!==n&&"start"!==n&&void 0!==n&&t.dispatchCommand(g.fU,n)})}),!1),4),[e,t,P.alignment]),(0,Y.useEffect)(()=>e.registerCommand(g.Mv,(e,t)=>{let r=(0,g.vJ)();return(n(t),(0,g.I2)(r))?(O("isTable",null!==(0,d.Bt)(r.anchor.getNode(),tH)),O("isBold",r.hasFormat("bold")),O("isItalic",r.hasFormat("italic"))):O("isTable",!1),!1},4),[e,B,n]),(0,Y.useEffect)(()=>{t.getEditorState().read(()=>{B()})},[t,B]),(0,Y.useEffect)(()=>(0,d.Sd)(e.registerEditableListener(e=>{N(e)}),t.registerUpdateListener(({editorState:e})=>{e.read(()=>{B()})}),t.registerCommand(g.Kf,e=>(O("canUndo",e),!1),4),t.registerCommand(g.WW,e=>(O("canRedo",e),!1),4)),[B,t,e,O]);let $=(0,Y.useCallback)((e,n)=>{let r=document.getElementById("ColorPicker"),i=document.activeElement,a=!!(r&&i&&r.contains(i));t.update(()=>{let t=(0,g.vJ)();null!==t&&(0,eI.BJ)(t,e)},{...n?{tag:"historic"}:{},...a?{onUpdate:()=>{try{i?.focus()}catch{}}}:{}})},[t]),H=(0,Y.useCallback)((e,t)=>{$({color:e},t)},[$]),z=(0,Y.useCallback)((e,t)=>{$({"background-color":e},t)},[$]),V=(0,Y.useCallback)(()=>{P.isLink?(r(!1),t.dispatchCommand(x,null)):(r(!0),t.dispatchCommand(x,n1("https://")))},[t,r,P.isLink]),K=(0,Y.useCallback)(e=>{t.update(()=>{if(null!==_){let t=(0,g.ns)(_);nc(t)&&t.setLanguage(e)}})},[t,_]),Z=(0,Y.useCallback)(t=>{e.update(()=>{if(!(0,g.I2)((0,g.vJ)()))return;let e="";switch(t){case"First Name":e="{first_name}";break;case"First Name and Last Name":e="{first_name} {last_name}";break;default:return}(0,g.H2)([(0,g.sT)(e)])})},[e]),q=(0,Y.useCallback)(t=>{e.dispatchCommand(g.fU,t.value),F(t.icon)},[e]),W=(0,Y.useCallback)(t=>{e.dispatchCommand(g.mB,t.value),A(t.value)},[e]),G=(0,Y.useCallback)(t=>e.getEditorState().read(()=>{let e=(0,g.vJ)();return!!(0,g.I2)(e)&&e.hasFormat(t)}),[e]);return(0,Y.useEffect)(()=>{if(!M)return;let e=e=>{let t=document.getElementById("table-grid-portal");t&&t.contains(e.target)||j.current&&!j.current.contains(e.target)&&R(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[M]),(0,c.jsxs)(c.Fragment,{children:["text"==o&&(0,c.jsxs)("div",{className:`toolbar ${C?"Vg-ai-with-toolbar":""} ${m&&!f&&C?"Vg-ai-toolbar-hover-btn":""}`,children:[P.blockType in eb&&t===e&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(rD,{disabled:!T,blockType:P.blockType,rootType:P.rootType,editor:t}),(0,c.jsx)(rB,{})]}),"code"===P.blockType?(0,c.jsx)(rd,{disabled:!T,buttonClassName:"toolbar-item code-language",buttonLabel:nb[w=nv[y=P.codeLanguage]||y]||w,buttonAriaLabel:"Select language",children:rI.map(([e,t])=>(0,c.jsx)(ru,{className:`item ${rj(e===P.codeLanguage)}`,onClick:()=>K(e),children:(0,c.jsx)("span",{className:"text",children:t})},e))}):(0,c.jsxs)(c.Fragment,{children:[i?.Fontfamily&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(rU,{disabled:!T,style:"font-family",value:P.fontFamily,editor:t}),(0,c.jsx)(rB,{})]}),i?.Fontsize&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(rp,{disabled:!T,style:"font-size",value:P.fontSize,editor:t}),(0,c.jsx)(rB,{})]}),(0,c.jsxs)("div",{className:"vg-texteditor-icon-group",children:[i?.Bold&&(0,c.jsx)("button",{disabled:!T,onClick:()=>{t.dispatchCommand(g.mB,"bold")},className:"toolbar-item spaced "+(P.isBold?"active":""),title:"Bold ",type:"button","aria-label":"Format text as bold.",children:(0,c.jsx)("svg",{className:"format",width:"16",height:"17",viewBox:"0 0 16 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M11.7793 8.19409C12.8633 8.83862 13.625 10.0398 13.625 11.4167C13.625 13.4675 11.9258 15.1667 9.875 15.1667H3.3125C2.78516 15.1667 2.375 14.7273 2.375 14.2292C2.375 13.7019 2.78516 13.2917 3.3125 13.2917H3.78125V3.91675H3.3125C2.78516 3.91675 2.375 3.47729 2.375 2.97925C2.375 2.4519 2.78516 2.04175 3.3125 2.04175L8.9375 2.01245C10.9883 2.01245 12.6875 3.71167 12.6875 5.76245C12.6875 6.69995 12.3359 7.54956 11.7793 8.19409ZM5.65625 3.91675V7.66675H8.9375C9.96289 7.66675 10.8125 6.81714 10.8125 5.79175C10.8125 4.73706 9.96289 3.91675 8.9375 3.91675H5.65625ZM9.875 13.2625C10.9004 13.2625 11.75 12.3835 11.75 11.3875C11.75 10.3621 10.9004 9.51245 9.875 9.51245H5.65625V13.2625H9.875Z"})})}),i?.Italic&&(0,c.jsx)("button",{disabled:!T,onClick:()=>{t.dispatchCommand(g.mB,"italic")},className:"toolbar-item spaced "+(P.isItalic?"active":""),title:"Italic ",type:"button","aria-label":"Format text as italics.",children:(0,c.jsx)("svg",{className:"format",width:"16",height:"17",viewBox:"0 0 16 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M13.625 2.71558C13.625 3.12573 13.3027 3.4187 12.9219 3.4187H10.9297L6.62305 13.7312H9.17188C9.55273 13.7312 9.875 14.0535 9.875 14.4343C9.875 14.8445 9.55273 15.1375 9.17188 15.1375H3.07812C2.66797 15.1375 2.375 14.8445 2.375 14.4343C2.375 14.0535 2.66797 13.7312 3.07812 13.7312H5.12891L9.43555 3.4187H6.82812C6.41797 3.4187 6.125 3.12573 6.125 2.71558C6.125 2.33472 6.41797 2.01245 6.82812 2.01245H12.9219C13.3027 2.01245 13.625 2.33472 13.625 2.71558Z"})})}),i?.Underline&&(0,c.jsx)("button",{disabled:!T,onClick:()=>{t.dispatchCommand(g.mB,"underline")},className:"toolbar-item spaced "+(P.isUnderline?"active":""),title:"Underline ",type:"button","aria-label":"Format text to underlined.",children:(0,c.jsx)("svg",{className:"format",width:"16",height:"17",viewBox:"0 0 16 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M2.60938 2.4812C2.19922 2.4812 1.90625 2.18823 1.90625 1.77808C1.90625 1.39722 2.19922 1.07495 2.60938 1.07495H5.42188C5.80273 1.07495 6.125 1.39722 6.125 1.77808C6.125 2.18823 5.80273 2.4812 5.42188 2.4812H4.71875V8.1062C4.71875 9.92261 6.18359 11.3875 8 11.3875C9.78711 11.3875 11.2812 9.92261 11.2812 8.1062V2.4812H10.5781C10.168 2.4812 9.875 2.18823 9.875 1.77808C9.875 1.39722 10.168 1.07495 10.5781 1.07495H13.3906C13.7715 1.07495 14.0938 1.39722 14.0938 1.77808C14.0938 2.18823 13.7715 2.4812 13.3906 2.4812H12.6875V8.1062C12.6875 10.7136 10.5781 12.7937 8 12.7937C5.39258 12.7937 3.3125 10.7136 3.3125 8.1062V2.4812H2.60938ZM13.8594 14.6687C14.2402 14.6687 14.5625 14.991 14.5625 15.3718C14.5625 15.782 14.2402 16.075 13.8594
1616.075H2.14062C1.73047 16.075 1.4375 15.782 1.4375 15.3718C1.4375 14.991 1.73047 14.6687 2.14062 14.6687H13.8594Z"})})}),i?.Strikethrough&&(0,c.jsx)("button",{onClick:()=>{t.dispatchCommand(g.mB,"strikethrough")},className:"toolbar-item spaced vg-textformatter-hide "+(P.isUnderline?"active":""),title:"Strikethrough",type:"button","aria-label":"Formatting clear format",children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"icon",children:(0,c.jsx)("path",{d:"M6.333 5.686c0 .31.083.581.27.814H5.166a2.776 2.776 0 0 1-.099-.76c0-1.627 1.436-2.768 3.48-2.768 1.969 0 3.39 1.175 3.445 2.85h-1.23c-.11-1.08-.964-1.743-2.25-1.743-1.23 0-2.18.602-2.18 1.607zm2.194 7.478c-2.153 0-3.589-1.107-3.705-2.81h1.23c.144 1.06 1.129 1.703 2.544 1.703 1.34 0 2.31-.705 2.31-1.675 0-.827-.547-1.374-1.914-1.675L8.046 8.5H1v-1h14v1h-3.504c.468.437.675.994.675 1.697 0 1.826-1.436 2.967-3.644 2.967z"})})})]})]}),(0,c.jsx)(rB,{}),i?.Clear&&(0,c.jsx)("button",{onClick:()=>{t.update(()=>{let e=(0,g.vJ)();if((0,g.I2)(e)||ta(e)){let t=e.anchor,n=e.focus,r=e.getNodes(),i=e.extract();if(t.key===n.key&&t.offset===n.offset)return;r.forEach((e,a)=>{if((0,g.kF)(e)){let o=e;0===a&&0!==t.offset&&(o=o.splitText(t.offset)[1]||o),a===r.length-1&&(o=o.splitText(n.offset)[0]||o);let l=i[0];1===r.length&&(0,g.kF)(l)&&(o=l),""!==o.__style&&o.setStyle(""),0!==o.__format&&(o.setFormat(0),(0,d.mB)(o).setFormat("")),e=o}else(0,X.Pi)(e)||(0,X.jd)(e)?e.replace((0,g.lJ)(),!0):e instanceof rh&&e.setFormat("")})}})},type:"button","aria-label":"Formatting clear format",className:"toolbar-item clear formatting vg-textformatter-hide",title:"Clear formatting",children:(0,c.jsx)("svg",{className:"icon no-space",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:(0,c.jsx)("g",{fill:"currentColor",children:(0,c.jsx)("path",{d:"M17.5,12 C20.5375661,12 23,14.4624339 23,17.5 C23,20.5375661 20.5375661,23 17.5,23 C14.4624339,23 12,20.5375661 12,17.5 C12,14.4624339 14.4624339,12 17.5,12 Z M11.3136354,19.5004209 C11.4861106,20.0341997 11.7257502,20.5377831 12.0225923,21.0012092 L2.75,21 C2.33578644,21 2,20.6642136 2,20.25 C2,19.8703042 2.28215388,19.556509 2.64822944,19.5068466 L2.75,19.5 L11.3136354,19.5004209 Z M15.0930472,14.9662824 L15.0237993,15.0241379 L14.9659438,15.0933858 C14.8478223,15.2638954 14.8478223,15.4914871 14.9659438,15.6619968 L15.0237993,15.7312446 L16.7933527,17.5006913 L15.0263884,19.2674911 L14.968533,19.3367389 C14.8504114,19.5072486 14.8504114,19.7348403 14.968533,19.9053499 L15.0263884,19.9745978 L15.0956363,20.0324533 C15.2661459,20.1505748 15.4937377,20.1505748 15.6642473,20.0324533 L15.7334952,19.9745978 L17.5003527,18.2076913 L19.2693951,19.9768405 L19.338643,20.0346959 C19.5091526,20.1528175 19.7367444,20.1528175 19.907254,20.0346959 L19.9765019,19.9768405 L20.0343574,19.9075926 C20.1524789,19.737083 20.1524789,19.5094912 20.0343574,19.3389816 L19.9765019,19.2697337 L18.2073527,17.5006913 L19.9792686,15.7312918 L20.0371241,15.6620439 C20.1552456,15.4915343 20.1552456,15.2639425 20.0371241,15.0934329 L19.9792686,15.024185 L19.9100208,14.9663296 C19.7395111,14.848208 19.5119194,14.848208 19.3414098,14.9663296 L19.2721619,15.024185 L17.5003527,16.7936913 L15.7309061,15.0241379 L15.6616582,14.9662824 C15.5155071,14.8650354 15.3274181,14.8505715 15.1692847,14.9228908 L15.0930472,14.9662824 L15.0930472,14.9662824 Z M15.75,3.5 C16.1794908,3.5 16.5139262,3.85746688 16.4997446,4.27400515 L16.4901681,4.37104216 L16.2448681,5.87104216 C16.1780183,6.2798257 15.7924414,6.55701782 15.3836578,6.49016809 C15.0089396,6.42888916 14.7447947,6.09979083 14.7548641,5.73049924 L14.7645319,5.62895784 L14.8673875,5 L11.007,5 L9.001,16.5 L9.75,16.5 C10.1296958,16.5 10.443491,16.7821539 10.4931534,17.1482294 L10.5,17.25 C10.5,17.6296958 10.2178461,17.943491 9.85177056,17.9931534 L9.75,18 L6.75,18 C6.33578644,18 6,17.6642136 6,17.25 C6,16.8703042 6.28215388,16.556509 6.64822944,16.5068466 L6.75,16.5 L7.479,16.5 L9.485,5 L5.38506273,5 L5.23906473,5.87362385 C5.17078916,6.28217168 4.78424743,6.55801684 4.37569961,6.48974127 C4.00119744,6.42715533 3.73820236,6.09713741 3.74956013,5.72788319 L3.75958219,5.62637615 L4.01025873,4.12637615 C4.06462923,3.80103357 4.32345427,3.55394295 4.64185766,3.50777825 L4.75,3.5 L15.75,3.5 Z"})})})})}),i?.Alignment&&(0,c.jsx)(rz,{disabled:!T,value:P.elementFormat,editor:t,isRTL:P.isRTL}),P.blockType in eb&&t===e&&i?.NumberListButton&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r$,{disabled:!T,blockType:P.blockType,editor:t}),(0,c.jsx)(rB,{})]}),P.blockType in eb&&t===e&&i?.BulletListButton&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(rH,{disabled:!T,blockType:P.blockType,editor:t}),(0,c.jsx)(rB,{})]}),i?.Fontcolor&&(0,c.jsx)(ri.default,{Title:"Font Color",ColorPickerId:`${D.current}-font-color`,DefaultColor:P.fontColor||"#000000",OnChange:e=>{e&&H(e,!1)},Footer:0,NativeActionVal:0,TimerCount:0,CloseBackTitle:"",ShowApply:!1,PickerMode:"both",OpenOnl
16yonePicker:!0,TriggerElement:(0,c.jsxs)("button",{title:"Text Color ",type:"button","aria-label":"Formatting text color",className:"toolbar-item color-picker",onClick:()=>{document.dispatchEvent(new CustomEvent("vg-color-picker-open",{detail:{toolbarId:D.current,pickerId:`${D.current}-font-color`}}))},children:[(0,c.jsx)("svg",{className:"icon",width:"16px",height:"16px",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M5 18h14v3H5zm7.5-14h-1c-.401 0-.764.24-.921.609L5.745 16h2.173l1.273-3h5.604l1.268 3h2.171L13.421 4.61A1 1 0 0 0 12.5 4zm-2.46 7 1.959-4.616L13.95 11h-3.91z"})}),(0,c.jsx)("i",{className:"chevron-down"})]})}),i?.BackgroundColor&&(0,c.jsx)(ri.default,{Title:"Background Color",ColorPickerId:`${D.current}-bg-color`,DefaultColor:P.bgColor||"#ffffff",OnChange:e=>{e&&z(e,!1)},Footer:0,NativeActionVal:0,TimerCount:0,CloseBackTitle:"",ShowApply:!1,PickerMode:"both",OpenOnlyonePicker:!0,TriggerElement:(0,c.jsxs)("button",{title:"Background Color ",type:"button","aria-label":"Formatting background color",className:"toolbar-item color-picker background",onClick:()=>{document.dispatchEvent(new CustomEvent("vg-color-picker-open",{detail:{toolbarId:D.current,pickerId:`${D.current}-bg-color`}}))},children:[(0,c.jsx)("span",{className:"icon",children:(0,c.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{d:"M14.3419 12.9938C14.1542 13.4027 14.0001 13.8816 14.0001 14.375C14.0001 15.7654 15.0289 17 16.5001 17C17.9712 17 19.0001 15.7654 19.0001 14.375C19.0001 13.8816 18.8459 13.4027 18.6582 12.9938C18.4676 12.5784 18.2202 12.1881 17.9843 11.8595C17.747 11.5289 17.5112 11.247 17.3354 11.0481L17.0304 10.7197C16.7375 10.4268 16.2626 10.4268 15.9697 10.7197L15.9643 10.7254C15.9063 10.7867 15.7502 10.9515 15.6648 11.0481C15.4889 11.247 15.2532 11.5289 15.0158 11.8595C14.7799 12.1881 14.5325 12.5784 14.3419 12.9938ZM16.5001 12.3844C16.5859 12.4916 16.676 12.6092 16.7658 12.7343C16.9674 13.015 17.1575 13.32 17.295 13.6195C17.4354 13.9253 17.5001 14.1808 17.5001 14.375C17.5001 15.0663 17.0191 15.5 16.5001 15.5C15.981 15.5 15.5001 15.0663 15.5001 14.375C15.5001 14.1808 15.5648 13.9253 15.7051 13.6195C15.8426 13.32 16.0328 13.015 16.2343 12.7343C16.3241 12.6092 16.4142 12.4916 16.5001 12.3844Z"}),(0,c.jsx)("path",{d:"M9.75 1C9.33579 1 9 1.33579 9 1.75V3.5057C8.96826 3.53368 8.93719 3.56284 8.90685 3.59318L4.66421 7.83582C3.88317 8.61687 3.88317 9.8832 4.66421 10.6642L8.19975 14.1998C8.9808 14.9808 10.2471 14.9808 11.0282 14.1998L15.2708 9.95714C16.0519 9.17609 16.0519 7.90976 15.2708 7.12871L11.7353 3.59318C11.3903 3.24821 10.9507 3.0556 10.5 3.01536V1.75C10.5 1.33579 10.1642 1 9.75 1ZM9 5.62135V6.25C9 6.66421 9.33579 7 9.75 7C10.1642 7 10.5 6.66421 10.5 6.25V4.54037C10.5636 4.56471 10.6233 4.60254 10.6746 4.65384L14.2102 8.18937C14.2996 8.27882 14.3481 8.39373 14.3556 8.51077H6.11058L9 5.62135ZM9.26041 13.1391L6.13206 10.0108H13.0959L9.96751 13.1391C9.77225 13.3344 9.45567 13.3344 9.26041 13.1391Z"})]})}),(0,c.jsx)("i",{className:"chevron-down"})]})}),i?.Link&&(0,c.jsx)("button",{disabled:!T,onClick:V,className:`toolbar-item spaced ${P.isLink?"active":""}`,"aria-label":"Insert link",type:"button",title:"Insert link",children:(0,c.jsx)("svg",{className:"format",width:"20",height:"15",viewBox:"0 0 20 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M5.69336 3.94214C7.33398 2.30151 10 2.30151 11.6406 3.94214C13.2227 5.49487 13.2812 8.0144 11.8457 9.68433L11.6699 9.86011C11.4062 10.1531 10.9668 10.1824 10.6738 9.948C10.3809 9.68433 10.3516 9.24487 10.6152 8.9519L10.7617 8.77612C11.7578 7.66284 11.6992 5.99292 10.6445 4.93823C9.56055 3.82495 7.77344 3.82495 6.66016 4.93823L3.34961 8.24878C2.26562 9.36206 2.26562 11.1199 3.34961 12.2332C4.4043 13.2585 6.07422 13.3171 7.1875 12.3503L7.36328 12.2039C7.65625 11.9402 8.0957 11.9695 8.35938 12.2625C8.62305 12.5554 8.59375 12.9949 8.30078 13.2585L8.125 13.405C6.45508 14.8699 3.93555 14.782 2.35352 13.2292C0.712891 11.5886 0.712891 8.89331 2.35352 7.25269L5.69336 3.94214ZM14.3066 11.2371C12.6367 12.8777 9.9707 12.8777 8.33008 11.2371C6.74805 9.65503 6.68945 7.16479 8.125 5.49487L8.27148 5.31909C8.53516 5.02612 8.97461 4.99683 9.26758 5.2605C9.56055 5.52417 9.58984 5.96362 9.32617 6.25659L9.20898 6.40308C8.21289 7.51636 8.27148 9.18628 9.32617 10.241C10.4102 11.325 12.1973 11.325 13.3105 10.241L16.6211 6.93042C17.7051 5.81714 17.7051 4.05933 16.6211 2.94604C15.5664 1.92065 13.8965 1.86206 12.7832 2.82886L12.6074 2.97534C12.3145 3.23901 11.875 3.20972 11.6113 2.91675C11.3477 2.62378 11.377 2.18433 11.6699 1.92065L11.8457 1.77417C13.5156 0.309326 16.0352 0.397217 17.6172 1.94995C19.2578 3.59058 19.2578 6.25659 17.6172 7.92651L14.3066 11.2371Z"})})}),i?.Alignment&&(0,c.jsx)(rd,{buttonClassName:"toolbar-item aligndrop-formobile",buttonLabel:I,buttonAriaLabel:"Select name to insert",children:rM.map(e=>(0,c.jsx)(ru,{className:"item",onClick:()=>q(e),children:e.icon}))}),(0,c.jsx)(rd,{buttonClassName:"toolbar-item format formatdrop-formobile",buttonLabel:L,buttonAriaLabel:"Formatting options",children:rR.map(e=>(0,c.jsx)(ru,{className:`item ${G(e.value)?"active":""}`,onClick:()=>W(e),children:e.value},e.label))}),i?.InsertNames&&(0,c.jsx)(rd,{buttonClassName:"toolbar-item insert-names vg-textformatter-hide",buttonLabel:"Insert Name",buttonAriaLabel:"Select name to insert",children:rO.map(e=>(0,c.jsx)(ru,{className:"item",onClick:()=>Z(e),children:(0,c.jsx)("span",{className:"text",children:e})},e))}),i?.Undo&&(0,c.jsx)("button",{disabled:!P.canUndo||!T,onClick:()=>{t.dispatchCommand(g.ZK,void 0)},type:"button",className:"toolbar-item spaced","aria-label":"Undo",title:"Undo",children:(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"format",children:[(0,c.jsx)("path",{"fill-rule":"evenodd",d:"M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2v1z"}),(0,c.jsx)("path",{d:"M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466z"})]})}),i?.Redo&&(0,c.jsx)("button",{disabled:!P.canRedo||!T,onClick:()=>{t.dispatchCommand(g.V3,void 0)},type:"button",className:"toolbar-item","aria-label":"Redo",title:"Redo",children:(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"format",children:[(0,c.jsx)("path",{"fill-rule":"evenodd",d:"M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2v1z"}),(0,c.jsx)("path",{d:"M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z"})]})}),i?.Table&&(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:"relative",ref:j,children:[(0,c.jsx)("button",{disabled:!T,onClick:()=>{T&&R(e=>!e)},type:"button",className:"toolbar-item spaced","aria-label":"Insert Table",title:"Insert table",children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"
16currentColor",width:"16",height:"16",children:(0,c.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM232 432H54a6 6 0 0 1 -6-6V296h184v136zm0-184H48V112h184v136zm226 184H280V296h184v130a6 6 0 0 1 -6 6zm6-184H280V112h184v136z"})})}),M&&(0,c.jsx)(rL.A,{inputRef:j,wrapperElementId:"table-grid-portal",type:rA.IU.tableGrid,children:(0,c.jsx)("div",{className:"vg-ai-popup-bottom-table",children:(0,c.jsx)(rk,{activeEditor:e,onClose:()=>R(!1)})})})]})})]}),"style"==o&&(0,c.jsxs)("div",{className:`toolbar ${C?"Vg-ai-with-toolbar":""} ${m&&!f&&C?"Vg-ai-toolbar-hover-btn":""}`,children:[(0,c.jsxs)("div",{className:"toolbar-style-tab",children:[(0,c.jsx)(ri.default,{CloseBackTitle:"",ColorPickerId:"",Footer:2,NativeActionVal:13,OnChange:()=>{},TimerCount:0,Title:"Color Picker",VagaroToolkit:1}),(0,c.jsx)("div",{children:"Background Color"})]}),(0,c.jsxs)("div",{className:"toolbar-style-tab",children:[(0,c.jsx)(ri.default,{CloseBackTitle:"",ColorPickerId:"",Footer:2,NativeActionVal:13,OnChange:()=>{},TimerCount:0,Title:"Color Picker",VagaroToolkit:1}),(0,c.jsx)("div",{children:"Border Color"})]}),(0,c.jsxs)("div",{className:"toolbar-style-tab",children:[(0,c.jsx)(ra.default,{InputId:"",InputTitle:"",OnBlur:()=>{},OnChange:()=>{},PlaceHolder:"",SetValue:"",UrlPrefix:"",MaximumLength:2,Validation:"numeric",numericValidation:!0}),(0,c.jsx)("div",{children:"Border Size"})]}),(0,c.jsxs)("div",{className:"toolbar-style-tab",children:[(0,c.jsx)(ra.default,{InputId:"",InputTitle:"",OnBlur:()=>{},OnChange:()=>{},PlaceHolder:"",SetValue:"",UrlPrefix:"",MaximumLength:2,Validation:"numeric",numericValidation:!0}),(0,c.jsx)("div",{children:"Vertical Padding"})]}),(0,c.jsxs)("div",{className:"toolbar-style-tab",children:[(0,c.jsx)(ra.default,{InputId:"",InputTitle:"",OnBlur:()=>{},OnChange:()=>{},PlaceHolder:"",SetValue:"",UrlPrefix:"",MaximumLength:2,Validation:"numeric",numericValidation:!0}),(0,c.jsx)("div",{children:"Horizontal Padding"})]})]}),E]})}rO.map(e=>[e,e]);class rK extends g.Kp{__shortUrl;__actualUrl;__label;static getType(){return"vagaro-link"}static clone(e){return new rK(e.__label,e.__shortUrl,e.__actualUrl,e.__key)}static importJSON(e){return rJ(e.label,e.shortUrl,e.actualUrl)}constructor(e,t,n,r){super(r),this.__label=e,this.__shortUrl=t,this.__actualUrl=n}exportJSON(){return{shortUrl:this.__shortUrl,actualUrl:this.__actualUrl,label:this.__label,type:"vagaro-link",version:1}}createDOM(e){let t=document.createElement("span");return t.contentEditable="false",t}updateDOM(){return!1}exportDOM(){let e=document.createElement("a");return e.setAttribute("href",this.__shortUrl),e.dataset.actualUrl=this.__actualUrl,e.dataset.vagaroLink="true",e.textContent=this.__shortUrl,{element:e}}static importDOM(){return{a:e=>"vagaroLink"in e.dataset?{conversion:e=>({node:rJ(e.textContent||"",e.getAttribute("href")||"",e.dataset.actualUrl||"")}),priority:4}:null}}getTextContent(){return this.__shortUrl}isInline(){return!0}decorate(e,t){let n=this.__shortUrl,r=this.__actualUrl;return Y.createElement("a",{className:"spanVagaroLink",href:r,onClick:e=>{if(e.preventDefault(),rA.Wp.CheckIsProApp()){let e={message:"",messageType:0,screenTitle:"",screenType:0,navType:0,action:`6|~|${r}`};rA.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(e))}else window.open(r,"_blank","noopener,noreferrer")},"data-vagaro-link":"true","data-short-url":n,"data-actual-url":r},n)}}function rJ(e,t,n){return(0,g.pT)(new rK(e,t,n))}var rZ=n(31271),rq=n(96273),rW=n(51547);function rG(e){let t=e.textContent;return null!==t?{node:rY(t)}:null}class rX extends g.Ey{__placeholderValue;static getType(){return"vagaro-name"}static clone(e){return new rX(e.__placeholderValue,e.__text,e.__key)}static importJSON(e){let t=rY(e.placeholderValue);return t.setTextContent(e.text),t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}constructor(e,t,n){super(t??e,n),this.__placeholderValue=e}exportJSON(){return{...super.exportJSON(),placeholderValue:this.__placeholderValue,type:"vagaro-name",version:1}}createDOM(e){let t=super.createDOM(e);return t.classList.add("spanVagaroNames"),t.setAttribute("data-lexical-vagaro-name","true"),t}exportDOM(){let e=document.createElement("span");return e.className="spanVagaroNames",e.setAttribute("data-lexical-vagaro-name","true"),e.textContent=this.__text,{element:e}}static importDOM(){return{span:e=>e.hasAttribute("data-lexical-vagaro-name")||e.classList.contains("spanVagaroNames")?{conversion:rG,priority:4}:null}}isTextEntity(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function rY(e){let t=new rX(e);return t.setMode("segmented").toggleDirectionless(),(0,g.pT)(t)}var rQ=n(84955);function r1({editor:e,ToolbarRawData:t,disabled:n,AiControlPopup:r,TextMarketingLinkMenuItems:i,OnTextMarketingLinkInsert:a,GifApiKey:o,OnGifSelect:l,OnImageUpload:s,textMarketingGif:u,setTextMarketingGif:d,textMarketingImage:p,hovered:h,maxLength:m,EmojiPickerAutoFocus:f=!1,GIFPickerAutoFocus:b=!1,GlassDesign:v=!1,ShortLinkBaseUrl:C="https://tm.bookitall.com/"}){let[y,x]=(0,Y.useState)(null),[w,_]=(0,Y.useState)(!1),[k,E]=(0,Y.useState)(""),[S,T]=(0,Y.useState)(""),N=(0,Y.useRef)(null);(0,Y.useEffect)(()=>e.registerCommand(g.Mv,()=>{let e=(0,g.vJ)();return(0,g.I2)(e)&&(N.current=e.clone()),!1},1),[e]),(0,Y.useEffect)(()=>
16{if("link"!==y&&"userinfo"!==y)return;let t=e.getRootElement();if(!t)return;let n=()=>{try{t.blur()}catch{}};return t.addEventListener("focus",n),()=>t.removeEventListener("focus",n)},[y,e]);let L=(0,Y.useCallback)(()=>{let e=(0,g.Ni)();if(!(0,g.I2)((0,g.vJ)())){if(N.current)try{(0,g.n1)(N.current.clone());return}catch{N.current=null}e.selectEnd()}},[]),A=(0,Y.useCallback)(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=new Uint8Array(24);crypto.getRandomValues(n);for(let r=0;r<24;r++)t+=e[n[r]%e.length];return t},[]),I=(0,Y.useCallback)(t=>{e.update(()=>{L(),(0,g.H2)([(0,g.sT)(t)])})},[e,L]),F=(0,Y.useCallback)((e,t)=>{if(!i)return"";for(let n of i){if(n.id===e||n.label===t)return n.url||"";let r=n.subMenu?.find(n=>n.id===e||n.label===t);if(r)return r.url||""}return""},[i]),P=(0,Y.useCallback)(t=>{e.update(()=>{let e=(0,g.Ni)();L();let n=e.getTextContent(),r=n.length>0&&!/\s$/.test(n),i=t(),a=r?[(0,g.sT)(" ")]:[],o=(0,g.sT)(" ");(0,g.H2)([...a,...i,o]),o.select(1,1)})},[e,L]),O=(0,Y.useCallback)((e,t)=>{let n=A(),r=C.endsWith("/")?C:`${C}/`,i=`${r}${n}`;try{let r=globalThis;r._shopOwner&&(r._shopOwner.textLinkJson??=[],r._shopOwner.textLinkJson.push({shortUrl:i,actualUrl:t,label:e,shortId:n}))}catch{}return P(()=>[rJ(e,i,t)]),i},[A,P,C]),M=(0,Y.useCallback)(t=>{let n=t?.label||"",r=t?.id||"",i=t?.type;if("custom"===i)return void _(!0);if("text"===i)return void P(()=>[(0,g.sT)(n)]);let o=F(r,n)||n;if(!o)return;let l=!1;if(e.getEditorState().read(()=>{l=(0,g.zl)(rK).some(e=>e.__actualUrl===o)}),l)return;let s=O(n,o);a?.(s,o,n,!1)},[e,F,P,O,a]),R=(0,Y.useCallback)(()=>{let e=(e=>{try{let t=e.trim();if(!t)return!1;if(/^(mailto:|tel:)[^\s]+$/i.test(t))return t;let n=/^https?:\/\//i.test(t)?t:"http://"+t,r=new URL(n).hostname;if(!r.includes(".")||r.endsWith(".")||r.split(".").some(e=>0===e.length))return!1;return n}catch{return!1}})(k);if(!e)return void T("URL is not correct.");try{let t=globalThis;t._shopOwner&&(t._shopOwner.textLinkJson??=[],t._shopOwner.textLinkJson.push({shortUrl:e,actualUrl:e,label:e,IsOtherURL:!0}))}catch{}P(()=>[rJ(e,e,e)]),a?.(e,e,e,!0),_(!1),E(""),T("")},[k,P,a]),j=(0,Y.useCallback)(()=>{_(!1),E(""),T("")},[]),D=(0,Y.useCallback)(t=>{let n="";switch(t){case"First Name":n="{first_name}";break;case"First Name and Last Name":n="{first_name} {last_name}";break;default:return}let r=null,i=null;if(e.getEditorState().read(()=>{let e=(0,g.zl)(rX);e.length>0&&(r=e[0],i=e[0].__placeholderValue)}),i!==n){if(void 0!==m){let t=!0;if(e.getEditorState().read(()=>{let e=(0,g.Ni)().getChildren().map(e=>{try{return e.getTextContent()}catch{return""}}).join("\n"),r=i?e.replace(i,""):e;try{let e=new Q.ih(r,"auto",!1),i=new Q.ih(n,"auto",!1);t=e.numberOfCharacters+i.numberOfCharacters<=m}catch{t=r.length+n.length<=m}}),!t)return}e.update(()=>{if(r){let e=r;e.isAttached()&&e.remove()}L(),(0,g.H2)([rY(n)])})}},[e,L,m]),B=(0,Y.useCallback)(e=>{let t=e?.images?.original?.url||e?.url||e?.embed_url||"";d?.({...e,displayUrl:t}),l?.(e)},[l,d]);return(0,c.jsxs)("div",{className:"toolbar-container-height",children:[(0,c.jsxs)("div",{className:`toolbar vg-marketing-toolbar ${r?"Vg-ai-with-toolbar":""} ${h&&!n&&r?"Vg-ai-toolbar-hover-btn":""}`,onClickCapture:(0,Y.useCallback)(()=>{try{e.getRootElement()?.blur()}catch{}},[e]),children:[t?.Emoji&&(0,c.jsx)(rZ.default,{forceClose:null!==y&&"emoji"!==y,onOpen:()=>x("emoji"),SearchAutoFocus:f,GlassDesign:v,Trigger:(0,c.jsx)("button",{disabled:n,className:"toolbar-item spaced",type:"button","aria-label":"Insert emoji",title:"Insert emoji",children:(0,c.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("g",{clipPath:"url(#clip0_4196_127)",children:(0,c.jsx)("path",{d:"M8 11C9.15625 11 9.96875 10.4688 10.4375 9.96875C10.7188 9.65625 11.1875 9.625 11.5 9.90625C11.8125 10.1875 11.8125 10.6562 11.5312 10.9688C10.8438 11.7188 9.65625 12.5 8 12.5C6.3125 12.5 5.125 11.7188 4.4375 10.9688C4.15625 10.6562 4.15625 10.1875 4.46875 9.90625C4.78125 9.625 5.25 9.65625 5.53125 9.96875C6 10.4688 6.8125 11 8 11ZM6.5 6.5C6.5 7.0625 6.0625 7.5 5.5 7.5C4.9375 7.5 4.5 7.0625 4.5 6.5C4.5 5.96875 4.9375 5.5 5.5 5.5C6.0625 5.5 6.5 5.96875 6.5 6.5ZM9.5 6.5C9.5 5.96875 9.9375 5.5 10.5 5.5C11.0625 5.5 11.5 5.96875 11.5 6.5C11.5 7.0625 11.0625 7.5 10.5 7.5C9.9375 7.5 9.5 7.0625 9.5 6.5ZM16 8C16 12.4375 12.4062 16 8 16C3.5625 16 0 12.4375 0 8C0 3.59375 3.5625 0 8 0C12.4062 0 16 3.59375 16 8ZM8 1.5C4.40625 1.5 1.5 4.4375 1.5 8C1.5 11.5938 4.40625 14.5 8 14.5C11.5625 14.5 14.5 11.5938 14.5 8C14.5 4.4375 11.5625 1.5 8 1.5Z",fill:"currentColor"})}),(0,c.jsx)("defs",{children:(0,c.jsx)("clipPath",{id:"clip0_4196_127",children:(0,c.jsx)("rect",{width:"16",height:"16",fill:"currentColor"})})})]})}),OnChange:I}),t?.Link&&(0,c.jsx)(rq.default,{forceClose:null!==y&&"link"!==y,OnThreeDotMenuClick:(e,t)=>x(t?"link":null),OnClose:()=>x(e=>"link"===e?null:e),MenuOptions:"CustomOptions",Disabled:n,AutoHeight:!0,DismissKeyboardBeforeOpenMs:150,VisibleItemCount:2,GlassDesign:v,CustomMenuRender:(0,c.jsx)("button",{disabled:n,className:"toolbar-item spaced","aria-label":"Insert link",type:"button",title:"Insert link",children:(0,c.jsx)("svg",{width:"20",height:"15",viewBox:"0 0 20 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M5.69336 3.94214C7.33398 2.30151 10 2.30151 11.6406 3.94214C13.2227 5.49487 13.2812 8.0144 11.8457 9.68433L11.6699 9.86011C11.4062 10.1531 10.9668 10.1824 10.6738 9.948C10.3809 9.68433 10.3516 9.24487 10.6152 8.9519L10.7617 8.77612C11.7578 7.66284 11.6992 5.99292 10.6445 4.93823C9.56055 3.82495 7.77344 3.82495 6.66016 4.93823L3.34961 8.24878C2.26562 9.36206 2.26562 11.1199 3.34961 12.2332C4.4043 13.2585 6.07422 13.3171 7.1875 12.3503L7.36328 12.2039C7.65625 11.9402 8.0957 11.9695 8.35938 12.2625C8.62305 12.5554 8.59375 12.9949 8.30078 13.2585L8.125 13.405C6.45508 14.8699 3.93555 14.782 2.35352 13.2292C0.712891 11.5886 0.712891 8.89331 2.35352 7.25269L5.69336 3.94214ZM14.3066 11.2371C12.6367 12.8777 9.9707 12.8777 8.33008 11.2371C6.74805 9.65503 6.68945 7.16479 8.125 5.49487L8.27148 5.31909C8.53516 5.02612 8.97461 4.99683 9.26758 5.2605C9.56055 5.52417 9.58984 5.96362 9.32617 6.25659L9.20898 6.40308C8.21289 7.51636 8.27148 9.18628 9.32617 10.241C10.4102 11.325 12.1973 11.325 13.3105 10.241L16.6211 6.93042C17.7051 5.81714 17.7051 4.05933 16.6211 2.94604C15.5664 1.92065 13.8965 1.86206 12.7832 2.82886L12.6074 2.97534C12.3145 3.23901 11.875 3.20972 11.6113 2.91675C11.3477 2.62378 11.377 2.18433 11.6699 1.92065L11.8457 1.77417C13.5156 0.309326 16.0352 0.397217 17.6172 1.94995C19.2578 3.59058 19.2578 6.25659 17.6172 7.92651L14.3066 11.2371Z"})})}),Items:i?.map(e=>({id:e.id,label:e.label,type:e.type,subMenu:e.subMenu?.map(e=>({id:e.id,label:e.label,type:e.type,url:e.url}))}))||[],OnClick:M}),t?.UserInfo&&(0,c.jsx)(rq.default,{forceClose:null!==y&&"userinfo"!==y,OnThreeDotMenuClick:(e,t)=>x(t?"userinfo":null),OnClose:()=>x(e=>"userinfo"===e?null:e),MenuOptions:"CustomOptions",GlassDesign:v,Disabled:n,DismissKeyboardBeforeOpenMs:150,CustomMenuRender:(0,c.jsx)("button",{disabled:n,className:"toolbar-item spaced",type:"button","aria-label":"Insert user info",title:"Insert user info",children:(0,c.jsx)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M7.96802 8.90625H5.15601C2.28501 8.90625 0 11.2207 0 14.0625C0 14.5898 0.410012 15 0.937012 15H12.187C12.685 15 13.124 14.5898 13.124 14.0625C13.124 11.2207 10.81 8.90625 7.96802 8.90625ZM1.40601 13.5938C1.64001 11.748 3.22201 10.3125 5.15601 10.3125H7.96802C9.87302 10.3125 11.455 11.748 11.689 13.5938H1.40601ZM6.56201 7.5C8.61301 7.5 10.312 5.83008 10.312 3.75C10.312 1.69922 8.61301 0 6.56201 0C4.48201 0 2.81201 1.69922 2.81201 3.75C2.81201 5.83008 4.48201 7.5 6.56201 7.5ZM6.56201 1.40625C7.85101 1.40625 8.90601 2.46094 8.90601 3.75C8.90601 5.06836 7.85101 6.09375 6.56201 6.09375C5.24401 6.09375 4.21802 5.06836 4.21802 3.75C4.21802 2.46094 5.24401 1.40625 6.56201 1.40625Z",fill:"currentColor"})})}),Items:[{id:"first_name",label:"First Name"},{id:"full_name",label:"First Name & Last Name"}],OnClick:e=>{let t=e?.id||e?.label||"";"first_name"===t||e?.label==="First Name"?D("First Name"):("full_name"===t||e?.label==="First Name & Last Name")&&D("First Name and Last Name")}}),t?.ImageUploader&&(0,c.jsx)("button",{disabled:n,className:"toolbar-item spaced",type:"button",onClick:()=>{x("image"),s?.()},"aria-label":"Upload image",title:"Upload image",children:(0,c.jsx)("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"
16currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M14 1.5C14.275 1.5 14.5 1.725 14.5 2V11.9937L14.3438 11.7906L10.0938 6.29063C9.95312 6.10625 9.73125 6 9.5 6C9.26875 6 9.05 6.10625 8.90625 6.29063L6.3125 9.64688L5.35938 8.3125C5.21875 8.11563 4.99375 8 4.75 8C4.50625 8 4.28125 8.11563 4.14062 8.31563L1.64062 11.8156L1.5 12.0094V12V2C1.5 1.725 1.725 1.5 2 1.5H14ZM2 0C0.896875 0 0 0.896875 0 2V12C0 13.1031 0.896875 14 2 14H14C15.1031 14 16 13.1031 16 12V2C16 0.896875 15.1031 0 14 0H2ZM4.5 6C4.69698 6 4.89204 5.9612 5.07403 5.88582C5.25601 5.81044 5.42137 5.69995 5.56066 5.56066C5.69995 5.42137 5.81044 5.25601 5.88582 5.07403C5.9612 4.89204 6 4.69698 6 4.5C6 4.30302 5.9612 4.10796 5.88582 3.92597C5.81044 3.74399 5.69995 3.57863 5.56066 3.43934C5.42137 3.30005 5.25601 3.18956 5.07403 3.11418C4.89204 3.0388 4.69698 3 4.5 3C4.30302 3 4.10796 3.0388 3.92597 3.11418C3.74399 3.18956 3.57863 3.30005 3.43934 3.43934C3.30005 3.57863 3.18956 3.74399 3.11418 3.92597C3.0388 4.10796 3 4.30302 3 4.5C3 4.69698 3.0388 4.89204 3.11418 5.07403C3.18956 5.25601 3.30005 5.42137 3.43934 5.56066C3.57863 5.69995 3.74399 5.81044 3.92597 5.88582C4.10796 5.9612 4.30302 6 4.5 6Z",fill:"currentColor"})})}),t?.GIF&&o&&(u||p?(0,c.jsx)("button",{disabled:n,className:"toolbar-item spaced",type:"button","aria-label":"Insert GIF",title:"Insert GIF",onClick:()=>s?.(),children:(0,c.jsx)("svg",{width:"18",height:"13",viewBox:"0 0 16 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M14.2222 1.33333C14.4667 1.33333 14.6667 1.53333 14.6667 1.77778V10.6667C14.6667 10.9111 14.4667 11.1111 14.2222 11.1111H1.77778C1.53333 11.1111 1.33333 10.9111 1.33333 10.6667V1.77778C1.33333 1.53333 1.53333 1.33333 1.77778 1.33333H14.2222ZM1.77778 0C0.797222 0 0 0.797222 0 1.77778V10.6667C0 11.6472 0.797222 12.4444 1.77778 12.4444H14.2222C15.2028 12.4444 16 11.6472 16 10.6667V1.77778C16 0.797222 15.2028 0 14.2222 0H1.77778ZM8.22222 3.55556C7.85278 3.55556 7.55556 3.85278 7.55556 4.22222V8.22222C7.55556 8.59167 7.85278 8.88889 8.22222 8.88889C8.59167 8.88889 8.88889 8.59167 8.88889 8.22222V4.22222C8.88889 3.85278 8.59167 3.55556 8.22222 3.55556ZM9.77778 4.22222V6.44444V8.22222C9.77778 8.59167 10.075 8.88889 10.4444 8.88889C10.8139 8.88889 11.1111 8.59167 11.1111 8.22222V7.11111H12.2222C12.5917 7.11111 12.8889 6.81389 12.8889 6.44444C12.8889 6.075 12.5917 5.77778 12.2222 5.77778H11.1111V4.88889H12.8889C13.2583 4.88889 13.5556 4.59167 13.5556 4.22222C13.5556 3.85278 13.2583 3.55556 12.8889 3.55556H10.4444C10.075 3.55556 9.77778 3.85278 9.77778 4.22222ZM3.55556 6.22222C3.55556 5.48611 4.15278 4.88889 4.88889 4.88889C5.11111 4.88889 5.31667 4.94167 5.5 5.03611C5.82778 5.20556 6.23056 5.07778 6.39722 4.75C6.56389 4.42222 6.43889 4.01944 6.11111 3.85278C5.74444 3.66389 5.32778 3.55556 4.88889 3.55556C3.41667 3.55556 2.22222 4.7
165 2.22222 6.22222C2.22222 7.69444 3.41667 8.88889 4.88889 8.88889C5.43333 8.88889 5.93056 8.71945 6.35556 8.45C6.55 8.32778 6.66667 8.11389 6.66667 7.88611V6.44444C6.66667 6.075 6.36944 5.77778 6 5.77778H5.11111C4.74167 5.77778 4.44444 6.075 4.44444 6.44444C4.44444 6.81389 4.74167 7.11111 5.11111 7.11111H5.33333V7.475C5.18611 7.52778 5.03889 7.55556 4.88889 7.55556C4.15278 7.55556 3.55556 6.95833 3.55556 6.22222Z",fill:"currentColor"})})}):(0,c.jsx)(rW.default,{forceClose:null!==y&&"gif"!==y,onOpen:()=>x("gif"),SearchAutoFocus:b,GlassDesign:v,ApiKey:o,Trigger:(0,c.jsx)("button",{disabled:n,className:"toolbar-item spaced",type:"button","aria-label":"Insert GIF",title:"Insert GIF",children:(0,c.jsx)("svg",{width:"18",height:"13",viewBox:"0 0 16 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M14.2222 1.33333C14.4667 1.33333 14.6667 1.53333 14.6667 1.77778V10.6667C14.6667 10.9111 14.4667 11.1111 14.2222 11.1111H1.77778C1.53333 11.1111 1.33333 10.9111 1.33333 10.6667V1.77778C1.33333 1.53333 1.33333 1.33333 1.77778 1.33333H14.2222ZM1.77778 0C0.797222 0 0 0.797222 0 1.77778V10.6667C0 11.6472 0.797222 12.4444 1.77778 12.4444H14.2222C15.2028 12.4444 16 11.6472 16 10.6667V1.77778C16 0.797222 15.2028 0 14.2222 0H1.77778ZM8.22222 3.55556C7.85278 3.55556 7.55556 3.85278 7.55556 4.22222V8.22222C7.55556 8.59167 7.85278 8.88889 8.22222 8.88889C8.59167 8.88889 8.88889 8.59167 8.88889 8.22222V4.22222C8.88889 3.85278 8.59167 3.55556 8.22222 3.55556ZM9.77778 4.22222V6.44444V8.22222C9.77778 8.59167 10.075 8.88889 10.4444 8.88889C10.8139 8.88889 11.1111 8.59167 11.1111 8.22222V7.11111H12.2222C12.5917 7.11111 12.8889 6.81389 12.8889 6.44444C12.8889 6.075 12.5917 5.77778 12.2222 5.77778H11.1111V4.88889H12.8889C13.2583 4.88889 13.5556 4.59167 13.5556 4.22222C13.5556 3.85278 13.2583 3.55556 12.8889 3.55556H10.4444C10.075 3.55556 9.77778 3.85278 9.77778 4.22222ZM3.55556 6.22222C3.55556 5.48611 4.15278 4.88889 4.88889 4.88889C5.11111 4.88889 5.31667 4.94167 5.5 5.03611C5.82778 5.20556 6.23056 5.07778 6.39722 4.75C6.56389 4.42222 6.43889 4.01944 6.11111 3.85278C5.74444 3.66389 5.32778 3.55556 4.88889 3.55556C3.41667 3.55556 2.22222 4.7
165 2.22222 6.22222C2.22222 7.69444 3.41667 8.88889 4.88889 8.88889C5.43333 8.88889 5.93056 8.71945 6.35556 8.45C6.55 8.32778 6.66667 8.11389 6.66667 7.88611V6.44444C6.66667 6.075 6.36944 5.77778 6 5.77778H5.11111C4.74167 5.77778 4.44444 6.075 4.44444 6.44444C4.44444 6.81389 4.74167 7.11111 5.11111 7.11111H5.33333V7.475C5.18611 7.52778 5.03889 7.55556 4.88889 7.55556C4.15278 7.55556 3.55556 6.95833 3.55556 6.22222Z",fill:"currentColor"})})}),MasonryConfig:[{columns:4,imageWidth:75,gutter:3}],OnSelect:B}))]}),w&&(0,c.jsx)(rQ.default,{Popupopen:w,PopupTitle:"Insert Custom URL",Size:"small",FooterButton:"both",ButtonPrimary:"Confirm",ButtonSecondary:"Cancel",Footer:1,VagaroToolkit:1,OnClickPrimary:R,OnClickSecondary:j,onClose:j,PopupBody:()=>(0,c.jsx)("div",{style:{padding:"4px 0"},children:(0,c.jsx)(ra.default,{PlaceHolder:"www.vagarocustomlink.com",SetValue:k,OnChange:e=>{E(e.target.value),T("")},ShowError:!!S,CustomErrorMessage:S,AutoFocus:!0})})})]})}var r0=n(22005);function r5({className:e,placeholder:t,placeholderClassName:n,readOnly:r=!1}){return(0,c.jsx)(r0.a,{className:e??"ContentEditable__root","aria-placeholder":t,contentEditable:!r,placeholder:(0,c.jsx)("div",{className:n??"ContentEditable__placeholder",children:t})})}function r4(e,t,n,r=10,i=5){let a=n.parentElement;if(null===e||!a){t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)";return}let o=t.getBoundingClientRect(),l=n.getBoundingClientRect(),s=a.getBoundingClientRect(),u=e.top-r,c=e.left-i;u<s.top&&(u+=o.height+e.height+2*r),c+o.width>s.right&&(c=s.right-o.width-i),u-=l.top,c-=l.left,t.style.opacity="1",t.style.transform=`translate(${c}px, ${u}px)`}
16function r2({editor:e,isLink:t,setIsLink:n,anchorElem:r,isLinkEditMode:i,setIsLinkEditMode:a,setSuppressOnce:o}){let l=(0,Y.useRef)(null),s=(0,Y.useRef)(null),[u,p]=(0,Y.useState)(""),[h,m]=(0,Y.useState)("https://"),[v,C]=(0,Y.useState)(null),w=(0,Y.useCallback)(()=>{let t=(0,g.vJ)();if((0,g.I2)(t)){let e=rg(t),n=(0,d.Bt)(e,b);n?p(n.getURL()):b(e)?p(e.getURL()):p("")}let n=l.current,i=window.getSelection(),o=document.activeElement;if(null===n)return;let s=e.getRootElement();if(null!==t&&null!==i&&null!==s&&s.contains(i.anchorNode)&&e.isEditable()){let e=i.focusNode?.parentElement?.getBoundingClientRect();e&&(e.y+=40,r4(e,n,r)),C(t)}else o&&"link-input"===o.className||(null!==s&&r4(null,n,r),C(null),a(!1),p(""));return!0},[r,e,a,i]);(0,Y.useEffect)(()=>{let t=r.parentElement,n=()=>{e.getEditorState().read(()=>{w()})};return window.addEventListener("resize",n),t&&t.addEventListener("scroll",n),()=>{window.removeEventListener("resize",n),t&&t.removeEventListener("scroll",n)}},[r.parentElement,e,w]),(0,Y.useEffect)(()=>(0,d.Sd)(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{w()})}),e.registerCommand(g.Mv,()=>(w(),!0),1),e.registerCommand(g.Q$,()=>!!t&&(n(!1),!0),3)),[e,w,n,t]),(0,Y.useEffect)(()=>{e.getEditorState().read(()=>{w()})},[e,w]),(0,Y.useEffect)(()=>{i&&s.current&&s.current.focus()},[i,t]),(0,Y.useEffect)(()=>{if(!i)return;let e=e=>{let t=e.target;!t||(t.classList?.contains("link-input")||t.closest(".link-editor"))&&(e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation())};return window.addEventListener("keydown",e,!0),()=>{window.removeEventListener("keydown",e,!0)}},[i]);let _=()=>{if(null!==v){let t=n1(s.current?.value??h);""!==t&&(e.dispatchCommand(x,t),e.update(()=>{let e=(0,g.vJ)();if((0,g.I2)(e)){let t=rg(e).getParent();if(y(t)){let e=f(t.getURL(),{rel:t.__rel,target:t.__target,title:t.__title});t.replace(e,!0)}}})),m("https://"),a(!1),o(!0)}};return(0,c.jsx)("div",{ref:l,className:"link-editor",children:t?i?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("input",{ref:s,className:"link-input",value:h,onChange:e=>{m(e.target.value)},onKeyDown:e=>{e.stopPropagation(),e.nativeEvent?.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation(),"Enter"===e.key?(e.preventDefault(),_()):"Escape"===e.key&&(e.preventDefault(),a(!1))}}),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"link-cancel",role:"button",tabIndex:0,onMouseDown:e=>e.preventDefault(),onClick:()=>{a(!1),o(!0)}}),(0,c.jsx)("div",{className:"link-confirm",role:"button",tabIndex:0,onMouseDown:e=>e.preventDefault(),onClick:_,children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:20,width:20,viewBox:"0 0 640 640",fill:"currentColor",children:(0,c.jsx)("path",{d:"M320 576C178.6 576 64 461.4 64 320C64 178.6 178.6 64 320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576zM438 209.7C427.3 201.9 412.3 204.3 404.5 215L285.1 379.2L233 327.1C223.6 317.7 208.4 317.7 199.1 327.1C189.8 336.5 189.7 351.7 199.1 361L271.1 433C276.1 438 282.9 440.5 289.9 440C296.9 439.5 303.3 435.9 307.4 430.2L443.3 243.2C451.1 232.5 448.7 217.5 438 209.7z"})})})]})]}):(0,c.jsxs)("div",{className:"link-view",children:[(0,c.jsx)("a",{href:n1(u),target:"_blank",rel:"noopener noreferrer",children:u}),(0,c.jsx)("div",{className:"link-edit",role:"button",tabIndex:0,onMouseDown:e=>e.preventDefault(),onClick:()=>{m(u),a(!0)}}),(0,c.jsx)("div",{className:"link-trash",role:"button",tabIndex:0,onMouseDown:e=>e.preventDefault(),onClick:()=>{e.dispatchCommand(x,null)}})]}):null})}function r3({anchorElem:e=document.body,isLinkEditMode:t,setIsLinkEditMode:n}){let[r]=(0,e_.DF)();return function(e,t,n,r){let[i,a]=(0,Y.useState)(e),[o,l]=(0,Y.useState)(!1),[s,u]=(0,Y.useState)(!1);return(0,Y.useEffect)(()=>{function t(){let e=(0,g.vJ)();if((0,g.I2)(e)){let t=rg(e),n=(0,d.Bt)(t,b),r=(0,d.Bt)(t,y);if(!(n||r))return void l(!1);e.getNodes().filter(e=>!(0,g.wH)(e)).find(e=>{let t=(0,d.Bt)(e,b),i=(0,d.Bt)(e,y);return n&&!n.is(t)||t&&!t.is(n)||r&&!r.is(i)||i&&(!i.is(r)||i.getIsUnlinked())})?l(!1):s?(l(!1),u(!1)):l(!0)}}return(0,d.Sd)(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{t()})}),e.registerCommand(g.Mv,(e,n)=>(t(),a(n),!1),4),e.registerCommand(g.d8,e=>{let t=(0,g.vJ)();if((0,g.I2)(t)){let n=(0,d.Bt)(rg(t),b);if(b(n)&&(e.metaKey||e.ctrlKey))return window.open(n.getURL(),"_blank"),!0}return!1},1))},[e,s]),(0,ee.createPortal)((0,c.jsx)(r2,{editor:i,isLink:o,anchorElem:t,setIsLink:l,isLinkEditMode:n,setIsLinkEditMode:r,setSuppressOnce:u}),t)}(r,e,t,n)}var r7=n(44),r6=n(65195);let r8=({variant:e,defaultValue:t,onChange:n})=>{let[r]=(0,e_.DF)(),i=(0,Y.useRef)(null),a=(0,Y.useRef)(!1),o=(0,Y.useRef)(!0);return(0,Y.useEffect)(()=>{let e=r.registerUpdateListener(({editorState:e})=>{e.read(()=>{let e=(0,g.Ni)(),t=e.getTextContent().trim();t!==i.current&&t.length>0&&!o.current&&(a.current=!0,n)&&n({html:(0,eJ.g)(r,null),text:e.getTextContent()})})});return()=>{e()}},[r,n]),(0,Y.useEffect)(()=>{("TextMarketing"!==e||t)&&r.update(()=>{let e=(0,g.Ni)();if(o.current||!a.current){e.clear();let n=(0,g.lJ)();n.append((0,g.sT)(t)),e.append(n),i.current=t}o.current&&(o.current=!1)})},[r,t]),null};var r9=n(49545);function ie(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function it(e,t){let n=(t||"").trim();if(!n)return e;let r=ie(n);return e.split(RegExp(`(${r})`,"ig")).map((e,t)=>e.toLowerCase()===n.toLowerCase()?(0,c.jsx)("strong",{children:e},t):e)}function ir({enabled:e,triggerChars:t,dropdownValue:n,onChange:r,scrollTargetRef
16:i,ExpandEditorMobile:a}){let o,l,[s]=(0,e_.DF)(),[u,d]=(0,Y.useState)(!1),[p,h]=(0,Y.useState)(""),[m,f]=(0,Y.useState)(""),[b,v]=(0,Y.useState)(""),[C,y]=(0,Y.useState)(""),[x,w]=(0,Y.useState)(0),[_,k]=(0,Y.useState)(!1),[E,S]=(0,Y.useState)(0),T=rA.Wp.CheckIsFromProAppWithoutState(),N=(0,Y.useRef)(null),L=(0,Y.useRef)(null),A=(0,Y.useRef)(null),I=(0,Y.useRef)(null),F=(0,Y.useRef)([]),P=(0,Y.useRef)(!1),O=(0,Y.useRef)(""),M=(0,Y.useMemo)(()=>(function(e){if(!e||0===e.length)return null;let t=e[0];return"string"!=typeof t||1!==t.length||/^[a-zA-Z0-9]$/.test(t)?null:t})(t),[t]),R=(0,Y.useMemo)(()=>{if(!M)return null;let e=ie(M);return RegExp(`(?:^|\\s)((${e})([^\\s]*))$`)},[M]);(0,Y.useEffect)(()=>{if(T&&a){let e=window.matchMedia("(max-width: 768px)"),t=()=>k(e.matches);return t(),e.addEventListener?.("change",t),()=>e.removeEventListener?.("change",t)}},[]),(0,Y.useEffect)(()=>{let e=null,t=requestAnimationFrame(()=>{let t=i?.current?.querySelector(".vg-texteditor-shell .toolbar");if(!t)return;let n=()=>{S(Math.ceil(t.getBoundingClientRect().height||0))};n(),(e=new ResizeObserver(n)).observe(t)});return()=>{cancelAnimationFrame(t),e?.disconnect()}},[]);let j=()=>{d(!1),h(""),f(""),v(""),y(""),w(0),O.current=""};(0,Y.useEffect)(()=>{let e=i?.current,t=e?.querySelector(".ContentEditable__root");if(!t)return;let n=()=>{P.current=!0};return t.addEventListener("paste",n),()=>t.removeEventListener("paste",n)},[i]),(0,Y.useEffect)(()=>{if(!u)return;let e=i?.current,t=e=>{var t;!_&&((t=e.target)&&L.current&&L.current.contains(t)||j())},n=()=>{_||j()};window.addEventListener("scroll",t,!0),e?.addEventListener("scroll",n,!0);let r=t=>{var n;(n=t.target)&&(e&&e.contains(n)||L.current&&L.current.contains(n)||A.current&&A.current.contains(n))||j()};return document.addEventListener("mousedown",r,!0),document.addEventListener("touchstart",r,!0),()=>{window.removeEventListener("scroll",t,!0),e?.removeEventListener("scroll",n,!0),document.removeEventListener("mousedown",r,!0),document.removeEventListener("touchstart",r,!0)}},[u,i,_]);let D=(0,Y.useMemo)(()=>{if(!u)return[];let e=(m||"").toLowerCase().trim(),t=(n||[]).filter(t=>{let n=(t?.name||"").toLowerCase().trim().replace(/^[^a-z0-9]+/i,"");return t?.Type==="Button"||!e||n.includes(e)});return t.sort((t,n)=>{let r="Button"===t.Type;if(r!==("Button"===n.Type))return r?1:-1;let i=(t.name||"").toLowerCase().trim().replace(/^[^a-z0-9]+/i,""),a=(n.name||"").toLowerCase().trim().replace(/^[^a-z0-9]+/i,"");if(!e)return i.localeCompare(a);let o=i.startsWith(e);return o!==a.startsWith(e)?o?-1:1:i.localeCompare(a)}),t},[n,u,m]);(0,Y.useEffect)(()=>{u&&(w(0),requestAnimationFrame(()=>{F.current[0]?.scrollIntoView?.({block:"nearest"})}))},[u,b]);let B=(0,Y.useMemo)(()=>D.findIndex(e=>"Button"===e.Type),[D]),U=B>=0?D[B]:null,$=(0,Y.useRef)(null),H=(0,Y.useRef)(-1),z=()=>{if(!a)return;let e=window.visualViewport;e&&null==$.current&&($.current=requestAnimationFrame(()=>{$.current=null;let t=document.getElementsByClassName("mobile-dotphrase-bar")[0];if(!t)return;let n=window.innerHeight-e.height-e.offsetTop,r=n>0?Math.round(n+(E||0)):0;2>Math.abs(r-H.current)||(H.current=r,r>0?(t.style.position="fixed",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.zIndex="9999",t.style.willChange="transform",t.style.transform=`translate3d(0, -${r}px, 0)`):(t.style.transform="translate3d(0, 0, 0)",t.style.willChange="",t.style.position="",t.style.left="",t.style.right="",t.style.bottom="",t.style.zIndex=""))}))};(0,Y.useEffect)(()=>{if(!u||!_||"u"<typeof window)return;let e=window.visualViewport;if(e)return e.addEventListener("resize",z),e.addEventListener("scroll",z),z(),()=>{e.removeEventListener("resize",z),e.removeEventListener("scroll",z),null!=$.current&&(cancelAnimationFrame($.current),$.current=null),H.current=-1}},[u,_]),(0,Y.useEffect)(()=>e?s.registerUpdateListener(({tags:t})=>{let n;if(!e)return;if(t&&(t.has("paste")||t.has("drop")))return void j();if(P.current){P.current=!1,j();return}let a=!1;if(s.getEditorState().read(()=>{a=(0,g.I2)((0,g.vJ)())}),!a)return void j();let o=i?.current,l=o?.querySelector(".ContentEditable__root");
16if(!l)return;let u=document.activeElement;if(u&&!l.contains(u))return void j();let c=function(e){let t=window.getSelection();if(!t||0===t.rangeCount)return"";let n=t.getRangeAt(0).cloneRange(),r=n.endContainer;if(!e.contains(r))return"";let i=r.nodeType===Node.TEXT_NODE?r.parentNode:r;if(!i)return"";let a=i instanceof HTMLElement?i:i.parentElement;for(;a&&a.parentElement!==e;)a=a.parentElement;if(!a)return r.nodeType===Node.TEXT_NODE&&r.textContent?.slice(0,n.endOffset)||"";let o=n.cloneRange();return o.selectNodeContents(a),o.setEnd(n.endContainer,n.endOffset),o.toString()}(l);if(y(c),c===O.current)return;if(O.current=c,!R||!M)return void j();let p=c.match(R);if(!p)return void j();let m=p[1]||"",b=p[2]||M,C=p[3]||"";d(!0),h(b),f(C),v(m),(n=function(){let e=window.getSelection();if(!e||0===e.rangeCount)return null;let t=e.getRangeAt(0).cloneRange();t.collapse(!1);let n=t.getClientRects();if(n&&n.length>0)return n[0];let r=t.getBoundingClientRect();return r&&(r.width||r.height)?r:null}())&&N.current&&(N.current.style.position="fixed",N.current.style.left=`${n.left}px`,N.current.style.top=`${n.bottom}px`,N.current.style.width="1px",N.current.style.height="1px",N.current.style.pointerEvents="none",N.current.style.zIndex="1"),r?.({type:"open",triggerChar:b,query:C,matchText:m,textBeforeCaret:c}),z()}):void j(),[s,e,r,i,R,M]);let V=e=>{if(e?.Type==="label"){let t=e?.description||"";s.update(()=>{let e=(0,g.vJ)();if(!(0,g.I2)(e))return;let n=e.anchor.getNode(),r=e.anchor.offset,i=(b||"").length;if((0,g.kF)(n)&&i>0){let t=Math.max(0,r-i);n.spliceText(t,r-t,""),e.setTextNodeRange(n,t,n,t)}let a=(0,eJ.d)(s,new DOMParser().parseFromString(t?t.toString():"<p></p>","text/html"));e.insertNodes(a)})}r?.({type:"click",triggerChar:p,query:m,matchText:b,textBeforeCaret:C,item:e}),j()};return((0,Y.useEffect)(()=>{if(!u)return;let e=e=>{if(!u)return;let t=D.length;if(!(t<=0)){if("Escape"===e.key){e.preventDefault(),e.stopPropagation(),j();return}if("ArrowDown"===e.key){e.preventDefault(),e.stopPropagation(),w(e=>{let n=(e+1)%t;return requestAnimationFrame(()=>{F.current[n]?.scrollIntoView?.({block:"nearest"})}),n});return}if("ArrowUp"===e.key){e.preventDefault(),e.stopPropagation(),w(e=>{let n=(e-1+t)%t;return requestAnimationFrame(()=>{F.current[n]?.scrollIntoView?.({block:"nearest"})}),n});return}if("Enter"===e.key){e.preventDefault(),e.stopPropagation();let t=D[x];t&&V(t)}}};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)},[u,D,x]),e)?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{ref:N}),u&&N.current&&!_&&(0,c.jsx)(rL.A,{wrapperElementId:"dotphrase-portal",inputRef:N,children:(0,c.jsxs)("div",{className:"vg-suggestion-dropdown",ref:L,children:[(0,c.jsx)("div",{className:"vg-suggestion-list",ref:I,children:D.map((e,t)=>{let n="Button"===e.Type,r=String(e.name||"").trim();return n?null:(0,c.jsxs)("button",{type:"button",ref:e=>{F.current[t]=e},className:`vg-suggestion-item ${x===t?"is-active":""}`,onMouseDown:e=>e.preventDefault(),onMouseEnter:()=>w(t),onClick:()=>V(e),children:[e.avatar?(0,c.jsx)("div",{className:"vg-suggestion-avatar",children:(0,c.jsx)(r9.default,{AvatarSize:"X-Small",NoProfile:"Daniel klein",ProfileUrl:e.avatar})}):null,(0,c.jsx)("span",{children:it(r,m)})]},e.id)})}),U&&(0,c.jsx)("div",{className:"vg-suggestion-footer",children:(o=String(U.name||"").trim(),l=x===B,(0,c.jsxs)("button",{type:"button",ref:e=>{F.current[B]=e},className:`vg-suggestion-item is-button ${l?"is-active":""}`,onMouseDown:e=>e.preventDefault(),onMouseEnter:()=>w(B),onClick:()=>V(U),children:[U.avatar?(0,c.jsx)("div",{className:"vg-suggestion-avatar",children:(0,c.jsx)(r9.default,{AvatarSize:"X-Small",NoProfile:"Daniel klein",ProfileUrl:U.avatar})}):null,(0,c.jsx)(r6.default,{ButtonIcon:"plus",ButtonVariant:"ghost",ButtononClick:e=>{e&&"function"==typeof e.stopPropagation&&e.stopPropagation(),V(U)},ButtononHover:()=>{},ChildTextAlign:{},DropdownClick:()=>{},IconPlacement:"prefix",children:it(o,m)})]},U.id))})]})}),u&&_&&(0,c.jsx)("div",{className:"mobile-dotphrase-bar",ref:A,style:{bottom:`calc(${E}px)`},children:(0,c.jsx)("div",{className:"mobile-dotphrase-scroll",children:D.map((e,t)=>{let n="Button"===e.Type,r=String(e.name||"").trim();return(0,c.jsxs)("button",{type:"button",className:`mobile-dotphrase-chip ${n?"is-button":""}`,onMouseDown:e=>e.preventDefault(),onClick:n?void 0:()=>V(e),children:[e.avatar?(0,c.jsx)("div",{className:"vg-suggestion-avatar",children:(0,c.jsx)(r9.default,{AvatarSize:"X-Small",NoProfile:"Daniel klein",ProfileUrl:e.avatar})}):null,n?(0,c.jsx)(r6.default,{ButtonIcon:"plus",ButtonVariant:"ghost",ButtononClick:t=>{t&&"function"==typeof t.stopPropagation&&t.stopPropagation(),V(e)},ButtononHover:()=>{},ChildTextAlign:{},DropdownClick:()=>{},IconPlacement:"prefix",children:it(r,m)}):(0,c.jsx)("span",{children:it(r,m)})]},e.id)})})})]}):null}function ii(){let[e]=(0,e_.DF)();return(0,Y.useEffect)(()=>{let t=e=>{let t=null,n=null;if("table-wrapper"===e.getType()){let r=(t=e).__tableKey;r&&(n=(0,g.ns)(r))}else if("table"===e.getType()){let r=(n=e).getNextSibling();r&&"table-wrapper"===r.getType()&&(t=r)}t&&t.remove(),n&&n.remove()},n=e=>{let t=(0,g.rU)(),n=null,r=null;if("table-wrapper"===e.getType()){let t=(n=e).__tableKey;t&&(r=(0,g.ns)(t))}else if("table"===e.getType()){let t=(r=e).getNextSibling();t&&"table-wrapper"===t.getType()&&(n=t)}r&&t.add(r.getKey()),n&&t.add(n.getKey()),(0,g.n1)(t)},r=e.registerCommand(g.gC,e=>{let r=(0,g.vJ)();if((0,g.RT)(r)){let e=r.getNodes();if(e.some(e=>"table-wrapper"===e.getType()||"table"===e.getType()))return t(e[0]),!0}if((0,g.I2)(r)&&r.isCollapsed()){let e=r.anchor,t=e.getNode(),i=t.getTopLevelElement();if(i&&(0,g.ff)(i)){let r=i.getPreviousSibling();if(r&&("table-wrapper"===r.getType()||"table"===r.getType())){let a=""===i.getTextContent(),o=i.getFirstDescendant(),l=t===i||t===o&&0===e.offset;if(a||l)return n(r),!0}}}return!1},3),i=e.registerCommand(g.w$,e=>{let r=(0,g.vJ)();if((0,g.RT)(r)){let e=r.getNodes();if(e.some(e=>"table-wrapper"===e.getType()||"table"===e.getType()))return t(e[0]),!0}if((0,g.I2)(r)&&r.isCollapsed()){let e=r.anchor,t=e.getNode(),i=t.getTopLevelElement();if(i&&(0,g.ff)(i)){let r=i.getNextSibling();if(r&&("table-wrapper"===r.getType()||"table"===r.getType())){let a=""===i.getTextContent(),o=i.getLastDescendant(),l=!1;if((0,g.kF)(t)?l=e.offset===t.getTextContentSize():(0,g.ff)(t)&&(l=e.offset===t.getChildrenSize()),a||l&&(t===i||t===o))return n(r),!0}}}return!1},3);return()=>{r(),i()}},[e]),null}function ia({nodeKey:e,src:t,attachmentType:n}){let[r]=(0,e_.DF)();return(0,c.jsxs)("div",{className:"vg-marketing-gif-editor-preview",contentEditable:!1,"data-attachment-type":n,children:[(0,c.jsx)("img",{src:t,alt:n}),(0,c.jsx)("button",{type:"button",className:"vg-marketing-gif-remove",onClick:t=>{t.preventDefault(),t.stopPropagation(),r.update(()=>{let t=(0,g.ns)(e);t?.remove()})},"aria-label":`Remove ${n}`,title:`Remove ${n}`,children:(0,c.jsx)("i",{className:"fa-regular fa-xmark"})})]})}class io extends g.Kp{__src;__attachmentType;static getType(){return"text-marketing-attachment"}static clone(e){return new io(e.__src,e.__attachmentType,e.__key)}constructor(e,t,n){super(n),this.__src=e,this.__attachmentType=t}isInline(){return!1}canInsertTextBefore(){return!1}canInsertTextAfter(){return!0}createDOM(){let e=document.createElement("div");return e.className="vg-marketing-attachment-node",e}updateDOM(){return!1}decorate(e){return(0,c.jsx)(ia,{nodeKey:this.getKey(),src:this.__src,attachmentType:this.__attachmentType})}getTextContent(){return""}getSrc(){return this.__src}getAttachmentType(){return this.__attachmentType}exportJSON(){return{type:"text-marketing-attachment",version:1,src:this.__src,attachmentType:this.__attachmentType}}static importJSON(e){return il(e.src,e.attachmentType)}}function il(e,t){return(0,g.pT)(new io(e,t))}function is(e){return e instanceof io}function iu({onChange:e}){let[t]=(0,e_.DF)();return(0,Y.useEffect)(()=>t.registerUpdateListener(({editorState:t})=>{e(t)}),[t,e]),null}function ic(){let[e]=(0,e_.DF)();return(0,Y.useEffect)(()=>{let t=e.registerCommand(g.if,()=>!0,4),n=e.registerCommand(g.XK,()=>!0,4),r=e.registerCommand(g.FE,()=>!0,4);return()=>{t(),n(),r()}},[e]),null}function id({AiPopupSetValue:e,Title:t,Style:n,PlaceHolder:r,baseUrl:i,AiControlPopup:a=!1,OnChange:o,OnChangeTone:l,OnClickRegenerate:s,OnChangeRange:u,OnClickUseThisText:d,OnClickCancle:p,OnClickClose:h,OnPopupStateChange:m,OnClickNext:f,OnClickPrevious:b,AiClickEvent:v,SetValue:C,ToolbarRawData:y={FontFormat:!0,Fontfamily:!0,Fontsize:!0,Bold:!0,Fontcolor:!0,Backgroun
16dColor:!0,Link:!0,Underline:!0,Alignment:!0,Strikethrough:!0,Clear:!0,Italic:!0,InsertNames:!0,Undo:!1,Redo:!1,NumberListButton:!1,BulletListButton:!1,Table:!1},AiPopupToolbarRawData:x={FontFormat:!0,Fontfamily:!0,Fontsize:!0,Bold:!0,Fontcolor:!0,BackgroundColor:!0,Link:!0,Underline:!0,Alignment:!0,Strikethrough:!0,Clear:!0,Italic:!0,InsertNames:!0,Undo:!1,Redo:!1,NumberListButton:!1,BulletListButton:!1,Table:!1},setEditorData:w,RawData:_,errorMessage:k,setErrorMessage:E,MaximumLength:S,MaximumLengthForAi:T,ToneMetadata:N,setCharCount:L,isSubmit:A=!1,setSubmit:I,CharacterCountEnableForAi:F=!1,DialogShowHide:P=!0,editorData:O,AutoFocus:M,AiPopupTextEditor:R=!1,AiPopupOpen:j=!0,ToolbarState:D,setState:B,state:U,AiPopupBaseUrl:$="",TextEditorHeight:H="",AiTextEditorHeight:z="",ApiRequestParams:V,ExternalPayload:K,EditorEnabled:J,ScrollTargetRef:Z,IsSuggestionView:q=!1,SuggestionTriggerChars:W=[""],DropdownValue:G=[],OnSuggestionChange:X,Disabled:ee,ExpandEditorMobile:et,Variant:en="Default",TextMarketingLinkMenuItems:er,OnTextMarketingLinkInsert:ei,GifApiKey:ea,OnGifSelect:eo,OnGifRemove:el,OnImageUpload:es,ImageUrl:eu,OnImageRemove:ed,IsEmptyValue:eg=!1,IsAllowEnter:ep=!0,IsAllowEnterFromAI:eh=!0,CountryId:ef=0,EmojiPickerAutoFocus:eb=!1,GIFPickerAutoFocus:ev=!1,GlassDesign:eC=!1,ShortLinkBaseUrl:ey="https://tm.bookitall.com/",customClassName:eT="",NativeAction:eN=13,Footer:eL=2,TimerCount:eA=0,IsFullLength:eI=!1,CloseBackTitle:eF="From Control",VagaroToolkit:eP=1}){let{historyState:eO}=(0,Y.useContext)(em),{settings:{isCollab:eM,isAutocomplete:eR,isMaxLength:ej,hasLinkAttributes:eD,isRichText:eB,showTreeView:eU,showTableOfContents:e$,tableCellMerge:ez,tableCellBackgroun
16dColor:eZ}}=ec(),eq=eM?"Enter some collaborative rich text...":eB?(0,c.jsx)(c.Fragment,{children:r}):(0,c.jsx)(c.Fragment,{children:"Enter description"}),[eW,eG]=(0,Y.useState)(null),[eX]=(0,e_.DF)(),[eY,eQ]=(0,Y.useState)(eX),[e1,e0]=(0,Y.useState)(!1),[e5,e4]=(0,Y.useState)("text"),{toolbarState:e2}=ex(),[e3,e7]=(0,Y.useState)({}),[e6,e8]=(0,Y.useState)(null),e9=(0,Y.useRef)(""),te=(0,Y.useRef)(!1),tt=(0,Y.useCallback)(()=>{te.current=!0},[]),tn=(0,Y.useRef)(new Map),[tr,ti]=(0,Y.useState)(""),ta=e=>e?e.replace(/\r\n/g," ").replace(/\r/g," ").replace(/\n/g," "):"",to=e=>e?e.replace(/\u2018/g,"'").replace(/\u2019/g,"'").replace(/\u201C/g,'"').replace(/\u201D/g,'"').replace(/\u2013/g,"-").replace(/\u2014/g,"-").replace(/\u2026/g,"...").replace(/\u200B/g," ").replace(/\u00A0/g," ").trim():"",tl=e=>{if(!e)return 0;if("TextMarketing"===en){let t=to(e);try{let e=new Q.ih(t,"auto",!1);return e?.numberOfCharacters??t.length}catch{return t.length}}return[...e.replace(/\u200B/g,"").replace(/\s+/g," ").trim()].length},ts=e=>e.getChildren().map(e=>{try{return e.getTextContent()}catch{return""}}).join("\n"),tu=(e,t)=>{"TextMarketing"===en&&e&&eX.update(()=>{let n=(0,g.zl)(io);if(n.some(n=>is(n)&&n.getSrc()===e&&n.getAttachmentType()===t))return;n.forEach(e=>{e.remove()});let r=(0,g.Ni)(),i=il(e,t),a=r.getFirstChild();a?a.insertBefore(i):(r.append(i),r.append((0,g.lJ)())),r.selectEnd()})};(0,Y.useEffect)(()=>{if("TextMarketing"===en){if(e6?.displayUrl)return void tu(e6.displayUrl,"gif");eu&&tu(eu,"image")}},[en,e6?.displayUrl,eu]),(0,Y.useEffect)(()=>{C&&"TextMarketing"!==en&&(C&&/<\/?[a-z][\s\S]*>/i.test(C)||ti(C))},[C]),(0,Y.useEffect)(()=>{let e=!!J;if(eX.setEditable(e),e&&M){let e=0,t=0,n=()=>{let e=eX.getRootElement();if(!e)return!1;try{e.focus()}catch{}let t=Z?.current??e;try{t.scrollIntoView({block:"center",inline:"nearest"})}catch{}return!0};return e=requestAnimationFrame(()=>{n()||(t=requestAnimationFrame(()=>{n()}))}),()=>{e&&cancelAnimationFrame(e),t&&cancelAnimationFrame(t)}}},[eX,J,M]),(0,Y.useEffect)(()=>{if(!eX)return;let e=requestAnimationFrame(()=>{eX.getEditorState().read(()=>{let e=(0,g.Ni)(),t="";if("TextMarketing"===en)t=ts(e);else for(let n of e.getChildren())try{if(n.getType?.()==="table")continue;t+=n.getTextContent()}catch{}L(tl(t))})});return()=>cancelAnimationFrame(e)},[tr,eX,L,en]),(0,Y.useEffect)(()=>{e2&&B?.(e2)},[e2,B]),window.windowEditor=()=>{};let tc=(e,t={})=>{let{selectEnd:n=!1}=t,r=(e=>{if(!e)return"";let t=document.createElement("textarea");return t.innerHTML=e,t.value})((e??"").toString()),i=/<[a-z][\s\S]*?>/i.test(r),a="TextMarketing"===en&&!i&&/[\r\n]/.test(r)?r.replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/\n/g,"<br>"):r;eX.update(()=>{let e=(0,g.Ni)();"TextMarketing"===en?e.getChildren().filter(e=>!is(e)).forEach(e=>e.remove()):e.clear();let t=(0,eJ.d)(eX,new DOMParser().parseFromString(""===a?"<p></p>":a,"text/html")),r=t.filter(e=>{try{let t="function"==typeof e.getTextContent?e.getTextContent():"";if(t&&t.toString().trim().length>0||"function"==typeof e.getChildrenCount&&e.getChildrenCount()>0)return!0;if("function"==typeof e.getType){let t=e.getType();if(t&&"paragraph"!==t)return!0}return!1}catch{return!0}}),i=r.length>0?t.filter(e=>{if(r.includes(e))return!0;try{return"function"==typeof e.getType&&"paragraph"===e.getType()&&("function"!=typeof e.getChildrenCount||0===e.getChildrenCount())&&!("function"==typeof e.getTextContent&&e.getTextContent()?.toString().trim())}catch{return!1}}):t,o=i.filter(e=>{try{return(0,g.ff)(e)||(0,g.Cy)(e)}catch{return!1}});if(o.length>0)e.append(...o);else if(i.length>0){let t=(0,g.lJ)();i.forEach(e=>{try{t.append(e)}catch{}}),e.append(t)}else e.append((0,g.lJ)());n&&e.selectEnd()})},[td,tg]=(0,Y.useState)(!1),[tp,th]=(0,Y.useState)(!1);(0,Y.useEffect)(()=>{let e=eX.getRootElement();if(e)if(tp){try{e.blur()}catch{}e.setAttribute("inert",""),e.classList.add("vg-ai-popup-active")}else e.removeAttribute("inert"),e.classList.remove("vg-ai-popup-active")},[tp,eX]);let tm=e=>(e||"").replace(/\s+/g," ").trim(),tf=()=>{if(!ee&&(k&&E(""),o)){let e="",t="",n=!1;eX.getEditorState().read(()=>{let r=(0,g.Ni)();e=(0,eJ.g)(eX,null);let i="";
16"TextMarketing"===en?i=ts(r):r.getChildren().forEach(e=>{try{if("function"==typeof e.getType&&"table"===e.getType()){n=!0;return}i+=e.getTextContent()}catch{}}),t=i});let r=t&&t.trim().length>0||n?e:"",i=te.current;if(te.current=!1,r!==e9.current||i)if(r!==e9.current&&(e9.current=r),"TextMarketing"===en){let e,n=tl(t);if(eu)e=4===ef?15:3;else{let n=to(t);try{e=n?new Q.ih(n,"auto",!1).segments.length:1}catch{e=1}}o({html:r,plain:t,characterCount:n,credit:e,isMaxLengthExceeded:i})}else o({html:r,plain:t})}};(0,Y.useEffect)(()=>{"TextMarketing"===en&&eX.update(()=>{let e=(0,g.Ni)();0===e.getChildrenSize()&&e.append((0,g.lJ)())})},[eX,en]),(0,Y.useEffect)(()=>{if(null==C)return;let e="";eX.getEditorState().read(()=>{e=(0,eJ.g)(eX,null)}),tm(e)!==tm(C)&&tc(C,{selectEnd:!0})},[eX,C]),(0,Y.useEffect)(()=>{if(!M)return;let e=eX.getRootElement();e&&M&&(e.focus(),e.scrollIntoView())},[eX,M]);let tb=e&&""!==e.InputDescription?e:e3;return(0,Y.useEffect)(()=>{e&&""!==e.InputDescription?e7(e):C&&""!==C.trim()?e7({Index:0,InputDescription:C,Tone:"professional",Range:50}):eg&&e7({Index:0,InputDescription:"",Tone:"professional",Range:50})},[e,C,eg]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:`editor-container ${eU?"tree-view":""} ${!eB?"plain-text":""}`,children:[S&&(0,c.jsx)(n3,{maxLength:S,countFn:"TextMarketing"===en?tl:void 0,onMaxLengthExceeded:"TextMarketing"===en?tt:void 0}),M&&(0,c.jsx)(ew.x,{}),!ep&&(0,c.jsx)(ic,{}),"TextMarketing"!==en&&(0,c.jsx)(nn,{}),eB?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(eV.$,{contentEditable:(0,c.jsx)("div",{className:`editor-scroller ${H||z?"editor-scroller-fixed-height":""}`,style:{height:H||z},children:(0,c.jsxs)("div",{className:`editor ${td&&!ee?"vg-active-ai-button":""}`,ref:e=>{null!==e&&eG(e)},onMouseEnter:()=>tg(!0),onMouseLeave:()=>tg(!1),children:[(0,c.jsx)(r5,{placeholder:eq,readOnly:ee,className:"TextMarketing"===en?"ContentEditable__root vg-textmarketing-editable":void 0}),(0,c.jsxs)("div",{className:"vg-texteditor-Ai-icon",children:[a&&(0,c.jsx)(r6.default,{ButtonVariant:"AiWithIcon",ButtononClick:e=>(e=>{if(!ee){if(!eg&&!document.querySelector('[data-lexical-text="true"]')){th(!1),E("In this instance, we need more details before Vera can generate text for you.");return}j&&(th(!0),v&&v(e))}})(e),ButtononHover:()=>{},children:"Button"}),tp&&P&&(0,c.jsx)(r7.default,{AiControlId:"AiControlId",ApiRequestParams:V,ExternalPayload:K,ApiUrl:i,AiPopupSetValue:tb,setSubmit:I,isSubmit:A,baseUrl:i,CloseBackTitle:eF,Footer:eL,Name:"",NativeAction:eN,IsFullLength:eI,MaximumLength:T,CharacterCountEnable:F,OnClickCancle:()=>{th(!1),p&&p()},OnPopupStateChange:m,OnChangeRange:(e,t)=>{u&&u(e,t)},OnChangeTone:(e,t)=>{l&&l(e,t)},OnClickClose:()=>{th(!1),h&&h()},OnClickNext:e=>{f&&f(e)},OnClickPrevious:(e,t)=>{b&&b(e,t)},OnClickRegenerate:(e,t)=>{s&&s(e,t)},OnClickUseThisText:(e,t)=>((e,t)=>{th(!1);try{eX.setEditable(!0)}catch{}let n=(t?.InputDescription??"").toString();if("TextMarketing"===en){let e;e=new Map,eX.getEditorState().read(()=>{(0,g.zl)(rK).forEach(t=>{if(t instanceof rK){let{shortUrl:n,actualUrl:r,label:i}=t.exportJSON();e.set(n,{label:i,actualUrl:r})}})}),eX.update(()=>{let t=(0,g.Ni)();t.getChildren().filter(e=>!is(e)).forEach(e=>e.remove());let r=(0,g.lJ)();ta(n).split(/(https?:\/\/\S+)/).forEach((t,n)=>{if(t)if(n%2==1){let n=t.replace(/[.,!?;:'")\]]+$/,""),i=t.slice(n.length),a=e.get(n),o=a?.actualUrl??n,l=a?.label??n;r.append(rJ(l,n,o)),i&&r.append((0,g.sT)(i)),r.append((0,g.sT)(" "))}else r.append((0,g.sT)(t))}),t.append(r),t.selectEnd()})}else tc(n,{selectEnd:!0});queueMicrotask(()=>{try{eX.getRootElement()?.focus()}catch{}}),d&&d(e,t)})(e,t),ToolbarRawData:[{Index:0,InputDescription:"I am salon professional Nikunj sir",Range:100,Tone:"energetic"},{Index:1,InputDescription:"I am salon professional Sagar Battul",Range:75,Tone:"trendy"},{Index:2,InputDescription:"I am salon professional The issue arises from the fact that when you're updating the history in your",Range:25,Tone:"casual"},{Index:3,InputDescription:"I am salon professional The ButtonTitle property allows users to input custom text for the button that triggers the opening of the popup component. This title defines the label displayed on the button, guiding users on its function.",Range:50,Tone:"motivational"},{Index:4,InputDescription:"I am salon professional Sagar Battul",Range:0,Tone:"professional"}],AiPopupToolbarRawData:x,TimerCount:eA,ToneMetadata:N,VagaroToolkit:eP,Disable:!1,IsEditor:R,ToolbarState:U,AiTextEditorHeight:z,InitialPayloadMessage:tb,IsAllowEnter:eh,customClassName:eT})]})]})}),ErrorBoundary:ek.R}),(0,c.jsx)(ir,{enabled:!!(q&&J),triggerChars:W||[""],dropdownValue:G||[],onChange:X,scrollTargetRef
16:Z,ExpandEditorMobile:et}),(0,c.jsx)(eK.D,{onChange:e=>{ee||(e.read(()=>{let e=(0,g.Ni)(),t="";"TextMarketing"===en?t=ts(e):e.getChildren().forEach(e=>{try{if("function"==typeof e.getType&&"table"===e.getType())return;t+=e.getTextContent()}catch{}}),L(tl(t))}),tf())}}),"TextMarketing"===en&&(0,c.jsx)(function({maxLength:e}){let[t]=(0,e_.DF)();return(0,Y.useEffect)(()=>t.registerCommand(g.w,n=>{let r=n.clipboardData?.getData("text/plain");if(!r)return!1;let i=ta(r),a=!1;if(t.getEditorState().read(()=>{let t=(0,g.Ni)(),n=(0,g.vJ)(),r=ts(t),o=(0,g.I2)(n)?ta(n.getTextContent()):"",l=tl(r),s=tl(o),u=tl(i);a=void 0===e||l-s+u<=e}),n.preventDefault(),!a)return te.current=!0,queueMicrotask(tf),!0;let o=(0,g.vJ)();return(0,g.I2)(o)&&r.split(/\r\n|\r|\n/).forEach((e,t)=>{t>0&&o.insertLineBreak(),e&&o.insertText(e)}),!0},4),[t,e]),null},{maxLength:S}),"TextMarketing"===en&&(0,c.jsx)(function(){let[e]=(0,e_.DF)();return(0,Y.useEffect)(()=>e.registerMutationListener(io,t=>{e.getEditorState().read(()=>{t.forEach((e,t)=>{if("created"===e||"updated"===e){let e=(0,g.ns)(t);is(e)&&tn.current.set(t,e.getAttachmentType());return}if("destroyed"===e){let e=tn.current.get(t);tn.current.delete(t),"gif"===e&&(e8(null),el?.()),"image"===e&&ed?.()}})})}),[e]),null},{}),(0,c.jsx)(r8,{defaultValue:"TextMarketing"===en?ta(tr||""):tr,variant:en}),(0,c.jsx)(nM,{}),(0,c.jsx)(eS,{}),(0,c.jsx)(n2,{maxDepth:7}
16),(0,c.jsx)(tV,{hasCellMerge:ez,hasCellBackgroundColor:eZ}),(0,c.jsx)(ii,{}),(0,c.jsx)(n4,{hasLinkAttributes:eD}),(0,c.jsx)(nX,{}),(0,c.jsx)(iu,{onChange:e=>{try{let t=e.toJSON();w(JSON.stringify(t))}catch(e){w(null)}}}),(0,c.jsx)(eE.G,{externalHistoryState:eO})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(eH,{contentEditable:(0,c.jsx)(r5,{placeholder:eq}),ErrorBoundary:ek.R}),(0,c.jsx)(eE.G,{externalHistoryState:eO})]}),eW&&"TextMarketing"!==en&&(0,c.jsx)(r3,{anchorElem:eW,isLinkEditMode:e1,setIsLinkEditMode:e0}),eR&&(0,c.jsx)(tQ,{}),(0,c.jsx)("div",{children:e$&&(0,c.jsx)(rr,{})})]}),eB&&(0,c.jsx)("div",{onMouseDownCapture:e=>{if(!e.currentTarget.contains(e.target)){let t=e.target.tagName;if("INPUT"===t||"TEXTAREA"===t||"SELECT"===t)return;let n=document.getElementById("ColorPicker");if(n&&n.contains(e.target))return}e.preventDefault()},onPointerDownCapture:e=>{if(!e.currentTarget.contains(e.target)){let t=e.target.tagName;if("INPUT"===t||"TEXTAREA"===t||"SELECT"===t)return;let n=document.getElementById("ColorPicker");if(n&&n.contains(e.target))return}e.preventDefault()},onClickCapture:e=>{if(!e.target.closest(".toolbar-item")){if(!e.currentTarget.contains(e.target)){let t=e.target.tagName;if("INPUT"===t||"TEXTAREA"===t||"SELECT"===t)return;let n=document.getElementById("ColorPicker");if(n&&n.contains(e.target))return}try{eY?.focus()}catch{}}},tabIndex:-1,children:"TextMarketing"===en?(0,c.jsx)(r1,{editor:eX,ToolbarRawData:y,disabled:ee,AiControlPopup:a,TextMarketingLinkMenuItems:er,OnTextMarketingLinkInsert:ei,GifApiKey:ea,OnGifSelect:eo,OnImageUpload:es,textMarketingGif:e6,setTextMarketingGif:e8,textMarketingImage:eu,hovered:td,maxLength:S,EmojiPickerAutoFocus:eb,GIFPickerAutoFocus:ev,GlassDesign:eC,ShortLinkBaseUrl:ey}):(0,c.jsx)(rV,{editor:eX,activeEditor:eY,setActiveEditor:eQ,setIsLinkEditMode:e0,activeTab:e5,setActiveTab:e4,RawData:_,ToolbarRawData:y,isEditable:!0,floatingAnchorElem:null,setFloatingAnchorElem:function(e){throw Error("Function not implemented.")},isSmallWidthViewport:!1,setIsSmallWidthViewport:function(e){throw Error("Function not implemented.")},hovered:td,disabled:ee,ExpandEditorMobile:et,AiControlPopup:a})})]})}class ig extends g.Ey{static getType(){return"hashtag"}static clone(e){return new ig(e.__text,e.__key)}constructor(e,t){super(e,t)}createDOM(e){let t=super.createDOM(e);return(0,d.ZB)(t,e.theme.hashtag),t}static importJSON(e){let t=function(e=""){return(0,g.pT)(new ig(e))}(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"hashtag"}}canInsertTextBefore(){return!1}isTextEntity(){return!0}}class ip extends g.fG{static getType(){return"mark"}static clone(e){return new ip(e.__ids,e.__key)}static importDOM(){return null}static importJSON(e){let t=ih(e.ids);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),ids:Array.from(this.getIDs()),type:"mark",version:1}}constructor(e,t){super(t),this.__ids=e||[]}createDOM(e){let t=document.createElement("mark");return(0,d.ZB)(t,e.theme.mark),this.__ids.length>
161&&(0,d.ZB)(t,e.theme.markOverlap),t}updateDOM(e,t,n){let r=e.__ids,i=this.__ids,a=r.length,o=i.length,l=n.theme.markOverlap;return a!==o&&(1===a?2===o&&(0,d.ZB)(t,l):1===o&&(0,d.HE)(t,l)),!1}hasID(e){let t=this.getIDs();for(let n=0;n<t.length;n++)if(e===t[n])return!0;return!1}getIDs(){let e=this.getLatest();return im(e)?Array.from(e.__ids):[]}addID(e){let t=this.getWritable();if(im(t)){let n=Array.from(t.__ids);t.__ids=n;for(let t=0;t<n.length;t++)if(e===n[t])return;n.push(e)}}deleteID(e){let t=this.getWritable();if(im(t)){let n=Array.from(t.__ids);t.__ids=n;for(let t=0;t<n.length;t++)if(e===n[t])return void n.splice(t,1)}}insertNewAfter(e,t=!0){let n=ih(this.__ids);return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!(0,g.I2)(t)||"html"===n)return!1;let r=t.anchor,i=t.focus,a=r.getNode(),o=i.getNode(),l=t.isBackward()?r.offset-i.offset:i.offset-r.offset;return this.isParentOf(a)&&this.isParentOf(o)&&this.getTextContent().length===l}excludeFromCopy(e){return"clone"!==e}}function ih(e){return(0,g.pT)(new ip(e))}function im(e){return e instanceof ip}var ib=(u=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}).__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u;class iv extends g.fG{static getType(){return"overflow"}static clone(e){return new iv(e.__key)}static importJSON(e){return(0,g.pT)(new iv)}static importDOM(){return null}constructor(e){super(e),this.__type="overflow"}exportJSON(){return{...super.exportJSON(),type:"overflow"}}createDOM(e){let t=document.createElement("span"),n=e.theme.characterLimit;return"string"==typeof n&&(t.className=n),t}updateDOM(e,t){return!1}insertNewAfter(e,t=!0){return this.getParentOrThrow().insertNewAfter(e,t)}excludeFromCopy(){return!0}static transform(){return e=>{e instanceof iv||ib(204),e.isEmpty()&&e.remove()}}}function iC({nodeKey:e}){let[t]=(0,e_.DF)(),[n,r,i]=rv(e),a=(0,Y.useCallback)(e=>{let r=(0,g.vJ)();return n&&(0,g.RT)(r)&&(e.preventDefault(),t.update(()=>{r.getNodes().forEach(e=>{e instanceof iy&&e.remove()})})),!1},[t,n]);return(0,Y.useEffect)(()=>(0,d.Sd)(t.registerCommand(g.d8,a=>{let o=t.getElementByKey(e);return a.target===o&&(a.shiftKey||i(),r(!n),!0)},1),t.registerCommand(g.w$,a,1),t.registerCommand(g.gC,a,1)),[i,t,n,e,a,r]),(0,Y.useEffect)(()=>{let r=t.getElementByKey(e),i="selected";null!==r&&(n?(0,d.ZB)(r,i):(0,d.HE)(r,i))},[t,n,e]),null}(0,g.gu)("INSERT_HORIZONTAL_RULE_COMMAND");class iy extends g.Kp{static getType(){return"horizontalrule"}static clone(e){return new iy(e.__key)}static importJSON(e){return iw()}static importDOM(){return{hr:()=>({conversion:ix,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(e){let t=document.createElement("hr");return(0,d.ZB)(t,e.theme.hr),t}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}decorate(){return(0,c.jsx)(iC,{nodeKey:this.__key})}}function ix(){return{node:iw()}}function iw(){return(0,g.pT)(new iy)}let i_=[X.jL,U,O,X.dJ,ns,tB,eq,e4,ig,nC,v,h,iv,tK,iy,ip,nH,nK,nq,rX,rK,rS],ik={autocomplete:"PlaygroundEditorTheme__autocomplete",blockCursor:"PlaygroundEditorTheme__blockCursor",characterLimit:"PlaygroundEditorTheme__characterLimit",code:"PlaygroundEditorTheme__code",codeHighlight:{atrule:"PlaygroundEditorTheme__tokenAttr",attr:"PlaygroundEditorTheme__tokenAttr",boolean:"PlaygroundEditorTheme__tokenProperty",builtin:"PlaygroundEditorTheme__tokenSelector",cdata:"PlaygroundEditorTheme__tokenComment",char:"PlaygroundEditorTheme__tokenSelector",class:"PlaygroundEditorTheme__tokenFunction","class-name":"PlaygroundEditorTheme__tokenFunction",comment:"PlaygroundEditorTheme__tokenComment",constant:"PlaygroundEditorTheme__tokenProperty",deleted:"PlaygroundEditorTheme__tokenProperty",doctype:"PlaygroundEditorTheme__tokenComment",entity:"PlaygroundEditorTheme__tokenOperator",function:"PlaygroundEditorTheme__tokenFunction",important:"PlaygroundEditorTheme__tokenVariable",inserted:"PlaygroundEditorTheme__tokenSelector",keyword:"PlaygroundEditorTheme__tokenAttr",namespace:"PlaygroundEditorTheme__tokenVariable",number:"PlaygroundEditorTheme__tokenProperty",o
16perator:"PlaygroundEditorTheme__tokenOperator",prolog:"PlaygroundEditorTheme__tokenComment",property:"PlaygroundEditorTheme__tokenProperty",punctuation:"PlaygroundEditorTheme__tokenPunctuation",regex:"PlaygroundEditorTheme__tokenVariable",selector:"PlaygroundEditorTheme__tokenSelector",string:"PlaygroundEditorTheme__tokenSelector",symbol:"PlaygroundEditorTheme__tokenProperty",tag:"PlaygroundEditorTheme__tokenProperty",url:"PlaygroundEditorTheme__tokenOperator",variable:"PlaygroundEditorTheme__tokenVariable"},embedBlock:{base:"PlaygroundEditorTheme__embedBlock",focus:"PlaygroundEditorTheme__embedBlockFocus"},hashtag:"PlaygroundEditorTheme__hashtag",heading:{h1:"PlaygroundEditorTheme__h1",h2:"PlaygroundEditorTheme__h2",h3:"PlaygroundEditorTheme__h3",h4:"PlaygroundEditorTheme__h4",h5:"PlaygroundEditorTheme__h5",h6:"PlaygroundEditorTheme__h6"},hr:"PlaygroundEditorTheme__hr",image:"editor-image",indent:"PlaygroundEditorTheme__indent",inlineImage:"inline-editor-image",layoutContainer:"PlaygroundEditorTheme__layoutContainer",layoutItem:"PlaygroundEditorTheme__layoutItem",link:"PlaygroundEditorTheme__link",list:{checklist:"PlaygroundEditorTheme__checklist",listitem:"PlaygroundEditorTheme__listItem",listitemChecked:"PlaygroundEditorTheme__listItemChecked",listitemUnchecked:"PlaygroundEditorTheme__listItemUnchecked",nested:{listitem:"PlaygroundEditorTheme__nestedListItem"},olDepth:["PlaygroundEditorTheme__ol1","PlaygroundEditorTheme__ol2","PlaygroundEditorTheme__ol3","PlaygroundEditorTheme__ol4","PlaygroundEditorTheme__ol5"],ul:"PlaygroundEditorTheme__ul"},ltr:"PlaygroundEditorTheme__ltr",mark:"PlaygroundEditorTheme__mark",markOverlap:"PlaygroundEditorTheme__markOverlap",paragraph:"PlaygroundEditorTheme__paragraph",quote:"PlaygroundEditorTheme__quote",rtl:"PlaygroundEditorTheme__rtl",table:"PlaygroundEditorTheme__table",tableCell:"PlaygroundEditorTheme__tableCell",tableCellActionButton:"PlaygroundEditorTheme__tableCellActionButton",tableCellActionButtonContainer:"PlaygroundEditorTheme__tableCellActionButtonContainer",tableCellEditing:"PlaygroundEditorTheme__tableCellEditing",tableCellHeader:"PlaygroundEditorTheme__tableCellHeader",tableCellPrimarySelected:"PlaygroundEditorTheme__tableCellPrimarySelected",tableCellResizer:"PlaygroundEditorTheme__tableCellResizer",tableCellSelected:"PlaygroundEditorTheme__tableCellSelected",tableCellSortedIndicator:"PlaygroundEditorTheme__tableCellSortedIndicator",tableResizeRuler:"PlaygroundEditorTheme__tableCellResizeRuler",tableRowStriping:"PlaygroundEditorTheme__tableRowStriping",tableSelected:"PlaygroundEditorTheme__tableSelected",tableSelection:"PlaygroundEditorTheme__tableSelection",text:{bold:"PlaygroundEditorTheme__textBold",code:"PlaygroundEditorTheme__textCode",italic:"PlaygroundEditorTheme__textItalic",strikethrough:"PlaygroundEditorTheme__textStrikethrough",subscript:"PlaygroundEditorTheme__textSubscript",superscript:"PlaygroundEditorTheme__textSuperscript",underline:"PlaygroundEditorTheme__textUnderline",underlineStrikethrough:"PlaygroundEditorTheme__textUnderlineStrikethrough"}};function iE(e){return/^rgb\(\d+, \d+, \d+\)$/.test(e)?e:""}var iS=n(94089),iT=n(27142),iN=n(30580);function iL(){let e=(0,g.Ni)();if(null===e.getFirstChild()){let t=(0,X.fi)("h1");t.append((0,g.sT)("Welcome to the playground")),e.append(t);let n=(0,X.xi)();n.append((0,g.sT)("In case you were wondering what the black box at the bottom is â it's the debug view, showing the current state of the editor. You can disable it by pressing on the settings control in the bottom-left of your screen and toggling the debug view setting.")),e.append(n);let r=(0,g.lJ)();r.append((0,g.sT)("The playground is a demo environment built with "),(0,g.sT)("@lexical/react").toggleFormat("code"),(0,g.sT)("."),(0,g.sT)(" Try typing in "),(0,g.sT)("some text").toggleFormat("bold"),(0,g.sT)(" with "),(0,g.sT)("different").toggleFormat("italic"),(0,g.sT)(" formats.")),e.append(r);let i=(0,g.lJ)();i.append((0,g.sT)("Make sure to check out the various plugins in the toolbar. You can also use #hashtags or @-mentions too!")),e.append(i);let a=(0,g.lJ)();a.append((0,g.sT)("If you'd like to find out more about Lexical, you can:")),e.append(a);let o=K("bullet");o.append(D().append((0,g.sT)("Visit the "),f("https://lexical.dev/").append((0,g.sT)("Lexical website")),(0,g.sT)(" for documentation and more information.")),D().append((0,g.sT)("
16Check out the code on our "),f("https://github.com/facebook/lexical").append((0,g.sT)("GitHub repository")),(0,g.sT)(".")),D().append((0,g.sT)("Playground code can be found "),f("https://github.com/facebook/lexical/tree/main/packages/lexical-playground").append((0,g.sT)("here")),(0,g.sT)(".")),D().append((0,g.sT)("Join our "),f("https://discord.com/invite/KmG4wQnnD9").append((0,g.sT)("Discord Server")),(0,g.sT)(" and chat with the team."))),e.append(o);let l=(0,g.lJ)();l.append((0,g.sT)("Lastly, we're constantly adding cool new features to this playground. So make sure you check back here when you next get a chance :).")),e.append(l)}}let iA=(0,Y.forwardRef)(({AutoFocus:e=!1,Required:t=!1,ValidationMessage:n="This field is required.",ToolbarRawData:r={FontFormat:!1,Fontfamily:!0,Fontsize:!0,Bold:!0,Fontcolor:!0,BackgroundColor:!0,Link:!0,Underline:!0,Alignment:!0,Strikethrough:!0,Clear:!0,Italic:!0,InsertNames:!0,Undo:!1,Redo:!1,NumberListButton:!1,BulletListButton:!1,Table:!1},AiPopupToolbarRawData:i={FontFormat:!1,Fontfamily:!0,Fontsize:!0,Bold:!0,Fontcolor:!0,BackgroundColor:!0,Link:!0,Underline:!0,Alignment:!0,Strikethrough:!0,Clear:!0,Italic:!0,InsertNames:!0,Undo:!1,Redo:!1,NumberListButton:!1,BulletListButton:!1,Table:!1},AiPopupSetValue:a,RawData:o,Title:l="Description",SubTitle:s="",Style:u=!0,PlaceHolder:d="",MaximumLength:p,MaximumLengthForAi:h,OnChange:m,OnBlur:f,OnClickCancle:b,OnClickClose:v,OnPopupStateChange:C,OnClickUseThisText:y,OnChangeRange:x,OnChangeTone:w,OnClickNext:_,OnClickPrevious:k,OnClickRegenerate:E,AiClickEvent:S,AiControlPopup:T,SetValue:N="",ToneMetadata:L,CharacterCountEnable:A=!1,baseUrl:I,CharacterCountEnableForAi:F=!1,DialogShowHide:P=!0,AiPopupTextEditor:M=!1,AiPopupOpen:R=!0,ToolbarState:j,setState:D,state:B,AiPopupBaseUrl:U="",TextEditorHeight:$="",AiTextEditorHeight:H="",ApiRequestParams:z,ExternalPayload:V,IsSuggestionView:K=!1,SuggestionTriggerChars:J=[""],DropdownValue:Z=[],OnSuggestionChange:q,Disabled:W=!1,ShowRequiredFieldMark:X,InfoTooltipMessage:ee,ExpandEditorMobile:et,Variant:en="Default",TextMarketingLinkMenuItems:er,OnTextMarketingLinkInsert:ei,GifApiKey:ea,OnGifSelect:eo,OnGifRemove:el,OnImageUpload:es,ImageUrl:eu,OnImageRemove:ed,IsEmptyValue:ep=!1,IsAllowEnter:eh=!0,IsAllowEnterFromAI:em=!0,CountryId:eb=0,ImageDragDropApiUrl:ev,ImageDragDropFileExtensions:eC,ImageDragDropMaxFileSize:ex,OnImageDrop:ew,EmojiPickerAutoFocus:e_=!1,GIFPickerAutoFocus:ek=!1,GlassDesign:eE=!1,ShortLinkBaseUrl:eS="https://tm.bookitall.com/",customClassName:eT="",NativeAction:eN=13,Footer:eL=2,TimerCount:eA=0,IsFullLength:eI=!1,CloseBackTitle:eF="From Control",VagaroToolkit:eP=1},eO)=>{let{settings:{isCollab:eM,emptyEditor:eR}}=ec(),ej=(0,Y.useRef)(null),eD=(0,Y.useRef)(!1),eB=(0,Y.useRef)(null),eU=(0,Y.useRef)(0),[e$,eH]=(0,Y.useState)(!1),[ez,eV]=(0,Y.useState)(0),eK=(0,Y.useRef)(null),eJ=(0,Y.useRef)(eu),[eZ,eq]=(0,Y.useState)(null),[eW,eG]=(0,Y.useState)(""),[eX,eY]=(0,Y.useState)(!1),[eQ,e1]=(0,Y.useState)(0),[e0,e5]=(0,Y.useState)(()=>"TextMarketing"!==en?"":N?N.replace(/<[^>]*>/g,""):""),[e4,e2]=(0,Y.useState)(!1),[e3,e7]=(0,Y.useState)(!1),e6=rA.Wp.CheckIsFromProAppWithoutState(),e8=()=>{let e=ej.current?.querySelector(".ContentEditable__root");return(e?e.innerText:"").replaceAll("â","").trim()},e9=()=>e8().length>0||"TextMarketing"===en&&!!eu,te=(0,Y.useMemo)(()=>{if("TextMarketing"!==en)return 0;if(eu)return 4===eb?15:3;let e=e0.replace(/Â /g," ").trim();if(!e)return 1;try{return new Q.ih(e,"auto",!1).segments.length}catch{return 1}},[en,eu,e0]),tt={editorState:eM?null:eR?eZ:iL,html:{import:function(){let e={};for(let[t,n]of Object.entries(g.Ey.importDOM()||{}))e[t]=e=>{let t=n(e);return t?{...t,conversion:e=>{if(e instanceof HTMLSpanElement&&e.classList.contains("spanVagaroNames"))return{node:rY(e.textContent??"")};let n=t.conversion(e);if(null===n||void 0===n.forChild||void 0!==n.after||null!==n.node)return n;let r=function(e){let t="",n=iE(e.style.backgroundColor),r=iE(e.style.color);return""!==n&&"rgb(255, 255, 255)"!==n&&(t+=`background-color: ${n};`),""!==r&&"rgb(0, 0, 0)"!==r&&(t+=`color: ${r};`),t}(e);if(r){let{forChild:e}=n;return{...n,forChild:(t,n)=>{let i=e(t,n);return(0,g.kF)(i)&&i.setStyle(i.getStyle()+r),i}}}return n}}:null};for(let[t,n]of Object.entries(O.importDOM()||{}))e[t]=e=>{let t=n(e);return t?{...t,conversion:e=>{let n=t.conversion(e);if(!n||!n.node)return n;let r=(e.style.textAlign||"").toLowerCase();if(r){let e={left:"left",center:"center",right:"right",justify:"justify"}[r];e&&n.node.setFormat(e)}return n}}:null};return e}()},namespace:"Playground",nodes:[...i_,io],onError:e=>{throw e},theme:ik},[tn,tr]=(0,Y.useState)(j),[ti,ta]=(0,Y.useState)(!1),to=(0,Y.useRef)(null),tl=(0,Y.useRef)(-1),ts=()=>
16{if(!e6||!et)return;let e=window.visualViewport;e&&null==to.current&&(to.current=requestAnimationFrame(()=>{to.current=null;let t=ej.current?.querySelector(".toolbar");if(!t)return;let n=window.innerHeight-e.height-e.offsetTop,r=n>0?Math.round(n):0;2>Math.abs(r-tl.current)||(tl.current=r,r>0?(t.style.position="fixed",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.zIndex="9999",t.style.willChange="transform",t.style.transform=`translate3d(0, -${r}px, 0)`):(t.style.transform="translate3d(0, 0, 0)",t.style.willChange="",t.style.position="",t.style.left="",t.style.right="",t.style.bottom="",t.style.zIndex=""))}))};(0,Y.useEffect)(()=>{if(!e6||"u"<typeof window)return;let e=window.visualViewport;if(e)return e.addEventListener("resize",ts),e.addEventListener("scroll",ts),ts(),()=>{e.removeEventListener("resize",ts),e.removeEventListener("scroll",ts),null!=to.current&&(cancelAnimationFrame(to.current),to.current=null),tl.current=-1}},[e6]);let tu=t=>{if(W)return;let n=t?.target;if(!n?.closest(".link-editor")&&(eD.current=!0,ta(!0),e7(!0),!e&&et)){ej.current?.classList.add("show-tool");let e=ej.current?.querySelector(".ContentEditable__root");if(e){e.classList.remove("text-editor-hidden-cursor"),e.classList.add("text-editor-visible-cursor");try{e.focus()}catch{}}}};(0,Y.useEffect)(()=>{"TextMarketing"===en&&eu&&tu()},[eu,en]),(0,Y.useEffect)(()=>{let t=ej.current;if(!t)return;let n=t.querySelector(".ContentEditable__root");e&&et?(t.classList.add("show-tool"),t.focus(),n&&(n.classList.remove("text-editor-hidden-cursor"),n.classList.add("text-editor-visible-cursor"))):(t.classList.remove("show-tool"),n&&(n.classList.add("text-editor-hidden-cursor"),n.classList.remove("text-editor-visible-cursor"),document.activeElement===n&&queueMicrotask(()=>{if(document.activeElement===n&&n instanceof HTMLElement)try{n.blur()}catch{}})))},[e]),(0,Y.useEffect)(()=>{let t=ej.current;if(!t)return;let n=()=>{if(e&&et||eD.current){t.classList.add("show-tool");let e=t.querySelector(".ContentEditable__root");e&&(e.classList.remove("text-editor-hidden-cursor"),e.classList.add("text-editor-visible-cursor"))}};return t.addEventListener("focusin",n),t.addEventListener("mousedown",n),t.addEventListener("keydown",n),()=>{t.removeEventListener("focusin",n),t.removeEventListener("mousedown",n),t.removeEventListener("keydown",n)}},[e]),(0,Y.useEffect)(()=>{t&&e4&&e9()&&e2(!1)},[eQ,eu,t,e4]),(0,Y.useImperativeHandle)(eO,()=>({validate:()=>{let e=!t||e9();return e7(!0),t&&e2(!e),{IsValidate:e,value:N||"",plain:e8()}}})),(0,Y.useEffect)(()=>{if(e||W)return;let t=ej.current;if(!t)return;let n=e=>!!e&&!t.contains(e),r=document.activeElement instanceof HTMLElement&&n(document.activeElement)?document.activeElement:null,i=e=>{let t=e.target;t&&n(t)&&(r=t)},a=e=>{if(eD.current)return;let t=e.target;t&&(e.preventDefault(),e.stopPropagation(),setTimeout(()=>{try{t.blur()}catch{}let e=r;if(e&&document.contains(e))try{e.focus?.({preventScroll:!0})}catch{}else try{document.body?.focus?.({preventScroll:!0})}catch{}},0))};return document.addEventListener("focusin",i,!0),t.addEventListener("focusin",a,!0),()=>{document.removeEventListener("focusin",i,!0),t.removeEventListener("focusin",a,!0)}},[e,W]);let tc=(0,Y.useCallback)(e=>{let t=eB.current?.querySelector('input[type="file"]');
16if(!t)return;let n=new DataTransfer;for(let t=0;t<e.length;t++)n.items.add(e[t]);t.files=n.files,t.dispatchEvent(new Event("change",{bubbles:!0}))},[]);(0,Y.useEffect)(()=>{if(!eK.current)return;let e=eK.current;eK.current=null;let t=setTimeout(()=>tc(e),0);return()=>clearTimeout(t)},[ez,tc]),(0,Y.useEffect)(()=>{eJ.current&&!eu&&eV(e=>e+1),eJ.current=eu},[eu]);let td=(0,Y.useCallback)(e=>{"TextMarketing"===en&&ev&&(e.preventDefault(),eU.current+=1,1===eU.current&&eH(!0))},[en,ev]),tg=(0,Y.useCallback)(e=>{"TextMarketing"===en&&ev&&(e.preventDefault(),e.dataTransfer.dropEffect="copy")},[en,ev]),tp=(0,Y.useCallback)(e=>{"TextMarketing"===en&&ev&&(eU.current-=1,eU.current<=0&&(eU.current=0,eH(!1)))},[en,ev]),th=(0,Y.useCallback)(e=>{if("TextMarketing"!==en||!ev)return;if(e.preventDefault(),eU.current=0,eH(!1),eu)return void ew?.([]);let{files:t}=e.dataTransfer;t&&t.length>0&&(eK.current=t,eV(e=>e+1))},[en,ev,eu,ew]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(G.n,{initialConfig:tt,children:(0,c.jsx)(ef,{children:(0,c.jsx)(r_,{children:(0,c.jsx)(eg,{children:(0,c.jsxs)(ey,{children:[(0,c.jsxs)("div",{className:"vg-texteditor-header",children:[(0,c.jsxs)("div",{children:[l?.length>0&&(0,c.jsxs)("div",{className:"vg-input-label",children:[l,X?(0,c.jsx)("span",{className:"required-input-mark",children:"*"}):"",ee&&""!==ee&&(0,c.jsx)("span",{className:"vg-editor-infochip",children:(0,c.jsx)(iS.default,{BeakPosition:"Auto",Children:(0,c.jsx)("div",{className:"vg-tooltiptext",children:(0,c.jsx)(iT.default,{name:"info_circle"})}),TextAlign:"center",TooltipText:ee,Html:!0,TooltipRender:"portal"})})]}),s?.length>0&&(0,c.jsx)("div",{className:"vg-texteditor-subtitle-wrap",children:(0,c.jsx)("div",{className:"vg-texteditor-subtitle",role:"note",children:(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:s||""}})})})]}),p&&A&&(0,c.jsxs)("span",{className:"vg-texteditor-count",children:[Math.min(eQ,p),"/",p]})]}),(0,c.jsxs)("div",{className:`vg-texteditor-shell ${"TextMarketing"===en?" vg-texteditor-textmarketing":""} ${!et?"isNotExpanded":""} ${et&&e6?" vg-texteditor-pro":""} ${e4?" vg-texteditor-error":""} ${W?" vg-texteditor-disabled":""}`,ref:ej,tabIndex:W?-1:0,onFocus:()=>{if(W)return;let t=ej.current;if(!e&&!eD.current)return;t&&et&&t.classList.add("show-tool");let n=ej.current?.querySelector(".ContentEditable__root");n&&(n.classList.remove("text-editor-hidden-cursor"),n.classList.add("text-editor-visible-cursor")),ts()},onMouseDownCapture:e=>{if(e.target.closest(".toolbar-item")){"TextMarketing"===en&&(eD.current=!0,ta(!0),e7(!0));return}let t=!ej.current?.contains(e.target);if(t){let t=e.target.tagName;if("INPUT"===t||"TEXTAREA"===t||"SELECT"===t)return}if(tu(),"TextMarketing"===en&&t){let t=document.getElementById("emoji-picker-portal");t?.contains(e.target)&&requestAnimationFrame(()=>{let e=ej.current?.querySelector(".ContentEditable__root");e&&(e.classList.remove("text-editor-visible-cursor"),e.classList.add("text-editor-hidden-cursor"))})}},onPointerDownCapture:e=>{if(e.target.closest(".toolbar-item")){"TextMarketing"===en&&(eD.current=!0,ta(!0),e7(!0));return}let t=!ej.current?.contains(e.target);if(t){let t=e.target.tagName;if("INPUT"===t||"TEXTAREA"===t||"SELECT"===t)return}if(tu(),"TextMarketing"===en&&t){let t=document.getElementById("emoji-picker-portal");t?.contains(e.target)&&requestAnimationFrame(()=>{let e=ej.current?.querySelector(".ContentEditable__root");e&&(e.classList.remove("text-editor-visible-cursor"),e.classList.add("text-editor-hidden-cursor"))})}},onKeyDownCapture:e=>{if(!ej.current?.contains(e.target)){let t=e.target.tagName;if("INPUT"===t||"TEXTAREA"===t||"SELECT"===t)return}tu()},onBlur:e=>{if(W)return;let n=ej.current,r=e?.relatedTarget;if(n&&r&&n.contains(r))return;let i=r?.classList?.contains("toolbar-item")===!0;n&&!i&&n.classList.remove("show-tool"),t&&(e7(!0),e2(!e9())),f&&f(e)},onDragEnter:td,onDragOver:tg,onDragLeave:tp,onDrop:th,"aria-required":t||void 0,"aria-invalid":e4||void 0,"aria-disabled":W||void 0,children:["TextMarketing"===en&&e$&&(0,c.jsxs)("div",{className:`vg-texteditor-drag-overlay ${eu?"vg-texteditor-drag-overlay--replace":""}`,children:[(0,c.jsx)("span",{className:"vg-texteditor-drag-overlay-icon",children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",width:"40",height:"40",children:(0,c.jsx)("path",{fill:"currentColor",d:"M272 96C183.6 96 112 167.6 112 256C112 260.9 112.2 265.8 112.7 270.6C64.9 294 32 343.1 32 400C32 479.5 96.5 544 176 544L480 544C550.7 544 608 486.7 608 416C608 366.1 579.5 323 537.9 301.8C541.9 289.9 544 277.2 544 264C544 197.7 490.3 144 424 144C412.5 144 401.3 145.6 390.7 148.7C361.4 116.4 319.1 96 272 96zM160 256C160 194.1 210.1 144 272 144C309.7 144 343 162.6 363.3 191.1C370 200.6 382.6 203.9 393.1 198.9C402.4 194.5 412.8 192 423.9 192C463.7 192 495.9 224.2 495.9 264C495.9 278.1 491.9 291.2 484.9 302.3C480.8 308.8 480.1 316.9 482.9 324C485.7 331.1 491.9 336.5 499.4 338.3C534.2 347 559.9 378.5 559.9 415.9C559.9 460.1 524.1 495.9 479.9 495.9L175.9 495.9C122.9 495.9 79.9 452.9 79.9 399.9C79.9 357.2 107.8 320.9 146.5 308.5C158.3 304.7 165.3 292.5 162.6 280.4C160.8 272.5 159.9 264.3 159.9 255.9zM337 263C327.6 253.6 312.4 253.6 303.1 263L239.1 327C229.7 336.4 229.7 351.6 239.1 360.9C248.5 370.2 263.7 370.3 273 360.9L296 337.9L296 424C296 437.3 306.7 448 320 448C333.3 448 344 437.3 344 424L344 337.9L367 360.9C376.4 370.3 391.6 370.3 400.9 360.9C410.2 351.5 410.3 336.3 400.9 327L336.9 263z"})})}),(0,c.jsx)("span",{className:"vg-texteditor-drag-overlay-text",children:"Drop image here"})]}),(0,c.jsx)(id,{setSubmit:eY,isSubmit:eX,ToolbarRawData:r,MaximumLength:p,MaximumLengthForAi:h,RawData:o,SetValue:N,Title:l,Style:u,PlaceHolder:d,errorMessage:eW,setErrorMessage:eG,AiControlPopup:T,setEditorData:eq,editorData:eZ,OnChange:"TextMarketing"===en?e=>{e5(e?.plain||""),m?.(e)}:m,OnClickUseThisText:y,OnClickClose:v,OnPopupStateChange:C,OnClickCancle:b,OnChangeTone:w,OnChangeRange:x,OnClickPrevious:k,OnClickNext:_,OnClickRegenerate:E,ToneMetadata:L,setCharCount:e1,baseUrl:I,AiClickEvent:S,AiPopupSetValue:a,CharacterCountEnableForAi:F,DialogShowHide:P,AiPopupTextEditor:M,AiPopupToolbarRawData:i,setState:void 0!==D?D:tr,state:void 0!==B?B:tn,ToolbarState:j,AiPopupBaseUrl:U,TextEditorHeight:$,AiTextEditorHeight:H,ApiRequestParam
16s:z,ExternalPayload:V,AutoFocus:!W&&e,AiPopupOpen:R,EditorEnabled:!W&&(e||ti),ScrollTargetRef:ej,IsSuggestionView:K,SuggestionTriggerChars:J,DropdownValue:Z,OnSuggestionChange:q,Disabled:W,ExpandEditorMobile:et,Variant:en,TextMarketingLinkMenuItems:er,OnTextMarketingLinkInsert:ei,GifApiKey:ea,OnGifSelect:eo,OnGifRemove:el,OnImageUpload:es,ImageUrl:eu,OnImageRemove:ed,IsEmptyValue:ep,IsAllowEnter:eh,IsAllowEnterFromAI:em,CountryId:eb,EmojiPickerAutoFocus:e_,GIFPickerAutoFocus:ek,GlassDesign:eE,ShortLinkBaseUrl:eS,customClassName:eT,NativeAction:eN,Footer:eL,TimerCount:eA,IsFullLength:eI,CloseBackTitle:eF,VagaroToolkit:eP})]}),eW&&(0,c.jsx)("div",{className:"info-ai-text",children:eW}),e4&&(0,c.jsx)("div",{className:"vg-texteditor-validation-message",children:n}),"TextMarketing"===en&&(0,c.jsx)("div",{className:"vg-texteditor-sms-credits",children:`This message requires ${te} credit${1!==te?"s":""} per text sent.`})]})})})})}),"TextMarketing"===en&&!!ev&&(0,c.jsx)("div",{ref:eB,"aria-hidden":"true",style:{position:"absolute",left:"-9999px",top:"-9999px",width:0,height:0,overflow:"hidden",pointerEvents:"none"},children:(0,c.jsx)(iN.default,{Type:"multifileupload",ApiUrl:ev,FileExtentions:eC,MaxFileCount:1,MaxFileSize:ex,ShowMultiUploader:!0,UploadOnDrive:!0,ImageUrls:[],OnImport:ew})},ez)]})}),iI=(0,Y.forwardRef)(({Title:e,SubTitle:t,ToolbarRawData:n,AutoFocus:r=!1,Required:i=!1,ValidationMessage:a="Required",AiPopupToolbarRawData:o,MaximumLength:l,MaximumLengthForAi:s,RawData:u,SetValue:d,Style:g,OnChange:p,OnBlur:h,AiControlPopup:m,OnChangeTone:f,OnClickRegenerate:b,OnChangeRange:v,OnClickUseThisText:C,OnClickNext:y,OnClickPrevious:x,OnClickCancle:w,OnClickClose:_,OnPopupStateChange:k,AiClickEvent:E,PlaceHolder:S,ToneMetadata:T,CharacterCountEnable:N,baseUrl:L,AiPopupSetValue:A,CharacterCountEnableForAi:I,DialogShowHide:F,AiPopupTextEditor:P,ToolbarState:O,setState:M,state:R,AiPopupBaseUrl:j,TextEditorHeight:D="",AiTextEditorHeight:B="",ApiRequestParams:U,ExternalPayload:$,AiPopupOpen:H=!0,IsSuggestionView:z=!1,SuggestionTriggerChars:V=[""],DropdownValue:K=[],OnSuggestionChange:J,Disabled:Z=!1,ShowRequiredFieldMark:q=!1,InfoTooltipMessage:W,ExpandEditorMobile:G=!0,Variant:X="Default",TextMarketingLinkMenuItems:Q,OnTextMarketingLinkInsert:ee,GifApiKey:et,OnGifSelect:en,OnGifRemove:er,OnImageUpload:ea,ImageUrl:eo,OnImageRemove:el,IsEmptyValue:es=!1,IsAllowEnter:ec=!0,IsAllowEnterFromAI:ed=!0,CountryId:eg=0,ImageDragDropApiUrl:ep,ImageDragDropFileExtensions:eh,ImageDragDropMaxFileSize:em=10,OnImageDrop:ef,EmojiPickerAutoFocus:eb=!1,GIFPickerAutoFocus:ev=!1,GlassDesign:eC=!1,ShortLinkBaseUrl:ey="https://tm.bookitall.com/",customClassName:ex="",NativeAction:ew,Footer:e_,TimerCount:ek,IsFullLength:eE,CloseBackTitle:eS,VagaroToolkit:eT},eN)=>{let eL=(0,Y.useRef)(null),eA=()=>{if(eL.current)return eL.current.validate();let e=(d||"").replaceAll(/<[^>]*>/g,"").trim();return{IsValidate:!i||e.length>0,value:d,plain:e}};return(0,Y.useImperativeHandle)(eN,()=>({validate:eA})),(0,c.jsx)(eu,{children:(0,c.jsx)(ei,{children:(0,c.jsx)(iA,{ref:eL,ToolbarRawData:n,AutoFocus:r,Required:i,ValidationMessage:a,AiPopupToolbarRawData:o,RawData:u,Title:e,SubTitle:t,SetValue:d,AiControlPopup:m,OnChangeTone:f,OnChangeRange:v,OnClickRegenerate:b,OnClickUseThisText:C,OnChange:p,OnBlur:h,OnClickNext:y,OnClickCancle:w,OnClickClose:_,OnPopupStateChange:k,OnClickPrevious:x,AiClickEvent:E,MaximumLength:l,MaximumLengthForAi:s,PlaceHolder:S,ToneMetadata:T,CharacterCountEnable:N,baseUrl:L,AiPopupSetValue:A,CharacterCountEnableForAi:I,DialogShowHide:F,AiPopupTextEditor:P,ToolbarState:O,setState:M,state:R,AiPopupBaseUrl:j,TextEditorHeight:D,AiTextEditorHeight:B,ApiRequestParams:U,ExternalPayload:$,AiPopupOpen:H,IsSuggestionView:z,SuggestionTriggerChars:V,DropdownValue:K,OnSuggestionChange:J,Disabled:Z,ShowRequiredFieldMark:q,InfoTooltipMessage:W,ExpandEditorMobile:G,Variant:X,TextMarketingLinkMenuItems:Q,OnTextMarketingLinkInsert:ee,GifApiKey:et,OnGifSelect:en,OnGifRemove:er,OnImageUpload:ea,ImageUrl:eo,OnImageRemove:el,IsEmptyValue:es,IsAllowEnter:ec,IsAllowEnterFromAI:ed,CountryId:eg,GlassDesign:eC,ShortLinkBaseUrl:ey,ImageDragDropApiUrl:ep,ImageDragDropFileExtensions:eh,ImageDragDropMaxFileSize:em,OnImageDrop:ef,EmojiPickerAutoFocus:eb,GIFPickerAutoFocus:ev,customClassName:ex,NativeAction:ew,Footer:e_,TimerCount:ek,IsFullLength:eE,CloseBackTitle:eS,VagaroToolkit:eT})})})}),iF=iI}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.