imatrix-ui 2.8.97-dw-tmp2 → 2.8.97-dw-tmp4

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 (107) hide show
  1. package/lib/super-ui.css +1 -0
  2. package/lib/super-ui.umd.min.js +36 -1
  3. package/package.json +1 -2
  4. package/src/i18n/i18n.js +1 -1
  5. package/src/i18n/langs/cn.js +1 -1
  6. package/src/i18n/langs/en.js +1 -1
  7. package/src/permission.js +1 -1
  8. package/src/plugins.js +4 -4
  9. package/src/store/modules/permission.js +5 -0
  10. package/src/styles/index.scss +2 -2
  11. package/src/utils/permissionAuth.js +6 -0
  12. package/src/utils/request.js +1 -1
  13. package/src/views/login/index.vue +1 -1
  14. package/lib/css/super-ui.common~46f24e9d.f712732a.css +0 -1
  15. package/lib/css/super-ui.common~60a56baa.e6f54088.css +0 -1
  16. package/lib/css/super-ui.common~691e02b5.3387eefb.css +0 -1
  17. package/lib/css/super-ui.common~e2e93592.e9ec19a9.css +0 -1
  18. package/lib/css/super-ui.umd.min~46f24e9d.f712732a.css +0 -1
  19. package/lib/css/super-ui.umd.min~60a56baa.e6f54088.css +0 -1
  20. package/lib/css/super-ui.umd.min~691e02b5.3387eefb.css +0 -1
  21. package/lib/css/super-ui.umd.min~e2e93592.e9ec19a9.css +0 -1
  22. package/lib/css/super-ui.umd~46f24e9d.f712732a.css +0 -1
  23. package/lib/css/super-ui.umd~60a56baa.e6f54088.css +0 -1
  24. package/lib/css/super-ui.umd~691e02b5.3387eefb.css +0 -1
  25. package/lib/css/super-ui.umd~e2e93592.e9ec19a9.css +0 -1
  26. package/lib/css/vendors~super-ui.common~253ae210.b57e4bfb.css +0 -1
  27. package/lib/css/vendors~super-ui.umd.min~253ae210.b57e4bfb.css +0 -1
  28. package/lib/css/vendors~super-ui.umd~253ae210.b57e4bfb.css +0 -1
  29. package/lib/css/yarn.tinymce~97d7b732.ea366551.css +0 -1
  30. package/lib/super-ui.common.super-ui.common~46f24e9d.js +0 -12446
  31. package/lib/super-ui.common.super-ui.common~60a56baa.js +0 -2774
  32. package/lib/super-ui.common.super-ui.common~691e02b5.js +0 -3062
  33. package/lib/super-ui.common.super-ui.common~970f9218.js +0 -3729
  34. package/lib/super-ui.common.super-ui.common~bd3594d6.js +0 -5264
  35. package/lib/super-ui.common.super-ui.common~e2e93592.js +0 -6945
  36. package/lib/super-ui.common.vendors~super-ui.common~253ae210.js +0 -3504
  37. package/lib/super-ui.common.yarn.async-validator~7864cd12.js +0 -1225
  38. package/lib/super-ui.common.yarn.core-js~2b13b260.js +0 -7542
  39. package/lib/super-ui.common.yarn.gcommon~c5c7b9b4.js +0 -11
  40. package/lib/super-ui.common.yarn.gcommon~cd278a5f.js +0 -4846
  41. package/lib/super-ui.common.yarn.resize-observer-polyfill~7370204d.js +0 -942
  42. package/lib/super-ui.common.yarn.sortablejs~f811d8fd.js +0 -3714
  43. package/lib/super-ui.common.yarn.tinymce~253ae210.js +0 -568
  44. package/lib/super-ui.common.yarn.tinymce~29bc5d46.js +0 -2125
  45. package/lib/super-ui.common.yarn.tinymce~35f50c21.js +0 -34090
  46. package/lib/super-ui.common.yarn.tinymce~8a52df3b.js +0 -30088
  47. package/lib/super-ui.common.yarn.tinymce~97d7b732.js +0 -31
  48. package/lib/super-ui.common.yarn.tinymce~b5d80f29.js +0 -7936
  49. package/lib/super-ui.common.yarn.tinymce~c1068939.js +0 -13346
  50. package/lib/super-ui.common.yarn.vue-i18n~02576867.js +0 -2179
  51. package/lib/super-ui.common.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -1069
  52. package/lib/super-ui.common.yarn.zxing~3446ce64.js +0 -11996
  53. package/lib/super-ui.common.yarn.zxing~61a1471b.js +0 -11202
  54. package/lib/super-ui.common.yarn.zxing~b49f3034.js +0 -3576
  55. package/lib/super-ui.common.yarn.zxing~fd3cc9f3.js +0 -2916
  56. package/lib/super-ui.umd.min.super-ui.umd.min~46f24e9d.js +0 -2
  57. package/lib/super-ui.umd.min.super-ui.umd.min~60a56baa.js +0 -2
  58. package/lib/super-ui.umd.min.super-ui.umd.min~691e02b5.js +0 -2
  59. package/lib/super-ui.umd.min.super-ui.umd.min~970f9218.js +0 -2
  60. package/lib/super-ui.umd.min.super-ui.umd.min~bd3594d6.js +0 -2
  61. package/lib/super-ui.umd.min.super-ui.umd.min~e2e93592.js +0 -2
  62. package/lib/super-ui.umd.min.vendors~super-ui.umd.min~253ae210.js +0 -24
  63. package/lib/super-ui.umd.min.yarn.async-validator~7864cd12.js +0 -2
  64. package/lib/super-ui.umd.min.yarn.core-js~2b13b260.js +0 -2
  65. package/lib/super-ui.umd.min.yarn.gcommon~c5c7b9b4.js +0 -2
  66. package/lib/super-ui.umd.min.yarn.gcommon~cd278a5f.js +0 -26
  67. package/lib/super-ui.umd.min.yarn.resize-observer-polyfill~7370204d.js +0 -2
  68. package/lib/super-ui.umd.min.yarn.sortablejs~f811d8fd.js +0 -8
  69. package/lib/super-ui.umd.min.yarn.tinymce~253ae210.js +0 -2
  70. package/lib/super-ui.umd.min.yarn.tinymce~29bc5d46.js +0 -2
  71. package/lib/super-ui.umd.min.yarn.tinymce~35f50c21.js +0 -2
  72. package/lib/super-ui.umd.min.yarn.tinymce~8a52df3b.js +0 -2
  73. package/lib/super-ui.umd.min.yarn.tinymce~97d7b732.js +0 -2
  74. package/lib/super-ui.umd.min.yarn.tinymce~b5d80f29.js +0 -2
  75. package/lib/super-ui.umd.min.yarn.tinymce~c1068939.js +0 -2
  76. package/lib/super-ui.umd.min.yarn.vue-i18n~02576867.js +0 -7
  77. package/lib/super-ui.umd.min.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -8
  78. package/lib/super-ui.umd.min.yarn.zxing~3446ce64.js +0 -2
  79. package/lib/super-ui.umd.min.yarn.zxing~61a1471b.js +0 -2
  80. package/lib/super-ui.umd.min.yarn.zxing~b49f3034.js +0 -2
  81. package/lib/super-ui.umd.min.yarn.zxing~fd3cc9f3.js +0 -2
  82. package/lib/super-ui.umd.super-ui.umd~46f24e9d.js +0 -12446
  83. package/lib/super-ui.umd.super-ui.umd~60a56baa.js +0 -2774
  84. package/lib/super-ui.umd.super-ui.umd~691e02b5.js +0 -3062
  85. package/lib/super-ui.umd.super-ui.umd~970f9218.js +0 -3739
  86. package/lib/super-ui.umd.super-ui.umd~bd3594d6.js +0 -5264
  87. package/lib/super-ui.umd.super-ui.umd~e2e93592.js +0 -6945
  88. package/lib/super-ui.umd.vendors~super-ui.umd~253ae210.js +0 -3504
  89. package/lib/super-ui.umd.yarn.async-validator~7864cd12.js +0 -1225
  90. package/lib/super-ui.umd.yarn.core-js~2b13b260.js +0 -7542
  91. package/lib/super-ui.umd.yarn.gcommon~c5c7b9b4.js +0 -11
  92. package/lib/super-ui.umd.yarn.gcommon~cd278a5f.js +0 -4846
  93. package/lib/super-ui.umd.yarn.resize-observer-polyfill~7370204d.js +0 -942
  94. package/lib/super-ui.umd.yarn.sortablejs~f811d8fd.js +0 -3714
  95. package/lib/super-ui.umd.yarn.tinymce~253ae210.js +0 -568
  96. package/lib/super-ui.umd.yarn.tinymce~29bc5d46.js +0 -2125
  97. package/lib/super-ui.umd.yarn.tinymce~35f50c21.js +0 -34090
  98. package/lib/super-ui.umd.yarn.tinymce~8a52df3b.js +0 -30088
  99. package/lib/super-ui.umd.yarn.tinymce~97d7b732.js +0 -31
  100. package/lib/super-ui.umd.yarn.tinymce~b5d80f29.js +0 -7936
  101. package/lib/super-ui.umd.yarn.tinymce~c1068939.js +0 -13346
  102. package/lib/super-ui.umd.yarn.vue-i18n~02576867.js +0 -2179
  103. package/lib/super-ui.umd.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -1069
  104. package/lib/super-ui.umd.yarn.zxing~3446ce64.js +0 -11996
  105. package/lib/super-ui.umd.yarn.zxing~61a1471b.js +0 -11202
  106. package/lib/super-ui.umd.yarn.zxing~b49f3034.js +0 -3576
  107. package/lib/super-ui.umd.yarn.zxing~fd3cc9f3.js +0 -2916
