@dubai-design-system/components-js 3.9.14 → 3.10.0

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.
Files changed (207) hide show
  1. package/dist/cjs/dda-breadcrumb.cjs.entry.js +2 -1
  2. package/dist/cjs/dda-breadcrumb.cjs.entry.js.map +1 -1
  3. package/dist/cjs/dda-header-menu_3.cjs.entry.js +27 -7
  4. package/dist/cjs/dda-header-menu_3.cjs.entry.js.map +1 -1
  5. package/dist/cjs/dda-header.cjs.entry.js +25 -23
  6. package/dist/cjs/dda-header.cjs.entry.js.map +1 -1
  7. package/dist/cjs/dda-image-card.cjs.entry.js +8 -10
  8. package/dist/cjs/dda-image-card.cjs.entry.js.map +1 -1
  9. package/dist/cjs/dda-information-card.cjs.entry.js +8 -10
  10. package/dist/cjs/dda-information-card.cjs.entry.js.map +1 -1
  11. package/dist/cjs/dda-pagination.cjs.entry.js +4 -2
  12. package/dist/cjs/dda-pagination.cjs.entry.js.map +1 -1
  13. package/dist/cjs/dda-teamsection-card.cjs.entry.js +18 -13
  14. package/dist/cjs/dda-teamsection-card.cjs.entry.js.map +1 -1
  15. package/dist/cjs/dda.cjs.js +1 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/collection/assets/img/Team-Section-Card-1.svg +9 -9
  18. package/dist/collection/assets/img/icn/icn-Config.svg +9 -9
  19. package/dist/collection/assets/img/icn/icn-card-facebook.svg +11 -11
  20. package/dist/collection/assets/img/icn/icn-card-linkdin.svg +4 -4
  21. package/dist/collection/assets/img/icn/icn-card-telegram.svg +11 -11
  22. package/dist/collection/assets/img/icn/icn-card-twitter-x.svg +10 -10
  23. package/dist/collection/components/cards/dda-image-card/dda-image-card.js +45 -10
  24. package/dist/collection/components/cards/dda-image-card/dda-image-card.js.map +1 -1
  25. package/dist/collection/components/cards/dda-information-card/dda-information-card.js +45 -10
  26. package/dist/collection/components/cards/dda-information-card/dda-information-card.js.map +1 -1
  27. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +22 -1
  28. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js.map +1 -1
  29. package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.js +55 -13
  30. package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.js.map +1 -1
  31. package/dist/collection/components/dda-header/dda-header.js +59 -23
  32. package/dist/collection/components/dda-header/dda-header.js.map +1 -1
  33. package/dist/collection/components/dda-header/dda-header.stories.js +8 -0
  34. package/dist/collection/components/dda-header/dda-header.stories.js.map +1 -1
  35. package/dist/collection/components/dda-header-menu/dda-header-menu.js +63 -6
  36. package/dist/collection/components/dda-header-menu/dda-header-menu.js.map +1 -1
  37. package/dist/collection/components/dda-input/dda-input.js +1 -1
  38. package/dist/collection/components/dda-input/dda-input.js.map +1 -1
  39. package/dist/collection/components/dda-pagination/dda-pagination.js +21 -2
  40. package/dist/collection/components/dda-pagination/dda-pagination.js.map +1 -1
  41. package/dist/collection/components/dda-slider/dda-slider.js +1 -1
  42. package/dist/components/dda-breadcrumb.js +4 -2
  43. package/dist/components/dda-breadcrumb.js.map +1 -1
  44. package/dist/components/dda-header-menu.js +1 -1
  45. package/dist/components/dda-header.js +28 -25
  46. package/dist/components/dda-header.js.map +1 -1
  47. package/dist/components/dda-image-card.js +11 -12
  48. package/dist/components/dda-image-card.js.map +1 -1
  49. package/dist/components/dda-information-card.js +11 -12
  50. package/dist/components/dda-information-card.js.map +1 -1
  51. package/dist/components/dda-input.js +1 -1
  52. package/dist/components/dda-pagination.js +5 -3
  53. package/dist/components/dda-pagination.js.map +1 -1
  54. package/dist/components/dda-teamsection-card.js +20 -14
  55. package/dist/components/dda-teamsection-card.js.map +1 -1
  56. package/dist/components/{p-359c3483.js → p-2f1766a5.js} +2 -2
  57. package/dist/components/p-2f1766a5.js.map +1 -0
  58. package/dist/components/{p-b7cfca52.js → p-923d3716.js} +29 -8
  59. package/dist/components/p-923d3716.js.map +1 -0
  60. package/dist/dda/dda.esm.js +1 -1
  61. package/dist/dda/dda.esm.js.map +1 -1
  62. package/dist/dda/p-057d1267.entry.js +2 -0
  63. package/dist/dda/p-057d1267.entry.js.map +1 -0
  64. package/dist/dda/{p-9a324a3e.entry.js → p-41d6b9ac.entry.js} +2 -2
  65. package/dist/dda/p-41d6b9ac.entry.js.map +1 -0
  66. package/dist/dda/{p-af82ab21.entry.js → p-4fe70ce0.entry.js} +2 -2
  67. package/dist/dda/p-4fe70ce0.entry.js.map +1 -0
  68. package/dist/dda/p-5f012377.entry.js +2 -0
  69. package/dist/dda/p-5f012377.entry.js.map +1 -0
  70. package/dist/dda/p-902659c3.entry.js +2 -0
  71. package/dist/dda/p-902659c3.entry.js.map +1 -0
  72. package/dist/dda/p-91f118b4.entry.js +2 -0
  73. package/dist/dda/p-91f118b4.entry.js.map +1 -0
  74. package/dist/dda/p-ffee072d.entry.js +2 -0
  75. package/dist/dda/p-ffee072d.entry.js.map +1 -0
  76. package/dist/esm/dda-breadcrumb.entry.js +2 -1
  77. package/dist/esm/dda-breadcrumb.entry.js.map +1 -1
  78. package/dist/esm/dda-header-menu_3.entry.js +28 -8
  79. package/dist/esm/dda-header-menu_3.entry.js.map +1 -1
  80. package/dist/esm/dda-header.entry.js +25 -23
  81. package/dist/esm/dda-header.entry.js.map +1 -1
  82. package/dist/esm/dda-image-card.entry.js +9 -11
  83. package/dist/esm/dda-image-card.entry.js.map +1 -1
  84. package/dist/esm/dda-information-card.entry.js +9 -11
  85. package/dist/esm/dda-information-card.entry.js.map +1 -1
  86. package/dist/esm/dda-pagination.entry.js +5 -3
  87. package/dist/esm/dda-pagination.entry.js.map +1 -1
  88. package/dist/esm/dda-teamsection-card.entry.js +19 -14
  89. package/dist/esm/dda-teamsection-card.entry.js.map +1 -1
  90. package/dist/esm/dda.js +1 -1
  91. package/dist/esm/loader.js +1 -1
  92. package/dist/types/components/cards/dda-image-card/dda-image-card.d.ts +3 -0
  93. package/dist/types/components/cards/dda-information-card/dda-information-card.d.ts +3 -0
  94. package/dist/types/components/dda-breadcrumb/dda-breadcrumb.d.ts +1 -0
  95. package/dist/types/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.d.ts +3 -0
  96. package/dist/types/components/dda-header/dda-header.d.ts +2 -0
  97. package/dist/types/components/dda-header-menu/dda-header-menu.d.ts +4 -1
  98. package/dist/types/components/dda-pagination/dda-pagination.d.ts +2 -0
  99. package/dist/types/components.d.ts +94 -0
  100. package/package.json +5 -3
  101. package/readme.md +10 -0
  102. package/www/build/dda.esm.js +2 -0
  103. package/www/build/dda.esm.js.map +1 -0
  104. package/www/build/dda.js +33 -0
  105. package/www/build/index.esm.js +2 -0
  106. package/www/build/index.esm.js.map +1 -0
  107. package/www/build/p-057d1267.entry.js +2 -0
  108. package/www/build/p-057d1267.entry.js.map +1 -0
  109. package/www/build/p-0b907f2d.entry.js +2 -0
  110. package/www/build/p-0b907f2d.entry.js.map +1 -0
  111. package/www/build/p-1b339a0a.js +3 -0
  112. package/www/build/p-1b339a0a.js.map +1 -0
  113. package/{dist/dda/p-86c330a1.entry.js → www/build/p-1b39c706.entry.js} +2 -2
  114. package/www/build/p-1b39c706.entry.js.map +1 -0
  115. package/www/build/p-1cf47f82.entry.js +2 -0
  116. package/www/build/p-1cf47f82.entry.js.map +1 -0
  117. package/{dist/dda/p-7dc8f091.entry.js → www/build/p-1ef42407.entry.js} +2 -2
  118. package/www/build/p-1ef42407.entry.js.map +1 -0
  119. package/www/build/p-2b94f102.entry.js +2 -0
  120. package/www/build/p-2b94f102.entry.js.map +1 -0
  121. package/www/build/p-354c8d1e.entry.js +2 -0
  122. package/www/build/p-354c8d1e.entry.js.map +1 -0
  123. package/www/build/p-41d6b9ac.entry.js +2 -0
  124. package/www/build/p-41d6b9ac.entry.js.map +1 -0
  125. package/www/build/p-48381b90.entry.js +2 -0
  126. package/www/build/p-48381b90.entry.js.map +1 -0
  127. package/www/build/p-49ae4f84.entry.js +2 -0
  128. package/www/build/p-49ae4f84.entry.js.map +1 -0
  129. package/www/build/p-4fe70ce0.entry.js +2 -0
  130. package/www/build/p-4fe70ce0.entry.js.map +1 -0
  131. package/www/build/p-56615c96.entry.js +2 -0
  132. package/www/build/p-56615c96.entry.js.map +1 -0
  133. package/www/build/p-5695b505.entry.js +2 -0
  134. package/www/build/p-5695b505.entry.js.map +1 -0
  135. package/www/build/p-5b3b4503.entry.js +2 -0
  136. package/www/build/p-5b3b4503.entry.js.map +1 -0
  137. package/www/build/p-5be9efd2.entry.js +2 -0
  138. package/www/build/p-5be9efd2.entry.js.map +1 -0
  139. package/www/build/p-5f012377.entry.js +2 -0
  140. package/www/build/p-5f012377.entry.js.map +1 -0
  141. package/www/build/p-66833c48.entry.js +2 -0
  142. package/www/build/p-66833c48.entry.js.map +1 -0
  143. package/{dist/dda/p-99cef84d.entry.js → www/build/p-6833d8d3.entry.js} +2 -2
  144. package/www/build/p-6833d8d3.entry.js.map +1 -0
  145. package/www/build/p-70262fb7.entry.js +2 -0
  146. package/www/build/p-70262fb7.entry.js.map +1 -0
  147. package/www/build/p-76b6b88d.entry.js +2 -0
  148. package/www/build/p-76b6b88d.entry.js.map +1 -0
  149. package/www/build/p-79b8c454.entry.js +2 -0
  150. package/www/build/p-79b8c454.entry.js.map +1 -0
  151. package/www/build/p-81cdf6f5.entry.js +2 -0
  152. package/www/build/p-81cdf6f5.entry.js.map +1 -0
  153. package/www/build/p-89918f08.entry.js +2 -0
  154. package/www/build/p-89918f08.entry.js.map +1 -0
  155. package/www/build/p-902659c3.entry.js +2 -0
  156. package/www/build/p-902659c3.entry.js.map +1 -0
  157. package/www/build/p-91f118b4.entry.js +2 -0
  158. package/www/build/p-91f118b4.entry.js.map +1 -0
  159. package/www/build/p-95901bdd.entry.js +2 -0
  160. package/www/build/p-95901bdd.entry.js.map +1 -0
  161. package/www/build/p-9ffd21eb.entry.js +2 -0
  162. package/www/build/p-9ffd21eb.entry.js.map +1 -0
  163. package/www/build/p-a05165f5.entry.js +2 -0
  164. package/www/build/p-a05165f5.entry.js.map +1 -0
  165. package/www/build/p-a66ec21a.entry.js +2 -0
  166. package/www/build/p-a66ec21a.entry.js.map +1 -0
  167. package/www/build/p-aa0fa5c0.entry.js +2 -0
  168. package/www/build/p-aa0fa5c0.entry.js.map +1 -0
  169. package/www/build/p-ab196c53.entry.js +2 -0
  170. package/www/build/p-ab196c53.entry.js.map +1 -0
  171. package/www/build/p-ad58fc1d.entry.js +2 -0
  172. package/www/build/p-ad58fc1d.entry.js.map +1 -0
  173. package/www/build/p-bd0d09ff.entry.js +2 -0
  174. package/www/build/p-bd0d09ff.entry.js.map +1 -0
  175. package/www/build/p-c7272868.entry.js +2 -0
  176. package/www/build/p-c7272868.entry.js.map +1 -0
  177. package/www/build/p-c780c09d.entry.js +2 -0
  178. package/www/build/p-c780c09d.entry.js.map +1 -0
  179. package/www/build/p-e1255160.js +2 -0
  180. package/www/build/p-e1255160.js.map +1 -0
  181. package/www/build/p-e808d48a.entry.js +2 -0
  182. package/www/build/p-e808d48a.entry.js.map +1 -0
  183. package/www/build/p-ebe51825.entry.js +2 -0
  184. package/www/build/p-ebe51825.entry.js.map +1 -0
  185. package/www/build/p-f254f378.entry.js +2 -0
  186. package/www/build/p-f254f378.entry.js.map +1 -0
  187. package/www/build/p-f2ee00eb.entry.js +2 -0
  188. package/www/build/p-f2ee00eb.entry.js.map +1 -0
  189. package/www/build/p-f3b118be.entry.js +2 -0
  190. package/www/build/p-f3b118be.entry.js.map +1 -0
  191. package/www/build/p-f778cd2b.entry.js +2 -0
  192. package/www/build/p-f778cd2b.entry.js.map +1 -0
  193. package/www/build/p-fddd10bb.entry.js +2 -0
  194. package/www/build/p-fddd10bb.entry.js.map +1 -0
  195. package/www/build/p-ffee072d.entry.js +2 -0
  196. package/www/build/p-ffee072d.entry.js.map +1 -0
  197. package/dist/components/p-359c3483.js.map +0 -1
  198. package/dist/components/p-b7cfca52.js.map +0 -1
  199. package/dist/dda/p-7dc8f091.entry.js.map +0 -1
  200. package/dist/dda/p-86c330a1.entry.js.map +0 -1
  201. package/dist/dda/p-99cef84d.entry.js.map +0 -1
  202. package/dist/dda/p-9a324a3e.entry.js.map +0 -1
  203. package/dist/dda/p-af82ab21.entry.js.map +0 -1
  204. package/dist/dda/p-d971b523.entry.js +0 -2
  205. package/dist/dda/p-d971b523.entry.js.map +0 -1
  206. package/dist/dda/p-d993427b.entry.js +0 -2
  207. package/dist/dda/p-d993427b.entry.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import{r as t,c as e,h as r,H as n,g as i}from"./p-1b339a0a.js";var a=typeof global=="object"&&global&&global.Object===Object&&global;const s=a;var d=typeof self=="object"&&self&&self.Object===Object&&self;var o=s||d||Function("return this")();const l=o;var c=l.Symbol;const u=c;var f=Object.prototype;var h=f.hasOwnProperty;var p=f.toString;var m=u?u.toStringTag:undefined;function v(t){var e=h.call(t,m),r=t[m];try{t[m]=undefined;var n=true}catch(t){}var i=p.call(t);if(n){if(e){t[m]=r}else{delete t[m]}}return i}var g=Object.prototype;var b=g.toString;function y(t){return b.call(t)}var x="[object Null]",w="[object Undefined]";var k=u?u.toStringTag:undefined;function j(t){if(t==null){return t===undefined?w:x}return k&&k in Object(t)?v(t):y(t)}function A(t){return t!=null&&typeof t=="object"}var F=Array.isArray;const q=F;function E(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function O(t){return t}var B="[object AsyncFunction]",M="[object Function]",D="[object GeneratorFunction]",C="[object Proxy]";function L(t){if(!E(t)){return false}var e=j(t);return e==M||e==D||e==B||e==C}var z=l["__core-js_shared__"];const T=z;var N=function(){var t=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function $(t){return!!N&&N in t}var R=Function.prototype;var _=R.toString;function S(t){if(t!=null){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var I=/[\\^$.*+?()[\]{}|]/g;var V=/^\[object .+?Constructor\]$/;var H=Function.prototype,U=Object.prototype;var P=H.toString;var Z=U.hasOwnProperty;var K=RegExp("^"+P.call(Z).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function W(t){if(!E(t)||$(t)){return false}var e=L(t)?K:V;return e.test(S(t))}function G(t,e){return t==null?undefined:t[e]}function Q(t,e){var r=G(t,e);return W(r)?r:undefined}var Y=Q(l,"WeakMap");const X=Y;var J=Object.create;var tt=function(){function t(){}return function(e){if(!E(e)){return{}}if(J){return J(e)}t.prototype=e;var r=new t;t.prototype=undefined;return r}}();const et=tt;function rt(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function nt(t,e){var r=-1,n=t.length;e||(e=Array(n));while(++r<n){e[r]=t[r]}return e}var it=800,at=16;var st=Date.now;function dt(t){var e=0,r=0;return function(){var n=st(),i=at-(n-r);r=n;if(i>0){if(++e>=it){return arguments[0]}}else{e=0}return t.apply(undefined,arguments)}}function ot(t){return function(){return t}}var lt=function(){try{var t=Q(Object,"defineProperty");t({},"",{});return t}catch(t){}}();const ct=lt;var ut=!ct?O:function(t,e){return ct(t,"toString",{configurable:true,enumerable:false,value:ot(e),writable:true})};const ft=ut;var ht=dt(ft);const pt=ht;function mt(t,e){var r=-1,n=t==null?0:t.length;while(++r<n){if(e(t[r],r,t)===false){break}}return t}var vt=9007199254740991;var gt=/^(?:0|[1-9]\d*)$/;function bt(t,e){var r=typeof t;e=e==null?vt:e;return!!e&&(r=="number"||r!="symbol"&&gt.test(t))&&(t>-1&&t%1==0&&t<e)}function yt(t,e,r){if(e=="__proto__"&&ct){ct(t,e,{configurable:true,enumerable:true,value:r,writable:true})}else{t[e]=r}}function xt(t,e){return t===e||t!==t&&e!==e}var wt=Object.prototype;var kt=wt.hasOwnProperty;function jt(t,e,r){var n=t[e];if(!(kt.call(t,e)&&xt(n,r))||r===undefined&&!(e in t)){yt(t,e,r)}}function At(t,e,r,n){var i=!r;r||(r={});var a=-1,s=e.length;while(++a<s){var d=e[a];var o=n?n(r[d],t[d],d,r,t):undefined;if(o===undefined){o=t[d]}if(i){yt(r,d,o)}else{jt(r,d,o)}}return r}var Ft=Math.max;function qt(t,e,r){e=Ft(e===undefined?t.length-1:e,0);return function(){var n=arguments,i=-1,a=Ft(n.length-e,0),s=Array(a);while(++i<a){s[i]=n[e+i]}i=-1;var d=Array(e+1);while(++i<e){d[i]=n[i]}d[e]=r(s);return rt(t,this,d)}}function Et(t,e){return pt(qt(t,e,O),t+"")}var Ot=9007199254740991;function Bt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ot}function Mt(t){return t!=null&&Bt(t.length)&&!L(t)}function Dt(t,e,r){if(!E(r)){return false}var n=typeof e;if(n=="number"?Mt(r)&&bt(e,r.length):n=="string"&&e in r){return xt(r[e],t)}return false}function Ct(t){return Et((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:undefined,s=i>2?r[2]:undefined;a=t.length>3&&typeof a=="function"?(i--,a):undefined;if(s&&Dt(r[0],r[1],s)){a=i<3?undefined:a;i=1}e=Object(e);while(++n<i){var d=r[n];if(d){t(e,d,n,a)}}return e}))}var Lt=Object.prototype;function zt(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Lt;return t===r}function Tt(t,e){var r=-1,n=Array(t);while(++r<t){n[r]=e(r)}return n}var Nt="[object Arguments]";function $t(t){return A(t)&&j(t)==Nt}var Rt=Object.prototype;var _t=Rt.hasOwnProperty;var St=Rt.propertyIsEnumerable;var It=$t(function(){return arguments}())?$t:function(t){return A(t)&&_t.call(t,"callee")&&!St.call(t,"callee")};const Vt=It;function Ht(){return false}var Ut=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var Pt=Ut&&typeof module=="object"&&module&&!module.nodeType&&module;var Zt=Pt&&Pt.exports===Ut;var Kt=Zt?l.Buffer:undefined;var Wt=Kt?Kt.isBuffer:undefined;var Gt=Wt||Ht;const Qt=Gt;var Yt="[object Arguments]",Xt="[object Array]",Jt="[object Boolean]",te="[object Date]",ee="[object Error]",re="[object Function]",ne="[object Map]",ie="[object Number]",ae="[object Object]",se="[object RegExp]",de="[object Set]",oe="[object String]",le="[object WeakMap]";var ce="[object ArrayBuffer]",ue="[object DataView]",fe="[object Float32Array]",he="[object Float64Array]",pe="[object Int8Array]",me="[object Int16Array]",ve="[object Int32Array]",ge="[object Uint8Array]",be="[object Uint8ClampedArray]",ye="[object Uint16Array]",xe="[object Uint32Array]";var we={};we[fe]=we[he]=we[pe]=we[me]=we[ve]=we[ge]=we[be]=we[ye]=we[xe]=true;we[Yt]=we[Xt]=we[ce]=we[Jt]=we[ue]=we[te]=we[ee]=we[re]=we[ne]=we[ie]=we[ae]=we[se]=we[de]=we[oe]=we[le]=false;function ke(t){return A(t)&&Bt(t.length)&&!!we[j(t)]}function je(t){return function(e){return t(e)}}var Ae=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var Fe=Ae&&typeof module=="object"&&module&&!module.nodeType&&module;var qe=Fe&&Fe.exports===Ae;var Ee=qe&&s.process;var Oe=function(){try{var t=Fe&&Fe.require&&Fe.require("util").types;if(t){return t}return Ee&&Ee.binding&&Ee.binding("util")}catch(t){}}();const Be=Oe;var Me=Be&&Be.isTypedArray;var De=Me?je(Me):ke;const Ce=De;var Le=Object.prototype;var ze=Le.hasOwnProperty;function Te(t,e){var r=q(t),n=!r&&Vt(t),i=!r&&!n&&Qt(t),a=!r&&!n&&!i&&Ce(t),s=r||n||i||a,d=s?Tt(t.length,String):[],o=d.length;for(var l in t){if((e||ze.call(t,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||bt(l,o)))){d.push(l)}}return d}function Ne(t,e){return function(r){return t(e(r))}}var $e=Ne(Object.keys,Object);const Re=$e;var _e=Object.prototype;var Se=_e.hasOwnProperty;function Ie(t){if(!zt(t)){return Re(t)}var e=[];for(var r in Object(t)){if(Se.call(t,r)&&r!="constructor"){e.push(r)}}return e}function Ve(t){return Mt(t)?Te(t):Ie(t)}function He(t){var e=[];if(t!=null){for(var r in Object(t)){e.push(r)}}return e}var Ue=Object.prototype;var Pe=Ue.hasOwnProperty;function Ze(t){if(!E(t)){return He(t)}var e=zt(t),r=[];for(var n in t){if(!(n=="constructor"&&(e||!Pe.call(t,n)))){r.push(n)}}return r}function Ke(t){return Mt(t)?Te(t,true):Ze(t)}var We=Q(Object,"create");const Ge=We;function Qe(){this.__data__=Ge?Ge(null):{};this.size=0}function Ye(t){var e=this.has(t)&&delete this.__data__[t];this.size-=e?1:0;return e}var Xe="__lodash_hash_undefined__";var Je=Object.prototype;var tr=Je.hasOwnProperty;function er(t){var e=this.__data__;if(Ge){var r=e[t];return r===Xe?undefined:r}return tr.call(e,t)?e[t]:undefined}var rr=Object.prototype;var nr=rr.hasOwnProperty;function ir(t){var e=this.__data__;return Ge?e[t]!==undefined:nr.call(e,t)}var ar="__lodash_hash_undefined__";function sr(t,e){var r=this.__data__;this.size+=this.has(t)?0:1;r[t]=Ge&&e===undefined?ar:e;return this}function dr(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}dr.prototype.clear=Qe;dr.prototype["delete"]=Ye;dr.prototype.get=er;dr.prototype.has=ir;dr.prototype.set=sr;function or(){this.__data__=[];this.size=0}function lr(t,e){var r=t.length;while(r--){if(xt(t[r][0],e)){return r}}return-1}var cr=Array.prototype;var ur=cr.splice;function fr(t){var e=this.__data__,r=lr(e,t);if(r<0){return false}var n=e.length-1;if(r==n){e.pop()}else{ur.call(e,r,1)}--this.size;return true}function hr(t){var e=this.__data__,r=lr(e,t);return r<0?undefined:e[r][1]}function pr(t){return lr(this.__data__,t)>-1}function mr(t,e){var r=this.__data__,n=lr(r,t);if(n<0){++this.size;r.push([t,e])}else{r[n][1]=e}return this}function vr(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}vr.prototype.clear=or;vr.prototype["delete"]=fr;vr.prototype.get=hr;vr.prototype.has=pr;vr.prototype.set=mr;var gr=Q(l,"Map");const br=gr;function yr(){this.size=0;this.__data__={hash:new dr,map:new(br||vr),string:new dr}}function xr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function wr(t,e){var r=t.__data__;return xr(e)?r[typeof e=="string"?"string":"hash"]:r.map}function kr(t){var e=wr(this,t)["delete"](t);this.size-=e?1:0;return e}function jr(t){return wr(this,t).get(t)}function Ar(t){return wr(this,t).has(t)}function Fr(t,e){var r=wr(this,t),n=r.size;r.set(t,e);this.size+=r.size==n?0:1;return this}function qr(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}qr.prototype.clear=yr;qr.prototype["delete"]=kr;qr.prototype.get=jr;qr.prototype.has=Ar;qr.prototype.set=Fr;function Er(t,e){var r=-1,n=e.length,i=t.length;while(++r<n){t[i+r]=e[r]}return t}var Or=Ne(Object.getPrototypeOf,Object);const Br=Or;var Mr="[object Object]";var Dr=Function.prototype,Cr=Object.prototype;var Lr=Dr.toString;var zr=Cr.hasOwnProperty;var Tr=Lr.call(Object);function Nr(t){if(!A(t)||j(t)!=Mr){return false}var e=Br(t);if(e===null){return true}var r=zr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Lr.call(r)==Tr}function $r(){this.__data__=new vr;this.size=0}function Rr(t){var e=this.__data__,r=e["delete"](t);this.size=e.size;return r}function _r(t){return this.__data__.get(t)}function Sr(t){return this.__data__.has(t)}var Ir=200;function Vr(t,e){var r=this.__data__;if(r instanceof vr){var n=r.__data__;if(!br||n.length<Ir-1){n.push([t,e]);this.size=++r.size;return this}r=this.__data__=new qr(n)}r.set(t,e);this.size=r.size;return this}function Hr(t){var e=this.__data__=new vr(t);this.size=e.size}Hr.prototype.clear=$r;Hr.prototype["delete"]=Rr;Hr.prototype.get=_r;Hr.prototype.has=Sr;Hr.prototype.set=Vr;function Ur(t,e){return t&&At(e,Ve(e),t)}function Pr(t,e){return t&&At(e,Ke(e),t)}var Zr=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var Kr=Zr&&typeof module=="object"&&module&&!module.nodeType&&module;var Wr=Kr&&Kr.exports===Zr;var Gr=Wr?l.Buffer:undefined,Qr=Gr?Gr.allocUnsafe:undefined;function Yr(t,e){if(e){return t.slice()}var r=t.length,n=Qr?Qr(r):new t.constructor(r);t.copy(n);return n}function Xr(t,e){var r=-1,n=t==null?0:t.length,i=0,a=[];while(++r<n){var s=t[r];if(e(s,r,t)){a[i++]=s}}return a}function Jr(){return[]}var tn=Object.prototype;var en=tn.propertyIsEnumerable;var rn=Object.getOwnPropertySymbols;var nn=!rn?Jr:function(t){if(t==null){return[]}t=Object(t);return Xr(rn(t),(function(e){return en.call(t,e)}))};const an=nn;function sn(t,e){return At(t,an(t),e)}var dn=Object.getOwnPropertySymbols;var on=!dn?Jr:function(t){var e=[];while(t){Er(e,an(t));t=Br(t)}return e};const ln=on;function cn(t,e){return At(t,ln(t),e)}function un(t,e,r){var n=e(t);return q(t)?n:Er(n,r(t))}function fn(t){return un(t,Ve,an)}function hn(t){return un(t,Ke,ln)}var pn=Q(l,"DataView");const mn=pn;var vn=Q(l,"Promise");const gn=vn;var bn=Q(l,"Set");const yn=bn;var xn="[object Map]",wn="[object Object]",kn="[object Promise]",jn="[object Set]",An="[object WeakMap]";var Fn="[object DataView]";var qn=S(mn),En=S(br),On=S(gn),Bn=S(yn),Mn=S(X);var Dn=j;if(mn&&Dn(new mn(new ArrayBuffer(1)))!=Fn||br&&Dn(new br)!=xn||gn&&Dn(gn.resolve())!=kn||yn&&Dn(new yn)!=jn||X&&Dn(new X)!=An){Dn=function(t){var e=j(t),r=e==wn?t.constructor:undefined,n=r?S(r):"";if(n){switch(n){case qn:return Fn;case En:return xn;case On:return kn;case Bn:return jn;case Mn:return An}}return e}}const Cn=Dn;var Ln=Object.prototype;var zn=Ln.hasOwnProperty;function Tn(t){var e=t.length,r=new t.constructor(e);if(e&&typeof t[0]=="string"&&zn.call(t,"index")){r.index=t.index;r.input=t.input}return r}var Nn=l.Uint8Array;const $n=Nn;function Rn(t){var e=new t.constructor(t.byteLength);new $n(e).set(new $n(t));return e}function _n(t,e){var r=e?Rn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var Sn=/\w*$/;function In(t){var e=new t.constructor(t.source,Sn.exec(t));e.lastIndex=t.lastIndex;return e}var Vn=u?u.prototype:undefined,Hn=Vn?Vn.valueOf:undefined;function Un(t){return Hn?Object(Hn.call(t)):{}}function Pn(t,e){var r=e?Rn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Zn="[object Boolean]",Kn="[object Date]",Wn="[object Map]",Gn="[object Number]",Qn="[object RegExp]",Yn="[object Set]",Xn="[object String]",Jn="[object Symbol]";var ti="[object ArrayBuffer]",ei="[object DataView]",ri="[object Float32Array]",ni="[object Float64Array]",ii="[object Int8Array]",ai="[object Int16Array]",si="[object Int32Array]",di="[object Uint8Array]",oi="[object Uint8ClampedArray]",li="[object Uint16Array]",ci="[object Uint32Array]";function ui(t,e,r){var n=t.constructor;switch(e){case ti:return Rn(t);case Zn:case Kn:return new n(+t);case ei:return _n(t,r);case ri:case ni:case ii:case ai:case si:case di:case oi:case li:case ci:return Pn(t,r);case Wn:return new n;case Gn:case Xn:return new n(t);case Qn:return In(t);case Yn:return new n;case Jn:return Un(t)}}function fi(t){return typeof t.constructor=="function"&&!zt(t)?et(Br(t)):{}}var hi="[object Map]";function pi(t){return A(t)&&Cn(t)==hi}var mi=Be&&Be.isMap;var vi=mi?je(mi):pi;const gi=vi;var bi="[object Set]";function yi(t){return A(t)&&Cn(t)==bi}var xi=Be&&Be.isSet;var wi=xi?je(xi):yi;const ki=wi;var ji=1,Ai=2,Fi=4;var qi="[object Arguments]",Ei="[object Array]",Oi="[object Boolean]",Bi="[object Date]",Mi="[object Error]",Di="[object Function]",Ci="[object GeneratorFunction]",Li="[object Map]",zi="[object Number]",Ti="[object Object]",Ni="[object RegExp]",$i="[object Set]",Ri="[object String]",_i="[object Symbol]",Si="[object WeakMap]";var Ii="[object ArrayBuffer]",Vi="[object DataView]",Hi="[object Float32Array]",Ui="[object Float64Array]",Pi="[object Int8Array]",Zi="[object Int16Array]",Ki="[object Int32Array]",Wi="[object Uint8Array]",Gi="[object Uint8ClampedArray]",Qi="[object Uint16Array]",Yi="[object Uint32Array]";var Xi={};Xi[qi]=Xi[Ei]=Xi[Ii]=Xi[Vi]=Xi[Oi]=Xi[Bi]=Xi[Hi]=Xi[Ui]=Xi[Pi]=Xi[Zi]=Xi[Ki]=Xi[Li]=Xi[zi]=Xi[Ti]=Xi[Ni]=Xi[$i]=Xi[Ri]=Xi[_i]=Xi[Wi]=Xi[Gi]=Xi[Qi]=Xi[Yi]=true;Xi[Mi]=Xi[Di]=Xi[Si]=false;function Ji(t,e,r,n,i,a){var s,d=e&ji,o=e&Ai,l=e&Fi;if(r){s=i?r(t,n,i,a):r(t)}if(s!==undefined){return s}if(!E(t)){return t}var c=q(t);if(c){s=Tn(t);if(!d){return nt(t,s)}}else{var u=Cn(t),f=u==Di||u==Ci;if(Qt(t)){return Yr(t,d)}if(u==Ti||u==qi||f&&!i){s=o||f?{}:fi(t);if(!d){return o?cn(t,Pr(s,t)):sn(t,Ur(s,t))}}else{if(!Xi[u]){return i?t:{}}s=ui(t,u,d)}}a||(a=new Hr);var h=a.get(t);if(h){return h}a.set(t,s);if(ki(t)){t.forEach((function(n){s.add(Ji(n,e,r,n,t,a))}))}else if(gi(t)){t.forEach((function(n,i){s.set(i,Ji(n,e,r,i,t,a))}))}var p=l?o?hn:fn:o?Ke:Ve;var m=c?undefined:p(t);mt(m||t,(function(n,i){if(m){i=n;n=t[i]}jt(s,i,Ji(n,e,r,i,t,a))}));return s}var ta=1,ea=4;function ra(t){return Ji(t,ta|ea)}var na="__lodash_hash_undefined__";function ia(t){this.__data__.set(t,na);return this}function aa(t){return this.__data__.has(t)}function sa(t){var e=-1,r=t==null?0:t.length;this.__data__=new qr;while(++e<r){this.add(t[e])}}sa.prototype.add=sa.prototype.push=ia;sa.prototype.has=aa;function da(t,e){var r=-1,n=t==null?0:t.length;while(++r<n){if(e(t[r],r,t)){return true}}return false}function oa(t,e){return t.has(e)}var la=1,ca=2;function ua(t,e,r,n,i,a){var s=r&la,d=t.length,o=e.length;if(d!=o&&!(s&&o>d)){return false}var l=a.get(t);var c=a.get(e);if(l&&c){return l==e&&c==t}var u=-1,f=true,h=r&ca?new sa:undefined;a.set(t,e);a.set(e,t);while(++u<d){var p=t[u],m=e[u];if(n){var v=s?n(m,p,u,e,t,a):n(p,m,u,t,e,a)}if(v!==undefined){if(v){continue}f=false;break}if(h){if(!da(e,(function(t,e){if(!oa(h,e)&&(p===t||i(p,t,r,n,a))){return h.push(e)}}))){f=false;break}}else if(!(p===m||i(p,m,r,n,a))){f=false;break}}a["delete"](t);a["delete"](e);return f}function fa(t){var e=-1,r=Array(t.size);t.forEach((function(t,n){r[++e]=[n,t]}));return r}function ha(t){var e=-1,r=Array(t.size);t.forEach((function(t){r[++e]=t}));return r}var pa=1,ma=2;var va="[object Boolean]",ga="[object Date]",ba="[object Error]",ya="[object Map]",xa="[object Number]",wa="[object RegExp]",ka="[object Set]",ja="[object String]",Aa="[object Symbol]";var Fa="[object ArrayBuffer]",qa="[object DataView]";var Ea=u?u.prototype:undefined,Oa=Ea?Ea.valueOf:undefined;function Ba(t,e,r,n,i,a,s){switch(r){case qa:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset){return false}t=t.buffer;e=e.buffer;case Fa:if(t.byteLength!=e.byteLength||!a(new $n(t),new $n(e))){return false}return true;case va:case ga:case xa:return xt(+t,+e);case ba:return t.name==e.name&&t.message==e.message;case wa:case ja:return t==e+"";case ya:var d=fa;case ka:var o=n&pa;d||(d=ha);if(t.size!=e.size&&!o){return false}var l=s.get(t);if(l){return l==e}n|=ma;s.set(t,e);var c=ua(d(t),d(e),n,i,a,s);s["delete"](t);return c;case Aa:if(Oa){return Oa.call(t)==Oa.call(e)}}return false}var Ma=1;var Da=Object.prototype;var Ca=Da.hasOwnProperty;function La(t,e,r,n,i,a){var s=r&Ma,d=fn(t),o=d.length,l=fn(e),c=l.length;if(o!=c&&!s){return false}var u=o;while(u--){var f=d[u];if(!(s?f in e:Ca.call(e,f))){return false}}var h=a.get(t);var p=a.get(e);if(h&&p){return h==e&&p==t}var m=true;a.set(t,e);a.set(e,t);var v=s;while(++u<o){f=d[u];var g=t[f],b=e[f];if(n){var y=s?n(b,g,f,e,t,a):n(g,b,f,t,e,a)}if(!(y===undefined?g===b||i(g,b,r,n,a):y)){m=false;break}v||(v=f=="constructor")}if(m&&!v){var x=t.constructor,w=e.constructor;if(x!=w&&("constructor"in t&&"constructor"in e)&&!(typeof x=="function"&&x instanceof x&&typeof w=="function"&&w instanceof w)){m=false}}a["delete"](t);a["delete"](e);return m}var za=1;var Ta="[object Arguments]",Na="[object Array]",$a="[object Object]";var Ra=Object.prototype;var _a=Ra.hasOwnProperty;function Sa(t,e,r,n,i,a){var s=q(t),d=q(e),o=s?Na:Cn(t),l=d?Na:Cn(e);o=o==Ta?$a:o;l=l==Ta?$a:l;var c=o==$a,u=l==$a,f=o==l;if(f&&Qt(t)){if(!Qt(e)){return false}s=true;c=false}if(f&&!c){a||(a=new Hr);return s||Ce(t)?ua(t,e,r,n,i,a):Ba(t,e,o,r,n,i,a)}if(!(r&za)){var h=c&&_a.call(t,"__wrapped__"),p=u&&_a.call(e,"__wrapped__");if(h||p){var m=h?t.value():t,v=p?e.value():e;a||(a=new Hr);return i(m,v,r,n,a)}}if(!f){return false}a||(a=new Hr);return La(t,e,r,n,i,a)}function Ia(t,e,r,n,i){if(t===e){return true}if(t==null||e==null||!A(t)&&!A(e)){return t!==t&&e!==e}return Sa(t,e,r,n,Ia,i)}function Va(t){return function(e,r,n){var i=-1,a=Object(e),s=n(e),d=s.length;while(d--){var o=s[t?d:++i];if(r(a[o],o,a)===false){break}}return e}}var Ha=Va();const Ua=Ha;function Pa(t,e,r){if(r!==undefined&&!xt(t[e],r)||r===undefined&&!(e in t)){yt(t,e,r)}}function Za(t){return A(t)&&Mt(t)}function Ka(t,e){if(e==="constructor"&&typeof t[e]==="function"){return}if(e=="__proto__"){return}return t[e]}function Wa(t){return At(t,Ke(t))}function Ga(t,e,r,n,i,a,s){var d=Ka(t,r),o=Ka(e,r),l=s.get(o);if(l){Pa(t,r,l);return}var c=a?a(d,o,r+"",t,e,s):undefined;var u=c===undefined;if(u){var f=q(o),h=!f&&Qt(o),p=!f&&!h&&Ce(o);c=o;if(f||h||p){if(q(d)){c=d}else if(Za(d)){c=nt(d)}else if(h){u=false;c=Yr(o,true)}else if(p){u=false;c=Pn(o,true)}else{c=[]}}else if(Nr(o)||Vt(o)){c=d;if(Vt(d)){c=Wa(d)}else if(!E(d)||L(d)){c=fi(o)}}else{u=false}}if(u){s.set(o,c);i(c,o,n,a,s);s["delete"](o)}Pa(t,r,c)}function Qa(t,e,r,n,i){if(t===e){return}Ua(e,(function(a,s){i||(i=new Hr);if(E(a)){Ga(t,e,s,r,Qa,n,i)}else{var d=n?n(Ka(t,s),a,s+"",t,e,i):undefined;if(d===undefined){d=a}Pa(t,s,d)}}),Ke)}function Ya(t,e){return Ia(t,e)}var Xa=Ct((function(t,e,r){Qa(t,e,r)}));const Ja=Xa;var ts=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(ts||{});class es{constructor(t,e,r={}){this.attrName=t,this.keyName=e;const n=ts.TYPE&ts.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ts.LEVEL|n:ts.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(t){return Array.from(t.attributes).map((t=>t.name))}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class rs extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const ns=class t{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let r=null;try{r=t.parentNode}catch{return null}return this.find(r,e)}return null}create(e,r,n){const i=this.query(r);if(i==null)throw new rs(`Unable to create ${r} blot`);const a=i,s=r instanceof Node||r.nodeType===Node.TEXT_NODE?r:a.create(n),d=new a(e,s,n);return t.blots.set(d.domNode,d),d}find(e,r=!1){return t.find(e,r)}query(t,e=ts.ANY){let r;return typeof t=="string"?r=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?r=this.types.text:typeof t=="number"?t&ts.LEVEL&ts.BLOCK?r=this.types.block:t&ts.LEVEL&ts.INLINE&&(r=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some((t=>(r=this.classes[t],!!r))),r=r||this.tags[t.tagName]),r==null?null:"scope"in r&&e&ts.LEVEL&r.scope&&e&ts.TYPE&r.scope?r:null}register(...t){return t.map((t=>{const e="blotName"in t,r="attrName"in t;if(!e&&!r)throw new rs("Invalid definition");if(e&&t.blotName==="abstract")throw new rs("Cannot register abstract class");const n=e?t.blotName:r?t.attrName:void 0;return this.types[n]=t,r?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):e&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map((t=>t.toUpperCase())):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach((e=>{(this.tags[e]==null||t.className==null)&&(this.tags[e]=t)})))),t}))}};ns.blots=new WeakMap;let is=ns;function as(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((t=>t.indexOf(`${e}-`)===0))}class ss extends es{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map((t=>t.split("-").slice(0,-1).join("-")))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){as(t,this.keyName).forEach((e=>{t.classList.remove(e)})),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(as(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const ds=ss;function os(t){const e=t.split("-"),r=e.slice(1).map((t=>t[0].toUpperCase()+t.slice(1))).join("");return e[0]+r}class ls extends es{static keys(t){return(t.getAttribute("style")||"").split(";").map((t=>t.split(":")[0].trim()))}add(t,e){return this.canAdd(t,e)?(t.style[os(this.keyName)]=e,!0):!1}remove(t){t.style[os(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[os(this.keyName)];return this.canAdd(t,e)?e:""}}const cs=ls;class us{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=is.find(this.domNode);if(t==null)return;const e=es.keys(this.domNode),r=ds.keys(this.domNode),n=cs.keys(this.domNode);e.concat(r).concat(n).forEach((e=>{const r=t.scroll.query(e,ts.ATTRIBUTE);r instanceof es&&(this.attributes[r.attrName]=r)}))}copy(t){Object.keys(this.attributes).forEach((e=>{const r=this.attributes[e].value(this.domNode);t.format(e,r)}))}move(t){this.copy(t),Object.keys(this.attributes).forEach((t=>{this.attributes[t].remove(this.domNode)})),this.attributes={}}values(){return Object.keys(this.attributes).reduce(((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t)),{})}}const fs=us,hs=class t{constructor(t,e){this.scroll=t,this.domNode=e,is.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new rs("Blot definition missing tagName");let e,r;return Array.isArray(this.tagName)?(typeof t=="string"?(r=t.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof t=="number"&&(r=t),typeof r=="number"?e=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?e=document.createElement(r):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),is.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,r,n){const i=this.isolate(t,e);if(this.scroll.query(r,ts.BLOT)!=null&&n)i.wrap(r,n);else if(this.scroll.query(r,ts.ATTRIBUTE)!=null){const t=this.scroll.create(this.statics.scope);i.wrap(t),t.format(r,n)}}insertAt(t,e,r){const n=r==null?this.scroll.create("text",e):this.scroll.create(e,r),i=this.split(t);this.parent.insertBefore(n,i||void 0)}isolate(t,e){const r=this.split(t);if(r==null)throw new Error("Attempt to isolate at end");return r.split(e),r}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const r=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const r=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new rs(`Cannot wrap ${t}`);return r.appendChild(this),r}};hs.blotName="abstract";let ps=hs;const ms=class t extends ps{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};ms.scope=ts.INLINE_BLOT;let vs=ms;const gs=vs;class bs{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let r=e();for(;r&&t>0;)t-=1,r=e();return r}contains(t){const e=this.iterator();let r=e();for(;r;){if(r===t)return!0;r=e()}return!1}indexOf(t){const e=this.iterator();let r=e(),n=0;for(;r;){if(r===t)return n;n+=1,r=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,r=this.head;for(;r!=null;){if(r===t)return e;e+=r.length(),r=r.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const r=this.iterator();let n=r();for(;n;){const i=n.length();if(t<i||e&&t===i&&(n.next==null||n.next.length()!==0))return[n,t];t-=i,n=r()}return[null,0]}forEach(t){const e=this.iterator();let r=e();for(;r;)t(r),r=e()}forEachAt(t,e,r){if(e<=0)return;const[n,i]=this.find(t);let a=t-i;const s=this.iterator(n);let d=s();for(;d&&a<t+e;){const n=d.length();t>a?r(d,t-a,Math.min(e,a+n-t)):r(d,0,Math.min(n,t+e-a)),a+=n,d=s()}}map(t){return this.reduce(((e,r)=>(e.push(t(r)),e)),[])}reduce(t,e){const r=this.iterator();let n=r();for(;n;)e=t(e,n),n=r();return e}}function ys(t,e){const r=e.find(t);if(r)return r;try{return e.create(t)}catch{const r=e.create(ts.INLINE);return Array.from(t.childNodes).forEach((t=>{r.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach(),r}}const xs=class t extends ps{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach((t=>{t.attach()}))}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,t.uiClass&&this.uiNode.classList.add(t.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new bs,Array.from(this.domNode.childNodes).filter((t=>t!==this.uiNode)).reverse().forEach((t=>{try{const e=ys(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(t){if(t instanceof rs)return;throw t}}))}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,((t,e,r)=>{t.deleteAt(e,r)}))}descendant(e,r=0){const[n,i]=this.children.find(r);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,i]:n instanceof t?n.descendant(e,i):[null,-1]}descendants(e,r=0,n=Number.MAX_VALUE){let i=[],a=n;return this.children.forEachAt(r,n,((r,n,s)=>{(e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e)&&i.push(r),r instanceof t&&(i=i.concat(r.descendants(e,n,a))),a-=s})),i}detach(){this.children.forEach((t=>{t.detach()})),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach((r=>{e||this.statics.allowedChildren.some((t=>r instanceof t))||(r.statics.scope===ts.BLOCK_BLOT?(r.next!=null&&this.splitAfter(r),r.prev!=null&&this.splitAfter(r.prev),r.parent.unwrap(),e=!0):r instanceof t?r.unwrap():r.remove())}))}formatAt(t,e,r,n){this.children.forEachAt(t,e,((t,e,i)=>{t.formatAt(e,i,r,n)}))}insertAt(t,e,r){const[n,i]=this.children.find(t);if(n)n.insertAt(i,e,r);else{const t=r==null?this.scroll.create("text",e):this.scroll.create(e,r);this.appendChild(t)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let r=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(r=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(t.domNode,r),t.attach()}length(){return this.children.reduce(((t,e)=>t+e.length()),0)}moveChildren(t,e){this.children.forEach((r=>{t.insertBefore(r,e)}))}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,r=!1){const[n,i]=this.children.find(e,r),a=[[this,e]];return n instanceof t?a.concat(n.path(i,r)):(n!=null&&a.push([n,i]),a)}removeChild(t){this.children.remove(t)}replaceWith(e,r){const n=typeof e=="string"?this.scroll.create(e,r):e;return n instanceof t&&this.moveChildren(n),super.replaceWith(n)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(t,this.length(),((t,n,i)=>{const a=t.split(n,e);a!=null&&r.appendChild(a)})),r}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const r=[],n=[];t.forEach((t=>{t.target===this.domNode&&t.type==="childList"&&(r.push(...t.addedNodes),n.push(...t.removedNodes))})),n.forEach((t=>{if(t.parentNode!=null&&t.tagName!=="IFRAME"&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const e=this.scroll.find(t);e!=null&&(e.domNode.parentNode==null||e.domNode.parentNode===this.domNode)&&e.detach()})),r.filter((t=>t.parentNode===this.domNode&&t!==this.uiNode)).sort(((t,e)=>t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1)).forEach((t=>{let e=null;t.nextSibling!=null&&(e=this.scroll.find(t.nextSibling));const r=ys(t,this.scroll);(r.next!==e||r.next==null)&&(r.parent!=null&&r.parent.removeChild(this),this.insertBefore(r,e||void 0))})),this.enforceAllowedChildren()}};xs.uiClass="";let ws=xs;const ks=ws;function js(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}const As=class t extends ks{static create(t){return super.create(t)}static formats(e,r){const n=r.query(t.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new fs(this.domNode)}format(e,r){if(e===this.statics.blotName&&!r)this.children.forEach((e=>{e instanceof t||(e=e.wrap(t.blotName,!0)),this.attributes.copy(e)})),this.unwrap();else{const t=this.scroll.query(e,ts.INLINE);if(t==null)return;t instanceof es?this.attributes.attribute(t,r):r&&(e!==this.statics.blotName||this.formats()[e]!==r)&&this.replaceWith(e,r)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,r,n){this.formats()[r]!=null||this.scroll.query(r,ts.ATTRIBUTE)?this.isolate(t,e).format(r,n):super.formatAt(t,e,r,n)}optimize(e){super.optimize(e);const r=this.formats();if(Object.keys(r).length===0)return this.unwrap();const n=this.next;n instanceof t&&n.prev===this&&js(r,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(t,e){const r=super.replaceWith(t,e);return this.attributes.copy(r),r}update(t,e){super.update(t,e),t.some((t=>t.target===this.domNode&&t.type==="attributes"))&&this.attributes.build()}wrap(e,r){const n=super.wrap(e,r);return n instanceof t&&this.attributes.move(n),n}};As.allowedChildren=[As,gs],As.blotName="inline",As.scope=ts.INLINE_BLOT,As.tagName="SPAN";let Fs=As;const qs=Fs,Es=class t extends ks{static create(t){return super.create(t)}static formats(e,r){const n=r.query(t.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new fs(this.domNode)}format(e,r){const n=this.scroll.query(e,ts.BLOCK);n!=null&&(n instanceof es?this.attributes.attribute(n,r):e===this.statics.blotName&&!r?this.replaceWith(t.blotName):r&&(e!==this.statics.blotName||this.formats()[e]!==r)&&this.replaceWith(e,r))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,r,n){this.scroll.query(r,ts.BLOCK)!=null?this.format(r,n):super.formatAt(t,e,r,n)}insertAt(t,e,r){if(r==null||this.scroll.query(e,ts.INLINE)!=null)super.insertAt(t,e,r);else{const n=this.split(t);if(n!=null){const t=this.scroll.create(e,r);n.parent.insertBefore(t,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const r=super.replaceWith(t,e);return this.attributes.copy(r),r}update(t,e){super.update(t,e),t.some((t=>t.target===this.domNode&&t.type==="attributes"))&&this.attributes.build()}};Es.blotName="block",Es.scope=ts.BLOCK_BLOT,Es.tagName="P",Es.allowedChildren=[qs,Es,gs];let Os=Es;const Bs=Os,Ms=class t extends ks{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,r,n){super.formatAt(t,e,r,n),this.enforceAllowedChildren()}insertAt(t,e,r){super.insertAt(t,e,r),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Ms.blotName="container",Ms.scope=ts.BLOCK_BLOT;let Ds=Ms;const Cs=Ds;class Ls extends gs{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,r,n){t===0&&e===this.length()?this.format(r,n):super.formatAt(t,e,r,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const zs=Ls,Ts={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Ns=100,$s=class t extends ks{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver((t=>{this.update(t)})),this.observer.observe(this.domNode,Ts),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const r=this.registry.find(t,e);return r?r.scroll===this?r:e?this.find(r.scroll.domNode.parentNode,!0):null:null}query(t,e=ts.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach((t=>{t.remove()})):super.deleteAt(t,e)}formatAt(t,e,r,n){this.update(),super.formatAt(t,e,r,n)}insertAt(t,e,r){this.update(),super.insertAt(t,e,r)}optimize(t=[],e={}){super.optimize(e);const r=e.mutationsMap||new WeakMap;let n=Array.from(this.observer.takeRecords());for(;n.length>0;)t.push(n.pop());const i=(t,e=!0)=>{t==null||t===this||t.domNode.parentNode!=null&&(r.has(t.domNode)||r.set(t.domNode,[]),e&&i(t.parent))},a=t=>{r.has(t.domNode)&&(t instanceof ks&&t.children.forEach(a),r.delete(t.domNode),t.optimize(e))};let s=t;for(let e=0;s.length>0;e+=1){if(e>=Ns)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach((t=>{const e=this.find(t.target,!0);e!=null&&(e.domNode===t.target&&(t.type==="childList"?(i(this.find(t.previousSibling,!1)),Array.from(t.addedNodes).forEach((t=>{const e=this.find(t,!1);i(e,!1),e instanceof ks&&e.children.forEach((t=>{i(t,!1)}))}))):t.type==="attributes"&&i(e.prev)),i(e))})),this.children.forEach(a),s=Array.from(this.observer.takeRecords()),n=s.slice();n.length>0;)t.push(n.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const r=new WeakMap;t.map((t=>{const e=this.find(t.target,!0);return e==null?null:r.has(e.domNode)?(r.get(e.domNode).push(t),null):(r.set(e.domNode,[t]),e)})).forEach((t=>{t!=null&&t!==this&&r.has(t.domNode)&&t.update(r.get(t.domNode)||[],e)})),e.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),e),this.optimize(t,e)}};$s.blotName="scroll",$s.defaultChild=Bs,$s.allowedChildren=[Bs,Cs],$s.scope=ts.BLOCK_BLOT,$s.tagName="DIV";let Rs=$s;const _s=Rs,Ss=class t extends gs{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,r){r==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(t,e){t.some((t=>t.type==="characterData"&&t.target===this.domNode))&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Ss.blotName="text",Ss.scope=ts.INLINE_BLOT;let Is=Ss;const Vs=Is;const Hs=Object.freeze({__proto__:null,Attributor:es,AttributorStore:fs,BlockBlot:Bs,ClassAttributor:ds,ContainerBlot:Cs,EmbedBlot:zs,InlineBlot:qs,LeafBlot:gs,ParentBlot:ks,Registry:is,Scope:ts,ScrollBlot:_s,StyleAttributor:cs,TextBlot:Vs});var Us=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function Ps(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}var Zs={exports:{}};var Ks=-1;var Ws=1;var Gs=0;function Qs(t,e,r,n,i){if(t===e){if(t){return[[Gs,t]]}return[]}if(r!=null){var a=bd(t,e,r);if(a){return a}}var s=td(t,e);var d=t.substring(0,s);t=t.substring(s);e=e.substring(s);s=rd(t,e);var o=t.substring(t.length-s);t=t.substring(0,t.length-s);e=e.substring(0,e.length-s);var l=Ys(t,e);if(d){l.unshift([Gs,d])}if(o){l.push([Gs,o])}ud(l,i);if(n){id(l)}return l}function Ys(t,e){var r;if(!t){return[[Ws,e]]}if(!e){return[[Ks,t]]}var n=t.length>e.length?t:e;var i=t.length>e.length?e:t;var a=n.indexOf(i);if(a!==-1){r=[[Ws,n.substring(0,a)],[Gs,i],[Ws,n.substring(a+i.length)]];if(t.length>e.length){r[0][0]=r[2][0]=Ks}return r}if(i.length===1){return[[Ks,t],[Ws,e]]}var s=nd(t,e);if(s){var d=s[0];var o=s[1];var l=s[2];var c=s[3];var u=s[4];var f=Qs(d,l);var h=Qs(o,c);return f.concat([[Gs,u]],h)}return Xs(t,e)}function Xs(t,e){var r=t.length;var n=e.length;var i=Math.ceil((r+n)/2);var a=i;var s=2*i;var d=new Array(s);var o=new Array(s);for(var l=0;l<s;l++){d[l]=-1;o[l]=-1}d[a+1]=0;o[a+1]=0;var c=r-n;var u=c%2!==0;var f=0;var h=0;var p=0;var m=0;for(var v=0;v<i;v++){for(var g=-v+f;g<=v-h;g+=2){var b=a+g;var y;if(g===-v||g!==v&&d[b-1]<d[b+1]){y=d[b+1]}else{y=d[b-1]+1}var x=y-g;while(y<r&&x<n&&t.charAt(y)===e.charAt(x)){y++;x++}d[b]=y;if(y>r){h+=2}else if(x>n){f+=2}else if(u){var w=a+c-g;if(w>=0&&w<s&&o[w]!==-1){var k=r-o[w];if(y>=k){return Js(t,e,y,x)}}}}for(var j=-v+p;j<=v-m;j+=2){var w=a+j;var k;if(j===-v||j!==v&&o[w-1]<o[w+1]){k=o[w+1]}else{k=o[w-1]+1}var A=k-j;while(k<r&&A<n&&t.charAt(r-k-1)===e.charAt(n-A-1)){k++;A++}o[w]=k;if(k>r){m+=2}else if(A>n){p+=2}else if(!u){var b=a+c-j;if(b>=0&&b<s&&d[b]!==-1){var y=d[b];var x=a+y-b;k=r-k;if(y>=k){return Js(t,e,y,x)}}}}}return[[Ks,t],[Ws,e]]}function Js(t,e,r,n){var i=t.substring(0,r);var a=e.substring(0,n);var s=t.substring(r);var d=e.substring(n);var o=Qs(i,a);var l=Qs(s,d);return o.concat(l)}function td(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0)){return 0}var r=0;var n=Math.min(t.length,e.length);var i=n;var a=0;while(r<i){if(t.substring(a,i)==e.substring(a,i)){r=i;a=r}else{n=i}i=Math.floor((n-r)/2+r)}if(fd(t.charCodeAt(i-1))){i--}return i}function ed(t,e){var r=t.length;var n=e.length;if(r==0||n==0){return 0}if(r>n){t=t.substring(r-n)}else if(r<n){e=e.substring(0,r)}var i=Math.min(r,n);if(t==e){return i}var a=0;var s=1;while(true){var d=t.substring(i-s);var o=e.indexOf(d);if(o==-1){return a}s+=o;if(o==0||t.substring(i-s)==e.substring(0,s)){a=s;s++}}}function rd(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1)){return 0}var r=0;var n=Math.min(t.length,e.length);var i=n;var a=0;while(r<i){if(t.substring(t.length-i,t.length-a)==e.substring(e.length-i,e.length-a)){r=i;a=r}else{n=i}i=Math.floor((n-r)/2+r)}if(hd(t.charCodeAt(t.length-i))){i--}return i}function nd(t,e){var r=t.length>e.length?t:e;var n=t.length>e.length?e:t;if(r.length<4||n.length*2<r.length){return null}function i(t,e,r){var n=t.substring(r,r+Math.floor(t.length/4));var i=-1;var a="";var s,d,o,l;while((i=e.indexOf(n,i+1))!==-1){var c=td(t.substring(r),e.substring(i));var u=rd(t.substring(0,r),e.substring(0,i));if(a.length<u+c){a=e.substring(i-u,i)+e.substring(i,i+c);s=t.substring(0,r-u);d=t.substring(r+c);o=e.substring(0,i-u);l=e.substring(i+c)}}if(a.length*2>=t.length){return[s,d,o,l,a]}else{return null}}var a=i(r,n,Math.ceil(r.length/4));var s=i(r,n,Math.ceil(r.length/2));var d;if(!a&&!s){return null}else if(!s){d=a}else if(!a){d=s}else{d=a[4].length>s[4].length?a:s}var o,l,c,u;if(t.length>e.length){o=d[0];l=d[1];c=d[2];u=d[3]}else{c=d[0];u=d[1];o=d[2];l=d[3]}var f=d[4];return[o,l,c,u,f]}function id(t){var e=false;var r=[];var n=0;var i=null;var a=0;var s=0;var d=0;var o=0;var l=0;while(a<t.length){if(t[a][0]==Gs){r[n++]=a;s=o;d=l;o=0;l=0;i=t[a][1]}else{if(t[a][0]==Ws){o+=t[a][1].length}else{l+=t[a][1].length}if(i&&i.length<=Math.max(s,d)&&i.length<=Math.max(o,l)){t.splice(r[n-1],0,[Ks,i]);t[r[n-1]+1][0]=Ws;n--;n--;a=n>0?r[n-1]:-1;s=0;d=0;o=0;l=0;i=null;e=true}}a++}if(e){ud(t)}cd(t);a=1;while(a<t.length){if(t[a-1][0]==Ks&&t[a][0]==Ws){var c=t[a-1][1];var u=t[a][1];var f=ed(c,u);var h=ed(u,c);if(f>=h){if(f>=c.length/2||f>=u.length/2){t.splice(a,0,[Gs,u.substring(0,f)]);t[a-1][1]=c.substring(0,c.length-f);t[a+1][1]=u.substring(f);a++}}else{if(h>=c.length/2||h>=u.length/2){t.splice(a,0,[Gs,c.substring(0,h)]);t[a-1][0]=Ws;t[a-1][1]=u.substring(0,u.length-h);t[a+1][0]=Ks;t[a+1][1]=c.substring(h);a++}}a++}a++}}var ad=/[^a-zA-Z0-9]/;var sd=/\s/;var dd=/[\r\n]/;var od=/\n\r?\n$/;var ld=/^\r?\n\r?\n/;function cd(t){function e(t,e){if(!t||!e){return 6}var r=t.charAt(t.length-1);var n=e.charAt(0);var i=r.match(ad);var a=n.match(ad);var s=i&&r.match(sd);var d=a&&n.match(sd);var o=s&&r.match(dd);var l=d&&n.match(dd);var c=o&&t.match(od);var u=l&&e.match(ld);if(c||u){return 5}else if(o||l){return 4}else if(i&&!s&&d){return 3}else if(s||d){return 2}else if(i||a){return 1}return 0}var r=1;while(r<t.length-1){if(t[r-1][0]==Gs&&t[r+1][0]==Gs){var n=t[r-1][1];var i=t[r][1];var a=t[r+1][1];var s=rd(n,i);if(s){var d=i.substring(i.length-s);n=n.substring(0,n.length-s);i=d+i.substring(0,i.length-s);a=d+a}var o=n;var l=i;var c=a;var u=e(n,i)+e(i,a);while(i.charAt(0)===a.charAt(0)){n+=i.charAt(0);i=i.substring(1)+a.charAt(0);a=a.substring(1);var f=e(n,i)+e(i,a);if(f>=u){u=f;o=n;l=i;c=a}}if(t[r-1][1]!=o){if(o){t[r-1][1]=o}else{t.splice(r-1,1);r--}t[r][1]=l;if(c){t[r+1][1]=c}else{t.splice(r+1,1);r--}}}r++}}function ud(t,e){t.push([Gs,""]);var r=0;var n=0;var i=0;var a="";var s="";var d;while(r<t.length){if(r<t.length-1&&!t[r][1]){t.splice(r,1);continue}switch(t[r][0]){case Ws:i++;s+=t[r][1];r++;break;case Ks:n++;a+=t[r][1];r++;break;case Gs:var o=r-i-n-1;if(e){if(o>=0&&md(t[o][1])){var l=t[o][1].slice(-1);t[o][1]=t[o][1].slice(0,-1);a=l+a;s=l+s;if(!t[o][1]){t.splice(o,1);r--;var c=o-1;if(t[c]&&t[c][0]===Ws){i++;s=t[c][1]+s;c--}if(t[c]&&t[c][0]===Ks){n++;a=t[c][1]+a;c--}o=c}}if(pd(t[r][1])){var l=t[r][1].charAt(0);t[r][1]=t[r][1].slice(1);a+=l;s+=l}}if(r<t.length-1&&!t[r][1]){t.splice(r,1);break}if(a.length>0||s.length>0){if(a.length>0&&s.length>0){d=td(s,a);if(d!==0){if(o>=0){t[o][1]+=s.substring(0,d)}else{t.splice(0,0,[Gs,s.substring(0,d)]);r++}s=s.substring(d);a=a.substring(d)}d=rd(s,a);if(d!==0){t[r][1]=s.substring(s.length-d)+t[r][1];s=s.substring(0,s.length-d);a=a.substring(0,a.length-d)}}var u=i+n;if(a.length===0&&s.length===0){t.splice(r-u,u);r=r-u}else if(a.length===0){t.splice(r-u,u,[Ws,s]);r=r-u+1}else if(s.length===0){t.splice(r-u,u,[Ks,a]);r=r-u+1}else{t.splice(r-u,u,[Ks,a],[Ws,s]);r=r-u+2}}if(r!==0&&t[r-1][0]===Gs){t[r-1][1]+=t[r][1];t.splice(r,1)}else{r++}i=0;n=0;a="";s="";break}}if(t[t.length-1][1]===""){t.pop()}var f=false;r=1;while(r<t.length-1){if(t[r-1][0]===Gs&&t[r+1][0]===Gs){if(t[r][1].substring(t[r][1].length-t[r-1][1].length)===t[r-1][1]){t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length);t[r+1][1]=t[r-1][1]+t[r+1][1];t.splice(r-1,1);f=true}else if(t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]){t[r-1][1]+=t[r+1][1];t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1];t.splice(r+1,1);f=true}}r++}if(f){ud(t,e)}}function fd(t){return t>=55296&&t<=56319}function hd(t){return t>=56320&&t<=57343}function pd(t){return hd(t.charCodeAt(0))}function md(t){return fd(t.charCodeAt(t.length-1))}function vd(t){var e=[];for(var r=0;r<t.length;r++){if(t[r][1].length>0){e.push(t[r])}}return e}function gd(t,e,r,n){if(md(t)||pd(n)){return null}return vd([[Gs,t],[Ks,e],[Ws,r],[Gs,n]])}function bd(t,e,r){var n=typeof r==="number"?{index:r,length:0}:r.oldRange;var i=typeof r==="number"?null:r.newRange;var a=t.length;var s=e.length;if(n.length===0&&(i===null||i.length===0)){var d=n.index;var o=t.slice(0,d);var l=t.slice(d);var c=i?i.index:null;t:{var u=d+s-a;if(c!==null&&c!==u){break t}if(u<0||u>s){break t}var f=e.slice(0,u);var h=e.slice(u);if(h!==l){break t}var p=Math.min(d,u);var m=o.slice(0,p);var v=f.slice(0,p);if(m!==v){break t}var g=o.slice(p);var b=f.slice(p);return gd(m,g,b,l)}t:{if(c!==null&&c!==d){break t}var y=d;var f=e.slice(0,y);var h=e.slice(y);if(f!==o){break t}var x=Math.min(a-y,s-y);var w=l.slice(l.length-x);var k=h.slice(h.length-x);if(w!==k){break t}var g=l.slice(0,l.length-x);var b=h.slice(0,h.length-x);return gd(o,g,b,w)}}if(n.length>0&&i&&i.length===0){t:{var m=t.slice(0,n.index);var w=t.slice(n.index+n.length);var p=m.length;var x=w.length;if(s<p+x){break t}var v=e.slice(0,p);var k=e.slice(s-x);if(m!==v||w!==k){break t}var g=t.slice(p,a-x);var b=e.slice(p,s-x);return gd(m,g,b,w)}}return null}function yd(t,e,r,n){return Qs(t,e,r,n,true)}yd.INSERT=Ws;yd.DELETE=Ks;yd.EQUAL=Gs;var xd=yd;var wd={exports:{}};(function(t,e){var r=200;var n="__lodash_hash_undefined__";var i=9007199254740991;var a="[object Arguments]",s="[object Array]",d="[object Boolean]",o="[object Date]",l="[object Error]",c="[object Function]",u="[object GeneratorFunction]",f="[object Map]",h="[object Number]",p="[object Object]",m="[object Promise]",v="[object RegExp]",g="[object Set]",b="[object String]",y="[object Symbol]",x="[object WeakMap]";var w="[object ArrayBuffer]",k="[object DataView]",j="[object Float32Array]",A="[object Float64Array]",F="[object Int8Array]",q="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",B="[object Uint8ClampedArray]",M="[object Uint16Array]",D="[object Uint32Array]";var C=/[\\^$.*+?()[\]{}|]/g;var L=/\w*$/;var z=/^\[object .+?Constructor\]$/;var T=/^(?:0|[1-9]\d*)$/;var N={};N[a]=N[s]=N[w]=N[k]=N[d]=N[o]=N[j]=N[A]=N[F]=N[q]=N[E]=N[f]=N[h]=N[p]=N[v]=N[g]=N[b]=N[y]=N[O]=N[B]=N[M]=N[D]=true;N[l]=N[c]=N[x]=false;var $=typeof Us=="object"&&Us&&Us.Object===Object&&Us;var R=typeof self=="object"&&self&&self.Object===Object&&self;var _=$||R||Function("return this")();var S=e&&!e.nodeType&&e;var I=S&&"object"=="object"&&t&&!t.nodeType&&t;var V=I&&I.exports===S;function H(t,e){t.set(e[0],e[1]);return t}function U(t,e){t.add(e);return t}function P(t,e){var r=-1,n=t?t.length:0;while(++r<n){if(e(t[r],r,t)===false){break}}return t}function Z(t,e){var r=-1,n=e.length,i=t.length;while(++r<n){t[i+r]=e[r]}return t}function K(t,e,r,n){var i=-1,a=t?t.length:0;if(n&&a){r=t[++i]}while(++i<a){r=e(r,t[i],i,t)}return r}function W(t,e){var r=-1,n=Array(t);while(++r<t){n[r]=e(r)}return n}function G(t,e){return t==null?undefined:t[e]}function Q(t){var e=false;if(t!=null&&typeof t.toString!="function"){try{e=!!(t+"")}catch(t){}}return e}function Y(t){var e=-1,r=Array(t.size);t.forEach((function(t,n){r[++e]=[n,t]}));return r}function X(t,e){return function(r){return t(e(r))}}function J(t){var e=-1,r=Array(t.size);t.forEach((function(t){r[++e]=t}));return r}var tt=Array.prototype,et=Function.prototype,rt=Object.prototype;var nt=_["__core-js_shared__"];var it=function(){var t=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var at=et.toString;var st=rt.hasOwnProperty;var dt=rt.toString;var ot=RegExp("^"+at.call(st).replace(C,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var lt=V?_.Buffer:undefined,ct=_.Symbol,ut=_.Uint8Array,ft=X(Object.getPrototypeOf,Object),ht=Object.create,pt=rt.propertyIsEnumerable,mt=tt.splice;var vt=Object.getOwnPropertySymbols,gt=lt?lt.isBuffer:undefined,bt=X(Object.keys,Object);var yt=Fe(_,"DataView"),xt=Fe(_,"Map"),wt=Fe(_,"Promise"),kt=Fe(_,"Set"),jt=Fe(_,"WeakMap"),At=Fe(Object,"create");var Ft=Te(yt),qt=Te(xt),Et=Te(wt),Ot=Te(kt),Bt=Te(jt);var Mt=ct?ct.prototype:undefined,Dt=Mt?Mt.valueOf:undefined;function Ct(t){var e=-1,r=t?t.length:0;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}function Lt(){this.__data__=At?At(null):{}}function zt(t){return this.has(t)&&delete this.__data__[t]}function Tt(t){var e=this.__data__;if(At){var r=e[t];return r===n?undefined:r}return st.call(e,t)?e[t]:undefined}function Nt(t){var e=this.__data__;return At?e[t]!==undefined:st.call(e,t)}function $t(t,e){var r=this.__data__;r[t]=At&&e===undefined?n:e;return this}Ct.prototype.clear=Lt;Ct.prototype["delete"]=zt;Ct.prototype.get=Tt;Ct.prototype.has=Nt;Ct.prototype.set=$t;function Rt(t){var e=-1,r=t?t.length:0;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}function _t(){this.__data__=[]}function St(t){var e=this.__data__,r=ie(e,t);if(r<0){return false}var n=e.length-1;if(r==n){e.pop()}else{mt.call(e,r,1)}return true}function It(t){var e=this.__data__,r=ie(e,t);return r<0?undefined:e[r][1]}function Vt(t){return ie(this.__data__,t)>-1}function Ht(t,e){var r=this.__data__,n=ie(r,t);if(n<0){r.push([t,e])}else{r[n][1]=e}return this}Rt.prototype.clear=_t;Rt.prototype["delete"]=St;Rt.prototype.get=It;Rt.prototype.has=Vt;Rt.prototype.set=Ht;function Ut(t){var e=-1,r=t?t.length:0;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}function Pt(){this.__data__={hash:new Ct,map:new(xt||Rt),string:new Ct}}function Zt(t){return Ae(this,t)["delete"](t)}function Kt(t){return Ae(this,t).get(t)}function Wt(t){return Ae(this,t).has(t)}function Gt(t,e){Ae(this,t).set(t,e);return this}Ut.prototype.clear=Pt;Ut.prototype["delete"]=Zt;Ut.prototype.get=Kt;Ut.prototype.has=Wt;Ut.prototype.set=Gt;function Qt(t){this.__data__=new Rt(t)}function Yt(){this.__data__=new Rt}function Xt(t){return this.__data__["delete"](t)}function Jt(t){return this.__data__.get(t)}function te(t){return this.__data__.has(t)}function ee(t,e){var n=this.__data__;if(n instanceof Rt){var i=n.__data__;if(!xt||i.length<r-1){i.push([t,e]);return this}n=this.__data__=new Ut(i)}n.set(t,e);return this}Qt.prototype.clear=Yt;Qt.prototype["delete"]=Xt;Qt.prototype.get=Jt;Qt.prototype.has=te;Qt.prototype.set=ee;function re(t,e){var r=_e(t)||Re(t)?W(t.length,String):[];var n=r.length,i=!!n;for(var a in t){if((e||st.call(t,a))&&!(i&&(a=="length"||De(a,n)))){r.push(a)}}return r}function ne(t,e,r){var n=t[e];if(!(st.call(t,e)&&$e(n,r))||r===undefined&&!(e in t)){t[e]=r}}function ie(t,e){var r=t.length;while(r--){if($e(t[r][0],e)){return r}}return-1}function ae(t,e){return t&&we(e,Ke(e),t)}function se(t,e,r,n,i,s,d){var o;if(n){o=s?n(t,i,s,d):n(t)}if(o!==undefined){return o}if(!Pe(t)){return t}var l=_e(t);if(l){o=Oe(t);if(!e){return xe(t,o)}}else{var f=Ee(t),h=f==c||f==u;if(Ve(t)){return fe(t,e)}if(f==p||f==a||h&&!s){if(Q(t)){return s?t:{}}o=Be(h?{}:t);if(!e){return ke(t,ae(o,t))}}else{if(!N[f]){return s?t:{}}o=Me(t,f,se,e)}}d||(d=new Qt);var m=d.get(t);if(m){return m}d.set(t,o);if(!l){var v=r?je(t):Ke(t)}P(v||t,(function(i,a){if(v){a=i;i=t[a]}ne(o,a,se(i,e,r,n,a,t,d))}));return o}function de(t){return Pe(t)?ht(t):{}}function oe(t,e,r){var n=e(t);return _e(t)?n:Z(n,r(t))}function le(t){return dt.call(t)}function ce(t){if(!Pe(t)||Le(t)){return false}var e=He(t)||Q(t)?ot:z;return e.test(Te(t))}function ue(t){if(!ze(t)){return bt(t)}var e=[];for(var r in Object(t)){if(st.call(t,r)&&r!="constructor"){e.push(r)}}return e}function fe(t,e){if(e){return t.slice()}var r=new t.constructor(t.length);t.copy(r);return r}function he(t){var e=new t.constructor(t.byteLength);new ut(e).set(new ut(t));return e}function pe(t,e){var r=e?he(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function me(t,e,r){var n=e?r(Y(t),true):Y(t);return K(n,H,new t.constructor)}function ve(t){var e=new t.constructor(t.source,L.exec(t));e.lastIndex=t.lastIndex;return e}function ge(t,e,r){var n=e?r(J(t),true):J(t);return K(n,U,new t.constructor)}function be(t){return Dt?Object(Dt.call(t)):{}}function ye(t,e){var r=e?he(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function xe(t,e){var r=-1,n=t.length;e||(e=Array(n));while(++r<n){e[r]=t[r]}return e}function we(t,e,r,n){r||(r={});var i=-1,a=e.length;while(++i<a){var s=e[i];var d=n?n(r[s],t[s],s,r,t):undefined;ne(r,s,d===undefined?t[s]:d)}return r}function ke(t,e){return we(t,qe(t),e)}function je(t){return oe(t,Ke,qe)}function Ae(t,e){var r=t.__data__;return Ce(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Fe(t,e){var r=G(t,e);return ce(r)?r:undefined}var qe=vt?X(vt,Object):We;var Ee=le;if(yt&&Ee(new yt(new ArrayBuffer(1)))!=k||xt&&Ee(new xt)!=f||wt&&Ee(wt.resolve())!=m||kt&&Ee(new kt)!=g||jt&&Ee(new jt)!=x){Ee=function(t){var e=dt.call(t),r=e==p?t.constructor:undefined,n=r?Te(r):undefined;if(n){switch(n){case Ft:return k;case qt:return f;case Et:return m;case Ot:return g;case Bt:return x}}return e}}function Oe(t){var e=t.length,r=t.constructor(e);if(e&&typeof t[0]=="string"&&st.call(t,"index")){r.index=t.index;r.input=t.input}return r}function Be(t){return typeof t.constructor=="function"&&!ze(t)?de(ft(t)):{}}function Me(t,e,r,n){var i=t.constructor;switch(e){case w:return he(t);case d:case o:return new i(+t);case k:return pe(t,n);case j:case A:case F:case q:case E:case O:case B:case M:case D:return ye(t,n);case f:return me(t,n,r);case h:case b:return new i(t);case v:return ve(t);case g:return ge(t,n,r);case y:return be(t)}}function De(t,e){e=e==null?i:e;return!!e&&(typeof t=="number"||T.test(t))&&(t>-1&&t%1==0&&t<e)}function Ce(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Le(t){return!!it&&it in t}function ze(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||rt;return t===r}function Te(t){if(t!=null){try{return at.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ne(t){return se(t,true,true)}function $e(t,e){return t===e||t!==t&&e!==e}function Re(t){return Ie(t)&&st.call(t,"callee")&&(!pt.call(t,"callee")||dt.call(t)==a)}var _e=Array.isArray;function Se(t){return t!=null&&Ue(t.length)&&!He(t)}function Ie(t){return Ze(t)&&Se(t)}var Ve=gt||Ge;function He(t){var e=Pe(t)?dt.call(t):"";return e==c||e==u}function Ue(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=i}function Pe(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Ze(t){return!!t&&typeof t=="object"}function Ke(t){return Se(t)?re(t):ue(t)}function We(){return[]}function Ge(){return false}t.exports=Ne})(wd,wd.exports);var kd={exports:{}};(function(t,e){var r=200;var n="__lodash_hash_undefined__";var i=1,a=2;var s=9007199254740991;var d="[object Arguments]",o="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",u="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Null]",b="[object Object]",y="[object Promise]",x="[object Proxy]",w="[object RegExp]",k="[object Set]",j="[object String]",A="[object Symbol]",F="[object Undefined]",q="[object WeakMap]";var E="[object ArrayBuffer]",O="[object DataView]",B="[object Float32Array]",M="[object Float64Array]",D="[object Int8Array]",C="[object Int16Array]",L="[object Int32Array]",z="[object Uint8Array]",T="[object Uint8ClampedArray]",N="[object Uint16Array]",$="[object Uint32Array]";var R=/[\\^$.*+?()[\]{}|]/g;var _=/^\[object .+?Constructor\]$/;var S=/^(?:0|[1-9]\d*)$/;var I={};I[B]=I[M]=I[D]=I[C]=I[L]=I[z]=I[T]=I[N]=I[$]=true;I[d]=I[o]=I[E]=I[c]=I[O]=I[u]=I[f]=I[h]=I[m]=I[v]=I[b]=I[w]=I[k]=I[j]=I[q]=false;var V=typeof Us=="object"&&Us&&Us.Object===Object&&Us;var H=typeof self=="object"&&self&&self.Object===Object&&self;var U=V||H||Function("return this")();var P=e&&!e.nodeType&&e;var Z=P&&"object"=="object"&&t&&!t.nodeType&&t;var K=Z&&Z.exports===P;var W=K&&V.process;var G=function(){try{return W&&W.binding&&W.binding("util")}catch(t){}}();var Q=G&&G.isTypedArray;function Y(t,e){var r=-1,n=t==null?0:t.length,i=0,a=[];while(++r<n){var s=t[r];if(e(s,r,t)){a[i++]=s}}return a}function X(t,e){var r=-1,n=e.length,i=t.length;while(++r<n){t[i+r]=e[r]}return t}function J(t,e){var r=-1,n=t==null?0:t.length;while(++r<n){if(e(t[r],r,t)){return true}}return false}function tt(t,e){var r=-1,n=Array(t);while(++r<t){n[r]=e(r)}return n}function et(t){return function(e){return t(e)}}function rt(t,e){return t.has(e)}function nt(t,e){return t==null?undefined:t[e]}function it(t){var e=-1,r=Array(t.size);t.forEach((function(t,n){r[++e]=[n,t]}));return r}function at(t,e){return function(r){return t(e(r))}}function st(t){var e=-1,r=Array(t.size);t.forEach((function(t){r[++e]=t}));return r}var dt=Array.prototype,ot=Function.prototype,lt=Object.prototype;var ct=U["__core-js_shared__"];var ut=ot.toString;var ft=lt.hasOwnProperty;var ht=function(){var t=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var pt=lt.toString;var mt=RegExp("^"+ut.call(ft).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var vt=K?U.Buffer:undefined,gt=U.Symbol,bt=U.Uint8Array,yt=lt.propertyIsEnumerable,xt=dt.splice,wt=gt?gt.toStringTag:undefined;var kt=Object.getOwnPropertySymbols,jt=vt?vt.isBuffer:undefined,At=at(Object.keys,Object);var Ft=qe(U,"DataView"),qt=qe(U,"Map"),Et=qe(U,"Promise"),Ot=qe(U,"Set"),Bt=qe(U,"WeakMap"),Mt=qe(Object,"create");var Dt=Te(Ft),Ct=Te(qt),Lt=Te(Et),zt=Te(Ot),Tt=Te(Bt);var Nt=gt?gt.prototype:undefined,$t=Nt?Nt.valueOf:undefined;function Rt(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}function _t(){this.__data__=Mt?Mt(null):{};this.size=0}function St(t){var e=this.has(t)&&delete this.__data__[t];this.size-=e?1:0;return e}function It(t){var e=this.__data__;if(Mt){var r=e[t];return r===n?undefined:r}return ft.call(e,t)?e[t]:undefined}function Vt(t){var e=this.__data__;return Mt?e[t]!==undefined:ft.call(e,t)}function Ht(t,e){var r=this.__data__;this.size+=this.has(t)?0:1;r[t]=Mt&&e===undefined?n:e;return this}Rt.prototype.clear=_t;Rt.prototype["delete"]=St;Rt.prototype.get=It;Rt.prototype.has=Vt;Rt.prototype.set=Ht;function Ut(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}function Pt(){this.__data__=[];this.size=0}function Zt(t){var e=this.__data__,r=fe(e,t);if(r<0){return false}var n=e.length-1;if(r==n){e.pop()}else{xt.call(e,r,1)}--this.size;return true}function Kt(t){var e=this.__data__,r=fe(e,t);return r<0?undefined:e[r][1]}function Wt(t){return fe(this.__data__,t)>-1}function Gt(t,e){var r=this.__data__,n=fe(r,t);if(n<0){++this.size;r.push([t,e])}else{r[n][1]=e}return this}Ut.prototype.clear=Pt;Ut.prototype["delete"]=Zt;Ut.prototype.get=Kt;Ut.prototype.has=Wt;Ut.prototype.set=Gt;function Qt(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var n=t[e];this.set(n[0],n[1])}}function Yt(){this.size=0;this.__data__={hash:new Rt,map:new(qt||Ut),string:new Rt}}function Xt(t){var e=Fe(this,t)["delete"](t);this.size-=e?1:0;return e}function Jt(t){return Fe(this,t).get(t)}function te(t){return Fe(this,t).has(t)}function ee(t,e){var r=Fe(this,t),n=r.size;r.set(t,e);this.size+=r.size==n?0:1;return this}Qt.prototype.clear=Yt;Qt.prototype["delete"]=Xt;Qt.prototype.get=Jt;Qt.prototype.has=te;Qt.prototype.set=ee;function re(t){var e=-1,r=t==null?0:t.length;this.__data__=new Qt;while(++e<r){this.add(t[e])}}function ne(t){this.__data__.set(t,n);return this}function ie(t){return this.__data__.has(t)}re.prototype.add=re.prototype.push=ne;re.prototype.has=ie;function ae(t){var e=this.__data__=new Ut(t);this.size=e.size}function se(){this.__data__=new Ut;this.size=0}function de(t){var e=this.__data__,r=e["delete"](t);this.size=e.size;return r}function oe(t){return this.__data__.get(t)}function le(t){return this.__data__.has(t)}function ce(t,e){var n=this.__data__;if(n instanceof Ut){var i=n.__data__;if(!qt||i.length<r-1){i.push([t,e]);this.size=++n.size;return this}n=this.__data__=new Qt(i)}n.set(t,e);this.size=n.size;return this}ae.prototype.clear=se;ae.prototype["delete"]=de;ae.prototype.get=oe;ae.prototype.has=le;ae.prototype.set=ce;function ue(t,e){var r=Re(t),n=!r&&$e(t),i=!r&&!n&&Se(t),a=!r&&!n&&!i&&Ze(t),s=r||n||i||a,d=s?tt(t.length,String):[],o=d.length;for(var l in t){if((e||ft.call(t,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Me(l,o)))){d.push(l)}}return d}function fe(t,e){var r=t.length;while(r--){if(Ne(t[r][0],e)){return r}}return-1}function he(t,e,r){var n=e(t);return Re(t)?n:X(n,r(t))}function pe(t){if(t==null){return t===undefined?F:g}return wt&&wt in Object(t)?Ee(t):ze(t)}function me(t){return Pe(t)&&pe(t)==d}function ve(t,e,r,n,i){if(t===e){return true}if(t==null||e==null||!Pe(t)&&!Pe(e)){return t!==t&&e!==e}return ge(t,e,r,n,ve,i)}function ge(t,e,r,n,a,s){var l=Re(t),c=Re(e),u=l?o:Be(t),f=c?o:Be(e);u=u==d?b:u;f=f==d?b:f;var h=u==b,p=f==b,m=u==f;if(m&&Se(t)){if(!Se(e)){return false}l=true;h=false}if(m&&!h){s||(s=new ae);return l||Ze(t)?we(t,e,r,n,a,s):ke(t,e,u,r,n,a,s)}if(!(r&i)){var v=h&&ft.call(t,"__wrapped__"),g=p&&ft.call(e,"__wrapped__");if(v||g){var y=v?t.value():t,x=g?e.value():e;s||(s=new ae);return a(y,x,r,n,s)}}if(!m){return false}s||(s=new ae);return je(t,e,r,n,a,s)}function be(t){if(!Ue(t)||Ce(t)){return false}var e=Ve(t)?mt:_;return e.test(Te(t))}function ye(t){return Pe(t)&&He(t.length)&&!!I[pe(t)]}function xe(t){if(!Le(t)){return At(t)}var e=[];for(var r in Object(t)){if(ft.call(t,r)&&r!="constructor"){e.push(r)}}return e}function we(t,e,r,n,s,d){var o=r&i,l=t.length,c=e.length;if(l!=c&&!(o&&c>l)){return false}var u=d.get(t);if(u&&d.get(e)){return u==e}var f=-1,h=true,p=r&a?new re:undefined;d.set(t,e);d.set(e,t);while(++f<l){var m=t[f],v=e[f];if(n){var g=o?n(v,m,f,e,t,d):n(m,v,f,t,e,d)}if(g!==undefined){if(g){continue}h=false;break}if(p){if(!J(e,(function(t,e){if(!rt(p,e)&&(m===t||s(m,t,r,n,d))){return p.push(e)}}))){h=false;break}}else if(!(m===v||s(m,v,r,n,d))){h=false;break}}d["delete"](t);d["delete"](e);return h}function ke(t,e,r,n,s,d,o){switch(r){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset){return false}t=t.buffer;e=e.buffer;case E:if(t.byteLength!=e.byteLength||!d(new bt(t),new bt(e))){return false}return true;case c:case u:case v:return Ne(+t,+e);case f:return t.name==e.name&&t.message==e.message;case w:case j:return t==e+"";case m:var l=it;case k:var h=n&i;l||(l=st);if(t.size!=e.size&&!h){return false}var p=o.get(t);if(p){return p==e}n|=a;o.set(t,e);var g=we(l(t),l(e),n,s,d,o);o["delete"](t);return g;case A:if($t){return $t.call(t)==$t.call(e)}}return false}function je(t,e,r,n,a,s){var d=r&i,o=Ae(t),l=o.length,c=Ae(e),u=c.length;if(l!=u&&!d){return false}var f=l;while(f--){var h=o[f];if(!(d?h in e:ft.call(e,h))){return false}}var p=s.get(t);if(p&&s.get(e)){return p==e}var m=true;s.set(t,e);s.set(e,t);var v=d;while(++f<l){h=o[f];var g=t[h],b=e[h];if(n){var y=d?n(b,g,h,e,t,s):n(g,b,h,t,e,s)}if(!(y===undefined?g===b||a(g,b,r,n,s):y)){m=false;break}v||(v=h=="constructor")}if(m&&!v){var x=t.constructor,w=e.constructor;if(x!=w&&("constructor"in t&&"constructor"in e)&&!(typeof x=="function"&&x instanceof x&&typeof w=="function"&&w instanceof w)){m=false}}s["delete"](t);s["delete"](e);return m}function Ae(t){return he(t,Ke,Oe)}function Fe(t,e){var r=t.__data__;return De(e)?r[typeof e=="string"?"string":"hash"]:r.map}function qe(t,e){var r=nt(t,e);return be(r)?r:undefined}function Ee(t){var e=ft.call(t,wt),r=t[wt];try{t[wt]=undefined;var n=true}catch(t){}var i=pt.call(t);if(n){if(e){t[wt]=r}else{delete t[wt]}}return i}var Oe=!kt?We:function(t){if(t==null){return[]}t=Object(t);return Y(kt(t),(function(e){return yt.call(t,e)}))};var Be=pe;if(Ft&&Be(new Ft(new ArrayBuffer(1)))!=O||qt&&Be(new qt)!=m||Et&&Be(Et.resolve())!=y||Ot&&Be(new Ot)!=k||Bt&&Be(new Bt)!=q){Be=function(t){var e=pe(t),r=e==b?t.constructor:undefined,n=r?Te(r):"";if(n){switch(n){case Dt:return O;case Ct:return m;case Lt:return y;case zt:return k;case Tt:return q}}return e}}function Me(t,e){e=e==null?s:e;return!!e&&(typeof t=="number"||S.test(t))&&(t>-1&&t%1==0&&t<e)}function De(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ce(t){return!!ht&&ht in t}function Le(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||lt;return t===r}function ze(t){return pt.call(t)}function Te(t){if(t!=null){try{return ut.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ne(t,e){return t===e||t!==t&&e!==e}var $e=me(function(){return arguments}())?me:function(t){return Pe(t)&&ft.call(t,"callee")&&!yt.call(t,"callee")};var Re=Array.isArray;function _e(t){return t!=null&&He(t.length)&&!Ve(t)}var Se=jt||Ge;function Ie(t,e){return ve(t,e)}function Ve(t){if(!Ue(t)){return false}var e=pe(t);return e==h||e==p||e==l||e==x}function He(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=s}function Ue(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function Pe(t){return t!=null&&typeof t=="object"}var Ze=Q?et(Q):ye;function Ke(t){return _e(t)?ue(t):xe(t)}function We(){return[]}function Ge(){return false}t.exports=Ie})(kd,kd.exports);var jd={};Object.defineProperty(jd,"__esModule",{value:true});const Ad=wd.exports;const Fd=kd.exports;var qd;(function(t){function e(t={},e={},r=false){if(typeof t!=="object"){t={}}if(typeof e!=="object"){e={}}let n=Ad(e);if(!r){n=Object.keys(n).reduce(((t,e)=>{if(n[e]!=null){t[e]=n[e]}return t}),{})}for(const r in t){if(t[r]!==undefined&&e[r]===undefined){n[r]=t[r]}}return Object.keys(n).length>0?n:undefined}t.compose=e;function r(t={},e={}){if(typeof t!=="object"){t={}}if(typeof e!=="object"){e={}}const r=Object.keys(t).concat(Object.keys(e)).reduce(((r,n)=>{if(!Fd(t[n],e[n])){r[n]=e[n]===undefined?null:e[n]}return r}),{});return Object.keys(r).length>0?r:undefined}t.diff=r;function n(t={},e={}){t=t||{};const r=Object.keys(e).reduce(((r,n)=>{if(e[n]!==t[n]&&t[n]!==undefined){r[n]=e[n]}return r}),{});return Object.keys(t).reduce(((r,n)=>{if(t[n]!==e[n]&&e[n]===undefined){r[n]=null}return r}),r)}t.invert=n;function i(t,e,r=false){if(typeof t!=="object"){return e}if(typeof e!=="object"){return undefined}if(!r){return e}const n=Object.keys(e).reduce(((r,n)=>{if(t[n]===undefined){r[n]=e[n]}return r}),{});return Object.keys(n).length>0?n:undefined}t.transform=i})(qd||(qd={}));jd.default=qd;var Ed={};Object.defineProperty(Ed,"__esModule",{value:true});var Od;(function(t){function e(t){if(typeof t.delete==="number"){return t.delete}else if(typeof t.retain==="number"){return t.retain}else if(typeof t.retain==="object"&&t.retain!==null){return 1}else{return typeof t.insert==="string"?t.insert.length:1}}t.length=e})(Od||(Od={}));Ed.default=Od;var Bd={};Object.defineProperty(Bd,"__esModule",{value:true});const Md=Ed;class Dd{constructor(t){this.ops=t;this.index=0;this.offset=0}hasNext(){return this.peekLength()<Infinity}next(t){if(!t){t=Infinity}const e=this.ops[this.index];if(e){const r=this.offset;const n=Md.default.length(e);if(t>=n-r){t=n-r;this.index+=1;this.offset=0}else{this.offset+=t}if(typeof e.delete==="number"){return{delete:t}}else{const n={};if(e.attributes){n.attributes=e.attributes}if(typeof e.retain==="number"){n.retain=t}else if(typeof e.retain==="object"&&e.retain!==null){n.retain=e.retain}else if(typeof e.insert==="string"){n.insert=e.insert.substr(r,t)}else{n.insert=e.insert}return n}}else{return{retain:Infinity}}}peek(){return this.ops[this.index]}peekLength(){if(this.ops[this.index]){return Md.default.length(this.ops[this.index])-this.offset}else{return Infinity}}peekType(){const t=this.ops[this.index];if(t){if(typeof t.delete==="number"){return"delete"}else if(typeof t.retain==="number"||typeof t.retain==="object"&&t.retain!==null){return"retain"}else{return"insert"}}return"retain"}rest(){if(!this.hasNext()){return[]}else if(this.offset===0){return this.ops.slice(this.index)}else{const t=this.offset;const e=this.index;const r=this.next();const n=this.ops.slice(this.index);this.offset=t;this.index=e;return[r].concat(n)}}}Bd.default=Dd;(function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.AttributeMap=e.OpIterator=e.Op=void 0;const r=xd;const n=wd.exports;const i=kd.exports;const a=jd;e.AttributeMap=a.default;const s=Ed;e.Op=s.default;const d=Bd;e.OpIterator=d.default;const o=String.fromCharCode(0);const l=(t,e)=>{if(typeof t!=="object"||t===null){throw new Error(`cannot retain a ${typeof t}`)}if(typeof e!=="object"||e===null){throw new Error(`cannot retain a ${typeof e}`)}const r=Object.keys(t)[0];if(!r||r!==Object.keys(e)[0]){throw new Error(`embed types not matched: ${r} != ${Object.keys(e)[0]}`)}return[r,t[r],e[r]]};class c{constructor(t){if(Array.isArray(t)){this.ops=t}else if(t!=null&&Array.isArray(t.ops)){this.ops=t.ops}else{this.ops=[]}}static registerEmbed(t,e){this.handlers[t]=e}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){const e=this.handlers[t];if(!e){throw new Error(`no handlers for embed type "${t}"`)}return e}insert(t,e){const r={};if(typeof t==="string"&&t.length===0){return this}r.insert=t;if(e!=null&&typeof e==="object"&&Object.keys(e).length>0){r.attributes=e}return this.push(r)}delete(t){if(t<=0){return this}return this.push({delete:t})}retain(t,e){if(typeof t==="number"&&t<=0){return this}const r={retain:t};if(e!=null&&typeof e==="object"&&Object.keys(e).length>0){r.attributes=e}return this.push(r)}push(t){let e=this.ops.length;let r=this.ops[e-1];t=n(t);if(typeof r==="object"){if(typeof t.delete==="number"&&typeof r.delete==="number"){this.ops[e-1]={delete:r.delete+t.delete};return this}if(typeof r.delete==="number"&&t.insert!=null){e-=1;r=this.ops[e-1];if(typeof r!=="object"){this.ops.unshift(t);return this}}if(i(t.attributes,r.attributes)){if(typeof t.insert==="string"&&typeof r.insert==="string"){this.ops[e-1]={insert:r.insert+t.insert};if(typeof t.attributes==="object"){this.ops[e-1].attributes=t.attributes}return this}else if(typeof t.retain==="number"&&typeof r.retain==="number"){this.ops[e-1]={retain:r.retain+t.retain};if(typeof t.attributes==="object"){this.ops[e-1].attributes=t.attributes}return this}}}if(e===this.ops.length){this.ops.push(t)}else{this.ops.splice(e,0,t)}return this}chop(){const t=this.ops[this.ops.length-1];if(t&&typeof t.retain==="number"&&!t.attributes){this.ops.pop()}return this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){const e=[];const r=[];this.forEach((n=>{const i=t(n)?e:r;i.push(n)}));return[e,r]}reduce(t,e){return this.ops.reduce(t,e)}changeLength(){return this.reduce(((t,e)=>{if(e.insert){return t+s.default.length(e)}else if(e.delete){return t-e.delete}return t}),0)}length(){return this.reduce(((t,e)=>t+s.default.length(e)),0)}slice(t=0,e=Infinity){const r=[];const n=new d.default(this.ops);let i=0;while(i<e&&n.hasNext()){let a;if(i<t){a=n.next(t-i)}else{a=n.next(e-i);r.push(a)}i+=s.default.length(a)}return new c(r)}compose(t){const e=new d.default(this.ops);const r=new d.default(t.ops);const n=[];const s=r.peek();if(s!=null&&typeof s.retain==="number"&&s.attributes==null){let t=s.retain;while(e.peekType()==="insert"&&e.peekLength()<=t){t-=e.peekLength();n.push(e.next())}if(s.retain-t>0){r.next(s.retain-t)}}const o=new c(n);while(e.hasNext()||r.hasNext()){if(r.peekType()==="insert"){o.push(r.next())}else if(e.peekType()==="delete"){o.push(e.next())}else{const t=Math.min(e.peekLength(),r.peekLength());const n=e.next(t);const s=r.next(t);if(s.retain){const d={};if(typeof n.retain==="number"){d.retain=typeof s.retain==="number"?t:s.retain}else{if(typeof s.retain==="number"){if(n.retain==null){d.insert=n.insert}else{d.retain=n.retain}}else{const t=n.retain==null?"insert":"retain";const[e,r,i]=l(n[t],s.retain);const a=c.getHandler(e);d[t]={[e]:a.compose(r,i,t==="retain")}}}const u=a.default.compose(n.attributes,s.attributes,typeof n.retain==="number");if(u){d.attributes=u}o.push(d);if(!r.hasNext()&&i(o.ops[o.ops.length-1],d)){const t=new c(e.rest());return o.concat(t).chop()}}else if(typeof s.delete==="number"&&(typeof n.retain==="number"||typeof n.retain==="object"&&n.retain!==null)){o.push(s)}}}return o.chop()}concat(t){const e=new c(this.ops.slice());if(t.ops.length>0){e.push(t.ops[0]);e.ops=e.ops.concat(t.ops.slice(1))}return e}diff(t,e){if(this.ops===t.ops){return new c}const n=[this,t].map((e=>e.map((r=>{if(r.insert!=null){return typeof r.insert==="string"?r.insert:o}const n=e===t?"on":"with";throw new Error("diff() called "+n+" non-document")})).join("")));const s=new c;const l=r(n[0],n[1],e,true);const u=new d.default(this.ops);const f=new d.default(t.ops);l.forEach((t=>{let e=t[1].length;while(e>0){let n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e);s.push(f.next(n));break;case r.DELETE:n=Math.min(e,u.peekLength());u.next(n);s.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),f.peekLength(),e);const t=u.next(n);const d=f.next(n);if(i(t.insert,d.insert)){s.retain(n,a.default.diff(t.attributes,d.attributes))}else{s.push(d).delete(n)}break}e-=n}}));return s.chop()}eachLine(t,e="\n"){const r=new d.default(this.ops);let n=new c;let i=0;while(r.hasNext()){if(r.peekType()!=="insert"){return}const a=r.peek();const d=s.default.length(a)-r.peekLength();const o=typeof a.insert==="string"?a.insert.indexOf(e,d)-d:-1;if(o<0){n.push(r.next())}else if(o>0){n.push(r.next(o))}else{if(t(n,r.next(1).attributes||{},i)===false){return}i+=1;n=new c}}if(n.length()>0){t(n,{},i)}}invert(t){const e=new c;this.reduce(((r,n)=>{if(n.insert){e.delete(s.default.length(n))}else if(typeof n.retain==="number"&&n.attributes==null){e.retain(n.retain);return r+n.retain}else if(n.delete||typeof n.retain==="number"){const i=n.delete||n.retain;const d=t.slice(r,r+i);d.forEach((t=>{if(n.delete){e.push(t)}else if(n.retain&&n.attributes){e.retain(s.default.length(t),a.default.invert(n.attributes,t.attributes))}}));return r+i}else if(typeof n.retain==="object"&&n.retain!==null){const i=t.slice(r,r+1);const s=new d.default(i.ops).next();const[o,u,f]=l(n.retain,s.insert);const h=c.getHandler(o);e.retain({[o]:h.invert(u,f)},a.default.invert(n.attributes,s.attributes));return r+1}return r}),0);return e.chop()}transform(t,e=false){e=!!e;if(typeof t==="number"){return this.transformPosition(t,e)}const r=t;const n=new d.default(this.ops);const i=new d.default(r.ops);const o=new c;while(n.hasNext()||i.hasNext()){if(n.peekType()==="insert"&&(e||i.peekType()!=="insert")){o.retain(s.default.length(n.next()))}else if(i.peekType()==="insert"){o.push(i.next())}else{const t=Math.min(n.peekLength(),i.peekLength());const r=n.next(t);const s=i.next(t);if(r.delete){continue}else if(s.delete){o.push(s)}else{const n=r.retain;const i=s.retain;let d=typeof i==="object"&&i!==null?i:t;if(typeof n==="object"&&n!==null&&typeof i==="object"&&i!==null){const t=Object.keys(n)[0];if(t===Object.keys(i)[0]){const r=c.getHandler(t);if(r){d={[t]:r.transform(n[t],i[t],e)}}}}o.retain(d,a.default.transform(r.attributes,s.attributes,e))}}}return o.chop()}transformPosition(t,e=false){e=!!e;const r=new d.default(this.ops);let n=0;while(r.hasNext()&&n<=t){const i=r.peekLength();const a=r.peekType();r.next();if(a==="delete"){t-=Math.min(i,t-n);continue}else if(a==="insert"&&(n<t||!e)){t+=i}n+=i}return t}}c.Op=s.default;c.OpIterator=d.default;c.AttributeMap=a.default;c.handlers={};e.default=c;{t.exports=c;t.exports.default=c}})(Zs,Zs.exports);const Cd=Ps(Zs.exports);class Ld extends zs{static value(){return undefined}optimize(){if(this.prev||this.next){this.remove()}}length(){return 0}value(){return""}}Ld.blotName="break";Ld.tagName="BR";class zd extends Vs{}const Td={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Nd(t){return t.replace(/[&<>"']/g,(t=>Td[t]))}class $d extends qs{static allowedChildren=[$d,Ld,zs,zd];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,e){const r=$d.order.indexOf(t);const n=$d.order.indexOf(e);if(r>=0||n>=0){return r-n}if(t===e){return 0}if(t<e){return-1}return 1}formatAt(t,e,r,n){if($d.compare(this.statics.blotName,r)<0&&this.scroll.query(r,ts.BLOT)){const i=this.isolate(t,e);if(n){i.wrap(r,n)}}else{super.formatAt(t,e,r,n)}}optimize(t){super.optimize(t);if(this.parent instanceof $d&&$d.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t);t.wrap(this)}}}const Rd=1;class _d extends Bs{cache={};delta(){if(this.cache.delta==null){this.cache.delta=Id(this)}return this.cache.delta}deleteAt(t,e){super.deleteAt(t,e);this.cache={}}formatAt(t,e,r,n){if(e<=0)return;if(this.scroll.query(r,ts.BLOCK)){if(t+e===this.length()){this.format(r,n)}}else{super.formatAt(t,Math.min(e,this.length()-t-1),r,n)}this.cache={}}insertAt(t,e,r){if(r!=null){super.insertAt(t,e,r);this.cache={};return}if(e.length===0)return;const n=e.split("\n");const i=n.shift();if(i.length>0){if(t<this.length()-1||this.children.tail==null){super.insertAt(Math.min(t,this.length()-1),i)}else{this.children.tail.insertAt(this.children.tail.length(),i)}this.cache={}}let a=this;n.reduce(((t,e)=>{a=a.split(t,true);a.insertAt(0,e);return e.length}),t+i.length)}insertBefore(t,e){const{head:r}=this.children;super.insertBefore(t,e);if(r instanceof Ld){r.remove()}this.cache={}}length(){if(this.cache.length==null){this.cache.length=super.length()+Rd}return this.cache.length}moveChildren(t,e){super.moveChildren(t,e);this.cache={}}optimize(t){super.optimize(t);this.cache={}}path(t){return super.path(t,true)}removeChild(t){super.removeChild(t);this.cache={}}split(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(e&&(t===0||t>=this.length()-Rd)){const e=this.clone();if(t===0){this.parent.insertBefore(e,this);return this}this.parent.insertBefore(e,this.next);return e}const r=super.split(t,e);this.cache={};return r}}_d.blotName="block";_d.tagName="P";_d.defaultChild=Ld;_d.allowedChildren=[Ld,$d,zs,zd];class Sd extends zs{attach(){super.attach();this.attributes=new fs(this.domNode)}delta(){return(new Cd).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const r=this.scroll.query(t,ts.BLOCK_ATTRIBUTE);if(r!=null){this.attributes.attribute(r,e)}}formatAt(t,e,r,n){this.format(r,n)}insertAt(t,e,r){if(r!=null){super.insertAt(t,e,r);return}const n=e.split("\n");const i=n.pop();const a=n.map((t=>{const e=this.scroll.create(_d.blotName);e.insertAt(0,t);return e}));const s=this.split(t);a.forEach((t=>{this.parent.insertBefore(t,s)}));if(i){this.parent.insertBefore(this.scroll.create("text",i),s)}}}Sd.scope=ts.BLOCK_BLOT;function Id(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;return t.descendants(gs).reduce(((t,r)=>{if(r.length()===0){return t}return t.insert(r.value(),Vd(r,{},e))}),new Cd).insert("\n",Vd(t))}function Vd(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;if(t==null)return e;if("formats"in t&&typeof t.formats==="function"){e={...e,...t.formats()};if(r){delete e["code-token"]}}if(t.parent==null||t.parent.statics.blotName==="scroll"||t.parent.statics.scope!==t.statics.scope){return e}return Vd(t.parent,e,r)}class Hd extends zs{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\ufeff";static value(){return undefined}constructor(t,e,r){super(t,e);this.selection=r;this.textNode=document.createTextNode(Hd.CONTENTS);this.domNode.appendChild(this.textNode);this.savedLength=0}detach(){if(this.parent!=null)this.parent.removeChild(this)}format(t,e){if(this.savedLength!==0){super.format(t,e);return}let r=this;let n=0;while(r!=null&&r.statics.scope!==ts.BLOCK_BLOT){n+=r.offset(r.parent);r=r.parent}if(r!=null){this.savedLength=Hd.CONTENTS.length;r.optimize();r.formatAt(n,Hd.CONTENTS.length,t,e);this.savedLength=0}}index(t,e){if(t===this.textNode)return 0;return super.index(t,e)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove();this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();while(this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode){this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode)}const e=this.prev instanceof zd?this.prev:null;const r=e?e.length():0;const n=this.next instanceof zd?this.next:null;const i=n?n.text:"";const{textNode:a}=this;const s=a.data.split(Hd.CONTENTS).join("");a.data=Hd.CONTENTS;let d;if(e){d=e;if(s||n){e.insertAt(e.length(),s+i);if(n){n.remove()}}}else if(n){d=n;n.insertAt(0,s)}else{const t=document.createTextNode(s);d=this.scroll.create(t);this.parent.insertBefore(d,this)}this.remove();if(t){const i=(t,i)=>{if(e&&t===e.domNode){return i}if(t===a){return r+i-1}if(n&&t===n.domNode){return r+s.length+i}return null};const o=i(t.start.node,t.start.offset);const l=i(t.end.node,t.end.offset);if(o!==null&&l!==null){return{startNode:d.domNode,startOffset:o,endNode:d.domNode,endOffset:l}}}return null}update(t,e){if(t.some((t=>t.type==="characterData"&&t.target===this.textNode))){const t=this.restore();if(t)e.range=t}}optimize(t){super.optimize(t);let{parent:e}=this;while(e){if(e.domNode.tagName==="A"){this.savedLength=Hd.CONTENTS.length;e.isolate(this.offset(e),this.length()).unwrap();this.savedLength=0;break}e=e.parent}}value(){return""}}var Ud={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}if(Object.create){n.prototype=Object.create(null);if(!(new n).__proto__)r=false}function i(t,e,r){this.fn=t;this.context=e;this.once=r||false}function a(t,e,n,a,s){if(typeof n!=="function"){throw new TypeError("The listener must be a function")}var d=new i(n,a||t,s),o=r?r+e:e;if(!t._events[o])t._events[o]=d,t._eventsCount++;else if(!t._events[o].fn)t._events[o].push(d);else t._events[o]=[t._events[o],d];return t}function s(t,e){if(--t._eventsCount===0)t._events=new n;else delete t._events[e]}function d(){this._events=new n;this._eventsCount=0}d.prototype.eventNames=function t(){var n=[],i,a;if(this._eventsCount===0)return n;for(a in i=this._events){if(e.call(i,a))n.push(r?a.slice(1):a)}if(Object.getOwnPropertySymbols){return n.concat(Object.getOwnPropertySymbols(i))}return n};d.prototype.listeners=function t(e){var n=r?r+e:e,i=this._events[n];if(!i)return[];if(i.fn)return[i.fn];for(var a=0,s=i.length,d=new Array(s);a<s;a++){d[a]=i[a].fn}return d};d.prototype.listenerCount=function t(e){var n=r?r+e:e,i=this._events[n];if(!i)return 0;if(i.fn)return 1;return i.length};d.prototype.emit=function t(e,n,i,a,s,d){var o=r?r+e:e;if(!this._events[o])return false;var l=this._events[o],c=arguments.length,u,f;if(l.fn){if(l.once)this.removeListener(e,l.fn,undefined,true);switch(c){case 1:return l.fn.call(l.context),true;case 2:return l.fn.call(l.context,n),true;case 3:return l.fn.call(l.context,n,i),true;case 4:return l.fn.call(l.context,n,i,a),true;case 5:return l.fn.call(l.context,n,i,a,s),true;case 6:return l.fn.call(l.context,n,i,a,s,d),true}for(f=1,u=new Array(c-1);f<c;f++){u[f-1]=arguments[f]}l.fn.apply(l.context,u)}else{var h=l.length,p;for(f=0;f<h;f++){if(l[f].once)this.removeListener(e,l[f].fn,undefined,true);switch(c){case 1:l[f].fn.call(l[f].context);break;case 2:l[f].fn.call(l[f].context,n);break;case 3:l[f].fn.call(l[f].context,n,i);break;case 4:l[f].fn.call(l[f].context,n,i,a);break;default:if(!u)for(p=1,u=new Array(c-1);p<c;p++){u[p-1]=arguments[p]}l[f].fn.apply(l[f].context,u)}}}return true};d.prototype.on=function t(e,r,n){return a(this,e,r,n,false)};d.prototype.once=function t(e,r,n){return a(this,e,r,n,true)};d.prototype.removeListener=function t(e,n,i,a){var d=r?r+e:e;if(!this._events[d])return this;if(!n){s(this,d);return this}var o=this._events[d];if(o.fn){if(o.fn===n&&(!a||o.once)&&(!i||o.context===i)){s(this,d)}}else{for(var l=0,c=[],u=o.length;l<u;l++){if(o[l].fn!==n||a&&!o[l].once||i&&o[l].context!==i){c.push(o[l])}}if(c.length)this._events[d]=c.length===1?c[0]:c;else s(this,d)}return this};d.prototype.removeAllListeners=function t(e){var i;if(e){i=r?r+e:e;if(this._events[i])s(this,i)}else{this._events=new n;this._eventsCount=0}return this};d.prototype.off=d.prototype.removeListener;d.prototype.addListener=d.prototype.on;d.prefixed=r;d.EventEmitter=d;{t.exports=d}})(Ud);const Pd=new WeakMap;const Zd=["error","warn","log","info"];let Kd="warn";function Wd(t){if(Kd){if(Zd.indexOf(t)<=Zd.indexOf(Kd)){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++){r[n-1]=arguments[n]}console[t](...r)}}}function Gd(t){return Zd.reduce(((e,r)=>{e[r]=Wd.bind(console,r,t);return e}),{})}Gd.level=t=>{Kd=t};Wd.level=Gd.level;const Qd=Gd("quill:events");const Yd=["selectionchange","mousedown","mouseup","click"];Yd.forEach((t=>{document.addEventListener(t,(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++){e[r]=arguments[r]}Array.from(document.querySelectorAll(".ql-container")).forEach((t=>{const r=Pd.get(t);if(r&&r.emitter){r.emitter.handleDOM(...e)}}))}))}));class Xd extends Ud.exports.EventEmitter{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super();this.domListeners={};this.on("error",Qd.error)}emit(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++){e[r]=arguments[r]}Qd.log.call(Qd,...e);return super.emit(...e)}handleDOM(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++){r[n-1]=arguments[n]}(this.domListeners[t.type]||[]).forEach((e=>{let{node:n,handler:i}=e;if(t.target===n||n.contains(t.target)){i(t,...r)}}))}listenDOM(t,e,r){if(!this.domListeners[t]){this.domListeners[t]=[]}this.domListeners[t].push({node:e,handler:r})}}const Jd=Gd("quill:selection");class to{constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;this.index=t;this.length=e}}class eo{constructor(t,e){this.emitter=e;this.scroll=t;this.composing=false;this.mouseDown=false;this.root=this.scroll.domNode;this.cursor=this.scroll.create("cursor",this);this.savedRange=new to(0,0);this.lastRange=this.savedRange;this.lastNative=null;this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",document,(()=>{if(!this.mouseDown&&!this.composing){setTimeout(this.update.bind(this,Xd.sources.USER),1)}}));this.emitter.on(Xd.events.SCROLL_BEFORE_UPDATE,(()=>{if(!this.hasFocus())return;const t=this.getNativeRange();if(t==null)return;if(t.start.node===this.cursor.textNode)return;this.emitter.once(Xd.events.SCROLL_UPDATE,((e,r)=>{try{if(this.root.contains(t.start.node)&&this.root.contains(t.end.node)){this.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}const n=r.some((t=>t.type==="characterData"||t.type==="childList"||t.type==="attributes"&&t.target===this.root));this.update(n?Xd.sources.SILENT:e)}catch(t){}}))}));this.emitter.on(Xd.events.SCROLL_OPTIMIZE,((t,e)=>{if(e.range){const{startNode:t,startOffset:r,endNode:n,endOffset:i}=e.range;this.setNativeRange(t,r,n,i);this.update(Xd.sources.SILENT)}}));this.update(Xd.sources.SILENT)}handleComposition(){this.emitter.on(Xd.events.COMPOSITION_BEFORE_START,(()=>{this.composing=true}));this.emitter.on(Xd.events.COMPOSITION_END,(()=>{this.composing=false;if(this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout((()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}handleDragging(){this.emitter.listenDOM("mousedown",document.body,(()=>{this.mouseDown=true}));this.emitter.listenDOM("mouseup",document.body,(()=>{this.mouseDown=false;this.update(Xd.sources.USER)}))}focus(){if(this.hasFocus())return;this.root.focus({preventScroll:true});this.setRange(this.savedRange)}format(t,e){this.scroll.update();const r=this.getNativeRange();if(r==null||!r.native.collapsed||this.scroll.query(t,ts.BLOCK))return;if(r.start.node!==this.cursor.textNode){const t=this.scroll.find(r.start.node,false);if(t==null)return;if(t instanceof gs){const e=t.split(r.start.offset);t.parent.insertBefore(this.cursor,e)}else{t.insertBefore(this.cursor,r.start.node)}this.cursor.attach()}this.cursor.format(t,e);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}getBounds(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;const r=this.scroll.length();t=Math.min(t,r-1);e=Math.min(t+e,r-1)-t;let n;let[i,a]=this.scroll.leaf(t);if(i==null)return null;if(e>0&&a===i.length()){const[e]=this.scroll.leaf(t+1);if(e){const[r]=this.scroll.line(t);const[n]=this.scroll.line(t+1);if(r===n){i=e;a=0}}}[n,a]=i.position(a,true);const s=document.createRange();if(e>0){s.setStart(n,a);[i,a]=this.scroll.leaf(t+e);if(i==null)return null;[n,a]=i.position(a,true);s.setEnd(n,a);return s.getBoundingClientRect()}let d="left";let o;if(n instanceof Text){if(!n.data.length){return null}if(a<n.data.length){s.setStart(n,a);s.setEnd(n,a+1)}else{s.setStart(n,a-1);s.setEnd(n,a);d="right"}o=s.getBoundingClientRect()}else{if(!(i.domNode instanceof Element))return null;o=i.domNode.getBoundingClientRect();if(a>0)d="right"}return{bottom:o.top+o.height,height:o.height,left:o[d],right:o[d],top:o.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const e=t.getRangeAt(0);if(e==null)return null;const r=this.normalizeNative(e);Jd.info("getNativeRange",r);return r}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected){return[null,null]}const e=this.getNativeRange();if(e==null)return[null,null];const r=this.normalizedToRange(e);return[r,e]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&ro(this.root,document.activeElement)}normalizedToRange(t){const e=[[t.start.node,t.start.offset]];if(!t.native.collapsed){e.push([t.end.node,t.end.offset])}const r=e.map((t=>{const[e,r]=t;const n=this.scroll.find(e,true);const i=n.offset(this.scroll);if(r===0){return i}if(n instanceof gs){return i+n.index(e,r)}return i+n.length()}));const n=Math.min(Math.max(...r),this.scroll.length()-1);const i=Math.min(n,...r);return new to(i,n-i)}normalizeNative(t){if(!ro(this.root,t.startContainer)||!t.collapsed&&!ro(this.root,t.endContainer)){return null}const e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};[e.start,e.end].forEach((t=>{let{node:e,offset:r}=t;while(!(e instanceof Text)&&e.childNodes.length>0){if(e.childNodes.length>r){e=e.childNodes[r];r=0}else if(e.childNodes.length===r){e=e.lastChild;if(e instanceof Text){r=e.data.length}else if(e.childNodes.length>0){r=e.childNodes.length}else{r=e.childNodes.length+1}}else{break}}t.node=e;t.offset=r}));return e}rangeToNative(t){const e=this.scroll.length();const r=(t,r)=>{t=Math.min(e-1,t);const[n,i]=this.scroll.leaf(t);return n?n.position(i,r):[null,-1]};return[...r(t.index,false),...r(t.index+t.length,true)]}setNativeRange(t,e){let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:t;let n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:e;let i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;Jd.info("setNativeRange",t,e,r,n);if(t!=null&&(this.root.parentNode==null||t.parentNode==null||r.parentNode==null)){return}const a=document.getSelection();if(a==null)return;if(t!=null){if(!this.hasFocus())this.root.focus({preventScroll:true});const{native:s}=this.getNativeRange()||{};if(s==null||i||t!==s.startContainer||e!==s.startOffset||r!==s.endContainer||n!==s.endOffset){if(t instanceof Element&&t.tagName==="BR"){e=Array.from(t.parentNode.childNodes).indexOf(t);t=t.parentNode}if(r instanceof Element&&r.tagName==="BR"){n=Array.from(r.parentNode.childNodes).indexOf(r);r=r.parentNode}const i=document.createRange();i.setStart(t,e);i.setEnd(r,n);a.removeAllRanges();a.addRange(i)}}else{a.removeAllRanges();this.root.blur()}}setRange(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Xd.sources.API;if(typeof e==="string"){r=e;e=false}Jd.info("setRange",t);if(t!=null){const r=this.rangeToNative(t);this.setNativeRange(...r,e)}else{this.setNativeRange(null)}this.update(r)}update(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Xd.sources.USER;const e=this.lastRange;const[r,n]=this.getRange();this.lastRange=r;this.lastNative=n;if(this.lastRange!=null){this.savedRange=this.lastRange}if(!Ya(e,this.lastRange)){if(!this.composing&&n!=null&&n.native.collapsed&&n.start.node!==this.cursor.textNode){const t=this.cursor.restore();if(t){this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}}const r=[Xd.events.SELECTION_CHANGE,ra(this.lastRange),ra(e),t];this.emitter.emit(Xd.events.EDITOR_CHANGE,...r);if(t!==Xd.sources.SILENT){this.emitter.emit(...r)}}}}function ro(t,e){return t.contains(e)}const no=/^[ -~]*$/;class io{constructor(t){this.scroll=t;this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let e=this.scroll.length();this.scroll.batchStart();const r=co(t);const n=new Cd;const i=fo(r.ops.slice());i.reduce(((t,r)=>{const i=Zs.exports.Op.length(r);let a=r.attributes||{};let s=false;let d=false;if(r.insert!=null){n.retain(i);if(typeof r.insert==="string"){const n=r.insert;d=!n.endsWith("\n")&&(e<=t||!!this.scroll.descendant(Sd,t)[0]);this.scroll.insertAt(t,n);const[i,s]=this.scroll.line(t);let o=Ja({},Vd(i));if(i instanceof _d){const[t]=i.descendant(gs,s);if(t){o=Ja(o,Vd(t))}}a=Zs.exports.AttributeMap.diff(o,a)||{}}else if(typeof r.insert==="object"){const n=Object.keys(r.insert)[0];if(n==null)return t;const i=this.scroll.query(n,ts.INLINE)!=null;if(i){if(e<=t||!!this.scroll.descendant(Sd,t)[0]){d=true}}else if(t>0){const[e,r]=this.scroll.descendant(gs,t-1);if(e instanceof zd){const t=e.value();if(t[r]!=="\n"){s=true}}else if(e instanceof zs&&e.statics.scope===ts.INLINE_BLOT){s=true}}this.scroll.insertAt(t,n,r.insert[n]);if(i){const[e]=this.scroll.descendant(gs,t);if(e){const t=Ja({},Vd(e));a=Zs.exports.AttributeMap.diff(t,a)||{}}}}e+=i}else{n.push(r);if(r.retain!==null&&typeof r.retain==="object"){const e=Object.keys(r.retain)[0];if(e==null)return t;this.scroll.updateEmbedAt(t,e,r.retain[e])}}Object.keys(a).forEach((e=>{this.scroll.formatAt(t,i,e,a[e])}));const o=s?1:0;const l=d?1:0;e+=o+l;n.retain(o);n.delete(l);return t+i+o+l}),0);n.reduce(((t,e)=>{if(typeof e.delete==="number"){this.scroll.deleteAt(t,e.delete);return t}return t+Zs.exports.Op.length(e)}),0);this.scroll.batchEnd();this.scroll.optimize();return this.update(r)}deleteText(t,e){this.scroll.deleteAt(t,e);return this.update((new Cd).retain(t).delete(e))}formatLine(t,e){let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};this.scroll.update();Object.keys(r).forEach((n=>{this.scroll.lines(t,Math.max(e,1)).forEach((t=>{t.format(n,r[n])}))}));this.scroll.optimize();const n=(new Cd).retain(t).retain(e,ra(r));return this.update(n)}formatText(t,e){let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};Object.keys(r).forEach((n=>{this.scroll.formatAt(t,e,n,r[n])}));const n=(new Cd).retain(t).retain(e,ra(r));return this.update(n)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce(((t,e)=>t.concat(e.delta())),new Cd)}getFormat(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;let r=[];let n=[];if(e===0){this.scroll.path(t).forEach((t=>{const[e]=t;if(e instanceof _d){r.push(e)}else if(e instanceof gs){n.push(e)}}))}else{r=this.scroll.lines(t,e);n=this.scroll.descendants(gs,t,e)}const[i,a]=[r,n].map((t=>{const e=t.shift();if(e==null)return{};let r=Vd(e);while(Object.keys(r).length>0){const e=t.shift();if(e==null)return r;r=oo(Vd(e),r)}return r}));return{...i,...a}}getHTML(t,e){const[r,n]=this.scroll.line(t);if(r){const i=r.length();const a=r.length()>=n+e;if(a&&!(n===0&&e===i)){return so(r,n,e,true)}return so(this.scroll,t,e,true)}return""}getText(t,e){return this.getContents(t,e).filter((t=>typeof t.insert==="string")).map((t=>t.insert)).join("")}insertContents(t,e){const r=co(e);const n=(new Cd).retain(t).concat(r);this.scroll.insertContents(t,r);return this.update(n)}insertEmbed(t,e,r){this.scroll.insertAt(t,e,r);return this.update((new Cd).retain(t).insert({[e]:r}))}insertText(t,e){let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.scroll.insertAt(t,e);Object.keys(r).forEach((n=>{this.scroll.formatAt(t,e.length,n,r[n])}));return this.update((new Cd).retain(t).insert(e,ra(r)))}isBlank(){if(this.scroll.children.length===0)return true;if(this.scroll.children.length>1)return false;const t=this.scroll.children.head;if(t?.statics.blotName!==_d.blotName)return false;const e=t;if(e.children.length>1)return false;return e.children.head instanceof Ld}removeFormat(t,e){const r=this.getText(t,e);const[n,i]=this.scroll.line(t+e);let a=0;let s=new Cd;if(n!=null){a=n.length()-i;s=n.delta().slice(i,i+a-1).insert("\n")}const d=this.getContents(t,e+a);const o=d.diff((new Cd).insert(r).concat(s));const l=(new Cd).retain(t).concat(o);return this.applyDelta(l)}update(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;const n=this.delta;if(e.length===1&&e[0].type==="characterData"&&e[0].target.data.match(no)&&this.scroll.find(e[0].target)){const i=this.scroll.find(e[0].target);const a=Vd(i);const s=i.offset(this.scroll);const d=e[0].oldValue.replace(Hd.CONTENTS,"");const o=(new Cd).insert(d);const l=(new Cd).insert(i.value());const c=r&&{oldRange:uo(r.oldRange,-s),newRange:uo(r.newRange,-s)};const u=(new Cd).retain(s).concat(o.diff(l,c));t=u.reduce(((t,e)=>{if(e.insert){return t.insert(e.insert,a)}return t.push(e)}),new Cd);this.delta=n.compose(t)}else{this.delta=this.getDelta();if(!t||!Ya(n.compose(t),this.delta)){t=n.diff(this.delta,r)}}return t}}function ao(t,e,r){if(t.length===0){const[t]=lo(r.pop());if(e<=0){return`</li></${t}>`}return`</li></${t}>${ao([],e-1,r)}`}const[{child:n,offset:i,length:a,indent:s,type:d},...o]=t;const[l,c]=lo(d);if(s>e){r.push(d);if(s===e+1){return`<${l}><li${c}>${so(n,i,a)}${ao(o,s,r)}`}return`<${l}><li>${ao(t,e+1,r)}`}const u=r[r.length-1];if(s===e&&d===u){return`</li><li${c}>${so(n,i,a)}${ao(o,s,r)}`}const[f]=lo(r.pop());return`</li></${f}>${ao(t,e-1,r)}`}function so(t,e,r){let n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if("html"in t&&typeof t.html==="function"){return t.html(e,r)}if(t instanceof zd){const n=Nd(t.value().slice(e,e+r));return n.replaceAll(" ","&nbsp;")}if(t instanceof ks){if(t.statics.blotName==="list-container"){const n=[];t.children.forEachAt(e,r,((t,e,r)=>{const i="formats"in t&&typeof t.formats==="function"?t.formats():{};n.push({child:t,offset:e,length:r,indent:i.indent||0,type:i.list})}));return ao(n,-1,[])}const i=[];t.children.forEachAt(e,r,((t,e,r)=>{i.push(so(t,e,r))}));if(n||t.statics.blotName==="list"){return i.join("")}const{outerHTML:a,innerHTML:s}=t.domNode;const[d,o]=a.split(`>${s}<`);if(d==="<table"){return`<table style="border: 1px solid #000;">${i.join("")}<${o}`}return`${d}>${i.join("")}<${o}`}return t.domNode instanceof Element?t.domNode.outerHTML:""}function oo(t,e){return Object.keys(e).reduce(((r,n)=>{if(t[n]==null)return r;const i=e[n];if(i===t[n]){r[n]=i}else if(Array.isArray(i)){if(i.indexOf(t[n])<0){r[n]=i.concat([t[n]])}else{r[n]=i}}else{r[n]=[i,t[n]]}return r}),{})}function lo(t){const e=t==="ordered"?"ol":"ul";switch(t){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function co(t){return t.reduce(((t,e)=>{if(typeof e.insert==="string"){const r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new Cd)}function uo(t,e){let{index:r,length:n}=t;return new to(r+e,n)}function fo(t){const e=[];t.forEach((t=>{if(typeof t.insert==="string"){const r=t.insert.split("\n");r.forEach(((r,n)=>{if(n)e.push({insert:"\n",attributes:t.attributes});if(r)e.push({insert:r,attributes:t.attributes})}))}else{e.push(t)}}));return e}class ho{static DEFAULTS={};constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.quill=t;this.options=e}}const po="\ufeff";class mo extends zs{constructor(t,e){super(t,e);this.contentNode=document.createElement("span");this.contentNode.setAttribute("contenteditable","false");Array.from(this.domNode.childNodes).forEach((t=>{this.contentNode.appendChild(t)}));this.leftGuard=document.createTextNode(po);this.rightGuard=document.createTextNode(po);this.domNode.appendChild(this.leftGuard);this.domNode.appendChild(this.contentNode);this.domNode.appendChild(this.rightGuard)}index(t,e){if(t===this.leftGuard)return 0;if(t===this.rightGuard)return 1;return super.index(t,e)}restore(t){let e=null;let r;const n=t.data.split(po).join("");if(t===this.leftGuard){if(this.prev instanceof zd){const t=this.prev.length();this.prev.insertAt(t,n);e={startNode:this.prev.domNode,startOffset:t+n.length}}else{r=document.createTextNode(n);this.parent.insertBefore(this.scroll.create(r),this);e={startNode:r,startOffset:n.length}}}else if(t===this.rightGuard){if(this.next instanceof zd){this.next.insertAt(0,n);e={startNode:this.next.domNode,startOffset:n.length}}else{r=document.createTextNode(n);this.parent.insertBefore(this.scroll.create(r),this.next);e={startNode:r,startOffset:n.length}}}t.data=po;return e}update(t,e){t.forEach((t=>{if(t.type==="characterData"&&(t.target===this.leftGuard||t.target===this.rightGuard)){const r=this.restore(t.target);if(r)e.range=r}}))}}class vo{isComposing=false;constructor(t,e){this.scroll=t;this.emitter=e;this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",(t=>{if(!this.isComposing){this.handleCompositionStart(t)}}));this.scroll.domNode.addEventListener("compositionend",(t=>{if(this.isComposing){queueMicrotask((()=>{this.handleCompositionEnd(t)}))}}))}handleCompositionStart(t){const e=t.target instanceof Node?this.scroll.find(t.target,true):null;if(e&&!(e instanceof mo)){this.emitter.emit(Xd.events.COMPOSITION_BEFORE_START,t);this.scroll.batchStart();this.emitter.emit(Xd.events.COMPOSITION_START,t);this.isComposing=true}}handleCompositionEnd(t){this.emitter.emit(Xd.events.COMPOSITION_BEFORE_END,t);this.scroll.batchEnd();this.emitter.emit(Xd.events.COMPOSITION_END,t);this.isComposing=false}}class go{static DEFAULTS={modules:{}};static themes={default:go};modules={};constructor(t,e){this.quill=t;this.options=e}init(){Object.keys(this.options.modules).forEach((t=>{if(this.modules[t]==null){this.addModule(t)}}))}addModule(t){const e=this.quill.constructor.import(`modules/${t}`);this.modules[t]=new e(this.quill,this.options.modules[t]||{});return this.modules[t]}}const bo=t=>t.parentElement||t.getRootNode().host||null;const yo=t=>{const e=t.getBoundingClientRect();const r="offsetWidth"in t&&Math.abs(e.width)/t.offsetWidth||1;const n="offsetHeight"in t&&Math.abs(e.height)/t.offsetHeight||1;return{top:e.top,right:e.left+t.clientWidth*r,bottom:e.top+t.clientHeight*n,left:e.left}};const xo=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e};const wo=(t,e,r,n,i,a)=>{if(t<r&&e>n){return 0}if(t<r){return-(r-t+i)}if(e>n){return e-t>n-r?t+i-r:e-n+a}return 0};const ko=(t,e)=>{const r=t.ownerDocument;let n=e;let i=t;while(i){const t=i===r.body;const e=t?{top:0,right:window.visualViewport?.width??r.documentElement.clientWidth,bottom:window.visualViewport?.height??r.documentElement.clientHeight,left:0}:yo(i);const a=getComputedStyle(i);const s=wo(n.left,n.right,e.left,e.right,xo(a.scrollPaddingLeft),xo(a.scrollPaddingRight));const d=wo(n.top,n.bottom,e.top,e.bottom,xo(a.scrollPaddingTop),xo(a.scrollPaddingBottom));if(s||d){if(t){r.defaultView?.scrollBy(s,d)}else{const{scrollLeft:t,scrollTop:e}=i;if(d){i.scrollTop+=d}if(s){i.scrollLeft+=s}const r=i.scrollLeft-t;const a=i.scrollTop-e;n={left:n.left-r,top:n.top-a,right:n.right-r,bottom:n.bottom-a}}}i=t||a.position==="fixed"?null:bo(i)}};const jo=100;const Ao=["block","break","cursor","inline","scroll","text"];const Fo=(t,e,r)=>{const n=new is;Ao.forEach((t=>{const r=e.query(t);if(r)n.register(r)}));t.forEach((t=>{let i=e.query(t);if(!i){r.error(`Cannot register "${t}" specified in "formats" config. Are you sure it was registered?`)}let a=0;while(i){n.register(i);i="blotName"in i?i.requiredContainer??null:null;a+=1;if(a>jo){r.error(`Cycle detected in registering blot requiredContainer: "${t}"`);break}}}));return n};const qo=Gd("quill");const Eo=new is;ks.uiClass="ql-ui";class Oo{static DEFAULTS={bounds:null,modules:{clipboard:true,keyboard:true,history:true,uploader:true},placeholder:"",readOnly:false,registry:Eo,theme:"default"};static events=Xd.events;static sources=Xd.sources;static version="2.0.3";static imports={delta:Cd,parchment:Hs,"core/module":ho,"core/theme":go};static debug(t){if(t===true){t="log"}Gd.level(t)}static find(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;return Pd.get(t)||Eo.find(t,e)}static import(t){if(this.imports[t]==null){qo.error(`Cannot import ${t}. Are you sure it was registered?`)}return this.imports[t]}static register(){if(typeof(arguments.length<=0?undefined:arguments[0])!=="string"){const t=arguments.length<=0?undefined:arguments[0];const e=!!(arguments.length<=1?undefined:arguments[1]);const r="attrName"in t?t.attrName:t.blotName;if(typeof r==="string"){this.register(`formats/${r}`,t,e)}else{Object.keys(t).forEach((r=>{this.register(r,t[r],e)}))}}else{const t=arguments.length<=0?undefined:arguments[0];const e=arguments.length<=1?undefined:arguments[1];const r=!!(arguments.length<=2?undefined:arguments[2]);if(this.imports[t]!=null&&!r){qo.warn(`Overwriting ${t} with`,e)}this.imports[t]=e;if((t.startsWith("blots/")||t.startsWith("formats/"))&&e&&typeof e!=="boolean"&&e.blotName!=="abstract"){Eo.register(e)}if(typeof e.register==="function"){e.register(Eo)}}}constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.options=Co(t,e);this.container=this.options.container;if(this.container==null){qo.error("Invalid Quill container",t);return}if(this.options.debug){Oo.debug(this.options.debug)}const r=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";Pd.set(this.container,this);this.root=this.addContainer("ql-editor");this.root.classList.add("ql-blank");this.emitter=new Xd;const n=_s.blotName;const i=this.options.registry.query(n);if(!i||!("blotName"in i)){throw new Error(`Cannot initialize Quill without "${n}" blot`)}this.scroll=new i(this.options.registry,this.root,{emitter:this.emitter});this.editor=new io(this.scroll);this.selection=new eo(this.scroll,this.emitter);this.composition=new vo(this.scroll,this.emitter);this.theme=new this.options.theme(this,this.options);this.keyboard=this.theme.addModule("keyboard");this.clipboard=this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.uploader=this.theme.addModule("uploader");this.theme.addModule("input");this.theme.addModule("uiNode");this.theme.init();this.emitter.on(Xd.events.EDITOR_CHANGE,(t=>{if(t===Xd.events.TEXT_CHANGE){this.root.classList.toggle("ql-blank",this.editor.isBlank())}}));this.emitter.on(Xd.events.SCROLL_UPDATE,((t,e)=>{const r=this.selection.lastRange;const[n]=this.selection.getRange();const i=r&&n?{oldRange:r,newRange:n}:undefined;Lo.call(this,(()=>this.editor.update(null,e,i)),t)}));this.emitter.on(Xd.events.SCROLL_EMBED_UPDATE,((t,e)=>{const r=this.selection.lastRange;const[n]=this.selection.getRange();const i=r&&n?{oldRange:r,newRange:n}:undefined;Lo.call(this,(()=>{const r=(new Cd).retain(t.offset(this)).retain({[t.statics.blotName]:e});return this.editor.update(r,[],i)}),Oo.sources.USER)}));if(r){const t=this.clipboard.convert({html:`${r}<p><br></p>`,text:"\n"});this.setContents(t)}this.history.clear();if(this.options.placeholder){this.root.setAttribute("data-placeholder",this.options.placeholder)}if(this.options.readOnly){this.disable()}this.allowReadOnlyEdits=false}addContainer(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(typeof t==="string"){const e=t;t=document.createElement("div");t.classList.add(e)}this.container.insertBefore(t,e);return t}blur(){this.selection.setRange(null)}deleteText(t,e,r){[t,e,,r]=zo(t,e,r);return Lo.call(this,(()=>this.editor.deleteText(t,e)),r,t,-1*e)}disable(){this.enable(false)}editReadOnly(t){this.allowReadOnlyEdits=true;const e=t();this.allowReadOnlyEdits=false;return e}enable(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;this.scroll.enable(t);this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this.selection.focus();if(!t.preventScroll){this.scrollSelectionIntoView()}}format(t,e){let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Xd.sources.API;return Lo.call(this,(()=>{const r=this.getSelection(true);let n=new Cd;if(r==null)return n;if(this.scroll.query(t,ts.BLOCK)){n=this.editor.formatLine(r.index,r.length,{[t]:e})}else if(r.length===0){this.selection.format(t,e);return n}else{n=this.editor.formatText(r.index,r.length,{[t]:e})}this.setSelection(r,Xd.sources.SILENT);return n}),r)}formatLine(t,e,r,n,i){let a;[t,e,a,i]=zo(t,e,r,n,i);return Lo.call(this,(()=>this.editor.formatLine(t,e,a)),i,t,0)}formatText(t,e,r,n,i){let a;[t,e,a,i]=zo(t,e,r,n,i);return Lo.call(this,(()=>this.editor.formatText(t,e,a)),i,t,0)}getBounds(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;let r=null;if(typeof t==="number"){r=this.selection.getBounds(t,e)}else{r=this.selection.getBounds(t.index,t.length)}if(!r)return null;const n=this.container.getBoundingClientRect();return{bottom:r.bottom-n.top,height:r.height,left:r.left-n.left,right:r.right-n.left,top:r.top-n.top,width:r.width}}getContents(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.getLength()-t;[t,e]=zo(t,e);return this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.getSelection(true);let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(typeof t==="number"){return this.editor.getFormat(t,e)}return this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Number.MAX_VALUE;if(typeof t!=="number"){return this.scroll.lines(t.index,t.length)}return this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(t)this.focus();this.update();return this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let e=arguments.length>1?arguments[1]:undefined;if(typeof t==="number"){e=e??this.getLength()-t}[t,e]=zo(t,e);return this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let e=arguments.length>1?arguments[1]:undefined;if(typeof t==="number"){e=e??this.getLength()-t}[t,e]=zo(t,e);return this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,r){let n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Oo.sources.API;return Lo.call(this,(()=>this.editor.insertEmbed(t,e,r)),n,t)}insertText(t,e,r,n,i){let a;[t,,a,i]=zo(t,0,r,n,i);return Lo.call(this,(()=>this.editor.insertText(t,e,a)),i,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,e,r){[t,e,,r]=zo(t,e,r);return Lo.call(this,(()=>this.editor.removeFormat(t,e)),r,t)}scrollRectIntoView(t){ko(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead.");this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange;const e=t&&this.selection.getBounds(t.index,t.length);if(e){this.scrollRectIntoView(e)}}setContents(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Xd.sources.API;return Lo.call(this,(()=>{t=new Cd(t);const e=this.getLength();const r=this.editor.deleteText(0,e);const n=this.editor.insertContents(0,t);const i=this.editor.deleteText(this.getLength()-1,1);return r.compose(n).compose(i)}),e)}setSelection(t,e,r){if(t==null){this.selection.setRange(null,e||Oo.sources.API)}else{[t,e,,r]=zo(t,e,r);this.selection.setRange(new to(Math.max(0,t),e),r);if(r!==Xd.sources.SILENT){this.scrollSelectionIntoView()}}}setText(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Xd.sources.API;const r=(new Cd).insert(t);return this.setContents(r,e)}update(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Xd.sources.USER;const e=this.scroll.update(t);this.selection.update(t);return e}updateContents(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Xd.sources.API;return Lo.call(this,(()=>{t=new Cd(t);return this.editor.applyDelta(t)}),e,true)}}function Bo(t){return typeof t==="string"?document.querySelector(t):t}function Mo(t){return Object.entries(t??{}).reduce(((t,e)=>{let[r,n]=e;return{...t,[r]:n===true?{}:n}}),{})}function Do(t){return Object.fromEntries(Object.entries(t).filter((t=>t[1]!==undefined)))}function Co(t,e){const r=Bo(t);if(!r){throw new Error("Invalid Quill container")}const n=!e.theme||e.theme===Oo.DEFAULTS.theme;const i=n?go:Oo.import(`themes/${e.theme}`);if(!i){throw new Error(`Invalid theme ${e.theme}. Did you register it?`)}const{modules:a,...s}=Oo.DEFAULTS;const{modules:d,...o}=i.DEFAULTS;let l=Mo(e.modules);if(l!=null&&l.toolbar&&l.toolbar.constructor!==Object){l={...l,toolbar:{container:l.toolbar}}}const c=Ja({},Mo(a),Mo(d),l);const u={...s,...Do(o),...Do(e)};let f=e.registry;if(f){if(e.formats){qo.warn('Ignoring "formats" option because "registry" is specified')}}else{f=e.formats?Fo(e.formats,u.registry,qo):u.registry}return{...u,registry:f,container:r,theme:i,modules:Object.entries(c).reduce(((t,e)=>{let[r,n]=e;if(!n)return t;const i=Oo.import(`modules/${r}`);if(i==null){qo.error(`Cannot load ${r} module. Are you sure you registered it?`);return t}return{...t,[r]:Ja({},i.DEFAULTS||{},n)}}),{}),bounds:Bo(u.bounds)}}function Lo(t,e,r,n){if(!this.isEnabled()&&e===Xd.sources.USER&&!this.allowReadOnlyEdits){return new Cd}let i=r==null?null:this.getSelection();const a=this.editor.delta;const s=t();if(i!=null){if(r===true){r=i.index}if(n==null){i=To(i,s,e)}else if(n!==0){i=To(i,r,n,e)}this.setSelection(i,Xd.sources.SILENT)}if(s.length()>0){const t=[Xd.events.TEXT_CHANGE,s,a,e];this.emitter.emit(Xd.events.EDITOR_CHANGE,...t);if(e!==Xd.sources.SILENT){this.emitter.emit(...t)}}return s}function zo(t,e,r,n,i){let a={};if(typeof t.index==="number"&&typeof t.length==="number"){if(typeof e!=="number"){i=n;n=r;r=e;e=t.length;t=t.index}else{e=t.length;t=t.index}}else if(typeof e!=="number"){i=n;n=r;r=e;e=0}if(typeof r==="object"){a=r;i=n}else if(typeof r==="string"){if(n!=null){a[r]=n}else{i=r}}i=i||Xd.sources.API;return[t,e,a,i]}function To(t,e,r,n){const i=typeof r==="number"?r:0;if(t==null)return null;let a;let s;if(e&&typeof e.transformPosition==="function"){[a,s]=[t.index,t.index+t.length].map((t=>e.transformPosition(t,n!==Xd.sources.USER)))}else{[a,s]=[t.index,t.index+t.length].map((t=>{if(t<e||t===e&&n===Xd.sources.USER)return t;if(i>=0){return t+i}return Math.max(e,t+i)}))}return new to(a,s-a)}class No extends Cs{}function $o(t){return t instanceof _d||t instanceof Sd}function Ro(t){return typeof t.updateContent==="function"}class _o extends _s{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=_d;static allowedChildren=[_d,Sd,No];constructor(t,e,r){let{emitter:n}=r;super(t,e);this.emitter=n;this.batch=false;this.optimize();this.enable();this.domNode.addEventListener("dragstart",(t=>this.handleDragStart(t)))}batchStart(){if(!Array.isArray(this.batch)){this.batch=[]}}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=false;this.update(t)}emitMount(t){this.emitter.emit(Xd.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(Xd.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(Xd.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){const[r,n]=this.line(t);const[i]=this.line(t+e);super.deleteAt(t,e);if(i!=null&&r!==i&&n>0){if(r instanceof Sd||i instanceof Sd){this.optimize();return}const t=i.children.head instanceof Ld?null:i.children.head;r.moveChildren(i,t);r.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,e,r,n){super.formatAt(t,e,r,n);this.optimize()}insertAt(t,e,r){if(t>=this.length()){if(r==null||this.scroll.query(e,ts.BLOCK)==null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t);if(r==null&&e.endsWith("\n")){t.insertAt(0,e.slice(0,-1),r)}else{t.insertAt(0,e,r)}}else{const t=this.scroll.create(e,r);this.appendChild(t)}}else{super.insertAt(t,e,r)}this.optimize()}insertBefore(t,e){if(t.statics.scope===ts.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(t);super.insertBefore(r,e)}else{super.insertBefore(t,e)}}insertContents(t,e){const r=this.deltaToRenderBlocks(e.concat((new Cd).insert("\n")));const n=r.pop();if(n==null)return;this.batchStart();const i=r.shift();if(i){const e=i.type==="block"&&(i.delta.length()===0||!this.descendant(Sd,t)[0]&&t<this.length());const r=i.type==="block"?i.delta:(new Cd).insert({[i.key]:i.value});So(this,t,r);const n=i.type==="block"?1:0;const a=t+r.length()+n;if(e){this.insertAt(a-1,"\n")}const s=Vd(this.line(t)[0]);const d=Zs.exports.AttributeMap.diff(s,i.attributes)||{};Object.keys(d).forEach((t=>{this.formatAt(a-1,1,t,d[t])}));t=a}let[a,s]=this.children.find(t);if(r.length){if(a){a=a.split(s);s=0}r.forEach((t=>{if(t.type==="block"){const e=this.createBlock(t.attributes,a||undefined);So(e,0,t.delta)}else{const e=this.create(t.key,t.value);this.insertBefore(e,a||undefined);Object.keys(t.attributes).forEach((r=>{e.format(r,t.attributes[r])}))}}))}if(n.type==="block"&&n.delta.length()){const t=a?a.offset(a.scroll)+s:this.length();So(this,t,n.delta)}this.batchEnd();this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const e=this.path(t).pop();if(!e){return[null,-1]}const[r,n]=e;return r instanceof gs?[r,n]:[null,-1]}line(t){if(t===this.length()){return this.line(t-1)}return this.descendant($o,t)}lines(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Number.MAX_VALUE;const r=(t,e,n)=>{let i=[];let a=n;t.children.forEachAt(e,n,((t,e,n)=>{if($o(t)){i.push(t)}else if(t instanceof Cs){i=i.concat(r(t,e,a))}a-=n}));return i};return r(this,t,e)}optimize(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this.batch)return;super.optimize(t,e);if(t.length>0){this.emitter.emit(Xd.events.SCROLL_OPTIMIZE,t,e)}}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){if(Array.isArray(t)){this.batch=this.batch.concat(t)}return}let e=Xd.sources.USER;if(typeof t==="string"){e=t}if(!Array.isArray(t)){t=this.observer.takeRecords()}t=t.filter((t=>{let{target:e}=t;const r=this.find(e,true);return r&&!Ro(r)}));if(t.length>0){this.emitter.emit(Xd.events.SCROLL_BEFORE_UPDATE,e,t)}super.update(t.concat([]));if(t.length>0){this.emitter.emit(Xd.events.SCROLL_UPDATE,e,t)}}updateEmbedAt(t,e,r){const[n]=this.descendant((t=>t instanceof Sd),t);if(n&&n.statics.blotName===e&&Ro(n)){n.updateContent(r)}}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const e=[];let r=new Cd;t.forEach((t=>{const n=t?.insert;if(!n)return;if(typeof n==="string"){const i=n.split("\n");i.slice(0,-1).forEach((n=>{r.insert(n,t.attributes);e.push({type:"block",delta:r,attributes:t.attributes??{}});r=new Cd}));const a=i[i.length-1];if(a){r.insert(a,t.attributes)}}else{const i=Object.keys(n)[0];if(!i)return;if(this.query(i,ts.INLINE)){r.push(t)}else{if(r.length()){e.push({type:"block",delta:r,attributes:{}})}r=new Cd;e.push({type:"blockEmbed",key:i,value:n[i],attributes:t.attributes??{}})}}}));if(r.length()){e.push({type:"block",delta:r,attributes:{}})}return e}createBlock(t,e){let r;const n={};Object.entries(t).forEach((t=>{let[e,i]=t;const a=this.query(e,ts.BLOCK&ts.BLOT)!=null;if(a){r=e}else{n[e]=i}}));const i=this.create(r||this.statics.defaultChild.blotName,r?t[r]:undefined);this.insertBefore(i,e||undefined);const a=i.length();Object.entries(n).forEach((t=>{let[e,r]=t;i.formatAt(0,a,e,r)}));return i}}function So(t,e,r){r.reduce(((e,r)=>{const n=Zs.exports.Op.length(r);let i=r.attributes||{};if(r.insert!=null){if(typeof r.insert==="string"){const n=r.insert;t.insertAt(e,n);const[a]=t.descendant(gs,e);const s=Vd(a);i=Zs.exports.AttributeMap.diff(s,i)||{}}else if(typeof r.insert==="object"){const n=Object.keys(r.insert)[0];if(n==null)return e;t.insertAt(e,n,r.insert[n]);const a=t.scroll.query(n,ts.INLINE)!=null;if(a){const[r]=t.descendant(gs,e);const n=Vd(r);i=Zs.exports.AttributeMap.diff(n,i)||{}}}}Object.keys(i).forEach((r=>{t.formatAt(e,n,r,i[r])}));return e+n}),e)}const Io={scope:ts.BLOCK,whitelist:["right","center","justify"]};const Vo=new es("align","align",Io);const Ho=new ds("align","ql-align",Io);const Uo=new cs("align","text-align",Io);class Po extends cs{value(t){let e=super.value(t);if(!e.startsWith("rgb("))return e;e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");const r=e.split(",").map((t=>`00${parseInt(t,10).toString(16)}`.slice(-2))).join("");return`#${r}`}}const Zo=new ds("color","ql-color",{scope:ts.INLINE});const Ko=new Po("color","color",{scope:ts.INLINE});const Wo=new ds("background","ql-bg",{scope:ts.INLINE});const Go=new Po("background","background-color",{scope:ts.INLINE});class Qo extends No{static create(t){const e=super.create(t);e.setAttribute("spellcheck","false");return e}code(t,e){return this.children.map((t=>t.length()<=1?"":t.domNode.innerText)).join("\n").slice(t,t+e)}html(t,e){return`<pre>\n${Nd(this.code(t,e))}\n</pre>`}}class Yo extends _d{static TAB=" ";static register(){Oo.register(Qo)}}class Xo extends $d{}Xo.blotName="code";Xo.tagName="CODE";Yo.blotName="code-block";Yo.className="ql-code-block";Yo.tagName="DIV";Qo.blotName="code-block-container";Qo.className="ql-code-block-container";Qo.tagName="DIV";Qo.allowedChildren=[Yo];Yo.allowedChildren=[zd,Ld,Hd];Yo.requiredContainer=Qo;const Jo={scope:ts.BLOCK,whitelist:["rtl"]};const tl=new es("direction","dir",Jo);const el=new ds("direction","ql-direction",Jo);const rl=new cs("direction","direction",Jo);const nl={scope:ts.INLINE,whitelist:["serif","monospace"]};const il=new ds("font","ql-font",nl);class al extends cs{value(t){return super.value(t).replace(/["']/g,"")}}const sl=new al("font","font-family",nl);const dl=new ds("size","ql-size",{scope:ts.INLINE,whitelist:["small","large","huge"]});const ol=new cs("size","font-size",{scope:ts.INLINE,whitelist:["10px","18px","32px"]});const ll=Gd("quill:keyboard");const cl=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class ul extends ho{static match(t,e){if(["altKey","ctrlKey","metaKey","shiftKey"].some((r=>!!e[r]!==t[r]&&e[r]!==null))){return false}return e.key===t.key||e.key===t.which}constructor(t,e){super(t,e);this.bindings={};Object.keys(this.options.bindings).forEach((t=>{if(this.options.bindings[t]){this.addBinding(this.options.bindings[t])}}));this.addBinding({key:"Enter",shiftKey:null},this.handleEnter);this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},(()=>{}));if(/Firefox/i.test(navigator.userAgent)){this.addBinding({key:"Backspace"},{collapsed:true},this.handleBackspace);this.addBinding({key:"Delete"},{collapsed:true},this.handleDelete)}else{this.addBinding({key:"Backspace"},{collapsed:true,prefix:/^.?$/},this.handleBackspace);this.addBinding({key:"Delete"},{collapsed:true,suffix:/^.?$/},this.handleDelete)}this.addBinding({key:"Backspace"},{collapsed:false},this.handleDeleteRange);this.addBinding({key:"Delete"},{collapsed:false},this.handleDeleteRange);this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:true,offset:0},this.handleBackspace);this.listen()}addBinding(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};const n=gl(t);if(n==null){ll.warn("Attempted to add invalid keyboard binding",n);return}if(typeof e==="function"){e={handler:e}}if(typeof r==="function"){r={handler:r}}const i=Array.isArray(n.key)?n.key:[n.key];i.forEach((t=>{const i={...n,key:t,...e,...r};this.bindings[i.key]=this.bindings[i.key]||[];this.bindings[i.key].push(i)}))}listen(){this.quill.root.addEventListener("keydown",(t=>{if(t.defaultPrevented||t.isComposing)return;const e=t.keyCode===229&&(t.key==="Enter"||t.key==="Backspace");if(e)return;const r=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]);const n=r.filter((e=>ul.match(t,e)));if(n.length===0)return;const i=Oo.find(t.target,true);if(i&&i.scroll!==this.quill.scroll)return;const a=this.quill.getSelection();if(a==null||!this.quill.hasFocus())return;const[s,d]=this.quill.getLine(a.index);const[o,l]=this.quill.getLeaf(a.index);const[c,u]=a.length===0?[o,l]:this.quill.getLeaf(a.index+a.length);const f=o instanceof Vs?o.value().slice(0,l):"";const h=c instanceof Vs?c.value().slice(u):"";const p={collapsed:a.length===0,empty:a.length===0&&s.length()<=1,format:this.quill.getFormat(a),line:s,offset:d,prefix:f,suffix:h,event:t};const m=n.some((t=>{if(t.collapsed!=null&&t.collapsed!==p.collapsed){return false}if(t.empty!=null&&t.empty!==p.empty){return false}if(t.offset!=null&&t.offset!==p.offset){return false}if(Array.isArray(t.format)){if(t.format.every((t=>p.format[t]==null))){return false}}else if(typeof t.format==="object"){if(!Object.keys(t.format).every((e=>{if(t.format[e]===true)return p.format[e]!=null;if(t.format[e]===false)return p.format[e]==null;return Ya(t.format[e],p.format[e])}))){return false}}if(t.prefix!=null&&!t.prefix.test(p.prefix)){return false}if(t.suffix!=null&&!t.suffix.test(p.suffix)){return false}return t.handler.call(this,a,p,t)!==true}));if(m){t.preventDefault()}}))}handleBackspace(t,e){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let n={};const[i]=this.quill.getLine(t.index);let a=(new Cd).retain(t.index-r).delete(r);if(e.offset===0){const[e]=this.quill.getLine(t.index-1);if(e){const r=e.statics.blotName==="block"&&e.length()<=1;if(!r){const e=i.formats();const r=this.quill.getFormat(t.index-1,1);n=Zs.exports.AttributeMap.diff(e,r)||{};if(Object.keys(n).length>0){const e=(new Cd).retain(t.index+i.length()-2).retain(1,n);a=a.compose(e)}}}}this.quill.updateContents(a,Oo.sources.USER);this.quill.focus()}handleDelete(t,e){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-r)return;let n={};const[i]=this.quill.getLine(t.index);let a=(new Cd).retain(t.index).delete(r);if(e.offset>=i.length()-1){const[e]=this.quill.getLine(t.index+1);if(e){const r=i.formats();const s=this.quill.getFormat(t.index,1);n=Zs.exports.AttributeMap.diff(r,s)||{};if(Object.keys(n).length>0){a=a.retain(e.length()-1).retain(1,n)}}}this.quill.updateContents(a,Oo.sources.USER);this.quill.focus()}handleDeleteRange(t){bl({range:t,quill:this.quill});this.quill.focus()}handleEnter(t,e){const r=Object.keys(e.format).reduce(((t,r)=>{if(this.quill.scroll.query(r,ts.BLOCK)&&!Array.isArray(e.format[r])){t[r]=e.format[r]}return t}),{});const n=(new Cd).retain(t.index).delete(t.length).insert("\n",r);this.quill.updateContents(n,Oo.sources.USER);this.quill.setSelection(t.index+1,Oo.sources.SILENT);this.quill.focus()}}const fl={bindings:{bold:ml("bold"),italic:ml("italic"),underline:ml("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){if(e.collapsed&&e.offset!==0)return true;this.quill.format("indent","+1",Oo.sources.USER);return false}},outdent:{key:"Tab",shiftKey:true,format:["blockquote","indent","list"],handler(t,e){if(e.collapsed&&e.offset!==0)return true;this.quill.format("indent","-1",Oo.sources.USER);return false}},"outdent backspace":{key:"Backspace",collapsed:true,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){if(e.format.indent!=null){this.quill.format("indent","-1",Oo.sources.USER)}else if(e.format.list!=null){this.quill.format("list",false,Oo.sources.USER)}}},"indent code-block":hl(true),"outdent code-block":hl(false),"remove tab":{key:"Tab",shiftKey:true,collapsed:true,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,Oo.sources.USER)}},tab:{key:"Tab",handler(t,e){if(e.format.table)return true;this.quill.history.cutoff();const r=(new Cd).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(r,Oo.sources.USER);this.quill.history.cutoff();this.quill.setSelection(t.index+1,Oo.sources.SILENT);return false}},"blockquote empty enter":{key:"Enter",collapsed:true,format:["blockquote"],empty:true,handler(){this.quill.format("blockquote",false,Oo.sources.USER)}},"list empty enter":{key:"Enter",collapsed:true,format:["list"],empty:true,handler(t,e){const r={list:false};if(e.format.indent){r.indent=false}this.quill.formatLine(t.index,t.length,r,Oo.sources.USER)}},"checklist enter":{key:"Enter",collapsed:true,format:{list:"checked"},handler(t){const[e,r]=this.quill.getLine(t.index);const n={...e.formats(),list:"checked"};const i=(new Cd).retain(t.index).insert("\n",n).retain(e.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,Oo.sources.USER);this.quill.setSelection(t.index+1,Oo.sources.SILENT);this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:true,format:["header"],suffix:/^$/,handler(t,e){const[r,n]=this.quill.getLine(t.index);const i=(new Cd).retain(t.index).insert("\n",e.format).retain(r.length()-n-1).retain(1,{header:null});this.quill.updateContents(i,Oo.sources.USER);this.quill.setSelection(t.index+1,Oo.sources.SILENT);this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:true,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:true,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){const e=this.quill.getModule("table");if(e){const[r,n,i,a]=e.getTable(t);const s=yl(r,n,i,a);if(s==null)return;let d=r.offset();if(s<0){const e=(new Cd).retain(d).insert("\n");this.quill.updateContents(e,Oo.sources.USER);this.quill.setSelection(t.index+1,t.length,Oo.sources.SILENT)}else if(s>0){d+=r.length();const t=(new Cd).retain(d).insert("\n");this.quill.updateContents(t,Oo.sources.USER);this.quill.setSelection(d,Oo.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(t,e){const{event:r,line:n}=e;const i=n.offset(this.quill.scroll);if(r.shiftKey){this.quill.setSelection(i-1,Oo.sources.USER)}else{this.quill.setSelection(i+n.length(),Oo.sources.USER)}}},"list autofill":{key:" ",shiftKey:null,collapsed:true,format:{"code-block":false,blockquote:false,table:false},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(this.quill.scroll.query("list")==null)return true;const{length:r}=e.prefix;const[n,i]=this.quill.getLine(t.index);if(i>r)return true;let a;switch(e.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(t.index," ",Oo.sources.USER);this.quill.history.cutoff();const s=(new Cd).retain(t.index-i).delete(r+1).retain(n.length()-2-i).retain(1,{list:a});this.quill.updateContents(s,Oo.sources.USER);this.quill.history.cutoff();this.quill.setSelection(t.index-r,Oo.sources.SILENT);return false}},"code exit":{key:"Enter",collapsed:true,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,r]=this.quill.getLine(t.index);let n=2;let i=e;while(i!=null&&i.length()<=1&&i.formats()["code-block"]){i=i.prev;n-=1;if(n<=0){const n=(new Cd).retain(t.index+e.length()-r-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(n,Oo.sources.USER);this.quill.setSelection(t.index-1,Oo.sources.SILENT);return false}}return true}},"embed left":pl("ArrowLeft",false),"embed left shift":pl("ArrowLeft",true),"embed right":pl("ArrowRight",false),"embed right shift":pl("ArrowRight",true),"table down":vl(false),"table up":vl(true)}};ul.DEFAULTS=fl;function hl(t){return{key:"Tab",shiftKey:!t,format:{"code-block":true},handler(e,r){let{event:n}=r;const i=this.quill.scroll.query("code-block");const{TAB:a}=i;if(e.length===0&&!n.shiftKey){this.quill.insertText(e.index,a,Oo.sources.USER);this.quill.setSelection(e.index+a.length,Oo.sources.SILENT);return}const s=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:d,length:o}=e;s.forEach(((e,r)=>{if(t){e.insertAt(0,a);if(r===0){d+=a.length}else{o+=a.length}}else if(e.domNode.textContent.startsWith(a)){e.deleteAt(0,a.length);if(r===0){d-=a.length}else{o-=a.length}}}));this.quill.update(Oo.sources.USER);this.quill.setSelection(d,o,Oo.sources.SILENT)}}}function pl(t,e){const r=t==="ArrowLeft"?"prefix":"suffix";return{key:t,shiftKey:e,altKey:null,[r]:/^$/,handler(r){let{index:n}=r;if(t==="ArrowRight"){n+=r.length+1}const[i]=this.quill.getLeaf(n);if(!(i instanceof zs))return true;if(t==="ArrowLeft"){if(e){this.quill.setSelection(r.index-1,r.length+1,Oo.sources.USER)}else{this.quill.setSelection(r.index-1,Oo.sources.USER)}}else if(e){this.quill.setSelection(r.index,r.length+1,Oo.sources.USER)}else{this.quill.setSelection(r.index+r.length+1,Oo.sources.USER)}return false}}}function ml(t){return{key:t[0],shortKey:true,handler(e,r){this.quill.format(t,!r.format[t],Oo.sources.USER)}}}function vl(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:true,format:["table"],handler(e,r){const n=t?"prev":"next";const i=r.line;const a=i.parent[n];if(a!=null){if(a.statics.blotName==="table-row"){let t=a.children.head;let e=i;while(e.prev!=null){e=e.prev;t=t.next}const n=t.offset(this.quill.scroll)+Math.min(r.offset,t.length()-1);this.quill.setSelection(n,0,Oo.sources.USER)}}else{const e=i.table()[n];if(e!=null){if(t){this.quill.setSelection(e.offset(this.quill.scroll)+e.length()-1,0,Oo.sources.USER)}else{this.quill.setSelection(e.offset(this.quill.scroll),0,Oo.sources.USER)}}}return false}}}function gl(t){if(typeof t==="string"||typeof t==="number"){t={key:t}}else if(typeof t==="object"){t=ra(t)}else{return null}if(t.shortKey){t[cl]=t.shortKey;delete t.shortKey}return t}function bl(t){let{quill:e,range:r}=t;const n=e.getLines(r);let i={};if(n.length>1){const t=n[0].formats();const e=n[n.length-1].formats();i=Zs.exports.AttributeMap.diff(e,t)||{}}e.deleteText(r,Oo.sources.USER);if(Object.keys(i).length>0){e.formatLine(r.index,1,i,Oo.sources.USER)}e.setSelection(r.index,Oo.sources.SILENT)}function yl(t,e,r,n){if(e.prev==null&&e.next==null){if(r.prev==null&&r.next==null){return n===0?-1:1}return r.prev==null?-1:1}if(e.prev==null){return-1}if(e.next==null){return 1}return null}const xl=/font-weight:\s*normal/;const wl=["P","OL","UL"];const kl=t=>t&&wl.includes(t.tagName);const jl=t=>{Array.from(t.querySelectorAll("br")).filter((t=>kl(t.previousElementSibling)&&kl(t.nextElementSibling))).forEach((t=>{t.parentNode?.removeChild(t)}))};const Al=t=>{Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter((t=>t.getAttribute("style")?.match(xl))).forEach((e=>{const r=t.createDocumentFragment();r.append(...e.childNodes);e.parentNode?.replaceChild(r,e)}))};function Fl(t){if(t.querySelector('[id^="docs-internal-guid-"]')){Al(t);jl(t)}}const ql=/\bmso-list:[^;]*ignore/i;const El=/\bmso-list:[^;]*\bl(\d+)/i;const Ol=/\bmso-list:[^;]*\blevel(\d+)/i;const Bl=(t,e)=>{const r=t.getAttribute("style");const n=r?.match(El);if(!n){return null}const i=Number(n[1]);const a=r?.match(Ol);const s=a?Number(a[1]):1;const d=new RegExp(`@list l${i}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i");const o=e.match(d);const l=o&&o[1]==="bullet"?"bullet":"ordered";return{id:i,indent:s,type:l,element:t}};const Ml=t=>{const e=Array.from(t.querySelectorAll("[style*=mso-list]"));const r=[];const n=[];e.forEach((t=>{const e=(t.getAttribute("style")||"").match(ql);if(e){r.push(t)}else{n.push(t)}}));r.forEach((t=>t.parentNode?.removeChild(t)));const i=t.documentElement.innerHTML;const a=n.map((t=>Bl(t,i))).filter((t=>t));while(a.length){const t=[];let e=a.shift();while(e){t.push(e);e=a.length&&a[0]?.element===e.element.nextElementSibling&&a[0].id===e.id?a.shift():null}const r=document.createElement("ul");t.forEach((t=>{const e=document.createElement("li");e.setAttribute("data-list",t.type);if(t.indent>1){e.setAttribute("class",`ql-indent-${t.indent-1}`)}e.innerHTML=t.element.innerHTML;r.appendChild(e)}));const n=t[0]?.element;const{parentNode:i}=n??{};if(n){i?.replaceChild(r,n)}t.slice(1).forEach((t=>{let{element:e}=t;i?.removeChild(e)}))}};function Dl(t){if(t.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"){Ml(t)}}const Cl=[Dl,Fl];const Ll=t=>{if(t.documentElement){Cl.forEach((e=>{e(t)}))}};const zl=Gd("quill:clipboard");const Tl=[[Node.TEXT_NODE,nc],[Node.TEXT_NODE,tc],["br",Gl],[Node.ELEMENT_NODE,tc],[Node.ELEMENT_NODE,Wl],[Node.ELEMENT_NODE,Kl],[Node.ELEMENT_NODE,ec],["li",Xl],["ol, ul",Jl],["pre",Ql],["tr",rc],["b",Zl("bold")],["i",Zl("italic")],["strike",Zl("strike")],["style",Yl]];const Nl=[Vo,tl].reduce(((t,e)=>{t[e.keyName]=e;return t}),{});const $l=[Uo,Go,Ko,rl,sl,ol].reduce(((t,e)=>{t[e.keyName]=e;return t}),{});class Rl extends ho{static DEFAULTS={matchers:[]};constructor(t,e){super(t,e);this.quill.root.addEventListener("copy",(t=>this.onCaptureCopy(t,false)));this.quill.root.addEventListener("cut",(t=>this.onCaptureCopy(t,true)));this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this));this.matchers=[];Tl.concat(this.options.matchers??[]).forEach((t=>{let[e,r]=t;this.addMatcher(e,r)}))}addMatcher(t,e){this.matchers.push([t,e])}convert(t){let{html:e,text:r}=t;let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(n[Yo.blotName]){return(new Cd).insert(r||"",{[Yo.blotName]:n[Yo.blotName]})}if(!e){return(new Cd).insert(r||"",n)}const i=this.convertHTML(e);if(Sl(i,"\n")&&(i.ops[i.ops.length-1].attributes==null||n.table)){return i.compose((new Cd).retain(i.length()-1).delete(1))}return i}normalizeHTML(t){Ll(t)}convertHTML(t){const e=(new DOMParser).parseFromString(t,"text/html");this.normalizeHTML(e);const r=e.body;const n=new WeakMap;const[i,a]=this.prepareMatching(r,n);return Pl(this.quill.scroll,r,i,a,n)}dangerouslyPasteHTML(t,e){let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Oo.sources.API;if(typeof t==="string"){const r=this.convert({html:t,text:""});this.quill.setContents(r,e);this.quill.setSelection(0,Oo.sources.SILENT)}else{const n=this.convert({html:e,text:""});this.quill.updateContents((new Cd).retain(t).concat(n),r);this.quill.setSelection(t+n.length(),Oo.sources.SILENT)}}onCaptureCopy(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(t.defaultPrevented)return;t.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:n,text:i}=this.onCopy(r,e);t.clipboardData?.setData("text/plain",i);t.clipboardData?.setData("text/html",n);if(e){bl({range:r,quill:this.quill})}}normalizeURIList(t){return t.split(/\r?\n/).filter((t=>t[0]!=="#")).join("\n")}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(true);if(e==null)return;const r=t.clipboardData?.getData("text/html");let n=t.clipboardData?.getData("text/plain");if(!r&&!n){const e=t.clipboardData?.getData("text/uri-list");if(e){n=this.normalizeURIList(e)}}const i=Array.from(t.clipboardData?.files||[]);if(!r&&i.length>0){this.quill.uploader.upload(e,i);return}if(r&&i.length>0){const t=(new DOMParser).parseFromString(r,"text/html");if(t.body.childElementCount===1&&t.body.firstElementChild?.tagName==="IMG"){this.quill.uploader.upload(e,i);return}}this.onPaste(e,{html:r,text:n})}onCopy(t){const e=this.quill.getText(t);const r=this.quill.getSemanticHTML(t);return{html:r,text:e}}onPaste(t,e){let{text:r,html:n}=e;const i=this.quill.getFormat(t.index);const a=this.convert({text:r,html:n},i);zl.log("onPaste",a,{text:r,html:n});const s=(new Cd).retain(t.index).delete(t.length).concat(a);this.quill.updateContents(s,Oo.sources.USER);this.quill.setSelection(s.length()-t.length,Oo.sources.SILENT);this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const r=[];const n=[];this.matchers.forEach((i=>{const[a,s]=i;switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:r.push(s);break;default:Array.from(t.querySelectorAll(a)).forEach((t=>{if(e.has(t)){const r=e.get(t);r?.push(s)}else{e.set(t,[s])}}));break}}));return[r,n]}}function _l(t,e,r,n){if(!n.query(e)){return t}return t.reduce(((t,n)=>{if(!n.insert)return t;if(n.attributes&&n.attributes[e]){return t.push(n)}const i=r?{[e]:r}:{};return t.insert(n.insert,{...i,...n.attributes})}),new Cd)}function Sl(t,e){let r="";for(let n=t.ops.length-1;n>=0&&r.length<e.length;--n){const e=t.ops[n];if(typeof e.insert!=="string")break;r=e.insert+r}return r.slice(-1*e.length)===e}function Il(t,e){if(!(t instanceof Element))return false;const r=e.query(t);if(r&&r.prototype instanceof zs)return false;return["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase())}function Vl(t,e){return t.previousElementSibling&&t.nextElementSibling&&!Il(t.previousElementSibling,e)&&!Il(t.nextElementSibling,e)}const Hl=new WeakMap;function Ul(t){if(t==null)return false;if(!Hl.has(t)){if(t.tagName==="PRE"){Hl.set(t,true)}else{Hl.set(t,Ul(t.parentNode))}}return Hl.get(t)}function Pl(t,e,r,n,i){if(e.nodeType===e.TEXT_NODE){return n.reduce(((r,n)=>n(e,r,t)),new Cd)}if(e.nodeType===e.ELEMENT_NODE){return Array.from(e.childNodes||[]).reduce(((a,s)=>{let d=Pl(t,s,r,n,i);if(s.nodeType===e.ELEMENT_NODE){d=r.reduce(((e,r)=>r(s,e,t)),d);d=(i.get(s)||[]).reduce(((e,r)=>r(s,e,t)),d)}return a.concat(d)}),new Cd)}return new Cd}function Zl(t){return(e,r,n)=>_l(r,t,true,n)}function Kl(t,e,r){const n=es.keys(t);const i=ds.keys(t);const a=cs.keys(t);const s={};n.concat(i).concat(a).forEach((e=>{let n=r.query(e,ts.ATTRIBUTE);if(n!=null){s[n.attrName]=n.value(t);if(s[n.attrName])return}n=Nl[e];if(n!=null&&(n.attrName===e||n.keyName===e)){s[n.attrName]=n.value(t)||undefined}n=$l[e];if(n!=null&&(n.attrName===e||n.keyName===e)){n=$l[e];s[n.attrName]=n.value(t)||undefined}}));return Object.entries(s).reduce(((t,e)=>{let[n,i]=e;return _l(t,n,i,r)}),e)}function Wl(t,e,r){const n=r.query(t);if(n==null)return e;if(n.prototype instanceof zs){const e={};const i=n.value(t);if(i!=null){e[n.blotName]=i;return(new Cd).insert(e,n.formats(t,r))}}else{if(n.prototype instanceof Bs&&!Sl(e,"\n")){e.insert("\n")}if("blotName"in n&&"formats"in n&&typeof n.formats==="function"){return _l(e,n.blotName,n.formats(t,r),r)}}return e}function Gl(t,e){if(!Sl(e,"\n")){e.insert("\n")}return e}function Ql(t,e,r){const n=r.query("code-block");const i=n&&"formats"in n&&typeof n.formats==="function"?n.formats(t,r):true;return _l(e,"code-block",i,r)}function Yl(){return new Cd}function Xl(t,e,r){const n=r.query(t);if(n==null||n.blotName!=="list"||!Sl(e,"\n")){return e}let i=-1;let a=t.parentNode;while(a!=null){if(["OL","UL"].includes(a.tagName)){i+=1}a=a.parentNode}if(i<=0)return e;return e.reduce(((t,e)=>{if(!e.insert)return t;if(e.attributes&&typeof e.attributes.indent==="number"){return t.push(e)}return t.insert(e.insert,{indent:i,...e.attributes||{}})}),new Cd)}function Jl(t,e,r){const n=t;let i=n.tagName==="OL"?"ordered":"bullet";const a=n.getAttribute("data-checked");if(a){i=a==="true"?"checked":"unchecked"}return _l(e,"list",i,r)}function tc(t,e,r){if(!Sl(e,"\n")){if(Il(t,r)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement)){return e.insert("\n")}if(e.length()>0&&t.nextSibling){let n=t.nextSibling;while(n!=null){if(Il(n,r)){return e.insert("\n")}const t=r.query(n);if(t&&t.prototype instanceof Sd){return e.insert("\n")}n=n.firstChild}}}return e}function ec(t,e,r){const n={};const i=t.style||{};if(i.fontStyle==="italic"){n.italic=true}if(i.textDecoration==="underline"){n.underline=true}if(i.textDecoration==="line-through"){n.strike=true}if(i.fontWeight?.startsWith("bold")||parseInt(i.fontWeight,10)>=700){n.bold=true}e=Object.entries(n).reduce(((t,e)=>{let[n,i]=e;return _l(t,n,i,r)}),e);if(parseFloat(i.textIndent||0)>0){return(new Cd).insert("\t").concat(e)}return e}function rc(t,e,r){const n=t.parentElement?.tagName==="TABLE"?t.parentElement:t.parentElement?.parentElement;if(n!=null){const i=Array.from(n.querySelectorAll("tr"));const a=i.indexOf(t)+1;return _l(e,"table",a,r)}return e}function nc(t,e,r){let n=t.data;if(t.parentElement?.tagName==="O:P"){return e.insert(n.trim())}if(!Ul(t)){if(n.trim().length===0&&n.includes("\n")&&!Vl(t,r)){return e}n=n.replace(/[^\S\u00a0]/g," ");n=n.replace(/ {2,}/g," ");if(t.previousSibling==null&&t.parentElement!=null&&Il(t.parentElement,r)||t.previousSibling instanceof Element&&Il(t.previousSibling,r)){n=n.replace(/^ /,"")}if(t.nextSibling==null&&t.parentElement!=null&&Il(t.parentElement,r)||t.nextSibling instanceof Element&&Il(t.nextSibling,r)){n=n.replace(/ $/,"")}n=n.replaceAll(" "," ")}return e.insert(n)}class ic extends ho{static DEFAULTS={delay:1e3,maxStack:100,userOnly:false};lastRecorded=0;ignoreChange=false;stack={undo:[],redo:[]};currentRange=null;constructor(t,e){super(t,e);this.quill.on(Oo.events.EDITOR_CHANGE,((t,e,r,n)=>{if(t===Oo.events.SELECTION_CHANGE){if(e&&n!==Oo.sources.SILENT){this.currentRange=e}}else if(t===Oo.events.TEXT_CHANGE){if(!this.ignoreChange){if(!this.options.userOnly||n===Oo.sources.USER){this.record(e,r)}else{this.transform(e)}}this.currentRange=oc(this.currentRange,e)}}));this.quill.keyboard.addBinding({key:"z",shortKey:true},this.undo.bind(this));this.quill.keyboard.addBinding({key:["z","Z"],shortKey:true,shiftKey:true},this.redo.bind(this));if(/Win/i.test(navigator.platform)){this.quill.keyboard.addBinding({key:"y",shortKey:true},this.redo.bind(this))}this.quill.root.addEventListener("beforeinput",(t=>{if(t.inputType==="historyUndo"){this.undo();t.preventDefault()}else if(t.inputType==="historyRedo"){this.redo();t.preventDefault()}}))}change(t,e){if(this.stack[t].length===0)return;const r=this.stack[t].pop();if(!r)return;const n=this.quill.getContents();const i=r.delta.invert(n);this.stack[e].push({delta:i,range:oc(r.range,i)});this.lastRecorded=0;this.ignoreChange=true;this.quill.updateContents(r.delta,Oo.sources.USER);this.ignoreChange=false;this.restoreSelection(r)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,e){if(t.ops.length===0)return;this.stack.redo=[];let r=t.invert(e);let n=this.currentRange;const i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){const t=this.stack.undo.pop();if(t){r=r.compose(t.delta);n=t.range}}else{this.lastRecorded=i}if(r.length()===0)return;this.stack.undo.push({delta:r,range:n});if(this.stack.undo.length>this.options.maxStack){this.stack.undo.shift()}}redo(){this.change("redo","undo")}transform(t){ac(this.stack.undo,t);ac(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range){this.quill.setSelection(t.range,Oo.sources.USER)}else{const e=dc(this.quill.scroll,t.delta);this.quill.setSelection(e,Oo.sources.USER)}}}function ac(t,e){let r=e;for(let e=t.length-1;e>=0;e-=1){const n=t[e];t[e]={delta:r.transform(n.delta,true),range:n.range&&oc(n.range,r)};r=n.delta.transform(r);if(t[e].delta.length()===0){t.splice(e,1)}}}function sc(t,e){const r=e.ops[e.ops.length-1];if(r==null)return false;if(r.insert!=null){return typeof r.insert==="string"&&r.insert.endsWith("\n")}if(r.attributes!=null){return Object.keys(r.attributes).some((e=>t.query(e,ts.BLOCK)!=null))}return false}function dc(t,e){const r=e.reduce(((t,e)=>t+(e.delete||0)),0);let n=e.length()-r;if(sc(t,e)){n-=1}return n}function oc(t,e){if(!t)return t;const r=e.transformPosition(t.index);const n=e.transformPosition(t.index+t.length);return{index:r,length:n-r}}class lc extends ho{constructor(t,e){super(t,e);t.root.addEventListener("drop",(e=>{e.preventDefault();let r=null;if(document.caretRangeFromPoint){r=document.caretRangeFromPoint(e.clientX,e.clientY)}else if(document.caretPositionFromPoint){const t=document.caretPositionFromPoint(e.clientX,e.clientY);r=document.createRange();r.setStart(t.offsetNode,t.offset);r.setEnd(t.offsetNode,t.offset)}const n=r&&t.selection.normalizeNative(r);if(n){const r=t.selection.normalizedToRange(n);if(e.dataTransfer?.files){this.upload(r,e.dataTransfer.files)}}}))}upload(t,e){const r=[];Array.from(e).forEach((t=>{if(t&&this.options.mimetypes?.includes(t.type)){r.push(t)}}));if(r.length>0){this.options.handler.call(this,t,r)}}}lc.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(t,e){if(!this.quill.scroll.query("image")){return}const r=e.map((t=>new Promise((e=>{const r=new FileReader;r.onload=()=>{e(r.result)};r.readAsDataURL(t)}))));Promise.all(r).then((e=>{const r=e.reduce(((t,e)=>t.insert({image:e})),(new Cd).retain(t.index).delete(t.length));this.quill.updateContents(r,Xd.sources.USER);this.quill.setSelection(t.index+e.length,Xd.sources.SILENT)}))}};const cc=["insertText","insertReplacementText"];class uc extends ho{constructor(t,e){super(t,e);t.root.addEventListener("beforeinput",(t=>{this.handleBeforeInput(t)}));if(!/Android/i.test(navigator.userAgent)){t.on(Oo.events.COMPOSITION_BEFORE_START,(()=>{this.handleCompositionStart()}))}}deleteRange(t){bl({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";if(t.length===0)return false;if(e){const r=this.quill.getFormat(t.index,1);this.deleteRange(t);this.quill.updateContents((new Cd).retain(t.index).insert(e,r),Oo.sources.USER)}else{this.deleteRange(t)}this.quill.setSelection(t.index+e.length,0,Oo.sources.SILENT);return true}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!cc.includes(t.inputType)){return}const e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!e||e.collapsed===true){return}const r=fc(t);if(r==null){return}const n=this.quill.selection.normalizeNative(e);const i=n?this.quill.selection.normalizedToRange(n):null;if(i&&this.replaceText(i,r)){t.preventDefault()}}handleCompositionStart(){const t=this.quill.getSelection();if(t){this.replaceText(t)}}}function fc(t){if(typeof t.data==="string"){return t.data}if(t.dataTransfer?.types.includes("text/plain")){return t.dataTransfer.getData("text/plain")}return null}const hc=/Mac/i.test(navigator.platform);const pc=100;const mc=t=>{if(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"){return true}if(hc&&t.key==="a"&&t.ctrlKey===true){return true}return false};class vc extends ho{isListening=false;selectionChangeDeadline=0;constructor(t,e){super(t,e);this.handleArrowKeys();this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,e){let{line:r,event:n}=e;if(!(r instanceof ks)||!r.uiNode){return true}const i=getComputedStyle(r.domNode)["direction"]==="rtl";if(i&&n.key!=="ArrowRight"||!i&&n.key!=="ArrowLeft"){return true}this.quill.setSelection(t.index-1,t.length+(n.shiftKey?1:0),Oo.sources.USER);return false}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",(t=>{if(!t.defaultPrevented&&mc(t)){this.ensureListeningToSelectionChange()}}))}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+pc;if(this.isListening)return;this.isListening=true;const t=()=>{this.isListening=false;if(Date.now()<=this.selectionChangeDeadline){this.handleSelectionChange()}};document.addEventListener("selectionchange",t,{once:true})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const e=t.getRangeAt(0);if(e.collapsed!==true||e.startOffset!==0)return;const r=this.quill.scroll.find(e.startContainer);if(!(r instanceof ks)||!r.uiNode)return;const n=document.createRange();n.setStartAfter(r.uiNode);n.setEndAfter(r.uiNode);t.removeAllRanges();t.addRange(n)}}Oo.register({"blots/block":_d,"blots/block/embed":Sd,"blots/break":Ld,"blots/container":No,"blots/cursor":Hd,"blots/embed":mo,"blots/inline":$d,"blots/scroll":_o,"blots/text":zd,"modules/clipboard":Rl,"modules/history":ic,"modules/keyboard":ul,"modules/uploader":lc,"modules/input":uc,"modules/uiNode":vc});class gc extends ds{add(t,e){let r=0;if(e==="+1"||e==="-1"){const n=this.value(t)||0;r=e==="+1"?n+1:n-1}else if(typeof e==="number"){r=e}if(r===0){this.remove(t);return true}return super.add(t,r.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||undefined}}const bc=new gc("indent","ql-indent",{scope:ts.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class yc extends _d{static blotName="blockquote";static tagName="blockquote"}class xc extends _d{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(t){return this.tagName.indexOf(t.tagName)+1}}class wc extends No{}wc.blotName="list-container";wc.tagName="OL";class kc extends _d{static create(t){const e=super.create();e.setAttribute("data-list",t);return e}static formats(t){return t.getAttribute("data-list")||undefined}static register(){Oo.register(wc)}constructor(t,e){super(t,e);const r=e.ownerDocument.createElement("span");const n=r=>{if(!t.isEnabled())return;const n=this.statics.formats(e,t);if(n==="checked"){this.format("list","unchecked");r.preventDefault()}else if(n==="unchecked"){this.format("list","checked");r.preventDefault()}};r.addEventListener("mousedown",n);r.addEventListener("touchstart",n);this.attachUI(r)}format(t,e){if(t===this.statics.blotName&&e){this.domNode.setAttribute("data-list",e)}else{super.format(t,e)}}}kc.blotName="list";kc.tagName="LI";wc.allowedChildren=[kc];kc.requiredContainer=wc;class jc extends $d{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return true}optimize(t){super.optimize(t);if(this.domNode.tagName!==this.statics.tagName[0]){this.replaceWith(this.statics.blotName)}}}class Ac extends jc{static blotName="italic";static tagName=["EM","I"]}class Fc extends $d{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(t){const e=super.create(t);e.setAttribute("href",this.sanitize(t));e.setAttribute("rel","noopener noreferrer");e.setAttribute("target","_blank");return e}static formats(t){return t.getAttribute("href")}static sanitize(t){return qc(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){if(t!==this.statics.blotName||!e){super.format(t,e)}else{this.domNode.setAttribute("href",this.constructor.sanitize(e))}}}function qc(t,e){const r=document.createElement("a");r.href=t;const n=r.href.slice(0,r.href.indexOf(":"));return e.indexOf(n)>-1}class Ec extends $d{static blotName="script";static tagName=["SUB","SUP"];static create(t){if(t==="super"){return document.createElement("sup")}if(t==="sub"){return document.createElement("sub")}return super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super";return undefined}}class Oc extends jc{static blotName="strike";static tagName=["S","STRIKE"]}class Bc extends $d{static blotName="underline";static tagName="U"}class Mc extends mo{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(t){if(window.katex==null){throw new Error("Formula module requires KaTeX.")}const e=super.create(t);if(typeof t==="string"){window.katex.render(t,e,{throwOnError:false,errorColor:"#f00"});e.setAttribute("data-value",t)}return e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}}const Dc=["alt","height","width"];class Cc extends zs{static blotName="image";static tagName="IMG";static create(t){const e=super.create(t);if(typeof t==="string"){e.setAttribute("src",this.sanitize(t))}return e}static formats(t){return Dc.reduce(((e,r)=>{if(t.hasAttribute(r)){e[r]=t.getAttribute(r)}return e}),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return qc(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){if(Dc.indexOf(t)>-1){if(e){this.domNode.setAttribute(t,e)}else{this.domNode.removeAttribute(t)}}else{super.format(t,e)}}}const Lc=["height","width"];class zc extends Sd{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(t){const e=super.create(t);e.setAttribute("frameborder","0");e.setAttribute("allowfullscreen","true");e.setAttribute("src",this.sanitize(t));return e}static formats(t){return Lc.reduce(((e,r)=>{if(t.hasAttribute(r)){e[r]=t.getAttribute(r)}return e}),{})}static sanitize(t){return Fc.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,e){if(Lc.indexOf(t)>-1){if(e){this.domNode.setAttribute(t,e)}else{this.domNode.removeAttribute(t)}}else{super.format(t,e)}}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}}const Tc=new ds("code-token","hljs",{scope:ts.INLINE});class Nc extends $d{static formats(t,e){while(t!=null&&t!==e.domNode){if(t.classList&&t.classList.contains(Yo.className)){return super.formats(t,e)}t=t.parentNode}return undefined}constructor(t,e,r){super(t,e,r);Tc.add(this.domNode,r)}format(t,e){if(t!==Nc.blotName){super.format(t,e)}else if(e){Tc.add(this.domNode,e)}else{Tc.remove(this.domNode);this.domNode.classList.remove(this.statics.className)}}optimize(){super.optimize(...arguments);if(!Tc.value(this.domNode)){this.unwrap()}}}Nc.blotName="code-token";Nc.className="ql-token";class $c extends Yo{static create(t){const e=super.create(t);if(typeof t==="string"){e.setAttribute("data-language",t)}return e}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){if(t===this.statics.blotName&&e){this.domNode.setAttribute("data-language",e)}else{super.format(t,e)}}replaceWith(t,e){this.formatAt(0,this.length(),Nc.blotName,false);return super.replaceWith(t,e)}}class Rc extends Qo{attach(){super.attach();this.forceNext=false;this.scroll.emitMount(this)}format(t,e){if(t===$c.blotName){this.forceNext=true;this.children.forEach((r=>{r.format(t,e)}))}}formatAt(t,e,r,n){if(r===$c.blotName){this.forceNext=true}super.formatAt(t,e,r,n)}highlight(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(this.children.head==null)return;const r=Array.from(this.domNode.childNodes).filter((t=>t!==this.uiNode));const n=`${r.map((t=>t.textContent)).join("\n")}\n`;const i=$c.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==n){if(n.trim().length>0||this.cachedText==null){const e=this.children.reduce(((t,e)=>t.concat(Id(e,false))),new Cd);const r=t(n,i);e.diff(r).reduce(((t,e)=>{let{retain:r,attributes:n}=e;if(!r)return t;if(n){Object.keys(n).forEach((e=>{if([$c.blotName,Nc.blotName].includes(e)){this.formatAt(t,r,e,n[e])}}))}return t+r}),0)}this.cachedText=n;this.forceNext=false}}html(t,e){const[r]=this.children.find(t);const n=r?$c.formats(r.domNode):"plain";return`<pre data-language="${n}">\n${Nd(this.code(t,e))}\n</pre>`}optimize(t){super.optimize(t);if(this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=$c.formats(this.children.head.domNode);if(t!==this.uiNode.value){this.uiNode.value=t}}}}Rc.allowedChildren=[$c];$c.requiredContainer=Rc;$c.allowedChildren=[Nc,Hd,zd,Ld];const _c=(t,e,r)=>{if(typeof t.versionString==="string"){const n=t.versionString.split(".")[0];if(parseInt(n,10)>=11){return t.highlight(r,{language:e}).value}}return t.highlight(e,r).value};class Sc extends ho{static register(){Oo.register(Nc,true);Oo.register($c,true);Oo.register(Rc,true)}constructor(t,e){super(t,e);if(this.options.hljs==null){throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.")}this.languages=this.options.languages.reduce(((t,e)=>{let{key:r}=e;t[r]=true;return t}),{});this.highlightBlot=this.highlightBlot.bind(this);this.initListener();this.initTimer()}initListener(){this.quill.on(Oo.events.SCROLL_BLOT_MOUNT,(t=>{if(!(t instanceof Rc))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach((t=>{let{key:r,label:n}=t;const i=e.ownerDocument.createElement("option");i.textContent=n;i.setAttribute("value",r);e.appendChild(i)}));e.addEventListener("change",(()=>{t.format($c.blotName,e.value);this.quill.root.focus();this.highlight(t,true)}));if(t.uiNode==null){t.attachUI(e);if(t.children.head){e.value=$c.formats(t.children.head.domNode)}}}))}initTimer(){let t=null;this.quill.on(Oo.events.SCROLL_OPTIMIZE,(()=>{if(t){clearTimeout(t)}t=setTimeout((()=>{this.highlight();t=null}),this.options.interval)}))}highlight(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(this.quill.selection.composing)return;this.quill.update(Oo.sources.USER);const r=this.quill.getSelection();const n=t==null?this.quill.scroll.descendants(Rc):[t];n.forEach((t=>{t.highlight(this.highlightBlot,e)}));this.quill.update(Oo.sources.SILENT);if(r!=null){this.quill.setSelection(r,Oo.sources.SILENT)}}highlightBlot(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"plain";e=this.languages[e]?e:"plain";if(e==="plain"){return Nd(t).split("\n").reduce(((t,r,n)=>{if(n!==0){t.insert("\n",{[Yo.blotName]:e})}return t.insert(r)}),new Cd)}const r=this.quill.root.ownerDocument.createElement("div");r.classList.add(Yo.className);r.innerHTML=_c(this.options.hljs,e,t);return Pl(this.quill.scroll,r,[(t,e)=>{const r=Tc.value(t);if(r){return e.compose((new Cd).retain(e.length(),{[Nc.blotName]:r}))}return e}],[(t,r)=>t.data.split("\n").reduce(((t,r,n)=>{if(n!==0)t.insert("\n",{[Yo.blotName]:e});return t.insert(r)}),r)],new WeakMap)}}Sc.DEFAULTS={hljs:(()=>window.hljs)(),interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class Ic extends _d{static blotName="table";static tagName="TD";static create(t){const e=super.create();if(t){e.setAttribute("data-row",t)}else{e.setAttribute("data-row",Pc())}return e}static formats(t){if(t.hasAttribute("data-row")){return t.getAttribute("data-row")}return undefined}cellOffset(){if(this.parent){return this.parent.children.indexOf(this)}return-1}format(t,e){if(t===Ic.blotName&&e){this.domNode.setAttribute("data-row",e)}else{super.format(t,e)}}row(){return this.parent}rowOffset(){if(this.row()){return this.row().rowOffset()}return-1}table(){return this.row()&&this.row().table()}}class Vc extends No{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats();const e=this.children.tail.formats();const r=this.next.children.head.formats();const n=this.next.children.tail.formats();return t.table===e.table&&t.table===r.table&&t.table===n.table}return false}optimize(t){super.optimize(t);this.children.forEach((t=>{if(t.next==null)return;const e=t.formats();const r=t.next.formats();if(e.table!==r.table){const e=this.splitAfter(t);if(e){e.optimize()}if(this.prev){this.prev.optimize()}}}))}rowOffset(){if(this.parent){return this.parent.children.indexOf(this)}return-1}table(){return this.parent&&this.parent.parent}}class Hc extends No{static blotName="table-body";static tagName="TBODY"}class Uc extends No{static blotName="table-container";static tagName="TABLE";balanceCells(){const t=this.descendants(Vc);const e=t.reduce(((t,e)=>Math.max(e.children.length,t)),0);t.forEach((t=>{new Array(e-t.children.length).fill(0).forEach((()=>{let e;if(t.children.head!=null){e=Ic.formats(t.children.head.domNode)}const r=this.scroll.create(Ic.blotName,e);t.appendChild(r);r.optimize()}))}))}cells(t){return this.rows().map((e=>e.children.at(t)))}deleteColumn(t){const[e]=this.descendant(Hc);if(e==null||e.children.head==null)return;e.children.forEach((e=>{const r=e.children.at(t);if(r!=null){r.remove()}}))}insertColumn(t){const[e]=this.descendant(Hc);if(e==null||e.children.head==null)return;e.children.forEach((e=>{const r=e.children.at(t);const n=Ic.formats(e.children.head.domNode);const i=this.scroll.create(Ic.blotName,n);e.insertBefore(i,r)}))}insertRow(t){const[e]=this.descendant(Hc);if(e==null||e.children.head==null)return;const r=Pc();const n=this.scroll.create(Vc.blotName);e.children.head.children.forEach((()=>{const t=this.scroll.create(Ic.blotName,r);n.appendChild(t)}));const i=e.children.at(t);e.insertBefore(n,i)}rows(){const t=this.children.head;if(t==null)return[];return t.children.map((t=>t))}}Uc.allowedChildren=[Hc];Hc.requiredContainer=Uc;Hc.allowedChildren=[Vc];Vc.requiredContainer=Hc;Vc.allowedChildren=[Ic];Ic.requiredContainer=Vc;function Pc(){const t=Math.random().toString(36).slice(2,6);return`row-${t}`}class Zc extends ho{static register(){Oo.register(Ic);Oo.register(Vc);Oo.register(Hc);Oo.register(Uc)}constructor(){super(...arguments);this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Uc).forEach((t=>{t.balanceCells()}))}deleteColumn(){const[t,,e]=this.getTable();if(e==null)return;t.deleteColumn(e.cellOffset());this.quill.update(Oo.sources.USER)}deleteRow(){const[,t]=this.getTable();if(t==null)return;t.remove();this.quill.update(Oo.sources.USER)}deleteTable(){const[t]=this.getTable();if(t==null)return;const e=t.offset();t.remove();this.quill.update(Oo.sources.USER);this.quill.setSelection(e,Oo.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[e,r]=this.quill.getLine(t.index);if(e==null||e.statics.blotName!==Ic.blotName){return[null,null,null,-1]}const n=e.parent;const i=n.parent.parent;return[i,n,e,r]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[r,n,i]=this.getTable(e);if(i==null)return;const a=i.cellOffset();r.insertColumn(a+t);this.quill.update(Oo.sources.USER);let s=n.rowOffset();if(t===0){s+=1}this.quill.setSelection(e.index+s,e.length,Oo.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[r,n,i]=this.getTable(e);if(i==null)return;const a=n.rowOffset();r.insertRow(a+t);this.quill.update(Oo.sources.USER);if(t>0){this.quill.setSelection(e,Oo.sources.SILENT)}else{this.quill.setSelection(e.index+n.children.length,e.length,Oo.sources.SILENT)}}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const r=this.quill.getSelection();if(r==null)return;const n=new Array(t).fill(0).reduce((t=>{const r=new Array(e).fill("\n").join("");return t.insert(r,{table:Pc()})}),(new Cd).retain(r.index));this.quill.updateContents(n,Oo.sources.USER);this.quill.setSelection(r.index,Oo.sources.SILENT);this.balanceTables()}listenBalanceCells(){this.quill.on(Oo.events.SCROLL_OPTIMIZE,(t=>{t.some((t=>{if(["TD","TR","TBODY","TABLE"].includes(t.target.tagName)){this.quill.once(Oo.events.TEXT_CHANGE,((t,e,r)=>{if(r!==Oo.sources.USER)return;this.balanceTables()}));return true}return false}))}))}}const Kc=Gd("quill:toolbar");class Wc extends ho{constructor(t,e){super(t,e);if(Array.isArray(this.options.container)){const e=document.createElement("div");e.setAttribute("role","toolbar");Qc(e,this.options.container);t.container?.parentNode?.insertBefore(e,t.container);this.container=e}else if(typeof this.options.container==="string"){this.container=document.querySelector(this.options.container)}else{this.container=this.options.container}if(!(this.container instanceof HTMLElement)){Kc.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar");this.controls=[];this.handlers={};if(this.options.handlers){Object.keys(this.options.handlers).forEach((t=>{const e=this.options.handlers?.[t];if(e){this.addHandler(t,e)}}))}Array.from(this.container.querySelectorAll("button, select")).forEach((t=>{this.attach(t)}));this.quill.on(Oo.events.EDITOR_CHANGE,(()=>{const[t]=this.quill.selection.getRange();this.update(t)}))}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find((t=>t.indexOf("ql-")===0));if(!e)return;e=e.slice("ql-".length);if(t.tagName==="BUTTON"){t.setAttribute("type","button")}if(this.handlers[e]==null&&this.quill.scroll.query(e)==null){Kc.warn("ignoring attaching to nonexistent format",e,t);return}const r=t.tagName==="SELECT"?"change":"click";t.addEventListener(r,(r=>{let n;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const e=t.options[t.selectedIndex];if(e.hasAttribute("selected")){n=false}else{n=e.value||false}}else{if(t.classList.contains("ql-active")){n=false}else{n=t.value||!t.hasAttribute("value")}r.preventDefault()}this.quill.focus();const[i]=this.quill.selection.getRange();if(this.handlers[e]!=null){this.handlers[e].call(this,n)}else if(this.quill.scroll.query(e).prototype instanceof zs){n=prompt(`Enter ${e}`);if(!n)return;this.quill.updateContents((new Cd).retain(i.index).delete(i.length).insert({[e]:n}),Oo.sources.USER)}else{this.quill.format(e,n,Oo.sources.USER)}this.update(i)}));this.controls.push([e,t])}update(t){const e=t==null?{}:this.quill.getFormat(t);this.controls.forEach((r=>{const[n,i]=r;if(i.tagName==="SELECT"){let r=null;if(t==null){r=null}else if(e[n]==null){r=i.querySelector("option[selected]")}else if(!Array.isArray(e[n])){let t=e[n];if(typeof t==="string"){t=t.replace(/"/g,'\\"')}r=i.querySelector(`option[value="${t}"]`)}if(r==null){i.value="";i.selectedIndex=-1}else{r.selected=true}}else if(t==null){i.classList.remove("ql-active");i.setAttribute("aria-pressed","false")}else if(i.hasAttribute("value")){const t=e[n];const r=t===i.getAttribute("value")||t!=null&&t.toString()===i.getAttribute("value")||t==null&&!i.getAttribute("value");i.classList.toggle("ql-active",r);i.setAttribute("aria-pressed",r.toString())}else{const t=e[n]!=null;i.classList.toggle("ql-active",t);i.setAttribute("aria-pressed",t.toString())}}))}}Wc.DEFAULTS={};function Gc(t,e,r){const n=document.createElement("button");n.setAttribute("type","button");n.classList.add(`ql-${e}`);n.setAttribute("aria-pressed","false");if(r!=null){n.value=r;n.setAttribute("aria-label",`${e}: ${r}`)}else{n.setAttribute("aria-label",e)}t.appendChild(n)}function Qc(t,e){if(!Array.isArray(e[0])){e=[e]}e.forEach((e=>{const r=document.createElement("span");r.classList.add("ql-formats");e.forEach((t=>{if(typeof t==="string"){Gc(r,t)}else{const e=Object.keys(t)[0];const n=t[e];if(Array.isArray(n)){Yc(r,e,n)}else{Gc(r,e,n)}}}));t.appendChild(r)}))}function Yc(t,e,r){const n=document.createElement("select");n.classList.add(`ql-${e}`);r.forEach((t=>{const e=document.createElement("option");if(t!==false){e.setAttribute("value",String(t))}else{e.setAttribute("selected","selected")}n.appendChild(e)}));t.appendChild(n)}Wc.DEFAULTS={container:null,handlers:{clean(){const t=this.quill.getSelection();if(t==null)return;if(t.length===0){const t=this.quill.getFormat();Object.keys(t).forEach((t=>{if(this.quill.scroll.query(t,ts.INLINE)!=null){this.quill.format(t,false,Oo.sources.USER)}}))}else{this.quill.removeFormat(t.index,t.length,Oo.sources.USER)}},direction(t){const{align:e}=this.quill.getFormat();if(t==="rtl"&&e==null){this.quill.format("align","right",Oo.sources.USER)}else if(!t&&e==="right"){this.quill.format("align",false,Oo.sources.USER)}this.quill.format("direction",t,Oo.sources.USER)},indent(t){const e=this.quill.getSelection();const r=this.quill.getFormat(e);const n=parseInt(r.indent||0,10);if(t==="+1"||t==="-1"){let e=t==="+1"?1:-1;if(r.direction==="rtl")e*=-1;this.quill.format("indent",n+e,Oo.sources.USER)}},link(t){if(t===true){t=prompt("Enter link URL:")}this.quill.format("link",t,Oo.sources.USER)},list(t){const e=this.quill.getSelection();const r=this.quill.getFormat(e);if(t==="check"){if(r.list==="checked"||r.list==="unchecked"){this.quill.format("list",false,Oo.sources.USER)}else{this.quill.format("list","unchecked",Oo.sources.USER)}}else{this.quill.format("list",t,Oo.sources.USER)}}}};const Xc='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>';const Jc='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>';const tu='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>';const eu='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>';const ru='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>';const nu='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>';const iu='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>';const au='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>';const su='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>';const du='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>';const ou='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>';const lu='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>';const cu='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>';const uu='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>';const fu='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>';const hu='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>';const pu='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>';const mu='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>';const vu='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>';const gu='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>';const bu='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>';const yu='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>';const xu='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>';const wu='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>';const ku='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>';const ju='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>';const Au='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>';const Fu='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>';const qu='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>';const Eu='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>';const Ou='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>';const Bu='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>';const Mu='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>';const Du={align:{"":Xc,center:Jc,right:tu,justify:eu},background:ru,blockquote:nu,bold:iu,clean:au,code:su,"code-block":su,color:du,direction:{"":ou,rtl:lu},formula:cu,header:{1:uu,2:fu,3:hu,4:pu,5:mu,6:vu},italic:gu,image:bu,indent:{"+1":yu,"-1":xu},link:wu,list:{bullet:ku,check:ju,ordered:Au},script:{sub:Fu,super:qu},strike:Eu,table:Ou,underline:Bu,video:Mu};const Cu='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let Lu=0;function zu(t,e){t.setAttribute(e,`${!(t.getAttribute(e)==="true")}`)}class Tu{constructor(t){this.select=t;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,this.select);this.label.addEventListener("mousedown",(()=>{this.togglePicker()}));this.label.addEventListener("keydown",(t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape();t.preventDefault();break}}));this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded");zu(this.label,"aria-expanded");zu(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");e.tabIndex="0";e.setAttribute("role","button");e.classList.add("ql-picker-item");const r=t.getAttribute("value");if(r){e.setAttribute("data-value",r)}if(t.textContent){e.setAttribute("data-label",t.textContent)}e.addEventListener("click",(()=>{this.selectItem(e,true)}));e.addEventListener("keydown",(t=>{switch(t.key){case"Enter":this.selectItem(e,true);t.preventDefault();break;case"Escape":this.escape();t.preventDefault();break}}));return e}buildLabel(){const t=document.createElement("span");t.classList.add("ql-picker-label");t.innerHTML=Cu;t.tabIndex="0";t.setAttribute("role","button");t.setAttribute("aria-expanded","false");this.container.appendChild(t);return t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options");t.setAttribute("aria-hidden","true");t.tabIndex="-1";t.id=`ql-picker-options-${Lu}`;Lu+=1;this.label.setAttribute("aria-controls",t.id);this.options=t;Array.from(this.select.options).forEach((e=>{const r=this.buildItem(e);t.appendChild(r);if(e.selected===true){this.selectItem(r)}}));this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach((t=>{this.container.setAttribute(t.name,t.value)}));this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}escape(){this.close();setTimeout((()=>this.label.focus()),1)}close(){this.container.classList.remove("ql-expanded");this.label.setAttribute("aria-expanded","false");this.options.setAttribute("aria-hidden","true")}selectItem(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;const r=this.container.querySelector(".ql-selected");if(t===r)return;if(r!=null){r.classList.remove("ql-selected")}if(t==null)return;t.classList.add("ql-selected");this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t);if(t.hasAttribute("data-value")){this.label.setAttribute("data-value",t.getAttribute("data-value"))}else{this.label.removeAttribute("data-value")}if(t.hasAttribute("data-label")){this.label.setAttribute("data-label",t.getAttribute("data-label"))}else{this.label.removeAttribute("data-label")}if(e){this.select.dispatchEvent(new Event("change"));this.close()}}update(){let t;if(this.select.selectedIndex>-1){const e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex];this.selectItem(e)}else{this.selectItem(null)}const e=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}class Nu extends Tu{constructor(t,e){super(t);this.label.innerHTML=e;this.container.classList.add("ql-color-picker");Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach((t=>{t.classList.add("ql-primary")}))}buildItem(t){const e=super.buildItem(t);e.style.backgroundColor=t.getAttribute("value")||"";return e}selectItem(t,e){super.selectItem(t,e);const r=this.label.querySelector(".ql-color-label");const n=t?t.getAttribute("data-value")||"":"";if(r){if(r.tagName==="line"){r.style.stroke=n}else{r.style.fill=n}}}}class $u extends Tu{constructor(t,e){super(t);this.container.classList.add("ql-icon-picker");Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach((t=>{t.innerHTML=e[t.getAttribute("data-value")||""]}));this.defaultItem=this.container.querySelector(".ql-selected");this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const r=t||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const Ru=t=>{const{overflowY:e}=getComputedStyle(t,null);return e!=="visible"&&e!=="clip"};class _u{constructor(t,e){this.quill=t;this.boundsContainer=e||document.body;this.root=t.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;if(Ru(this.quill.root)){this.quill.root.addEventListener("scroll",(()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}))}this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const e=t.left+t.width/2-this.root.offsetWidth/2;const r=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`;this.root.style.top=`${r}px`;this.root.classList.remove("ql-flip");const n=this.boundsContainer.getBoundingClientRect();const i=this.root.getBoundingClientRect();let a=0;if(i.right>n.right){a=n.right-i.right;this.root.style.left=`${e+a}px`}if(i.left<n.left){a=n.left-i.left;this.root.style.left=`${e+a}px`}if(i.bottom>n.bottom){const e=i.bottom-i.top;const n=t.bottom-t.top+e;this.root.style.top=`${r-n}px`;this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}const Su=[false,"center","right","justify"];const Iu=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"];const Vu=[false,"serif","monospace"];const Hu=["1","2","3",false];const Uu=["small",false,"large","huge"];class Pu extends go{constructor(t,e){super(t,e);const r=e=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",r);return}if(this.tooltip!=null&&!this.tooltip.root.contains(e.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()){this.tooltip.hide()}if(this.pickers!=null){this.pickers.forEach((t=>{if(!t.container.contains(e.target)){t.close()}}))}};t.emitter.listenDOM("click",document.body,r)}addModule(t){const e=super.addModule(t);if(t==="toolbar"){this.extendToolbar(e)}return e}buildButtons(t,e){Array.from(t).forEach((t=>{const r=t.getAttribute("class")||"";r.split(/\s+/).forEach((r=>{if(!r.startsWith("ql-"))return;r=r.slice("ql-".length);if(e[r]==null)return;if(r==="direction"){t.innerHTML=e[r][""]+e[r].rtl}else if(typeof e[r]==="string"){t.innerHTML=e[r]}else{const n=t.value||"";if(n!=null&&e[r][n]){t.innerHTML=e[r][n]}}}))}))}buildPickers(t,e){this.pickers=Array.from(t).map((t=>{if(t.classList.contains("ql-align")){if(t.querySelector("option")==null){Wu(t,Su)}if(typeof e.align==="object"){return new $u(t,e.align)}}if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){const r=t.classList.contains("ql-background")?"background":"color";if(t.querySelector("option")==null){Wu(t,Iu,r==="background"?"#ffffff":"#000000")}return new Nu(t,e[r])}if(t.querySelector("option")==null){if(t.classList.contains("ql-font")){Wu(t,Vu)}else if(t.classList.contains("ql-header")){Wu(t,Hu)}else if(t.classList.contains("ql-size")){Wu(t,Uu)}}return new Tu(t)}));const r=()=>{this.pickers.forEach((t=>{t.update()}))};this.quill.on(Xd.events.EDITOR_CHANGE,r)}}Pu.DEFAULTS=Ja({},go.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let t=this.container.querySelector("input.ql-image[type=file]");if(t==null){t=document.createElement("input");t.setAttribute("type","file");t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", "));t.classList.add("ql-image");t.addEventListener("change",(()=>{const e=this.quill.getSelection(true);this.quill.uploader.upload(e,t.files);t.value=""}));this.container.appendChild(t)}t.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Zu extends _u{constructor(t,e){super(t,e);this.textbox=this.root.querySelector('input[type="text"]');this.listen()}listen(){this.textbox.addEventListener("keydown",(t=>{if(t.key==="Enter"){this.save();t.preventDefault()}else if(t.key==="Escape"){this.cancel();t.preventDefault()}}))}cancel(){this.hide();this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"link";let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");if(this.textbox==null)return;if(e!=null){this.textbox.value=e}else if(t!==this.root.getAttribute("data-mode")){this.textbox.value=""}const r=this.quill.getBounds(this.quill.selection.savedRange);if(r!=null){this.position(r)}this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||"");this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:true})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;if(this.linkRange){this.quill.formatText(this.linkRange,"link",t,Xd.sources.USER);delete this.linkRange}else{this.restoreFocus();this.quill.format("link",t,Xd.sources.USER)}this.quill.root.scrollTop=e;break}case"video":{t=Ku(t)}case"formula":{if(!t)break;const e=this.quill.getSelection(true);if(e!=null){const r=e.index+e.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,Xd.sources.USER);if(this.root.getAttribute("data-mode")==="formula"){this.quill.insertText(r+1," ",Xd.sources.USER)}this.quill.setSelection(r+2,Xd.sources.USER)}break}}this.textbox.value="";this.hide()}}function Ku(t){let e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(e){return`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`}if(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)){return`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`}return t}function Wu(t,e){let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;e.forEach((e=>{const n=document.createElement("option");if(e===r){n.setAttribute("selected","selected")}else{n.setAttribute("value",String(e))}t.appendChild(n)}))}const Gu=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Qu extends Zu{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(t,e){super(t,e);this.quill.on(Xd.events.EDITOR_CHANGE,((t,e,r,n)=>{if(t!==Xd.events.SELECTION_CHANGE)return;if(e!=null&&e.length>0&&n===Xd.sources.USER){this.show();this.root.style.left="0px";this.root.style.width="";this.root.style.width=`${this.root.offsetWidth}px`;const t=this.quill.getLines(e.index,e.length);if(t.length===1){const t=this.quill.getBounds(e);if(t!=null){this.position(t)}}else{const r=t[t.length-1];const n=this.quill.getIndex(r);const i=Math.min(r.length()-1,e.index+e.length-n);const a=this.quill.getBounds(new to(n,i));if(a!=null){this.position(a)}}}else if(document.activeElement!==this.textbox&&this.quill.hasFocus()){this.hide()}}))}listen(){super.listen();this.root.querySelector(".ql-close").addEventListener("click",(()=>{this.root.classList.remove("ql-editing")}));this.quill.on(Xd.events.SCROLL_OPTIMIZE,(()=>{setTimeout((()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const e=this.quill.getBounds(t);if(e!=null){this.position(e)}}}),1)}))}cancel(){this.show()}position(t){const e=super.position(t);const r=this.root.querySelector(".ql-tooltip-arrow");r.style.marginLeft="";if(e!==0){r.style.marginLeft=`${-1*e-r.offsetWidth/2}px`}return e}}class Yu extends Pu{constructor(t,e){if(e.modules.toolbar!=null&&e.modules.toolbar.container==null){e.modules.toolbar.container=Gu}super(t,e);this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Qu(this.quill,this.options.bounds);if(t.container!=null){this.tooltip.root.appendChild(t.container);this.buildButtons(t.container.querySelectorAll("button"),Du);this.buildPickers(t.container.querySelectorAll("select"),Du)}}}Yu.DEFAULTS=Ja({},Pu.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(!t){this.quill.format("link",false,Oo.sources.USER)}else{this.quill.theme.tooltip.edit()}}}}}});const Xu=[[{header:["1","2","3",false]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Ju extends Zu{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen();this.root.querySelector("a.ql-action").addEventListener("click",(t=>{if(this.root.classList.contains("ql-editing")){this.save()}else{this.edit("link",this.preview.textContent)}t.preventDefault()}));this.root.querySelector("a.ql-remove").addEventListener("click",(t=>{if(this.linkRange!=null){const t=this.linkRange;this.restoreFocus();this.quill.formatText(t,"link",false,Xd.sources.USER);delete this.linkRange}t.preventDefault();this.hide()}));this.quill.on(Xd.events.SELECTION_CHANGE,((t,e,r)=>{if(t==null)return;if(t.length===0&&r===Xd.sources.USER){const[e,r]=this.quill.scroll.descendant(Fc,t.index);if(e!=null){this.linkRange=new to(t.index-r,e.length());const n=Fc.formats(e.domNode);this.preview.textContent=n;this.preview.setAttribute("href",n);this.show();const i=this.quill.getBounds(this.linkRange);if(i!=null){this.position(i)}return}}else{delete this.linkRange}this.hide()}))}show(){super.show();this.root.removeAttribute("data-mode")}}class tf extends Pu{constructor(t,e){if(e.modules.toolbar!=null&&e.modules.toolbar.container==null){e.modules.toolbar.container=Xu}super(t,e);this.quill.container.classList.add("ql-snow")}extendToolbar(t){if(t.container!=null){t.container.classList.add("ql-snow");this.buildButtons(t.container.querySelectorAll("button"),Du);this.buildPickers(t.container.querySelectorAll("select"),Du);this.tooltip=new Ju(this.quill,this.options.bounds);if(t.container.querySelector(".ql-link")){this.quill.keyboard.addBinding({key:"k",shortKey:true},((e,r)=>{t.handlers.link.call(t,!r.format.link)}))}}}}tf.DEFAULTS=Ja({},Pu.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const t=this.quill.getSelection();if(t==null||t.length===0)return;let e=this.quill.getText(t);if(/^\S+@\S+\.\S+$/.test(e)&&e.indexOf("mailto:")!==0){e=`mailto:${e}`}const{tooltip:r}=this.quill.theme;r.edit("link",e)}else{this.quill.format("link",false,Oo.sources.USER)}}}}}});Oo.register({"attributors/attribute/direction":tl,"attributors/class/align":Ho,"attributors/class/background":Wo,"attributors/class/color":Zo,"attributors/class/direction":el,"attributors/class/font":il,"attributors/class/size":dl,"attributors/style/align":Uo,"attributors/style/background":Go,"attributors/style/color":Ko,"attributors/style/direction":rl,"attributors/style/font":sl,"attributors/style/size":ol},true);Oo.register({"formats/align":Ho,"formats/direction":el,"formats/indent":bc,"formats/background":Go,"formats/color":Ko,"formats/font":il,"formats/size":dl,"formats/blockquote":yc,"formats/code-block":Yo,"formats/header":xc,"formats/list":kc,"formats/bold":jc,"formats/code":Xo,"formats/italic":Ac,"formats/link":Fc,"formats/script":Ec,"formats/strike":Oc,"formats/underline":Bc,"formats/formula":Mc,"formats/image":Cc,"formats/video":zc,"modules/syntax":Sc,"modules/table":Zc,"modules/toolbar":Wc,"themes/bubble":Yu,"themes/snow":tf,"ui/icons":Du,"ui/picker":Tu,"ui/icon-picker":$u,"ui/color-picker":Nu,"ui/tooltip":_u},true);const ef=':root{--dda-primary-0:#000000;--dda-primary-4:#020D14;--dda-primary-5:#04131E;--dda-primary-6:#081C2B;--dda-primary-10:#081D2D;--dda-primary-12:#0B273D;--dda-primary-17:#0D283B;--dda-primary-20:#12334B;--dda-primary-22:#153D59;--dda-primary-24:#1A4361;--dda-primary-25:#183F5B;--dda-primary-30:#1E4B6A;--dda-primary-35:#23567B;--dda-primary-40:#2A638B;--dda-primary-50:#3D7DAB;--dda-primary-60:#5997C7;--dda-primary-70:#75B2E3;--dda-primary-80:#97CCFB;--dda-primary-87:#B0D6F7;--dda-primary-90:#CDE5FD;--dda-primary-92:#D5E9FD;--dda-primary-94:#E0EEFE;--dda-primary-95:#E7F2FE;--dda-primary-96:#E7F2FE;--dda-primary-98:#EFF6FE;--dda-primary-99:#FBFCFF;--dda-primary-100:#FFFFFF;--dda-color-primary-40:var(--dda-primary-40);--dda-color-primary-30:var(--dda-primary-30);--dda-color-primary-20:var(--dda-primary-20);--dda-color-primary-10:var(--dda-primary-10);--dda-on-primary-100:var(--dda-primary-100);--dda-on-primary-98:var(--dda-primary-98);--dda-on-primary-96:var(--dda-primary-96);--dda-on-primary-94:var(--dda-primary-94);--dda-primary-variant-96:var(--dda-primary-96);--dda-primary-variant-95:var(--dda-primary-95);--dda-primary-variant-94:var(--dda-primary-94);--dda-primary-variant-92:var(--dda-primary-92);--dda-primary-variant-87:var(--dda-primary-87);--dda-on-primary-variant-40:var(--dda-primary-40);--dda-on-primary-variant-30:var(--dda-primary-30);--dda-on-primary-variant-25:var(--dda-primary-25);--dda-on-primary-variant-20:var(--dda-primary-20);--dda-on-primary-variant-12:var(--dda-primary-12)}:root[data-theme=\'dark\']{--dda-color-primary-40:var(--dda-primary-70);--dda-color-primary-30:var(--dda-primary-80);--dda-color-primary-20:var(--dda-primary-90);--dda-color-primary-10:var(--dda-primary-95);--dda-on-primary-100:var(--dda-primary-10);--dda-on-primary-98:var(--dda-primary-12);--dda-on-primary-96:var(--dda-primary-17);--dda-on-primary-94:var(--dda-primary-20);--dda-primary-variant-96:var(--dda-primary-30);--dda-primary-variant-95:var(--dda-primary-30);--dda-primary-variant-94:var(--dda-primary-25);--dda-primary-variant-92:var(--dda-primary-20);--dda-primary-variant-87:var(--dda-primary-12);--dda-on-primary-variant-40:var(--dda-primary-90);--dda-on-primary-variant-30:var(--dda-primary-90);--dda-on-primary-variant-25:var(--dda-primary-94);--dda-on-primary-variant-20:var(--dda-primary-96);--dda-on-primary-variant-12:var(--dda-primary-98)}:root{--dda-secondary-0:#000000;--dda-secondary-4:#000836;--dda-secondary-5:#000A3D;--dda-secondary-6:#000C43;--dda-secondary-10:#001257;--dda-secondary-12:#001561;--dda-secondary-17:#092072;--dda-secondary-20:#132778;--dda-secondary-22:#192C7D;--dda-secondary-24:#1E3181;--dda-secondary-25:#213484;--dda-secondary-30:#2E4090;--dda-secondary-35:#3B4C9C;--dda-secondary-40:#4758A9;--dda-secondary-50:#6071C4;--dda-secondary-60:#7A8BE0;--dda-secondary-70:#95A6FD;--dda-secondary-80:#B9C3FF;--dda-secondary-87:#D2D8FF;--dda-secondary-90:#DDE1FF;--dda-secondary-92:#E5E6FF;--dda-secondary-94:#ECECFF;--dda-secondary-95:#F0EFFF;--dda-secondary-96:#F3F2FF;--dda-secondary-98:#FBF8FF;--dda-secondary-99:#FEFBFF;--dda-secondary-100:#FFFFFF;--dda-color-secondary-40:var(--dda-secondary-40);--dda-color-secondary-30:var(--dda-secondary-30);--dda-color-secondary-20:var(--dda-secondary-20);--dda-color-secondary-10:var(--dda-secondary-10);--dda-on-secondary-100:var(--dda-secondary-100);--dda-on-secondary-98:var(--dda-secondary-98);--dda-on-secondary-96:var(--dda-secondary-96);--dda-on-secondary-94:var(--dda-secondary-94);--dda-secondary-variant-96:var(--dda-secondary-96);--dda-secondary-variant-95:var(--dda-secondary-95);--dda-secondary-variant-94:var(--dda-secondary-94);--dda-secondary-variant-92:var(--dda-secondary-92);--dda-secondary-variant-87:var(--dda-secondary-87);--dda-on-secondary-variant-30:var(--dda-secondary-30);--dda-on-secondary-variant-25:var(--dda-secondary-25);--dda-on-secondary-variant-20:var(--dda-secondary-20);--dda-on-secondary-variant-12:var(--dda-secondary-12)}:root[data-theme=\'dark\']{--dda-color-secondary-40:var(--dda-secondary-70);--dda-color-secondary-30:var(--dda-secondary-80);--dda-color-secondary-20:var(--dda-secondary-90);--dda-color-secondary-10:var(--dda-secondary-95);--dda-on-secondary-100:var(--dda-secondary-10);--dda-on-secondary-98:var(--dda-secondary-12);--dda-on-secondary-96:var(--dda-secondary-17);--dda-on-secondary-94:var(--dda-secondary-20);--dda-secondary-variant-96:var(--dda-secondary-30);--dda-secondary-variant-95:var(--dda-secondary-30);--dda-secondary-variant-94:var(--dda-secondary-25);--dda-secondary-variant-92:var(--dda-secondary-20);--dda-secondary-variant-87:var(--dda-secondary-12);--dda-on-secondary-variant-30:var(--dda-secondary-90);--dda-on-secondary-variant-25:var(--dda-secondary-94);--dda-on-secondary-variant-20:var(--dda-secondary-96);--dda-on-secondary-variant-12:var(--dda-secondary-98)}:root{--dda-error-0:#000000;--dda-error-4:#280000;--dda-error-5:#2D0000;--dda-error-6:#310001;--dda-error-10:#410001;--dda-error-12:#490001;--dda-error-17:#5C0002;--dda-error-20:#690003;--dda-error-22:#710003;--dda-error-24:#790004;--dda-error-25:#7E0004;--dda-error-30:#930005;--dda-error-35:#A90008;--dda-error-40:#C0000A;--dda-error-50:#E62721;--dda-error-60:#FF5545;--dda-error-70:#FF8A7B;--dda-error-80:#FFB4AA;--dda-error-87:#FFCFC8;--dda-error-90:#FFDAD5;--dda-error-92:#FFE2DD;--dda-error-94:#FFE9E6;--dda-error-95:#FFEDEA;--dda-error-96:#FFF0EE;--dda-error-98:#FFF8F7;--dda-error-99:#FFFBFF;--dda-error-100:#FFFFFF;--dda-color-error-50:var(--dda-error-50);--dda-color-error-40:var(--dda-error-40);--dda-color-error-30:var(--dda-error-30);--dda-color-error-20:var(--dda-error-24);--dda-on-error-100:var(--dda-error-100);--dda-on-error-98:var(--dda-error-98);--dda-on-error-96:var(--dda-error-96);--dda-on-error-94:var(--dda-error-94);--dda-error-variant-90:var(--dda-error-90);--dda-error-variant-95:var(--dda-error-95);--dda-error-variant-94:var(--dda-error-94);--dda-error-variant-92:var(--dda-error-92);--dda-error-variant-90:var(--dda-error-90);--dda-on-error-variant-40:var(--dda-error-40);--dda-on-error-variant-30:var(--dda-error-30);--dda-on-error-variant-25:var(--dda-error-25);--dda-on-error-variant-20:var(--dda-error-20);--dda-on-error-variant-12:var(--dda-error-12)}:root[data-theme=\'dark\']{--dda-color-error-50:var(--dda-error-80);--dda-color-error-40:var(--dda-error-70);--dda-color-error-30:var(--dda-error-90);--dda-color-error-20:var(--dda-error-94);--dda-on-error-100:var(--dda-error-10);--dda-on-error-98:var(--dda-error-12);--dda-on-error-96:var(--dda-error-17);--dda-on-error-94:var(--dda-error-20);--dda-error-variant-96:var(--dda-error-30);--dda-error-variant-95:var(--dda-error-20);--dda-error-variant-94:var(--dda-error-25);--dda-error-variant-92:var(--dda-error-20);--dda-error-variant-90:var(--dda-error-12);--dda-on-error-variant-40:var(--dda-error-70);--dda-on-error-variant-30:var(--dda-error-80);--dda-on-error-variant-25:var(--dda-error-94);--dda-on-error-variant-20:var(--dda-error-96);--dda-on-error-variant-12:var(--dda-error-98)}:root{--dda-warning-0:#000000;--dda-warning-4:#180C00;--dda-warning-5:#1B0E00;--dda-warning-6:#1F1000;--dda-warning-10:#2A1800;--dda-warning-12:#2F1B00;--dda-warning-17:#3D2500;--dda-warning-20:#462B00;--dda-warning-22:#4B2F00;--dda-warning-24:#513300;--dda-warning-25:#543500;--dda-warning-30:#643F00;--dda-warning-35:#734A00;--dda-warning-40:#835400;--dda-warning-50:#A46B00;--dda-warning-60:#C78200;--dda-warning-70:#EB9A00;--dda-warning-80:#FFB956;--dda-warning-87:#FFD39B;--dda-warning-90:#FFDDB5;--dda-warning-92:#FFE4C5;--dda-warning-94:#FFEBD5;--dda-warning-95:#FFEEDD;--dda-warning-96:#FFF1E5;--dda-warning-98:#FFF8F4;--dda-warning-99:#FFFBFF;--dda-warning-100:#FFFFFF;--dda-color-warning-50:var(--dda-warning-50);--dda-color-warning-40:var(--dda-warning-40);--dda-color-warning-30:var(--dda-warning-30);--dda-color-warning-20:var(--dda-warning-20);--dda-on-warning-100:var(--dda-warning-100);--dda-on-warning-98:var(--dda-warning-98);--dda-on-warning-96:var(--dda-warning-96);--dda-on-warning-94:var(--dda-warning-94);--dda-warning-variant-90:var(--dda-warning-90);--dda-warning-variant-95:var(--dda-warning-95);--dda-warning-variant-94:var(--dda-warning-94);--dda-warning-variant-92:var(--dda-warning-92);--dda-warning-variant-90:var(--dda-warning-90);--dda-on-warning-variant-40:var(--dda-warning-40);--dda-on-warning-variant-30:var(--dda-warning-30);--dda-on-warning-variant-25:var(--dda-warning-25);--dda-on-warning-variant-20:var(--dda-warning-20);--dda-on-warning-variant-12:var(--dda-warning-12)}:root[data-theme=\'dark\']{--dda-color-warning-50:var(--dda-warning-80);--dda-color-warning-40:var(--dda-warning-50);--dda-color-warning-30:var(--dda-warning-90);--dda-color-warning-20:var(--dda-warning-94);--dda-on-warning-100:var(--dda-warning-10);--dda-on-warning-98:var(--dda-warning-12);--dda-on-warning-96:var(--dda-warning-17);--dda-on-warning-94:var(--dda-warning-20);--dda-warning-variant-96:var(--dda-warning-30);--dda-warning-variant-95:var(--dda-warning-30);--dda-warning-variant-94:var(--dda-warning-25);--dda-warning-variant-92:var(--dda-warning-20);--dda-warning-variant-90:var(--dda-warning-12);--dda-on-warning-variant-40:var(--dda-warning-80);--dda-on-warning-variant-30:var(--dda-warning-80);--dda-on-warning-variant-25:var(--dda-warning-94);--dda-on-warning-variant-20:var(--dda-warning-96);--dda-on-warning-variant-12:var(--dda-warning-98)}:root{--dda-success-0:#000000;--dda-success-4:#001203;--dda-success-5:#001504;--dda-success-6:#001805;--dda-success-10:#002108;--dda-success-12:#00260A;--dda-success-17:#00320F;--dda-success-20:#003913;--dda-success-22:#003E15;--dda-success-24:#004318;--dda-success-25:#004619;--dda-success-30:#00531F;--dda-success-35:#006025;--dda-success-40:#0D6D2D;--dda-success-50:#318744;--dda-success-60:#4CA25B;--dda-success-70:#67BD73;--dda-success-80:#82DA8C;--dda-success-87:#95EE9E;--dda-success-90:#9EF7A6;--dda-success-92:#A3FCAC;--dda-success-94:#B8FFBB;--dda-success-95:#C6FFC7;--dda-success-96:#D3FFD2;--dda-success-98:#EBFFE7;--dda-success-99:#F6FFF1;--dda-success-100:#FFFFFF;--dda-color-success-50:var(--dda-success-50);--dda-color-success-40:var(--dda-success-40);--dda-color-success-30:var(--dda-success-30);--dda-color-success-20:var(--dda-success-20);--dda-on-success-100:var(--dda-success-100);--dda-on-success-98:var(--dda-success-98);--dda-on-success-96:var(--dda-success-96);--dda-on-success-94:var(--dda-success-94);--dda-success-variant-90:var(--dda-success-90);--dda-success-variant-95:var(--dda-success-95);--dda-success-variant-94:var(--dda-success-94);--dda-success-variant-92:var(--dda-success-92);--dda-success-variant-90:var(--dda-success-90);--dda-on-success-variant-40:var(--dda-success-40);--dda-on-success-variant-30:var(--dda-success-30);--dda-on-success-variant-25:var(--dda-success-25);--dda-on-success-variant-20:var(--dda-success-20);--dda-on-success-variant-12:var(--dda-success-12)}:root[data-theme=\'dark\']{--dda-color-success-50:var(--dda-success-80);--dda-color-success-40:var(--dda-success-87);--dda-color-success-30:var(--dda-success-90);--dda-color-success-20:var(--dda-success-94);--dda-on-success-100:var(--dda-success-10);--dda-on-success-98:var(--dda-success-12);--dda-on-success-96:var(--dda-success-17);--dda-on-success-94:var(--dda-success-20);--dda-success-variant-96:var(--dda-success-30);--dda-success-variant-95:var(--dda-success-30);--dda-success-variant-94:var(--dda-success-25);--dda-success-variant-92:var(--dda-success-20);--dda-success-variant-90:var(--dda-success-12);--dda-on-success-variant-40:var(--dda-success-80);--dda-on-success-variant-30:var(--dda-success-80);--dda-on-success-variant-25:var(--dda-success-94);--dda-on-success-variant-20:var(--dda-success-96);--dda-on-success-variant-12:var(--dda-success-98)}:root{--dda-info-0:#000000;--dda-info-4:#001019;--dda-info-5:#00131C;--dda-info-6:#001620;--dda-info-10:#001E2B;--dda-info-12:#002331;--dda-info-17:#002E3F;--dda-info-20:#003548;--dda-info-22:#00394E;--dda-info-24:#003548;--dda-info-25:#004157;--dda-info-30:#004D66;--dda-info-35:#005977;--dda-info-40:#006687;--dda-info-50:#0080A9;--dda-info-60:#1A9CCA;--dda-info-70:#47B7E6;--dda-info-80:#73D2FF;--dda-info-87:#ACE1FF;--dda-info-90:#C1E8FF;--dda-info-92:#CEEDFF;--dda-info-94:#DBF1FF;--dda-info-95:#E2F3FF;--dda-info-96:#E8F6FF;--dda-info-98:#F4FAFF;--dda-info-99:#FBFCFF;--dda-info-100:#FFFFFF;--dda-color-info-50:var(--dda-info-50);--dda-color-info-40:var(--dda-info-47);--dda-color-info-30:var(--dda-info-30);--dda-color-info-20:var(--dda-info-20);--dda-on-info-100:var(--dda-info-100);--dda-on-info-98:var(--dda-info-98);--dda-on-info-96:var(--dda-info-96);--dda-on-info-94:var(--dda-info-94);--dda-info-variant-90:var(--dda-info-90);--dda-info-variant-95:var(--dda-info-95);--dda-info-variant-94:var(--dda-info-94);--dda-info-variant-92:var(--dda-info-92);--dda-info-variant-90:var(--dda-info-90);--dda-on-info-variant-40:var(--dda-info-40);--dda-on-info-variant-30:var(--dda-info-30);--dda-on-info-variant-25:var(--dda-info-25);--dda-on-info-variant-20:var(--dda-info-20);--dda-on-info-variant-12:var(--dda-info-12)}:root[data-theme=\'dark\']{--dda-color-info-50:var(--dda-info-80);--dda-color-info-40:var(--dda-info-87);--dda-color-info-30:var(--dda-info-90);--dda-color-info-20:var(--dda-info-94);--dda-on-info-100:var(--dda-info-10);--dda-on-info-98:var(--dda-info-12);--dda-on-info-96:var(--dda-info-17);--dda-on-info-94:var(--dda-info-20);--dda-info-variant-96:var(--dda-info-30);--dda-info-variant-95:var(--dda-info-30);--dda-info-variant-94:var(--dda-info-25);--dda-info-variant-92:var(--dda-info-20);--dda-info-variant-90:var(--dda-info-12);--dda-on-info-variant-40:var(--dda-info-80);--dda-on-info-variant-30:var(--dda-info-80);--dda-on-info-variant-25:var(--dda-info-94);--dda-on-info-variant-20:var(--dda-info-96);--dda-on-info-variant-12:var(--dda-info-98)}:root{--dda-neutral-0:#000000;--dda-neutral-4:#0D0E11;--dda-neutral-5:#101114;--dda-neutral-6:#131316;--dda-neutral-10:#1B1B1F;--dda-neutral-12:#1F1F23;--dda-neutral-17:#292A2D;--dda-neutral-20:#303034;--dda-neutral-22:#343438;--dda-neutral-24:#39393C;--dda-neutral-25:#3B3B3F;--dda-neutral-30:#46464A;--dda-neutral-35:#525256;--dda-neutral-40:#5E5E62;--dda-neutral-50:#77777A;--dda-neutral-60:#919094;--dda-neutral-70:#ACAAAF;--dda-neutral-80:#C7C6CA;--dda-neutral-87:#DBD9DD;--dda-neutral-90:#E4E2E6;--dda-neutral-92:#E9E7EC;--dda-neutral-94:#EFEDF1;--dda-neutral-95:#F2F0F4;--dda-neutral-96:#F5F3F7;--dda-neutral-98:#FBF8FD;--dda-neutral-99:#FEFBFF;--dda-neutral-100:#FFFFFF;--dda-surface-100:var(--dda-neutral-100);--dda-surface-96:var(--dda-neutral-96);--dda-surface-94:var(--dda-neutral-94);--dda-surface-92:var(--dda-neutral-92);--dda-surface-90:var(--dda-neutral-90);--dda-surface-0:var(--dda-neutral-0);--dda-on-surface-10:var(--dda-neutral-10);--dda-on-surface-20:var(--dda-neutral-20);--dda-on-surface-30:var(--dda-neutral-30);--dda-on-surface-40:var(--dda-neutral-40);--dda-on-surface-0:var(--dda-neutral-0)}:root[data-theme=\'dark\']{--dda-surface-0:var(--dda-neutral-100);--dda-surface-100:var(--dda-neutral-10);--dda-surface-96:var(--dda-neutral-24);--dda-surface-94:var(--dda-neutral-12);--dda-surface-92:var(--dda-neutral-17);--dda-surface-90:var(--dda-neutral-22);--dda-on-surface-0:var(--dda-neutral-100);--dda-on-surface-10:var(--dda-neutral-100);--dda-on-surface-20:var(--dda-neutral-90);--dda-on-surface-30:var(--dda-neutral-80);--dda-on-surface-40:var(--dda-neutral-70)}:root{--dda-neutral-variant-0:#000000;--dda-neutral-variant-4:#0B1218;--dda-neutral-variant-5:#0B1218;--dda-neutral-variant-6:#11131A;--dda-neutral-variant-10:#161C22;--dda-neutral-variant-12:#1D1F27;--dda-neutral-variant-17:#20272D;--dda-neutral-variant-20:#2A3038;--dda-neutral-variant-22:#32343C;--dda-neutral-variant-24:#373941;--dda-neutral-variant-25:#383F45;--dda-neutral-variant-30:#40484F;--dda-neutral-variant-35:#4D525A;--dda-neutral-variant-40:#595F66;--dda-neutral-variant-50:#71787F;--dda-neutral-variant-60:#8A9299;--dda-neutral-variant-70:#A5ABB3;--dda-neutral-variant-80:#C0C6CF;--dda-neutral-variant-87:#D5DAE3;--dda-neutral-variant-90:#DDE2EB;--dda-neutral-variant-92:#E1EAF2;--dda-neutral-variant-94:#E6EFF7;--dda-neutral-variant-95:#EAF2F9;--dda-neutral-variant-96:#F0F5FC;--dda-neutral-variant-98:#F7FAFF;--dda-neutral-variant-99:#FBFCFF;--dda-neutral-variant-100:#FFFFFF;--dda-surface-variant-90:var(--dda-neutral-variant-90);--dda-surface-variant-87:var(--dda-neutral-variant-87);--dda-surface-variant-80:var(--dda-neutral-variant-80);--dda-on-surface-variant-50:var(--dda-neutral-variant-50);--dda-on-surface-variant-40:var(--dda-neutral-variant-40);--dda-on-surface-variant-30:var(--dda-neutral-variant-30);--dda-on-surface-variant-25:var(--dda-neutral-variant-25);--dda-on-surface-variant-20:var(--dda-neutral-variant-20);--dda-on-surface-variant-12:var(--dda-neutral-variant-12)}:root[data-theme=\'dark\']{--dda-surface-variant-90:var(--dda-neutral-variant-30);--dda-surface-variant-87:var(--dda-neutral-variant-25);--dda-surface-variant-80:var(--dda-neutral-variant-22);--dda-on-surface-variant-50:var(--dda-neutral-variant-60);--dda-on-surface-variant-40:var(--dda-neutral-variant-70);--dda-on-surface-variant-30:var(--dda-neutral-variant-80);--dda-on-surface-variant-25:var(--dda-neutral-variant-94);--dda-on-surface-variant-20:var(--dda-neutral-variant-96);--dda-on-surface-variant-12:var(--dda-neutral-variant-98)}:root{--dda-color-purple:#904EDB;--dda-color-purple-dark:#8044AE;--dda-color-purple-variant:#F1E9FF;--dda-color-teal:#23B7B1;--dda-color-teal-variant:#E2FFFE;--dda-color-green:#6FA31C;--dda-color-green-variant:#BBE07F;--dda-color-red:#DD6B51;--dda-color-red-variant:#FFEBE6;--dda-color-blue:#3081E0;--dda-color-blue-variant:#E3F0FF;--dda-color-orange:#CD9D22;--dda-color-orange-variant:#FFF8E7;--dda-color-yellow:#D3C800;--dda-color-yellow-variant:#FFFBB9}:root[data-theme=\'dark\']{--dda-color-purple:#BC95E9;--dda-color-purple-dark:#BC9CE1;--dda-color-purple-variant:#572F84;--dda-color-teal:#A7E2E0;--dda-color-teal-variant:#156E6A;--dda-color-green:#B2D973;--dda-color-green-variant:#4B6E15;--dda-color-red:#E29199;--dda-color-red-variant:#7C2B33;--dda-color-blue:#83B3EC;--dda-color-blue-variant:#1D4D86;--dda-color-orange:#E1C47A;--dda-color-orange-variant:#7B5E14;--dda-color-yellow:#E7DD11;--dda-color-yellow-variant:#A9A221}:root{--dda-fw-300:300 !important;--dda-fw-400:400 !important;--dda-fw-500:500 !important;--dda-fw-700:700 !important;--dda-fs-display-lg:3.563rem;--dda-fs-display-md:2.813rem;--dda-fs-display-sm:2.25rem;--dda-fs-headline-lg:2rem;--dda-fs-headline-md:1.75rem;--dda-fs-headline-sm:1.5rem;--dda-fs-title-lg:1.375rem;--dda-fs-title-md:1.25rem;--dda-fs-title-sm:1.125rem;--dda-fs-body-lg:1rem;--dda-fs-body-md:0.875rem;--dda-fs-body-sm:0.75rem;--dda-fs-label-lg:0.875rem;--dda-fs-label-md:0.75rem;--dda-fs-label-sm:0.625rem;--dda-fs-tagline-lg:0.75rem;--dda-fs-tagline-md:0.625rem;--dda-fs-tagline-sm:0.5rem;--dda-h1:3.563rem;--dda-h2:3rem;--dda-h3:2.5rem;--dda-h4:2.063rem;--dda-h5:1.75rem;--dda-h6:1.438rem;--dda-title:1.188rem;--dda-body:1rem;--dda-caption:0.813rem;--dda-label:0.688rem}.dda-fw-300{font-weight:var(--dda-fw-300)}.dda-fw-400{font-weight:var(--dda-fw-400)}.dda-fw-500{font-weight:var(--dda-fw-500)}.dda-fw-700{font-weight:var(--dda-fw-700)}.dda-fs-display-lg{font-size:var(--dda-fs-display-lg)}.dda-fs-display-md{font-size:var(--dda-fs-display-md)}.dda-fs-display-sm{font-size:var(--dda-fs-display-sm)}.dda-fs-headline-lg{font-size:var(--dda-fs-headline-lg)}.dda-fs-headline-md{font-size:var(--dda-fs-headline-md)}.dda-fs-headline-sm{font-size:var(--dda-fs-headline-sm)}.dda-fs-title-lg{font-size:var(--dda-fs-title-lg)}.dda-fs-title-md{font-size:var(--dda-fs-title-md)}.dda-fs-title-sm{font-size:var(--dda-fs-title-sm)}.dda-fs-body-lg{font-size:var(--dda-fs-body-lg)}.dda-fs-body-md{font-size:var(--dda-fs-body-md)}.dda-fs-body-sm{font-size:var(--dda-fs-body-sm)}.dda-fs-label-lg{font-size:var(--dda-fs-label-lg)}.dda-fs-label-md{font-size:var(--dda-fs-label-md)}.dda-fs-label-sm{font-size:var(--dda-fs-label-sm)}.dda-fs-tagline-lg{font-size:var(--dda-fs-tagline-lg)}.dda-fs-tagline-md{font-size:var(--dda-fs-tagline-md)}.dda-fs-tagline-sm{font-size:var(--dda-fs-tagline-sm)}:root{--font-weight-light:300;--font-weight-regular:400;--font-weight-medium:500;--font-weight-bold:700;--font-display:3rem;--font-h1:2rem;--font-h2:1.625rem;--font-h3:1.375rem;--font-h4:1.25rem;--font-h5:1.125rem;--font-h6:1rem;--font-body:0.875rem;--font-caption:0.875rem;--font-small:0.75rem;--line-height-display:3.5rem;--line-height-h1:3rem;--line-height-h2:2.5rem;--line-height-h3:2.25rem;--line-height-h4:2rem;--line-height-h5:1.75rem;--line-height-h6:1.5rem;--line-height-body:1.25rem;--line-height-caption:1.25rem;--line-height-small:1rem;}@media (min-width: 600px){:root{--font-display:3.75rem;--font-h1:2.5rem;--font-h2:2rem;--font-h3:1.75rem;--font-h4:1.5rem;--font-h5:1.25rem;--font-h6:1.125rem;--font-body:1rem;--font-caption:0.875rem;--font-small:0.75rem;--line-height-display:4.25rem;--line-height-h1:3rem;--line-height-h2:2.5rem;--line-height-h3:2.25rem;--line-height-h4:2rem;--line-height-h5:1.75rem;--line-height-h6:1.75rem;--line-height-body:1.5rem;--line-height-caption:1.25rem;--line-height-small:1rem;}}@media (min-width: 1024px){:root{--font-display:4.25rem;--font-h1:3rem;--font-h2:2.5rem;--font-h3:2rem;--font-h4:1.75rem;--font-h5:1.5rem;--font-h6:1.25rem;--font-body:1rem;--font-caption:0.875rem;--font-small:0.75rem;--line-height-display:5rem;--line-height-h1:3.5rem;--line-height-h2:3rem;--line-height-h3:2.5rem;--line-height-h4:2rem;--line-height-h5:2rem;--line-height-h6:1.75rem;--line-height-body:1.5rem;--line-height-caption:1.25rem;--line-height-small:1rem;}}@media (min-width: 1440px){:root{--font-display:4.75rem;--font-h1:3.375rem;--font-h2:2.8125rem;--font-h3:2.3125rem;--font-h4:2rem;--font-h5:1.625rem;--font-h6:1.375rem;--font-body:1.125rem;--font-caption:1rem;--font-small:0.875rem;--line-height-display:5.5rem;--line-height-h1:4rem;--line-height-h2:3.5rem;--line-height-h3:2.75rem;--line-height-h4:2.25rem;--line-height-h5:2rem;--line-height-h6:1.75rem;--line-height-body:1.75rem;--line-height-caption:1.5rem;--line-height-small:1.25rem;}}.display{font-size:var(--font-display);line-height:var(--line-height-display) !important}h1,.h1,.dda-h1{font-size:var(--font-h1) !important;line-height:var(--line-height-h1) !important}h2,.h2,.dda-h2{font-size:var(--font-h2) !important;line-height:var(--line-height-h2) !important}h3,.h3,.dda-h3{font-size:var(--font-h3) !important;line-height:var(--line-height-h3) !important}h4,.h4,.dda-h4{font-size:var(--font-h4) !important;line-height:var(--line-height-h4) !important}h5,.h5,.dda-h5{font-size:var(--font-h5) !important;line-height:var(--line-height-h5) !important}h6,.h6,.dda-h6{font-size:var(--font-h6) !important;line-height:var(--line-height-h6) !important}.body,.dda-body{font-size:var(--font-body) !important;line-height:var(--line-height-body) !important}.caption,.dda-caption{font-size:var(--font-caption) !important;line-height:var(--line-height-caption) !important}.small,.dda-small{font-size:var(--font-small) !important;line-height:var(--line-height-small) !important}.display.Light,h1.Light,.h1.Light,.dda-h1.Light,h2.Light,.h2.Light,.dda-h2.Light,h3.Light,.h3.Light,.dda-h3.Light,h4.Light,.h4.Light,.dda-h4.Light,h5.Light,.h5.Light,.dda-h5.Light,h6.Light,.h6.Light,.dda-h6.Light,.body.Light,.dda-body.Light,.caption.Light,.dda-caption.Light,.small.Light,.dda-small.Light{font-weight:var(--font-weight-light)}.display.Regular,h1.Regular,.h1.Regular,.dda-h1.Regular,h2.Regular,.h2.Regular,.dda-h2.Regular,h3.Regular,.h3.Regular,.dda-h3.Regular,h4.Regular,.h4.Regular,.dda-h4.Regular,h5.Regular,.h5.Regular,.dda-h5.Regular,h6.Regular,.h6.Regular,.dda-h6.Regular,.body.Regular,.dda-body.Regular,.caption.Regular,.dda-caption.Regular,.small.Regular,.dda-small.Regular{font-weight:var(--font-weight-regular)}.display.Medium,h1.Medium,.h1.Medium,.dda-h1.Medium,h2.Medium,.h2.Medium,.dda-h2.Medium,h3.Medium,.h3.Medium,.dda-h3.Medium,h4.Medium,.h4.Medium,.dda-h4.Medium,h5.Medium,.h5.Medium,.dda-h5.Medium,h6.Medium,.h6.Medium,.dda-h6.Medium,.body.Medium,.dda-body.Medium,.caption.Medium,.dda-caption.Medium,.small.Medium,.dda-small.Medium{font-weight:var(--font-weight-medium)}.display.Bold,h1.Bold,.h1.Bold,.dda-h1.Bold,h2.Bold,.h2.Bold,.dda-h2.Bold,h3.Bold,.h3.Bold,.dda-h3.Bold,h4.Bold,.h4.Bold,.dda-h4.Bold,h5.Bold,.h5.Bold,.dda-h5.Bold,h6.Bold,.h6.Bold,.dda-h6.Bold,.body.Bold,.dda-body.Bold,.caption.Bold,.dda-caption.Bold,.small.Bold,.dda-small.Bold{font-weight:var(--font-weight-bold)}.dda-container,.dda-container-fluid,.dda-container-xxl,.dda-container-xl,.dda-container-lg,.dda-container-md,.dda-container-sm{--dda-gutter-x:1.5rem;--dda-gutter-y:0;width:100%;padding-right:calc(var(--dda-gutter-x) * 0.5);padding-left:calc(var(--dda-gutter-x) * 0.5);margin-right:auto;margin-left:auto}.dda-w-25{width:25% !important}.dda-w-50{width:50% !important}.dda-w-75{width:75% !important}.dda-w-100{width:100% !important}.dda-h-100{height:100% !important}@media (min-width: 576px){.dda-container-sm,.dda-container{max-width:540px}}@media (min-width: 768px){.dda-container-md,.dda-container-sm,.dda-container{max-width:720px}}@media (min-width: 992px){.dda-container-lg,.dda-container-md,.dda-container-sm,.dda-container{max-width:960px}}@media (min-width: 1200px){.dda-container-xl,.dda-container-lg,.dda-container-md,.dda-container-sm,.dda-container{max-width:1140px}}@media (min-width: 1400px){.dda-container-xxl,.dda-container-xl,.dda-container-lg,.dda-container-md,.dda-container-sm,.dda-container{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.dda-row{--dda-gutter-x:1.5rem;--dda-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--dda-gutter-y));margin-right:calc(-0.5 * var(--dda-gutter-x));margin-left:calc(-0.5 * var(--dda-gutter-x))}.dda-row>*{box-sizing:border-box;flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--dda-gutter-x) * 0.5);padding-left:calc(var(--dda-gutter-x) * 0.5);margin-top:var(--dda-gutter-y)}.dda-col{flex:1 0 0%}.dda-col-auto{flex:0 0 auto;width:auto}.dda-col-1{flex:0 0 auto;width:8.33333333%}.dda-col-2{flex:0 0 auto;width:16.66666667%}.dda-col-3{flex:0 0 auto;width:25%}.dda-col-4{flex:0 0 auto;width:33.33333333%}.dda-col-5{flex:0 0 auto;width:41.66666667%}.dda-col-6{flex:0 0 auto;width:50%}.dda-col-7{flex:0 0 auto;width:58.33333333%}.dda-col-8{flex:0 0 auto;width:66.66666667%}.dda-col-9{flex:0 0 auto;width:75%}.dda-col-10{flex:0 0 auto;width:83.33333333%}.dda-col-11{flex:0 0 auto;width:91.66666667%}.dda-col-12{flex:0 0 auto;width:100%}@media (min-width: 576px){.dda-col-sm{flex:1 0 0%}.dda-col-sm-auto{flex:0 0 auto;width:auto}.dda-col-sm-1{flex:0 0 auto;width:8.33333333%}.dda-col-sm-2{flex:0 0 auto;width:16.66666667%}.dda-col-sm-3{flex:0 0 auto;width:25%}.dda-col-sm-4{flex:0 0 auto;width:33.33333333%}.dda-col-sm-5{flex:0 0 auto;width:41.66666667%}.dda-col-sm-6{flex:0 0 auto;width:50%}.dda-col-sm-7{flex:0 0 auto;width:58.33333333%}.dda-col-sm-8{flex:0 0 auto;width:66.66666667%}.dda-col-sm-9{flex:0 0 auto;width:75%}.dda-col-sm-10{flex:0 0 auto;width:83.33333333%}.dda-col-sm-11{flex:0 0 auto;width:91.66666667%}.dda-col-sm-12{flex:0 0 auto;width:100%}}@media (min-width: 768px){.dda-col-md{flex:1 0 0%}.dda-col-md-auto{flex:0 0 auto;width:auto}.dda-col-md-1{flex:0 0 auto;width:8.33333333%}.dda-col-md-2{flex:0 0 auto;width:16.66666667%}.dda-col-md-3{flex:0 0 auto;width:25%}.dda-col-md-4{flex:0 0 auto;width:33.33333333%}.dda-col-md-5{flex:0 0 auto;width:41.66666667%}.dda-col-md-6{flex:0 0 auto;width:50%}.dda-col-md-7{flex:0 0 auto;width:58.33333333%}.dda-col-md-8{flex:0 0 auto;width:66.66666667%}.dda-col-md-9{flex:0 0 auto;width:75%}.dda-col-md-10{flex:0 0 auto;width:83.33333333%}.dda-col-md-11{flex:0 0 auto;width:91.66666667%}.dda-col-md-12{flex:0 0 auto;width:100%}}@media (min-width: 992px){.dda-col-lg{flex:1 0 0%}.dda-col-lg-auto{flex:0 0 auto;width:auto}.dda-col-lg-1{flex:0 0 auto;width:8.33333333%}.dda-col-lg-2{flex:0 0 auto;width:16.66666667%}.dda-col-lg-3{flex:0 0 auto;width:25%}.dda-col-lg-4{flex:0 0 auto;width:33.33333333%}.dda-col-lg-5{flex:0 0 auto;width:41.66666667%}.dda-col-lg-6{flex:0 0 auto;width:50%}.dda-col-lg-7{flex:0 0 auto;width:58.33333333%}.dda-col-lg-8{flex:0 0 auto;width:66.66666667%}.dda-col-lg-9{flex:0 0 auto;width:75%}.dda-col-lg-10{flex:0 0 auto;width:83.33333333%}.dda-col-lg-11{flex:0 0 auto;width:91.66666667%}.dda-col-lg-12{flex:0 0 auto;width:100%}}@media (min-width: 1200px){.dda-col-xl{flex:1 0 0%}.dda-col-xl-auto{flex:0 0 auto;width:auto}.dda-col-xl-1{flex:0 0 auto;width:8.33333333%}.dda-col-xl-2{flex:0 0 auto;width:16.66666667%}.dda-col-xl-3{flex:0 0 auto;width:25%}.dda-col-xl-4{flex:0 0 auto;width:33.33333333%}.dda-col-xl-5{flex:0 0 auto;width:41.66666667%}.dda-col-xl-6{flex:0 0 auto;width:50%}.dda-col-xl-7{flex:0 0 auto;width:58.33333333%}.dda-col-xl-8{flex:0 0 auto;width:66.66666667%}.dda-col-xl-9{flex:0 0 auto;width:75%}.dda-col-xl-10{flex:0 0 auto;width:83.33333333%}.dda-col-xl-11{flex:0 0 auto;width:91.66666667%}.dda-col-xl-12{flex:0 0 auto;width:100%}}@media (min-width: 1400px){.dda-col-xxl{flex:1 0 0%}.dda-col-xxl-auto{flex:0 0 auto;width:auto}.dda-col-xxl-1{flex:0 0 auto;width:8.33333333%}.dda-col-xxl-2{flex:0 0 auto;width:16.66666667%}.dda-col-xxl-3{flex:0 0 auto;width:25%}.dda-col-xxl-4{flex:0 0 auto;width:33.33333333%}.dda-col-xxl-5{flex:0 0 auto;width:41.66666667%}.dda-col-xxl-6{flex:0 0 auto;width:50%}.dda-col-xxl-7{flex:0 0 auto;width:58.33333333%}.dda-col-xxl-8{flex:0 0 auto;width:66.66666667%}.dda-col-xxl-9{flex:0 0 auto;width:75%}.dda-col-xxl-10{flex:0 0 auto;width:83.33333333%}.dda-col-xxl-11{flex:0 0 auto;width:91.66666667%}.dda-col-xxl-12{flex:0 0 auto;width:100%}}.dda-d-inline{display:inline !important}.dda-d-inline-block{display:inline-block !important}.dda-d-block{display:block !important}.dda-d-grid{display:grid !important}.dda-d-inline-grid{display:inline-grid !important}.dda-d-table{display:table !important}.dda-d-table-row{display:table-row !important}.dda-d-table-cell{display:table-cell !important}.dda-d-flex{display:flex !important}.dda-d-inline-flex{display:inline-flex !important}.dda-d-none{display:none !important}.dda-flex-fill{flex:1 1 auto !important}.dda-flex-row{flex-direction:row !important}.dda-flex-column{flex-direction:column !important}.dda-flex-row-reverse{flex-direction:row-reverse !important}.dda-flex-column-reverse{flex-direction:column-reverse !important}.dda-flex-grow-0{flex-grow:0 !important}.dda-flex-grow-1{flex-grow:1 !important}.dda-flex-shrink-0{flex-shrink:0 !important}.dda-flex-shrink-1{flex-shrink:1 !important}.dda-flex-wrap{flex-wrap:wrap !important}.dda-flex-nowrap{flex-wrap:nowrap !important}.dda-flex-wrap-reverse{flex-wrap:wrap-reverse !important}.dda-justify-content-start{justify-content:flex-start !important}.dda-justify-content-end{justify-content:flex-end !important}.dda-justify-content-center{justify-content:center !important}.dda-justify-content-between{justify-content:space-between !important}.dda-justify-content-around{justify-content:space-around !important}.dda-justify-content-evenly{justify-content:space-evenly !important}.dda-align-items-start{align-items:flex-start !important}.dda-align-items-end{align-items:flex-end !important}.dda-align-items-center{align-items:center !important}.dda-align-items-baseline{align-items:baseline !important}.dda-align-items-stretch{align-items:stretch !important}.dda-align-content-start{align-content:flex-start !important}.dda-align-content-end{align-content:flex-end !important}.dda-align-content-center{align-content:center !important}.dda-align-content-between{align-content:space-between !important}.dda-align-content-around{align-content:space-around !important}.dda-align-content-stretch{align-content:stretch !important}.dda-align-self-auto{align-self:auto !important}.dda-align-self-start{align-self:flex-start !important}.dda-align-self-end{align-self:flex-end !important}.dda-align-self-center{align-self:center !important}.dda-align-self-baseline{align-self:baseline !important}.dda-dda-align-self-stretch{align-self:stretch !important}.dda-m-0{margin:0 !important}.dda-m-1{margin:0.25rem !important}.dda-m-2{margin:0.5rem !important}.dda-m-3{margin:1rem !important}.dda-m-4{margin:1.5rem !important}.dda-m-5{margin:3rem !important}.dda-m-auto{margin:auto !important}.dda-mx-0{margin-right:0 !important;margin-left:0 !important}.dda-mx-1{margin-right:0.25rem !important;margin-left:0.25rem !important}.dda-mx-2{margin-right:0.5rem !important;margin-left:0.5rem !important}.dda-mx-3{margin-right:1rem !important;margin-left:1rem !important}.dda-mx-4{margin-right:1.5rem !important;margin-left:1.5rem !important}.dda-mx-5{margin-right:3rem !important;margin-left:3rem !important}.dda-mx-auto{margin-right:auto !important;margin-left:auto !important}.dda-my-0{margin-top:0 !important;margin-bottom:0 !important}.dda-my-1{margin-top:0.25rem !important;margin-bottom:0.25rem !important}.dda-my-2{margin-top:0.5rem !important;margin-bottom:0.5rem !important}.dda-my-3{margin-top:1rem !important;margin-bottom:1rem !important}.dda-my-4{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.dda-my-5{margin-top:3rem !important;margin-bottom:3rem !important}.dda-my-auto{margin-top:auto !important;margin-bottom:auto !important}.dda-mt-0{margin-top:0 !important}.dda-mt-1{margin-top:0.25rem !important}.dda-mt-2{margin-top:0.5rem !important}.dda-mt-3{margin-top:1rem !important}.dda-mt-4{margin-top:1.5rem !important}.dda-mt-5{margin-top:3rem !important}.dda-mt-auto{margin-top:auto !important}.dda-me-0{margin-right:0 !important}.dda-me-1{margin-right:0.25rem !important}.dda-me-2{margin-right:0.5rem !important}.dda-me-3{margin-right:1rem !important}.dda-me-4{margin-right:1.5rem !important}.dda-me-5{margin-right:3rem !important}.dda-me-auto{margin-right:auto !important}.dda-mb-0{margin-bottom:0 !important}.dda-mb-1{margin-bottom:0.25rem !important}.dda-mb-2{margin-bottom:0.5rem !important}.dda-mb-3{margin-bottom:1rem !important}.dda-mb-4{margin-bottom:1.5rem !important}.dda-mb-5{margin-bottom:3rem !important}.dda-mb-auto{margin-bottom:auto !important}.dda-ms-0{margin-left:0 !important}.dda-ms-1{margin-left:0.25rem !important}.dda-ms-2{margin-left:0.5rem !important}.dda-ms-3{margin-left:1rem !important}.dda-ms-4{margin-left:1.5rem !important}.dda-ms-5{margin-left:3rem !important}.dda-ms-auto{margin-left:auto !important}.dda-p-0{padding:0 !important}.dda-p-1{padding:0.25rem !important}.dda-p-2{padding:0.5rem !important}.dda-p-3{padding:1rem !important}.dda-p-4{padding:1.5rem !important}.dda-p-5{padding:3rem !important}.dda-px-0{padding-right:0 !important;padding-left:0 !important}.dda-px-1{padding-right:0.25rem !important;padding-left:0.25rem !important}.dda-px-2{padding-right:0.5rem !important;padding-left:0.5rem !important}.dda-px-3{padding-right:1rem !important;padding-left:1rem !important}.dda-px-4{padding-right:1.5rem !important;padding-left:1.5rem !important}.dda-px-5{padding-right:3rem !important;padding-left:3rem !important}.dda-py-0{padding-top:0 !important;padding-bottom:0 !important}.dda-py-1{padding-top:0.25rem !important;padding-bottom:0.25rem !important}.dda-py-2{padding-top:0.5rem !important;padding-bottom:0.5rem !important}.dda-py-3{padding-top:1rem !important;padding-bottom:1rem !important}.dda-py-4{padding-top:1.5rem !important;padding-bottom:1.5rem !important}.dda-py-5{padding-top:3rem !important;padding-bottom:3rem !important}.dda-pt-0{padding-top:0 !important}.dda-pt-1{padding-top:0.25rem !important}.dda-pt-2{padding-top:0.5rem !important}.dda-pt-3{padding-top:1rem !important}.dda-pt-4{padding-top:1.5rem !important}.dda-pt-5{padding-top:3rem !important}.dda-pe-0{padding-right:0 !important}.dda-pe-1{padding-right:0.25rem !important}.dda-pe-2{padding-right:0.5rem !important}.dda-pe-3{padding-right:1rem !important}.dda-pe-4{padding-right:1.5rem !important}.dda-pe-5{padding-right:3rem !important}.dda-pb-0{padding-bottom:0 !important}.dda-pb-1{padding-bottom:0.25rem !important}.dda-pb-2{padding-bottom:0.5rem !important}.dda-pb-3{padding-bottom:1rem !important}.dda-pb-4{padding-bottom:1.5rem !important}.dda-pb-5{padding-bottom:3rem !important}.dda-ps-0{padding-left:0 !important}.dda-ps-1{padding-left:0.25rem !important}.dda-ps-2{padding-left:0.5rem !important}.dda-ps-3{padding-left:1rem !important}.dda-ps-4{padding-left:1.5rem !important}.dda-ps-5{padding-left:3rem !important}.no-gutters{margin-right:0;margin-left:0}:root{--gap-xs:4px;--gap-lg:16px}.dda-gap-xs{gap:var(--gap-xs)}.dda-gap-lg{gap:var(--gap-lg)}.dda-card{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;word-wrap:break-word;background-color:var(--dda-surface-100);background-clip:border-box;border:1px solid var(--dda-surface-90);border-radius:12px;box-shadow:0px 1px 2px 0px rgba(16, 24, 40, 0.04);overflow:hidden}.dda-card-header{min-height:60px;padding:10px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--dda-surface-90)}.dda-card .dda-card-header .dda-header-dots{height:25px;width:25px;min-width:auto;padding:0px;outline:0;margin-top:6px}.dda-card .dda-card-body{-ms-flex:1 1 auto;flex:1 1 auto;padding:1.25rem;display:flex;flex-direction:column;gap:10px}.dda-card .dda-card-footer{border-top:1px solid var(--dda-surface-90);padding:15px 1.25rem}.dda-card .dda-card-title{font-size:var(--font-h5);font-weight:var(--font-weight-regular);margin-bottom:0;color:var(--dda-on-surface-0)}.dda-card .dda-card-text{font-size:var(--font-body);color:var(--dda-on-surface-variant-30)}.dda-card .dda-card-text-small{font-size:var(--dda-fs-body-md);color:var(--dda-on-surface-variant-30)}.dda-card .dda-card-text-muted{font-size:var(--dda-fs-body-md);color:var(--dda-on-surface-variant-30)}.dda-card .dda-card-img{display:block;width:100%;height:100%;object-fit:cover}.dda-card .image-chip{position:absolute;inset-inline-start:10px;inset-block-start:10px}.dda-card .dda-card-icon{display:block;margin-bottom:15px}.dda-card .dda-card-icon img{height:24px}.dda-card .dda-card-link{display:flex;width:100%;align-items:center;justify-content:flex-end;color:var(--dda-color-primary-40);line-height:0;padding:5px 0px;font-size:var(--dda-fs-body-md)}.dda-card .dda-card-link i{margin:0px 5px;font-size:var(--dda-fs-title-md)}.dda-card .card-image-label{position:absolute;top:12px;left:12px}.dda-card .dda-card-img.image-card{height:190px}.dda-card .dda-image-card-content{display:flex;flex-direction:column;gap:5px}.dda-card .dda-card-button-wrap{border-top:1px solid var(--dda-surface-90)}.dda-card .chips-container{display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}.dda-card .chips-container::-webkit-scrollbar{display:none;}.dda-card .chips-container li{list-style:none}.dda-card .dda-chip{white-space:nowrap}.dda-banner-card{width:100%;background-color:var(--dda-surface-100);padding:12px;border-radius:16px;display:flex;flex-direction:column;gap:8px;border:0px;text-align:start;position:relative}.dda-banner-card:hover{box-shadow:0px 0px 7px 4px rgba(0,0,0,0.05)}.dda-banner-card img{width:56px;height:56px}.dda-banner-card .dda-banner-card-title{font-size:var(--font-h6);color:var(--dda-on-surface-0);font-weight:var(--font-weight-medium);margin:0;padding:0}.dda-banner-card .dda-banner-card-description{font-size:var(--font-caption);color:var(--dda-on-surface-variant-30);font-weight:var(--font-weight-regular);padding:0;margin-top:4px;height:43px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.dda-teamsection-card{border-radius:0px;position:relative;display:flex;flex-direction:column;background-color:var(--dda-surface-100)}.dda-teamsection-card img{display:block;width:100%;height:100%;object-fit:cover}.dda-teamsection-card .body-text{color:var(--dda-on-surface-variant-30)}.teamsection-type-one-body{width:100%;position:absolute;bottom:0px}.teamsection-type-one-content{background:rgb(255 255 255 / 98%);padding:8px 16px;border-radius:10px;text-align:center}.dda-teamsection-card .dda-social-icons-card{display:flex;align-items:center;gap:16px}.dda-teamsection-card .dda-social-icons-card li a img{width:20px;height:20px}.dda-teamsection-variant-four-body{padding-inline-start:20px}.dda-teamsection-card .teamsection-type-five-body{width:100%;height:100%;background:rgb(0, 0, 0);background:linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);padding:20px;position:absolute;bottom:0;left:0;display:flex;align-items:end;justify-content:center}.dda-teamsection-card .teamsection-type-five-body div{text-align:center}.dda-teamsection-card .teamsection-type-five-body h5,.dda-teamsection-card .teamsection-type-five-body p{color:#ffffff}.dda-teamsection-card .dda-teamsection-variant-six{display:flex;align-items:center;gap:10px}.dda-teamsection-card .dda-teamsection-variant-six img,.dda-teamsection-card .dda-teamsection-variant-seven img,.dda-teamsection-card .dda-teamsection-variant-eight img{width:56px;height:56px}.dda-teamsection-card .dda-teamsection-variant-seven{background-color:var(--dda-neutral-98);padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;text-align:center;border-radius:6px}.dda-teamsection-card .dda-teamsection-variant-eight{display:flex;flex-direction:column;gap:24px}.dda-teamsection-card.image-rounded .dda-teamsection-variant-eight img{border-radius:100%}.dda-information-card-image{width:70px;height:70px;border-radius:50%;margin:0;overflow:hidden}.dda-card-event-date{width:60px;height:64px;background:var(--dda-surface-100);border:solid 1px var(--dda-surface-90);border-radius:6px;position:absolute;top:15px;inset-inline-start:15px;display:flex;align-items:center;flex-direction:column;justify-content:center}.dda-card .dda-avatar-group{padding-inline-start:13px !important}.dda-card .dda-avatar-group li{margin-inline-start:-13px}@media (prefers-reduced-motion: no-preference){.dda-banner-card{transition:0.3s}}.dda-dashboard-header-main{background-color:var(--dda-surface-100)}.dda-db-header-top{min-height:70px;display:flex;align-items:center;justify-content:space-between;padding:0px 30px;border-bottom:1px solid var(--dda-surface-90)}.dda-db-header-bottom{display:flex;justify-content:space-between;align-items:center;padding:0px 30px;border-bottom:1px solid var(--dda-surface-90)}.dda-db-header-left{display:flex;align-items:center;gap:15px}.dda-db-header-left .logo{width:100px;height:37px}.dda-dashboard-header-menu{display:flex;align-items:center}.dda-dashboard-header-menu ul{height:100%;margin:0;padding:0;display:flex;align-items:center}.dda-dashboard-header-menu ul li{display:inline-flex}.dda-dashboard-header-menu ul li a.menu-item{height:48px;display:flex;align-items:center;border-radius:8px;padding:0 16px;text-decoration:none;font-size:var(--font-caption);color:var(--dda-on-surface-0);font-weight:var(--dda-fw-400);position:relative}.dda-dashboard-header-menu.dda-menu-default ul li:hover a.menu-item{background-color:var(--dda-neutral-variant-94);color:var(--dda-color-primary-40);font-weight:var(--dda-fw-700)}.dda-dashboard-header-menu.dda-menu-underline.full-height a.menu-item{height:69px}.dda-dashboard-header-menu.dda-menu-underline ul li:hover a.menu-item::after{content:"";width:calc(100% - 32px);height:4px;background:var(--dda-color-primary-40);border-radius:8px 8px 0px 0px;position:absolute;bottom:0;left:16px}.dda-db-header-right{display:flex;align-items:center;gap:10px}.dda-user-info{display:flex;align-items:center;gap:10px}.dda-user-details{display:flex;flex-direction:column;align-items:flex-start}.dda-user-name{font-weight:var(--dda-fw-500)}.dda-user-role{color:var(--dda-on-surface-variant-30);font-size:var(--dda-fs-body-md)}.dda-dashboard-sidebar{position:fixed;top:0;left:0;height:100%;width:80px;background:var(--dda-surface-100);border-right:1px solid var(--dda-surface-90);z-index:100;padding-top:16px}.dda-dashboard-sidebar hr{border-color:var(--dda-color-surface-99)}.db-icon-logo{display:flex;align-items:center;padding:0px 17px;margin-bottom:15px}.db-icon-logo .db-logo{width:44px;height:44px;display:flex;gap:16px;align-items:center;padding:0px;border:transparent;background:transparent}.db-btn-container{display:flex;align-items:center;gap:16px;padding:0 27px}.db-btn-container .burdger-menu{background:none;outline:none;border:0px;padding:0px;font-size:16px;color:var(--dda-on-surface-variant-30)}.sidebar-open .db-btn-container{padding:0 14px}.db-btn-container .logo{width:100px;display:none}.sidebar-open .db-btn-container .logo{display:block}.db-logo .logo-icon{width:44px;height:44px}.sidebar-open .db-icon-logo{display:none}.db-logo .logo{display:none;width:150px}.sidebar-open .db-logo .logo{display:block}.dashboard-sidebar-menu{display:flex;flex-direction:column;padding:16px;gap:4px;}.dashboard-sidebar-menu li{display:flex;justify-content:center}.dashboard-sidebar-menu li a{height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 15px;font-size:16px;color:var(--dda-on-surface-variant-30);font-weight:700;border-radius:5px}.dashboard-sidebar-menu li a:hover{background-color:var(--dda-neutral-variant-94);color:var(--dda-color-primary-40)}.dashboard-sidebar-menu li a i,.dashboard-sidebar-menu li a svg{font-size:20px}.dashboard-sidebar-menu .text-wrap{display:none;align-items:center;gap:12px}.dashboard-sidebar-menu .counter{display:none;height:20px;min-width:20px;border:solid 1px var(--dda-surface-90);border-radius:30px;font-size:14px;text-align:center}.dda-dashboard-sidebar.sidebar-open{width:280px}.sidebar-open .dashboard-sidebar-menu{padding:16px 0}.sidebar-open .dashboard-sidebar-menu li a{border-radius:0;width:100%;position:relative}.sidebar-open .dashboard-sidebar-menu li a::before{content:"";width:3px;height:100%;background-color:var(--dda-color-primary-40);position:absolute;top:0;left:0;opacity:0}.sidebar-open .dashboard-sidebar-menu li a:hover{background-color:var(--dda-neutral-variant-94)}.sidebar-open .dashboard-sidebar-menu li a:hover::before{opacity:1}.dashboard-sidebar-menu .text-wrap{display:flex}.dashboard-sidebar-menu .menu-text{display:none}.dda-dashboard-sidebar.sidebar-open .counter{display:block}.dda-dashboard-sidebar.sidebar-open .menu-text{display:block}@media (prefers-reduced-motion: no-preference){.dda-dashboard-sidebar{transition:all 0.25s ease}.dashboard-sidebar-menu{transition:all 0.25s ease}}.dda-table-container{background:var(--dda-surface-100);border:solid 1px var(--dda-surface-90);border-radius:10px;box-shadow:0px 1px 2px 0px rgba(16, 24, 40, 0.04)}.dda-table-header,.dda-table-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 24px 16px 24px}.dda-table-header-content{color:var(--dda-on-surface-0);display:flex;justify-content:space-between;align-items:center;gap:10px}.dda-table{width:100%;border-collapse:collapse}.dda-table th,.dda-table td{color:var(--dda-on-surface-0);text-align:justify;padding:12px 24px;border:0px;border-top:solid 1px var(--dda-surface-90);border-bottom:solid 1px var(--dda-surface-90)}.dda-table th{background-color:var(--dda-surface-96);font-size:14px;font-weight:var(--dda-fw-500)}.dda-table-sm th,.dda-table-sm td{padding:8px}.dda-table-striped tbody tr:nth-of-type(even){background-color:var(--dda-surface-96)}.dda-payment-info{display:inline-flex;align-items:center;gap:15px}.dda-payment-icon{width:58px;height:40px;padding:6px;border:solid 1px var(--dda-surface-90);border-radius:8px}.dda-user-info{display:flex;align-items:center;gap:10px}.dda-user-details{display:flex;flex-direction:column;align-items:flex-start}.dda-user-name{font-weight:var(--dda-fw-500);color:var(--dda-on-surface-0)}.dda-user-role{color:var(--dda-on-surface-variant-30);font-size:var(--dda-fs-body-md)}.WB-footer{background-color:var(--dda-surface-100);color:var(--dda-on-surface-variant-30)}.WB-footer .entt-logo{width:135px}.WB-footer .footer-menu{display:flex;flex-direction:column;gap:12px}.WB-footer .footer-menu a{color:var(--dda-on-surface-variant-30)}.WB-footer .footer-menu a:hover{color:var(--dda-color-primary-40)}.WB-footer .line-seperater{border-bottom:solid 1px #E0E3E2;padding-top:36px;padding-bottom:36px}.footer-social-icn{width:24px;height:24px}@media screen and (max-width: 992px){.WB-footer .line-seperater{padding-top:26px;padding-bottom:26px}}@font-face{font-family:"Dubai";src:url("../assets/fonts/dubai/DubaiLight.eot");src:url("../assets/fonts/dubai/DubaiLight.eot") format("embedded-opentype"),\r\n url("../assets/fonts/dubai/DubaiLight.woff2") format("woff2"),\r\n url("../assets/fonts/dubai/DubaiLight.woff") format("woff"),\r\n url("../assets/fonts/dubai/DubaiLight.ttf") format("truetype"),\r\n url("../assets/fonts/dubai/DubaiLight.svg#DubaiLight") format("svg");font-weight:300;font-style:normal}@font-face{font-family:"Dubai";src:url("../assets/fonts/dubai/DubaiRegular.eot");src:url("../assets/fonts/dubai/DubaiRegular.eot") format("embedded-opentype"),\r\n url("../assets/fonts/dubai/DubaiRegular.woff2") format("woff2"),\r\n url("../assets/fonts/dubai/DubaiRegular.woff") format("woff"),\r\n url("../assets/fonts/dubai/DubaiRegular.ttf") format("truetype"),\r\n url("../assets/fonts/dubai/DubaiRegular.svg#DubaiRegular") format("svg");font-weight:400;font-style:normal}@font-face{font-family:"Dubai";src:url("../assets/fonts/dubai/DubaiMedium.eot");src:url("../assets/fonts/dubai/DubaiMedium.eot") format("embedded-opentype"),\r\n url("../assets/fonts/dubai/DubaiMedium.woff2") format("woff2"),\r\n url("../assets/fonts/dubai/DubaiMedium.woff") format("woff"),\r\n url("../assets/fonts/dubai/DubaiMedium.ttf") format("truetype"),\r\n url("../assets/fonts/dubai/DubaiMedium.svg#DubaiMedium") format("svg");font-weight:500;font-style:normal}@font-face{font-family:"Dubai";src:url("../assets/fonts/dubai/DubaiBold.eot");src:url("../assets/fonts/dubai/DubaiBold.eot") format("embedded-opentype"),\r\n url("../assets/fonts/dubai/DubaiBold.woff2") format("woff2"),\r\n url("../assets/fonts/dubai/DubaiBold.woff") format("woff"),\r\n url("../assets/fonts/dubai/DubaiBold.ttf") format("truetype"),\r\n url("../assets/fonts/dubai/DubaiBold.svg#DubaiBold") format("svg");font-weight:700;font-style:normal}.material-flat-icon{font-variation-settings:\'FILL\' 1,\r\n \'wght\' 400,\r\n \'GRAD\' 0,\r\n \'opsz\' 24}.material-symbols-outlined{font-family:\'Material Symbols Outlined\';font-weight:normal;font-style:normal;font-size:24px;display:inline-block;line-height:1;-webkit-font-smoothing:antialiased}.material-icons{font-family:\'Material Icons\';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;-webkit-font-smoothing:antialiased}:root{--font-family-main:\'Dubai\', sans-serif}body{background-color:var(--dda-surface-100) !important;font-family:"Dubai", Helvetica, sans-serif !important;font-size:var(--font-caption) !important;font-weight:var(--font-weight-regular) !important;line-height:1.5;color:var(--dda-on-surface-0) !important;margin:0}legend{font-size:inherit !important}*{box-sizing:border-box}ul{margin:0}a{text-decoration:none}h1,h2,h3,h4,h5,h6,p{margin:0;padding:0}h1,.dda-h1{font-size:var(--dda-h1);font-weight:400}h2,.dda-h2{font-size:var(--dda-h2);font-weight:400}h3,.dda-h3{font-size:var(--dda-h3);font-weight:400}h4,.dda-h4{font-size:var(--dda-h4);font-weight:400}h5,.dda-h5{font-size:var(--dda-h5);font-weight:400}h6,.dda-h6{font-size:var(--dda-h6);font-weight:400}.dda-title{font-size:var(--dda-title);font-weight:500}.dda-body{font-size:var(--dda-body);font-weight:400}.dda-caption{font-size:var(--dda-caption);font-weight:400}.dda-label{font-size:var(--dda-label);font-weight:400}a,a:hover{text-decoration:none !important}button{cursor:pointer}ul{margin:0 !important;padding:0 !important;list-style:none}.dda-btn.cta-transparent{background:none;color:#ffffff;border:0px}.dda-btn.cta-transparent:hover{background:#ffffff;color:inherit}.dda-bg-primary{background-color:var(--dda-color-primary-40)}.dda-bg-secondary{background-color:var(--dda-color-secondary)}.dda-color-primary{color:var(--dda-color-primary-40)}.dda-color-secondary{color:var(--dda-color-primary-40)}.dda-color-error{color:var(--dda-color-error-40)}.dda-color-warning{color:var(--dda-color-warning-40)}.dda-color-success{color:var(--dda-color-warning-40)}.dda-color-info{color:var(--dda-color-info-40)}.dda-color-neutral{color:var(--dda-on-surface-40)}.dda-color-neutralvariant{color:var(--dda-on-surface-variant-40)}.dda-color-black{color:var(--dda-on-surface-0)}.visualy-hidden{position:absolute;opacity:0;width:0px;overflow:hidden}.dda-rounded-sm{border-radius:4px !important}.dda-rounded-md{border-radius:8px !important}.dda-rounded-lg{border-radius:12px !important}.dda-rounded-circle{border-radius:100px !important}.dda-gap-16{gap:4rem !important}.dda-gap-12{gap:3rem !important}.dda-gap-10{gap:2.5rem !important}.dda-gap-8{gap:2rem !important}.dda-gap-6{gap:1.5rem !important}.dda-gap-5{gap:1.25rem !important}.dda-gap-4{gap:1rem !important}.dda-gap-3{gap:.75rem !important}.dda-gap-2{gap:.5rem !important}.dda-gap-1{gap:0.375rem !important}.dda-text-center{text-align:center}::-ms-input-placeholder{color:#8E9191}::placeholder{color:#8E9191}.dda-items-start{align-items:flex-start}.dda-items-end{align-items:flex-end}.dda-items-center{align-items:center}.dda-items-baseline{align-items:baseline}.dda-items-stretch{align-items:stretch}.dda-position-static{position:static !important}.dda-position-relative{position:relative !important}.dda-position-absolute{position:absolute !important}.dda-position-fixed{position:fixed !important}.dda-position-sticky{position:-webkit-sticky !important;position:sticky !important}.top-0{top:0 !important}.top-50{top:50% !important}.top-100{top:100% !important}.bottom-0{bottom:0 !important}.bottom-50{bottom:50% !important}.bottom-100{bottom:100% !important}.start-0{left:0 !important}.start-50{left:50% !important}.start-100{left:100% !important}.end-0{right:0 !important}.end-50{right:50% !important}.end-100{right:100% !important}.border-right{border-inline-end:solid 1px #E5E5E5}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.maincontent{padding-top:170px;padding-bottom:100px}@media screen and (max-width: 767px){.maincontent{padding-top:100px}}';const rf=ef;const nf='.dda-input-container{display:flex;flex-direction:column;gap:8px;position:relative}.dda-input-label{font-size:var(--font-body);color:var(--dda-on-surface-0);line-height:24px;font-weight:var(--font-weight-regular)}.light-mode .dda-input-label{color:var(--dda-neutral-0)}.dda-input-field-wrapper{position:relative}.dda-field-group-input{height:32px;background-color:transparent;flex:1;font-size:var(--font-caption);font-weight:var(--dda-fw-400);padding:0px;color:var(--dda-on-surface-0);border:none;outline:none}.light-mode .dda-field-group-input{color:var(--dda-neutral-0)}.dda-input-field-group{width:100%;height:55px;padding:8px 16px;background:var(--dda-surface-100);border:1px solid var(--dda-surface-90);border-radius:8px;font-size:var(--font-caption);color:var(--dda-on-surface-0);position:relative;display:flex;align-items:center;gap:10px}.light-mode .dda-input-field-group{background:var(--dda-neutral-100);border:1px solid var(--dda-neutral-90);color:var(--dda-neutral-0)}.dda-input-field{width:100%;height:55px;padding:8px 16px;background:var(--dda-surface-100);border:1px solid var(--dda-surface-90);border-radius:8px;font-size:var(--font-body);color:var(--dda-on-surface-0);font-weight:var(--dda-fw-400)}.dda-date-picker input{color:var(--dda-on-surface-40)}.dda-date-picker input[type="date"]::-webkit-calendar-picker-indicator{color:var(--dda-on-surface-40)}.dda-date-picker input[type="date"]::-moz-calendar-picker-indicator{}.dda-date-picker input[type="date"].has-value{color:var(--dda-on-surface-0)}.light-mode .dda-input-field{background:var(--dda-neutral-100);border:1px solid var(--dda-neutral-90);color:var(--dda-neutral-0)}.dda-input-size-small .dda-input-field-group,.dda-input-size-small .dda-input-field{height:48px;padding:8px 12px}.dda-input-focus-filled .dda-phone-field,.dda-input-focus .dda-input-field-group,.dda-input-field:focus{border-color:var(--dda-color-primary-40);box-shadow:0px 0px 0px 3px var(--dda-primary-variant-95)}.dda-input-field:focus-visible{outline:1px solid var(--dda-color-primary-40);outline-offset:-1px}.light-mode.dda-input-focus-filled .dda-phone-field,.light-mode.dda-input-focus .dda-input-field-group,.light-mode .dda-input-field:focus{outline:none;border-color:var(--dda-primary-40);box-shadow:0px 0px 0px 3px var(--dda-primary-95)}.dda-input-dropdown-btn{min-width:110px;position:relative;display:inline-block;padding:0}.dda-dropdown-select{width:100%;height:32px;display:flex;justify-content:space-between;background:transparent;border:transparent;font-size:var(--font-caption);color:var(--dda-on-surface-0);padding:0;align-items:center;cursor:pointer;gap:6px}.dda-dropdown-select:focus-visible{outline:1px solid var(--dda-color-primary-40);outline-offset:1px}.light-mode .dda-dropdown-select{color:var(--dda-neutral-0)}.dda-dropdown-select img{width:24px}.dda-dropdown-container{position:relative;width:auto;}.dda-dropdown-container.bg-transparent .dda-dropdown-header{padding:0px;height:auto;background:transparent;border:transparent;box-shadow:none}.dda-dropdown-header{width:auto;display:flex;align-items:center;gap:15px}.dda-dropdown-header .three-dots{font-size:25px;color:var(--dda-neutral-variant-60)}.dda-dropdown-header .three-dots path{fill:var(--dda-neutral-variant-60)}.dda-dropdown-header .dda-dropdown-text{flex:1;display:flex;justify-content:space-between;gap:15px}.dda-dropdown-header .dda-dropdown-text span{color:var(--dda-on-surface-variant-30);display:flex;align-items:center}.light-mode .dda-dropdown-text span{color:var(--dda-neutral-variant-30)}.dda-dropdown-header .dda-dropdown-text i{font-size:31px}.dda-dropdown-header .dda-dropdown-text path{fill:var(--dda-on-surface-variant-30)}.light-mode .dda-dropdown-header .dda-dropdown-text path{fill:var(--dda-neutral-variant-30)}.dda-dropdown-header:focus .three-dots path{fill:var(--dda-on-surface-variant-30)}.dda-input-dropdown-list{width:100%;min-width:150px;max-height:200px;background-color:var(--dda-neutral-100);border:1px solid var(--dda-neutral-90);border-radius:8px;overflow-y:auto;position:absolute;top:100%;margin-top:1px;inset-inline-start:0px;z-index:9999;box-shadow:0px 8px 10px -6px #1018281A}.dda-input-dropdown-list::-webkit-scrollbar-track{border-radius:4px}.dda-input-dropdown-list::-webkit-scrollbar{width:4px}.dda-input-dropdown-list::-webkit-scrollbar-thumb{border-radius:4px;background-color:var(--dda-neutral-variant-30)}.dda-input-dropdown-item{display:flex;align-items:center;gap:7px;width:100%;font-size:var(--font-caption);background:transparent;border:transparent;padding:10px;cursor:pointer}.dda-input-dropdown-item:focus-visible,.dda-input-dropdown-item:hover,.dda-input-dropdown-item.selected{background-color:var(--dda-neutral-variant-95);outline:0}.dda-input-dropdown-list .country-select img{width:20px}.dda-helper-text{display:flex;align-items:center;justify-content:space-between;font-size:var(--font-caption);color:var(--dda-on-surface-variant-30)}.light-mode .dda-helper-text{color:var(--dda-neutral-30)}.dda-error-message{display:flex;justify-content:space-between;font-size:var(--font-caption);color:var(--dda-color-error-40)}.dda-helper-text i,.dda-helper-text svg,.dda-error-message i,.dda-error-message svg{font-size:21px}.dda-success-text{display:flex;justify-content:space-between;font-size:var(--font-caption);color:var(--dda-color-success-40)}.dda-validation-error .dda-input-field-group,.dda-validation-error .dda-input-field{color:var(--dda-color-error-40);border-color:var(--dda-color-error-40);box-shadow:none}.light-mode.dda-validation-error .dda-input-field-group,.light-mode.dda-validation-error .dda-input-field{color:var(--dda-error-40);border-color:var(--dda-error-40);box-shadow:none}.dda-validation-error .icon-close,.dda-validation-error .dda-error-message,.dda-validation-error .dda-field-group-input,.dda-validation-error .dda-file-input span{color:var(--dda-color-error-40) !important}.light-mode.dda-validation-error .icon-close,.light-mode.dda-validation-error .dda-error-message,.light-mode.dda-validation-error .dda-field-group-input,.light-mode.dda-validation-error .dda-file-input span{color:var(--dda-error-40) !important}.dda-validation-error .dda-input-field::-ms-input-placeholder,.dda-validation-error .dda-field-group-input::-ms-input-placeholder{color:var(--dda-color-error-40)}.light-mode.dda-validation-error .dda-input-field::-ms-input-placeholder,.light-mode.dda-validation-error .dda-field-group-input::-ms-input-placeholder{color:var(--dda-error-40)}.dda-validation-error .dda-input-field::placeholder,.dda-validation-error .dda-field-group-input::placeholder{color:var(--dda-color-error-40)}.light-mode.dda-validation-error .dda-input-field::placeholder,.light-mode.dda-validation-error .dda-field-group-input::placeholder{color:var(--dda-error-40)}.dda-input-disabled .dda-input-label,.dda-input-disabled .dda-helper-text,.dda-input-disabled .dda-error-message,.dda-input-disabled i,.dda-input-disabled .dda-dropdown-select,.dda-input-disabled .dda-file-input span,.dda-input-disabled .dda-file-choose{color:var(--dda-neutral-60) !important}.dda-input-disabled .dda-input-field-group,.dda-input-disabled .dda-input-field{background:var(--dda-neutral-92);border-color:var(--dda-neutral-90);color:var(--dda-neutral-60) !important;box-shadow:none;pointer-events:none;outline:none}.dda-input-disabled i{color:var(--dda-neutral-variant-60)}.dda-input-disabled svg path{fill:var(--dda-neutral-variant-60)}.dda-input-disabled .dda-input-field::-ms-input-placeholder{color:var(--dda-neutral-60)}.dda-input-disabled .dda-input-field::placeholder{color:var(--dda-neutral-60)}.dda-input-disabled .dda-btn{background-color:var(--dda-neutral-70) !important;border-color:var(--dda-neutral-70) !important}.dda-input-disabled .dda-dropdown-select img,.dda-input-disabled .dda-input-field-wrapper img{filter:grayscale(1)}.dda-number-field .dda-field-group-input{padding-inline-end:10px;border-inline-end:solid 1px var(--dda-neutral-90)}.dda-number-field .dda-field-group-input:focus,.dda-phone-field .dda-field-group-input:focus{border-inline-start:solid 1px var(--dda-color-primary-40)}.dda-number-field .dda-field-group-input:focus-visible,.dda-phone-field .dda-field-group-input:focus-visible{outline:1px solid var(--dda-surface-100);outline-offset:-1px}.dda-number-field .dda-input-dropdown-btn{min-width:80px}.dda-number-field .dda-input-dropdown-list{top:44px}.dda-input-size-small .dda-number-field .dda-input-dropdown-list{top:41px}.dda-input-textarea{height:auto;min-height:120px;resize:vertical}.dda-search-area{position:relative}.dda-search-area .icon-left{position:absolute;top:16px;inset-inline-start:15px;font-size:24px;color:var(--dda-on-surface-variant-30)}.light-mode .dda-search-area .icon-left{color:var(--dda-neutral-variant-30)}.dda-input-size-small .dda-search-area .icon-left{top:14px}.dda-search-area .dda-search-btngroup{height:40px;position:absolute;top:7px;inset-inline-end:7px;display:inline-flex;align-items:center;gap:5px}.dda-input-size-small .dda-search-btngroup{top:4px}.dda-search-area .dda-search-close-icon{display:flex;color:var(--dda-on-surface-variant-30);font-size:20px;margin:0px;padding:0px;background:none;border:0;cursor:pointer}.light-mode .dda-search-area .dda-search-close-icon{color:var(--dda-neutral-variant-30)}.dda-search-field{padding:8px 26px 8px 40px}.dda-search-action .dda-search-field{padding-top:8px;padding-bottom:8px;padding-inline-start:40px}.dda-search-action .dda-search-field.has-search-button{padding-inline-end:110px}.dda-search-sm .icon-left{top:14px}.dda-search-sm .dda-search-btngroup{top:4px}.dda-phone-field-group{display:flex;justify-content:space-between;align-items:center}.dda-phone-field-group.dda-phone-field-small{height:48px}.dda-phone-field-group.focused,.dda-phone-field-group.filled{outline:none;border-color:var(--dda-color-primary-40);box-shadow:0px 0px 0px 3px var(--dda-primary-variant-95)}.dda-phone-field-group.error{border-color:var(--dda-color-error-40);box-shadow:none}.phone-field-country-code{border:none;background:none;margin-inline-end:0.5rem;font-size:1rem;color:var(--dda-on-surface-0)}.phone-field-country-code:focus-within{outline:0}.dda-phone-field .dda-input-dropdown-list{top:44px}.dda-input-size-small .dda-phone-field .dda-input-dropdown-list{top:41px}.dda-credit-card-field .dda-creditcard-icon{width:40px;position:absolute;top:14px;inset-inline-start:15px}.dda-input-size-small .dda-creditcard-icon{top:11px}.dda-credit-card-field .dda-input-field{padding:8px 16px 8px 65px}[dir="rtl"] .dda-credit-card-field .dda-input-field{padding:8px 65px 8px 16px}.dda-select-header{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px}.dda-select-header i{font-size:28px;color:var(--dda-on-surface-variant-30)}.dda-select-header .dda-select-button-label:empty{flex-grow:1}.dda-input-container.dda-richtext-editor{gap:0px}.dda-richtext-editor .dda-input-label{margin-bottom:8px}.dda-richtext-editor .dda-helper-text,.dda-richtext-editor .dda-error-message{margin-top:8px}.dda-richtext-editor .ql-toolbar.ql-snow{border:1px solid var(--dda-neutral-90) !important;border-radius:8px 8px 0 0}.dda-richeditor-field{border:1px solid var(--dda-neutral-90) !important;border-radius:0 0 8px 8px}.dda-richeditor-field .ql-editor{height:100px;font-size:var(--font-caption)}.dda-input-field-group.dda-attach-file{padding-inline-end:6px}.dda-file-input{width:100%;display:flex;justify-content:space-between;align-items:center}.dda-file-input span{font-size:var(--font-caption);color:var(--dda-on-surface-variant-30)}.light-mode .dda-file-input span{color:var(--dda-neutral-variant-30)}.dda-file-choose{height:40px;background-color:var(--dda-neutral-100);border:solid 1px var(--dda-neutral-90);color:var(--dda-color-primary-40);font-weight:var(--dda-fw-500);padding:8px 16px;border-radius:8px;cursor:pointer}.dda-file-choose:focus{outline:solid 1px var(--dda-color-primary-40);outline-offset:-1px}.light-mode .dda-file-choose{color:var(--dda-primary-40)}.dda-input-disabled .dda-file-choose{background-color:var(--dda-neutral-95)}.dda-file-choose input{display:none}.dda-file-details{width:100%;display:flex;align-items:center;justify-content:space-between;padding-inline-end:10px}.dda-file-icon{width:34px;height:34px}.dda-items{display:flex;align-items:center;gap:8px}.dda-file-details .remove-file{margin:0;padding:0;background:transparent;border:transparent}.dda-file-details .remove-file svg{font-size:var(--font-caption)}.dda-file-name{font-size:var(--font-caption)}.dda-remove-file{font-size:20px;background:transparent;border:transparent;color:var(--dda-on-surface-variant-30);cursor:pointer;padding:0px}input[type="date"]::-webkit-input-placeholder{color:transparent}input[type="date"]::-moz-placeholder{color:transparent}input[type="date"]::placeholder{color:transparent}';const af=nf;const sf=class{constructor(r){t(this,r);this.textareaChanged=e(this,"textareaChanged",7);this.textareaBlurred=e(this,"textareaBlurred",7);this.value="";this.show_info_icon=false;this.characterCount=0;this.internalValue=""}async getValue(){return this.internalValue||this.value||""}componentDidLoad(){var t;if(this.enable_rich_editor){const t=this.el.querySelector("#editor");this.quill=new Oo(t,{modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{header:[1,2,3,4,5,6,false]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},theme:"snow",placeholder:this.placeholder});this.quill.on("text-change",(()=>{const t=this.quill.root.innerHTML;this.internalValue=t;this.characterCount=this.quill.getText().trim().length;this.textareaChanged.emit()}));if(this.value){this.quill.root.innerHTML=this.value;this.internalValue=this.value;this.characterCount=this.quill.getText().trim().length}}else{this.internalValue=this.value;this.characterCount=((t=this.value)===null||t===void 0?void 0:t.length)||0}}handleInput(t){const e=t.target.value;this.internalValue=e;this.characterCount=e.length;this.textareaChanged.emit(t)}handleBlur(t){const e=t.target.value.trim();this.textareaBlurred.emit({name:this.textarea_name,value:e})}render(){const t=["dda-input-container dda-richtext-editor",this.validation_type?`dda-validation-${this.validation_type}`:"",this.input_status?`dda-input-${this.input_status}`:"",this.custom_class,this.component_mode,this.textarea_name].filter(Boolean).join(" ");return r(n,{key:"1d24f469c24fc94ae88057080f422efc3991c1cf"},r("div",{key:"ea9d5f54b60fd02a5ea68c4e20cf298c040b3fae",class:t},this.label&&r("label",{key:"1df6489d34c10d0f82553298d17831e0dceb0da9",htmlFor:this.input_id,class:"dda-input-label"},this.label),this.enable_rich_editor?r("div",{id:"editor",class:"dda-richeditor-field"}):r("textarea",{id:this.input_id,name:this.textarea_name,"aria-label":this.aria_label,placeholder:this.placeholder,value:this.internalValue||this.value,"aria-invalid":this.validation_type==="error"?"true":"false",class:"dda-input-field dda-input-textarea",maxLength:this.max_characters,onInput:t=>this.handleInput(t),onBlur:t=>this.handleBlur(t)}),this.validation_type==="error"&&this.error_message?r("div",{class:"dda-error-message",id:this.validation_id},r("span",{class:"dda-d-flex dda-items-center dda-gap-2"},this.show_info_icon&&r("i",{class:"material-icons material-symbols-outlined","aria-hidden":"true"},"info"),this.error_message),r("span",{class:"dda-letter-count"},this.characterCount," / ",this.max_characters)):r("div",{class:"dda-helper-text",id:this.validation_id},r("span",{class:"dda-d-flex dda-items-center dda-gap-2"},this.show_info_icon&&r("i",{class:"material-icons material-symbols-outlined","aria-hidden":"true"},"info"),this.helper_text),r("span",{class:"dda-letter-count"},this.characterCount," / ",this.max_characters))))}get el(){return i(this)}};sf.style=rf+af;export{sf as dda_textarea};
2
+ //# sourceMappingURL=p-a66ec21a.entry.js.map