@abduljebar/text-editor 2.2.3 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(Q,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],k):(Q=typeof globalThis<"u"?globalThis:Q||self,k(Q.TextEditor={},Q.React))})(this,(function(Q,k){"use strict";var ye=document.createElement("style");ye.textContent=`/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-orange-600:oklch(64.6% .222 41.116);--color-yellow-200:oklch(94.5% .129 101.54);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-medium:500;--font-weight-bold:700;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:calc(var(--spacing)*0)}.top-full{top:100%}.-right-1{right:calc(var(--spacing)*-1)}.-bottom-1{bottom:calc(var(--spacing)*-1)}.left-0{left:calc(var(--spacing)*0)}.z-10{z-index:10}.z-20{z-index:20}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.my-4{margin-block:calc(var(--spacing)*4)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-\\[-2px\\]{margin-top:-2px}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.inline{display:inline}.h-1{height:calc(var(--spacing)*1)}.h-3{height:calc(var(--spacing)*3)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.min-h-\\[200px\\]{min-height:200px}.min-h-\\[400px\\]{min-height:400px}.min-h-\\[500px\\]{min-height:500px}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-full{width:100%}.w-px{width:1px}.min-w-\\[140px\\]{min-width:140px}.cursor-default{cursor:default}.cursor-text{cursor:text}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-green-600{background-color:var(--color-green-600)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-200{background-color:var(--color-yellow-200)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[8px\\]{font-size:8px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-blue-600{color:var(--color-blue-600)}.text-gray-100{color:var(--color-gray-100)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-600{color:var(--color-green-600)}.text-orange-600{color:var(--color-orange-600)}.text-white{color:var(--color-white)}.italic{font-style:italic}.underline{text-decoration-line:underline}.placeholder-gray-400::-moz-placeholder{color:var(--color-gray-400)}.placeholder-gray-400::placeholder{color:var(--color-gray-400)}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}@media(hover:hover){.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-green-700:hover{background-color:var(--color-green-700)}.hover\\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\\:text-blue-800:hover{color:var(--color-blue-800)}}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-blue-300:disabled{background-color:var(--color-blue-300)}.disabled\\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\\:mt-0{margin-top:calc(var(--spacing)*0)}}.\\[\\&_a\\]\\:text-blue-600 a{color:var(--color-blue-600)}.\\[\\&_a\\]\\:underline a{text-decoration-line:underline}.\\[\\&_a\\]\\:transition-colors a{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.\\[\\&_a\\]\\:hover\\:text-blue-800 a:hover{color:var(--color-blue-800)}}.\\[\\&_blockquote\\]\\:my-4 blockquote{margin-block:calc(var(--spacing)*4)}.\\[\\&_blockquote\\]\\:border-l-4 blockquote{border-left-style:var(--tw-border-style);border-left-width:4px}.\\[\\&_blockquote\\]\\:border-blue-500 blockquote{border-color:var(--color-blue-500)}.\\[\\&_blockquote\\]\\:pl-4 blockquote{padding-left:calc(var(--spacing)*4)}.\\[\\&_blockquote\\]\\:text-gray-600 blockquote{color:var(--color-gray-600)}.\\[\\&_blockquote\\]\\:italic blockquote{font-style:italic}.\\[\\&_code\\]\\:rounded code{border-radius:.25rem}.\\[\\&_code\\]\\:bg-gray-100 code{background-color:var(--color-gray-100)}.\\[\\&_code\\]\\:px-2 code{padding-inline:calc(var(--spacing)*2)}.\\[\\&_code\\]\\:py-1 code{padding-block:calc(var(--spacing)*1)}.\\[\\&_code\\]\\:font-mono code{font-family:var(--font-mono)}.\\[\\&_code\\]\\:text-sm code{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.\\[\\&_h1\\]\\:mt-6 h1{margin-top:calc(var(--spacing)*6)}.\\[\\&_h1\\]\\:mb-4 h1{margin-bottom:calc(var(--spacing)*4)}.\\[\\&_h1\\]\\:border-b h1{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\\[\\&_h1\\]\\:pb-2 h1{padding-bottom:calc(var(--spacing)*2)}.\\[\\&_h1\\]\\:text-3xl h1{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.\\[\\&_h1\\]\\:font-bold h1{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_h1\\]\\:text-gray-800 h1{color:var(--color-gray-800)}.\\[\\&_h2\\]\\:mt-5 h2{margin-top:calc(var(--spacing)*5)}.\\[\\&_h2\\]\\:mb-3 h2{margin-bottom:calc(var(--spacing)*3)}.\\[\\&_h2\\]\\:text-2xl h2{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.\\[\\&_h2\\]\\:font-bold h2{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_h2\\]\\:text-gray-800 h2{color:var(--color-gray-800)}.\\[\\&_h3\\]\\:mt-4 h3{margin-top:calc(var(--spacing)*4)}.\\[\\&_h3\\]\\:mb-2 h3{margin-bottom:calc(var(--spacing)*2)}.\\[\\&_h3\\]\\:text-xl h3{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.\\[\\&_h3\\]\\:font-bold h3{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_h3\\]\\:text-gray-800 h3{color:var(--color-gray-800)}.\\[\\&_li\\]\\:mb-1 li{margin-bottom:calc(var(--spacing)*1)}.\\[\\&_ol\\]\\:mb-4 ol{margin-bottom:calc(var(--spacing)*4)}.\\[\\&_ol\\]\\:ml-4 ol{margin-left:calc(var(--spacing)*4)}.\\[\\&_ol\\]\\:list-inside ol{list-style-position:inside}.\\[\\&_ol\\]\\:list-decimal ol{list-style-type:decimal}:where(.\\[\\&_ol\\]\\:space-y-1 ol>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}.\\[\\&_p\\]\\:mb-4 p{margin-bottom:calc(var(--spacing)*4)}.\\[\\&_p\\]\\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\\[\\&_p\\]\\:text-gray-700 p{color:var(--color-gray-700)}.\\[\\&_pre\\]\\:my-4 pre{margin-block:calc(var(--spacing)*4)}.\\[\\&_pre\\]\\:overflow-x-auto pre{overflow-x:auto}.\\[\\&_pre\\]\\:rounded-lg pre{border-radius:var(--radius-lg)}.\\[\\&_pre\\]\\:bg-gray-800 pre{background-color:var(--color-gray-800)}.\\[\\&_pre\\]\\:p-4 pre{padding:calc(var(--spacing)*4)}.\\[\\&_pre\\]\\:text-gray-100 pre{color:var(--color-gray-100)}.\\[\\&_pre_code\\]\\:bg-transparent pre code{background-color:#0000}.\\[\\&_pre_code\\]\\:p-0 pre code{padding:calc(var(--spacing)*0)}.\\[\\&_pre_code\\]\\:text-inherit pre code{color:inherit}.\\[\\&_ul\\]\\:mb-4 ul{margin-bottom:calc(var(--spacing)*4)}.\\[\\&_ul\\]\\:ml-4 ul{margin-left:calc(var(--spacing)*4)}.\\[\\&_ul\\]\\:list-inside ul{list-style-position:inside}.\\[\\&_ul\\]\\:list-disc ul{list-style-type:disc}:where(.\\[\\&_ul\\]\\:space-y-1 ul>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
1
+ (function(Q,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],_):(Q=typeof globalThis<"u"?globalThis:Q||self,_(Q.TextEditor={},Q.React))})(this,(function(Q,_){"use strict";var ye=document.createElement("style");ye.textContent=`/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-orange-600:oklch(64.6% .222 41.116);--color-yellow-200:oklch(94.5% .129 101.54);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-medium:500;--font-weight-bold:700;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:calc(var(--spacing)*0)}.top-full{top:100%}.-right-1{right:calc(var(--spacing)*-1)}.-bottom-1{bottom:calc(var(--spacing)*-1)}.left-0{left:calc(var(--spacing)*0)}.z-10{z-index:10}.z-20{z-index:20}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.my-4{margin-block:calc(var(--spacing)*4)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-\\[-2px\\]{margin-top:-2px}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.h-1{height:calc(var(--spacing)*1)}.h-3{height:calc(var(--spacing)*3)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.min-h-\\[200px\\]{min-height:200px}.min-h-\\[400px\\]{min-height:400px}.min-h-\\[500px\\]{min-height:500px}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-full{width:100%}.w-px{width:1px}.min-w-\\[140px\\]{min-width:140px}.cursor-default{cursor:default}.cursor-text{cursor:text}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-green-600{background-color:var(--color-green-600)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-200{background-color:var(--color-yellow-200)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[8px\\]{font-size:8px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-blue-600{color:var(--color-blue-600)}.text-gray-100{color:var(--color-gray-100)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-600{color:var(--color-green-600)}.text-orange-600{color:var(--color-orange-600)}.text-white{color:var(--color-white)}.italic{font-style:italic}.underline{text-decoration-line:underline}.placeholder-gray-400::-moz-placeholder{color:var(--color-gray-400)}.placeholder-gray-400::placeholder{color:var(--color-gray-400)}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}@media(hover:hover){.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-green-700:hover{background-color:var(--color-green-700)}.hover\\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\\:text-blue-800:hover{color:var(--color-blue-800)}}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-blue-300:disabled{background-color:var(--color-blue-300)}.disabled\\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\\:mt-0{margin-top:calc(var(--spacing)*0)}}.\\[\\&_a\\]\\:text-blue-600 a{color:var(--color-blue-600)}.\\[\\&_a\\]\\:underline a{text-decoration-line:underline}.\\[\\&_a\\]\\:transition-colors a{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.\\[\\&_a\\]\\:hover\\:text-blue-800 a:hover{color:var(--color-blue-800)}}.\\[\\&_blockquote\\]\\:my-4 blockquote{margin-block:calc(var(--spacing)*4)}.\\[\\&_blockquote\\]\\:border-l-4 blockquote{border-left-style:var(--tw-border-style);border-left-width:4px}.\\[\\&_blockquote\\]\\:border-blue-500 blockquote{border-color:var(--color-blue-500)}.\\[\\&_blockquote\\]\\:pl-4 blockquote{padding-left:calc(var(--spacing)*4)}.\\[\\&_blockquote\\]\\:text-gray-600 blockquote{color:var(--color-gray-600)}.\\[\\&_blockquote\\]\\:italic blockquote{font-style:italic}.\\[\\&_code\\]\\:rounded code{border-radius:.25rem}.\\[\\&_code\\]\\:bg-gray-100 code{background-color:var(--color-gray-100)}.\\[\\&_code\\]\\:px-2 code{padding-inline:calc(var(--spacing)*2)}.\\[\\&_code\\]\\:py-1 code{padding-block:calc(var(--spacing)*1)}.\\[\\&_code\\]\\:font-mono code{font-family:var(--font-mono)}.\\[\\&_code\\]\\:text-sm code{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.\\[\\&_h1\\]\\:mt-6 h1{margin-top:calc(var(--spacing)*6)}.\\[\\&_h1\\]\\:mb-4 h1{margin-bottom:calc(var(--spacing)*4)}.\\[\\&_h1\\]\\:border-b h1{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\\[\\&_h1\\]\\:pb-2 h1{padding-bottom:calc(var(--spacing)*2)}.\\[\\&_h1\\]\\:text-3xl h1{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.\\[\\&_h1\\]\\:font-bold h1{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_h1\\]\\:text-gray-800 h1{color:var(--color-gray-800)}.\\[\\&_h2\\]\\:mt-5 h2{margin-top:calc(var(--spacing)*5)}.\\[\\&_h2\\]\\:mb-3 h2{margin-bottom:calc(var(--spacing)*3)}.\\[\\&_h2\\]\\:text-2xl h2{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.\\[\\&_h2\\]\\:font-bold h2{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_h2\\]\\:text-gray-800 h2{color:var(--color-gray-800)}.\\[\\&_h3\\]\\:mt-4 h3{margin-top:calc(var(--spacing)*4)}.\\[\\&_h3\\]\\:mb-2 h3{margin-bottom:calc(var(--spacing)*2)}.\\[\\&_h3\\]\\:text-xl h3{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.\\[\\&_h3\\]\\:font-bold h3{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_h3\\]\\:text-gray-800 h3{color:var(--color-gray-800)}.\\[\\&_li\\]\\:mb-1 li{margin-bottom:calc(var(--spacing)*1)}.\\[\\&_ol\\]\\:mb-4 ol{margin-bottom:calc(var(--spacing)*4)}.\\[\\&_ol\\]\\:ml-4 ol{margin-left:calc(var(--spacing)*4)}.\\[\\&_ol\\]\\:list-inside ol{list-style-position:inside}.\\[\\&_ol\\]\\:list-decimal ol{list-style-type:decimal}:where(.\\[\\&_ol\\]\\:space-y-1 ol>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}.\\[\\&_p\\]\\:mb-4 p{margin-bottom:calc(var(--spacing)*4)}.\\[\\&_p\\]\\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\\[\\&_p\\]\\:text-gray-700 p{color:var(--color-gray-700)}.\\[\\&_pre\\]\\:my-4 pre{margin-block:calc(var(--spacing)*4)}.\\[\\&_pre\\]\\:overflow-x-auto pre{overflow-x:auto}.\\[\\&_pre\\]\\:rounded-lg pre{border-radius:var(--radius-lg)}.\\[\\&_pre\\]\\:bg-gray-800 pre{background-color:var(--color-gray-800)}.\\[\\&_pre\\]\\:p-4 pre{padding:calc(var(--spacing)*4)}.\\[\\&_pre\\]\\:text-gray-100 pre{color:var(--color-gray-100)}.\\[\\&_pre_code\\]\\:bg-transparent pre code{background-color:#0000}.\\[\\&_pre_code\\]\\:p-0 pre code{padding:calc(var(--spacing)*0)}.\\[\\&_pre_code\\]\\:text-inherit pre code{color:inherit}.\\[\\&_ul\\]\\:mb-4 ul{margin-bottom:calc(var(--spacing)*4)}.\\[\\&_ul\\]\\:ml-4 ul{margin-left:calc(var(--spacing)*4)}.\\[\\&_ul\\]\\:list-inside ul{list-style-position:inside}.\\[\\&_ul\\]\\:list-disc ul{list-style-type:disc}:where(.\\[\\&_ul\\]\\:space-y-1 ul>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
2
2
  /*$vite$:1*/`,document.head.appendChild(ye);var ue={exports:{}},se={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var ke;function Ge(){if(ke)return se;ke=1;var e=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function n(r,o,b){var m=null;if(b!==void 0&&(m=""+b),o.key!==void 0&&(m=""+o.key),"key"in o){b={};for(var y in o)y!=="key"&&(b[y]=o[y])}else b=o;return o=b.ref,{$$typeof:e,type:r,key:m,ref:o!==void 0?o:null,props:b}}return se.Fragment=i,se.jsx=n,se.jsxs=n,se}var ce={};/**
10
+ */var ke;function Oe(){if(ke)return se;ke=1;var e=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(r,o,f){var g=null;if(f!==void 0&&(g=""+f),o.key!==void 0&&(g=""+o.key),"key"in o){f={};for(var y in o)y!=="key"&&(f[y]=o[y])}else f=o;return o=f.ref,{$$typeof:e,type:r,key:g,ref:o!==void 0?o:null,props:f}}return se.Fragment=l,se.jsx=i,se.jsxs=i,se}var ce={};/**
11
11
  * @license React
12
12
  * react-jsx-runtime.development.js
13
13
  *
@@ -15,12 +15,12 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var _e;function De(){return _e||(_e=1,process.env.NODE_ENV!=="production"&&(function(){function e(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ee?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case V:return"Profiler";case I:return"StrictMode";case S:return"Suspense";case F:return"SuspenseList";case $:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case z:return"Portal";case B:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case D:var f=t.render;return t=t.displayName,t||(t=f.displayName||f.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case u:return f=t.displayName||null,f!==null?f:e(t.type)||"Memo";case A:f=t._payload,t=t._init;try{return e(t(f))}catch{}}return null}function i(t){return""+t}function n(t){try{i(t);var f=!1}catch{f=!0}if(f){f=console;var g=f.error,w=typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object";return g.call(f,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",w),i(t)}}function r(t){if(t===L)return"<>";if(typeof t=="object"&&t!==null&&t.$$typeof===A)return"<...>";try{var f=e(t);return f?"<"+f+">":"<...>"}catch{return"<...>"}}function o(){var t=U.A;return t===null?null:t.getOwner()}function b(){return Error("react-stack-top-frame")}function m(t){if(te.call(t,"key")){var f=Object.getOwnPropertyDescriptor(t,"key").get;if(f&&f.isReactWarning)return!1}return t.key!==void 0}function y(t,f){function g(){P||(P=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",f))}g.isReactWarning=!0,Object.defineProperty(t,"key",{get:g,configurable:!0})}function x(){var t=e(this.type);return G[t]||(G[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),t=this.props.ref,t!==void 0?t:null}function v(t,f,g,w,W,d){var a=g.ref;return t={$$typeof:j,type:t,key:f,props:g,_owner:w},(a!==void 0?a:null)!==null?Object.defineProperty(t,"ref",{enumerable:!1,get:x}):Object.defineProperty(t,"ref",{enumerable:!1,value:null}),t._store={},Object.defineProperty(t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(t,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(t,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.defineProperty(t,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:d}),Object.freeze&&(Object.freeze(t.props),Object.freeze(t)),t}function C(t,f,g,w,W,d){var a=f.children;if(a!==void 0)if(w)if(_(a)){for(w=0;w<a.length;w++)R(a[w]);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else R(a);if(te.call(f,"key")){a=e(t);var T=Object.keys(f).filter(function(Y){return Y!=="key"});w=0<T.length?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}",oe[a+w]||(T=0<T.length?"{"+T.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ */var _e;function Ge(){return _e||(_e=1,process.env.NODE_ENV!=="production"&&(function(){function e(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ee?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case I:return"Fragment";case V:return"Profiler";case H:return"StrictMode";case S:return"Suspense";case R:return"SuspenseList";case $:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case F:return"Portal";case T:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case G:var h=t.render;return t=t.displayName,t||(t=h.displayName||h.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case p:return h=t.displayName||null,h!==null?h:e(t.type)||"Memo";case M:h=t._payload,t=t._init;try{return e(t(h))}catch{}}return null}function l(t){return""+t}function i(t){try{l(t);var h=!1}catch{h=!0}if(h){h=console;var d=h.error,w=typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object";return d.call(h,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",w),l(t)}}function r(t){if(t===I)return"<>";if(typeof t=="object"&&t!==null&&t.$$typeof===M)return"<...>";try{var h=e(t);return h?"<"+h+">":"<...>"}catch{return"<...>"}}function o(){var t=U.A;return t===null?null:t.getOwner()}function f(){return Error("react-stack-top-frame")}function g(t){if(te.call(t,"key")){var h=Object.getOwnPropertyDescriptor(t,"key").get;if(h&&h.isReactWarning)return!1}return t.key!==void 0}function y(t,h){function d(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",h))}d.isReactWarning=!0,Object.defineProperty(t,"key",{get:d,configurable:!0})}function x(){var t=e(this.type);return O[t]||(O[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),t=this.props.ref,t!==void 0?t:null}function v(t,h,d,w,W,u){var n=d.ref;return t={$$typeof:z,type:t,key:h,props:d,_owner:w},(n!==void 0?n:null)!==null?Object.defineProperty(t,"ref",{enumerable:!1,get:x}):Object.defineProperty(t,"ref",{enumerable:!1,value:null}),t._store={},Object.defineProperty(t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(t,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(t,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.defineProperty(t,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:u}),Object.freeze&&(Object.freeze(t.props),Object.freeze(t)),t}function C(t,h,d,w,W,u){var n=h.children;if(n!==void 0)if(w)if(k(n)){for(w=0;w<n.length;w++)A(n[w]);Object.freeze&&Object.freeze(n)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(n);if(te.call(h,"key")){n=e(t);var E=Object.keys(h).filter(function(Y){return Y!=="key"});w=0<E.length?"{key: someKey, "+E.join(": ..., ")+": ...}":"{key: someKey}",oe[n+w]||(E=0<E.length?"{"+E.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
19
19
  let props = %s;
20
20
  <%s {...props} />
21
21
  React keys must be passed directly to JSX without using spread:
22
22
  let props = %s;
23
- <%s key={someKey} {...props} />`,w,a,T,a),oe[a+w]=!0)}if(a=null,g!==void 0&&(n(g),a=""+g),m(f)&&(n(f.key),a=""+f.key),"key"in f){g={};for(var M in f)M!=="key"&&(g[M]=f[M])}else g=f;return a&&y(g,typeof t=="function"?t.displayName||t.name||"Unknown":t),v(t,a,g,o(),W,d)}function R(t){H(t)?t._store&&(t._store.validated=1):typeof t=="object"&&t!==null&&t.$$typeof===A&&(t._payload.status==="fulfilled"?H(t._payload.value)&&t._payload.value._store&&(t._payload.value._store.validated=1):t._store&&(t._store.validated=1))}function H(t){return typeof t=="object"&&t!==null&&t.$$typeof===j}var N=k,j=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),B=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),U=N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Object.prototype.hasOwnProperty,_=Array.isArray,O=console.createTask?console.createTask:function(){return null};N={react_stack_bottom_frame:function(t){return t()}};var P,G={},p=N.react_stack_bottom_frame.bind(N,b)(),re=O(r(b)),oe={};ce.Fragment=L,ce.jsx=function(t,f,g){var w=1e4>U.recentlyCreatedOwnerStacks++;return C(t,f,g,!1,w?Error("react-stack-top-frame"):p,w?O(r(t)):re)},ce.jsxs=function(t,f,g){var w=1e4>U.recentlyCreatedOwnerStacks++;return C(t,f,g,!0,w?Error("react-stack-top-frame"):p,w?O(r(t)):re)}})()),ce}var Ce;function He(){return Ce||(Ce=1,process.env.NODE_ENV==="production"?ue.exports=Ge():ue.exports=De()),ue.exports}var c=He();const be="-",Ve=e=>{const i=We(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:m=>{const y=m.split(be);return y[0]===""&&y.length!==1&&y.shift(),Ee(y,i)||Ue(m)},getConflictingClassGroupIds:(m,y)=>{const x=n[m]||[];return y&&r[m]?[...x,...r[m]]:x}}},Ee=(e,i)=>{if(e.length===0)return i.classGroupId;const n=e[0],r=i.nextPart.get(n),o=r?Ee(e.slice(1),r):void 0;if(o)return o;if(i.validators.length===0)return;const b=e.join(be);return i.validators.find(({validator:m})=>m(b))?.classGroupId},je=/^\[(.+)\]$/,Ue=e=>{if(je.test(e)){const i=je.exec(e)[1],n=i?.substring(0,i.indexOf(":"));if(n)return"arbitrary.."+n}},We=e=>{const{theme:i,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)fe(n[o],r,o,i);return r},fe=(e,i,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const b=o===""?i:Te(i,o);b.classGroupId=n;return}if(typeof o=="function"){if(Ye(o)){fe(o(r),i,n,r);return}i.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([b,m])=>{fe(m,Te(i,b),n,r)})})},Te=(e,i)=>{let n=e;return i.split(be).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ye=e=>e.isThemeGetter,Ze=e=>{if(e<1)return{get:()=>{},set:()=>{}};let i=0,n=new Map,r=new Map;const o=(b,m)=>{n.set(b,m),i++,i>e&&(i=0,r=n,n=new Map)};return{get(b){let m=n.get(b);if(m!==void 0)return m;if((m=r.get(b))!==void 0)return o(b,m),m},set(b,m){n.has(b)?n.set(b,m):o(b,m)}}},he="!",xe=":",qe=xe.length,Je=e=>{const{prefix:i,experimentalParseClassName:n}=e;let r=o=>{const b=[];let m=0,y=0,x=0,v;for(let j=0;j<o.length;j++){let z=o[j];if(m===0&&y===0){if(z===xe){b.push(o.slice(x,j)),x=j+qe;continue}if(z==="/"){v=j;continue}}z==="["?m++:z==="]"?m--:z==="("?y++:z===")"&&y--}const C=b.length===0?o:o.substring(x),R=Xe(C),H=R!==C,N=v&&v>x?v-x:void 0;return{modifiers:b,hasImportantModifier:H,baseClassName:R,maybePostfixModifierPosition:N}};if(i){const o=i+xe,b=r;r=m=>m.startsWith(o)?b(m.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:m,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=b=>n({className:b,parseClassName:o})}return r},Xe=e=>e.endsWith(he)?e.substring(0,e.length-1):e.startsWith(he)?e.substring(1):e,Qe=e=>{const i=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let b=[];return r.forEach(m=>{m[0]==="["||i[m]?(o.push(...b.sort(),m),b=[]):b.push(m)}),o.push(...b.sort()),o}},Ke=e=>({cache:Ze(e.cacheSize),parseClassName:Je(e),sortModifiers:Qe(e),...Ve(e)}),$e=/\s+/,et=(e,i)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:b}=i,m=[],y=e.trim().split($e);let x="";for(let v=y.length-1;v>=0;v-=1){const C=y[v],{isExternal:R,modifiers:H,hasImportantModifier:N,baseClassName:j,maybePostfixModifierPosition:z}=n(C);if(R){x=C+(x.length>0?" "+x:x);continue}let L=!!z,I=r(L?j.substring(0,z):j);if(!I){if(!L){x=C+(x.length>0?" "+x:x);continue}if(I=r(j),!I){x=C+(x.length>0?" "+x:x);continue}L=!1}const V=b(H).join(":"),q=N?V+he:V,B=q+I;if(m.includes(B))continue;m.push(B);const D=o(I,L);for(let S=0;S<D.length;++S){const F=D[S];m.push(q+F)}x=C+(x.length>0?" "+x:x)}return x};function tt(){let e=0,i,n,r="";for(;e<arguments.length;)(i=arguments[e++])&&(n=ze(i))&&(r&&(r+=" "),r+=n);return r}const ze=e=>{if(typeof e=="string")return e;let i,n="";for(let r=0;r<e.length;r++)e[r]&&(i=ze(e[r]))&&(n&&(n+=" "),n+=i);return n};function rt(e,...i){let n,r,o,b=m;function m(x){const v=i.reduce((C,R)=>R(C),e());return n=Ke(v),r=n.cache.get,o=n.cache.set,b=y,y(x)}function y(x){const v=r(x);if(v)return v;const C=et(x,n);return o(x,C),C}return function(){return b(tt.apply(null,arguments))}}const E=e=>{const i=n=>n[e]||[];return i.isThemeGetter=!0,i},Se=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ot=/^\d+\/\d+$/,at=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,it=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,st=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ne=e=>ot.test(e),h=e=>!!e&&!Number.isNaN(Number(e)),X=e=>!!e&&Number.isInteger(Number(e)),ve=e=>e.endsWith("%")&&h(e.slice(0,-1)),Z=e=>at.test(e),ct=()=>!0,dt=e=>nt.test(e)&&!it.test(e),Re=()=>!1,ut=e=>lt.test(e),pt=e=>st.test(e),gt=e=>!l(e)&&!s(e),mt=e=>ie(e,Le,Re),l=e=>Se.test(e),K=e=>ie(e,Ie,dt),we=e=>ie(e,vt,h),Ae=e=>ie(e,Ne,Re),bt=e=>ie(e,Pe,pt),pe=e=>ie(e,Oe,ut),s=e=>Fe.test(e),de=e=>le(e,Ie),ft=e=>le(e,wt),Me=e=>le(e,Ne),ht=e=>le(e,Le),xt=e=>le(e,Pe),ge=e=>le(e,Oe,!0),ie=(e,i,n)=>{const r=Se.exec(e);return r?r[1]?i(r[1]):n(r[2]):!1},le=(e,i,n=!1)=>{const r=Fe.exec(e);return r?r[1]?i(r[1]):n:!1},Ne=e=>e==="position"||e==="percentage",Pe=e=>e==="image"||e==="url",Le=e=>e==="length"||e==="size"||e==="bg-size",Ie=e=>e==="length",vt=e=>e==="number",wt=e=>e==="family-name",Oe=e=>e==="shadow",yt=rt(()=>{const e=E("color"),i=E("font"),n=E("text"),r=E("font-weight"),o=E("tracking"),b=E("leading"),m=E("breakpoint"),y=E("container"),x=E("spacing"),v=E("radius"),C=E("shadow"),R=E("inset-shadow"),H=E("text-shadow"),N=E("drop-shadow"),j=E("blur"),z=E("perspective"),L=E("aspect"),I=E("ease"),V=E("animate"),q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...B(),s,l],S=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],u=()=>[s,l,x],A=()=>[ne,"full","auto",...u()],$=()=>[X,"none","subgrid",s,l],ee=()=>["auto",{span:["full",X,s,l]},X,s,l],U=()=>[X,"auto",s,l],te=()=>["auto","min","max","fr",s,l],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...u()],G=()=>[ne,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],p=()=>[e,s,l],re=()=>[...B(),Me,Ae,{position:[s,l]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],t=()=>["auto","cover","contain",ht,mt,{size:[s,l]}],f=()=>[ve,de,K],g=()=>["","none","full",v,s,l],w=()=>["",h,de,K],W=()=>["solid","dashed","dotted","double"],d=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],a=()=>[h,ve,Me,Ae],T=()=>["","none",j,s,l],M=()=>["none",h,s,l],Y=()=>["none",h,s,l],ae=()=>[h,s,l],J=()=>[ne,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Z],breakpoint:[Z],color:[ct],container:[Z],"drop-shadow":[Z],ease:["in","out","in-out"],font:[gt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Z],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Z],shadow:[Z],spacing:["px",h],text:[Z],"text-shadow":[Z],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ne,l,s,L]}],container:["container"],columns:[{columns:[h,l,s,y]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[X,"auto",s,l]}],basis:[{basis:[ne,"full","auto",y,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[h,ne,"auto","initial","none",l]}],grow:[{grow:["",h,s,l]}],shrink:[{shrink:["",h,s,l]}],order:[{order:[X,"first","last","none",s,l]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[y,"screen",...G()]}],"min-w":[{"min-w":[y,"screen","none",...G()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[m]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,de,K]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,s,we]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ve,l]}],"font-family":[{font:[ft,l,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,s,l]}],"line-clamp":[{"line-clamp":[h,"none",s,we]}],leading:[{leading:[b,...u()]}],"list-image":[{"list-image":["none",s,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[h,"from-font","auto",s,K]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[h,"auto",s,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:t()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},X,s,l],radial:["",s,l],conic:[X,s,l]},xt,bt]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:f()}],"gradient-via-pos":[{via:f()}],"gradient-to-pos":[{to:f()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:g()}],"rounded-s":[{"rounded-s":g()}],"rounded-e":[{"rounded-e":g()}],"rounded-t":[{"rounded-t":g()}],"rounded-r":[{"rounded-r":g()}],"rounded-b":[{"rounded-b":g()}],"rounded-l":[{"rounded-l":g()}],"rounded-ss":[{"rounded-ss":g()}],"rounded-se":[{"rounded-se":g()}],"rounded-ee":[{"rounded-ee":g()}],"rounded-es":[{"rounded-es":g()}],"rounded-tl":[{"rounded-tl":g()}],"rounded-tr":[{"rounded-tr":g()}],"rounded-br":[{"rounded-br":g()}],"rounded-bl":[{"rounded-bl":g()}],"border-w":[{border:w()}],"border-w-x":[{"border-x":w()}],"border-w-y":[{"border-y":w()}],"border-w-s":[{"border-s":w()}],"border-w-e":[{"border-e":w()}],"border-w-t":[{"border-t":w()}],"border-w-r":[{"border-r":w()}],"border-w-b":[{"border-b":w()}],"border-w-l":[{"border-l":w()}],"divide-x":[{"divide-x":w()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":w()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[h,s,l]}],"outline-w":[{outline:["",h,de,K]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","none",C,ge,pe]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",R,ge,pe]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[h,K]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":w()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",H,ge,pe]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[h,s,l]}],"mix-blend":[{"mix-blend":[...d(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":d()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[h]}],"mask-image-linear-from-pos":[{"mask-linear-from":a()}],"mask-image-linear-to-pos":[{"mask-linear-to":a()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":a()}],"mask-image-t-to-pos":[{"mask-t-to":a()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":a()}],"mask-image-r-to-pos":[{"mask-r-to":a()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":a()}],"mask-image-b-to-pos":[{"mask-b-to":a()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":a()}],"mask-image-l-to-pos":[{"mask-l-to":a()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":a()}],"mask-image-x-to-pos":[{"mask-x-to":a()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":a()}],"mask-image-y-to-pos":[{"mask-y-to":a()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[s,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":a()}],"mask-image-radial-to-pos":[{"mask-radial-to":a()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[h]}],"mask-image-conic-from-pos":[{"mask-conic-from":a()}],"mask-image-conic-to-pos":[{"mask-conic-to":a()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:t()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s,l]}],filter:[{filter:["","none",s,l]}],blur:[{blur:T()}],brightness:[{brightness:[h,s,l]}],contrast:[{contrast:[h,s,l]}],"drop-shadow":[{"drop-shadow":["","none",N,ge,pe]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",h,s,l]}],"hue-rotate":[{"hue-rotate":[h,s,l]}],invert:[{invert:["",h,s,l]}],saturate:[{saturate:[h,s,l]}],sepia:[{sepia:["",h,s,l]}],"backdrop-filter":[{"backdrop-filter":["","none",s,l]}],"backdrop-blur":[{"backdrop-blur":T()}],"backdrop-brightness":[{"backdrop-brightness":[h,s,l]}],"backdrop-contrast":[{"backdrop-contrast":[h,s,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",h,s,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h,s,l]}],"backdrop-invert":[{"backdrop-invert":["",h,s,l]}],"backdrop-opacity":[{"backdrop-opacity":[h,s,l]}],"backdrop-saturate":[{"backdrop-saturate":[h,s,l]}],"backdrop-sepia":[{"backdrop-sepia":["",h,s,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",s,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[h,"initial",s,l]}],ease:[{ease:["linear","initial",I,s,l]}],delay:[{delay:[h,s,l]}],animate:[{animate:["none",V,s,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,s,l]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:M()}],"rotate-x":[{"rotate-x":M()}],"rotate-y":[{"rotate-y":M()}],"rotate-z":[{"rotate-z":M()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[s,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",s,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s,l]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[h,de,K,we]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Be(e){var i,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(n=Be(e[i]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function kt(){for(var e,i,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(i=Be(e))&&(r&&(r+=" "),r+=i);return r}function me(...e){return yt(kt(e))}const _t=({initialContent:e="",onChange:i,onSave:n,onExport:r,readOnly:o=!1,showButtons:b=!1,showSaveTitle:m=!1,showStatusBar:y=!1,height:x="500px"})=>{const v=k.useRef(null),C=k.useRef(null),R=k.useRef(null),[H,N]=k.useState(!1),[j,z]=k.useState(!1),[L,I]=k.useState(!1),[V,q]=k.useState("Untitled Document"),[B,D]=k.useState({bold:!1,italic:!1,underline:!1,strikeThrough:!1});k.useEffect(()=>{v.current&&e&&(v.current.innerHTML=e,S())},[e]);const S=k.useCallback(()=>{if(!v.current)return;const d=a=>{switch(a.tagName.toLowerCase()){case"h1":a.classList.add("text-3xl","font-bold","mt-6","mb-4","text-gray-800","border-b","pb-2");break;case"h2":a.classList.add("text-2xl","font-bold","mt-5","mb-3","text-gray-800");break;case"h3":a.classList.add("text-xl","font-bold","mt-4","mb-2","text-gray-800");break;case"p":a.classList.add("mb-4","text-gray-700","leading-relaxed");break;case"ul":a.classList.add("list-disc","list-inside","mb-4","ml-4","space-y-1");break;case"ol":a.classList.add("list-decimal","list-inside","mb-4","ml-4","space-y-1");break;case"li":a.classList.add("mb-1");break;case"a":a.classList.add("text-blue-600","hover:text-blue-800","underline","transition-colors");break;case"blockquote":a.classList.add("border-l-4","border-blue-500","pl-4","italic","text-gray-600","my-4");break;case"code":a.parentElement?.tagName.toLowerCase()!=="pre"&&a.classList.add("bg-gray-100","px-2","py-1","rounded","text-sm","font-mono");break;case"pre":a.classList.add("bg-gray-800","text-gray-100","p-4","rounded-lg","overflow-x-auto","my-4");break}Array.from(a.children).forEach(d)};Array.from(v.current.children).forEach(d)},[]),F=k.useCallback(()=>{if(!(o||!v.current))try{const d=window.getSelection();d&&d.rangeCount>0&&d.toString().length>0?D({bold:document.queryCommandState("bold"),italic:document.queryCommandState("italic"),underline:document.queryCommandState("underline"),strikeThrough:document.queryCommandState("strikeThrough")}):D({bold:!1,italic:!1,underline:!1,strikeThrough:!1})}catch(d){console.warn("Format state detection not available:",d)}},[o]),u=k.useCallback(()=>{if(!v.current)return;const d=v.current.innerHTML||"",a=v.current.innerText||"";i?.(a,d,V),S(),F()},[i,V,S,F]),A=d=>{const a=d.target.value;q(a);const T=v.current?.innerHTML||"",M=v.current?.innerText||"";i?.(M,T,a)},$=k.useCallback(d=>{if(!(o||!v.current))try{v.current.focus(),document.execCommand("formatBlock",!1,`<${d}>`),setTimeout(S,10),u(),F()}catch(a){console.warn(`Format block ${d} failed:`,a)}},[o,S,u,F]),ee=k.useCallback(d=>{if(!(o||!v.current))try{v.current.focus(),document.execCommand(d,!1,void 0),setTimeout(S,10),u(),F()}catch(a){console.warn(`List command ${d} failed:`,a)}},[o,S,u,F]);k.useEffect(()=>{const d=a=>{R.current&&!R.current.contains(a.target)&&(N(!1),z(!1),I(!1))};if(!o)return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[o]);const U=()=>{o||N(!0)},te=()=>{o||setTimeout(()=>N(!1),200)},_=k.useCallback((d,a)=>{if(!o)try{if(v.current?.focus(),d==="formatBlock"){$(a||"p");return}else if(d==="insertUnorderedList"||d==="insertOrderedList"){ee(d);return}else document.execCommand(d,!1,a);u(),F()}catch(T){console.warn(`Command ${d} failed:`,T)}},[o,$,ee,u,F]),O=k.useCallback(d=>a=>{a.preventDefault(),d()},[]),P=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#FFA500","#800080","#008000","#800000","#008080","#000080","#808080","#A52A2A","#FFC0CB","#FFD700","#90EE90","#ADD8E6"],G=["#FFFFFF","#000000","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#FFA500","#800080","#008000","#800000","#008080","#000080","#808080","#FFE4E1","#F0FFF0","#F0F8FF","#FFFACD","#F5F5F5","#E6E6FA","#FFEFD5","#F0E68C","#F5DEB3","#D3D3D3"],p=k.useCallback(d=>{_("foreColor",d)},[_]),re=k.useCallback(d=>{_("hiliteColor",d)},[_]),oe=k.useCallback(()=>{const d=v.current?.innerHTML||"",a=v.current?.innerText||"";n?.(a,d)},[n]),t=k.useCallback(()=>{const d=v.current?.innerHTML||"";r?.(d)},[r]),f=()=>c.jsx("div",{className:"w-px h-6 bg-gray-300 mx-1"}),g=({onClick:d,title:a,children:T,isActive:M=!1,className:Y=""})=>c.jsx("button",{className:me("w-8 h-8 flex items-center justify-center rounded hover:bg-gray-100 transition-colors",M&&"bg-blue-100 text-blue-600 border border-blue-300",Y),onMouseDown:ae=>ae.preventDefault(),onClick:O(d),title:a,type:"button",disabled:o,children:T}),w=({colors:d,onColorSelect:a,isOpen:T,onToggle:M,buttonContent:Y,title:ae})=>c.jsxs("div",{className:"relative",children:[c.jsxs(g,{onClick:M,title:ae,className:"relative",children:[Y,c.jsx("span",{className:"absolute -bottom-1 -right-1 text-[8px]",children:"▼"})]}),T&&c.jsx("div",{className:"absolute top-full left-0 mt-1 bg-white border border-gray-300 rounded-lg shadow-lg p-2 grid grid-cols-5 gap-1 z-20 min-w-[140px]",children:d.map(J=>c.jsx("button",{className:"w-5 h-5 rounded border border-gray-300 hover:scale-110 transition-transform",style:{backgroundColor:J},title:J,onMouseDown:Ct=>Ct.preventDefault(),onClick:O(()=>{a(J),M()})},J))})]});return c.jsxs("div",{ref:R,className:me("relative w-full bg-white border border-gray-300 rounded-lg overflow-hidden",o&&"pointer-events-none opacity-80"),children:[m&&c.jsx("div",{className:"p-6 border-b border-gray-200 bg-gray-50",children:c.jsx("input",{type:"text",className:me("w-full bg-transparent text-2xl font-bold text-gray-800 outline-none placeholder-gray-400",o&&"cursor-default"),value:V,onChange:A,placeholder:"Document Title",readOnly:o})}),b&&c.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-4 py-2 flex items-center gap-2",children:[c.jsx("button",{onClick:oe,disabled:o,className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed",children:"Save"}),c.jsx("button",{onClick:t,className:"px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700",children:"Export"})]}),!o&&H&&c.jsxs("div",{ref:C,className:"border-b border-gray-200 bg-white px-4 py-2 flex items-center gap-1 flex-wrap sticky top-0 z-10",children:[c.jsx(g,{onClick:()=>_("bold"),title:"Bold",isActive:B.bold,children:c.jsx("span",{className:"font-bold text-sm",children:"B"})}),c.jsx(g,{onClick:()=>_("italic"),title:"Italic",isActive:B.italic,children:c.jsx("span",{className:"italic text-sm",children:"I"})}),c.jsx(g,{onClick:()=>_("underline"),title:"Underline",isActive:B.underline,children:c.jsx("span",{className:"underline text-sm",children:"U"})}),c.jsx(f,{}),c.jsx(w,{colors:P,onColorSelect:p,isOpen:j,onToggle:()=>{z(!j),I(!1)},buttonContent:c.jsxs("div",{className:"flex flex-col items-center",children:[c.jsx("span",{className:"text-xs font-bold",children:"A"}),c.jsx("div",{className:"w-3 h-1 bg-red-500 mt-[-2px]"})]}),title:"Text Color"}),c.jsx(w,{colors:G,onColorSelect:re,isOpen:L,onToggle:()=>{I(!L),z(!1)},buttonContent:c.jsxs("div",{className:"flex flex-col items-center",children:[c.jsx("div",{className:"w-4 h-3 border border-gray-400 bg-yellow-200"}),c.jsx("span",{className:"text-[8px] mt-[-2px]",children:"Bg"})]}),title:"Background Color"}),c.jsx(f,{}),c.jsx(g,{onClick:()=>_("insertUnorderedList"),title:"Bulleted List",children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M4,3c0,1.1-0.9,2-2,2S0,4.1,0,3s0.9-2,2-2S4,1.9,4,3z M2,9c-1.1,0-2,0.9-2,2s0.9,2,2,2s2-0.9,2-2S3.1,9,2,9z M2,17c-1.1,0-2,0.9-2,2s0.9,2,2,2s2-0.9,2-2S3.1,17,2,17z M24,19c0-0.6-0.4-1-1-1H8c-0.6,0-1,0.4-1,1s0.4,1,1,1h15C23.6,20,24,19.6,24,19z M24,11c0-0.6-0.4-1-1-1H8c-0.6,0-1,0.4-1,1s0.4,1,1,1h15C23.6,12,24,11.6,24,11z M24,3c0-0.6-0.4-1-1-1H8C7.4,2,7,2.4,7,3s0.4,1,1,1h15C23.6,4,24,3.6,24,3z"})})}),c.jsx(g,{onClick:()=>_("insertOrderedList"),title:"Numbered List",children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M10 3a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H11a1 1 0 0 1-1-1Zm13 9H11a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2Zm0 10H11a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2ZM4 2.41V9.5a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5V1A1 1 0 0 0 4.669.056L.925 1.37a.499.499 0 0 0-.306.637l.331.944a.5.5 0 0 0 .637.307l2.414-.846H4ZM1 24h6.5a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H2.287c.556-.938 1.787-1.578 2.532-1.965l.339-.177C6.425 19.195 8 18.372 8 15.813 8 13.971 6.393 12 4 12 1.363 12 .409 14.103.272 15.214c0 0-.039.284-.062.504-.023.22.151.483.416.54.265.055.797.094 1.015.13.218.034.5-.06.537-.387.025-.22.078-.533.078-.533C2.291 15.223 2.543 14 4 14c1.239 0 2 1.056 2 1.813 0 1.293-.542 1.631-1.769 2.272l-.333.174C2.632 18.916 0 20.282 0 23 0 23 0 24 1 24Z"})})}),c.jsx(f,{}),c.jsx(g,{onClick:()=>_("formatBlock","h1"),title:"Heading 1",children:c.jsx("span",{className:"text-xs font-bold",children:"H1"})}),c.jsx(g,{onClick:()=>_("formatBlock","h2"),title:"Heading 2",children:c.jsx("span",{className:"text-xs font-bold",children:"H2"})}),c.jsx(g,{onClick:()=>_("formatBlock","h3"),title:"Heading 3",children:c.jsx("span",{className:"text-xs font-bold",children:"H3"})}),c.jsx(f,{}),c.jsx(g,{onClick:()=>_("formatBlock","blockquote"),title:"Quote",children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M2 3v20a1 1 0 1 1-2 0V3a1 1 0 1 1 2 0Zm5 3h12a1 1 0 1 0 0 2H7a1 1 0 1 0 0 2Zm16 6H7a1 1 0 1 0 0 2h16a1 1 0 1 0 0-2Zm-4 8H7a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2Z"})})}),c.jsx(g,{onClick:()=>_("formatBlock","pre"),title:"Code Block",children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 32 32",fill:"currentColor",children:c.jsx("path",{d:"M32 10v6a1 1 0 1 1-2 0v-6c0-2.206-1.794-4-4-4H6c-2.206 0-4 1.794-4 4v12c0 2.206 1.794 4 4 4h3a1 1 0 1 1 0 2H6c-3.309 0-6-2.691-6-6V10c0-3.309 2.691-6 6-6h20c3.309 0 6 2.691 6 6Zm-13.359 8.232a1 1 0 0 0-1.409.128l-5 6a1 1 0 0 0 0 1.28l5 6a1 1 0 0 0 1.538-1.28L14.303 25l4.467-5.36a1 1 0 0 0-.129-1.408Zm8.128.128a1 1 0 0 0-1.537 1.28L29.699 25l-4.467 5.36a1 1 0 1 0 1.538 1.28l5-6a1 1 0 0 0 0-1.28l-5.001-6Z"})})}),c.jsx(f,{}),c.jsx(g,{onClick:()=>_("undo"),title:"Undo",children:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:[c.jsx("path",{d:"M7.18 4.8a1 1 0 0 1 .77 1.84A7.8 7.8 0 1 0 16 12a1 1 0 1 1 2 0 9.8 9.8 0 1 1-9.37-9.88 1 1 0 0 1 .55.68Z"}),c.jsx("path",{d:"M11.29 7.71a1 1 0 0 1 0 1.42L9.41 11H17a1 1 0 1 1 0 2H9.41l1.88 1.88a1 1 0 0 1-1.42 1.41l-3.58-3.59a1 1 0 0 1 0-1.41l3.58-3.59a1 1 0 0 1 1.42 0Z"})]})}),c.jsx(g,{onClick:()=>_("redo"),title:"Redo",children:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:[c.jsx("path",{d:"M16.82 4.8a1 1 0 0 0-.77 1.84A7.8 7.8 0 1 1 8 12a1 1 0 1 0-2 0 9.8 9.8 0 1 0 9.37-9.88 1 1 0 0 0-.55.68Z"}),c.jsx("path",{d:"M12.71 7.71a1 1 0 0 0 0 1.42L14.59 11H7a1 1 0 1 0 0 2h7.59l-1.88 1.88a1 1 0 1 0 1.42 1.41l3.58-3.59a1 1 0 0 0 0-1.41l-3.58-3.59a1 1 0 0 0-1.42 0Z"})]})})]}),c.jsx("div",{ref:v,className:me("p-6 outline-none",`
23
+ <%s key={someKey} {...props} />`,w,n,E,n),oe[n+w]=!0)}if(n=null,d!==void 0&&(i(d),n=""+d),g(h)&&(i(h.key),n=""+h.key),"key"in h){d={};for(var N in h)N!=="key"&&(d[N]=h[N])}else d=h;return n&&y(d,typeof t=="function"?t.displayName||t.name||"Unknown":t),v(t,n,d,o(),W,u)}function A(t){D(t)?t._store&&(t._store.validated=1):typeof t=="object"&&t!==null&&t.$$typeof===M&&(t._payload.status==="fulfilled"?D(t._payload.value)&&t._payload.value._store&&(t._payload.value._store.validated=1):t._store&&(t._store.validated=1))}function D(t){return typeof t=="object"&&t!==null&&t.$$typeof===z}var P=_,z=Symbol.for("react.transitional.element"),F=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),T=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),U=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Object.prototype.hasOwnProperty,k=Array.isArray,B=console.createTask?console.createTask:function(){return null};P={react_stack_bottom_frame:function(t){return t()}};var L,O={},m=P.react_stack_bottom_frame.bind(P,f)(),re=B(r(f)),oe={};ce.Fragment=I,ce.jsx=function(t,h,d){var w=1e4>U.recentlyCreatedOwnerStacks++;return C(t,h,d,!1,w?Error("react-stack-top-frame"):m,w?B(r(t)):re)},ce.jsxs=function(t,h,d){var w=1e4>U.recentlyCreatedOwnerStacks++;return C(t,h,d,!0,w?Error("react-stack-top-frame"):m,w?B(r(t)):re)}})()),ce}var Ce;function De(){return Ce||(Ce=1,process.env.NODE_ENV==="production"?ue.exports=Oe():ue.exports=Ge()),ue.exports}var a=De();const fe="-",Ve=e=>{const l=We(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:g=>{const y=g.split(fe);return y[0]===""&&y.length!==1&&y.shift(),je(y,l)||Ue(g)},getConflictingClassGroupIds:(g,y)=>{const x=i[g]||[];return y&&r[g]?[...x,...r[g]]:x}}},je=(e,l)=>{if(e.length===0)return l.classGroupId;const i=e[0],r=l.nextPart.get(i),o=r?je(e.slice(1),r):void 0;if(o)return o;if(l.validators.length===0)return;const f=e.join(fe);return l.validators.find(({validator:g})=>g(f))?.classGroupId},ze=/^\[(.+)\]$/,Ue=e=>{if(ze.test(e)){const l=ze.exec(e)[1],i=l?.substring(0,l.indexOf(":"));if(i)return"arbitrary.."+i}},We=e=>{const{theme:l,classGroups:i}=e,r={nextPart:new Map,validators:[]};for(const o in i)he(i[o],r,o,l);return r},he=(e,l,i,r)=>{e.forEach(o=>{if(typeof o=="string"){const f=o===""?l:Ee(l,o);f.classGroupId=i;return}if(typeof o=="function"){if(Ye(o)){he(o(r),l,i,r);return}l.validators.push({validator:o,classGroupId:i});return}Object.entries(o).forEach(([f,g])=>{he(g,Ee(l,f),i,r)})})},Ee=(e,l)=>{let i=e;return l.split(fe).forEach(r=>{i.nextPart.has(r)||i.nextPart.set(r,{nextPart:new Map,validators:[]}),i=i.nextPart.get(r)}),i},Ye=e=>e.isThemeGetter,Ze=e=>{if(e<1)return{get:()=>{},set:()=>{}};let l=0,i=new Map,r=new Map;const o=(f,g)=>{i.set(f,g),l++,l>e&&(l=0,r=i,i=new Map)};return{get(f){let g=i.get(f);if(g!==void 0)return g;if((g=r.get(f))!==void 0)return o(f,g),g},set(f,g){i.has(f)?i.set(f,g):o(f,g)}}},be="!",xe=":",qe=xe.length,Je=e=>{const{prefix:l,experimentalParseClassName:i}=e;let r=o=>{const f=[];let g=0,y=0,x=0,v;for(let z=0;z<o.length;z++){let F=o[z];if(g===0&&y===0){if(F===xe){f.push(o.slice(x,z)),x=z+qe;continue}if(F==="/"){v=z;continue}}F==="["?g++:F==="]"?g--:F==="("?y++:F===")"&&y--}const C=f.length===0?o:o.substring(x),A=Xe(C),D=A!==C,P=v&&v>x?v-x:void 0;return{modifiers:f,hasImportantModifier:D,baseClassName:A,maybePostfixModifierPosition:P}};if(l){const o=l+xe,f=r;r=g=>g.startsWith(o)?f(g.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:g,maybePostfixModifierPosition:void 0}}if(i){const o=r;r=f=>i({className:f,parseClassName:o})}return r},Xe=e=>e.endsWith(be)?e.substring(0,e.length-1):e.startsWith(be)?e.substring(1):e,Qe=e=>{const l=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let f=[];return r.forEach(g=>{g[0]==="["||l[g]?(o.push(...f.sort(),g),f=[]):f.push(g)}),o.push(...f.sort()),o}},Ke=e=>({cache:Ze(e.cacheSize),parseClassName:Je(e),sortModifiers:Qe(e),...Ve(e)}),$e=/\s+/,et=(e,l)=>{const{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:f}=l,g=[],y=e.trim().split($e);let x="";for(let v=y.length-1;v>=0;v-=1){const C=y[v],{isExternal:A,modifiers:D,hasImportantModifier:P,baseClassName:z,maybePostfixModifierPosition:F}=i(C);if(A){x=C+(x.length>0?" "+x:x);continue}let I=!!F,H=r(I?z.substring(0,F):z);if(!H){if(!I){x=C+(x.length>0?" "+x:x);continue}if(H=r(z),!H){x=C+(x.length>0?" "+x:x);continue}I=!1}const V=f(D).join(":"),q=P?V+be:V,T=q+H;if(g.includes(T))continue;g.push(T);const G=o(H,I);for(let S=0;S<G.length;++S){const R=G[S];g.push(q+R)}x=C+(x.length>0?" "+x:x)}return x};function tt(){let e=0,l,i,r="";for(;e<arguments.length;)(l=arguments[e++])&&(i=Fe(l))&&(r&&(r+=" "),r+=i);return r}const Fe=e=>{if(typeof e=="string")return e;let l,i="";for(let r=0;r<e.length;r++)e[r]&&(l=Fe(e[r]))&&(i&&(i+=" "),i+=l);return i};function rt(e,...l){let i,r,o,f=g;function g(x){const v=l.reduce((C,A)=>A(C),e());return i=Ke(v),r=i.cache.get,o=i.cache.set,f=y,y(x)}function y(x){const v=r(x);if(v)return v;const C=et(x,i);return o(x,C),C}return function(){return f(tt.apply(null,arguments))}}const j=e=>{const l=i=>i[e]||[];return l.isThemeGetter=!0,l},Se=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Te=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ot=/^\d+\/\d+$/,at=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,it=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,st=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ne=e=>ot.test(e),b=e=>!!e&&!Number.isNaN(Number(e)),X=e=>!!e&&Number.isInteger(Number(e)),ve=e=>e.endsWith("%")&&b(e.slice(0,-1)),Z=e=>at.test(e),ct=()=>!0,dt=e=>nt.test(e)&&!it.test(e),Re=()=>!1,ut=e=>lt.test(e),pt=e=>st.test(e),mt=e=>!s(e)&&!c(e),gt=e=>ie(e,Le,Re),s=e=>Se.test(e),K=e=>ie(e,Ie,dt),we=e=>ie(e,vt,b),Ae=e=>ie(e,Ne,Re),ft=e=>ie(e,Pe,pt),pe=e=>ie(e,He,ut),c=e=>Te.test(e),de=e=>le(e,Ie),ht=e=>le(e,wt),Me=e=>le(e,Ne),bt=e=>le(e,Le),xt=e=>le(e,Pe),me=e=>le(e,He,!0),ie=(e,l,i)=>{const r=Se.exec(e);return r?r[1]?l(r[1]):i(r[2]):!1},le=(e,l,i=!1)=>{const r=Te.exec(e);return r?r[1]?l(r[1]):i:!1},Ne=e=>e==="position"||e==="percentage",Pe=e=>e==="image"||e==="url",Le=e=>e==="length"||e==="size"||e==="bg-size",Ie=e=>e==="length",vt=e=>e==="number",wt=e=>e==="family-name",He=e=>e==="shadow",yt=rt(()=>{const e=j("color"),l=j("font"),i=j("text"),r=j("font-weight"),o=j("tracking"),f=j("leading"),g=j("breakpoint"),y=j("container"),x=j("spacing"),v=j("radius"),C=j("shadow"),A=j("inset-shadow"),D=j("text-shadow"),P=j("drop-shadow"),z=j("blur"),F=j("perspective"),I=j("aspect"),H=j("ease"),V=j("animate"),q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...T(),c,s],S=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],p=()=>[c,s,x],M=()=>[ne,"full","auto",...p()],$=()=>[X,"none","subgrid",c,s],ee=()=>["auto",{span:["full",X,c,s]},X,c,s],U=()=>[X,"auto",c,s],te=()=>["auto","min","max","fr",c,s],k=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...p()],O=()=>[ne,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],m=()=>[e,c,s],re=()=>[...T(),Me,Ae,{position:[c,s]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],t=()=>["auto","cover","contain",bt,gt,{size:[c,s]}],h=()=>[ve,de,K],d=()=>["","none","full",v,c,s],w=()=>["",b,de,K],W=()=>["solid","dashed","dotted","double"],u=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],n=()=>[b,ve,Me,Ae],E=()=>["","none",z,c,s],N=()=>["none",b,c,s],Y=()=>["none",b,c,s],ae=()=>[b,c,s],J=()=>[ne,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Z],breakpoint:[Z],color:[ct],container:[Z],"drop-shadow":[Z],ease:["in","out","in-out"],font:[mt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Z],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Z],shadow:[Z],spacing:["px",b],text:[Z],"text-shadow":[Z],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ne,s,c,I]}],container:["container"],columns:[{columns:[b,s,c,y]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[X,"auto",c,s]}],basis:[{basis:[ne,"full","auto",y,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[b,ne,"auto","initial","none",s]}],grow:[{grow:["",b,c,s]}],shrink:[{shrink:["",b,c,s]}],order:[{order:[X,"first","last","none",c,s]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...k(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...k()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[y,"screen",...O()]}],"min-w":[{"min-w":[y,"screen","none",...O()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[g]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",i,de,K]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,c,we]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ve,s]}],"font-family":[{font:[ht,s,l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,c,s]}],"line-clamp":[{"line-clamp":[b,"none",c,we]}],leading:[{leading:[f,...p()]}],"list-image":[{"list-image":["none",c,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",c,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:m()}],"text-color":[{text:m()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[b,"from-font","auto",c,K]}],"text-decoration-color":[{decoration:m()}],"underline-offset":[{"underline-offset":[b,"auto",c,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c,s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:t()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},X,c,s],radial:["",c,s],conic:[X,c,s]},xt,ft]}],"bg-color":[{bg:m()}],"gradient-from-pos":[{from:h()}],"gradient-via-pos":[{via:h()}],"gradient-to-pos":[{to:h()}],"gradient-from":[{from:m()}],"gradient-via":[{via:m()}],"gradient-to":[{to:m()}],rounded:[{rounded:d()}],"rounded-s":[{"rounded-s":d()}],"rounded-e":[{"rounded-e":d()}],"rounded-t":[{"rounded-t":d()}],"rounded-r":[{"rounded-r":d()}],"rounded-b":[{"rounded-b":d()}],"rounded-l":[{"rounded-l":d()}],"rounded-ss":[{"rounded-ss":d()}],"rounded-se":[{"rounded-se":d()}],"rounded-ee":[{"rounded-ee":d()}],"rounded-es":[{"rounded-es":d()}],"rounded-tl":[{"rounded-tl":d()}],"rounded-tr":[{"rounded-tr":d()}],"rounded-br":[{"rounded-br":d()}],"rounded-bl":[{"rounded-bl":d()}],"border-w":[{border:w()}],"border-w-x":[{"border-x":w()}],"border-w-y":[{"border-y":w()}],"border-w-s":[{"border-s":w()}],"border-w-e":[{"border-e":w()}],"border-w-t":[{"border-t":w()}],"border-w-r":[{"border-r":w()}],"border-w-b":[{"border-b":w()}],"border-w-l":[{"border-l":w()}],"divide-x":[{"divide-x":w()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":w()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:m()}],"border-color-x":[{"border-x":m()}],"border-color-y":[{"border-y":m()}],"border-color-s":[{"border-s":m()}],"border-color-e":[{"border-e":m()}],"border-color-t":[{"border-t":m()}],"border-color-r":[{"border-r":m()}],"border-color-b":[{"border-b":m()}],"border-color-l":[{"border-l":m()}],"divide-color":[{divide:m()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[b,c,s]}],"outline-w":[{outline:["",b,de,K]}],"outline-color":[{outline:m()}],shadow:[{shadow:["","none",C,me,pe]}],"shadow-color":[{shadow:m()}],"inset-shadow":[{"inset-shadow":["none",A,me,pe]}],"inset-shadow-color":[{"inset-shadow":m()}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:m()}],"ring-offset-w":[{"ring-offset":[b,K]}],"ring-offset-color":[{"ring-offset":m()}],"inset-ring-w":[{"inset-ring":w()}],"inset-ring-color":[{"inset-ring":m()}],"text-shadow":[{"text-shadow":["none",D,me,pe]}],"text-shadow-color":[{"text-shadow":m()}],opacity:[{opacity:[b,c,s]}],"mix-blend":[{"mix-blend":[...u(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":u()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[b]}],"mask-image-linear-from-pos":[{"mask-linear-from":n()}],"mask-image-linear-to-pos":[{"mask-linear-to":n()}],"mask-image-linear-from-color":[{"mask-linear-from":m()}],"mask-image-linear-to-color":[{"mask-linear-to":m()}],"mask-image-t-from-pos":[{"mask-t-from":n()}],"mask-image-t-to-pos":[{"mask-t-to":n()}],"mask-image-t-from-color":[{"mask-t-from":m()}],"mask-image-t-to-color":[{"mask-t-to":m()}],"mask-image-r-from-pos":[{"mask-r-from":n()}],"mask-image-r-to-pos":[{"mask-r-to":n()}],"mask-image-r-from-color":[{"mask-r-from":m()}],"mask-image-r-to-color":[{"mask-r-to":m()}],"mask-image-b-from-pos":[{"mask-b-from":n()}],"mask-image-b-to-pos":[{"mask-b-to":n()}],"mask-image-b-from-color":[{"mask-b-from":m()}],"mask-image-b-to-color":[{"mask-b-to":m()}],"mask-image-l-from-pos":[{"mask-l-from":n()}],"mask-image-l-to-pos":[{"mask-l-to":n()}],"mask-image-l-from-color":[{"mask-l-from":m()}],"mask-image-l-to-color":[{"mask-l-to":m()}],"mask-image-x-from-pos":[{"mask-x-from":n()}],"mask-image-x-to-pos":[{"mask-x-to":n()}],"mask-image-x-from-color":[{"mask-x-from":m()}],"mask-image-x-to-color":[{"mask-x-to":m()}],"mask-image-y-from-pos":[{"mask-y-from":n()}],"mask-image-y-to-pos":[{"mask-y-to":n()}],"mask-image-y-from-color":[{"mask-y-from":m()}],"mask-image-y-to-color":[{"mask-y-to":m()}],"mask-image-radial":[{"mask-radial":[c,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":n()}],"mask-image-radial-to-pos":[{"mask-radial-to":n()}],"mask-image-radial-from-color":[{"mask-radial-from":m()}],"mask-image-radial-to-color":[{"mask-radial-to":m()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[b]}],"mask-image-conic-from-pos":[{"mask-conic-from":n()}],"mask-image-conic-to-pos":[{"mask-conic-to":n()}],"mask-image-conic-from-color":[{"mask-conic-from":m()}],"mask-image-conic-to-color":[{"mask-conic-to":m()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:t()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",c,s]}],filter:[{filter:["","none",c,s]}],blur:[{blur:E()}],brightness:[{brightness:[b,c,s]}],contrast:[{contrast:[b,c,s]}],"drop-shadow":[{"drop-shadow":["","none",P,me,pe]}],"drop-shadow-color":[{"drop-shadow":m()}],grayscale:[{grayscale:["",b,c,s]}],"hue-rotate":[{"hue-rotate":[b,c,s]}],invert:[{invert:["",b,c,s]}],saturate:[{saturate:[b,c,s]}],sepia:[{sepia:["",b,c,s]}],"backdrop-filter":[{"backdrop-filter":["","none",c,s]}],"backdrop-blur":[{"backdrop-blur":E()}],"backdrop-brightness":[{"backdrop-brightness":[b,c,s]}],"backdrop-contrast":[{"backdrop-contrast":[b,c,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",b,c,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b,c,s]}],"backdrop-invert":[{"backdrop-invert":["",b,c,s]}],"backdrop-opacity":[{"backdrop-opacity":[b,c,s]}],"backdrop-saturate":[{"backdrop-saturate":[b,c,s]}],"backdrop-sepia":[{"backdrop-sepia":["",b,c,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",c,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[b,"initial",c,s]}],ease:[{ease:["linear","initial",H,c,s]}],delay:[{delay:[b,c,s]}],animate:[{animate:["none",V,c,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[F,c,s]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:N()}],"rotate-x":[{"rotate-x":N()}],"rotate-y":[{"rotate-y":N()}],"rotate-z":[{"rotate-z":N()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[c,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:m()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:m()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c,s]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c,s]}],fill:[{fill:["none",...m()]}],"stroke-w":[{stroke:[b,de,K,we]}],stroke:[{stroke:["none",...m()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Be(e){var l,i,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(l=0;l<o;l++)e[l]&&(i=Be(e[l]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function kt(){for(var e,l,i=0,r="",o=arguments.length;i<o;i++)(e=arguments[i])&&(l=Be(e))&&(r&&(r+=" "),r+=l);return r}function ge(...e){return yt(kt(e))}const _t=({initialContent:e="",onChange:l,onSave:i,onExport:r,readOnly:o=!1,showButtons:f=!1,showSaveTitle:g=!1,showStatusBar:y=!1,height:x="500px"})=>{const v=_.useRef(null),C=_.useRef(null),A=_.useRef(null),[D,P]=_.useState(!1),[z,F]=_.useState(!1),[I,H]=_.useState(!1),[V,q]=_.useState("Untitled Document"),[T,G]=_.useState({bold:!1,italic:!1,underline:!1,strikeThrough:!1,justifyLeft:!1,justifyCenter:!1,justifyRight:!1,justifyFull:!1});_.useEffect(()=>{v.current&&e&&(v.current.innerHTML=e,S())},[e]);const S=_.useCallback(()=>{if(!v.current)return;const u=n=>{switch(n.tagName.toLowerCase()){case"h1":n.classList.add("text-3xl","font-bold","mt-6","mb-4","text-gray-800","border-b","pb-2");break;case"h2":n.classList.add("text-2xl","font-bold","mt-5","mb-3","text-gray-800");break;case"h3":n.classList.add("text-xl","font-bold","mt-4","mb-2","text-gray-800");break;case"p":n.classList.add("mb-4","text-gray-700","leading-relaxed");break;case"ul":n.classList.add("list-disc","list-inside","mb-4","ml-4","space-y-1");break;case"ol":n.classList.add("list-decimal","list-inside","mb-4","ml-4","space-y-1");break;case"li":n.classList.add("mb-1");break;case"a":n.classList.add("text-blue-600","hover:text-blue-800","underline","transition-colors");break;case"blockquote":n.classList.add("border-l-4","border-blue-500","pl-4","italic","text-gray-600","my-4");break;case"code":n.parentElement?.tagName.toLowerCase()!=="pre"&&n.classList.add("bg-gray-100","px-2","py-1","rounded","text-sm","font-mono");break;case"pre":n.classList.add("bg-gray-800","text-gray-100","p-4","rounded-lg","overflow-x-auto","my-4");break}Array.from(n.children).forEach(u)};Array.from(v.current.children).forEach(u)},[]),R=_.useCallback(()=>{if(!(o||!v.current))try{const u=window.getSelection();u&&u.rangeCount>0?G({bold:document.queryCommandState("bold"),italic:document.queryCommandState("italic"),underline:document.queryCommandState("underline"),strikeThrough:document.queryCommandState("strikeThrough"),justifyLeft:document.queryCommandState("justifyLeft"),justifyCenter:document.queryCommandState("justifyCenter"),justifyRight:document.queryCommandState("justifyRight"),justifyFull:document.queryCommandState("justifyFull")}):G({bold:!1,italic:!1,underline:!1,strikeThrough:!1,justifyLeft:!1,justifyCenter:!1,justifyRight:!1,justifyFull:!1})}catch(u){console.warn("Format state detection not available:",u)}},[o]),p=_.useCallback(()=>{if(!v.current)return;const u=v.current.innerHTML||"",n=v.current.innerText||"";l?.(n,u,V),S(),R()},[l,V,S,R]),M=u=>{const n=u.target.value;q(n);const E=v.current?.innerHTML||"",N=v.current?.innerText||"";l?.(N,E,n)},$=_.useCallback(u=>{if(!(o||!v.current))try{v.current.focus(),document.execCommand("formatBlock",!1,`<${u}>`),setTimeout(S,10),p(),R()}catch(n){console.warn(`Format block ${u} failed:`,n)}},[o,S,p,R]),ee=_.useCallback(u=>{if(!(o||!v.current))try{v.current.focus(),document.execCommand(u,!1,void 0),setTimeout(S,10),p(),R()}catch(n){console.warn(`List command ${u} failed:`,n)}},[o,S,p,R]);_.useEffect(()=>{const u=n=>{A.current&&!A.current.contains(n.target)&&(P(!1),F(!1),H(!1))};if(!o)return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[o]);const U=()=>{o||P(!0)},te=()=>{o||setTimeout(()=>P(!1),200)},k=_.useCallback((u,n)=>{if(!o)try{if(v.current?.focus(),u==="formatBlock"){$(n||"p");return}else if(u==="insertUnorderedList"||u==="insertOrderedList"){ee(u);return}else document.execCommand(u,!1,n);p(),R()}catch(E){console.warn(`Command ${u} failed:`,E)}},[o,$,ee,p,R]),B=_.useCallback(u=>n=>{n.preventDefault(),u()},[]),L=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#FFA500","#800080","#008000","#800000","#008080","#000080","#808080","#A52A2A","#FFC0CB","#FFD700","#90EE90","#ADD8E6"],O=["#FFFFFF","#000000","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#FFA500","#800080","#008000","#800000","#008080","#000080","#808080","#FFE4E1","#F0FFF0","#F0F8FF","#FFFACD","#F5F5F5","#E6E6FA","#FFEFD5","#F0E68C","#F5DEB3","#D3D3D3"],m=_.useCallback(u=>{k("foreColor",u)},[k]),re=_.useCallback(u=>{k("hiliteColor",u)},[k]),oe=_.useCallback(()=>{const u=v.current?.innerHTML||"",n=v.current?.innerText||"";i?.(n,u)},[i]),t=_.useCallback(()=>{const u=v.current?.innerHTML||"";r?.(u)},[r]),h=()=>a.jsx("div",{className:"w-px h-6 bg-gray-300 mx-1"}),d=({onClick:u,title:n,children:E,isActive:N=!1,className:Y=""})=>a.jsx("button",{className:ge("w-8 h-8 flex items-center justify-center rounded hover:bg-gray-100 transition-colors",N&&"bg-blue-100 text-blue-600 border border-blue-300",Y),onMouseDown:ae=>ae.preventDefault(),onClick:B(u),title:n,type:"button",disabled:o,children:E}),w=({colors:u,onColorSelect:n,isOpen:E,onToggle:N,buttonContent:Y,title:ae})=>a.jsxs("div",{className:"relative",children:[a.jsxs(d,{onClick:N,title:ae,className:"relative",children:[Y,a.jsx("span",{className:"absolute -bottom-1 -right-1 text-[8px]",children:"▼"})]}),E&&a.jsx("div",{className:"absolute top-full left-0 mt-1 bg-white border border-gray-300 rounded-lg shadow-lg p-2 grid grid-cols-5 gap-1 z-20 min-w-[140px]",children:u.map(J=>a.jsx("button",{className:"w-5 h-5 rounded border border-gray-300 hover:scale-110 transition-transform",style:{backgroundColor:J},title:J,onMouseDown:Ct=>Ct.preventDefault(),onClick:B(()=>{n(J),N()})},J))})]});return a.jsxs("div",{ref:A,className:ge("relative w-full bg-white border border-gray-300 rounded-lg overflow-hidden",o&&"pointer-events-none opacity-80"),children:[g&&a.jsx("div",{className:"p-6 border-b border-gray-200 bg-gray-50",children:a.jsx("input",{type:"text",className:ge("w-full bg-transparent text-2xl font-bold text-gray-800 outline-none placeholder-gray-400",o&&"cursor-default"),value:V,onChange:M,placeholder:"Document Title",readOnly:o})}),f&&a.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-4 py-2 flex items-center gap-2",children:[a.jsx("button",{onClick:oe,disabled:o,className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed",children:"Save"}),a.jsx("button",{onClick:t,className:"px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700",children:"Export"})]}),!o&&D&&a.jsxs("div",{ref:C,className:"border-b border-gray-200 bg-white px-4 py-2 flex items-center gap-1 flex-wrap sticky top-0 z-10",children:[a.jsx(d,{onClick:()=>k("bold"),title:"Bold",isActive:T.bold,children:a.jsx("span",{className:"font-bold text-sm",children:"B"})}),a.jsx(d,{onClick:()=>k("italic"),title:"Italic",isActive:T.italic,children:a.jsx("span",{className:"italic text-sm",children:"I"})}),a.jsx(d,{onClick:()=>k("underline"),title:"Underline",isActive:T.underline,children:a.jsx("span",{className:"underline text-sm",children:"U"})}),a.jsx(h,{}),a.jsx(d,{onClick:()=>k("justifyLeft"),title:"Align Left",isActive:T.justifyLeft,children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M3 5h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2zm0 4h12a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2zm0 4h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2zm0 4h12a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2zm0 4h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2z"})})}),a.jsx(d,{onClick:()=>k("justifyCenter"),title:"Align Center",isActive:T.justifyCenter,children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M3 5h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2zm3 4h12a1 1 0 1 0 0-2H6a1 1 0 1 0 0 2zm-3 4h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2zm3 4h12a1 1 0 1 0 0-2H6a1 1 0 1 0 0 2zm-3 4h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2z"})})}),a.jsx(d,{onClick:()=>k("justifyRight"),title:"Align Right",isActive:T.justifyRight,children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M3 5h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2zm9 4h9a1 1 0 1 0 0-2h-9a1 1 0 1 0 0 2zm9 4H3a1 1 0 1 0 0 2h18a1 1 0 1 0 0-2zm-9 4h9a1 1 0 1 0 0-2h-9a1 1 0 1 0 0 2zm9 4H3a1 1 0 1 0 0 2h18a1 1 0 1 0 0-2z"})})}),a.jsx(d,{onClick:()=>k("justifyFull"),title:"Justify",isActive:T.justifyFull,children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M3 5h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2zm0 4h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2zm0 4h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2zm0 4h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2zm0 4h18a1 1 0 1 0 0-2H3a1 1 0 1 0 0 2z"})})}),a.jsx(h,{}),a.jsx(w,{colors:L,onColorSelect:m,isOpen:z,onToggle:()=>{F(!z),H(!1)},buttonContent:a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx("span",{className:"text-xs font-bold",children:"A"}),a.jsx("div",{className:"w-3 h-1 bg-red-500 mt-[-2px]"})]}),title:"Text Color"}),a.jsx(w,{colors:O,onColorSelect:re,isOpen:I,onToggle:()=>{H(!I),F(!1)},buttonContent:a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx("div",{className:"w-4 h-3 border border-gray-400 bg-yellow-200"}),a.jsx("span",{className:"text-[8px] mt-[-2px]",children:"Bg"})]}),title:"Background Color"}),a.jsx(h,{}),a.jsx(d,{onClick:()=>k("insertUnorderedList"),title:"Bulleted List",children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M4,3c0,1.1-0.9,2-2,2S0,4.1,0,3s0.9-2,2-2S4,1.9,4,3z M2,9c-1.1,0-2,0.9-2,2s0.9,2,2,2s2-0.9,2-2S3.1,9,2,9z M2,17c-1.1,0-2,0.9-2,2s0.9,2,2,2s2-0.9,2-2S3.1,17,2,17z M24,19c0-0.6-0.4-1-1-1H8c-0.6,0-1,0.4-1,1s0.4,1,1,1h15C23.6,20,24,19.6,24,19z M24,11c0-0.6-0.4-1-1-1H8c-0.6,0-1,0.4-1,1s0.4,1,1,1h15C23.6,12,24,11.6,24,11z M24,3c0-0.6-0.4-1-1-1H8C7.4,2,7,2.4,7,3s0.4,1,1,1h15C23.6,4,24,3.6,24,3z"})})}),a.jsx(d,{onClick:()=>k("insertOrderedList"),title:"Numbered List",children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M10 3a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H11a1 1 0 0 1-1-1Zm13 9H11a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2Zm0 10H11a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2ZM4 2.41V9.5a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5V1A1 1 0 0 0 4.669.056L.925 1.37a.499.499 0 0 0-.306.637l.331.944a.5.5 0 0 0 .637.307l2.414-.846H4ZM1 24h6.5a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H2.287c.556-.938 1.787-1.578 2.532-1.965l.339-.177C6.425 19.195 8 18.372 8 15.813 8 13.971 6.393 12 4 12 1.363 12 .409 14.103.272 15.214c0 0-.039.284-.062.504-.023.22.151.483.416.54.265.055.797.094 1.015.13.218.034.5-.06.537-.387.025-.22.078-.533.078-.533C2.291 15.223 2.543 14 4 14c1.239 0 2 1.056 2 1.813 0 1.293-.542 1.631-1.769 2.272l-.333.174C2.632 18.916 0 20.282 0 23 0 23 0 24 1 24Z"})})}),a.jsx(h,{}),a.jsx(d,{onClick:()=>k("formatBlock","h1"),title:"Heading 1",children:a.jsx("span",{className:"text-xs font-bold",children:"H1"})}),a.jsx(d,{onClick:()=>k("formatBlock","h2"),title:"Heading 2",children:a.jsx("span",{className:"text-xs font-bold",children:"H2"})}),a.jsx(d,{onClick:()=>k("formatBlock","h3"),title:"Heading 3",children:a.jsx("span",{className:"text-xs font-bold",children:"H3"})}),a.jsx(h,{}),a.jsx(d,{onClick:()=>k("formatBlock","blockquote"),title:"Quote",children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M2 3v20a1 1 0 1 1-2 0V3a1 1 0 1 1 2 0Zm5 3h12a1 1 0 1 0 0 2H7a1 1 0 1 0 0 2Zm16 6H7a1 1 0 1 0 0 2h16a1 1 0 1 0 0-2Zm-4 8H7a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2Z"})})}),a.jsx(d,{onClick:()=>k("formatBlock","pre"),title:"Code Block",children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 32 32",fill:"currentColor",children:a.jsx("path",{d:"M32 10v6a1 1 0 1 1-2 0v-6c0-2.206-1.794-4-4-4H6c-2.206 0-4 1.794-4 4v12c0 2.206 1.794 4 4 4h3a1 1 0 1 1 0 2H6c-3.309 0-6-2.691-6-6V10c0-3.309 2.691-6 6-6h20c3.309 0 6 2.691 6 6Zm-13.359 8.232a1 1 0 0 0-1.409.128l-5 6a1 1 0 0 0 0 1.28l5 6a1 1 0 0 0 1.538-1.28L14.303 25l4.467-5.36a1 1 0 0 0-.129-1.408Zm8.128.128a1 1 0 0 0-1.537 1.28L29.699 25l-4.467 5.36a1 1 0 1 0 1.538 1.28l5-6a1 1 0 0 0 0-1.28l-5.001-6Z"})})}),a.jsx(h,{}),a.jsx(d,{onClick:()=>k("undo"),title:"Undo",children:a.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:[a.jsx("path",{d:"M7.18 4.8a1 1 0 0 1 .77 1.84A7.8 7.8 0 1 0 16 12a1 1 0 1 1 2 0 9.8 9.8 0 1 1-9.37-9.88 1 1 0 0 1 .55.68Z"}),a.jsx("path",{d:"M11.29 7.71a1 1 0 0 1 0 1.42L9.41 11H17a1 1 0 1 1 0 2H9.41l1.88 1.88a1 1 0 0 1-1.42 1.41l-3.58-3.59a1 1 0 0 1 0-1.41l3.58-3.59a1 1 0 0 1 1.42 0Z"})]})}),a.jsx(d,{onClick:()=>k("redo"),title:"Redo",children:a.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:[a.jsx("path",{d:"M16.82 4.8a1 1 0 0 0-.77 1.84A7.8 7.8 0 1 1 8 12a1 1 0 1 0-2 0 9.8 9.8 0 1 0 9.37-9.88 1 1 0 0 0-.55.68Z"}),a.jsx("path",{d:"M12.71 7.71a1 1 0 0 0 0 1.42L14.59 11H7a1 1 0 1 0 0 2h7.59l-1.88 1.88a1 1 0 1 0 1.42 1.41l3.58-3.59a1 1 0 0 0 0-1.41l-3.58-3.59a1 1 0 0 0-1.42 0Z"})]})})]}),a.jsx("div",{ref:v,className:ge("p-6 outline-none",`
24
24
  [&_h1]:text-3xl [&_h1]:font-bold [&_h1]:mt-6 [&_h1]:mb-4 [&_h1]:text-gray-800 [&_h1]:border-b [&_h1]:pb-2
25
25
  [&_h2]:text-2xl [&_h2]:font-bold [&_h2]:mt-5 [&_h2]:mb-3 [&_h2]:text-gray-800
26
26
  [&_h3]:text-xl [&_h3]:font-bold [&_h3]:mt-4 [&_h3]:mb-2 [&_h3]:text-gray-800
@@ -33,4 +33,4 @@ React keys must be passed directly to JSX without using spread:
33
33
  [&_code]:bg-gray-100 [&_code]:px-2 [&_code]:py-1 [&_code]:rounded [&_code]:text-sm [&_code]:font-mono
34
34
  [&_pre]:bg-gray-800 [&_pre]:text-gray-100 [&_pre]:p-4 [&_pre]:rounded-lg [&_pre]:overflow-x-auto [&_pre]:my-4
35
35
  [&_pre_code]:bg-transparent [&_pre_code]:text-inherit [&_pre_code]:p-0
36
- `,o?"bg-transparent cursor-default":"cursor-text bg-white","min-h-[500px]"),contentEditable:!o,suppressContentEditableWarning:!0,onFocus:U,onBlur:te,onInput:u,onKeyDown:d=>{d.key==="Tab"&&(d.preventDefault(),_("indent"))},"data-placeholder":o?"":"Start typing...",style:{minHeight:x}}),y&&c.jsxs("div",{className:"px-6 py-3 border-t border-gray-200 bg-gray-50 text-xs text-gray-500 flex justify-between",children:[c.jsxs("span",{children:["Words:"," ",v.current?.innerText?.split(/\s+/).filter(d=>d.length>0).length||0]}),c.jsxs("span",{children:["Characters: ",v.current?.innerText?.length||0]})]})]})};Q.TextEditor=_t,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})}));
36
+ `,o?"bg-transparent cursor-default":"cursor-text bg-white","min-h-[500px]"),contentEditable:!o,suppressContentEditableWarning:!0,onFocus:U,onBlur:te,onInput:p,onKeyDown:u=>{u.key==="Tab"&&(u.preventDefault(),k("indent"))},"data-placeholder":o?"":"Start typing...",style:{minHeight:x}}),y&&a.jsxs("div",{className:"px-6 py-3 border-t border-gray-200 bg-gray-50 text-xs text-gray-500 flex justify-between",children:[a.jsxs("span",{children:["Words:"," ",v.current?.innerText?.split(/\s+/).filter(u=>u.length>0).length||0]}),a.jsxs("span",{children:["Characters: ",v.current?.innerText?.length||0]})]})]})};Q.TextEditor=_t,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abduljebar/text-editor",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "description": "A professional React text editor with export, save, and validation features",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",