@@ -1,2 +0,0 @@
1
- (("undefined"!==typeof self?self:this)["webpackJsonpsuper_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpsuper_ui"]||[]).push([[18],{"0342":function(e,f,n){},"0d68":function(e,f,n){n("030f")},"3b2e":function(e,f,n){}}]);
2
- //# sourceMappingURL=super-ui.umd.min.yarn.tinymce~97d7b732.js.map
@@ -1,2 +0,0 @@
1
- (("undefined"!==typeof self?self:this)["webpackJsonpsuper_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpsuper_ui"]||[]).push([[19],{"0a9d":function(t,e,n){n("69a4")},2401:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},n=function(t){return function(n){return e(n)===t}},r=function(t){return function(e){return typeof e===t}},o=n("string"),i=n("object"),a=n("array"),u=r("boolean"),c=r("function"),s=r("number"),l=function(){},f=function(t){return function(){return t}},d=function(t){return t},m=function(t,e){return t===e},g=function(t){return function(e){return!t(e)}},p=f(!1),v=f(!0),h=function(){return y},y=function(){var t=function(t){return t()},e=d,n={fold:function(t,e){return t()},isSome:p,isNone:v,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:e,orThunk:t,map:h,each:l,bind:h,exists:p,forall:v,filter:function(){return h()},toArray:function(){return[]},toString:f("none()")};return n}(),b=function(t){var e=f(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:v,isNone:p,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return b(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:y},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},w=function(t){return null===t||void 0===t?y:b(t)},x={some:b,none:h,from:w},C=Array.prototype.slice,k=Array.prototype.push,S=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},T=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},O=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},D=function(t,e){if(0===t.length)return[];for(var n=e(t[0]),r=[],o=[],i=0,a=t.length;i<a;i++){var u=t[i],c=e(u);c!==n&&(r.push(o),o=[]),n=c,o.push(u)}return 0!==o.length&&r.push(o),r},P=function(t,e,n){return T(t,(function(t,r){n=e(n,t,r)})),n},A=function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return x.some(i);if(n(i,r))break}return x.none()},N=function(t,e){return A(t,e,p)},L=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!a(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);k.apply(e,t[n])}return e},_=function(t,e){return L(S(t,e))},E=function(t){var e=C.call(t,0);return e.reverse(),e},I=function(t,e){return e>=0&&e<t.length?x.some(t[e]):x.none()},R=function(t){return I(t,0)},M=function(t){return I(t,t.length-1)},U=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return x.none()},B=function(){return B=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},B.apply(this,arguments)};function j(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}var F=function(t){var e,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,e=t.apply(null,r)),e}},z=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),i=t.isiOS()&&!o,a=t.isiOS()||t.isAndroid(),u=a||r("(pointer:coarse)"),c=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!c,l=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),d=!s&&!c&&!l;return{isiPad:f(o),isiPhone:f(i),isTablet:f(c),isPhone:f(s),isTouch:f(u),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:f(l),isDesktop:f(d)}},H=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},$=function(t,e){var n=H(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return V(r(1),r(2))},K=function(t,e){var n=String(e).toLowerCase();return 0===t.length?q():$(t,n)},q=function(){return V(0,0)},V=function(t,e){return{major:t,minor:e}},W={nu:V,detect:K,unknown:q},G=function(t,e){return U(e.brands,(function(e){var n=e.brand.toLowerCase();return N(t,(function(t){var e;return n===(null===(e=t.brand)||void 0===e?void 0:e.toLowerCase())})).map((function(t){return{current:t.name,version:W.nu(parseInt(e.version,10),0)}}))}))},X=function(t,e){var n=String(e).toLowerCase();return N(t,(function(t){return t.search(n)}))},J=function(t,e){return X(t,e).map((function(t){var n=W.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},Q=function(t,e){return X(t,e).map((function(t){var n=W.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},Y=function(t,e){return-1!==t.indexOf(e)},Z=function(t){return function(e){return e.replace(t,"")}},tt=Z(/^\s+|\s+$/g),et=function(t){return t.length>0},nt=function(t){return!et(t)},rt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ot=function(t){return function(e){return Y(e,t)}},it=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return Y(t,"edge/")&&Y(t,"chrome")&&Y(t,"safari")&&Y(t,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,rt],search:function(t){return Y(t,"chrome")&&!Y(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return Y(t,"msie")||Y(t,"trident")}},{name:"Opera",versionRegexes:[rt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ot("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ot("firefox")},{name:"Safari",versionRegexes:[rt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(Y(t,"safari")||Y(t,"mobile/"))&&Y(t,"applewebkit")}}],at=[{name:"Windows",search:ot("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return Y(t,"iphone")||Y(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ot("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ot("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ot("linux"),versionRegexes:[]},{name:"Solaris",search:ot("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ot("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ot("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ut={browsers:f(it),oses:f(at)},ct="Edge",st="Chrome",lt="IE",ft="Opera",dt="Firefox",mt="Safari",gt=function(){return pt({current:void 0,version:W.unknown()})},pt=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(ct),isChrome:r(st),isIE:r(lt),isOpera:r(ft),isFirefox:r(dt),isSafari:r(mt)}},vt={unknown:gt,nu:pt,edge:f(ct),chrome:f(st),ie:f(lt),opera:f(ft),firefox:f(dt),safari:f(mt)},ht="Windows",yt="iOS",bt="Android",wt="Linux",xt="OSX",Ct="Solaris",kt="FreeBSD",St="ChromeOS",Tt=function(){return Ot({current:void 0,version:W.unknown()})},Ot=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(ht),isiOS:r(yt),isAndroid:r(bt),isOSX:r(xt),isLinux:r(wt),isSolaris:r(Ct),isFreeBSD:r(kt),isChromeOS:r(St)}},Dt={unknown:Tt,nu:Ot,windows:f(ht),ios:f(yt),android:f(bt),linux:f(wt),osx:f(xt),solaris:f(Ct),freebsd:f(kt),chromeos:f(St)},Pt=function(t,e,n){var r=ut.browsers(),o=ut.oses(),i=e.bind((function(t){return G(r,t)})).orThunk((function(){return J(r,t)})).fold(vt.unknown,vt.nu),a=Q(o,t).fold(Dt.unknown,Dt.nu),u=z(a,i,t,n);return{browser:i,os:a,deviceType:u}},At={detect:Pt},Nt=function(t){return window.matchMedia(t).matches},Lt=F((function(){return At.detect(navigator.userAgent,x.from(navigator.userAgentData),Nt)})),_t=function(){return Lt()},Et=function(t,e,n){return 0!==(t.compareDocumentPosition(e)&n)},It=function(t,e){return Et(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},Rt=1,Mt=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return jt(r.childNodes[0])},Ut=function(t,e){var n=e||document,r=n.createElement(t);return jt(r)},Bt=function(t,e){var n=e||document,r=n.createTextNode(t);return jt(r)},jt=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},Ft=function(t,e,n){return x.from(t.dom.elementFromPoint(e,n)).map(jt)},zt={fromHtml:Mt,fromTag:Ut,fromText:Bt,fromDom:jt,fromPoint:Ft},Ht=function(t,e){var n=t.dom;if(n.nodeType!==Rt)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},$t=function(t,e){return t.dom===e.dom},Kt=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},qt=function(t,e){return It(t.dom,e.dom)},Vt=function(t,e){return _t().browser.isIE()?qt(t,e):Kt(t,e)},Wt=Ht,Gt=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Xt=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Jt=tinymce.util.Tools.resolve("tinymce.util.VK"),Qt=Object.keys,Yt=function(t,e){for(var n=Qt(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];e(a,i)}},Zt=function(t){return function(e,n){t[n]=e}},te=function(t,e,n,r){var o={};return Yt(t,(function(t,o){(e(t,o)?n:r)(t,o)})),o},ee=function(t,e){var n={};return te(t,e,Zt(n),l),n};"undefined"!==typeof window?window:Function("return this;")();var ne=function(t){var e=t.dom.nodeName;return e.toLowerCase()},re=function(t){return t.dom.nodeType},oe=function(t){return function(e){return re(e)===t}},ie=oe(Rt),ae=function(t){return function(e){return ie(e)&&ne(e)===t}},ue=function(t,e,n){if(!(o(n)||u(n)||s(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},ce=function(t,e){var n=t.dom;Yt(e,(function(t,e){ue(n,e,t)}))},se=function(t){return P(t.dom.attributes,(function(t,e){return t[e.name]=e.value,t}),{})},le=function(t){return x.from(t.dom.parentNode).map(zt.fromDom)},fe=function(t){return S(t.dom.childNodes,zt.fromDom)},de=function(t,e){var n=t.dom.childNodes;return x.from(n[e]).map(zt.fromDom)},me=function(t){return de(t,0)},ge=function(t){return de(t,t.dom.childNodes.length-1)},pe=function(t,e){var n=le(t);n.each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},ve=function(t,e){t.dom.appendChild(e.dom)},he=function(t,e){T(e,(function(e){pe(t,e)}))},ye=function(t,e){T(e,(function(e){ve(t,e)}))},be=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},we=function(t,e){return zt.fromDom(t.dom.cloneNode(e))},xe=function(t){return we(t,!0)},Ce=function(t,e){var n=zt.fromTag(e),r=se(t);return ce(n,r),n},ke=function(t,e){var n=Ce(t,e);pe(t,n);var r=fe(t);return ye(n,r),be(t),n},Se=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Te=tinymce.util.Tools.resolve("tinymce.util.Tools"),Oe=function(t){return function(e){return e&&e.nodeName.toLowerCase()===t}},De=function(t){return function(e){return e&&t.test(e.nodeName)}},Pe=function(t){return t&&3===t.nodeType},Ae=De(/^(OL|UL|DL)$/),Ne=De(/^(OL|UL)$/),Le=Oe("ol"),_e=De(/^(LI|DT|DD)$/),Ee=De(/^(DT|DD)$/),Ie=De(/^(TH|TD)$/),Re=Oe("br"),Me=function(t){return t.parentNode.firstChild===t},Ue=function(t,e){return e&&!!t.schema.getTextBlockElements()[e.nodeName]},Be=function(t,e){return t&&t.nodeName in e},je=function(t,e){return!!Re(e)&&(t.isBlock(e.nextSibling)&&!Re(e.previousSibling))},Fe=function(t,e,n){var r=t.isEmpty(e);return!(n&&t.select("span[data-mce-type=bookmark]",e).length>0)&&r},ze=function(t,e){return t.isChildOf(e,t.getRoot())},He=function(t){return t.getParam("lists_indent_on_tab",!0)},$e=function(t){var e=t.getParam("forced_root_block","p");return!1===e?"":!0===e?"p":e},Ke=function(t){return t.getParam("forced_root_block_attrs",{})},qe=function(t,e){var n,r,o,i=t.dom,a=t.schema.getBlockElements(),u=i.createFragment(),c=$e(t);if(c&&(r=i.create(c),r.tagName===c.toUpperCase()&&i.setAttribs(r,Ke(t)),Be(e.firstChild,a)||u.appendChild(r)),e)while(n=e.firstChild){var s=n.nodeName;o||"SPAN"===s&&"bookmark"===n.getAttribute("data-mce-type")||(o=!0),Be(n,a)?(u.appendChild(n),r=null):c?(r||(r=i.create(c),u.appendChild(r)),r.appendChild(n)):u.appendChild(n)}return c?o||r.appendChild(i.create("br",{"data-mce-bogus":"1"})):u.appendChild(i.create("br")),u},Ve=Se.DOM,We=function(t,e,n){var r=function(t){Te.each(o,(function(e){t.parentNode.insertBefore(e,n.parentNode)})),Ve.remove(t)},o=Ve.select('span[data-mce-type="bookmark"]',e),i=qe(t,n),a=Ve.createRng();a.setStartAfter(n),a.setEndAfter(e);for(var u=a.extractContents(),c=u.firstChild;c;c=c.firstChild)if("LI"===c.nodeName&&t.dom.isEmpty(c)){Ve.remove(c);break}t.dom.isEmpty(u)||Ve.insertAfter(u,e),Ve.insertAfter(i,e),Fe(t.dom,n.parentNode)&&r(n.parentNode),Ve.remove(n),Fe(t.dom,e)&&Ve.remove(e)},Ge=ae("dd"),Xe=ae("dt"),Je=function(t,e){Ge(e)?ke(e,"dt"):Xe(e)&&le(e).each((function(n){return We(t,n.dom,e.dom)}))},Qe=function(t){Xe(t)&&ke(t,"dd")},Ye=function(t,e,n){T(n,"Indent"===e?Qe:function(e){return Je(t,e)})},Ze=function(t,e){if(Pe(t))return{container:t,offset:e};var n=Gt.getNode(t,e);return Pe(n)?{container:n,offset:e>=t.childNodes.length?n.data.length:0}:n.previousSibling&&Pe(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&Pe(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:t,offset:e}},tn=function(t){var e=t.cloneRange(),n=Ze(t.startContainer,t.startOffset);e.setStart(n.container,n.offset);var r=Ze(t.endContainer,t.endOffset);return e.setEnd(r.container,r.offset),e},en=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),nn=function(t,e){var n=e||t.selection.getStart(!0);return t.dom.getParent(n,"OL,UL,DL",ln(t,n))},rn=function(t,e){return t&&1===e.length&&e[0]===t},on=function(t){return O(t.querySelectorAll("ol,ul,dl"),Ae)},an=function(t){var e=nn(t),n=t.selection.getSelectedBlocks();return rn(e,n)?on(e):O(n,(function(t){return Ae(t)&&e!==t}))},un=function(t,e){var n=Te.map(e,(function(e){var n=t.dom.getParent(e,"li,dd,dt",ln(t,e));return n||e}));return en.unique(n)},cn=function(t){var e=t.selection.getSelectedBlocks();return O(un(t,e),_e)},sn=function(t){return O(cn(t),Ee)},ln=function(t,e){var n=t.dom.getParents(e,"TD,TH");return n.length>0?n[0]:t.getBody()},fn=function(t,e){var n=t.dom.getParents(e,"ol,ul",ln(t,e));return M(n)},dn=function(t){var e=fn(t,t.selection.getStart()),n=O(t.selection.getSelectedBlocks(),Ne);return e.toArray().concat(n)},mn=function(t){var e=dn(t);return gn(t,e)},gn=function(t,e){var n=S(e,(function(e){return fn(t,e).getOr(e)}));return en.unique(n)},pn=function(t,e,n){return void 0===n&&(n=m),t.exists((function(t){return n(t,e)}))},vn=function(t,e,n){return t.isSome()&&e.isSome()?x.some(n(t.getOrDie(),e.getOrDie())):x.none()},hn=function(t,e){var n=e||document,r=n.createDocumentFragment();return T(t,(function(t){r.appendChild(t.dom)})),zt.fromDom(r)},yn=function(t,e,n){return t.fire("ListMutation",{action:e,element:n})},bn=function(t){return void 0!==t.style&&c(t.style.getPropertyValue)},wn=function(t,e,n){if(!o(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);bn(t)&&t.style.setProperty(e,n)},xn=function(t,e,n){var r=t.dom;wn(r,e,n)},Cn=function(t,e){ve(t.item,e.list)},kn=function(t){for(var e=1;e<t.length;e++)Cn(t[e-1],t[e])},Sn=function(t,e){vn(M(t),R(e),Cn)},Tn=function(t,e){var n={list:zt.fromTag(e,t),item:zt.fromTag("li",t)};return ve(n.list,n.item),n},On=function(t,e,n){for(var r=[],o=0;o<n;o++)r.push(Tn(t,e.listType));return r},Dn=function(t,e){for(var n=0;n<t.length-1;n++)xn(t[n].item,"list-style-type","none");M(t).each((function(t){ce(t.list,e.listAttributes),ce(t.item,e.itemAttributes),ye(t.item,e.content)}))},Pn=function(t,e){ne(t.list)!==e.listType&&(t.list=ke(t.list,e.listType)),ce(t.list,e.listAttributes)},An=function(t,e,n){var r=zt.fromTag("li",t);return ce(r,e),ye(r,n),r},Nn=function(t,e){ve(t.list,e),t.item=e},Ln=function(t,e,n){var r=e.slice(0,n.depth);return M(r).each((function(e){var r=An(t,n.itemAttributes,n.content);Nn(e,r),Pn(e,n)})),r},_n=function(t,e,n){var r=On(t,n,n.depth-e.length);return kn(r),Dn(r,n),Sn(e,r),e.concat(r)},En=function(t,e){var n=P(e,(function(e,n){return n.depth>e.length?_n(t,e,n):Ln(t,e,n)}),[]);return R(n).map((function(t){return t.list}))},In=function(t){return Wt(t,"OL,UL")},Rn=function(t){return me(t).exists(In)},Mn=function(t){return ge(t).exists(In)},Un=function(t){return t.depth>0},Bn=function(t){return t.isSelected},jn=function(t){var e=fe(t),n=Mn(t)?e.slice(0,-1):e;return S(n,xe)},Fn=function(t,e,n){return le(t).filter(ie).map((function(r){return{depth:e,dirty:!1,isSelected:n,content:jn(t),itemAttributes:se(t),listAttributes:se(r),listType:ne(r)}}))},zn=function(t,e){switch(t){case"Indent":e.depth++;break;case"Outdent":e.depth--;break;case"Flatten":e.depth=0}e.dirty=!0},Hn=function(t,e){t.listType=e.listType,t.listAttributes=B({},e.listAttributes)},$n=function(t){t.listAttributes=ee(t.listAttributes,(function(t,e){return"start"!==e}))},Kn=function(t,e){var n=t[e].depth,r=function(t){return t.depth===n&&!t.dirty},o=function(t){return t.depth<n};return A(E(t.slice(0,e)),r,o).orThunk((function(){return A(t.slice(e+1),r,o)}))},qn=function(t){return T(t,(function(e,n){Kn(t,n).fold((function(){e.dirty&&$n(e)}),(function(t){return Hn(e,t)}))})),t},Vn=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},Wn=function(t,e,n,r){return me(r).filter(In).fold((function(){e.each((function(t){$t(t.start,r)&&n.set(!0)}));var o=Fn(r,t,n.get());e.each((function(t){$t(t.end,r)&&n.set(!1)}));var i=ge(r).filter(In).map((function(r){return Gn(t,e,n,r)})).getOr([]);return o.toArray().concat(i)}),(function(r){return Gn(t,e,n,r)}))},Gn=function(t,e,n,r){return _(fe(r),(function(r){var o=In(r)?Gn:Wn,i=t+1;return o(i,e,n,r)}))},Xn=function(t,e){var n=Vn(!1),r=0;return S(t,(function(t){return{sourceList:t,entries:Gn(r,e,n,t)}}))},Jn=function(t,e){var n=qn(e);return S(n,(function(e){var n=hn(e.content);return zt.fromDom(qe(t,n.dom))}))},Qn=function(t,e){var n=qn(e);return En(t.contentDocument,n).toArray()},Yn=function(t,e){return _(D(e,Un),(function(e){var n=R(e).exists(Un);return n?Qn(t,e):Jn(t,e)}))},Zn=function(t,e){T(O(t,Bn),(function(t){return zn(e,t)}))},tr=function(t){var e=S(cn(t),zt.fromDom);return vn(N(e,g(Rn)),N(E(e),g(Rn)),(function(t,e){return{start:t,end:e}}))},er=function(t,e,n){var r=Xn(e,tr(t));T(r,(function(e){Zn(e.entries,n);var r=Yn(t,e.entries);T(r,(function(e){yn(t,"Indent"===n?"IndentList":"OutdentList",e.dom)})),he(e.sourceList,r),be(e.sourceList)}))},nr=function(t,e){var n=S(mn(t),zt.fromDom),r=S(sn(t),zt.fromDom),o=!1;if(n.length||r.length){var i=t.selection.getBookmark();er(t,n,e),Ye(t,e,r),t.selection.moveToBookmark(i),t.selection.setRng(tn(t.selection.getRng())),t.nodeChanged(),o=!0}return o},rr=function(t){return nr(t,"Indent")},or=function(t){return nr(t,"Outdent")},ir=function(t){return nr(t,"Flatten")},ar=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),ur=Se.DOM,cr=function(t){var e={},n=function(n){var r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];if(1===r.nodeType){var i=ur.create("span",{"data-mce-type":"bookmark"});r.hasChildNodes()?(o=Math.min(o,r.childNodes.length-1),n?r.insertBefore(i,r.childNodes[o]):ur.insertAfter(i,r.childNodes[o])):r.appendChild(i),r=i,o=0}e[n?"startContainer":"endContainer"]=r,e[n?"startOffset":"endOffset"]=o};return n(!0),t.collapsed||n(),e},sr=function(t){var e=function(e){var n,r=function(t){var e=t.parentNode.firstChild,n=0;while(e){if(e===t)return n;1===e.nodeType&&"bookmark"===e.getAttribute("data-mce-type")||n++,e=e.nextSibling}return-1},o=n=t[e?"startContainer":"endContainer"],i=t[e?"startOffset":"endOffset"];o&&(1===o.nodeType&&(i=r(o),o=o.parentNode,ur.remove(n),!o.hasChildNodes()&&ur.isBlock(o)&&o.appendChild(ur.create("br"))),t[e?"startContainer":"endContainer"]=o,t[e?"startOffset":"endOffset"]=i)};e(!0),e();var n=ur.createRng();return n.setStart(t.startContainer,t.startOffset),t.endContainer&&n.setEnd(t.endContainer,t.endOffset),tn(n)},lr=function(t){switch(t){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},fr=function(t){return/\btox\-/.test(t.className)},dr=function(t,e,n){var r=function(t){var r=A(t.parents,Ae,Ie).filter((function(t){return t.nodeName===e&&!fr(t)})).isSome();n(r)},o=t.dom.getParents(t.selection.getNode());return r({parents:o}),t.on("NodeChange",r),function(){return t.off("NodeChange",r)}},mr=function(t,e,n){var r=n["list-style-type"]?n["list-style-type"]:null;t.setStyle(e,"list-style-type",r)},gr=function(t,e){Te.each(e,(function(e,n){t.setAttribute(n,e)}))},pr=function(t,e,n){gr(e,n["list-attributes"]),Te.each(t.select("li",e),(function(t){gr(t,n["list-item-attributes"])}))},vr=function(t,e,n){mr(t,e,n),pr(t,e,n)},hr=function(t,e,n){Te.each(n,(function(n){var r;return t.setStyle(e,(r={},r[n]="",r))}))},yr=function(t,e,n,r){var o=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"];1===o.nodeType&&(o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o),!n&&Re(o.nextSibling)&&(o=o.nextSibling);while(o.parentNode!==r){if(Ue(t,o))return o;if(/^(TD|TH)$/.test(o.parentNode.nodeName))return o;o=o.parentNode}return o},br=function(t,e,n){for(var r,o=[],i=t.dom,a=yr(t,e,!0,n),u=yr(t,e,!1,n),c=[],s=a;s;s=s.nextSibling)if(c.push(s),s===u)break;return Te.each(c,(function(e){if(Ue(t,e))return o.push(e),void(r=null);if(i.isBlock(e)||Re(e))return Re(e)&&i.remove(e),void(r=null);var a=e.nextSibling;ar.isBookmarkNode(e)&&(Ae(a)||Ue(t,a)||!a&&e.parentNode===n)?r=null:(r||(r=i.create("p"),e.parentNode.insertBefore(r,e),o.push(r)),r.appendChild(e))})),o},wr=function(t,e,n){var r=t.getStyle(e,"list-style-type"),o=n?n["list-style-type"]:"";return o=null===o?"":o,r===o},xr=function(t,e,n){var r=t.selection.getRng(),o="LI",i=ln(t,t.selection.getStart(!0)),a=t.dom;if("false"!==a.getContentEditable(t.selection.getNode())){e=e.toUpperCase(),"DL"===e&&(o="DT");var u=cr(r),c=br(t,r,i);Te.each(c,(function(r){var i,u=r.previousSibling,c=r.parentNode;_e(c)||(u&&Ae(u)&&u.nodeName===e&&wr(a,u,n)?(i=u,r=a.rename(r,o),u.appendChild(r)):(i=a.create(e),r.parentNode.insertBefore(i,r),i.appendChild(r),r=a.rename(r,o)),hr(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),vr(a,i,n),Or(t.dom,i))})),t.selection.setRng(sr(u))}},Cr=function(t,e){return t&&e&&Ae(t)&&t.nodeName===e.nodeName},kr=function(t,e,n){var r=t.getStyle(e,"list-style-type",!0),o=t.getStyle(n,"list-style-type",!0);return r===o},Sr=function(t,e){return t.className===e.className},Tr=function(t,e,n){return Cr(e,n)&&kr(t,e,n)&&Sr(e,n)},Or=function(t,e){var n,r;if(n=e.nextSibling,Tr(t,e,n)){while(r=n.firstChild)e.appendChild(r);t.remove(n)}if(n=e.previousSibling,Tr(t,e,n)){while(r=n.lastChild)e.insertBefore(r,e.firstChild);t.remove(n)}},Dr=function(t,e,n,r){if(e.nodeName!==n){var o=t.dom.rename(e,n);vr(t.dom,o,r),yn(t,lr(n),o)}else vr(t.dom,e,r),yn(t,lr(n),e)},Pr=function(t,e,n,r,o){var i=Ae(e);if(i&&e.nodeName===r&&!Ar(o))ir(t);else{xr(t,r,o);var a=cr(t.selection.getRng()),u=i?j([e],n,!0):n;Te.each(u,(function(e){Dr(t,e,r,o)})),t.selection.setRng(sr(a))}},Ar=function(t){return"list-style-type"in t},Nr=function(t,e,n,r){if(e!==t.getBody())if(e)if(e.nodeName!==n||Ar(r)||fr(e)){var o=cr(t.selection.getRng());vr(t.dom,e,r);var i=t.dom.rename(e,n);Or(t.dom,i),t.selection.setRng(sr(o)),xr(t,n,r),yn(t,lr(n),i)}else ir(t);else xr(t,n,r),yn(t,lr(n),e)},Lr=function(t,e,n){var r=nn(t),o=an(t),a=i(n)?n:{};o.length>0?Pr(t,r,o,e,a):Nr(t,r,e,a)},_r=Se.DOM,Er=function(t,e){var n=e.parentNode;if("LI"===n.nodeName&&n.firstChild===e){var r=n.previousSibling;r&&"LI"===r.nodeName?(r.appendChild(e),Fe(t,n)&&_r.remove(n)):_r.setStyle(n,"listStyleType","none")}if(Ae(n)){r=n.previousSibling;r&&"LI"===r.nodeName&&r.appendChild(e)}},Ir=function(t,e){var n=Te.grep(t.select("ol,ul",e));Te.each(n,(function(e){Er(t,e)}))},Rr=function(t,e,n,r){var o=e.startContainer,i=e.startOffset;if(Pe(o)&&(n?i<o.data.length:i>0))return o;var a=t.schema.getNonEmptyElements();1===o.nodeType&&(o=Gt.getNode(o,i));var u=new Xt(o,r);n&&je(t.dom,o)&&u.next();while(o=u[n?"next":"prev2"]()){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(a[o.nodeName])return o;if(Pe(o)&&o.data.length>0)return o}},Mr=function(t,e){var n=e.childNodes;return 1===n.length&&!Ae(n[0])&&t.isBlock(n[0])},Ur=function(t,e){Mr(t,e)&&t.remove(e.firstChild,!0)},Br=function(t,e,n){var r,o=Mr(t,n)?n.firstChild:n;if(Ur(t,e),!Fe(t,e,!0))while(r=e.firstChild)o.appendChild(r)},jr=function(t,e,n){var r,o=e.parentNode;if(ze(t,e)&&ze(t,n)){Ae(n.lastChild)&&(r=n.lastChild),o===n.lastChild&&Re(o.previousSibling)&&t.remove(o.previousSibling);var i=n.lastChild;i&&Re(i)&&e.hasChildNodes()&&t.remove(i),Fe(t,n,!0)&&t.$(n).empty(),Br(t,e,n),r&&n.appendChild(r);var a=Vt(zt.fromDom(n),zt.fromDom(e)),u=a?t.getParents(e,Ae,n):[];t.remove(e),T(u,(function(e){Fe(t,e)&&e!==t.getRoot()&&t.remove(e)}))}},Fr=function(t,e,n){t.dom.$(n).empty(),jr(t.dom,e,n),t.selection.setCursorLocation(n,0)},zr=function(t,e,n,r){var o=t.dom;if(o.isEmpty(r))Fr(t,n,r);else{var i=cr(e);jr(o,n,r),t.selection.setRng(sr(i))}},Hr=function(t,e,n,r){var o=cr(e);jr(t.dom,n,r);var i=sr(o);t.selection.setRng(i)},$r=function(t,e){var n=t.dom,r=t.selection,o=r.getStart(),i=ln(t,o),a=n.getParent(r.getStart(),"LI",i);if(a){var u=a.parentNode;if(u===t.getBody()&&Fe(n,u))return!0;var c=tn(r.getRng()),s=n.getParent(Rr(t,c,e,i),"LI",i);if(s&&s!==a)return t.undoManager.transact((function(){e?zr(t,c,s,a):Me(a)?or(t):Hr(t,c,a,s)})),!0;if(!s&&!e&&0===c.startOffset&&0===c.endOffset)return t.undoManager.transact((function(){ir(t)})),!0}return!1},Kr=function(t,e,n){var r=t.getParent(e.parentNode,t.isBlock,n);t.remove(e),r&&t.isEmpty(r)&&t.remove(r)},qr=function(t,e){var n=t.dom,r=t.selection.getStart(),o=ln(t,r),i=n.getParent(r,n.isBlock,o);if(i&&n.isEmpty(i)){var a=tn(t.selection.getRng()),u=n.getParent(Rr(t,a,e,o),"LI",o);if(u)return t.undoManager.transact((function(){Kr(n,i,o),Or(n,u.parentNode),t.selection.select(u,!0),t.selection.collapse(e)})),!0}return!1},Vr=function(t,e){return $r(t,e)||qr(t,e)},Wr=function(t){var e=t.selection.getStart(),n=ln(t,e),r=t.dom.getParent(e,"LI,DT,DD",n);return!!(r||cn(t).length>0)&&(t.undoManager.transact((function(){t.execCommand("Delete"),Ir(t.dom,t.getBody())})),!0)},Gr=function(t,e){return t.selection.isCollapsed()?Vr(t,e):Wr(t)},Xr=function(t){t.on("keydown",(function(e){e.keyCode===Jt.BACKSPACE?Gr(t,!1)&&e.preventDefault():e.keyCode===Jt.DELETE&&Gr(t,!0)&&e.preventDefault()}))},Jr=function(t){return{backspaceDelete:function(e){Gr(t,e)}}},Qr=function(t,e){var n=nn(t);t.undoManager.transact((function(){i(e.styles)&&t.dom.setStyles(n,e.styles),i(e.attrs)&&Yt(e.attrs,(function(e,r){return t.dom.setAttrib(n,r,e)}))}))},Yr=function(t){var e=E(tt(t).split("")),n=S(e,(function(t,e){var n=t.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,e)*n}));return P(n,(function(t,e){return t+e}),0)},Zr=function(t){if(t--,t<0)return"";var e=t%26,n=Math.floor(t/26),r=Zr(n),o=String.fromCharCode("A".charCodeAt(0)+e);return r+o},to=function(t){return/^[A-Z]+$/.test(t)},eo=function(t){return/^[a-z]+$/.test(t)},no=function(t){return/^[0-9]+$/.test(t)},ro=function(t){return no(t)?2:to(t)?0:eo(t)?1:nt(t)?3:4},oo=function(t){switch(ro(t)){case 2:return x.some({listStyleType:x.none(),start:t});case 0:return x.some({listStyleType:x.some("upper-alpha"),start:Yr(t).toString()});case 1:return x.some({listStyleType:x.some("lower-alpha"),start:Yr(t).toString()});case 3:return x.some({listStyleType:x.none(),start:""});case 4:return x.none()}},io=function(t){var e=parseInt(t.start,10);return pn(t.listStyleType,"upper-alpha")?Zr(e):pn(t.listStyleType,"lower-alpha")?Zr(e).toLowerCase():t.start},ao=function(t){var e=nn(t);Le(e)&&t.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:io({start:t.dom.getAttrib(e,"start","1"),listStyleType:x.some(t.dom.getStyle(e,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(e){var n=e.getData();oo(n.start).each((function(e){t.execCommand("mceListUpdate",!1,{attrs:{start:"1"===e.start?"":e.start},styles:{"list-style-type":e.listStyleType.getOr("")}})})),e.close()}})},uo=function(t,e){return function(){var n=nn(t);return n&&n.nodeName===e}},co=function(t){t.addCommand("mceListProps",(function(){ao(t)}))},so=function(t){t.on("BeforeExecCommand",(function(e){var n=e.command.toLowerCase();"indent"===n?rr(t):"outdent"===n&&or(t)})),t.addCommand("InsertUnorderedList",(function(e,n){Lr(t,"UL",n)})),t.addCommand("InsertOrderedList",(function(e,n){Lr(t,"OL",n)})),t.addCommand("InsertDefinitionList",(function(e,n){Lr(t,"DL",n)})),t.addCommand("RemoveList",(function(){ir(t)})),co(t),t.addCommand("mceListUpdate",(function(e,n){i(n)&&Qr(t,n)})),t.addQueryStateHandler("InsertUnorderedList",uo(t,"UL")),t.addQueryStateHandler("InsertOrderedList",uo(t,"OL")),t.addQueryStateHandler("InsertDefinitionList",uo(t,"DL"))},lo=function(t){t.on("keydown",(function(e){e.keyCode!==Jt.TAB||Jt.metaKeyPressed(e)||t.undoManager.transact((function(){(e.shiftKey?or(t):rr(t))&&e.preventDefault()}))}))},fo=function(t){He(t)&&lo(t),Xr(t)},mo=function(t){var e=function(e){return function(){return t.execCommand(e)}};t.hasPlugin("advlist")||(t.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:e("InsertOrderedList"),onSetup:function(e){return dr(t,"OL",e.setActive)}}),t.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:e("InsertUnorderedList"),onSetup:function(e){return dr(t,"UL",e.setActive)}}))},go=function(t){var e={text:"List properties...",icon:"ordered-list",onAction:function(){return t.execCommand("mceListProps")},onSetup:function(e){return dr(t,"OL",(function(t){return e.setDisabled(!t)}))}};t.ui.registry.addMenuItem("listprops",e),t.ui.registry.addContextMenu("lists",{update:function(e){var n=nn(t,e);return Le(n)?["listprops"]:[]}})};function po(){t.add("lists",(function(t){return!1===t.hasPlugin("rtc",!0)?(fo(t),so(t)):co(t),mo(t),go(t),Jr(t)}))}po()})()},"2b07":function(t,e,n){n("dbbc")},"3c41":function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=0,n=function(t){var n=new Date,r=n.getTime(),o=Math.floor(1e9*Math.random());return e++,t+"_"+o+e+String(r)},r=function(t,e){var n='<table data-mce-id="mce" style="width: 100%">';n+="<tbody>";for(var r=0;r<e;r++){n+="<tr>";for(var o=0;o<t;o++)n+="<td><br></td>";n+="</tr>"}return n+="</tbody>",n+="</table>",n},o=function(t){var e=t.dom.select("*[data-mce-id]");return e[0]},i=function(t,e,n){t.undoManager.transact((function(){t.insertContent(r(e,n));var i=o(t);i.removeAttribute("data-mce-id");var a=t.dom.select("td,th",i);t.selection.setCursorLocation(a[0],0)}))},a=function(t,e,n){t.plugins.table?t.plugins.table.insertTable(e,n):i(t,e,n)},u=function(t,e,r){var o=t.editorUpload.blobCache,i=o.create(n("mceu"),r,e);o.add(i),t.insertContent(t.dom.createHTML("img",{src:i.blobUri()}))},c=tinymce.util.Tools.resolve("tinymce.util.Promise"),s=function(t){return new c((function(e){var n=new FileReader;n.onloadend=function(){e(n.result.split(",")[1])},n.readAsDataURL(t)}))},l=tinymce.util.Tools.resolve("tinymce.Env"),f=tinymce.util.Tools.resolve("tinymce.util.Delay"),d=function(t){return new c((function(e){var n=document.createElement("input");n.type="file",n.accept="image/*",n.style.position="fixed",n.style.left="0",n.style.top="0",n.style.opacity="0.001",document.body.appendChild(n);var r=function(t){e(Array.prototype.slice.call(t.target.files))};n.addEventListener("change",r);var o=function(r){var i=function(){e([]),n.parentNode.removeChild(n)};l.os.isAndroid()&&"remove"!==r.type?f.setEditorTimeout(t,i,0):i(),t.off("focusin remove",o)};t.on("focusin remove",o),n.click()}))},m=function(t){t.ui.registry.addButton("quickimage",{icon:"image",tooltip:"Insert image",onAction:function(){d(t).then((function(e){if(e.length>0){var n=e[0];s(n).then((function(e){u(t,e,n)}))}}))}}),t.ui.registry.addButton("quicktable",{icon:"table",tooltip:"Insert table",onAction:function(){a(t,2,2)}})},g=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},p=function(t){return function(e){return g(e)===t}},v=function(t){return function(e){return typeof e===t}},h=function(t){return function(e){return t===e}},y=p("string"),b=p("object"),w=p("array"),x=v("boolean"),C=h(void 0),k=v("function"),S=function(){},T=function(t){return function(){return t}},O=function(t){return t},D=T(!1),P=T(!0),A=function(){return N},N=function(){var t=function(t){return t()},e=O,n={fold:function(t,e){return t()},isSome:D,isNone:P,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:T(null),getOrUndefined:T(void 0),or:e,orThunk:t,map:A,each:S,bind:A,exists:D,forall:P,filter:function(){return A()},toArray:function(){return[]},toString:T("none()")};return n}(),L=function(t){var e=T(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:P,isNone:D,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return L(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:N},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},_=function(t){return null===t||void 0===t?N:L(t)},E={some:L,none:A,from:_};function I(t,e,n,r,o){return t(n,r)?E.some(n):k(o)&&o(n)?E.none():e(n,r,o)}var R=1,M=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return j(r.childNodes[0])},U=function(t,e){var n=e||document,r=n.createElement(t);return j(r)},B=function(t,e){var n=e||document,r=n.createTextNode(t);return j(r)},j=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},F=function(t,e,n){return E.from(t.dom.elementFromPoint(e,n)).map(j)},z={fromHtml:M,fromTag:U,fromText:B,fromDom:j,fromPoint:F},H=function(t,e){var n=t.dom;if(n.nodeType!==R)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")};"undefined"!==typeof window?window:Function("return this;")();var $=function(t){var e=t.dom.nodeName;return e.toLowerCase()},K=function(t,e,n){var r=t.dom,o=k(n)?n:D;while(r.parentNode){r=r.parentNode;var i=z.fromDom(r);if(e(i))return E.some(i);if(o(i))break}return E.none()},q=function(t,e,n){var r=function(t,e){return e(t)};return I(r,K,t,e,n)},V=function(t,e,n){return K(t,(function(t){return H(t,e)}),n)},W=function(t,e,n){var r=function(t,e){return H(t,e)};return I(r,V,t,e,n)},G=function(t,e){if(e(t))return!0;throw new Error("Default value doesn't match requested type.")},X=function(t,e){if(w(t)||b(t))throw new Error("expected a string but found: "+t);return C(t)?e:x(t)?!1===t?"":e:t},J=function(t){return function(e,n,r){G(r,t);var o=e.getParam(n,r);return X(o,r)}},Q=J(y),Y=function(t){return Q(t,"quickbars_selection_toolbar","bold italic | quicklink h2 h3 blockquote")},Z=function(t){return Q(t,"quickbars_insert_toolbar","quickimage quicktable")},tt=function(t){return Q(t,"quickbars_image_toolbar","alignleft aligncenter alignright")},et=function(t){var e=Z(t);e.trim().length>0&&t.ui.registry.addContextToolbar("quickblock",{predicate:function(e){var n=z.fromDom(e),r=t.schema.getTextBlockElements(),o=function(e){return e.dom===t.getBody()};return W(n,"table",o).fold((function(){return q(n,(function(e){return $(e)in r&&t.dom.isEmpty(e.dom)}),o).isSome()}),D)},items:e,position:"line",scope:"editor"})},nt=function(t){var e=function(e){return"false"!==t.dom.getContentEditableParent(e)},n=function(t){return"IMG"===t.nodeName||"FIGURE"===t.nodeName&&/image/i.test(t.className)},r=tt(t);r.trim().length>0&&t.ui.registry.addContextToolbar("imageselection",{predicate:n,items:r,position:"node"});var o=Y(t);o.trim().length>0&&t.ui.registry.addContextToolbar("textselection",{predicate:function(r){return!n(r)&&!t.selection.isCollapsed()&&e(r)},items:o,position:"selection",scope:"editor"})};function rt(){t.add("quickbars",(function(t){m(t),et(t),nt(t)}))}rt()})()},4237:function(t,e,n){n("be7f")},"4ea8":function(t,e,n){n("cdd9")},"69a4":function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=tinymce.util.Tools.resolve("tinymce.Env"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(t){return t.getParam("content_style","","string")},o=function(t){return t.getParam("content_css_cors",!1,"boolean")},i=function(t){var e=t.getParam("body_class","","hash");return e[t.id]||""},a=function(t){var e=t.getParam("body_class","","string");return-1===e.indexOf("=")?e:i(t)},u=function(t){var e=t.getParam("body_id","","hash");return e[t.id]||e},c=function(t){var e=t.getParam("body_id","tinymce","string");return-1===e.indexOf("=")?e:u(t)},s=function(t){var i="",u=t.dom.encode,s=r(t);i+='<base href="'+u(t.documentBaseURI.getURI())+'">';var l=o(t)?' crossorigin="anonymous"':"";n.each(t.contentCSS,(function(e){i+='<link type="text/css" rel="stylesheet" href="'+u(t.documentBaseURI.toAbsolute(e))+'"'+l+">"})),s&&(i+='<style type="text/css">'+s+"</style>");var f=c(t),d=a(t),m=e.mac?"e.metaKey":"e.ctrlKey && !e.altKey",g='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+m+")) {e.preventDefault();}}}, false);<\/script> ",p=t.getBody().dir,v=p?' dir="'+u(p)+'"':"",h="<!DOCTYPE html><html><head>"+i+'</head><body id="'+u(f)+'" class="mce-content-body '+u(d)+'"'+v+">"+t.getContent()+g+"</body></html>";return h},l=function(t){var e=s(t),n=t.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:e}});n.focus("close")},f=function(t){t.addCommand("mcePreview",(function(){l(t)}))},d=function(t){var e=function(){return t.execCommand("mcePreview")};t.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:e}),t.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:e})};function m(){t.add("preview",(function(t){f(t),d(t)}))}m()})()},"7c4f":function(t,e){(function(){"use strict";var t=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(t){return!!t.hasPlugin("powerpaste",!0)&&("undefined"!==typeof window.console&&window.console.log&&window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0)},r=function(t){return{clipboard:t}},o=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},i=function(t){return function(e){return o(e)===t}},a=function(t){return function(e){return typeof e===t}},u=i("array"),c=function(t){return null===t||void 0===t},s=function(t){return!c(t)},l=a("function"),f=function(){},d=function(t){return function(){return t}},m=function(t){return t},g=d(!1),p=d(!0),v=function(){return h},h=function(){var t=function(t){return t()},e=m,n={fold:function(t,e){return t()},isSome:g,isNone:p,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:e,orThunk:t,map:v,each:f,bind:v,exists:g,forall:p,filter:function(){return v()},toArray:function(){return[]},toString:d("none()")};return n}(),y=function(t){var e=d(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:p,isNone:g,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return y(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:h},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},b=function(t){return null===t||void 0===t?h:y(t)},w={some:y,none:v,from:b},x=Array.prototype.slice,C=Array.prototype.push,k=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(e(o,n))return!0}return!1},S=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},T=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},O=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},D=function(t,e,n){return T(t,(function(t,r){n=e(n,t,r)})),n},P=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!u(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);C.apply(e,t[n])}return e},A=function(t,e){return P(S(t,e))},N=l(Array.from)?Array.from:function(t){return x.call(t)},L=function(){return L=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},L.apply(this,arguments)},_=function(e){var n=t(w.none()),r=function(){return n.get().each(e)},o=function(){r(),n.set(w.none())},i=function(){return n.get().isSome()},a=function(){return n.get()},u=function(t){r(),n.set(w.some(t))};return{clear:o,isSet:i,get:a,set:u}},E=function(){var t=_(f),e=function(e){return t.get().each(e)};return L(L({},t),{on:e})},I=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},R=function(t,e){return I(t,e,0)},M=function(t,e){return I(t,e,t.length-e.length)},U=function(t,e){return e<=0?"":new Array(e+1).join(t)},B=tinymce.util.Tools.resolve("tinymce.Env"),j=tinymce.util.Tools.resolve("tinymce.util.Delay"),F=tinymce.util.Tools.resolve("tinymce.util.Promise"),z=tinymce.util.Tools.resolve("tinymce.util.VK"),H=function(t,e,n,r){return t.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},$=function(t,e,n,r){return t.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},K=function(t,e){return t.fire("PastePlainTextToggle",{state:e})},q=function(t,e){return t.fire("paste",{ieFake:e})},V=tinymce.util.Tools.resolve("tinymce.util.Tools"),W=function(t){return t.getParam("paste_block_drop",!1)},G=function(t){return t.getParam("paste_data_images",!1)},X=function(t){return t.getParam("paste_filter_drop",!0)},J=function(t){return t.getParam("paste_preprocess")},Q=function(t){return t.getParam("paste_postprocess")},Y=function(t){return t.getParam("paste_webkit_styles")},Z=function(t){return t.getParam("paste_remove_styles_if_webkit",!0)},tt=function(t){return t.getParam("paste_merge_formats",!0)},et=function(t){return t.getParam("smart_paste",!0)},nt=function(t){return t.getParam("paste_as_text",!1)},rt=function(t){return t.getParam("paste_retain_style_properties")},ot=function(t){var e="-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody";return t.getParam("paste_word_valid_elements",e)},it=function(t){return t.getParam("paste_convert_word_fake_lists",!0)},at=function(t){return t.getParam("paste_enable_default_filters",!0)},ut=function(t){return t.getParam("validate")},ct=function(t){return t.getParam("allow_html_data_urls",!1,"boolean")},st=function(t){return t.getParam("paste_data_images",!1,"boolean")},lt=function(t){return t.getParam("images_dataimg_filter")},ft=function(t){return t.getParam("images_reuse_filename")},dt=function(t){return t.getParam("forced_root_block")},mt=function(t){return t.getParam("forced_root_block_attrs")},gt=function(t){return t.getParam("paste_tab_spaces",4,"number")},pt=function(t){var e="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp";return V.explode(t.getParam("images_file_types",e,"string"))},vt="x-tinymce/html",ht="\x3c!-- "+vt+" --\x3e",yt=function(t){return ht+t},bt=function(t){return t.replace(ht,"")},wt=function(t){return-1!==t.indexOf(ht)},xt=d(vt),Ct=Object.hasOwnProperty,kt=function(t,e){return Ct.call(t,e)},St=tinymce.util.Tools.resolve("tinymce.html.Entities"),Tt=function(t){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(t)},Ot=function(t){return t.replace(/\r?\n/g,"<br>")},Dt=function(t,e){var n=[],r="<"+t;if("object"===typeof e){for(var o in e)kt(e,o)&&n.push(o+'="'+St.encodeAllRaw(e[o])+'"');n.length&&(r+=" "+n.join(" "))}return r+">"},Pt=function(t,e,n){var r=t.split(/\n\n/),o=Dt(e,n),i="</"+e+">",a=V.map(r,(function(t){return t.split(/\n/).join("<br />")})),u=function(t){return o+t+i};return 1===a.length?a[0]:V.map(a,u).join("")},At=function(t,e,n){return e?Pt(t,!0===e?"p":e,n):Ot(t)},Nt=tinymce.util.Tools.resolve("tinymce.html.DomParser"),Lt=tinymce.util.Tools.resolve("tinymce.html.Serializer"),_t=" ",Et=tinymce.util.Tools.resolve("tinymce.html.Node"),It=tinymce.util.Tools.resolve("tinymce.html.Schema"),Rt=function(t){return t.constructor===RegExp},Mt=function(t,e){return V.each(e,(function(e){t=Rt(e)?t.replace(e,""):t.replace(e[0],e[1])})),t},Ut=function(t){var e=It(),n=Nt({},e),r="",o=e.getShortEndedElements(),i=V.makeMap("script noscript style textarea video audio iframe object"," "),a=e.getBlockElements(),u=function(t){var e=t.name,n=t;if("br"!==e){if("wbr"!==e)if(o[e]&&(r+=" "),i[e])r+=" ";else{if(3===t.type&&(r+=t.value),!t.shortEnded&&(t=t.firstChild))do{u(t)}while(t=t.next);a[e]&&n.next&&(r+="\n","p"===e&&(r+="\n"))}}else r+="\n"};return t=Mt(t,[/<!\[[^\]]+\]>/g]),u(n.parse(t)),r},Bt=function(t){var e=function(t,e,n){return e||n?_t:" "};return t=Mt(t,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,e],/<br class="Apple-interchange-newline">/g,/<br>$/i]),t},jt=function(t){var e=0;return function(){return t+e++}},Ft=function(t){var e=t.toLowerCase(),n={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return V.hasOwn(n,e)?"image/"+n[e]:"image/"+e},zt=function(t){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(t)||/class="OutlineElement/.test(t)||/id="?docs\-internal\-guid\-/.test(t)},Ht=function(t){var e=!1,n=[/^[IVXLMCD]+\.[ \u00a0]/,/^[ivxlmcd]+\.[ \u00a0]/,/^[a-z]{1,2}[\.\)][ \u00a0]/,/^[A-Z]{1,2}[\.\)][ \u00a0]/,/^[0-9]+\.[ \u00a0]/,/^[\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]+\.[ \u00a0]/,/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/];return t=t.replace(/^[\u00a0 ]+/,""),V.each(n,(function(n){if(n.test(t))return e=!0,!1})),e},$t=function(t){return/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(t)},Kt=function(t){var e,n,r=1,o=function(t){var e="";if(3===t.type)return t.value;if(t=t.firstChild)do{e+=o(t)}while(t=t.next);return e},i=function(t,e){if(3===t.type&&e.test(t.value))return t.value=t.value.replace(e,""),!1;if(t=t.firstChild)do{if(!i(t,e))return!1}while(t=t.next);return!0},a=function(t){if(t._listIgnore)t.remove();else if(t=t.firstChild)do{a(t)}while(t=t.next)},u=function(t,o,u){var c=t._listLevel||r;c!==r&&(c<r?e&&(e=e.parent.parent):(n=e,e=null)),e&&e.name===o?e.append(t):(n=n||e,e=new Et(o,1),u>1&&e.attr("start",""+u),t.wrap(e)),t.name="li",c>r&&n&&n.lastChild.append(e),r=c,a(t),i(t,/^\u00a0+/),i(t,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),i(t,/^\u00a0+/)},c=[],s=t.firstChild;while("undefined"!==typeof s&&null!==s)if(c.push(s),s=s.walk(),null!==s)while("undefined"!==typeof s&&s.parent!==t)s=s.walk();for(var l=0;l<c.length;l++)if(t=c[l],"p"===t.name&&t.firstChild){var f=o(t);if($t(f)){u(t,"ul");continue}if(Ht(f)){var d=/([0-9]+)\./.exec(f),m=1;d&&(m=parseInt(d[1],10)),u(t,"ol",m);continue}if(t._listLevel){u(t,"ul",1);continue}e=null}else n=e,e=null},qt=function(t,e,n,r){var o={},i=t.dom.parseStyle(r);V.each(i,(function(i,a){switch(a){case"mso-list":var u=/\w+ \w+([0-9]+)/i.exec(r);u&&(n._listLevel=parseInt(u[1],10)),/Ignore/i.test(i)&&n.firstChild&&(n._listIgnore=!0,n.firstChild._listIgnore=!0);break;case"horiz-align":a="text-align";break;case"vert-align":a="vertical-align";break;case"font-color":case"mso-foreground":a="color";break;case"mso-background":case"mso-highlight":a="background";break;case"font-weight":case"font-style":return void("normal"!==i&&(o[a]=i));case"mso-element":if(/^(comment|comment-list)$/i.test(i))return void n.remove();break}0!==a.indexOf("mso-comment")?0!==a.indexOf("mso-")&&("all"===rt(t)||e&&e[a])&&(o[a]=i):n.remove()})),/(bold)/i.test(o["font-weight"])&&(delete o["font-weight"],n.wrap(new Et("b",1))),/(italic)/i.test(o["font-style"])&&(delete o["font-style"],n.wrap(new Et("i",1)));var a=t.dom.serializeStyle(o,n.name);return a||null},Vt=function(t,e){var n,r=rt(t);r&&(n=V.makeMap(r.split(/[, ]/))),e=Mt(e,[/<br class="?Apple-interchange-newline"?>/gi,/<b[^>]+id="?docs-internal-[^>]*>/gi,/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/&nbsp;/gi,_t],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(t,e){return e.length>0?e.replace(/./," ").slice(Math.floor(e.length/2)).split("").join(_t):""}]]);var o=ot(t),i=It({valid_elements:o,valid_children:"-li[p]"});V.each(i.elements,(function(t){t.attributes.class||(t.attributes.class={},t.attributesOrder.push("class")),t.attributes.style||(t.attributes.style={},t.attributesOrder.push("style"))}));var a=Nt({},i);a.addAttributeFilter("style",(function(e){var r,o=e.length;while(o--)r=e[o],r.attr("style",qt(t,n,r,r.attr("style"))),"span"===r.name&&r.parent&&!r.attributes.length&&r.unwrap()})),a.addAttributeFilter("class",(function(t){var e,n,r=t.length;while(r--)e=t[r],n=e.attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&e.remove(),e.attr("class",null)})),a.addNodeFilter("del",(function(t){var e=t.length;while(e--)t[e].remove()})),a.addNodeFilter("a",(function(t){var e,n,r,o=t.length;while(o--)if(e=t[o],n=e.attr("href"),r=e.attr("name"),n&&-1!==n.indexOf("#_msocom_"))e.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1],n&&(n="#"+n)),n||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){e.unwrap();continue}e.attr({href:n,name:r})}else e.unwrap()}));var u=a.parse(e);return it(t)&&Kt(u),e=Lt({validate:ut(t)},i).serialize(u),e},Wt=function(t,e){return at(t)?Vt(t,e):e},Gt=function(t,e){var n=Nt({},t.schema);n.addNodeFilter("meta",(function(t){V.each(t,(function(t){t.remove()}))}));var r=n.parse(e,{forced_root_block:!1,isRootContent:!0});return Lt({validate:ut(t)},t.schema).serialize(r)},Xt=function(t,e){return{content:t,cancelled:e}},Jt=function(t,e,n,r){var o=t.dom.create("div",{style:"display:none"},e),i=$(t,o,n,r);return Xt(i.node.innerHTML,i.isDefaultPrevented())},Qt=function(t,e,n,r){var o=H(t,e,n,r),i=Gt(t,o.content);return t.hasEventListeners("PastePostProcess")&&!o.isDefaultPrevented()?Jt(t,i,n,r):Xt(i,o.isDefaultPrevented())},Yt=function(t,e,n){var r=zt(e),o=r?Wt(t,e):e;return Qt(t,o,n,r)},Zt=function(t,e){return t.insertContent(e,{merge:tt(t),paste:!0}),!0},te=function(t){return/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(t)},ee=function(t,e){return te(e)&&k(pt(t),(function(t){return M(e.toLowerCase(),"."+t.toLowerCase())}))},ne=function(t,e,n){return t.undoManager.extra((function(){n(t,e)}),(function(){t.insertContent('<img src="'+e+'">')})),!0},re=function(t,e,n){return t.undoManager.extra((function(){n(t,e)}),(function(){t.execCommand("mceInsertLink",!1,e)})),!0},oe=function(t,e,n){return!(!1!==t.selection.isCollapsed()||!te(e))&&re(t,e,n)},ie=function(t,e,n){return!!ee(t,e)&&ne(t,e,n)},ae=function(t,e){V.each([oe,ie,Zt],(function(n){return!0!==n(t,e,Zt)}))},ue=function(t,e,n){n||!1===et(t)?Zt(t,e):ae(t,e)},ce=function(t){return-1!==" \f\t\v".indexOf(t)},se=function(t){return"\n"===t||"\r"===t},le=function(t,e){return e<t.length&&e>=0&&se(t[e])},fe=function(t,e){var n=U(" ",gt(t)),r=e.replace(/\t/g,n),o=D(r,(function(t,e){return ce(e)||e===_t?t.pcIsSpace||""===t.str||t.str.length===r.length-1||le(r,t.str.length+1)?{pcIsSpace:!1,str:t.str+_t}:{pcIsSpace:!0,str:t.str+" "}:{pcIsSpace:se(e),str:t.str+e}}),{pcIsSpace:!1,str:""});return o.str},de=function(t,e,n,r){var o=Yt(t,e,n);!1===o.cancelled&&ue(t,o.content,r)},me=function(t,e,n){var r=n||wt(e);de(t,bt(e),r,!1)},ge=function(t,e){var n=t.dom.encode(e).replace(/\r\n/g,"\n"),r=fe(t,n),o=At(r,dt(t),mt(t));de(t,o,!1,!0)},pe=function(t){var e={},n="data:text/mce-internal,";if(t){if(t.getData){var r=t.getData("Text");r&&r.length>0&&-1===r.indexOf(n)&&(e["text/plain"]=r)}if(t.types)for(var o=0;o<t.types.length;o++){var i=t.types[o];try{e[i]=t.getData(i)}catch(a){e[i]=""}}}return e},ve=function(t,e){return pe(e.clipboardData||t.getDoc().dataTransfer)},he=function(t,e){return e in t&&t[e].length>0},ye=function(t){return he(t,"text/html")||he(t,"text/plain")},be=function(t){var e=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(t);return e?{type:e[1],data:decodeURIComponent(e[2])}:{type:null,data:null}},we=function(t,e){var n=lt(t);return!n||n(e)},xe=function(t,e){var n=e.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return s(n)?t.dom.encode(n[1]):null},Ce=jt("mceclip"),ke=function(t,e){var n=be(e.uri),r=n.data,o=n.type,i=Ce(),a=e.blob,u=new Image;if(u.src=e.uri,we(t,u)){var c=t.editorUpload.blobCache,l=void 0,f=c.getByData(r,o);if(f)l=f;else{var d=ft(t)&&s(a.name),m=d?xe(t,a.name):i,g=d?a.name:void 0;l=c.create(i,a,r,m,g),c.add(l)}me(t,'<img src="'+l.blobUri()+'">',!1)}else me(t,'<img src="'+e.uri+'">',!1)},Se=function(t){return"paste"===t.type},Te=function(t){return s(t.getAsFile)},Oe=function(t){return F.all(S(t,(function(t){return new F((function(e){var n=Te(t)?t.getAsFile():t,r=new window.FileReader;r.onload=function(){e({blob:n,uri:r.result})},r.readAsDataURL(n)}))})))},De=function(t){var e=pt(t);return function(t){return R(t.type,"image/")&&k(e,(function(e){return Ft(e)===t.type}))}},Pe=function(t,e){var n=e.items?A(N(e.items),(function(t){return"file"===t.kind?[t.getAsFile()]:[]})):[],r=e.files?N(e.files):[];return O(n.length>0?n:r,De(t))},Ae=function(t,e,n){var r=Se(e)?e.clipboardData:e.dataTransfer;if(st(t)&&r){var o=Pe(t,r);if(o.length>0)return e.preventDefault(),Oe(o).then((function(e){n&&t.selection.setRng(n),T(e,(function(e){ke(t,e)}))})),!0}return!1},Ne=function(t){var e=t.clipboardData;return-1!==navigator.userAgent.indexOf("Android")&&e&&e.items&&0===e.items.length},Le=function(t){return z.metaKeyPressed(t)&&86===t.keyCode||t.shiftKey&&45===t.keyCode},_e=function(t,e,n){var r,o=E(),i=E();t.on("keyup",i.clear),t.on("keydown",(function(n){var a=function(t){Le(t)&&!t.isDefaultPrevented()&&e.remove()};if(Le(n)&&!n.isDefaultPrevented()){if(r=n.shiftKey&&86===n.keyCode,r&&B.webkit&&-1!==navigator.userAgent.indexOf("Version/"))return;if(n.stopImmediatePropagation(),o.set(n),i.set(!0),B.ie&&r)return n.preventDefault(),void q(t,!0);e.remove(),e.create(),t.once("keyup",a),t.once("paste",(function(){t.off("keyup",a)}))}}));var a=function(t,n,r,o,i){var a;he(n,"text/html")?a=n["text/html"]:(a=e.getHtml(),i=i||wt(a),e.isDefaultContent(a)&&(o=!0)),a=Bt(a),e.remove();var u=!1===i&&Tt(a),c=te(a);(!a.length||u&&!c)&&(o=!0),(o||c)&&(a=he(n,"text/plain")&&u?n["text/plain"]:Ut(a)),e.isDefaultContent(a)?r||t.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."):o?ge(t,a):me(t,a,i)},u=function(){return e.getLastRng()||t.selection.getRng()};t.on("paste",(function(c){var s=o.isSet()||i.isSet();s&&o.clear();var l=ve(t,c),f="text"===n.get()||r,d=he(l,xt());r=!1,c.isDefaultPrevented()||Ne(c)?e.remove():ye(l)||!Ae(t,c,u())?(s||c.preventDefault(),!B.ie||s&&!c.ieFake||he(l,"text/html")||(e.create(),t.dom.bind(e.getEl(),"paste",(function(t){t.stopPropagation()})),t.getDoc().execCommand("Paste",!1,null),l["text/html"]=e.getHtml()),he(l,"text/html")?(c.preventDefault(),d||(d=wt(l["text/html"])),a(t,l,s,f,d)):j.setEditorTimeout(t,(function(){a(t,l,s,f,d)}),0)):e.remove()}))},Ee=function(t,e,n){var r;_e(t,e,n),t.parser.addNodeFilter("img",(function(e,n,o){var i=function(t){return t.data&&!0===t.data.paste},a=function(t){t.attr("data-mce-object")||r===B.transparentSrc||t.remove()},u=function(t){return 0===t.indexOf("webkit-fake-url")},c=function(t){return 0===t.indexOf("data:")};if(!st(t)&&i(o)){var s=e.length;while(s--)r=e[s].attr("src"),r&&(u(r)||!ct(t)&&c(r))&&a(e[s])}}))},Ie=function(t){return B.ie&&t.inline?document.body:t.getBody()},Re=function(t){return Ie(t)!==t.getBody()},Me=function(t,e,n){Re(t)&&t.dom.bind(e,"paste keyup",(function(e){$e(t,n)||t.fire("paste")}))},Ue=function(t,e,n){var r=t.dom,o=t.getBody();e.set(t.selection.getRng());var i=t.dom.add(Ie(t),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},n);(B.ie||B.gecko)&&r.setStyle(i,"left","rtl"===r.getStyle(o,"direction",!0)?65535:-65535),r.bind(i,"beforedeactivate focusin focusout",(function(t){t.stopPropagation()})),Me(t,i,n),i.focus(),t.selection.select(i,!0)},Be=function(t,e){if(je(t)){var n=void 0,r=e.get();while(n=t.dom.get("mcepastebin"))t.dom.remove(n),t.dom.unbind(n);r&&t.selection.setRng(r)}e.set(null)},je=function(t){return t.dom.get("mcepastebin")},Fe=function(t){var e=function(e,n){e.appendChild(n),t.dom.remove(n,!0)},n=V.grep(Ie(t).childNodes,(function(t){return"mcepastebin"===t.id})),r=n.shift();V.each(n,(function(t){e(r,t)}));for(var o=t.dom.select("div[id=mcepastebin]",r),i=o.length-1;i>=0;i--){var a=t.dom.create("div");r.insertBefore(a,o[i]),e(a,o[i])}return r?r.innerHTML:""},ze=function(t,e){return e===t},He=function(t){return t&&"mcepastebin"===t.id},$e=function(t,e){var n=je(t);return He(n)&&ze(e,n.innerHTML)},Ke=function(e){var n=t(null),r="%MCEPASTEBIN%";return{create:function(){return Ue(e,n,r)},remove:function(){return Be(e,n)},getEl:function(){return je(e)},getHtml:function(){return Fe(e)},getLastRng:n.get,isDefault:function(){return $e(e,r)},isDefaultContent:function(t){return ze(r,t)}}},qe=function(t,e){var n=Ke(t);return t.on("PreInit",(function(){return Ee(t,n,e)})),{pasteFormat:e,pasteHtml:function(e,n){return me(t,e,n)},pasteText:function(e){return ge(t,e)},pasteImageData:function(e,n){return Ae(t,e,n)},getDataTransferItems:pe,hasHtmlOrText:ye,hasContentType:he}},Ve=function(t,e){"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),K(t,!1)):(e.pasteFormat.set("text"),K(t,!0)),t.focus()},We=function(t,e){t.addCommand("mceTogglePlainTextPaste",(function(){Ve(t,e)})),t.addCommand("mceInsertClipboardContent",(function(t,n){n.content&&e.pasteHtml(n.content,n.internal),n.text&&e.pasteText(n.text)}))},Ge=function(t){return!1===B.iOS&&"function"===typeof(null===t||void 0===t?void 0:t.setData)},Xe=function(t,e,n){if(!Ge(t))return!1;try{return t.clearData(),t.setData("text/html",e),t.setData("text/plain",n),t.setData(xt(),e),!0}catch(r){return!1}},Je=function(t,e,n,r){Xe(t.clipboardData,e.html,e.text)?(t.preventDefault(),r()):n(e.html,r)},Qe=function(t){return function(e,n){var r=yt(e),o=t.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=t.dom.create("div",{contenteditable:"true"},r);t.dom.setStyles(o,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),o.appendChild(i),t.dom.add(t.getBody(),o);var a=t.selection.getRng();i.focus();var u=t.dom.createRng();u.selectNodeContents(i),t.selection.setRng(u),j.setTimeout((function(){t.selection.setRng(a),o.parentNode.removeChild(o),n()}),0)}},Ye=function(t){return{html:t.selection.getContent({contextual:!0}),text:t.selection.getContent({format:"text"})}},Ze=function(t){return!!t.dom.getParent(t.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",t.getBody())},tn=function(t){return!t.selection.isCollapsed()||Ze(t)},en=function(t){return function(e){tn(t)&&Je(e,Ye(t),Qe(t),(function(){if(B.browser.isChrome()||B.browser.isFirefox()){var e=t.selection.getRng();j.setEditorTimeout(t,(function(){t.selection.setRng(e),t.execCommand("Delete")}),0)}else t.execCommand("Delete")}))}},nn=function(t){return function(e){tn(t)&&Je(e,Ye(t),Qe(t),f)}},rn=function(t){t.on("cut",en(t)),t.on("copy",nn(t))},on=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),an=function(t,e){return on.getCaretRangeFromPoint(e.clientX,e.clientY,t.getDoc())},un=function(t){var e=t["text/plain"];return!!e&&0===e.indexOf("file://")},cn=function(t,e){t.focus(),t.selection.setRng(e)},sn=function(t,e,n){W(t)&&t.on("dragend dragover draggesture dragdrop drop drag",(function(t){t.preventDefault(),t.stopPropagation()})),G(t)||t.on("drop",(function(t){var e=t.dataTransfer;e&&e.files&&e.files.length>0&&t.preventDefault()})),t.on("drop",(function(r){var o=an(t,r);if(!r.isDefaultPrevented()&&!n.get()){var i=e.getDataTransferItems(r.dataTransfer),a=e.hasContentType(i,xt());if((e.hasHtmlOrText(i)&&!un(i)||!e.pasteImageData(r,o))&&o&&X(t)){var u=i["mce-internal"]||i["text/html"]||i["text/plain"];u&&(r.preventDefault(),j.setEditorTimeout(t,(function(){t.undoManager.transact((function(){i["mce-internal"]&&t.execCommand("Delete"),cn(t,o),u=Bt(u),i["text/html"]?e.pasteHtml(u,a):e.pasteText(u)}))})))}}})),t.on("dragstart",(function(t){n.set(!0)})),t.on("dragover dragend",(function(e){G(t)&&!1===n.get()&&(e.preventDefault(),cn(t,an(t,e))),"dragend"===e.type&&n.set(!1)}))},ln=function(t){var e=t.plugins.paste,n=J(t);n&&t.on("PastePreProcess",(function(t){n.call(e,e,t)}));var r=Q(t);r&&t.on("PastePostProcess",(function(t){r.call(e,e,t)}))},fn=function(t,e){t.on("PastePreProcess",(function(n){n.content=e(t,n.content,n.internal,n.wordContent)}))},dn=function(t,e){t.on("PastePostProcess",(function(n){e(t,n.node)}))},mn=function(t,e){if(!zt(e))return e;var n=[];V.each(t.schema.getBlockElements(),(function(t,e){n.push(e)}));var r=new RegExp("(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*(<\\/?("+n.join("|")+")[^>]*>)(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*","g");return e=Mt(e,[[r,"$1"]]),e=Mt(e,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]]),e},gn=function(t,e,n,r){if(r||n)return e;var o,i=Y(t);if(!1===Z(t)||"all"===i)return e;if(i&&(o=i.split(/[, ]/)),o){var a=t.dom,u=t.selection.getNode();e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(function(t,e,n,r){var i=a.parseStyle(a.decode(n)),c={};if("none"===o)return e+r;for(var s=0;s<o.length;s++){var l=i[o[s]],f=a.getStyle(u,o[s],!0);/color/.test(o[s])&&(l=a.toHex(l),f=a.toHex(f)),f!==l&&(c[o[s]]=l)}var d=a.serializeStyle(c,"span");return d?e+' style="'+d+'"'+r:e+r}))}else e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return e=e.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(function(t,e,n,r){return e+' style="'+n+'"'+r})),e},pn=function(t,e){t.$("a",e).find("font,u").each((function(e,n){t.dom.remove(n,!0)}))},vn=function(t){B.webkit&&fn(t,gn),B.ie&&(fn(t,mn),dn(t,pn))},hn=function(t,e){return function(n){n.setActive("text"===e.pasteFormat.get());var r=function(t){return n.setActive(t.state)};return t.on("PastePlainTextToggle",r),function(){return t.off("PastePlainTextToggle",r)}}},yn=function(t,e){var n=function(){return t.execCommand("mceTogglePlainTextPaste")};t.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:n,onSetup:hn(t,e)}),t.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:n,onSetup:hn(t,e)})};function bn(){e.add("paste",(function(e){if(!1===n(e)){var o=t(!1),i=t(nt(e)?"text":"html"),a=qe(e,i);return vn(e),yn(e,a),We(e,a),ln(e),rn(e),sn(e,a,o),r(a)}}))}bn()})()},"840a":function(t,e,n){n("d4c3")},"84ec":function(t,e,n){n("2401")},"90e7":function(t,e,n){n("3c41")},bc54:function(t,e,n){n("7c4f")},be7f:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return function(e){return n(e)===t}},o=function(t){return function(e){return typeof e===t}},i=function(t){return function(e){return t===e}},a=r("string"),u=r("array"),c=i(null),s=o("boolean"),l=o("function"),f=function(){},d=function(t){return function(){return t}},m=function(t){return t},g=function(t,e){return t===e},p=d(!1),v=d(!0),h=function(){return y},y=function(){var t=function(t){return t()},e=m,n={fold:function(t,e){return t()},isSome:p,isNone:v,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:e,orThunk:t,map:h,each:f,bind:h,exists:p,forall:v,filter:function(){return h()},toArray:function(){return[]},toString:d("none()")};return n}(),b=function(t){var e=d(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:v,isNone:p,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return b(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:y},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},w=function(t){return null===t||void 0===t?y:b(t)},x={some:b,none:h,from:w},C=Array.prototype.indexOf,k=Array.prototype.push,S=function(t,e){return C.call(t,e)},T=function(t,e){return S(t,e)>-1},O=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},D=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},P=function(t,e,n){return D(t,(function(t,r){n=e(n,t,r)})),n},A=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!u(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);k.apply(e,t[n])}return e},N=function(t,e){return A(O(t,e))},L=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return x.none()},_=function(t,e,n){return void 0===n&&(n=g),t.exists((function(t){return n(t,e)}))},E=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},I=function(t,e){return t?x.some(e):x.none()},R=function(t){var e=t.getParam("link_assume_external_targets",!1);return s(e)&&e?1:!a(e)||"http"!==e&&"https"!==e?0:e},M=function(t){return t.getParam("link_context_toolbar",!1,"boolean")},U=function(t){return t.getParam("link_list")},B=function(t){return t.getParam("default_link_target")},j=function(t){return t.getParam("target_list",!0)},F=function(t){return t.getParam("rel_list",[],"array")},z=function(t){return t.getParam("link_class_list",[],"array")},H=function(t){return t.getParam("link_title",!0,"boolean")},$=function(t){return t.getParam("allow_unsafe_link_target",!1,"boolean")},K=function(t){return t.getParam("link_quicklink",!1,"boolean")},q=function(t){return t.getParam("link_default_protocol","http","string")},V=tinymce.util.Tools.resolve("tinymce.util.Tools"),W=function(t){return a(t.value)?t.value:""},G=function(t){return a(t.text)?t.text:a(t.title)?t.title:""},X=function(t,e){var n=[];return V.each(t,(function(t){var r=G(t);if(void 0!==t.menu){var o=X(t.menu,e);n.push({text:r,items:o})}else{var i=e(t);n.push({text:r,value:i})}})),n},J=function(t){return void 0===t&&(t=W),function(e){return x.from(e).map((function(e){return X(e,t)}))}},Q=function(t){return J(W)(t)},Y=function(t,e){return function(n){return{name:t,type:"listbox",label:e,items:n}}},Z={sanitize:Q,sanitizeWith:J,createUi:Y,getValue:W},tt=function(){return tt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},tt.apply(this,arguments)},et=Object.keys,nt=Object.hasOwnProperty,rt=function(t,e){for(var n=et(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];e(a,i)}},ot=function(t){return function(e,n){t[n]=e}},it=function(t,e,n,r){var o={};return rt(t,(function(t,o){(e(t,o)?n:r)(t,o)})),o},at=function(t,e){var n={};return it(t,e,ot(n),f),n},ut=function(t,e){return nt.call(t,e)},ct=function(t,e){return ut(t,e)&&void 0!==t[e]&&null!==t[e]},st=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),lt=tinymce.util.Tools.resolve("tinymce.util.URI"),ft=function(t){return t&&"a"===t.nodeName.toLowerCase()},dt=function(t){return ft(t)&&!!pt(t)},mt=function(t,e){if(t.collapsed)return[];var n=t.cloneContents(),r=new st(n.firstChild,n),o=[],i=n.firstChild;do{e(i)&&o.push(i)}while(i=r.next());return o},gt=function(t){return/^\w+:/i.test(t)},pt=function(t){var e=t.getAttribute("data-mce-href");return e||t.getAttribute("href")},vt=function(t,e){var n=["noopener"],r=t?t.split(/\s+/):[],o=function(t){return V.trim(t.sort().join(" "))},i=function(t){return t=a(t),t.length>0?t.concat(n):n},a=function(t){return t.filter((function(t){return-1===V.inArray(n,t)}))},u=e?i(r):a(r);return u.length>0?o(u):""},ht=function(t){return t.replace(/\uFEFF/g,"")},yt=function(t,e){return e=e||t.selection.getNode(),kt(e)?t.dom.select("a[href]",e)[0]:t.dom.getParent(e,"a[href]")},bt=function(t,e){var n=e?e.innerText||e.textContent:t.getContent({format:"text"});return ht(n)},wt=function(t){return V.grep(t,dt).length>0},xt=function(t){return mt(t,dt).length>0},Ct=function(t){var e=t.schema.getTextInlineElements(),n=function(t){return 1===t.nodeType&&!ft(t)&&!ut(e,t.nodeName.toLowerCase())},r=mt(t.selection.getRng(),n);return 0===r.length},kt=function(t){return t&&"FIGURE"===t.nodeName&&/\bimage\b/i.test(t.className)},St=function(t){var e=["title","rel","class","target"];return P(e,(function(e,n){return t[n].each((function(t){e[n]=t.length>0?t:null})),e}),{href:t.href})},Tt=function(t,e){return"http"!==e&&"https"!==e||gt(t)?t:e+"://"+t},Ot=function(t,e){var n=tt({},e);if(!(F(t).length>0)&&!1===$(t)){var r=vt(n.rel,"_blank"===n.target);n.rel=r||null}return x.from(n.target).isNone()&&!1===j(t)&&(n.target=B(t)),n.href=Tt(n.href,R(t)),n},Dt=function(t,e,n,r){n.each((function(t){ut(e,"innerText")?e.innerText=t:e.textContent=t})),t.dom.setAttribs(e,r),t.selection.select(e)},Pt=function(t,e,n,r){kt(e)?Ut(t,e,r):n.fold((function(){t.execCommand("mceInsertLink",!1,r)}),(function(e){t.insertContent(t.dom.createHTML("a",r,t.dom.encode(e)))}))},At=function(t,e,n){var r=t.selection.getNode(),o=yt(t,r),i=Ot(t,St(n));t.undoManager.transact((function(){n.href===e.href&&e.attach(),o?(t.focus(),Dt(t,o,n.text,i)):Pt(t,r,n.text,i)}))},Nt=function(t){var e=t.dom,n=t.selection,r=n.getBookmark(),o=n.getRng().cloneRange(),i=e.getParent(o.startContainer,"a[href]",t.getBody()),a=e.getParent(o.endContainer,"a[href]",t.getBody());i&&o.setStartBefore(i),a&&o.setEndAfter(a),n.setRng(o),t.execCommand("unlink"),n.moveToBookmark(r)},Lt=function(t){t.undoManager.transact((function(){var e=t.selection.getNode();kt(e)?Mt(t,e):Nt(t),t.focus()}))},_t=function(t){var e=t.class,n=t.href,r=t.rel,o=t.target,i=t.text,a=t.title;return at({class:e.getOrNull(),href:n,rel:r.getOrNull(),target:o.getOrNull(),text:i.getOrNull(),title:a.getOrNull()},(function(t,e){return!1===c(t)}))},Et=function(t,e){var n=e.href;return tt(tt({},e),{href:lt.isDomSafe(n,"a",t.settings)?n:""})},It=function(t,e,n){var r=Et(t,n);t.hasPlugin("rtc",!0)?t.execCommand("createlink",!1,_t(r)):At(t,e,r)},Rt=function(t){t.hasPlugin("rtc",!0)?t.execCommand("unlink"):Lt(t)},Mt=function(t,e){var n=t.dom.select("img",e)[0];if(n){var r=t.dom.getParents(n,"a[href]",e)[0];r&&(r.parentNode.insertBefore(n,r),t.dom.remove(r))}},Ut=function(t,e,n){var r=t.dom.select("img",e)[0];if(r){var o=t.dom.create("a",n);r.parentNode.insertBefore(o,r),o.appendChild(r)}},Bt=function(t){return ct(t,"items")},jt=function(t,e){return L(e,(function(e){return Bt(e)?jt(t,e.items):I(e.value===t,e)}))},Ft=function(t,e,n,r){var o=r[e],i=t.length>0;return void 0!==o?jt(o,n).map((function(e){return{url:{value:e.value,meta:{text:i?t:e.text,attach:f}},text:i?t:e.text}})):x.none()},zt=function(t,e){return"link"===e?t.link:"anchor"===e?t.anchor:x.none()},Ht=function(t,e){var n={text:t.text,title:t.title},r=function(t){return I(n.title.length<=0,x.from(t.meta.title).getOr(""))},o=function(t){return I(n.text.length<=0,x.from(t.meta.text).getOr(t.value))},i=function(t){var e=o(t.url),n=r(t.url);return e.isSome()||n.isSome()?x.some(tt(tt({},e.map((function(t){return{text:t}})).getOr({})),n.map((function(t){return{title:t}})).getOr({}))):x.none()},a=function(t,r){var o=zt(e,r.name).getOr([]);return Ft(n.text,r.name,o,t)},u=function(t,e){var r=e.name;return"url"===r?i(t()):T(["anchor","link"],r)?a(t(),e):"text"===r||"title"===r?(n[r]=t()[r],x.none()):x.none()};return{onChange:u}},$t={init:Ht,getDelta:Ft},Kt=tinymce.util.Tools.resolve("tinymce.util.Delay"),qt=tinymce.util.Tools.resolve("tinymce.util.Promise"),Vt=function(t,e,n){var r=t.selection.getRng();Kt.setEditorTimeout(t,(function(){t.windowManager.confirm(e,(function(e){t.selection.setRng(r),n(e)}))}))},Wt=function(t){var e=t.href,n=e.indexOf("@")>0&&-1===e.indexOf("/")&&-1===e.indexOf("mailto:");return n?x.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(t){return tt(tt({},t),{href:"mailto:"+e})}}):x.none()},Gt=function(t,e){return function(n){var r=n.href,o=1===t&&!gt(r)||0===t&&/^\s*www(\.|\d\.)/i.test(r);return o?x.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+e+":// prefix?",preprocess:function(t){return tt(tt({},t),{href:e+"://"+r})}}):x.none()}},Xt=function(t,e){return L([Wt,Gt(R(t),q(t))],(function(t){return t(e)})).fold((function(){return qt.resolve(e)}),(function(n){return new qt((function(r){Vt(t,n.message,(function(t){r(t?n.preprocess(e):e)}))}))}))},Jt={preprocess:Xt},Qt=function(t){var e=t.dom.select("a:not([href])"),n=N(e,(function(t){var e=t.name||t.id;return e?[{text:e,value:"#"+e}]:[]}));return n.length>0?x.some([{text:"None",value:""}].concat(n)):x.none()},Yt={getAnchors:Qt},Zt=function(t){var e=z(t);return e.length>0?Z.sanitize(e):x.none()},te={getClasses:Zt},ee=tinymce.util.Tools.resolve("tinymce.util.XHR"),ne=function(t){try{return x.some(JSON.parse(t))}catch(e){return x.none()}},re=function(t){var e=function(e){return t.convertURL(e.value||e.url,"href")},n=U(t);return new qt((function(t){a(n)?ee.send({url:n,success:function(e){return t(ne(e))},error:function(e){return t(x.none())}}):l(n)?n((function(e){return t(x.some(e))})):t(x.from(n))})).then((function(t){return t.bind(Z.sanitizeWith(e)).map((function(t){if(t.length>0){var e=[{text:"None",value:""}];return e.concat(t)}return t}))}))},oe={getLinks:re},ie=function(t,e){var n=F(t);if(n.length>0){var r=_(e,"_blank"),o=!1===$(t),i=function(t){return vt(Z.getValue(t),r)},a=o?Z.sanitizeWith(i):Z.sanitize;return a(n)}return x.none()},ae={getRels:ie},ue=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],ce=function(t){var e=j(t);return u(e)?Z.sanitize(e).orThunk((function(){return x.some(ue)})):!1===e?x.none():x.some(ue)},se={getTargets:ce},le=function(t,e,n){var r=t.getAttrib(e,n);return null!==r&&r.length>0?x.some(r):x.none()},fe=function(t,e){var n=t.dom,r=Ct(t),o=r?x.some(bt(t.selection,e)):x.none(),i=e?x.some(n.getAttrib(e,"href")):x.none(),a=e?x.from(n.getAttrib(e,"target")):x.none(),u=le(n,e,"rel"),c=le(n,e,"class"),s=le(n,e,"title");return{url:i,text:o,title:s,target:a,rel:u,linkClass:c}},de=function(t,e){return oe.getLinks(t).then((function(n){var r=fe(t,e);return{anchor:r,catalogs:{targets:se.getTargets(t),rels:ae.getRels(t,r.target),classes:te.getClasses(t),anchor:Yt.getAnchors(t),link:n},optNode:x.from(e),flags:{titleEnabled:H(t)}}}))},me={collect:de},ge=function(t,e){return function(n){var r=n.getData();if(!r.url.value)return Rt(t),void n.close();var o=function(t){return x.from(r[t]).filter((function(n){return!_(e.anchor[t],n)}))},i={href:r.url.value,text:o("text"),target:o("target"),rel:o("rel"),class:o("linkClass"),title:o("title")},a={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:f};Jt.preprocess(t,i).then((function(e){It(t,a,e)})),n.close()}},pe=function(t){var e=yt(t);return me.collect(t,e)},ve=function(t,e){var n=t.anchor,r=n.url.getOr("");return{url:{value:r,meta:{original:{value:r}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:r,link:r,rel:n.rel.getOr(""),target:n.target.or(e).getOr(""),linkClass:n.linkClass.getOr("")}},he=function(t,e,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],o=t.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),i=t.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=x.from(B(n)),u=ve(t,a),c=t.catalogs,s=$t.init(u,c),l={type:"panel",items:A([r,o,i,E([c.anchor.map(Z.createUi("anchor","Anchors")),c.rels.map(Z.createUi("rel","Rel")),c.targets.map(Z.createUi("target","Open link in...")),c.link.map(Z.createUi("link","Link list")),c.classes.map(Z.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:l,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:u,onChange:function(t,e){var n=e.name;s.onChange(t.getData,{name:n}).each((function(e){t.setData(e)}))},onSubmit:e}},ye=function(t){var e=pe(t);e.then((function(e){var n=ge(t,e);return he(e,n,t)})).then((function(e){t.windowManager.open(e)}))},be=function(t,e){document.body.appendChild(t),t.dispatchEvent(e),document.body.removeChild(t)},we=function(t){var e=document.createElement("a");e.target="_blank",e.href=t,e.rel="noreferrer noopener";var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),be(e,n)},xe=function(t,e){return t.dom.getParent(e,"a[href]")},Ce=function(t){return xe(t,t.selection.getStart())},ke=function(t){return!0===t.altKey&&!1===t.shiftKey&&!1===t.ctrlKey&&!1===t.metaKey},Se=function(t,e){if(e){var n=pt(e);if(/^#/.test(n)){var r=t.$(n);r.length&&t.selection.scrollIntoView(r[0],!0)}else we(e.href)}},Te=function(t){return function(){ye(t)}},Oe=function(t){return function(){Se(t,Ce(t))}},De=function(t){t.on("click",(function(n){var r=xe(t,n.target);r&&e.metaKeyPressed(n)&&(n.preventDefault(),Se(t,r))})),t.on("keydown",(function(e){var n=Ce(t);n&&13===e.keyCode&&ke(e)&&(e.preventDefault(),Se(t,n))}))},Pe=function(t,e){return t.on("NodeChange",e),function(){return t.off("NodeChange",e)}},Ae=function(t){return function(e){var n=function(){return e.setActive(!t.mode.isReadOnly()&&null!==yt(t,t.selection.getNode()))};return n(),Pe(t,n)}},Ne=function(t){return function(e){var n=function(){return e.setDisabled(null===yt(t,t.selection.getNode()))};return n(),Pe(t,n)}},Le=function(t){return function(e){var n=function(e){return wt(e)||xt(t.selection.getRng())},r=t.dom.getParents(t.selection.getStart());return e.setDisabled(!n(r)),Pe(t,(function(t){return e.setDisabled(!n(t.parents))}))}},_e=function(t){t.addCommand("mceLink",(function(){K(t)?t.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):Te(t)()}))},Ee=function(t){t.addShortcut("Meta+K","",(function(){t.execCommand("mceLink")}))},Ie=function(t){t.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:Te(t),onSetup:Ae(t)}),t.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Oe(t),onSetup:Ne(t)}),t.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return Rt(t)},onSetup:Le(t)})},Re=function(t){t.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Oe(t),onSetup:Ne(t)}),t.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:Te(t)}),t.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return Rt(t)},onSetup:Le(t)})},Me=function(t){var e="link unlink openlink",n="link";t.ui.registry.addContextMenu("link",{update:function(r){return wt(t.dom.getParents(r,"a"))?e:n}})},Ue=function(t){var e=function(t){t.selection.collapse(!1)},n=function(e){var n=t.selection.getNode();return e.setDisabled(!yt(t,n)),f},r=function(e){var n=yt(t),r=Ct(t);if(!n&&r){var o=bt(t.selection,n);return x.some(o.length>0?o:e)}return x.none()};t.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Ae(t)},label:"Link",predicate:function(e){return!!yt(t,e)&&M(t)},initValue:function(){var e=yt(t);return e?pt(e):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(e){var n=t.selection.getNode();return e.setActive(!!yt(t,n)),Ae(t)(e)},onAction:function(n){var o=n.getValue(),i=r(o),a={href:o,attach:f};It(t,a,{href:o,text:i,title:x.none(),rel:x.none(),target:x.none(),class:x.none()}),e(t),n.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(e){Rt(t),e.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(e){Oe(t)(),e.hide()}}]})};function Be(){t.add("link",(function(t){Ie(t),Re(t),Me(t),Ue(t),De(t),_e(t),Ee(t)}))}Be()})()},cdd9:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(){return e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)},n=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return function(e){return n(e)===t}},o=function(t){return function(e){return typeof e===t}},i=function(t){return function(e){return t===e}},a=r("string"),u=r("object"),c=r("array"),s=i(null),l=o("boolean"),f=function(t){return null===t||void 0===t},d=function(t){return!f(t)},m=o("function"),g=o("number"),p=function(){},v=function(t){return function(){return t}},h=function(t){return t},y=v(!1),b=v(!0),w=function(){return x},x=function(){var t=function(t){return t()},e=h,n={fold:function(t,e){return t()},isSome:y,isNone:b,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:v(null),getOrUndefined:v(void 0),or:e,orThunk:t,map:w,each:p,bind:w,exists:y,forall:b,filter:function(){return w()},toArray:function(){return[]},toString:v("none()")};return n}(),C=function(t){var e=v(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:b,isNone:y,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return C(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:x},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},k=function(t){return null===t||void 0===t?x:C(t)},S={some:C,none:w,from:k},T=Object.keys,O=Object.hasOwnProperty,D=function(t,e){for(var n=T(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];e(a,i)}},P=function(t){return function(e,n){t[n]=e}},A=function(t,e,n,r){var o={};return D(t,(function(t,o){(e(t,o)?n:r)(t,o)})),o},N=function(t,e){var n={};return A(t,e,P(n),p),n},L=function(t,e){return O.call(t,e)},_=function(t,e){return L(t,e)&&void 0!==t[e]&&null!==t[e]},E=Array.prototype.push,I=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!c(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);E.apply(e,t[n])}return e},R=function(t,e){return e>=0&&e<t.length?S.some(t[e]):S.none()},M=function(t){return R(t,0)},U=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return S.none()};"undefined"!==typeof window?window:Function("return this;")();var B=function(t,e,n){if(!(a(n)||l(n)||g(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},j=function(t,e,n){B(t.dom,e,n)},F=function(t,e){t.dom.removeAttribute(e)},z=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return K(r.childNodes[0])},H=function(t,e){var n=e||document,r=n.createElement(t);return K(r)},$=function(t,e){var n=e||document,r=n.createTextNode(t);return K(r)},K=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},q=function(t,e,n){return S.from(t.dom.elementFromPoint(e,n)).map(K)},V={fromHtml:z,fromTag:H,fromText:$,fromDom:K,fromPoint:q},W=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),G=tinymce.util.Tools.resolve("tinymce.util.Promise"),X=tinymce.util.Tools.resolve("tinymce.util.URI"),J=tinymce.util.Tools.resolve("tinymce.util.XHR"),Q=function(t){return t.getParam("image_dimensions",!0,"boolean")},Y=function(t){return t.getParam("image_advtab",!1,"boolean")},Z=function(t){return t.getParam("image_uploadtab",!0,"boolean")},tt=function(t){return t.getParam("image_prepend_url","","string")},et=function(t){return t.getParam("image_class_list")},nt=function(t){return t.getParam("image_description",!0,"boolean")},rt=function(t){return t.getParam("image_title",!1,"boolean")},ot=function(t){return t.getParam("image_caption",!1,"boolean")},it=function(t){return t.getParam("image_list",!1)},at=function(t){return d(t.getParam("images_upload_url"))},ut=function(t){return d(t.getParam("images_upload_handler"))},ct=function(t){return t.getParam("a11y_advanced_options",!1,"boolean")},st=function(t){return t.getParam("automatic_uploads",!0,"boolean")},lt=function(t,e){return Math.max(parseInt(t,10),parseInt(e,10))},ft=function(t){return new G((function(e){var n=document.createElement("img"),r=function(t){n.onload=n.onerror=null,n.parentNode&&n.parentNode.removeChild(n),e(t)};n.onload=function(){var t=lt(n.width,n.clientWidth),e=lt(n.height,n.clientHeight),o={width:t,height:e};r(G.resolve(o))},n.onerror=function(){r(G.reject("Failed to get image dimensions for: "+t))};var o=n.style;o.visibility="hidden",o.position="fixed",o.bottom=o.left="0px",o.width=o.height="auto",document.body.appendChild(n),n.src=t}))},dt=function(t){return t&&(t=t.replace(/px$/,"")),t},mt=function(t){return t.length>0&&/^[0-9]+$/.test(t)&&(t+="px"),t},gt=function(t){if(t.margin){var e=String(t.margin).split(" ");switch(e.length){case 1:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[0],t["margin-bottom"]=t["margin-bottom"]||e[0],t["margin-left"]=t["margin-left"]||e[0];break;case 2:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[0],t["margin-left"]=t["margin-left"]||e[1];break;case 3:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[2],t["margin-left"]=t["margin-left"]||e[1];break;case 4:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[2],t["margin-left"]=t["margin-left"]||e[3]}delete t.margin}return t},pt=function(t,e){var n=it(t);a(n)?J.send({url:n,success:function(t){e(JSON.parse(t))}}):m(n)?n(e):e(n)},vt=function(t,e,n){var r=function(){n.onload=n.onerror=null,t.selection&&(t.selection.select(n),t.nodeChanged())};n.onload=function(){e.width||e.height||!Q(t)||t.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},ht=function(t){return new G((function(e,n){var r=new FileReader;r.onload=function(){e(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(t)}))},yt=function(t){return"IMG"===t.nodeName&&(t.hasAttribute("data-mce-object")||t.hasAttribute("data-mce-placeholder"))},bt=function(t,e){return X.isDomSafe(e,"img",t.settings)},wt=W.DOM,xt=function(t){return t.style.marginLeft&&t.style.marginRight&&t.style.marginLeft===t.style.marginRight?dt(t.style.marginLeft):""},Ct=function(t){return t.style.marginTop&&t.style.marginBottom&&t.style.marginTop===t.style.marginBottom?dt(t.style.marginTop):""},kt=function(t){return t.style.borderWidth?dt(t.style.borderWidth):""},St=function(t,e){return t.hasAttribute(e)?t.getAttribute(e):""},Tt=function(t,e){return t.style[e]?t.style[e]:""},Ot=function(t){return null!==t.parentNode&&"FIGURE"===t.parentNode.nodeName},Dt=function(t,e,n){""===n?t.removeAttribute(e):t.setAttribute(e,n)},Pt=function(t){var e=wt.create("figure",{class:"image"});wt.insertAfter(e,t),e.appendChild(t),e.appendChild(wt.create("figcaption",{contentEditable:"true"},"Caption")),e.contentEditable="false"},At=function(t){var e=t.parentNode;wt.insertAfter(t,e),wt.remove(e)},Nt=function(t){Ot(t)?At(t):Pt(t)},Lt=function(t,e){var n=t.getAttribute("style"),r=e(null!==n?n:"");r.length>0?(t.setAttribute("style",r),t.setAttribute("data-mce-style",r)):t.removeAttribute("style")},_t=function(t,e){return function(t,n,r){t.style[n]?(t.style[n]=mt(r),Lt(t,e)):Dt(t,n,r)}},Et=function(t,e){return t.style[e]?dt(t.style[e]):St(t,e)},It=function(t,e){var n=mt(e);t.style.marginLeft=n,t.style.marginRight=n},Rt=function(t,e){var n=mt(e);t.style.marginTop=n,t.style.marginBottom=n},Mt=function(t,e){var n=mt(e);t.style.borderWidth=n},Ut=function(t,e){t.style.borderStyle=e},Bt=function(t){return Tt(t,"borderStyle")},jt=function(t){return"FIGURE"===t.nodeName},Ft=function(t){return"IMG"===t.nodeName},zt=function(t){return 0===wt.getAttrib(t,"alt").length&&"presentation"===wt.getAttrib(t,"role")},Ht=function(t){return zt(t)?"":St(t,"alt")},$t=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},Kt=function(t,e){var n=document.createElement("img");return Dt(n,"style",e.style),(xt(n)||""!==e.hspace)&&It(n,e.hspace),(Ct(n)||""!==e.vspace)&&Rt(n,e.vspace),(kt(n)||""!==e.border)&&Mt(n,e.border),(Bt(n)||""!==e.borderStyle)&&Ut(n,e.borderStyle),t(n.getAttribute("style"))},qt=function(t,n){var r=document.createElement("img");if(Qt(t,e(e({},n),{caption:!1}),r),Gt(r,n.alt,n.isDecorative),n.caption){var o=wt.create("figure",{class:"image"});return o.appendChild(r),o.appendChild(wt.create("figcaption",{contentEditable:"true"},"Caption")),o.contentEditable="false",o}return r},Vt=function(t,e){return{src:St(e,"src"),alt:Ht(e),title:St(e,"title"),width:Et(e,"width"),height:Et(e,"height"),class:St(e,"class"),style:t(St(e,"style")),caption:Ot(e),hspace:xt(e),vspace:Ct(e),border:kt(e),borderStyle:Tt(e,"borderStyle"),isDecorative:zt(e)}},Wt=function(t,e,n,r,o){n[r]!==e[r]&&o(t,r,n[r])},Gt=function(t,e,n){if(n){wt.setAttrib(t,"role","presentation");var r=V.fromDom(t);j(r,"alt","")}else{if(s(e)){r=V.fromDom(t);F(r,"alt")}else{r=V.fromDom(t);j(r,"alt",e)}"presentation"===wt.getAttrib(t,"role")&&wt.setAttrib(t,"role","")}},Xt=function(t,e,n){n.alt===e.alt&&n.isDecorative===e.isDecorative||Gt(t,n.alt,n.isDecorative)},Jt=function(t,e){return function(n,r,o){t(n,o),Lt(n,e)}},Qt=function(t,e,n){var r=Vt(t,n);Wt(n,r,e,"caption",(function(t,e,n){return Nt(t)})),Wt(n,r,e,"src",Dt),Wt(n,r,e,"title",Dt),Wt(n,r,e,"width",_t("width",t)),Wt(n,r,e,"height",_t("height",t)),Wt(n,r,e,"class",Dt),Wt(n,r,e,"style",Jt((function(t,e){return Dt(t,"style",e)}),t)),Wt(n,r,e,"hspace",Jt(It,t)),Wt(n,r,e,"vspace",Jt(Rt,t)),Wt(n,r,e,"border",Jt(Mt,t)),Wt(n,r,e,"borderStyle",Jt(Ut,t)),Xt(n,r,e)},Yt=function(t,e){var n=t.dom.styles.parse(e),r=gt(n),o=t.dom.styles.parse(t.dom.styles.serialize(r));return t.dom.styles.serialize(o)},Zt=function(t){var e=t.selection.getNode(),n=t.dom.getParent(e,"figure.image");return n?t.dom.select("img",n)[0]:e&&("IMG"!==e.nodeName||yt(e))?null:e},te=function(t,e){var n=t.dom,r=N(t.schema.getTextBlockElements(),(function(e,n){return!t.schema.isValidChild(n,"figure")})),o=n.getParent(e.parentNode,(function(t){return _(r,t.nodeName)}),t.getBody());return o?n.split(o,e):e},ee=function(t){var e=Zt(t);return e?Vt((function(e){return Yt(t,e)}),e):$t()},ne=function(t,e){var n=qt((function(e){return Yt(t,e)}),e);t.dom.setAttrib(n,"data-mce-id","__mcenew"),t.focus(),t.selection.setContent(n.outerHTML);var r=t.dom.select('*[data-mce-id="__mcenew"]')[0];if(t.dom.setAttrib(r,"data-mce-id",null),jt(r)){var o=te(t,r);t.selection.select(o)}else t.selection.select(r)},re=function(t,e){t.dom.setAttrib(e,"src",e.getAttribute("src"))},oe=function(t,e){if(e){var n=t.dom.is(e.parentNode,"figure.image")?e.parentNode:e;t.dom.remove(n),t.focus(),t.nodeChanged(),t.dom.isEmpty(t.getBody())&&(t.setContent(""),t.selection.setCursorLocation())}},ie=function(t,e){var n=Zt(t);if(Qt((function(e){return Yt(t,e)}),e,n),re(t,n),jt(n.parentNode)){var r=n.parentNode;te(t,r),t.selection.select(n.parentNode)}else t.selection.select(n),vt(t,e,n)},ae=function(t,n){var r=n.src;return e(e({},n),{src:bt(t,r)?r:""})},ue=function(t,n){var r=Zt(t);if(r){var o=Vt((function(e){return Yt(t,e)}),r),i=e(e({},o),n),a=ae(t,i);i.src?ie(t,a):oe(t,r)}else n.src&&ne(t,e(e({},$t()),n))},ce=function(t,e){var n=u(t)&&u(e);return n?le(t,e):e},se=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<e.length;o++){var i=e[o];for(var a in i)L(i,a)&&(r[a]=t(r[a],i[a]))}return r}},le=se(ce),fe=function(t){return t.length>0},de=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),me=tinymce.util.Tools.resolve("tinymce.util.Tools"),ge=function(t){return a(t.value)?t.value:""},pe=function(t){return a(t.text)?t.text:a(t.title)?t.title:""},ve=function(t,e){var n=[];return me.each(t,(function(t){var r=pe(t);if(void 0!==t.menu){var o=ve(t.menu,e);n.push({text:r,items:o})}else{var i=e(t);n.push({text:r,value:i})}})),n},he=function(t){return void 0===t&&(t=ge),function(e){return e?S.from(e).map((function(e){return ve(e,t)})):S.none()}},ye=function(t){return he(ge)(t)},be=function(t){return L(t,"items")},we=function(t,e){return U(t,(function(t){return be(t)?we(t.items,e):t.value===e?S.some(t):S.none()}))},xe=function(t,e){return t.bind((function(t){return we(t,e)}))},Ce={sanitizer:he,sanitize:ye,findEntry:xe},ke=function(t){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},Se={makeTab:ke},Te=function(t){var e=Ce.sanitizer((function(e){return t.convertURL(e.value||e.url,"src")})),n=new G((function(n){pt(t,(function(t){n(e(t).map((function(t){return I([[{text:"None",value:""}],t])})))}))})),r=Ce.sanitize(et(t)),o=Y(t),i=Z(t),u=at(t),c=ut(t),s=ee(t),l=nt(t),f=rt(t),d=Q(t),m=ot(t),g=ct(t),p=st(t),v=S.some(tt(t)).filter((function(t){return a(t)&&t.length>0}));return n.then((function(t){return{image:s,imageList:t,classList:r,hasAdvTab:o,hasUploadTab:i,hasUploadUrl:u,hasUploadHandler:c,hasDescription:l,hasImageTitle:f,hasDimensions:d,hasImageCaption:m,prependURL:v,hasAccessibilityOptions:g,automaticUploads:p}}))},Oe=function(t){var n={name:"src",type:"urlinput",filetype:"image",label:"Source"},r=t.imageList.map((function(t){return{name:"images",type:"listbox",label:"Image list",items:t}})),o={name:"alt",type:"input",label:"Alternative description",disabled:t.hasAccessibilityOptions&&t.image.isDecorative},i={name:"title",type:"input",label:"Image title"},a={name:"dimensions",type:"sizeinput"},u={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},c=t.classList.map((function(t){return{name:"classes",type:"listbox",label:"Class",items:t}})),s={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},l=function(t){return t?{type:"grid",columns:2}:{type:"panel"}};return I([[n],r.toArray(),t.hasAccessibilityOptions&&t.hasDescription?[u]:[],t.hasDescription?[o]:[],t.hasImageTitle?[i]:[],t.hasDimensions?[a]:[],[e(e({},l(t.classList.isSome()&&t.hasImageCaption)),{items:I([c.toArray(),t.hasImageCaption?[s]:[]])})]])},De=function(t){return{title:"General",name:"general",items:Oe(t)}},Pe={makeTab:De,makeItems:Oe},Ae=function(t){var e=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:e}},Ne={makeTab:Ae},Le=function(t){return{prevImage:Ce.findEntry(t.imageList,t.image.src),prevAlt:t.image.alt,open:!0}},_e=function(t){return{src:{value:t.src,meta:{}},images:t.src,alt:t.alt,title:t.title,dimensions:{width:t.width,height:t.height},classes:t.class,caption:t.caption,style:t.style,vspace:t.vspace,border:t.border,hspace:t.hspace,borderstyle:t.borderStyle,fileinput:[],isDecorative:t.isDecorative}},Ee=function(t,e){return{src:t.src.value,alt:0===t.alt.length&&e?null:t.alt,title:t.title,width:t.dimensions.width,height:t.dimensions.height,class:t.classes,style:t.style,caption:t.caption,hspace:t.hspace,vspace:t.vspace,border:t.border,borderStyle:t.borderstyle,isDecorative:t.isDecorative}},Ie=function(t,e){return/^(?:[a-zA-Z]+:)?\/\//.test(e)?S.none():t.prependURL.bind((function(t){return e.substring(0,t.length)!==t?S.some(t+e):S.none()}))},Re=function(t,e){var n=e.getData();Ie(t,n.src.value).each((function(t){e.setData({src:{value:t,meta:n.src.meta}})}))},Me=function(t,e,n){t.hasDescription&&a(n.alt)&&(e.alt=n.alt),t.hasAccessibilityOptions&&(e.isDecorative=n.isDecorative||e.isDecorative||!1),t.hasImageTitle&&a(n.title)&&(e.title=n.title),t.hasDimensions&&(a(n.width)&&(e.dimensions.width=n.width),a(n.height)&&(e.dimensions.height=n.height)),a(n.class)&&Ce.findEntry(t.classList,n.class).each((function(t){e.classes=t.value})),t.hasImageCaption&&l(n.caption)&&(e.caption=n.caption),t.hasAdvTab&&(a(n.style)&&(e.style=n.style),a(n.vspace)&&(e.vspace=n.vspace),a(n.border)&&(e.border=n.border),a(n.hspace)&&(e.hspace=n.hspace),a(n.borderstyle)&&(e.borderstyle=n.borderstyle))},Ue=function(t,e){var n=e.getData(),r=n.src.meta;if(void 0!==r){var o=le({},n);Me(t,o,r),e.setData(o)}},Be=function(t,e,n,r){var o=r.getData(),i=o.src.value,a=o.src.meta||{};a.width||a.height||!e.hasDimensions||(fe(i)?t.imageSize(i).then((function(t){n.open&&r.setData({dimensions:t})})).catch((function(t){return console.error(t)})):r.setData({dimensions:{width:"",height:""}}))},je=function(t,e,n){var r=n.getData(),o=Ce.findEntry(t.imageList,r.src.value);e.prevImage=o,n.setData({images:o.map((function(t){return t.value})).getOr("")})},Fe=function(t,e,n,r){Re(e,r),Ue(e,r),Be(t,e,n,r),je(e,n,r)},ze=function(t,e,n,r){var o=r.getData(),i=Ce.findEntry(e.imageList,o.images);i.each((function(t){var e=""===o.alt||n.prevImage.map((function(t){return t.text===o.alt})).getOr(!1);e?""===t.value?r.setData({src:t,alt:n.prevAlt}):r.setData({src:t,alt:t.text}):r.setData({src:t})})),n.prevImage=i,Fe(t,e,n,r)},He=function(t){var e=t["margin-top"]&&t["margin-bottom"]&&t["margin-top"]===t["margin-bottom"];return e?dt(String(t["margin-top"])):""},$e=function(t){var e=t["margin-right"]&&t["margin-left"]&&t["margin-right"]===t["margin-left"];return e?dt(String(t["margin-right"])):""},Ke=function(t){return t["border-width"]?dt(String(t["border-width"])):""},qe=function(t){return t["border-style"]?String(t["border-style"]):""},Ve=function(t,e,n){return e(t(e(n)))},We=function(t,e,n){var r=gt(t(n.style)),o=le({},n);return o.vspace=He(r),o.hspace=$e(r),o.border=Ke(r),o.borderstyle=qe(r),o.style=Ve(t,e,r),o},Ge=function(t,e){var n=e.getData(),r=We(t.parseStyle,t.serializeStyle,n);e.setData(r)},Xe=function(t,e,n){var r=le(_e(e.image),n.getData()),o=Kt(t.normalizeCss,Ee(r,!1));n.setData({style:o})},Je=function(t,e,n,r){var o=r.getData();r.block("Uploading image"),M(o.fileinput).fold((function(){r.unblock()}),(function(o){var i=URL.createObjectURL(o),a=function(){r.unblock(),URL.revokeObjectURL(i)},u=function(o){r.setData({src:{value:o,meta:{}}}),r.showTab("general"),Fe(t,e,n,r)};ht(o).then((function(n){var c=t.createBlobCache(o,i,n);e.automaticUploads?t.uploadImage(c).then((function(t){u(t.url),a()})).catch((function(e){a(),t.alertErr(e)})):(t.addToBlobCache(c),u(c.blobUri()),r.unblock())}))}))},Qe=function(t,e,n){return function(r,o){"src"===o.name?Fe(t,e,n,r):"images"===o.name?ze(t,e,n,r):"alt"===o.name?n.prevAlt=r.getData().alt:"style"===o.name?Ge(t,r):"vspace"===o.name||"hspace"===o.name||"border"===o.name||"borderstyle"===o.name?Xe(t,e,r):"fileinput"===o.name?Je(t,e,n,r):"isDecorative"===o.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},Ye=function(t){return function(){t.open=!1}},Ze=function(t){if(t.hasAdvTab||t.hasUploadUrl||t.hasUploadHandler){var e={type:"tabpanel",tabs:I([[Pe.makeTab(t)],t.hasAdvTab?[Se.makeTab(t)]:[],t.hasUploadTab&&(t.hasUploadUrl||t.hasUploadHandler)?[Ne.makeTab(t)]:[]])};return e}var n={type:"panel",items:Pe.makeItems(t)};return n},tn=function(t){return function(e){var n=Le(e);return{title:"Insert/Edit Image",size:"normal",body:Ze(e),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:_e(e.image),onSubmit:t.onSubmit(e),onChange:Qe(t,e,n),onClose:Ye(n)}}},en=function(t){return function(e){return function(n){var r=le(_e(e.image),n.getData());t.execCommand("mceUpdateImage",!1,Ee(r,e.hasAccessibilityOptions)),t.editorUpload.uploadImagesAuto(),n.close()}}},nn=function(t){return function(e){return bt(t,e)?ft(t.documentBaseURI.toAbsolute(e)).then((function(t){return{width:String(t.width),height:String(t.height)}})):G.resolve({width:"",height:""})}},rn=function(t){return function(e,n,r){return t.editorUpload.blobCache.create({blob:e,blobUri:n,name:e.name?e.name.replace(/\.[^\.]+$/,""):null,filename:e.name,base64:r.split(",")[1]})}},on=function(t){return function(e){t.editorUpload.blobCache.add(e)}},an=function(t){return function(e){t.windowManager.alert(e)}},un=function(t){return function(e){return Yt(t,e)}},cn=function(t){return function(e){return t.dom.parseStyle(e)}},sn=function(t){return function(e,n){return t.dom.serializeStyle(e,n)}},ln=function(t){return function(e){return de(t).upload([e],!1).then((function(t){return 0===t.length?G.reject("Failed to upload image"):!1===t[0].status?G.reject(t[0].error.message):t[0]}))}},fn=function(t){var e={onSubmit:en(t),imageSize:nn(t),addToBlobCache:on(t),createBlobCache:rn(t),alertErr:an(t),normalizeCss:un(t),parseStyle:cn(t),serializeStyle:sn(t),uploadImage:ln(t)},n=function(){Te(t).then(tn(e)).then(t.windowManager.open)};return{open:n}},dn=function(t){t.addCommand("mceImage",fn(t).open),t.addCommand("mceUpdateImage",(function(e,n){t.undoManager.transact((function(){return ue(t,n)}))}))},mn=function(t){var e=t.attr("class");return e&&/\bimage\b/.test(e)},gn=function(t){return function(e){var n=e.length,r=function(e){e.attr("contenteditable",t?"true":null)};while(n--){var o=e[n];mn(o)&&(o.attr("contenteditable",t?"false":null),me.each(o.getAll("figcaption"),r))}}},pn=function(t){t.on("PreInit",(function(){t.parser.addNodeFilter("figure",gn(!0)),t.serializer.addNodeFilter("figure",gn(!1))}))},vn=function(t){t.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:fn(t).open,onSetup:function(e){return e.setActive(d(Zt(t))),t.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",e.setActive).unbind}}),t.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:fn(t).open}),t.ui.registry.addContextMenu("image",{update:function(t){return jt(t)||Ft(t)&&!yt(t)?["image"]:[]}})};function hn(){t.add("image",(function(t){pn(t),vn(t),dn(t)}))}hn()})()},d4c3:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=tinymce.util.Tools.resolve("tinymce.Env"),n=function(t){t.addCommand("mcePrint",(function(){e.browser.isIE()?t.getDoc().execCommand("print",!1,null):t.getWin().print()}))},r=function(t){var e=function(){return t.execCommand("mcePrint")};t.ui.registry.addButton("print",{icon:"print",tooltip:"Print",onAction:e}),t.ui.registry.addMenuItem("print",{text:"Print...",icon:"print",onAction:e})};function o(){t.add("print",(function(t){n(t),r(t),t.addShortcut("Meta+P","","mcePrint")}))}o()})()},dbbc:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(t){t.addCommand("InsertHorizontalRule",(function(){t.execCommand("mceInsertContent",!1,"<hr />")}))},n=function(t){var e=function(){return t.execCommand("InsertHorizontalRule")};t.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:e}),t.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:e})};function r(){t.add("hr",(function(t){e(t),n(t)}))}r()})()}}]);
2
- //# sourceMappingURL=super-ui.umd.min.yarn.tinymce~b5d80f29.js.map