diff --git a/gh-pages/docs.json b/gh-pages/docs.json new file mode 100644 index 000000000..e4279e670 --- /dev/null +++ b/gh-pages/docs.json @@ -0,0 +1 @@ +{"docs":[{"title":"Action 行为按钮","body":"action 行为按钮,是触发页面行为的主要方法之一## 基本用法我们这里简单实现一个点击按钮弹框的交互。## 通用属性表所有`actiontype`都支持的通用配置项| 属性名 | 类型 | 默认值 | 说明 || ---------------- | ---------------------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- || type | `string` | `action` | 指定为 page 渲染器。 || actiontype | `string` | - | 【必填】这是 action 最核心的配置,来指定该 action 的作用类型,支持:`ajax`、`link`、`url`、`drawer`、`dialog`、`confirm`、`cancel`、`prev`、`next`、`copy`、`close`。 || label | `string` | - | 按钮文本。可用 `${xxx}` 取值。 || level | `string` | `default` | 按钮样式,支持:`link`、`primary`、`secondary`、`info`、`success`、`warning`、`danger`、`light`、`dark`、`default`。 || size | `string` | - | 按钮大小,支持:`xs`、`sm`、`md`、`lg`。 || icon | `string` | - | 设置图标,例如`fa fa-plus`。 || iconclassname | `string` | - | 给图标上添加类名。 || active | `boolean` | - | 按钮是否高亮。 || activelevel | `string` | - | 按钮高亮时的样式,配置支持同`level`。 || activeclassname | `string` | `is-active` | 给按钮高亮添加类名。 || block | `boolean` | - | 用`display:\"block\"`来显示按钮。 || confirmtext | | - | 当设置后,操作在开始前会询问用户。可用 `${xxx}` 取值。 || reload | `string` | - | 指定此次操作完后,需要刷新的目标组件名字(组件的`name`值,自己配置的),多个请用 `,` 号隔开。 || tooltip | `string` | - | 鼠标停留时弹出该段文字,也可以配置对象类型:字段为`title`和`content`。可用 `${xxx}` 取值。 || disabledtip | `string` | - | 被禁用后鼠标停留时弹出该段文字,也可以配置对象类型:字段为`title`和`content`。可用 `${xxx}` 取值。 || tooltipplacement | `string` | `top` | 如果配置了`tooltip`或者`disabledtip`,指定提示信息位置,可配置`top`、`bottom`、`left`、`right`。 || close | `boolean` | - | 当`action`配置在`dialog`或`drawer`的`actions`中时,配置为`true`指定此次操作完后关闭当前`dialog`或`drawer`。 || required | `array` | - | 配置字符串数组,指定在`form`中进行操作之前,需要指定的字段名的表单项通过验证 |","path":"./docs/components/action"},{"title":"Alert 提示","body":"用来做文字特殊提示,分为四类:提示类、成功类、警告类和危险类。## 基本使用## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------------- | --------------------------------- | --------- | -------------------------------------------------------- || type | `string` | `\"alert\"` | 指定为 alert 渲染器 || classname | `string` | | 外层 dom 的类名 || level | `string` | `info` | 级别,可以是:`info`、`success`、`warning` 或者 `danger` || body | | | 显示内容 || showclosebutton | `boolean` | false | 是否显示关闭按钮 |","path":"./docs/components/alert"},{"title":"Audio 音频","body":"## 基本使用## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------- | --------- | ------------------------------------------------ | --------------------------------------- || type | `string` | `\"audio\"` | 指定为 audio 渲染器 || classname | `string` | | 外层 dom 的类名 || inline | `boolean` | true | 是否是内联模式 || src | `string` | | 音频地址 || loop | `boolean` | false | 是否循环播放 || autoplay | `boolean` | false | 是否自动播放 || rates | `array` | `[]` | 可配置音频播放倍速如:`[1.0, 1.5, 2.0]` || controls | `array` | `['rates', 'play', 'time', 'process', 'volume']` | 内部模块定制化 |","path":"./docs/components/audio"},{"title":"ButtonGroup 按钮组","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------- | ------------------------- | ---------------- | -------------------------- || type | `string` | `\"button-group\"` | 指定为 button-group 渲染器 || classname | `string` | | 外层 dom 的类名 || buttons | array<> | | 行为按钮组 || vertical | `string` | | 是否使用垂直模式 |","path":"./docs/components/button-group"},{"title":"Button 按钮","body":"## 基本用法button` 实际上是 `action` 的别名,更多用法见","path":"./docs/components/button"},{"title":"Card 卡片","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ---------------------- | ---------------------------- | ----------------------------------- | -------------------------------------- || type | `string` | `\"card\"` | 指定为 card 渲染器 || classname | `string` | `\"panel-default\"` | 外层 dom 的类名 || header | `object` | | card 头部内容设置 || header.classname | `string` | | 头部类名 || header.title | | | 标题 || header.subtitle | | | 副标题 || header.desc | | | 描述 || header.avatar | | | 图片 || header.avatartext | | | 如果不配置图片,则会在图片处显示该文本 || header.highlight | `boolean` | | 是否显示激活样式 || header.avatarclassname | `string` | `\"pull-left thumb avatar b-3x m-r\"` | 图片类名 || body | `array` | | 内容容器,主要用来放置非表单项组件 || bodyclassname | `string` | `\"padder m-t-sm m-b-sm\"` | 内容区域类名 || actions | array<> | | 配置按钮集合 |","path":"./docs/components/card"},{"title":"Cards 卡片组","body":"卡片展示,不支持配置初始化接口初始化数据域,所以需要搭配类似像`service`这样的,具有配置接口初始化数据域功能的组件,或者手动进行数据域初始化,然后通过`source`属性,获取数据链中的数据,完成数据展示。## 基本用法这里我们使用手动初始数据域的方式,即配置`data`属性,进行数据域的初始化。或者你也可以使用 crud 的 ## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------------- | ------------------------------------ | ------------------- | ------------------------------ || type | `string` | | `\"cards\"` 指定为卡片组。 || title | | | 标题 || source | | `${items}` | 数据源, 获取当前数据域中的变量 || placeholder | | ‘暂无数据’ | 当没数据的时候的文字提示 || classname | `string` | | 外层 css 类名 || headerclassname | `string` | `amis-grid-header` | 顶部外层 css 类名 || footerclassname | `string` | `amis-grid-footer` | 底部外层 css 类名 || itemclassname | `string` | `col-sm-4 col-md-3` | 卡片 css 类名 || card | | | 配置卡片信息 |","path":"./docs/components/cards"},{"title":"Carousel 轮播图","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ---------------------------- | --------- | -------------------- | ------------------------------------------------------- || type | `string` | `\"carousel\"` | 指定为 carousel 渲染器 || classname | `string` | `\"panel-default\"` | 外层 dom 的类名 || options | `array` | `[]` | 轮播面板数据 || options.image | `string` | | 图片链接 || options.imageclassname | `string` | | 图片类名 || options.title | `string` | | 图片标题 || options.titleclassname | `string` | | 图片标题类名 || options.description | `string` | | 图片描述 || options.descriptionclassname | `string` | | 图片描述类名 || options.html | `string` | | html 自定义,同一致 || itemschema | `object` | | 自定义`schema`来展示数据 || auto | `boolean` | `true` | 是否自动轮播 || interval | `string` | `5s` | 切换动画间隔 || duration | `string` | `0.5s` | 切换动画时长 || width | `string` | `auto` | 宽度 || height | `string` | `200px` | 高度 || controls | `array` | `['dots', 'arrows']` | 显示左右箭头、底部圆点索引 || controlstheme | `string` | `light` | 左右箭头、底部圆点索引颜色,默认`light`,另有`dark`模式 || animation | `string` | fade | 切换动画效果,默认`fade`,另有`slide`模式 |- `type` 请设置成 `carousel`- `classname` 外层 dom 的类名- `options` 轮播面板数据,默认`[]`,支持以下模式 - 图片 - `image` 图片链接 - `imageclassname` 图片类名 - `title` 图片标题 - `titleclassname` 图片标题类名 - `description` 图片描述 - `descriptionclassname` 图片描述类名 - `html` html 自定义,同一致- `itemschema` 自定义`schema`来展示数据- `auto` 是否自动轮播,默认`true`- `interval` 切换动画间隔,默认`5s`- `duration` 切换动画时长,默认`0.5s`- `width` 宽度,默认`auto`- `height` 高度,默认`200px`- `controls` 显示左右箭头、底部圆点索引,默认`['dots', 'arrows']`- `controlstheme` 左右箭头、底部圆点索引颜色,默认`light`,另有`dark`模式- `animation` 切换动画效果,默认`fade`,另有`slide`模式","path":"./docs/components/carousel"},{"title":"Chart 图表","body":"图表渲染器,采用 echarts 渲染,配置格式跟 echarts 相同,## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------------------ | ------------------------------------ | --------- | ------------------------------------------------------------------ || type | `string` | `\"chart\"` | 指定为 chart 渲染器 || classname | `string` | | 外层 dom 的类名 || body | | | 内容容器 || api | | | 配置项接口地址 || source | | | 通过数据映射获取数据链中变量值作为配置 || initfetch | `boolean` | | 组件初始化时,是否请求接口 || interval | `number` | | 刷新时间(最低 3000) || config | `object` 或 `string` | | 设置 eschars 的配置项,当为`string`的时候可以设置 function 等配置项 || style | `object` | | 设置根元素的 style || width | `string` | | 设置根元素的宽度 || height | `string` | | 设置根元素的高度 || replacechartoption | `boolean` | `false` | 每次更新是完全覆盖配置项还是追加? |","path":"./docs/components/chart"},{"title":"Collapse 折叠器","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ---------------- | --------------------------------- | -------------------------------------- | ---------------------- || type | `string` | `\"collapse\"` | 指定为 collapse 渲染器 || title | | | 标题 || body | | | 内容 || classname | `string` | `bg-white wrapper` | css 类名 || headingclassname | `string` | `font-thin b-b b-light text-lg p-b-xs` | 标题 css 类名 || bodyclassname | `string` | | 内容 css 类名。 || collapsed | `boolean` | `false` | 默认是否要收起。 |","path":"./docs/components/collapse"},{"title":"Color 颜色","body":"用于展示颜色## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------------ | --------- | ------ | -------------------------------------------------------------------------------------- || type | `string` | | 如果在 table、card 和 list 中,为`\"color\"`;在 form 中用作静态展示,为`\"static-color\"` || classname | `string` | | 外层 css 类名 || value | `string` | | 显示的颜色值 || name | `string` | | 在其他组件中,时,用作变量映射 || defaultcolor | `string` | `#ccc` | 默认颜色值 || showvalue | `boolean` | `true` | 是否显示右边的颜色值 |","path":"./docs/components/color"},{"title":"组件介绍","body":"从这个章节开始,我们将会介绍 amis 中内置的所有组件的使用方法","path":"./docs/components/component"},{"title":"Container 容器","body":"container 是一种容器组件,它可以渲染其他 amis 组件## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------------- | --------------------------------- | --------- | ------------------- || type | `string` | `\"alert\"` | 指定为 alert 渲染器 || classname | `string` | | 外层 dom 的类名 || bodyclassname | `string` | | 容器内容区的类名 || body | | | 容器内容 |","path":"./docs/components/container"},{"title":"CRUD 增删改查","body":"crud,即增删改查组件,主要用来展现数据列表,并支持各类【增】【删】【改】【查】等操作。## 基本用法最基本的用法是配置 **数据源接口(api)** 以及 **展示列(columns)**上例使用了数据映射中的`filter`过滤器,在前端实现了`engine`列的搜索功能。> **注意:**如果你的数据量较大,请务必使用服务端分页的方案,过多的前端数据展示,会显著影响前端页面的性能## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------------------------------------- | ------------------------- | ------------------------------- | --------------------------------------------------------------------------------------------------------------------- || type | `string` | | `type` 指定为 crud 渲染器 || mode | `string` | `\"table\"` | `\"table\" 、 \"cards\" 或者 \"list\"` || title | `string` | `\"\"` | 可设置成空,当设置成空时,没有标题栏 || classname | `string` | | 表格外层 dom 的类名 || api | | | crud 用来获取列表数据的 api。 || loaddataonce | `boolean` | | 是否一次性加载所有数据(前端分页) || loaddataoncefetchonfilter | `boolean` | `true` | 在开启 loaddataonce 时,filter 时是否去重新请求 api || source | `string` | | 数据映射接口返回某字段的值,不设置会默认把接口返回的`items`或者`rows`填充进`mode`区域 || filter | | | 设置过滤器,当该表单提交后,会把数据带给当前 `mode` 刷新列表。 || filtertogglable | `boolean` | `false` | 是否可显隐过滤器 || filterdefaultvisible | `boolean` | `true` | 设置过滤器默认是否可见。 || initfetch | `boolean` | `true` | 是否初始化的时候拉取数据, 只针对有 filter 的情况, 没有 filter 初始都会拉取数据 || interval | `number` | `3000` | 刷新时间(最低 3000) || silentpolling | `boolean` | `false` | 配置刷新时是否隐藏加载动画 || stopautorefreshwhen | `string` | `\"\"` | 通过来配置停止刷新的条件 || stopautorefreshwhenmodalisopen | `boolean` | `false` | 当有弹框时关闭自动刷新,关闭弹框又恢复 || synclocation | `boolean` | `true` | 是否将过滤条件的参数同步到地址栏 || draggable | `boolean` | `false` | 是否可通过拖拽排序 || itemdraggableon | `boolean` | | 用来配置是否可拖拽排序 || | | 保存排序的 api。 || | | 快速编辑后用来批量保存的 api。 || | | 快速编辑配置成及时保存时使用的 api。 || bulkactions | array<> | | 批量操作列表,配置后,表格可进行选中操作。 || defaultchecked | `boolean` | `false` | 当可批量操作时,默认是否全部勾选。 || messages | `object` | | 覆盖消息提示,如果不指定,将采用 api 返回的 message || messages.fetchfailed | `string` | | 获取失败时提示 || messages.saveorderfailed | `string` | | 保存顺序失败提示 || messages.saveordersuccess | `string` | | 保存顺序成功提示 || messages.quicksavefailed | `string` | | 快速保存失败提示 || messages.quicksavesuccess | `string` | | 快速保存成功提示 || primaryfield | `string` | `\"id\"` | 设置 id 字段名。 || defaultparams | `object` | | 设置默认 filter 默认参数,会在查询的时候一起发给后端 || pagefield | `string` | `\"page\"` | 设置分页页码字段名。 || perpagefield | `string` | `\"perpage\"` | 设置分页一页显示的多少条数据的字段名。注意:最好与 defaultparams 一起使用,请看下面例子。 || perpageavailable | `array` | `[5, 10, 20, 50, 100]` | 设置一页显示多少条数据下拉框可选条数。 || orderfield | `string` | | 设置用来确定位置的字段名,设置后新的顺序将被赋值到该字段中。 || hidequicksavebtn | `boolean` | `false` | 隐藏顶部快速保存提示 || autojumptotoponpagerchange | `boolean` | `false` | 当切分页的时候,是否自动跳顶部。 || syncresponse2query | `boolean` | `true` | 将返回数据同步到过滤器上。 || keepitemselectiononpagechange | `boolean` | `true` | 保留条目选择,默认分页、搜素后,用户选择条目会被清空,开启此选项后会保留用户选择,可以实现跨页面批量操作。 || labeltpl | `string` | | 单条描述模板,`keepitemselectiononpagechange`设置为`true`后会把所有已选择条目列出来,此选项可以用来定制条目展示文案。 || headertoolbar | array | `['bulkactions', 'pagination']` | 顶部工具栏配置 || footertoolbar | array | `['statistics', 'pagination']` | 底部工具栏配置 |","path":"./docs/components/crud"},{"title":"Date 日期时间","body":"用于展示日期## 基本使用## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------------- | --------- | ------------ | ------------------------------------------------------------------------------------ || type | `string` | | 如果在 table、card 和 list 中,为`\"date\"`;在 form 中用作静态展示,为`\"static-date\"` || classname | `string` | | 外层 css 类名 || value | `string` | | 显示的颜色值 || name | `string` | | 在其他组件中,时,用作变量映射 || placeholder | `string` | `-` | 占位内容 || format | `string` | `yyyy-mm-dd` | 展示格式 || valueformat | `string` | `x` | 数据格式,默认为时间戳 || fromnow | `boolean` | `false` | fromnow || updatefrequency | `boolean` | `false` | updatefrequency |","path":"./docs/components/date"},{"title":"Dialog 对话框","body":"dialog 弹框 主要由 触发,主要展示一个对话框以供用户操作。## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------------- | --------------------------------- | ------------------ | ---------------------------------------------------------------------------------------- || type | `string` | | `\"dialog\"` 指定为 dialog 渲染器 || title | | | 弹出层标题 || body | | | 往 dialog 内容区加内容 || size | `string` | | 指定 dialog 大小,支持: `xs`、`sm`、`md`、`lg` || bodyclassname | `string` | `modal-body` | dialog body 区域的样式类名 || closeonesc | `boolean` | `false` | 是否支持按 `esc` 关闭 dialog || showclosebutton | `boolean` | `true` | 是否显示右上角的关闭按钮 || showerrormsg | `boolean` | `true` | 是否在弹框左下角显示报错信息 || disabled | `boolean` | `false` | 如果设置此属性,则该 dialog 只读没有提交操作。 || actions | array<> | 【确认】和【取消】 | 如果想不显示底部按钮,可以配置:`[]` || data | `object` | | 支持,如果不设定将默认将触发按钮的上下文中继承数据。 |","path":"./docs/components/dialog"},{"title":"Divider 分割线","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------- | -------- | ---------- | ----------------------------------- || type | `string` | | `\"dialog\"` 指定为 dialog 渲染器 || classname | `string` | | 外层 dom 的类名 || linestyle | `string` | `\"dashed\"` | 分割线的样式,支持`dashed`和`solid` |","path":"./docs/components/divider"},{"title":"Drawer 抽屉","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || -------------- | --------------------------------- | ------------------ | ----------------------------------------------------------------------------------------- || type | `string` | | `\"drawer\"` 指定为 drawer 渲染器 || title | | | 弹出层标题 || body | | | 往 drawer 内容区加内容 || size | `string` | | 指定 drawer 大小,支持: `xs`、`sm`、`md`、`lg` || bodyclassname | `string` | `modal-body` | drawer body 区域的样式类名 || closeonesc | `boolean` | `false` | 是否支持按 `esc` 关闭 drawer || closeonoutside | `boolean` | `false` | 点击内容区外是否关闭 drawer || overlay | `boolean` | `true` | 是否显示蒙层 || resizable | `boolean` | `false` | 是否可通过拖拽改变 drawer 大小 || actions | array<> | 【确认】和【取消】 | 可以不设置,默认只有两个按钮。 || data | `object` | | 支持 ,如果不设定将默认将触发按钮的上下文中继承数据。 |","path":"./docs/components/drawer"},{"title":"DropDownButton","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------------- | --------------- | ----------------- | ----------------------------------------- || type | `string` | `dropdown-button` | 类型 || label | `string` | | 按钮文本 || classname | `string` | | 外层 css 类名 || block | `boolean` | | 块状样式 || size | `string` | | 尺寸,支持`'xs'`、`'sm'`、`'md'` 、`'lg'` || align | `string` | | 位置,可选`'left'`或`'right'` || buttons | `array` | | 配置下拉按钮 || careticon | `string` | | careticon || icononly | `boolean` | | 只显示icon || defaultisopened | `boolean` | | 默认是否打开 || closeonoutside | `boolean` | | 点击外侧区域是否收起 |","path":"./docs/components/dropdown-button"},{"title":"Each 循环渲染器","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------ | -------- | -------- | ----------------------------------------------------------- || type | `string` | `\"each\"` | 指定为 each 组件 || value | `array` | `[]` | 用于循环的值 || name | `string` | | 获取数据域中变量,支持 || items | `object` | | 使用`value`中的数据,循环输出渲染器。 |","path":"./docs/components/each"},{"title":"Array 数组输入框","body":" 的一个 flat 用法。## 基本用法## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------- | --------------------------------- | --------- | ------------------------------------------------------------------------ || type | `string` | `\"array\"` | 指明为`array`组件 || items | `string`或 | | 配置单项表单类型 || addable | `boolean` | | 是否可新增。 || removable | `boolean` | | 是否可删除 || draggable | `boolean` | `false` | 是否可以拖动排序, 需要注意的是当启用拖动排序的时候,会多一个\\$id 字段 || draggabletip | `string` | | 可拖拽的提示文字,默认为:`\"可通过拖动每行中的【交换】按钮进行顺序调整\"` || addbuttontext | `string` | `\"新增\"` | 新增按钮文字 || minlength | `number` | | 限制最小长度 || maxlength | `number` | | 限制最大长度 |","path":"./docs/components/form/array"},{"title":"Button-Group 按钮集合","body":"## 基本用法可以用作按钮组,进行按钮的合并展示。更多属性查看 。## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------ | --------------------------------- | --------- | ------------------------------------------------------------------------------------------- || options | `array`或`array` | | || source | `string`或 || multiple | `boolean` | `false` | || labelfield | `boolean` | `\"label\"` | || valuefield | `boolean` | `\"value\"` | || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || autofill | `object` | | |","path":"./docs/components/form/button-group"},{"title":"Button-Toolbar 按钮工具栏","body":"默认按钮独立配置的时候,是独占一行的,如果想让多个按钮在一起放置,可以使用 `button-toolbar` 组件## 基本使用## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------- | --------------------------- | ------------------ | ------------------------- || type | `string` | `\"button-toolbar\"` | 指定为 buttontoolbar 组件 || buttons | array<> | | 按钮组 |","path":"./docs/components/form/button-toolbar"},{"title":"Button 按钮","body":"`form`中除了支持 以外,还支持一些特定的按钮。## 基本用法## 属性表见 ","path":"./docs/components/form/button"},{"title":"Chain-Select 链式下拉框","body":"## 基本用法无限级别下拉,只支持单选,且必须和 `source` 搭配,通过 api 拉取数据,只要 api 有返回结果,就能一直无限级别下拉下去。> `source`接口中配置的参数`waitseconds=1`和`maxlevel=4`是测试接口所需参数,实际使用自己接口时不需要添加这两个参数## 暴露参数为了帮助后端接口获取当前选择器状态,chained-select 会默认给 source 接口的数据域中,添加若干个参数:- `value`: 选中的表单项值;- `level`: 当前拉取数据时的层级,- `parentid`: 上一级选项的值,数据格式基于配置的`joinvalues`和`extractvalue`属性- `parent`: 上一级选项的完整的数据格式## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------ | --------------------------------- | --------- | ------------------------------------------------------------------------------------------- || options | `array`或`array` | | || source | `string`或 || autocomplete | `string`或 || delimiter | `string` | `,` | || labelfield | `boolean` | `\"label\"` | || valuefield | `boolean` | `\"value\"` | || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | |","path":"./docs/components/form/chain-select"},{"title":"Checkbox 勾选框","body":"## 基本用法勾选上例中的勾选框,观察数据域变化,会发现勾选后值为`1`,而取消勾选后为`0`## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 ## 二级标题 || ---------- | -------- | --------- | ----------------------------------------------------------- || option | `string` | | 选项说明 || truevalue | `any` | `true` | 标识真值 || falsevalue | `any` | `\"false\"` | 标识假值 |","path":"./docs/components/form/checkbox"},{"title":"Checkboxes 复选框","body":"## 基本用法## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || --------------- | --------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------- || options | `array`或`array` | | || source | `string`或 || delimeter | `string` | `false` | || labelfield | `string` | `\"label\"` | || valuefield | `string` | `\"value\"` | || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || columnscount | `number` | `1` | 选项按几列显示,默认为一列 || checkall | `boolean` | `false` | 是否支持全选 || defaultcheckall | `boolean` | `false` | 默认是否全选 || creatable | `boolean` | `false` | || createbtnlabel | `string` | `\"新增选项\"` | || addcontrols | array< || addapi | || editable | `boolean` | `false` | || editcontrols | array< || editapi | || removable | `boolean` | `false` | || deleteapi | |","path":"./docs/components/form/checkboxes"},{"title":"City 城市选择器","body":"城市选择器,可用于让用户输入城市。## 基本用法## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------- | --------- | ------ | --------------------------------------------------------------------------------------------------------------------- || allowcity | `boolean` | `true` | 允许选择城市 || allowdistrict | `boolean` | `true` | 允许选择区域 || extractvalue | `boolean` | `true` | 默认 `true` 是否抽取值,如果设置成 `false` 值格式会变成对象,包含 `code`、`province`、`city` 和 `district` 文字信息。 |","path":"./docs/components/form/city"},{"title":"Color 颜色选择器","body":"## 基本用法## 选择器预设颜色值颜色选择器底部预设有会写可选的颜色值,默认为:`['#d0021b', '#f5a623', '#f8e71c', '#8b572a', '#7ed321', '#417505', '#bd10e0', '#9013fe', '#4a90e2', '#50e3c2', '#b8e986', '#000000', '#4a4a4a', '#9b9b9b', '#ffffff']`你可以配置`presetcolors`数组进行自定义。## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ---------------- | --------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------- || format | `string` | `hex` | 请选择 `hex`、`hls`、`rgb`或者`rgba`。 || presetcolors | `array` | | 选择器底部的默认颜色,数组内为空则不显示默认颜色 || allowcustomcolor | `boolean` | `true` | 为`false`时只能选择颜色,使用 `presetcolors` 设定颜色选择范围 || clearable | `boolean` | `\"label\"` | 是否显示清除按钮 || resetvalue | `string` | `\"\"` | 清除后,表单项值调整成该值 |","path":"./docs/components/form/color"},{"title":"Combo 组合","body":"组合模式,支持自由组合多个表单项。当设置成单选时数据格式为对象,当设置成多选时数据格式为数组,数组成员是对象(flat 模式可以直接是某个表单单项的数值)。## 基本使用配置`controls`属性,组合多个表单项## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || --------------------------- | --------------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- || formclassname | `string` | | 单组表单项的类名 || controls | array<> | | 组合展示的表单项 || controls[x].columnclassname | `string` | | 列的类名,可以用它配置列宽度。默认平均分配。 || controls[x].unique | `boolean` | | 设置当前列值是否唯一,即不允许重复选择。 || multiple | `boolean` | `false` | 是否多选 || multiline | `boolean` | `false` | 默认是横着展示一排,设置以后竖着展示 || minlength | `number` | | 最少添加的条数 || maxlength | `number` | | 最多添加的条数 || flat | `boolean` | `false` | 是否将结果扁平化(去掉 name),只有当 controls 的 length 为 1 且 multiple 为 true 的时候才有效。 || joinvalues | `boolean` | `true` | 默认为 `true` 当扁平化开启的时候,是否用分隔符的形式发送给后端,否则采用 array 的方式。 || delimeter | `string` | `false` | 当扁平化开启并且 joinvalues 为 true 时,用什么分隔符。 || addable | `boolean` | `false` | 是否可新增 || removable | `boolean` | `false` | 是否可删除 || deleteapi | | | 如果配置了,则删除前会发送一个 api,请求成功才完成删除 || deleteconfirmtext | `string` | `\"确认要删除?\"` | 当配置 `deleteapi` 才生效!删除时用来做用户确认 || draggable | `boolean` | `false` | 是否可以拖动排序, 需要注意的是当启用拖动排序的时候,会多一个\\$id 字段 || draggabletip | `string` | `\"可通过拖动每行中的【交换】按钮进行顺序调整\"` | 可拖拽的提示文字 || addbuttontext | `string` | `\"新增\"` | 新增按钮文字 || scaffold | `object` | `{}` | 单组表单项初始值 || canaccesssuperdata | `boolean` | `false` | 指定是否可以自动获取上层的数据并映射到表单项上 || conditions | `object` | | 数组的形式包含所有条件的渲染类型,单个数组内的`test` 为判断条件,数组内的`controls`为符合该条件后渲染的`schema` || typeswitchable | `boolean` | `false` | 是否可切换条件,配合`conditions`使用 || noborder | `boolean` | `false` | 单组表单项是否显示边框 || strictmode | `boolean` | `true` | 默认为严格模式,设置为 false 时,当其他表单项更新是,里面的表单项也可以及时获取,否则不会。 || syncfields | `array` | `true` | 配置同步字段。只有 strictmode 为 false 时有效。如果 combo 层级比较深,底层的获取外层的数据可能不同步。但是给 combo 配置这个属性就能同步下来。输入格式:`[\"os\"]` |","path":"./docs/components/form/combo"},{"title":"Date-Range 日期范围","body":"## 基本用法## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || --------------- | --------- | ------------------ | ---------------------------------------------------------------------------- || format | `string` | `x` | || inputformat | `string` | `yyyy-dd-mm` | || placeholder | `string` | `\"请选择日期范围\"` | 占位文本 || shortcuts | `string` | | || mindate | `string` | | 限制最小日期,用法同 || maxdate | `string` | | 限制最大日期,用法同 || utc | `boolean` | `false` | || clearable | `boolean` | `true` | 是否可清除 |","path":"./docs/components/form/date-range"},{"title":"Date 日期","body":"## 基本用法## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || --------------- | --------- | -------------- | ----------------------------------------------------------------------------------- || value | `string` | | || format | `string` | `x` | 日期选择器值格式,更多格式类型请参考 || inputformat | `string` | `yyyy-dd-mm` | 日期选择器显示格式,即时间戳格式,更多格式类型请参考 || closeonselect | `boolean` | `false` | 点选日期后,是否马上关闭选择框 || placeholder | `string` | `\"请选择日期\"` | 占位文本 || shortcuts | `string` | | 日期快捷键 || mindate | `string` | | 限制最小日期 || maxdate | `string` | | 限制最大日期 || utc | `boolean` | `false` | 保存utc值 || clearable | `boolean` | `true` | 是否可清除 || timeconstrainst | `object` | `true` | 请参考: |","path":"./docs/components/form/date"},{"title":"Datetime-Range 日期时间范围","body":"## 基本用法## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ----------- | --------- | ------------------ | ------------------------------------------------------------------------------------ || format | `string` | `x` | || inputformat | `string` | `yyyy-dd-mm` | || placeholder | `string` | `\"请选择日期范围\"` | 占位文本 || shortcuts | `string` | | || mindate | `string` | | 限制最小日期时间,用法同 || maxdate | `string` | | 限制最大日期时间,用法同 || utc | `boolean` | `false` | || clearable | `boolean` | `true` | 是否可清除 |","path":"./docs/components/form/datetime-range"},{"title":"Datetime 日期时间","body":"## 基本用法## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || --------------- | --------- | ---------------------- | --------------------------------------------------------------------------------------- || value | `string` | | || format | `string` | `x` | 日期时间选择器值格式,更多格式类型请参考 || inputformat | `string` | `yyyy-mm-dd hh:mm:ss` | 日期时间选择器显示格式,即时间戳格式,更多格式类型请参考 || placeholder | `string` | `\"请选择日期以及时间\"` | 占位文本 || shortcuts | `string` | | 日期时间快捷键 || mindate | `string` | | 限制最小日期时间 || maxdate | `string` | | 限制最大日期时间 || utc | `boolean` | `false` | 保存 utc 值 || clearable | `boolean` | `true` | 是否可清除 || timeconstrainst | `object` | `true` | 请参考: |","path":"./docs/components/form/datetime"},{"title":"DiffEditor 对比编辑器","body":"## 基本使用## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || --------- | ------------- | ------------ | ------------------------------------------------------------------------------------------- || language | `string` | `javascript` | 编辑器高亮的语言,可选 || diffvalue | | | 左侧值 |","path":"./docs/components/form/diff-editor"},{"title":"Editor 编辑器","body":"## 基本用法## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || -------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ || language | `string` | `javascript` | 编辑器高亮的语言 || size | `string` | `md` | 编辑器高度,取值可以是 `md`、`lg`、`xl`、`xxl` || options | `object` | | monaco 编辑器的其它配置,比如是否显示行号等,请参考。 |","path":"./docs/components/form/editor"},{"title":"FieldSet 表单项集合","body":"fieldset 是用于分组展示表单项的一种容器型组件。## 基本用法可以通过配置标题`title`和表单项数组`controls`,实现多个表单项分组展示## 属性表| 属性名 | 类型 | 默认值 | 说明 || ---------------- | ------------------------------------ | ------- | ------------------------------------------ || classname | `string` | | css 类名 || headingclassname | `string` | | 标题 css 类名 || bodyclassname | `string` | | 内容区域 css 类名 || title | | | 标题 || controls | array<> | | 表单项集合 || mode | `string` | | 展示默认,同 中的模式 || collapsable | `boolean` | `false` | 配置是否可折叠 || collapsed | `booelan` | | 展示默认,同 中的模式 |","path":"./docs/components/form/fieldset"},{"title":"File 文件上传","body":"## 基本用法用来负责文件上传,文件上传成功后会返回文件地址,这个文件地址会作为这个表单项的值,整个表单提交的时候,其实提交的是文件地址,文件上传已经在这个控件中完成了。上例中,选择任意文件,然后观察数据域变化;点击提交,amis 自动会调整接口数据格式为`formdata`## 分块上传如果文件过大,则可能需要使用分块上传## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ---------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ || reciever | | | 上传文件接口 || accept | `string` | `text/plain` | 默认只支持纯文本,要支持其他类型,请配置此属性为文件后缀`.xxx` || asbase64 | `boolean` | `false` | 将文件以`base64`的形式,赋值给当前组件 || asblob | `boolean` | `false` | 将文件以二进制的形式,赋值给当前组件 || maxsize | `string` | | 默认没有限制,当设置后,文件大小大于此值将不允许上传。单位为`kb` || maxlength | `number` | | 默认没有限制,当设置后,一次只允许上传指定数量文件。 || multiple | `boolean` | `false` | 是否多选。 || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || delimeter | `string` | `,` | || autoupload | `boolean` | `true` | 否选择完就自动开始上传 || hideuploadbutton | `boolean` | `false` | 隐藏上传按钮 || statetextmap | object | `{ init: '', pending: '等待上传', uploading: '上传中', error: '上传出错', uploaded: '已上传', ready: '' }` | 上传状态文案 || filefield | `string` | `file` | 如果你不想自己存储,则可以忽略此属性。 || downloadurl | `boolean`或`string` | `\"\"` | 默认显示文件路径的时候会支持直接下载,可以支持加前缀如:`http://xx.dom/filename=` ,如果不希望这样,可以把当前配置项设置为 `false`。 || usechunk | `boolean`或`\"auto\"` | `\"auto\"` | amis 所在服务器,限制了文件上传大小不得超出 10m,所以 amis 在用户选择大文件的时候,自动会改成分块上传模式。 || chunksize | `number` | `5 * 1024 * 1024` | 分块大小 || startchunkapi | | | startchunkapi || chunkapi | | | chunkapi || finishchunkapi | | | finishchunkapi |","path":"./docs/components/form/file"},{"title":"FormItem 普通表单项","body":"**表单项** 是组成一个表单的基本单位,它具有的一些特性会帮助我们更好地实现表单操作。> 所有派生自`formitem`的组件,都具有`formitem`的特性。## 基本用法最基本的表单项配置像这样:## 属性表| 属性名 | 类型 | 默认值 | 说明 || -------------- | ------------------------------------------ | ------ | ---------------------------------------------------------- || type | `string` | | 指定表单项类型 || classname | `string` | | 表单最外层类名 || inputclassname | `string` | | 表单控制器类名 || labelclassname | `string` | | label 的类名 || name | `string` | | 字段名,指定该表单项提交时的 key || label | 或 `false` | | 表单项标签 || labelremark | | | 表单项标签描述 || description | | | 表单项描述 || placeholder | `string` | | 表单项描述 || inline | `boolean` | | 是否为 内联 模式 || submitonchange | `boolean` | | 是否该表单项值发生变化时就提交当前表单。 || disabled | `boolean` | | 当前表单项是否是禁用状态 || disabledon | | | 当前表单项是否禁用的条件 || visible | | | 当前表单项是否禁用的条件 || visibleon | | | 当前表单项是否禁用的条件 || required | `boolean` | | 是否为必填。 || requiredon | 来配置当前表单项是否为必填。 || validations | | | 表单项值格式验证,支持设置多个,多个规则用英文逗号隔开。 |","path":"./docs/components/form/formitem"},{"title":"Formula 公式","body":"可以设置公式,将公式结果设置到指定表单项上。> 该表单项是隐藏的## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------- | ----------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------- || name | `string` | | 需要应用的表单项`name`值,公式结果将作用到此处指定的变量中去。 || formula | | | 应用的公式 || condition | | | 公式作用条件 || initset | `boolean` | `true` | 初始化时是否设置 || autoset | `boolean` | `true` | 观察公式结果,如果计算结果有变化,则自动应用到变量上 || id | `boolean` | `true` | 定义个名字,当某个按钮的目标指定为此值后,会触发一次公式应用。这个机制可以在 `autoset` 为 false 时用来手动触发 |","path":"./docs/components/form/formula"},{"title":"Grid 网格","body":"支持 form 内部再用 grid 布局进行渲染组件。## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || -------------------------- | --------------------------------- | -------- | -------------------------------------------------------------- || type | `string` | `\"grid\"` | 指定为 grid 渲染器 || classname | `string` | | 外层 dom 的类名 || columns | `array` | | 列集合 || columns | | 成员可以是其他渲染器 || columns> | | 如果配置了表单集合,同时没有指定 type 类型,则优先展示表单集合 || columns[x].columnclassname | `int` | | 配置列的 `classname` || columns[x].xs | `int` | | 宽度占比: 1 - 12 || columns[x].xshidden | `boolean` | | 是否隐藏 || columns[x].xsoffset | `int` | | 偏移量 1 - 12 || columns[x].xspull | `int` | | 靠左的距离占比:1 - 12 || columns[x].xspush | `int` | | 靠右的距离占比: 1 - 12 || columns[x].sm | `int` | | 宽度占比: 1 - 12 || columns[x].smhidden | `boolean` | | 是否隐藏 || columns[x].smoffset | `int` | | 偏移量 1 - 12 || columns[x].smpull | `int` | | 靠左的距离占比:1 - 12 || columns[x].smpush | `int` | | 靠右的距离占比: 1 - 12 || columns[x].md | `int` | | 宽度占比: 1 - 12 || columns[x].mdhidden | `boolean` | | 是否隐藏 || columns[x].mdoffset | `int` | | 偏移量 1 - 12 || columns[x].mdpull | `int` | | 靠左的距离占比:1 - 12 || columns[x].mdpush | `int` | | 靠右的距离占比: 1 - 12 || columns[x].lg | `int` | | 宽度占比: 1 - 12 || columns[x].lghidden | `boolean` | | 是否隐藏 || columns[x].lgoffset | `int` | | 偏移量 1 - 12 || columns[x].lgpull | `int` | | 靠左的距离占比:1 - 12 || columns[x].lgpush | `int` | | 靠右的距离占比: 1 - 12 |更多使用说明,请参看 ","path":"./docs/components/form/grid"},{"title":"Group 表单项组","body":"表单项,默认都是一行显示一个,group 组件用于在一行展示多个表单项## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------- | --------------------------- | -------------- | -------------------------------------------------------------------------- || classname | `string` | | css 类名 || label | `string` | | group 的标签 || controls | array<> | | 表单项集合 || mode | `string` | | 展示默认,同 中的模式 || gap | `string` | | 表单项之间的间距,可选:`xs`、`sm`、`normal` || direction | `string` | `\"horizontal\"` | 可以配置水平展示还是垂直展示。对应的配置项分别是:`vertical`、`horizontal` |","path":"./docs/components/form/group"},{"title":"HBox","body":"表单内部也可以使用 hbox 布局,实现左右排列。更推荐 ## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------- | ------------------------ | ------ | ---------------------------------------- || columns | array<> | | 列内容。每个 column 为一个独立的渲染器。 |### column 属性除了 支持属性以外,还支持以下几种属性| 属性名 | 类型 | 默认值 | 说明 || --------------- | --------------------------- | ------ | ---------------------------------------------------------------------------- || columnclassname | `string` | | 配置列的 css 类名 || controls | array<> | | 表单项数组,如果配置了表单集合,同时没有指定 type 类型,则优先展示表单集合。 |","path":"./docs/components/form/hbox"},{"title":"Hidden 隐藏字段","body":"## 基本用法默认表单提交,在没有 的情况下,只会发送 `controls` 里面的这些成员,对于隐藏的字段同时又希望提交表单的时候带过去,可以使用 `hidden` 组件","path":"./docs/components/form/hidden"},{"title":"Image 图片","body":"图片格式输入,默认 amis 会直接存储在 fex 的 hiphoto 里面,提交到 form 是直接的图片 url。## 基本用法## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ---------------- | ------------------------------- | ------------ | ----------------------------------------------------------------------------------------------------- || reciever | | | 上传文件接口 || accept | `string` | `text/plain` | 默认只支持`image/jpeg, image/jpg, image/png, image/gif`,要支持其他类型,请配置此属性为图片后缀`.xxx` || maxsize | `string` | | 默认没有限制,当设置后,文件大小大于此值将不允许上传。单位为`kb` || maxlength | `number` | | 默认没有限制,当设置后,一次只允许上传指定数量文件。 || multiple | `boolean` | `false` | 是否多选。 || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || delimeter | `string` | `,` | || autoupload | `boolean` | `true` | 否选择完就自动开始上传 || hideuploadbutton | `boolean` | `false` | 隐藏上传按钮 || filefield | `string` | `file` | 如果你不想自己存储,则可以忽略此属性。 || crop | `boolean`或`{\"aspectratio\":\"\"}` | | 用来设置是否支持裁剪。 || crop.aspectratio | `number` | | 裁剪比例。浮点型,默认 `1` 即 `1:1`,如果要设置 `16:9` 请设置 `1.7777777777777777` 即 `16 / 9`。。 || limit | limit | | 限制图片大小,超出不让上传。 |### limit 属性表| 属性名 | 类型 | 默认值 | 说明 || ----------- | -------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------- || width | `number` | | 限制图片宽度。 || height | `number` | | 限制图片高度。 || minwidth | `number` | | 限制图片最小宽度。 || minheight | `number` | | 限制图片最小高度。 || maxwidth | `number` | | 限制图片最大宽度。 || maxheight | `number` | | 限制图片最大高度。 || aspectratio | `number` | | 限制图片宽高比,格式为浮点型数字,默认 `1` 即 `1:1`,如果要设置 `16:9` 请设置 `1.7777777777777777` 即 `16 / 9`。 如果不想限制比率,请设置空字符串。 |","path":"./docs/components/form/image"},{"title":"Form 表单","body":"表单是 amis 中核心组件之一,主要作用是提交或者展示表单数据。## 基本用法最基本的用法是配置 和 提交接口`api`。如下我们配置姓名和邮箱表单项,并可以填写数据并提交给接口`/api/mock2/form/saveform`。第一个表单在提交时,会将它的表单数据域数据发送给`detailform`表单,触发`detailform`的初始化接口联动,重新请求接口更新数据域,并更新关键字表单项。上面示例组合使用了 ## 持久化保存表单项数据表单默认在重置之后(切换页面、弹框中表单关闭表单),会自动清空掉表单中的所有数据,如果你想持久化保留当前表单项的数据而不清空它,那么配置`persistdata:true`如果想提交成功后,清空该缓存,则配置`\"clearpersistdataaftersubmit\": true`## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------------------------- | --------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ || type | `string` | | `\"form\"` 指定为 form 渲染器 || name | `string` | | 设置一个名字后,方便其他组件与其通信 || mode | `string` | `normal` | 表单展示方式,可以是:`normal`、`horizontal` 或者 `inline` || horizontal | `object` | `{\"left\":\"col-sm-2\", \"right\":\"col-sm-10\", \"offset\":\"col-sm-offset-2\"}` | 当 mode 为 `horizontal` 时有用,用来控制 label || title | `string` | `\"表单\"` | form 的标题 || submittext | `string` | `\"提交\"` | 默认的提交按钮名称,如果设置成空,则可以把默认按钮去掉。 || classname | `string` | | 外层 dom 的类名 || controls | array<> | | form 表单项集合 || actions | array<> | | form 提交按钮,成员为 action || messages | `object` | | 消息提示覆写,默认消息读取的是 api 返回的消息,但是在此可以覆写它。 || messages.fetchsuccess | `string` | | 获取成功时提示 || messages.fetchfailed | `string` | | 获取失败时提示 || messages.savesuccess | `string` | | 保存成功时提示 || messages.savefailed | `string` | | 保存失败时提示 || wrapwithpanel | `boolean` | `true` | 是否让 form 用 panel 包起来,设置为 false 后,actions 将无效。 || panelclassname | `boolean` | `true` | 是否让 form 用 panel 包起来,设置为 false 后,actions 将无效。 || api | | | form 用来保存数据的 api。 || initapi | | | form 用来获取初始数据的 api。 || interval | `number` | `3000` | 刷新时间(最低 3000) || silentpolling | `boolean` | `false` | 配置刷新时是否显示加载动画 || stopautorefreshwhen | `string` | `\"\"` | 通过 来配置停止刷新的条件 || initasyncapi | | | form 用来获取初始数据的 api,与 initapi 不同的是,会一直轮训请求该接口,直到返回 finished 属性为 true 才 结束。 || initfetch | `boolean` | `true` | 设置了 initapi 或者 initasyncapi 后,默认会开始就发请求,设置为 false 后就不会起始就请求接口 || initfetchon | `string` | | 用表达式来配置 || initfinishedfield | `string` | `finished` | 设置了 initasyncapi 后,默认会从返回数据的 data.finished 来判断是否完成,也可以设置成其他的 xxx,就会从 data.xxx 中获取 || initcheckinterval | `number` | `3000` | 设置了 initasyncapi 以后,默认拉取的时间间隔 || asyncapi | | | 设置此属性后,表单提交发送保存接口后,还会继续轮训请求该接口,直到返回 `finished` 属性为 `true` 才 结束。 || checkinterval | `number` | 3000 | 轮训请求的时间间隔,默认为 3 秒。设置 `asyncapi` 才有效 || finishedfield | `string` | `\"finished\"` | 如果决定结束的字段名不是 `finished` 请设置此属性,比如 `is_success` || submitonchange | `boolean` | `false` | 表单修改即提交 || submitoninit | `boolean` | `false` | 初始就提交一次 || resetaftersubmit | `boolean` | `false` | 提交后是否重置表单 || primaryfield | `string` | `\"id\"` | 设置主键 id, 当设置后,检测表单是否完成时(asyncapi),只会携带此数据。 || target | `string` | | 默认表单提交自己会通过发送 api 保存数据,但是也可以设定另外一个 form 的 name 值,或者另外一个 `crud` 模型的 name 值。 如果 target 目标是一个 `form` ,则目标 `form` 会重新触发 `initapi`,api 可以拿到当前 form 数据。如果目标是一个 `crud` 模型,则目标模型会重新触发搜索,参数为当前 form 数据。当目标是 `window` 时,会把当前表单的数据附带到页面地址上。 || redirect | `string` | | 设置此属性后,form 保存成功后,自动跳转到指定页面。支持相对地址,和绝对地址(相对于组内的)。 || reload | `string` | | 操作完后刷新目标对象。请填写目标组件设置的 name 值,如果填写为 `window` 则让当前页面整体刷新。 || autofocus | `boolean` | `false` | 是否自动聚焦。 || canaccesssuperdata | `boolean` | `true` | 指定是否可以自动获取上层的数据并映射到表单项上 || persistdata | `boolean` | `true` | 指定表单是否开启本地缓存 || clearpersistdataaftersubmit | `boolean` | `true` | 指定表单提交成功后是否清除本地缓存 || trimvalues | `boolean` | `false` | trim 当前表单项的每一个值 |","path":"./docs/components/form/index"},{"title":"Input-Group 输入框组合","body":"**输入框组合选择器** 可用于输入框与其他组件进行组合。## 基本用法## 校验input-group 配置校验方法较为特殊,需要配置下面步骤:1. input-group 上配置任意`name`值2. input-group 的 controls 内配置的表单项上配置校验规则## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------- | --------------------------- | ------ | ---------- || classname | `string` | | css 类名 || controls | array<> | | 表单项集合 |","path":"./docs/components/form/input-group"},{"title":"List 列表","body":"## 基本用法## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------ | --------------------------------- | --------- | ------------------------------------------------------------------------------------------- || options | `array`或`array` | | || source | `string`或 || multiple | `boolean` | `false` | || labelfield | `boolean` | `\"label\"` | || valuefield | `boolean` | `\"value\"` | || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || autofill | `object` | | |","path":"./docs/components/form/list"},{"title":"Matrix 矩阵","body":"矩阵类型的输入框。## 基本用法## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ---------------- | ---------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- || columns | `array` | | 列信息,数组中 `label` 字段是必须给出的 || rows | `array` | | 行信息, 数组中 `label` 字段是必须给出的 || rowlabel | `string` | | 行标题说明 || source | | | api 地址,如果选项组不固定,可以通过配置 `source` 动态拉取。 || multiple | `boolean` | `true` | 是否多选 || singleselectmode | `string` | `\"column\"` | 设置单选模式,`multiple`为`false`时有效,可设置为`cell`, `row`, `column` 分别为全部选项中只能单选某个单元格、每行只能单选某个单元格,每列只能单选某个单元格 |","path":"./docs/components/form/matrix"},{"title":"NestedSelect 级联选择器","body":"## 基本用法## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ---------------- | --------------------------------- | -------------------- | ------------------------------------------------------------------------------------------- || options | `array`或`array` | | || source | `string`或 || delimeter | `boolean` | `false` | || labelfield | `boolean` | `\"label\"` | || valuefield | `boolean` | `\"value\"` | || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || autofill | `object` | | || cascade | `boolean` | `false` | 设置 `true`时,当选中父节点时不自动选择子节点。 || withchildren | `boolean` | `false` | 设置 `true`时,选中父节点时,值里面将包含子节点的值,否则只会保留父节点的值。 || searchprompttext | `string` | `\"输入内容进行检索\"` | 搜索框占位文本 |","path":"./docs/components/form/nestedselect"},{"title":"Number 数字输入框","body":"## 基本用法## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || --------- | ------------------------------- | ------ | -------------------- || min | | | 最小值 || max | | | 最大值 || step | `number` | | 步长 || precision | `number` | | 精度,即小数点后几位 |","path":"./docs/components/form/number"},{"title":"Options 选择器表单项","body":"**选择器表单项** 是指那些(例如下拉选择框)具有选择器特性的表单项它派生自 ,拥有表单项所有的特性。## 选项组格式选择器表单项可以通过配置一组选项(`options`),可以供给用户选择,如下:上例中我们配置了`\"autofill\": {\"option\": \"${label}\"}`,表示将选中项中的`label`的值,自动填充到当前表单项中`name`为`option`的文本框中。支持该配置项的有:buttongroup、list、nestedselect、picker、radios、select。## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------ | ----------------------------------------------------------------- | --------- | ---------------------------------------------------------------------- || options | `array`或`array` | | 选项组,供用户选择 || source | | | 选项组源,可通过数据映射获取当前数据域变量、或者配置 api 对象 || multiple | `boolean` | `false` | 是否支持多选 || labelfield | `boolean` | `\"label\"` | 标识选项中哪个字段是`label`值 || valuefield | `boolean` | `\"value\"` | 标识选项中哪个字段是`value`值 || joinvalues | `boolean` | `true` | 是否拼接`value`值 || extractvalue | `boolean` | `false` | 是否将`value`值抽取出来组成新的数组,只有在`joinvalues`是`false`是生效 |","path":"./docs/components/form/options"},{"title":"Panel 面板","body":"还是为了布局,可以把一部分 合并到一个 panel 里面单独展示。## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------------- | ------------------------------------ | ------ | ------------------------------------------------------------------- || title | `string` | | panel 标题 || body | | | 内容区 || bodyclassname | `string` | | body 的 classname || footer | | | 底部区 || footerclassname | `string` | | footer 的 classname || controls | array<表单项> | | `controls` 跟 `body` 二选一,如果设置了 controls 优先显示表单集合。 |- `title` panel 标题- `body` 可以是其他渲染模型。- `bodyclassname` body 的 classname.- `footer` 可以是其他渲染模型。- `footerclassname` footer 的 classname.- `controls` 跟 `body` 二选一,如果设置了 controls 优先显示表单集合。","path":"./docs/components/form/panel"},{"title":"Picker 列表选择器","body":"列表选取。可以静态数据,或者通过接口拉取动态数据。## 基本用法## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------ | --------------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------- || options | `array`或`array` | | || source | `string`或 || multiple | `boolean` | | 是否为多选。 || delimeter | `boolean` | `false` | || labelfield | `boolean` | `\"label\"` | || valuefield | `boolean` | `\"value\"` | || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || autofill | `object` | | || modalmode | `string` | `\"dialog\"` | 设置 `dialog` 或者 `drawer`,用来配置弹出方式。 || pickerschema | `string` | `{mode: 'list', listitem: {title: '${label}'}}` | 即用 list 类型的渲染,来展示列表信息。更多配置参考 || embed | `boolean` | `false` | 是否使用内嵌模式 |","path":"./docs/components/form/picker"},{"title":"Radios 单选框","body":"## 基本用法## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------ | --------------------------------- | --------- | ------------------------------------------------------------------------------------------- || options | `array`或`array` | | || source | `string`或 || labelfield | `boolean` | `\"label\"` | || valuefield | `boolean` | `\"value\"` | || columnscount | `number` | `1` | 选项按几列显示,默认为一列 || autofill | `object` | | |","path":"./docs/components/form/Radios"},{"title":"Range 滑块","body":"## 基本用法## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ---------- | --------- | ------- | --------------------------------------------------------------------------------------------------------------------------- || classname | `string` | | css 类名 || min | `number` | | 最小值 || max | `number` | | 最大值 || step | `number` | | 步长 || multiple | `boolean` | `false` | 支持选择范围 || joinvaluse | `boolean` | `true` | 默认为 `true`,选择的 `value` 会通过 `delimiter` 连接起来,否则直接将以`{min: 1, max: 100}`的形式提交,开启`multiple`时有效 || delimiter | `string` | `,` | 分隔符 || unit | `string` | | 单位 || clearable | `boolean` | | 是否可清除 || showinput | `string` | | 是否显示输入框 |","path":"./docs/components/form/range"},{"title":"Rating 评分","body":"## 基本用法## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || -------- | --------- | ------- | ------------------ || half | `boolean` | `false` | 是否使用半星选择 || count | `number` | `5` | 共有多少星可供选择 || readonly | `boolean` | `false` | 只读 |","path":"./docs/components/form/rating"},{"title":"Repeat 重复频率选择器","body":"## 基本用法## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ----------- | -------- | ----------------------------- | ------------------------------------------------------------------------ || options | `string` | `hourly,daily,weekly,monthly` | 可用配置 `secondly,minutely,hourly,daily,weekdays,weekly,monthly,yearly` || placeholder | `string` | `不重复` | 当不指定值时的说明。 |","path":"./docs/components/form/repeat"},{"title":"Rich-Text 富文本编辑器","body":"## 基本用法## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || --------- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ || saveasubb | `boolean` | | 是否保存为 ubb 格式 || reciever | | | 默认的图片保存 api || size | `string` | | 框的大小,可设置为 `md` 或者 `lg` || options | `object` | | object 类型,给富文本的配置信息。请参考 https://www.froala.com/wysiwyg-editor/docs/options || buttons | `array` | `[ 'paragraphformat', 'quote', 'color', ' | ', 'bold', 'italic', 'underline', 'strikethrough', ' | ', 'formatol', 'formatul', 'align', ' | ', 'insertlink', 'insertimage', 'inserttable', ' | ', 'undo', 'redo', 'html' ]` | 精度,即小数点后几位 |","path":"./docs/components/form/rich-text"},{"title":"Select 选择器","body":"## 基本用法更多设置项请参考 ## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || --------------- | ----------------------------------------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------- || options | `array`或`array` | | || source | || autocomplete | || delimeter | `string` | `false` | || labelfield | `string` | `\"label\"` | || valuefield | `string` | `\"value\"` | || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || checkall | `boolean` | `false` | 是否支持全选 || checkalllabel | `string` | `全选` | 全选的文字 || defaultcheckall | `boolean` | `false` | 默认是否全选 || creatable | `boolean` | `false` | || multiple | `boolean` | `false` | || searchable | `boolean` | `false` | || createbtnlabel | `string` | `\"新增选项\"` | || addcontrols | array< || addapi | || editable | `boolean` | `false` | || editcontrols | array< || editapi | || removable | `boolean` | `false` | || deleteapi | || autofill | `object` | | |","path":"./docs/components/form/select"},{"title":"Service 功能容器","body":"## 基本用法schemaapi` 同样支持 ","path":"./docs/components/form/service"},{"title":"Static 静态展示","body":"用来在表单中,展示静态数据## 基本用法想要调整展示组件的配置,请查阅相应组件的文档。","path":"./docs/components/form/static"},{"title":"SubForm 子表单","body":"## 基本用法## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------------- | --------------------- | --------------------------- | ------------------------------------------------------ || multiple | `boolean` | `false` | 是否为多选模式 || labelfield | `string` | | 当值中存在这个字段,则按钮名称将使用此字段的值来展示。 || btnlabel | `string` | `\"设置\"` | 按钮默认名称 || minlength | `number` | `0` | 限制最小长度。 || maxlength | `number` | `0` | 限制最大长度。 || addbuttonclassname | `string` | `btn-success btn-sm` | 新增按钮 css 类名 || editbuttonclassname | `string` | `btn-info btn-addon btn-sm` | 修改按钮 css 类名 || form | |","path":"./docs/components/form/subform"},{"title":"Switch 开关","body":"## 基本用法调整开关,观察数据域变化,会发现打开后值为`1`,而关闭后为`0`## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ---------- | -------- | --------- | -------- || option | `string` | | 选项说明 || truevalue | `any` | `true` | 标识真值 || falsevalue | `any` | `\"false\"` | 标识假值 |","path":"./docs/components/form/switch"},{"title":"Table 表格","body":"## 基本用法可以用来展示数组类型的数据。配置`columns` 数组,来定义列信息。## 属性表| 属性名 | 类型 | 默认值 | 说明 || ---------------------------- | ----------------------- | ---------------- | ---------------------------------------- || type | `string` | `\"table\"` | 指定为 table 渲染器 || addable | `boolean` | `false` | 是否可增加一行 || editable | `boolean` | `false` | 是否可编辑 || removable | `boolean` | `false` | 是否可删除 || showaddbtn | `boolean` | `true` | 是否显示添加按钮 || addapi | | - | 新增时提交的 api || updateapi | | - | 修改时提交的 api || deleteapi | | - | 删除时提交的 api || addbtnlabel | `string` | | 增加按钮名称 || addbtnicon | `string` | `\"fa fa-plus\"` | 增加按钮图标 || updatebtnlabel | `string` | `\"\"` | 更新按钮名称 || updatebtnicon | `string` | `\"fa fa-pencil\"` | 更新按钮图标 || deletebtnlabel | `string` | `\"\"` | 删除按钮名称 || deletebtnicon | `string` | `\"fa fa-minus\"` | 删除按钮图标 || confirmbtnlabel | `string` | `\"\"` | 确认编辑按钮名称 || confirmbtnicon | `string` | `\"fa fa-check\"` | 确认编辑按钮图标 || cancelbtnlabel | `string` | `\"\"` | 取消编辑按钮名称 || cancelbtnicon | `string` | `\"fa fa-times\"` | 取消编辑按钮图标 || columns | `array` | [] | 列信息 || columns[x].quickedit | `boolean` 或者 `object` | - | 配合 editable 为 true 一起使用 || columns[x].quickeditonupdate | `boolean` 或者 `object` | - | 可以用来区分新建模式和更新模式的编辑配置 |","path":"./docs/components/form/table"},{"title":"TabsTransfer 组合穿梭器","body":"在的基础上扩充了左边的展示形式,支持 tabs 的形式展示。对应的 options 的顶级数据,顶层 options 的成员支持 selectmode 配置这个 tab 下面的选项怎么展示。title 可以配置 tab 的标题。## 属性表更多配置请参考。","path":"./docs/components/form/tabs-transfer"},{"title":"Tabs 选项卡","body":"有多组输入框时,也可以通过选项卡来分组。## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ---------------- | ------------------------------------ | ------ | ------------------- || tabs | `array` | | tabs 内容 || toolbar | | | tabs 中的工具栏 || toolbarclassname | `string` | | tabs 中工具栏的类名 || tabs[x].title | `string` | | tab 标题 || tabs | | 内容容器 || tabs> | | 表单项集合。 |","path":"./docs/components/form/tabs"},{"title":"Tag 标签选择器","body":"## 基本使用## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------ | --------------------------------- | -------------------- | ------------------------------------------------------------------------------------------- || options | `array`或`array` | | || optionstip | `array`或`array` | `\"最近您使用的标签\"` | 选项提示 || source | `string`或 || delimeter | `string` | `false` | || labelfield | `string` | `\"label\"` | || valuefield | `string` | `\"value\"` | || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || clearable | `boolean` | `false` | 在有值的时候是否显示一个删除图标在右侧。 || resetvalue | `string` | `\"\"` | 删除后设置此配置项给定的值。 |","path":"./docs/components/form/tag"},{"title":"Text 输入框","body":"## 基本使用选择器模式下,支持部分选择器组件支持的配置项,具体请查看下面的属性表## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------ | --------------------------------- | --------- | ------------------------------------------------------------------------------------------- || options | `array`或`array` | | || source | `string`或 || autocomplete | `string`或 || multiple | `boolean` | | || delimeter | `string` | `,` | || labelfield | `string` | `\"label\"` | || valuefield | `string` | `\"value\"` | || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || addon | `addon` | | 输入框附加组件,比如附带一个提示文字,或者附带一个提交按钮。 || addon.type | `string` | | 请选择 `text` 、`button` 或者 `submit`。 || addon.label | `string` | | 文字说明 || addon.xxx | `string` | | 其他参数请参考按钮文档 || trimcontents | `boolean` | | 是否去除首尾空白文本。 || clearable | `boolean` | | 是否可清除 || resetvalue | `string` | `\"\"` | 清除后设置此配置项给定的值。 |","path":"./docs/components/form/text"},{"title":"Textarea 多行文本输入框","body":"## 基本使用## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------ | --------- | ------ | ---------------------- || minrows | `number` | | 最小行数 || maxrows | `number` | | 最大行数 || trimcontents | `boolean` | | 是否去除首尾空白文本。 |","path":"./docs/components/form/textarea"},{"title":"Time 时间","body":"## 基本用法上例中配置了`\"value\": \"+1hours\"`,默认就会选中一小时后。支持的相对值关键字有:- `now`: 当前时间- `hour`或`hours`: 时- `minute`或`minutes`: 分- `second`或`seconds`: 秒## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || --------------- | --------- | -------------- | ----------------------------------------------------------------------------------- || value | `string` | | || format | `string` | `x` | 时间选择器值格式,更多格式类型请参考 || inputformat | `string` | `hh:mm` | 时间选择器显示格式,即时间戳格式,更多格式类型请参考 || placeholder | `string` | `\"请选择时间\"` | 占位文本 || clearable | `boolean` | `true` | 是否可清除 || timeconstrainst | `object` | `true` | 请参考: |","path":"./docs/components/form/time"},{"title":"Transfer 穿梭器","body":"## 基本用法适用于需选择的数据/信息源较多时,用户可直观的知道自己所选择的数据/信息的场景,一般左侧框为数据/信息源,右侧为已选数据/信息,被选中信息同时存在于 2 个框内。## 属性表除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ---------------- | --------------------------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- || options | `array`或`array` | | || source | `string`或 || delimeter | `string` | `false` | || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || searchable | `boolean` | `false` | 当设置为 `true` 时表示可以通过输入部分内容检索出选项。 || searchapi | | | 如果想通过接口检索,可以设置个 api。 || statistics | `boolean` | `true` | 是否显示统计数据 || selecttitle | `string` | `\"请选择\"` | 左侧的标题文字 || resulttitle | `string` | `\"当前选择\"` | 右侧结果的标题文字 || sortable | `boolean` | `false` | 结果可以进行拖拽排序 || selectmode | `string` | `list` | 可选:`list`、`table`、`tree`、`chained`、`associated`。分别为:列表形式、表格形式、树形选择形式、级联选择形式,关联选择形式(与级联选择的区别在于,级联是无限极,而关联只有一级,关联左边可以是个 tree)。 || searchresultmode | `string` | | 如果不设置将采用 `selectmode` 的值,可以单独配置,参考 `selectmode`,决定搜索结果的展示形式。 || columns | `array` | | 当展示形式为 `table` 可以用来配置展示哪些列,跟 table 中的 columns 配置相似,只是只有展示功能。 || leftoptions | `array` | | 当展示形式为 `associated` 时用来配置左边的选项集。 || leftmode | `string` | | 当展示形式为 `associated` 时用来配置左边的选择形式,支持 `list` 或者 `tree`。默认为 `list`。 || rightmode | `string` | | 当展示形式为 `associated` 时用来配置右边的选择形式,可选:`list`、`table`、`tree`、`chained`。 |","path":"./docs/components/form/transfer"},{"title":"Tree 树形选择框","body":"## 基本使用配置的`options`中,可以通过`children`字段进行嵌套展示,实现树形选择器## 属性表当做选择器表单项使用时,除了支持 中的配置以外,还支持下面一些配置| 属性名 | 类型 | 默认值 | 说明 || ------------- | ------------------------------------ | ---------------- | ------------------------------------------------------------------------------------------------------------------- || options | `array`或`array` | | || source | `string`或 || autocomplete | || multiple | `boolean` | `false` | 是否多选 || delimeter | `string` | `false` | || labelfield | `string` | `\"label\"` | || valuefield | `string` | `\"value\"` | || joinvalues | `boolean` | `true` | || extractvalue | `boolean` | `false` | || creatable | `boolean` | `false` | || addcontrols | array< || addapi | || editable | `boolean` | `false` | || editcontrols | array< || editapi | || removable | `boolean` | `false` | || deleteapi | || hideroot | `boolean` | `true` | 如果想要显示个顶级节点,请设置为 `false` || rootlabel | `boolean` | `\"顶级\"` | 当 `hideroot` 不为 `false` 时有用,用来设置顶级节点的文字。 || showicon | `boolean` | `true` | 是否显示图标 || showradio | `boolean` | `false` | 是否显示单选按钮,`multiple` 为 `false` 是有效。 || initiallyopen | `boolean` | `true` | 设置是否默认展开所有层级。 || unfoldedlevel | `number` | `0` | 设置默认展开的级数,只有`initiallyopen`不是`true`时生效。 || cascade | `boolean` | `false` | 当选中父节点时不自动选择子节点。 || withchildren | `boolean` | `false` | 选中父节点时,值里面将包含子节点的值,否则只会保留父节点的值。 || onlychildren | `boolean` | `false` | 多选时,选中父节点时,是否只将其子节点加入到值中。 || rootcreatable | `boolean` | `false` | 是否可以创建顶级节点 || rootcreatetip | `string` | `\"添加一级节点\"` | 创建顶级节点的悬浮提示 || minlength | `number` | | 最少选中的节点数 || maxlength | `number` | | 最多选中的节点数 |","path":"./docs/components/form/tree"},{"title":"TreeSelect 树形选择器","body":"## 基本使用更多用法,见 ","path":"./docs/components/form/treeselect"},{"title":"Grid 网格布局","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------------------- | --------------------------------- | -------- | ----------------------- || type | `string` | `\"grid\"` | 指定为 grid 渲染器 || classname | `string` | | 外层 dom 的类名 || columns | `array` | | 列集合 || columns | | 成员可以是其他渲染器 || columns[x].xs | `int` | | 宽度占比: 1 - 12 || columns[x].xshidden | `boolean` | | 是否隐藏 || columns[x].xsoffset | `int` | | 偏移量 1 - 12 || columns[x].xspull | `int` | | 靠左的距离占比:1 - 12 || columns[x].xspush | `int` | | 靠右的距离占比: 1 - 12 || columns[x].sm | `int` | | 宽度占比: 1 - 12 || columns[x].smhidden | `boolean` | | 是否隐藏 || columns[x].smoffset | `int` | | 偏移量 1 - 12 || columns[x].smpull | `int` | | 靠左的距离占比:1 - 12 || columns[x].smpush | `int` | | 靠右的距离占比: 1 - 12 || columns[x].md | `int` | | 宽度占比: 1 - 12 || columns[x].mdhidden | `boolean` | | 是否隐藏 || columns[x].mdoffset | `int` | | 偏移量 1 - 12 || columns[x].mdpull | `int` | | 靠左的距离占比:1 - 12 || columns[x].mdpush | `int` | | 靠右的距离占比: 1 - 12 || columns[x].lg | `int` | | 宽度占比: 1 - 12 || columns[x].lghidden | `boolean` | | 是否隐藏 || columns[x].lgoffset | `int` | | 偏移量 1 - 12 || columns[x].lgpull | `int` | | 靠左的距离占比:1 - 12 || columns[x].lgpush | `int` | | 靠右的距离占比: 1 - 12 |更多使用说明,请参看 ","path":"./docs/components/grid"},{"title":"HBox 布局","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || -------------------------- | --------------------------------- | -------------- | -------------------- || type | `string` | `\"hbox\"` | 指定为 hbox 渲染器 || classname | `string` | | 外层 dom 的类名 || columns | `array` | | 列集合 || columns | | 成员可以是其他渲染器 || columns[x].columnclassname | `string` | `\"wrapper-xs\"` | 列上类名 |","path":"./docs/components/hbox"},{"title":"Html","body":"## 基本用法渲染一段 html> 当需要获取数据域中变量时,使用 。","path":"./docs/components/html"},{"title":"Icon 图标","body":"## 基本使用| 属性名 | 类型 | 默认值 | 说明 || --------- | -------- | ------ | ------------------------------ || type | `string` | `icon` | 指定组件类型 || classname | `string` | | 外层 css 类名 || icon | `string` | | icon 名,只支持 fontawesome v4 |","path":"./docs/components/icon"},{"title":"iFrame","body":"## 基本使用内嵌外部站点,可用 iframe 来实现。## 属性表| 属性名 | 类型 | 默认值 | 说明 || ----------- | -------- | ---------- | -------------------- || type | `string` | `\"iframe\"` | 指定为 iframe 渲染器 || classname | `string` | | iframe 的类名 || frameborder | `array` | | frameborder || style | `object` | | 样式 || src | `string` | | iframe地址 |","path":"./docs/components/iframe"},{"title":"Image 图片","body":"## 基本使用| 属性名 | 类型 | 默认值 | 说明 || -------------- | --------- | --------- | -------------------------------------------------------------------------------------- || type | `string` | | 如果在 table、card 和 list 中,为`\"color\"`;在 form 中用作静态展示,为`\"static-color\"` || classname | `string` | | 外层 css 类名 || imageclassname | `string` | | 图片 css 类名 || title | `string` | | 标题 || imagecaption | `string` | | 描述 || placeholder | `string` | | 占位文本 || defaultimage | `string` | | 默认显示的图片地址 || src | `string` | | 缩略图地址 || originalsrc | `string` | | 原图地址 || enlargeable | `boolean` | | 支持放大预览 || enlargetitle | `string` | | 放大预览的标题 || enlargecaption | `string` | | 放大预览的描述 || thumbmode | `string` | `contain` | 预览图模式,可选:`'w-full'`, `'h-full'`, `'contain'`, `'cover'` || thumbratio | `string` | `1:1` | 预览图比例,可选:`'1:1'`, `'4:3'`, `'16:9'` |","path":"./docs/components/image"},{"title":"Images 图片集","body":"图片集展示,不支持配置初始化接口初始化数据域,所以需要搭配类似像`service`、`form`或`crud`这样的,具有配置接口初始化数据域功能的组件,或者手动进行数据域初始化,然后通过`source`属性,获取数据链中的数据,完成数据展示。## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------------ | ------------------------------------------ | --------- | ---------------------------------------------------------------------------------------- || type | `string` | `images` | 如果在 table、card 和 list 中,为`\"images\"`;在 form 中用作静态展示,为`\"static-images\"` || classname | `string` | | 外层 css 类名 || defaultimage | `string` | | 默认展示图片 || value | `string`或`array`或`array` | | 图片数组 || source | `string` | | 数据源 || delimiter | `string` | `,` | 分隔符,当value为字符串时,用该值进行分隔拆分 || src | `string` | | 预览图地址,支持数据映射获取对象中图片变量 || originalsrc | `string` | | 原图地址,支持数据映射获取对象中图片变量 || enlargeable | `boolean` | | 支持放大预览 || thumbmode | `string` | `contain` | 预览图模式,可选:`'w-full'`, `'h-full'`, `'contain'`, `'cover'` || thumbratio | `string` | `1:1` | 预览图比例,可选:`'1:1'`, `'4:3'`, `'16:9'` |","path":"./docs/components/images"},{"title":"Json","body":"json 展示组件## 基本用法如上,`levelexpand`配置为`0`,则默认不展开。## 属性表| 属性名 | 类型 | 默认值 | 说明 || ----------- | -------- | ---------- | ------------------------------------------------------------------------------------ || type | `string` | | 如果在 table、card 和 list 中,为`\"json\"`;在 form 中用作静态展示,为`\"static-json\"` || classname | `string` | | 外层 css 类名 || placeholder | `string` | `-` | 占位文本 || levelexpand | `number` | `1` | 默认展开的层级 || jsontheme | `string` | `twilight` | 主题,可选`twilight`和`eighties` |","path":"./docs/components/json"},{"title":"Link 链接","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ---------- | --------- | ------ | ------------------------------------------------------------------------------------ || type | `string` | | 如果在 table、card 和 list 中,为`\"link\"`;在 form 中用作静态展示,为`\"static-link\"` || body | `string` | | 标签内文本 || href | `string` | | 链接地址 || blank | `boolean` | | 是否在新标签页打开 || htmltarget | `string` | | a标签的target |","path":"./docs/components/link"},{"title":"List 列表","body":"列表展示,不支持配置初始化接口初始化数据域,所以需要搭配类似像`service`这样的,具有配置接口初始化数据域功能的组件,或者手动进行数据域初始化,然后通过`source`属性,获取数据链中的数据,完成数据展示。## 基本用法或者你也可以使用 crud 的 ## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------------------------ | ---------------------------- | --------------------- | -------------------------------------------------------------------- || type | `string` | | `\"list\"` 指定为列表展示。 || title | `string` | | 标题 || source | `string` | `${items}` | 数据源, 获取当前数据域变量,支持 || placeholder | `string` | ‘暂无数据’ | 当没数据的时候的文字提示 || classname | `string` | | 外层 css 类名 || headerclassname | `string` | `amis-list-header` | 顶部外层 css 类名 || footerclassname | `string` | `amis-list-footer` | 底部外层 css 类名 || listitem | `array` | | 配置单条信息 || listitem.title | | | 标题 || listitem.titleclassname | `string` | `h5` | 标题 css 类名 || listitem.subtitle | | | 副标题 || listitem.avatar | | | 图片地址 || listitem.avatarclassname | `string` | `thumb-sm avatar m-r` | 图片 css 类名 || listitem.desc | | | 描述 || listitem.body | `array` | | 内容容器,主要用来放置非表单项组件 || listitem.actions | array<> | | 按钮区域 |","path":"./docs/components/list"},{"title":"Mapping 映射","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ----------- | -------- | ------ | -------------------------------------------------------------------------------------- || type | `string` | | 如果在 table、card 和 list 中,为`\"color\"`;在 form 中用作静态展示,为`\"static-color\"` || classname | `string` | | 外层 css 类名 || placeholder | `string` | | 占位文本 || map | `object` | | 映射配置 |","path":"./docs/components/mapping"},{"title":"Nav 导航","body":"用于展示链接导航## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ----------------- | -------------------------------- | ------- | -------------------------------------- || type | `string` | `\"nav\"` | 指定为 nav 渲染器 || classname | `string` | | 外层 dom 的类名 || stacked | `boolean` | `true` | 设置成 false 可以以 tabs 的形式展示 || links | `array` | | 链接集合 || links[x].label | `string` | | 名称 || links | | 链接地址 || links[x].icon | `string` | | 图标 || links[x].active | `boolean` | | 是否高亮 || links | | 是否高亮的条件,留空将自动分析链接地址 |","path":"./docs/components/nav"},{"title":"Page 页面","body":"page 组件是 amis 页面 json 配置中,**唯一的** 顶级容器组件,是整个页面配置的入口组件。## 基本用法我们这里在内容区中简单渲染一段文字。## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------------------- | --------------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------- || type | `string` | `\"page\"` | 指定为 page 组件 || title | | | 页面标题 || subtitle | | | 页面副标题 || remark | | | 标题附近会出现一个提示图标,鼠标放上去会提示该内容。 || aside | | | 往页面的边栏区域加内容 || toolbar | | | 往页面的右上角加内容,需要注意的是,当有 title 时,该区域在右上角,没有时该区域在顶部 || body | | | 往页面的内容区域加内容 || classname | `string` | | 外层 dom 类名 || toolbarclassname | `string` | `v-middle wrapper text-right bg-light b-b` | toolbar dom 类名 || bodyclassname | `string` | `wrapper` | body dom 类名 || asideclassname | `string` | `w page-aside-region bg-auto` | aside dom 类名 || headerclassname | `string` | `bg-light b-b wrapper` | header 区域 dom 类名 || initapi | | | page 用来获取初始数据的 api。返回的数据可以整个 page 级别使用。 || initfetch | `boolean` | `true` | 是否起始拉取 initapi || initfetchon | | | 是否起始拉取 initapi, 通过表达式配置 || interval | `number` | `3000` | 刷新时间(最低 3000) || silentpolling | `boolean` | `false` | 配置刷新时是否显示加载动画 || stopautorefreshwhen | | `\"\"` | 通过表达式来配置停止刷新的条件 |","path":"./docs/components/page"},{"title":"Panel 面板","body":"可以把相关信息以面板的形式展示到一块。## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ---------------- | --------------------------------- | -------------------------------------- | ------------------- || type | `string` | `\"panel\"` | 指定为 panel 渲染器 || classname | `string` | `\"panel-default\"` | 外层 dom 的类名 || headerclassname | `string` | `\"panel-heading\"` | header 区域的类名 || footerclassname | `string` | `\"panel-footer bg-light lter wrapper\"` | footer 区域的类名 || actionsclassname | `string` | `\"panel-footer\"` | actions 区域的类名 || bodyclassname | `string` | `\"panel-body\"` | body 区域的类名 || title | | | 标题 || header | | | 头部容器 || body | | | 内容容器 || footer | | | 底部容器 || affixfooter | `boolean` | | 是否固定底部容器 || actions | array<> | | 按钮区域 |","path":"./docs/components/panel"},{"title":"Progress 进度条","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || -------------------- | --------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------------------------- || type | `string` | | 如果在 table、card 和 list 中,为`\"color\"`;在 form 中用作静态展示,为`\"static-color\"` || classname | `string` | | 外层 css 类名 || progressclassname | `string` | `progress-xs progress-striped active m-b-none` | 进度调 css 类名 || progressbarclassname | `string` | | 完成进度条 css 类名 || value | `string` | | 进度值 || placeholder | `string` | `-` | 占位文本 || showlabel | `boolean` | `true` | 是否展示进度文本 || map | `array` | `['bg-danger', 'bg-warning', 'bg-info', 'bg-success', 'bg-success']` | 进度颜色映射 |","path":"./docs/components/progress"},{"title":"QRCode 二维码","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------------- | ---------------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- || type | `string` | `\"qr-code\"` | 指定为 qrcode 渲染器 || classname | `string` | | 外层 dom 的类名 || qrcodeclassname | `string` | | 二维码 svg 的类名 || codesize | `number` | `128` | 二维码的宽高大小 || backgroundcolor | `string` | `\"#fff\"` | 二维码背景色 || foregroundcolor | `string` | `\"#000\"` | 二维码前景色 || level | `string` | `\"l\"` | 二维码复杂级别,有('l' 'm' 'q' 'h')四种 || value | |","path":"./docs/components/qrcode"},{"title":"Remark 标记","body":"用于展示颜色## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------- | -------- | ----------------------- | ------------- || type | `string` | | `remark` || classname | `string` | | 外层 css 类名 || content | `string` | | 提示文本 || placement | `string` | | 弹出位置 || trigger | `string` | `['hover', 'focus']` | 触发条件 || icon | `string` | `fa fa-question-circle` | 图标 |","path":"./docs/components/remark"},{"title":"Service 功能型容器","body":"amis 中部分组件,作为展示组件,自身没有**使用接口初始化数据域的能力**,例如:功能,在当前的 **数据链** 中获取数据,并进行数据展示。而`service`组件就是专门为该类组件而生,它的功能是::**配置初始化接口,进行数据域的初始化,然后在`service`内容器中配置子组件,这些子组件通过数据链的方法,获取`service`所拉取到的数据**## 基本使用最基本的使用,是配置初始化接口`api`,将接口返回的数据添加到自身的数据域中,以供子组件通过进行获取使用。上例可看到,变更**数据模板**的值,会触发 service 重新请求,并更新当前数据域中的数据更多相关见## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------------------- | --------------------------------- | -------------- | ----------------------------------------------------------------------------- || type | `string` | `\"service\"` | 指定为 service 渲染器 || classname | `string` | | 外层 dom 的类名 || body | | | 内容容器 || api | | | 初始化数据域接口地址 || initfetch | `boolean` | | 是否默认拉取 || schemaapi | | | 用来获取远程 schema 接口地址 || initfetchschema | `boolean` | | 是否默认拉取 schema || messages | `object` | | 消息提示覆写,默认消息读取的是接口返回的 toast 提示文字,但是在此可以覆写它。 || messages.fetchsuccess | `string` | | 接口请求成功时的 toast 提示文字 || messages.fetchfailed | `string` | `\"初始化失败\"` | 接口请求失败时 toast 提示文字 || interval | `number` | | 轮训时间间隔(最低 3000) || silentpolling | `boolean` | `false` | 配置轮训时是否显示加载动画 || stopautorefreshwhen | | | 配置停止轮训的条件 |","path":"./docs/components/service"},{"title":"Spinner 加载中","body":"## 基本使用","path":"./docs/components/spinner"},{"title":"Status 状态","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ----------- | -------- | ------ | ------------------------------- || type | `string` | | `\"status\"` 指定为 status 渲染器 || classname | `string` | | 外层 dom 的类名 || placeholder | `string` | `-` | 占位文本 |","path":"./docs/components/status"},{"title":"Switch 开关","body":"## 基本用法| 属性名 | 类型 | 默认值 | 说明 || --------- | -------- | ------ | ------------------------------- || type | `string` | | `\"switch\"` 指定为 dialog 渲染器 || classname | `string` | | 外层 dom 的类名 || truevalue | any | | 真值,当值为该值时,开关开启 || option | `string` | | 右侧选项文本 |","path":"./docs/components/switch"},{"title":"Table 表格","body":"表格展示,不支持配置初始化接口初始化数据域,所以需要搭配类似像`service`这样的,具有配置接口初始化数据域功能的组件,或者手动进行数据域初始化,然后通过`source`属性,获取数据链中的数据,完成数据展示。## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || ---------------- | --------------------------------------------- | ------------------------- | ----------------------------------------------------------------- || type | `string` | | `\"type\"` 指定为 table 渲染器 || title | `string` | | 标题 || source | `string` | `${items}` | 数据源, 绑定当前环境变量 || affixheader | `boolean` | `true` | 是否固定表头 || columnstogglable | `auto` 或者 `boolean` | `auto` | 展示列显示开关, 自动即:列数量大于或等于 5 个时自动开启 || placeholder | string | `暂无数据` | 当没数据的时候的文字提示 || classname | `string` | `panel-default` | 外层 css 类名 || tableclassname | `string` | `table-db table-striped` | 表格 css 类名 || headerclassname | `string` | `action.md-table-header` | 顶部外层 css 类名 || footerclassname | `string` | `action.md-table-footer` | 底部外层 css 类名 || toolbarclassname | `string` | `action.md-table-toolbar` | 工具栏 css 类名 || columns | array<> | | 用来设置列信息 || combinenum | `number` | | 自动合并单元格 || itemactions | array<> | | 悬浮行操作按钮组 || itemcheckableon | || itemdraggableon | || checkonitemclick | `boolean` | `false` | 点击数据行是否可以勾选当前行 |","path":"./docs/components/table"},{"title":"Tabs 选项卡","body":"## 基本用法## unmountonexit如果你想在切换 tab 时,自动销毁掉隐藏的 tab,请配置`\"unmountonexit\": true`## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------------------- | --------------------------------- | ----------------------------------- | -------------------------------------------------------- || type | `string` | `\"tabs\"` | 指定为 tabs 渲染器 || classname | `string` | | 外层 dom 的类名 || tabsclassname | `string` | | tabs dom 的类名 || tabs | `array` | | tabs 内容 || toolbar | | | tabs 中的工具栏 || toolbarclassname | `string` | | tabs 中工具栏的类名 || tabs[x].title | `string` | | tab 标题 || tabs[x].icon | `icon` | | tab 的图标 || tabs | | 内容区 || tabs[x].hash | `string` | | 设置以后将跟 url 的 hash 对应 || tabs[x].reload | `boolean` | | 设置以后内容每次都会重新渲染,对于 crud 的重新拉取很有用 || tabs[x].unmountonexit | `boolean` | | 每次退出都会销毁当前 tab 栏内容 || tabs[x].classname | `string` | `\"bg-white b-l b-r b-b wrapper-md\"` | tab 区域样式 |","path":"./docs/components/tabs"},{"title":"Tasks 任务操作集合","body":"任务操作集合,类似于 orp 上线。## 基本用法","path":"./docs/components/tasks"},{"title":"Tpl 模板","body":"输出 的常用组件## 基本用法更多模板相关配置请看## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------- | ---------------------------- | ------- | --------------- || type | `string` | `\"tpl\"` | 指定为 tpl 组件 || classname | `string` | | 外层 dom 的类名 || tpl | | | 配置模板 |","path":"./docs/components/tpl"},{"title":"Video 视频","body":"## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------- | --------- | --------- | -------------------------------------------------------- || type | `string` | `\"video\"` | 指定为 video 渲染器 || classname | `string` | | 外层 dom 的类名 || src | `string` | | 视频地址 || islive | `boolean` | false | 是否为直播,视频为直播时需要添加上,支持`flv`和`hls`格式 || poster | `string` | | 视频封面地址 || muted | `boolean` | | 是否静音 || autoplay | `boolean` | | 是否自动播放 || rates | `array` | | 倍数,格式为`[1.0, 1.5, 2.0]` |","path":"./docs/components/video"},{"title":"Wizard 向导","body":"表单向导,能够配置多个步骤引导用户一步一步完成表单提交。## 基本使用## 属性表| 属性名 | 类型 | 默认值 | 说明 || ------------------- | -------------------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- || type | `string` | `\"wizard\"` | 指定为 `wizard` 组件 || mode | `string` | `\"horizontal\"` | 展示模式,选择:`horizontal` 或者 `vertical` || api | | | 最后一步保存的接口。 || initapi | | | 初始化数据接口 || initfetch | | | 初始是否拉取数据。 || initfetchon | | | 初始是否拉取数据,通过表达式来配置 || actionprevlabel | `string` | `上一步` | 上一步按钮文本 || actionnextlabel | `string` | `下一步` | 下一步按钮文本 || actionnextsavelabel | `string` | `保存并下一步` | 保存并下一步按钮文本 || actionfinishlabel | `string` | `完成` | 完成按钮文本 || classname | `string` | | 外层 css 类名 || actionclassname | `string` | `btn-sm btn-default` | 按钮 css 类名 || reload | `string` | | 操作完后刷新目标对象。请填写目标组件设置的 name 值,如果填写为 `window` 则让当前页面整体刷新。 || redirect | | `3000` | 操作完后跳转。 || target | `string` | `false` | 可以把数据提交给别的组件而不是自己保存。请填写目标组件设置的 name 值,如果填写为 `window` 则把数据同步到地址栏上,同时依赖这些数据的组件会自动重新刷新。 || steps | array<> | | 数组,配置步骤信息 |### step| 属性名 | 类型 | 默认值 | 说明 || ----------------- | ---------------------------------- | ------ | --------------------------------------------------------------------------------------------- || title | `string` | | 步骤标题 || mode | `string` | | 展示默认,跟 中的模式一样,选择: `normal`、`horizontal`或者`inline`。 || horizontal | `object` | | 当为水平模式时,用来控制左右占比 || horizontal.label | `number` | | 左边 label 的宽度占比 || horizontal.right | `number` | | 右边控制器的宽度占比。 || horizontal.offset | `number` | | 当没有设置 label 时,右边控制器的偏移量 || api | | | 当前步骤保存接口,可以不配置。 || initapi | | | 当前步骤数据初始化接口。 || initfetch | `boolean` | | 当前步骤数据初始化接口是否初始拉取。 || initfetchon | | | 当前步骤数据初始化接口是否初始拉取,用表达式来决定。 || controls | array<。 |","path":"./docs/components/wizard"},{"title":"Wrapper 包裹容器","body":"简单的一个包裹容器组件## 基本用法## 属性表| 属性名 | 类型 | 默认值 | 说明 || --------- | --------------------------------- | ----------- | ---------------------------- || type | `string` | `\"wrapper\"` | 指定为 wrapper 渲染器 || classname | `string` | | 外层 dom 的类名 || size | `string` | | 支持: `xs`、`sm`、`md`和`lg` || body | | | 内容容器 |","path":"./docs/components/wrapper"},{"title":"行为","body":"页面的交互操作,例如:**提交表单、显示一个弹框、跳转页面、复制一段文字到粘贴板**等等操作,都可以视作页面的一种**行为**。在 amis 中,大部分 **行为** 是跟 **行为按钮组件** 进行绑定的,也就是说,当你想要配置一个行为,大部分情况下你应该遵循下面的步骤:1. 添加一个 **行为按钮组件**;2. 配置当前 **行为类型(actiontype)**;3. 根据当前行为类型,配置你想要的 **属性**。## 如何配置行为?### 通过行为按钮这次我们配置`actiontype`为`dialog`,意味着点击该按钮会弹出一个模态框,并配置`dialog`内容,来显示字符串`hello world!`> `dialog`是容器,也就意味着可以在`body`属性中配置其他组件完整的行为列表可以查看 组件### 组件所支持的行为一些特殊组件,例如 chart 组件 中的图表点击行为,可以直接配置`clickaction`,来配置行为对象。","path":"./docs/concepts/action"},{"title":"数据映射","body":"数据映射支持用户通过`${xxx}`或`$xxx`获取当前数据链中某个变量的值,实现灵活的数据配置功能,主要用于模板字符串、 自定义 `api` 请求数据体格式等场景。## 模板字符串上例子中`${value|split|first}`,会经历下面几个步骤:1. 会先执行`split`过滤器,将字符串`a,b,c`,拆分成数组`[\"a\", \"b\", \"c\"]`;2. 然后将该数据传给下一个过滤器`first`,执行该过滤器,获取数组第一个元素,为`\"a\"`3. 输出`\"a\"`","path":"./docs/concepts/data-mapping"},{"title":"数据域与数据链","body":"## 基本的数据展示我们再看之前的 hello world 示例:这时 amis 将会把`data`数据与当前`form`组件的数据域进行**merge**,`form`组件中的`static-tpl`组件会根据更新后的数据域,显示`id`为`1`。> 具有类似特征的组件还有`formula`等","path":"./docs/concepts/datascope-and-datachain"},{"title":"表达式","body":"一般来说,属性名类似于`xxxon`的配置项,都可以使用表达式进行配置,表达式具有如下的语法:其中:`data.show === 1` 就是表达式。## 表达式语法> 表达式语法实际上是 javascript 代码,更多 javascript 知识查看 。在 amis 的实现过程中,当正则匹配到某个组件存在`xxxon`语法的属性名时,会尝试进行下面步骤(以上面配置为例):1. 提取`visibleon`配置项配置的 javascript 语句`data.show === 1`,并以当前组件的数据域为这段代码的数据作用域,执行这段 js 代码;2. 之后将执行结果赋值给`visible`并添加到组件属性中3. 执行渲染。当前示例中:`visible`代表着是否显示当前组件;组件不同的配置项会有不同的效果,请大家在组件文档中多留意。> 表达式的执行结果预期应该是`boolean`类型值,如果不是,amis 会根据 javascript 的规则将结果视作`boolean`类型进行判断","path":"./docs/concepts/expression"},{"title":"联动","body":"上一节我们介绍了表达式的概念,而表达式应用最多的场景,是实现页面的联动效果。## 基本联动元素的联动是页面开发中很常见的功能之一,类似于:- 某个条件下显示或隐藏某个组件- 某个条件下请求接口- 某个条件下轮训接口停止轮训- 等等...> 联动配置项一般都是 ### 组件配置联动控制组件的显隐,表单项的禁用状态等,看下面这个例子:上例中点击按钮会刷新`target1`和`target2`组件。事实上,**组件间联动也可以实现上述任意的 (显隐联动、接口联动等其他联动)。**","path":"./docs/concepts/linkage"},{"title":"配置与组件","body":"## 最简单的 amis 配置一个最简单的 amis 配置看起来是这样的:我们通过数组的形式,在内容区配置`tpl`和`form`组件。没错,`body` 属性支持数组结构,这也就意味着你可以 **通过组件树的形式** 渲染出足够复杂的页面。具有`body`这类属性的组件一般称为**容器型组件**,就如名字所形容的,这类组件可以作为容器,在他们的子节点配置若干其他类型的组件,amis 中还有很多类似的组件,例如`form`、`service`等,后续我们会逐一进行介绍。> **注意:**>> `page`是一个特殊的容器组件,它是 amis 页面配置中 **必须也是唯一的顶级节点**","path":"./docs/concepts/schema"},{"title":"样式","body":"amis 中有大量的功能类 class 可以使用,即可以用在 schema 中,也可以用在自定义组件开发中,掌握这些 class, 几乎可以不用写样式。## 基本使用例如,下面这个例子,我们内容区渲染了两个按钮,但是可以看到,两个按钮紧贴在一起,并不是很美观,于是我们想添加一定的间隔","path":"./docs/concepts/style"},{"title":"模板","body":"为了可以更加灵活渲染文本、数据结构,amis 借鉴其他模板引擎,实现了一套模板渲染功能。## 模板字符串### 普通文本配置一段普通文本并输出","path":"./docs/concepts/template"},{"title":"介绍","body":"## 什么是 amisamis 是一个低代码前端框架,它使用 json 配置来生成页面,可以节省页面开发工作量,极大提升开发前端页面的效率。## 为什么要做 amis?🤔在经历了十几年的发展后,前端开发变得越来越复杂,门槛也越来越高,要使用当下流行的 ui 组件库,你必须懂 npm、webpack、react/vue,必须熟悉 es 6 语法,最好还了解状态管理(比如 redux),如果没接触过函数式编程,一开始入门就很困难,而它还有巨大的 ,相关的库有 2347 个。然而前端技术的发展不会停滞,等学完这些后可能会发现大家都用 hooks 了、某个打包工具取代 webpack 了。。。而有时候你只是为了做个普通的增删改查界面,用于系统管理,类似下面这种:这个界面虽然用 bootstrap 也能快速搭起来,但要想体验好就需要加很多细节功能,比如:- 数据动态加载- 编辑单行数据- 批量删除和修改- 查询某列- 按某列排序- 隐藏某列- 开启整页内容拖拽排序- 表格有分页(页数还会同步到地址栏,刷新页面试试)- 如果往下拖动还有首行冻结来方便查看表头等 全部实现这些需要大量的代码。然而上面也看到了,在 amis 里只需要 150 行 json 配置(嘿,其中 40 多行只有一个括号),你不需要了解 react/vue、webpack,甚至不需要了解 javascript,即便没学过 amis 也能猜到大部分配置的作用,只需要简单配置就能完成所有页面开发这正是建立 amis 的初衷,我们认为:**对于大部分常用页面,应该使用最简单的方法来实现**,而不是越来越复杂。## 用 json 写页面有什么好处 ❓为了实现用最简单方式来生成大部分页面,amis 的解决方案是基于 json 来配置,它的独特好处是:- **不需要懂前端**:在百度内部,大部分 amis 用户之前从来没写过前端页面,也不会 `javascript`,就能做出专业且复杂的后台界面,这是所有其他前端 ui 库都无法做到的;- **不受前端技术更新的影响**:百度内部最老的 amis 页面是 4 年多前创建的,至今还在使用,而当年的 `angular/vue/react` 版本现在都废弃了,当年流行的 `gulp` 也被 `webpack` 取代了,如果这些页面不是用 amis,现在的维护成本会很高,同时还能享受 amis 升级带来的界面改进;- 可以 **完全** 使用 来制作页面:一般前端可视化编辑器只能用来做静态原型,而 amis 可视化编辑器做出的页面是可以直接上线的。> json 是一种轻量级的数据交换格式,简洁和清晰的层次结构使得它成为理想的数据交换语言。它易于人阅读和编写,同时也易于机器解析和生成,能够有效地提升网络传输效率。>> 更多关于 json 的知识,可以阅读## amis 的其它亮点 ✨- **提供完整的界面解决方案**:其它 ui 框架必须使用 javascript 来组装业务逻辑,而 amis 只需 json 配置就能完成完整功能开发,包括数据获取、表单提交及验证等功能;- **内置 100+ 种 ui 组件**:包括其它 ui 框架都会不提供的富文本编辑器、代码编辑器等,能满足各种页面组件展现的需求,而且对于特殊的展现形式还可以通过 来扩充;- **容器支持无限级嵌套**:可以通过组合来满足各种布局需求;- **经历了长时间的实战考验**:amis 在百度内部得到了广泛使用,在 4 年多的时间里创建了 **3w** 多页面,从内容审核到机器管理,从数据分析到模型训练,amis 满足了各种各样的页面需求。## amis 不适合做什么?😶使用 json 有优点但也有明显缺点,在以下场合并不适合 amis:- 大量定制 ui,尤其是面向普通客户(toc)的产品页面 - json 配置使得 amis 更适合做有大量常见 ui 组件的页面,但对于面向普通客户的页面,往往追求个性化的视觉效果,这种情况下用 amis 就不合适,实际上绝大部分前端 ui 组件库也都不适合,只能定制开发。- 有极为复杂的交互,或者对交互有很特殊的要求 - 有些复杂的前端功能,比如可视化编辑器,其中有大量定制的拖拽操作,这种需要依赖原生 dom 实现的功能无法使用 amis。 - 但对于某些交互固定的领域,比如图连线,amis 后续会有专门的组件来实现。## 阅读建议 👆- 如果你是第一次接触 amis 的新同学,那么请 **务必认真阅读完概念部分**,它会让你对 amis 有个整体的认识- 如果你已经掌握 amis 基本概念,且有一定的开发经验,需要参考 amis 组件相关文档的同学,那么请移步 ## 让我们马上开始吧!点击页面底部的下一篇,继续后续部分的阅读。","path":"./docs/index"},{"title":"自定义","body":"如果默认的组件不能满足需求,可以通过自定义组件来进行扩展,在 amis 中有两种方法:1. 临时扩展,适合无需复用的组件。2. 注册自定义类型,适合需要在很多地方复用的组件。> 注意,自定义组件只支持 npm 方式,不支持 sdk## 临时扩展amis 的 json 配置最终会转成 react 组件来执行,所以如果只是想在某个配置中加入定制功能,可以直接在这个 json 配置里写 react 代码,比如下面这个例子:把自己注册进去了,其他组件就能引用到了。同时,如果你想找别的组件,也同样是通过 scoped 这个 context,如: `scoped.getcomponentbyname(\"xxxname\")` 这样就能拿到目标组件的实例了(前提是目标组件已经配置了 name 为 `xxxname`)。#### 其他功能方法自定义的渲染器 props 会下发一个非常有用的 env 对象。这个 env 有以下功能方法。- `env.fetcher` 可以用来做 ajax 请求如: `this.props.env.fetcher('xxxapi', this.props.data).then((result) => console.log(result))`- `env.confirm` 确认框,返回一个 promise 等待用户确认如: `this.props.env.confirm('你确定要这么做?').then((confirmed) => console.log(confirmed))`- `env.alert` 用 modal 实现的弹框,个人觉得更美观。- `env.notify` toast 某个消息 如: `this.props.env.notify(\"error\", \"出错了\")`- `env.jumpto` 页面跳转。","path":"./docs/start/custom"},{"title":"快速开始","body":"amis 有两种使用方法:- - npm 适合用在 react 项目中,可以完整使用 amis 的所有功能,方便扩展。sdk 适合对前端或 react 不了解的开发者,它不依赖 npm 及 webpack,直接引入代码就能使用,但需要注意这种方式难以支持 ,只能使用 amis 内置的组件。## npm### 安装可以通过 `amisscoped.getcomponentbyname('page1.form1').getvalues()` 来获取到所有表单的值,需要注意 page 和 form 都需要有 name 属性。","path":"./docs/start/getting-started"},{"title":"API","body":"api 类型用于配置请求接口的格式,涉及请求方式、请求地址、请求数据体等等相关配置## 简单配置如果你只需要配置简单的 ajax 接口,可以使用简单字符串格式,如下:### replacedata返回的数据是否替换掉当前的数据,默认为 `false`(即追加),设置为`true`就是完全替换当前数据。### 属性表| 字段名 | 说明 | 类型 | 备注 || -------------- | ------------ | ---------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- || method | 请求方式 | 字符串 | 支持:get、post、put、delete || url | 请求地址 | | - || data | 请求数据 | 对象或字符串 | 支持数据映射 || datatype | 数据体格式 | 字符串 | 默认为 `json` 可以配置成 `form` 或者 `form-data`。当 `data` 中包含文件时,自动会采用 `form-data(multipart/form-data)` 格式。当配置为 `form` 时为 `application/x-www-form-urlencoded` 格式。 || qsoptions | -- | 对象或字符串 | 当 datatype 为 form 或者 form-data 的时候有用。具体参数请参考这里,默认设置为: `{ arrayformat: 'indices', encodevaluesonly: true }` || headers | 请求头 | 对象 | - || sendon | 请求条件 | | - || cache | 接口缓存时间 | 整型数字 | - || requestadaptor | 发送适配器 | 字符串 | ,支持字符串串格式,或者直接就是函数如: || adaptor | 接收适配器 | 字符串 | 如果接口返回不符合要求,可以通过配置一个适配器来处理成 amis 需要的。同样支持 function 或者 字符串函数体格式 || replacedata | 替换当前数据 | 布尔 | 返回的数据是否替换掉当前的数据,默认为 `false`,即:`追加`,设置成 `true` 就是完全替换。 |","path":"./docs/types/api"},{"title":"Definitions","body":"`definitions`建立当前页面公共的配置项,在其他组件中可以通过`$ref`来引用当前配置项中的内容。注意 definitions 只能在顶级节点中定义,定义在其他位置,将引用不到。","path":"./docs/types/definitions"},{"title":"SchemaNode","body":"schemanode 是指每一个 amis 配置节点的类型,支持`模板`、`schema(配置)`以及`schemaarray(配置数组)`三种类型## 模板非常容易看出来,我们给`body`属性,配置了数组结构的`schema`,从而实现在`body`下,渲染两个`tpl`,来输入两段文字的效果","path":"./docs/types/schemanode"}]} \ No newline at end of file diff --git a/gh-pages/docs/components/action.html b/gh-pages/docs/components/action.html index 524287db9..e1cf4bf96 100644 --- a/gh-pages/docs/components/action.html +++ b/gh-pages/docs/components/action.html @@ -12,8 +12,8 @@ - - + +
- - + + \n

样式

尺寸

配置size,显示不同尺寸

\n
\n

主题

可以配置level或者primary,显示不同样式。

\n
\n

图标

可以配置icon配置项,实现按钮显示图标

\n
\n

如果label配置为空字符串,可以只显示icon

\n
\n

操作前确认

可以通过配置confirmText,实现在任意操作前,弹出提示框确认是否进行该操作。

\n
\n

ajax 请求

通过配置"actionType":"ajax"api,可以实现 ajax 请求。

\n
\n

请求成功后,跳转至某个页面

配置相对路径,实现单页跳转
\n
配置完整路径,直接跳转指定路径
\n

请求成功后,显示反馈弹框

\n

更多内容查看Dialog 文档

\n

自定义 toast 文字

可以通过配置messages,自定义接口返回toast信息

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
apiApi-请求地址,参考 api 格式说明。
redirect模板字符串-指定当前请求结束后跳转的路径,可用 ${xxx} 取值。
feedbackDialogObject-如果 ajax 类型的,当 ajax 返回正常后,还能接着弹出一个 dialog 做其他交互。返回的数据可用于这个 dialog 中。格式可参考Dialog
messagesobject-success:ajax 操作成功后提示,可以不指定,不指定时以 api 返回为准。failed:ajax 操作失败提示。
\n

跳转链接

单页跳转

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringlink单页跳转
linkstringlink用来指定跳转地址,跟 url 不同的是,这是单页跳转方式,不会渲染浏览器,请指定 amis 平台内的页面。可用 ${xxx} 取值。
\n

直接跳转

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringurl页面跳转
urlstring-按钮点击后,会打开指定页面。可用 ${xxx} 取值。
blankbooleanfalse如果为 true 将在新 tab 页面打开。
\n

注意:由于 amis 平台内 http 地址会被替换成 proxy 地址,所以在 amis 平台内使用请加上 raw: 作为前缀。 比如:raw:http://www.baidu.com

\n

弹框

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringdialog点击后显示一个弹出框
dialogstringDialogObject-指定弹框内容,格式可参考Dialog
nextConditionboolean-可以用来设置下一条数据的条件,默认为 true
\n

抽屉

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringdrawer点击后显示一个侧边栏
drawerstringDrawerObject-指定弹框内容,格式可参考Drawer
\n

复制文本

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringcopy复制一段内容到粘贴板
content模板-指定复制的内容。可用 ${xxx} 取值。
\n

刷新其他组件

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringreload刷新目标组件
targetstring-需要刷新的目标组件名字(组件的name值,自己配置的),多个请用 , 号隔开。
\n

组件特有的行为类型

表单中表格添加一行

该 actionType 为FormItem-Table专用行为

\n

重置表单

在 form 中,配置"type": "reset"的按钮,可以实现重置表单数据的功能

\n
\n

通用属性表

所有actionType都支持的通用配置项

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestringaction指定为 Page 渲染器。
actionTypestring-【必填】这是 action 最核心的配置,来指定该 action 的作用类型,支持:ajaxlinkurldrawerdialogconfirmcancelprevnextcopyclose
labelstring-按钮文本。可用 ${xxx} 取值。
levelstringdefault按钮样式,支持:linkprimarysecondaryinfosuccesswarningdangerlightdarkdefault
sizestring-按钮大小,支持:xssmmdlg
iconstring-设置图标,例如fa fa-plus
iconClassNamestring-给图标上添加类名。
activeboolean-按钮是否高亮。
activeLevelstring-按钮高亮时的样式,配置支持同level
activeClassNamestringis-active给按钮高亮添加类名。
blockboolean-display:"block"来显示按钮。
confirmText模板-当设置后,操作在开始前会询问用户。可用 ${xxx} 取值。
reloadstring-指定此次操作完后,需要刷新的目标组件名字(组件的name值,自己配置的),多个请用 , 号隔开。
tooltipstring-鼠标停留时弹出该段文字,也可以配置对象类型:字段为titlecontent。可用 ${xxx} 取值。
disabledTipstring-被禁用后鼠标停留时弹出该段文字,也可以配置对象类型:字段为titlecontent。可用 ${xxx} 取值。
tooltipPlacementstringtop如果配置了tooltip或者disabledTip,指定提示信息位置,可配置topbottomleftright
closeboolean-action配置在dialogdraweractions中时,配置为true指定此次操作完后关闭当前dialogdrawer
requiredArray<string>-配置字符串数组,指定在form中进行操作之前,需要指定的字段名的表单项通过验证
\n", + "html": "

Action 行为按钮,是触发页面行为的主要方法之一

\n

基本用法

我们这里简单实现一个点击按钮弹框的交互。

\n
\n

样式

尺寸

配置size,显示不同尺寸

\n
\n

主题

可以配置level或者primary,显示不同样式。

\n
\n

图标

可以配置icon配置项,实现按钮显示图标

\n
\n

如果label配置为空字符串,可以只显示icon

\n
\n

操作前确认

可以通过配置confirmText,实现在任意操作前,弹出提示框确认是否进行该操作。

\n
\n

ajax 请求

通过配置"actionType":"ajax"api,可以实现 ajax 请求。

\n
\n

请求成功后,跳转至某个页面

配置相对路径,实现单页跳转
\n
配置完整路径,直接跳转指定路径
\n

请求成功后,显示反馈弹框

\n

更多内容查看Dialog 文档

\n

自定义 toast 文字

可以通过配置messages,自定义接口返回toast信息

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
apiApi-请求地址,参考 api 格式说明。
redirect模板字符串-指定当前请求结束后跳转的路径,可用 ${xxx} 取值。
feedbackDialogObject-如果 ajax 类型的,当 ajax 返回正常后,还能接着弹出一个 dialog 做其他交互。返回的数据可用于这个 dialog 中。格式可参考Dialog
messagesobject-success:ajax 操作成功后提示,可以不指定,不指定时以 api 返回为准。failed:ajax 操作失败提示。
\n

跳转链接

单页跳转

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringlink单页跳转
linkstringlink用来指定跳转地址,跟 url 不同的是,这是单页跳转方式,不会渲染浏览器,请指定 amis 平台内的页面。可用 ${xxx} 取值。
\n

直接跳转

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringurl页面跳转
urlstring-按钮点击后,会打开指定页面。可用 ${xxx} 取值。
blankbooleanfalse如果为 true 将在新 tab 页面打开。
\n

注意:由于 amis 平台内 http 地址会被替换成 proxy 地址,所以在 amis 平台内使用请加上 raw: 作为前缀。 比如:raw:http://www.baidu.com

\n

弹框

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringdialog点击后显示一个弹出框
dialogstringDialogObject-指定弹框内容,格式可参考Dialog
nextConditionboolean-可以用来设置下一条数据的条件,默认为 true
\n

抽屉

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringdrawer点击后显示一个侧边栏
drawerstringDrawerObject-指定弹框内容,格式可参考Drawer
\n

复制文本

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringcopy复制一段内容到粘贴板
content模板-指定复制的内容。可用 ${xxx} 取值。
\n

刷新其他组件

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
actionTypestringreload刷新目标组件
targetstring-需要刷新的目标组件名字(组件的name值,自己配置的),多个请用 , 号隔开。
\n

组件特有的行为类型

表单中表格添加一行

该 actionType 为FormItem-Table专用行为

\n

重置表单

在 form 中,配置"type": "reset"的按钮,可以实现重置表单数据的功能

\n
\n

通用属性表

所有actionType都支持的通用配置项

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestringaction指定为 Page 渲染器。
actionTypestring-【必填】这是 action 最核心的配置,来指定该 action 的作用类型,支持:ajaxlinkurldrawerdialogconfirmcancelprevnextcopyclose
labelstring-按钮文本。可用 ${xxx} 取值。
levelstringdefault按钮样式,支持:linkprimarysecondaryinfosuccesswarningdangerlightdarkdefault
sizestring-按钮大小,支持:xssmmdlg
iconstring-设置图标,例如fa fa-plus
iconClassNamestring-给图标上添加类名。
activeboolean-按钮是否高亮。
activeLevelstring-按钮高亮时的样式,配置支持同level
activeClassNamestringis-active给按钮高亮添加类名。
blockboolean-display:"block"来显示按钮。
confirmText模板-当设置后,操作在开始前会询问用户。可用 ${xxx} 取值。
reloadstring-指定此次操作完后,需要刷新的目标组件名字(组件的name值,自己配置的),多个请用 , 号隔开。
tooltipstring-鼠标停留时弹出该段文字,也可以配置对象类型:字段为titlecontent。可用 ${xxx} 取值。
disabledTipstring-被禁用后鼠标停留时弹出该段文字,也可以配置对象类型:字段为titlecontent。可用 ${xxx} 取值。
tooltipPlacementstringtop如果配置了tooltip或者disabledTip,指定提示信息位置,可配置topbottomleftright
closeboolean-action配置在dialogdraweractions中时,配置为true指定此次操作完后关闭当前dialogdrawer
requiredArray<string>-配置字符串数组,指定在form中进行操作之前,需要指定的字段名的表单项通过验证
\n", "toc": { "label": "目录", "type": "toc", diff --git a/gh-pages/docs/components/alert.html b/gh-pages/docs/components/alert.html index 524287db9..e1cf4bf96 100644 --- a/gh-pages/docs/components/alert.html +++ b/gh-pages/docs/components/alert.html @@ -12,8 +12,8 @@ - - + +
- - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + \n

配置静态配置项

通过配置"config": {},可以配置echarts配置

\n
\n

配置图表点击行为

可以通过配置"clickAction": {},来指定图表节点的点击行为,支持 amis 的行为

\n
\n

点击下面坐标中的节点查看效果!

\n
\n
\n

远程拉取动态配置项

配置api,来远程拉取图标配置

\n
\n

通过组件间联动,更新图表

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"chart"指定为 chart 渲染器
classNamestring外层 Dom 的类名
bodySchemaNode内容容器
apiapi配置项接口地址
source数据映射通过数据映射获取数据链中变量值作为配置
initFetchboolean组件初始化时,是否请求接口
intervalnumber刷新时间(最低 3000)
configobjectstring设置 eschars 的配置项,当为string的时候可以设置 function 等配置项
styleobject设置根元素的 style
widthstring设置根元素的宽度
heightstring设置根元素的高度
replaceChartOptionbooleanfalse每次更新是完全覆盖配置项还是追加?
\n", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "基本用法", - "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", - "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", - "level": 2 - }, - { - "label": "配置静态配置项", - "fragment": "%E9%85%8D%E7%BD%AE%E9%9D%99%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", - "fullPath": "#%E9%85%8D%E7%BD%AE%E9%9D%99%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", - "level": 2 - }, - { - "label": "配置图表点击行为", - "fragment": "%E9%85%8D%E7%BD%AE%E5%9B%BE%E8%A1%A8%E7%82%B9%E5%87%BB%E8%A1%8C%E4%B8%BA", - "fullPath": "#%E9%85%8D%E7%BD%AE%E5%9B%BE%E8%A1%A8%E7%82%B9%E5%87%BB%E8%A1%8C%E4%B8%BA", - "level": 2 - }, - { - "label": "远程拉取动态配置项", - "fragment": "%E8%BF%9C%E7%A8%8B%E6%8B%89%E5%8F%96%E5%8A%A8%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", - "fullPath": "#%E8%BF%9C%E7%A8%8B%E6%8B%89%E5%8F%96%E5%8A%A8%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", - "level": 2 - }, - { - "label": "通过组件间联动,更新图表", - "fragment": "%E9%80%9A%E8%BF%87%E7%BB%84%E4%BB%B6%E9%97%B4%E8%81%94%E5%8A%A8-%E6%9B%B4%E6%96%B0%E5%9B%BE%E8%A1%A8", - "fullPath": "#%E9%80%9A%E8%BF%87%E7%BB%84%E4%BB%B6%E9%97%B4%E8%81%94%E5%8A%A8-%E6%9B%B4%E6%96%B0%E5%9B%BE%E8%A1%A8", - "level": 2 - }, - { - "label": "属性表", - "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", - "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/components/chart_e049b84.js b/gh-pages/docs/components/chart_e049b84.js new file mode 100644 index 000000000..2ae8df4f2 --- /dev/null +++ b/gh-pages/docs/components/chart_e049b84.js @@ -0,0 +1,57 @@ +amis.define('docs/components/chart.md', function(require, exports, module, define) { + + module.exports = { + "title": "Chart 图表", + "description": null, + "type": 0, + "group": "⚙ 组件", + "menuName": "Chart 图标", + "icon": null, + "order": 34, + "html": "

图表渲染器,采用 echarts 渲染,配置格式跟 echarts 相同,echarts 配置文档

\n

基本用法

\n

配置静态配置项

通过配置"config": {},可以配置echarts配置

\n
\n

配置图表点击行为

可以通过配置"clickAction": {},来指定图表节点的点击行为,支持 amis 的行为

\n
\n

点击下面坐标中的节点查看效果!

\n
\n
\n

远程拉取动态配置项

配置api,来远程拉取图标配置

\n
\n

通过组件间联动,更新图表

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"chart"指定为 chart 渲染器
classNamestring外层 Dom 的类名
bodySchemaNode内容容器
apiapi配置项接口地址
source数据映射通过数据映射获取数据链中变量值作为配置
initFetchboolean组件初始化时,是否请求接口
intervalnumber刷新时间(最低 3000)
configobjectstring设置 eschars 的配置项,当为string的时候可以设置 function 等配置项
styleobject设置根元素的 style
widthstring设置根元素的宽度
heightstring设置根元素的高度
replaceChartOptionbooleanfalse每次更新是完全覆盖配置项还是追加?
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "配置静态配置项", + "fragment": "%E9%85%8D%E7%BD%AE%E9%9D%99%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", + "fullPath": "#%E9%85%8D%E7%BD%AE%E9%9D%99%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", + "level": 2 + }, + { + "label": "配置图表点击行为", + "fragment": "%E9%85%8D%E7%BD%AE%E5%9B%BE%E8%A1%A8%E7%82%B9%E5%87%BB%E8%A1%8C%E4%B8%BA", + "fullPath": "#%E9%85%8D%E7%BD%AE%E5%9B%BE%E8%A1%A8%E7%82%B9%E5%87%BB%E8%A1%8C%E4%B8%BA", + "level": 2 + }, + { + "label": "远程拉取动态配置项", + "fragment": "%E8%BF%9C%E7%A8%8B%E6%8B%89%E5%8F%96%E5%8A%A8%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", + "fullPath": "#%E8%BF%9C%E7%A8%8B%E6%8B%89%E5%8F%96%E5%8A%A8%E6%80%81%E9%85%8D%E7%BD%AE%E9%A1%B9", + "level": 2 + }, + { + "label": "通过组件间联动,更新图表", + "fragment": "%E9%80%9A%E8%BF%87%E7%BB%84%E4%BB%B6%E9%97%B4%E8%81%94%E5%8A%A8-%E6%9B%B4%E6%96%B0%E5%9B%BE%E8%A1%A8", + "fullPath": "#%E9%80%9A%E8%BF%87%E7%BB%84%E4%BB%B6%E9%97%B4%E8%81%94%E5%8A%A8-%E6%9B%B4%E6%96%B0%E5%9B%BE%E8%A1%A8", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/collapse.html b/gh-pages/docs/components/collapse.html index 524287db9..e1cf4bf96 100644 --- a/gh-pages/docs/components/collapse.html +++ b/gh-pages/docs/components/collapse.html @@ -12,8 +12,8 @@ - - + +
- - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + \n

我们为表单数据域设置了table变量,配置table表单项可以展示该数据

\n

可新增行

可以配置addableeditable指定可以新增且编辑行数据

\n
\n

按钮触发新增行

按钮上配置"actionType": "add"target指定表格name,可以实现点击按钮添加一行的效果。

\n
\n

当表格上配置了addApi时,会请求该 api,并将返回数据添加到目标表格。

\n

编辑行配置

还可以在列上配置quickEdit实现编辑配置,更多配置参考 快速编辑

\n
\n

可拖拽

配置"draggable": true,实现可拖拽调整顺序

\n
\n

非确认模式

配置"needConfirm": false,不需要确认,那么就是一直就是处于编辑形态。

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"table"指定为 Table 渲染器
addablebooleanfalse是否可增加一行
editablebooleanfalse是否可编辑
removablebooleanfalse是否可删除
showAddBtnbooleantrue是否显示添加按钮
addApiAPI-新增时提交的 API
updateApiAPI-修改时提交的 API
deleteApiAPI-删除时提交的 API
addBtnLabelstring增加按钮名称
addBtnIconstring"fa fa-plus"增加按钮图标
updateBtnLabelstring""更新按钮名称
updateBtnIconstring"fa fa-pencil"更新按钮图标
deleteBtnLabelstring""删除按钮名称
deleteBtnIconstring"fa fa-minus"删除按钮图标
confirmBtnLabelstring""确认编辑按钮名称
confirmBtnIconstring"fa fa-check"确认编辑按钮图标
cancelBtnLabelstring""取消编辑按钮名称
cancelBtnIconstring"fa fa-times"取消编辑按钮图标
columnsarray[]列信息
columns[x].quickEditboolean 或者 object-配合 editable 为 true 一起使用
columns[x].quickEditOnUpdateboolean 或者 object-可以用来区分新建模式和更新模式的编辑配置
\n", + "toc": { + "label": "目录", + "type": "toc", + "children": [ + { + "label": "基本用法", + "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", + "level": 2 + }, + { + "label": "可新增行", + "fragment": "%E5%8F%AF%E6%96%B0%E5%A2%9E%E8%A1%8C", + "fullPath": "#%E5%8F%AF%E6%96%B0%E5%A2%9E%E8%A1%8C", + "level": 2, + "children": [ + { + "label": "按钮触发新增行", + "fragment": "%E6%8C%89%E9%92%AE%E8%A7%A6%E5%8F%91%E6%96%B0%E5%A2%9E%E8%A1%8C", + "fullPath": "#%E6%8C%89%E9%92%AE%E8%A7%A6%E5%8F%91%E6%96%B0%E5%A2%9E%E8%A1%8C", + "level": 3 + }, + { + "label": "编辑行配置", + "fragment": "%E7%BC%96%E8%BE%91%E8%A1%8C%E9%85%8D%E7%BD%AE", + "fullPath": "#%E7%BC%96%E8%BE%91%E8%A1%8C%E9%85%8D%E7%BD%AE", + "level": 3 + } + ] + }, + { + "label": "可拖拽", + "fragment": "%E5%8F%AF%E6%8B%96%E6%8B%BD", + "fullPath": "#%E5%8F%AF%E6%8B%96%E6%8B%BD", + "level": 2 + }, + { + "label": "非确认模式", + "fragment": "%E9%9D%9E%E7%A1%AE%E8%AE%A4%E6%A8%A1%E5%BC%8F", + "fullPath": "#%E9%9D%9E%E7%A1%AE%E8%AE%A4%E6%A8%A1%E5%BC%8F", + "level": 2 + }, + { + "label": "属性表", + "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", + "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", + "level": 2 + } + ], + "level": 0 + } + }; + +}); diff --git a/gh-pages/docs/components/form/table_aa301da.js b/gh-pages/docs/components/form/table_aa301da.js deleted file mode 100644 index e73621bd1..000000000 --- a/gh-pages/docs/components/form/table_aa301da.js +++ /dev/null @@ -1,65 +0,0 @@ -amis.define('docs/components/form/table.md', function(require, exports, module, define) { - - module.exports = { - "title": "Table 表格", - "description": null, - "type": 0, - "group": null, - "menuName": "Table 表格", - "icon": null, - "order": 54, - "html": "

基本用法

可以用来展示数组类型的数据。配置columns 数组,来定义列信息。

\n
\n

我们为表单数据域设置了table变量,配置table表单项可以展示该数据

\n

可新增行

可以配置addableeditable指定可以新增且编辑行数据

\n
\n

按钮触发新增行

按钮上配置"actionType": "add"target指定表格name,可以实现点击按钮添加一行的效果。

\n
\n

编辑行配置

还可以在列上配置quickEdit实现编辑配置,更多配置参考 快速编辑

\n
\n

可拖拽

配置"draggable": true,实现可拖拽调整顺序

\n
\n

非确认模式

配置"needConfirm": false,不需要确认,那么就是一直就是处于编辑形态。

\n
\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"table"指定为 Table 渲染器
addablebooleanfalse是否可增加一行
editablebooleanfalse是否可编辑
removablebooleanfalse是否可删除
showAddBtnbooleantrue是否显示添加按钮
addApiAPI-新增时提交的 API
updateApiAPI-修改时提交的 API
deleteApiAPI-删除时提交的 API
addBtnLabelstring增加按钮名称
addBtnIconstring"fa fa-plus"增加按钮图标
updateBtnLabelstring""更新按钮名称
updateBtnIconstring"fa fa-pencil"更新按钮图标
deleteBtnLabelstring""删除按钮名称
deleteBtnIconstring"fa fa-minus"删除按钮图标
confirmBtnLabelstring""确认编辑按钮名称
confirmBtnIconstring"fa fa-check"确认编辑按钮图标
cancelBtnLabelstring""取消编辑按钮名称
cancelBtnIconstring"fa fa-times"取消编辑按钮图标
columnsarray[]列信息
columns[x].quickEditboolean 或者 object-配合 editable 为 true 一起使用
columns[x].quickEditOnUpdateboolean 或者 object-可以用来区分新建模式和更新模式的编辑配置
\n", - "toc": { - "label": "目录", - "type": "toc", - "children": [ - { - "label": "基本用法", - "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", - "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", - "level": 2 - }, - { - "label": "可新增行", - "fragment": "%E5%8F%AF%E6%96%B0%E5%A2%9E%E8%A1%8C", - "fullPath": "#%E5%8F%AF%E6%96%B0%E5%A2%9E%E8%A1%8C", - "level": 2, - "children": [ - { - "label": "按钮触发新增行", - "fragment": "%E6%8C%89%E9%92%AE%E8%A7%A6%E5%8F%91%E6%96%B0%E5%A2%9E%E8%A1%8C", - "fullPath": "#%E6%8C%89%E9%92%AE%E8%A7%A6%E5%8F%91%E6%96%B0%E5%A2%9E%E8%A1%8C", - "level": 3 - }, - { - "label": "编辑行配置", - "fragment": "%E7%BC%96%E8%BE%91%E8%A1%8C%E9%85%8D%E7%BD%AE", - "fullPath": "#%E7%BC%96%E8%BE%91%E8%A1%8C%E9%85%8D%E7%BD%AE", - "level": 3 - } - ] - }, - { - "label": "可拖拽", - "fragment": "%E5%8F%AF%E6%8B%96%E6%8B%BD", - "fullPath": "#%E5%8F%AF%E6%8B%96%E6%8B%BD", - "level": 2 - }, - { - "label": "非确认模式", - "fragment": "%E9%9D%9E%E7%A1%AE%E8%AE%A4%E6%A8%A1%E5%BC%8F", - "fullPath": "#%E9%9D%9E%E7%A1%AE%E8%AE%A4%E6%A8%A1%E5%BC%8F", - "level": 2 - }, - { - "label": "属性表", - "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", - "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", - "level": 2 - } - ], - "level": 0 - } - }; - -}); diff --git a/gh-pages/docs/components/form/tabs-transfer.html b/gh-pages/docs/components/form/tabs-transfer.html index 524287db9..e1cf4bf96 100644 --- a/gh-pages/docs/components/form/tabs-transfer.html +++ b/gh-pages/docs/components/form/tabs-transfer.html @@ -12,8 +12,8 @@ - - + +
- - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + ",f=e.getBody().dir,p=f?' dir="'+a(f)+'"':"",g=""+t+'"+e.getContent()+v+"";return g},m=function(e){var t=d(e),n=e.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:t}});n.focus("close")},l=function(e){e.addCommand("mcePreview",function(){m(e)})},y=function(e){e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:function(){return e.execCommand("mcePreview")}}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:function(){return e.execCommand("mcePreview")}})};e()}()}); +;/*!node_modules/tinymce/plugins/preview/index.js*/ +amis.define("node_modules/tinymce/plugins/preview/index",function(e){e("node_modules/tinymce/plugins/preview/plugin")}); +;/*!node_modules/tinymce/plugins/anchor/plugin.js*/ +amis.define("node_modules/tinymce/plugins/anchor/plugin",function(){!function(){"use strict";function n(){t.add("anchor",function(n){s(n),u(n),m(n)})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(n,t){return"A"===t.tagName&&""===n.dom.getAttrib(t,"href")},o=function(n){return/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(n)},i=function(n){var t=n.selection.getNode();return e(n,t)?t.getAttribute("id")||t.getAttribute("name"):""},r=function(n,t){var o=n.selection.getNode();e(n,o)?(o.removeAttribute("name"),o.id=t,n.undoManager.add()):(n.focus(),n.selection.collapse(!0),n.insertContent(n.dom.createHTML("a",{id:t})))},a=function(n,t){return o(t)?(r(n,t),!0):(n.windowManager.alert("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!1)},c=function(n){var t=i(n);n.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:t},onSubmit:function(t){a(n,t.getData().id)&&t.close()}})},u=function(n){n.addCommand("mceAnchor",function(){c(n)})},d=function(n){return!n.attr("href")&&(n.attr("id")||n.attr("name"))&&!n.firstChild},l=function(n){return function(t){for(var e=0;et;t++){n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i.apply(this,arguments)},a=function(){},u=function(e){return function(){return e}},c=u(!1),f=u(!0),l="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",s=u(l),d=function(){return m},m=function(){var e=function(e){return e.isNone()},n=function(e){return e()},t=function(e){return e},r={fold:function(e){return e()},is:c,isSome:c,isNone:f,getOr:t,getOrThunk:n,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:u(null),getOrUndefined:u(void 0),or:t,orThunk:n,map:d,each:a,bind:d,exists:c,forall:f,filter:d,equals:e,equals_:e,toArray:function(){return[]},toString:u("none()")};return r}(),h=function(e){var n=u(e),t=function(){return o},r=function(n){return n(e)},o={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:f,isNone:c,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:t,orThunk:t,map:function(n){return h(n(e))},each:function(n){n(e)},bind:r,exists:r,forall:r,filter:function(n){return n(e)?o:m},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(c,function(n){return t(e,n)})}};return o},g=function(e){return null===e||void 0===e?m:h(e)},p={some:h,none:d,from:g},v=s,y=tinymce.util.Tools.resolve("tinymce.util.Tools"),x=function(e){var n=typeof e;return null===e?"null":"object"===n&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===n&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":n},w=function(e){return function(n){return x(n)===e}},b=function(e){return function(n){return typeof n===e}},O=w("string"),C=w("array"),N=b("boolean"),T=b("function"),E=b("number"),k=Array.prototype.slice,S=Array.prototype.push,A=function(e,n){for(var t=e.length,r=new Array(t),o=0;t>o;o++){var i=e[o];r[o]=n(i,o)}return r},D=function(e,n){for(var t=0,r=e.length;r>t;t++){var o=e[t];n(o,t)}},M=function(e,n){for(var t=e.length-1;t>=0;t--){var r=e[t];n(r,t)}},B=function(e,n){if(0===e.length)return[];for(var t=n(e[0]),r=[],o=[],i=0,a=e.length;a>i;i++){var u=e[i],c=n(u);c!==t&&(r.push(o),o=[]),t=c,o.push(u)}return 0!==o.length&&r.push(o),r},F=function(e,n,t){return D(e,function(e){t=n(t,e)}),t},I=function(e){for(var n=[],t=0,r=e.length;r>t;++t){if(!C(e[t]))throw new Error("Arr.flatten item "+t+" was not an array, input: "+e);S.apply(n,e[t])}return n},P=function(e,n){return I(A(e,n))},R=function(e,n){var t=k.call(e,0);return t.sort(n),t},W=Object.hasOwnProperty,j=function(e,n){return W.call(e,n)},_=("undefined"!=typeof e.window?e.window:Function("return this;")(),9),q=11,V=1,H=3,L=function(e){return e.dom().nodeType},U=function(e){return function(n){return L(n)===e}},$=U(H),z=function(n,t,r){if(!(O(r)||N(r)||E(r)))throw e.console.error("Invalid call to Attr.set. Key ",t,":: Value ",r,":: Element ",n),new Error("Attribute value was not simple");n.setAttribute(t,r+"")},G=function(e,n,t){z(e.dom(),n,t)},K=function(n,t){var r=t||e.document,o=r.createElement("div");if(o.innerHTML=n,!o.hasChildNodes()||o.childNodes.length>1)throw e.console.error("HTML does not have a single root node",n),new Error("HTML must have a single root node");return X(o.childNodes[0])},J=function(n,t){var r=t||e.document,o=r.createElement(n);return X(o)},Q=function(n,t){var r=t||e.document,o=r.createTextNode(n);return X(o)},X=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:u(e)}},Y=function(e,n,t){var r=e.dom();return p.from(r.elementFromPoint(n,t)).map(X)},Z={fromHtml:K,fromTag:J,fromText:Q,fromDom:X,fromPoint:Y},en=function(e,n,t){return 0!==(e.compareDocumentPosition(n)&t)},nn=function(n,t){return en(n,t,e.Node.DOCUMENT_POSITION_PRECEDING)},tn=function(e){return e.nodeType!==V&&e.nodeType!==_&&e.nodeType!==q||0===e.childElementCount},rn=function(n,t){var r=void 0===t?e.document:t.dom();return tn(r)?[]:A(r.querySelectorAll(n),Z.fromDom)},on=function(e){return p.from(e.dom().parentNode).map(Z.fromDom)},an=function(e){return A(e.dom().childNodes,Z.fromDom)},un=function(e,n){return{element:u(e),offset:u(n)}},cn=function(e,n){var t=an(e);return t.length>0&&n0&&(u.push(c),c=On()),!1};return Nn(e,a.next,t,{boundary:f,cef:function(e){return f(),o&&u.push.apply(u,o.cef(e)),!1},text:function(e){c.elements.push(Z.fromDom(e)),o&&o.text(e,c)}},r,i),r&&Tn(e,c,r,n,!0),f(),u},kn=function(e,n){var t=Cn(n.startContainer,n.startOffset),r=t.element().dom(),o=Cn(n.endContainer,n.endOffset),i=o.element().dom();return En(e,n.commonAncestorContainer,r,i,{text:function(e,n){e===i?n.fOffset+=e.length-o.offset():e===r&&(n.sOffset+=t.offset())},cef:function(n){var t=P(hn(Z.fromDom(n),"*[contenteditable=true]"),function(n){var t=n.dom();return En(e,t,t)});return R(t,function(e,n){return nn(e.elements[0].dom(),n.elements[0].dom())?1:-1})}},!1)},Sn=function(e,n){return n.collapsed?[]:kn(e,n)},An=function(e,n){var t=e.createRng();return t.selectNode(n),Sn(e,t)},Dn=function(e,n){return P(n,function(n){return An(e,n)})},Mn=function(e,n,t,r){void 0===t&&(t=0),void 0===r&&(r=e.length);var o=n.regex;o.lastIndex=t;for(var i,a=[];i=o.exec(e);){var u=i[n.matchIndex],c=i.index+i[0].indexOf(u),f=c+u.length;if(f>r)break;a.push({start:c,finish:f}),o.lastIndex=f}return a},Bn=function(e,n){var t=F(e,function(e,t){var r=mn(t),o=e.last,i=o+r.length,a=P(n,function(e,n){return e.starto?[{element:t,start:Math.max(o,e.start)-o,finish:Math.min(i,e.finish)-o,matchId:n}]:[]});return{results:e.results.concat(a),last:i}},{results:[],last:0}).results;return B(t,function(e){return e.matchId})},Fn=function(e,n){return P(n,function(n){var t=n.elements,r=A(t,mn).join(""),o=Mn(r,e,n.sOffset,r.length-n.fOffset);return Bn(t,o)})},In=function(e,n){M(e,function(e,t){M(e,function(e){var r=Z.fromDom(n.cloneNode(!1));G(r,"data-mce-index",t);var o=e.element.dom();if(o.length===e.finish&&0===e.start)sn(e.element,r);else{o.length!==e.finish&&o.splitText(e.finish);var i=o.splitText(e.start);sn(Z.fromDom(i),r)}})})},Pn=function(e,n,t,r){var o=An(e,t),i=Fn(n,o);return In(i,r),i.length},Rn=function(e,n,t,r){var o=t.getBookmark(),i=e.select("td[data-mce-selected],th[data-mce-selected]"),a=i.length>0?Dn(e,i):Sn(e,t.getRng()),u=Fn(n,a);return In(u,r),t.moveToBookmark(o),u.length},Wn=function(e){var n=e.getAttribute("data-mce-index");return"number"==typeof n?""+n:n},jn=function(e,n,t,r){var o=e.dom.create("span",{"data-mce-bogus":1});o.className="mce-match-marker";var i=e.getBody();return Jn(e,n,!1),r?Rn(e.dom,t,e.selection,o):Pn(e.dom,t,i,o)},_n=function(e){var n=e.parentNode;e.firstChild&&n.insertBefore(e.firstChild,e),e.parentNode.removeChild(e)},qn=function(e,n){var t=[],r=y.toArray(e.getBody().getElementsByTagName("span"));if(r.length)for(var o=0;o0},Kn=function(e,n,t,r,o){var a,u=n.get(),c=u.index,f=c;r=r!==!1;for(var l=e.getBody(),s=y.grep(y.toArray(l.getElementsByTagName("span")),Gn),d=0;dc&&s[d].setAttribute("data-mce-index",String(a-1))}return n.set(i(i({},u),{count:o?0:u.count-1,index:f})),r?$n(e,n):zn(e,n),!o&&n.get().count>0},Jn=function(e,n,t){var r,o,a,u=n.get(),c=y.toArray(e.getBody().getElementsByTagName("span"));for(r=0;r1},Xn=function(e,n){return n.get().count>1},Yn=function(e,n){var t=function(t){return Jn(e,n,t)},r=function(t,r,o,i){return void 0===i&&(i=!1),Un(e,n,t,r,o,i)},o=function(){return $n(e,n)},i=function(){return zn(e,n)},a=function(t,r,o){return Kn(e,n,t,r,o)};return{done:t,find:r,next:o,prev:i,replace:a}},Zn=function(){var e=r(p.none()),n=function(){e.set(p.none())},t=function(n){e.set(p.some(n))},o=function(n){e.get().each(n)},i=function(){return e.get().isSome()};return{clear:n,set:t,isSet:i,on:o}},et=tinymce.util.Tools.resolve("tinymce.Env"),nt=function(e,n){function t(t){var r=Qn(e,n)?t.enable:t.disable;r("next");var o=Xn(e,n)?t.enable:t.disable;o("prev")}function r(n){e.windowManager.alert("Could not find the specified string.",function(){n.focus("findtext")})}var o=Zn();e.undoManager.add();var a=y.trim(e.selection.getContent({format:"text"})),u=function(e){var t=e.getData(),r=n.get();n.set(i(i({},r),{matchCase:t.matchcase,wholeWord:t.wholewords,inSelection:t.inselection}))},c=function(e,n){var t=["replace","replaceall","prev","next"],r=n?e.disable:e.enable;D(t,r)},f=function(e,n){et.browser.isSafari()&&et.deviceType.isTouch()&&("find"===n||"replace"===n||"replaceall"===n)&&e.focus(n)},l=function(r){Jn(e,n,!1),c(r,!0),t(r)},s=function(o){var i=o.getData(),a=n.get();if(!i.findtext.length)return void l(o);if(a.text===i.findtext&&a.matchCase===i.matchcase&&a.wholeWord===i.wholewords)$n(e,n);else{var u=Un(e,n,i.findtext,i.matchcase,i.wholewords,i.inselection);0>=u&&r(o),c(o,0===u)}t(o)},d=n.get(),m={findtext:a,replacetext:"",wholewords:d.wholeWord,matchcase:d.matchCase,inselection:d.inSelection},h={title:"Find and Replace",size:"normal",body:{type:"panel",items:[{type:"bar",items:[{type:"input",name:"findtext",placeholder:"Find",maximized:!0,inputMode:"search"},{type:"button",name:"prev",text:"Previous",icon:"action-prev",disabled:!0,borderless:!0},{type:"button",name:"next",text:"Next",icon:"action-next",disabled:!0,borderless:!0}]},{type:"input",name:"replacetext",placeholder:"Replace with",inputMode:"search"}]},buttons:[{type:"menu",name:"options",icon:"preferences",tooltip:"Preferences",align:"start",items:[{type:"togglemenuitem",name:"matchcase",text:"Match case"},{type:"togglemenuitem",name:"wholewords",text:"Find whole words only"},{type:"togglemenuitem",name:"inselection",text:"Find in selection"}]},{type:"custom",name:"find",text:"Find",primary:!0},{type:"custom",name:"replace",text:"Replace",disabled:!0},{type:"custom",name:"replaceall",text:"Replace All",disabled:!0}],initialData:m,onChange:function(e,t){"findtext"===t.name&&n.get().count>0&&l(e)},onAction:function(r,o){var i=r.getData();switch(o.name){case"find":s(r);break;case"replace":Kn(e,n,i.replacetext)?t(r):l(r);break;case"replaceall":Kn(e,n,i.replacetext,!0,!0),l(r);break;case"prev":zn(e,n),t(r);break;case"next":$n(e,n),t(r);break;case"matchcase":case"wholewords":case"inselection":u(r),l(r)}f(r,o.name)},onSubmit:function(e){s(e),f(e,"find")},onClose:function(){e.focus(),Jn(e,n),e.undoManager.add()}};o.set(e.windowManager.open(h,{inline:"toolbar"}))},tt=function(e,n){e.addCommand("SearchReplace",function(){nt(e,n)})},rt=function(e,n){return function(){nt(e,n)}},ot=function(e,n){e.ui.registry.addMenuItem("searchreplace",{text:"Find and replace...",shortcut:"Meta+F",onAction:rt(e,n),icon:"search"}),e.ui.registry.addButton("searchreplace",{tooltip:"Find and replace",onAction:rt(e,n),icon:"search"}),e.shortcuts.add("Meta+F","",rt(e,n))};t()}(window)}); +;/*!node_modules/tinymce/plugins/searchreplace/index.js*/ +amis.define("node_modules/tinymce/plugins/searchreplace/index",function(e){e("node_modules/tinymce/plugins/searchreplace/plugin")}); +;/*!node_modules/tinymce/plugins/visualblocks/plugin.js*/ +amis.define("node_modules/tinymce/plugins/visualblocks/plugin",function(){!function(){"use strict";function n(){o.add("visualblocks",function(n,o){var e=t(!1);u(n,o,e),a(n,e),s(n,o,e)})}var t=function(n){var t=n,o=function(){return t},e=function(n){t=n};return{get:o,set:e}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(n,t){n.fire("VisualBlocks",{state:t})},i=function(n,t,o){var i=n.dom;i.toggleClass(n.getBody(),"mce-visualblocks"),o.set(!o.get()),e(n,o.get())},u=function(n,t,o){n.addCommand("mceVisualBlocks",function(){i(n,t,o)})},c=function(n){return n.getParam("visualblocks_default_state",!1,"boolean")},s=function(n,t,o){n.on("PreviewFormats AfterPreviewFormats",function(t){o.get()&&n.dom.toggleClass(n.getBody(),"mce-visualblocks","afterpreviewformats"===t.type)}),n.on("init",function(){c(n)&&i(n,t,o)})},l=function(n,t){return function(o){o.setActive(t.get());var e=function(n){return o.setActive(n.state)};return n.on("VisualBlocks",e),function(){return n.off("VisualBlocks",e)}}},a=function(n,t){n.ui.registry.addToggleButton("visualblocks",{icon:"visualblocks",tooltip:"Show blocks",onAction:function(){return n.execCommand("mceVisualBlocks")},onSetup:l(n,t)}),n.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",icon:"visualblocks",onAction:function(){return n.execCommand("mceVisualBlocks")},onSetup:l(n,t)})};n()}()}); +;/*!node_modules/tinymce/plugins/visualblocks/index.js*/ +amis.define("node_modules/tinymce/plugins/visualblocks/index",function(i){i("node_modules/tinymce/plugins/visualblocks/plugin")}); +;/*!node_modules/tinymce/plugins/code/plugin.js*/ +amis.define("node_modules/tinymce/plugins/code/plugin",function(){!function(){"use strict";function e(){n.add("code",function(e){return i(e),u(e),{}})}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,n){e.focus(),e.undoManager.transact(function(){e.setContent(n)}),e.selection.setCursorLocation(),e.nodeChanged()},o=function(e){return e.getContent({source_view:!0})},c=function(e){var n=o(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:n},onSubmit:function(n){t(e,n.getData().code),n.close()}})},i=function(e){e.addCommand("mceCodeEditor",function(){c(e)})},u=function(e){e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:function(){return c(e)}}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:function(){return c(e)}})};e()}()}); +;/*!node_modules/tinymce/plugins/code/index.js*/ +amis.define("node_modules/tinymce/plugins/code/index",function(e){e("node_modules/tinymce/plugins/code/plugin")}); +;/*!node_modules/tinymce/plugins/fullscreen/plugin.js*/ +amis.define("node_modules/tinymce/plugins/fullscreen/plugin",function(){!function(n){"use strict";function t(){r.add("fullscreen",function(n){var t=e(null);return n.inline?o(t):(ie(n,t),fe(n,t),n.addShortcut("Meta+Shift+F","","mceFullScreen"),o(t))})}var e=function(n){var t=n,e=function(){return t},r=function(n){t=n};return{get:e,set:r}},r=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(n){return{isFullscreen:function(){return null!==n.get()}}},u=function(){},i=function(n,t){return function(){for(var e=[],r=0;ro;o++){var u=n[o];r[o]=t(u,o)}return r},k=function(n,t){for(var e=0,r=n.length;r>e;e++){var o=n[e];t(o,e)}},F=function(n,t){for(var e=[],r=0,o=n.length;o>r;r++){var u=n[r];t(u,r)&&e.push(u)}return e},P=function(n){for(var t=[],e=0,r=n.length;r>e;++e){if(!x(n[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+n);C.apply(t,n[e])}return t},L=function(n,t){return P(M(n,t))},H=function(n){return 0===n.length?v.none():v.some(n[0])},q=Object.keys,V=function(n,t){for(var e=q(n),r=0,o=e.length;o>r;r++){var u=e[r],i=n[u];t(i,u)}},W=function(n){return void 0!==n.style&&N(n.style.getPropertyValue)},j=function(t,e){var r=e||n.document,o=r.createElement("div");if(o.innerHTML=t,!o.hasChildNodes()||o.childNodes.length>1)throw n.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return I(o.childNodes[0])},z=function(t,e){var r=e||n.document,o=r.createElement(t);return I(o)},B=function(t,e){var r=e||n.document,o=r.createTextNode(t);return I(o)},I=function(n){if(null===n||void 0===n)throw new Error("Node cannot be null or undefined");return{dom:f(n)}},R=function(n,t,e){var r=n.dom();return v.from(r.elementFromPoint(t,e)).map(I)},U={fromHtml:j,fromTag:z,fromText:B,fromDom:I,fromPoint:R},_=("undefined"!=typeof n.window?n.window:Function("return this;")(),9),K=11,X=1,Y=3,G=function(n){return n.dom().nodeType},J=function(n){return function(t){return G(t)===n}},Q=J(X),Z=J(Y),$=J(_),nt=J(K),tt=function(n,t){var e=n.dom();if(e.nodeType!==X)return!1;var r=e;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},et=function(n){return n.nodeType!==X&&n.nodeType!==_&&n.nodeType!==K||0===n.childElementCount},rt=function(t,e){var r=void 0===e?n.document:e.dom();return et(r)?[]:M(r.querySelectorAll(t),U.fromDom)},ot=function(n,t){return n.dom()===t.dom()},ut=function(n){return U.fromDom(n.dom().ownerDocument)},it=function(n){return $(n)?n:ut(n)},ct=function(n){return v.from(n.dom().parentNode).map(U.fromDom)},ft=function(n,t){for(var e=N(t)?t:l,r=n.dom(),o=[];null!==r.parentNode&&void 0!==r.parentNode;){var u=r.parentNode,i=U.fromDom(u);if(o.push(i),e(i)===!0)break;r=u}return o},lt=function(n){var t=function(t){return F(t,function(t){return!ot(n,t)})};return ct(n).map(at).map(t).getOr([])},at=function(n){return M(n.dom().childNodes,U.fromDom)},st=function(n){return nt(n)},dt=N(n.Element.prototype.attachShadow)&&N(n.Node.prototype.getRootNode),mt=f(dt),ht=dt?function(n){return U.fromDom(n.dom().getRootNode())}:it,vt=function(n){var t=ht(n);return st(t)?v.some(t):v.none()},pt=function(n){return U.fromDom(n.dom().host)},gt=function(n){if(mt()&&A(n.target)){var t=U.fromDom(n.target);if(Q(t)&&yt(U.fromDom(n.target))){var e=n;if(e.composed&&e.composedPath){var r=e.composedPath();if(r)return H(r)}}}return v.from(n.target)},yt=function(n){return A(n.dom().shadowRoot)},wt=function(n){var t=Z(n)?n.dom().parentNode:n.dom();return void 0===t||null===t||null===t.ownerDocument?!1:vt(U.fromDom(t)).fold(function(){return t.ownerDocument.body.contains(t)},c(wt,pt))},bt=function(t,e,r){if(!(T(r)||D(r)||O(r)))throw n.console.error("Invalid call to Attr.set. Key ",e,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,r+"")},St=function(n,t,e){bt(n.dom(),t,e)},Tt=function(n,t){var e=n.dom().getAttribute(t);return null===e?void 0:e},xt=function(n,t){n.dom().removeAttribute(t)},Dt=function(t,e,r){if(!T(r))throw n.console.error("Invalid call to CSS.set. Property ",e,":: Value ",r,":: Element ",t),new Error("CSS value must be a string: "+r);W(t)&&t.style.setProperty(e,r)},Et=function(n,t){var e=n.dom();V(t,function(n,t){Dt(e,t,n)})},At=function(t,e){var r=t.dom(),o=n.window.getComputedStyle(r),u=o.getPropertyValue(e);return""!==u||wt(t)?u:Nt(r,e)},Nt=function(n,t){return W(n)?n.style.getPropertyValue(t):""},Ot=function(n,t,e,r,o,u,i){return{target:f(n),x:f(t),y:f(e),stop:r,prevent:o,kill:u,raw:f(i)}},Ct=function(n){var t=U.fromDom(gt(n).getOr(n.target)),e=function(){return n.stopPropagation()},r=function(){return n.preventDefault()},o=i(r,e);return Ot(t,n.clientX,n.clientY,e,r,o,n)},Mt=function(n,t){var e=function(e,r){return Mt(n+e,t+r)};return{left:f(n),top:f(t),translate:e}},kt=Mt,Ft=function(t){var e=void 0!==t?t.dom():n.document,r=e.body.scrollLeft||e.documentElement.scrollLeft,o=e.body.scrollTop||e.documentElement.scrollTop;return kt(r,o)},Pt=function(t){var e=void 0===t?n.window:t;return v.from(e.visualViewport)},Lt=function(n,t,e,r){return{x:n,y:t,width:e,height:r,right:n+e,bottom:t+r}},Ht=function(t){var e=void 0===t?n.window:t,r=e.document,o=Ft(U.fromDom(r));return Pt(e).fold(function(){var n=e.document.documentElement,t=n.clientWidth,r=n.clientHeight;return Lt(o.left(),o.top(),t,r)},function(n){return Lt(Math.max(n.pageLeft,o.left()),Math.max(n.pageTop,o.top()),n.width,n.height)})},qt=function(n,t,e){return Pt(e).map(function(t){var e=function(n){return Ct(n)};return t.addEventListener(n,e),{unbind:function(){return t.removeEventListener(n,e)}}}).getOrThunk(function(){return{unbind:u}})},Vt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Wt=tinymce.util.Tools.resolve("tinymce.Env"),jt=tinymce.util.Tools.resolve("tinymce.util.Delay"),zt=function(n,t){n.fire("FullscreenStateChanged",{state:t})},Bt=function(n,t,e){return F(ft(n,e),t)},It=function(n,t){return F(lt(n),t)},Rt=function(n){return rt(n)},Ut=function(n,t,e){return Bt(n,function(n){return tt(n,t)},e)},_t=function(n,t){return It(n,function(n){return tt(n,t)})},Kt="data-ephox-mobile-fullscreen-style",Xt="display:none!important;",Yt="position:absolute!important;",Gt="top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;",Jt="background-color:rgb(255,255,255)!important;",Qt=Wt.os.isAndroid(),Zt=function(n){var t=At(n,"background-color");return void 0!==t&&""!==t?"background-color:"+t+"!important":Jt},$t=function(n,t,e){var r=function(n){return _t(n,"*:not(.tox-silver-sink)")},o=function(t){return function(e){var r=Tt(e,"style"),o=void 0===r?"no-styles":r.trim();o!==t&&(St(e,Kt,o),Et(e,n.parseStyle(t)))}},u=Ut(t,"*"),i=L(u,r),c=Zt(e);k(i,o(Xt)),k(u,o(Yt+Gt+c));var f=Qt===!0?"":Yt;o(f+Gt+c)(t)},ne=function(n){var t=Rt("["+Kt+"]");k(t,function(t){var e=Tt(t,Kt);"no-styles"!==e?Et(t,n.parseStyle(e)):xt(t,"style"),xt(t,Kt)})},te=Vt.DOM,ee=function(){var t=Ht(n.window);return{x:t.x,y:t.y}},re=function(t){n.window.scrollTo(t.x,t.y)},oe=Pt().fold(function(){return{bind:u,unbind:u}},function(t){var e=y(),r=g(),o=g(),u=function(){n.document.body.scrollTop=0,n.document.documentElement.scrollTop=0},i=function(){n.window.requestAnimationFrame(function(){e.on(function(n){return Et(n,{top:t.offsetTop+"px",left:t.offsetLeft+"px",height:t.height+"px",width:t.width+"px"})})})},c=jt.throttle(function(){u(),i()},50),f=function(n){e.set(n),c(),r.set(qt("resize")),o.set(qt("scroll"))},l=function(){e.on(function(){r.clear(),o.clear()}),e.clear()};return{bind:f,unbind:l}}),ue=function(t,e){var r=n.document.body,o=n.document.documentElement,u=t.getContainer(),i=U.fromDom(u),c=e.get(),f=U.fromDom(t.getBody()),l=Wt.deviceType.isTouch(),a=u.style,s=t.iframeElement,d=s.style,m=function(){l&&ne(t.dom),te.removeClass(r,"tox-fullscreen"),te.removeClass(o,"tox-fullscreen"),te.removeClass(u,"tox-fullscreen"),oe.unbind()};if(c)d.width=c.iframeWidth,d.height=c.iframeHeight,a.width=c.containerWidth,a.height=c.containerHeight,a.top=c.containerTop,a.left=c.containerLeft,re(c.scrollPos),e.set(null),zt(t,!1),m(),t.off("remove",m);else{var h={scrollPos:ee(),containerWidth:a.width,containerHeight:a.height,containerTop:a.top,containerLeft:a.left,iframeWidth:d.width,iframeHeight:d.height};l&&$t(t.dom,i,f),d.width=d.height="100%",a.width=a.height="",te.addClass(r,"tox-fullscreen"),te.addClass(o,"tox-fullscreen"),te.addClass(u,"tox-fullscreen"),oe.bind(i),t.on("remove",m),e.set(h),zt(t,!0)}},ie=function(n,t){n.addCommand("mceFullScreen",function(){ue(n,t)})},ce=function(n,t){return function(e){e.setActive(null!==t.get());var r=function(n){return e.setActive(n.state)};return n.on("FullscreenStateChanged",r),function(){return n.off("FullscreenStateChanged",r)}}},fe=function(n,t){n.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",icon:"fullscreen",shortcut:"Meta+Shift+F",onAction:function(){return n.execCommand("mceFullScreen")},onSetup:ce(n,t)}),n.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:function(){return n.execCommand("mceFullScreen")},onSetup:ce(n,t)})};t()}(window)}); +;/*!node_modules/tinymce/plugins/fullscreen/index.js*/ +amis.define("node_modules/tinymce/plugins/fullscreen/index",function(e){e("node_modules/tinymce/plugins/fullscreen/plugin")}); +;/*!node_modules/tinymce/plugins/insertdatetime/plugin.js*/ +amis.define("node_modules/tinymce/plugins/insertdatetime/plugin",function(){!function(){"use strict";function e(){t.add("insertdatetime",function(e){g(e),S(e)})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d"))},r=function(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))},a=function(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])},i=function(e){var t=a(e);return t.length>0?t[0]:r(e)},o=function(e){return e.getParam("insertdatetime_element",!1)},u="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),c="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),m="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),s="January February March April May June July August September October November December".split(" "),l=function(e,t){if(e=""+e,e.length'+n+"")}else e.insertContent(d(e,t))},g=function(e){e.addCommand("mceInsertDate",function(){p(e,n(e))}),e.addCommand("mceInsertTime",function(){p(e,r(e))})},y=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},M=tinymce.util.Tools.resolve("tinymce.util.Tools"),S=function(e){var t=a(e),n=y(i(e));e.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===n.get()},fetch:function(n){n(M.map(t,function(t){return{type:"choiceitem",text:d(e,t),value:t}}))},onAction:function(){p(e,n.get())},onItemAction:function(t,r){n.set(r),p(e,r)}});var r=function(t){return function(){n.set(t),p(e,t)}};e.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:function(){return M.map(t,function(t){return{type:"menuitem",text:d(e,t),onAction:r(t)}})}})};e()}()}); +;/*!node_modules/tinymce/plugins/insertdatetime/index.js*/ +amis.define("node_modules/tinymce/plugins/insertdatetime/index",function(e){e("node_modules/tinymce/plugins/insertdatetime/plugin")}); +;/*!node_modules/tinymce/plugins/media/plugin.js*/ +amis.define("node_modules/tinymce/plugins/media/plugin",function(){!function(){"use strict";function e(){t.add("media",function(e){return Pt(e),Wt(e),It(e),Lt(e),qt(e),Ct(e)})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;n>r;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},r.apply(this,arguments)},n=function(){},i=function(e){return function(){return e}},o=i(!1),a=i(!0),c=function(){return u},u=function(){var e=function(e){return e.isNone()},t=function(e){return e()},r=function(e){return e},u={fold:function(e){return e()},is:o,isSome:o,isNone:a,getOr:r,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:r,orThunk:t,map:c,each:n,bind:c,exists:o,forall:a,filter:c,equals:e,equals_:e,toArray:function(){return[]},toString:i("none()")};return u}(),s=function(e){var t=i(e),r=function(){return c},n=function(t){return t(e)},c={fold:function(t,r){return r(e)},is:function(t){return e===t},isSome:a,isNone:o,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:r,orThunk:r,map:function(t){return s(t(e))},each:function(t){t(e)},bind:n,exists:n,forall:n,filter:function(t){return t(e)?c:u},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,r){return t.fold(o,function(t){return r(e,t)})}};return c},l=function(e){return null===e||void 0===e?u:s(e)},m={some:s,none:c,from:l},d=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},f=function(e){return function(t){return d(t)===e}},h=f("string"),p=f("object"),g=f("array"),v=Array.prototype.push,w=function(e,t){for(var r=0,n=e.length;n>r;r++){var i=e[r];t(i,r)}},b=function(e){for(var t=[],r=0,n=e.length;n>r;++r){if(!g(e[r]))throw new Error("Arr.flatten item "+r+" was not an array, input: "+e);v.apply(t,e[r])}return t},y=function(e){var t=e,r=function(){return t},n=function(e){t=e};return{get:r,set:n}},x=Object.keys,j=Object.hasOwnProperty,O=function(e,t){for(var r=x(e),n=0,i=r.length;i>n;n++){var o=r[n],a=e[o];t(a,o)}},S=function(e,t){return _(e,t)?m.from(e[t]):m.none()},_=function(e,t){return j.call(e,t)},k=function(e){return e.getParam("media_scripts")},A=function(e){return e.getParam("audio_template_callback")},T=function(e){return e.getParam("video_template_callback")},C=function(e){return e.getParam("media_live_embeds",!0)},P=function(e){return e.getParam("media_filter_html",!0)},D=function(e){return e.getParam("media_url_resolver")},$=function(e){return e.getParam("media_alt_source",!0)},F=function(e){return e.getParam("media_poster",!0)},M=function(e){return e.getParam("media_dimensions",!0)},z=tinymce.util.Tools.resolve("tinymce.util.Tools"),N=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),U=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),E=function(e,t){if(e)for(var r=0;ra&&(K(c,{src:t[V[a]],type:t[V[a]+"mime"]}),!t[V[a]]))return;a++;break;case"img":if(!t.poster)return;n=!0}}i.start(e,c,u)},end:function(e){if(!o.get()){if("video"===e&&r)for(var c=0;2>c;c++)if(t[V[c]]){var u=[];u.map={},c>a&&(K(u,{src:t[V[c]],type:t[V[c]+"mime"]}),i.start("source",u,!0))}if(t.poster&&"object"===e&&r&&!n){var s=[];s.map={},K(s,{src:t.poster,width:t.width,height:t.height}),i.start("img",s,!0)}}i.end(e)}},W({})).parse(e),i.getContent()},Y=[{regex:/youtu\.be\/([\w\-_\?&=.]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/youtube\.com(.+)v=([^&]+)(&([a-z0-9&=\-_]+))?/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$2?$4",allowFullscreen:!0},{regex:/youtube.com\/embed\/([a-z0-9\?&=\-_]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc",allowFullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$2?title=0&byline=0",allowFullscreen:!0},{regex:/maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/,type:"iframe",w:425,h:350,url:'maps.google.com/maps/ms?msid=$2&output=embed"',allowFullscreen:!1},{regex:/dailymotion\.com\/video\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0},{regex:/dai\.ly\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0}],Z=function(e){var t=e.match(/^(https?:\/\/|www\.)(.+)$/i);return t&&t.length>1?"www."===t[1]?"https://":t[1]:"https://"},et=function(e,t){for(var r=Z(t),n=e.regex.exec(t),i=r+e.url,o=function(e){i=i.replace("$"+e,function(){return n[e]?n[e]:""})},a=0;a0?z.extend({},t[0],{url:et(t[0],e)}):null},rt=function(e){var t=e.allowFullscreen?' allowFullscreen="1"':"";return'"},nt=function(e){var t='';return e.poster&&(t+=''),t+=""},it=function(e,t){return t?t(e):'"},ot=function(e,t){return t?t(e):'"},at=function(e){return''},ct=function(e,t){var r=z.extend({},t);if(!r.source&&(z.extend(r,q(k(e),r.embed)),!r.source))return"";r.altsource||(r.altsource=""),r.poster||(r.poster=""),r.source=e.convertURL(r.source,"source"),r.altsource=e.convertURL(r.altsource,"source"),r.sourcemime=B(r.source),r.altsourcemime=B(r.altsource),r.poster=e.convertURL(r.poster,"poster");var n=tt(r.source);if(n&&(r.source=n.url,r.type=n.type,r.allowFullscreen=n.allowFullscreen,r.width=r.width||String(n.w),r.height=r.height||String(n.h)),r.embed)return X(r.embed,r,!0);var i=E(k(e),r.source);i&&(r.type="script",r.width=String(i.width),r.height=String(i.height));var o=A(e),a=T(e);return r.width=r.width||"300",r.height=r.height||"150",z.each(r,function(t,n){r[n]=e.dom.encode(""+t)}),"iframe"===r.type?rt(r):"application/x-shockwave-flash"===r.sourcemime?nt(r):-1!==r.sourcemime.indexOf("audio")?it(r,o):"script"===r.type?at(r):ot(r,a)},ut=tinymce.util.Tools.resolve("tinymce.util.Promise"),st={},lt=function(e,t,r){return new ut(function(n,i){var o=function(r){return r.html&&(st[e.source]=r),n({url:e.source,html:r.html?r.html:t(e)})};st[e.source]?o(st[e.source]):r({url:e.source},o,i)})},mt=function(e,t){return new ut(function(r){r({html:t(e),url:e.source})})},dt=function(e){return function(t){return ct(e,t)}},ft=function(e,t){var r=D(e);return r?lt(t,dt(e),r):mt(t,dt(e))},ht=function(e){return st.hasOwnProperty(e)},pt=function(e,t){return S(t,e).bind(function(e){return S(e,"meta")})},gt=function(e,t,r){return function(n){var i,o=function(){return S(e,n)},a=function(){return S(t,n)},c=function(e){return S(e,"value").bind(function(e){return e.length>0?m.some(e):m.none()})},u=function(){return o().bind(function(e){return p(e)?c(e).orThunk(a):a().orThunk(function(){return m.from(e)})})},s=function(){return a().orThunk(function(){return o().bind(function(e){return p(e)?c(e):m.from(e)})})};return i={},i[n]=(n===r?u():s()).getOr(""),i}},vt=function(e,t){var r={};return S(e,"dimensions").each(function(e){w(["width","height"],function(n){S(t,n).orThunk(function(){return S(e,n)}).each(function(e){return r[n]=e})})}),r},wt=function(e,t){var n=t?pt(t,e).getOr({}):{},i=gt(e,n,t);return r(r(r(r(r({},i("source")),i("altsource")),i("poster")),i("embed")),vt(e,n))},bt=function(e){var t=r(r({},e),{source:{value:S(e,"source").getOr("")},altsource:{value:S(e,"altsource").getOr("")},poster:{value:S(e,"poster").getOr("")}});return w(["width","height"],function(r){S(e,r).each(function(e){var n=t.dimensions||{};n[r]=e,t.dimensions=n})}),t},yt=function(e){return function(t){var r=t&&t.msg?"Media embed handler error: "+t.msg:"Media embed handler threw unknown error.";e.notificationManager.open({type:"error",text:r})}},xt=function(e,t){return q(k(e),t)},jt=function(e){return e.getAttribute("data-mce-object")||e.getAttribute("data-ephox-embed-iri")},Ot=function(e){var t=e.selection.getNode(),n=jt(t)?e.serializer.serialize(t,{selection:!0}):"";return r({embed:n},q(k(e),n))},St=function(e,t){return function(n){if(h(n.url)&&n.url.trim().length>0){var i=n.html,o=xt(t,i),a=r(r({},o),{source:n.url,embed:i});e.setData(bt(a))}}},_t=function(e,t){for(var r=e.dom.select("img[data-mce-object]"),n=0;n=0;i--)t[n]===r[i]&&r.splice(i,1);e.selection.select(r[0])},kt=function(e,t){var r=e.dom.select("img[data-mce-object]");e.insertContent(t),_t(e,r),e.nodeChanged()},At=function(e,t,r){t.embed=X(t.embed,t),t.embed&&(e.source===t.source||ht(t.source))?kt(r,t.embed):ft(r,t).then(function(e){kt(r,e.html)}).catch(yt(r))},Tt=function(e){var t=Ot(e),n=y(t),i=bt(t),o=function(t,r){var n=wt(r.getData(),"source");t.source!==n.source&&(St(v,e)({url:n.source,html:""}),ft(e,n).then(St(v,e)).catch(yt(e)))},a=function(t){var r=wt(t.getData()),n=xt(e,r.embed);t.setData(bt(n))},c=function(t,n){var i=wt(t.getData(),n),o=ct(e,i);t.setData(bt(r(r({},i),{embed:o})))},u=[{name:"source",type:"urlinput",filetype:"media",label:"Source"}],s=M(e)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[],l={title:"General",name:"general",items:b([u,s])},m={type:"textarea",name:"embed",label:"Paste your embed code below:"},d={title:"Embed",items:[m]},f=[];$(e)&&f.push({name:"altsource",type:"urlinput",filetype:"media",label:"Alternative source URL"}),F(e)&&f.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});var h={title:"Advanced",name:"advanced",items:f},p=[l,d];f.length>0&&p.push(h);var g={type:"tabpanel",tabs:p},v=e.windowManager.open({title:"Insert/Edit Media",size:"normal",body:g,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var r=wt(t.getData());At(n.get(),r,e),t.close()},onChange:function(e,t){switch(t.name){case"source":o(n.get(),e);break;case"embed":a(e);break;case"dimensions":case"altsource":case"poster":c(e,t.name)}n.set(wt(e.getData()))},initialData:i})},Ct=function(e){var t=function(){Tt(e)};return{showDialog:t}},Pt=function(e){var t=function(){Tt(e)};e.addCommand("mceMedia",t)},Dt=tinymce.util.Tools.resolve("tinymce.html.Node"),$t=tinymce.util.Tools.resolve("tinymce.Env"),Ft=function(e,t){if(P(e)===!1)return t;var r,n=G();return U({validate:!1,allow_conditional_comments:!1,comment:function(e){n.comment(e)},cdata:function(e){n.cdata(e)},text:function(e,t){n.text(e,t)},start:function(t,i,o){if(r=!0,"script"!==t&&"noscript"!==t&&"svg"!==t){for(var a=i.length-1;a>=0;a--){var c=i[a].name;0===c.indexOf("on")&&(delete i.map[c],i.splice(a,1)),"style"===c&&(i[a].value=e.dom.serializeStyle(e.dom.parseStyle(i[a].value),t))}n.start(t,i,o),r=!1}},end:function(e){r||n.end(e)}},W({})).parse(t),n.getContent()},Mt=function(e,t){var r=t.name,n=new Dt("img",1);return n.shortEnded=!0,Nt(e,t,n),n.attr({width:t.attr("width")||"300",height:t.attr("height")||("audio"===r?"30":"150"),style:t.attr("style"),src:$t.transparentSrc,"data-mce-object":r,"class":"mce-object mce-object-"+r}),n},zt=function(e,t){var r=t.name,n=new Dt("span",1);n.attr({contentEditable:"false",style:t.attr("style"),"data-mce-object":r,"class":"mce-preview-object mce-object-"+r}),Nt(e,t,n);var i=new Dt(r,1);i.attr({src:t.attr("src"),allowfullscreen:t.attr("allowfullscreen"),style:t.attr("style"),"class":t.attr("class"),width:t.attr("width"),height:t.attr("height"),frameborder:"0"});var o=new Dt("span",1);return o.attr("class","mce-shim"),n.append(i),n.append(o),n},Nt=function(e,t,r){var n,i,o,a=t.attributes;for(o=a.length;o--;)n=a[o].name,i=a[o].value,"width"!==n&&"height"!==n&&"style"!==n&&(("data"===n||"src"===n)&&(i=e.convertURL(i,n)),r.attr("data-mce-p-"+n,i));var c=t.firstChild&&t.firstChild.value;c&&(r.attr("data-mce-html",escape(Ft(e,c))),r.firstChild=null)},Ut=function(e){var t=e.attr("class");return t&&/\btiny-pageembed\b/.test(t)},Et=function(e){for(;e=e.parent;)if(e.attr("data-ephox-embed-iri")||Ut(e))return!0;return!1},Rt=function(e){return function(t){for(var r,n,i=t.length;i--;)r=t[i],r.parent&&(r.parent.attr("data-mce-object")||("script"!==r.name||(n=E(k(e),r.attr("src"))))&&(n&&(n.width&&r.attr("width",n.width.toString()),n.height&&r.attr("height",n.height.toString())),"iframe"===r.name&&C(e)&&$t.ceFalse?Et(r)||r.replace(zt(e,r)):Et(r)||r.replace(Mt(e,r))))}},Lt=function(e){e.on("preInit",function(){var t=e.schema.getSpecialElements();z.each("video audio iframe object".split(" "),function(e){t[e]=new RegExp("]*>","gi")});var r=e.schema.getBoolAttrs();z.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),function(e){r[e]={}}),e.parser.addNodeFilter("iframe,video,audio,object,embed,script",Rt(e)),e.serializer.addAttributeFilter("data-mce-object",function(t,r){for(var n,i,o,a,c,u,s,l,m=t.length;m--;)if(n=t[m],n.parent){for(s=n.attr(r),i=new Dt(s,1),"audio"!==s&&"script"!==s&&(l=n.attr("class"),i.attr(l&&-1!==l.indexOf("mce-preview-object")?{width:n.firstChild.attr("width"),height:n.firstChild.attr("height")}:{width:n.attr("width"),height:n.attr("height")})),i.attr({style:n.attr("style")}),a=n.attributes,o=a.length;o--;){var d=a[o].name;0===d.indexOf("data-mce-p-")&&i.attr(d.substr(11),a[o].value)}"script"===s&&i.attr("type","text/javascript"),c=n.attr("data-mce-html"),c&&(u=new Dt("#text",3),u.raw=!0,u.value=Ft(e,unescape(c)),i.append(u)),n.replace(i)}})}),e.on("SetContent",function(){e.$("span.mce-preview-object").each(function(t,r){var n=e.$(r);0===n.find("span.mce-shim").length&&n.append('')})})},It=function(e){e.on("ResolveName",function(e){var t;1===e.target.nodeType&&(t=e.target.getAttribute("data-mce-object"))&&(e.name=t)})},qt=function(e){e.on("click keyup touchend",function(){var t=e.selection.getNode();t&&e.dom.hasClass(t,"mce-preview-object")&&e.dom.getAttrib(t,"data-mce-selected")&&t.setAttribute("data-mce-selected","2")}),e.on("ObjectSelected",function(e){var t=e.target.getAttribute("data-mce-object");("audio"===t||"script"===t)&&e.preventDefault()}),e.on("ObjectResized",function(e){var t,r=e.target;r.getAttribute("data-mce-object")&&(t=r.getAttribute("data-mce-html"),t&&(t=unescape(t),r.setAttribute("data-mce-html",escape(X(t,{width:String(e.width),height:String(e.height)})))))})},Bt=function(e,t){return function(r){return e.selection.selectorChangedWithUnbind(t.join(","),r.setActive).unbind}},Wt=function(e){e.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:function(){e.execCommand("mceMedia")},onSetup:Bt(e,["img[data-mce-object]","span[data-mce-object]","div[data-ephox-embed-iri]"])}),e.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:function(){e.execCommand("mceMedia")}})};e()}()}); +;/*!node_modules/tinymce/plugins/media/index.js*/ +amis.define("node_modules/tinymce/plugins/media/index",function(e){e("node_modules/tinymce/plugins/media/plugin")}); +;/*!node_modules/tinymce/plugins/table/plugin.js*/ +amis.define("node_modules/tinymce/plugins/table/plugin",function(){!function(n){"use strict";function t(n){for(var t=[],e=1;e=r||null===r){var o=Rr(e,n);return parseFloat(o)||0}return r},o=r,u=function(n,t){return J(t,function(t,e){var r=Rr(n,e),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o},0)},i=function(n,t,e){var r=u(n,e),o=t>r?t-r:0;return o};return{set:e,get:r,getOuter:o,aggregate:u,max:i}}function i(){var n=D.none(),t=function(){n=D.none()},e=function(t,e){var r=n.map(function(n){return t.compare(n,e)});return n=D.some(e),r},r=function(n,t){var r=t.extract(n);r.each(function(n){var r=e(t,n);r.each(function(n){o.trigger.move(n)})})},o=Aa({move:Da(["info"])});return{onEvent:r,reset:t,events:o.registry}}function c(){return{onEvent:g,reset:g}}function a(){var n=c(),t=i(),e=n,r=function(){e.reset(),e=t},o=function(){e.reset(),e=n},u=function(n,t){e.onEvent(n,t)},a=function(){return e===t};return{on:r,off:o,isOn:a,onEvent:u,events:t.events}}function l(n,t,e,r){var o=D.none(),u=function(){o=D.none()},i=function(n){r.clear(t),o=Sb(n.target(),e)},c=function(u){o.each(function(o){r.clearBeforeUpdate(t),Sb(u.target(),e).each(function(u){Hu(o,u,e).each(function(e){var i=e.boxes.getOr([]);(i.length>1||1===i.length&&!Ge(o,u))&&(r.selectRange(t,i,e.start,e.finish),n.selectContents(u))})})})},a=function(){o.each(u)};return{mousedown:i,mouseover:c,mouseup:a}}function f(n,t,e){var r=function(t,r,o){e.targets().each(function(e){var u=Ro(r);u.each(function(u){var i=_f(n),c=su(g,Qt.fromDom(n.getDoc()),i),a=$b(u,e,c);ff(n,t,r,o,a)})})},o=function(){return sf(n)},u=Vb.byAttr(fi,r,o);return n.on("init",function(){var e=n.getWin(),r=zf(n),o=Hf(n),i=function(){var t=n.selection,e=Qt.fromDom(t.getStart()),o=Qt.fromDom(t.getEnd()),i=zu(Ro,[e,o]);i.fold(function(){return u.clear(r)},g)},c=_b(e,r,o,u),a=Wb(e,r,o,u),l=jb(e,r,o,u),f=function(n){return n.raw().shiftKey===!0};n.on("TableSelectorChange",function(n){return l(n.start,n.finish)});var s=function(t,r){f(t)&&(r.kill()&&t.kill(),r.selection().each(function(t){var r=Pp.relative(t.start(),t.finish()),o=Up(e,r);n.selection.setRng(o)}))},d=function(t){var e=Xa(t);if(e.raw().shiftKey&&Db(e.raw().which)){var r=n.selection.getRng(),o=Qt.fromDom(r.startContainer),u=Qt.fromDom(r.endContainer);a.keyup(e,o,r.startOffset,u,r.endOffset).each(function(n){s(e,n)})}},m=function(e){var r=Xa(e);t().each(function(n){return n.hideBars()});var o=n.selection.getRng(),u=Qt.fromDom(n.selection.getStart()),i=Qt.fromDom(o.startContainer),c=Qt.fromDom(o.endContainer),l=Jf(u).isRtl()?Bb:Ab;a.keydown(r,i,o.startOffset,c,o.endOffset,l).each(function(n){s(r,n)}),t().each(function(n){return n.showBars()})},p=function(n){return 0===n.button},v=function(n){return void 0===n.buttons?!0:Zg.browser.isEdge()&&0===n.buttons?!0:0!==(1&n.buttons)},h=function(n){p(n)&&Gb(n)&&c.mousedown(Xa(n))},b=function(n){v(n)&&Gb(n)&&c.mouseover(Xa(n))},w=function(n){p(n)&&Gb(n)&&c.mouseup(Xa(n))},y=function(){var n=Qf(Qt.fromDom(r)),t=Qf(0),e=function(e){var r=Qt.fromDom(e.target);if("td"===xt(r)||"th"===xt(r)){var o=n.get(),u=t.get();Ge(o,r)&&e.timeStamp-u<300&&(e.preventDefault(),l(r,r))}n.set(r),t.set(e.timeStamp)};return{touchEnd:e}},S=y();n.on("mousedown",h),n.on("mouseover",b),n.on("mouseup",w),n.on("touchend",S.touchEnd),n.on("keyup",d),n.on("keydown",m),n.on("NodeChange",i)}),{clear:u.clear}}function s(n){var t=Vm(n),e=Xb(n,t),r=hs(n),o=f(n,r.lazyResize,e),u=Ym(n,r.lazyWire),i=cp();return up(n,u,o,t,i),ip(n,u,t),Ai(n,t,u,o),Qb(n,e,i),Yb(n,e,i),Jb(n),n.on("PreInit",function(){n.serializer.addTempAttr(ii),n.serializer.addTempAttr(ai),nw(n)}),Sf(n)&&n.on("keydown",function(t){Fv(t,n,u,r.lazyWire)}),n.on("remove",function(){r.destroy()}),mg(n,i,r,e)}function d(){m.add("table",s)}var m=tinymce.util.Tools.resolve("tinymce.PluginManager"),g=function(){},p=function(n,t){return function(){for(var e=[],r=0;r-1},V=function(n,t){for(var e=0,r=n.length;r>e;e++){var o=n[e];if(t(o,e))return!0}return!1},U=function(n,t){for(var e=[],r=0;n>r;r++)e.push(t(r));return e},K=function(n,t){for(var e=n.length,r=new Array(e),o=0;e>o;o++){var u=n[o];r[o]=t(u,o)}return r},$=function(n,t){for(var e=0,r=n.length;r>e;e++){var o=n[e];t(o,e)}},G=function(n,t){for(var e=n.length-1;e>=0;e--){var r=n[e];t(r,e)}},X=function(n,t){for(var e=[],r=0,o=n.length;o>r;r++){var u=n[r];t(u,r)&&e.push(u)}return e},Y=function(n,t,e){return G(n,function(n){e=t(e,n)}),e},J=function(n,t,e){return $(n,function(n){e=t(e,n)}),e},Q=function(n,t,e){for(var r=0,o=n.length;o>r;r++){var u=n[r];if(t(u,r))return D.some(u);if(e(u,r))break}return D.none()},Z=function(n,t){return Q(n,t,S)},nt=function(n,t){for(var e=0,r=n.length;r>e;e++){var o=n[e];if(t(o,e))return D.some(e)}return D.none()},tt=function(n){for(var t=[],e=0,r=n.length;r>e;++e){if(!E(n[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+n);L.apply(t,n[e])}return t},et=function(n,t){return tt(K(n,t))},rt=function(n,t){for(var e=0,r=n.length;r>e;++e){var o=n[e];if(t(o,e)!==!0)return!1}return!0},ot=function(n){var t=z.call(n,0);return t.reverse(),t},ut=function(n){return 0===n.length?D.none():D.some(n[0])},it=function(n){return 0===n.length?D.none():D.some(n[n.length-1])},ct=function(n,t){for(var e=0;er;r++){var u=e[r],i=n[u];t(i,u)}},st=function(n,t){return dt(n,function(n,e){return{k:e,v:t(n,e)}})},dt=function(n,t){var e={};return ft(n,function(n,r){var o=t(n,r);e[o.k]=o.v}),e},mt=function(n){return function(t,e){n[e]=t}},gt=function(n,t,e,r){var o={};return ft(n,function(n,o){(t(n,o)?e:r)(n,o)}),o},pt=function(n,t){var e={};return gt(n,t,mt(e),g),e},vt=function(n,t){return ht(n,t)?D.from(n[t]):D.none()},ht=function(n,t){return lt.call(n,t)},bt=("undefined"!=typeof n.window?n.window:Function("return this;")(),8),wt=9,yt=11,St=1,Ct=3,xt=function(n){var t=n.dom().nodeName;return t.toLowerCase()},Tt=function(n){return n.dom().nodeType},Rt=function(n){return function(t){return Tt(t)===n}},Ot=function(n){return Tt(n)===bt||"#comment"===xt(n)},Dt=Rt(St),At=Rt(Ct),Bt=Rt(wt),It=Rt(yt),Pt=function(t,e,r){if(!(P(r)||M(r)||j(r)))throw n.console.error("Invalid call to Attr.set. Key ",e,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,r+"")},kt=function(n,t,e){Pt(n.dom(),t,e)},Et=function(n,t){var e=n.dom();ft(t,function(n,t){Pt(e,t,n)})},Mt=function(n,t){var e=n.dom().getAttribute(t);return null===e?void 0:e},Nt=function(n,t){return D.from(Mt(n,t))},_t=function(n,t){var e=n.dom();return e&&e.hasAttribute?e.hasAttribute(t):!1},Wt=function(n,t){n.dom().removeAttribute(t)},jt=function(n){return J(n.dom().attributes,function(n,t){return n[t.name]=t.value,n},{})},zt=function(n,t,e){return""===t||n.length>=t.length&&n.substr(e,e+t.length)===t},Ft=function(n,t){return-1!==n.indexOf(t)},Lt=function(n,t){return zt(n,t,0)},Ht=function(n,t){return zt(n,t,n.length-t.length)},qt=function(n){return function(t){return t.replace(n,"")}},Vt=qt(/^\s+|\s+$/g),Ut=function(n){return n.length>0},Kt=function(n){return void 0!==n.style&&W(n.style.getPropertyValue)},$t=function(t,e){var r=e||n.document,o=r.createElement("div");if(o.innerHTML=t,!o.hasChildNodes()||o.childNodes.length>1)throw n.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Yt(o.childNodes[0])},Gt=function(t,e){var r=e||n.document,o=r.createElement(t);return Yt(o)},Xt=function(t,e){var r=e||n.document,o=r.createTextNode(t);return Yt(o)},Yt=function(n){if(null===n||void 0===n)throw new Error("Node cannot be null or undefined");return{dom:h(n)}},Jt=function(n,t,e){var r=n.dom();return D.from(r.elementFromPoint(t,e)).map(Yt)},Qt={fromHtml:$t,fromTag:Gt,fromText:Xt,fromDom:Yt,fromPoint:Jt},Zt=function(n,t,e){return 0!==(n.compareDocumentPosition(t)&e)},ne=function(t,e){return Zt(t,e,n.Node.DOCUMENT_POSITION_CONTAINED_BY)},te=function(){return te=Object.assign||function(n){for(var t,e=1,r=arguments.length;r>e;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},te.apply(this,arguments)},ee=function(n){var t,e=!1;return function(){for(var r=[],o=0;o0})},Ar=function(n,t){var e=n.dom();Cr(e,t),Nt(n,"style").map(Vt).is("")&&Wt(n,"style")},Br=function(n,t){var e=n.dom(),r=t.dom();Kt(e)&&Kt(r)&&(r.style.cssText=e.style.cssText)},Ir=function(n,t){var e=er(n);e.each(function(e){e.dom().insertBefore(t.dom(),n.dom())})},Pr=function(n,t){var e=ir(n);e.fold(function(){var e=er(n);e.each(function(n){Er(n,t)})},function(n){Ir(n,t)})},kr=function(n,t){var e=lr(n);e.fold(function(){Er(n,t)},function(e){n.dom().insertBefore(t.dom(),e.dom())})},Er=function(n,t){n.dom().appendChild(t.dom())},Mr=function(n,t){Ir(n,t),Er(t,n)},Nr=function(n,t){$(t,function(t){Ir(n,t)})},_r=function(n,t){$(t,function(e,r){var o=0===r?n:t[r-1];Pr(o,e)})},Wr=function(n,t){$(t,function(t){Er(n,t)})},jr=function(n){n.dom().textContent="",$(cr(n),function(n){zr(n)})},zr=function(n){var t=n.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},Fr=function(n){var t=cr(n);t.length>0&&Nr(n,t),zr(n)},Lr=function(n,t){return{rows:h(n),columns:h(t)}},Hr=function(n,t){return{row:h(n),column:h(t)}},qr=function(n,t,e){return{element:h(n),rowspan:h(t),colspan:h(e)}},Vr=function(n,t,e,r){return{element:h(n),rowspan:h(t),colspan:h(e),isNew:h(r)}},Ur=function(n,t,e,r,o){return{element:h(n),rowspan:h(t),colspan:h(e),row:h(r),column:h(o)}},Kr=function(n,t,e){return{element:h(n),cells:h(t),section:h(e)}},$r=function(n,t){return{element:h(n),isNew:h(t)}},Gr=function(n,t,e,r){return{element:h(n),cells:h(t),section:h(e),isNew:h(r)}},Xr=function(n,t){return{cells:h(n),section:h(t)}},Yr=function(n,t){return{details:h(n),section:h(t)}},Jr=function(n,t,e,r){return{startRow:h(n),startCol:h(t),finishRow:h(e),finishCol:h(r)}},Qr=function(n,t,e){return X(rr(n,e),t)},Zr=function(n,t){return X(cr(n),t)},no=function(n,t){var e=[];return $(cr(n),function(n){t(n)&&(e=e.concat([n])),e=e.concat(no(n,t))}),e},to=function(n,t,e){return Qr(n,function(n){return Ve(n,t)},e)},eo=function(n,t){return Zr(n,function(n){return Ve(n,t)})},ro=function(n,t){return Ke(t,n)},oo=function(n,t,e){for(var r=n.dom(),o=W(e)?e:h(!1);r.parentNode;){r=r.parentNode;var u=Qt.fromDom(r);if(t(u))return D.some(u);if(o(u))break}return D.none()},uo=function(n,t,r){var o=function(n,t){return t(n)};return e(o,oo,n,t,r)},io=function(n,t){var e=function(n){return t(Qt.fromDom(n))},r=Z(n.dom().childNodes,e);return r.map(Qt.fromDom)},co=function(n,t){var e=function(n){for(var r=0;r1},vo=function(n){return go(n,"rowspan")>1},ho=function(n,t){return parseInt(Rr(n,t),10)},bo=h(10),wo=h(10),yo=function(n,t){return So(n,t,h(!0))},So=function(n,t,e){return et(cr(n),function(n){return Ve(n,t)?e(n)?[n]:[]:So(n,t,e)})},Co=function(n,t,e){if(void 0===e&&(e=S),e(t))return D.none();if(q(n,xt(t)))return D.some(t);var r=function(n){return Ve(n,"table")||e(n)};return ao(t,n.join(","),r)},xo=function(n,t){return Co(["td","th"],n,t)},To=function(n){return yo(n,"th,td")},Ro=function(n,t){return so(n,"table",t)},Oo=function(n){return yo(n,"tr")},Do=function(n){var t=Oo(n);return K(t,function(n){var t=n,e=er(t),r=e.map(function(n){var t=xt(n);return"tfoot"===t||"thead"===t||"tbody"===t?t:"tbody"}).getOr("tbody"),o=K(To(n),function(n){var t=mo(n,"rowspan",1),e=mo(n,"colspan",1);return qr(n,t,e)});return Kr(t,o,r)})},Ao=function(n,t){return K(n,function(n){var e=K(To(n),function(n){var t=mo(n,"rowspan",1),e=mo(n,"colspan",1);return qr(n,t,e)});return Kr(n,e,t.section())})},Bo=function(n,t){return n+","+t},Io=function(n,t,e){var r=n.access[Bo(t,e)];return void 0!==r?D.some(r):D.none()},Po=function(n,t,e){var r=ko(n,function(n){return e(t,n.element())});return r.length>0?D.some(r[0]):D.none()},ko=function(n,t){var e=et(n.all,function(n){return n.cells()});return X(e,t)},Eo=function(n){var t={},e=[],r=n.length,o=0;$(n,function(n,r){var u=[];$(n.cells(),function(n){for(var e=0;void 0!==t[Bo(r,e)];)e++;for(var i=Ur(n.element(),n.rowspan(),n.colspan(),r,e),c=0;ce?o=e:r>i&&(i=r),u>a?u=a:l>c&&(c=l)}}),Wo(o,u,i,c)},zo=function(n,t,e){var r=n[e].element(),o=Qt.fromTag("td");Er(o,Qt.fromTag("br"));var u=t?Er:kr;u(r,o)},Fo=function(n,t,e,r){for(var o=t.grid.columns(),u=t.grid.rows(),i=0;u>i;i++)for(var c=!1,a=0;o>a;a++)if(!(ie.maxRow||ae.maxCol)){var l=_o.getAt(t,i,a).filter(r).isNone();l?zo(n,c,i):c=!0}},Lo=function(n,t){var e=X(yo(n,"tr"),function(n){return 0===n.dom().childElementCount});$(e,zr),(t.minCol===t.maxCol||t.minRow===t.maxRow)&&$(yo(n,"th,td"),function(n){Wt(n,"rowspan"),Wt(n,"colspan")}),Wt(n,"width"),Wt(n,"height"),Ar(n,"width"),Ar(n,"height")},Ho=function(n,t){var e=function(n){return Ve(n.element(),t)},r=Do(n),o=_o.generate(r),u=jo(o,e),i="th:not("+t+"),td:not("+t+")",c=So(n,"th,td",function(n){return Ve(n,i)});return $(c,zr),Fo(r,o,u,e),Lo(n,u),n},qo=" ",Vo=r(At,"text"),Uo=function(n){return Vo.get(n)},Ko=function(n){return Vo.getOption(n)},$o=function(n,t){return Vo.set(n,t)},Go=function(n){return"img"===xt(n)?1:Ko(n).fold(function(){return cr(n).length},function(n){return n.length})},Xo=function(n){return Ko(n).filter(function(n){return 0!==n.trim().length||n.indexOf(qo)>-1}).isSome()},Yo=["img","br"],Jo=function(n){var t=Xo(n);return t||q(Yo,xt(n))},Qo=function(n){return co(n,Jo)},Zo=function(n){return nu(n,Jo)},nu=function(n,t){var e=function(n){for(var r=cr(n),o=r.length-1;o>=0;o--){var u=r[o];if(t(u))return D.some(u);var i=e(u);if(i.isSome())return i}return D.none()};return e(n)},tu=function(n,t){return Qt.fromDom(n.dom().cloneNode(t))},eu=function(n){return tu(n,!1)},ru=function(n){return tu(n,!0)},ou=function(n,t){var e=Qt.fromTag(t),r=jt(n);return Et(e,r),e},uu=function(n,t){var e=ou(n,t),r=cr(ru(n));return Wr(e,r),e},iu=function(){var n=Qt.fromTag("td");return Er(n,Qt.fromTag("br")),n},cu=function(n,t,e){var r=uu(n,t);return ft(e,function(n,t){null===n?Wt(r,t):kt(r,t,n)}),r},au=function(n){return n},lu=function(n){return function(){return Qt.fromTag("tr",n.dom())}},fu=function(n,t,e){var r=Qo(n);return r.map(function(r){var o=e.join(","),u=to(r,o,function(t){return Ge(t,n)});return Y(u,function(n,t){var e=eu(t);return Wt(e,"contenteditable"),Er(n,e),e},t)}).getOr(t)},su=function(n,t,e){var r=function(t){var r=Ze(t.element()),o=Qt.fromTag(xt(t.element()),r.dom()),u=e.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),i=u.length>0?fu(t.element(),o,u):o;return Er(i,Qt.fromTag("br")),Br(t.element(),o),Ar(o,"height"),1!==t.colspan()&&Ar(t.element(),"width"),n(t.element(),o),o};return{row:lu(t),cell:r,replace:cu,gap:iu}},du=function(n){return{row:lu(n),cell:iu,replace:au,gap:iu}},mu=function(t,e){var r=e||n.document,o=r.createElement("div");return o.innerHTML=t,cr(Qt.fromDom(o))},gu=function(n){return K(n,Qt.fromDom)},pu=function(n,t){var e=t.column(),r=t.column()+t.colspan()-1,o=t.row(),u=t.row()+t.rowspan()-1;return e<=n.finishCol()&&r>=n.startCol()&&o<=n.finishRow()&&u>=n.startRow()},vu=function(n,t){return t.column()>=n.startCol()&&t.column()+t.colspan()-1<=n.finishCol()&&t.row()>=n.startRow()&&t.row()+t.rowspan()-1<=n.finishRow()},hu=function(n,e){for(var r=!0,o=t(vu,e),u=e.startRow();u<=e.finishRow();u++)for(var i=e.startCol();i<=e.finishCol();i++)r=r&&_o.getAt(n,u,i).exists(o);return r?D.some(e):D.none()},bu=function(n,t){return Jr(Math.min(n.row(),t.row()),Math.min(n.column(),t.column()),Math.max(n.row()+n.rowspan()-1,t.row()+t.rowspan()-1),Math.max(n.column()+n.colspan()-1,t.column()+t.colspan()-1))},wu=function(n,t,e){var r=_o.findItem(n,t,Ge),o=_o.findItem(n,e,Ge);return r.bind(function(n){return o.map(function(t){return bu(n,t)})})},yu=function(n,t,e){return wu(n,t,e).bind(function(t){return hu(n,t)})},Su=function(n,t,e,r){return _o.findItem(n,t,Ge).bind(function(t){var o=e>0?t.row()+t.rowspan()-1:t.row(),u=r>0?t.column()+t.colspan()-1:t.column(),i=_o.getAt(n,o+e,u+r);return i.map(function(n){return n.element()})})},Cu=function(n,e,r){return wu(n,e,r).map(function(e){var r=_o.filterItems(n,t(pu,e));return K(r,function(n){return n.element()})})},xu=function(n,t){var e=function(n,t){return Je(t,n)};return _o.findItem(n,t,e).map(function(n){return n.element()})},Tu=function(n,t,e){return Ro(n).bind(function(r){var o=Au(r);return Su(o,n,t,e)})},Ru=function(n,t,e){var r=Au(n);return Cu(r,t,e)},Ou=function(n,t,e,r,o){var u=Au(n),i=Ge(n,e)?D.some(t):xu(u,t),c=Ge(n,o)?D.some(r):xu(u,r);return i.bind(function(n){return c.bind(function(t){return Cu(u,n,t)})})},Du=function(n,t,e){var r=Au(n);return yu(r,t,e)},Au=_o.fromTable,Bu=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Iu=function(n,t,e,r){var o=e[0],u=e.slice(1);return r(n,t,o,u)},Pu=function(n,t,e){return e.length>0?Iu(n,t,e,ku):D.none()},ku=function(n,t,e,r){var o=t(n,e);return Y(r,function(e,r){var o=t(n,r);return Eu(n,e,o)},o)},Eu=function(n,e,r){return e.bind(function(e){return r.filter(t(n.eq,e))})},Mu=function(n,e){return t(n.eq,e)},Nu=function(n,t,e,r){void 0===r&&(r=S);var o=[t].concat(n.up().all(t)),u=[e].concat(n.up().all(e)),i=function(n){var t=nt(n,r);return t.fold(function(){return n},function(t){return n.slice(0,t+1)})},c=i(o),a=i(u),l=Z(c,function(t){return V(a,Mu(n,t))});return{firstpath:h(c),secondpath:h(a),shared:h(l)}},_u=Pu,Wu=Nu,ju=o(),zu=function(n,t){return _u(ju,function(t,e){return n(e)},t)},Fu=function(n,t,e){return Wu(ju,n,t,e)},Lu=function(n){return ao(n,"table")},Hu=function(n,t,e){var r=function(n){return function(t){return void 0!==e&&e(t)||Ge(t,n)}};return Ge(n,t)?D.some({boxes:D.some([n]),start:n,finish:t}):Lu(n).bind(function(o){return Lu(t).bind(function(u){if(Ge(o,u))return D.some({boxes:Ru(o,n,t),start:n,finish:t});if(Je(o,u)){var i=to(t,"td,th",r(o)),c=i.length>0?i[i.length-1]:t;return D.some({boxes:Ou(o,n,o,t,u),start:n,finish:c})}if(Je(u,o)){var i=to(n,"td,th",r(u)),a=i.length>0?i[i.length-1]:n;return D.some({boxes:Ou(u,n,o,t,u),start:n,finish:a})}return Fu(n,t).shared().bind(function(i){return so(i,"table",e).bind(function(e){var i=to(t,"td,th",r(e)),c=i.length>0?i[i.length-1]:t,a=to(n,"td,th",r(e)),l=a.length>0?a[a.length-1]:n;return D.some({boxes:Ou(e,n,o,t,u),start:l,finish:c})})})})})},qu=function(n,t){var e=ro(n,t);return e.length>0?D.some(e):D.none()},Vu=function(n,t){return Z(n,function(n){return Ve(n,t)})},Uu=function(n,t,e){return fo(n,t).bind(function(t){return fo(n,e).bind(function(n){return zu(Lu,[t,n]).map(function(e){return{first:h(t),last:h(n),table:h(e)}})})})},Ku=function(n,t){return ao(n,"table").bind(function(e){return fo(e,t).bind(function(t){return Hu(t,n).bind(function(n){return n.boxes.map(function(t){return{boxes:t,start:n.start,finish:n.finish}})})})})},$u=function(n,t,e,r,o){return Vu(n,o).bind(function(n){return Tu(n,t,e).bind(function(n){return Ku(n,r)})})},Gu=function(n,t){return qu(n,t)},Xu=function(n,t,e){return Uu(n,t,e).bind(function(t){var e=function(t){return Ge(n,t)},r=ao(t.first(),"thead,tfoot,tbody,table",e),o=ao(t.last(),"thead,tfoot,tbody,table",e);return r.bind(function(n){return o.bind(function(e){return Ge(n,e)?Du(t.table(),t.first(),t.last()):D.none()})})})},Yu="data-mce-selected",Ju="td["+Yu+"],th["+Yu+"]",Qu="["+Yu+"]",Zu="data-mce-first-selected",ni="td["+Zu+"],th["+Zu+"]",ti="data-mce-last-selected",ei="td["+ti+"],th["+ti+"]",ri=Yu,oi=Ju,ui=Qu,ii=Zu,ci=ni,ai=ti,li=ei,fi=Object.freeze({__proto__:null,selected:ri,selectedSelector:oi,attributeSelector:ui,firstSelected:ii,firstSelectedSelector:ci,lastSelected:ai,lastSelectedSelector:li}),si=function(t){if(!E(t))throw new Error("cases must be an array"); +if(0===t.length)throw new Error("there must be at least one case");var e=[],r={};return $(t,function(o,u){var i=at(o);if(1!==i.length)throw new Error("one and only one name per case");var c=i[0],a=o[c];if(void 0!==r[c])throw new Error("duplicate key detected:"+c);if("cata"===c)throw new Error("cannot have a case named cata (sorry)");if(!E(a))throw new Error("case arguments must be an array");e.push(c),r[c]=function(){var r=arguments.length;if(r!==a.length)throw new Error("Wrong number of arguments to case "+c+". Expected "+a.length+" ("+a+"), got "+r);for(var o=new Array(r),i=0;i1||_t(n,"colspan")&&parseInt(Mt(n,"colspan"),10)>1},r=bi(n,t);return r.length>0&&rt(r,e)?D.some(r):D.none()},yi=function(n,t){return gi(t.get(),D.none,function(t){return 0===t.length?D.none():Xu(n,ci,li).bind(function(n){return t.length>1?D.some({bounds:h(n),cells:h(t)}):D.none()})},D.none)},Si=function(n){return{element:h(n),mergable:D.none,unmergable:D.none,selection:h([n])}},Ci=function(n,t,e){return{element:h(e),mergable:h(yi(t,n)),unmergable:h(wi(e,n)),selection:h(bi(e,n))}},xi=function(n,t,e){return{element:h(n),clipboard:h(t),generators:h(e)}},Ti=function(n,t,e,r){return{selection:h(bi(t,n)),clipboard:h(e),generators:h(r)}},Ri=function(n){return Ro(n[0]).map(ru).map(function(n){return[Ho(n,ui)]})},Oi=function(n,t){return K(t,function(t){return n.selection.serializer.serialize(t.dom(),{})}).join("")},Di=function(n){return K(n,function(n){return n.dom().innerText}).join("")},Ai=function(n,t,e,r){n.on("BeforeGetContent",function(e){var r=function(t){e.preventDefault(),Ri(t).each(function(t){e.content="text"===e.format?Di(t):Oi(n,t)})};e.selection===!0&&gi(t.get(),g,r,g)}),n.on("BeforeSetContent",function(t){if(t.selection===!0&&t.paste===!0){var o=D.from(n.dom.getParent(n.selection.getStart(),"th,td"));o.each(function(o){var u=Qt.fromDom(o);Ro(u).each(function(o){var i=X(mu(t.content),function(n){return"meta"!==xt(n)}),c=function(n){return"table"===xt(n)};if(1===i.length&&c(i[0])){t.preventDefault();var a=Qt.fromDom(n.getDoc()),l=du(a),f=xi(u,i[0],l);e.pasteCells(o,f).each(function(t){n.selection.setRng(t),n.focus(),r.clear(o)})}})})}})},Bi=function(n,t){var e=function(e,r){return Bi(n+e,t+r)};return{left:h(n),top:h(t),translate:e}},Ii=Bi,Pi=function(n){var t=n.getBoundingClientRect();return Ii(t.left,t.top)},ki=function(n,t){return void 0!==n?n:void 0!==t?t:0},Ei=function(n){var t=n.dom().ownerDocument,e=t.body,r=t.defaultView,o=t.documentElement;if(e===n.dom())return Ii(e.offsetLeft,e.offsetTop);var u=ki(r.pageYOffset,o.scrollTop),i=ki(r.pageXOffset,o.scrollLeft),c=ki(o.clientTop,e.clientTop),a=ki(o.clientLeft,e.clientLeft);return Mi(n).translate(i-a,u-c)},Mi=function(n){var t=n.dom(),e=t.ownerDocument,r=e.body;return r===t?Ii(r.offsetLeft,r.offsetTop):br(n)?Pi(t):Ii(0,0)},Ni=function(n){var t=D.from(n.dom().documentElement).map(Qt.fromDom).getOr(n);return{parent:h(t),view:h(n),origin:h(Ii(0,0))}},_i=function(n,t){var e=function(){return Ei(t)};return{parent:h(t),view:h(n),origin:e}},Wi=function(n,t){return{parent:h(t),view:h(n),origin:h(Ii(0,0))}},ji={only:Ni,detached:_i,body:Wi},zi=u("height",function(n){var t=n.dom();return br(n)?t.getBoundingClientRect().height:t.offsetHeight}),Fi=function(n){return zi.get(n)},Li=function(n){return zi.getOuter(n)},Hi=u("width",function(n){return n.dom().offsetWidth}),qi=function(n){return Hi.get(n)},Vi=function(n){return Hi.getOuter(n)},Ui=function(n,t){return{row:n,y:t}},Ki=function(n,t){return{col:n,x:t}},$i=function(n){var t=Ei(n);return t.left()+Vi(n)},Gi=function(n){return Ei(n).left()},Xi=function(n,t){return Ki(n,Gi(t))},Yi=function(n,t){return Ki(n,$i(t))},Ji=function(n){return Ei(n).top()},Qi=function(n,t){return Ui(n,Ji(t))},Zi=function(n,t){return Ui(n,Ji(t)+Li(t))},nc=function(n,t,e){if(0===e.length)return[];var r=K(e.slice(1),function(t,e){return t.map(function(t){return n(e,t)})}),o=e[e.length-1].map(function(n){return t(e.length-1,n)});return r.concat([o])},tc=function(n){return-n},ec={delta:b,positions:function(n){return nc(Qi,Zi,n)},edge:Ji},rc={delta:b,edge:Gi,positions:function(n){return nc(Xi,Yi,n)}},oc={delta:tc,edge:$i,positions:function(n){return nc(Yi,Xi,n)}},uc=function(n){var t=n.grid,e=U(t.columns(),b),r=U(t.rows(),b);return K(e,function(t){var e=function(){return et(r,function(e){return _o.getAt(n,e,t).filter(function(n){return n.column()===t}).fold(h([]),function(n){return[n]})})},o=function(n){return 1===n.colspan()},u=function(){return _o.getAt(n,0,t)};return ic(e,o,u)})},ic=function(n,t,e){var r=n(),o=Z(r,t),u=o.orThunk(function(){return D.from(r[0]).orThunk(e)});return u.map(function(n){return n.element()})},cc=function(n){var t=n.grid,e=U(t.rows(),b),r=U(t.columns(),b);return K(e,function(t){var e=function(){return et(r,function(e){return _o.getAt(n,t,e).filter(function(n){return n.row()===t}).fold(h([]),function(n){return[n]})})},o=function(n){return 1===n.rowspan()},u=function(){return _o.getAt(n,t,0)};return ic(e,o,u)})},ac=function(n,t){if(0>t||t>=n.length-1)return D.none();var e=n[t].fold(function(){var e=ot(n.slice(0,t));return ct(e,function(n,t){return n.map(function(n){return{value:n,delta:t+1}})})},function(n){return D.some({value:n,delta:0})}),r=n[t+1].fold(function(){var e=n.slice(t+1);return ct(e,function(n,t){return n.map(function(n){return{value:n,delta:t+1}})})},function(n){return D.some({value:n,delta:1})});return e.bind(function(n){return r.map(function(t){var e=t.delta+n.delta;return Math.abs(t.value-n.value)/e})})},lc=function(){var n=qe().browser;return n.isIE()||n.isEdge()},fc=function(n,t){var e=parseFloat(n);return isNaN(e)?t:e},sc=function(n,t,e){return fc(Rr(n,t),e)},dc=function(n){var t=n.dom().getBoundingClientRect().height,e=Rr(n,"box-sizing");if("border-box"===e)return t;var r=sc(n,"padding-top",0),o=sc(n,"padding-bottom",0),u=sc(n,"border-top-width",0),i=sc(n,"border-bottom-width",0),c=u+i;return t-r-o-c},mc=function(n){var t=n.dom().getBoundingClientRect().width,e=Rr(n,"box-sizing");if("border-box"===e)return t;var r=sc(n,"padding-left",0),o=sc(n,"padding-right",0),u=sc(n,"border-left-width",0),i=sc(n,"border-right-width",0),c=u+i;return t-r-o-c},gc=function(n){return lc()?dc(n):sc(n,"height",Fi(n))},pc=function(n){return lc()?mc(n):sc(n,"width",qi(n))},vc=/(\d+(\.\d+)?)(\w|%)*/,hc=/(\d+(\.\d+)?)%/,bc=/(\d+(\.\d+)?)px|em/,wc=function(n,t){var e=or(n).getOr(yr(Ze(n)));return t(n)/t(e)*100},yc=function(n,t){xr(n,"width",t+"px")},Sc=function(n,t){xr(n,"width",t+"%")},Cc=function(n,t){xr(n,"height",t+"px")},xc=function(n){return Dr(n,"height").getOrThunk(function(){return gc(n)+"px"})},Tc=function(n,t,e,r){var o=Ro(n).map(function(n){var r=e(n);return Math.floor(t/100*r)}).getOr(t);return r(n,o),o},Rc=function(n,t,e,r){var o=parseInt(n,10);return Ht(n,"%")&&"table"!==xt(t)?Tc(t,o,e,r):o},Oc=function(n){var t=xc(n);return t?Rc(t,n,Fi,Cc):Fi(n)},Dc=function(n,t,e){var r=e(n),o=go(n,t);return r/o},Ac=function(n){var t=Dr(n,"width");return t.fold(function(){return D.from(Mt(n,"width"))},function(n){return D.some(n)})},Bc=function(n,t){return n/t.pixelWidth()*100},Ic=function(n,t,e){var r=hc.exec(t);if(null!==r)return parseFloat(r[1]);var o=pc(n);return Bc(o,e)},Pc=function(n,t){var e=Ac(n);return e.fold(function(){var e=qi(n);return Bc(e,t)},function(e){return Ic(n,e,t)})},kc=function(n,t){return n/100*t.pixelWidth()},Ec=function(n,t,e){var r=bc.exec(t);if(null!==r)return parseInt(r[1],10);var o=hc.exec(t);if(null!==o){var u=parseFloat(o[1]);return kc(u,e)}return pc(n)},Mc=function(n,t){var e=Ac(n);return e.fold(function(){return pc(n)},function(e){return Ec(n,e,t)})},Nc=function(n){return Dc(n,"rowspan",Oc)},_c=function(n){var t=Ac(n);return t.bind(function(n){var t=vc.exec(n);return null!==t?D.some({width:h(parseFloat(t[1])),unit:h(t[3])}):D.none()})},Wc=function(n,t,e){xr(n,"width",t+e)},jc=function(n){return qi(n)+"px"},zc=function(n){return wc(n,qi)+"%"},Fc=function(n){return Ac(n).exists(function(n){return hc.test(n)})},Lc=function(n){return Ac(n).exists(function(n){return bc.test(n)})},Hc=function(n){return Ac(n).isNone()},qc=h(hc),Vc=h(bc),Uc=function(n,t,e){return Dr(n,t).fold(function(){return e(n)+"px"},function(n){return n})},Kc=function(n,t){return Uc(n,"width",function(n){return Mc(n,t)})},$c=function(n){return Uc(n,"height",Nc)},Gc=function(n,t,e,r,o){var u=uc(n),i=K(u,function(n){return n.map(t.edge)});return K(u,function(n,t){var u=n.filter(w(po));return u.fold(function(){var n=ac(i,t);return r(n)},function(n){return e(n,o)})})},Xc=function(n){return n.map(function(n){return n+"px"}).getOr("")},Yc=function(n,t,e){return Gc(n,t,Kc,Xc,e)},Jc=function(n,t,e){return Gc(n,t,Pc,function(n){return n.fold(function(){return e.minCellWidth()},function(n){return n/e.pixelWidth()*100})},e)},Qc=function(n,t,e){return Gc(n,t,Mc,function(n){return n.getOrThunk(e.minCellWidth)},e)},Zc=function(n,t,e,r){var o=cc(n),u=K(o,function(n){return n.map(t.edge)});return K(o,function(n,t){var o=n.filter(w(vo));return o.fold(function(){var n=ac(u,t);return r(n)},function(n){return e(n)})})},na=function(n,t){return Zc(n,t,Nc,function(n){return n.getOrThunk(wo)})},ta=function(n,t){return Zc(n,t,$c,Xc)},ea=di.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),ra=function(n,t,e){var r=e.substring(0,e.length-n.length),o=parseFloat(r);return r===o.toString()?t(o):ea.invalid(e)},oa=function(n){return Ht(n,"%")?ra("%",ea.percent,n):Ht(n,"px")?ra("px",ea.pixels,n):ea.invalid(n)},ua=te(te({},ea),{from:oa}),ia=function(n,t){return K(n,function(n){var e=ua.from(n);return e.fold(function(){return n},function(n){var e=n/t*100;return e+"%"},function(n){return n+"%"})})},ca=function(n,t,e){var r=e/t;return K(n,function(n){var t=ua.from(n);return t.fold(function(){return n},function(n){return n*r+"px"},function(n){return n/100*e+"px"})})},aa=function(n,t){var e=n.fold(function(){return h("")},function(n){var e=n/t;return h(e+"px")},function(n){var e=n/t;return h(e+"px")});return U(t,e)},la=function(n,t,e){return n.fold(function(){return t},function(n){return ca(t,e,n)},function(){return ia(t,e)})},fa=function(n,t,e){var r=ua.from(e),o=rt(n,function(n){return"0px"===n})?aa(r,n.length):la(r,n,t);return ga(o)},sa=function(n,t){return 0===n.length?t:Y(n,function(n,t){return ua.from(t).fold(h(0),b,b)+n},0)},da=function(n,t){var e=Math.floor(n);return{value:e+t,remainder:n-e}},ma=function(n,t){return ua.from(n).fold(h(n),function(n){return n+t+"px"},function(n){return n+t+"%"})},ga=function(n){if(0===n.length)return n;var t=Y(n,function(n,t){var e=ua.from(t).fold(function(){return{value:t,remainder:0}},function(n){return da(n,"px")},function(n){return{value:n+"%",remainder:0}});return{output:[e.value].concat(n.output),remainder:n.remainder+e.remainder}},{output:[],remainder:0}),e=t.output;return e.slice(0,e.length-1).concat([ma(e[e.length-1],Math.round(t.remainder))])},pa=ua.from,va=function(n,t,e){$(t,function(t){var r=n.slice(t.column(),t.colspan()+t.column()),o=sa(r,bo());xr(t.element(),"width",o+e)})},ha=function(n,t,e,r){$(e,function(t){var e=n.slice(t.row(),t.rowspan()+t.row()),o=sa(e,wo());xr(t.element(),"height",o+r)}),$(t,function(t,e){xr(t.element(),"height",n[e])})},ba=function(n){return pa(n).fold(h("px"),h("px"),h("%"))},wa=function(n,t,e,r,o){var u=_o.fromTable(n),i=u.all,c=_o.justCells(u);t.each(function(t){var e=ba(t),i=qi(n),a=Yc(u,r,o),l=fa(a,i,t);va(l,c,e),xr(n,"width",t)}),e.each(function(t){var e=ba(t),r=Fi(n),o=ta(u,ec),a=fa(o,r,t);ha(a,i,c,e),xr(n,"height",t)})},ya=Fc,Sa=Lc,Ca=Hc,xa=zc,Ta={ltr:rc,rtl:oc},Ra=function(n){var t=function(t){return n(t).isRtl()?Ta.rtl:Ta.ltr},e=function(n,e){return t(e).delta(n,e)},r=function(n,e){return t(e).positions(n,e)},o=function(n){return t(n).edge(n)};return{delta:e,edge:o,positions:r}},Oa=function(){for(var n=[],t=0;t0&&t=0){var u=Math.max(r.minCellWidth(),o[t]-e);return i(o.slice(0,n)).concat([e,u-o[t]]).concat(i(o.slice(t+1)))}var c=Math.max(r.minCellWidth(),o[n]+e),a=o[n]-c;return i(o.slice(0,n)).concat([c-o[n],a]).concat(i(o.slice(t+1)))},f=l,s=function(n,t,e){return l(t,e)},d=function(n,t){if(e>=0)return i(o.slice(0,t)).concat([e]);var u=Math.max(r.minCellWidth(),o[t]+e);return i(o.slice(0,t)).concat([u-o[t]])};return u.fold(c,a,f,s,d)},Ea=function(n,t,e){for(var r=0,o=n;t>o;o++)r+=void 0!==e[o]?e[o]:0;return r},Ma=function(n,t){var e=_o.justCells(n);return K(e,function(n){var e=Ea(n.column(),n.column()+n.colspan(),t);return{element:n.element(),width:e,colspan:n.colspan()}})},Na=function(n,t){var e=_o.justCells(n);return K(e,function(n){var e=Ea(n.row(),n.row()+n.rowspan(),t);return{element:n.element,height:h(e),rowspan:n.rowspan}})},_a=function(n,t){return K(n.all,function(n,e){return{element:n.element,height:h(t[e])}})},Wa=function(n){return Y(n,function(n,t){return n+t},0)},ja=function(n,t,e,r,o){var u=o.getCellDelta(t),i=_o.fromTable(n),c=o.getWidths(i,r,o),a=ka(c,e,u,o),l=K(a,function(n,t){return n+c[t]}),f=Ma(i,l);$(f,function(n){o.setElementWidth(n.element,n.width)}),e===i.grid.columns()-1&&o.adjustTableWidth(u)},za=function(n,t,e,r){var o=_o.fromTable(n),u=na(o,r),i=K(u,function(n,r){return e===r?Math.max(t+n,wo()):n}),c=Na(o,i),a=_a(o,i);$(a,function(n){Cc(n.element(),n.height())}),$(c,function(n){Cc(n.element(),n.height())});var l=Wa(i);Cc(n,l)},Fa=function(n,t,e,r){var o=_o.generate(t),u=r.getWidths(o,e,r),i=Ma(o,u);$(i,function(n){r.setElementWidth(n.element,n.width)})},La=function(n,t,e,r,o,u,i){return{target:h(n),x:h(t),y:h(e),stop:r,prevent:o,kill:u,raw:h(i)}},Ha=function(n){var t=Qt.fromDom(vr(n).getOr(n.target)),e=function(){return n.stopPropagation()},r=function(){return n.preventDefault()},o=p(r,e);return La(t,n.clientX,n.clientY,e,r,o,n)},qa=function(n,t){return function(e){n(e)&&t(Ha(e))}},Va=function(n,e,r,o,u){var i=qa(r,o);return n.dom().addEventListener(e,i,u),{unbind:t(Ka,n,e,i,u)}},Ua=function(n,t,e,r){return Va(n,t,e,r,!1)},Ka=function(n,t,e,r){n.dom().removeEventListener(t,e,r)},$a=h(!0),Ga=function(n,t,e){return Ua(n,t,$a,e)},Xa=Ha,Ya=function(n,t){var e=Mt(n,t);return void 0===e||""===e?[]:e.split(" ")},Ja=function(n,t,e){var r=Ya(n,t),o=r.concat([e]);return kt(n,t,o.join(" ")),!0},Qa=function(n,t,e){var r=X(Ya(n,t),function(n){return n!==e});return r.length>0?kt(n,t,r.join(" ")):Wt(n,t),!1},Za=function(n){return void 0!==n.dom().classList},nl=function(n){return Ya(n,"class")},tl=function(n,t){return Ja(n,"class",t)},el=function(n,t){return Qa(n,"class",t)},rl=function(n,t){Za(n)?n.dom().classList.add(t):tl(n,t)},ol=function(n){var t=Za(n)?n.dom().classList:nl(n);0===t.length&&Wt(n,"class")},ul=function(n,t){if(Za(n)){var e=n.dom().classList;e.remove(t)}else el(n,t);ol(n)},il=function(n,t){return Za(n)&&n.dom().classList.contains(t)},cl=function(n){var t=n.replace(/\./g,"-"),e=function(n){return t+"-"+n};return{resolve:e}},al=cl("ephox-dragster"),ll=al.resolve,fl=function(n){var t=te({layerClass:ll("blocker")},n),e=Qt.fromTag("div");kt(e,"role","presentation"),Tr(e,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),rl(e,ll("blocker")),rl(e,t.layerClass);var r=function(){return e},o=function(){zr(e)};return{element:r,destroy:o}},sl=function(n){return n.slice(0).sort()},dl=function(n,t){throw new Error("All required keys ("+sl(n).join(", ")+") were not specified. Specified keys were: "+sl(t).join(", ")+".")},ml=function(n){throw new Error("Unsupported keys for object: "+sl(n).join(", "))},gl=function(n,t){if(!E(t))throw new Error("The "+n+" fields must be an array. Was: "+t+".");$(t,function(t){if(!P(t))throw new Error("The value "+t+" in the "+n+" fields was not a string.")})},pl=function(n,t){throw new Error("All values need to be of type: "+t+". Keys ("+sl(n).join(", ")+") were not.")},vl=function(n){var t=sl(n),e=Z(t,function(n,e){return e0&&pl(i,e.label),r}},wl=function(n,t){var e=X(t,function(t){return!q(n,t)});e.length>0&&ml(e)},yl=function(n){return hl(wl,n)},Sl=yl(["compare","extract","mutate","sink"]),Cl=yl(["element","start","stop","destroy"]),xl=yl(["forceDrop","drop","move","delayDrop"]),Tl=function(n,t){return Ii(t.left()-n.left(),t.top()-n.top())},Rl=function(n){return D.some(Ii(n.x(),n.y()))},Ol=function(n,t){n.mutate(t.left(),t.top())},Dl=function(n,t){var e=fl(t),r=Ga(e.element(),"mousedown",n.forceDrop),o=Ga(e.element(),"mouseup",n.drop),u=Ga(e.element(),"mousemove",n.move),i=Ga(e.element(),"mouseout",n.delayDrop),c=function(){e.destroy(),o.unbind(),u.unbind(),i.unbind(),r.unbind()},a=function(n){Er(n,e.element())},l=function(){zr(e.element())};return Cl({element:e.element,start:a,stop:l,destroy:c})},Al=Sl({compare:Tl,extract:Rl,sink:Dl,mutate:Ol}),Bl=function(t,e){var r=null,o=function(){null!==r&&(n.clearTimeout(r),r=null)},u=function(){for(var o=[],u=0;u0?o.positions(e,t):[];$l(n,c,i,Vi(t));var a=r.length>0?u.positions(r,t):[];Kl(n,a,i,Li(t))},Xl=function(n,t,e,r){Vl(n);var o=_o.fromTable(t),u=cc(o),i=uc(o);Gl(n,t,u,i,e,r)},Yl=function(n,t){var e=ro(n.parent(),"."+Fl);$(e,t)},Jl=function(n){Yl(n,function(n){xr(n,"display","none")})},Ql=function(n){Yl(n,function(n){xr(n,"display","block")})},Zl=function(n){return il(n,Ll)},nf=function(n){return il(n,Hl)},tf=Nl("resizer-bar-dragging"),ef=function(n,e,r){var o=Wl(),u=Pl(o,{}),i=D.none(),c=function(n,t){return D.from(Mt(n,t))};o.events.drag.bind(function(n){c(n.target(),"data-row").each(function(){var t=ho(n.target(),"top");xr(n.target(),"top",t+n.yDelta()+"px")}),c(n.target(),"data-column").each(function(){var t=ho(n.target(),"left");xr(n.target(),"left",t+n.xDelta()+"px")})});var a=function(n,t){var e=ho(n,t),r=mo(n,"data-initial-"+t,0);return e-r};u.events.stop.bind(function(){o.get().each(function(t){i.each(function(o){c(t,"data-row").each(function(n){var e=a(t,"top");Wt(t,"data-initial-top"),v.trigger.adjustHeight(o,e,parseInt(n,10))}),c(t,"data-column").each(function(n){var e=a(t,"left");Wt(t,"data-initial-left"),v.trigger.adjustWidth(o,e,parseInt(n,10))}),Xl(n,o,r,e)})})});var l=function(t,e){v.trigger.startAdjust(),o.assign(t),kt(t,"data-initial-"+e,ho(t,e)),rl(t,tf),xr(t,"opacity","0.2"),u.go(n.parent())},f=Ga(n.parent(),"mousedown",function(n){Zl(n.target())&&l(n.target(),"top"),nf(n.target())&&l(n.target(),"left")}),s=function(t){return Ge(t,n.view())},d=function(n){return so(n,"table",s).filter(function(n){return El(n,s).exists(kl)})},m=Ga(n.view(),"mouseover",function(t){d(t.target()).fold(function(){br(t.target())&&Vl(n)},function(t){i=D.some(t),Xl(n,t,r,e)})}),g=function(){f.unbind(),m.unbind(),u.destroy(),Vl(n)},p=function(t){Xl(n,t,r,e)},v=Aa({adjustHeight:Da(["table","delta","row"]),adjustWidth:Da(["table","delta","column"]),startAdjust:Da([])});return{destroy:g,refresh:p,on:u.on,off:u.off,hideBars:t(Jl,n),showBars:t(Ql,n),events:v.registry}},rf=function(n,t,e){var r=ec,o=ef(n,t,r),u=Aa({beforeResize:Da(["table"]),afterResize:Da(["table"]),startDrag:Da([])});return o.events.adjustHeight.bind(function(n){var t=n.table();u.trigger.beforeResize(t);var e=r.delta(n.delta(),t);za(t,e,n.row(),r),u.trigger.afterResize(t)}),o.events.startAdjust.bind(function(){u.trigger.startDrag()}),o.events.adjustWidth.bind(function(n){var r=n.table();u.trigger.beforeResize(r);var o=t.delta(n.delta(),r),i=e(r);ja(r,o,n.column(),t,i),u.trigger.afterResize(r)}),{on:o.on,off:o.off,hideBars:o.hideBars,showBars:o.showBars,destroy:o.destroy,events:u.registry}},of={create:rf},uf=function(n,t){return n.fire("newrow",{node:t})},cf=function(n,t){return n.fire("newcell",{node:t})},af=function(n,t,e,r){n.fire("ObjectResizeStart",{target:t,width:e,height:r})},lf=function(n,t,e,r){n.fire("ObjectResized",{target:t,width:e,height:r})},ff=function(n,t,e,r,o){n.fire("TableSelectionChange",{cells:t,start:e,finish:r,otherCells:o})},sf=function(n){n.fire("TableSelectionClear")},df="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",mf={"border-collapse":"collapse",width:"100%"},gf=function(n){if(kf(n)){var t=n.getBody().offsetWidth;return te(te({},mf),{width:t+"px"})}return Ef(n)?pt(mf,function(n,t){return"width"!==t}):mf},pf={border:"1"},vf=function(n){return n.getParam("table_sizing_mode","auto")},hf=function(n){return n.getParam("table_responsive_width")},bf=function(n){return n.getParam("table_default_attributes",pf,"object")},wf=function(n){return n.getParam("table_default_styles",gf(n),"object")},yf=function(n){return n.getParam("table_resize_bars",!0,"boolean")},Sf=function(n){return n.getParam("table_tab_navigation",!0,"boolean")},Cf=function(n){return n.getParam("table_cell_advtab",!0,"boolean")},xf=function(n){return n.getParam("table_row_advtab",!0,"boolean")},Tf=function(n){return n.getParam("table_advtab",!0,"boolean")},Rf=function(n){return n.getParam("table_appearance_options",!0,"boolean")},Of=function(n){return n.getParam("table_grid",!0,"boolean")},Df=function(n){return n.getParam("table_style_by_css",!1,"boolean")},Af=function(n){return n.getParam("table_cell_class_list",[],"array")},Bf=function(n){return n.getParam("table_row_class_list",[],"array")},If=function(n){return n.getParam("table_class_list",[],"array")},Pf=function(n){return"relative"===vf(n)||hf(n)===!0},kf=function(n){return"fixed"===vf(n)||hf(n)===!1},Ef=function(n){return"responsive"===vf(n)},Mf=function(n){return n.getParam("table_toolbar",df)},Nf=function(n){var t="section",e=n.getParam("table_header_type",t,"string"),r=["section","cells","sectionCells","auto"];return q(r,e)?e:t},_f=function(n){var t=n.getParam("table_clone_elements");return P(t)?D.some(t.split(/[ ,]/)):Array.isArray(t)?D.some(t):D.none()},Wf=function(n){var t=n.getParam("object_resizing",!0);return P(t)?"table"===t:t},jf=function(n){return n.nodeName.toLowerCase()},zf=function(n){return Qt.fromDom(n.getBody())},Ff=function(n){return n.getBoundingClientRect().width},Lf=function(n){return n.getBoundingClientRect().height},Hf=function(n){return function(t){return Ge(t,zf(n))}},qf=function(n){return n?n.replace(/px$/,""):""},Vf=function(n){return/^\d+(\.\d+)?$/.test(n)?n+"px":n},Uf=function(n){Wt(n,"data-mce-style"),$(To(n),function(n){return Wt(n,"data-mce-style")})},Kf=function(n,t){var e=n.dom.getStyle(t,"width")||n.dom.getAttrib(t,"width");return D.from(e).filter(Ut)},$f=function(n){return/^(\d+(\.\d+)?)%$/.test(n)},Gf=function(n){return"rtl"===Rr(n,"direction")?"rtl":"ltr"},Xf={isRtl:h(!1)},Yf={isRtl:h(!0)},Jf=function(n){var t=Gf(n);return"rtl"===t?Yf:Xf},Qf=function(n){var t=n,e=function(){return t},r=function(n){t=n};return{get:e,set:r}},Zf=function(n){var t=function(){return qi(n)},e=h(0);return{width:t,pixelWidth:t,getWidths:Qc,getCellDelta:e,singleColumnWidth:h([0]),minCellWidth:e,setElementWidth:g,adjustTableWidth:g,label:"none"}},ns=function(n,t){var e=Qf(parseFloat(n)),r=Qf(qi(t)),o=function(n){return n/r.get()*100},u=function(n){return[100-n]},i=function(){return bo()/r.get()*100},c=function(n){var o=e.get(),u=n/100*o,i=o+u;Sc(t,i),e.set(i),r.set(qi(t))};return{width:e.get,pixelWidth:r.get,getWidths:Jc,getCellDelta:o,singleColumnWidth:u,minCellWidth:i,setElementWidth:Sc,adjustTableWidth:c,label:"percent"}},ts=function(n,t){var e=Qf(n),r=e.get,o=b,u=function(n,t){var e=Math.max(bo(),n+t);return[e-n]},i=function(n){var o=r()+n;yc(t,o),e.set(o)};return{width:r,pixelWidth:r,getWidths:Qc,getCellDelta:o,singleColumnWidth:u,minCellWidth:bo,setElementWidth:yc,adjustTableWidth:i,label:"pixel"}},es=function(n,t){var e=qc().exec(t);if(null!==e)return ns(e[1],n);var r=Vc().exec(t);if(null!==r){var o=parseInt(r[1],10);return ts(o,n)}var u=qi(n);return ts(u,n)},rs=function(n){var t=Ac(n);return t.fold(function(){return Zf(n)},function(t){return es(n,t)})},os={getTableSize:rs,pixelSize:ts,percentageSize:ns,noneSize:Zf},us=function(n,t){if(Pf(n)){var e=Kf(n,t.dom()).filter($f).getOrThunk(function(){return xa(t)});return os.percentageSize(e,t)}return kf(n)?os.pixelSize(qi(t),t):os.getTableSize(t)},is=function(n){Wt(n,"width")},cs=function(n,t,e){var r=zc(n);wa(n,D.some(r),D.none(),t,e),is(n)},as=function(n,t,e){var r=jc(n);wa(n,D.some(r),D.none(),t,e),is(n)},ls=function(n){Ar(n,"width"),$(To(n),function(n){Ar(n,"width"),is(n)}),is(n)},fs=function(n,t){var e=Ra(Jf),r=us(n,t);cs(t,e,r)},ss=function(n,t){var e=Ra(Jf),r=us(n,t);as(t,e,r)},ds=ls,ms=function(n){$(To(n),function(n){var t=Rr(n,"width");xr(n,"width",t),Wt(n,"width")})},gs=function(){var n=Qt.fromTag("div");return Tr(n,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Er(wr(),n),n},ps=function(n){return n.inline?ji.body(zf(n),gs()):ji.only(Qt.fromDom(n.getDoc()))},vs=function(n,t){n.inline&&zr(t.parent())},hs=function(n){var t,e,r=D.none(),o=D.none(),u=D.none(),i=function(n){return"TABLE"===n.nodeName},c=function(){return o},a=function(){return u.getOr(ji.only(Qt.fromDom(n.getBody())))},l=function(){o.each(function(n){n.destroy()}),u.each(function(t){vs(n,t)})};return n.on("init",function(){var t=Ra(Jf),e=ps(n);if(u=D.some(e),Wf(n)&&yf(n)){var i=function(t){return us(n,t)},c=of.create(e,t,i);c.on(),c.events.startDrag.bind(function(){r=D.some(n.selection.getRng())}),c.events.beforeResize.bind(function(t){var e=t.table().dom();af(n,e,Ff(e),Lf(e))}),c.events.afterResize.bind(function(t){var e=t.table(),o=e.dom();Uf(e),r.each(function(t){n.selection.setRng(t),n.focus()}),lf(n,o,Ff(o),Lf(o)),n.undoManager.add()}),o=D.some(c)}}),n.on("ObjectResizeStart",function(r){var o=r.target;if(i(o)){var u=Qt.fromDom(o);!Sa(u)&&kf(n)?ss(n,u):!ya(u)&&Pf(n)&&fs(n,u),t=r.width,e=Kf(n,o).getOr("")}}),n.on("ObjectResized",function(r){var o=r.target;if(i(o)){var u=Qt.fromDom(o);if(""===e||!$f(e)&&Ef(n))fs(n,u);else if($f(e)){var c=parseFloat(e.replace("%","")),a=r.width*c/t;xr(u,"width",a+"%")}else ms(u);Uf(u)}}),n.on("SwitchMode",function(){c().each(function(t){n.mode.isReadOnly()?t.hideBars():t.showBars()})}),{lazyResize:c,lazyWire:a,destroy:l}},bs=function(n,t){return{element:h(n),offset:h(t)}},ws=function(n,t,e){return n.property().isText(t)&&0===n.property().getText(t).trim().length||n.property().isComment(t)?e(t).bind(function(t){return ws(n,t,e).orThunk(function(){return D.some(t)})}):D.none()},ys=function(n,t){if(n.property().isText(t))return n.property().getText(t).length;var e=n.property().children(t);return e.length},Ss=function(n,t){var e=ws(n,t,n.query().prevSibling).getOr(t);if(n.property().isText(e))return bs(e,ys(n,e));var r=n.property().children(e);return r.length>0?Ss(n,r[r.length-1]):bs(e,ys(n,e))},Cs=Ss,xs=o(),Ts=function(n){return Cs(xs,n)},Rs=function(n,t){var e=_c(n);e.each(function(e){var r=e.width()/2;Wc(n,r,e.unit()),Wc(t,r,e.unit())})},Os=function(n){var t=_o.fromTable(n);return t.grid},Ds=function(n){for(var t=[],e=function(n){t.push(n)},r=0;r0?i(n,t):c(t)},l=[],f=[],s=[];return $(e,function(n){switch(n.section()){case"thead":l.push(n);break;case"tbody":f.push(n);break;case"tfoot":s.push(n)}}),a(l,"thead"),a(f,"tbody"),a(s,"tfoot"),{newRows:r,newCells:o}},Ps=function(n){return K(n,function(n){var t=eu(n.element());return $(n.cells(),function(n){var e=ru(n.element());Bs(e,"colspan",n.colspan(),1),Bs(e,"rowspan",n.rowspan(),1),Er(t,e)}),t})},ks=function(n,t,e){var r=n.cells(),o=r.slice(0,t),u=r.slice(t),i=o.concat([e]).concat(u);return Ms(n,i)},Es=function(n,t,e){var r=n.cells();r[t]=e},Ms=function(n,t){return Xr(t,n.section())},Ns=function(n,t){var e=n.cells(),r=K(e,t);return Xr(r,n.section())},_s=function(n,t){return n.cells()[t]},Ws=function(n,t){return _s(n,t).element()},js=function(n){return n.cells().length},zs=function(n,t){return K(n,function(n){return _s(n,t)})},Fs=function(n,t){return n[t]},Ls=function(n,t){if(0===n.length)return 0;var e=n[0],r=nt(n,function(n){return!t(e.element(),n.element())});return r.fold(function(){return n.length},function(n){return n})},Hs=function(n,t,e,r){var o=Fs(n,t).cells().slice(e),u=Ls(o,r),i=zs(n,e).slice(t),c=Ls(i,r);return{colspan:u,rowspan:c}},qs=function(n,t){var e=K(n,function(n){return K(n.cells(),function(){return!1})}),r=function(n,t,r,o){for(var u=n;n+r>u;u++)for(var i=t;t+o>i;i++)e[u][i]=!0};return K(n,function(o,u){var i=et(o.cells(),function(o,i){if(e[u][i]===!1){var c=Hs(n,u,i,t);return r(u,i,c.rowspan,c.colspan),[Vr(o.element(),c.rowspan,c.colspan,o.isNew())]}return[]});return Yr(i,o.section())})},Vs=function(n,t,e){for(var r=[],o=0;o0?D.some({cells:r,generators:t.generators,clipboard:t.clipboard}):D.none()},Zs=function(n,t){return t.mergable()},nd=function(n,t){return t.unmergable()},td=function(n,t){var e=K(t.selection(),function(t){return xo(t).bind(function(t){return Gs(n,t)})}),r=Ds(e);return r.length>0?D.some(r):D.none()},ed=function(n,t,e,r){if(0===n.length)return n;for(var o=t.startRow();o<=t.finishRow();o++)for(var u=t.startCol();u<=t.finishCol();u++)Es(n[o],u,$r(r(),!1));return n},rd=function(n,t,e,r){for(var o=!0,u=0;u0&&t0&&t=t.length||n.column()>js(t[0]))return fd.error("invalid start address out of table bounds, row: "+n.row()+", column: "+n.column());var r=t.slice(n.row()),o=r[0].cells().slice(n.column()),u=js(e[0]),i=e.length;return fd.value({rowDelta:r.length-i,colDelta:o.length-u})},dd=function(n,t){var e=js(n[0]),r=js(t[0]);return{rowDelta:0,colDelta:e-r}},md=function(n,t){var e=n.length,r=t.length;return{rowDelta:e-r,colDelta:0}},gd=function(n,t){return K(n,function(){return $r(t.cell(),!0)})},pd=function(n,t,e){return n.concat(U(t,function(){return Ms(n[n.length-1],gd(n[n.length-1].cells(),e))}))},vd=function(n,t,e){return K(n,function(n){return Ms(n,n.cells().concat(gd(U(t,b),e)))})},hd=function(n,t,e){var r=t.colDelta<0?vd:b,o=t.rowDelta<0?pd:b,u=r(n,Math.abs(t.colDelta),e);return o(u,Math.abs(t.rowDelta),e)},bd=function(n,e,r,o){var u=_s(n[e],r),i=t(o,u.element()),c=n[e];return n.length>1&&js(c)>1&&(r>0&&i(Ws(c,r-1))||r0&&i(Ws(n[e-1],r))||es;s++)for(var d=i;f>d;d++){bd(t,s,d,o)&&rd(t,Ws(t[s],d),o,r.cell);var m=Ws(e[s-u],d-i),g=r.replace(m);Es(t[s],d,$r(g,!0))}return t},yd=function(n,t,e,r,o){var u=sd(n,t,e);return u.map(function(u){var i=hd(t,u,r);return wd(n,i,e,r,o)})},Sd=function(n,t,e,r,o){ud(t,n,o,r.cell);var u=md(e,t),i=hd(e,u,r),c=md(t,i),a=hd(t,c,r);return K(a,function(t,e){var r=t.cells().slice(0,n).concat(i[e].cells()).concat(t.cells().slice(n,t.cells().length));return Ms(t,r)})},Cd=function(n,t,e,r,o){id(t,n,o,r.cell);var u=dd(e,t),i=hd(e,u,r),c=dd(t,i),a=hd(t,c,r);return a.slice(0,n).concat(i).concat(a.slice(n,a.length))},xd=function(n,t,e,r,o){var u=n.slice(0,t),i=n.slice(t),c=Ns(n[e],function(e,u){var i=t>0&&t0&&t0})},Od=function(n,t,e){return n.slice(0,t).concat(n.slice(e+1))},Dd=function(n,t,e,r){var o=function(n){return V(t,function(t){return e(n.element(),t.element())})};return K(n,function(n){return Ns(n,function(n){return o(n)?$r(r(n.element(),e),!0):n})})},Ad=function(n,t,e,r){return void 0!==Ws(n[t],e)&&t>0&&r(Ws(n[t-1],e),Ws(n[t],e))},Bd=function(n,t,e){return t>0&&e(Ws(n,t-1),Ws(n,t))},Id=function(n,t,e,r){var o=et(n,function(r,o){var u=Ad(n,o,t,e)||Bd(r,t,e);return u?[]:[_s(r,t)]});return Dd(n,o,e,r)},Pd=function(n,t,e,r){var o=n[t],u=et(o.cells(),function(r,u){var i=Ad(n,t,u,e)||Bd(o,u,e);return i?[]:[r]});return Dd(n,u,e,r)},kd=yl(["cell","row","replace","gap"]),Ed=function(n){var t=mo(n,"colspan",1),e=mo(n,"rowspan",1);return{element:h(n),colspan:h(t),rowspan:h(e)}},Md=function(n,t){void 0===t&&(t=Ed),kd(n);var e=Qf(D.none()),r=function(t){return n.cell(t)},o=function(n){var e=t(n);return r(e)},u=function(n){var t=o(n);return e.get().isNone()&&e.set(D.some(t)),i=D.some({item:n,replacement:t}),t},i=D.none(),c=function(n,t){return i.fold(function(){return u(n)},function(e){return t(n,e.item)?e.replacement:u(n)})};return{getOrInit:c,cursor:e.get}},Nd=function(n,t){return function(e){var r=Qf(D.none());kd(e);var o=[],u=function(n,t){return Z(o,function(e){return t(e.item,n)})},i=function(u){var i={scope:n},c=e.replace(u,t,i);return o.push({item:u,sub:c}),r.get().isNone()&&r.set(D.some(c)),c},c=function(n,t){return u(n,t).fold(function(){return i(n)},function(e){return t(n,e.item)?e.sub:i(n)})};return{replaceOrInit:c,cursor:r.get}}},_d=function(n){kd(n);var t=Qf(D.none()),e=function(e){return t.get().isNone()&&t.set(D.some(e)),function(){var t=n.cell({element:h(e),colspan:h(1),rowspan:h(1)});return Ar(t,"width"),Ar(e,"width"),t}};return{combine:e,cursor:t.get}},Wd={modification:Md,transform:Nd,merging:_d},jd=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],zd=function(n,t){var e=n.property().name(t);return q(["ol","ul"],e)},Fd=function(n,t){var e=n.property().name(t);return q(jd,e)},Ld=function(n,t){return q(["br","img","hr","input"],n.property().name(t))},Hd=o(),qd=function(n){return Fd(Hd,n)},Vd=function(n){return zd(Hd,n)},Ud=function(n){return Ld(Hd,n)},Kd=function(n){var t=function(n){return"br"===xt(n)},e=function(n){return rt(n,function(n){return t(n)||At(n)&&0===Uo(n).trim().length})},r=function(n){return"li"===xt(n)||oo(n,Vd).isSome()},o=function(n){return ir(n).map(function(n){return qd(n)?!0:Ud(n)?"img"===xt(n)?!1:!0:!1}).getOr(!1)},u=function(n){return Zo(n).bind(function(e){var u=o(e);return er(e).map(function(o){return u===!0||r(o)||t(e)||qd(o)&&!Ge(n,o)?[]:[Qt.fromTag("br")]})}).getOr([])},i=function(){var t=et(n,function(n){var t=cr(n);return e(t)?[]:t.concat(u(n))});return 0===t.length?[Qt.fromTag("br")]:t},c=i();jr(n[0]),Wr(n[0],c)},$d=function(n){var t=To(n);0===t.length&&zr(n)},Gd=function(n,t){return{grid:h(n),cursor:h(t)}},Xd=function(n,t,e){return Yd(n,t,e).orThunk(function(){return Yd(n,0,0)})},Yd=function(n,t,e){return D.from(n[t]).bind(function(n){return D.from(n.cells()[e]).bind(function(n){return D.from(n.element())})})},Jd=function(n,t,e){return Gd(n,Yd(n,t,e))},Qd=function(n){return J(n,function(n,t){return V(n,function(n){return n.row()===t.row()})?n:n.concat([t])},[]).sort(function(n,t){return n.row()-t.row()})},Zd=function(n){return J(n,function(n,t){return V(n,function(n){return n.column()===t.column()})?n:n.concat([t])},[]).sort(function(n,t){return n.column()-t.column()})},nm=function(n,t,e,r){var o=t[0].row(),u=t[0].row(),i=Qd(t),c=J(i,function(n){return xd(n,u,o,e,r.getOrInit)},n);return Jd(c,u,t[0].column())},tm=function(n,t,e,r){var o=Qd(t),u=o[o.length-1].row(),i=o[o.length-1].row()+o[o.length-1].rowspan(),c=J(o,function(n){return xd(n,i,u,e,r.getOrInit)},n);return Jd(c,i,t[0].column())},em=function(n,t,e,r){var o=Zd(t),u=o[0].column(),i=o[0].column(),c=J(o,function(n){return Td(n,i,u,e,r.getOrInit)},n);return Jd(c,t[0].row(),i)},rm=function(n,t,e,r){var o=t[t.length-1].column(),u=t[t.length-1].column()+t[t.length-1].colspan(),i=Zd(t),c=J(i,function(n){return Td(n,u,o,e,r.getOrInit)},n);return Jd(c,t[0].row(),u)},om=function(n,t,e,r){var o=Pd(n,t.row(),e,r.replaceOrInit);return Jd(o,t.row(),t.column())},um=function(n,t,e,r){var o=Id(n,t.column(),e,r.replaceOrInit);return Jd(o,t.row(),t.column())},im=function(n,t,e,r){var o=Pd(n,t.row(),e,r.replaceOrInit);return Jd(o,t.row(),t.column())},cm=function(n,t,e,r){var o=Id(n,t.column(),e,r.replaceOrInit);return Jd(o,t.row(),t.column())},am=function(n,t){var e=Zd(t),r=Rd(n,e[0].column(),e[e.length-1].column()),o=Xd(r,t[0].row(),t[0].column());return Gd(r,o)},lm=function(n,t){var e=Qd(t),r=Od(n,e[0].row(),e[e.length-1].row()),o=Xd(r,t[0].row(),t[0].column());return Gd(r,o)},fm=function(n,t,e){var r=t.cells();Kd(r);var o=ed(n,t.bounds(),e,h(r[0]));return Gd(o,D.from(r[0]))},sm=function(n,t,e,r){var o=Y(t,function(n,t){return rd(n,t,e,r.combine(t))},n);return Gd(o,D.from(t[0]))},dm=function(n,t,e){var r=function(n,t){var e=_o.fromTable(n);return Vs(e,t,!0)},o=r(t.clipboard(),t.generators()),u=Hr(t.row(),t.column()),i=yd(u,n,o,t.generators(),e);return i.fold(function(){return Gd(n,D.some(t.element()))},function(n){var e=Xd(n,t.row(),t.column());return Gd(n,e)})},mm=function(n,t,e){var r=Ao(n,e),o=_o.generate(r);return Vs(o,t,!0)},gm=function(n,t,e){var r=n[t.cells[0].row()],o=t.cells[0].column(),u=mm(t.clipboard(),t.generators(),r),i=Sd(o,n,u,t.generators(),e),c=Xd(i,t.cells[0].row(),t.cells[0].column());return Gd(i,c)},pm=function(n,t,e){var r=n[t.cells[0].row()],o=t.cells[t.cells.length-1].column()+t.cells[t.cells.length-1].colspan(),u=mm(t.clipboard(),t.generators(),r),i=Sd(o,n,u,t.generators(),e),c=Xd(i,t.cells[0].row(),t.cells[0].column());return Gd(i,c)},vm=function(n,t,e){var r=n[t.cells[0].row()],o=t.cells[0].row(),u=mm(t.clipboard(),t.generators(),r),i=Cd(o,n,u,t.generators(),e),c=Xd(i,t.cells[0].row(),t.cells[0].column());return Gd(i,c)},hm=function(n,t,e){var r=n[t.cells[0].row()],o=t.cells[t.cells.length-1].row()+t.cells[t.cells.length-1].rowspan(),u=mm(t.clipboard(),t.generators(),r),i=Cd(o,n,u,t.generators(),e),c=Xd(i,t.cells[0].row(),t.cells[0].column());return Gd(i,c)},bm=function(n,t){var e=_o.fromTable(n),r=td(e,t);return r.bind(function(n){var t=n[n.length-1],r=n[0].column(),o=t.column()+t.colspan(),u=tt(K(e.all,function(n){return X(n.cells(),function(n){return n.column()>=r&&n.column()1},o=function(t){return e(n)===!1||Os(t).columns()>1},u=_f(n),i=function(t,e,r,o){return function(i,c){Uf(i);var a=o(),l=Qt.fromDom(n.getDoc()),f=Ra(Jf),s=su(r,l,u),d=us(n,i);return e(i)?t(a,i,c,s,f,d).bind(function(t){return $(t.newRows(),function(t){uf(n,t.dom())}),$(t.newCells(),function(t){cf(n,t.dom())}),t.cursor().map(function(t){var e=Ts(t),r=n.dom.createRng();return r.setStart(e.element().dom(),e.offset()),r.setEnd(e.element().dom(),e.offset()),r})}):D.none()}},c=i(Om,r,g,t),a=i(Rm,o,g,t),l=i(Sm,C,g,t),f=i(Cm,C,g,t),s=i(xm,C,Rs,t),d=i(Tm,C,Rs,t),m=i(Bm,C,g,t),p=i(Im,C,g,t),v=i(km,C,g,t),h=i(Em,C,g,t),b=i(Mm,C,g,t),w=i(Nm,C,g,t),y=i(Pm,C,g,t),S=function(n,t){return vt(n,"type").filter(function(n){return q(t,n)})},x=function(n,t){return S(t,["td","th"]).each(function(t){Hm(n.dom,Gm(n),t,null)})},T=function(n,t){return S(t,["header","body","footer"]).each(function(t){K(Xm(n),function(e){return qm(n,e,t)})})},R=i(Dm,C,g,t),O=i(Am,C,g,t),A=function(n){var t=Xm(n);if(t.length>0){var e=K(t,function(t){return Fm(n,t)}),r=q(e,"header"),o=q(e,"footer");if(r||o){var u=q(e,"body");return!r||u||o?r||u||!o?"":"footer":"header"}return"body"}},B=function(n){return wm(Gm(n),function(n){return"th"===jf(n)}).getOr("")},I=_m;return{deleteRow:c,deleteColumn:a,insertRowsBefore:l,insertRowsAfter:f,insertColumnsBefore:s,insertColumnsAfter:d,mergeCells:m,unmergeCells:p,pasteColsBefore:v,pasteColsAfter:h,pasteRowsBefore:b,pasteRowsAfter:w,pasteCells:y,setTableCellType:x,setTableRowType:T,makeColumnHeader:R,unmakeColumnHeader:O,getTableRowType:A,getTableCellType:B,getTableColType:I}},Jm={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"}},Qm=function(){return Qt.fromTag("th")},Zm=function(){return Qt.fromTag("td")},ng=function(n,t,e,r){for(var o=Qt.fromTag("tr"),u=0;n>u;u++){var i=t>r||e>u?Qm():Zm();e>u&&kt(i,"scope","row"),t>r&&kt(i,"scope","col"),Er(i,Qt.fromTag("br")),Er(o,i)}return o},tg=function(n,t,e,r){return U(n,function(n){return ng(t,e,r,n)})},eg=function(n,t,e,r,o,u){void 0===u&&(u=Jm);var i=Qt.fromTag("table"),c="cells"!==o;Tr(i,u.styles),Et(i,u.attributes);var a=Math.min(n,e);if(c&&e>0){var l=Qt.fromTag("thead");Er(i,l);var f="sectionCells"===o?a:0,s=tg(e,t,f,r);Wr(l,s)}var d=Qt.fromTag("tbody");Er(i,d);var m=c?n-a:n,g=c?0:e,p=tg(m,t,g,r);return Wr(d,p),i},rg=function(n){return n.dom().innerHTML},og=function(n){var t=Qt.fromTag("div"),e=Qt.fromDom(n.dom().cloneNode(!0));return Er(t,e),rg(t)},ug=function(n,t){n.selection.select(t.dom(),!0),n.selection.collapse(!0)},ig=function(n,e){fo(e,"td,th").each(t(ug,n))},cg=function(n,t){$(ro(t,"tr"),function(t){uf(n,t.dom()),$(ro(t,"th,td"),function(t){cf(n,t.dom())})})},ag=function(n){return P(n)&&-1!==n.indexOf("%")},lg=function(n,t,e,r,o){var u=wf(n),i={styles:u,attributes:bf(n)},c=eg(e,t,o,r,Nf(n),i);kt(c,"data-mce-id","__mce");var a=og(c);return n.insertContent(a),fo(zf(n),'table[data-mce-id="__mce"]').map(function(t){return kf(n)?ss(n,t):Ef(n)?ds(t):(Pf(n)||ag(u.width))&&fs(n,t),Uf(t),Wt(t,"data-mce-id"),cg(n,t),ig(n,t),t.dom()}).getOr(null)},fg=function(n,t,e,r,o){void 0===r&&(r={});var u=function(n){return j(n)&&n>0};if(u(t)&&u(e)){var i=r.headerRows||0,c=r.headerColumns||0;return lg(n,e,t,c,i)}return console.error(o),null},sg=function(n){return function(){return n().fold(function(){return[]},function(n){return K(n,function(n){return n.dom()})})}},dg=function(n){return function(t){var e=t.length>0?D.some(gu(t)):D.none();n(e)}},mg=function(n,t,e,r){return{insertTable:function(t,e,r){return void 0===r&&(r={}),fg(n,e,t,r,"Invalid values for insertTable - rows and columns values are required to insert a table.")},setClipboardRows:dg(t.setRows),getClipboardRows:sg(t.getRows),setClipboardCols:dg(t.setColumns),getClipboardCols:sg(t.getColumns),resizeHandler:e,selectionTargets:r}},gg=function(n,t,e){var r=go(n,t);1===e||1>=r?Wt(n,t):kt(n,t,Math.min(e,r))},pg=function(n,t){var e=_o.fromTable(n),r=td(e,t);return r.map(function(n){var t=n[n.length-1],r=n[0].column(),o=t.column()+t.colspan();return K(e.all,function(n){var t=X(n.cells(),function(n){return n.column()>=r&&n.column()0?D.some({name:"class",type:"selectbox",label:"Class",items:t}):D.none()},_g=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"selectbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"selectbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"selectbox",label:"H Align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"selectbox",label:"V Align",items:[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}]}],Wg=function(n){return Ng(n).fold(function(){return _g},function(n){return _g.concat(n)})},jg=function(n){return function(t,e){var r=t.dom,o=function(t,o){(!n||o)&&r.setAttrib(e,t,o)},u=function(t,o){(!n||o)&&r.setStyle(e,t,o)},i=function(r,o){(!n||o)&&(""===o?t.formatter.remove(r,{value:null},e,!0):t.formatter.apply(r,{value:o},e))};return{setAttrib:o,setStyle:u,setFormat:i}}},zg={normal:jg(!1),ifTruthy:jg(!0)},Fg=function(n,t){n.setAttrib("scope",t.scope),n.setAttrib("class",t.class),n.setStyle("width",Vf(t.width)),n.setStyle("height",Vf(t.height))},Lg=function(n,t){n.setFormat("tablecellbackgroundcolor",t.backgroundcolor),n.setFormat("tablecellbordercolor",t.bordercolor),n.setFormat("tablecellborderstyle",t.borderstyle),n.setFormat("tablecellborderwidth",Vf(t.borderwidth))},Hg=function(n,t,e){var r=n.dom,o=1===t.length;$(t,function(t){var u=e.celltype&&jf(t)!==e.celltype?r.rename(t,e.celltype):t,i=o?zg.normal(n,u):zg.ifTruthy(n,u);Fg(i,e),Cf(n)&&Lg(i,e),o&&(Sg(n,u),Cg(n,u)),e.halign&&wg(n,u,e.halign),e.valign&&yg(n,u,e.valign)})},qg=function(n,t,e){var r=e.getData();e.close(),n.undoManager.transact(function(){Hg(n,t,r),n.focus()})},Vg=function(n){var e=Gm(n);if(0!==e.length){var r=K(e,function(t){return Mg(n,t,Cf(n))}),o=Og(r),u={type:"tabpanel",tabs:[{title:"General",name:"general",items:Wg(n)},Dg("cell")]},i={type:"panel",items:[{type:"grid",columns:2,items:Wg(n)}]};n.windowManager.open({title:"Cell Properties",size:"normal",body:Cf(n)?u:i,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:o,onSubmit:t(qg,n,e)})}},Ug=function(n){var t=xg(Bf(n));return t.length>0?D.some({name:"class",type:"selectbox",label:"Class",items:t}):D.none()},Kg=[{type:"selectbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"selectbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],$g=function(n){return Ug(n).fold(function(){return Kg},function(n){return Kg.concat(n)})},Gg=function(n,t){n.setAttrib("scope",t.scope),n.setAttrib("class",t.class),n.setStyle("height",Vf(t.height))},Xg=function(n,t){n.setStyle("background-color",t.backgroundcolor),n.setStyle("border-color",t.bordercolor),n.setStyle("border-style",t.borderstyle)},Yg=function(n,t,e,r){var o=1===t.length;$(t,function(t){r.type!==jf(t.parentNode)&&qm(n,t,r.type);var u=o?zg.normal(n,t):zg.ifTruthy(n,t);Gg(u,r),xf(n)&&Xg(u,r),r.align!==e.align&&(Sg(n,t),wg(n,t,r.align))})},Jg=function(n,t,e,r){var o=r.getData();r.close(),n.undoManager.transact(function(){Yg(n,t,e,o),n.focus()})},Qg=function(n){var e=Xm(n);if(0!==e.length){var r=K(e,function(t){return Eg(n,t,xf(n))}),o=Og(r),u={type:"tabpanel",tabs:[{title:"General",name:"general",items:$g(n)},Dg("row")]},i={type:"panel",items:[{type:"grid",columns:2,items:$g(n)}]};n.windowManager.open({title:"Row Properties",size:"normal",body:xf(n)?u:i,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:o,onSubmit:t(Jg,n,e,o)})}},Zg=tinymce.util.Tools.resolve("tinymce.Env"),np=function(n,t,e){var r=e?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],o=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],u=Rf(n)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],i=[{type:"selectbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],c=t.length>0?[{type:"selectbox",name:"class",label:"Class",items:t}]:[];return r.concat(o).concat(u).concat(i).concat(c)},tp=function(n,t,e,r){if("TD"===t.tagName||"TH"===t.tagName)P(e)?n.setStyle(t,e,r):n.setStyle(t,e);else if(t.children)for(var o=0;o',t.insertBefore(r,t.firstChild)),""===u.align?Sg(n,t):wg(n,t,u.align),n.focus(),n.addVisual() +})},op=function(n,e){var r,o=n.dom,u=Pg(n,Tf(n));e===!1?(r=o.getParent(n.selection.getStart(),"table"),r?u=kg(n,r,Tf(n)):Tf(n)&&(u.borderstyle="",u.bordercolor="",u.backgroundcolor="")):(u.cols="1",u.rows="1",Tf(n)&&(u.borderstyle="",u.bordercolor="",u.backgroundcolor=""));var i=xg(If(n));i.length>0&&u.class&&(u.class=u.class.replace(/\s*mce\-item\-table\s*/g,""));var c={type:"grid",columns:2,items:np(n,i,e)},a=function(){return{type:"panel",items:[c]}},l=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[c]},Dg("table")]}},f=Tf(n)?l():a();n.windowManager.open({title:"Table Properties",size:"normal",body:f,onSubmit:t(rp,n,r),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:u})},up=function(n,e,r,o,u){var i=Hf(n),c=function(){return $m(n).each(function(t){Ro(t,i).filter(w(i)).each(function(t){var e=Qt.fromText("");if(Pr(t,e),zr(t),n.dom.isEmpty(n.getBody()))n.setContent(""),n.selection.setCursorLocation();else{var r=n.dom.createRng();r.setStart(e.dom(),0),r.setEnd(e.dom(),0),n.selection.setRng(r),n.nodeChanged()}})})},a=function(t){return $m(n).each(function(e){var r=Ef(n)||kf(n)||Pf(n);r||Ro(e,i).each(function(e){"relative"!==t||ya(e)?"fixed"!==t||Sa(e)?"responsive"!==t||Ca(e)||ds(e):ss(n,e):fs(n,e),Uf(e)})})},l=function(n){return Ro(n,i)},f=function(t){return Km(n).each(function(e){l(e).each(function(u){var i=Ci(o,u,e);t(u,i).each(function(t){n.selection.setRng(t),n.focus(),r.clear(u),Uf(u)})})})},s=function(){return Km(n).map(function(t){return l(t).bind(function(e){var r=Ci(o,e,t),u=su(g,Qt.fromDom(n.getDoc()),D.none());return vg(e,r,u)})})},d=function(){return Km(n).map(function(n){return l(n).bind(function(t){var e=Ci(o,t,n);return pg(t,e)})})},m=function(t,e){return e().each(function(e){var u=K(e,function(n){return ru(n)});Km(n).each(function(e){return l(e).each(function(i){var c=du(Qt.fromDom(n.getDoc())),a=Ti(o,e,u,c);t(i,a).each(function(t){n.selection.setRng(t),n.focus(),r.clear(i)})})})})};ft({mceTableSplitCells:function(){return f(e.unmergeCells)},mceTableMergeCells:function(){return f(e.mergeCells)},mceTableInsertRowBefore:function(){return f(e.insertRowsBefore)},mceTableInsertRowAfter:function(){return f(e.insertRowsAfter)},mceTableInsertColBefore:function(){return f(e.insertColumnsBefore)},mceTableInsertColAfter:function(){return f(e.insertColumnsAfter)},mceTableDeleteCol:function(){return f(e.deleteColumn)},mceTableDeleteRow:function(){return f(e.deleteRow)},mceTableCutCol:function(){return d().each(function(n){u.setColumns(n),f(e.deleteColumn)})},mceTableCutRow:function(){return s().each(function(n){u.setRows(n),f(e.deleteRow)})},mceTableCopyCol:function(){return d().each(function(n){return u.setColumns(n)})},mceTableCopyRow:function(){return s().each(function(n){return u.setRows(n)})},mceTablePasteColBefore:function(){return m(e.pasteColsBefore,u.getColumns)},mceTablePasteColAfter:function(){return m(e.pasteColsAfter,u.getColumns)},mceTablePasteRowBefore:function(){return m(e.pasteRowsBefore,u.getRows)},mceTablePasteRowAfter:function(){return m(e.pasteRowsAfter,u.getRows)},mceTableDelete:c,mceTableSizingMode:function(n,t){return a(t)}},function(t,e){return n.addCommand(e,t)}),ft({mceTableCellType:function(t,r){return e.setTableCellType(n,r)},mceTableRowType:function(t,r){return e.setTableRowType(n,r)}},function(t,e){return n.addCommand(e,t)}),n.addCommand("mceTableColType",function(n,t){return vt(t,"type").each(function(n){return f("th"===n?e.makeColumnHeader:e.unmakeColumnHeader)})}),ft({mceTableProps:t(op,n,!1),mceTableRowProps:t(Qg,n),mceTableCellProps:t(Vg,n)},function(t,e){return n.addCommand(e,function(){return t()})}),n.addCommand("mceInsertTable",function(t,e){k(e)&&at(e).length>0?fg(n,e.rows,e.columns,e.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):op(n,!0)}),n.addCommand("mceTableApplyCellStyle",function(t,e){if(k(e)){var r=Gm(n);0!==r.length&&ft(e,function(t,e){var o="tablecell"+e.toLowerCase().replace("-","");n.formatter.has(o)&&P(t)&&$(r,function(e){zg.normal(n,e).setFormat(o,t)})})}})},ip=function(n,t,e){var r=Hf(n),o=function(n){return Ro(n,r)};ft({mceTableRowType:function(){return t.getTableRowType(n)},mceTableCellType:function(){return t.getTableCellType(n)},mceTableColType:function(){return Km(n).bind(function(n){return o(n).map(function(r){var o=Ci(e,r,n);return t.getTableColType(r,o)})}).getOr("")}},function(t,e){return n.addQueryValueHandler(e,t)})},cp=function(){var n=Qf(D.none()),t=Qf(D.none()),e=function(n){n.set(D.none())};return{getRows:n.get,setRows:function(r){n.set(r),e(t)},clearRows:function(){return e(n)},getColumns:t.get,setColumns:function(r){t.set(r),e(n)},clearColumns:function(){return e(t)}}},ap=di.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),lp=function(n){return void 0===n&&(n=void 0),ap.none(n)},fp=te(te({},ap),{none:lp}),sp=function(n,t){return Ro(n,t).bind(function(t){var e=To(t),r=nt(e,function(t){return Ge(n,t)});return r.map(function(n){return{index:n,all:e}})})},dp=function(n,t){var e=sp(n,t);return e.fold(function(){return fp.none(n)},function(t){return t.index+1=0?fp.middle(n,t.all[t.index-1]):fp.first(n)})},gp=function(n,t,e,r){return{start:h(n),soffset:h(t),finish:h(e),foffset:h(r)}},pp={create:gp},vp=di.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),hp=function(n,t,e,r){return n.fold(t,e,r)},bp=function(n){return n.fold(b,b,b)},wp=vp.before,yp=vp.on,Sp=vp.after,Cp={before:wp,on:yp,after:Sp,cata:hp,getStart:bp},xp=di.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Tp=function(n){return xp.exact(n.start(),n.soffset(),n.finish(),n.foffset())},Rp=function(n){return n.match({domRange:function(n){return Qt.fromDom(n.startContainer)},relative:function(n){return Cp.getStart(n)},exact:function(n){return n}})},Op=xp.domRange,Dp=xp.relative,Ap=xp.exact,Bp=function(n){var t=Rp(n);return tr(t)},Ip=pp.create,Pp={domRange:Op,relative:Dp,exact:Ap,exactFromRange:Tp,getWin:Bp,range:Ip},kp=function(n,t){var e=n.document.createRange();return Ep(e,t),e},Ep=function(n,t){return n.selectNodeContents(t.dom())},Mp=function(n,t){t.fold(function(t){n.setStartBefore(t.dom())},function(t,e){n.setStart(t.dom(),e)},function(t){n.setStartAfter(t.dom())})},Np=function(n,t){t.fold(function(t){n.setEndBefore(t.dom())},function(t,e){n.setEnd(t.dom(),e)},function(t){n.setEndAfter(t.dom())})},_p=function(n,t,e){var r=n.document.createRange();return Mp(r,t),Np(r,e),r},Wp=function(n,t,e,r,o){var u=n.document.createRange();return u.setStart(t.dom(),e),u.setEnd(r.dom(),o),u},jp=function(n){return{left:h(n.left),top:h(n.top),right:h(n.right),bottom:h(n.bottom),width:h(n.width),height:h(n.height)}},zp=function(n){var t=n.getClientRects(),e=t.length>0?t[0]:n.getBoundingClientRect();return e.width>0||e.height>0?D.some(e).map(jp):D.none()},Fp=di.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Lp=function(n,t,e){return t(Qt.fromDom(e.startContainer),e.startOffset,Qt.fromDom(e.endContainer),e.endOffset)},Hp=function(n,t){return t.match({domRange:function(n){return{ltr:h(n),rtl:D.none}},relative:function(t,e){return{ltr:ee(function(){return _p(n,t,e)}),rtl:ee(function(){return D.some(_p(n,e,t))})}},exact:function(t,e,r,o){return{ltr:ee(function(){return Wp(n,t,e,r,o)}),rtl:ee(function(){return D.some(Wp(n,r,o,t,e))})}}})},qp=function(n,t){var e=t.ltr();if(e.collapsed){var r=t.rtl().filter(function(n){return n.collapsed===!1});return r.map(function(n){return Fp.rtl(Qt.fromDom(n.endContainer),n.endOffset,Qt.fromDom(n.startContainer),n.startOffset)}).getOrThunk(function(){return Lp(n,Fp.ltr,e)})}return Lp(n,Fp.ltr,e)},Vp=function(n,t){var e=Hp(n,t);return qp(n,e)},Up=function(n,t){var e=Vp(n,t);return e.match({ltr:function(t,e,r,o){var u=n.document.createRange();return u.setStart(t.dom(),e),u.setEnd(r.dom(),o),u},rtl:function(t,e,r,o){var u=n.document.createRange();return u.setStart(r.dom(),o),u.setEnd(t.dom(),e),u}})},Kp=(Fp.ltr,Fp.rtl,function(n,t,e,r,o){if(0===o)return 0;if(t===r)return o-1;for(var u=r,i=1;o>i;i++){var c=n(i),a=Math.abs(t-c.left);if(e<=c.bottom){if(eu)return i-1;u=a}}return 0}),$p=function(n,t,e){return t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom},Gp=function(n,t,e,r,o){var u=function(e){var r=n.dom().createRange();return r.setStart(t.dom(),e),r.collapse(!0),r},i=function(n){var t=u(n);return t.getBoundingClientRect()},c=Uo(t).length,a=Kp(i,e,r,o.right,c);return u(a)},Xp=function(n,t,e,r){var o=n.dom().createRange();o.selectNode(t.dom());var u=o.getClientRects(),i=ct(u,function(n){return $p(n,e,r)?D.some(n):D.none()});return i.map(function(o){return Gp(n,t,e,r,o)})},Yp=function(n,t,e,r){var o=n.dom().createRange(),u=cr(t);return ct(u,function(t){return o.selectNode(t.dom()),$p(o.getBoundingClientRect(),e,r)?Jp(n,t,e,r):D.none()})},Jp=function(n,t,e,r){return At(t)?Xp(n,t,e,r):Yp(n,t,e,r)},Qp=function(n,t,e,r){var o=n.dom().createRange();o.selectNode(t.dom());var u=o.getBoundingClientRect(),i=Math.max(u.left,Math.min(u.right,e)),c=Math.max(u.top,Math.min(u.bottom,r));return Jp(n,t,i,c)},Zp=!0,nv=!1,tv=function(n,t){return t-n.left0){var t=n.getRangeAt(0),e=n.getRangeAt(n.rangeCount-1);return D.some(pp.create(Qt.fromDom(t.startContainer),t.startOffset,Qt.fromDom(e.endContainer),e.endOffset))}return D.none()},Ov=function(n){var t=Qt.fromDom(n.anchorNode),e=Qt.fromDom(n.focusNode);return hv(t,n.anchorOffset,e,n.focusOffset)?D.some(pp.create(t,n.anchorOffset,e,n.focusOffset)):Rv(n)},Dv=function(n,t){var e=kp(n,t);bv(n,e)},Av=function(n){return D.from(n.getSelection()).filter(function(n){return n.rangeCount>0}).bind(Ov)},Bv=function(n){return Av(n).map(function(n){return Pp.exact(n.start(),n.soffset(),n.finish(),n.foffset())})},Iv=function(n,t){var e=Up(n,t);return zp(e)},Pv=function(n,t,e){return sv(n,t,e)},kv=function(n){var t=n.getSelection();t.removeAllRanges()},Ev=tinymce.util.Tools.resolve("tinymce.util.VK"),Mv=function(n,t,e,r){return jv(n,t,dp(e),r)},Nv=function(n,t,e,r){return jv(n,t,mp(e),r)},_v=function(n,t){var e=Pp.exact(t,0,t,0);return Tv(e)},Wv=function(n,t){var e=ro(t,"tr");return it(e).bind(function(t){return fo(t,"td,th").map(function(t){return _v(n,t)})})},jv=function(n,t,e,r){return e.fold(D.none,D.none,function(t,e){return Qo(e).map(function(t){return _v(n,t)})},function(e){return Ro(e,t).bind(function(t){var o=Si(e);return n.undoManager.transact(function(){r.insertRowsAfter(t,o)}),Wv(n,t)})})},zv=["table","li","dl"],Fv=function(n,t,e,r){if(n.keyCode===Ev.TAB){var o=zf(t),u=function(n){var t=xt(n);return Ge(n,o)||q(zv,t)},i=t.selection.getRng();if(i.collapsed){var c=Qt.fromDom(i.startContainer);xo(c,u).each(function(o){n.preventDefault();var i=n.shiftKey?Nv:Mv,c=i(t,u,o,e,r);c.each(function(n){t.selection.setRng(n)})})}}},Lv=function(n,t){return{selection:h(n),kill:h(t)}},Hv={create:Lv},qv=function(n,t,e,r){return{start:h(Cp.on(n,t)),finish:h(Cp.on(e,r))}},Vv={create:qv},Uv=function(n,t){var e=Up(n,t);return pp.create(Qt.fromDom(e.startContainer),e.startOffset,Qt.fromDom(e.endContainer),e.endOffset)},Kv=Vv.create,$v=function(n,t,e,r,o,u,i){return Ge(e,o)&&r===u?D.none():so(e,"td,th",t).bind(function(e){return so(o,"td,th",t).bind(function(r){return Gv(n,t,e,r,i)})})},Gv=function(n,t,e,r,o){return Ge(e,r)?D.none():Hu(e,r,t).bind(function(t){var r=t.boxes.getOr([]);return r.length>0?(o(n,r,t.start,t.finish),D.some(Hv.create(D.some(Kv(e,0,e,Go(e))),!0))):D.none()})},Xv=function(n,t,e,r,o){var u=function(n){return o.clearBeforeUpdate(e),o.selectRange(e,n.boxes,n.start,n.finish),n.boxes};return $u(r,n,t,o.firstSelectedSelector,o.lastSelectedSelector).map(u)},Yv=function(n,t){return{item:h(n),mode:h(t)}},Jv=function(n,t,e,r){return void 0===r&&(r=Qv),n.property().parent(t).map(function(n){return Yv(n,r)})},Qv=function(n,t,e,r){return void 0===r&&(r=Zv),e.sibling(n,t).map(function(n){return Yv(n,r)})},Zv=function(n,t,e,r){void 0===r&&(r=Zv);var o=n.property().children(t),u=e.first(o);return u.map(function(n){return Yv(n,r)})},nh=[{current:Jv,next:Qv,fallback:D.none()},{current:Qv,next:Zv,fallback:D.some(Jv)},{current:Zv,next:Zv,fallback:D.some(Qv)}],th=function(n,t,e,r,o){void 0===o&&(o=nh);var u=Z(o,function(n){return n.current===e});return u.bind(function(e){return e.current(n,t,r,e.next).orThunk(function(){return e.fallback.bind(function(e){return th(n,t,e,r)})})})},eh=function(){var n=function(n,t){return n.query().prevSibling(t)},t=function(n){return n.length>0?D.some(n[n.length-1]):D.none()};return{sibling:n,first:t}},rh=function(){var n=function(n,t){return n.query().nextSibling(t)},t=function(n){return n.length>0?D.some(n[0]):D.none()};return{sibling:n,first:t}},oh={left:eh,right:rh},uh=function(n,t,e,r,o,u){var i=th(n,t,r,o);return i.bind(function(t){return u(t.item())?D.none():e(t.item())?D.some(t.item()):uh(n,t.item(),e,t.mode(),o,u)})},ih=function(n,t,e,r){return uh(n,t,e,Qv,oh.left(),r)},ch=function(n,t,e,r){return uh(n,t,e,Qv,oh.right(),r)},ah=function(n){return function(t){return 0===n.property().children(t).length}},lh=function(n,t,e){return sh(n,t,ah(n),e)},fh=function(n,t,e){return dh(n,t,ah(n),e)},sh=ih,dh=ch,mh=o(),gh=function(n,t){return lh(mh,n,t)},ph=function(n,t){return fh(mh,n,t)},vh=function(n,t,e){return sh(mh,n,t,e)},hh=function(n,t,e){return dh(mh,n,t,e)},bh=function(n,t,e){return oo(n,t,e).isSome()},wh=di.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),yh=function(n,t,e){var r=n.getRect(t),o=n.getRect(e);return o.right>r.left&&o.left=0&&e0?n.getRangedRect(t,e-1,t,e):D.none()},Lh=function(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}},Hh=function(n,t){return D.some(n.getRect(t))},qh=function(n,t,e){return Dt(t)?Hh(n,t).map(Lh):At(t)?Fh(n,t,e).map(Lh):D.none()},Vh=function(n,t){return Dt(t)?Hh(n,t).map(Lh):At(t)?n.getRangedRect(t,0,t,Go(t)).map(Lh):D.none()},Uh=5,Kh=100,$h=di.generate([{none:[]},{retry:["caret"]}]),Gh=function(n,t){return n.leftt.right},Xh=function(n,t,e){return uo(t,qd).fold(h(!1),function(t){return Vh(n,t).exists(function(n){return Gh(e,n)})})},Yh=function(n,t,e,r,o){var u=Nh(o,Uh);return Math.abs(e.bottom-r.bottom)<1?$h.retry(u):e.top>o.bottom?$h.retry(u):e.top===o.bottom?$h.retry(Nh(o,1)):Xh(n,t,o)?$h.retry(Wh(u,Uh,0)):$h.none()},Jh=function(n,t,e,r,o){var u=_h(o,Uh);return Math.abs(e.top-r.top)<1?$h.retry(u):e.bottome.getInnerHeight()?D.some(n.point(t)-e.getInnerHeight()):n.point(t)<0?D.some(-n.point(t)):D.none()},ib=function(n,t,e){var r=n.move(e,Uh),o=eb(t,n,e,r,Kh).getOr(r);return ub(n,o,t).fold(function(){return t.situsFromPoint(o.left,n.point(o))},function(e){return t.scrollBy(0,e),t.situsFromPoint(o.left,n.point(o)-e)})},cb={tryUp:t(ib,Qh),tryDown:t(ib,Zh),ieTryUp:ob,ieTryDown:rb,getJumpSize:h(Uh)},ab=20,lb=function(n,t,e){return n.getSelection().bind(function(r){return Eh(t,r.finish(),r.foffset(),e).fold(function(){return D.some(bs(r.finish(),r.foffset()))},function(o){var u=n.fromSitus(o),i=Th.verify(n,r.finish(),r.foffset(),u.finish(),u.foffset(),e.failure,t);return Mh(i)})})},fb=function(n,t,e,r,o,u){return 0===u?D.none():mb(n,t,e,r,o).bind(function(i){var c=n.fromSitus(i),a=Th.verify(n,e,r,c.finish(),c.foffset(),o.failure,t);return Th.cata(a,function(){return D.none()},function(){return D.some(i)},function(i){return Ge(e,i)&&0===r?sb(n,e,r,_h,o):fb(n,t,i,0,o,u-1)},function(i){return Ge(e,i)&&r===Go(i)?sb(n,e,r,Nh,o):fb(n,t,i,Go(i),o,u-1)})})},sb=function(n,t,e,r,o){return qh(n,t,e).bind(function(t){return db(n,o,r(t,cb.getJumpSize()))})},db=function(n,t,e){var r=qe().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?t.otherRetry(n,e):r.isIE()?t.ieRetry(n,e):D.none()},mb=function(n,t,e,r,o){return qh(n,e,r).bind(function(t){return db(n,o,t)})},gb=function(n,t,e){return lb(n,t,e).bind(function(r){return fb(n,t,r.element(),r.offset(),e,ab).map(n.fromSitus)})},pb=function(n,t){return bh(n,function(n){return er(n).exists(function(n){return Ge(n,t)})})},vb=function(n,t,e,r,o){return so(r,"td,th",t).bind(function(r){return so(r,"table",t).bind(function(u){return pb(o,u)?gb(n,t,e).bind(function(n){return so(n.finish(),"td,th",t).map(function(t){return{start:h(r),finish:h(t),range:h(n)}})}):D.none()})})},hb=function(n,t,e,r,o,u){return qe().browser.isIE()?D.none():u(r,t).orThunk(function(){return vb(n,t,e,r,o).map(function(n){var t=n.range();return Hv.create(D.some(Kv(t.start(),t.soffset(),t.finish(),t.foffset())),!0)})})},bb=function(n,t){return so(n,"tr",t).bind(function(n){return so(n,"table",t).bind(function(e){var r=ro(e,"tr");return Ge(n,r[0])?vh(e,function(n){return Zo(n).isSome()},t).map(function(n){var t=Go(n);return Hv.create(D.some(Kv(n,t,n,t)),!0)}):D.none()})})},wb=function(n,t){return so(n,"tr",t).bind(function(n){return so(n,"table",t).bind(function(e){var r=ro(e,"tr");return Ge(n,r[r.length-1])?hh(e,function(n){return Qo(n).isSome()},t).map(function(n){return Hv.create(D.some(Kv(n,0,n,0)),!0)}):D.none()})})},yb=function(n,t,e,r,o,u,i){return vb(n,e,r,o,u).bind(function(n){return Gv(t,e,n.start(),n.finish(),i)})},Sb=function(n,t){return so(n,"td,th",t)},Cb={traverse:ir,gather:ph,relative:Cp.before,otherRetry:cb.tryDown,ieRetry:cb.ieTryDown,failure:Th.failedDown},xb={traverse:ur,gather:gh,relative:Cp.before,otherRetry:cb.tryUp,ieRetry:cb.ieTryUp,failure:Th.failedUp},Tb=function(n){return function(t){return t===n}},Rb=Tb(38),Ob=Tb(40),Db=function(n){return n>=37&&40>=n},Ab={isBackward:Tb(37),isForward:Tb(39)},Bb={isBackward:Tb(39),isForward:Tb(37)},Ib=function(n){return{left:n.left(),top:n.top(),right:n.right(),bottom:n.bottom(),width:n.width(),height:n.height()}},Pb={toRaw:Ib},kb=function(t){var e=void 0!==t?t.dom():n.document,r=e.body.scrollLeft||e.documentElement.scrollLeft,o=e.body.scrollTop||e.documentElement.scrollTop;return Ii(r,o)},Eb=function(t,e,r){var o=void 0!==r?r.dom():n.document,u=o.defaultView;u.scrollBy(t,e)},Mb=function(n){var t=function(t,e){return Qt.fromPoint(Qt.fromDom(n.document),t,e)},e=function(n){return n.dom().getBoundingClientRect()},r=function(t,e,r,o){var u=Pp.exact(t,e,r,o);return Iv(n,u).map(Pb.toRaw)},o=function(){return Bv(n).map(function(t){return Uv(n,t)})},u=function(t){var e=Pp.relative(t.start(),t.finish());return Uv(n,e)},i=function(t,e){return Pv(n,t,e).map(function(n){return Vv.create(n.start(),n.soffset(),n.finish(),n.foffset())})},c=function(){kv(n)},a=function(t){void 0===t&&(t=!1),Bv(n).each(function(e){return e.fold(function(n){return n.collapse(t)},function(e,r){var o=t?e:r;xv(n,o,o)},function(e,r,o,u){var i=t?e:o,c=t?r:u;Cv(n,i,c,i,c)})})},l=function(t){Dv(n,t)},f=function(t){Cv(n,t.start(),t.soffset(),t.finish(),t.foffset())},s=function(t,e){xv(n,t,e)},d=function(){return n.innerHeight},m=function(){var t=kb(Qt.fromDom(n.document));return t.top()},g=function(t,e){Eb(t,e,Qt.fromDom(n.document))};return{elementFromPoint:t,getRect:e,getRangedRect:r,getSelection:o,fromSitus:u,situsFromPoint:i,clearSelection:c,collapseSelection:a,setSelection:f,setRelativeSelection:s,selectContents:l,getInnerHeight:d,getScrollY:m,scrollBy:g}},Nb=function(n,t){return{rows:n,cols:t}},_b=function(n,t,e,r){var o=Mb(n),u=l(o,t,e,r);return{mousedown:u.mousedown,mouseover:u.mouseover,mouseup:u.mouseup}},Wb=function(n,e,r,o){var u=Mb(n),i=function(){return o.clear(e),D.none()},c=function(n,c,a,l,f,s){var d=n.raw(),m=d.which,g=d.shiftKey===!0,p=qu(e,o.selectedSelector).fold(function(){return Ob(m)&&g?t(yb,u,e,r,Cb,l,c,o.selectRange):Rb(m)&&g?t(yb,u,e,r,xb,l,c,o.selectRange):Ob(m)?t(hb,u,r,Cb,l,c,wb):Rb(m)?t(hb,u,r,xb,l,c,bb):D.none},function(n){var t=function(t){return function(){var r=ct(t,function(t){return Xv(t.rows,t.cols,e,n,o)});return r.fold(function(){return Uu(e,o.firstSelectedSelector,o.lastSelectedSelector).map(function(n){var t=Ob(m)||s.isForward(m)?Cp.after:Cp.before;return u.setRelativeSelection(Cp.on(n.first(),0),t(n.table())),o.clear(e),Hv.create(D.none(),!0)})},function(){return D.some(Hv.create(D.none(),!0))})}};return Ob(m)&&g?t([Nb(1,0)]):Rb(m)&&g?t([Nb(-1,0)]):s.isBackward(m)&&g?t([Nb(0,-1),Nb(-1,0)]):s.isForward(m)&&g?t([Nb(0,1),Nb(1,0)]):Db(m)&&g===!1?i:D.none});return p()},a=function(n,t,u,i,c){return qu(e,o.selectedSelector).fold(function(){var a=n.raw(),l=a.which,f=a.shiftKey===!0;return f===!1?D.none():Db(l)?$v(e,r,t,u,i,c,o.selectRange):D.none()},D.none)};return{keydown:c,keyup:a}},jb=function(n,t,e,r){var o=Mb(n);return function(n,u){r.clearBeforeUpdate(t),Hu(n,u,e).each(function(n){var e=n.boxes.getOr([]);r.selectRange(t,e,n.start,n.finish),o.selectContents(u),o.collapseSelection()})}},zb=function(n,t){$(t,function(t){ul(n,t)})},Fb=function(n){return function(t){rl(t,n)}},Lb=function(n){return function(t){zb(t,n)}},Hb=function(n){var t=Fb(n.selected),e=Lb([n.selected,n.lastSelected,n.firstSelected]),r=function(t){var r=ro(t,n.selectedSelector);$(r,e)},o=function(e,o,u,i){r(e),$(o,t),rl(u,n.firstSelected),rl(i,n.lastSelected)};return{clearBeforeUpdate:r,clear:r,selectRange:o,selectedSelector:n.selectedSelector,firstSelectedSelector:n.firstSelectedSelector,lastSelectedSelector:n.lastSelectedSelector}},qb=function(n,t,e){var r=function(t){Wt(t,n.selected),Wt(t,n.firstSelected),Wt(t,n.lastSelected)},o=function(t){kt(t,n.selected,"1")},u=function(n){i(n),e()},i=function(t){var e=ro(t,n.selectedSelector);$(e,r)},c=function(e,r,i,c){u(e),$(r,o),kt(i,n.firstSelected,"1"),kt(c,n.lastSelected,"1"),t(r,i,c)};return{clearBeforeUpdate:i,clear:u,selectRange:c,selectedSelector:n.selectedSelector,firstSelectedSelector:n.firstSelectedSelector,lastSelectedSelector:n.lastSelectedSelector}},Vb={byClass:Hb,byAttr:qb},Ub=function(n,t,e){var r=n.slice(0,t[t.length-1].row()+1),o=$s(r,e);return et(o,function(n){var e=n.cells().slice(0,t[t.length-1].column()+1);return K(e,function(n){return n.element()})})},Kb=function(n,t,e){var r=n.slice(t[0].row()+t[0].rowspan()-1,n.length),o=$s(r,e);return et(o,function(n){var e=n.cells().slice(t[0].column()+t[0].colspan()-1,+n.cells().length);return K(e,function(n){return n.element()})})},$b=function(n,t,e){var r=_o.fromTable(n),o=td(r,t);return o.map(function(n){var t=Vs(r,e,!1),o=Ub(t,n,e),u=Kb(t,n,e);return{upOrLeftCells:o,downOrRightCells:u}})},Gb=function(n){return il(Qt.fromDom(n.target),"ephox-snooker-resizer-bar")===!1},Xb=function(n,t){var e=Qf(D.none()),r=Qf([]),o=function(){return $m(n).bind(function(n){var e=Ro(n),r=function(n){return"caption"===xt(n)};return e.map(function(e){return r(n)?Si(n):Ci(t,e,n)})})},u=function(){e.set(ee(o)()),$(r.get(),function(n){return n()})},i=function(n,t){var o=function(){return e.get().fold(function(){n.setDisabled(!0)},function(e){n.setDisabled(t(e))})};return o(),r.set(r.get().concat([o])),function(){r.set(X(r.get(),function(n){return n!==o}))}},c=function(n){return i(n,function(){return!1})},a=function(n){return i(n,function(n){return"caption"===xt(n.element())})},l=function(n){return function(t){return i(t,function(t){return"caption"===xt(t.element())||n().isNone()})}},f=function(n){return i(n,function(n){return n.mergable().isNone()})},s=function(n){return i(n,function(n){return n.unmergable().isNone()})};return n.on("NodeChange ExecCommand TableSelectorChange",u),{onSetupTable:c,onSetupCellOrRow:a,onSetupPasteable:l,onSetupMergeable:f,onSetupUnmergeable:s,resetTargets:u,targets:function(){return e.get()}}},Yb=function(n,t,e){n.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(n){return n("inserttable | cell row column | advtablesort | tableprops deletetable")}});var r=function(t){return function(){return n.execCommand(t)}};n.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:r("mceTableProps"),icon:"table",onSetup:t.onSetupTable}),n.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:r("mceTableDelete"),icon:"table-delete-table",onSetup:t.onSetupTable}),n.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:r("mceTableCellProps"),icon:"table-cell-properties",onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:r("mceTableMergeCells"),icon:"table-merge-cells",onSetup:t.onSetupMergeable}),n.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:r("mceTableSplitCells"),icon:"table-split-cells",onSetup:t.onSetupUnmergeable}),n.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:r("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:r("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:r("mceTableDeleteRow"),icon:"table-delete-row",onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:r("mceTableRowProps"),icon:"table-row-properties",onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:r("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:r("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:r("mceTableDeleteCol"),icon:"table-delete-column",onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:r("mceTableCutRow"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:r("mceTableCopyRow"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:r("mceTablePasteRowBefore"),onSetup:t.onSetupPasteable(e.getRows)}),n.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:r("mceTablePasteRowAfter"),onSetup:t.onSetupPasteable(e.getRows)}),n.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:r("mceTableCutCol"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:r("mceTableCopyCol"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:r("mceTablePasteColBefore"),onSetup:t.onSetupPasteable(e.getColumns)}),n.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:r("mceTablePasteColAfter"),onSetup:t.onSetupPasteable(e.getColumns)}),n.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:r("mceInsertTable"),icon:"table"}) +},Jb=function(n){var t=function(t){return n.dom.is(t,"table")&&n.getBody().contains(t)},e=Mf(n);e.length>0&&n.ui.registry.addContextToolbar("table",{predicate:t,items:e,scope:"node",position:"node"})},Qb=function(n,t,e){var r=function(t){return function(){return n.execCommand(t)}},o=function(t){var e=t.numRows,r=t.numColumns;n.undoManager.transact(function(){lg(n,r,e,0,0)}),n.addVisual()},u={text:"Table properties",onSetup:t.onSetupTable,onAction:r("mceTableProps")},i={text:"Delete table",icon:"table-delete-table",onSetup:t.onSetupTable,onAction:r("mceTableDelete")};n.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:r("mceTableInsertRowBefore"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:r("mceTableInsertRowAfter"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:r("mceTableDeleteRow"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:r("mceTableRowProps"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:r("mceTableCutRow"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:r("mceTableCopyRow"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:r("mceTablePasteRowBefore"),onSetup:t.onSetupPasteable(e.getRows)}),n.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:r("mceTablePasteRowAfter"),onSetup:t.onSetupPasteable(e.getRows)});var c={type:"nestedmenuitem",text:"Row",getSubmenuItems:function(){return"tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter"}};n.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:r("mceTableInsertColBefore"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:r("mceTableInsertColAfter"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:r("mceTableDeleteCol"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:r("mceTableCutCol"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:r("mceTableCopyCol"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:r("mceTablePasteColBefore"),onSetup:t.onSetupPasteable(e.getColumns)}),n.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:r("mceTablePasteColAfter"),onSetup:t.onSetupPasteable(e.getColumns)});var a={type:"nestedmenuitem",text:"Column",getSubmenuItems:function(){return"tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn"}};n.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:r("mceTableCellProps"),onSetup:t.onSetupCellOrRow}),n.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:r("mceTableMergeCells"),onSetup:t.onSetupMergeable}),n.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:r("mceTableSplitCells"),onSetup:t.onSetupUnmergeable});var l={type:"nestedmenuitem",text:"Cell",getSubmenuItems:function(){return"tablecellprops tablemergecells tablesplitcells"}};Of(n)===!1?n.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:r("mceInsertTable")}):n.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:o}]}}),n.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:r("mceInsertTable")}),n.ui.registry.addMenuItem("tableprops",u),n.ui.registry.addMenuItem("deletetable",i),n.ui.registry.addNestedMenuItem("row",c),n.ui.registry.addNestedMenuItem("column",a),n.ui.registry.addNestedMenuItem("cell",l),n.ui.registry.addContextMenu("table",{update:function(){return t.resetTargets(),t.targets().fold(function(){return""},function(n){return"caption"===xt(n.element())?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"})}})},Zb={tablecellbackgroundcolor:{selector:"td,th",styles:{backgroundColor:"%value"},remove_similar:!0},tablecellbordercolor:{selector:"td,th",styles:{borderColor:"%value"},remove_similar:!0},tablecellborderstyle:{selector:"td,th",styles:{borderStyle:"%value"},remove_similar:!0},tablecellborderwidth:{selector:"td,th",styles:{borderWidth:"%value"},remove_similar:!0}},nw=function(n){n.formatter.register(Zb)};d()}(window)}); +;/*!node_modules/tinymce/plugins/table/index.js*/ +amis.define("node_modules/tinymce/plugins/table/index",function(e){e("node_modules/tinymce/plugins/table/plugin")}); +;/*!node_modules/tinymce/plugins/paste/plugin.js*/ +amis.define("node_modules/tinymce/plugins/paste/plugin",function(){!function(t){"use strict";function e(t,e){return X.each(e,function(e){t=e.constructor===RegExp?t.replace(e,""):t.replace(e[0],e[1])}),t}function n(t){function n(t){var e=t.name,r=t;if("br"===e)return void(i+="\n");if("wbr"!==e){if(a[e]&&(i+=" "),u[e])return void(i+=" ");if(3===t.type&&(i+=t.value),!t.shortEnded&&(t=t.firstChild))do n(t);while(t=t.next);s[e]&&r.next&&(i+="\n","p"===e&&(i+="\n"))}}var r=fe(),o=ue({},r),i="",a=r.getShortEndedElements(),u=X.makeMap("script noscript style textarea video audio iframe object"," "),s=r.getBlockElements();return t=e(t,[//g]),n(o.parse(t)),i}function r(t){function n(t,e,n){return e||n?ce:" "}return t=e(t,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/|/g,[/( ?)\u00a0<\/span>( ?)/g,n],/
/g,/
$/i])}function o(t){var e=0;return function(){return t+e++}}function i(t){return/a?i&&(i=i.parent.parent):(s=i,i=null)),i&&i.name===e?i.append(t):(s=s||i,i=new le(e,1),o>1&&i.attr("start",""+o),t.wrap(i)),t.name="li",a>c&&s&&s.lastChild.append(i),c=a,r(t),n(t,/^\u00a0+/),n(t,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),n(t,/^\u00a0+/)}for(var i,s,c=1,l=[],f=t.firstChild;"undefined"!=typeof f&&null!==f;)if(l.push(f),f=f.walk(),null!==f)for(;"undefined"!=typeof f&&f.parent!==t;)f=f.walk();for(var d=0;d [\\s\\r\\n]+|
)*(<\\/?("+r.join("|")+")[^>]*>)(?:
 [\\s\\r\\n]+|
)*","g");return n=e(n,[[o,"$1"]]),n=e(n,[[/

/g,"

"],[/
/g," "],[/

/g,"
"]])}function m(t,e,n,r){if(r||n)return e;var o,i=he(t);if(ye(t)===!1||"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)),s={};if("none"===o)return e+r;for(var c=0;c]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return e=e.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,function(t,e,n,r){return e+' style="'+n+'"'+r})}function p(t,e){t.$("a",e).find("font,u").each(function(e,n){t.dom.remove(n,!0)})}function g(){h.add("paste",function(t){if(y(t)===!1){var e=v(!1),n=v(we(t)?"text":"html"),r=En(t,n),o=Zn(t);return Jn(t,r),C(t,r),Yn(t),Un(t),Wn(t,r,e),b(r,o)}})}var v=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},h=tinymce.util.Tools.resolve("tinymce.PluginManager"),y=function(e){return/(^|[ ,])powerpaste([, ]|$)/.test(e.getParam("plugins"))&&h.get("powerpaste")?("undefined"!=typeof t.window.console&&t.window.console.log&&t.window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0):!1},b=function(t,e){return{clipboard:t,quirks:e}},x=function(t,e,n,r){return t.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},w=function(t,e,n,r){return t.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},P=function(t,e){return t.fire("PastePlainTextToggle",{state:e})},_=function(t,e){return t.fire("paste",{ieFake:e})},T=function(t,e){"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),P(t,!1)):(e.pasteFormat.set("text"),P(t,!0)),t.focus()},C=function(t,e){t.addCommand("mceTogglePlainTextPaste",function(){T(t,e)}),t.addCommand("mceInsertClipboardContent",function(t,n){n.content&&e.pasteHtml(n.content,n.internal),n.text&&e.pasteText(n.text)})},D=function(){},k=function(t){return function(){return t}},S=k(!1),O=k(!0),R=function(){return A},A=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t){return t()},is:S,isSome:S,isNone:O,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:k(null),getOrUndefined:k(void 0),or:n,orThunk:e,map:R,each:D,bind:R,exists:S,forall:O,filter:R,equals:t,equals_:t,toArray:function(){return[]},toString:k("none()")};return r}(),I=function(t){var e=k(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:O,isNone:S,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return I(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:A},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(S,function(e){return n(t,e)})}};return o},E=function(t){return null===t||void 0===t?A:I(t)},F={some:I,none:R,from:E},M=function(t){return function(e){return typeof e===t}},N=M("function"),B=Array.prototype.slice,$=function(t,e){for(var n=t.length,r=new Array(n),o=0;n>o;o++){var i=t[o];r[o]=e(i,o)}return r},H=function(t,e){for(var n=0,r=t.length;r>n;n++){var o=t[n];e(o,n)}},j=function(t,e){for(var n=[],r=0,o=t.length;o>r;r++){var i=t[r];e(i,r)&&n.push(i)}return n},L=function(t,e,n){return H(t,function(t){n=e(n,t)}),n},z=N(Array.from)?Array.from:function(t){return B.call(t)},U=function(){var t=v(F.none()),e=function(){t.set(F.none())},n=function(e){t.set(F.some(e))},r=function(e){t.get().each(e)},o=function(){return t.get().isSome()};return{clear:e,set:n,isSet:o,on:r}},q=tinymce.util.Tools.resolve("tinymce.Env"),V=tinymce.util.Tools.resolve("tinymce.util.Delay"),K=tinymce.util.Tools.resolve("tinymce.util.Promise"),X=tinymce.util.Tools.resolve("tinymce.util.Tools"),W=tinymce.util.Tools.resolve("tinymce.util.VK"),Y="x-tinymce/html",Z="",G=function(t){return Z+t},J=function(t){return t.replace(Z,"")},Q=function(t){return-1!==t.indexOf(Z)},te=function(){return Y},ee=tinymce.util.Tools.resolve("tinymce.html.Entities"),ne=function(t){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(t)},re=function(t){return t.replace(/\r?\n/g,"
")},oe=function(t,e){var n,r=[],o="<"+t;if("object"==typeof e){for(n in e)e.hasOwnProperty(n)&&r.push(n+'="'+ee.encodeAllRaw(e[n])+'"');r.length&&(o+=" "+r.join(" "))}return o+">"},ie=function(t,e,n){var r=t.split(/\n\n/),o=oe(e,n),i="",a=X.map(r,function(t){return t.split(/\n/).join("
")}),u=function(t){return o+t+i};return 1===a.length?a[0]:X.map(a,u).join("")},ae=function(t,e,n){return e?ie(t,e===!0?"p":e,n):re(t)},ue=tinymce.util.Tools.resolve("tinymce.html.DomParser"),se=tinymce.util.Tools.resolve("tinymce.html.Serializer"),ce=" ",le=tinymce.util.Tools.resolve("tinymce.html.Node"),fe=tinymce.util.Tools.resolve("tinymce.html.Schema"),de=function(t){return t.getParam("paste_block_drop",!1)},me=function(t){return t.getParam("paste_data_images",!1)},pe=function(t){return t.getParam("paste_filter_drop",!0)},ge=function(t){return t.getParam("paste_preprocess")},ve=function(t){return t.getParam("paste_postprocess")},he=function(t){return t.getParam("paste_webkit_styles")},ye=function(t){return t.getParam("paste_remove_styles_if_webkit",!0)},be=function(t){return t.getParam("paste_merge_formats",!0)},xe=function(t){return t.getParam("smart_paste",!0)},we=function(t){return t.getParam("paste_as_text",!1)},Pe=function(t){return t.getParam("paste_retain_style_properties")},_e=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)},Te=function(t){return t.getParam("paste_convert_word_fake_lists",!0)},Ce=function(t){return t.getParam("paste_enable_default_filters",!0)},De=function(t){return t.getParam("validate")},ke=function(t){return t.getParam("allow_html_data_urls",!1,"boolean")},Se=function(t){return t.getParam("paste_data_images",!1,"boolean")},Oe=function(t){return t.getParam("images_dataimg_filter")},Re=function(t){return t.getParam("images_reuse_filename")},Ae=function(t){return t.getParam("forced_root_block")},Ie=function(t){return t.getParam("forced_root_block_attrs")},Ee=function(){return-1!==t.navigator.userAgent.indexOf(" Edge/")},Fe=function(t,n){var r,o=Pe(t);o&&(r=X.makeMap(o.split(/[, ]/))),n=e(n,[/
/gi,/]+id="?docs-internal-[^>]*>/gi,//gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,ce],[/([\s\u00a0]*)<\/span>/gi,function(t,e){return e.length>0?e.replace(/./," ").slice(Math.floor(e.length/2)).split("").join(ce):""}]]);var i=_e(t),a=fe({valid_elements:i,valid_children:"-li[p]"});X.each(a.elements,function(t){t.attributes.class||(t.attributes.class={},t.attributesOrder.push("class")),t.attributes.style||(t.attributes.style={},t.attributesOrder.push("style"))});var u=ue({},a);u.addAttributeFilter("style",function(e){for(var n,o=e.length;o--;)n=e[o],n.attr("style",c(t,r,n,n.attr("style"))),"span"===n.name&&n.parent&&!n.attributes.length&&n.unwrap()}),u.addAttributeFilter("class",function(t){for(var e,n,r=t.length;r--;)e=t[r],n=e.attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&e.remove(),e.attr("class",null)}),u.addNodeFilter("del",function(t){for(var e=t.length;e--;)t[e].remove()}),u.addNodeFilter("a",function(t){for(var e,n,r,o=t.length;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 l=u.parse(n);return Te(t)&&s(l),n=se({validate:De(t)},a).serialize(l)},Me=function(t,e){return Ce(t)?Fe(t,e):e},Ne=function(t,e){var n=ue({},t.schema);n.addNodeFilter("meta",function(t){X.each(t,function(t){return t.remove()})});var r=n.parse(e,{forced_root_block:!1,isRootContent:!0});return se({validate:De(t)},t.schema).serialize(r)},Be=function(t,e){return{content:t,cancelled:e}},$e=function(t,e,n,r){var o=t.dom.create("div",{style:"display:none"},e),i=w(t,o,n,r);return Be(i.node.innerHTML,i.isDefaultPrevented())},He=function(t,e,n,r){var o=x(t,e,n,r),i=Ne(t,o.content);return t.hasEventListeners("PastePostProcess")&&!o.isDefaultPrevented()?$e(t,i,n,r):Be(i,o.isDefaultPrevented())},je=function(t,e,n){var r=i(e),o=r?Me(t,e):e;return He(t,o,n,r)},Le=function(t,e){return t.insertContent(e,{merge:be(t),paste:!0}),!0},ze=function(t){return/^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(t)},Ue=function(t){return ze(t)&&/.(gif|jpe?g|png)$/.test(t)},qe=function(t,e,n){return t.undoManager.extra(function(){n(t,e)},function(){t.insertContent('')}),!0},Ve=function(t,e,n){return t.undoManager.extra(function(){n(t,e)},function(){t.execCommand("mceInsertLink",!1,e)}),!0},Ke=function(t,e,n){return t.selection.isCollapsed()===!1&&ze(e)?Ve(t,e,n):!1},Xe=function(t,e,n){return Ue(e)?qe(t,e,n):!1},We=function(t,e){X.each([Ke,Xe,Le],function(n){return n(t,e,Le)!==!0})},Ye=function(t,e,n){n||xe(t)===!1?Le(t,e):We(t,e)},Ze=function(t){return-1!==" \f ".indexOf(t)},Ge=function(t){return"\n"===t||"\r"===t},Je=function(t,e){return e=0?Ge(t[e]):!1},Qe=function(t){var e=L(t,function(e,n){return Ze(n)||n===ce?e.pcIsSpace||""===e.str||e.str.length===t.length-1||Je(t,e.str.length+1)?{pcIsSpace:!1,str:e.str+ce}:{pcIsSpace:!0,str:e.str+" "}:{pcIsSpace:Ge(n),str:e.str+n}},{pcIsSpace:!1,str:""});return e.str},tn=function(t,e,n,r){var o=je(t,e,n);o.cancelled===!1&&Ye(t,o.content,r)},en=function(t,e,n){var r=n?n:Q(e);tn(t,J(e),r,!1)},nn=function(t,e){var n=t.dom.encode(e).replace(/\r\n/g,"\n"),r=Qe(n),o=ae(r,Ae(t),Ie(t));tn(t,o,!1,!0)},rn=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;o0},un=function(t){return an(t,"text/html")||an(t,"text/plain")},sn=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}},cn=function(t,e){var n=Oe(t);return n?n(e):!0},ln=function(t,e){var n=e.match(/([\s\S]+?)\.(?:jpeg|jpg|png|gif)$/i);return n?t.dom.encode(n[1]):null},fn=o("mceclip"),dn=function(e,n){var r=sn(n.uri),o=r.data,i=r.type,a=fn(),u=Re(e)&&n.blob.name?ln(e,n.blob.name):a,s=new t.Image;if(s.src=n.uri,cn(e,s)){var c=e.editorUpload.blobCache,l=void 0,f=c.getByData(o,i);f?l=f:(l=c.create(a,n.blob,o,u),c.add(l)),en(e,'',!1)}else en(e,'',!1)},mn=function(t){return"paste"===t.type},pn=function(t){return K.all($(t,function(t){return new K(function(e){var n=t.getAsFile?t.getAsFile():t,r=new window.FileReader;r.onload=function(){e({blob:n,uri:r.result})},r.readAsDataURL(n)})}))},gn=function(t){var e=t.items?$(z(t.items),function(t){return t.getAsFile()}):[],n=t.files?z(t.files):[],r=j(e.length>0?e:n,function(t){return/^image\/(jpeg|png|gif|bmp)$/.test(t.type)});return r},vn=function(t,e,n){var r=mn(e)?e.clipboardData:e.dataTransfer;if(Se(t)&&r){var o=gn(r);if(o.length>0)return e.preventDefault(),pn(o).then(function(e){n&&t.selection.setRng(n),H(e,function(e){dn(t,e)})}),!0}return!1},hn=function(e){var n=e.clipboardData;return-1!==t.navigator.userAgent.indexOf("Android")&&n&&n.items&&0===n.items.length},yn=function(t){return W.metaKeyPressed(t)&&86===t.keyCode||t.shiftKey&&45===t.keyCode},bn=function(e,o,i){function a(t,i,a,u){var s;an(t,"text/html")?s=t["text/html"]:(s=o.getHtml(),u=u?u:Q(s),o.isDefaultContent(s)&&(a=!0)),s=r(s),o.remove();var c=u===!1&&ne(s),l=Ue(s);return(!s.length||c&&!l)&&(a=!0),(a||l)&&(s=an(t,"text/plain")&&c?t["text/plain"]:n(s)),o.isDefaultContent(s)?void(i||e.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents.")):void(a?nn(e,s):en(e,s,u))}var u,s=U();e.on("keydown",function(n){function r(t){yn(t)&&!t.isDefaultPrevented()&&o.remove()}if(yn(n)&&!n.isDefaultPrevented()){if(u=n.shiftKey&&86===n.keyCode,u&&q.webkit&&-1!==t.navigator.userAgent.indexOf("Version/"))return;if(n.stopImmediatePropagation(),s.set(n),window.setTimeout(function(){s.clear()},100),q.ie&&u)return n.preventDefault(),void _(e,!0);o.remove(),o.create(),e.once("keyup",r),e.once("paste",function(){e.off("keyup",r)})}});var c=function(){return o.getLastRng()||e.selection.getRng()};e.on("paste",function(t){var n=s.isSet(),r=on(e,t),l="text"===i.get()||u,f=an(r,te());return u=!1,t.isDefaultPrevented()||hn(t)?void o.remove():!un(r)&&vn(e,t,c())?void o.remove():(n||t.preventDefault(),!q.ie||n&&!t.ieFake||an(r,"text/html")||(o.create(),e.dom.bind(o.getEl(),"paste",function(t){t.stopPropagation()}),e.getDoc().execCommand("Paste",!1,null),r["text/html"]=o.getHtml()),void(an(r,"text/html")?(t.preventDefault(),f||(f=Q(r["text/html"])),a(r,n,l,f)):V.setEditorTimeout(e,function(){a(r,n,l,f)},0)))})},xn=function(t,e,n){bn(t,e,n);var r;t.parser.addNodeFilter("img",function(e,n,o){var i=function(t){return t.data&&t.data.paste===!0},a=function(t){t.attr("data-mce-object")||r===q.transparentSrc||t.remove()},u=function(t){return 0===t.indexOf("webkit-fake-url")},s=function(t){return 0===t.indexOf("data:")};if(!Se(t)&&i(o))for(var c=e.length;c--;)r=e[c].attr("src"),r&&(u(r)?a(e[c]):!ke(t)&&s(r)&&a(e[c]))})},wn=function(e){return q.ie&&e.inline?t.document.body:e.getBody()},Pn=function(t){return wn(t)!==t.getBody()},_n=function(t,e,n){Pn(t)&&t.dom.bind(e,"paste keyup",function(){An(t,n)||t.fire("paste")})},Tn=function(t,e,n){var r=t.dom,o=t.getBody();e.set(t.selection.getRng());var i=t.dom.add(wn(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);(q.ie||q.gecko)&&r.setStyle(i,"left","rtl"===r.getStyle(o,"direction",!0)?65535:-65535),r.bind(i,"beforedeactivate focusin focusout",function(t){t.stopPropagation()}),_n(t,i,n),i.focus(),t.selection.select(i,!0)},Cn=function(t,e){if(Dn(t)){for(var n=void 0,r=e.get();n=t.dom.get("mcepastebin");)t.dom.remove(n),t.dom.unbind(n);r&&t.selection.setRng(r)}e.set(null)},Dn=function(t){return t.dom.get("mcepastebin")},kn=function(t){var e=function(e,n){e.appendChild(n),t.dom.remove(n,!0)},n=X.grep(wn(t).childNodes,function(t){return"mcepastebin"===t.id}),r=n.shift();X.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:""},Sn=function(t){return t.get()},On=function(t,e){return e===t},Rn=function(t){return t&&"mcepastebin"===t.id},An=function(t,e){var n=Dn(t);return Rn(n)&&On(e,n.innerHTML)},In=function(t){var e=v(null),n="%MCEPASTEBIN%";return{create:function(){return Tn(t,e,n)},remove:function(){return Cn(t,e)},getEl:function(){return Dn(t)},getHtml:function(){return kn(t)},getLastRng:function(){return Sn(e)},isDefault:function(){return An(t,n)},isDefaultContent:function(t){return On(n,t)}}},En=function(t,e){var n=In(t);return t.on("PreInit",function(){return xn(t,n,e)}),{pasteFormat:e,pasteHtml:function(e,n){return en(t,e,n)},pasteText:function(e){return nn(t,e)},pasteImageData:function(e,n){return vn(t,e,n)},getDataTransferItems:rn,hasHtmlOrText:un,hasContentType:an}},Fn=function(t){return q.iOS===!1&&void 0!==t&&"function"==typeof t.setData&&Ee()!==!0},Mn=function(t,e,n){if(!Fn(t))return!1;try{return t.clearData(),t.setData("text/html",e),t.setData("text/plain",n),t.setData(te(),e),!0}catch(r){return!1}},Nn=function(t,e,n,r){Mn(t.clipboardData,e.html,e.text)?(t.preventDefault(),r()):n(e.html,r)},Bn=function(t){return function(e,n){var r=G(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),V.setTimeout(function(){t.selection.setRng(a),o.parentNode.removeChild(o),n()},0)}},$n=function(t){return{html:t.selection.getContent({contextual:!0}),text:t.selection.getContent({format:"text"})}},Hn=function(t){return!!t.dom.getParent(t.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",t.getBody())},jn=function(t){return!t.selection.isCollapsed()||Hn(t)},Ln=function(t){return function(e){jn(t)&&Nn(e,$n(t),Bn(t),function(){if(q.browser.isChrome()){var e=t.selection.getRng();V.setEditorTimeout(t,function(){t.selection.setRng(e),t.execCommand("Delete")},0)}else t.execCommand("Delete")})}},zn=function(t){return function(e){jn(t)&&Nn(e,$n(t),Bn(t),function(){})}},Un=function(t){t.on("cut",Ln(t)),t.on("copy",zn(t))},qn=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Vn=function(t,e){return qn.getCaretRangeFromPoint(e.clientX,e.clientY,t.getDoc())},Kn=function(t){var e=t["text/plain"];return e?0===e.indexOf("file://"):!1},Xn=function(t,e){t.focus(),t.selection.setRng(e)},Wn=function(t,e,n){de(t)&&t.on("dragend dragover draggesture dragdrop drop drag",function(t){t.preventDefault(),t.stopPropagation()}),me(t)||t.on("drop",function(t){var e=t.dataTransfer;e&&e.files&&e.files.length>0&&t.preventDefault()}),t.on("drop",function(o){var i=Vn(t,o);if(!o.isDefaultPrevented()&&!n.get()){var a=e.getDataTransferItems(o.dataTransfer),u=e.hasContentType(a,te());if((e.hasHtmlOrText(a)&&!Kn(a)||!e.pasteImageData(o,i))&&i&&pe(t)){var s=a["mce-internal"]||a["text/html"]||a["text/plain"];s&&(o.preventDefault(),V.setEditorTimeout(t,function(){t.undoManager.transact(function(){a["mce-internal"]&&t.execCommand("Delete"),Xn(t,i),s=r(s),a["text/html"]?e.pasteHtml(s,u):e.pasteText(s)})}))}}}),t.on("dragstart",function(){n.set(!0)}),t.on("dragover dragend",function(e){me(t)&&n.get()===!1&&(e.preventDefault(),Xn(t,Vn(t,e))),"dragend"===e.type&&n.set(!1)})},Yn=function(t){var e=t.plugins.paste,n=ge(t);n&&t.on("PastePreProcess",function(t){n.call(e,e,t)});var r=ve(t);r&&t.on("PastePostProcess",function(t){r.call(e,e,t)})},Zn=function(t){q.webkit&&l(t,m),q.ie&&(l(t,d),f(t,p))},Gn=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)}}},Jn=function(t,e){t.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:function(){return t.execCommand("mceTogglePlainTextPaste")},onSetup:Gn(t,e)}),t.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:function(){return t.execCommand("mceTogglePlainTextPaste")},onSetup:Gn(t,e)})};g()}(window)}); +;/*!node_modules/tinymce/plugins/paste/index.js*/ +amis.define("node_modules/tinymce/plugins/paste/index",function(e){e("node_modules/tinymce/plugins/paste/plugin")}); +;/*!node_modules/tinymce/plugins/help/plugin.js*/ +amis.define("node_modules/tinymce/plugins/help/plugin",function(){!function(){"use strict";function e(){n.add("help",function(e){var n=t({}),r=o(n),s=z(e,n);return i(e,s),a(e,s),e.shortcuts.add("Alt+0","Open help dialog","mceHelp"),r})}var t=function(e){var t=e,n=function(){return t},o=function(e){t=e};return{get:n,set:o}},n=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(e){var t=function(t){var n=e.get();n[t.name]=t,e.set(n)};return{addTab:t}},a=function(e,t){e.addCommand("mceHelp",t)},i=function(e,t){e.ui.registry.addButton("help",{icon:"help",tooltip:"Help",onAction:t}),e.ui.registry.addMenuItem("help",{text:"Help",icon:"help",shortcut:"Alt+0",onAction:t})},r=function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;o>n;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},r.apply(this,arguments)},s=function(){},c=function(e){return function(){return e}},l=c(!1),u=c(!0),h=function(){return m},m=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},o={fold:function(e){return e()},is:l,isSome:l,isNone:u,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:c(null),getOrUndefined:c(void 0),or:n,orThunk:t,map:h,each:s,bind:h,exists:l,forall:u,filter:h,equals:e,equals_:e,toArray:function(){return[]},toString:c("none()")};return o}(),d=function(e){var t=c(e),n=function(){return a},o=function(t){return t(e)},a={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:u,isNone:l,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return d(t(e))},each:function(t){t(e)},bind:o,exists:o,forall:o,filter:function(t){return t(e)?a:m},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(l,function(t){return n(e,t)})}};return a},p=function(e){return null===e||void 0===e?m:d(e)},f={some:d,none:h,from:p},g=Array.prototype.indexOf,b=function(e,t){return g.call(e,t)},y=function(e,t){return b(e,t)>-1},k=function(e,t){for(var n=e.length,o=new Array(n),a=0;n>a;a++){var i=e[a];o[a]=t(i,a)}return o},v=function(e,t){for(var n=[],o=0,a=e.length;a>o;o++){var i=e[o];t(i,o)&&n.push(i)}return n},w=function(e,t,n){for(var o=0,a=e.length;a>o;o++){var i=e[o];if(t(i,o))return f.some(i);if(n(i,o))break}return f.none()},A=function(e,t){return w(e,t,l)},C=Object.keys,T=Object.hasOwnProperty,x=function(e,t){return P(e,t)?f.from(e[t]):f.none()},P=function(e,t){return T.call(e,t)},M=function(e){for(var t=[],n=function(e){t.push(e)},o=0;o"+H.translate(e)+""}).join("");return'

'+H.translate("Premium plugins:")+"

"},n=function(e){return''+e.name+""},o=function(e,t){return A(U,function(e){return e.key===t}).fold(function(){var o=e.plugins[t].getMetadata;return"function"==typeof o?n(o()):t},function(e){var t=e.slug||e.key;return n({name:e.name,url:"https://www.tiny.cloud/docs/plugins/"+t})})},a=function(e){var t=C(e.plugins),n=O(e);return void 0===n?t:v(t,function(e){return!y(n,e)})},i=function(e){var t=a(e),n=k(t,function(t){return"
  • "+o(e,t)+"
  • "}),i=n.length,r=n.join(""),s="

    "+H.translate(["Plugins installed ({0}):",i])+"

      "+r+"
    ";return s},r=function(e){return null==e?"":'
    '+i(e)+"
    "},s={type:"htmlpanel",presets:"document",html:[r(e),t()].join("")};return{name:"plugins",title:"Plugins",items:[s]}},W=tinymce.util.Tools.resolve("tinymce.EditorManager"),D=function(){var e=function(e,t){return 0===e.indexOf("@")?"X.X.X":e+"."+t},t=e(W.majorVersion,W.minorVersion),n='TinyMCE '+t+"",o={type:"htmlpanel",html:"

    "+H.translate(["You are using {0}",n])+"

    ",presets:"document"};return{name:"versions",title:"Version",items:[o]}},N="

    Editor UI keyboard navigation

    \n\n

    Activating keyboard navigation

    \n\n

    The sections of the outer UI of the editor - the menubar, toolbar, sidebar and footer - are all keyboard navigable. As such, there are multiple ways to activate keyboard navigation:

    \n
      \n
    • Focus the menubar: Alt + F9 (Windows) or ⌥F9 (MacOS)
    • \n
    • Focus the toolbar: Alt + F10 (Windows) or ⌥F10 (MacOS)
    • \n
    • Focus the footer: Alt + F11 (Windows) or ⌥F11 (MacOS)
    • \n
    \n\n

    Focusing the menubar or toolbar will start keyboard navigation at the first item in the menubar or toolbar, which will be highlighted with a gray background. Focusing the footer will start keyboard navigation at the first item in the element path, which will be highlighted with an underline.

    \n\n

    Moving between UI sections

    \n\n

    When keyboard navigation is active, pressing tab will move the focus to the next major section of the UI, where applicable. These sections are:

    \n
      \n
    • the menubar
    • \n
    • each group of the toolbar
    • \n
    • the sidebar
    • \n
    • the element path in the footer
    • \n
    • the wordcount toggle button in the footer
    • \n
    • the branding link in the footer
    • \n
    \n\n

    Pressing shift + tab will move backwards through the same sections, except when moving from the footer to the toolbar. Focusing the element path then pressing shift + tab will move focus to the first toolbar group, not the last.

    \n\n

    Moving within UI sections

    \n\n

    Keyboard navigation within UI sections can usually be achieved using the left and right arrow keys. This includes:

    \n
      \n
    • moving between menus in the menubar
    • \n
    • moving between buttons in a toolbar group
    • \n
    • moving between items in the element path
    • \n
    \n\n

    In all these UI sections, keyboard navigation will cycle within the section. For example, focusing the last button in a toolbar group then pressing right arrow will move focus to the first item in the same toolbar group.

    \n\n

    Executing buttons

    \n\n

    To execute a button, navigate the selection to the desired button and hit space or enter.

    \n\n

    Opening, navigating and closing menus

    \n\n

    When focusing a menubar button or a toolbar button with a menu, pressing space, enter or down arrow will open the menu. When the menu opens the first item will be selected. To move up or down the menu, press the up or down arrow key respectively. This is the same for submenus, which can also be opened and closed using the left and right arrow keys.

    \n\n

    To close any active menu, hit the escape key. When a menu is closed the selection will be restored to its previous selection. This also works for closing submenus.

    \n\n

    Context toolbars and menus

    \n\n

    To focus an open context toolbar such as the table context toolbar, press Ctrl + F9 (Windows) or ⌃F9 (MacOS).

    \n\n

    Context toolbar navigation is the same as toolbar navigation, and context menu navigation is the same as standard menu navigation.

    \n\n

    Dialog navigation

    \n\n

    There are two types of dialog UIs in TinyMCE: tabbed dialogs and non-tabbed dialogs.

    \n\n

    When a non-tabbed dialog is opened, the first interactive component in the dialog will be focused. Users can navigate between interactive components by pressing tab. This includes any footer buttons. Navigation will cycle back to the first dialog component if tab is pressed while focusing the last component in the dialog. Pressing shift + tab will navigate backwards.

    \n\n

    When a tabbed dialog is opened, the first button in the tab menu is focused. Pressing tab will navigate to the first interactive component in that tab, and will cycle through the tab’s components, the footer buttons, then back to the tab button. To switch to another tab, focus the tab button for the current tab, then use the arrow keys to cycle through the tab buttons.

    ",L=function(){var e={type:"htmlpanel",presets:"document",html:N};return{name:"keyboardnav",title:"Keyboard Navigation",items:[e]}},B=function(e,t){var n={},o=k(e,function(e){return"string"==typeof e?(P(t,e)&&(n[e]=t[e]),e):(n[e.name]=e,e.name)});return{tabs:n,names:o}},V=function(e){var t=C(e),n=t.indexOf("versions");return-1!==n&&(t.splice(n,1),t.push("versions")),{tabs:e,names:t}},q=function(e,t){var n,o=I(),a=L(),i=j(e),s=D(),c=r((n={},n[o.name]=o,n[a.name]=a,n[i.name]=i,n[s.name]=s,n),t.get());return F(e).fold(function(){return V(c)},function(e){return B(e,c)})},z=function(e,t){return function(){var n=q(e,t),o=n.tabs,a=n.names,i=k(a,function(e){return x(o,e)}),r=M(i),s={type:"tabpanel",tabs:r};e.windowManager.open({title:"Help",size:"medium",body:s,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{}})}};e()}()}); +;/*!node_modules/tinymce/plugins/help/index.js*/ +amis.define("node_modules/tinymce/plugins/help/index",function(e){e("node_modules/tinymce/plugins/help/plugin")}); +;/*!node_modules/tinymce/plugins/wordcount/plugin.js*/ +amis.define("node_modules/tinymce/plugins/wordcount/plugin",function(){!function(){"use strict";function t(t){void 0===t&&(t=300),n.add("wordcount",function(n){var e=X(n);return $(n,e),_(n,e,t),e})}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(t){return t},r=function(){return r=Object.assign||function(t){for(var n,e=1,r=arguments.length;r>e;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r.apply(this,arguments)},o="",u=function(t){return t.replace(/\uFEFF/g,"")},i="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",c={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[ \f…\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿‌‍⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[­؀-؃۝܏឴឵‎‏‪-‮⁠-⁤--]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",punctuation:i},a={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},E=[new RegExp(c.aletter),new RegExp(c.midnumlet),new RegExp(c.midletter),new RegExp(c.midnum),new RegExp(c.numeric),new RegExp(c.cr),new RegExp(c.lf),new RegExp(c.newline),new RegExp(c.extend),new RegExp(c.format),new RegExp(c.katakana),new RegExp(c.extendnumlet),new RegExp("@")],l="",s=new RegExp("^"+c.punctuation+"$"),g=/^\s+$/,d=function(t,n){for(var e=t.length,r=new Array(e),o=0;e>o;o++){var u=t[o];r[o]=n(u,o)}return r},f=E,T=a.OTHER,p=function(t){for(var n=T,e=f.length,r=0;e>r;++r){var o=f[r];if(o&&o.test(t)){n=r;break}}return n},h=function(t){var n={};return function(e){if(n[e])return n[e];var r=t(e);return n[e]=r,r}},C=function(t){var n=h(p);return d(t,n)},R=function(t,n){var e=t[n],r=t[n+1];if(0>n||n>t.length-1&&0!==n)return!1;if(e===a.ALETTER&&r===a.ALETTER)return!1;var o=t[n+2];if(e===a.ALETTER&&(r===a.MIDLETTER||r===a.MIDNUMLET||r===a.AT)&&o===a.ALETTER)return!1;var u=t[n-1];return(e!==a.MIDLETTER&&e!==a.MIDNUMLET&&r!==a.AT||r!==a.ALETTER||u!==a.ALETTER)&&(e!==a.NUMERIC&&e!==a.ALETTER||r!==a.NUMERIC&&r!==a.ALETTER)&&(e!==a.MIDNUM&&e!==a.MIDNUMLET||r!==a.NUMERIC||u!==a.NUMERIC)&&(e!==a.NUMERIC||r!==a.MIDNUM&&r!==a.MIDNUMLET||o!==a.NUMERIC)?e===a.EXTEND||e===a.FORMAT||u===a.EXTEND||u===a.FORMAT||r===a.EXTEND||r===a.FORMAT?!1:e===a.CR&&r===a.LF?!1:e===a.NEWLINE||e===a.CR||e===a.LF?!0:r===a.NEWLINE||r===a.CR||r===a.LF?!0:e===a.KATAKANA&&r===a.KATAKANA?!1:(r!==a.EXTENDNUMLET||e!==a.ALETTER&&e!==a.NUMERIC&&e!==a.KATAKANA&&e!==a.EXTENDNUMLET)&&(e!==a.EXTENDNUMLET||r!==a.ALETTER&&r!==a.NUMERIC&&r!==a.KATAKANA)?e===a.AT?!1:!0:!1:!1},A=l,N=g,m=s,M=function(t){return"http"===t||"https"===t},v=function(t,n){var e;for(e=n;e")})},e=function(n){n.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}}),n.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}})};n()}()}); +;/*!node_modules/tinymce/plugins/hr/index.js*/ +amis.define("node_modules/tinymce/plugins/hr/index",function(n){n("node_modules/tinymce/plugins/hr/plugin")}); +;/*!node_modules/tinymce/plugins/pagebreak/plugin.js*/ +amis.define("node_modules/tinymce/plugins/pagebreak/plugin",function(){!function(){"use strict";function e(){n.add("pagebreak",function(e){u(e),m(e),c(e),g(e)})}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=tinymce.util.Tools.resolve("tinymce.Env"),t=function(e){return e.getParam("pagebreak_separator","")},r=function(e){return e.getParam("pagebreak_split_block",!1)},o=function(){return"mce-pagebreak"},i=function(){return''},c=function(e){var n=t(e),a=new RegExp(n.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi");e.on("BeforeSetContent",function(e){e.content=e.content.replace(a,i())}),e.on("PreInit",function(){e.serializer.addNodeFilter("img",function(a){for(var t,o,i=a.length;i--;)if(t=a[i],o=t.attr("class"),o&&-1!==o.indexOf("mce-pagebreak")){var c=t.parent;if(e.schema.getBlockElements()[c.name]&&r(e)){c.type=3,c.value=n,c.raw=!0,t.remove();continue}t.type=3,t.value=n,t.raw=!0}})})},u=function(e){e.addCommand("mcePageBreak",function(){e.insertContent(r(e)?"

    "+i()+"

    ":i())})},g=function(e){e.on("ResolveName",function(n){"IMG"===n.target.nodeName&&e.dom.hasClass(n.target,o())&&(n.name="pagebreak")})},m=function(e){e.ui.registry.addButton("pagebreak",{icon:"page-break",tooltip:"Page break",onAction:function(){return e.execCommand("mcePageBreak")}}),e.ui.registry.addMenuItem("pagebreak",{text:"Page break",icon:"page-break",onAction:function(){return e.execCommand("mcePageBreak")}})};e()}()}); +;/*!node_modules/tinymce/plugins/pagebreak/index.js*/ +amis.define("node_modules/tinymce/plugins/pagebreak/index",function(e){e("node_modules/tinymce/plugins/pagebreak/plugin")}); +;/*!node_modules/tinymce/plugins/spellchecker/plugin.js*/ +amis.define("node_modules/tinymce/plugins/spellchecker/plugin",function(){!function(e){"use strict";function t(e){return e&&1===e.nodeType&&"false"===e.contentEditable}function n(){o.add("spellchecker",function(e,t){if(i(e)===!1){var n=r(!1),o=r(h(e)),a=r(null),c=r(null);return D(e,t,n,a,o,c),J(e,t,c,n,a,o),E(e,t,n,a,c,o),C(e,n,c,a,o)}})}var r=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(t){return/(^|[ ,])tinymcespellchecker([, ]|$)/.test(t.getParam("plugins"))&&o.get("tinymcespellchecker")?("undefined"!=typeof e.window.console&&e.window.console.log&&e.window.console.log("Spell Checker Pro is incompatible with Spell Checker plugin! Remove 'spellchecker' from the 'plugins' option."),!0):!1},a=Object.hasOwnProperty,c=function(e){for(var t in e)if(a.call(e,t))return!1;return!0},u=tinymce.util.Tools.resolve("tinymce.util.Tools"),s=tinymce.util.Tools.resolve("tinymce.util.URI"),l=tinymce.util.Tools.resolve("tinymce.util.XHR"),d=function(e){return e.fire("SpellcheckStart")},f=function(e){return e.fire("SpellcheckEnd")},g=function(e){var t="English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr_FR,German=de,Italian=it,Polish=pl,Portuguese=pt_BR,Spanish=es,Swedish=sv";return e.getParam("spellchecker_languages",t)},h=function(e){var t=e.getParam("language","en");return e.getParam("spellchecker_language",t)},p=function(e){return e.getParam("spellchecker_rpc_url")},m=function(e){return e.getParam("spellchecker_callback")},v=function(e){var t=new RegExp('[^\\s!"#$%&()*+,-./:;<=>?@[\\]^_{|}`§©«®±¶·¸»¼½¾¿×÷¤”“„    ]+',"g");return e.getParam("spellchecker_wordchar_pattern",t)},x=function(e,n){function r(e,t){if(!e[0])throw new Error("findAndReplaceDOMText cannot handle zero-length matches");return{start:e.index,end:e.index+e[0].length,text:e[0],data:t}}function o(e){var n;if(3===e.nodeType)return e.data;if(A[e.nodeName]&&!T[e.nodeName])return"";if(t(e))return"\n";if(n="",(T[e.nodeName]||B[e.nodeName])&&(n+="\n"),e=e.firstChild)do n+=o(e);while(e=e.nextSibling);return n}function i(e,n,r){var o,i,a,c,u,s=[],l=0,d=e,f=0;n=n.slice(0),n.sort(function(e,t){return e.start-t.start}),u=n.shift();e:for(;;){if((T[d.nodeName]||B[d.nodeName]||t(d))&&l++,3===d.nodeType&&(!i&&d.length+l>=u.end?(i=d,c=u.end-l):o&&s.push(d),!o&&d.length+l>u.start&&(o=d,a=u.start-l),l+=d.length),o&&i){if(d=r({startNode:o,startNodeIndex:a,endNode:i,endNodeIndex:c,innerNodes:s,match:u.text,matchIndex:f}),l-=i.length-c,o=null,i=null,s=[],u=n.shift(),f++,!u)break}else if(A[d.nodeName]&&!T[d.nodeName]||!d.firstChild){if(d.nextSibling){d=d.nextSibling;continue}}else if(!t(d)){d=d.firstChild;continue}for(;;){if(d.nextSibling){d=d.nextSibling;break}if(d.parentNode===e)break e;d=d.parentNode}}}function a(e){function t(t,n){var r=w[n];r.stencil||(r.stencil=e(r));var o=r.stencil.cloneNode(!1);return o.setAttribute("data-mce-index",n),t&&o.appendChild(b.doc.createTextNode(t)),o}return function(e){var n,r,o,i=e.startNode,a=e.endNode,c=e.matchIndex,u=b.doc;if(i===a){var s=i;o=s.parentNode,e.startNodeIndex>0&&(n=u.createTextNode(s.data.substring(0,e.startNodeIndex)),o.insertBefore(n,s));var l=t(e.match,c);return o.insertBefore(l,s),e.endNodeIndexf;++f){var h=e.innerNodes[f],p=t(h.data,c);h.parentNode.replaceChild(p,h)}var m=t(a.data.substring(0,e.endNodeIndex),c);return o=i.parentNode,o.insertBefore(n,i),o.insertBefore(d,i),o.removeChild(i),o=a.parentNode,o.insertBefore(m,a),o.insertBefore(r,a),o.removeChild(a),m}}function c(e){for(var t=e.parentNode;e.childNodes.length>0;)t.insertBefore(e.childNodes[0],e);t.removeChild(e)}function u(e){return-1!==e.className.indexOf("mce-spellchecker-word")}function s(t){var n=e.getElementsByTagName("*"),r=[];t="number"==typeof t?""+t:null;for(var o=0;ot&&e(w[t],t)!==!1;t++);return this}function g(t){return w.length&&i(e,w,a(t)),this}function h(e,t){if(P&&e.global)for(;S=e.exec(P);)w.push(r(S,t));return this}function p(e){var t,n=s(e?l(e):null);for(t=n.length;t--;)c(n[t]);return this}function m(e){return w[e.getAttribute("data-mce-index")]}function v(e){return s(l(e))[0]}function x(e,t,n){return w.push({start:e,end:e+t,text:P.substr(e,t),data:n}),this}function N(e){var t=s(l(e)),r=n.dom.createRng();return r.setStartBefore(t[0]),r.setEndAfter(t[t.length-1]),r}function k(e,t){var r=N(e);return r.deleteContents(),t.length>0&&r.insertNode(n.dom.doc.createTextNode(t)),r}function y(){return w.splice(0,w.length),p(),this}var S,w=[],b=n.dom,T=n.schema.getBlockElements(),A=n.schema.getWhiteSpaceElements(),B=n.schema.getShortEndedElements(),P=o(e);return{text:P,matches:w,each:f,filter:d,reset:y,matchFromElement:m,elementFromMatch:v,find:h,add:x,wrap:g,unwrap:p,replace:k,rangeFromMatch:N,indexOf:l}},N=function(e,t){if(!t.get()){var n=x(e.getBody(),e);t.set(n)}return t.get()},k=function(e,t,n){return function(r,o,i,a){var c={method:r,lang:n.get()},d="";c["addToDictionary"===r?"word":"text"]=o,u.each(c,function(e,t){d&&(d+="&"),d+=t+"="+encodeURIComponent(e)}),l.send({url:new s(t).toAbsolute(p(e)),type:"post",content_type:"application/x-www-form-urlencoded",data:d,success:function(t){var n=JSON.parse(t);if(n)n.error?a(n.error):i(n);else{var r=e.translate("Server response wasn't proper JSON.");a(r)}},error:function(){var t=e.translate("The spelling service was not found: (")+p(e)+e.translate(")");a(t)}})}},y=function(e,t,n,r,o,i,a){var c=m(e),u=c?c:k(e,t,n);u.call(e.plugins.spellchecker,r,o,i,a)},S=function(e,t,n,r,o,i){if(!A(e,n,r)){var a=function(t){e.notificationManager.open({text:t,type:"error"}),e.setProgressState(!1),A(e,n,r)},c=function(t){I(e,n,r,o,t)};e.setProgressState(!0),y(e,t,i,"spellcheck",N(e,r).text,c,a),e.focus()}},w=function(e,t,n){e.dom.select("span.mce-spellchecker-word").length||A(e,t,n)},b=function(e,t,n,r,o,i,a){e.setProgressState(!0),y(e,t,o,"addToDictionary",i,function(){e.setProgressState(!1),e.dom.remove(a,!0),w(e,n,r)},function(t){e.notificationManager.open({text:t,type:"error"}),e.setProgressState(!1)})},T=function(e,t,n,r,o,i){e.selection.collapse(),i?u.each(e.dom.select("span.mce-spellchecker-word"),function(t){t.getAttribute("data-mce-word")===r&&e.dom.remove(t,!0)}):e.dom.remove(o,!0),w(e,t,n)},A=function(e,t,n){var r=e.selection.getBookmark();return N(e,n).reset(),e.selection.moveToBookmark(r),n.set(null),t.get()?(t.set(!1),f(e),!0):void 0},B=function(e){var t=e.getAttribute("data-mce-index");return"number"==typeof t?""+t:t},P=function(e,t){var n=[],r=u.toArray(e.getBody().getElementsByTagName("span"));if(r.length)for(var o=0;on;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},_.apply(this,arguments)},R="SpellcheckStart SpellcheckEnd",M=function(e,t){var n=[];return u.each(t,function(e){n.push({selectable:!0,text:e.name,data:e.value})}),n},O=function(e){return u.map(g(e).split(","),function(e){return e=e.split("="),{name:e[0],value:e[1]}})},D=function(e,t,n,r,o,i){var a=M("Language",O(e)),c=function(){S(e,t,n,r,i,o)},s={tooltip:"Spellcheck",onAction:c,icon:"spell-check",onSetup:function(t){var r=function(){t.setActive(n.get())};return e.on(R,r),function(){e.off(R,r)}}},l=_(_({},s),{type:"splitbutton",select:function(e){return e===o.get()},fetch:function(e){var t=u.map(a,function(e){return{type:"choiceitem",value:e.data,text:e.text}});e(t)},onItemAction:function(e,t){o.set(t)}});a.length>1?e.ui.registry.addSplitButton("spellchecker",l):e.ui.registry.addToggleButton("spellchecker",s),e.ui.registry.addToggleMenuItem("spellchecker",{text:"Spellcheck",icon:"spell-check",onSetup:function(t){t.setActive(n.get());var r=function(){t.setActive(n.get())};return e.on(R,r),function(){e.off(R,r)}},onAction:c})},F=!0,j=function(e,t,n,r,o,i,a,c){var s=[],l=n.get().suggestions[a];u.each(l,function(t){s.push({text:t,onAction:function(){e.insertContent(e.dom.encode(t)),e.dom.remove(c),w(e,r,o)}})});var d=n.get().hasDictionarySupport;return d&&(s.push({type:"separator"}),s.push({text:"Add to dictionary",onAction:function(){b(e,t,r,o,i,a,c)}})),s.push.apply(s,[{type:"separator"},{text:"Ignore",onAction:function(){T(e,r,o,a,c)}},{text:"Ignore all",onAction:function(){T(e,r,o,a,c,F)}}]),s},J=function(e,t,n,r,o,i){var a=function(a){var c=a;if("mce-spellchecker-word"!==c.className)return[];var u=P(e,B(c));if(u.length>0){var s=e.dom.createRng();return s.setStartBefore(u[0]),s.setEndAfter(u[u.length-1]),e.selection.setRng(s),j(e,t,n,r,o,i,c.getAttribute("data-mce-word"),u)}};e.ui.registry.addContextMenu("spellchecker",{update:a})};n()}(window)}); +;/*!node_modules/tinymce/plugins/spellchecker/index.js*/ +amis.define("node_modules/tinymce/plugins/spellchecker/index",function(e){e("node_modules/tinymce/plugins/spellchecker/plugin")}); +;/*!node_modules/tinymce/plugins/visualchars/plugin.js*/ +amis.define("node_modules/tinymce/plugins/visualchars/plugin",function(){!function(n){"use strict";function t(){o.add("visualchars",function(n){var t=r(!1);return vt(n,t),Nt(n,t),yt(n,t),wt(n,t),e(t)})}var r=function(n){var t=n,r=function(){return t},o=function(n){t=n};return{get:r,set:o}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(n){var t=function(){return n.get()};return{isEnabled:t}},u=function(n,t){return n.fire("VisualChars",{state:t})},i=function(){},c=function(n){return function(){return n}},a=c(!1),f=c(!0),s=function(){return l},l=function(){var n=function(n){return n.isNone()},t=function(n){return n()},r=function(n){return n},o={fold:function(n){return n()},is:a,isSome:a,isNone:f,getOr:r,getOrThunk:t,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:c(null),getOrUndefined:c(void 0),or:r,orThunk:t,map:s,each:i,bind:s,exists:a,forall:f,filter:s,equals:n,equals_:n,toArray:function(){return[]},toString:c("none()")};return o}(),d=function(n){var t=c(n),r=function(){return e},o=function(t){return t(n)},e={fold:function(t,r){return r(n)},is:function(t){return n===t},isSome:f,isNone:a,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:r,orThunk:r,map:function(t){return d(t(n))},each:function(t){t(n)},bind:o,exists:o,forall:o,filter:function(t){return t(n)?e:l},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(t){return t.is(n)},equals_:function(t,r){return t.fold(a,function(t){return r(n,t)})}};return e},m=function(n){return null===n||void 0===n?l:d(n)},v={some:d,none:s,from:m},g=function(n){var t=typeof n;return null===n?"null":"object"===t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t},h=function(n){return function(t){return g(t)===n}},p=function(n){return function(t){return typeof t===n}},y=h("string"),w=p("boolean"),b=p("number"),N=function(n,t){for(var r=n.length,o=new Array(r),e=0;r>e;e++){var u=n[e];o[e]=t(u,e)}return o},T=function(n,t){for(var r=0,o=n.length;o>r;r++){var e=n[r];t(e,r)}},k=function(n,t){for(var r=[],o=0,e=n.length;e>o;o++){var u=n[o];t(u,o)&&r.push(u)}return r},A=Object.keys,O=function(n,t){for(var r=A(n),o=0,e=r.length;e>o;o++){var u=r[o],i=n[u];t(i,u)}},C=("undefined"!=typeof n.window?n.window:Function("return this;")(),3),S=function(n){return n.dom().nodeType},D=function(n){return n.dom().nodeValue},E=function(n){return function(t){return S(t)===n}},L=E(C),x=function(t,r,o){if(!(y(o)||w(o)||b(o)))throw n.console.error("Invalid call to Attr.set. Key ",r,":: Value ",o,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(r,o+"")},V=function(n,t,r){x(n.dom(),t,r)},B=function(n,t){var r=n.dom().getAttribute(t);return null===r?void 0:r},P=function(n,t){n.dom().removeAttribute(t)},_=function(n,t){var r=B(n,t);return void 0===r||""===r?[]:r.split(" ")},j=function(n,t,r){var o=_(n,t),e=o.concat([r]);return V(n,t,e.join(" ")),!0},M=function(n,t,r){var o=k(_(n,t),function(n){return n!==r});return o.length>0?V(n,t,o.join(" ")):P(n,t),!1},q=function(n){return void 0!==n.dom().classList},H=function(n){return _(n,"class")},F=function(n,t){return j(n,"class",t)},I=function(n,t){return M(n,"class",t)},U=function(n,t){q(n)?n.dom().classList.add(t):F(n,t)},K=function(n){var t=q(n)?n.dom().classList:H(n);0===t.length&&P(n,"class")},R=function(n,t){if(q(n)){var r=n.dom().classList;r.remove(t)}else I(n,t);K(n)},z=function(t,r){var o=r||n.document,e=o.createElement("div");if(e.innerHTML=t,!e.hasChildNodes()||e.childNodes.length>1)throw n.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Q(e.childNodes[0])},G=function(t,r){var o=r||n.document,e=o.createElement(t);return Q(e)},J=function(t,r){var o=r||n.document,e=o.createTextNode(t);return Q(e)},Q=function(n){if(null===n||void 0===n)throw new Error("Node cannot be null or undefined");return{dom:c(n)}},W=function(n,t,r){var o=n.dom();return v.from(o.elementFromPoint(t,r)).map(Q)},X={fromHtml:z,fromTag:G,fromText:J,fromDom:Q,fromPoint:W},Y={" ":"nbsp","­":"shy"},Z=function(n,t){var r="";return O(n,function(n,t){r+=t}),new RegExp("["+r+"]",t?"g":"")},$=function(n){var t="";return O(n,function(n){t&&(t+=","),t+="span.mce-"+n}),t},nt=Z(Y),tt=Z(Y,!0),rt=$(Y),ot="mce-nbsp",et=function(n){return''+n+""},ut=function(n){var t=D(n);return L(n)&&void 0!==t&&nt.test(t)},it=function(n,t){var r=[],o=n.dom(),e=N(o.childNodes,X.fromDom);return T(e,function(n){t(n)&&(r=r.concat([n])),r=r.concat(it(n,t))}),r},ct=function(n,t){for(;n.parentNode;){if(n.parentNode===t)return n;n=n.parentNode}},at=function(n){return n.replace(tt,et)},ft=function(n){return"span"===n.nodeName.toLowerCase()&&n.classList.contains("mce-nbsp-wrap")},st=function(n,t){var r=it(X.fromDom(t),ut);T(r,function(t){var r=t.dom().parentNode;if(ft(r))U(X.fromDom(r),ot);else{for(var o=at(n.dom.encode(D(t))),e=n.dom.create("div",null,o),u=void 0;u=e.lastChild;)n.dom.insertAfter(u,t.dom());n.dom.remove(t.dom())}})},lt=function(n,t){var r=n.dom.select(rt,t);T(r,function(t){ft(t)?R(X.fromDom(t),ot):n.dom.remove(t,!0)})},dt=function(n){var t=n.getBody(),r=n.selection.getBookmark(),o=ct(n.selection.getNode(),t);o=void 0!==o?o:t,lt(n,o),st(n,o),n.selection.moveToBookmark(r)},mt=function(n,t){var r=n.getBody(),o=n.selection;t.set(!t.get()),u(n,t.get());var e=o.getBookmark();t.get()===!0?st(n,r):lt(n,r),o.moveToBookmark(e)},vt=function(n,t){n.addCommand("mceVisualChars",function(){mt(n,t)})},gt=tinymce.util.Tools.resolve("tinymce.util.Delay"),ht=function(n){return n.getParam("visualchars_default_state",!1)},pt=function(n){return n.getParam("forced_root_block")!==!1},yt=function(n,t){var r=gt.debounce(function(){dt(n)},300);pt(n)&&n.on("keydown",function(o){t.get()===!0&&(13===o.keyCode?dt(n):r())})},wt=function(n,t){n.on("init",function(){var r=!ht(n);t.set(r),mt(n,t)})},bt=function(n,t){return function(r){r.setActive(t.get());var o=function(n){return r.setActive(n.state)};return n.on("VisualChars",o),function(){return n.off("VisualChars",o)}}},Nt=function(n,t){n.ui.registry.addToggleButton("visualchars",{tooltip:"Show invisible characters",icon:"visualchars",onAction:function(){return n.execCommand("mceVisualChars")},onSetup:bt(n,t)}),n.ui.registry.addToggleMenuItem("visualchars",{text:"Show invisible characters",icon:"visualchars",onAction:function(){return n.execCommand("mceVisualChars")},onSetup:bt(n,t)})};t()}(window)}); +;/*!node_modules/tinymce/plugins/visualchars/index.js*/ +amis.define("node_modules/tinymce/plugins/visualchars/index",function(i){i("node_modules/tinymce/plugins/visualchars/plugin")}); +;/*!node_modules/tinymce/plugins/template/plugin.js*/ +amis.define("node_modules/tinymce/plugins/template/plugin",function(){!function(){"use strict";function e(e){for(var t=[],n=1;n0&&(r=a.create("div",null),r.appendChild(u[0].cloneNode(!0))),i.each(a.select("*",r),function(t){x(t,l(e).replace(/\s+/g,"|"))&&(t.innerHTML=M(e,g(e))),x(t,s(e).replace(/\s+/g,"|"))&&(t.innerHTML=M(e,v(e))),x(t,f(e).replace(/\s+/g,"|"))&&(t.innerHTML=o)}),_(e,r),e.execCommand("mceInsertContent",!1,r.innerHTML),e.addVisual()},P=function(t){t.addCommand("mceInsertTemplate",e(S,t))},w=function(e){e.on("PreProcess",function(t){var n=e.dom,r=v(e);i.each(n.select("div",t.node),function(t){n.hasClass(t,"mceTmpl")&&(i.each(n.select("*",t),function(t){n.hasClass(t,s(e).replace(/\s+/g,"|"))&&(t.innerHTML=M(e,r))}),_(e,t))})})},D=function(){return C},C=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},i={fold:function(e){return e()},is:o,isSome:o,isNone:u,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:a(null),getOrUndefined:a(void 0),or:n,orThunk:t,map:D,each:r,bind:D,exists:o,forall:u,filter:D,equals:e,equals_:e,toArray:function(){return[]},toString:a("none()")};return i}(),A=function(e){var t=a(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:u,isNone:o,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return A(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:C},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(o,function(t){return n(e,t)})}};return i},N=function(e){return null===e||void 0===e?C:A(e)},H={some:A,none:D,from:N},k=function(e,t){for(var n=e.length,r=new Array(n),a=0;n>a;a++){var o=e[a];r[a]=t(o,a)}return r},I=function(e,t,n){for(var r=0,a=e.length;a>r;r++){var o=e[r];if(t(o,r))return H.some(o);if(n(o,r))break}return H.none()},J=function(e,t){return I(e,t,o)},L=tinymce.util.Tools.resolve("tinymce.util.Promise"),Y=Object.hasOwnProperty,q=function(e,t){return F(e,t)?H.from(e[t]):H.none()},F=function(e,t){return Y.call(e,t)},B={'"':""","<":"<",">":">","&":"&","'":"'"},E=function(e){return e.replace(/["'<>&]/g,function(e){return q(B,e).getOr(e)})},R=function(e,t){if(-1===t.indexOf("")){var n="";i.each(e.contentCSS,function(t){n+=''});var r=y(e),a=e.dom.encode,o=e.getBody().dir,u=o?' dir="'+a(o)+'"':"";t=""+n+'"+t+""}return O(t,m(e))},U=function(e,t){var n=function(){if(!t||0===t.length){var n=e.translate("No templates defined.");return e.notificationManager.open({text:n,type:"info"}),H.none()}return H.from(i.map(t,function(e,t){var n=function(e){return void 0!==e.url};return{selected:0===t,text:e.title,value:{url:n(e)?H.from(e.url):H.none(),content:n(e)?H.none():H.from(e.content),description:e.description}}}))},r=function(e){return k(e,function(e){return{text:e.text,value:e.text}})},a=function(e,t){return J(e,function(e){return e.text===t})},o=function(t){e.windowManager.alert("Could not load the specified template.",function(){return t.focus("template")})},u=function(e){return new L(function(t,n){e.value.url.fold(function(){return t(e.value.content.getOr(""))},function(e){return c.send({url:e,success:function(e){t(e)},error:function(e){n(e)}})})})},l=function(e,t){return function(n,r){if("template"===r.name){var i=n.getData().template;a(e,i).each(function(e){n.block("Loading..."),u(e).then(function(r){t(n,e,r)}).catch(function(){t(n,e,""),n.disable("save"),o(n)})})}}},s=function(t){return function(n){var r=n.getData();a(t,r.template).each(function(t){u(t).then(function(t){S(e,!1,t),n.close()}).catch(function(){n.disable("save"),o(n)})})}},f=function(t){var n=r(t),a=function(e,n){return{title:"Insert Template",size:"large",body:{type:"panel",items:e},initialData:n,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:s(t),onChange:l(t,i)}},i=function(t,r,o){var u=R(e,o),i=[{type:"selectbox",name:"template",label:"Templates",items:n},{type:"htmlpanel",html:'

    '+E(r.value.description)+"

    "},{label:"Preview",type:"iframe",name:"preview",sandboxed:!1}],c={template:r.text,preview:u};t.unblock(),t.redial(a(i,c)),t.focus("template")},c=e.windowManager.open(a([],{template:"",preview:""}));c.block("Loading..."),u(t[0]).then(function(e){i(c,t[0],e)}).catch(function(){i(c,t[0],""),c.disable("save"),o(c)})},m=n();m.each(f)},W=function(e){return function(t){U(e,t)}},j=function(e){e.ui.registry.addButton("template",{icon:"template",tooltip:"Insert template",onAction:T(e,W(e))}),e.ui.registry.addMenuItem("template",{icon:"template",text:"Insert template...",onAction:T(e,W(e))})};t()}()}); +;/*!node_modules/tinymce/plugins/template/index.js*/ +amis.define("node_modules/tinymce/plugins/template/index",function(e){e("node_modules/tinymce/plugins/template/plugin")}); +;/*!node_modules/tinymce/plugins/nonbreaking/plugin.js*/ +amis.define("node_modules/tinymce/plugins/nonbreaking/plugin",function(){!function(){"use strict";function n(){e.add("nonbreaking",function(n){u(n),f(n),s(n)})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(n){var e=n.getParam("nonbreaking_force_tab",0);return"boolean"==typeof e?e===!0?3:0:e},t=function(n){return n.getParam("nonbreaking_wrap",!0,"boolean")},o=function(n,e){for(var i="",t=0;e>t;t++)i+=n;return i},r=function(n){return n.plugins.visualchars?n.plugins.visualchars.isEnabled():!1},a=function(n,e){var i=function(){return r(n)?"mce-nbsp-wrap mce-nbsp":"mce-nbsp-wrap"},a=function(){return''+o(" ",e)+""},u=t(n),c=u||n.plugins.visualchars?a():o(" ",e);n.undoManager.transact(function(){return n.insertContent(c)})},u=function(n){n.addCommand("mceNonBreaking",function(){a(n,1)})},c=tinymce.util.Tools.resolve("tinymce.util.VK"),s=function(n){var e=i(n);e>0&&n.on("keydown",function(i){if(i.keyCode===c.TAB&&!i.isDefaultPrevented()){if(i.shiftKey)return;i.preventDefault(),i.stopImmediatePropagation(),a(n,e)}})},f=function(n){n.ui.registry.addButton("nonbreaking",{icon:"non-breaking",tooltip:"Nonbreaking space",onAction:function(){return n.execCommand("mceNonBreaking")}}),n.ui.registry.addMenuItem("nonbreaking",{icon:"non-breaking",text:"Nonbreaking space",onAction:function(){return n.execCommand("mceNonBreaking")}})};n()}()}); +;/*!node_modules/tinymce/plugins/nonbreaking/index.js*/ +amis.define("node_modules/tinymce/plugins/nonbreaking/index",function(n){n("node_modules/tinymce/plugins/nonbreaking/plugin")}); +;/*!node_modules/tinymce/plugins/emoticons/plugin.js*/ +amis.define("node_modules/tinymce/plugins/emoticons/plugin",function(){!function(n){"use strict";function t(){e.add("emoticons",function(n,t){var e=q(n,t),r=I(n),o=G(n,e,r);K(n,o),h(n,o)})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(){},o=function(n){return function(){return n}},i=o(!1),u=o(!0),a=function(){return c},c=function(){var n=function(n){return n.isNone()},t=function(n){return n()},e=function(n){return n},c={fold:function(n){return n()},is:i,isSome:i,isNone:u,getOr:e,getOrThunk:t,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:e,orThunk:t,map:a,each:r,bind:a,exists:i,forall:u,filter:a,equals:n,equals_:n,toArray:function(){return[]},toString:o("none()")};return c}(),l=function(n){var t=o(n),e=function(){return a},r=function(t){return t(n)},a={fold:function(t,e){return e(n)},is:function(t){return n===t},isSome:u,isNone:i,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:e,orThunk:e,map:function(t){return l(t(n))},each:function(t){t(n)},bind:r,exists:r,forall:r,filter:function(t){return t(n)?a:c},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(t){return t.is(n)},equals_:function(t,e){return t.fold(i,function(t){return e(n,t)})}};return a},s=function(n){return null===n||void 0===n?c:l(n)},f={some:l,none:a,from:s},m=function(n,t){for(var e=0,r=n.length;r>e;e++){var o=n[e];if(t(o,e))return!0}return!1},g=function(n,t){for(var e=n.length,r=new Array(e),o=0;e>o;o++){var i=n[o];r[o]=t(i,o)}return r},d=function(n,t){return-1!==n.indexOf(t)},v=function(n,t){return d(n.title.toLowerCase(),t)||m(n.keywords,function(n){return d(n.toLowerCase(),t)})},y=function(n,t,e){for(var r=[],o=t.toLowerCase(),u=e.fold(function(){return i},function(n){return function(t){return t>=n}}),a=0;ae;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},O.apply(this,arguments)},C=Object.prototype.hasOwnProperty,k=function(n,t){return t},j=function(n){return function(){for(var t=new Array(arguments.length),e=0;er;r++){var i=e[r],u=n[i];t(u,i)}},P=function(n,t){return x(n,function(n,e){return{k:e,v:t(n,e)}})},x=function(n,t){var e={};return D(n,function(n,r){var o=t(n,r);e[o.k]=o.v}),e},L=function(n,t){return _.call(n,t)},S=tinymce.util.Tools.resolve("tinymce.Resource"),N=tinymce.util.Tools.resolve("tinymce.util.Delay"),E=tinymce.util.Tools.resolve("tinymce.util.Promise"),F="tinymce.plugins.emoticons",q=function(n,t){return n.getParam("emoticons_database_url",t+"/js/emojis"+n.suffix+".js")},I=function(n){return n.getParam("emoticons_database_id",F,"string")},M=function(n){return n.getParam("emoticons_append",{},"object")},U="All",z={symbols:"Symbols",people:"People",animals_and_nature:"Animals and Nature",food_and_drink:"Food and Drink",activity:"Activity",travel_and_places:"Travel and Places",objects:"Objects",flags:"Flags",user:"User Defined"},R=function(n,t){return L(n,t)?n[t]:t},B=function(n){var t=M(n);return P(t,function(n){return O({keywords:[],category:"user"},n)})},G=function(t,e,r){var o=p(f.none()),i=p(f.none()),u=function(n){var t={},e=[];D(n,function(n,r){var o={title:r,keywords:n.keywords,"char":n.char,category:R(z,n.category)},i=void 0!==t[o.category]?t[o.category]:[];t[o.category]=i.concat([o]),e.push(o)}),o.set(f.some(t)),i.set(f.some(e))};t.on("init",function(){S.load(r,e).then(function(n){var e=B(t);u(A(n,e))},function(t){n.console.log("Failed to load emoticons: "+t),o.set(f.some({})),i.set(f.some([]))})});var a=function(n){return n===U?c():o.get().bind(function(t){return f.from(t[n])}).getOr([])},c=function(){return i.get().getOr([])},l=function(){return[U].concat(T(o.get().getOr({})))},s=function(){return m()?E.resolve(!0):new E(function(t,r){var o=15,i=N.setInterval(function(){m()?(N.clearInterval(i),t(!0)):(o--,0>o&&(n.console.log("Could not load emojis from url: "+e),N.clearInterval(i),r(!1)))},100)})},m=function(){return o.get().isSome()&&i.get().isSome()};return{listCategories:l,hasLoaded:m,waitForLoad:s,listAll:c,listCategory:a}},H="pattern",J=function(n,t){var e={pattern:"",results:y(t.listAll(),"",f.some(300))},r=p(U),o=function(n){var e=n.getData(),o=r.get(),i=t.listCategory(o),u=y(i,e[H],o===U?f.some(300):f.none());n.setData({results:u})},i=b(function(n){o(n)},200),u={label:"Search",type:"input",name:H},a={type:"collection",name:"results"},c=function(){var o={type:"tabpanel",tabs:g(t.listCategories(),function(n){return{title:n,name:n,items:[u,a]}})};return{title:"Emoticons",size:"normal",body:o,initialData:e,onTabChange:function(n,t){r.set(t.newTabName),i.throttle(n)},onChange:i.throttle,onAction:function(t,e){"results"===e.name&&(w(n,e.value),t.close())},buttons:[{type:"cancel",text:"Close",primary:!0}]}},l=n.windowManager.open(c());l.focus(H),t.hasLoaded()||(l.block("Loading emoticons..."),t.waitForLoad().then(function(){l.redial(c()),i.throttle(l),l.focus(H),l.unblock()}).catch(function(){l.redial({title:"Emoticons",body:{type:"panel",items:[{type:"alertbanner",level:"error",icon:"warning",text:"

    Could not load emoticons

    "}]},buttons:[{type:"cancel",text:"Close",primary:!0}],initialData:{pattern:"",results:[]}}),l.focus(H),l.unblock()}))},K=function(n,t){var e=function(){return J(n,t)};n.ui.registry.addButton("emoticons",{tooltip:"Emoticons",icon:"emoji",onAction:e}),n.ui.registry.addMenuItem("emoticons",{text:"Emoticons...",icon:"emoji",onAction:e})};t()}(window)}); +;/*!node_modules/tinymce/plugins/emoticons/index.js*/ +amis.define("node_modules/tinymce/plugins/emoticons/index",function(n){n("node_modules/tinymce/plugins/emoticons/plugin")}); +;/*!node_modules/tinymce/plugins/emoticons/js/emojis.js*/ +amis.define("node_modules/tinymce/plugins/emoticons/js/emojis",function(){window.tinymce.Resource.add("tinymce.plugins.emoticons",{grinning:{keywords:["face","smile","happy","joy",":D","grin"],"char":"😀",fitzpatrick_scale:!1,category:"people"},grimacing:{keywords:["face","grimace","teeth"],"char":"😬",fitzpatrick_scale:!1,category:"people"},grin:{keywords:["face","happy","smile","joy","kawaii"],"char":"😁",fitzpatrick_scale:!1,category:"people"},joy:{keywords:["face","cry","tears","weep","happy","happytears","haha"],"char":"😂",fitzpatrick_scale:!1,category:"people"},rofl:{keywords:["face","rolling","floor","laughing","lol","haha"],"char":"🤣",fitzpatrick_scale:!1,category:"people"},smiley:{keywords:["face","happy","joy","haha",":D",":)","smile","funny"],"char":"😃",fitzpatrick_scale:!1,category:"people"},smile:{keywords:["face","happy","joy","funny","haha","laugh","like",":D",":)"],"char":"😄",fitzpatrick_scale:!1,category:"people"},sweat_smile:{keywords:["face","hot","happy","laugh","sweat","smile","relief"],"char":"😅",fitzpatrick_scale:!1,category:"people"},laughing:{keywords:["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],"char":"😆",fitzpatrick_scale:!1,category:"people"},innocent:{keywords:["face","angel","heaven","halo"],"char":"😇",fitzpatrick_scale:!1,category:"people"},wink:{keywords:["face","happy","mischievous","secret",";)","smile","eye"],"char":"😉",fitzpatrick_scale:!1,category:"people"},blush:{keywords:["face","smile","happy","flushed","crush","embarrassed","shy","joy"],"char":"😊",fitzpatrick_scale:!1,category:"people"},slightly_smiling_face:{keywords:["face","smile"],"char":"🙂",fitzpatrick_scale:!1,category:"people"},upside_down_face:{keywords:["face","flipped","silly","smile"],"char":"🙃",fitzpatrick_scale:!1,category:"people"},relaxed:{keywords:["face","blush","massage","happiness"],"char":"☺️",fitzpatrick_scale:!1,category:"people"},yum:{keywords:["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],"char":"😋",fitzpatrick_scale:!1,category:"people"},relieved:{keywords:["face","relaxed","phew","massage","happiness"],"char":"😌",fitzpatrick_scale:!1,category:"people"},heart_eyes:{keywords:["face","love","like","affection","valentines","infatuation","crush","heart"],"char":"😍",fitzpatrick_scale:!1,category:"people"},kissing_heart:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],"char":"😘",fitzpatrick_scale:!1,category:"people"},kissing:{keywords:["love","like","face","3","valentines","infatuation","kiss"],"char":"😗",fitzpatrick_scale:!1,category:"people"},kissing_smiling_eyes:{keywords:["face","affection","valentines","infatuation","kiss"],"char":"😙",fitzpatrick_scale:!1,category:"people"},kissing_closed_eyes:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],"char":"😚",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_winking_eye:{keywords:["face","prank","childish","playful","mischievous","smile","wink","tongue"],"char":"😜",fitzpatrick_scale:!1,category:"people"},zany:{keywords:["face","goofy","crazy"],"char":"🤪",fitzpatrick_scale:!1,category:"people"},raised_eyebrow:{keywords:["face","distrust","scepticism","disapproval","disbelief","surprise"],"char":"🤨",fitzpatrick_scale:!1,category:"people"},monocle:{keywords:["face","stuffy","wealthy"],"char":"🧐",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_closed_eyes:{keywords:["face","prank","playful","mischievous","smile","tongue"],"char":"😝",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue:{keywords:["face","prank","childish","playful","mischievous","smile","tongue"],"char":"😛",fitzpatrick_scale:!1,category:"people"},money_mouth_face:{keywords:["face","rich","dollar","money"],"char":"🤑",fitzpatrick_scale:!1,category:"people"},nerd_face:{keywords:["face","nerdy","geek","dork"],"char":"🤓",fitzpatrick_scale:!1,category:"people"},sunglasses:{keywords:["face","cool","smile","summer","beach","sunglass"],"char":"😎",fitzpatrick_scale:!1,category:"people"},star_struck:{keywords:["face","smile","starry","eyes","grinning"],"char":"🤩",fitzpatrick_scale:!1,category:"people"},clown_face:{keywords:["face"],"char":"🤡",fitzpatrick_scale:!1,category:"people"},cowboy_hat_face:{keywords:["face","cowgirl","hat"],"char":"🤠",fitzpatrick_scale:!1,category:"people"},hugs:{keywords:["face","smile","hug"],"char":"🤗",fitzpatrick_scale:!1,category:"people"},smirk:{keywords:["face","smile","mean","prank","smug","sarcasm"],"char":"😏",fitzpatrick_scale:!1,category:"people"},no_mouth:{keywords:["face","hellokitty"],"char":"😶",fitzpatrick_scale:!1,category:"people"},neutral_face:{keywords:["indifference","meh",":|","neutral"],"char":"😐",fitzpatrick_scale:!1,category:"people"},expressionless:{keywords:["face","indifferent","-_-","meh","deadpan"],"char":"😑",fitzpatrick_scale:!1,category:"people"},unamused:{keywords:["indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],"char":"😒",fitzpatrick_scale:!1,category:"people"},roll_eyes:{keywords:["face","eyeroll","frustrated"],"char":"🙄",fitzpatrick_scale:!1,category:"people"},thinking:{keywords:["face","hmmm","think","consider"],"char":"🤔",fitzpatrick_scale:!1,category:"people"},lying_face:{keywords:["face","lie","pinocchio"],"char":"🤥",fitzpatrick_scale:!1,category:"people"},hand_over_mouth:{keywords:["face","whoops","shock","surprise"],"char":"🤭",fitzpatrick_scale:!1,category:"people"},shushing:{keywords:["face","quiet","shhh"],"char":"🤫",fitzpatrick_scale:!1,category:"people"},symbols_over_mouth:{keywords:["face","swearing","cursing","cussing","profanity","expletive"],"char":"🤬",fitzpatrick_scale:!1,category:"people"},exploding_head:{keywords:["face","shocked","mind","blown"],"char":"🤯",fitzpatrick_scale:!1,category:"people"},flushed:{keywords:["face","blush","shy","flattered"],"char":"😳",fitzpatrick_scale:!1,category:"people"},disappointed:{keywords:["face","sad","upset","depressed",":("],"char":"😞",fitzpatrick_scale:!1,category:"people"},worried:{keywords:["face","concern","nervous",":("],"char":"😟",fitzpatrick_scale:!1,category:"people"},angry:{keywords:["mad","face","annoyed","frustrated"],"char":"😠",fitzpatrick_scale:!1,category:"people"},rage:{keywords:["angry","mad","hate","despise"],"char":"😡",fitzpatrick_scale:!1,category:"people"},pensive:{keywords:["face","sad","depressed","upset"],"char":"😔",fitzpatrick_scale:!1,category:"people"},confused:{keywords:["face","indifference","huh","weird","hmmm",":/"],"char":"😕",fitzpatrick_scale:!1,category:"people"},slightly_frowning_face:{keywords:["face","frowning","disappointed","sad","upset"],"char":"🙁",fitzpatrick_scale:!1,category:"people"},frowning_face:{keywords:["face","sad","upset","frown"],"char":"☹",fitzpatrick_scale:!1,category:"people"},persevere:{keywords:["face","sick","no","upset","oops"],"char":"😣",fitzpatrick_scale:!1,category:"people"},confounded:{keywords:["face","confused","sick","unwell","oops",":S"],"char":"😖",fitzpatrick_scale:!1,category:"people"},tired_face:{keywords:["sick","whine","upset","frustrated"],"char":"😫",fitzpatrick_scale:!1,category:"people"},weary:{keywords:["face","tired","sleepy","sad","frustrated","upset"],"char":"😩",fitzpatrick_scale:!1,category:"people"},triumph:{keywords:["face","gas","phew","proud","pride"],"char":"😤",fitzpatrick_scale:!1,category:"people"},open_mouth:{keywords:["face","surprise","impressed","wow","whoa",":O"],"char":"😮",fitzpatrick_scale:!1,category:"people"},scream:{keywords:["face","munch","scared","omg"],"char":"😱",fitzpatrick_scale:!1,category:"people"},fearful:{keywords:["face","scared","terrified","nervous","oops","huh"],"char":"😨",fitzpatrick_scale:!1,category:"people"},cold_sweat:{keywords:["face","nervous","sweat"],"char":"😰",fitzpatrick_scale:!1,category:"people"},hushed:{keywords:["face","woo","shh"],"char":"😯",fitzpatrick_scale:!1,category:"people"},frowning:{keywords:["face","aw","what"],"char":"😦",fitzpatrick_scale:!1,category:"people"},anguished:{keywords:["face","stunned","nervous"],"char":"😧",fitzpatrick_scale:!1,category:"people"},cry:{keywords:["face","tears","sad","depressed","upset",":'("],"char":"😢",fitzpatrick_scale:!1,category:"people"},disappointed_relieved:{keywords:["face","phew","sweat","nervous"],"char":"😥",fitzpatrick_scale:!1,category:"people"},drooling_face:{keywords:["face"],"char":"🤤",fitzpatrick_scale:!1,category:"people"},sleepy:{keywords:["face","tired","rest","nap"],"char":"😪",fitzpatrick_scale:!1,category:"people"},sweat:{keywords:["face","hot","sad","tired","exercise"],"char":"😓",fitzpatrick_scale:!1,category:"people"},sob:{keywords:["face","cry","tears","sad","upset","depressed"],"char":"😭",fitzpatrick_scale:!1,category:"people"},dizzy_face:{keywords:["spent","unconscious","xox","dizzy"],"char":"😵",fitzpatrick_scale:!1,category:"people"},astonished:{keywords:["face","xox","surprised","poisoned"],"char":"😲",fitzpatrick_scale:!1,category:"people"},zipper_mouth_face:{keywords:["face","sealed","zipper","secret"],"char":"🤐",fitzpatrick_scale:!1,category:"people"},nauseated_face:{keywords:["face","vomit","gross","green","sick","throw up","ill"],"char":"🤢",fitzpatrick_scale:!1,category:"people"},sneezing_face:{keywords:["face","gesundheit","sneeze","sick","allergy"],"char":"🤧",fitzpatrick_scale:!1,category:"people"},vomiting:{keywords:["face","sick"],"char":"🤮",fitzpatrick_scale:!1,category:"people"},mask:{keywords:["face","sick","ill","disease"],"char":"😷",fitzpatrick_scale:!1,category:"people"},face_with_thermometer:{keywords:["sick","temperature","thermometer","cold","fever"],"char":"🤒",fitzpatrick_scale:!1,category:"people"},face_with_head_bandage:{keywords:["injured","clumsy","bandage","hurt"],"char":"🤕",fitzpatrick_scale:!1,category:"people"},sleeping:{keywords:["face","tired","sleepy","night","zzz"],"char":"😴",fitzpatrick_scale:!1,category:"people"},zzz:{keywords:["sleepy","tired","dream"],"char":"💤",fitzpatrick_scale:!1,category:"people"},poop:{keywords:["hankey","shitface","fail","turd","shit"],"char":"💩",fitzpatrick_scale:!1,category:"people"},smiling_imp:{keywords:["devil","horns"],"char":"😈",fitzpatrick_scale:!1,category:"people"},imp:{keywords:["devil","angry","horns"],"char":"👿",fitzpatrick_scale:!1,category:"people"},japanese_ogre:{keywords:["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],"char":"👹",fitzpatrick_scale:!1,category:"people"},japanese_goblin:{keywords:["red","evil","mask","monster","scary","creepy","japanese","goblin"],"char":"👺",fitzpatrick_scale:!1,category:"people"},skull:{keywords:["dead","skeleton","creepy","death"],"char":"💀",fitzpatrick_scale:!1,category:"people"},ghost:{keywords:["halloween","spooky","scary"],"char":"👻",fitzpatrick_scale:!1,category:"people"},alien:{keywords:["UFO","paul","weird","outer_space"],"char":"👽",fitzpatrick_scale:!1,category:"people"},robot:{keywords:["computer","machine","bot"],"char":"🤖",fitzpatrick_scale:!1,category:"people"},smiley_cat:{keywords:["animal","cats","happy","smile"],"char":"😺",fitzpatrick_scale:!1,category:"people"},smile_cat:{keywords:["animal","cats","smile"],"char":"😸",fitzpatrick_scale:!1,category:"people"},joy_cat:{keywords:["animal","cats","haha","happy","tears"],"char":"😹",fitzpatrick_scale:!1,category:"people"},heart_eyes_cat:{keywords:["animal","love","like","affection","cats","valentines","heart"],"char":"😻",fitzpatrick_scale:!1,category:"people"},smirk_cat:{keywords:["animal","cats","smirk"],"char":"😼",fitzpatrick_scale:!1,category:"people"},kissing_cat:{keywords:["animal","cats","kiss"],"char":"😽",fitzpatrick_scale:!1,category:"people"},scream_cat:{keywords:["animal","cats","munch","scared","scream"],"char":"🙀",fitzpatrick_scale:!1,category:"people"},crying_cat_face:{keywords:["animal","tears","weep","sad","cats","upset","cry"],"char":"😿",fitzpatrick_scale:!1,category:"people"},pouting_cat:{keywords:["animal","cats"],"char":"😾",fitzpatrick_scale:!1,category:"people"},palms_up:{keywords:["hands","gesture","cupped","prayer"],"char":"🤲",fitzpatrick_scale:!0,category:"people"},raised_hands:{keywords:["gesture","hooray","yea","celebration","hands"],"char":"🙌",fitzpatrick_scale:!0,category:"people"},clap:{keywords:["hands","praise","applause","congrats","yay"],"char":"👏",fitzpatrick_scale:!0,category:"people"},wave:{keywords:["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],"char":"👋",fitzpatrick_scale:!0,category:"people"},call_me_hand:{keywords:["hands","gesture"],"char":"🤙",fitzpatrick_scale:!0,category:"people"},"+1":{keywords:["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],"char":"👍",fitzpatrick_scale:!0,category:"people"},"-1":{keywords:["thumbsdown","no","dislike","hand"],"char":"👎",fitzpatrick_scale:!0,category:"people"},facepunch:{keywords:["angry","violence","fist","hit","attack","hand"],"char":"👊",fitzpatrick_scale:!0,category:"people"},fist:{keywords:["fingers","hand","grasp"],"char":"✊",fitzpatrick_scale:!0,category:"people"},fist_left:{keywords:["hand","fistbump"],"char":"🤛",fitzpatrick_scale:!0,category:"people"},fist_right:{keywords:["hand","fistbump"],"char":"🤜",fitzpatrick_scale:!0,category:"people"},v:{keywords:["fingers","ohyeah","hand","peace","victory","two"],"char":"✌",fitzpatrick_scale:!0,category:"people"},ok_hand:{keywords:["fingers","limbs","perfect","ok","okay"],"char":"👌",fitzpatrick_scale:!0,category:"people"},raised_hand:{keywords:["fingers","stop","highfive","palm","ban"],"char":"✋",fitzpatrick_scale:!0,category:"people"},raised_back_of_hand:{keywords:["fingers","raised","backhand"],"char":"🤚",fitzpatrick_scale:!0,category:"people"},open_hands:{keywords:["fingers","butterfly","hands","open"],"char":"👐",fitzpatrick_scale:!0,category:"people"},muscle:{keywords:["arm","flex","hand","summer","strong","biceps"],"char":"💪",fitzpatrick_scale:!0,category:"people"},pray:{keywords:["please","hope","wish","namaste","highfive"],"char":"🙏",fitzpatrick_scale:!0,category:"people"},handshake:{keywords:["agreement","shake"],"char":"🤝",fitzpatrick_scale:!1,category:"people"},point_up:{keywords:["hand","fingers","direction","up"],"char":"☝",fitzpatrick_scale:!0,category:"people"},point_up_2:{keywords:["fingers","hand","direction","up"],"char":"👆",fitzpatrick_scale:!0,category:"people"},point_down:{keywords:["fingers","hand","direction","down"],"char":"👇",fitzpatrick_scale:!0,category:"people"},point_left:{keywords:["direction","fingers","hand","left"],"char":"👈",fitzpatrick_scale:!0,category:"people"},point_right:{keywords:["fingers","hand","direction","right"],"char":"👉",fitzpatrick_scale:!0,category:"people"},fu:{keywords:["hand","fingers","rude","middle","flipping"],"char":"🖕",fitzpatrick_scale:!0,category:"people"},raised_hand_with_fingers_splayed:{keywords:["hand","fingers","palm"],"char":"🖐",fitzpatrick_scale:!0,category:"people"},love_you:{keywords:["hand","fingers","gesture"],"char":"🤟",fitzpatrick_scale:!0,category:"people"},metal:{keywords:["hand","fingers","evil_eye","sign_of_horns","rock_on"],"char":"🤘",fitzpatrick_scale:!0,category:"people"},crossed_fingers:{keywords:["good","lucky"],"char":"🤞",fitzpatrick_scale:!0,category:"people"},vulcan_salute:{keywords:["hand","fingers","spock","star trek"],"char":"🖖",fitzpatrick_scale:!0,category:"people"},writing_hand:{keywords:["lower_left_ballpoint_pen","stationery","write","compose"],"char":"✍",fitzpatrick_scale:!0,category:"people"},selfie:{keywords:["camera","phone"],"char":"🤳",fitzpatrick_scale:!0,category:"people"},nail_care:{keywords:["beauty","manicure","finger","fashion","nail"],"char":"💅",fitzpatrick_scale:!0,category:"people"},lips:{keywords:["mouth","kiss"],"char":"👄",fitzpatrick_scale:!1,category:"people"},tongue:{keywords:["mouth","playful"],"char":"👅",fitzpatrick_scale:!1,category:"people"},ear:{keywords:["face","hear","sound","listen"],"char":"👂",fitzpatrick_scale:!0,category:"people"},nose:{keywords:["smell","sniff"],"char":"👃",fitzpatrick_scale:!0,category:"people"},eye:{keywords:["face","look","see","watch","stare"],"char":"👁",fitzpatrick_scale:!1,category:"people"},eyes:{keywords:["look","watch","stalk","peek","see"],"char":"👀",fitzpatrick_scale:!1,category:"people"},brain:{keywords:["smart","intelligent"],"char":"🧠",fitzpatrick_scale:!1,category:"people"},bust_in_silhouette:{keywords:["user","person","human"],"char":"👤",fitzpatrick_scale:!1,category:"people"},busts_in_silhouette:{keywords:["user","person","human","group","team"],"char":"👥",fitzpatrick_scale:!1,category:"people"},speaking_head:{keywords:["user","person","human","sing","say","talk"],"char":"🗣",fitzpatrick_scale:!1,category:"people"},baby:{keywords:["child","boy","girl","toddler"],"char":"👶",fitzpatrick_scale:!0,category:"people"},child:{keywords:["gender-neutral","young"],"char":"🧒",fitzpatrick_scale:!0,category:"people"},boy:{keywords:["man","male","guy","teenager"],"char":"👦",fitzpatrick_scale:!0,category:"people"},girl:{keywords:["female","woman","teenager"],"char":"👧",fitzpatrick_scale:!0,category:"people"},adult:{keywords:["gender-neutral","person"],"char":"🧑",fitzpatrick_scale:!0,category:"people"},man:{keywords:["mustache","father","dad","guy","classy","sir","moustache"],"char":"👨",fitzpatrick_scale:!0,category:"people"},woman:{keywords:["female","girls","lady"],"char":"👩",fitzpatrick_scale:!0,category:"people"},blonde_woman:{keywords:["woman","female","girl","blonde","person"],"char":"👱‍♀️",fitzpatrick_scale:!0,category:"people"},blonde_man:{keywords:["man","male","boy","blonde","guy","person"],"char":"👱",fitzpatrick_scale:!0,category:"people"},bearded_person:{keywords:["person","bewhiskered"],"char":"🧔",fitzpatrick_scale:!0,category:"people"},older_adult:{keywords:["human","elder","senior","gender-neutral"],"char":"🧓",fitzpatrick_scale:!0,category:"people"},older_man:{keywords:["human","male","men","old","elder","senior"],"char":"👴",fitzpatrick_scale:!0,category:"people"},older_woman:{keywords:["human","female","women","lady","old","elder","senior"],"char":"👵",fitzpatrick_scale:!0,category:"people"},man_with_gua_pi_mao:{keywords:["male","boy","chinese"],"char":"👲",fitzpatrick_scale:!0,category:"people"},woman_with_headscarf:{keywords:["female","hijab","mantilla","tichel"],"char":"🧕",fitzpatrick_scale:!0,category:"people"},woman_with_turban:{keywords:["female","indian","hinduism","arabs","woman"],"char":"👳‍♀️",fitzpatrick_scale:!0,category:"people"},man_with_turban:{keywords:["male","indian","hinduism","arabs"],"char":"👳",fitzpatrick_scale:!0,category:"people"},policewoman:{keywords:["woman","police","law","legal","enforcement","arrest","911","female"],"char":"👮‍♀️",fitzpatrick_scale:!0,category:"people"},policeman:{keywords:["man","police","law","legal","enforcement","arrest","911"],"char":"👮",fitzpatrick_scale:!0,category:"people"},construction_worker_woman:{keywords:["female","human","wip","build","construction","worker","labor","woman"],"char":"👷‍♀️",fitzpatrick_scale:!0,category:"people"},construction_worker_man:{keywords:["male","human","wip","guy","build","construction","worker","labor"],"char":"👷",fitzpatrick_scale:!0,category:"people"},guardswoman:{keywords:["uk","gb","british","female","royal","woman"],"char":"💂‍♀️",fitzpatrick_scale:!0,category:"people"},guardsman:{keywords:["uk","gb","british","male","guy","royal"],"char":"💂",fitzpatrick_scale:!0,category:"people"},female_detective:{keywords:["human","spy","detective","female","woman"],"char":"🕵️‍♀️",fitzpatrick_scale:!0,category:"people"},male_detective:{keywords:["human","spy","detective"],"char":"🕵",fitzpatrick_scale:!0,category:"people"},woman_health_worker:{keywords:["doctor","nurse","therapist","healthcare","woman","human"],"char":"👩‍⚕️",fitzpatrick_scale:!0,category:"people"},man_health_worker:{keywords:["doctor","nurse","therapist","healthcare","man","human"],"char":"👨‍⚕️",fitzpatrick_scale:!0,category:"people"},woman_farmer:{keywords:["rancher","gardener","woman","human"],"char":"👩‍🌾",fitzpatrick_scale:!0,category:"people"},man_farmer:{keywords:["rancher","gardener","man","human"],"char":"👨‍🌾",fitzpatrick_scale:!0,category:"people"},woman_cook:{keywords:["chef","woman","human"],"char":"👩‍🍳",fitzpatrick_scale:!0,category:"people"},man_cook:{keywords:["chef","man","human"],"char":"👨‍🍳",fitzpatrick_scale:!0,category:"people"},woman_student:{keywords:["graduate","woman","human"],"char":"👩‍🎓",fitzpatrick_scale:!0,category:"people"},man_student:{keywords:["graduate","man","human"],"char":"👨‍🎓",fitzpatrick_scale:!0,category:"people"},woman_singer:{keywords:["rockstar","entertainer","woman","human"],"char":"👩‍🎤",fitzpatrick_scale:!0,category:"people"},man_singer:{keywords:["rockstar","entertainer","man","human"],"char":"👨‍🎤",fitzpatrick_scale:!0,category:"people"},woman_teacher:{keywords:["instructor","professor","woman","human"],"char":"👩‍🏫",fitzpatrick_scale:!0,category:"people"},man_teacher:{keywords:["instructor","professor","man","human"],"char":"👨‍🏫",fitzpatrick_scale:!0,category:"people"},woman_factory_worker:{keywords:["assembly","industrial","woman","human"],"char":"👩‍🏭",fitzpatrick_scale:!0,category:"people"},man_factory_worker:{keywords:["assembly","industrial","man","human"],"char":"👨‍🏭",fitzpatrick_scale:!0,category:"people"},woman_technologist:{keywords:["coder","developer","engineer","programmer","software","woman","human","laptop","computer"],"char":"👩‍💻",fitzpatrick_scale:!0,category:"people"},man_technologist:{keywords:["coder","developer","engineer","programmer","software","man","human","laptop","computer"],"char":"👨‍💻",fitzpatrick_scale:!0,category:"people"},woman_office_worker:{keywords:["business","manager","woman","human"],"char":"👩‍💼",fitzpatrick_scale:!0,category:"people"},man_office_worker:{keywords:["business","manager","man","human"],"char":"👨‍💼",fitzpatrick_scale:!0,category:"people"},woman_mechanic:{keywords:["plumber","woman","human","wrench"],"char":"👩‍🔧",fitzpatrick_scale:!0,category:"people"},man_mechanic:{keywords:["plumber","man","human","wrench"],"char":"👨‍🔧",fitzpatrick_scale:!0,category:"people"},woman_scientist:{keywords:["biologist","chemist","engineer","physicist","woman","human"],"char":"👩‍🔬",fitzpatrick_scale:!0,category:"people"},man_scientist:{keywords:["biologist","chemist","engineer","physicist","man","human"],"char":"👨‍🔬",fitzpatrick_scale:!0,category:"people"},woman_artist:{keywords:["painter","woman","human"],"char":"👩‍🎨",fitzpatrick_scale:!0,category:"people"},man_artist:{keywords:["painter","man","human"],"char":"👨‍🎨",fitzpatrick_scale:!0,category:"people"},woman_firefighter:{keywords:["fireman","woman","human"],"char":"👩‍🚒",fitzpatrick_scale:!0,category:"people"},man_firefighter:{keywords:["fireman","man","human"],"char":"👨‍🚒",fitzpatrick_scale:!0,category:"people"},woman_pilot:{keywords:["aviator","plane","woman","human"],"char":"👩‍✈️",fitzpatrick_scale:!0,category:"people"},man_pilot:{keywords:["aviator","plane","man","human"],"char":"👨‍✈️",fitzpatrick_scale:!0,category:"people"},woman_astronaut:{keywords:["space","rocket","woman","human"],"char":"👩‍🚀",fitzpatrick_scale:!0,category:"people"},man_astronaut:{keywords:["space","rocket","man","human"],"char":"👨‍🚀",fitzpatrick_scale:!0,category:"people"},woman_judge:{keywords:["justice","court","woman","human"],"char":"👩‍⚖️",fitzpatrick_scale:!0,category:"people"},man_judge:{keywords:["justice","court","man","human"],"char":"👨‍⚖️",fitzpatrick_scale:!0,category:"people"},mrs_claus:{keywords:["woman","female","xmas","mother christmas"],"char":"🤶",fitzpatrick_scale:!0,category:"people"},santa:{keywords:["festival","man","male","xmas","father christmas"],"char":"🎅",fitzpatrick_scale:!0,category:"people"},sorceress:{keywords:["woman","female","mage","witch"],"char":"🧙‍♀️",fitzpatrick_scale:!0,category:"people"},wizard:{keywords:["man","male","mage","sorcerer"],"char":"🧙‍♂️",fitzpatrick_scale:!0,category:"people"},woman_elf:{keywords:["woman","female"],"char":"🧝‍♀️",fitzpatrick_scale:!0,category:"people"},man_elf:{keywords:["man","male"],"char":"🧝‍♂️",fitzpatrick_scale:!0,category:"people"},woman_vampire:{keywords:["woman","female"],"char":"🧛‍♀️",fitzpatrick_scale:!0,category:"people"},man_vampire:{keywords:["man","male","dracula"],"char":"🧛‍♂️",fitzpatrick_scale:!0,category:"people"},woman_zombie:{keywords:["woman","female","undead","walking dead"],"char":"🧟‍♀️",fitzpatrick_scale:!1,category:"people"},man_zombie:{keywords:["man","male","dracula","undead","walking dead"],"char":"🧟‍♂️",fitzpatrick_scale:!1,category:"people"},woman_genie:{keywords:["woman","female"],"char":"🧞‍♀️",fitzpatrick_scale:!1,category:"people"},man_genie:{keywords:["man","male"],"char":"🧞‍♂️",fitzpatrick_scale:!1,category:"people"},mermaid:{keywords:["woman","female","merwoman","ariel"],"char":"🧜‍♀️",fitzpatrick_scale:!0,category:"people"},merman:{keywords:["man","male","triton"],"char":"🧜‍♂️",fitzpatrick_scale:!0,category:"people"},woman_fairy:{keywords:["woman","female"],"char":"🧚‍♀️",fitzpatrick_scale:!0,category:"people"},man_fairy:{keywords:["man","male"],"char":"🧚‍♂️",fitzpatrick_scale:!0,category:"people"},angel:{keywords:["heaven","wings","halo"],"char":"👼",fitzpatrick_scale:!0,category:"people"},pregnant_woman:{keywords:["baby"],"char":"🤰",fitzpatrick_scale:!0,category:"people"},breastfeeding:{keywords:["nursing","baby"],"char":"🤱",fitzpatrick_scale:!0,category:"people"},princess:{keywords:["girl","woman","female","blond","crown","royal","queen"],"char":"👸",fitzpatrick_scale:!0,category:"people"},prince:{keywords:["boy","man","male","crown","royal","king"],"char":"🤴",fitzpatrick_scale:!0,category:"people"},bride_with_veil:{keywords:["couple","marriage","wedding","woman","bride"],"char":"👰",fitzpatrick_scale:!0,category:"people"},man_in_tuxedo:{keywords:["couple","marriage","wedding","groom"],"char":"🤵",fitzpatrick_scale:!0,category:"people"},running_woman:{keywords:["woman","walking","exercise","race","running","female"],"char":"🏃‍♀️",fitzpatrick_scale:!0,category:"people"},running_man:{keywords:["man","walking","exercise","race","running"],"char":"🏃",fitzpatrick_scale:!0,category:"people"},walking_woman:{keywords:["human","feet","steps","woman","female"],"char":"🚶‍♀️",fitzpatrick_scale:!0,category:"people"},walking_man:{keywords:["human","feet","steps"],"char":"🚶",fitzpatrick_scale:!0,category:"people"},dancer:{keywords:["female","girl","woman","fun"],"char":"💃",fitzpatrick_scale:!0,category:"people"},man_dancing:{keywords:["male","boy","fun","dancer"],"char":"🕺",fitzpatrick_scale:!0,category:"people"},dancing_women:{keywords:["female","bunny","women","girls"],"char":"👯",fitzpatrick_scale:!1,category:"people"},dancing_men:{keywords:["male","bunny","men","boys"],"char":"👯‍♂️",fitzpatrick_scale:!1,category:"people"},couple:{keywords:["pair","people","human","love","date","dating","like","affection","valentines","marriage"],"char":"👫",fitzpatrick_scale:!1,category:"people"},two_men_holding_hands:{keywords:["pair","couple","love","like","bromance","friendship","people","human"],"char":"👬",fitzpatrick_scale:!1,category:"people"},two_women_holding_hands:{keywords:["pair","friendship","couple","love","like","female","people","human"],"char":"👭",fitzpatrick_scale:!1,category:"people"},bowing_woman:{keywords:["woman","female","girl"],"char":"🙇‍♀️",fitzpatrick_scale:!0,category:"people"},bowing_man:{keywords:["man","male","boy"],"char":"🙇",fitzpatrick_scale:!0,category:"people"},man_facepalming:{keywords:["man","male","boy","disbelief"],"char":"🤦",fitzpatrick_scale:!0,category:"people"},woman_facepalming:{keywords:["woman","female","girl","disbelief"],"char":"🤦‍♀️",fitzpatrick_scale:!0,category:"people"},woman_shrugging:{keywords:["woman","female","girl","confused","indifferent","doubt"],"char":"🤷",fitzpatrick_scale:!0,category:"people"},man_shrugging:{keywords:["man","male","boy","confused","indifferent","doubt"],"char":"🤷‍♂️",fitzpatrick_scale:!0,category:"people"},tipping_hand_woman:{keywords:["female","girl","woman","human","information"],"char":"💁",fitzpatrick_scale:!0,category:"people"},tipping_hand_man:{keywords:["male","boy","man","human","information"],"char":"💁‍♂️",fitzpatrick_scale:!0,category:"people"},no_good_woman:{keywords:["female","girl","woman","nope"],"char":"🙅",fitzpatrick_scale:!0,category:"people"},no_good_man:{keywords:["male","boy","man","nope"],"char":"🙅‍♂️",fitzpatrick_scale:!0,category:"people"},ok_woman:{keywords:["women","girl","female","pink","human","woman"],"char":"🙆",fitzpatrick_scale:!0,category:"people"},ok_man:{keywords:["men","boy","male","blue","human","man"],"char":"🙆‍♂️",fitzpatrick_scale:!0,category:"people"},raising_hand_woman:{keywords:["female","girl","woman"],"char":"🙋",fitzpatrick_scale:!0,category:"people"},raising_hand_man:{keywords:["male","boy","man"],"char":"🙋‍♂️",fitzpatrick_scale:!0,category:"people"},pouting_woman:{keywords:["female","girl","woman"],"char":"🙎",fitzpatrick_scale:!0,category:"people"},pouting_man:{keywords:["male","boy","man"],"char":"🙎‍♂️",fitzpatrick_scale:!0,category:"people"},frowning_woman:{keywords:["female","girl","woman","sad","depressed","discouraged","unhappy"],"char":"🙍",fitzpatrick_scale:!0,category:"people"},frowning_man:{keywords:["male","boy","man","sad","depressed","discouraged","unhappy"],"char":"🙍‍♂️",fitzpatrick_scale:!0,category:"people"},haircut_woman:{keywords:["female","girl","woman"],"char":"💇",fitzpatrick_scale:!0,category:"people"},haircut_man:{keywords:["male","boy","man"],"char":"💇‍♂️",fitzpatrick_scale:!0,category:"people"},massage_woman:{keywords:["female","girl","woman","head"],"char":"💆",fitzpatrick_scale:!0,category:"people"},massage_man:{keywords:["male","boy","man","head"],"char":"💆‍♂️",fitzpatrick_scale:!0,category:"people"},woman_in_steamy_room:{keywords:["female","woman","spa","steamroom","sauna"],"char":"🧖‍♀️",fitzpatrick_scale:!0,category:"people"},man_in_steamy_room:{keywords:["male","man","spa","steamroom","sauna"],"char":"🧖‍♂️",fitzpatrick_scale:!0,category:"people"},couple_with_heart_woman_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],"char":"💑",fitzpatrick_scale:!1,category:"people"},couple_with_heart_woman_woman:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],"char":"👩‍❤️‍👩",fitzpatrick_scale:!1,category:"people"},couple_with_heart_man_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],"char":"👨‍❤️‍👨",fitzpatrick_scale:!1,category:"people"},couplekiss_man_woman:{keywords:["pair","valentines","love","like","dating","marriage"],"char":"💏",fitzpatrick_scale:!1,category:"people"},couplekiss_woman_woman:{keywords:["pair","valentines","love","like","dating","marriage"],"char":"👩‍❤️‍💋‍👩",fitzpatrick_scale:!1,category:"people"},couplekiss_man_man:{keywords:["pair","valentines","love","like","dating","marriage"],"char":"👨‍❤️‍💋‍👨",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy:{keywords:["home","parents","child","mom","dad","father","mother","people","human"],"char":"👪",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl:{keywords:["home","parents","people","human","child"],"char":"👨‍👩‍👧",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_boy:{keywords:["home","parents","people","human","children"],"char":"👨‍👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy_boy:{keywords:["home","parents","people","human","children"],"char":"👨‍👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_girl:{keywords:["home","parents","people","human","children"],"char":"👨‍👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy:{keywords:["home","parents","people","human","children"],"char":"👩‍👩‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl:{keywords:["home","parents","people","human","children"],"char":"👩‍👩‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_boy:{keywords:["home","parents","people","human","children"],"char":"👩‍👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy_boy:{keywords:["home","parents","people","human","children"],"char":"👩‍👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_girl:{keywords:["home","parents","people","human","children"],"char":"👩‍👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_man_man_boy:{keywords:["home","parents","people","human","children"],"char":"👨‍👨‍👦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl:{keywords:["home","parents","people","human","children"],"char":"👨‍👨‍👧",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_boy:{keywords:["home","parents","people","human","children"],"char":"👨‍👨‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_man_man_boy_boy:{keywords:["home","parents","people","human","children"],"char":"👨‍👨‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_girl:{keywords:["home","parents","people","human","children"],"char":"👨‍👨‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_boy:{keywords:["home","parent","people","human","child"],"char":"👩‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_girl:{keywords:["home","parent","people","human","child"],"char":"👩‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_girl_boy:{keywords:["home","parent","people","human","children"],"char":"👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_boy_boy:{keywords:["home","parent","people","human","children"],"char":"👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_girl_girl:{keywords:["home","parent","people","human","children"],"char":"👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_man_boy:{keywords:["home","parent","people","human","child"],"char":"👨‍👦",fitzpatrick_scale:!1,category:"people"},family_man_girl:{keywords:["home","parent","people","human","child"],"char":"👨‍👧",fitzpatrick_scale:!1,category:"people"},family_man_girl_boy:{keywords:["home","parent","people","human","children"],"char":"👨‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_man_boy_boy:{keywords:["home","parent","people","human","children"],"char":"👨‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_man_girl_girl:{keywords:["home","parent","people","human","children"],"char":"👨‍👧‍👧",fitzpatrick_scale:!1,category:"people"},coat:{keywords:["jacket"],"char":"🧥",fitzpatrick_scale:!1,category:"people"},womans_clothes:{keywords:["fashion","shopping_bags","female"],"char":"👚",fitzpatrick_scale:!1,category:"people"},tshirt:{keywords:["fashion","cloth","casual","shirt","tee"],"char":"👕",fitzpatrick_scale:!1,category:"people"},jeans:{keywords:["fashion","shopping"],"char":"👖",fitzpatrick_scale:!1,category:"people"},necktie:{keywords:["shirt","suitup","formal","fashion","cloth","business"],"char":"👔",fitzpatrick_scale:!1,category:"people"},dress:{keywords:["clothes","fashion","shopping"],"char":"👗",fitzpatrick_scale:!1,category:"people"},bikini:{keywords:["swimming","female","woman","girl","fashion","beach","summer"],"char":"👙",fitzpatrick_scale:!1,category:"people"},kimono:{keywords:["dress","fashion","women","female","japanese"],"char":"👘",fitzpatrick_scale:!1,category:"people"},lipstick:{keywords:["female","girl","fashion","woman"],"char":"💄",fitzpatrick_scale:!1,category:"people"},kiss:{keywords:["face","lips","love","like","affection","valentines"],"char":"💋",fitzpatrick_scale:!1,category:"people"},footprints:{keywords:["feet","tracking","walking","beach"],"char":"👣",fitzpatrick_scale:!1,category:"people"},high_heel:{keywords:["fashion","shoes","female","pumps","stiletto"],"char":"👠",fitzpatrick_scale:!1,category:"people"},sandal:{keywords:["shoes","fashion","flip flops"],"char":"👡",fitzpatrick_scale:!1,category:"people"},boot:{keywords:["shoes","fashion"],"char":"👢",fitzpatrick_scale:!1,category:"people"},mans_shoe:{keywords:["fashion","male"],"char":"👞",fitzpatrick_scale:!1,category:"people"},athletic_shoe:{keywords:["shoes","sports","sneakers"],"char":"👟",fitzpatrick_scale:!1,category:"people"},socks:{keywords:["stockings","clothes"],"char":"🧦",fitzpatrick_scale:!1,category:"people"},gloves:{keywords:["hands","winter","clothes"],"char":"🧤",fitzpatrick_scale:!1,category:"people"},scarf:{keywords:["neck","winter","clothes"],"char":"🧣",fitzpatrick_scale:!1,category:"people"},womans_hat:{keywords:["fashion","accessories","female","lady","spring"],"char":"👒",fitzpatrick_scale:!1,category:"people"},tophat:{keywords:["magic","gentleman","classy","circus"],"char":"🎩",fitzpatrick_scale:!1,category:"people"},billed_hat:{keywords:["cap","baseball"],"char":"🧢",fitzpatrick_scale:!1,category:"people"},rescue_worker_helmet:{keywords:["construction","build"],"char":"⛑",fitzpatrick_scale:!1,category:"people"},mortar_board:{keywords:["school","college","degree","university","graduation","cap","hat","legal","learn","education"],"char":"🎓",fitzpatrick_scale:!1,category:"people"},crown:{keywords:["king","kod","leader","royalty","lord"],"char":"👑",fitzpatrick_scale:!1,category:"people"},school_satchel:{keywords:["student","education","bag","backpack"],"char":"🎒",fitzpatrick_scale:!1,category:"people"},pouch:{keywords:["bag","accessories","shopping"],"char":"👝",fitzpatrick_scale:!1,category:"people"},purse:{keywords:["fashion","accessories","money","sales","shopping"],"char":"👛",fitzpatrick_scale:!1,category:"people"},handbag:{keywords:["fashion","accessory","accessories","shopping"],"char":"👜",fitzpatrick_scale:!1,category:"people"},briefcase:{keywords:["business","documents","work","law","legal","job","career"],"char":"💼",fitzpatrick_scale:!1,category:"people"},eyeglasses:{keywords:["fashion","accessories","eyesight","nerdy","dork","geek"],"char":"👓",fitzpatrick_scale:!1,category:"people"},dark_sunglasses:{keywords:["face","cool","accessories"],"char":"🕶",fitzpatrick_scale:!1,category:"people"},ring:{keywords:["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],"char":"💍",fitzpatrick_scale:!1,category:"people"},closed_umbrella:{keywords:["weather","rain","drizzle"],"char":"🌂",fitzpatrick_scale:!1,category:"people"},dog:{keywords:["animal","friend","nature","woof","puppy","pet","faithful"],"char":"🐶",fitzpatrick_scale:!1,category:"animals_and_nature"},cat:{keywords:["animal","meow","nature","pet","kitten"],"char":"🐱",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse:{keywords:["animal","nature","cheese_wedge","rodent"],"char":"🐭",fitzpatrick_scale:!1,category:"animals_and_nature"},hamster:{keywords:["animal","nature"],"char":"🐹",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit:{keywords:["animal","nature","pet","spring","magic","bunny"],"char":"🐰",fitzpatrick_scale:!1,category:"animals_and_nature"},fox_face:{keywords:["animal","nature","face"],"char":"🦊",fitzpatrick_scale:!1,category:"animals_and_nature"},bear:{keywords:["animal","nature","wild"],"char":"🐻",fitzpatrick_scale:!1,category:"animals_and_nature"},panda_face:{keywords:["animal","nature","panda"],"char":"🐼",fitzpatrick_scale:!1,category:"animals_and_nature"},koala:{keywords:["animal","nature"],"char":"🐨",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger:{keywords:["animal","cat","danger","wild","nature","roar"],"char":"🐯",fitzpatrick_scale:!1,category:"animals_and_nature"},lion:{keywords:["animal","nature"],"char":"🦁",fitzpatrick_scale:!1,category:"animals_and_nature"},cow:{keywords:["beef","ox","animal","nature","moo","milk"],"char":"🐮",fitzpatrick_scale:!1,category:"animals_and_nature"},pig:{keywords:["animal","oink","nature"],"char":"🐷",fitzpatrick_scale:!1,category:"animals_and_nature"},pig_nose:{keywords:["animal","oink"],"char":"🐽",fitzpatrick_scale:!1,category:"animals_and_nature"},frog:{keywords:["animal","nature","croak","toad"],"char":"🐸",fitzpatrick_scale:!1,category:"animals_and_nature"},squid:{keywords:["animal","nature","ocean","sea"],"char":"🦑",fitzpatrick_scale:!1,category:"animals_and_nature"},octopus:{keywords:["animal","creature","ocean","sea","nature","beach"],"char":"🐙",fitzpatrick_scale:!1,category:"animals_and_nature"},shrimp:{keywords:["animal","ocean","nature","seafood"],"char":"🦐",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey_face:{keywords:["animal","nature","circus"],"char":"🐵",fitzpatrick_scale:!1,category:"animals_and_nature"},gorilla:{keywords:["animal","nature","circus"],"char":"🦍",fitzpatrick_scale:!1,category:"animals_and_nature"},see_no_evil:{keywords:["monkey","animal","nature","haha"],"char":"🙈",fitzpatrick_scale:!1,category:"animals_and_nature"},hear_no_evil:{keywords:["animal","monkey","nature"],"char":"🙉",fitzpatrick_scale:!1,category:"animals_and_nature"},speak_no_evil:{keywords:["monkey","animal","nature","omg"],"char":"🙊",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey:{keywords:["animal","nature","banana","circus"],"char":"🐒",fitzpatrick_scale:!1,category:"animals_and_nature"},chicken:{keywords:["animal","cluck","nature","bird"],"char":"🐔",fitzpatrick_scale:!1,category:"animals_and_nature"},penguin:{keywords:["animal","nature"],"char":"🐧",fitzpatrick_scale:!1,category:"animals_and_nature"},bird:{keywords:["animal","nature","fly","tweet","spring"],"char":"🐦",fitzpatrick_scale:!1,category:"animals_and_nature"},baby_chick:{keywords:["animal","chicken","bird"],"char":"🐤",fitzpatrick_scale:!1,category:"animals_and_nature"},hatching_chick:{keywords:["animal","chicken","egg","born","baby","bird"],"char":"🐣",fitzpatrick_scale:!1,category:"animals_and_nature"},hatched_chick:{keywords:["animal","chicken","baby","bird"],"char":"🐥",fitzpatrick_scale:!1,category:"animals_and_nature"},duck:{keywords:["animal","nature","bird","mallard"],"char":"🦆",fitzpatrick_scale:!1,category:"animals_and_nature"},eagle:{keywords:["animal","nature","bird"],"char":"🦅",fitzpatrick_scale:!1,category:"animals_and_nature"},owl:{keywords:["animal","nature","bird","hoot"],"char":"🦉",fitzpatrick_scale:!1,category:"animals_and_nature"},bat:{keywords:["animal","nature","blind","vampire"],"char":"🦇",fitzpatrick_scale:!1,category:"animals_and_nature"},wolf:{keywords:["animal","nature","wild"],"char":"🐺",fitzpatrick_scale:!1,category:"animals_and_nature"},boar:{keywords:["animal","nature"],"char":"🐗",fitzpatrick_scale:!1,category:"animals_and_nature"},horse:{keywords:["animal","brown","nature"],"char":"🐴",fitzpatrick_scale:!1,category:"animals_and_nature"},unicorn:{keywords:["animal","nature","mystical"],"char":"🦄",fitzpatrick_scale:!1,category:"animals_and_nature"},honeybee:{keywords:["animal","insect","nature","bug","spring","honey"],"char":"🐝",fitzpatrick_scale:!1,category:"animals_and_nature"},bug:{keywords:["animal","insect","nature","worm"],"char":"🐛",fitzpatrick_scale:!1,category:"animals_and_nature"},butterfly:{keywords:["animal","insect","nature","caterpillar"],"char":"🦋",fitzpatrick_scale:!1,category:"animals_and_nature"},snail:{keywords:["slow","animal","shell"],"char":"🐌",fitzpatrick_scale:!1,category:"animals_and_nature"},beetle:{keywords:["animal","insect","nature","ladybug"],"char":"🐞",fitzpatrick_scale:!1,category:"animals_and_nature"},ant:{keywords:["animal","insect","nature","bug"],"char":"🐜",fitzpatrick_scale:!1,category:"animals_and_nature"},grasshopper:{keywords:["animal","cricket","chirp"],"char":"🦗",fitzpatrick_scale:!1,category:"animals_and_nature"},spider:{keywords:["animal","arachnid"],"char":"🕷",fitzpatrick_scale:!1,category:"animals_and_nature"},scorpion:{keywords:["animal","arachnid"],"char":"🦂",fitzpatrick_scale:!1,category:"animals_and_nature"},crab:{keywords:["animal","crustacean"],"char":"🦀",fitzpatrick_scale:!1,category:"animals_and_nature"},snake:{keywords:["animal","evil","nature","hiss","python"],"char":"🐍",fitzpatrick_scale:!1,category:"animals_and_nature"},lizard:{keywords:["animal","nature","reptile"],"char":"🦎",fitzpatrick_scale:!1,category:"animals_and_nature"},"t-rex":{keywords:["animal","nature","dinosaur","tyrannosaurus","extinct"],"char":"🦖",fitzpatrick_scale:!1,category:"animals_and_nature"},sauropod:{keywords:["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],"char":"🦕",fitzpatrick_scale:!1,category:"animals_and_nature"},turtle:{keywords:["animal","slow","nature","tortoise"],"char":"🐢",fitzpatrick_scale:!1,category:"animals_and_nature"},tropical_fish:{keywords:["animal","swim","ocean","beach","nemo"],"char":"🐠",fitzpatrick_scale:!1,category:"animals_and_nature"},fish:{keywords:["animal","food","nature"],"char":"🐟",fitzpatrick_scale:!1,category:"animals_and_nature"},blowfish:{keywords:["animal","nature","food","sea","ocean"],"char":"🐡",fitzpatrick_scale:!1,category:"animals_and_nature"},dolphin:{keywords:["animal","nature","fish","sea","ocean","flipper","fins","beach"],"char":"🐬",fitzpatrick_scale:!1,category:"animals_and_nature"},shark:{keywords:["animal","nature","fish","sea","ocean","jaws","fins","beach"],"char":"🦈",fitzpatrick_scale:!1,category:"animals_and_nature"},whale:{keywords:["animal","nature","sea","ocean"],"char":"🐳",fitzpatrick_scale:!1,category:"animals_and_nature"},whale2:{keywords:["animal","nature","sea","ocean"],"char":"🐋",fitzpatrick_scale:!1,category:"animals_and_nature"},crocodile:{keywords:["animal","nature","reptile","lizard","alligator"],"char":"🐊",fitzpatrick_scale:!1,category:"animals_and_nature"},leopard:{keywords:["animal","nature"],"char":"🐆",fitzpatrick_scale:!1,category:"animals_and_nature"},zebra:{keywords:["animal","nature","stripes","safari"],"char":"🦓",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger2:{keywords:["animal","nature","roar"],"char":"🐅",fitzpatrick_scale:!1,category:"animals_and_nature"},water_buffalo:{keywords:["animal","nature","ox","cow"],"char":"🐃",fitzpatrick_scale:!1,category:"animals_and_nature"},ox:{keywords:["animal","cow","beef"],"char":"🐂",fitzpatrick_scale:!1,category:"animals_and_nature"},cow2:{keywords:["beef","ox","animal","nature","moo","milk"],"char":"🐄",fitzpatrick_scale:!1,category:"animals_and_nature"},deer:{keywords:["animal","nature","horns","venison"],"char":"🦌",fitzpatrick_scale:!1,category:"animals_and_nature"},dromedary_camel:{keywords:["animal","hot","desert","hump"],"char":"🐪",fitzpatrick_scale:!1,category:"animals_and_nature"},camel:{keywords:["animal","nature","hot","desert","hump"],"char":"🐫",fitzpatrick_scale:!1,category:"animals_and_nature"},giraffe:{keywords:["animal","nature","spots","safari"],"char":"🦒",fitzpatrick_scale:!1,category:"animals_and_nature"},elephant:{keywords:["animal","nature","nose","th","circus"],"char":"🐘",fitzpatrick_scale:!1,category:"animals_and_nature"},rhinoceros:{keywords:["animal","nature","horn"],"char":"🦏",fitzpatrick_scale:!1,category:"animals_and_nature"},goat:{keywords:["animal","nature"],"char":"🐐",fitzpatrick_scale:!1,category:"animals_and_nature"},ram:{keywords:["animal","sheep","nature"],"char":"🐏",fitzpatrick_scale:!1,category:"animals_and_nature"},sheep:{keywords:["animal","nature","wool","shipit"],"char":"🐑",fitzpatrick_scale:!1,category:"animals_and_nature"},racehorse:{keywords:["animal","gamble","luck"],"char":"🐎",fitzpatrick_scale:!1,category:"animals_and_nature"},pig2:{keywords:["animal","nature"],"char":"🐖",fitzpatrick_scale:!1,category:"animals_and_nature"},rat:{keywords:["animal","mouse","rodent"],"char":"🐀",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse2:{keywords:["animal","nature","rodent"],"char":"🐁",fitzpatrick_scale:!1,category:"animals_and_nature"},rooster:{keywords:["animal","nature","chicken"],"char":"🐓",fitzpatrick_scale:!1,category:"animals_and_nature"},turkey:{keywords:["animal","bird"],"char":"🦃",fitzpatrick_scale:!1,category:"animals_and_nature"},dove:{keywords:["animal","bird"],"char":"🕊",fitzpatrick_scale:!1,category:"animals_and_nature"},dog2:{keywords:["animal","nature","friend","doge","pet","faithful"],"char":"🐕",fitzpatrick_scale:!1,category:"animals_and_nature"},poodle:{keywords:["dog","animal","101","nature","pet"],"char":"🐩",fitzpatrick_scale:!1,category:"animals_and_nature"},cat2:{keywords:["animal","meow","pet","cats"],"char":"🐈",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit2:{keywords:["animal","nature","pet","magic","spring"],"char":"🐇",fitzpatrick_scale:!1,category:"animals_and_nature"},chipmunk:{keywords:["animal","nature","rodent","squirrel"],"char":"🐿",fitzpatrick_scale:!1,category:"animals_and_nature"},hedgehog:{keywords:["animal","nature","spiny"],"char":"🦔",fitzpatrick_scale:!1,category:"animals_and_nature"},paw_prints:{keywords:["animal","tracking","footprints","dog","cat","pet","feet"],"char":"🐾",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon:{keywords:["animal","myth","nature","chinese","green"],"char":"🐉",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon_face:{keywords:["animal","myth","nature","chinese","green"],"char":"🐲",fitzpatrick_scale:!1,category:"animals_and_nature"},cactus:{keywords:["vegetable","plant","nature"],"char":"🌵",fitzpatrick_scale:!1,category:"animals_and_nature"},christmas_tree:{keywords:["festival","vacation","december","xmas","celebration"],"char":"🎄",fitzpatrick_scale:!1,category:"animals_and_nature"},evergreen_tree:{keywords:["plant","nature"],"char":"🌲",fitzpatrick_scale:!1,category:"animals_and_nature"},deciduous_tree:{keywords:["plant","nature"],"char":"🌳",fitzpatrick_scale:!1,category:"animals_and_nature"},palm_tree:{keywords:["plant","vegetable","nature","summer","beach","mojito","tropical"],"char":"🌴",fitzpatrick_scale:!1,category:"animals_and_nature"},seedling:{keywords:["plant","nature","grass","lawn","spring"],"char":"🌱",fitzpatrick_scale:!1,category:"animals_and_nature"},herb:{keywords:["vegetable","plant","medicine","weed","grass","lawn"],"char":"🌿",fitzpatrick_scale:!1,category:"animals_and_nature"},shamrock:{keywords:["vegetable","plant","nature","irish","clover"],"char":"☘",fitzpatrick_scale:!1,category:"animals_and_nature"},four_leaf_clover:{keywords:["vegetable","plant","nature","lucky","irish"],"char":"🍀",fitzpatrick_scale:!1,category:"animals_and_nature"},bamboo:{keywords:["plant","nature","vegetable","panda","pine_decoration"],"char":"🎍",fitzpatrick_scale:!1,category:"animals_and_nature"},tanabata_tree:{keywords:["plant","nature","branch","summer"],"char":"🎋",fitzpatrick_scale:!1,category:"animals_and_nature"},leaves:{keywords:["nature","plant","tree","vegetable","grass","lawn","spring"],"char":"🍃",fitzpatrick_scale:!1,category:"animals_and_nature"},fallen_leaf:{keywords:["nature","plant","vegetable","leaves"],"char":"🍂",fitzpatrick_scale:!1,category:"animals_and_nature"},maple_leaf:{keywords:["nature","plant","vegetable","ca","fall"],"char":"🍁",fitzpatrick_scale:!1,category:"animals_and_nature"},ear_of_rice:{keywords:["nature","plant"],"char":"🌾",fitzpatrick_scale:!1,category:"animals_and_nature"},hibiscus:{keywords:["plant","vegetable","flowers","beach"],"char":"🌺",fitzpatrick_scale:!1,category:"animals_and_nature"},sunflower:{keywords:["nature","plant","fall"],"char":"🌻",fitzpatrick_scale:!1,category:"animals_and_nature"},rose:{keywords:["flowers","valentines","love","spring"],"char":"🌹",fitzpatrick_scale:!1,category:"animals_and_nature"},wilted_flower:{keywords:["plant","nature","flower"],"char":"🥀",fitzpatrick_scale:!1,category:"animals_and_nature"},tulip:{keywords:["flowers","plant","nature","summer","spring"],"char":"🌷",fitzpatrick_scale:!1,category:"animals_and_nature"},blossom:{keywords:["nature","flowers","yellow"],"char":"🌼",fitzpatrick_scale:!1,category:"animals_and_nature"},cherry_blossom:{keywords:["nature","plant","spring","flower"],"char":"🌸",fitzpatrick_scale:!1,category:"animals_and_nature"},bouquet:{keywords:["flowers","nature","spring"],"char":"💐",fitzpatrick_scale:!1,category:"animals_and_nature"},mushroom:{keywords:["plant","vegetable"],"char":"🍄",fitzpatrick_scale:!1,category:"animals_and_nature"},chestnut:{keywords:["food","squirrel"],"char":"🌰",fitzpatrick_scale:!1,category:"animals_and_nature"},jack_o_lantern:{keywords:["halloween","light","pumpkin","creepy","fall"],"char":"🎃",fitzpatrick_scale:!1,category:"animals_and_nature"},shell:{keywords:["nature","sea","beach"],"char":"🐚",fitzpatrick_scale:!1,category:"animals_and_nature"},spider_web:{keywords:["animal","insect","arachnid","silk"],"char":"🕸",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_americas:{keywords:["globe","world","USA","international"],"char":"🌎",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_africa:{keywords:["globe","world","international"],"char":"🌍",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_asia:{keywords:["globe","world","east","international"],"char":"🌏",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon:{keywords:["nature","yellow","twilight","planet","space","night","evening","sleep"],"char":"🌕",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_gibbous_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep","waxing_gibbous_moon"],"char":"🌖",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌗",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌘",fitzpatrick_scale:!1,category:"animals_and_nature"},new_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌑",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌒",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌓",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_gibbous_moon:{keywords:["nature","night","sky","gray","twilight","planet","space","evening","sleep"],"char":"🌔",fitzpatrick_scale:!1,category:"animals_and_nature"},new_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌚",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌝",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌛",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],"char":"🌜",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_with_face:{keywords:["nature","morning","sky"],"char":"🌞",fitzpatrick_scale:!1,category:"animals_and_nature"},crescent_moon:{keywords:["night","sleep","sky","evening","magic"],"char":"🌙",fitzpatrick_scale:!1,category:"animals_and_nature"},star:{keywords:["night","yellow"],"char":"⭐",fitzpatrick_scale:!1,category:"animals_and_nature"},star2:{keywords:["night","sparkle","awesome","good","magic"],"char":"🌟",fitzpatrick_scale:!1,category:"animals_and_nature"},dizzy:{keywords:["star","sparkle","shoot","magic"],"char":"💫",fitzpatrick_scale:!1,category:"animals_and_nature"},sparkles:{keywords:["stars","shine","shiny","cool","awesome","good","magic"],"char":"✨",fitzpatrick_scale:!1,category:"animals_and_nature"},comet:{keywords:["space"],"char":"☄",fitzpatrick_scale:!1,category:"animals_and_nature"},sunny:{keywords:["weather","nature","brightness","summer","beach","spring"],"char":"☀️",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_small_cloud:{keywords:["weather"],"char":"🌤",fitzpatrick_scale:!1,category:"animals_and_nature"},partly_sunny:{keywords:["weather","nature","cloudy","morning","fall","spring"],"char":"⛅",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_large_cloud:{keywords:["weather"],"char":"🌥",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_rain_cloud:{keywords:["weather"],"char":"🌦",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud:{keywords:["weather","sky"],"char":"☁️",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_rain:{keywords:["weather"],"char":"🌧",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning_and_rain:{keywords:["weather","lightning"],"char":"⛈",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning:{keywords:["weather","thunder"],"char":"🌩",fitzpatrick_scale:!1,category:"animals_and_nature"},zap:{keywords:["thunder","weather","lightning bolt","fast"],"char":"⚡",fitzpatrick_scale:!1,category:"animals_and_nature"},fire:{keywords:["hot","cook","flame"],"char":"🔥",fitzpatrick_scale:!1,category:"animals_and_nature"},boom:{keywords:["bomb","explode","explosion","collision","blown"],"char":"💥",fitzpatrick_scale:!1,category:"animals_and_nature"},snowflake:{keywords:["winter","season","cold","weather","christmas","xmas"],"char":"❄️",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_snow:{keywords:["weather"],"char":"🌨",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman:{keywords:["winter","season","cold","weather","christmas","xmas","frozen","without_snow"],"char":"⛄",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman_with_snow:{keywords:["winter","season","cold","weather","christmas","xmas","frozen"],"char":"☃",fitzpatrick_scale:!1,category:"animals_and_nature"},wind_face:{keywords:["gust","air"],"char":"🌬",fitzpatrick_scale:!1,category:"animals_and_nature"},dash:{keywords:["wind","air","fast","shoo","fart","smoke","puff"],"char":"💨",fitzpatrick_scale:!1,category:"animals_and_nature"},tornado:{keywords:["weather","cyclone","twister"],"char":"🌪",fitzpatrick_scale:!1,category:"animals_and_nature"},fog:{keywords:["weather"],"char":"🌫",fitzpatrick_scale:!1,category:"animals_and_nature"},open_umbrella:{keywords:["weather","spring"],"char":"☂",fitzpatrick_scale:!1,category:"animals_and_nature"},umbrella:{keywords:["rainy","weather","spring"],"char":"☔",fitzpatrick_scale:!1,category:"animals_and_nature"},droplet:{keywords:["water","drip","faucet","spring"],"char":"💧",fitzpatrick_scale:!1,category:"animals_and_nature"},sweat_drops:{keywords:["water","drip","oops"],"char":"💦",fitzpatrick_scale:!1,category:"animals_and_nature"},ocean:{keywords:["sea","water","wave","nature","tsunami","disaster"],"char":"🌊",fitzpatrick_scale:!1,category:"animals_and_nature"},green_apple:{keywords:["fruit","nature"],"char":"🍏",fitzpatrick_scale:!1,category:"food_and_drink"},apple:{keywords:["fruit","mac","school"],"char":"🍎",fitzpatrick_scale:!1,category:"food_and_drink"},pear:{keywords:["fruit","nature","food"],"char":"🍐",fitzpatrick_scale:!1,category:"food_and_drink"},tangerine:{keywords:["food","fruit","nature","orange"],"char":"🍊",fitzpatrick_scale:!1,category:"food_and_drink"},lemon:{keywords:["fruit","nature"],"char":"🍋",fitzpatrick_scale:!1,category:"food_and_drink"},banana:{keywords:["fruit","food","monkey"],"char":"🍌",fitzpatrick_scale:!1,category:"food_and_drink"},watermelon:{keywords:["fruit","food","picnic","summer"],"char":"🍉",fitzpatrick_scale:!1,category:"food_and_drink"},grapes:{keywords:["fruit","food","wine"],"char":"🍇",fitzpatrick_scale:!1,category:"food_and_drink"},strawberry:{keywords:["fruit","food","nature"],"char":"🍓",fitzpatrick_scale:!1,category:"food_and_drink"},melon:{keywords:["fruit","nature","food"],"char":"🍈",fitzpatrick_scale:!1,category:"food_and_drink"},cherries:{keywords:["food","fruit"],"char":"🍒",fitzpatrick_scale:!1,category:"food_and_drink"},peach:{keywords:["fruit","nature","food"],"char":"🍑",fitzpatrick_scale:!1,category:"food_and_drink"},pineapple:{keywords:["fruit","nature","food"],"char":"🍍",fitzpatrick_scale:!1,category:"food_and_drink"},coconut:{keywords:["fruit","nature","food","palm"],"char":"🥥",fitzpatrick_scale:!1,category:"food_and_drink"},kiwi_fruit:{keywords:["fruit","food"],"char":"🥝",fitzpatrick_scale:!1,category:"food_and_drink"},avocado:{keywords:["fruit","food"],"char":"🥑",fitzpatrick_scale:!1,category:"food_and_drink"},broccoli:{keywords:["fruit","food","vegetable"],"char":"🥦",fitzpatrick_scale:!1,category:"food_and_drink"},tomato:{keywords:["fruit","vegetable","nature","food"],"char":"🍅",fitzpatrick_scale:!1,category:"food_and_drink"},eggplant:{keywords:["vegetable","nature","food","aubergine"],"char":"🍆",fitzpatrick_scale:!1,category:"food_and_drink"},cucumber:{keywords:["fruit","food","pickle"],"char":"🥒",fitzpatrick_scale:!1,category:"food_and_drink"},carrot:{keywords:["vegetable","food","orange"],"char":"🥕",fitzpatrick_scale:!1,category:"food_and_drink"},hot_pepper:{keywords:["food","spicy","chilli","chili"],"char":"🌶",fitzpatrick_scale:!1,category:"food_and_drink"},potato:{keywords:["food","tuber","vegatable","starch"],"char":"🥔",fitzpatrick_scale:!1,category:"food_and_drink"},corn:{keywords:["food","vegetable","plant"],"char":"🌽",fitzpatrick_scale:!1,category:"food_and_drink"},sweet_potato:{keywords:["food","nature"],"char":"🍠",fitzpatrick_scale:!1,category:"food_and_drink"},peanuts:{keywords:["food","nut"],"char":"🥜",fitzpatrick_scale:!1,category:"food_and_drink"},honey_pot:{keywords:["bees","sweet","kitchen"],"char":"🍯",fitzpatrick_scale:!1,category:"food_and_drink"},croissant:{keywords:["food","bread","french"],"char":"🥐",fitzpatrick_scale:!1,category:"food_and_drink"},bread:{keywords:["food","wheat","breakfast","toast"],"char":"🍞",fitzpatrick_scale:!1,category:"food_and_drink"},baguette_bread:{keywords:["food","bread","french"],"char":"🥖",fitzpatrick_scale:!1,category:"food_and_drink"},pretzel:{keywords:["food","bread","twisted"],"char":"🥨",fitzpatrick_scale:!1,category:"food_and_drink"},cheese:{keywords:["food","chadder"],"char":"🧀",fitzpatrick_scale:!1,category:"food_and_drink"},egg:{keywords:["food","chicken","breakfast"],"char":"🥚",fitzpatrick_scale:!1,category:"food_and_drink"},bacon:{keywords:["food","breakfast","pork","pig","meat"],"char":"🥓",fitzpatrick_scale:!1,category:"food_and_drink"},steak:{keywords:["food","cow","meat","cut","chop","lambchop","porkchop"],"char":"🥩",fitzpatrick_scale:!1,category:"food_and_drink"},pancakes:{keywords:["food","breakfast","flapjacks","hotcakes"],"char":"🥞",fitzpatrick_scale:!1,category:"food_and_drink"},poultry_leg:{keywords:["food","meat","drumstick","bird","chicken","turkey"],"char":"🍗",fitzpatrick_scale:!1,category:"food_and_drink"},meat_on_bone:{keywords:["good","food","drumstick"],"char":"🍖",fitzpatrick_scale:!1,category:"food_and_drink"},fried_shrimp:{keywords:["food","animal","appetizer","summer"],"char":"🍤",fitzpatrick_scale:!1,category:"food_and_drink"},fried_egg:{keywords:["food","breakfast","kitchen","egg"],"char":"🍳",fitzpatrick_scale:!1,category:"food_and_drink"},hamburger:{keywords:["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],"char":"🍔",fitzpatrick_scale:!1,category:"food_and_drink"},fries:{keywords:["chips","snack","fast food"],"char":"🍟",fitzpatrick_scale:!1,category:"food_and_drink"},stuffed_flatbread:{keywords:["food","flatbread","stuffed","gyro"],"char":"🥙",fitzpatrick_scale:!1,category:"food_and_drink"},hotdog:{keywords:["food","frankfurter"],"char":"🌭",fitzpatrick_scale:!1,category:"food_and_drink"},pizza:{keywords:["food","party"],"char":"🍕",fitzpatrick_scale:!1,category:"food_and_drink"},sandwich:{keywords:["food","lunch","bread"],"char":"🥪",fitzpatrick_scale:!1,category:"food_and_drink"},canned_food:{keywords:["food","soup"],"char":"🥫",fitzpatrick_scale:!1,category:"food_and_drink"},spaghetti:{keywords:["food","italian","noodle"],"char":"🍝",fitzpatrick_scale:!1,category:"food_and_drink"},taco:{keywords:["food","mexican"],"char":"🌮",fitzpatrick_scale:!1,category:"food_and_drink"},burrito:{keywords:["food","mexican"],"char":"🌯",fitzpatrick_scale:!1,category:"food_and_drink"},green_salad:{keywords:["food","healthy","lettuce"],"char":"🥗",fitzpatrick_scale:!1,category:"food_and_drink"},shallow_pan_of_food:{keywords:["food","cooking","casserole","paella"],"char":"🥘",fitzpatrick_scale:!1,category:"food_and_drink"},ramen:{keywords:["food","japanese","noodle","chopsticks"],"char":"🍜",fitzpatrick_scale:!1,category:"food_and_drink"},stew:{keywords:["food","meat","soup"],"char":"🍲",fitzpatrick_scale:!1,category:"food_and_drink"},fish_cake:{keywords:["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],"char":"🍥",fitzpatrick_scale:!1,category:"food_and_drink"},fortune_cookie:{keywords:["food","prophecy"],"char":"🥠",fitzpatrick_scale:!1,category:"food_and_drink"},sushi:{keywords:["food","fish","japanese","rice"],"char":"🍣",fitzpatrick_scale:!1,category:"food_and_drink"},bento:{keywords:["food","japanese","box"],"char":"🍱",fitzpatrick_scale:!1,category:"food_and_drink"},curry:{keywords:["food","spicy","hot","indian"],"char":"🍛",fitzpatrick_scale:!1,category:"food_and_drink"},rice_ball:{keywords:["food","japanese"],"char":"🍙",fitzpatrick_scale:!1,category:"food_and_drink"},rice:{keywords:["food","china","asian"],"char":"🍚",fitzpatrick_scale:!1,category:"food_and_drink"},rice_cracker:{keywords:["food","japanese"],"char":"🍘",fitzpatrick_scale:!1,category:"food_and_drink"},oden:{keywords:["food","japanese"],"char":"🍢",fitzpatrick_scale:!1,category:"food_and_drink"},dango:{keywords:["food","dessert","sweet","japanese","barbecue","meat"],"char":"🍡",fitzpatrick_scale:!1,category:"food_and_drink"},shaved_ice:{keywords:["hot","dessert","summer"],"char":"🍧",fitzpatrick_scale:!1,category:"food_and_drink"},ice_cream:{keywords:["food","hot","dessert"],"char":"🍨",fitzpatrick_scale:!1,category:"food_and_drink"},icecream:{keywords:["food","hot","dessert","summer"],"char":"🍦",fitzpatrick_scale:!1,category:"food_and_drink"},pie:{keywords:["food","dessert","pastry"],"char":"🥧",fitzpatrick_scale:!1,category:"food_and_drink"},cake:{keywords:["food","dessert"],"char":"🍰",fitzpatrick_scale:!1,category:"food_and_drink"},birthday:{keywords:["food","dessert","cake"],"char":"🎂",fitzpatrick_scale:!1,category:"food_and_drink"},custard:{keywords:["dessert","food"],"char":"🍮",fitzpatrick_scale:!1,category:"food_and_drink"},candy:{keywords:["snack","dessert","sweet","lolly"],"char":"🍬",fitzpatrick_scale:!1,category:"food_and_drink"},lollipop:{keywords:["food","snack","candy","sweet"],"char":"🍭",fitzpatrick_scale:!1,category:"food_and_drink"},chocolate_bar:{keywords:["food","snack","dessert","sweet"],"char":"🍫",fitzpatrick_scale:!1,category:"food_and_drink"},popcorn:{keywords:["food","movie theater","films","snack"],"char":"🍿",fitzpatrick_scale:!1,category:"food_and_drink"},dumpling:{keywords:["food","empanada","pierogi","potsticker"],"char":"🥟",fitzpatrick_scale:!1,category:"food_and_drink"},doughnut:{keywords:["food","dessert","snack","sweet","donut"],"char":"🍩",fitzpatrick_scale:!1,category:"food_and_drink"},cookie:{keywords:["food","snack","oreo","chocolate","sweet","dessert"],"char":"🍪",fitzpatrick_scale:!1,category:"food_and_drink"},milk_glass:{keywords:["beverage","drink","cow"],"char":"🥛",fitzpatrick_scale:!1,category:"food_and_drink"},beer:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"char":"🍺",fitzpatrick_scale:!1,category:"food_and_drink"},beers:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"char":"🍻",fitzpatrick_scale:!1,category:"food_and_drink"},clinking_glasses:{keywords:["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],"char":"🥂",fitzpatrick_scale:!1,category:"food_and_drink"},wine_glass:{keywords:["drink","beverage","drunk","alcohol","booze"],"char":"🍷",fitzpatrick_scale:!1,category:"food_and_drink"},tumbler_glass:{keywords:["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],"char":"🥃",fitzpatrick_scale:!1,category:"food_and_drink"},cocktail:{keywords:["drink","drunk","alcohol","beverage","booze","mojito"],"char":"🍸",fitzpatrick_scale:!1,category:"food_and_drink"},tropical_drink:{keywords:["beverage","cocktail","summer","beach","alcohol","booze","mojito"],"char":"🍹",fitzpatrick_scale:!1,category:"food_and_drink"},champagne:{keywords:["drink","wine","bottle","celebration"],"char":"🍾",fitzpatrick_scale:!1,category:"food_and_drink"},sake:{keywords:["wine","drink","drunk","beverage","japanese","alcohol","booze"],"char":"🍶",fitzpatrick_scale:!1,category:"food_and_drink"},tea:{keywords:["drink","bowl","breakfast","green","british"],"char":"🍵",fitzpatrick_scale:!1,category:"food_and_drink"},cup_with_straw:{keywords:["drink","soda"],"char":"🥤",fitzpatrick_scale:!1,category:"food_and_drink"},coffee:{keywords:["beverage","caffeine","latte","espresso"],"char":"☕",fitzpatrick_scale:!1,category:"food_and_drink"},baby_bottle:{keywords:["food","container","milk"],"char":"🍼",fitzpatrick_scale:!1,category:"food_and_drink"},spoon:{keywords:["cutlery","kitchen","tableware"],"char":"🥄",fitzpatrick_scale:!1,category:"food_and_drink"},fork_and_knife:{keywords:["cutlery","kitchen"],"char":"🍴",fitzpatrick_scale:!1,category:"food_and_drink"},plate_with_cutlery:{keywords:["food","eat","meal","lunch","dinner","restaurant"],"char":"🍽",fitzpatrick_scale:!1,category:"food_and_drink"},bowl_with_spoon:{keywords:["food","breakfast","cereal","oatmeal","porridge"],"char":"🥣",fitzpatrick_scale:!1,category:"food_and_drink"},takeout_box:{keywords:["food","leftovers"],"char":"🥡",fitzpatrick_scale:!1,category:"food_and_drink"},chopsticks:{keywords:["food"],"char":"🥢",fitzpatrick_scale:!1,category:"food_and_drink"},soccer:{keywords:["sports","football"],"char":"⚽",fitzpatrick_scale:!1,category:"activity"},basketball:{keywords:["sports","balls","NBA"],"char":"🏀",fitzpatrick_scale:!1,category:"activity"},football:{keywords:["sports","balls","NFL"],"char":"🏈",fitzpatrick_scale:!1,category:"activity"},baseball:{keywords:["sports","balls"],"char":"⚾",fitzpatrick_scale:!1,category:"activity"},tennis:{keywords:["sports","balls","green"],"char":"🎾",fitzpatrick_scale:!1,category:"activity"},volleyball:{keywords:["sports","balls"],"char":"🏐",fitzpatrick_scale:!1,category:"activity"},rugby_football:{keywords:["sports","team"],"char":"🏉",fitzpatrick_scale:!1,category:"activity"},"8ball":{keywords:["pool","hobby","game","luck","magic"],"char":"🎱",fitzpatrick_scale:!1,category:"activity"},golf:{keywords:["sports","business","flag","hole","summer"],"char":"⛳",fitzpatrick_scale:!1,category:"activity"},golfing_woman:{keywords:["sports","business","woman","female"],"char":"🏌️‍♀️",fitzpatrick_scale:!1,category:"activity"},golfing_man:{keywords:["sports","business"],"char":"🏌",fitzpatrick_scale:!0,category:"activity"},ping_pong:{keywords:["sports","pingpong"],"char":"🏓",fitzpatrick_scale:!1,category:"activity"},badminton:{keywords:["sports"],"char":"🏸",fitzpatrick_scale:!1,category:"activity"},goal_net:{keywords:["sports"],"char":"🥅",fitzpatrick_scale:!1,category:"activity"},ice_hockey:{keywords:["sports"],"char":"🏒",fitzpatrick_scale:!1,category:"activity"},field_hockey:{keywords:["sports"],"char":"🏑",fitzpatrick_scale:!1,category:"activity"},cricket:{keywords:["sports"],"char":"🏏",fitzpatrick_scale:!1,category:"activity"},ski:{keywords:["sports","winter","cold","snow"],"char":"🎿",fitzpatrick_scale:!1,category:"activity"},skier:{keywords:["sports","winter","snow"],"char":"⛷",fitzpatrick_scale:!1,category:"activity"},snowboarder:{keywords:["sports","winter"],"char":"🏂",fitzpatrick_scale:!0,category:"activity"},person_fencing:{keywords:["sports","fencing","sword"],"char":"🤺",fitzpatrick_scale:!1,category:"activity"},women_wrestling:{keywords:["sports","wrestlers"],"char":"🤼‍♀️",fitzpatrick_scale:!1,category:"activity"},men_wrestling:{keywords:["sports","wrestlers"],"char":"🤼‍♂️",fitzpatrick_scale:!1,category:"activity"},woman_cartwheeling:{keywords:["gymnastics"],"char":"🤸‍♀️",fitzpatrick_scale:!0,category:"activity"},man_cartwheeling:{keywords:["gymnastics"],"char":"🤸‍♂️",fitzpatrick_scale:!0,category:"activity"},woman_playing_handball:{keywords:["sports"],"char":"🤾‍♀️",fitzpatrick_scale:!0,category:"activity"},man_playing_handball:{keywords:["sports"],"char":"🤾‍♂️",fitzpatrick_scale:!0,category:"activity"},ice_skate:{keywords:["sports"],"char":"⛸",fitzpatrick_scale:!1,category:"activity"},curling_stone:{keywords:["sports"],"char":"🥌",fitzpatrick_scale:!1,category:"activity"},sled:{keywords:["sleigh","luge","toboggan"],"char":"🛷",fitzpatrick_scale:!1,category:"activity"},bow_and_arrow:{keywords:["sports"],"char":"🏹",fitzpatrick_scale:!1,category:"activity"},fishing_pole_and_fish:{keywords:["food","hobby","summer"],"char":"🎣",fitzpatrick_scale:!1,category:"activity"},boxing_glove:{keywords:["sports","fighting"],"char":"🥊",fitzpatrick_scale:!1,category:"activity"},martial_arts_uniform:{keywords:["judo","karate","taekwondo"],"char":"🥋",fitzpatrick_scale:!1,category:"activity"},rowing_woman:{keywords:["sports","hobby","water","ship","woman","female"],"char":"🚣‍♀️",fitzpatrick_scale:!0,category:"activity"},rowing_man:{keywords:["sports","hobby","water","ship"],"char":"🚣",fitzpatrick_scale:!0,category:"activity"},climbing_woman:{keywords:["sports","hobby","woman","female","rock"],"char":"🧗‍♀️",fitzpatrick_scale:!0,category:"activity"},climbing_man:{keywords:["sports","hobby","man","male","rock"],"char":"🧗‍♂️",fitzpatrick_scale:!0,category:"activity"},swimming_woman:{keywords:["sports","exercise","human","athlete","water","summer","woman","female"],"char":"🏊‍♀️",fitzpatrick_scale:!0,category:"activity"},swimming_man:{keywords:["sports","exercise","human","athlete","water","summer"],"char":"🏊",fitzpatrick_scale:!0,category:"activity"},woman_playing_water_polo:{keywords:["sports","pool"],"char":"🤽‍♀️",fitzpatrick_scale:!0,category:"activity"},man_playing_water_polo:{keywords:["sports","pool"],"char":"🤽‍♂️",fitzpatrick_scale:!0,category:"activity"},woman_in_lotus_position:{keywords:["woman","female","meditation","yoga","serenity","zen","mindfulness"],"char":"🧘‍♀️",fitzpatrick_scale:!0,category:"activity"},man_in_lotus_position:{keywords:["man","male","meditation","yoga","serenity","zen","mindfulness"],"char":"🧘‍♂️",fitzpatrick_scale:!0,category:"activity"},surfing_woman:{keywords:["sports","ocean","sea","summer","beach","woman","female"],"char":"🏄‍♀️",fitzpatrick_scale:!0,category:"activity"},surfing_man:{keywords:["sports","ocean","sea","summer","beach"],"char":"🏄",fitzpatrick_scale:!0,category:"activity"},bath:{keywords:["clean","shower","bathroom"],"char":"🛀",fitzpatrick_scale:!0,category:"activity"},basketball_woman:{keywords:["sports","human","woman","female"],"char":"⛹️‍♀️",fitzpatrick_scale:!0,category:"activity"},basketball_man:{keywords:["sports","human"],"char":"⛹",fitzpatrick_scale:!0,category:"activity"},weight_lifting_woman:{keywords:["sports","training","exercise","woman","female"],"char":"🏋️‍♀️",fitzpatrick_scale:!0,category:"activity"},weight_lifting_man:{keywords:["sports","training","exercise"],"char":"🏋",fitzpatrick_scale:!0,category:"activity"},biking_woman:{keywords:["sports","bike","exercise","hipster","woman","female"],"char":"🚴‍♀️",fitzpatrick_scale:!0,category:"activity"},biking_man:{keywords:["sports","bike","exercise","hipster"],"char":"🚴",fitzpatrick_scale:!0,category:"activity"},mountain_biking_woman:{keywords:["transportation","sports","human","race","bike","woman","female"],"char":"🚵‍♀️",fitzpatrick_scale:!0,category:"activity"},mountain_biking_man:{keywords:["transportation","sports","human","race","bike"],"char":"🚵",fitzpatrick_scale:!0,category:"activity"},horse_racing:{keywords:["animal","betting","competition","gambling","luck"],"char":"🏇",fitzpatrick_scale:!0,category:"activity"},business_suit_levitating:{keywords:["suit","business","levitate","hover","jump"],"char":"🕴",fitzpatrick_scale:!0,category:"activity"},trophy:{keywords:["win","award","contest","place","ftw","ceremony"],"char":"🏆",fitzpatrick_scale:!1,category:"activity"},running_shirt_with_sash:{keywords:["play","pageant"],"char":"🎽",fitzpatrick_scale:!1,category:"activity"},medal_sports:{keywords:["award","winning"],"char":"🏅",fitzpatrick_scale:!1,category:"activity"},medal_military:{keywords:["award","winning","army"],"char":"🎖",fitzpatrick_scale:!1,category:"activity"},"1st_place_medal":{keywords:["award","winning","first"],"char":"🥇",fitzpatrick_scale:!1,category:"activity"},"2nd_place_medal":{keywords:["award","second"],"char":"🥈",fitzpatrick_scale:!1,category:"activity"},"3rd_place_medal":{keywords:["award","third"],"char":"🥉",fitzpatrick_scale:!1,category:"activity"},reminder_ribbon:{keywords:["sports","cause","support","awareness"],"char":"🎗",fitzpatrick_scale:!1,category:"activity"},rosette:{keywords:["flower","decoration","military"],"char":"🏵",fitzpatrick_scale:!1,category:"activity"},ticket:{keywords:["event","concert","pass"],"char":"🎫",fitzpatrick_scale:!1,category:"activity"},tickets:{keywords:["sports","concert","entrance"],"char":"🎟",fitzpatrick_scale:!1,category:"activity"},performing_arts:{keywords:["acting","theater","drama"],"char":"🎭",fitzpatrick_scale:!1,category:"activity"},art:{keywords:["design","paint","draw","colors"],"char":"🎨",fitzpatrick_scale:!1,category:"activity"},circus_tent:{keywords:["festival","carnival","party"],"char":"🎪",fitzpatrick_scale:!1,category:"activity"},woman_juggling:{keywords:["juggle","balance","skill","multitask"],"char":"🤹‍♀️",fitzpatrick_scale:!0,category:"activity"},man_juggling:{keywords:["juggle","balance","skill","multitask"],"char":"🤹‍♂️",fitzpatrick_scale:!0,category:"activity"},microphone:{keywords:["sound","music","PA","sing","talkshow"],"char":"🎤",fitzpatrick_scale:!1,category:"activity"},headphones:{keywords:["music","score","gadgets"],"char":"🎧",fitzpatrick_scale:!1,category:"activity"},musical_score:{keywords:["treble","clef","compose"],"char":"🎼",fitzpatrick_scale:!1,category:"activity"},musical_keyboard:{keywords:["piano","instrument","compose"],"char":"🎹",fitzpatrick_scale:!1,category:"activity"},drum:{keywords:["music","instrument","drumsticks","snare"],"char":"🥁",fitzpatrick_scale:!1,category:"activity"},saxophone:{keywords:["music","instrument","jazz","blues"],"char":"🎷",fitzpatrick_scale:!1,category:"activity"},trumpet:{keywords:["music","brass"],"char":"🎺",fitzpatrick_scale:!1,category:"activity"},guitar:{keywords:["music","instrument"],"char":"🎸",fitzpatrick_scale:!1,category:"activity"},violin:{keywords:["music","instrument","orchestra","symphony"],"char":"🎻",fitzpatrick_scale:!1,category:"activity"},clapper:{keywords:["movie","film","record"],"char":"🎬",fitzpatrick_scale:!1,category:"activity"},video_game:{keywords:["play","console","PS4","controller"],"char":"🎮",fitzpatrick_scale:!1,category:"activity"},space_invader:{keywords:["game","arcade","play"],"char":"👾",fitzpatrick_scale:!1,category:"activity"},dart:{keywords:["game","play","bar","target","bullseye"],"char":"🎯",fitzpatrick_scale:!1,category:"activity"},game_die:{keywords:["dice","random","tabletop","play","luck"],"char":"🎲",fitzpatrick_scale:!1,category:"activity"},slot_machine:{keywords:["bet","gamble","vegas","fruit machine","luck","casino"],"char":"🎰",fitzpatrick_scale:!1,category:"activity"},bowling:{keywords:["sports","fun","play"],"char":"🎳",fitzpatrick_scale:!1,category:"activity"},red_car:{keywords:["red","transportation","vehicle"],"char":"🚗",fitzpatrick_scale:!1,category:"travel_and_places"},taxi:{keywords:["uber","vehicle","cars","transportation"],"char":"🚕",fitzpatrick_scale:!1,category:"travel_and_places"},blue_car:{keywords:["transportation","vehicle"],"char":"🚙",fitzpatrick_scale:!1,category:"travel_and_places"},bus:{keywords:["car","vehicle","transportation"],"char":"🚌",fitzpatrick_scale:!1,category:"travel_and_places"},trolleybus:{keywords:["bart","transportation","vehicle"],"char":"🚎",fitzpatrick_scale:!1,category:"travel_and_places"},racing_car:{keywords:["sports","race","fast","formula","f1"],"char":"🏎",fitzpatrick_scale:!1,category:"travel_and_places"},police_car:{keywords:["vehicle","cars","transportation","law","legal","enforcement"],"char":"🚓",fitzpatrick_scale:!1,category:"travel_and_places"},ambulance:{keywords:["health","911","hospital"],"char":"🚑",fitzpatrick_scale:!1,category:"travel_and_places"},fire_engine:{keywords:["transportation","cars","vehicle"],"char":"🚒",fitzpatrick_scale:!1,category:"travel_and_places"},minibus:{keywords:["vehicle","car","transportation"],"char":"🚐",fitzpatrick_scale:!1,category:"travel_and_places"},truck:{keywords:["cars","transportation"],"char":"🚚",fitzpatrick_scale:!1,category:"travel_and_places"},articulated_lorry:{keywords:["vehicle","cars","transportation","express"],"char":"🚛",fitzpatrick_scale:!1,category:"travel_and_places"},tractor:{keywords:["vehicle","car","farming","agriculture"],"char":"🚜",fitzpatrick_scale:!1,category:"travel_and_places"},kick_scooter:{keywords:["vehicle","kick","razor"],"char":"🛴",fitzpatrick_scale:!1,category:"travel_and_places"},motorcycle:{keywords:["race","sports","fast"],"char":"🏍",fitzpatrick_scale:!1,category:"travel_and_places"},bike:{keywords:["sports","bicycle","exercise","hipster"],"char":"🚲",fitzpatrick_scale:!1,category:"travel_and_places"},motor_scooter:{keywords:["vehicle","vespa","sasha"],"char":"🛵",fitzpatrick_scale:!1,category:"travel_and_places"},rotating_light:{keywords:["police","ambulance","911","emergency","alert","error","pinged","law","legal"],"char":"🚨",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_police_car:{keywords:["vehicle","law","legal","enforcement","911"],"char":"🚔",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_bus:{keywords:["vehicle","transportation"],"char":"🚍",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_automobile:{keywords:["car","vehicle","transportation"],"char":"🚘",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_taxi:{keywords:["vehicle","cars","uber"],"char":"🚖",fitzpatrick_scale:!1,category:"travel_and_places"},aerial_tramway:{keywords:["transportation","vehicle","ski"],"char":"🚡",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_cableway:{keywords:["transportation","vehicle","ski"],"char":"🚠",fitzpatrick_scale:!1,category:"travel_and_places"},suspension_railway:{keywords:["vehicle","transportation"],"char":"🚟",fitzpatrick_scale:!1,category:"travel_and_places"},railway_car:{keywords:["transportation","vehicle"],"char":"🚃",fitzpatrick_scale:!1,category:"travel_and_places"},train:{keywords:["transportation","vehicle","carriage","public","travel"],"char":"🚋",fitzpatrick_scale:!1,category:"travel_and_places"},monorail:{keywords:["transportation","vehicle"],"char":"🚝",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_side:{keywords:["transportation","vehicle"],"char":"🚄",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_front:{keywords:["transportation","vehicle","speed","fast","public","travel"],"char":"🚅",fitzpatrick_scale:!1,category:"travel_and_places"},light_rail:{keywords:["transportation","vehicle"],"char":"🚈",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_railway:{keywords:["transportation","vehicle"],"char":"🚞",fitzpatrick_scale:!1,category:"travel_and_places"},steam_locomotive:{keywords:["transportation","vehicle","train"],"char":"🚂",fitzpatrick_scale:!1,category:"travel_and_places"},train2:{keywords:["transportation","vehicle"],"char":"🚆",fitzpatrick_scale:!1,category:"travel_and_places"},metro:{keywords:["transportation","blue-square","mrt","underground","tube"],"char":"🚇",fitzpatrick_scale:!1,category:"travel_and_places"},tram:{keywords:["transportation","vehicle"],"char":"🚊",fitzpatrick_scale:!1,category:"travel_and_places"},station:{keywords:["transportation","vehicle","public"],"char":"🚉",fitzpatrick_scale:!1,category:"travel_and_places"},flying_saucer:{keywords:["transportation","vehicle","ufo"],"char":"🛸",fitzpatrick_scale:!1,category:"travel_and_places"},helicopter:{keywords:["transportation","vehicle","fly"],"char":"🚁",fitzpatrick_scale:!1,category:"travel_and_places"},small_airplane:{keywords:["flight","transportation","fly","vehicle"],"char":"🛩",fitzpatrick_scale:!1,category:"travel_and_places"},airplane:{keywords:["vehicle","transportation","flight","fly"],"char":"✈️",fitzpatrick_scale:!1,category:"travel_and_places"},flight_departure:{keywords:["airport","flight","landing"],"char":"🛫",fitzpatrick_scale:!1,category:"travel_and_places"},flight_arrival:{keywords:["airport","flight","boarding"],"char":"🛬",fitzpatrick_scale:!1,category:"travel_and_places"},sailboat:{keywords:["ship","summer","transportation","water","sailing"],"char":"⛵",fitzpatrick_scale:!1,category:"travel_and_places"},motor_boat:{keywords:["ship"],"char":"🛥",fitzpatrick_scale:!1,category:"travel_and_places"},speedboat:{keywords:["ship","transportation","vehicle","summer"],"char":"🚤",fitzpatrick_scale:!1,category:"travel_and_places"},ferry:{keywords:["boat","ship","yacht"],"char":"⛴",fitzpatrick_scale:!1,category:"travel_and_places"},passenger_ship:{keywords:["yacht","cruise","ferry"],"char":"🛳",fitzpatrick_scale:!1,category:"travel_and_places"},rocket:{keywords:["launch","ship","staffmode","NASA","outer space","outer_space","fly"],"char":"🚀",fitzpatrick_scale:!1,category:"travel_and_places"},artificial_satellite:{keywords:["communication","gps","orbit","spaceflight","NASA","ISS"],"char":"🛰",fitzpatrick_scale:!1,category:"travel_and_places"},seat:{keywords:["sit","airplane","transport","bus","flight","fly"],"char":"💺",fitzpatrick_scale:!1,category:"travel_and_places"},canoe:{keywords:["boat","paddle","water","ship"],"char":"🛶",fitzpatrick_scale:!1,category:"travel_and_places"},anchor:{keywords:["ship","ferry","sea","boat"],"char":"⚓",fitzpatrick_scale:!1,category:"travel_and_places"},construction:{keywords:["wip","progress","caution","warning"],"char":"🚧",fitzpatrick_scale:!1,category:"travel_and_places"},fuelpump:{keywords:["gas station","petroleum"],"char":"⛽",fitzpatrick_scale:!1,category:"travel_and_places"},busstop:{keywords:["transportation","wait"],"char":"🚏",fitzpatrick_scale:!1,category:"travel_and_places"},vertical_traffic_light:{keywords:["transportation","driving"],"char":"🚦",fitzpatrick_scale:!1,category:"travel_and_places"},traffic_light:{keywords:["transportation","signal"],"char":"🚥",fitzpatrick_scale:!1,category:"travel_and_places"},checkered_flag:{keywords:["contest","finishline","race","gokart"],"char":"🏁",fitzpatrick_scale:!1,category:"travel_and_places"},ship:{keywords:["transportation","titanic","deploy"],"char":"🚢",fitzpatrick_scale:!1,category:"travel_and_places"},ferris_wheel:{keywords:["photo","carnival","londoneye"],"char":"🎡",fitzpatrick_scale:!1,category:"travel_and_places"},roller_coaster:{keywords:["carnival","playground","photo","fun"],"char":"🎢",fitzpatrick_scale:!1,category:"travel_and_places"},carousel_horse:{keywords:["photo","carnival"],"char":"🎠",fitzpatrick_scale:!1,category:"travel_and_places"},building_construction:{keywords:["wip","working","progress"],"char":"🏗",fitzpatrick_scale:!1,category:"travel_and_places"},foggy:{keywords:["photo","mountain"],"char":"🌁",fitzpatrick_scale:!1,category:"travel_and_places"},tokyo_tower:{keywords:["photo","japanese"],"char":"🗼",fitzpatrick_scale:!1,category:"travel_and_places"},factory:{keywords:["building","industry","pollution","smoke"],"char":"🏭",fitzpatrick_scale:!1,category:"travel_and_places"},fountain:{keywords:["photo","summer","water","fresh"],"char":"⛲",fitzpatrick_scale:!1,category:"travel_and_places"},rice_scene:{keywords:["photo","japan","asia","tsukimi"],"char":"🎑",fitzpatrick_scale:!1,category:"travel_and_places"},mountain:{keywords:["photo","nature","environment"],"char":"⛰",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_snow:{keywords:["photo","nature","environment","winter","cold"],"char":"🏔",fitzpatrick_scale:!1,category:"travel_and_places"},mount_fuji:{keywords:["photo","mountain","nature","japanese"],"char":"🗻",fitzpatrick_scale:!1,category:"travel_and_places"},volcano:{keywords:["photo","nature","disaster"],"char":"🌋",fitzpatrick_scale:!1,category:"travel_and_places"},japan:{keywords:["nation","country","japanese","asia"],"char":"🗾",fitzpatrick_scale:!1,category:"travel_and_places"},camping:{keywords:["photo","outdoors","tent"],"char":"🏕",fitzpatrick_scale:!1,category:"travel_and_places"},tent:{keywords:["photo","camping","outdoors"],"char":"⛺",fitzpatrick_scale:!1,category:"travel_and_places"},national_park:{keywords:["photo","environment","nature"],"char":"🏞",fitzpatrick_scale:!1,category:"travel_and_places"},motorway:{keywords:["road","cupertino","interstate","highway"],"char":"🛣",fitzpatrick_scale:!1,category:"travel_and_places"},railway_track:{keywords:["train","transportation"],"char":"🛤",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise:{keywords:["morning","view","vacation","photo"],"char":"🌅",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise_over_mountains:{keywords:["view","vacation","photo"],"char":"🌄",fitzpatrick_scale:!1,category:"travel_and_places"},desert:{keywords:["photo","warm","saharah"],"char":"🏜",fitzpatrick_scale:!1,category:"travel_and_places"},beach_umbrella:{keywords:["weather","summer","sunny","sand","mojito"],"char":"🏖",fitzpatrick_scale:!1,category:"travel_and_places"},desert_island:{keywords:["photo","tropical","mojito"],"char":"🏝",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunrise:{keywords:["photo","good morning","dawn"],"char":"🌇",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunset:{keywords:["photo","evening","sky","buildings"],"char":"🌆",fitzpatrick_scale:!1,category:"travel_and_places"},cityscape:{keywords:["photo","night life","urban"],"char":"🏙",fitzpatrick_scale:!1,category:"travel_and_places"},night_with_stars:{keywords:["evening","city","downtown"],"char":"🌃",fitzpatrick_scale:!1,category:"travel_and_places"},bridge_at_night:{keywords:["photo","sanfrancisco"],"char":"🌉",fitzpatrick_scale:!1,category:"travel_and_places"},milky_way:{keywords:["photo","space","stars"],"char":"🌌",fitzpatrick_scale:!1,category:"travel_and_places"},stars:{keywords:["night","photo"],"char":"🌠",fitzpatrick_scale:!1,category:"travel_and_places"},sparkler:{keywords:["stars","night","shine"],"char":"🎇",fitzpatrick_scale:!1,category:"travel_and_places"},fireworks:{keywords:["photo","festival","carnival","congratulations"],"char":"🎆",fitzpatrick_scale:!1,category:"travel_and_places"},rainbow:{keywords:["nature","happy","unicorn_face","photo","sky","spring"],"char":"🌈",fitzpatrick_scale:!1,category:"travel_and_places"},houses:{keywords:["buildings","photo"],"char":"🏘",fitzpatrick_scale:!1,category:"travel_and_places"},european_castle:{keywords:["building","royalty","history"],"char":"🏰",fitzpatrick_scale:!1,category:"travel_and_places"},japanese_castle:{keywords:["photo","building"],"char":"🏯",fitzpatrick_scale:!1,category:"travel_and_places"},stadium:{keywords:["photo","place","sports","concert","venue"],"char":"🏟",fitzpatrick_scale:!1,category:"travel_and_places"},statue_of_liberty:{keywords:["american","newyork"],"char":"🗽",fitzpatrick_scale:!1,category:"travel_and_places"},house:{keywords:["building","home"],"char":"🏠",fitzpatrick_scale:!1,category:"travel_and_places"},house_with_garden:{keywords:["home","plant","nature"],"char":"🏡",fitzpatrick_scale:!1,category:"travel_and_places"},derelict_house:{keywords:["abandon","evict","broken","building"],"char":"🏚",fitzpatrick_scale:!1,category:"travel_and_places"},office:{keywords:["building","bureau","work"],"char":"🏢",fitzpatrick_scale:!1,category:"travel_and_places"},department_store:{keywords:["building","shopping","mall"],"char":"🏬",fitzpatrick_scale:!1,category:"travel_and_places"},post_office:{keywords:["building","envelope","communication"],"char":"🏣",fitzpatrick_scale:!1,category:"travel_and_places"},european_post_office:{keywords:["building","email"],"char":"🏤",fitzpatrick_scale:!1,category:"travel_and_places"},hospital:{keywords:["building","health","surgery","doctor"],"char":"🏥",fitzpatrick_scale:!1,category:"travel_and_places"},bank:{keywords:["building","money","sales","cash","business","enterprise"],"char":"🏦",fitzpatrick_scale:!1,category:"travel_and_places"},hotel:{keywords:["building","accomodation","checkin"],"char":"🏨",fitzpatrick_scale:!1,category:"travel_and_places"},convenience_store:{keywords:["building","shopping","groceries"],"char":"🏪",fitzpatrick_scale:!1,category:"travel_and_places"},school:{keywords:["building","student","education","learn","teach"],"char":"🏫",fitzpatrick_scale:!1,category:"travel_and_places"},love_hotel:{keywords:["like","affection","dating"],"char":"🏩",fitzpatrick_scale:!1,category:"travel_and_places"},wedding:{keywords:["love","like","affection","couple","marriage","bride","groom"],"char":"💒",fitzpatrick_scale:!1,category:"travel_and_places"},classical_building:{keywords:["art","culture","history"],"char":"🏛",fitzpatrick_scale:!1,category:"travel_and_places"},church:{keywords:["building","religion","christ"],"char":"⛪",fitzpatrick_scale:!1,category:"travel_and_places"},mosque:{keywords:["islam","worship","minaret"],"char":"🕌",fitzpatrick_scale:!1,category:"travel_and_places"},synagogue:{keywords:["judaism","worship","temple","jewish"],"char":"🕍",fitzpatrick_scale:!1,category:"travel_and_places"},kaaba:{keywords:["mecca","mosque","islam"],"char":"🕋",fitzpatrick_scale:!1,category:"travel_and_places"},shinto_shrine:{keywords:["temple","japan","kyoto"],"char":"⛩",fitzpatrick_scale:!1,category:"travel_and_places"},watch:{keywords:["time","accessories"],"char":"⌚",fitzpatrick_scale:!1,category:"objects"},iphone:{keywords:["technology","apple","gadgets","dial"],"char":"📱",fitzpatrick_scale:!1,category:"objects"},calling:{keywords:["iphone","incoming"],"char":"📲",fitzpatrick_scale:!1,category:"objects"},computer:{keywords:["technology","laptop","screen","display","monitor"],"char":"💻",fitzpatrick_scale:!1,category:"objects"},keyboard:{keywords:["technology","computer","type","input","text"],"char":"⌨",fitzpatrick_scale:!1,category:"objects"},desktop_computer:{keywords:["technology","computing","screen"],"char":"🖥",fitzpatrick_scale:!1,category:"objects"},printer:{keywords:["paper","ink"],"char":"🖨",fitzpatrick_scale:!1,category:"objects"},computer_mouse:{keywords:["click"],"char":"🖱",fitzpatrick_scale:!1,category:"objects"},trackball:{keywords:["technology","trackpad"],"char":"🖲",fitzpatrick_scale:!1,category:"objects"},joystick:{keywords:["game","play"],"char":"🕹",fitzpatrick_scale:!1,category:"objects"},clamp:{keywords:["tool"],"char":"🗜",fitzpatrick_scale:!1,category:"objects"},minidisc:{keywords:["technology","record","data","disk","90s"],"char":"💽",fitzpatrick_scale:!1,category:"objects"},floppy_disk:{keywords:["oldschool","technology","save","90s","80s"],"char":"💾",fitzpatrick_scale:!1,category:"objects"},cd:{keywords:["technology","dvd","disk","disc","90s"],"char":"💿",fitzpatrick_scale:!1,category:"objects"},dvd:{keywords:["cd","disk","disc"],"char":"📀",fitzpatrick_scale:!1,category:"objects"},vhs:{keywords:["record","video","oldschool","90s","80s"],"char":"📼",fitzpatrick_scale:!1,category:"objects"},camera:{keywords:["gadgets","photography"],"char":"📷",fitzpatrick_scale:!1,category:"objects"},camera_flash:{keywords:["photography","gadgets"],"char":"📸",fitzpatrick_scale:!1,category:"objects"},video_camera:{keywords:["film","record"],"char":"📹",fitzpatrick_scale:!1,category:"objects"},movie_camera:{keywords:["film","record"],"char":"🎥",fitzpatrick_scale:!1,category:"objects"},film_projector:{keywords:["video","tape","record","movie"],"char":"📽",fitzpatrick_scale:!1,category:"objects"},film_strip:{keywords:["movie"],"char":"🎞",fitzpatrick_scale:!1,category:"objects"},telephone_receiver:{keywords:["technology","communication","dial"],"char":"📞",fitzpatrick_scale:!1,category:"objects"},phone:{keywords:["technology","communication","dial","telephone"],"char":"☎️",fitzpatrick_scale:!1,category:"objects"},pager:{keywords:["bbcall","oldschool","90s"],"char":"📟",fitzpatrick_scale:!1,category:"objects"},fax:{keywords:["communication","technology"],"char":"📠",fitzpatrick_scale:!1,category:"objects"},tv:{keywords:["technology","program","oldschool","show","television"],"char":"📺",fitzpatrick_scale:!1,category:"objects"},radio:{keywords:["communication","music","podcast","program"],"char":"📻",fitzpatrick_scale:!1,category:"objects"},studio_microphone:{keywords:["sing","recording","artist","talkshow"],"char":"🎙",fitzpatrick_scale:!1,category:"objects"},level_slider:{keywords:["scale"],"char":"🎚",fitzpatrick_scale:!1,category:"objects"},control_knobs:{keywords:["dial"],"char":"🎛",fitzpatrick_scale:!1,category:"objects"},stopwatch:{keywords:["time","deadline"],"char":"⏱",fitzpatrick_scale:!1,category:"objects"},timer_clock:{keywords:["alarm"],"char":"⏲",fitzpatrick_scale:!1,category:"objects"},alarm_clock:{keywords:["time","wake"],"char":"⏰",fitzpatrick_scale:!1,category:"objects"},mantelpiece_clock:{keywords:["time"],"char":"🕰",fitzpatrick_scale:!1,category:"objects"},hourglass_flowing_sand:{keywords:["oldschool","time","countdown"],"char":"⏳",fitzpatrick_scale:!1,category:"objects"},hourglass:{keywords:["time","clock","oldschool","limit","exam","quiz","test"],"char":"⌛",fitzpatrick_scale:!1,category:"objects"},satellite:{keywords:["communication","future","radio","space"],"char":"📡",fitzpatrick_scale:!1,category:"objects"},battery:{keywords:["power","energy","sustain"],"char":"🔋",fitzpatrick_scale:!1,category:"objects"},electric_plug:{keywords:["charger","power"],"char":"🔌",fitzpatrick_scale:!1,category:"objects"},bulb:{keywords:["light","electricity","idea"],"char":"💡",fitzpatrick_scale:!1,category:"objects"},flashlight:{keywords:["dark","camping","sight","night"],"char":"🔦",fitzpatrick_scale:!1,category:"objects"},candle:{keywords:["fire","wax"],"char":"🕯",fitzpatrick_scale:!1,category:"objects"},wastebasket:{keywords:["bin","trash","rubbish","garbage","toss"],"char":"🗑",fitzpatrick_scale:!1,category:"objects"},oil_drum:{keywords:["barrell"],"char":"🛢",fitzpatrick_scale:!1,category:"objects"},money_with_wings:{keywords:["dollar","bills","payment","sale"],"char":"💸",fitzpatrick_scale:!1,category:"objects"},dollar:{keywords:["money","sales","bill","currency"],"char":"💵",fitzpatrick_scale:!1,category:"objects"},yen:{keywords:["money","sales","japanese","dollar","currency"],"char":"💴",fitzpatrick_scale:!1,category:"objects"},euro:{keywords:["money","sales","dollar","currency"],"char":"💶",fitzpatrick_scale:!1,category:"objects"},pound:{keywords:["british","sterling","money","sales","bills","uk","england","currency"],"char":"💷",fitzpatrick_scale:!1,category:"objects"},moneybag:{keywords:["dollar","payment","coins","sale"],"char":"💰",fitzpatrick_scale:!1,category:"objects"},credit_card:{keywords:["money","sales","dollar","bill","payment","shopping"],"char":"💳",fitzpatrick_scale:!1,category:"objects"},gem:{keywords:["blue","ruby","diamond","jewelry"],"char":"💎",fitzpatrick_scale:!1,category:"objects"},balance_scale:{keywords:["law","fairness","weight"],"char":"⚖",fitzpatrick_scale:!1,category:"objects"},wrench:{keywords:["tools","diy","ikea","fix","maintainer"],"char":"🔧",fitzpatrick_scale:!1,category:"objects"},hammer:{keywords:["tools","build","create"],"char":"🔨",fitzpatrick_scale:!1,category:"objects"},hammer_and_pick:{keywords:["tools","build","create"],"char":"⚒",fitzpatrick_scale:!1,category:"objects"},hammer_and_wrench:{keywords:["tools","build","create"],"char":"🛠",fitzpatrick_scale:!1,category:"objects"},pick:{keywords:["tools","dig"],"char":"⛏",fitzpatrick_scale:!1,category:"objects"},nut_and_bolt:{keywords:["handy","tools","fix"],"char":"🔩",fitzpatrick_scale:!1,category:"objects"},gear:{keywords:["cog"],"char":"⚙",fitzpatrick_scale:!1,category:"objects"},chains:{keywords:["lock","arrest"],"char":"⛓",fitzpatrick_scale:!1,category:"objects"},gun:{keywords:["violence","weapon","pistol","revolver"],"char":"🔫",fitzpatrick_scale:!1,category:"objects"},bomb:{keywords:["boom","explode","explosion","terrorism"],"char":"💣",fitzpatrick_scale:!1,category:"objects"},hocho:{keywords:["knife","blade","cutlery","kitchen","weapon"],"char":"🔪",fitzpatrick_scale:!1,category:"objects"},dagger:{keywords:["weapon"],"char":"🗡",fitzpatrick_scale:!1,category:"objects"},crossed_swords:{keywords:["weapon"],"char":"⚔",fitzpatrick_scale:!1,category:"objects"},shield:{keywords:["protection","security"],"char":"🛡",fitzpatrick_scale:!1,category:"objects"},smoking:{keywords:["kills","tobacco","cigarette","joint","smoke"],"char":"🚬",fitzpatrick_scale:!1,category:"objects"},skull_and_crossbones:{keywords:["poison","danger","deadly","scary","death","pirate","evil"],"char":"☠",fitzpatrick_scale:!1,category:"objects"},coffin:{keywords:["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],"char":"⚰",fitzpatrick_scale:!1,category:"objects"},funeral_urn:{keywords:["dead","die","death","rip","ashes"],"char":"⚱",fitzpatrick_scale:!1,category:"objects"},amphora:{keywords:["vase","jar"],"char":"🏺",fitzpatrick_scale:!1,category:"objects"},crystal_ball:{keywords:["disco","party","magic","circus","fortune_teller"],"char":"🔮",fitzpatrick_scale:!1,category:"objects"},prayer_beads:{keywords:["dhikr","religious"],"char":"📿",fitzpatrick_scale:!1,category:"objects"},barber:{keywords:["hair","salon","style"],"char":"💈",fitzpatrick_scale:!1,category:"objects"},alembic:{keywords:["distilling","science","experiment","chemistry"],"char":"⚗",fitzpatrick_scale:!1,category:"objects"},telescope:{keywords:["stars","space","zoom","science","astronomy"],"char":"🔭",fitzpatrick_scale:!1,category:"objects"},microscope:{keywords:["laboratory","experiment","zoomin","science","study"],"char":"🔬",fitzpatrick_scale:!1,category:"objects"},hole:{keywords:["embarrassing"],"char":"🕳",fitzpatrick_scale:!1,category:"objects"},pill:{keywords:["health","medicine","doctor","pharmacy","drug"],"char":"💊",fitzpatrick_scale:!1,category:"objects"},syringe:{keywords:["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],"char":"💉",fitzpatrick_scale:!1,category:"objects"},thermometer:{keywords:["weather","temperature","hot","cold"],"char":"🌡",fitzpatrick_scale:!1,category:"objects"},label:{keywords:["sale","tag"],"char":"🏷",fitzpatrick_scale:!1,category:"objects"},bookmark:{keywords:["favorite","label","save"],"char":"🔖",fitzpatrick_scale:!1,category:"objects"},toilet:{keywords:["restroom","wc","washroom","bathroom","potty"],"char":"🚽",fitzpatrick_scale:!1,category:"objects"},shower:{keywords:["clean","water","bathroom"],"char":"🚿",fitzpatrick_scale:!1,category:"objects"},bathtub:{keywords:["clean","shower","bathroom"],"char":"🛁",fitzpatrick_scale:!1,category:"objects"},key:{keywords:["lock","door","password"],"char":"🔑",fitzpatrick_scale:!1,category:"objects"},old_key:{keywords:["lock","door","password"],"char":"🗝",fitzpatrick_scale:!1,category:"objects"},couch_and_lamp:{keywords:["read","chill"],"char":"🛋",fitzpatrick_scale:!1,category:"objects"},sleeping_bed:{keywords:["bed","rest"],"char":"🛌",fitzpatrick_scale:!0,category:"objects"},bed:{keywords:["sleep","rest"],"char":"🛏",fitzpatrick_scale:!1,category:"objects"},door:{keywords:["house","entry","exit"],"char":"🚪",fitzpatrick_scale:!1,category:"objects"},bellhop_bell:{keywords:["service"],"char":"🛎",fitzpatrick_scale:!1,category:"objects"},framed_picture:{keywords:["photography"],"char":"🖼",fitzpatrick_scale:!1,category:"objects"},world_map:{keywords:["location","direction"],"char":"🗺",fitzpatrick_scale:!1,category:"objects"},parasol_on_ground:{keywords:["weather","summer"],"char":"⛱",fitzpatrick_scale:!1,category:"objects"},moyai:{keywords:["rock","easter island","moai"],"char":"🗿",fitzpatrick_scale:!1,category:"objects"},shopping:{keywords:["mall","buy","purchase"],"char":"🛍",fitzpatrick_scale:!1,category:"objects"},shopping_cart:{keywords:["trolley"],"char":"🛒",fitzpatrick_scale:!1,category:"objects"},balloon:{keywords:["party","celebration","birthday","circus"],"char":"🎈",fitzpatrick_scale:!1,category:"objects"},flags:{keywords:["fish","japanese","koinobori","carp","banner"],"char":"🎏",fitzpatrick_scale:!1,category:"objects"},ribbon:{keywords:["decoration","pink","girl","bowtie"],"char":"🎀",fitzpatrick_scale:!1,category:"objects"},gift:{keywords:["present","birthday","christmas","xmas"],"char":"🎁",fitzpatrick_scale:!1,category:"objects"},confetti_ball:{keywords:["festival","party","birthday","circus"],"char":"🎊",fitzpatrick_scale:!1,category:"objects"},tada:{keywords:["party","congratulations","birthday","magic","circus","celebration"],"char":"🎉",fitzpatrick_scale:!1,category:"objects"},dolls:{keywords:["japanese","toy","kimono"],"char":"🎎",fitzpatrick_scale:!1,category:"objects"},wind_chime:{keywords:["nature","ding","spring","bell"],"char":"🎐",fitzpatrick_scale:!1,category:"objects"},crossed_flags:{keywords:["japanese","nation","country","border"],"char":"🎌",fitzpatrick_scale:!1,category:"objects"},izakaya_lantern:{keywords:["light","paper","halloween","spooky"],"char":"🏮",fitzpatrick_scale:!1,category:"objects"},email:{keywords:["letter","postal","inbox","communication"],"char":"✉️",fitzpatrick_scale:!1,category:"objects"},envelope_with_arrow:{keywords:["email","communication"],"char":"📩",fitzpatrick_scale:!1,category:"objects"},incoming_envelope:{keywords:["email","inbox"],"char":"📨",fitzpatrick_scale:!1,category:"objects"},"e-mail":{keywords:["communication","inbox"],"char":"📧",fitzpatrick_scale:!1,category:"objects"},love_letter:{keywords:["email","like","affection","envelope","valentines"],"char":"💌",fitzpatrick_scale:!1,category:"objects"},postbox:{keywords:["email","letter","envelope"],"char":"📮",fitzpatrick_scale:!1,category:"objects"},mailbox_closed:{keywords:["email","communication","inbox"],"char":"📪",fitzpatrick_scale:!1,category:"objects"},mailbox:{keywords:["email","inbox","communication"],"char":"📫",fitzpatrick_scale:!1,category:"objects"},mailbox_with_mail:{keywords:["email","inbox","communication"],"char":"📬",fitzpatrick_scale:!1,category:"objects"},mailbox_with_no_mail:{keywords:["email","inbox"],"char":"📭",fitzpatrick_scale:!1,category:"objects"},"package":{keywords:["mail","gift","cardboard","box","moving"],"char":"📦",fitzpatrick_scale:!1,category:"objects"},postal_horn:{keywords:["instrument","music"],"char":"📯",fitzpatrick_scale:!1,category:"objects"},inbox_tray:{keywords:["email","documents"],"char":"📥",fitzpatrick_scale:!1,category:"objects"},outbox_tray:{keywords:["inbox","email"],"char":"📤",fitzpatrick_scale:!1,category:"objects"},scroll:{keywords:["documents","ancient","history","paper"],"char":"📜",fitzpatrick_scale:!1,category:"objects"},page_with_curl:{keywords:["documents","office","paper"],"char":"📃",fitzpatrick_scale:!1,category:"objects"},bookmark_tabs:{keywords:["favorite","save","order","tidy"],"char":"📑",fitzpatrick_scale:!1,category:"objects"},bar_chart:{keywords:["graph","presentation","stats"],"char":"📊",fitzpatrick_scale:!1,category:"objects"},chart_with_upwards_trend:{keywords:["graph","presentation","stats","recovery","business","economics","money","sales","good","success"],"char":"📈",fitzpatrick_scale:!1,category:"objects"},chart_with_downwards_trend:{keywords:["graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],"char":"📉",fitzpatrick_scale:!1,category:"objects"},page_facing_up:{keywords:["documents","office","paper","information"],"char":"📄",fitzpatrick_scale:!1,category:"objects"},date:{keywords:["calendar","schedule"],"char":"📅",fitzpatrick_scale:!1,category:"objects"},calendar:{keywords:["schedule","date","planning"],"char":"📆",fitzpatrick_scale:!1,category:"objects"},spiral_calendar:{keywords:["date","schedule","planning"],"char":"🗓",fitzpatrick_scale:!1,category:"objects"},card_index:{keywords:["business","stationery"],"char":"📇",fitzpatrick_scale:!1,category:"objects"},card_file_box:{keywords:["business","stationery"],"char":"🗃",fitzpatrick_scale:!1,category:"objects"},ballot_box:{keywords:["election","vote"],"char":"🗳",fitzpatrick_scale:!1,category:"objects"},file_cabinet:{keywords:["filing","organizing"],"char":"🗄",fitzpatrick_scale:!1,category:"objects"},clipboard:{keywords:["stationery","documents"],"char":"📋",fitzpatrick_scale:!1,category:"objects"},spiral_notepad:{keywords:["memo","stationery"],"char":"🗒",fitzpatrick_scale:!1,category:"objects"},file_folder:{keywords:["documents","business","office"],"char":"📁",fitzpatrick_scale:!1,category:"objects"},open_file_folder:{keywords:["documents","load"],"char":"📂",fitzpatrick_scale:!1,category:"objects"},card_index_dividers:{keywords:["organizing","business","stationery"],"char":"🗂",fitzpatrick_scale:!1,category:"objects"},newspaper_roll:{keywords:["press","headline"],"char":"🗞",fitzpatrick_scale:!1,category:"objects"},newspaper:{keywords:["press","headline"],"char":"📰",fitzpatrick_scale:!1,category:"objects"},notebook:{keywords:["stationery","record","notes","paper","study"],"char":"📓",fitzpatrick_scale:!1,category:"objects"},closed_book:{keywords:["read","library","knowledge","textbook","learn"],"char":"📕",fitzpatrick_scale:!1,category:"objects"},green_book:{keywords:["read","library","knowledge","study"],"char":"📗",fitzpatrick_scale:!1,category:"objects"},blue_book:{keywords:["read","library","knowledge","learn","study"],"char":"📘",fitzpatrick_scale:!1,category:"objects"},orange_book:{keywords:["read","library","knowledge","textbook","study"],"char":"📙",fitzpatrick_scale:!1,category:"objects"},notebook_with_decorative_cover:{keywords:["classroom","notes","record","paper","study"],"char":"📔",fitzpatrick_scale:!1,category:"objects"},ledger:{keywords:["notes","paper"],"char":"📒",fitzpatrick_scale:!1,category:"objects"},books:{keywords:["literature","library","study"],"char":"📚",fitzpatrick_scale:!1,category:"objects"},open_book:{keywords:["book","read","library","knowledge","literature","learn","study"],"char":"📖",fitzpatrick_scale:!1,category:"objects"},link:{keywords:["rings","url"],"char":"🔗",fitzpatrick_scale:!1,category:"objects"},paperclip:{keywords:["documents","stationery"],"char":"📎",fitzpatrick_scale:!1,category:"objects"},paperclips:{keywords:["documents","stationery"],"char":"🖇",fitzpatrick_scale:!1,category:"objects"},scissors:{keywords:["stationery","cut"],"char":"✂️",fitzpatrick_scale:!1,category:"objects"},triangular_ruler:{keywords:["stationery","math","architect","sketch"],"char":"📐",fitzpatrick_scale:!1,category:"objects"},straight_ruler:{keywords:["stationery","calculate","length","math","school","drawing","architect","sketch"],"char":"📏",fitzpatrick_scale:!1,category:"objects"},pushpin:{keywords:["stationery","mark","here"],"char":"📌",fitzpatrick_scale:!1,category:"objects"},round_pushpin:{keywords:["stationery","location","map","here"],"char":"📍",fitzpatrick_scale:!1,category:"objects"},triangular_flag_on_post:{keywords:["mark","milestone","place"],"char":"🚩",fitzpatrick_scale:!1,category:"objects"},white_flag:{keywords:["losing","loser","lost","surrender","give up","fail"],"char":"🏳",fitzpatrick_scale:!1,category:"objects"},black_flag:{keywords:["pirate"],"char":"🏴",fitzpatrick_scale:!1,category:"objects"},rainbow_flag:{keywords:["flag","rainbow","pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],"char":"🏳️‍🌈",fitzpatrick_scale:!1,category:"objects"},closed_lock_with_key:{keywords:["security","privacy"],"char":"🔐",fitzpatrick_scale:!1,category:"objects"},lock:{keywords:["security","password","padlock"],"char":"🔒",fitzpatrick_scale:!1,category:"objects"},unlock:{keywords:["privacy","security"],"char":"🔓",fitzpatrick_scale:!1,category:"objects"},lock_with_ink_pen:{keywords:["security","secret"],"char":"🔏",fitzpatrick_scale:!1,category:"objects"},pen:{keywords:["stationery","writing","write"],"char":"🖊",fitzpatrick_scale:!1,category:"objects"},fountain_pen:{keywords:["stationery","writing","write"],"char":"🖋",fitzpatrick_scale:!1,category:"objects"},black_nib:{keywords:["pen","stationery","writing","write"],"char":"✒️",fitzpatrick_scale:!1,category:"objects"},memo:{keywords:["write","documents","stationery","pencil","paper","writing","legal","exam","quiz","test","study","compose"],"char":"📝",fitzpatrick_scale:!1,category:"objects"},pencil2:{keywords:["stationery","write","paper","writing","school","study"],"char":"✏️",fitzpatrick_scale:!1,category:"objects"},crayon:{keywords:["drawing","creativity"],"char":"🖍",fitzpatrick_scale:!1,category:"objects"},paintbrush:{keywords:["drawing","creativity","art"],"char":"🖌",fitzpatrick_scale:!1,category:"objects"},mag:{keywords:["search","zoom","find","detective"],"char":"🔍",fitzpatrick_scale:!1,category:"objects"},mag_right:{keywords:["search","zoom","find","detective"],"char":"🔎",fitzpatrick_scale:!1,category:"objects"},heart:{keywords:["love","like","valentines"],"char":"❤️",fitzpatrick_scale:!1,category:"symbols"},orange_heart:{keywords:["love","like","affection","valentines"],"char":"🧡",fitzpatrick_scale:!1,category:"symbols"},yellow_heart:{keywords:["love","like","affection","valentines"],"char":"💛",fitzpatrick_scale:!1,category:"symbols"},green_heart:{keywords:["love","like","affection","valentines"],"char":"💚",fitzpatrick_scale:!1,category:"symbols"},blue_heart:{keywords:["love","like","affection","valentines"],"char":"💙",fitzpatrick_scale:!1,category:"symbols"},purple_heart:{keywords:["love","like","affection","valentines"],"char":"💜",fitzpatrick_scale:!1,category:"symbols"},black_heart:{keywords:["evil"],"char":"🖤",fitzpatrick_scale:!1,category:"symbols"},broken_heart:{keywords:["sad","sorry","break","heart","heartbreak"],"char":"💔",fitzpatrick_scale:!1,category:"symbols"},heavy_heart_exclamation:{keywords:["decoration","love"],"char":"❣",fitzpatrick_scale:!1,category:"symbols"},two_hearts:{keywords:["love","like","affection","valentines","heart"],"char":"💕",fitzpatrick_scale:!1,category:"symbols"},revolving_hearts:{keywords:["love","like","affection","valentines"],"char":"💞",fitzpatrick_scale:!1,category:"symbols"},heartbeat:{keywords:["love","like","affection","valentines","pink","heart"],"char":"💓",fitzpatrick_scale:!1,category:"symbols"},heartpulse:{keywords:["like","love","affection","valentines","pink"],"char":"💗",fitzpatrick_scale:!1,category:"symbols"},sparkling_heart:{keywords:["love","like","affection","valentines"],"char":"💖",fitzpatrick_scale:!1,category:"symbols"},cupid:{keywords:["love","like","heart","affection","valentines"],"char":"💘",fitzpatrick_scale:!1,category:"symbols"},gift_heart:{keywords:["love","valentines"],"char":"💝",fitzpatrick_scale:!1,category:"symbols"},heart_decoration:{keywords:["purple-square","love","like"],"char":"💟",fitzpatrick_scale:!1,category:"symbols"},peace_symbol:{keywords:["hippie"],"char":"☮",fitzpatrick_scale:!1,category:"symbols"},latin_cross:{keywords:["christianity"],"char":"✝",fitzpatrick_scale:!1,category:"symbols"},star_and_crescent:{keywords:["islam"],"char":"☪",fitzpatrick_scale:!1,category:"symbols"},om:{keywords:["hinduism","buddhism","sikhism","jainism"],"char":"🕉",fitzpatrick_scale:!1,category:"symbols"},wheel_of_dharma:{keywords:["hinduism","buddhism","sikhism","jainism"],"char":"☸",fitzpatrick_scale:!1,category:"symbols"},star_of_david:{keywords:["judaism"],"char":"✡",fitzpatrick_scale:!1,category:"symbols"},six_pointed_star:{keywords:["purple-square","religion","jewish","hexagram"],"char":"🔯",fitzpatrick_scale:!1,category:"symbols"},menorah:{keywords:["hanukkah","candles","jewish"],"char":"🕎",fitzpatrick_scale:!1,category:"symbols"},yin_yang:{keywords:["balance"],"char":"☯",fitzpatrick_scale:!1,category:"symbols"},orthodox_cross:{keywords:["suppedaneum","religion"],"char":"☦",fitzpatrick_scale:!1,category:"symbols"},place_of_worship:{keywords:["religion","church","temple","prayer"],"char":"🛐",fitzpatrick_scale:!1,category:"symbols"},ophiuchus:{keywords:["sign","purple-square","constellation","astrology"],"char":"⛎",fitzpatrick_scale:!1,category:"symbols"},aries:{keywords:["sign","purple-square","zodiac","astrology"],"char":"♈",fitzpatrick_scale:!1,category:"symbols"},taurus:{keywords:["purple-square","sign","zodiac","astrology"],"char":"♉",fitzpatrick_scale:!1,category:"symbols"},gemini:{keywords:["sign","zodiac","purple-square","astrology"],"char":"♊",fitzpatrick_scale:!1,category:"symbols"},cancer:{keywords:["sign","zodiac","purple-square","astrology"],"char":"♋",fitzpatrick_scale:!1,category:"symbols"},leo:{keywords:["sign","purple-square","zodiac","astrology"],"char":"♌",fitzpatrick_scale:!1,category:"symbols"},virgo:{keywords:["sign","zodiac","purple-square","astrology"],"char":"♍",fitzpatrick_scale:!1,category:"symbols"},libra:{keywords:["sign","purple-square","zodiac","astrology"],"char":"♎",fitzpatrick_scale:!1,category:"symbols"},scorpius:{keywords:["sign","zodiac","purple-square","astrology","scorpio"],"char":"♏",fitzpatrick_scale:!1,category:"symbols"},sagittarius:{keywords:["sign","zodiac","purple-square","astrology"],"char":"♐",fitzpatrick_scale:!1,category:"symbols"},capricorn:{keywords:["sign","zodiac","purple-square","astrology"],"char":"♑",fitzpatrick_scale:!1,category:"symbols"},aquarius:{keywords:["sign","purple-square","zodiac","astrology"],"char":"♒",fitzpatrick_scale:!1,category:"symbols"},pisces:{keywords:["purple-square","sign","zodiac","astrology"],"char":"♓",fitzpatrick_scale:!1,category:"symbols"},id:{keywords:["purple-square","words"],"char":"🆔",fitzpatrick_scale:!1,category:"symbols"},atom_symbol:{keywords:["science","physics","chemistry"],"char":"⚛",fitzpatrick_scale:!1,category:"symbols"},u7a7a:{keywords:["kanji","japanese","chinese","empty","sky","blue-square"],"char":"🈳",fitzpatrick_scale:!1,category:"symbols"},u5272:{keywords:["cut","divide","chinese","kanji","pink-square"],"char":"🈹",fitzpatrick_scale:!1,category:"symbols"},radioactive:{keywords:["nuclear","danger"],"char":"☢",fitzpatrick_scale:!1,category:"symbols"},biohazard:{keywords:["danger"],"char":"☣",fitzpatrick_scale:!1,category:"symbols"},mobile_phone_off:{keywords:["mute","orange-square","silence","quiet"],"char":"📴",fitzpatrick_scale:!1,category:"symbols"},vibration_mode:{keywords:["orange-square","phone"],"char":"📳",fitzpatrick_scale:!1,category:"symbols"},u6709:{keywords:["orange-square","chinese","have","kanji"],"char":"🈶",fitzpatrick_scale:!1,category:"symbols"},u7121:{keywords:["nothing","chinese","kanji","japanese","orange-square"],"char":"🈚",fitzpatrick_scale:!1,category:"symbols"},u7533:{keywords:["chinese","japanese","kanji","orange-square"],"char":"🈸",fitzpatrick_scale:!1,category:"symbols"},u55b6:{keywords:["japanese","opening hours","orange-square"],"char":"🈺",fitzpatrick_scale:!1,category:"symbols"},u6708:{keywords:["chinese","month","moon","japanese","orange-square","kanji"],"char":"🈷️",fitzpatrick_scale:!1,category:"symbols"},eight_pointed_black_star:{keywords:["orange-square","shape","polygon"],"char":"✴️",fitzpatrick_scale:!1,category:"symbols"},vs:{keywords:["words","orange-square"],"char":"🆚",fitzpatrick_scale:!1,category:"symbols"},accept:{keywords:["ok","good","chinese","kanji","agree","yes","orange-circle"],"char":"🉑",fitzpatrick_scale:!1,category:"symbols"},white_flower:{keywords:["japanese","spring"],"char":"💮",fitzpatrick_scale:!1,category:"symbols"},ideograph_advantage:{keywords:["chinese","kanji","obtain","get","circle"],"char":"🉐",fitzpatrick_scale:!1,category:"symbols"},secret:{keywords:["privacy","chinese","sshh","kanji","red-circle"],"char":"㊙️",fitzpatrick_scale:!1,category:"symbols"},congratulations:{keywords:["chinese","kanji","japanese","red-circle"],"char":"㊗️",fitzpatrick_scale:!1,category:"symbols"},u5408:{keywords:["japanese","chinese","join","kanji","red-square"],"char":"🈴",fitzpatrick_scale:!1,category:"symbols"},u6e80:{keywords:["full","chinese","japanese","red-square","kanji"],"char":"🈵",fitzpatrick_scale:!1,category:"symbols"},u7981:{keywords:["kanji","japanese","chinese","forbidden","limit","restricted","red-square"],"char":"🈲",fitzpatrick_scale:!1,category:"symbols"},a:{keywords:["red-square","alphabet","letter"],"char":"🅰️",fitzpatrick_scale:!1,category:"symbols"},b:{keywords:["red-square","alphabet","letter"],"char":"🅱️",fitzpatrick_scale:!1,category:"symbols"},ab:{keywords:["red-square","alphabet"],"char":"🆎",fitzpatrick_scale:!1,category:"symbols"},cl:{keywords:["alphabet","words","red-square"],"char":"🆑",fitzpatrick_scale:!1,category:"symbols"},o2:{keywords:["alphabet","red-square","letter"],"char":"🅾️",fitzpatrick_scale:!1,category:"symbols"},sos:{keywords:["help","red-square","words","emergency","911"],"char":"🆘",fitzpatrick_scale:!1,category:"symbols"},no_entry:{keywords:["limit","security","privacy","bad","denied","stop","circle"],"char":"⛔",fitzpatrick_scale:!1,category:"symbols"},name_badge:{keywords:["fire","forbid"],"char":"📛",fitzpatrick_scale:!1,category:"symbols"},no_entry_sign:{keywords:["forbid","stop","limit","denied","disallow","circle"],"char":"🚫",fitzpatrick_scale:!1,category:"symbols"},x:{keywords:["no","delete","remove","cancel"],"char":"❌",fitzpatrick_scale:!1,category:"symbols"},o:{keywords:["circle","round"],"char":"⭕",fitzpatrick_scale:!1,category:"symbols"},stop_sign:{keywords:["stop"],"char":"🛑",fitzpatrick_scale:!1,category:"symbols"},anger:{keywords:["angry","mad"],"char":"💢",fitzpatrick_scale:!1,category:"symbols"},hotsprings:{keywords:["bath","warm","relax"],"char":"♨️",fitzpatrick_scale:!1,category:"symbols"},no_pedestrians:{keywords:["rules","crossing","walking","circle"],"char":"🚷",fitzpatrick_scale:!1,category:"symbols"},do_not_litter:{keywords:["trash","bin","garbage","circle"],"char":"🚯",fitzpatrick_scale:!1,category:"symbols"},no_bicycles:{keywords:["cyclist","prohibited","circle"],"char":"🚳",fitzpatrick_scale:!1,category:"symbols"},"non-potable_water":{keywords:["drink","faucet","tap","circle"],"char":"🚱",fitzpatrick_scale:!1,category:"symbols"},underage:{keywords:["18","drink","pub","night","minor","circle"],"char":"🔞",fitzpatrick_scale:!1,category:"symbols"},no_mobile_phones:{keywords:["iphone","mute","circle"],"char":"📵",fitzpatrick_scale:!1,category:"symbols"},exclamation:{keywords:["heavy_exclamation_mark","danger","surprise","punctuation","wow","warning"],"char":"❗",fitzpatrick_scale:!1,category:"symbols"},grey_exclamation:{keywords:["surprise","punctuation","gray","wow","warning"],"char":"❕",fitzpatrick_scale:!1,category:"symbols"},question:{keywords:["doubt","confused"],"char":"❓",fitzpatrick_scale:!1,category:"symbols"},grey_question:{keywords:["doubts","gray","huh","confused"],"char":"❔",fitzpatrick_scale:!1,category:"symbols"},bangbang:{keywords:["exclamation","surprise"],"char":"‼️",fitzpatrick_scale:!1,category:"symbols"},interrobang:{keywords:["wat","punctuation","surprise"],"char":"⁉️",fitzpatrick_scale:!1,category:"symbols"},100:{keywords:["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],"char":"💯",fitzpatrick_scale:!1,category:"symbols"},low_brightness:{keywords:["sun","afternoon","warm","summer"],"char":"🔅",fitzpatrick_scale:!1,category:"symbols"},high_brightness:{keywords:["sun","light"],"char":"🔆",fitzpatrick_scale:!1,category:"symbols"},trident:{keywords:["weapon","spear"],"char":"🔱",fitzpatrick_scale:!1,category:"symbols"},fleur_de_lis:{keywords:["decorative","scout"],"char":"⚜",fitzpatrick_scale:!1,category:"symbols"},part_alternation_mark:{keywords:["graph","presentation","stats","business","economics","bad"],"char":"〽️",fitzpatrick_scale:!1,category:"symbols"},warning:{keywords:["exclamation","wip","alert","error","problem","issue"],"char":"⚠️",fitzpatrick_scale:!1,category:"symbols"},children_crossing:{keywords:["school","warning","danger","sign","driving","yellow-diamond"],"char":"🚸",fitzpatrick_scale:!1,category:"symbols"},beginner:{keywords:["badge","shield"],"char":"🔰",fitzpatrick_scale:!1,category:"symbols"},recycle:{keywords:["arrow","environment","garbage","trash"],"char":"♻️",fitzpatrick_scale:!1,category:"symbols"},u6307:{keywords:["chinese","point","green-square","kanji"],"char":"🈯",fitzpatrick_scale:!1,category:"symbols"},chart:{keywords:["green-square","graph","presentation","stats"],"char":"💹",fitzpatrick_scale:!1,category:"symbols"},sparkle:{keywords:["stars","green-square","awesome","good","fireworks"],"char":"❇️",fitzpatrick_scale:!1,category:"symbols"},eight_spoked_asterisk:{keywords:["star","sparkle","green-square"],"char":"✳️",fitzpatrick_scale:!1,category:"symbols"},negative_squared_cross_mark:{keywords:["x","green-square","no","deny"],"char":"❎",fitzpatrick_scale:!1,category:"symbols"},white_check_mark:{keywords:["green-square","ok","agree","vote","election","answer","tick"],"char":"✅",fitzpatrick_scale:!1,category:"symbols"},diamond_shape_with_a_dot_inside:{keywords:["jewel","blue","gem","crystal","fancy"],"char":"💠",fitzpatrick_scale:!1,category:"symbols"},cyclone:{keywords:["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],"char":"🌀",fitzpatrick_scale:!1,category:"symbols"},loop:{keywords:["tape","cassette"],"char":"➿",fitzpatrick_scale:!1,category:"symbols"},globe_with_meridians:{keywords:["earth","international","world","internet","interweb","i18n"],"char":"🌐",fitzpatrick_scale:!1,category:"symbols"},m:{keywords:["alphabet","blue-circle","letter"],"char":"Ⓜ️",fitzpatrick_scale:!1,category:"symbols"},atm:{keywords:["money","sales","cash","blue-square","payment","bank"],"char":"🏧",fitzpatrick_scale:!1,category:"symbols"},sa:{keywords:["japanese","blue-square","katakana"],"char":"🈂️",fitzpatrick_scale:!1,category:"symbols"},passport_control:{keywords:["custom","blue-square"],"char":"🛂",fitzpatrick_scale:!1,category:"symbols"},customs:{keywords:["passport","border","blue-square"],"char":"🛃",fitzpatrick_scale:!1,category:"symbols"},baggage_claim:{keywords:["blue-square","airport","transport"],"char":"🛄",fitzpatrick_scale:!1,category:"symbols"},left_luggage:{keywords:["blue-square","travel"],"char":"🛅",fitzpatrick_scale:!1,category:"symbols"},wheelchair:{keywords:["blue-square","disabled","a11y","accessibility"],"char":"♿",fitzpatrick_scale:!1,category:"symbols"},no_smoking:{keywords:["cigarette","blue-square","smell","smoke"],"char":"🚭",fitzpatrick_scale:!1,category:"symbols"},wc:{keywords:["toilet","restroom","blue-square"],"char":"🚾",fitzpatrick_scale:!1,category:"symbols"},parking:{keywords:["cars","blue-square","alphabet","letter"],"char":"🅿️",fitzpatrick_scale:!1,category:"symbols"},potable_water:{keywords:["blue-square","liquid","restroom","cleaning","faucet"],"char":"🚰",fitzpatrick_scale:!1,category:"symbols"},mens:{keywords:["toilet","restroom","wc","blue-square","gender","male"],"char":"🚹",fitzpatrick_scale:!1,category:"symbols"},womens:{keywords:["purple-square","woman","female","toilet","loo","restroom","gender"],"char":"🚺",fitzpatrick_scale:!1,category:"symbols"},baby_symbol:{keywords:["orange-square","child"],"char":"🚼",fitzpatrick_scale:!1,category:"symbols"},restroom:{keywords:["blue-square","toilet","refresh","wc","gender"],"char":"🚻",fitzpatrick_scale:!1,category:"symbols"},put_litter_in_its_place:{keywords:["blue-square","sign","human","info"],"char":"🚮",fitzpatrick_scale:!1,category:"symbols"},cinema:{keywords:["blue-square","record","film","movie","curtain","stage","theater"],"char":"🎦",fitzpatrick_scale:!1,category:"symbols"},signal_strength:{keywords:["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],"char":"📶",fitzpatrick_scale:!1,category:"symbols"},koko:{keywords:["blue-square","here","katakana","japanese","destination"],"char":"🈁",fitzpatrick_scale:!1,category:"symbols"},ng:{keywords:["blue-square","words","shape","icon"],"char":"🆖",fitzpatrick_scale:!1,category:"symbols"},ok:{keywords:["good","agree","yes","blue-square"],"char":"🆗",fitzpatrick_scale:!1,category:"symbols"},up:{keywords:["blue-square","above","high"],"char":"🆙",fitzpatrick_scale:!1,category:"symbols"},cool:{keywords:["words","blue-square"],"char":"🆒",fitzpatrick_scale:!1,category:"symbols"},"new":{keywords:["blue-square","words","start"],"char":"🆕",fitzpatrick_scale:!1,category:"symbols"},free:{keywords:["blue-square","words"],"char":"🆓",fitzpatrick_scale:!1,category:"symbols"},zero:{keywords:["0","numbers","blue-square","null"],"char":"0️⃣",fitzpatrick_scale:!1,category:"symbols"},one:{keywords:["blue-square","numbers","1"],"char":"1️⃣",fitzpatrick_scale:!1,category:"symbols"},two:{keywords:["numbers","2","prime","blue-square"],"char":"2️⃣",fitzpatrick_scale:!1,category:"symbols"},three:{keywords:["3","numbers","prime","blue-square"],"char":"3️⃣",fitzpatrick_scale:!1,category:"symbols"},four:{keywords:["4","numbers","blue-square"],"char":"4️⃣",fitzpatrick_scale:!1,category:"symbols"},five:{keywords:["5","numbers","blue-square","prime"],"char":"5️⃣",fitzpatrick_scale:!1,category:"symbols"},six:{keywords:["6","numbers","blue-square"],"char":"6️⃣",fitzpatrick_scale:!1,category:"symbols"},seven:{keywords:["7","numbers","blue-square","prime"],"char":"7️⃣",fitzpatrick_scale:!1,category:"symbols"},eight:{keywords:["8","blue-square","numbers"],"char":"8️⃣",fitzpatrick_scale:!1,category:"symbols"},nine:{keywords:["blue-square","numbers","9"],"char":"9️⃣",fitzpatrick_scale:!1,category:"symbols"},keycap_ten:{keywords:["numbers","10","blue-square"],"char":"🔟",fitzpatrick_scale:!1,category:"symbols"},asterisk:{keywords:["star","keycap"],"char":"*⃣",fitzpatrick_scale:!1,category:"symbols"},1234:{keywords:["numbers","blue-square"],"char":"🔢",fitzpatrick_scale:!1,category:"symbols"},eject_button:{keywords:["blue-square"],"char":"⏏️",fitzpatrick_scale:!1,category:"symbols"},arrow_forward:{keywords:["blue-square","right","direction","play"],"char":"▶️",fitzpatrick_scale:!1,category:"symbols"},pause_button:{keywords:["pause","blue-square"],"char":"⏸",fitzpatrick_scale:!1,category:"symbols"},next_track_button:{keywords:["forward","next","blue-square"],"char":"⏭",fitzpatrick_scale:!1,category:"symbols"},stop_button:{keywords:["blue-square"],"char":"⏹",fitzpatrick_scale:!1,category:"symbols"},record_button:{keywords:["blue-square"],"char":"⏺",fitzpatrick_scale:!1,category:"symbols"},play_or_pause_button:{keywords:["blue-square","play","pause"],"char":"⏯",fitzpatrick_scale:!1,category:"symbols"},previous_track_button:{keywords:["backward"],"char":"⏮",fitzpatrick_scale:!1,category:"symbols"},fast_forward:{keywords:["blue-square","play","speed","continue"],"char":"⏩",fitzpatrick_scale:!1,category:"symbols"},rewind:{keywords:["play","blue-square"],"char":"⏪",fitzpatrick_scale:!1,category:"symbols"},twisted_rightwards_arrows:{keywords:["blue-square","shuffle","music","random"],"char":"🔀",fitzpatrick_scale:!1,category:"symbols"},repeat:{keywords:["loop","record"],"char":"🔁",fitzpatrick_scale:!1,category:"symbols"},repeat_one:{keywords:["blue-square","loop"],"char":"🔂",fitzpatrick_scale:!1,category:"symbols"},arrow_backward:{keywords:["blue-square","left","direction"],"char":"◀️",fitzpatrick_scale:!1,category:"symbols"},arrow_up_small:{keywords:["blue-square","triangle","direction","point","forward","top"],"char":"🔼",fitzpatrick_scale:!1,category:"symbols"},arrow_down_small:{keywords:["blue-square","direction","bottom"],"char":"🔽",fitzpatrick_scale:!1,category:"symbols"},arrow_double_up:{keywords:["blue-square","direction","top"],"char":"⏫",fitzpatrick_scale:!1,category:"symbols"},arrow_double_down:{keywords:["blue-square","direction","bottom"],"char":"⏬",fitzpatrick_scale:!1,category:"symbols"},arrow_right:{keywords:["blue-square","next"],"char":"➡️",fitzpatrick_scale:!1,category:"symbols"},arrow_left:{keywords:["blue-square","previous","back"],"char":"⬅️",fitzpatrick_scale:!1,category:"symbols"},arrow_up:{keywords:["blue-square","continue","top","direction"],"char":"⬆️",fitzpatrick_scale:!1,category:"symbols"},arrow_down:{keywords:["blue-square","direction","bottom"],"char":"⬇️",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_right:{keywords:["blue-square","point","direction","diagonal","northeast"],"char":"↗️",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_right:{keywords:["blue-square","direction","diagonal","southeast"],"char":"↘️",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_left:{keywords:["blue-square","direction","diagonal","southwest"],"char":"↙️",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_left:{keywords:["blue-square","point","direction","diagonal","northwest"],"char":"↖️",fitzpatrick_scale:!1,category:"symbols"},arrow_up_down:{keywords:["blue-square","direction","way","vertical"],"char":"↕️",fitzpatrick_scale:!1,category:"symbols"},left_right_arrow:{keywords:["shape","direction","horizontal","sideways"],"char":"↔️",fitzpatrick_scale:!1,category:"symbols"},arrows_counterclockwise:{keywords:["blue-square","sync","cycle"],"char":"🔄",fitzpatrick_scale:!1,category:"symbols"},arrow_right_hook:{keywords:["blue-square","return","rotate","direction"],"char":"↪️",fitzpatrick_scale:!1,category:"symbols"},leftwards_arrow_with_hook:{keywords:["back","return","blue-square","undo","enter"],"char":"↩️",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_up:{keywords:["blue-square","direction","top"],"char":"⤴️",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_down:{keywords:["blue-square","direction","bottom"],"char":"⤵️",fitzpatrick_scale:!1,category:"symbols"},hash:{keywords:["symbol","blue-square","twitter"],"char":"#️⃣",fitzpatrick_scale:!1,category:"symbols"},information_source:{keywords:["blue-square","alphabet","letter"],"char":"ℹ️",fitzpatrick_scale:!1,category:"symbols"},abc:{keywords:["blue-square","alphabet"],"char":"🔤",fitzpatrick_scale:!1,category:"symbols"},abcd:{keywords:["blue-square","alphabet"],"char":"🔡",fitzpatrick_scale:!1,category:"symbols"},capital_abcd:{keywords:["alphabet","words","blue-square"],"char":"🔠",fitzpatrick_scale:!1,category:"symbols"},symbols:{keywords:["blue-square","music","note","ampersand","percent","glyphs","characters"],"char":"🔣",fitzpatrick_scale:!1,category:"symbols"},musical_note:{keywords:["score","tone","sound"],"char":"🎵",fitzpatrick_scale:!1,category:"symbols"},notes:{keywords:["music","score"],"char":"🎶",fitzpatrick_scale:!1,category:"symbols"},wavy_dash:{keywords:["draw","line","moustache","mustache","squiggle","scribble"],"char":"〰️",fitzpatrick_scale:!1,category:"symbols"},curly_loop:{keywords:["scribble","draw","shape","squiggle"],"char":"➰",fitzpatrick_scale:!1,category:"symbols"},heavy_check_mark:{keywords:["ok","nike","answer","yes","tick"],"char":"✔️",fitzpatrick_scale:!1,category:"symbols"},arrows_clockwise:{keywords:["sync","cycle","round","repeat"],"char":"🔃",fitzpatrick_scale:!1,category:"symbols"},heavy_plus_sign:{keywords:["math","calculation","addition","more","increase"],"char":"➕",fitzpatrick_scale:!1,category:"symbols"},heavy_minus_sign:{keywords:["math","calculation","subtract","less"],"char":"➖",fitzpatrick_scale:!1,category:"symbols"},heavy_division_sign:{keywords:["divide","math","calculation"],"char":"➗",fitzpatrick_scale:!1,category:"symbols"},heavy_multiplication_x:{keywords:["math","calculation"],"char":"✖️",fitzpatrick_scale:!1,category:"symbols"},heavy_dollar_sign:{keywords:["money","sales","payment","currency","buck"],"char":"💲",fitzpatrick_scale:!1,category:"symbols"},currency_exchange:{keywords:["money","sales","dollar","travel"],"char":"💱",fitzpatrick_scale:!1,category:"symbols"},copyright:{keywords:["ip","license","circle","law","legal"],"char":"©️",fitzpatrick_scale:!1,category:"symbols"},registered:{keywords:["alphabet","circle"],"char":"®️",fitzpatrick_scale:!1,category:"symbols"},tm:{keywords:["trademark","brand","law","legal"],"char":"™️",fitzpatrick_scale:!1,category:"symbols"},end:{keywords:["words","arrow"],"char":"🔚",fitzpatrick_scale:!1,category:"symbols"},back:{keywords:["arrow","words","return"],"char":"🔙",fitzpatrick_scale:!1,category:"symbols"},on:{keywords:["arrow","words"],"char":"🔛",fitzpatrick_scale:!1,category:"symbols"},top:{keywords:["words","blue-square"],"char":"🔝",fitzpatrick_scale:!1,category:"symbols"},soon:{keywords:["arrow","words"],"char":"🔜",fitzpatrick_scale:!1,category:"symbols"},ballot_box_with_check:{keywords:["ok","agree","confirm","black-square","vote","election","yes","tick"],"char":"☑️",fitzpatrick_scale:!1,category:"symbols"},radio_button:{keywords:["input","old","music","circle"],"char":"🔘",fitzpatrick_scale:!1,category:"symbols"},white_circle:{keywords:["shape","round"],"char":"⚪",fitzpatrick_scale:!1,category:"symbols"},black_circle:{keywords:["shape","button","round"],"char":"⚫",fitzpatrick_scale:!1,category:"symbols"},red_circle:{keywords:["shape","error","danger"],"char":"🔴",fitzpatrick_scale:!1,category:"symbols"},large_blue_circle:{keywords:["shape","icon","button"],"char":"🔵",fitzpatrick_scale:!1,category:"symbols"},small_orange_diamond:{keywords:["shape","jewel","gem"],"char":"🔸",fitzpatrick_scale:!1,category:"symbols"},small_blue_diamond:{keywords:["shape","jewel","gem"],"char":"🔹",fitzpatrick_scale:!1,category:"symbols"},large_orange_diamond:{keywords:["shape","jewel","gem"],"char":"🔶",fitzpatrick_scale:!1,category:"symbols"},large_blue_diamond:{keywords:["shape","jewel","gem"],"char":"🔷",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle:{keywords:["shape","direction","up","top"],"char":"🔺",fitzpatrick_scale:!1,category:"symbols"},black_small_square:{keywords:["shape","icon"],"char":"▪️",fitzpatrick_scale:!1,category:"symbols"},white_small_square:{keywords:["shape","icon"],"char":"▫️",fitzpatrick_scale:!1,category:"symbols"},black_large_square:{keywords:["shape","icon","button"],"char":"⬛",fitzpatrick_scale:!1,category:"symbols"},white_large_square:{keywords:["shape","icon","stone","button"],"char":"⬜",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle_down:{keywords:["shape","direction","bottom"],"char":"🔻",fitzpatrick_scale:!1,category:"symbols"},black_medium_square:{keywords:["shape","button","icon"],"char":"◼️",fitzpatrick_scale:!1,category:"symbols"},white_medium_square:{keywords:["shape","stone","icon"],"char":"◻️",fitzpatrick_scale:!1,category:"symbols"},black_medium_small_square:{keywords:["icon","shape","button"],"char":"◾",fitzpatrick_scale:!1,category:"symbols"},white_medium_small_square:{keywords:["shape","stone","icon","button"],"char":"◽",fitzpatrick_scale:!1,category:"symbols"},black_square_button:{keywords:["shape","input","frame"],"char":"🔲",fitzpatrick_scale:!1,category:"symbols"},white_square_button:{keywords:["shape","input"],"char":"🔳",fitzpatrick_scale:!1,category:"symbols"},speaker:{keywords:["sound","volume","silence","broadcast"],"char":"🔈",fitzpatrick_scale:!1,category:"symbols"},sound:{keywords:["volume","speaker","broadcast"],"char":"🔉",fitzpatrick_scale:!1,category:"symbols"},loud_sound:{keywords:["volume","noise","noisy","speaker","broadcast"],"char":"🔊",fitzpatrick_scale:!1,category:"symbols"},mute:{keywords:["sound","volume","silence","quiet"],"char":"🔇",fitzpatrick_scale:!1,category:"symbols"},mega:{keywords:["sound","speaker","volume"],"char":"📣",fitzpatrick_scale:!1,category:"symbols"},loudspeaker:{keywords:["volume","sound"],"char":"📢",fitzpatrick_scale:!1,category:"symbols"},bell:{keywords:["sound","notification","christmas","xmas","chime"],"char":"🔔",fitzpatrick_scale:!1,category:"symbols"},no_bell:{keywords:["sound","volume","mute","quiet","silent"],"char":"🔕",fitzpatrick_scale:!1,category:"symbols"},black_joker:{keywords:["poker","cards","game","play","magic"],"char":"🃏",fitzpatrick_scale:!1,category:"symbols"},mahjong:{keywords:["game","play","chinese","kanji"],"char":"🀄",fitzpatrick_scale:!1,category:"symbols"},spades:{keywords:["poker","cards","suits","magic"],"char":"♠️",fitzpatrick_scale:!1,category:"symbols"},clubs:{keywords:["poker","cards","magic","suits"],"char":"♣️",fitzpatrick_scale:!1,category:"symbols"},hearts:{keywords:["poker","cards","magic","suits"],"char":"♥️",fitzpatrick_scale:!1,category:"symbols"},diamonds:{keywords:["poker","cards","magic","suits"],"char":"♦️",fitzpatrick_scale:!1,category:"symbols"},flower_playing_cards:{keywords:["game","sunset","red"],"char":"🎴",fitzpatrick_scale:!1,category:"symbols"},thought_balloon:{keywords:["bubble","cloud","speech","thinking","dream"],"char":"💭",fitzpatrick_scale:!1,category:"symbols"},right_anger_bubble:{keywords:["caption","speech","thinking","mad"],"char":"🗯",fitzpatrick_scale:!1,category:"symbols"},speech_balloon:{keywords:["bubble","words","message","talk","chatting"],"char":"💬",fitzpatrick_scale:!1,category:"symbols"},left_speech_bubble:{keywords:["words","message","talk","chatting"],"char":"🗨",fitzpatrick_scale:!1,category:"symbols"},clock1:{keywords:["time","late","early","schedule"],"char":"🕐",fitzpatrick_scale:!1,category:"symbols"},clock2:{keywords:["time","late","early","schedule"],"char":"🕑",fitzpatrick_scale:!1,category:"symbols"},clock3:{keywords:["time","late","early","schedule"],"char":"🕒",fitzpatrick_scale:!1,category:"symbols"},clock4:{keywords:["time","late","early","schedule"],"char":"🕓",fitzpatrick_scale:!1,category:"symbols"},clock5:{keywords:["time","late","early","schedule"],"char":"🕔",fitzpatrick_scale:!1,category:"symbols"},clock6:{keywords:["time","late","early","schedule","dawn","dusk"],"char":"🕕",fitzpatrick_scale:!1,category:"symbols"},clock7:{keywords:["time","late","early","schedule"],"char":"🕖",fitzpatrick_scale:!1,category:"symbols"},clock8:{keywords:["time","late","early","schedule"],"char":"🕗",fitzpatrick_scale:!1,category:"symbols"},clock9:{keywords:["time","late","early","schedule"],"char":"🕘",fitzpatrick_scale:!1,category:"symbols"},clock10:{keywords:["time","late","early","schedule"],"char":"🕙",fitzpatrick_scale:!1,category:"symbols"},clock11:{keywords:["time","late","early","schedule"],"char":"🕚",fitzpatrick_scale:!1,category:"symbols"},clock12:{keywords:["time","noon","midnight","midday","late","early","schedule"],"char":"🕛",fitzpatrick_scale:!1,category:"symbols"},clock130:{keywords:["time","late","early","schedule"],"char":"🕜",fitzpatrick_scale:!1,category:"symbols"},clock230:{keywords:["time","late","early","schedule"],"char":"🕝",fitzpatrick_scale:!1,category:"symbols"},clock330:{keywords:["time","late","early","schedule"],"char":"🕞",fitzpatrick_scale:!1,category:"symbols"},clock430:{keywords:["time","late","early","schedule"],"char":"🕟",fitzpatrick_scale:!1,category:"symbols"},clock530:{keywords:["time","late","early","schedule"],"char":"🕠",fitzpatrick_scale:!1,category:"symbols"},clock630:{keywords:["time","late","early","schedule"],"char":"🕡",fitzpatrick_scale:!1,category:"symbols"},clock730:{keywords:["time","late","early","schedule"],"char":"🕢",fitzpatrick_scale:!1,category:"symbols"},clock830:{keywords:["time","late","early","schedule"],"char":"🕣",fitzpatrick_scale:!1,category:"symbols"},clock930:{keywords:["time","late","early","schedule"],"char":"🕤",fitzpatrick_scale:!1,category:"symbols"},clock1030:{keywords:["time","late","early","schedule"],"char":"🕥",fitzpatrick_scale:!1,category:"symbols"},clock1130:{keywords:["time","late","early","schedule"],"char":"🕦",fitzpatrick_scale:!1,category:"symbols"},clock1230:{keywords:["time","late","early","schedule"],"char":"🕧",fitzpatrick_scale:!1,category:"symbols"},afghanistan:{keywords:["af","flag","nation","country","banner"],"char":"🇦🇫",fitzpatrick_scale:!1,category:"flags"},aland_islands:{keywords:["Åland","islands","flag","nation","country","banner"],"char":"🇦🇽",fitzpatrick_scale:!1,category:"flags"},albania:{keywords:["al","flag","nation","country","banner"],"char":"🇦🇱",fitzpatrick_scale:!1,category:"flags"},algeria:{keywords:["dz","flag","nation","country","banner"],"char":"🇩🇿",fitzpatrick_scale:!1,category:"flags"},american_samoa:{keywords:["american","ws","flag","nation","country","banner"],"char":"🇦🇸",fitzpatrick_scale:!1,category:"flags"},andorra:{keywords:["ad","flag","nation","country","banner"],"char":"🇦🇩",fitzpatrick_scale:!1,category:"flags"},angola:{keywords:["ao","flag","nation","country","banner"],"char":"🇦🇴",fitzpatrick_scale:!1,category:"flags"},anguilla:{keywords:["ai","flag","nation","country","banner"],"char":"🇦🇮",fitzpatrick_scale:!1,category:"flags"},antarctica:{keywords:["aq","flag","nation","country","banner"],"char":"🇦🇶",fitzpatrick_scale:!1,category:"flags"},antigua_barbuda:{keywords:["antigua","barbuda","flag","nation","country","banner"],"char":"🇦🇬",fitzpatrick_scale:!1,category:"flags"},argentina:{keywords:["ar","flag","nation","country","banner"],"char":"🇦🇷",fitzpatrick_scale:!1,category:"flags"},armenia:{keywords:["am","flag","nation","country","banner"],"char":"🇦🇲",fitzpatrick_scale:!1,category:"flags"},aruba:{keywords:["aw","flag","nation","country","banner"],"char":"🇦🇼",fitzpatrick_scale:!1,category:"flags"},australia:{keywords:["au","flag","nation","country","banner"],"char":"🇦🇺",fitzpatrick_scale:!1,category:"flags"},austria:{keywords:["at","flag","nation","country","banner"],"char":"🇦🇹",fitzpatrick_scale:!1,category:"flags"},azerbaijan:{keywords:["az","flag","nation","country","banner"],"char":"🇦🇿",fitzpatrick_scale:!1,category:"flags"},bahamas:{keywords:["bs","flag","nation","country","banner"],"char":"🇧🇸",fitzpatrick_scale:!1,category:"flags"},bahrain:{keywords:["bh","flag","nation","country","banner"],"char":"🇧🇭",fitzpatrick_scale:!1,category:"flags"},bangladesh:{keywords:["bd","flag","nation","country","banner"],"char":"🇧🇩",fitzpatrick_scale:!1,category:"flags"},barbados:{keywords:["bb","flag","nation","country","banner"],"char":"🇧🇧",fitzpatrick_scale:!1,category:"flags"},belarus:{keywords:["by","flag","nation","country","banner"],"char":"🇧🇾",fitzpatrick_scale:!1,category:"flags"},belgium:{keywords:["be","flag","nation","country","banner"],"char":"🇧🇪",fitzpatrick_scale:!1,category:"flags"},belize:{keywords:["bz","flag","nation","country","banner"],"char":"🇧🇿",fitzpatrick_scale:!1,category:"flags"},benin:{keywords:["bj","flag","nation","country","banner"],"char":"🇧🇯",fitzpatrick_scale:!1,category:"flags"},bermuda:{keywords:["bm","flag","nation","country","banner"],"char":"🇧🇲",fitzpatrick_scale:!1,category:"flags"},bhutan:{keywords:["bt","flag","nation","country","banner"],"char":"🇧🇹",fitzpatrick_scale:!1,category:"flags"},bolivia:{keywords:["bo","flag","nation","country","banner"],"char":"🇧🇴",fitzpatrick_scale:!1,category:"flags"},caribbean_netherlands:{keywords:["bonaire","flag","nation","country","banner"],"char":"🇧🇶",fitzpatrick_scale:!1,category:"flags"},bosnia_herzegovina:{keywords:["bosnia","herzegovina","flag","nation","country","banner"],"char":"🇧🇦",fitzpatrick_scale:!1,category:"flags"},botswana:{keywords:["bw","flag","nation","country","banner"],"char":"🇧🇼",fitzpatrick_scale:!1,category:"flags"},brazil:{keywords:["br","flag","nation","country","banner"],"char":"🇧🇷",fitzpatrick_scale:!1,category:"flags"},british_indian_ocean_territory:{keywords:["british","indian","ocean","territory","flag","nation","country","banner"],"char":"🇮🇴",fitzpatrick_scale:!1,category:"flags"},british_virgin_islands:{keywords:["british","virgin","islands","bvi","flag","nation","country","banner"],"char":"🇻🇬",fitzpatrick_scale:!1,category:"flags"},brunei:{keywords:["bn","darussalam","flag","nation","country","banner"],"char":"🇧🇳",fitzpatrick_scale:!1,category:"flags"},bulgaria:{keywords:["bg","flag","nation","country","banner"],"char":"🇧🇬",fitzpatrick_scale:!1,category:"flags"},burkina_faso:{keywords:["burkina","faso","flag","nation","country","banner"],"char":"🇧🇫",fitzpatrick_scale:!1,category:"flags"},burundi:{keywords:["bi","flag","nation","country","banner"],"char":"🇧🇮",fitzpatrick_scale:!1,category:"flags"},cape_verde:{keywords:["cabo","verde","flag","nation","country","banner"],"char":"🇨🇻",fitzpatrick_scale:!1,category:"flags"},cambodia:{keywords:["kh","flag","nation","country","banner"],"char":"🇰🇭",fitzpatrick_scale:!1,category:"flags"},cameroon:{keywords:["cm","flag","nation","country","banner"],"char":"🇨🇲",fitzpatrick_scale:!1,category:"flags"},canada:{keywords:["ca","flag","nation","country","banner"],"char":"🇨🇦",fitzpatrick_scale:!1,category:"flags"},canary_islands:{keywords:["canary","islands","flag","nation","country","banner"],"char":"🇮🇨",fitzpatrick_scale:!1,category:"flags"},cayman_islands:{keywords:["cayman","islands","flag","nation","country","banner"],"char":"🇰🇾",fitzpatrick_scale:!1,category:"flags"},central_african_republic:{keywords:["central","african","republic","flag","nation","country","banner"],"char":"🇨🇫",fitzpatrick_scale:!1,category:"flags"},chad:{keywords:["td","flag","nation","country","banner"],"char":"🇹🇩",fitzpatrick_scale:!1,category:"flags"},chile:{keywords:["flag","nation","country","banner"],"char":"🇨🇱",fitzpatrick_scale:!1,category:"flags"},cn:{keywords:["china","chinese","prc","flag","country","nation","banner"],"char":"🇨🇳",fitzpatrick_scale:!1,category:"flags"},christmas_island:{keywords:["christmas","island","flag","nation","country","banner"],"char":"🇨🇽",fitzpatrick_scale:!1,category:"flags"},cocos_islands:{keywords:["cocos","keeling","islands","flag","nation","country","banner"],"char":"🇨🇨",fitzpatrick_scale:!1,category:"flags"},colombia:{keywords:["co","flag","nation","country","banner"],"char":"🇨🇴",fitzpatrick_scale:!1,category:"flags"},comoros:{keywords:["km","flag","nation","country","banner"],"char":"🇰🇲",fitzpatrick_scale:!1,category:"flags"},congo_brazzaville:{keywords:["congo","flag","nation","country","banner"],"char":"🇨🇬",fitzpatrick_scale:!1,category:"flags"},congo_kinshasa:{keywords:["congo","democratic","republic","flag","nation","country","banner"],"char":"🇨🇩",fitzpatrick_scale:!1,category:"flags"},cook_islands:{keywords:["cook","islands","flag","nation","country","banner"],"char":"🇨🇰",fitzpatrick_scale:!1,category:"flags"},costa_rica:{keywords:["costa","rica","flag","nation","country","banner"],"char":"🇨🇷",fitzpatrick_scale:!1,category:"flags"},croatia:{keywords:["hr","flag","nation","country","banner"],"char":"🇭🇷",fitzpatrick_scale:!1,category:"flags"},cuba:{keywords:["cu","flag","nation","country","banner"],"char":"🇨🇺",fitzpatrick_scale:!1,category:"flags"},curacao:{keywords:["curaçao","flag","nation","country","banner"],"char":"🇨🇼",fitzpatrick_scale:!1,category:"flags"},cyprus:{keywords:["cy","flag","nation","country","banner"],"char":"🇨🇾",fitzpatrick_scale:!1,category:"flags"},czech_republic:{keywords:["cz","flag","nation","country","banner"],"char":"🇨🇿",fitzpatrick_scale:!1,category:"flags"},denmark:{keywords:["dk","flag","nation","country","banner"],"char":"🇩🇰",fitzpatrick_scale:!1,category:"flags"},djibouti:{keywords:["dj","flag","nation","country","banner"],"char":"🇩🇯",fitzpatrick_scale:!1,category:"flags"},dominica:{keywords:["dm","flag","nation","country","banner"],"char":"🇩🇲",fitzpatrick_scale:!1,category:"flags"},dominican_republic:{keywords:["dominican","republic","flag","nation","country","banner"],"char":"🇩🇴",fitzpatrick_scale:!1,category:"flags"},ecuador:{keywords:["ec","flag","nation","country","banner"],"char":"🇪🇨",fitzpatrick_scale:!1,category:"flags"},egypt:{keywords:["eg","flag","nation","country","banner"],"char":"🇪🇬",fitzpatrick_scale:!1,category:"flags"},el_salvador:{keywords:["el","salvador","flag","nation","country","banner"],"char":"🇸🇻",fitzpatrick_scale:!1,category:"flags"},equatorial_guinea:{keywords:["equatorial","gn","flag","nation","country","banner"],"char":"🇬🇶",fitzpatrick_scale:!1,category:"flags"},eritrea:{keywords:["er","flag","nation","country","banner"],"char":"🇪🇷",fitzpatrick_scale:!1,category:"flags"},estonia:{keywords:["ee","flag","nation","country","banner"],"char":"🇪🇪",fitzpatrick_scale:!1,category:"flags"},ethiopia:{keywords:["et","flag","nation","country","banner"],"char":"🇪🇹",fitzpatrick_scale:!1,category:"flags"},eu:{keywords:["european","union","flag","banner"],"char":"🇪🇺",fitzpatrick_scale:!1,category:"flags"},falkland_islands:{keywords:["falkland","islands","malvinas","flag","nation","country","banner"],"char":"🇫🇰",fitzpatrick_scale:!1,category:"flags"},faroe_islands:{keywords:["faroe","islands","flag","nation","country","banner"],"char":"🇫🇴",fitzpatrick_scale:!1,category:"flags"},fiji:{keywords:["fj","flag","nation","country","banner"],"char":"🇫🇯",fitzpatrick_scale:!1,category:"flags"},finland:{keywords:["fi","flag","nation","country","banner"],"char":"🇫🇮",fitzpatrick_scale:!1,category:"flags"},fr:{keywords:["banner","flag","nation","france","french","country"],"char":"🇫🇷",fitzpatrick_scale:!1,category:"flags"},french_guiana:{keywords:["french","guiana","flag","nation","country","banner"],"char":"🇬🇫",fitzpatrick_scale:!1,category:"flags"},french_polynesia:{keywords:["french","polynesia","flag","nation","country","banner"],"char":"🇵🇫",fitzpatrick_scale:!1,category:"flags"},french_southern_territories:{keywords:["french","southern","territories","flag","nation","country","banner"],"char":"🇹🇫",fitzpatrick_scale:!1,category:"flags"},gabon:{keywords:["ga","flag","nation","country","banner"],"char":"🇬🇦",fitzpatrick_scale:!1,category:"flags"},gambia:{keywords:["gm","flag","nation","country","banner"],"char":"🇬🇲",fitzpatrick_scale:!1,category:"flags"},georgia:{keywords:["ge","flag","nation","country","banner"],"char":"🇬🇪",fitzpatrick_scale:!1,category:"flags"},de:{keywords:["german","nation","flag","country","banner"],"char":"🇩🇪",fitzpatrick_scale:!1,category:"flags"},ghana:{keywords:["gh","flag","nation","country","banner"],"char":"🇬🇭",fitzpatrick_scale:!1,category:"flags"},gibraltar:{keywords:["gi","flag","nation","country","banner"],"char":"🇬🇮",fitzpatrick_scale:!1,category:"flags"},greece:{keywords:["gr","flag","nation","country","banner"],"char":"🇬🇷",fitzpatrick_scale:!1,category:"flags"},greenland:{keywords:["gl","flag","nation","country","banner"],"char":"🇬🇱",fitzpatrick_scale:!1,category:"flags"},grenada:{keywords:["gd","flag","nation","country","banner"],"char":"🇬🇩",fitzpatrick_scale:!1,category:"flags"},guadeloupe:{keywords:["gp","flag","nation","country","banner"],"char":"🇬🇵",fitzpatrick_scale:!1,category:"flags"},guam:{keywords:["gu","flag","nation","country","banner"],"char":"🇬🇺",fitzpatrick_scale:!1,category:"flags"},guatemala:{keywords:["gt","flag","nation","country","banner"],"char":"🇬🇹",fitzpatrick_scale:!1,category:"flags"},guernsey:{keywords:["gg","flag","nation","country","banner"],"char":"🇬🇬",fitzpatrick_scale:!1,category:"flags"},guinea:{keywords:["gn","flag","nation","country","banner"],"char":"🇬🇳",fitzpatrick_scale:!1,category:"flags"},guinea_bissau:{keywords:["gw","bissau","flag","nation","country","banner"],"char":"🇬🇼",fitzpatrick_scale:!1,category:"flags"},guyana:{keywords:["gy","flag","nation","country","banner"],"char":"🇬🇾",fitzpatrick_scale:!1,category:"flags"},haiti:{keywords:["ht","flag","nation","country","banner"],"char":"🇭🇹",fitzpatrick_scale:!1,category:"flags"},honduras:{keywords:["hn","flag","nation","country","banner"],"char":"🇭🇳",fitzpatrick_scale:!1,category:"flags"},hong_kong:{keywords:["hong","kong","flag","nation","country","banner"],"char":"🇭🇰",fitzpatrick_scale:!1,category:"flags"},hungary:{keywords:["hu","flag","nation","country","banner"],"char":"🇭🇺",fitzpatrick_scale:!1,category:"flags"},iceland:{keywords:["is","flag","nation","country","banner"],"char":"🇮🇸",fitzpatrick_scale:!1,category:"flags"},india:{keywords:["in","flag","nation","country","banner"],"char":"🇮🇳",fitzpatrick_scale:!1,category:"flags"},indonesia:{keywords:["flag","nation","country","banner"],"char":"🇮🇩",fitzpatrick_scale:!1,category:"flags"},iran:{keywords:["iran,","islamic","republic","flag","nation","country","banner"],"char":"🇮🇷",fitzpatrick_scale:!1,category:"flags"},iraq:{keywords:["iq","flag","nation","country","banner"],"char":"🇮🇶",fitzpatrick_scale:!1,category:"flags"},ireland:{keywords:["ie","flag","nation","country","banner"],"char":"🇮🇪",fitzpatrick_scale:!1,category:"flags"},isle_of_man:{keywords:["isle","man","flag","nation","country","banner"],"char":"🇮🇲",fitzpatrick_scale:!1,category:"flags"},israel:{keywords:["il","flag","nation","country","banner"],"char":"🇮🇱",fitzpatrick_scale:!1,category:"flags"},it:{keywords:["italy","flag","nation","country","banner"],"char":"🇮🇹",fitzpatrick_scale:!1,category:"flags"},cote_divoire:{keywords:["ivory","coast","flag","nation","country","banner"],"char":"🇨🇮",fitzpatrick_scale:!1,category:"flags"},jamaica:{keywords:["jm","flag","nation","country","banner"],"char":"🇯🇲",fitzpatrick_scale:!1,category:"flags"},jp:{keywords:["japanese","nation","flag","country","banner"],"char":"🇯🇵",fitzpatrick_scale:!1,category:"flags"},jersey:{keywords:["je","flag","nation","country","banner"],"char":"🇯🇪",fitzpatrick_scale:!1,category:"flags"},jordan:{keywords:["jo","flag","nation","country","banner"],"char":"🇯🇴",fitzpatrick_scale:!1,category:"flags"},kazakhstan:{keywords:["kz","flag","nation","country","banner"],"char":"🇰🇿",fitzpatrick_scale:!1,category:"flags"},kenya:{keywords:["ke","flag","nation","country","banner"],"char":"🇰🇪",fitzpatrick_scale:!1,category:"flags"},kiribati:{keywords:["ki","flag","nation","country","banner"],"char":"🇰🇮",fitzpatrick_scale:!1,category:"flags"},kosovo:{keywords:["xk","flag","nation","country","banner"],"char":"🇽🇰",fitzpatrick_scale:!1,category:"flags"},kuwait:{keywords:["kw","flag","nation","country","banner"],"char":"🇰🇼",fitzpatrick_scale:!1,category:"flags"},kyrgyzstan:{keywords:["kg","flag","nation","country","banner"],"char":"🇰🇬",fitzpatrick_scale:!1,category:"flags"},laos:{keywords:["lao","democratic","republic","flag","nation","country","banner"],"char":"🇱🇦",fitzpatrick_scale:!1,category:"flags"},latvia:{keywords:["lv","flag","nation","country","banner"],"char":"🇱🇻",fitzpatrick_scale:!1,category:"flags"},lebanon:{keywords:["lb","flag","nation","country","banner"],"char":"🇱🇧",fitzpatrick_scale:!1,category:"flags"},lesotho:{keywords:["ls","flag","nation","country","banner"],"char":"🇱🇸",fitzpatrick_scale:!1,category:"flags"},liberia:{keywords:["lr","flag","nation","country","banner"],"char":"🇱🇷",fitzpatrick_scale:!1,category:"flags"},libya:{keywords:["ly","flag","nation","country","banner"],"char":"🇱🇾",fitzpatrick_scale:!1,category:"flags"},liechtenstein:{keywords:["li","flag","nation","country","banner"],"char":"🇱🇮",fitzpatrick_scale:!1,category:"flags"},lithuania:{keywords:["lt","flag","nation","country","banner"],"char":"🇱🇹",fitzpatrick_scale:!1,category:"flags"},luxembourg:{keywords:["lu","flag","nation","country","banner"],"char":"🇱🇺",fitzpatrick_scale:!1,category:"flags"},macau:{keywords:["macao","flag","nation","country","banner"],"char":"🇲🇴",fitzpatrick_scale:!1,category:"flags"},macedonia:{keywords:["macedonia,","flag","nation","country","banner"],"char":"🇲🇰",fitzpatrick_scale:!1,category:"flags"},madagascar:{keywords:["mg","flag","nation","country","banner"],"char":"🇲🇬",fitzpatrick_scale:!1,category:"flags"},malawi:{keywords:["mw","flag","nation","country","banner"],"char":"🇲🇼",fitzpatrick_scale:!1,category:"flags"},malaysia:{keywords:["my","flag","nation","country","banner"],"char":"🇲🇾",fitzpatrick_scale:!1,category:"flags"},maldives:{keywords:["mv","flag","nation","country","banner"],"char":"🇲🇻",fitzpatrick_scale:!1,category:"flags"},mali:{keywords:["ml","flag","nation","country","banner"],"char":"🇲🇱",fitzpatrick_scale:!1,category:"flags"},malta:{keywords:["mt","flag","nation","country","banner"],"char":"🇲🇹",fitzpatrick_scale:!1,category:"flags"},marshall_islands:{keywords:["marshall","islands","flag","nation","country","banner"],"char":"🇲🇭",fitzpatrick_scale:!1,category:"flags"},martinique:{keywords:["mq","flag","nation","country","banner"],"char":"🇲🇶",fitzpatrick_scale:!1,category:"flags"},mauritania:{keywords:["mr","flag","nation","country","banner"],"char":"🇲🇷",fitzpatrick_scale:!1,category:"flags"},mauritius:{keywords:["mu","flag","nation","country","banner"],"char":"🇲🇺",fitzpatrick_scale:!1,category:"flags"},mayotte:{keywords:["yt","flag","nation","country","banner"],"char":"🇾🇹",fitzpatrick_scale:!1,category:"flags"},mexico:{keywords:["mx","flag","nation","country","banner"],"char":"🇲🇽",fitzpatrick_scale:!1,category:"flags"},micronesia:{keywords:["micronesia,","federated","states","flag","nation","country","banner"],"char":"🇫🇲",fitzpatrick_scale:!1,category:"flags"},moldova:{keywords:["moldova,","republic","flag","nation","country","banner"],"char":"🇲🇩",fitzpatrick_scale:!1,category:"flags"},monaco:{keywords:["mc","flag","nation","country","banner"],"char":"🇲🇨",fitzpatrick_scale:!1,category:"flags"},mongolia:{keywords:["mn","flag","nation","country","banner"],"char":"🇲🇳",fitzpatrick_scale:!1,category:"flags"},montenegro:{keywords:["me","flag","nation","country","banner"],"char":"🇲🇪",fitzpatrick_scale:!1,category:"flags"},montserrat:{keywords:["ms","flag","nation","country","banner"],"char":"🇲🇸",fitzpatrick_scale:!1,category:"flags"},morocco:{keywords:["ma","flag","nation","country","banner"],"char":"🇲🇦",fitzpatrick_scale:!1,category:"flags"},mozambique:{keywords:["mz","flag","nation","country","banner"],"char":"🇲🇿",fitzpatrick_scale:!1,category:"flags"},myanmar:{keywords:["mm","flag","nation","country","banner"],"char":"🇲🇲",fitzpatrick_scale:!1,category:"flags"},namibia:{keywords:["na","flag","nation","country","banner"],"char":"🇳🇦",fitzpatrick_scale:!1,category:"flags"},nauru:{keywords:["nr","flag","nation","country","banner"],"char":"🇳🇷",fitzpatrick_scale:!1,category:"flags"},nepal:{keywords:["np","flag","nation","country","banner"],"char":"🇳🇵",fitzpatrick_scale:!1,category:"flags"},netherlands:{keywords:["nl","flag","nation","country","banner"],"char":"🇳🇱",fitzpatrick_scale:!1,category:"flags"},new_caledonia:{keywords:["new","caledonia","flag","nation","country","banner"],"char":"🇳🇨",fitzpatrick_scale:!1,category:"flags"},new_zealand:{keywords:["new","zealand","flag","nation","country","banner"],"char":"🇳🇿",fitzpatrick_scale:!1,category:"flags"},nicaragua:{keywords:["ni","flag","nation","country","banner"],"char":"🇳🇮",fitzpatrick_scale:!1,category:"flags"},niger:{keywords:["ne","flag","nation","country","banner"],"char":"🇳🇪",fitzpatrick_scale:!1,category:"flags"},nigeria:{keywords:["flag","nation","country","banner"],"char":"🇳🇬",fitzpatrick_scale:!1,category:"flags"},niue:{keywords:["nu","flag","nation","country","banner"],"char":"🇳🇺",fitzpatrick_scale:!1,category:"flags"},norfolk_island:{keywords:["norfolk","island","flag","nation","country","banner"],"char":"🇳🇫",fitzpatrick_scale:!1,category:"flags"},northern_mariana_islands:{keywords:["northern","mariana","islands","flag","nation","country","banner"],"char":"🇲🇵",fitzpatrick_scale:!1,category:"flags"},north_korea:{keywords:["north","korea","nation","flag","country","banner"],"char":"🇰🇵",fitzpatrick_scale:!1,category:"flags"},norway:{keywords:["no","flag","nation","country","banner"],"char":"🇳🇴",fitzpatrick_scale:!1,category:"flags"},oman:{keywords:["om_symbol","flag","nation","country","banner"],"char":"🇴🇲",fitzpatrick_scale:!1,category:"flags"},pakistan:{keywords:["pk","flag","nation","country","banner"],"char":"🇵🇰",fitzpatrick_scale:!1,category:"flags"},palau:{keywords:["pw","flag","nation","country","banner"],"char":"🇵🇼",fitzpatrick_scale:!1,category:"flags"},palestinian_territories:{keywords:["palestine","palestinian","territories","flag","nation","country","banner"],"char":"🇵🇸",fitzpatrick_scale:!1,category:"flags"},panama:{keywords:["pa","flag","nation","country","banner"],"char":"🇵🇦",fitzpatrick_scale:!1,category:"flags"},papua_new_guinea:{keywords:["papua","new","guinea","flag","nation","country","banner"],"char":"🇵🇬",fitzpatrick_scale:!1,category:"flags"},paraguay:{keywords:["py","flag","nation","country","banner"],"char":"🇵🇾",fitzpatrick_scale:!1,category:"flags"},peru:{keywords:["pe","flag","nation","country","banner"],"char":"🇵🇪",fitzpatrick_scale:!1,category:"flags"},philippines:{keywords:["ph","flag","nation","country","banner"],"char":"🇵🇭",fitzpatrick_scale:!1,category:"flags"},pitcairn_islands:{keywords:["pitcairn","flag","nation","country","banner"],"char":"🇵🇳",fitzpatrick_scale:!1,category:"flags"},poland:{keywords:["pl","flag","nation","country","banner"],"char":"🇵🇱",fitzpatrick_scale:!1,category:"flags"},portugal:{keywords:["pt","flag","nation","country","banner"],"char":"🇵🇹",fitzpatrick_scale:!1,category:"flags"},puerto_rico:{keywords:["puerto","rico","flag","nation","country","banner"],"char":"🇵🇷",fitzpatrick_scale:!1,category:"flags"},qatar:{keywords:["qa","flag","nation","country","banner"],"char":"🇶🇦",fitzpatrick_scale:!1,category:"flags"},reunion:{keywords:["réunion","flag","nation","country","banner"],"char":"🇷🇪",fitzpatrick_scale:!1,category:"flags"},romania:{keywords:["ro","flag","nation","country","banner"],"char":"🇷🇴",fitzpatrick_scale:!1,category:"flags"},ru:{keywords:["russian","federation","flag","nation","country","banner"],"char":"🇷🇺",fitzpatrick_scale:!1,category:"flags"},rwanda:{keywords:["rw","flag","nation","country","banner"],"char":"🇷🇼",fitzpatrick_scale:!1,category:"flags"},st_barthelemy:{keywords:["saint","barthélemy","flag","nation","country","banner"],"char":"🇧🇱",fitzpatrick_scale:!1,category:"flags"},st_helena:{keywords:["saint","helena","ascension","tristan","cunha","flag","nation","country","banner"],"char":"🇸🇭",fitzpatrick_scale:!1,category:"flags"},st_kitts_nevis:{keywords:["saint","kitts","nevis","flag","nation","country","banner"],"char":"🇰🇳",fitzpatrick_scale:!1,category:"flags"},st_lucia:{keywords:["saint","lucia","flag","nation","country","banner"],"char":"🇱🇨",fitzpatrick_scale:!1,category:"flags"},st_pierre_miquelon:{keywords:["saint","pierre","miquelon","flag","nation","country","banner"],"char":"🇵🇲",fitzpatrick_scale:!1,category:"flags"},st_vincent_grenadines:{keywords:["saint","vincent","grenadines","flag","nation","country","banner"],"char":"🇻🇨",fitzpatrick_scale:!1,category:"flags"},samoa:{keywords:["ws","flag","nation","country","banner"],"char":"🇼🇸",fitzpatrick_scale:!1,category:"flags"},san_marino:{keywords:["san","marino","flag","nation","country","banner"],"char":"🇸🇲",fitzpatrick_scale:!1,category:"flags"},sao_tome_principe:{keywords:["sao","tome","principe","flag","nation","country","banner"],"char":"🇸🇹",fitzpatrick_scale:!1,category:"flags"},saudi_arabia:{keywords:["flag","nation","country","banner"],"char":"🇸🇦",fitzpatrick_scale:!1,category:"flags"},senegal:{keywords:["sn","flag","nation","country","banner"],"char":"🇸🇳",fitzpatrick_scale:!1,category:"flags"},serbia:{keywords:["rs","flag","nation","country","banner"],"char":"🇷🇸",fitzpatrick_scale:!1,category:"flags"},seychelles:{keywords:["sc","flag","nation","country","banner"],"char":"🇸🇨",fitzpatrick_scale:!1,category:"flags"},sierra_leone:{keywords:["sierra","leone","flag","nation","country","banner"],"char":"🇸🇱",fitzpatrick_scale:!1,category:"flags"},singapore:{keywords:["sg","flag","nation","country","banner"],"char":"🇸🇬",fitzpatrick_scale:!1,category:"flags"},sint_maarten:{keywords:["sint","maarten","dutch","flag","nation","country","banner"],"char":"🇸🇽",fitzpatrick_scale:!1,category:"flags"},slovakia:{keywords:["sk","flag","nation","country","banner"],"char":"🇸🇰",fitzpatrick_scale:!1,category:"flags"},slovenia:{keywords:["si","flag","nation","country","banner"],"char":"🇸🇮",fitzpatrick_scale:!1,category:"flags"},solomon_islands:{keywords:["solomon","islands","flag","nation","country","banner"],"char":"🇸🇧",fitzpatrick_scale:!1,category:"flags"},somalia:{keywords:["so","flag","nation","country","banner"],"char":"🇸🇴",fitzpatrick_scale:!1,category:"flags"},south_africa:{keywords:["south","africa","flag","nation","country","banner"],"char":"🇿🇦",fitzpatrick_scale:!1,category:"flags"},south_georgia_south_sandwich_islands:{keywords:["south","georgia","sandwich","islands","flag","nation","country","banner"],"char":"🇬🇸",fitzpatrick_scale:!1,category:"flags"},kr:{keywords:["south","korea","nation","flag","country","banner"],"char":"🇰🇷",fitzpatrick_scale:!1,category:"flags"},south_sudan:{keywords:["south","sd","flag","nation","country","banner"],"char":"🇸🇸",fitzpatrick_scale:!1,category:"flags"},es:{keywords:["spain","flag","nation","country","banner"],"char":"🇪🇸",fitzpatrick_scale:!1,category:"flags"},sri_lanka:{keywords:["sri","lanka","flag","nation","country","banner"],"char":"🇱🇰",fitzpatrick_scale:!1,category:"flags"},sudan:{keywords:["sd","flag","nation","country","banner"],"char":"🇸🇩",fitzpatrick_scale:!1,category:"flags"},suriname:{keywords:["sr","flag","nation","country","banner"],"char":"🇸🇷",fitzpatrick_scale:!1,category:"flags"},swaziland:{keywords:["sz","flag","nation","country","banner"],"char":"🇸🇿",fitzpatrick_scale:!1,category:"flags"},sweden:{keywords:["se","flag","nation","country","banner"],"char":"🇸🇪",fitzpatrick_scale:!1,category:"flags"},switzerland:{keywords:["ch","flag","nation","country","banner"],"char":"🇨🇭",fitzpatrick_scale:!1,category:"flags"},syria:{keywords:["syrian","arab","republic","flag","nation","country","banner"],"char":"🇸🇾",fitzpatrick_scale:!1,category:"flags"},taiwan:{keywords:["tw","flag","nation","country","banner"],"char":"🇹🇼",fitzpatrick_scale:!1,category:"flags"},tajikistan:{keywords:["tj","flag","nation","country","banner"],"char":"🇹🇯",fitzpatrick_scale:!1,category:"flags"},tanzania:{keywords:["tanzania,","united","republic","flag","nation","country","banner"],"char":"🇹🇿",fitzpatrick_scale:!1,category:"flags"},thailand:{keywords:["th","flag","nation","country","banner"],"char":"🇹🇭",fitzpatrick_scale:!1,category:"flags"},timor_leste:{keywords:["timor","leste","flag","nation","country","banner"],"char":"🇹🇱",fitzpatrick_scale:!1,category:"flags"},togo:{keywords:["tg","flag","nation","country","banner"],"char":"🇹🇬",fitzpatrick_scale:!1,category:"flags"},tokelau:{keywords:["tk","flag","nation","country","banner"],"char":"🇹🇰",fitzpatrick_scale:!1,category:"flags"},tonga:{keywords:["to","flag","nation","country","banner"],"char":"🇹🇴",fitzpatrick_scale:!1,category:"flags"},trinidad_tobago:{keywords:["trinidad","tobago","flag","nation","country","banner"],"char":"🇹🇹",fitzpatrick_scale:!1,category:"flags"},tunisia:{keywords:["tn","flag","nation","country","banner"],"char":"🇹🇳",fitzpatrick_scale:!1,category:"flags"},tr:{keywords:["turkey","flag","nation","country","banner"],"char":"🇹🇷",fitzpatrick_scale:!1,category:"flags"},turkmenistan:{keywords:["flag","nation","country","banner"],"char":"🇹🇲",fitzpatrick_scale:!1,category:"flags"},turks_caicos_islands:{keywords:["turks","caicos","islands","flag","nation","country","banner"],"char":"🇹🇨",fitzpatrick_scale:!1,category:"flags"},tuvalu:{keywords:["flag","nation","country","banner"],"char":"🇹🇻",fitzpatrick_scale:!1,category:"flags"},uganda:{keywords:["ug","flag","nation","country","banner"],"char":"🇺🇬",fitzpatrick_scale:!1,category:"flags"},ukraine:{keywords:["ua","flag","nation","country","banner"],"char":"🇺🇦",fitzpatrick_scale:!1,category:"flags"},united_arab_emirates:{keywords:["united","arab","emirates","flag","nation","country","banner"],"char":"🇦🇪",fitzpatrick_scale:!1,category:"flags"},uk:{keywords:["united","kingdom","great","britain","northern","ireland","flag","nation","country","banner","british","UK","english","england","union jack"],"char":"🇬🇧",fitzpatrick_scale:!1,category:"flags"},england:{keywords:["flag","english"],"char":"🏴󠁧󠁢󠁥󠁮󠁧󠁿",fitzpatrick_scale:!1,category:"flags"},scotland:{keywords:["flag","scottish"],"char":"🏴󠁧󠁢󠁳󠁣󠁴󠁿",fitzpatrick_scale:!1,category:"flags"},wales:{keywords:["flag","welsh"],"char":"🏴󠁧󠁢󠁷󠁬󠁳󠁿",fitzpatrick_scale:!1,category:"flags"},us:{keywords:["united","states","america","flag","nation","country","banner"],"char":"🇺🇸",fitzpatrick_scale:!1,category:"flags"},us_virgin_islands:{keywords:["virgin","islands","us","flag","nation","country","banner"],"char":"🇻🇮",fitzpatrick_scale:!1,category:"flags"},uruguay:{keywords:["uy","flag","nation","country","banner"],"char":"🇺🇾",fitzpatrick_scale:!1,category:"flags"},uzbekistan:{keywords:["uz","flag","nation","country","banner"],"char":"🇺🇿",fitzpatrick_scale:!1,category:"flags"},vanuatu:{keywords:["vu","flag","nation","country","banner"],"char":"🇻🇺",fitzpatrick_scale:!1,category:"flags"},vatican_city:{keywords:["vatican","city","flag","nation","country","banner"],"char":"🇻🇦",fitzpatrick_scale:!1,category:"flags"},venezuela:{keywords:["ve","bolivarian","republic","flag","nation","country","banner"],"char":"🇻🇪",fitzpatrick_scale:!1,category:"flags"},vietnam:{keywords:["viet","nam","flag","nation","country","banner"],"char":"🇻🇳",fitzpatrick_scale:!1,category:"flags"},wallis_futuna:{keywords:["wallis","futuna","flag","nation","country","banner"],"char":"🇼🇫",fitzpatrick_scale:!1,category:"flags"},western_sahara:{keywords:["western","sahara","flag","nation","country","banner"],"char":"🇪🇭",fitzpatrick_scale:!1,category:"flags"},yemen:{keywords:["ye","flag","nation","country","banner"],"char":"🇾🇪",fitzpatrick_scale:!1,category:"flags"},zambia:{keywords:["zm","flag","nation","country","banner"],"char":"🇿🇲",fitzpatrick_scale:!1,category:"flags"},zimbabwe:{keywords:["zw","flag","nation","country","banner"],"char":"🇿🇼",fitzpatrick_scale:!1,category:"flags"}}) +}); +;/*!src/components/Tinymce.tsx*/ +amis.define("82fac39",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),i=n.__importDefault(e("node_modules/tinymce/tinymce"));e("node_modules/tinymce/themes/silver/index"),e("node_modules/tinymce/plugins/advlist/index"),e("node_modules/tinymce/plugins/autolink/index"),e("node_modules/tinymce/plugins/lists/index"),e("node_modules/tinymce/plugins/link/index"),e("node_modules/tinymce/plugins/image/index"),e("node_modules/tinymce/plugins/charmap/index"),e("node_modules/tinymce/plugins/print/index"),e("node_modules/tinymce/plugins/preview/index"),e("node_modules/tinymce/plugins/anchor/index"),e("node_modules/tinymce/plugins/searchreplace/index"),e("node_modules/tinymce/plugins/visualblocks/index"),e("node_modules/tinymce/plugins/code/index"),e("node_modules/tinymce/plugins/fullscreen/index"),e("node_modules/tinymce/plugins/insertdatetime/index"),e("node_modules/tinymce/plugins/media/index"),e("node_modules/tinymce/plugins/table/index"),e("node_modules/tinymce/plugins/paste/index"),e("node_modules/tinymce/plugins/help/index"),e("node_modules/tinymce/plugins/wordcount/index"),e("node_modules/tinymce/plugins/hr/index"),e("node_modules/tinymce/plugins/pagebreak/index"),e("node_modules/tinymce/plugins/spellchecker/index"),e("node_modules/tinymce/plugins/visualchars/index"),e("node_modules/tinymce/plugins/template/index"),e("node_modules/tinymce/plugins/nonbreaking/index"),e("node_modules/tinymce/plugins/emoticons/index"),e("node_modules/tinymce/plugins/emoticons/js/emojis");var r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elementRef=o.default.createRef(),t}return n.__extends(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.locale;this.config=n.__assign(n.__assign({inline:!1,skin:!1,content_css:!1,height:400,language:t&&"zh-cn"!==t?"en":"zh_CN",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","table emoticons template paste help"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | help",menu:{file:{title:"File",items:"newdocument restoredraft | preview | print "},edit:{title:"Edit",items:"undo redo | cut copy paste | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen"},insert:{title:"Insert",items:"image link media template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align | forecolor backcolor | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | code wordcount"},table:{title:"Table",items:"inserttable | cell row column | tableprops deletetable"},help:{title:"Help",items:"help"}},paste_data_images:!0},this.props.config),{target:this.elementRef.current,readOnly:this.props.disabled,setup:function(t){e.editor=t,t.on("init",function(n){e.initEditor(n,t)})}}),i.default.init(this.config)},t.prototype.componentDidUpdate=function(e){var t,n=this.props;n.model!==e.model&&n.model!==this.currentContent&&(null===(t=this.editor)||void 0===t?void 0:t.setContent(n.model||""))},t.prototype.componentWillUnmount=function(){i.default.remove(this.editor)},t.prototype.initEditor=function(e,t){var n=this,o=this.props,i=o.model,r=o.onModelChange,l=o.outputFormat,a=o.onFocus,s=o.onBlur,d=i||"";t.setContent(d),r&&t.on("change keyup setcontent",function(){var e=t.getContent({format:l});e!==n.currentContent&&(n.currentContent=e,r(e))}),a&&t.on("focus",a),s&&t.on("blur",s)},t.prototype.render=function(){return o.default.createElement("textarea",{ref:this.elementRef})},t.defaultProps={outputFormat:"html"},t}(o.default.Component);t.default=r,i.default.addI18n("zh_CN",{Redo:"重做",Undo:"撤销",Cut:"剪切",Copy:"复制",Paste:"粘贴","Select all":"全选","New document":"新文件",Ok:"确定",Cancel:"取消","Visual aids":"网格线",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Superscript:"上标",Subscript:"下标","Clear formatting":"清除格式","Align left":"左边对齐","Align center":"中间对齐","Align right":"右边对齐",Justify:"两端对齐","Bullet list":"项目符号","Numbered list":"编号列表","Decrease indent":"减少缩进","Increase indent":"增加缩进",Close:"关闭",Formats:"格式","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"你的浏览器不支持打开剪贴板,请使用Ctrl+X/C/V等快捷键。",Headers:"标题","Header 1":"标题1","Header 2":"标题2","Header 3":"标题3","Header 4":"标题4","Header 5":"标题5","Header 6":"标题6",Headings:"标题","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Heading 5":"标题5","Heading 6":"标题6",Preformatted:"预先格式化的",Div:"Div",Pre:"Pre",Code:"代码",Paragraph:"段落",Blockquote:"引文区块",Inline:"文本",Blocks:"基块","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。",Fonts:"字体","Font Sizes":"字号",Class:"类型","Browse for an image":"浏览图像",OR:"或","Drop an image here":"拖放一张图像至此",Upload:"上传",Block:"块",Align:"对齐",Default:"默认",Circle:"空心圆",Disc:"实心圆",Square:"方块","Lower Alpha":"小写英文字母","Lower Greek":"小写希腊字母","Lower Roman":"小写罗马字母","Upper Alpha":"大写英文字母","Upper Roman":"大写罗马字母","Anchor...":"锚点...",Name:"名称",Id:"标识符","Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"标识符应该以字母开头,后跟字母、数字、破折号、点、冒号或下划线。","You have unsaved changes are you sure you want to navigate away?":"你还有文档尚未保存,确定要离开?","Restore last draft":"恢复上次的草稿","Special character...":"特殊字符...","Source code":"源代码","Insert/Edit code sample":"插入/编辑代码示例",Language:"语言","Code sample...":"示例代码...","Color Picker":"选色器",R:"R",G:"G",B:"B","Left to right":"从左到右","Right to left":"从右到左","Emoticons...":"表情符号...","Metadata and Document Properties":"元数据和文档属性",Title:"标题",Keywords:"关键词",Description:"描述",Robots:"机器人",Author:"作者",Encoding:"编码",Fullscreen:"全屏",Action:"操作",Shortcut:"快捷键",Help:"帮助",Address:"地址","Focus to menubar":"移动焦点到菜单栏","Focus to toolbar":"移动焦点到工具栏","Focus to element path":"移动焦点到元素路径","Focus to contextual toolbar":"移动焦点到上下文菜单","Insert link (if link plugin activated)":"插入链接 (如果链接插件已激活)","Save (if save plugin activated)":"保存(如果保存插件已激活)","Find (if searchreplace plugin activated)":"查找(如果查找替换插件已激活)","Plugins installed ({0}):":"已安装插件 ({0}):","Premium plugins:":"优秀插件:","Learn more...":"了解更多...","You are using {0}":"你正在使用 {0}",Plugins:"插件","Handy Shortcuts":"快捷键","Horizontal line":"水平分割线","Insert/edit image":"插入/编辑图片","Image description":"图片描述",Source:"地址",Dimensions:"大小","Constrain proportions":"保持纵横比",General:"普通",Advanced:"高级",Style:"样式","Vertical space":"垂直边距","Horizontal space":"水平边距",Border:"边框","Insert image":"插入图片","Image...":"图片...","Image list":"图片列表","Rotate counterclockwise":"逆时针旋转","Rotate clockwise":"顺时针旋转","Flip vertically":"垂直翻转","Flip horizontally":"水平翻转","Edit image":"编辑图片","Image options":"图片选项","Zoom in":"放大","Zoom out":"缩小",Crop:"裁剪",Resize:"调整大小",Orientation:"方向",Brightness:"亮度",Sharpen:"锐化",Contrast:"对比度","Color levels":"颜色层次",Gamma:"伽马值",Invert:"反转",Apply:"应用",Back:"后退","Insert date/time":"插入日期/时间","Date/time":"日期/时间","Insert/Edit Link":"插入/编辑链接","Insert/edit link":"插入/编辑链接","Text to display":"显示文字",Url:"地址","Open link in...":"链接打开位置...","Current window":"当前窗口",None:"无","New window":"在新窗口打开","Remove link":"删除链接",Anchors:"锚点","Link...":"链接...","Paste or type a link":"粘贴或输入链接","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"你所填写的URL地址为邮件地址,需要加上mailto:前缀吗?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"你所填写的URL地址属于外部链接,需要加上http://:前缀吗?","Link list":"链接列表","Insert video":"插入视频","Insert/edit video":"插入/编辑视频","Insert/edit media":"插入/编辑媒体","Alternative source":"镜像","Alternative source URL":"替代来源网址","Media poster (Image URL)":"封面(图片地址)","Paste your embed code below:":"将内嵌代码粘贴在下面:",Embed:"内嵌","Media...":"多媒体...","Nonbreaking space":"不间断空格","Page break":"分页符","Paste as text":"粘贴为文本",Preview:"预览","Print...":"打印...",Save:"保存",Find:"查找","Replace with":"替换为",Replace:"替换","Replace all":"全部替换",Previous:"上一个",Next:"下一个","Find and replace...":"查找并替换...","Could not find the specified string.":"未找到搜索内容.","Match case":"区分大小写","Find whole words only":"全字匹配","Spell check":"拼写检查",Ignore:"忽略","Ignore all":"全部忽略",Finish:"完成","Add to Dictionary":"添加到字典","Insert table":"插入表格","Table properties":"表格属性","Delete table":"删除表格",Cell:"单元格",Row:"行",Column:"列","Cell properties":"单元格属性","Merge cells":"合并单元格","Split cell":"拆分单元格","Insert row before":"在上方插入","Insert row after":"在下方插入","Delete row":"删除行","Row properties":"行属性","Cut row":"剪切行","Copy row":"复制行","Paste row before":"粘贴到上方","Paste row after":"粘贴到下方","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cols:"列",Rows:"行",Width:"宽",Height:"高","Cell spacing":"单元格外间距","Cell padding":"单元格内边距","Show caption":"显示标题",Left:"左对齐",Center:"居中",Right:"右对齐","Cell type":"单元格类型",Scope:"范围",Alignment:"对齐方式","H Align":"水平对齐","V Align":"垂直对齐",Top:"顶部对齐",Middle:"垂直居中",Bottom:"底部对齐","Header cell":"表头单元格","Row group":"行组","Column group":"列组","Row type":"行类型",Header:"表头",Body:"表体",Footer:"表尾","Border color":"边框颜色","Insert template...":"插入模板...",Templates:"模板",Template:"模板","Text color":"文字颜色","Background color":"背景色","Custom...":"自定义...","Custom color":"自定义颜色","No color":"无","Remove color":"移除颜色","Table of Contents":"内容列表","Show blocks":"显示区块边框","Show invisible characters":"显示不可见字符","Word count":"字数",Count:"计数",Document:"文档",Selection:"选择",Words:"单词","Words: {0}":"字数:{0}","{0} words":"{0} 字",File:"文件",Edit:"编辑",Insert:"插入",View:"视图",Format:"格式",Table:"表格",Tools:"工具","Powered by {0}":"由{0}驱动","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"在编辑区按ALT-F9打开菜单,按ALT-F10打开工具栏,按ALT-0查看帮助","Image title":"图片标题","Border width":"边框宽度","Border style":"边框样式",Error:"错误",Warn:"警告",Valid:"有效","To open the popup, press Shift+Enter":"按Shitf+Enter键打开对话框","Rich Text Area. Press ALT-0 for help.":"编辑区。按Alt+0键打开帮助。","System Font":"系统字体","Failed to upload image: {0}":"图片上传失败: {0}","Failed to load plugin: {0} from url {1}":"插件加载失败: {0} 来自链接 {1}","Failed to load plugin url: {0}":"插件加载失败 链接: {0}","Failed to initialize plugin: {0}":"插件初始化失败: {0}",example:"示例",Search:"搜索",All:"全部",Currency:"货币",Text:"文字",Quotations:"引用",Mathematical:"数学","Extended Latin":"拉丁语扩充",Symbols:"符号",Arrows:"箭头","User Defined":"自定义","dollar sign":"美元符号","currency sign":"货币符号","euro-currency sign":"欧元符号","colon sign":"冒号","cruzeiro sign":"克鲁赛罗币符号","french franc sign":"法郎符号","lira sign":"里拉符号","mill sign":"密尔符号","naira sign":"奈拉符号","peseta sign":"比塞塔符号","rupee sign":"卢比符号","won sign":"韩元符号","new sheqel sign":"新谢克尔符号","dong sign":"越南盾符号","kip sign":"老挝基普符号","tugrik sign":"图格里克符号","drachma sign":"德拉克马符号","german penny symbol":"德国便士符号","peso sign":"比索符号","guarani sign":"瓜拉尼符号","austral sign":"澳元符号","hryvnia sign":"格里夫尼亚符号","cedi sign":"塞地符号","livre tournois sign":"里弗弗尔符号","spesmilo sign":"spesmilo符号","tenge sign":"坚戈符号","indian rupee sign":"印度卢比","turkish lira sign":"土耳其里拉","nordic mark sign":"北欧马克","manat sign":"马纳特符号","ruble sign":"卢布符号","yen character":"日元字样","yuan character":"人民币元字样","yuan character, in hong kong and taiwan":"元字样(港台地区)","yen/yuan character variant one":"元字样(大写)","Loading emoticons...":"加载表情符号...","Could not load emoticons":"不能加载表情符号",People:"人类","Animals and Nature":"动物和自然","Food and Drink":"食物和饮品",Activity:"活动","Travel and Places":"旅游和地点",Objects:"物件",Flags:"旗帜",Characters:"字符","Characters (no spaces)":"字符(无空格)","{0} characters":"{0} 个字符","Error: Form submit field collision.":"错误: 表单提交字段冲突。","Error: No form element found.":"错误: 没有表单控件。",Update:"更新","Color swatch":"颜色样本",Turquoise:"青绿色",Green:"绿色",Blue:"蓝色",Purple:"紫色","Navy Blue":"海军蓝","Dark Turquoise":"深蓝绿色","Dark Green":"深绿色","Medium Blue":"中蓝色","Medium Purple":"中紫色","Midnight Blue":"深蓝色",Yellow:"黄色",Orange:"橙色",Red:"红色","Light Gray":"浅灰色",Gray:"灰色","Dark Yellow":"暗黄色","Dark Orange":"深橙色","Dark Red":"深红色","Medium Gray":"中灰色","Dark Gray":"深灰色","Light Green":"浅绿色","Light Yellow":"浅黄色","Light Red":"浅红色","Light Purple":"浅紫色","Light Blue":"浅蓝色","Dark Purple":"深紫色","Dark Blue":"深蓝色",Black:"黑色",White:"白色","Switch to or from fullscreen mode":"切换全屏模式","Open help dialog":"打开帮助对话框",history:"历史",styles:"样式",formatting:"格式化",alignment:"对齐",indentation:"缩进","permanent pen":"记号笔",comments:"备注","Format Painter":"格式刷","Insert/edit iframe":"插入/编辑框架",Capitalization:"大写",lowercase:"小写",UPPERCASE:"大写","Title Case":"首字母大写","Permanent Pen Properties":"永久笔属性","Permanent pen properties...":"永久笔属性...",Font:"字体",Size:"字号","More...":"更多...","Spellcheck Language":"拼写检查语言","Select...":"选择...",Preferences:"首选项",Yes:"是",No:"否","Keyboard Navigation":"键盘指引",Version:"版本",Anchor:"锚点","Special character":"特殊符号","Code sample":"代码示例",Color:"颜色",Emoticons:"表情","Document properties":"文档属性",Image:"图片","Insert link":"插入链接",Target:"打开方式",Link:"链接",Poster:"封面",Media:"媒体",Print:"打印",Prev:"上一个","Find and replace":"查找和替换","Whole words":"全字匹配",Spellcheck:"拼写检查",Caption:"标题","Insert template":"插入模板"})}); \ No newline at end of file diff --git a/gh-pages/pkg/tinymce_e04c2eb.js b/gh-pages/pkg/tinymce_e04c2eb.js deleted file mode 100644 index 339fd2d88..000000000 --- a/gh-pages/pkg/tinymce_e04c2eb.js +++ /dev/null @@ -1,146 +0,0 @@ -;/*!node_modules/tinymce/tinymce.js*/ -amis.define("node_modules/tinymce/tinymce",function(e,t,n){!function(e){"use strict";function t(e){for(var t=[],n=1;nt;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;n>t;t++)for(var i=arguments[t],a=0,u=i.length;u>a;a++,o++)r[o]=i[a];return r}function i(t,n){void 0===n&&(n={});var r,o=0,i={};r=n.maxLoadTime||5e3;var a=function(e){n.referrerPolicy=e},u=function(e){t.getElementsByTagName("head")[0].appendChild(e)},c=function(a,c,s){var l,f,d,h,m=function(e){h.status=e,h.passed=[],h.failed=[],l&&(l.onload=null,l.onerror=null,l=null)},g=function(){for(var e=h.passed,t=e.length;t--;)e[t]();m(2)},p=function(){for(var e=h.failed,t=e.length;t--;)e[t]();m(3)},v=function(){var t=e.navigator.userAgent.match(/WebKit\/(\d*)/);return!!(t&&parseInt(t[1],10)<536)},y=function(e,t){e()||((new Date).getTime()-d0)return f=t.createElement("style"),f.textContent='@import "'+a+'"',C(),void u(f);b()}u(l),l.href=a}},s=function(e){return ai.nu(function(t){c(e,F(t,U(di.value(e))),F(t,U(di.error(e))))})},l=function(e){return e.fold(j,j)},f=function(e,t,n){ci(gt(e,s)).get(function(e){var r=yt(e,function(e){return e.isValue()});r.fail.length>0?n(r.fail.map(l)):t(r.pass.map(l))})};return{load:c,loadAll:f,_setReferrerPolicy:a}}function a(e){var t,n,r,o,i,a,u,c,s,l,f,d,h,m={},g={},p=[],v={},y={},b=function(t,n,r){var o=e[t];return o?o=su(o,/[, ]/,su(o.toUpperCase(),/[, ]/)):(o=uu[t],o||(o=su(n," ",su(n.toUpperCase()," ")),o=fu(o,r),uu[t]=o)),o};e=e||{},r=gu(e.schema),e.verify_html===!1&&(e.valid_elements="*[*]"),t=pu(e.valid_styles),n=pu(e.invalid_styles,"map"),c=pu(e.valid_classes,"map"),o=b("whitespace_elements","pre script noscript style textarea video audio iframe object code"),i=b("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),a=b("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),u=b("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),l=b("non_empty_elements","td th iframe video audio object script pre code",a),f=b("move_caret_before_on_enter_elements","table",l),d=b("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),s=b("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",d),h=b("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),lu((e.special||"script noscript noframes noembed title style textarea xmp").split(" "),function(e){y[e]=new RegExp("]*>","gi")});var C=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},w=function(e){var t,n,r,o,i,a,u,c,s,l,f,d,h,g,v,y,b,w,x,E=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,z=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,k=/[*?+]/;if(e)for(e=mu(e,","),m["@"]&&(y=m["@"].attributes,b=m["@"].attributesOrder),t=0,n=e.length;n>t;t++)if(i=E.exec(e[t])){if(g=i[1],s=i[2],v=i[3],c=i[5],d={},h=[],a={attributes:d,attributesOrder:h},"#"===g&&(a.paddEmpty=!0),"-"===g&&(a.removeEmpty=!0),"!"===i[4]&&(a.removeEmptyAttrs=!0),y){for(w in y)d[w]=y[w];h.push.apply(h,b)}if(c)for(c=mu(c,"|"),r=0,o=c.length;o>r;r++)if(i=z.exec(c[r])){if(u={},f=i[1],l=i[2].replace(/[\\:]:/g,":"),g=i[3],x=i[4],"!"===f&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(l),u.required=!0),"-"===f){delete d[l],h.splice(hu(h,l),1);continue}g&&("="===g&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:l,value:x}),u.defaultValue=x),":"===g&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:l,value:x}),u.forcedValue=x),"<"===g&&(u.validValues=su(x,"?"))),k.test(l)?(a.attributePatterns=a.attributePatterns||[],u.pattern=C(l),a.attributePatterns.push(u)):(d[l]||h.push(l),d[l]=u)}y||"@"!==s||(y=d,b=h),v&&(a.outputName=s,m[v]=a),k.test(s)?(a.pattern=C(s),p.push(a)):m[s]=a}},x=function(e){m={},p=[],w(e),lu(r,function(e,t){g[t]=e.children})},E=function(e){var t=/^(~)?(.+)$/;e&&(uu.text_block_elements=uu.block_elements=null,lu(mu(e,","),function(e){var n=t.exec(e),r="~"===n[1],o=r?"span":"div",i=n[2];if(g[i]=g[o],v[i]=o,r||(s[i.toUpperCase()]={},s[i]={}),!m[i]){var a=m[o];a=fu({},a),delete a.removeEmptyAttrs,delete a.removeEmpty,m[i]=a}lu(g,function(e,t){e[o]&&(g[t]=e=fu({},g[t]),e[i]=e[o])})}))},z=function(t){var n=/^([+\-]?)(\w+)\[([^\]]+)\]$/;uu[e.schema]=null,t&&lu(mu(t,","),function(e){var t,r,o=n.exec(e);o&&(r=o[1],t=r?g[o[2]]:g[o[2]]={"#comment":{}},t=g[o[2]],lu(mu(o[3],"|"),function(e){"-"===r?delete t[e]:t[e]={}}))})},k=function(e){var t,n=m[e];if(n)return n;for(t=p.length;t--;)if(n=p[t],n.pattern.test(e))return n};e.valid_elements?x(e.valid_elements):(lu(r,function(e,t){m[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},g[t]=e.children}),"html5"!==e.schema&&lu(mu("strong/b em/i"),function(e){e=mu(e,"/"),m[e[1]].outputName=e[0]}),lu(mu("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(e){m[e]&&(m[e].removeEmpty=!0)}),lu(mu("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(e){m[e].paddEmpty=!0}),lu(mu("span"),function(e){m[e].removeEmptyAttrs=!0})),E(e.custom_elements),z(e.valid_children),w(e.extended_valid_elements),z("+ol[ul|ol],+ul[ul|ol]"),lu({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(e,t){m[t]&&(m[t].parentsRequired=mu(e))}),e.invalid_elements&&lu(du(e.invalid_elements),function(e){m[e]&&delete m[e]}),k("span")||w("span[!data-mce-type|*]");var N=function(){return t},S=function(){return n},T=function(){return c},A=function(){return u},R=function(){return s},B=function(){return d},D=function(){return h},M=function(){return a},_=function(){return i},P=function(){return l},O=function(){return f},H=function(){return o},L=function(){return y},I=function(e,t){var n=g[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},V=function(e,t){var n,r,o=k(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},F=function(){return v};return{children:g,elements:m,getValidStyles:N,getValidClasses:T,getBlockElements:R,getInvalidStyles:S,getShortEndedElements:M,getTextBlockElements:B,getTextInlineElements:D,getBoolAttrs:A,getElementRule:k,getSelfClosingElements:_,getNonEmptyElements:P,getMoveCaretBeforeOnEnterElements:O,getWhiteSpaceElements:H,getSpecialElements:L,isValidChild:I,isValid:V,getCustomElements:F,addValidElements:w,setValidElements:x,addCustomElements:E,addValidChildren:z}}function u(){function e(n,r){return t.push(n+" ")>Ha.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function c(e){return e[Mu]=!0,e}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Uu)-(~e.sourceIndex||Uu);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function l(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function f(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function d(e){return c(function(t){return t=+t,c(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function h(e){return e&&typeof e.getElementsByTagName!==Fu&&e}function m(){}function g(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=Ou++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var u,c,s=[Pu,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if(c=t[Mu]||(t[Mu]={}),(u=c[r])&&u[0]===Pu&&u[1]===i)return s[2]=u[2];if(c[r]=s,s[2]=e(t,n,a))return!0}}}function v(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function y(e,t,n){for(var r=0,o=t.length;o>r;r++)vc(e,t[r],n);return n}function b(e,t,n,r,o){for(var i,a=[],u=0,c=e.length,s=null!=t;c>u;u++)(i=e[u])&&(!n||n(i,r,o))&&(a.push(i),s&&t.push(u));return a}function C(e,t,n,r,o,i){return r&&!r[Mu]&&(r=C(r)),o&&!o[Mu]&&(o=C(o,i)),c(function(i,a,u,c){var s,l,f,d=[],h=[],m=a.length,g=i||y(t||"*",u.nodeType?[u]:u,[]),p=!e||!i&&t?g:b(g,d,e,u,c),v=n?o||(i?e:m||r)?[]:a:p;if(n&&n(p,v,u,c),r)for(s=b(v,h),r(s,[],u,c),l=s.length;l--;)(f=s[l])&&(v[h[l]]=!(p[h[l]]=f));if(i){if(o||e){if(o){for(s=[],l=v.length;l--;)(f=v[l])&&s.push(p[l]=f);o(null,v=[],s,c)}for(l=v.length;l--;)(f=v[l])&&(s=o?Yu.call(i,f):d[l])>-1&&(i[s]=!(a[s]=f))}}else v=b(v===a?v.splice(m,v.length):v),o?o(null,a,v,c):Ku.apply(a,v)})}function w(e){for(var t,n,r,o=e.length,i=Ha.relative[e[0].type],a=i||Ha.relative[" "],u=i?1:0,c=p(function(e){return e===t},a,!0),s=p(function(e){return Yu.call(t,e)>-1},a,!0),l=[function(e,n,r){return!i&&(r||n!==ja)||((t=n).nodeType?c(e,n,r):s(e,n,r))}];o>u;u++)if(n=Ha.relative[e[u].type])l=[p(v(l),n)];else{if(n=Ha.filter[e[u].type].apply(null,e[u].matches),n[Mu]){for(r=++u;o>r&&!Ha.relative[e[r].type];r++);return C(u>1&&v(l),u>1&&g(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(tc,"$1"),n,r>u&&w(e.slice(u,r)),o>r&&w(e=e.slice(r)),o>r&&g(e))}l.push(n)}return v(l)}function x(e,t){var n=t.length>0,r=e.length>0,o=function(o,i,a,u,c){var s,l,f,d=0,h="0",m=o&&[],g=[],p=ja,v=o||r&&Ha.find.TAG("*",c),y=Pu+=null==p?1:Math.random()||.1,C=v.length;for(c&&(ja=i!==Ka&&i);h!==C&&null!=(s=v[h]);h++){if(r&&s){for(l=0;f=e[l++];)if(f(s,i,a)){u.push(s);break}c&&(Pu=y)}n&&((s=!f&&s)&&d--,o&&m.push(s))}if(d+=h,n&&h!==d){for(l=0;f=t[l++];)f(m,g,i,a);if(o){if(d>0)for(;h--;)m[h]||g[h]||(g[h]=$u.call(u));g=b(g)}Ku.apply(u,g),c&&!o&&g.length>0&&d+t.length>1&&vc.uniqueSort(u)}return c&&(Pu=y,ja=p),m};return n?c(o):o}function E(t,n){var r=this;void 0===n&&(n={});var o,u={},c=e.window,s={},l=0,f=!0,d=!0,h=i(t,{contentCssCors:n.contentCssCors,referrerPolicy:n.referrerPolicy}),m=[],g=n.schema?n.schema:a({}),p=Cu({url_converter:n.url_converter,url_converter_scope:n.url_converter_scope},n.schema),v=n.ownEvents?new Du:Du.Event,y=g.getBlockElements(),b=Kc.overrideDefaults(function(){return{context:t,element:Dt.getRoot()}}),C=function(e){if("string"==typeof e)return!!y[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!y[e.nodeName])}return!1},w=function(e){if(e&&t&&"string"==typeof e){var n=t.getElementById(e);return n&&n.id!==e?t.getElementsByName(e)[1]:n}return e},x=function(e){return"string"==typeof e&&(e=w(e)),b(e)},z=function(e,t,n){var r,i,a=x(e);return a.length&&(r=o[t],i=r&&r.get?r.get(a,t):a.attr(t)),"undefined"==typeof i&&(i=n||""),i},k=function(e){var t=w(e);return t?t.attributes:[]},N=function(e,t,r){var i,a;""===r&&(r=null);var u=x(e);i=u.attr(t),u.length&&(a=o[t],a&&a.set?a.set(u,r,t):u.attr(t,r),i!==r&&n.onSetAttrib&&n.onSetAttrib({attrElm:u,attrName:t,attrValue:r}))},S=function(e,n){if(!Zc||1!==e.nodeType||n)return e.cloneNode(n);if(!n){var r=t.createElement(e.nodeName);return Yc(k(e),function(t){N(r,t.nodeName,z(e,t.nodeName))}),r}return null},T=function(){return n.root_element||t.body},A=function(e){var t=oo(e);return{x:t.x(),y:t.y(),w:t.width(),h:t.height()}},R=function(e,n){return $o.getPos(t.body,w(e),n)},B=function(e,t,r){var o=tt(t)?x(e).css(t,r):x(e).css(t);n.update_styles&&ts(p,o)},D=function(e,t){var r=x(e).css(t);n.update_styles&&ts(p,r)},M=function(e,t,n){var r=x(e);return n?r.css(t):(t=t.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}),"float"===t&&(t=Ri.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},_=function(e){var t,n;return e=w(e),t=M(e,"width"),n=M(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},P=function(e){var t,n;return e=w(e),t=R(e),n=_(e),{x:t.x,y:t.y,w:n.w,h:n.h}},O=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Jc.test(t)){var r=t.toLowerCase().split(/,/),o=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===o)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var i=Array.isArray(e)?e:[e];return vc(t,i[0].ownerDocument||i[0],null,i).length>0},H=function(e,t,n,r){var o,i=[],a=w(e);for(r=void 0===r,n=n||("BODY"!==T().nodeName?T().parentNode:null),ea.is(t,"string")&&(o=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return O(e,o)});a&&a!==n&&a.nodeType&&9!==a.nodeType;){if(!t||"function"==typeof t&&t(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},L=function(e,t,n){var r=H(e,t,n,!1);return r&&r.length>0?r[0]:null},I=function(e,t,n){var r=t;if(e)for("string"==typeof t&&(r=function(e){return O(e,t)}),e=e[n];e;e=e[n])if("function"==typeof r&&r(e))return e;return null},V=function(e,t){return I(e,t,"nextSibling")},F=function(e,t){return I(e,t,"previousSibling")},U=function(e,r){return vc(e,w(r)||n.root_element||t,[])},j=function(e,t,n){var o,i="string"==typeof e?w(e):e;if(!i)return!1;if(ea.isArray(i)&&(i.length||0===i.length))return o=[],Yc(i,function(e,r){e&&("string"==typeof e&&(e=w(e)),o.push(t.call(n,e,r)))}),o;var a=n?n:r;return t.call(a,i)},q=function(e,t){x(e).each(function(e,n){Yc(t,function(e,t){N(n,t,e)})})},$=function(e,t){var n=x(e);Zc?n.each(function(e,n){if(n.canHaveHTML!==!1){for(;n.firstChild;)n.removeChild(n.firstChild);try{n.innerHTML="
    "+t,n.removeChild(n.firstChild)}catch(r){Kc("
    ").html("
    "+t).contents().slice(1).appendTo(n)}return t}}):n.html(t)},W=function(e,n,r,o,i){return j(e,function(e){var a="string"==typeof n?t.createElement(n):n;return q(a,r),o&&("string"!=typeof o&&o.nodeType?a.appendChild(o):"string"==typeof o&&$(a,o)),i?a:e.appendChild(a)})},K=function(e,n,r){return W(t.createElement(e),e,n,r,!0)},X=au.decode,Y=au.encodeAllRaw,G=function(e,t,n){var r,o="";o+="<"+e;for(r in t)t.hasOwnProperty(r)&&null!==t[r]&&"undefined"!=typeof t[r]&&(o+=" "+r+'="'+Y(t[r])+'"');return"undefined"!=typeof n?o+">"+n+"":o+" />"},Z=function(e){var n,r=t.createElement("div"),o=t.createDocumentFragment();for(o.appendChild(r),e&&(r.innerHTML=e);n=r.firstChild;)o.appendChild(n);return o.removeChild(r),o},J=function(e,t){var n=x(e);return t?n.each(function(){for(var e;e=this.firstChild;)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)}).remove():n.remove(),n.length>1?n.toArray():n[0]},Q=function(e){return j(e,function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))})},et=function(e){return p.parse(e)},nt=function(e,t){return p.serialize(e,t)},rt=function(n){var r,o;if(Dt!==E.DOM&&t===e.document){if(u[n])return;u[n]=!0}o=t.getElementById("mceDefaultStyles"),o||(o=t.createElement("style"),o.id="mceDefaultStyles",o.type="text/css",r=t.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o)),o.styleSheet?o.styleSheet.cssText+=n:o.appendChild(t.createTextNode(n))},ot=function(r){var o;return Dt!==E.DOM&&t===e.document?void E.DOM.loadCSS(r):(r||(r=""),o=t.getElementsByTagName("head")[0],void Yc(r.split(","),function(e){var t;e=ea._addCacheSuffix(e),s[e]||(s[e]=!0,t=K("link",$t($t({rel:"stylesheet",type:"text/css",href:e},n.contentCssCors?{crossOrigin:"anonymous"}:{}),n.referrerPolicy?{referrerPolicy:n.referrerPolicy}:{})),o.appendChild(t))}))},it=function(e,t,n){x(e).toggleClass(t,n).each(function(){""===this.className&&Kc(this).attr("class",null)})},at=function(e,t){x(e).addClass(t)},ut=function(e,t){it(e,t,!1)},ct=function(e,t){return x(e).hasClass(t)},st=function(e){x(e).show()},lt=function(e){x(e).hide()},ft=function(e){return"none"===x(e).css("display")},dt=function(e){return(e?e:"mce_")+l++},ht=function(e){var t="string"==typeof e?w(e):e;return No.isElement(t)?t.outerHTML:Kc("
    ").append(Kc(t).clone()).html()},mt=function(e,t){x(e).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}J(Kc(this).html(t),!0)})},gt=function(e,t){var n=w(t);return j(e,function(e){var t,r;return t=n.parentNode,r=n.nextSibling,r?t.insertBefore(e,r):t.appendChild(e),e})},pt=function(e,t,n){return j(t,function(t){return ea.is(t,"array")&&(e=e.cloneNode(!0)),n&&Yc(Gc(t.childNodes),function(t){e.appendChild(t)}),t.parentNode.replaceChild(e,t)})},vt=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=K(t),Yc(k(e),function(t){N(n,t.nodeName,z(e,t.nodeName))}),pt(n,e,!0)),n||e},yt=function(e,t){for(var n,r=e;r;){for(n=t;n&&r!==n;)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},bt=function(e){return p.toHex(ea.trim(e))},Ct=function(e){if(No.isElement(e)){var t="a"===e.nodeName.toLowerCase()&&!z(e,"href")&&z(e,"id");if(z(e,"name")||z(e,"data-mce-bookmark")||t)return!0}return!1},wt=function(e,t){var n,r,o=0;if(Ct(e))return!1;if(e=e.firstChild){var i=new Xc(e,e.parentNode),a=g?g.getWhiteSpaceElements():{};t=t||(g?g.getNonEmptyElements():null);do{if(n=e.nodeType,No.isElement(e)){var u=e.getAttribute("data-mce-bogus");if(u){e=i.next("all"===u);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"===r){o++,e=i.next();continue}return!1}if(Ct(e))return!1}if(8===n)return!1;if(3===n&&!Qc.test(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Qc.test(e.nodeValue))return!1;e=i.next()}while(e)}return 1>=o},xt=function(){return t.createRange()},Et=function(e,t,n){var r,o,i,a=xt();return e&&t?(a.setStart(e.parentNode,ns(e)),a.setEnd(t.parentNode,ns(t)),r=a.extractContents(),a=xt(),a.setStart(t.parentNode,ns(t)+1),a.setEnd(e.parentNode,ns(e)+1),o=a.extractContents(),i=e.parentNode,i.insertBefore(Na.trimNode(Dt,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(Na.trimNode(Dt,o),e),J(e),n||t):void 0},zt=function(e,r,o,i){if(ea.isArray(e)){for(var a=e.length,u=[];a--;)u[a]=zt(e[a],r,o,i);return u}return!n.collect||e!==t&&e!==c||m.push([e,r,o,i]),v.bind(e,r,o,i||Dt)},kt=function(e,n,r){var o;if(ea.isArray(e)){o=e.length;for(var i=[];o--;)i[o]=kt(e[o],n,r);return i}if(m&&(e===t||e===c))for(o=m.length;o--;){var a=m[o];e!==a[0]||n&&n!==a[1]||r&&r!==a[2]||v.unbind(a[0],a[1],a[2])}return v.unbind(e,n,r)},Nt=function(e,t,n){return v.fire(e,t,n)},St=function(e){if(e&&No.isElement(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Tt=function(e){for(var t=T(),n=null;e&&e!==t&&(n=St(e),null===n);e=e.parentNode);return n},At=function(){if(m)for(var e=m.length;e--;){var t=m[e];v.unbind(t[0],t[1],t[2])}vc.setDocument&&vc.setDocument()},Rt=function(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},Bt=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},Dt={doc:t,settings:n,win:c,files:s,stdMode:f,boxModel:d,styleSheetLoader:h,boundEvents:m,styles:p,schema:g,events:v,isBlock:C,$:b,$$:x,root:null,clone:S,getRoot:T,getViewPort:A,getRect:P,getSize:_,getParent:L,getParents:H,get:w,getNext:V,getPrev:F,select:U,is:O,add:W,create:K,createHTML:G,createFragment:Z,remove:J,setStyle:B,getStyle:M,setStyles:D,removeAllAttribs:Q,setAttrib:N,setAttribs:q,getAttrib:z,getPos:R,parseStyle:et,serializeStyle:nt,addStyle:rt,loadCSS:ot,addClass:at,removeClass:ut,hasClass:ct,toggleClass:it,show:st,hide:lt,isHidden:ft,uniqueId:dt,setHTML:$,getOuterHTML:ht,setOuterHTML:mt,decode:X,encode:Y,insertAfter:gt,replace:pt,rename:vt,findCommonAncestor:yt,toHex:bt,run:j,getAttribs:k,isEmpty:wt,createRng:xt,nodeIndex:ns,split:Et,bind:zt,unbind:kt,fire:Nt,getContentEditable:St,getContentEditableParent:Tt,destroy:At,isChildOf:Rt,dumpRng:Bt};return o=es(p,n,function(){return Dt}),Dt}function z(){var e=this,t=[],n={},r={},o=[],i=function(e,t){var n=bt(o,function(n){return n.name===e&&n.state===t});pt(n,function(e){return e.callback()})},a=function(e){return r[e]?r[e].instance:void 0},u=function(e){var t;return r[e]&&(t=r[e].dependencies),t||[]},c=function(e,t){z.languageLoad!==!1&&g(e,function(){var r=zs.getCode(),o=","+(t||"")+",";!r||t&&-1===o.indexOf(","+r+",")||fs.ScriptLoader.add(n[e]+"/langs/"+r+".js")},"loaded")},s=function(e,n,o){var a=n;return t.push(a),r[e]={instance:a,dependencies:o},i(e,"added"),a},l=function(e){delete n[e],delete r[e]},f=function(e,t){return"object"==typeof t?t:"string"==typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},d=function(t,n){var r=e.urls[t];pt(n,function(e){fs.ScriptLoader.add(r+"/"+e)})},h=function(e,t,n,r){var o=u(e);pt(o,function(e){var n=f(t,e);m(n.resource,n,void 0,void 0)}),n&&n.call(r?r:fs)},m=function(e,t,o,a,u){if(!n[e]){var c="string"==typeof t?t:t.prefix+t.resource+t.suffix;0!==c.indexOf("/")&&-1===c.indexOf("://")&&(c=z.baseURL+"/"+c),n[e]=c.substring(0,c.lastIndexOf("/"));var s=function(){i(e,"loaded"),h(e,t,o,a)};r[e]?s():fs.ScriptLoader.add(c,s,a,u)}},g=function(e,t,i){void 0===i&&(i="added"),qt(r,e)&&"added"===i?t():qt(n,e)&&"loaded"===i?t():o.push({name:e,state:i,callback:t})};return{items:t,urls:n,lookup:r,_listeners:o,get:a,dependencies:u,requireLangPack:c,add:s,remove:l,createUrl:f,addComponents:d,load:m,waitFor:g}}function k(e,t,n,r,o){return e(n,r)?J.some(n):at(o)&&o(n)?J.none():t(n,r,o)}function N(e,t,n){var r=function(){return yf(e)?0===t:0===t},o=function(){return yf(e)?t>=e.data.length:t>=e.childNodes.length},i=function(){var n;return n=xf(e.ownerDocument),n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=Bf(N(e,t))),n},u=function(){return a().length>0},c=function(n){return n&&e===n.container()&&t===n.offset()},s=function(n){return wf(e,n?t-1:t)};return{container:U(e),offset:U(t),toRange:i,getClientRects:a,isVisible:u,isAtStart:r,isAtEnd:o,isEqual:c,getNode:s}}function S(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?J.from(t.dom().nodeValue):J.none()},o=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom().nodeValue=r};return{get:n,getOption:r,set:o}}function T(e,t){void 0===t&&(t=a());var n=function(){};e=e||{},e.fix_self_closing!==!1&&(e.fix_self_closing=!0);var r=e.comment?e.comment:n,o=e.cdata?e.cdata:n,i=e.text?e.text:n,u=e.start?e.start:n,c=e.end?e.end:n,s=e.pi?e.pi:n,l=e.doctype?e.doctype:n,f=function(n,a){void 0===a&&(a="html");var f,d,h,m,g,p,v,y,b,C,w,x,E,z,k,N,S,T,A,R,B,D,M,_,P,O,H,L,I,V,F=0,U=[],j=0,q=au.decode,$=ea.makeMap("src,href,data,background,formaction,poster,xlink:href"),W=/((java|vb)script|mhtml):/i,K="html"===a?0:1,X=function(e){var t,n;for(t=U.length;t--&&U[t].name!==e;);if(t>=0){for(n=U.length-1;n>=t;n--)e=U[n],e.valid&&c(e.name);U.length=t}},Y=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),r(t))},G=function(e,t){var r=e||"",o=!Pn(r,"--"),i=Gg(n,o,t);return e=n.substr(t,i-t),Y(o?r+e:e),i+1},Z=function(t,n,r,o,i){var a,u,c=/[\s\u0000-\u001F]+/g;if(n=n.toLowerCase(),r=n in w?n:q(r||o||i||""),E&&!y&&Wg(n)===!1){if(a=T[n],!a&&A){for(u=A.length;u--&&(a=A[u],!a.pattern.test(n)););-1===u&&(a=null)}if(!a)return;if(a.validValues&&!(r in a.validValues))return}if($[n]&&!e.allow_script_urls){var s=r.replace(c,"");try{s=decodeURIComponent(s)}catch(l){s=unescape(s)}if(W.test(s))return;if(Kg(e,s))return}y&&(n in $||0===n.indexOf("on"))||(m.map[n]=r,m.push({name:n,value:r}))};for(O=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),H=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,C=t.getShortEndedElements(),P=e.self_closing_elements||t.getSelfClosingElements(),w=t.getBoolAttrs(),E=e.validate,b=e.remove_internals,V=e.fix_self_closing,L=t.getSpecialElements(),M=n+">";f=O.exec(M);){var J=f[0];if(Fn.length){i(q(n.substr(f.index))),F=f.index+J.length;continue}d=d.toLowerCase(),":"===d.charAt(0)&&(d=d.substr(1)),x=d in C,V&&P[d]&&U.length>0&&U[U.length-1].name===d&&X(d);var Q=Zg(H,f[9]);if(null!==Q){if("all"===Q){F=Xg(t,n,O.lastIndex),O.lastIndex=F;continue}k=!1}if(!E||(z=t.getElementRule(d))){if(k=!0,E&&(T=z.attributes,A=z.attributePatterns),(S=f[9])?(y=-1!==S.indexOf("data-mce-type"),y&&b&&(k=!1),m=[],m.map={},S.replace(H,Z)):(m=[],m.map={}),E&&!y){if(R=z.attributesRequired,B=z.attributesDefault,D=z.attributesForced,_=z.removeEmptyAttrs,_&&!m.length&&(k=!1),D)for(g=D.length;g--;)N=D[g],v=N.name,I=N.value,"{$uid}"===I&&(I="mce_"+j++),m.map[v]=I,m.push({name:v,value:I});if(B)for(g=B.length;g--;)N=B[g],v=N.name,v in m.map||(I=N.value,"{$uid}"===I&&(I="mce_"+j++),m.map[v]=I,m.push({name:v,value:I}));if(R){for(g=R.length;g--&&!(R[g]in m.map););-1===g&&(k=!1)}if(N=m.map["data-mce-bogus"]){if("all"===N){F=Xg(t,n,O.lastIndex),O.lastIndex=F;continue}k=!1}}k&&u(d,m,x)}else k=!1;if(h=L[d]){h.lastIndex=F=f.index+J.length,(f=h.exec(n))?(k&&(p=n.substr(F,f.index-F)),F=f.index+f[0].length):(p=n.substr(F),F=n.length),k&&(p.length>0&&i(p,!0),c(d)),O.lastIndex=F;continue}x||(S&&S.indexOf("/")===S.length-1?k&&c(d):U.push({name:d,valid:k}))}else if(d=f[1])Y(d);else if(d=f[2]){var et=1===K||e.preserve_cdata||U.length>0&&t.isValidChild(U[U.length-1].name,"#cdata");if(!et){F=G("",f.index+2),O.lastIndex=F;continue}o(d)}else if(d=f[3])l(d);else{if((d=f[4])||"=0;g--)d=U[g],d.valid&&c(d.name)};return{parse:f}}function A(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}}function R(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():A()},r=function(){return J.from(t[0])},o=function(e,t){return!(e.type!==t.type||e.text!==t.text||e.progressBar||e.timeout||t.progressBar||t.timeout)},i=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},u=function(e){Et(t,function(t){return t===e}).each(function(e){t.splice(e,1)})},c=function(r){return!e.removed&&Yy.isEditorAttachedToDom(e)?xt(t,function(e){return o(n().getArgs(e),r)}).getOrThunk(function(){e.editorManager.setActive(e);var t=n().open(r,function(){u(t),i()});return a(t),i(),t}):void 0},s=function(){r().each(function(e){n().close(e),u(e),i()})},l=function(){return t},f=function(e){e.on("SkinLoaded",function(){var t=e.settings.service_message;t&&c({text:t,type:"warning",timeout:0})}),e.on("ResizeEditor ResizeWindow NodeChange",function(){wi.requestAnimationFrame(i)}),e.on("remove",function(){pt(t.slice(),function(e){n().close(e)})})};return f(e),{open:c,close:s,getNotifications:l}}function B(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}function D(e){return{getBookmark:t(Km.getBookmark,e),moveToBookmark:t(Km.moveToBookmark,e)}}function M(e,t){var n=function(t,n){if(!ut(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom();So(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(0>=r||null===r){var o=Po(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return wt(t,function(t,n){var r=Po(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o},0)},a=function(e,t,n){var r=i(e,n),o=t>r?t-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}}function _(e,t){var n,r;return{selectorChangedWithUnbind:function(o,i){return n||(n={},r={},t.on("NodeChange",function(t){var o=t.element,i=e.getParents(o,null,e.getRoot()),a={};ea.each(n,function(t,n){ea.each(i,function(o){return e.is(o,n)?(r[n]||(ea.each(t,function(e){e(!0,{node:o,selector:n,parents:i})}),r[n]=t),a[n]=t,!1):void 0})}),ea.each(r,function(e,t){a[t]||(delete r[t],ea.each(e,function(e){e(!1,{node:o,selector:t,parents:i})}))})})),n[o]||(n[o]=[]),n[o].push(i),{unbind:function(){Ow(n,o,i),Ow(r,o,i)}}}}}function P(e,t){var n={},r=function(r,o){var i;o||(o=U(!0)),i=bt(Ax(r),function(t){var n=t.src;return Ri.fileApi?t.hasAttribute("data-mce-bogus")?!1:t.hasAttribute("data-mce-placeholder")?!1:n&&n!==Ri.transparentSrc?0===n.indexOf("blob:")?!e.isUploaded(n)&&o(t):0===n.indexOf("data:")?o(t):!1:!1:!1});var a=gt(i,function(e){if(n[e.src])return new mi(function(t){n[e.src].then(function(n){return"string"==typeof n?n:void t({image:e,blobInfo:n.blobInfo})})});var r=new mi(function(n,r){Tx(t,e,n,r)}).then(function(e){return delete n[e.image.src],e}).catch(function(t){return delete n[e.src],t});return n[e.src]=r,r});return mi.all(a)};return{findAll:r}}function O(t,n){var r={},o=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},i=function(t,r,i,a){var u,c;u=new e.XMLHttpRequest,u.open("POST",n.url),u.withCredentials=n.credentials,u.upload.onprogress=function(e){a(e.loaded/e.total*100)},u.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+u.status)},u.onload=function(){var e;return u.status<200||u.status>=300?void i("HTTP Error: "+u.status):(e=JSON.parse(u.responseText),e&&"string"==typeof e.location?void r(o(n.basePath,e.location)):void i("Invalid JSON: "+u.responseText))},c=new e.FormData,c.append("file",t.blob(),t.filename()),u.send(c)},a=function(){return new mi(function(e){e([])})},u=function(e,t){return{url:t,blobInfo:e,status:!0}},c=function(e,t){return{url:"",blobInfo:e,status:!1,error:t}},s=function(e,t){ea.each(r[e],function(e){e(t)}),delete r[e]},l=function(e,n,r){return t.markPending(e.blobUri()),new mi(function(o){var i,a,l=function(){};try{var f=function(){i&&(i.close(),a=l)},d=function(n){f(),t.markUploaded(e.blobUri(),n),s(e.blobUri(),u(e,n)),o(u(e,n))},h=function(n){f(),t.removeFailed(e.blobUri()),s(e.blobUri(),c(e,n)),o(c(e,n))};a=function(e){0>e||e>100||(i||(i=r()),i.progressBar.value(e))},n(e,d,h,a)}catch(m){o(c(e,m.message))}})},f=function(e){return e===i},d=function(e){var t=e.blobUri();return new mi(function(e){r[t]=r[t]||[],r[t].push(e)})},h=function(e,r){return e=ea.grep(e,function(e){return!t.isUploaded(e.blobUri()) -}),mi.all(ea.map(e,function(e){return t.isPending(e.blobUri())?d(e):l(e,n.handler,r)}))},m=function(e,t){return!n.url&&f(n.handler)?a():h(e,t)};return at(n.handler)===!1&&(n.handler=i),{upload:m}}function H(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},o=function(e){return e in n},i=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return o(t)?n[t].status===e:!1},u=function(e){return o(e)?n[e].status===t:!1},c=function(t){n[t]=r(e,null)},s=function(e,o){n[e]=r(t,o)},l=function(e){delete n[e]},f=function(){n={}};return{hasBlobUri:o,getResultUri:i,isPending:a,isUploaded:u,markPending:c,markUploaded:s,removeFailed:l,destroy:f}}function L(e){var t={},n=function(e){return e?t[e]:t},r=function(e){return qt(t,e)},o=function(e,n){e&&("string"!=typeof e?ea.each(e,function(e,t){o(t,e)}):(rt(n)||(n=[n]),ea.each(n,function(e){"undefined"==typeof e.deep&&(e.deep=!e.selector),"undefined"==typeof e.split&&(e.split=!e.selector||e.inline),"undefined"==typeof e.remove&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"==typeof e.classes&&(e.classes=e.classes.split(/\s+/))}),t[e]=n))},i=function(e){return e&&t[e]&&delete t[e],t};return o(nk.get(e.dom)),o(e.settings.formats),{get:n,has:r,register:o,unregister:i}}function I(e){var t=function(t,n){return Rg.walk(e,t,n)},n=Qx,r=function(t){return xw.normalize(e,t).fold(U(!1),function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0})};return{walk:t,split:n,normalize:r}}var V=function(){},F=function(e,t){return function(){for(var n=[],r=0;r-1},mt=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return!0}return!1},gt=function(e,t){for(var n=e.length,r=new Array(n),o=0;n>o;o++){var i=e[o];r[o]=t(i,o)}return r},pt=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];t(o,n)}},vt=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},yt=function(e,t){for(var n=[],r=[],o=0,i=e.length;i>o;o++){var a=e[o],u=t(a,o)?n:r;u.push(a)}return{pass:n,fail:r}},bt=function(e,t){for(var n=[],r=0,o=e.length;o>r;r++){var i=e[r];t(i,r)&&n.push(i)}return n},Ct=function(e,t,n){return vt(e,function(e){n=t(n,e)}),n},wt=function(e,t,n){return pt(e,function(e){n=t(n,e)}),n},xt=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return J.some(o)}return J.none()},Et=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return J.some(n)}return J.none()},zt=function(e){for(var t=[],n=0,r=e.length;r>n;++n){if(!rt(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);lt.apply(t,e[n])}return t},kt=function(e,t){return zt(gt(e,t))},Nt=function(e,t){for(var n=0,r=e.length;r>n;++n){var o=e[n];if(t(o,n)!==!0)return!1}return!0},St=function(e){var t=ct.call(e,0);return t.reverse(),t},Tt=function(e,t){return bt(e,function(e){return!ht(t,e)})},At=function(e,t){for(var n={},r=0,o=e.length;o>r;r++){var i=e[r];n[String(i)]=t(i,r)}return n},Rt=function(e,t){var n=ct.call(e,0);return n.sort(t),n},Bt=function(e){return 0===e.length?J.none():J.some(e[0])},Dt=function(e){return 0===e.length?J.none():J.some(e[e.length-1])},Mt=at(Array.from)?Array.from:function(e){return ct.call(e)},_t=Object.keys,Pt=Object.hasOwnProperty,Ot=function(e,t){for(var n=_t(e),r=0,o=n.length;o>r;r++){var i=n[r],a=e[i];t(a,i)}},Ht=function(e,t){return Lt(e,function(e,n){return{k:n,v:t(e,n)}})},Lt=function(e,t){var n={};return Ot(e,function(e,r){var o=t(e,r);n[o.k]=o.v}),n},It=function(e){return function(t,n){e[n]=t}},Vt=function(e,t,n,r){var o={};return Ot(e,function(e,o){(t(e,o)?n:r)(e,o)}),o},Ft=function(e,t){var n={},r={};return Vt(e,t,It(n),It(r)),{t:n,f:r}},Ut=function(e,t){var n={};return Vt(e,t,It(n),V),n},jt=function(e,t){return qt(e,t)?J.from(e[t]):J.none()},qt=function(e,t){return Pt.call(e,t)},$t=function(){return $t=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$t.apply(this,arguments)},Wt=function(t,n){var r=n||e.document,o=r.createElement("div");if(o.innerHTML=t,!o.hasChildNodes()||o.childNodes.length>1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Yt(o.childNodes[0])},Kt=function(t,n){var r=n||e.document,o=r.createElement(t);return Yt(o)},Xt=function(t,n){var r=n||e.document,o=r.createTextNode(t);return Yt(o)},Yt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:U(e)}},Gt=function(e,t,n){var r=e.dom();return J.from(r.elementFromPoint(t,n)).map(Yt)},Zt={fromHtml:Wt,fromTag:Kt,fromText:Xt,fromDom:Yt,fromPoint:Gt},Jt=function(e){var t=e,n=function(){return t},r=function(e){t=e},o=function(){return Jt(n())};return{get:n,set:r,clone:o}},Qt=function(e,t){for(var n=0;n0&&Pr(e,t),Lr(e)},Vr=("undefined"!=typeof e.window?e.window:Function("return this;")(),function(e){var t=e.dom().nodeName;return t.toLowerCase()}),Fr=function(e){return e.dom().nodeType},Ur=function(e){return function(t){return Fr(t)===e}},jr=Ur(rr),qr=Ur(or),$r=function(e){var t=qr(e)?e.dom().parentNode:e.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)},Wr=function(e,t){var n=function(n,r){return Wr(e+n,t+r)};return{left:U(e),top:U(t),translate:n}},Kr=Wr,Xr=function(e){var t=e.getBoundingClientRect();return Kr(t.left,t.top)},Yr=function(e,t){return void 0!==e?e:void 0!==t?t:0},Gr=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom())return Kr(n.offsetLeft,n.offsetTop);var i=Yr(r.pageYOffset,o.scrollTop),a=Yr(r.pageXOffset,o.scrollLeft),u=Yr(o.clientTop,n.clientTop),c=Yr(o.clientLeft,n.clientLeft);return Zr(e).translate(a-c,i-u)},Zr=function(e){var t=e.dom(),n=t.ownerDocument,r=n.body;return r===t?Kr(r.offsetLeft,r.offsetTop):$r(e)?Xr(t):Kr(0,0)},Jr=Xn().browser.isSafari(),Qr=function(t){var n=void 0!==t?t.dom():e.document,r=n.body.scrollLeft||n.documentElement.scrollLeft,o=n.body.scrollTop||n.documentElement.scrollTop;return Kr(r,o)},eo=function(t,n,r){var o=void 0!==r?r.dom():e.document,i=o.defaultView;i.scrollTo(t,n)},to=function(e,t){Jr&&at(e.dom().scrollIntoViewIfNeeded)?e.dom().scrollIntoViewIfNeeded(!1):e.dom().scrollIntoView(t)},no=function(t){var n=void 0===t?e.window:t;return J.from(n.visualViewport)},ro=function(e,t,n,r){return{x:U(e),y:U(t),width:U(n),height:U(r),right:U(e+n),bottom:U(t+r)}},oo=function(t){var n=void 0===t?e.window:t,r=n.document,o=Qr(Zt.fromDom(r));return no(n).fold(function(){var e=n.document.documentElement,t=e.clientWidth,r=e.clientHeight;return ro(o.left(),o.top(),t,r)},function(e){return ro(Math.max(e.pageLeft,o.left()),Math.max(e.pageTop,o.top()),e.width,e.height)})},io=function(e){return function(t){return!!t&&t.nodeType===e}},ao=function(e){return!!e&&!Object.getPrototypeOf(e)},uo=io(1),co=function(e){var t=e.map(function(e){return e.toLowerCase()});return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return ht(t,n)}return!1}},so=function(e,t){var n=t.toLowerCase().split(" ");return function(t){var r,o;if(uo(t))for(r=0;r0})},Lo=function(e){var t={},n=e.dom();if(So(n))for(var r=0;r=n?-o:0})}).getOr(0):0},jo=function(e,t){return e.children&&ht(e.children,t)},qo=function(e,t,n){var r,o,i=0,a=0,u=e.ownerDocument;if(n=n?n:e,t){if(n===e&&t.getBoundingClientRect&&"static"===Po(Zt.fromDom(e),"position"))return o=t.getBoundingClientRect(),i=o.left+(u.documentElement.scrollLeft||e.scrollLeft)-u.documentElement.clientLeft,a=o.top+(u.documentElement.scrollTop||e.scrollTop)-u.documentElement.clientTop,{x:i,y:a};for(r=t;r&&r!==n&&r.nodeType&&!jo(r,n);)i+=r.offsetLeft||0,a+=r.offsetTop||0,r=r.offsetParent;for(r=t.parentNode;r&&r!==n&&r.nodeType&&!jo(r,n);)i-=r.scrollLeft||0,a-=r.scrollTop||0,r=r.parentNode;a+=Uo(Zt.fromDom(t))}return{x:i,y:a}},$o={getPos:qo},Wo={},Ko={exports:Wo};!function(e,t,n,r){!function(r){if("object"==typeof t&&"undefined"!=typeof n)n.exports=r();else if("function"==typeof e&&e.amd)e([],r);else{var o;o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,o.EphoxContactWrapper=r()}}(function(){return function(){function e(t,n,o){function i(u,c){if(!n[u]){if(!t[u]){var s="function"==typeof r&&r;if(!c&&s)return s(u,!0);if(a)return a(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[u]={exports:{}};t[u][0].call(f.exports,function(e){var n=t[u][1][e];return i(n||e)},f,f.exports,e,t,n,o)}return n[u].exports}for(var a="function"==typeof r&&r,u=0;u1)for(var n=1;nt;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e(function(e){n||(n=!0,u(t,e))},function(e){n||(n=!0,c(t,e))})}catch(r){if(n)return;n=!0,c(t,r)}}var d=setTimeout;i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i(function(e,n){function r(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,function(e){r(i,e)},n)}t[i]=a,0===--o&&e(t)}catch(c){n(c)}}if(0===t.length)return e([]);for(var o=t.length,i=0;ir;r++)e[r].then(t,n)})},i._immediateFn="function"==typeof e?function(t){e(t)}:function(e){d(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},"undefined"!=typeof t&&t.exports?t.exports=i:n.Promise||(n.Promise=i)}(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){function o(e,t){this._id=e,this._clearFn=t}var i=e("process/browser.js").nextTick,a=Function.prototype.apply,u=Array.prototype.slice,c={},s=0;n.setTimeout=function(){return new o(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new o(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n.setImmediate="function"==typeof t?t:function(e){var t=s++,r=arguments.length<2?!1:u.call(arguments,1);return c[t]=!0,i(function(){c[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))}),t},n.clearImmediate="function"==typeof r?r:function(e){delete c[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t){var n=e("promise-polyfill"),r=function(){return"undefined"!=typeof window?window:Function("return this;")()}();t.exports={boltExport:r.Promise||n}},{"promise-polyfill":2}]},{},[4])(4)})}(void 0,Wo,Ko,void 0);var Xo,Yo,Go,Zo,Jo=Ko.exports.boltExport,Qo=function(t){var n=J.none(),r=[],o=function(e){return Qo(function(t){i(function(n){t(e(n))})})},i=function(e){u()?s(e):r.push(e)},a=function(e){n=J.some(e),c(r),r=[]},u=function(){return n.isSome()},c=function(e){pt(e,s)},s=function(t){n.each(function(n){e.setTimeout(function(){t(n)},0)})};return t(a),{get:i,map:o,isReady:u}},ei=function(e){return Qo(function(t){t(e)})},ti={nu:Qo,pure:ei},ni=function(t){e.setTimeout(function(){throw t},0)},ri=function(e){var t=function(t){e().then(t,ni)},n=function(t){return ri(function(){return e().then(t)})},r=function(t){return ri(function(){return e().then(function(e){return t(e).toPromise()})})},o=function(t){return ri(function(){return e().then(function(){return t.toPromise()})})},i=function(){return ti.nu(t)},a=function(){var t=null;return ri(function(){return null===t&&(t=e()),t})},u=e;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:u,get:t}},oi=function(e){return ri(function(){return new Jo(e)})},ii=function(e){return ri(function(){return Jo.resolve(e)})},ai={nu:oi,pure:ii},ui=function(e,t){return t(function(t){var n=[],r=0,o=function(o){return function(i){n[o]=i,r++,r>=e.length&&t(n)}};0===e.length?t([]):pt(e,function(e,t){e.get(o(t))})})},ci=function(e){return ui(e,ai.nu)},si=function(e){var t=function(t){return e===t},n=function(){return si(e)},r=function(){return si(e)},o=function(t){return si(t(e))},i=function(){return si(e)},a=function(t){t(e)},u=function(t){return t(e)},c=function(t,n){return n(e)},s=function(t){return t(e)},l=function(t){return t(e)},f=function(){return J.some(e)};return{is:t,isValue:K,isError:W,getOr:U(e),getOrThunk:U(e),getOrDie:U(e),or:n,orThunk:r,fold:c,map:o,mapError:i,each:a,bind:u,exists:s,forall:l,toOption:f}},li=function(e){var t=function(e){return e()},n=function(){return $(String(e))()},r=function(e){return e},o=function(e){return e()},i=function(){return li(e)},a=function(t){return li(t(e))},u=function(){return li(e)},c=function(t){return t(e)};return{is:W,isValue:W,isError:K,getOr:j,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:c,map:i,mapError:a,each:V,bind:u,exists:W,forall:K,toOption:J.none}},fi=function(e,t){return e.fold(function(){return li(t)},si)},di={value:si,error:li,fromOption:fi},hi=function(){function t(e,t){return function(){e.apply(t,arguments)}}function n(e){var t=this;return null===this._state?void this._deferreds.push(e):void l(function(){var n=t._state?e.onFulfilled:e.onRejected;if(null===n)return void(t._state?e.resolve:e.reject)(t._value);var r;try{r=n(t._value)}catch(o){return void e.reject(o)}e.resolve(r)})}function r(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void u(t(n,e),t(r,this),t(o,this))}this._state=!0,this._value=e,i.call(this)}catch(a){o.call(this,a)}}function o(e){this._state=!1,this._value=e,i.call(this)}function i(){for(var e=0,t=this._deferreds.length;t>e;e++)n.call(this,this._deferreds[e]);this._deferreds=null}function a(e,t,n,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}function u(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(o){if(r)return;r=!0,n(o)}}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],u(e,t(r,this),t(o,this))},l=s.immediateFn||"function"==typeof e.setImmediate&&e.setImmediate||function(t){e.setTimeout(t,1)};return s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){var r=this;return new s(function(o,i){n.call(r,new a(e,t,o,i))})},s.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&c(arguments[0])?arguments[0]:arguments);return new s(function(t,n){function r(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,function(e){r(i,e)},n)}e[i]=a,0===--o&&t(e)}catch(c){n(c)}}if(0===e.length)return t([]);for(var o=e.length,i=0;ir;r++)e[r].then(t,n)})},s},mi=window.Promise?window.Promise:hi(),gi=function(t,n){var r,o=e.window.requestAnimationFrame,i=["ms","moz","webkit"],a=function(t){e.window.setTimeout(t,0)};for(r=0;rt;t++)r[t]=e[t];return r},Mi=function(e,t,n){var r,o;if(!e)return 0;if(n=n||e,void 0!==e.length){for(r=0,o=e.length;o>r;r++)if(t.call(n,e[r],r,e)===!1)return 0}else for(r in e)if(e.hasOwnProperty(r)&&t.call(n,e[r],r,e)===!1)return 0;return 1},_i=function(e,t){var n=[];return Mi(e,function(r,o){n.push(t(r,o,e))}),n},Pi=function(e,t){var n=[];return Mi(e,function(r,o){(!t||t(r,o,e))&&n.push(r)}),n},Oi=function(e,t){var n,r;if(e)for(n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},Hi=function(e,t,n,r){var o=0;for(arguments.length<3&&(n=e[0]);or;r++)if(t.call(n,e[r],r,e))return r;return-1},Ii=function(e,t,n){var r=Li(e,t,n);return-1!==r?e[r]:void 0},Vi=function(e){return e[e.length-1]},Fi={isArray:Bi,toArray:Di,each:Mi,map:_i,filter:Pi,indexOf:Oi,reduce:Hi,findIndex:Li,find:Ii,last:Vi},Ui=/^\s*|\s*$/g,ji=function(e){return null===e||void 0===e?"":(""+e).replace(Ui,"")},qi=function(e,t){return t?"array"===t&&Fi.isArray(e)?!0:typeof e===t:void 0!==e},$i=function(e,t,n){var r;for(e=e||[],t=t||",","string"==typeof e&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},Wi=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ki=function(e,t,n){var r,o,i,a,u,c=this,s=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),i=e[3].match(/(^|\.)(\w+)$/i)[2],o=c.createNS(e[3].replace(/\.\w+$/,""),n),!o[i]){if("static"===e[2])return o[i]=t,void(this.onCreate&&this.onCreate(e[2],e[3],o[i]));t[i]||(t[i]=function(){},s=1),o[i]=t[i],c.extend(o[i].prototype,t),e[5]&&(r=c.resolve(e[5]).prototype,a=e[5].match(/\.(\w+)$/i)[1],u=o[i],o[i]=s?function(){return r[a].apply(this,arguments)}:function(){return this.parent=r[a],u.apply(this,arguments)},o[i].prototype[i]=o[i],c.each(r,function(e,t){o[i].prototype[t]=r[t]}),c.each(t,function(e,t){r[t]?o[i].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==i&&(o[i].prototype[t]=e)})),c.each(t.static,function(e,t){o[i][t]=e})}},Xi=function(e,t){for(var n=[],r=2;ro;o++){t=c[o];for(a in t)t.hasOwnProperty(a)&&(u=t[a],void 0!==u&&(e[a]=u))}return e},Yi=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Fi.each(e,function(e,o){return t.call(r,e,o,n)===!1?!1:void Yi(e,t,n,r)}))},Gi=function(t,n){var r,o;for(n=n||e.window,t=t.split("."),r=0;rr&&(n=n[t[r]],n);r++);return n},Ji=function(e,t){return!e||qi(e,"array")?e:Fi.map(e.split(t||","),ji)},Qi=function(e){var t=Ri.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},ea={trim:ji,isArray:Fi.isArray,is:qi,toArray:Fi.toArray,makeMap:$i,each:Fi.each,map:Fi.map,grep:Fi.filter,inArray:Fi.indexOf,hasOwn:Wi,extend:Xi,create:Ki,walk:Yi,createNS:Gi,resolve:Zi,explode:Ji,_addCacheSuffix:Qi},ta=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],na=["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param","embed","source","wbr","track"],ra=["td","th"],oa=["thead","tbody","tfoot"],ia=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],aa=["h1","h2","h3","h4","h5","h6"],ua=["li","dd","dt"],ca=["ul","ol","dl"],sa=["pre","script","textarea","style"],la=function(e){var t;return function(n){return t=t?t:At(e,U(!0)),t.hasOwnProperty(Vr(n))}},fa=la(aa),da=la(ta),ha=function(e){return"table"===Vr(e)},ma=function(e){return jr(e)&&!da(e)},ga=function(e){return jr(e)&&"br"===Vr(e)},pa=la(ia),va=la(ca),ya=la(ua),ba=la(na),Ca=la(oa),wa=la(ra),xa=la(sa),Ea=function(e){var t=e.previousSibling&&"SPAN"===e.previousSibling.nodeName,n=e.nextSibling&&"SPAN"===e.nextSibling.nodeName;return t&&n},za=function(e){return e&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},ka=function(e,t){var n,r=t.childNodes;if(!No.isElement(t)||!za(t)){for(n=r.length-1;n>=0;n--)ka(e,r[n]);if(No.isDocument(t)===!1){if(No.isText(t)&&t.nodeValue.length>0){var o=ea.trim(t.nodeValue).length;if(e.isBlock(t.parentNode)||o>0)return;if(0===o&&Ea(t))return}else if(No.isElement(t)&&(r=t.childNodes,1===r.length&&za(r[0])&&t.parentNode.insertBefore(r[0],t),r.length||ba(Zt.fromDom(t))))return;e.remove(t)}return t}},Na={trimNode:ka},Sa=ea.makeMap,Ta=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Aa=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ra=/[<>&\"\']/g,Ba=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Da={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};Go={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Zo={"<":"<",">":">","&":"&",""":'"',"'":"'"};var Ma=function(e){var t;return t=Zt.fromTag("div").dom(),t.innerHTML=e,t.textContent||t.innerText||e},_a=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":Go[e]||"&#"+e.charCodeAt(0)+";"})},ru=function(e,t,n){return n=n||Yo,e.replace(t?Ta:Aa,function(e){return Go[e]||n[e]||e})},ou=function(e,t){var n=_a(t)||Yo,r=function(e,t){return e.replace(t?Ta:Aa,function(e){return void 0!==Go[e]?Go[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"})},o=function(e,t){return ru(e,t,n)},i=Sa(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?o:ru:i.numeric?nu:eu},iu=function(e){return e.replace(Ba,function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):Da[t]||String.fromCharCode(t)):Zo[e]||Yo[e]||Ma(e)})},au={encodeRaw:eu,encodeAllRaw:tu,encodeNumeric:nu,encodeNamed:ru,getEncodeFunc:ou,decode:iu},uu={},cu={},su=ea.makeMap,lu=ea.each,fu=ea.extend,du=ea.explode,hu=ea.inArray,mu=function(e,t){return e=ea.trim(e),e?e.split(t||" "):[]},gu=function(e){var t,n,r,o,i,a,u={},c=function(e,n,r){var o,i,a,c=function(e,t){var n,r,o={};for(n=0,r=e.length;r>n;n++)o[e[n]]=t||{};return o};for(r=r||[],n=n||"","string"==typeof r&&(r=mu(r)),e=mu(e),o=e.length;o--;)i=mu([t,n].join(" ")),a={attributes:c(i),attributesOrder:i,children:c(r,cu)},u[e[o]]=a},s=function(e,t){var n,r,o,i;for(e=mu(e),n=e.length,t=mu(t);n--;)for(r=u[e[n]],o=0,i=t.length;i>o;o++)r.attributes[t[o]]={},r.attributesOrder.push(t[o])};return uu[e]?uu[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),lu(mu(a),function(e){c(e,"",r)}),i="center dir isindex noframes",n=[n,i].join(" "),o=[n,r].join(" "),lu(mu(i),function(e){c(e,"",o)})),o=o||[n,r].join(" "),c("html","manifest","head body"),c("head","","base command link meta noscript script style title"),c("title hr noscript br"),c("base","href target"),c("link","href rel media hreflang type sizes hreflang"),c("meta","name http-equiv content charset"),c("style","media type scoped"),c("script","src async defer type charset"),c("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",o),c("address dt dd div caption","",o),c("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),c("blockquote","cite",o),c("ol","reversed start type","li"),c("ul","","li"),c("li","value",o),c("dl","","dt dd"),c("a","href target rel media hreflang type",r),c("q","cite",r),c("ins del","cite datetime",o),c("img","src sizes srcset alt usemap ismap width height"),c("iframe","src name width height",o),c("embed","src type width height"),c("object","data type typemustmatch name usemap form width height",[o,"param"].join(" ")),c("param","name value"),c("map","name",[o,"area"].join(" ")),c("area","alt coords shape href target rel media hreflang type"),c("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),c("colgroup","span","col"),c("col","span"),c("tbody thead tfoot","","tr"),c("tr","","td th"),c("td","colspan rowspan headers",o),c("th","colspan rowspan headers scope abbr",o),c("form","accept-charset action autocomplete enctype method name novalidate target",o),c("fieldset","disabled form name",[o,"legend"].join(" ")),c("label","form for",r),c("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),c("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?o:r),c("select","disabled form multiple name required size","option optgroup"),c("optgroup","disabled label","option"),c("option","disabled label selected value"),c("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),c("menu","type label",[o,"li"].join(" ")),c("noscript","",o),"html4"!==e&&(c("wbr"),c("ruby","",[r,"rt rp"].join(" ")),c("figcaption","",o),c("mark rt rp summary bdi","",r),c("canvas","width height",o),c("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[o,"track source"].join(" ")),c("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[o,"track source"].join(" ")),c("picture","","img source"),c("source","src srcset type media sizes"),c("track","kind src srclang label default"),c("datalist","",[r,"option"].join(" ")),c("article section nav aside main header footer","",o),c("hgroup","","h1 h2 h3 h4 h5 h6"),c("figure","",[o,"figcaption"].join(" ")),c("time","datetime",r),c("dialog","open",o),c("command","type label icon disabled checked radiogroup command"),c("output","for form name",r),c("progress","value max",r),c("meter","value min max low high optimum",r),c("details","open",[o,"summary"].join(" ")),c("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(s("script","language xml:space"),s("style","xml:space"),s("object","declare classid code codebase codetype archive standby align border hspace vspace"),s("embed","align name hspace vspace"),s("param","valuetype type"),s("a","charset name rev shape coords"),s("br","clear"),s("applet","codebase archive code object alt name width height align hspace vspace"),s("img","name longdesc align border hspace vspace"),s("iframe","longdesc frameborder marginwidth marginheight scrolling align"),s("font basefont","size color face"),s("input","usemap align"),s("select"),s("textarea"),s("h1 h2 h3 h4 h5 h6 div p legend caption","align"),s("ul","type compact"),s("li","type"),s("ol dl menu dir","compact"),s("pre","width xml:space"),s("hr","align noshade size width"),s("isindex","prompt"),s("table","summary width frame rules cellspacing cellpadding align bgcolor"),s("col","width align char charoff valign"),s("colgroup","width align char charoff valign"),s("thead","align char charoff valign"),s("tr","align char charoff valign bgcolor"),s("th","axis align char charoff valign nowrap bgcolor width height"),s("form","accept"),s("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),s("tfoot","align char charoff valign"),s("tbody","align char charoff valign"),s("area","nohref"),s("body","background bgcolor text link vlink alink")),"html4"!==e&&(s("input button select textarea","autofocus"),s("input textarea","placeholder"),s("a","download"),s("link script img","crossorigin"),s("img","loading"),s("iframe","sandbox seamless allowfullscreen loading")),lu(mu("a form meter progress dfn"),function(e){u[e]&&delete u[e].children[e]}),delete u.caption.children.table,delete u.script,uu[e]=u,u)},pu=function(e,t){var n;return e&&(n={},"string"==typeof e&&(e={"*":e}),lu(e,function(e,r){n[r]=n[r.toUpperCase()]="map"===t?su(e,/[, ]/):du(e,/[, ]/)})),n},vu="",yu=" ",bu=function(e,t,n,r){var o=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+o(t)+o(n)+o(r)},Cu=function(e,t){var n,r,o,i,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,u=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,c=/\s*([^:]+):\s*([^;]+);?/g,s=/\s+$/,l={},f=vu;for(e=e||{},t&&(o=t.getValidStyles(),i=t.getInvalidStyles()),r=("\\\" \\' \\; \\: ; : "+f).split(" "),n=0;n-1&&r||(h[e+t]=-1===n?c[0]:c.join(" "),delete h[e+"-top"+t],delete h[e+"-right"+t],delete h[e+"-bottom"+t],delete h[e+"-left"+t])}},v=function(e){var t,n=h[e];if(n){for(n=n.split(" "),t=n.length;t--;)if(n[t]!==n[0])return!1;return h[e]=n[0],!0}},y=function(e,t,n,r){v(t)&&v(n)&&v(r)&&(h[e]=h[t]+" "+h[n]+" "+h[r],delete h[t],delete h[n],delete h[r])},b=function(e){return d=!0,l[e]},C=function(e,t){return d&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return l[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},w=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},x=function(e){return e.replace(/\\[0-9a-f]+/gi,w)},E=function(t,n,r,o,i,a){if(i=i||a)return i=C(i),"'"+i.replace(/\'/g,"\\'")+"'";if(n=C(n||r||o),!e.allow_script_urls){var u=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(u))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(u))return""}return m&&(n=m.call(g,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){for(t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,b).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,b)});r=c.exec(t);)if(c.lastIndex=r.index+r[0].length,o=r[1].replace(s,"").toLowerCase(),i=r[2].replace(s,""),o&&i){if(o=x(o),i=x(i),-1!==o.indexOf(f)||-1!==o.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===o||/expression\s*\(|\/\*|\*\//.test(i)))continue;"font-weight"===o&&"700"===i?i="bold":("color"===o||"background-color"===o)&&(i=i.toLowerCase()),i=i.replace(a,bu),i=i.replace(u,E),h[o]=d?C(i,!0):i}p("border","",!0),p("border","-width"),p("border","-color"),p("border","-style"),p("padding",""),p("margin",""),y("border","border-width","border-style","border-color"),"medium none"===h.border&&delete h.border,"none"===h["border-image"]&&delete h["border-image"]}return h},serialize:function(e,t){var n,r,a="",u=function(t){var n,r,i,u;if(n=o[t])for(r=0,i=n.length;i>r;r++)t=n[r],u=e[t],u&&(a+=(a.length>0?" ":"")+t+": "+u+";")},c=function(e,t){var n;return n=i["*"],n&&n[e]?!1:(n=i[t],n&&n[e]?!1:!0)};if(t&&o)u("*"),u(t);else for(n in e)r=e[n],!r||i&&!c(n,t)||(a+=(a.length>0?" ":"")+n+": "+r+";");return a}}},wu="mce-data-",xu=/^(?:mouse|contextmenu)|click/,Eu={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1,mozPressure:1},zu=function(e){return e.isDefaultPrevented===Nu||e.isDefaultPrevented===ku},ku=function(){return!1},Nu=function(){return!0},Su=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Tu=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},Au=function(e,t){if(e.composedPath){var n=e.composedPath();if(n&&n.length>0)return n[0]}return t},Ru=function(t,n){var r,o=n||{};for(r in t)Eu[r]||(o[r]=t[r]);if(o.target||(o.target=o.srcElement||e.document),Ri.experimentalShadowDom&&(o.target=Au(t,o.target)),t&&xu.test(t.type)&&void 0===t.pageX&&void 0!==t.clientX){var i=o.target.ownerDocument||e.document,a=i.documentElement,u=i.body;o.pageX=t.clientX+(a&&a.scrollLeft||u&&u.scrollLeft||0)-(a&&a.clientLeft||u&&u.clientLeft||0),o.pageY=t.clientY+(a&&a.scrollTop||u&&u.scrollTop||0)-(a&&a.clientTop||u&&u.clientTop||0)}return o.preventDefault=function(){o.isDefaultPrevented=Nu,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},o.stopPropagation=function(){o.isPropagationStopped=Nu,t&&(t.stopPropagation?t.stopPropagation():t.cancelBubble=!0)},o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=Nu,o.stopPropagation()},zu(o)===!1&&(o.isDefaultPrevented=ku,o.isPropagationStopped=ku,o.isImmediatePropagationStopped=ku),"undefined"==typeof o.metaKey&&(o.metaKey=!1),o},Bu=function(e,t,n){var r=e.document,o={type:"ready"};if(n.domLoaded)return void t(o);var i=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){Tu(e,"DOMContentLoaded",a),Tu(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(o))};i()?a():Su(e,"DOMContentLoaded",a),Su(e,"load",a)},Du=function(){function t(){this.domLoaded=!1,this.events={},this.count=1,this.expando=wu+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in e.document.documentElement,this.hasFocusIn="onfocusin"in e.document.documentElement,this.count=1}return t.prototype.bind=function(t,n,r,o){var i,a,u,c,s,l,f,d=this,h=e.window,m=function(e){d.executeHandlers(Ru(e||h.event),i)};if(t&&3!==t.nodeType&&8!==t.nodeType){t[d.expando]?i=t[d.expando]:(i=d.count++,t[d.expando]=i,d.events[i]={}),o=o||t;var g=n.split(" ");for(u=g.length;u--;)c=g[u],l=m,s=f=!1,"DOMContentLoaded"===c&&(c="ready"),d.domLoaded&&"ready"===c&&"complete"===t.readyState?r.call(o,Ru({type:c})):(d.hasMouseEnterLeave||(s=d.mouseEnterLeave[c],s&&(l=function(e){var t,n;if(t=e.currentTarget,n=e.relatedTarget,n&&t.contains)n=t.contains(n);else for(;n&&n!==t;)n=n.parentNode;n||(e=Ru(e||h.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,d.executeHandlers(e,i))})),d.hasFocusIn||"focusin"!==c&&"focusout"!==c||(f=!0,s="focusin"===c?"focus":"blur",l=function(e){e=Ru(e||h.event),e.type="focus"===e.type?"focusin":"focusout",d.executeHandlers(e,i)}),a=d.events[i][c],a?"ready"===c&&d.domLoaded?r(Ru({type:c})):a.push({func:r,scope:o}):(d.events[i][c]=a=[{func:r,scope:o}],a.fakeName=s,a.capture=f,a.nativeHandler=l,"ready"===c?Bu(t,l,d):Su(t,s||c,l,f)));return t=a=0,r}},t.prototype.unbind=function(e,t,n){var r,o,i,a,u,c;if(!e||3===e.nodeType||8===e.nodeType)return this;if(r=e[this.expando]){if(c=this.events[r],t){var s=t.split(" ");for(i=s.length;i--;)if(u=s[i],o=c[u]){if(n)for(a=o.length;a--;)if(o[a].func===n){var l=o.nativeHandler,f=o.fakeName,d=o.capture;o=o.slice(0,a).concat(o.slice(a+1)),o.nativeHandler=l,o.fakeName=f,o.capture=d,c[u]=o}n&&0!==o.length||(delete c[u],Tu(e,o.fakeName||u,o.nativeHandler,o.capture))}}else{for(u in c)o=c[u],Tu(e,o.fakeName||u,o.nativeHandler,o.capture);c={}}for(u in c)return this;delete this.events[r];try{delete e[this.expando]}catch(h){e[this.expando]=null}}return this},t.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var o=Ru(null,n);o.type=t,o.target=e;do r=e[this.expando],r&&this.executeHandlers(o,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow;while(e&&!o.isPropagationStopped());return this},t.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName)for(this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;t--;)e=n[t],e[this.expando]&&this.unbind(e);return this},t.prototype.destroy=function(){this.events={}},t.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},t.prototype.executeHandlers=function(e,t){var n,r,o,i,a=this.events[t];if(n=a&&a[e.type])for(r=0,o=n.length;o>r;r++)if(i=n[r],i&&i.func.call(i.scope,e)===!1&&e.preventDefault(),e.isImmediatePropagationStopped())return},t.Event=new t,t}(),Mu="sizzle"+-new Date,_u=e.window.document,Pu=0,Ou=0,Hu=u(),Lu=u(),Iu=u(),Vu=function(e,t){return e===t&&($a=!0),0},Fu="undefined",Uu=1<<31,ju={}.hasOwnProperty,qu=[],$u=qu.pop,Wu=qu.push,Ku=qu.push,Xu=qu.slice,Yu=qu.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},Gu="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Zu="[\\x20\\t\\r\\n\\f]",Ju="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Qu="\\["+Zu+"*("+Ju+")(?:"+Zu+"*([*^$|!~]?=)"+Zu+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Ju+"))|)"+Zu+"*\\]",ec=":("+Ju+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Qu+")*)|.*)\\)|)",tc=new RegExp("^"+Zu+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Zu+"+$","g"),nc=new RegExp("^"+Zu+"*,"+Zu+"*"),rc=new RegExp("^"+Zu+"*([>+~]|"+Zu+")"+Zu+"*"),oc=new RegExp("="+Zu+"*([^\\]'\"]*?)"+Zu+"*\\]","g"),ic=new RegExp(ec),ac=new RegExp("^"+Ju+"$"),uc={ID:new RegExp("^#("+Ju+")"),CLASS:new RegExp("^\\.("+Ju+")"),TAG:new RegExp("^("+Ju+"|[*])"),ATTR:new RegExp("^"+Qu),PSEUDO:new RegExp("^"+ec),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Zu+"*(even|odd|(([+-]|)(\\d*)n|)"+Zu+"*(?:([+-]|)"+Zu+"*(\\d+)|))"+Zu+"*\\)|)","i"),bool:new RegExp("^(?:"+Gu+")$","i"),needsContext:new RegExp("^"+Zu+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Zu+"*((?:-\\d)?\\d*)"+Zu+"*\\)|)(?=[^-]|$)","i")},cc=/^(?:input|select|textarea|button)$/i,sc=/^h\d$/i,lc=/^[^{]+\{\s*\[native \w/,fc=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,dc=/[+~]/,hc=/'|\\/g,mc=new RegExp("\\\\([\\da-f]{1,6}"+Zu+"?|("+Zu+")|.)","ig"),gc=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{Ku.apply(qu=Xu.call(_u.childNodes),_u.childNodes),qu[_u.childNodes.length].nodeType}catch(pc){Ku={apply:qu.length?function(e,t){Wu.apply(e,Xu.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var vc=function(e,t,n,r){var o,i,a,u,c,s,l,f,d,m;if((t?t.ownerDocument||t:_u)!==Ka&&Wa(t),t=t||Ka,n=n||[],!e||"string"!=typeof e)return n;if(1!==(u=t.nodeType)&&9!==u)return[];if(Ya&&!r){if(o=fc.exec(e))if(a=o[1]){if(9===u){if(i=t.getElementById(a),!i||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&Qa(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return Ku.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&Oa.getElementsByClassName)return Ku.apply(n,t.getElementsByClassName(a)),n}if(Oa.qsa&&(!Ga||!Ga.test(e))){if(f=l=Mu,d=t,m=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(s=Va(e),(l=t.getAttribute("id"))?f=l.replace(hc,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",c=s.length;c--;)s[c]=f+g(s[c]);d=dc.test(e)&&h(t.parentNode)||t,m=s.join(",")}if(m)try{return Ku.apply(n,d.querySelectorAll(m)),n}catch(p){}finally{l||t.removeAttribute("id")}}}return Ua(e.replace(tc,"$1"),t,n,r)};Oa=vc.support={},Ia=vc.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},Wa=vc.setDocument=function(e){function t(e){try{return e.top}catch(t){}return null}var n,r=e?e.ownerDocument||e:_u,o=r.defaultView;return r!==Ka&&9===r.nodeType&&r.documentElement?(Ka=r,Xa=r.documentElement,Ya=!Ia(r),o&&o!==t(o)&&(o.addEventListener?o.addEventListener("unload",function(){Wa()},!1):o.attachEvent&&o.attachEvent("onunload",function(){Wa()})),Oa.attributes=!0,Oa.getElementsByTagName=!0,Oa.getElementsByClassName=lc.test(r.getElementsByClassName),Oa.getById=!0,Ha.find.ID=function(e,t){if(typeof t.getElementById!==Fu&&Ya){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},Ha.filter.ID=function(e){var t=e.replace(mc,gc);return function(e){return e.getAttribute("id")===t}},Ha.find.TAG=Oa.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==Fu?t.getElementsByTagName(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},Ha.find.CLASS=Oa.getElementsByClassName&&function(e,t){return Ya?t.getElementsByClassName(e):void 0},Za=[],Ga=[],Oa.disconnectedMatch=!0,Ga=Ga.length&&new RegExp(Ga.join("|")),Za=Za.length&&new RegExp(Za.join("|")),n=lc.test(Xa.compareDocumentPosition),Qa=n||lc.test(Xa.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Vu=n?function(e,t){if(e===t)return $a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!Oa.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===_u&&Qa(_u,e)?-1:t===r||t.ownerDocument===_u&&Qa(_u,t)?1:qa?Yu.call(qa,e)-Yu.call(qa,t):0:4&n?-1:1)}:function(e,t){if(e===t)return $a=!0,0;var n,o=0,i=e.parentNode,a=t.parentNode,u=[e],c=[t];if(!i||!a)return e===r?-1:t===r?1:i?-1:a?1:qa?Yu.call(qa,e)-Yu.call(qa,t):0;if(i===a)return s(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;u[o]===c[o];)o++;return o?s(u[o],c[o]):u[o]===_u?-1:c[o]===_u?1:0},r):Ka},vc.matches=function(e,t){return vc(e,null,null,t)},vc.matchesSelector=function(e,t){if((e.ownerDocument||e)!==Ka&&Wa(e),t=t.replace(oc,"='$1']"),!(!Oa.matchesSelector||!Ya||Za&&Za.test(t)||Ga&&Ga.test(t)))try{var n=Ja.call(e,t);if(n||Oa.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return vc(t,Ka,null,[e]).length>0},vc.contains=function(e,t){return(e.ownerDocument||e)!==Ka&&Wa(e),Qa(e,t)},vc.attr=function(e,t){(e.ownerDocument||e)!==Ka&&Wa(e);var n=Ha.attrHandle[t.toLowerCase()],r=n&&ju.call(Ha.attrHandle,t.toLowerCase())?n(e,t,!Ya):void 0;return void 0!==r?r:Oa.attributes||!Ya?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},vc.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},vc.uniqueSort=function(e){var t,n=[],r=0,o=0;if($a=!Oa.detectDuplicates,qa=!Oa.sortStable&&e.slice(0),e.sort(Vu),$a){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return qa=null,e},La=vc.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=La(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=La(t);return n},Ha=vc.selectors={cacheLength:50,createPseudo:c,match:uc,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(mc,gc),e[3]=(e[3]||e[4]||e[5]||"").replace(mc,gc),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4) -},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||vc.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&vc.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return uc.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ic.test(n)&&(t=Va(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(mc,gc).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Hu[e+" "];return t||(t=new RegExp("(^|"+Zu+")"+e+"("+Zu+"|$)"))&&Hu(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==Fu&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=vc.attr(r,e);return null==o?"!="===t:t?(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o+" ").indexOf(n)>-1:"|="===t?o===n||o.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var s,l,f,d,h,m,g=i!==a?"nextSibling":"previousSibling",p=t.parentNode,v=u&&t.nodeName.toLowerCase(),y=!c&&!u;if(p){if(i){for(;g;){for(f=t;f=f[g];)if(u?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;m=g="only"===e&&!m&&"nextSibling"}return!0}if(m=[a?p.firstChild:p.lastChild],a&&y){for(l=p[Mu]||(p[Mu]={}),s=l[e]||[],h=s[0]===Pu&&s[1],d=s[0]===Pu&&s[2],f=h&&p.childNodes[h];f=++h&&f&&f[g]||(d=h=0)||m.pop();)if(1===f.nodeType&&++d&&f===t){l[e]=[Pu,h,d];break}}else if(y&&(s=(t[Mu]||(t[Mu]={}))[e])&&s[0]===Pu)d=s[1];else for(;(f=++h&&f&&f[g]||(d=h=0)||m.pop())&&((u?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(y&&((f[Mu]||(f[Mu]={}))[e]=[Pu,d]),f!==t)););return d-=o,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(e,t){var n,r=Ha.pseudos[e]||Ha.setFilters[e.toLowerCase()]||vc.error("unsupported pseudo: "+e);return r[Mu]?r(t):r.length>1?(n=[e,e,"",t],Ha.setFilters.hasOwnProperty(e.toLowerCase())?c(function(e,n){for(var o,i=r(e,t),a=i.length;a--;)o=Yu.call(e,i[a]),e[o]=!(n[o]=i[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:c(function(e){var t=[],n=[],r=Fa(e.replace(tc,"$1"));return r[Mu]?c(function(e,t,n,o){for(var i,a=r(e,null,o,[]),u=e.length;u--;)(i=a[u])&&(e[u]=!(t[u]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),!n.pop()}}),has:c(function(e){return function(t){return vc(e,t).length>0}}),contains:c(function(e){return e=e.replace(mc,gc),function(t){return(t.textContent||t.innerText||La(t)).indexOf(e)>-1}}),lang:c(function(e){return ac.test(e||"")||vc.error("unsupported lang: "+e),e=e.replace(mc,gc).toLowerCase(),function(t){var n;do if(n=Ya?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.window.location&&e.window.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===Xa},focus:function(e){return e===Ka.activeElement&&(!Ka.hasFocus||Ka.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!Ha.pseudos.empty(e)},header:function(e){return sc.test(e.nodeName)},input:function(e){return cc.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:d(function(){return[0]}),last:d(function(e,t){return[t-1]}),eq:d(function(e,t,n){return[0>n?n+t:n]}),even:d(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:d(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:d(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:d(function(e,t,n){for(var r=0>n?n+t:n;++r2&&"ID"===(a=i[0]).type&&Oa.getById&&9===t.nodeType&&Ya&&Ha.relative[i[1].type]){if(t=(Ha.find.ID(a.matches[0].replace(mc,gc),t)||[])[0],!t)return n;s&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=uc.needsContext.test(e)?0:i.length;o--&&(a=i[o],!Ha.relative[u=a.type]);)if((c=Ha.find[u])&&(r=c(a.matches[0].replace(mc,gc),dc.test(i[0].type)&&h(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&g(i),!e)return Ku.apply(n,r),n;break}}return(s||Fa(e,l))(r,t,!Ya,n,dc.test(e)&&h(t.parentNode)||t),n},Oa.sortStable=Mu.split("").sort(Vu).join("")===Mu,Oa.detectDuplicates=!!$a,Wa(),Oa.sortDetached=!0;var yc=e.document,bc=Array.prototype.push,Cc=Array.prototype.slice,wc=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,xc=Du.Event,Ec=ea.makeMap("children,contents,next,prev"),zc=function(e){return"undefined"!=typeof e},kc=function(e){return"string"==typeof e},Nc=function(e){return e&&e===e.window},Sc=function(e,t){var n,r,o;for(t=t||yc,o=t.createElement("div"),n=t.createDocumentFragment(),o.innerHTML=e;r=o.firstChild;)n.appendChild(r);return n},Tc=function(e,t,n,r){var o;if(kc(t))t=Sc(t,jc(e[0]));else if(t.length&&!t.nodeType){if(t=Kc.makeArray(t),r)for(o=t.length-1;o>=0;o--)Tc(e,t[o],n,r);else for(o=0;oo&&(i=e[o],t.call(i,o,i)!==!1);o++);return e},Uc=function(e,t){var n=[];return Fc(e,function(e,r){t(r,e)&&n.push(r)}),n},jc=function(e){return e?9===e.nodeType?e:e.ownerDocument:yc};Hc.fn=Hc.prototype={constructor:Hc,selector:"",context:null,length:0,init:function(t,n){var r,o,i=this;if(!t)return i;if(t.nodeType)return i.context=i[0]=t,i.length=1,i;if(n&&n.nodeType)i.context=n;else{if(n)return Kc(t).attr(n);i.context=n=e.document}if(kc(t)){if(i.selector=t,r="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:wc.exec(t),!r)return Kc(n).find(t);if(r[1])for(o=Sc(t,jc(n)).firstChild;o;)bc.call(i,o),o=o.nextSibling;else{if(o=jc(n).getElementById(r[2]),!o)return i;if(o.id!==r[2])return i.find(t);i.length=1,i[0]=o}}else this.add(t,!1);return i},toArray:function(){return ea.toArray(this)},add:function(e,t){var n,r,o=this;if(kc(e))return o.add(Kc(e));if(t!==!1)for(n=Kc.unique(o.toArray().concat(Kc.makeArray(e))),o.length=n.length,r=0;rt;t++)Kc.find(e,this[t],r);return Kc(r)},filter:function(e){return Kc("function"==typeof e?Uc(this.toArray(),function(t,n){return e(n,t)}):Kc.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Kc&&(e=e[0]),this.each(function(n,r){for(;r;){if("string"==typeof e&&Kc(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}}),Kc(t)},offset:function(e){var t,n,r,o,i=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(o=t.getBoundingClientRect(),i=o.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:bc,sort:Array.prototype.sort,splice:Array.prototype.splice},ea.extend(Hc,{extend:ea.extend,makeArray:function(e){return Nc(e)||e.nodeType?[e]:ea.toArray(e)},inArray:Lc,isArray:ea.isArray,each:Fc,trim:Vc,grep:Uc,find:vc,expr:vc.selectors,unique:vc.uniqueSort,text:vc.getText,contains:vc.contains,filter:function(e,t,n){var r=t.length;for(n&&(e=":not("+e+")");r--;)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Kc.find.matchesSelector(t[0],e)?[t[0]]:[]:Kc.find.matches(e,t)}});var qc=function(e,t,n){var r=[],o=e[t];for("string"!=typeof n&&n instanceof Kc&&(n=n[0]);o&&9!==o.nodeType;){if(void 0!==n){if(o===n)break;if("string"==typeof n&&Kc(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},$c=function(e,t,n,r){var o=[];for(r instanceof Kc&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"==typeof r&&Kc(e).is(r))break}o.push(e)}return o},Wc=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};Fc({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return qc(e,"parentNode")},next:function(e){return Wc(e,"nextSibling",1)},prev:function(e){return Wc(e,"previousSibling",1)},children:function(e){return $c(e.firstChild,"nextSibling",1)},contents:function(e){return ea.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(e,t){Hc.fn[e]=function(n){var r=this,o=[];r.each(function(){var e=t.call(o,this,n,o);e&&(Kc.isArray(e)?o.push.apply(o,e):o.push(e))}),this.length>1&&(Ec[e]||(o=Kc.unique(o)),0===e.indexOf("parents")&&(o=o.reverse()));var i=Kc(o);return n?i.filter(n):i}}),Fc({parentsUntil:function(e,t){return qc(e,"parentNode",t)},nextUntil:function(e,t){return $c(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return $c(e,"previousSibling",1,t).slice(1)}},function(e,t){Hc.fn[e]=function(n,r){var o=this,i=[];o.each(function(){var e=t.call(i,this,n,i);e&&(Kc.isArray(e)?i.push.apply(i,e):i.push(e))}),this.length>1&&(i=Kc.unique(i),(0===e.indexOf("parents")||"prevUntil"===e)&&(i=i.reverse()));var a=Kc(i);return r?a.filter(r):a}}),Hc.fn.is=function(e){return!!e&&this.filter(e).length>0},Hc.fn.init.prototype=Hc.fn,Hc.overrideDefaults=function(e){var t,n=function(r,o){return t=t||e(),0===arguments.length&&(r=t.element),o||(o=t.context),new n.fn.init(r,o)};return Kc.extend(n,this),n},Hc.attrHooks=Pc,Hc.cssHooks=Oc;var Kc=Hc,Xc=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(o=e[n])return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n])return o}}},e.prototype.findPreviousNode=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}if(i=e.parentNode,i&&i!==this.rootNode)return i}},e}(),Yc=ea.each,Gc=ea.grep,Zc=Ri.ie,Jc=/^([a-z0-9],?)+$/i,Qc=/^[ \t\r\n]*$/,es=function(e,t,n){var r=t.keep_values,o={set:function(e,r,o){t.url_converter&&(r=t.url_converter.call(t.url_converter_scope||n(),r,o,e[0])),e.attr("data-mce-"+o,r).attr(o,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},i={style:{set:function(t,n){return null!==n&&"object"==typeof n?void t.css(n):(r&&t.attr("data-mce-style",n),void(null!==n&&"string"==typeof n?(t.removeAttr("style"),t.css(e.parse(n))):t.attr("style",n)))},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName)}}};return r&&(i.href=i.src=o),i},ts=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},ns=function(e,t){var n,r,o=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(o++,n=r);return o};!function(t){t.DOM=t(e.document),t.nodeIndex=ns}(E||(E={}));var rs=E,os=rs.DOM,is=ea.each,as=ea.grep,us=0,cs=1,ss=2,ls=3,fs=function(){function t(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return t.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},t.prototype.loadScript=function(t,n,r){var o,i,a=os,u=function(){a.remove(i),o&&(o.onreadystatechange=o.onload=o=null),n()},c=function(){at(r)?r():"undefined"!=typeof e.console&&e.console.log&&e.console.log("Failed to load script: "+t)};i=a.uniqueId(),o=e.document.createElement("script"),o.id=i,o.type="text/javascript",o.src=ea._addCacheSuffix(t),this.settings.referrerPolicy&&a.setAttrib(o,"referrerpolicy",this.settings.referrerPolicy),o.onload=u,o.onerror=c,(e.document.getElementsByTagName("head")[0]||e.document.body).appendChild(o)},t.prototype.isDone=function(e){return this.states[e]===ss},t.prototype.markDone=function(e){this.states[e]=ss},t.prototype.add=function(e,t,n,r){var o=this.states[e];void 0===o&&(this.queue.push(e),this.states[e]=us),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},t.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},t.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},t.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},t.prototype.loadScripts=function(e,t,n,r){var o,i=this,a=[],u=function(e,t){is(i.scriptLoadedCallbacks[t],function(t){at(t[e])&&t[e].call(t.scope)}),i.scriptLoadedCallbacks[t]=void 0};i.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this}),(o=function(){var t=as(e);if(e.length=0,is(t,function(e){return i.states[e]===ss?void u("success",e):i.states[e]===ls?void u("failure",e):void(i.states[e]!==cs&&(i.states[e]=cs,i.loading++,i.loadScript(e,function(){i.states[e]=ss,i.loading--,u("success",e),o()},function(){i.states[e]=ls,i.loading--,a.push(e),u("failure",e),o()})))}),!i.loading){var n=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,is(n,function(e){0===a.length?at(e.success)&&e.success.call(e.scope):at(e.failure)&&e.failure.call(e.scope,a)})}})()},t.ScriptLoader=new t,t}(),ds=function(e){return nt(e)&&qt(e,"raw")},hs=function(e){return rt(e)&&e.length>1},ms={},gs=Jt("en"),ps=function(){return jt(ms,gs.get())},vs=function(){return Ht(ms,function(e){return $t({},e)})},ys=function(e){e&&gs.set(e)},bs=function(){return gs.get()},Cs=function(e,t){var n=ms[e];n||(ms[e]=n={}),Ot(t,function(e,t){n[t.toLowerCase()]=e})},ws=function(e){var t=ps().getOr({}),n=function(e){return at(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},o=function(e){var r=n(e);return jt(t,r.toLowerCase()).map(n).getOr(r)},i=function(e){return e.replace(/{context:\w+}$/,"")},a=function(e){return e};if(r(e))return a("");if(ds(e))return a(n(e.raw));if(hs(e)){var u=e.slice(1),c=o(e[0]).replace(/\{([0-9]+)\}/g,function(e,t){return qt(u,t)?n(u[t]):e});return a(i(c))}return a(i(o(e)))},xs=function(){return ps().bind(function(e){return jt(e,"_dir")}).exists(function(e){return"rtl"===e})},Es=function(e){return qt(ms,e)},zs={getData:vs,setCode:ys,getCode:bs,add:Cs,translate:ws,isRtl:xs,hasCode:Es};!function(e){e.PluginManager=e(),e.ThemeManager=e()}(z||(z={}));var ks=z,Ns=function(t,n){var r=null,o=function(){null!==r&&(e.clearTimeout(r),r=null)},i=function(){for(var o=[],i=0;i0?Ao(e,t,r.join(" ")):_o(e,t),!1},Bs=function(e){return void 0!==e.dom().classList},Ds=function(e){return Ts(e,"class")},Ms=function(e,t){return As(e,"class",t)},_s=function(e,t){return Rs(e,"class",t)},Ps=function(e,t){Bs(e)?e.dom().classList.add(t):Ms(e,t)},Os=function(e){var t=Bs(e)?e.dom().classList:Ds(e);0===t.length&&_o(e,"class")},Hs=function(e,t){if(Bs(e)){var n=e.dom().classList;n.remove(t)}else _s(e,t);Os(e)},Ls=function(e,t){return Bs(e)&&e.dom().classList.contains(t)},Is=function(e,t){var n=[];return pt(kr(e),function(e){t(e)&&(n=n.concat([e])),n=n.concat(Is(e,t))}),n},Vs=function(e,t){return sr(t,e)},Fs=function(e,t,n){for(var r=e.dom(),o=at(n)?n:U(!1);r.parentNode;){r=r.parentNode;var i=Zt.fromDom(r);if(t(i))return J.some(i);if(o(i))break}return J.none()},Us=function(e,t,n){var r=function(e,t){return t(e)};return k(r,Fs,e,t,n)},js=function(e,t,n){return Fs(e,function(e){return ur(e,t)},n)},qs=function(e,t){return lr(t,e)},$s=function(e,t,n){return k(ur,js,e,t,n)},Ws=U("mce-annotation"),Ks=U("data-mce-annotation"),Xs=U("data-mce-annotation-uid"),Ys=function(e,t){var n=e.selection.getRng(),r=Zt.fromDom(n.startContainer),o=Zt.fromDom(e.getBody()),i=t.fold(function(){return"."+Ws()},function(e){return"["+Ks()+'="'+e+'"]'}),a=Nr(r,n.startOffset).getOr(r),u=$s(a,i,function(e){return fr(e,o)}),c=function(e,t){return Mo(e,t)?J.some(Bo(e,t)):J.none()};return u.bind(function(t){return c(t,""+Xs()).bind(function(n){return c(t,""+Ks()).map(function(t){var r=Zs(e,n);return{uid:n,name:t,elements:r}})})})},Gs=function(e){return jr(e)&&Ls(e,Ws())},Zs=function(e,t){var n=Zt.fromDom(e.getBody());return Vs(n,"["+Xs()+'="'+t+'"]')},Js=function(e,t){var n=Zt.fromDom(e.getBody()),r=Vs(n,"["+Ks()+'="'+t+'"]'),o={};return pt(r,function(e){var t=Bo(e,Xs()),n=o.hasOwnProperty(t)?o[t]:[];o[t]=n.concat([e])}),o},Qs=function(e){var t=Jt({}),n=function(){return{listeners:[],previous:Jt(J.none())}},r=function(e,t){o(e,function(e){return t(e),e})},o=function(e,r){var o=t.get(),i=o.hasOwnProperty(e)?o[e]:n(),a=r(i);o[e]=a,t.set(o)},i=function(e,t,n){r(e,function(r){pt(r.listeners,function(r){return r(!0,e,{uid:t,nodes:gt(n,function(e){return e.dom()})})})})},a=function(e){r(e,function(t){pt(t.listeners,function(t){return t(!1,e)})})},u=Ss(function(){var n=t.get(),r=Rt(_t(n));pt(r,function(t){o(t,function(n){var r=n.previous.get();return Ys(e,J.some(t)).fold(function(){r.isSome()&&(a(t),n.previous.set(J.none()))},function(e){var t=e.uid,o=e.name,a=e.elements;r.is(t)||(i(o,t,a),n.previous.set(J.some(t)))}),{previous:n.previous,listeners:n.listeners}})})},30);e.on("remove",function(){u.cancel()}),e.on("NodeChange",function(){u.throttle()});var c=function(e,t){o(e,function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}})};return{addListener:c}},el=function(e,t){var n=function(e){return J.from(e.attr(Ks())).bind(t.lookup)};e.on("init",function(){e.serializer.addNodeFilter("span",function(e){pt(e,function(e){n(e).each(function(t){t.persistent===!1&&e.unwrap()})})})})},tl=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return e.hasOwnProperty(t)?J.from(e[t]).map(function(e){return e.settings}):J.none()};return{register:t,lookup:n}},nl=0,rl=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return nl++,e+"_"+r+nl+String(n)},ol=function(e,t){pt(t,function(t){Ps(e,t)})},il=function(t,n){var r=n||e.document,o=r.createElement("div");return o.innerHTML=t,kr(Zt.fromDom(o))},al=function(e){return e.dom().innerHTML},ul=function(e,t){var n=pr(e),r=n.dom(),o=Zt.fromDom(r.createDocumentFragment()),i=il(t,r);Or(o,i),Hr(e),Mr(e,o)},cl=function(e,t){return Zt.fromDom(e.dom().cloneNode(t))},sl=function(e){return cl(e,!1)},ll=function(e){return cl(e,!0)},fl=vu,dl=function(e){return e===fl},hl=function(e){return e.replace(new RegExp(fl,"g"),"")},ml={isZwsp:dl,ZWSP:fl,trim:hl},gl=No.isElement,pl=No.isText,vl=function(e){return pl(e)&&(e=e.parentNode),gl(e)&&e.hasAttribute("data-mce-caret")},yl=function(e){return pl(e)&&ml.isZwsp(e.data)},bl=function(e){return vl(e)||yl(e)},Cl=function(e){return e.firstChild!==e.lastChild||!No.isBr(e.firstChild)},wl=function(e,t){var n,r,o,i;if(n=e.ownerDocument,o=n.createTextNode(ml.ZWSP),i=e.parentNode,t){if(r=e.previousSibling,pl(r)){if(bl(r))return r;if(Sl(r))return r.splitText(r.data.length-1)}i.insertBefore(o,e)}else{if(r=e.nextSibling,pl(r)){if(bl(r))return r;if(Nl(r))return r.splitText(1),r}e.nextSibling?i.insertBefore(o,e.nextSibling):i.appendChild(o)}return o},xl=function(e){var t=e.container();return e&&No.isText(t)?t.data.charAt(e.offset())===ml.ZWSP||e.isAtStart()&&yl(t.previousSibling):!1},El=function(e){var t=e.container();return e&&No.isText(t)?t.data.charAt(e.offset()-1)===ml.ZWSP||e.isAtEnd()&&yl(t.nextSibling):!1},zl=function(){var t=e.document.createElement("br");return t.setAttribute("data-mce-bogus","1"),t},kl=function(e,t,n){var r,o,i;return r=t.ownerDocument,o=r.createElement(e),o.setAttribute("data-mce-caret",n?"before":"after"),o.setAttribute("data-mce-bogus","all"),o.appendChild(zl()),i=t.parentNode,n?i.insertBefore(o,t):t.nextSibling?i.insertBefore(o,t.nextSibling):i.appendChild(o),o},Nl=function(e){return pl(e)&&e.data[0]===ml.ZWSP},Sl=function(e){return pl(e)&&e.data[e.data.length-1]===ml.ZWSP},Tl=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];No.isBogus(n)&&n.parentNode.removeChild(n)},Al=function(e){return e&&e.hasAttribute("data-mce-caret")?(Tl(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},Rl=function(e){return vl(e.startContainer)},Bl=No.isContentEditableTrue,Dl=No.isContentEditableFalse,Ml=No.isBr,_l=No.isText,Pl=No.matchNodeNames(["script","style","textarea"]),Ol=No.matchNodeNames(["img","input","textarea","hr","iframe","video","audio","object"]),Hl=No.matchNodeNames(["table"]),Ll=bl,Il=function(e){return Ll(e)?!1:_l(e)?Pl(e.parentNode)?!1:!0:Ol(e)||Ml(e)||Hl(e)||Fl(e)},Vl=function(e){return No.isElement(e)&&"true"===e.getAttribute("unselectable")},Fl=function(e){return Vl(e)===!1&&Dl(e)},Ul=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Fl(e))return!1;if(Bl(e))return!0}return!0},jl=function(e){return Fl(e)?wt(Mt(e.getElementsByTagName("*")),function(e,t){return e||Bl(t)},!1)!==!0:!1},ql=function(e){return Ol(e)||jl(e)},$l=function(e,t){return Il(e)&&Ul(e,t)},Wl=Math.round,Kl=function(e){return e?{left:Wl(e.left),top:Wl(e.top),bottom:Wl(e.bottom),right:Wl(e.right),width:Wl(e.width),height:Wl(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Xl=function(e,t){return e=Kl(e),t?e.right=e.left:(e.left=e.left+e.width,e.right=e.left),e.width=0,e},Yl=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},Gl=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},Zl=function(e,t){return e.bottom-e.height/2t.bottom?!1:Gl(t.top-e.bottom,e,t)},Jl=function(e,t){return e.top>t.bottom?!0:e.bottom=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},ef=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},tf=function(e,t){return 1===e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},nf=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),rf=function(e){return"string"==typeof e&&e.charCodeAt(0)>=768&&nf.test(e)},of=function(e,t,n){return e.isSome()&&t.isSome()?J.some(n(e.getOrDie(),t.getOrDie())):J.none()},af=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?J.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):J.none()},uf=function(e,t){return e?J.some(t):J.none()},cf=[].slice,sf=function(){for(var e=[],t=0;t0?n[0]:e.getBoundingClientRect()),!zf(e)&&bf(e)&&Tf(t)?Nf(e):Tf(t)&&zf(e)?Sf(e):t},Rf=function(e,t){var n=Xl(e,t);return n.width=1,n.right=n.left+1,n},Bf=function(e){var t,n,r=[],o=function(e){0!==e.height&&(r.length>0&&Yl(e,r[r.length-1])||r.push(e)) -},i=function(e,t){var n=xf(e.ownerDocument);if(t0&&(n.setStart(e,t-1),n.setEnd(e,t),kf(n)||o(Rf(Af(n),!1))),t=i.length?(o="after",r=i.length-1):o="before",n=i[r]),u.push(Uf(n)),a=jf(e,n),a=Fi.filter(a,q(No.isBogus)),u=u.concat(Fi.map(a,function(e){return Uf(e)})),u.reverse().join("/")+","+o},$f=function(e,t,n){var r=Lf(e);return r=Fi.filter(r,function(e,t){return!_f(e)||!_f(r[t-1])}),r=Fi.filter(r,No.matchNodeNames([t])),r[n]},Wf=function(e,t){for(var n,r=e,o=0;_f(r);){if(n=r.data.length,t>=o&&o+n>=t){e=r,t-=o;break}if(!_f(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return _f(e)&&t>e.data.length&&(t=e.data.length),Mf(e,t)},Kf=function(e,t){var n,r,o;return t?(n=t.split(","),t=n[0].split("/"),o=n.length>1?n[1]:"before",r=Fi.reduce(t,function(e,t){return(t=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t))?("text()"===t[1]&&(t[1]="#text"),$f(e,t[1],parseInt(t[2],10))):null},e),r?_f(r)?Wf(r,parseInt(o,10)):(o="after"===o?Of(r)+1:Of(r),Mf(r.parentNode,o)):null):null},Xf=function(e,t){No.isText(t)&&0===t.data.length&&e.remove(t)},Yf=function(e,t,n){t.insertNode(n),Xf(e,n.previousSibling),Xf(e,n.nextSibling)},Gf=function(e,t,n){var r=J.from(n.firstChild),o=J.from(n.lastChild);t.insertNode(n),r.each(function(t){return Xf(e,t.previousSibling)}),o.each(function(t){return Xf(e,t.nextSibling)})},Zf=function(e,t,n){No.isDocumentFragment(n)?Gf(e,t,n):Yf(e,t,n)},Jf=No.isContentEditableFalse,Qf=function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&No.isText(r);r=r.previousSibling)o+=e(r.data).length;return o},ed=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],u=r[o?"startOffset":"endOffset"],c=[],s=0,l=e.getRoot();for(No.isText(a)?c.push(n?Qf(t,a,u):u):(i=a.childNodes,u>=i.length&&i.length&&(s=1,u=Math.max(0,i.length-1)),c.push(e.nodeIndex(i[u],n)+s));a&&a!==l;a=a.parentNode)c.push(e.nodeIndex(a,n));return c},td=function(e,t,n,r){var o=t.dom,i={};return i.start=ed(o,e,n,r,!0),t.isCollapsed()||(i.end=ed(o,e,n,r,!1)),i},nd=function(e,t,n){var r=0;return ea.each(e.select(t),function(e){return"all"!==e.getAttribute("data-mce-bogus")?e===n?!1:void r++:void 0}),r},rd=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],No.isElement(n)&&"TR"===n.nodeName&&(o=n.childNodes,n=o[Math.min(t?r:r-1,o.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},od=function(e){return rd(e,!0),rd(e,!1),e},id=function(e,t){var n;if(No.isElement(e)&&(e=tf(e,t),Jf(e)))return e;if(bl(e)){if(No.isText(e)&&vl(e)&&(e=e.parentNode),n=e.previousSibling,Jf(n))return n;if(n=e.nextSibling,Jf(n))return n}},ad=function(e){return id(e.startContainer,e.startOffset)||id(e.endContainer,e.endOffset)},ud=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Jf(r)||"IMG"===o)return{name:o,index:nd(n.dom,o,r)};var a=ad(i);return a?(o=a.tagName,{name:o,index:nd(n.dom,o,a)}):td(e,n,t,i)},cd=function(e){var t=e.getRng();return{start:qf(e.dom.getRoot(),Mf.fromRangeStart(t)),end:qf(e.dom.getRoot(),Mf.fromRangeEnd(t))}},sd=function(e){return{rng:e.getRng()}},ld=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,""):e.create("span",r)},fd=function(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),u=a.nodeName;if("IMG"===u)return{name:u,index:nd(n,u,a)};var c=od(r.cloneRange());if(!i){c.collapse(!1);var s=ld(n,o+"_end",t);Zf(n,c,s)}r=od(r),r.collapse(!0);var l=ld(n,o+"_start",t);return Zf(n,r,l),e.moveToBookmark({id:o,keep:1}),{id:o}},dd=function(e,t,n){return 2===t?ud(ml.trim,n,e):3===t?cd(e):t?sd(e):fd(e,!1)},hd={getBookmark:dd,getUndoBookmark:t(ud,j,!0),getPersistentBookmark:fd},md=function(e,t,n){void 0===n&&(n=W);var r=new Xc(e,t),o=function(e){var t;do t=r[e]();while(t&&!No.isText(t)&&!n(t));return J.from(t).filter(No.isText)};return{current:function(){return J.from(r.current()).filter(No.isText)},next:function(){return o("next")},prev:function(){return o("prev")},prev2:function(){return o("prev2")}}},gd=function(e,t){var n=t?t:function(t){return e.isBlock(t)||No.isBr(t)||No.isContentEditableFalse(t)},r=function(e,t,n,o){if(No.isText(e)){var i=o(e,t,e.data);if(-1!==i)return J.some({container:e,offset:i})}return n().bind(function(e){return r(e.container,e.offset,n,o)})},o=function(e,t,o,i){var a=md(e,i,n);return r(e,t,function(){return a.prev().map(function(e){return{container:e,offset:e.length}})},o).getOrNull()},i=function(e,t,o,i){var a=md(e,i,n);return r(e,t,function(){return a.next().map(function(e){return{container:e,offset:0}})},o).getOrNull()};return{backwards:o,forwards:i}},pd="_mce_caret",vd=function(e){return No.isElement(e)&&e.id===pd},yd=function(e,t){for(;t&&t!==e;){if(t.id===pd)return t;t=t.parentNode}return null},bd=No.isElement,Cd=No.isText,wd=function(e){var t=e.parentNode;t&&t.removeChild(e)},xd=function(e){try{return e.nodeValue}catch(t){return""}},Ed=function(e,t){0===t.length?wd(e):e.nodeValue=t},zd=function(e){var t=ml.trim(e);return{count:e.length-t.length,text:t}},kd=function(e,t){return Bd(e),t},Nd=function(e,t){var n=zd(e.data.substr(0,t.offset())),r=zd(e.data.substr(t.offset())),o=n.text+r.text;return o.length>0?(Ed(e,o),Mf(e,t.offset()-n.count)):t},Sd=function(e,t){var n=t.container(),r=dt(Mt(n.childNodes),e).map(function(e){return e")},Hd=function(e){return e.getParam("document_base_url","")},Ld=function(e){return _d(e,"body_id","tinymce")},Id=function(e){return _d(e,"body_class","")},Vd=function(e){return e.getParam("content_security_policy","")},Fd=function(e){return e.getParam("br_in_pre",!0)},Ud=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return t===!1?"":t===!0?"p":t},jd=function(e){return e.getParam("forced_root_block_attrs",{})},qd=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},$d=function(e){return e.getParam("no_newline_selector","")},Wd=function(e){return e.getParam("keep_styles",!0)},Kd=function(e){return e.getParam("end_container_on_empty_block",!1)},Xd=function(e){return ea.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Yd=function(e){return ea.explode(e.getParam("font_size_classes",""))},Gd=function(e){return e.getParam("images_dataimg_filter",U(!0),"function")},Zd=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Jd=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Qd=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},eh=function(e){return e.getParam("icons","","string")},th=function(e){return e.getParam("icons_url","","string")},nh=function(e){return e.getParam("images_upload_url","","string")},rh=function(e){return e.getParam("images_upload_base_path","","string")},oh=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},ih=function(e){return e.getParam("images_upload_handler",null,"function")},ah=function(e){return e.getParam("content_css_cors",!1,"boolean")},uh=function(e){return e.getParam("referrer_policy","","string")},ch=function(e){return e.getParam("language","en","string")},sh=function(e){return e.getParam("language_url","","string")},lh=function(e){return e.getParam("indent_use_margin",!1)},fh=function(e){return e.getParam("indentation","40px","string")},dh=function(e){var t=e.settings.content_css;return tt(t)?gt(t.split(","),On):rt(t)?t:t===!1||e.inline?[]:["default"]},hh=function(e){return e.getParam("directionality",zs.isRtl()?"rtl":void 0)},mh=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},gh=function(e){return e.getParam("object_resizing")},ph=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},vh=function(e){return e.getParam("placeholder",Md.getAttrib(e.getElement(),"placeholder"),"string")},yh={getIframeAttrs:Pd,getDocType:Od,getDocumentBaseUrl:Hd,getBodyId:Ld,getBodyClass:Id,getContentSecurityPolicy:Vd,shouldPutBrInPre:Fd,getForcedRootBlock:Ud,getForcedRootBlockAttrs:jd,getBrNewLineSelector:qd,getNoNewLineSelector:$d,shouldKeepStyles:Wd,shouldEndContainerOnEmptyBlock:Kd,getFontStyleValues:Xd,getFontSizeClasses:Yd,getIconPackName:eh,getIconsUrl:th,getImagesDataImgFilter:Gd,isAutomaticUploadsEnabled:Zd,shouldReuseFileName:Jd,shouldReplaceBlobUris:Qd,getImageUploadUrl:nh,getImageUploadBasePath:rh,getImagesUploadCredentials:oh,getImagesUploadHandler:ih,shouldUseContentCssCors:ah,getReferrerPolicy:uh,getLanguageCode:ch,getLanguageUrl:sh,shouldIndentUseMargin:lh,getIndentation:fh,getContentCss:dh,getDirectionality:hh,getInlineBoundarySelector:mh,getObjectResizing:gh,getResizeImgProportional:ph,getPlaceholder:vh},bh=Xn().browser,Ch=No.isContentEditableFalse,wh=function(e){return No.isElement(e)&&/^(TD|TH)$/i.test(e.tagName)},xh=function(e,t,n){var r,o,i,a,u,c=Xl(t.getBoundingClientRect(),n);return"BODY"===e.tagName?(r=e.ownerDocument.documentElement,o=e.scrollLeft||r.scrollLeft,i=e.scrollTop||r.scrollTop):(u=e.getBoundingClientRect(),o=e.scrollLeft-u.left,i=e.scrollTop-u.top),c.left+=o,c.right+=o,c.top+=i,c.bottom+=i,c.width=1,a=t.offsetWidth-t.clientWidth,a>0&&(n&&(a*=-1),c.left+=a,c.right+=a),c},Eh=function(e){var t,n,r,o,i;for(t=Kc("*[contentEditable=false]",e),o=0;o0?u:"p",s=function(e,r){var o,u;if(l(),wh(r))return null;if(!n(r))return i=wl(r,e),u=r.ownerDocument.createRange(),Ch(i.nextSibling)?(u.setStart(i,0),u.setEnd(i,0)):(u.setStart(i,1),u.setEnd(i,1)),u;i=kl(c,r,e),o=xh(t,r,e),Kc(i).css("top",o.top);var s=Kc('
    ').css(o).appendTo(t)[0];return a.set(J.some({caret:s,element:r,before:e})),a.get().each(function(t){e&&Kc(t.caret).addClass("mce-visual-caret-before")}),f(),u=r.ownerDocument.createRange(),u.setStart(i,0),u.setEnd(i,0),u},l=function(){Eh(t),i&&(Dd.remove(i),i=null),a.get().each(function(e){Kc(e.caret).remove(),a.set(J.none())}),wi.clearInterval(o)},f=function(){o=wi.setInterval(function(){r()?Kc("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Kc("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")},500)},d=function(){a.get().each(function(e){var n=xh(t,e.element,e.before);Kc(e.caret).css($t({},n))})},h=function(){return wi.clearInterval(o)},m=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:s,hide:l,getCss:m,reposition:d,destroy:h}},kh=function(){return bh.isIE()||bh.isEdge()||bh.isFirefox()},Nh=function(e){return Ch(e)||No.isTable(e)&&kh()},Sh=No.isContentEditableFalse,Th=No.matchStyleValues("display","block table table-cell table-caption list-item"),Ah=bl,Rh=vl,Bh=No.isElement,Dh=Il,Mh=function(e){return e>0},_h=function(e){return 0>e},Ph=function(e,t){for(var n;n=e(t);)if(!Rh(n))return n;return null},Oh=function(e,t,n,r,o){var i=new Xc(e,r);if(_h(t)){if((Sh(e)||Rh(e))&&(e=Ph(i.prev,!0),n(e)))return e;for(;e=Ph(i.prev,o);)if(n(e))return e}if(Mh(t)){if((Sh(e)||Rh(e))&&(e=Ph(i.next,!0),n(e)))return e;for(;e=Ph(i.next,o);)if(n(e))return e}return null},Hh=function(e,t){for(;e&&e!==t;){if(Th(e))return e;e=e.parentNode}return null},Lh=function(e,t,n){return Hh(e.container(),n)===Hh(t.container(),n)},Ih=function(e,t){var n,r;return t?(n=t.container(),r=t.offset(),Bh(n)?n.childNodes[r+e]:null):null},Vh=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},Fh=function(e,t,n){return Hh(t,e)===Hh(n,e)},Uh=function(e,t,n){var r,o;for(o=e?"previousSibling":"nextSibling";n&&n!==t;){if(r=n[o],Ah(r)&&(r=r[o]),Sh(r)){if(Fh(t,r,n))return r;break}if(Dh(r))break;n=n.parentNode}return null},jh=t(Vh,!0),qh=t(Vh,!1),$h=function(e,n,r){var o,i,a,u,c=t(Uh,!0,n),s=t(Uh,!1,n);if(i=r.startContainer,a=r.startOffset,vl(i)){if(Bh(i)||(i=i.parentNode),u=i.getAttribute("data-mce-caret"),"before"===u&&(o=i.nextSibling,Nh(o)))return jh(o);if("after"===u&&(o=i.previousSibling,Nh(o)))return qh(o)}if(!r.collapsed)return r;if(No.isText(i)){if(Ah(i)){if(1===e){if(o=s(i))return jh(o);if(o=c(i))return qh(o)}if(-1===e){if(o=c(i))return qh(o);if(o=s(i))return jh(o)}return r}if(Sl(i)&&a>=i.data.length-1)return 1===e&&(o=s(i))?jh(o):r;if(Nl(i)&&1>=a)return-1===e&&(o=c(i))?qh(o):r;if(a===i.data.length)return o=s(i),o?jh(o):r;if(0===a)return o=c(i),o?qh(o):r}return r},Wh=function(e,t){return J.from(Ih(e?0:-1,t)).filter(Sh)},Kh=function(e,t,n){var r=$h(e,t,n);return-1===e?N.fromRangeStart(r):N.fromRangeEnd(r)},Xh=function(e){return J.from(e.getNode()).map(Zt.fromDom)},Yh=function(e){return J.from(e.getNode(!0)).map(Zt.fromDom)},Gh=function(e,t){for(;t=e(t);)if(t.isVisible())return t;return t},Zh=function(e,t){var n=Lh(e,t);return!n&&No.isBr(e.getNode())?!0:n};!function(e){e[e.Backwards=-1]="Backwards",e[e.Forwards=1]="Forwards"}(Df||(Df={}));var Jh=No.isContentEditableFalse,Qh=No.isText,em=No.isElement,tm=No.isBr,nm=Il,rm=ql,om=$l,im=function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n},am=function(e,t){return e.hasChildNodes()&&t0)return Mf(c,--s);if(Mh(e)&&s0&&(o=am(c,s-1),nm(o)))return!rm(o)&&(i=Oh(o,e,om,o))?Qh(i)?Mf(i,i.data.length):Mf.after(i):Qh(o)?Mf(o,o.data.length):Mf.before(o);if(Mh(e)&&s=1;o--){if(u=i.childNodes,Pm(s,i,r))return!0;if(c[o]>u.length-1)return Pm(s,i,r)?!0:_m(i,r);i=u[c[o]]}3===i.nodeType&&(a=Math.min(c[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(c[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return!0},Hm=function(e){return No.isText(e)&&e.data.length>0},Lm=function(e,t,n){var r,o,i,a,u,c,s=e.get(n.id+"_"+t),l=n.keep;if(s){if(r=s.parentNode,"start"===t?(l?s.hasChildNodes()?(r=s.firstChild,o=1):Hm(s.nextSibling)?(r=s.nextSibling,o=0):Hm(s.previousSibling)?(r=s.previousSibling,o=s.previousSibling.data.length):(r=s.parentNode,o=e.nodeIndex(s)+1):o=e.nodeIndex(s),u=r,c=o):(l?s.hasChildNodes()?(r=s.firstChild,o=1):Hm(s.previousSibling)?(r=s.previousSibling,o=s.previousSibling.data.length):(r=s.parentNode,o=e.nodeIndex(s)):o=e.nodeIndex(s),u=r,c=o),!l){for(a=s.previousSibling,i=s.nextSibling,ea.each(ea.grep(s.childNodes),function(e){No.isText(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))});s=e.get(n.id+"_"+t);)e.remove(s,!0);a&&i&&a.nodeType===i.nodeType&&No.isText(a)&&!Ri.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),"start"===t?(u=a,c=o):(u=a,c=o))}return J.some(Mf(u,c))}return J.none()},Im=function(e,t){var n=e.createRng();return Om(e,!0,t,n)&&Om(e,!1,t,n)?J.some(n):J.none()},Vm=function(e,t){var n=Lm(e,"start",t),r=Lm(e,"end",t);return of(n,r.or(n),function(t,n){var r=e.createRng();return r.setStart(Rm(e,t.container()),t.offset()),r.setEnd(Rm(e,n.container()),n.offset()),r})},Fm=function(e,t){return J.from(e.select(t.name)[t.index]).map(function(t){var n=e.createRng();return n.selectNode(t),n})},Um=function(e,t){var n=e.dom;if(t){if(Am(t))return Im(n,t);if(km(t))return J.some(Bm(n,t));if(Sm(t))return Vm(n,t);if(Tm(t))return Fm(n,t);if(Nm(t))return J.some(t.rng)}return J.none()},jm={resolve:Um},qm=function(e,t,n){return hd.getBookmark(e,t,n)},$m=function(e,t){jm.resolve(e,t).each(function(t){e.setRng(t)})},Wm=function(e){return No.isElement(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Km={getBookmark:qm,moveToBookmark:$m,isBookmarkNode:Wm},Xm=function(e){return function(t){return e===t}},Ym=Xm(yu),Gm=function(e){return""!==e&&-1!==" \f\n\r ".indexOf(e)},Zm=function(e){return!Gm(e)&&!Ym(e)},Jm=function(e){return!!e.nodeType},Qm=function(e){return e&&/^(IMG)$/.test(e.nodeName)},eg=function(e,t,n){var r,o,i,a=n.startOffset,u=n.startContainer;if((n.startContainer!==n.endContainer||!Qm(n.startContainer.childNodes[n.startOffset]))&&1===u.nodeType)for(i=u.childNodes,a=0:i0:i=n.length?t=n.length-1:0>t&&(t=0),n[t]||e},Tg=function(e,t){return Sg(e,t-1)},Ag=function(e,t,n){var r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=e.select("td[data-mce-selected],th[data-mce-selected]");if(u.length>0)return void Ng(u,function(e){n([e])});var c=function(e){var t;return t=e[0],3===t.nodeType&&t===r&&o>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===a&&e.length>0&&t===i&&3===t.nodeType&&e.splice(e.length-1,1),e},s=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},l=function(e,t){do{if(e.parentNode===t)return e;e=e.parentNode}while(e)},f=function(e,t,r){for(var o=r?"nextSibling":"previousSibling",i=e,a=i.parentNode;i&&i!==t;i=a){a=i.parentNode;var u=s(i===e?i:i[o],o);u.length&&(r||u.reverse(),n(c(u)))}};if(1===r.nodeType&&r.hasChildNodes()&&(r=Sg(r,o)),1===i.nodeType&&i.hasChildNodes()&&(i=Tg(i,a)),r===i)return n(c([r]));for(var d=e.findCommonAncestor(r,i),h=r;h;h=h.parentNode){if(h===i)return f(r,d,!0);if(h===d)break}for(var h=i;h;h=h.parentNode){if(h===r)return f(i,d);if(h===d)break}var m=l(r,d)||r,g=l(i,d)||i;f(r,m,!0);var p=s(m===r?m:m.nextSibling,"nextSibling",g===i?g.nextSibling:g);p.length&&n(c(p)),f(i,g)},Rg={walk:Ag},Bg=S(qr,"text"),Dg=function(e){return Bg.get(e)},Mg=function(e){return qr(e)&&Dg(e)===vu},_g=function(e,t,n,r){return br(t).fold(function(){return"skipping"},function(o){return"br"===r||Mg(t)?"valid":Gs(t)?"existing":vd(t)?"caret":rg(e,n,r)&&rg(e,Vr(o),n)?"valid":"invalid-child"})},Pg=function(e,t){var n=kg(e,t,[{inline:!0}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Og=function(e,t,n,o){var i=t.uid,a=void 0===i?rl("mce-annotation"):i,u=r(t,["uid"]),c=Zt.fromTag("span",e);Ps(c,Ws()),Ao(c,""+Xs(),a),Ao(c,""+Ks(),n);var s=o(a,u),l=s.attributes,f=void 0===l?{}:l,d=s.classes,h=void 0===d?[]:d;return Ro(c,f),ol(c,h),c},Hg=function(e,t,n,r,o){var i=[],a=Og(e.getDoc(),o,n,r),u=Jt(J.none()),c=function(){u.set(J.none())},s=function(){return u.get().getOrThunk(function(){var e=sl(a);return i.push(e),u.set(J.some(e)),e})},l=function(e){pt(e,f)},f=function(t){var n=_g(e,t,"span",Vr(t));switch(n){case"invalid-child":c();var r=kr(t);l(r),c();break;case"valid":var o=s();_r(t,o)}},d=function(e){var t=gt(e,Zt.fromDom);l(t)};return Rg.walk(e.dom,t,function(e){c(),d(e)}),i},Lg=function(e,t,n,r){e.undoManager.transact(function(){var o=e.selection.getRng();if(o.collapsed&&Pg(e,o),e.selection.getRng().collapsed){var i=Og(e.getDoc(),r,t,n.decorate);ul(i,yu),e.selection.getRng().insertNode(i.dom()),e.selection.select(i.dom())}else{var a=hd.getPersistentBookmark(e.selection,!1),u=e.selection.getRng();Hg(e,u,t,n.decorate,r),e.selection.moveToBookmark(a)}})},Ig=function(e){var t=tl();el(e,t);var n=Qs(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each(function(t){Lg(e,n,t,r)})},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){Ys(e,J.some(t)).each(function(e){var t=e.elements;pt(t,Ir)})},getAll:function(t){var n=Js(e,t);return Ht(n,function(e){return gt(e,function(e){return e.dom()})})}}},Vg=/^[ \t\r\n]*$/,Fg={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ug=function(e,t,n){var r=n?"lastChild":"firstChild",o=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[o];if(i)return i;for(var a=e.parent;a&&a!==t;a=a.parent)if(i=a[o])return i}},jg=function(e){if(!Vg.test(e.value))return!1;var t=e.parent;return t&&("span"!==t.name||t.attr("style"))&&/^[ ]+$/.test(e.value)?!1:!0},qg=function(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},$g=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,Fg[t]||1);if(n)for(var o in n)r.attr(o,n[o]);return r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!=typeof e){for(var o in e)r.attr(o,e[o]);return r}if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];for(var i=n.length;i--;)if(n[i].name===e)return n.splice(i,1),r}return r}if(e in n.map){for(var i=n.length;i--;)if(n[i].name===e){n[i].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var o=[];o.map={};for(var i=0,a=t.length;a>i;i++){var u=t[i];"id"!==u.name&&(o[o.length]={name:u.name,value:u.value},o.map[u.name]=u.value)}r.attributes=o}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e -},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=Ug(r,t))r.name===e&&n.push(r);return n},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=Ug(n,e))t.push(n);for(var r=t.length;r--;){var n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,o=r.firstChild;if(qg(r))return!1;if(o)do{if(1===o.type){if(o.attr("data-mce-bogus"))continue;if(e[o.name])return!1;if(qg(o))return!1}if(8===o.type)return!1;if(3===o.type&&!jg(o))return!1;if(3===o.type&&o.parent&&t[o.parent.name]&&Vg.test(o.value))return!1;if(n&&n(o))return!1}while(o=Ug(o,r));return!0},e.prototype.walk=function(e){return Ug(this,null,e)},e}(),Wg=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},Kg=function(e,t){return e.allow_html_data_urls?!1:/^data:image\//i.test(t)?e.allow_svg_data_urls===!1&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t)},Xg=function(e,t,n){var r,o,i,a,u=1;for(a=e.getShortEndedElements(),i=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g,i.lastIndex=r=n;o=i.exec(t);){if(r=i.lastIndex,"/"===o[1])u--;else if(!o[1]){if(o[2]in a)continue;u++}if(0===u)break}return r},Yg=function(e,t){return/^\s*\[if [\w\W]+\]>.*/.test(e.substr(t))},Gg=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&Yg(r,n)){var o=r.indexOf("[endif]",n);return r.indexOf(">",o)}if(t){var i=r.indexOf(">",n);return-1!==i?i:r.length}var a=/--!?>/;a.lastIndex=n;var u=a.exec(e);return u?u.index+u[0].length:r.length},Zg=function(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null};!function(e){e.findEndTag=Xg}(T||(T={}));var Jg,Qg=T,ep=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},tp=function(e,t){var n,r,o,i,a,u=t,c=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,s=e.schema;for(u=ep(e.getTempAttrs(),u),a=s.getShortEndedElements();i=c.exec(u);)r=c.lastIndex,o=i[0].length,n=a[i[1]]?r:Qg.findEndTag(s,u,r),u=u.substring(0,r-o)+u.substring(n),c.lastIndex=r-o;return ml.trim(u)},np=tp,rp={trimExternal:np,trimInternal:tp},op="html",ip=function(e,t){var n=yh.getForcedRootBlock(e),r=new RegExp("^(<"+n+"[^>]*>( | |\\s| |
    |)<\\/"+n+">[\r\n]*|
    [\r\n]*)$");return t.replace(r,"")},ap=function(e,t,n){var r;if(t.format=t.format?t.format:op,t.get=!0,t.getInner=!0,t.no_events||e.fire("BeforeGetContent",t),"raw"===t.format)r=ea.trim(rp.trimExternal(e.serializer,n.innerHTML));else if("text"===t.format)r=ml.trim(n.innerText||n.textContent);else{if("tree"===t.format)return e.serializer.serialize(n,t);r=ip(e,e.serializer.serialize(n,t))}return t.content="text"===t.format||xa(Zt.fromDom(n))?r:ea.trim(r),t.no_events||e.fire("GetContent",t),t.content},up=function(e,t){return void 0===t&&(t={}),J.from(e.getBody()).fold(U("tree"===t.format?new $g("body",11):""),function(n){return ap(e,t,n)})},cp=ea.makeMap,sp=function(e){var t,n,r,o,i,a=[];return e=e||{},t=e.indent,n=cp(e.indent_before||""),r=cp(e.indent_after||""),o=au.getEncodeFunc(e.entity_encoding||"raw",e.entities),i="html"===e.element_format,{start:function(e,u,c){var s,l,f,d;if(t&&n[e]&&a.length>0&&(d=a[a.length-1],d.length>0&&"\n"!==d&&a.push("\n")),a.push("<",e),u)for(s=0,l=u.length;l>s;s++)f=u[s],a.push(" ",f.name,'="',o(f.value,!0),'"');a[a.length]=!c||i?">":" />",c&&t&&r[e]&&a.length>0&&(d=a[a.length-1],d.length>0&&"\n"!==d&&a.push("\n"))},end:function(e){var n;a.push(""),t&&r[e]&&a.length>0&&(n=a[a.length-1],n.length>0&&"\n"!==n&&a.push("\n"))},text:function(e,t){e.length>0&&(a[a.length]=t?e:o(e))},cdata:function(e){a.push("")},comment:function(e){a.push("")},pi:function(e,n){n?a.push(""):a.push(""),t&&a.push("\n")},doctype:function(e){a.push("",t?"\n":"")},reset:function(){a.length=0},getContent:function(){return a.join("").replace(/\n$/,"")}}},lp=function(e,t){void 0===t&&(t=a());var n=sp(e);e=e||{},e.validate="validate"in e?e.validate:!0;var r=function(r){var o,i;i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do a(e);while(e=e.next)}},n.reset();var a=function(e){var r,u,c,s,l,f,d,h,m,g=o[e.type];if(g)g(e);else{if(r=e.name,u=e.shortEnded,c=e.attributes,i&&c&&c.length>1&&(f=[],f.map={},m=t.getElementRule(e.name))){for(d=0,h=m.attributesOrder.length;h>d;d++)s=m.attributesOrder[d],s in c.map&&(l=c.map[s],f.map[s]=l,f.push({name:s,value:l}));for(d=0,h=c.length;h>d;d++)s=c[d].name,s in f.map||(l=c.map[s],f.map[s]=l,f.push({name:s,value:l}));c=f}if(n.start(e.name,c,u),!u){if(e=e.firstChild)do a(e);while(e=e.next);n.end(r)}}};return 1!==r.type||e.inner?o[11](r):a(r),n.getContent()};return{serialize:r}},fp=function(e,t){t(e),e.firstChild&&fp(e.firstChild,t),e.next&&fp(e.next,t)},dp=function(e,t,n){var r={},o={},i=[];n.firstChild&&fp(n.firstChild,function(n){pt(e,function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})}),pt(t,function(e){"string"==typeof n.attr(e.name)&&(o[e.name]?o[e.name].nodes.push(n):o[e.name]={filter:e,nodes:[n]})})});for(var a in r)r.hasOwnProperty(a)&&i.push(r[a]);for(var u in o)o.hasOwnProperty(u)&&i.push(o[u]);return i},hp=function(e,t,n){var r=dp(e,t,n);pt(r,function(e){pt(e.filter.callbacks,function(t){t(e.nodes,e.filter.name,{})})})},mp=function(e){var t=pr(e).dom();return e.dom()===t.activeElement},gp=function(t){var n=void 0!==t?t.dom():e.document;return J.from(n.activeElement).map(Zt.fromDom)},pp=function(e){return gp(pr(e)).filter(function(t){return e.dom().contains(t.dom())})},vp=function(t){if(!rt(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var n=[],r={};return pt(t,function(o,i){var a=_t(o);if(1!==a.length)throw new Error("one and only one name per case");var u=a[0],c=o[u];if(void 0!==r[u])throw new Error("duplicate key detected:"+u);if("cata"===u)throw new Error("cannot have a case named cata (sorry)");if(!rt(c))throw new Error("case arguments must be an array");n.push(u),r[u]=function(){var r=arguments.length;if(r!==c.length)throw new Error("Wrong number of arguments to case "+u+". Expected "+c.length+" ("+c+"), got "+r);for(var o=new Array(r),a=0;an?n:0>e?0:e},Ip=function(e){return Op.range(e.start(),Lp(e.soffset(),e.start()),e.finish(),Lp(e.foffset(),e.finish()))},Vp=function(e,t){return!No.isRestrictedNode(t.dom())&&(gr(e,t)||fr(e,t))},Fp=function(e){return function(t){return Vp(e,t.start())&&Vp(e,t.finish())}},Up=function(e){return e.inline===!0||Hp.isIE()},jp=function(e){return Op.range(Zt.fromDom(e.startContainer),e.startOffset,Zt.fromDom(e.endContainer),e.endOffset)},qp=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?J.from(t.getRangeAt(0)):J.none();return n.map(jp)},$p=function(e){var t=yr(e);return qp(t.dom()).filter(Fp(e))},Wp=function(e,t){return J.from(t).filter(Fp(e)).map(Ip)},Kp=function(t){var n=e.document.createRange();try{return n.setStart(t.start().dom(),t.soffset()),n.setEnd(t.finish().dom(),t.foffset()),J.some(n)}catch(r){return J.none()}},Xp=function(e){var t=Up(e)?$p(Zt.fromDom(e.getBody())):J.none();e.bookmark=t.isSome()?t:e.bookmark},Yp=function(e,t){var n=Zt.fromDom(e.getBody()),r=Up(e)?J.from(t):J.none(),o=r.map(jp).filter(Fp(n));e.bookmark=o.isSome()?o:e.bookmark},Gp=function(e){var t=e.bookmark?e.bookmark:J.none();return t.bind(function(t){return Wp(Zt.fromDom(e.getBody()),t)}).bind(Kp)},Zp=function(e){Gp(e).each(function(t){e.selection.setRng(t)})},Jp={store:Xp,storeNative:Yp,readRange:qp,restore:Zp,getRng:Gp,getBookmark:$p,validate:Wp},Qp=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},ev={isEditorUIElement:Qp},tv=function(e){return"nodechange"===e.type&&e.selectionChange},nv=function(t,n){var r=function(){n.throttle()};rs.DOM.bind(e.document,"mouseup",r),t.on("remove",function(){rs.DOM.unbind(e.document,"mouseup",r)})},rv=function(e){e.on("focusout",function(){Jp.store(e)})},ov=function(e,t){e.on("mouseup touchend",function(){t.throttle()})},iv=function(e,t){var n=Xn().browser;n.isIE()?rv(e):ov(e,t),e.on("keyup NodeChange",function(t){tv(t)||Jp.store(e)})},av=function(e){var t=Ns(function(){Jp.store(e)},0);e.on("init",function(){e.inline&&nv(e,t),iv(e,t)}),e.on("remove",function(){t.cancel()})},uv={register:av},cv=rs.DOM,sv=function(e){return ev.isEditorUIElement(e)},lv=function(e){var t=e.classList;return void 0!==t?t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"):!1},fv=function(e,t){var n=e?e.settings.custom_ui_selector:"",r=cv.getParent(t,function(t){return sv(t)||(n?e.dom.is(t,n):!1)});return null!==r},dv=function(){try{return e.document.activeElement}catch(t){return e.document.body}},hv=function(t,n){var r=n.editor;uv.register(r),r.on("focusin",function(){var e=this,n=t.focusedEditor;n!==e&&(n&&n.fire("blur",{focusedEditor:e}),t.setActive(e),t.focusedEditor=e,e.fire("focus",{blurredEditor:n}),e.focus(!0))}),r.on("focusout",function(){var e=this;wi.setEditorTimeout(e,function(){var n=t.focusedEditor;fv(e,dv())||n!==e||(e.fire("blur",{focusedEditor:null}),t.focusedEditor=null)})}),Jg||(Jg=function(n){var r,o=t.activeEditor;r=n.target,o&&r.ownerDocument===e.document&&(r===e.document.body||fv(o,r)||t.focusedEditor!==o||(o.fire("blur",{focusedEditor:null}),t.focusedEditor=null))},cv.bind(e.document,"focusin",Jg))},mv=function(t,n){t.focusedEditor===n.editor&&(t.focusedEditor=null),t.activeEditor||(cv.unbind(e.document,"focusin",Jg),Jg=null)},gv=function(e){e.on("AddEditor",t(hv,e)),e.on("RemoveEditor",t(mv,e))},pv={setup:gv,isEditorUIElement:sv,isEditorContentAreaElement:lv,isUIElement:fv},vv=function(e,t){return e.dom.getParent(t,function(t){return"true"===e.dom.getContentEditable(t)})},yv=function(e){return e.collapsed?J.from(tf(e.startContainer,e.startOffset)).map(Zt.fromDom):J.none()},bv=function(e,t){return yv(t).bind(function(t){return Ca(t)?J.some(t):gr(e,t)===!1?J.some(e):J.none()})},Cv=function(e,t){bv(Zt.fromDom(e.getBody()),t).bind(function(e){return zm.firstPositionIn(e.dom())}).fold(function(){e.selection.normalize()},function(t){return e.selection.setRng(t.toRange())})},wv=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},xv=function(e){return mp(e)||pp(e).isSome()},Ev=function(e){return e.iframeElement&&mp(Zt.fromDom(e.iframeElement))},zv=function(e){var t=e.getBody();return t&&xv(Zt.fromDom(t))},kv=function(e){return gp().filter(function(t){return!pv.isEditorContentAreaElement(t.dom())&&pv.isUIElement(e,t.dom())}).isSome()},Nv=function(e){return e.inline?zv(e):Ev(e)},Sv=function(e){return Nv(e)||kv(e)},Tv=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&Nv(e)===!1&&Jp.getRng(e).each(function(t){e.selection.setRng(t),r=t});var o=vv(e,t.getNode());return e.$.contains(n,o)?(wv(o),Cv(e,r),void Av(e)):(e.inline||(Ri.opera||wv(n),e.getWin().focus()),(Ri.gecko||e.inline)&&(wv(n),Cv(e,r)),void Av(e))},Av=function(e){return e.editorManager.setActive(e)},Rv=function(e,t){e.removed||(t?Av(e):Tv(e))},Bv={focus:Rv,hasFocus:Nv,hasEditorOrUiFocus:Sv},Dv="html",Mv=function(e){return e instanceof $g},_v=function(e){Bv.hasFocus(e)&&zm.firstPositionIn(e.getBody()).each(function(t){var n=t.getNode(),r=No.isTable(n)?zm.firstPositionIn(n).getOr(t):t;e.selection.setRng(r.toRange())})},Pv=function(e,t){e.dom.setHTML(e.getBody(),t),_v(e)},Ov=function(e,t,n,r){var o,i;return 0===n.length||/^\s+$/.test(n)?(i='
    ',"TABLE"===t.nodeName?n=""+i+"":/^(UL|OL)$/.test(t.nodeName)&&(n="
  • "+i+"
  • "),o=yh.getForcedRootBlock(e),o&&e.schema.isValidChild(t.nodeName.toLowerCase(),o.toLowerCase())?(n=i,n=e.dom.createHTML(o,e.settings.forced_root_block_attrs,n)):n||(n='
    '),Pv(e,n),e.fire("SetContent",r)):("raw"!==r.format&&(n=lp({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=xa(Zt.fromDom(t))?n:ea.trim(n),Pv(e,r.content),r.no_events||e.fire("SetContent",r)),r.content},Hv=function(e,t,n,r){hp(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=lp({validate:e.validate},e.schema).serialize(n);return r.content=xa(Zt.fromDom(t))?o:ea.trim(o),Pv(e,r.content),r.no_events||e.fire("SetContent",r),n},Lv=function(e,t,n){return void 0===n&&(n={}),n.format=n.format?n.format:Dv,n.set=!0,n.content=Mv(t)?"":t,Mv(t)||n.no_events||(e.fire("BeforeSetContent",n),t=n.content),J.from(e.getBody()).fold(U(t),function(r){return Mv(t)?Hv(e,r,t,n):Ov(e,r,t,n)})},Iv=function(e,t){return e.fire("PreProcess",t)},Vv=function(e,t){return e.fire("PostProcess",t)},Fv=function(e){return e.fire("remove")},Uv=function(e){return e.fire("detach")},jv=function(e,t){return e.fire("SwitchMode",{mode:t})},qv=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},$v=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},Wv=function(e){return e.fire("PreInit")},Kv=function(e){return e.fire("PostRender")},Xv=function(e){return e.fire("Init")},Yv=function(e,t){return e.fire("PlaceholderToggle",{state:t})},Gv=function(e,t,n){return e.fire(t,n)},Zv=rs.DOM,Jv=function(e){Zv.setStyle(e.id,"display",e.orgDisplay)},Qv=function(e){return J.from(e).each(function(e){return e.destroy()})},ey=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},ty=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),Zv.unbind(t,"submit reset",e.formEventDelegate))},ny=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&Zv.remove(o.nextSibling),Fv(e),e.editorManager.remove(e),!e.inline&&r&&Jv(e),Uv(e),Zv.remove(e.getContainer()),Qv(t),Qv(n),e.destroy()}},ry=function(e,t){var n=e.selection,r=e.dom;if(!e.destroyed){if(!t&&!e.removed)return void e.remove();t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),Qv(n),Qv(r)),ty(e),ey(e),e.destroyed=!0}},oy=Object.prototype.hasOwnProperty,iy=function(e,t){var n=nt(e)&&nt(t);return n?uy(e,t):t},ay=function(e){return function(){for(var t=new Array(arguments.length),n=0;n0})},py=function(e){return bt(e,t(ht,hy))},vy=function(e,t){var n=Ft(t,function(t,n){return ht(e,n)});return cy(n.t,n.f)},yy=function(e,t,n){void 0===n&&(n={});var r=e.sections(),o=r.hasOwnProperty(t)?r[t]:{};return ea.extend({},n,o)},by=function(e,t){return e.sections().hasOwnProperty(t)},Cy=function(e,t,n){var r=e.sections();return by(e,t)&&r[t].theme===n},wy=function(e,t){return by(e,t)?e.sections()[t]:{}},xy=function(e,t){return jt(e,"toolbar_mode").orThunk(function(){return jt(e,"toolbar_drawer").map(function(e){return e===!1?"wrap":e})}).getOr(t)},Ey=function(e,t,n,r,o){var i={id:t,theme:"silver",toolbar_mode:xy(e,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:o.convertURL,url_converter_scope:o};return $t($t({},i),r?my:{})},zy=function(e,t){var n={resize:!1,toolbar_mode:xy(e,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return $t($t($t({},my),n),t?r:{})},ky=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?ea.extend({},e.external_plugins,n):n},Ny=function(e,t){return[].concat(gy(e)).concat(gy(t))},Sy=function(e,t,n,r){var o=gy(n.forced_plugins),i=gy(r.plugins),a=wy(t,"mobile"),u=a.plugins?gy(a.plugins):i,c=e&&Cy(t,"mobile","mobile")?py(u):e&&by(t,"mobile")?u:i,s=Ny(o,c);return ea.extend(r,{plugins:s.join(" ")})},Ty=function(e,t){return e&&by(t,"mobile")},Ay=function(e,t,n,r,o){var i=e?{mobile:zy(o,t)}:{},a=vy(["mobile"],uy(i,o)),u=ea.extend(n,r,a.settings(),Ty(e,a)?yy(a,"mobile"):{},{validate:!0,external_plugins:ky(r,a.settings())});return Sy(e,a,r,u)},Ry=function(e,t,n,r,o){var i=Ey(o,t,n,ly,e);return Ay(fy||dy,fy,i,r,o)},By=function(e,t,n){return J.from(t.settings[n]).filter(e)},Dy=function(e){var t={};return"string"==typeof e?pt(e.split(e.indexOf("=")>0?/[;,](?![^=;,]*(?:[;,]|$))/:","),function(e){var n=e.split("=");t[ea.trim(n[0])]=ea.trim(n.length>1?n[1]:n[0])}):t=e,t},My=function(e){return function(t){return rt(t)&&Nt(t,e)}},_y=function(e,t,n,r){var o=t in e.settings?e.settings[t]:n;return"hash"===r?Dy(o):"string"===r?By(tt,e,t).getOr(n):"number"===r?By(ut,e,t).getOr(n):"boolean"===r?By(it,e,t).getOr(n):"object"===r?By(nt,e,t).getOr(n):"array"===r?By(rt,e,t).getOr(n):"string[]"===r?By(My(tt),e,t).getOr(n):"function"===r?By(at,e,t).getOr(n):o},Py=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return qt(e,t)};return{add:t,get:n,has:r}},Oy=Py(),Hy=function(e,t){var n=t.dom();return n[e]},Ly=function(e,t){return parseInt(Po(t,e),10)},Iy=t(Hy,"clientWidth"),Vy=t(Hy,"clientHeight"),Fy=t(Ly,"margin-top"),Uy=t(Ly,"margin-left"),jy=function(e){return e.dom().getBoundingClientRect()},qy=function(e,t,n){var r=Iy(e),o=Vy(e);return t>=0&&n>=0&&r>=t&&o>=n},$y=function(e,t,n,r){var o=jy(t),i=e?o.left+t.dom().clientLeft+Uy(t):0,a=e?o.top+t.dom().clientTop+Fy(t):0,u=n-i,c=r-a;return{x:u,y:c}},Wy=function(e,t,n){var r=Zt.fromDom(e.getBody()),o=e.inline?r:vr(r),i=$y(e.inline,o,t,n);return qy(o,i.x,i.y)},Ky=function(e){return J.from(e).map(Zt.fromDom)},Xy=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return Ky(t).map(function(e){return gr(pr(e),e)}).getOr(!1)},Yy={isXYInContentArea:Wy,isEditorAttachedToDom:Xy},Gy=ks.PluginManager,Zy=ks.ThemeManager,Jy=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():B()},r=function(e,t){return function(){return t?t.apply(e,arguments):void 0}},o=function(t){e.fire("OpenWindow",{dialog:t})},i=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),o(e)},u=function(n){i(n),t=bt(t,function(e){return e!==n}),0===t.length&&e.focus()},c=function(){return J.from(t[t.length-1])},s=function(t){e.editorManager.setActive(e),Jp.store(e);var n=t();return a(n),n},l=function(e,t){return s(function(){return n().open(e,t,u)})},f=function(e){return s(function(){return n().openUrl(e,u)})},d=function(e,t,o){n().alert(e,r(o?o:this,t))},h=function(e,t,o){n().confirm(e,r(o?o:this,t))},m=function(){c().each(function(e){n().close(e),u(e)})};return e.on("remove",function(){pt(t,function(e){n().close(e)})}),{open:l,openUrl:f,alert:d,confirm:h,close:m}},Qy=function(e,t){e.notificationManager.open({type:"error",text:t})},eb=function(e,t){e._skinLoaded?Qy(e,t):e.on("SkinLoaded",function(){Qy(e,t)})},tb=function(e,t){eb(e,zs.translate(["Failed to upload image: {0}",t]))},nb=function(t,n,r){Gv(t,n,{message:r}),e.console.error(r)},rb=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},ob=function(e,t,n){nb(e,"PluginLoadError",rb("plugin",t,n))},ib=function(e,t,n){nb(e,"IconsLoadError",rb("icons",t,n))},ab=function(e,t,n){nb(e,"LanguageLoadError",rb("language",t,n))},ub=function(e,t,n){var r=zs.translate(["Failed to initialize plugin: {0}",t]);cb(r,n),eb(e,r)},cb=function(){for(var t=[],n=1;n',"action-next":'',"action-prev":'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-width":'',brightness:'',browse:'',cancel:'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',cut:'',"document-properties":'',drag:'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',fill:'',"flip-horizontally":'',"flip-vertically":'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',settings:'',sharpen:'',"sort-asc":'',"sort-dsc":'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',template:'',"temporary-placeholder":'',"text-color":'',toc:'',translate:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''} -},fb=function(e){return/^[a-z0-9\-]+$/i.test(e)},db=function(e){var t=yh.getContentCss(e),n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,o="content"+r+".css",i=e.inline===!0;return gt(t,function(t){return fb(t)&&!i?n+"/"+t+"/"+o:e.documentBaseURI.toAbsolute(t)})},hb=function(e){e.contentCSS=e.contentCSS.concat(db(e))};!function(e){e.isBookmarkNode=Km.isBookmarkNode}(D||(D={}));var mb=D,gb=function(e,t,n){if(n.collapsed)return!1;if(Ri.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(No.isElement(r))return mt(r.getClientRects(),function(n){return Ql(n,e,t)})}return mt(n.getClientRects(),function(n){return Ql(n,e,t)})},pb={isXYWithinRange:gb},vb={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return Ri.mac?e.metaKey:e.ctrlKey&&!e.altKey}},yb=No.isContentEditableFalse,bb=No.isContentEditableTrue,Cb=function(e,t){for(;t&&t!==e;){if(bb(t)||yb(t))return t;t=t.parentNode}return null},wb=function(t,n){var r,o,i,a,u,c,s,l,f,d,h,m,g,p,v,y,b,C=n.dom,w=ea.each,x=n.getDoc(),E=e.document,z=Math.abs,k=Math.round,N=n.getBody();a={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var S=function(e){return e&&("IMG"===e.nodeName||n.dom.is(e,"figure.image"))},T=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return S(e.target)&&!pb.isXYWithinRange(n.clientX,n.clientY,t)}return S(e.target)&&!pb.isXYWithinRange(e.clientX,e.clientY,t)},A=function(e){var t=e.target;T(e,n.selection.getRng())&&!e.isDefaultPrevented()&&n.selection.select(t)},R=function(e){return n.dom.is(e,"figure.image")?e.querySelector("img"):e},B=function(e){var t=yh.getObjectResizing(n);return t===!1||Ri.iOS?!1:("string"!=typeof t&&(t="table,img,figure.image,div"),"false"===e.getAttribute("data-mce-resize")?!1:e===n.getBody()?!1:ur(Zt.fromDom(e),t))},D=function(e){var t,a,w,x,E;t=e.screenX-c,a=e.screenY-s,p=t*u[2]+d,v=a*u[3]+h,p=5>p?5:p,v=5>v?5:v,w=S(r)&&yh.getResizeImgProportional(n)!==!1?!vb.modifierPressed(e):vb.modifierPressed(e),w&&(z(t)>z(a)?(v=k(p*m),p=k(v/m)):(p=k(v/m),v=k(p*m))),C.setStyles(R(o),{width:p,height:v}),x=u.startPos.x+t,E=u.startPos.y+a,x=x>0?x:0,E=E>0?E:0,C.setStyles(i,{left:x,top:E,display:"block"}),i.innerHTML=p+" × "+v,u[2]<0&&o.clientWidth<=p&&C.setStyle(o,"left",l+(d-p)),u[3]<0&&o.clientHeight<=v&&C.setStyle(o,"top",f+(h-v)),t=N.scrollWidth-y,a=N.scrollHeight-b,t+a!==0&&C.setStyles(i,{left:x-t,top:E-a}),g||(qv(n,r,d,h),g=!0)},M=function(){g=!1;var e=function(e,t){t&&(r.style[e]||!n.schema.isValid(r.nodeName.toLowerCase(),e)?C.setStyle(R(r),e,t):C.setAttrib(R(r),e,t))};e("width",p),e("height",v),C.unbind(x,"mousemove",D),C.unbind(x,"mouseup",M),E!==x&&(C.unbind(E,"mousemove",D),C.unbind(E,"mouseup",M)),C.remove(o),C.remove(i),_(r),$v(n,r,p,v),C.setAttrib(r,"style",C.getAttrib(r,"style")),n.nodeChanged()},_=function(e){var t,g,z,k,S;P(),L(),t=C.getPos(e,N),l=t.x,f=t.y,S=e.getBoundingClientRect(),g=S.width||S.right-S.left,z=S.height||S.bottom-S.top,r!==e&&(r=e,p=v=0),k=n.fire("ObjectSelected",{target:e}),B(e)&&!k.isDefaultPrevented()?w(a,function(e,t){var n,a=function(t){c=t.screenX,s=t.screenY,d=R(r).clientWidth,h=R(r).clientHeight,m=h/d,u=e,e.startPos={x:g*e[0]+l,y:z*e[1]+f},y=N.scrollWidth,b=N.scrollHeight,o=r.cloneNode(!0),C.addClass(o,"mce-clonedresizable"),C.setAttrib(o,"data-mce-bogus","all"),o.contentEditable=!1,o.unSelectabe=!0,C.setStyles(o,{left:l,top:f,margin:0}),o.removeAttribute("data-mce-selected"),N.appendChild(o),C.bind(x,"mousemove",D),C.bind(x,"mouseup",M),E!==x&&(C.bind(E,"mousemove",D),C.bind(E,"mouseup",M)),i=C.add(N,"div",{"class":"mce-resize-helper","data-mce-bogus":"all"},d+" × "+h)};n=C.get("mceResizeHandle"+t),n&&C.remove(n),n=C.add(N,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all","class":"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===Ri.ie&&(n.contentEditable=!1),C.bind(n,"mousedown",function(e){e.stopImmediatePropagation(),e.preventDefault(),a(e)}),e.elm=n,C.setStyles(n,{left:g*e[0]+l-n.offsetWidth/2,top:z*e[1]+f-n.offsetHeight/2})}):P(),r.setAttribute("data-mce-selected","1")},P=function(){var e,t;L(),r&&r.removeAttribute("data-mce-selected");for(e in a)t=C.get("mceResizeHandle"+e),t&&(C.unbind(t),C.remove(t))},O=function(e){var r,o,i=function(e,t){if(e)do if(e===t)return!0;while(e=e.parentNode)};return g||n.removed?void 0:(w(C.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),o="mousedown"===e.type?e.target:t.getNode(),o=C.$(o).closest("table,img,figure.image,hr")[0],i(o,N)&&(I(),r=t.getStart(!0),i(r,o)&&i(t.getEnd(!0),o))?void _(o):void P())},H=function(e){return yb(Cb(n.getBody(),e))},L=function(){for(var e in a){var t=a[e];t.elm&&(C.unbind(t.elm),delete t.elm)}},I=function(){try{n.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};n.on("init",function(){if(I(),Ri.browser.isIE()||Ri.browser.isEdge()){n.on("mousedown click",function(e){var t=e.target,r=t.nodeName;g||!/^(TABLE|IMG|HR)$/.test(r)||H(t)||(2!==e.button&&n.selection.select(t,"TABLE"===r),"mousedown"===e.type&&n.nodeChanged())});var e=function(e){var t=function(e){wi.setEditorTimeout(n,function(){return n.selection.select(e)})};return H(e.target)?(e.preventDefault(),void t(e.target)):void(/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&t(e.target)))};C.bind(N,"mscontrolselect",e),n.on("remove",function(){return C.unbind(N,"mscontrolselect",e)})}var t=wi.throttle(function(e){n.composing||O(e)});n.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",t),n.on("keyup compositionend",function(e){r&&"TABLE"===r.nodeName&&t(e)}),n.on("hide blur",P),n.on("contextmenu longpress",A,!0)}),n.on("remove",L);var V=function(){r=o=null};return{isResizable:B,showResizeRect:_,hideResizeRect:P,updateResizeRect:O,destroy:V}},xb=M("height",function(e){var t=e.dom();return $r(e)?t.getBoundingClientRect().height:t.offsetHeight}),Eb=function(e){return xb.get(e)},zb=function(e,t){var n=e.view(t);return n.fold(U([]),function(t){var n=e.owner(t),r=zb(e,n);return[t].concat(r)})},kb=function(e,t){var n=t.owner(e);return zb(t,n)},Nb=function(t){var n=t.dom()===e.document?J.none():J.from(t.dom().defaultView.frameElement);return n.map(Zt.fromDom)},Sb=function(e){return pr(e)},Tb=Object.freeze({__proto__:null,view:Nb,owner:Sb}),Ab=function(t){var n=Zt.fromDom(e.document),r=Qr(n),o=kb(t,Tb),i=Zr(t),a=Ct(o,function(e,t){var n=Zr(t);return{left:e.left+n.left(),top:e.top+n.top()}},{left:0,top:0});return Kr(a.left+i.left()+r.left(),a.top+i.top()+r.top())},Rb=function(e){return"textarea"===Vr(e)},Bb=function(e,t){var n=e.fire("ScrollIntoView",t);return n.isDefaultPrevented()},Db=function(e,t){e.fire("AfterScrollIntoView",t)},Mb=function(e,t){var n=kr(e);if(0===n.length||Rb(e))return{element:e,offset:t};if(t'+ml.ZWSP+"
    ");return Rr(n.element,r),_b(r,function(){return Lr(r)})},Ob=function(e){return _b(Zt.fromDom(e),V)},Hb=function(e,t,n,r){Fb(e,function(){return Ib(e,t,n,r)},n)},Lb=function(e,t,n,r,o){var i={elm:r.element.dom(),alignToTop:o};if(!Bb(e,i)){var a=Qr(t).top();n(t,a,r,o),Db(e,i)}},Ib=function(e,t,n,r){var o=Zt.fromDom(e.getBody()),i=Zt.fromDom(e.getDoc());Io(o);var a=Pb(Zt.fromDom(n.startContainer),n.startOffset);Lb(e,i,t,a,r),a.cleanup()},Vb=function(e,t,n,r){var o=Zt.fromDom(e.getDoc());Lb(e,o,n,Ob(t),r)},Fb=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,a=n.endOffset;t(Zt.fromDom(r),Zt.fromDom(i));var u=e.dom.createRng();u.setStart(r,o),u.setEnd(i,a),e.selection.setRng(n)},Ub=function(e,t,n,r){var o=e.pos;if(n)eo(o.left(),o.top(),r);else{var i=o.top()-t+e.height;eo(o.left(),i,r)}},jb=function(e,t,n,r,o){var i=n+t,a=r.pos.top(),u=r.bottom,c=u-a>=n;if(t>a)Ub(r,n,o!==!1,e);else if(a>i){var s=c?o!==!1:o===!0;Ub(r,n,s,e)}else u>i&&!c&&Ub(r,n,o===!0,e)},qb=function(e,t,n,r){var o=e.dom().defaultView.innerHeight;jb(e,t,o,n,r)},$b=function(t,n,r,o){var i=t.dom().defaultView.innerHeight;jb(t,n,i,r,o);var a=Ab(r.element),u=oo(e.window);a.top()u.bottom()&&to(r.element,o===!0)},Wb=function(e,t,n){return Hb(e,qb,t,n)},Kb=function(e,t,n){return Vb(e,t,qb,n)},Xb=function(e,t,n){return Hb(e,$b,t,n)},Yb=function(e,t,n){return Vb(e,t,$b,n)},Gb=function(e,t,n){var r=e.inline?Kb:Yb;r(e,t,n)},Zb=function(e,t,n){var r=e.inline?Wb:Xb;r(e,t,n)},Jb={scrollElementIntoView:Gb,scrollRangeIntoView:Zb},Qb=function(e){return No.isContentEditableTrue(e)||No.isContentEditableFalse(e)},eC=function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null},tC=function(e,t,n){var r,o,i;if(r=n.elementFromPoint(e,t),o=n.body.createTextRange(),r&&"HTML"!==r.tagName||(r=n.body),o.moveToElementText(r),i=ea.toArray(o.getClientRects()),i=i.sort(function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n}),i.length>0){t=(i[0].bottom+i[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(a){}}return null},nC=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return No.isContentEditableFalse(eC(n,t,Qb))?null:e},rC=function(e,t,n){var r,o,i=n;if(i.caretPositionFromPoint)o=i.caretPositionFromPoint(e,t),o&&(r=n.createRange(),r.setStart(o.offsetNode,o.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=tC(e,t,n)}return nC(r,n.body)}return r},oC={fromPoint:rC},iC=function(e,t){return gt(t,function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t})},aC={processRanges:iC},uC=function(t,n){var r=n||e.document,o=r.createDocumentFragment();return pt(t,function(e){o.appendChild(e.dom())}),Zt.fromDom(o)},cC=function(e){return e.slice(0,-1)},sC=function(e,t,n){return gr(t,e)?cC(Cr(e,function(e){return n(e)||fr(e,t)})):[]},lC=function(e,t){return sC(e,t,U(!1))},fC=function(e,t){return[e].concat(lC(e,t))},dC={parentsUntil:sC,parents:lC,parentsAndSelf:fC},hC=function(e){var t=e.startContainer,n=e.startOffset;return No.isText(t)?0===n?J.some(Zt.fromDom(t)):J.none():J.from(t.childNodes[n]).map(Zt.fromDom)},mC=function(e){var t=e.endContainer,n=e.endOffset;return No.isText(t)?n===t.data.length?J.some(Zt.fromDom(t)):J.none():J.from(t.childNodes[n-1]).map(Zt.fromDom)},gC=function(e){return Sr(e).fold(U([e]),function(t){return[e].concat(gC(t))})},pC=function(e){return Tr(e).fold(U([e]),function(t){return"br"===Vr(t)?wr(t).map(function(t){return[e].concat(pC(t))}).getOr([]):[e].concat(pC(t))})},vC=function(e,n){return of(hC(n),mC(n),function(n,r){var o=xt(gC(e),t(fr,n)),i=xt(pC(e),t(fr,r));return o.isSome()&&i.isSome()}).getOr(!1)},yC=function(e,t,n,r){var o=n,i=new Xc(n,o),a=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==ea.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))},bC=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},CC=Yn("element","width","rows"),wC=Yn("element","cells"),xC=Yn("x","y"),EC=function(e,t){var n=parseInt(Bo(e,t),10);return isNaN(n)?1:n},zC=function(e,t,n,r,o){for(var i=EC(o,"rowspan"),a=EC(o,"colspan"),u=e.rows(),c=n;n+i>c;c++){u[c]||(u[c]=wC(ll(r),[]));for(var s=t;t+a>s;s++){var l=u[c].cells();l[s]=c===n&&s===t?o:sl(o)}}},kC=function(e,t,n){var r=e.rows(),o=r[n]?r[n].cells():[];return!!o[t]},NC=function(e,t,n){for(;kC(e,t,n);)t++;return t},SC=function(e){return wt(e,function(e,t){return t.cells().length>e?t.cells().length:e},0)},TC=function(e,t){for(var n=e.rows(),r=0;r=u;u++){var c=a[u].cells(),s=r>t?c.slice(t,r+1):c.slice(r,t+1);i.push(wC(a[u].element(),s))}return i},RC=function(e,t,n){var r=t.x(),o=t.y(),i=n.x(),a=n.y(),u=a>o?AC(e,r,o,i,a):AC(e,r,a,i,o);return CC(e.element(),SC(u),u)},BC=function(e,t){var n=sl(e.element()),r=Zt.fromTag("tbody");return Or(r,t),Mr(n,r),n},DC=function(e){return gt(e.rows(),function(e){var t=gt(e.cells(),function(e){var t=ll(e);return _o(t,"colspan"),_o(t,"rowspan"),t}),n=sl(e.element());return Or(n,t),n})},MC=function(e){var t=CC(sl(e),0,[]);return pt(Vs(e,"tr"),function(e,n){pt(Vs(e,"td,th"),function(r,o){zC(t,NC(t,o,n),n,e,r)})}),CC(t.element(),SC(t.rows()),t.rows())},_C=function(e){return BC(e,DC(e))},PC=function(e,t,n){return TC(e,t).bind(function(t){return TC(e,n).map(function(n){return RC(e,t,n)})})},OC={fromDom:MC,toDom:_C,subsection:PC},HC=function(e){var t=[];if(e)for(var n=0;n1},VC={getRanges:HC,getSelectedNodes:LC,hasMultipleRanges:IC},FC=function(e){return bt(VC.getSelectedNodes(e),wa)},UC=function(e){return Vs(e,"td[data-mce-selected],th[data-mce-selected]")},jC=function(e,t){var n=UC(t),r=FC(e);return n.length>0?n:r},qC=function(e){return jC(VC.getRanges(e.selection.getSel()),Zt.fromDom(e.getBody()))},$C={getCellsFromRanges:FC,getCellsFromElement:UC,getCellsFromElementOrRanges:jC,getCellsFromEditor:qC},WC=function(e){return xt(e,function(e){return"ul"===Vr(e)||"ol"===Vr(e)})},KC=function(e,t){return xt(e,function(e){return"li"===Vr(e)&&vC(e,t)}).fold(U([]),function(){return WC(e).map(function(e){return[Zt.fromTag("li"),Zt.fromTag(Vr(e))]}).getOr([])})},XC=function(e,t){var n=wt(t,function(e,t){return Mr(t,e),t},e);return t.length>0?uC([n]):n},YC=function(e){return ya(e)?br(e).filter(va).fold(U([]),function(t){return[e,t]}):va(e)?[e]:[]},GC=function(e,t){var n=Zt.fromDom(t.commonAncestorContainer),r=dC.parentsAndSelf(n,e),o=bt(r,function(e){return ma(e)||fa(e)}),i=KC(r,t),a=o.concat(i.length?i:YC(n));return gt(a,sl)},ZC=function(){return uC([])},JC=function(e,t){return XC(Zt.fromDom(t.cloneContents()),GC(e,t))},QC=function(e,n){return js(n,"table",t(fr,e))},ew=function(e,t){return QC(e,t[0]).bind(function(e){var n=t[0],r=t[t.length-1],o=OC.fromDom(e);return OC.subsection(o,n,r).map(function(e){return uC([OC.toDom(e)])})}).getOrThunk(ZC)},tw=function(e,t){return t.length>0&&t[0].collapsed?ZC():JC(e,t[0])},nw=function(e,t){var n=$C.getCellsFromElementOrRanges(t,e);return n.length>0?ew(e,n):tw(e,t)},rw={read:nw},ow=function(e){return J.from(e.selection.getRng()).map(function(t){var n=e.dom.add(e.getBody(),"div",{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),r=ml.trim(n.innerText);return e.dom.remove(n),r}).getOr("")},iw=function(e,t){var n,r=e.selection.getRng(),o=e.dom.create("body"),i=e.selection.getSel(),a=aC.processRanges(e,VC.getRanges(i));return n=t.contextual?rw.read(Zt.fromDom(e.getBody()),a).dom():r.cloneContents(),n&&o.appendChild(n),e.selection.serializer.serialize(o,t)},aw=function(e,t){if(void 0===t&&(t={}),t.get=!0,t.format=t.format||"html",t.selection=!0,t=e.fire("BeforeGetContent",t),t.isDefaultPrevented())return e.fire("GetContent",t),t.content;if("text"===t.format)return ow(e);t.getInner=!0;var n=iw(e,t);return"tree"===t.format?n:(t.content=e.selection.isCollapsed()?"":n,e.fire("GetContent",t),t.content)},uw={getContent:aw},cw=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},sw={isEq:cw},lw=function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null},fw=function(e,t,n){return null!==lw(e,t,n)},dw=function(e,t,n){return fw(e,t,function(e){return e.nodeName===n})},hw=function(e){return e&&"TABLE"===e.nodeName},mw=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},gw=function(e,t){return bl(e)&&fw(e,t,vd)===!1},pw=function(e,t,n){for(var r=new Xc(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());t=r[n?"prev":"next"]();)if(No.isBr(t))return!0},vw=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},yw=function(e,t){for(;t&&t!==e;){if(No.isContentEditableFalse(t))return!0;t=t.parentNode}return!1},bw=function(e,t,n,r,o){var i,a,u=e.getRoot(),c=e.schema.getNonEmptyElements(),s=e.getParent(o.parentNode,e.isBlock)||u;if(r&&No.isBr(o)&&t&&e.isEmpty(s))return J.some(N(o.parentNode,e.nodeIndex(o)));for(var l=new Xc(o,s);a=l[r?"prev":"next"]();){if("false"===e.getContentEditableParent(a)||gw(a,u))return J.none();if(No.isText(a)&&a.nodeValue.length>0)return dw(a,u,"A")===!1?J.some(N(a,r?a.nodeValue.length:0)):J.none();if(e.isBlock(a)||c[a.nodeName.toLowerCase()])return J.none();i=a}return n&&i?J.some(N(i,0)):J.none()},Cw=function(e,t,n,r){var o,i,a,u,c,s,l=e.getRoot(),f=!1;if(o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"],s=No.isElement(o)&&i===o.childNodes.length,u=e.schema.getNonEmptyElements(),c=n,bl(o))return J.none();if(No.isElement(o)&&i>o.childNodes.length-1&&(c=!1),No.isDocument(o)&&(o=l,i=0),o===l){if(c&&(a=o.childNodes[i>0?i-1:0])){if(bl(a))return J.none();if(u[a.nodeName]||hw(a))return J.none()}if(o.hasChildNodes()){if(i=Math.min(!c&&i>0?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=No.isText(o)&&s?o.data.length:0,!t&&o===l.lastChild&&hw(o))return J.none();if(yw(l,o)||bl(o))return J.none();if(o.hasChildNodes()&&hw(o)===!1){a=o;var d=new Xc(o,l);do{if(No.isContentEditableFalse(a)||bl(a)){f=!1;break}if(No.isText(a)&&a.nodeValue.length>0){i=c?0:a.nodeValue.length,o=a,f=!0;break}if(u[a.nodeName.toLowerCase()]&&!mw(a)){i=e.nodeIndex(a),o=a.parentNode,c||i++,f=!0;break}}while(a=c?d.next():d.prev())}}}return t&&(No.isText(o)&&0===i&&bw(e,s,t,!0,o).each(function(e){o=e.container(),i=e.offset(),f=!0}),No.isElement(o)&&(a=o.childNodes[i],a||(a=o.childNodes[i-1]),!a||!No.isBr(a)||vw(a,"A")||pw(e,a,!1)||pw(e,a,!0)||bw(e,s,t,!0,a).each(function(e){o=e.container(),i=e.offset(),f=!0}))),c&&!t&&No.isText(o)&&i===o.nodeValue.length&&bw(e,s,t,!1,o).each(function(e){o=e.container(),i=e.offset(),f=!0}),f?J.some(N(o,i)):J.none()},ww=function(e,t){var n=t.collapsed,r=t.cloneRange(),o=N.fromRangeStart(t);return Cw(e,n,!0,r).each(function(e){n&&N.isAbove(o,e)||r.setStart(e.container(),e.offset())}),n||Cw(e,n,!1,r).each(function(e){r.setEnd(e.container(),e.offset())}),n&&r.collapse(!0),sw.isEq(t,r)?J.none():J.some(r)},xw={normalize:ww},Ew=function(e,t){e.insertData(0,t)},zw=function(e){return 0===e.dom().length?(Lr(e),J.none()):J.some(e)},kw=function(e,t){var n=J.from(t.firstChild).map(Zt.fromDom),r=J.from(t.lastChild).map(Zt.fromDom);e.deleteContents(),e.insertNode(t);var o=n.bind(wr).filter(qr).bind(zw),i=r.bind(xr).filter(qr).bind(zw);of(o,n.filter(qr),function(e,t){Ew(t.dom(),e.dom().data),Lr(e)}),of(i,r.filter(qr),function(t,n){var r=n.dom().length;n.dom().appendData(t.dom().data),e.setEnd(n.dom(),r),Lr(t)}),e.collapse(!1)},Nw=function(e,t){return e=e||{format:"html"},e.set=!0,e.selection=!0,e.content=t,e},Sw=function(e,t,n){if(n=Nw(n,t),!n.no_events&&(n=e.fire("BeforeSetContent",n),n.isDefaultPrevented()))return void e.fire("SetContent",n);var r=e.selection.getRng();kw(r,r.createContextualFragment(n.content)),e.selection.setRng(r),Jb.scrollRangeIntoView(e,r),n.no_events||e.fire("SetContent",n)},Tw={setContent:Sw},Aw=function(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return J.from(i).map(Zt.fromDom).map(function(e){return r&&t.collapsed?e:Nr(e,o(e,a)).getOr(e)}).bind(function(e){return jr(e)?J.some(e):br(e)}).map(function(e){return e.dom()}).getOr(e)},Rw=function(e,t,n){return Aw(e,t,!0,n,function(e,t){return Math.min(Ar(e),t)})},Bw=function(e,t,n){return Aw(e,t,!1,n,function(e,t){return t>0?t-1:t})},Dw=function(e,t){for(var n=e;e&&No.isText(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n},Mw=function(e,t){var n,r,o,i,a;return t?(r=t.startContainer,o=t.endContainer,i=t.startOffset,a=t.endOffset,n=t.commonAncestorContainer,!t.collapsed&&(r===o&&2>a-i&&r.hasChildNodes()&&(n=r.childNodes[i]),3===r.nodeType&&3===o.nodeType&&(r=r.length===i?Dw(r.nextSibling,!0):r.parentNode,o=0===a?Dw(o.previousSibling,!1):o.parentNode,r&&r===o))?r:n&&3===n.nodeType?n.parentNode:n):e},_w=function(e,t,n,r){var o,i,a=[];if(i=e.getRoot(),n=e.getParent(n||Rw(i,t,t.collapsed),e.isBlock),r=e.getParent(r||Bw(i,t,t.collapsed),e.isBlock),n&&n!==i&&a.push(n),n&&r&&n!==r){o=n;for(var u=new Xc(n,i);(o=u.next())&&o!==r;)e.isBlock(o)&&a.push(o)}return r&&n!==r&&r!==i&&a.push(r),a},Pw=function(e,t,n){return J.from(t).map(function(t){var r=e.nodeIndex(t),o=e.createRng();return o.setStart(t.parentNode,r),o.setEnd(t.parentNode,r+1),n&&(yC(e,o,t,!0),yC(e,o,t,!1)),o})},Ow=function(e,t,n){if(e&&e.hasOwnProperty(t)){var r=bt(e[t],function(e){return e!==n});0===r.length?delete e[t]:e[t]=r}},Hw=function(e){return!!e.select},Lw=function(e){return!(!e||!e.ownerDocument)&&gr(Zt.fromDom(e.ownerDocument),Zt.fromDom(e))},Iw=function(e){return e?Hw(e)?!0:Lw(e.startContainer)&&Lw(e.endContainer):!1},Vw=function(e,t,n,r){var o,i,a,u,c=_(e,r).selectorChangedWithUnbind,s=function(t,n){var o=e.createRng();t?(o.setStart(t,n),o.setEnd(t,n),w(o),y(!1)):(yC(e,o,r.getBody(),!0),w(o))},l=function(e){return uw.getContent(r,e)},f=function(e,t){return Tw.setContent(r,e,t)},d=function(e){return Rw(r.getBody(),C(),e)},h=function(e){return Bw(r.getBody(),C(),e)},m=function(e,t){return o.getBookmark(e,t)},g=function(e){return o.moveToBookmark(e)},p=function(t,n){return Pw(e,t,n).each(w),t},v=function(){var e=C(),t=b();return!e||e.item?!1:e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed},y=function(e){var t=C();t.collapse(!!e),w(t)},b=function(){return t.getSelection?t.getSelection():t.document.selection},C=function(){var n,o,i,c,s=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}};if(!t)return null;if(c=t.document,"undefined"==typeof c||null===c)return null;if(void 0!==r.bookmark&&Bv.hasFocus(r)===!1){var l=Jp.getRng(r);if(l.isSome())return l.map(function(e){return aC.processRanges(r,[e])[0]}).getOr(c.createRange())}try{(n=b())&&!No.isRestrictedNode(n.anchorNode)&&(o=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():c.createRange())}catch(f){}return o=aC.processRanges(r,[o])[0],o||(o=c.createRange?c.createRange():c.body.createTextRange()),o.setStart&&9===o.startContainer.nodeType&&o.collapsed&&(i=e.getRoot(),o.setStart(i,0),o.setEnd(i,0)),a&&u&&(0===s(o.START_TO_START,o,a)&&0===s(o.END_TO_END,o,a)?o=u:(a=null,u=null)),o},w=function(e,t){var n,o,i;if(Iw(e)){var c=Hw(e)?e:null;if(c){u=null;try{c.select()}catch(s){}}else{if(n=b(),i=r.fire("SetSelectionRange",{range:e,forward:t}),e=i.range,n){u=e;try{n.removeAllRanges(),n.addRange(e)}catch(s){}t===!1&&n.extend&&(n.collapse(e.endContainer,e.endOffset),n.extend(e.startContainer,e.startOffset)),a=n.rangeCount>0?n.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!n.setBaseAndExtent||Ri.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(o=e.startContainer.childNodes[e.startOffset],o&&"IMG"===o.tagName&&(n.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),(n.anchorNode!==e.startContainer||n.focusNode!==e.endContainer)&&n.setBaseAndExtent(o,0,o,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},x=function(t){return f(e.getOuterHTML(t)),t},E=function(){return Mw(r.getBody(),C())},z=function(t,n){return _w(e,C(),t,n)},k=function(){var t,n,r=b();return r&&r.anchorNode&&r.focusNode?(t=e.createRng(),t.setStart(r.anchorNode,r.anchorOffset),t.collapse(!0),n=e.createRng(),n.setStart(r.focusNode,r.focusOffset),n.collapse(!0),t.compareBoundaryPoints(t.START_TO_START,n)<=0):!0},N=function(){var t=C(),n=b();if(!VC.hasMultipleRanges(n)&&bC(r)){var o=xw.normalize(e,t);return o.each(function(e){w(e,k())}),o.getOr(t)}return t},S=function(e,t){return c(e,t),M},T=function(){for(var t,n=e.getRoot();n&&"BODY"!==n.nodeName;){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},A=function(e,t){return Jb.scrollElementIntoView(r,e,t)},R=function(e,t){return w(oC.fromPoint(e,t,r.getDoc()))},B=function(){var e=C();return e.collapsed?Mf.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},D=function(){t=a=u=null,i.destroy()},M={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:y,setCursorLocation:s,getContent:l,setContent:f,getBookmark:m,moveToBookmark:g,select:p,isCollapsed:v,isForward:k,setNode:x,getNode:E,getSel:b,setRng:w,getRng:C,getStart:d,getEnd:h,getSelectedBlocks:z,normalize:N,selectorChanged:S,selectorChangedWithUnbind:c,getScrollContainer:T,scrollIntoView:A,placeCaretAt:R,getBoundingClientRect:B,destroy:D};return o=mb(M),i=wb(M,r),M.bookmarkManager=o,M.controlSelection=i,M},Fw=function(e,t){pt(t,function(t){e.attr(t,null)})},Uw=function(e,t,n){e.addNodeFilter("font",function(e){pt(e,function(e){var r=t.parse(e.attr("style")),o=e.attr("color"),i=e.attr("face"),a=e.attr("size");o&&(r.color=o),i&&(r["font-family"]=i),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),Fw(e,["color","face","size"])})})},jw=function(e,t){e.addNodeFilter("strike",function(e){pt(e,function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))})})},qw=function(e,t){var n=Cu();t.convert_fonts_to_spans&&Uw(e,n,ea.explode(t.font_size_legacy_values)),jw(e,n)},$w=function(e,t){t.inline_styles&&qw(e,t)},Ww={register:$w},Kw=function(e,t,n,r){var o=e.padd_empty_with_br||t.insert;o&&n[r.name]?r.empty().append(new $g("br",1)).shortEnded=!0:r.empty().append(new $g("#text",3)).value=yu},Xw=function(e){return Yw(e,"#text")&&e.firstChild.value===yu},Yw=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},Gw=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},Zw=function(e,t,n,r){return r.isEmpty(t,n,function(t){return Gw(e,t)})},Jw=function(e,t){return e&&(t[e.name]||"br"===e.name)},Qw=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",function(e,r,o){var i,a,u,c,s,l,f,d,h=e.length,m=ea.extend({},n.getBlockElements()),g=n.getNonEmptyElements(),p=n.getNonEmptyElements();for(m.body=1,i=0;h>i;i++)if(a=e[i],u=a.parent,m[a.parent.name]&&a===u.lastChild){for(s=a.prev;s;){if(l=s.name,"span"!==l||"bookmark"!==s.attr("data-mce-type")){if("br"!==l)break;if("br"===l){a=null;break}}s=s.prev}a&&(a.remove(),Zw(n,g,p,u)&&(f=n.getElementRule(u.name),f&&(f.removeEmpty?u.remove():f.paddEmpty&&Kw(t,o,m,u))))}else{for(c=a;u&&u.firstChild===c&&u.lastChild===c&&(c=u,!m[u.name]);)u=u.parent;c===u&&t.padd_empty_with_br!==!0&&(d=new $g("#text",3),d.value=yu,a.replace(d))}}),e.addAttributeFilter("href",function(e){var n,r=e.length,o=function(e){var t=e.split(" ").filter(function(e){return e.length>0});return t.concat(["noopener"]).sort().join(" ")},i=function(e){var t=e?ea.trim(e):"";return/\b(noopener)\b/g.test(t)?t:o(t)};if(!t.allow_unsafe_link_target)for(;r--;)n=e[r],"a"===n.name&&"_blank"===n.attr("target")&&n.attr("rel",i(n.attr("rel")))}),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",function(e){for(var t,n,r,o,i=e.length;i--;)if(o=e[i],"a"===o.name&&o.firstChild&&!o.attr("href")){r=o.parent,t=o.lastChild;do n=t.prev,r.insert(t,o),t=n;while(t)}}),t.fix_list_elements&&e.addNodeFilter("ul,ol",function(e){for(var t,n,r=e.length;r--;)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var o=new $g("li",1);o.attr("style","list-style-type: none"),t.wrap(o)}}),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",function(e){for(var t,r,o,i,a,u,c,s=e.length,l=n.getValidClasses();s--;){for(t=e[s],r=t.attr("class").split(" "),a="",o=0;o1){for(i.reverse(),a=u=c(i[0].clone()),f=0;f0)return void(n.value=o);if(r=n.next){if(3===r.type&&r.value.length){n=n.prev;continue}if(!a[r.name]&&"script"!==r.name&&"style"!==r.name){n=n.prev;continue}}i=n.prev,n.remove(),n=i}},P=function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n};s=Qg({validate:z,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:P(t.getSelfClosingElements()),cdata:function(e){b.append(M("#cdata",4)).value=e -},text:function(e,t){var n;y||(e=e.replace(R," "),Jw(b.lastChild,v)&&(e=e.replace(T,""))),0!==e.length&&(n=M("#text",3),n.raw=!!t,b.append(n).value=e)},comment:function(e){b.append(M("#comment",8)).value=e},pi:function(e,t){b.append(M(e,7)).value=t,_(b)},doctype:function(e){var t;t=b.append(M("#doctype",10)),t.value=e,_(b)},start:function(e,n,o){var a,u,c,s,l;if(c=z?t.getElementRule(e):{}){for(a=M(c.outputName||e,1),a.attributes=n,a.shortEnded=o,b.append(a),l=E[b.name],l&&E[a.name]&&!l[a.name]&&C.push(a),u=r.length;u--;)s=r[u].name,s in n.map&&(g=i[s],g?g.push(a):i[s]=[a]);v[e]&&_(a),o||(b=a),!y&&S[e]&&(y=!0)}},end:function(n){var r,o,i,a,u;if(o=z?t.getElementRule(n):{}){if(v[n]&&!y){if(r=b.firstChild,r&&3===r.type)if(i=r.value.replace(T,""),i.length>0)r.value=i,r=r.next;else for(a=r.next,r.remove(),r=a;r&&3===r.type;)i=r.value,a=r.next,(0===i.length||B.test(i))&&(r.remove(),r=a),r=a;if(r=b.lastChild,r&&3===r.type)if(i=r.value.replace(A,""),i.length>0)r.value=i,r=r.prev;else for(a=r.prev,r.remove(),r=a;r&&3===r.type;)i=r.value,a=r.prev,(0===i.length||B.test(i))&&(r.remove(),r=a),r=a}if(y&&S[n]&&(y=!1),o.removeEmpty&&Zw(t,x,S,b))return u=b.parent,v[b.name]?b.empty().remove():b.unwrap(),void(b=u);o.paddEmpty&&(Xw(b)||Zw(t,x,S,b))&&Kw(e,c,v,b),b=b.parent}}},t);var O=b=new $g(c.context||e.root_name,11);if(s.parse(a,c.format),z&&C.length&&(c.context?c.invalid=!0:u(C)),N&&("body"===O.name||c.isRootContent)&&D(),!c.invalid){for(p in o)if(o.hasOwnProperty(p)){for(g=n[p],l=o[p],h=l.length;h--;)l[h].parent||l.splice(h,1);for(f=0,d=g.length;d>f;f++)g[f](l,p,c)}for(f=0,d=r.length;d>f;f++)if(g=r[f],g.name in i){for(l=i[g.name],h=l.length;h--;)l[h].parent||l.splice(h,1);for(h=0,m=g.callbacks.length;m>h;h++)g.callbacks[h](l,g.name,c)}}return O},m={schema:t,addAttributeFilter:f,getAttributeFilters:d,addNodeFilter:s,getNodeFilters:l,filterNode:c,parse:h};return Qw(m,e),Ww.register(m,e),m},ix=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",function(e,t){for(var n,r=e.length;r--;)n=e[r],n.attr("tabindex",n.attr("data-mce-tabindex")),n.attr(t,null)}),e.addAttributeFilter("src,href,style",function(e,r){for(var o,i,a=e.length,u="data-mce-"+r,c=t.url_converter,s=t.url_converter_scope;a--;)o=e[a],i=o.attr(u),void 0!==i?(o.attr(r,i.length>0?i:null),o.attr(u,null)):(i=o.attr(r),"style"===r?i=n.serializeStyle(n.parseStyle(i),o.name):c&&(i=c.call(s,i,r,o.name)),o.attr(r,i.length>0?i:null))}),e.addAttributeFilter("class",function(e){for(var t,n,r=e.length;r--;)t=e[r],n=t.attr("class"),n&&(n=t.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),t.attr("class",n.length>0?n:null))}),e.addAttributeFilter("data-mce-type",function(e,t,n){for(var r,o=e.length;o--;)if(r=e[o],"bookmark"===r.attr("data-mce-type")&&!n.cleanup){var i=J.from(r.firstChild).exists(function(e){return!ml.isZwsp(e.value)});i?r.unwrap():r.remove()}}),e.addNodeFilter("noscript",function(e){for(var t,n=e.length;n--;)t=e[n].firstChild,t&&(t.value=au.decode(t.value))}),e.addNodeFilter("script,style",function(e,n){for(var r,o,i,a=e.length,u=function(e){return e.replace(/()/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};a--;)r=e[a],o=r.firstChild?r.firstChild.value:"","script"===n?(i=r.attr("type"),i&&r.attr("type","mce-no/type"===i?null:i.replace(/^mce\-/,"")),"xhtml"===t.element_format&&o.length>0&&(r.firstChild.value="// ")):"xhtml"===t.element_format&&o.length>0&&(r.firstChild.value="")}),e.addNodeFilter("#comment",function(e){for(var r,o=e.length;o--;)r=e[o],t.preserve_cdata&&0===r.value.indexOf("[CDATA[")?(r.name="#cdata",r.type=4,r.value=n.decode(r.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===r.value.indexOf("mce:protected ")&&(r.name="#text",r.type=3,r.raw=!0,r.value=unescape(r.value).substr(14))}),e.addNodeFilter("xml:namespace,input",function(e,t){for(var n,r=e.length;r--;)n=e[r],7===n.type?n.remove():1===n.type&&("input"!==t||n.attr("type")||n.attr("type","text"))}),e.addAttributeFilter("data-mce-type",function(t){pt(t,function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())})}),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)})},ax=function(e){var t,n,r=function(e){return e&&"br"===e.name};t=e.lastChild,r(t)&&(n=t.prev,r(n)&&(t.remove(),n.remove()))},ux={register:ix,trimTrailingBr:ax},cx=function(t,n,r){var o,i,a,u=t.dom;return n=n.cloneNode(!0),o=e.document.implementation,o.createHTMLDocument&&(i=o.createHTMLDocument(""),ea.each("BODY"===n.nodeName?n.childNodes:[n],function(e){i.body.appendChild(i.importNode(e,!0))}),n="BODY"!==n.nodeName?i.body.firstChild:i.body,a=u.doc,u.doc=i),Iv(t,$t($t({},r),{node:n})),a&&(u.doc=a),n},sx=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},lx=function(e,t,n){return sx(e,n)?cx(e,t,n):t},fx={process:lx},dx=function(e,t,n){-1===ea.inArray(t,n)&&(e.addAttributeFilter(n,function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)}),t.push(n))},hx=function(e,t,n){if(!t.no_events&&e){var r=Vv(e,$t($t({},t),{content:n}));return r.content}return n},mx=function(e,t,n){var r=ml.trim(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||xa(Zt.fromDom(t))?r:ea.trim(r)},gx=function(e,t,n){var r=n.selection?$t({forced_root_block:!1},n):n,o=e.parse(t,r);return ux.trimTrailingBr(o),o},px=function(e,t,n){var r=lp(e,t);return r.serialize(n)},vx=function(e,t,n,r,o){var i=px(t,n,r);return hx(e,o,i)},yx=function(e,n){var r=["data-mce-selected"],o=n&&n.dom?n.dom:rs.DOM,i=n&&n.schema?n.schema:a(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs="remove_trailing_brs"in e?e.remove_trailing_brs:!0;var u=ox(e,i);ux.register(u,e,o);var c=function(t,r){void 0===r&&(r={});var a=$t({format:"html"},r),c=fx.process(n,t,a),s=mx(o,c,a),l=gx(u,s,a);return"tree"===a.format?l:vx(n,e,i,l,a)};return{schema:i,addNodeFilter:u.addNodeFilter,addAttributeFilter:u.addAttributeFilter,serialize:c,addRules:function(e){i.addValidElements(e)},setRules:function(e){i.setValidElements(e)},addTempAttr:t(dx,u,r),getTempAttrs:function(){return r},getNodeFilters:u.getNodeFilters,getAttributeFilters:u.getAttributeFilters}},bx=function(e,t){var n=yx(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}},Cx=function(t){return new mi(function(n,r){var o=function(){r("Cannot convert "+t+" to Blob. Resource might not exist or is inaccessible.")};try{var i=new e.XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(){200===this.status?n(this.response):o()},i.onerror=o,i.send()}catch(a){o()}})},wx=function(e){var t,n,r=decodeURIComponent(e).split(",");return n=/data:([^;]+)/.exec(r[0]),n&&(t=n[1]),{type:t,data:r[1]}},xx=function(t){return new mi(function(n){var r,o,i,a=wx(t);try{r=e.atob(a.data)}catch(u){return void n(new e.Blob([]))}for(o=new Uint8Array(r.length),i=0;i'))},Ix=function(e){return qr(e)?Dg(e)===yu:ga(e)},Vx=function(e){return 1===bt(kr(e),Ix).length},Fx=function(e){Tr(e).each(function(t){wr(t).each(function(n){da(e)&&ga(t)&&da(n)&&Lr(t)})})},Ux={removeTrailingBr:Hx,fillWithPaddingBr:Lx,isPaddedElement:Vx,trimBlockTrailingBr:Fx},jx=ug,qx=function(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o=0;i--){if(a=u[i].selector,!a||u[i].defaultBlock)return!0;for(o=r.length-1;o>=0;o--)if(c.is(r[o],a))return!0}return!1},Jx=function(e,t){return e.splitText(t)},Qx=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&No.isText(t)?n>0&&nn?(o-=n,t=r=Jx(r,o).previousSibling,o=r.nodeValue.length,n=0):o=0):(No.isText(t)&&n>0&&n0&&o=e.data.length,i=0===t;e.replaceData(t,n,eE(r,i,o))}},nE=function(e,t){var n=e.data.slice(t),r=n.length-Hn(n).length;return tE(e,t,r)},rE=function(e,t){var n=e.data.slice(0,t),r=n.length-Ln(n).length;return tE(e,t-r,r)},oE=function(e,t,n){var r=Ln(e.data).length;return e.appendData(t.data),Lr(Zt.fromDom(t)),n&&nE(e,r),e},iE=function(e,t,n){return js(e,t,n).isSome()},aE=function(e,n){var r=Zt.fromDom(e),o=Zt.fromDom(n);return iE(o,"pre,code",t(fr,r))},uE=function(e,t){return No.isText(t)&&/^[ \t\r\n]*$/.test(t.data)&&aE(e,t)===!1},cE=function(e){return No.isElement(e)&&"A"===e.nodeName&&e.hasAttribute("name")},sE=function(e,t){return Il(t)&&uE(e,t)===!1||cE(t)||lE(t)},lE=No.hasAttribute("data-mce-bookmark"),fE=No.hasAttribute("data-mce-bogus"),dE=No.hasAttributeValue("data-mce-bogus","all"),hE=function(e,t){var n,r=0;if(sE(e,e))return!1;if(n=e.firstChild,!n)return!0;var o=new Xc(n,e);do{if(t){if(dE(n)){n=o.next(!0);continue}if(fE(n)){n=o.next();continue}}if(No.isBr(n))r++,n=o.next();else{if(sE(e,n))return!1;n=o.next()}}while(n);return 1>=r},mE=function(e,t){return void 0===t&&(t=!0),hE(e.dom(),t)},gE={isEmpty:mE},pE=function(e,t){var n=e.container(),r=e.offset();return Mf.isTextPosition(e)===!1&&n===t.parentNode&&r>Mf.before(t).offset()},vE=function(e,t){return pE(t,e)?Mf(t.container(),t.offset()-1):t},yE=function(e){return No.isText(e)?Mf(e,0):Mf.before(e)},bE=function(e){return No.isText(e)?Mf(e,e.data.length):Mf.after(e)},CE=function(e){return Il(e.previousSibling)?J.some(bE(e.previousSibling)):e.previousSibling?zm.lastPositionIn(e.previousSibling):J.none()},wE=function(e){return Il(e.nextSibling)?J.some(yE(e.nextSibling)):e.nextSibling?zm.firstPositionIn(e.nextSibling):J.none()},xE=function(e,t){var n=Mf.before(t.previousSibling?t.previousSibling:t.parentNode);return zm.prevPosition(e,n).fold(function(){return zm.nextPosition(e,Mf.after(t))},J.some)},EE=function(e,t){return zm.nextPosition(e,Mf.after(t)).fold(function(){return zm.prevPosition(e,Mf.before(t))},J.some)},zE=function(e,t){return CE(t).orThunk(function(){return wE(t)}).orThunk(function(){return xE(e,t)})},kE=function(e,t){return wE(t).orThunk(function(){return CE(t)}).orThunk(function(){return EE(e,t)})},NE=function(e,t,n){return e?kE(t,n):zE(t,n)},SE=function(e,n,r){return NE(e,n,r).map(t(vE,r))},TE=function(e,t,n){n.fold(function(){e.focus()},function(n){e.selection.setRng(n.toRange(),t)})},AE=function(e){return function(t){return t.dom()===e}},RE=function(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(Vr(t))},BE=function(e){if(gE.isEmpty(e)){var t=Zt.fromHtml('
    ');return Hr(e),Mr(e,t),J.some(Mf.before(t.dom()))}return J.none()},DE=function(e,t,n){var r=wr(e).filter(qr),o=xr(e).filter(qr);return Lr(e),af(r,o,t,function(e,t,r){var o=e.dom(),i=t.dom(),a=o.data.length;return oE(o,i,n),r.container()===i?Mf(o,a):r}).orThunk(function(){return n&&(r.each(function(e){return rE(e.dom(),e.dom().length)}),o.each(function(e){return nE(e.dom(),0)})),t})},ME=function(e,t){return qt(e.schema.getTextInlineElements(),Vr(t))},_E=function(e,n,r,o){void 0===o&&(o=!0);var i=SE(n,e.getBody(),r.dom()),a=Fs(r,t(RE,e),AE(e.getBody())),u=DE(r,i,ME(e,r));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):a.bind(BE).fold(function(){o&&TE(e,n,u)},function(t){o&&TE(e,n,J.some(t))})},PE={deleteElement:_E},OE=ml.ZWSP,HE="_mce_caret",LE=function(e,t){return e.importNode(t,!0)},IE=function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==OE||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},VE=function(e){return IE(e).length>0},FE=function(e){if(e){var t=new Xc(e,e);for(e=t.current();e;e=t.next())if(No.isText(e))return e}return null},UE=function(e){var t=Zt.fromTag("span");return Ro(t,{id:HE,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&Mr(t,Zt.fromText(OE)),t},jE=function(e){var t=FE(e);return t&&t.nodeValue.charAt(0)===OE&&t.deleteData(0,1),t},qE=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(VE(t))PE.deleteElement(e,!1,Zt.fromDom(t),n);else{var i=o.getRng(),a=r.getParent(t,r.isBlock),u=jE(t);i.startContainer===u&&i.startOffset>0&&i.setStart(u,i.startOffset-1),i.endContainer===u&&i.endOffset>0&&i.setEnd(u,i.endOffset-1),r.remove(t,!0),a&&r.isEmpty(a)&&Ux.fillWithPaddingBr(Zt.fromDom(a)),o.setRng(i)}},$E=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)qE(e,t,n);else if(t=yd(e.getBody(),o.getStart()),!t)for(;t=r.get(HE);)qE(e,t,!1)},WE=function(e,n,r){var o=e.dom,i=o.getParent(r,t(ng,e));i&&o.isEmpty(i)?r.parentNode.replaceChild(n,r):(Ux.removeTrailingBr(Zt.fromDom(r)),o.isEmpty(r)?r.parentNode.replaceChild(n,r):o.insertAfter(n,r))},KE=function(e,t){return e.appendChild(t),t},XE=function(e,t){var n=Ct(e,function(e,t){return KE(e,t.cloneNode(!1))},t);return KE(n,n.ownerDocument.createTextNode(OE))},YE=function(e,t,n){var r,o,i,a,u,c,s,l=e.selection;r=l.getRng(),a=r.startOffset,c=r.startContainer,s=c.nodeValue,o=yd(e.getBody(),l.getStart()),o&&(i=FE(o));var f=/[^\s\u00a0\u00ad\u200b\ufeff]/;s&&a>0&&a
    ").append(t.childNodes)};t=No.matchNodeNames(["pre"]),r.collapsed||(n=e.selection.getSelectedBlocks(),oz(rz(rz(n,t),o),function(e){i(e.previousSibling,e)}))});var uz,cz=ea.each,sz=function(e){this.compare=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return cz(e.getAttribs(t),function(r){var o=r.nodeName.toLowerCase();0!==o.indexOf("_")&&"style"!==o&&0!==o.indexOf("data-")&&(n[o]=e.getAttrib(t,o))}),n},o=function(e,t){var n,r;for(r in e)if(e.hasOwnProperty(r)){if(n=t[r],"undefined"==typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(t.hasOwnProperty(r))return!1;return!0};return o(r(t),r(n))&&o(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))?!Km.isBookmarkNode(t)&&!Km.isBookmarkNode(n):!1}},lz=/^(src|href|style)$/,fz=ea.each,dz=ug,hz=function(e){return/^(TH|TD)$/.test(e.nodeName)},mz=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},gz=function(e,t,n){var r,o;if(r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"],No.isElement(r)){var i=r.childNodes.length-1;!n&&o&&o--,r=r.childNodes[o>i?i:o]}return No.isText(r)&&n&&o>=r.nodeValue.length&&(r=new Xc(r,e.getBody()).next()||r),No.isText(r)&&!n&&0===o&&(r=new Xc(r,e.getBody()).prev()||r),r},pz=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},vz=function(e,t,n,r,o){var i=Zt.fromDom(t),a=Zt.fromDom(e.create(r,o)),u=n?zr(i):Er(i);return Or(a,u),n?(Rr(i,a),Dr(a,i)):(Br(i,a),Mr(a,i)),a.dom()},yz=function(e,t,n){return dz(t,n.inline)?!0:dz(t,n.block)?!0:n.selector?No.isElement(t)&&e.is(t,n.selector):void 0},bz=function(e,t){return t.links&&"A"===e.nodeName},Cz=function(e,t,n,r){return t=tg(t,n,r),!t||"BR"===t.nodeName||e.isBlock(t)},wz=function(e,t,n){var r,o=t.parentNode,i=e.dom,a=yh.getForcedRootBlock(e);n.block&&(a?o===i.getRoot()&&(n.list_block&&dz(t,n.list_block)||fz(ea.grep(t.childNodes),function(t){rg(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=pz(i,t,a),i.setAttribs(r,e.settings.forced_root_block_attrs)):r=0})):i.isBlock(t)&&!i.isBlock(o)&&(Cz(i,t,!1)||Cz(i,t.firstChild,!0,!0)||t.insertBefore(i.create("br"),t.firstChild),Cz(i,t,!0)||Cz(i,t.lastChild,!1,!0)||t.appendChild(i.create("br")))),n.selector&&n.inline&&!dz(n.inline,t)||i.remove(t,!0)},xz=function(e,t,n,r,o){var i,a=e.dom;if(!yz(a,r,t)&&!bz(r,t))return!1;var u=r;if("all"!==t.remove){fz(t.styles,function(e,r){e=cg(a,ag(e,n),r),"number"==typeof r&&(r=e,o=null),(t.remove_similar||!o||dz(sg(a,o,r),e))&&a.setStyle(u,r,""),i=!0}),i&&""===a.getAttrib(u,"style")&&(u.removeAttribute("style"),u.removeAttribute("data-mce-style")),fz(t.attributes,function(e,r){var i;if(e=ag(e,n),"number"==typeof r&&(r=e,o=null),t.remove_similar||!o||dz(a.getAttrib(o,r),e)){if("class"===r&&(e=a.getAttrib(u,r),e&&(i="",fz(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(i+=(i?" ":"")+e)}),i)))return void a.setAttrib(u,r,i);"class"===r&&u.removeAttribute("className"),lz.test(r)&&u.removeAttribute("data-mce-"+r),u.removeAttribute(r)}}),fz(t.classes,function(e){e=ag(e,n),(!o||a.hasClass(o,e))&&a.removeClass(u,e)});for(var c=a.getAttribs(u),s=0;so&&!xz(e,u[o],n,t,t);o++);if(c.deep&&r.length){for(o=0,i=r.length;i>o;o++)m(r[o]);f&&(s=a)}},g=function(e){var t=l.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return h(n)&&(n=n[e?"firstChild":"lastChild"]),No.isText(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),l.remove(t,!0),n},p=function(t){var n,r,o=t.commonAncestorContainer,i=kg(e,t,u,!0);if(c.split){if(i=Qx(i),n=gz(e,i,!0),r=gz(e,i),n!==r){if(/^(TR|TH|TD)$/.test(n.nodeName)&&n.firstChild&&(n="TR"===n.nodeName?n.firstChild.firstChild||n:n.firstChild||n),o&&/^T(HEAD|BODY|FOOT|R)$/.test(o.nodeName)&&hz(r)&&r.firstChild&&(r=r.firstChild||r),mz(l,n,r)){var a=J.from(n.firstChild).getOr(n);return d(vz(l,a,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void g(!0)}if(mz(l,r,n)){var a=J.from(r.lastChild).getOr(r);return d(vz(l,a,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void g(!1)}n=pz(l,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=pz(l,r,"span",{id:"_end","data-mce-type":"bookmark"});var s=l.createRng();s.setStartAfter(n),s.setEndBefore(r),Rg.walk(l,s,function(e){pt(e,function(e){Km.isBookmarkNode(e)||Km.isBookmarkNode(e.parentNode)||d(e)})}),d(n),d(r),n=g(!0),r=g()}else n=r=d(n);i.startContainer=n.parentNode?n.parentNode:n,i.startOffset=l.nodeIndex(n),i.endContainer=r.parentNode?r.parentNode:r,i.endOffset=l.nodeIndex(r)+1}Rg.walk(l,i,function(t){fz(t,function(t){m(t),No.isElement(t)&&"underline"===e.dom.getStyle(t,"text-decoration")&&t.parentNode&&"underline"===lg(l,t.parentNode)&&xz(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,t)})})};if(r)return void(Jm(r)?(a=l.createRng(),a.setStartBefore(r),a.setEndAfter(r),p(a)):p(r));if("false"!==l.getContentEditable(f.getNode()))f.isCollapsed()&&c.inline&&!l.select("td[data-mce-selected],th[data-mce-selected]").length?GE(e,t,n,o):(i=hd.getPersistentBookmark(e.selection,!0),p(f.getRng()),f.moveToBookmark(i),c.inline&&Yx(e,t,n,f.getStart())&&eg(l,f,f.getRng()),e.nodeChanged());else{r=f.getNode();for(var v=0,y=u.length;y>v&&(!u[v].ceFalseOverride||!xz(e,u[v],n,r,r));v++);}},Nz=ea.each,Sz=function(e){return No.isElement(e)&&!Km.isBookmarkNode(e)&&!vd(e)&&!No.isBogus(e)},Tz=function(e,t){var n;for(n=e;n;n=n[t]){if(No.isText(n)&&0!==n.nodeValue.length)return e;if(No.isElement(n)&&!Km.isBookmarkNode(n))return n}return e},Az=function(e,t,n){var r,o,i=new sz(e);if(t&&n&&(t=Tz(t,"previousSibling"),n=Tz(n,"nextSibling"),i.compare(t,n))){for(r=t.nextSibling;r&&r!==n;)o=r,r=r.nextSibling,t.appendChild(o);return e.remove(n),ea.each(ea.grep(n.childNodes),function(e){t.appendChild(e)}),t}return n},Rz=function(e,t,n){Nz(e.childNodes,function(e){Sz(e)&&(t(e)&&n(e),e.hasChildNodes()&&Rz(e,t,n))})},Bz=function(e,n){return t(function(t,n){return!(!n||!sg(e,n,t))},n)},Dz=function(e,n,r){return t(function(t,n,r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),Mz(e,r)},n,r)},Mz=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},_z=function(e,t){if(1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType){var n=lg(e,t.parentNode);e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null)}},Pz=function(e,n,r,o){n.styles&&(n.styles.color||n.styles.textDecoration)&&(ea.walk(o,t(_z,e),"childNodes"),_z(e,o))},Oz=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&Rz(r,Bz(e,"fontSize"),Dz(e,"backgroundColor",ag(t.styles.backgroundColor,n)))},Hz=function(e,t,n,r){("sub"===t.inline||"sup"===t.inline)&&(Rz(r,Bz(e,"fontSize"),Dz(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},Lz=function(e,t,n,r){r&&t.merge_siblings!==!1&&(r=Az(e,tg(r),r),r=Az(e,r,tg(r,!0)))},Iz=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";Nz(e.select(r,n),function(n){Sz(n)&&Nz(t.styles,function(t,r){e.setStyle(n,r,"")})})}},Vz=function(e,t,n,r){Nz(t,function(t){Nz(e.dom.select(t.inline,r),function(r){Sz(r)&&xz(e,t,n,r,t.exact?r:null)}),Iz(e.dom,t,r)})},Fz=function(e,t,n,r,o){Xx(e,o.parentNode,n,r)&&xz(e,t,r,o)||t.merge_with_parents&&e.dom.getParent(o.parentNode,function(i){return Xx(e,i,n,r)?(xz(e,t,r,o),!0):void 0})},Uz=function(t,n,r,o){var i=e.document.createRange();return i.setStart(t,n),i.setEnd(r,o),i},jz=function(e){var t=Mf.fromRangeStart(e),n=Mf.fromRangeEnd(e),r=e.commonAncestorContainer;return zm.fromPosition(!1,r,n).map(function(o){return!Lh(t,n,r)&&Lh(t,o,r)?Uz(t.container(),t.offset(),o.container(),o.offset()):e}).getOr(e)},qz=function(e){return e.collapsed?e:jz(e)},$z={normalize:qz},Wz=ea.each,Kz=function(e){return e&&1===e.nodeType&&!Km.isBookmarkNode(e)&&!vd(e)&&!No.isBogus(e)},Xz=function(e,t,n,r){var o,i,a=e.formatter.get(t),u=a[0],c=!r&&e.selection.isCollapsed(),s=e.dom,l=e.selection,f=function(e,t){if(t=t||u,e){if(t.onformat&&t.onformat(e,t,n,r),Wz(t.styles,function(t,r){s.setStyle(e,r,ag(t,n))}),t.styles){var o=s.getAttrib(e,"style");o&&s.setAttrib(e,"data-mce-style",o)}Wz(t.attributes,function(t,r){s.setAttrib(e,r,ag(t,n))}),Wz(t.classes,function(t){t=ag(t,n),s.hasClass(e,t)||s.addClass(e,t)})}},d=function(e,t){var n=!1;return u.selector?(Wz(e,function(e){return"collapsed"in e&&e.collapsed!==c?void 0:s.is(t,e.selector)&&!vd(t)?(f(t,e),n=!0,!1):void 0}),n):!1},h=function(r,o,i,c){var s,l,h=[],m=!0;s=u.inline||u.block,l=r.create(s),f(l),Rg.walk(r,o,function(o){var i,g=function(o){var p=!1,v=m,y=o.nodeName.toLowerCase(),b=o.parentNode.nodeName.toLowerCase();if(No.isElement(o)&&r.getContentEditable(o)&&(v=m,m="true"===r.getContentEditable(o),p=!0),ug(y,"br"))return i=0,void(u.block&&r.remove(o)); -if(u.wrapper&&Xx(e,o,t,n))return void(i=0);if(m&&!p&&u.block&&!u.wrapper&&ng(e,y)&&rg(e,b,s))return o=r.rename(o,s),f(o),h.push(o),void(i=0);if(u.selector){var C=d(a,o);if(!u.inline||C)return void(i=0)}!m||p||!rg(e,s,y)||!rg(e,b,s)||!c&&3===o.nodeType&&1===o.nodeValue.length&&65279===o.nodeValue.charCodeAt(0)||vd(o)||u.inline&&r.isBlock(o)?(i=0,Wz(ea.grep(o.childNodes),g),p&&(m=v),i=0):(i||(i=r.clone(l,!1),o.parentNode.insertBefore(i,o),h.push(i)),i.appendChild(o))};Wz(o,g)}),u.links===!0&&Wz(h,function(e){var t=function(e){"A"===e.nodeName&&f(e,u),Wz(ea.grep(e.childNodes),t)};t(e)}),Wz(h,function(o){var i,c=function(e){var t=0;return Wz(e.childNodes,function(e){ig(e)||Km.isBookmarkNode(e)||t++}),t},s=function(e){var t=!1;return Wz(e.childNodes,function(e){return Kz(e)?(t=e,!1):void 0}),t},l=function(e){var t,n;return t=s(e),t&&!Km.isBookmarkNode(t)&&Wx(r,t,u)&&(n=r.clone(t,!1),f(n),r.replace(n,e,!0),r.remove(t,!0)),n||e};return i=c(o),(h.length>1||!r.isBlock(o))&&0===i?void r.remove(o,!0):void((u.inline||u.wrapper)&&(u.exact||1!==i||(o=l(o)),Vz(e,a,n,o),Fz(e,u,t,n,o),Oz(r,u,n,o),Pz(r,u,n,o),Hz(r,u,n,o),Lz(r,u,n,o)))})};if("false"!==s.getContentEditable(l.getNode())){if(u){if(r)Jm(r)?d(a,r)||(i=s.createRng(),i.setStartBefore(r),i.setEndAfter(r),h(s,kg(e,i,a),null,!0)):h(s,r,null,!0);else if(c&&u.inline&&!s.select("td[data-mce-selected],th[data-mce-selected]").length)YE(e,t,n);else{var m=e.selection.getNode();e.settings.forced_root_block||!a[0].defaultBlock||s.getParent(m,s.isBlock)||Xz(e,a[0].defaultBlock),e.selection.setRng($z.normalize(e.selection.getRng())),o=hd.getPersistentBookmark(e.selection,!0),h(s,kg(e,l.getRng(),a)),l.moveToBookmark(o),eg(s,l,l.getRng()),e.nodeChanged()}az(t,e)}}else{r=l.getNode();for(var g=0,p=a.length;p>g;g++)if(a[g].ceFalseOverride&&s.is(r,a[g].selector))return void f(r,a[g])}},Yz=function(e,t){var n=Jt({});e.set({}),t.on("NodeChange",function(r){Gz(t,r.element,n,e.get())})},Gz=function(e,t,n,r){var o=_t(n.get()),i={},a={},u=bt(fg(e.dom,t),function(e){return 1===e.nodeType&&!e.getAttribute("data-mce-bogus")});Ot(r,function(t,n){ea.each(u,function(r){return e.formatter.matchNode(r,n,{},t.similar)?(-1===o.indexOf(n)&&(pt(t.callbacks,function(e){e(!0,{node:r,format:n,parents:u})}),i[n]=t.callbacks),a[n]=t.callbacks,!1):qx(e,r,n)?!1:void 0})});var c=Zz(n.get(),a,t,u);n.set($t($t({},i),c))},Zz=function(e,t,n,r){return Ft(e,function(e,o){return qt(t,o)?!0:(pt(e,function(e){e(!1,{node:n,format:o,parents:r})}),!1)}).t},Jz=function(e,t,n,r){var o=e.get();pt(t.split(","),function(e){o[e]||(o[e]={similar:r,callbacks:[]}),o[e].callbacks.push(n)}),e.set(o)},Qz=function(e,t,n){var r=e.get();pt(t.split(","),function(e){r[e].callbacks=bt(r[e].callbacks,function(e){return e!==n}),0===r[e].callbacks.length&&delete r[e]}),e.set(r)},ek=function(e,t,n,r,o){return null===t.get()&&Yz(t,e),Jz(t,n,r,o),{unbind:function(){return Qz(t,n,r)}}},tk=function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{"float":"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{"float":"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(t,n,r){ea.each(r,function(n,r){e.setAttrib(t,r,n)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return ea.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),function(e){t[e]={block:e,remove:"all"}}),t},nk={get:tk},rk=ea.each,ok=rs.DOM,ik=function(e,t){var n,r,o,i=t&&t.schema||a({}),u=function(e,t){t.classes.length&&ok.addClass(e,t.classes.join(" ")),ok.setAttribs(e,t.attrs)},c=function(e){var t;return r="string"==typeof e?{name:e,classes:[],attrs:{}}:e,t=ok.create(r.name),u(t,r),t},s=function(e,t){var n="string"!=typeof e?e.nodeName.toLowerCase():e,r=i.getElementRule(n),o=r&&r.parentsRequired;return o&&o.length?t&&-1!==ea.inArray(o,t)?t:o[0]:!1},l=function(e,t,n){var r,o,i,a=t.length>0&&t[0],u=a&&a.name;if(i=s(e,u))u===i?(o=t[0],t=t.slice(1)):o=i;else if(a)o=t[0],t=t.slice(1);else if(!n)return e;return o&&(r=c(o),r.appendChild(e)),n&&(r||(r=ok.create("div"),r.appendChild(e)),ea.each(n,function(t){var n=c(t);r.insertBefore(n,e)})),l(r,t,o&&o.siblings)};return e&&e.length?(r=e[0],n=c(r),o=ok.create("div"),o.appendChild(l(n,e.slice(1),r.siblings)),o):""},ak=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=ea.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,function(e,t,r,o,i){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==ea.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r)}if("["===o){var a=i.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""})),n.name=t||"div",n},uk=function(e){return e&&"string"==typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),ea.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=ea.map(e.split(/(?:~\+|~|\+)/),ak),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]},ck=function(e,t){var n,r,o,i,a,u,c="";if(u=e.settings.preview_styles,u===!1)return"";"string"!=typeof u&&(u="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow");var s=function(e){return e.replace(/%(\w+)/g,"")};if("string"==typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}return"preview"in t&&(u=t.preview,u===!1)?"":(n=t.block||t.inline||"span",i=uk(t.selector),i.length?(i[0].name||(i[0].name=n),n=t.selector,r=ik(i,e)):r=ik([n],e),o=ok.select(n,r)[0]||r.firstChild,rk(t.styles,function(e,t){e=s(e),e&&ok.setStyle(o,t,e)}),rk(t.attributes,function(e,t){e=s(e),e&&ok.setAttrib(o,t,e)}),rk(t.classes,function(e){e=s(e),ok.hasClass(o,e)||ok.addClass(o,e)}),e.fire("PreviewFormats"),ok.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),a=ok.getStyle(e.getBody(),"fontSize",!0),a=/px$/.test(a)?parseInt(a,10):0,rk(u.split(" "),function(t){var n=ok.getStyle(o,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)&&(n=ok.getStyle(e.getBody(),t,!0),"#ffffff"===ok.toHex(n).toLowerCase())||"color"===t&&"#000000"===ok.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===a)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*a+"px"}"border"===t&&n&&(c+="padding:0 2px;"),c+=t+":"+n+";"}}),e.fire("AfterPreviewFormats"),ok.remove(r),c)},sk=function(e,t,n,r,o){var i=t.get(n);!Yx(e,n,r,o)||"toggle"in i[0]&&!i[0].toggle?Xz(e,n,r,o):kz(e,n,r,o)},lk=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;6>=t;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},fk={setup:lk},dk=function(e){var n=L(e),r=Jt(null);return fk.setup(e),JE(e),{get:n.get,has:n.has,register:n.register,unregister:n.unregister,apply:t(Xz,e),remove:t(kz,e),toggle:t(sk,e,n),match:t(Yx,e),matchAll:t(Gx,e),matchNode:t(Xx,e),canApply:t(Zx,e),formatChanged:t(ek,e,r),getCssText:t(ck,e)}},hk=0,mk=1,gk=2,pk=function(e,t){var n=e.length+t.length+2,r=new Array(n),o=new Array(n),i=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,o,i,u){var s=c(n,r,o,i);if(null===s||s.start===r&&s.diag===r-i||s.end===n&&s.diag===n-o)for(var l=n,f=o;r>l||i>f;)r>l&&i>f&&e[l]===t[f]?(u.push([hk,e[l]]),++l,++f):r-n>i-o?(u.push([gk,e[l]]),++l):(u.push([mk,t[f]]),++f);else{a(n,s.start,o,s.start-s.diag,u);for(var d=s.start;du-r&&o>u&&e[u]===t[u-r];)++u;return i(n,u,r)},c=function(n,i,a,c){var s=i-n,l=c-a;if(0===s||0===l)return null;var f=s-l,d=l+s,h=(d%2===0?d:d+1)/2;r[1+h]=n,o[1+h]=i+1;var m,g,p,v,y;for(m=0;h>=m;++m){for(g=-m;m>=g;g+=2){for(p=g+h,r[p]=g===-m||g!==m&&r[p-1]v&&c>y&&e[v]===t[y];)r[p]=++v,++y;if(f%2!==0&&g>=f-m&&f+m>=g&&o[p-f]<=r[p])return u(o[p-f],g+n-a,i,c)}for(g=f-m;f+m>=g;g+=2){for(p=g+h-f,o[p]=g===f-m||g!==f+m&&o[p+1]<=o[p-1]?o[p+1]-1:o[p-1],v=o[p]-1,y=v-n+a-g;v>=n&&y>=a&&e[v]===t[y];)o[p]=v--,y--;if(f%2===0&&g>=-m&&m>=g&&o[p]<=r[p+f])return u(o[p],g+n-a,i,c)}}},s=[];return a(0,e.length,0,t.length,s),s},vk={KEEP:hk,DELETE:gk,INSERT:mk,diff:pk},yk=function(e){return No.isElement(e)?e.outerHTML:No.isText(e)?au.encodeRaw(e.data,!1):No.isComment(e)?"":""},bk=function(t){var n,r,o;for(o=e.document.createElement("div"),n=e.document.createDocumentFragment(),t&&(o.innerHTML=t);r=o.firstChild;)n.appendChild(r);return n},Ck=function(e,t,n){var r=bk(t);if(e.hasChildNodes()&&n0})},zk=function(e,t){var n=gt(Mt(t.childNodes),yk);return xk(vk.diff(n,e),t),t},kk={read:Ek,write:zk},Nk=Jt(J.none()),Sk=function(){return Nk.get().getOrThunk(function(){var t=e.document.implementation.createHTMLDocument("undo");return Nk.set(J.some(t)),t})},Tk=function(e){return-1!==e.indexOf("")},Ak=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},Rk=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},Bk=function(e){var t,n,r;return t=kk.read(e.getBody()),r=kt(t,function(t){var n=rp.trimInternal(e.serializer,t);return n.length>0?[n]:[]}),n=r.join(""),Tk(n)?Ak(r):Rk(n)},Dk=function(e,t,n){"fragmented"===t.type?kk.write(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(n?t.beforeBookmark:t.bookmark)},Mk=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},_k=function(e){var t=Zt.fromTag("body",Sk());return ul(t,Mk(e)),pt(Vs(t,"*[data-mce-bogus]"),Ir),al(t)},Pk=function(e,t){return Mk(e)===Mk(t)},Ok=function(e,t){return _k(e)===_k(t)},Hk=function(e,t){return e&&t?Pk(e,t)?!0:Ok(e,t):!1},Lk={createFragmentedLevel:Ak,createCompleteLevel:Rk,createFromEditor:Bk,applyToEditor:Dk,isEq:Hk},Ik=function(e){return 0===e.get()},Vk=function(e,t,n){Ik(n)&&(e.typing=t)},Fk=function(e,t){e.typing&&(Vk(e,!1,t),e.add())},Uk=function(e){e.typing&&(e.typing=!1,e.add())},jk=function(e,t,n){Ik(t)&&n.set(J.some(hd.getUndoBookmark(e.selection)))},qk=function(e,t,n,r,o,i,a){var u=e.settings,c=Lk.createFromEditor(e);if(i=i||{},i=ea.extend(i,c),Ik(r)===!1||e.removed)return null;var s=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:s,originalEvent:a}).isDefaultPrevented())return null;if(s&&Lk.isEq(s,i))return null;if(t.data[n.get()]&&o.get().each(function(e){t.data[n.get()].beforeBookmark=e}),u.custom_undo_redo_levels&&t.data.length>u.custom_undo_redo_levels){for(var l=0;l0&&(e.setDirty(!0),e.fire("change",f)),i},$k=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},Wk=function(e,t,n,r,o){if(t.transact(r)){var i=t.data[n.get()].bookmark,a=t.data[n.get()-1];Lk.applyToEditor(e,a,!0),t.transact(o)&&(t.data[n.get()-1].beforeBookmark=i)}},Kk=function(e,t,n){var r;return t.get()0&&(r.set(r.get()-1),o=t.data[r.get()],Lk.applyToEditor(e,o,!0),e.setDirty(!0),e.fire("Undo",{level:o})),o},Yk=function(e){e.clear(),e.add()},Gk=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!Lk.isEq(Lk.createFromEditor(e),t.data[0])},Zk=function(e,t){return t.get()=33&&36>=i||i>=37&&40>=i||45===i||n.ctrlKey)&&(o(),e.nodeChanged()),(46===i||8===i)&&e.nodeChanged(),r.get()&&t.typing&&Lk.isEq(Lk.createFromEditor(e),t.data[0])===!1&&(e.isDirty()===!1&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))}),e.on("keydown",function(e){var i=e.keyCode;if(!e.isDefaultPrevented()){if(i>=33&&36>=i||i>=37&&40>=i||45===i)return void(t.typing&&o(e));var a=e.ctrlKey&&!e.altKey||e.metaKey;!(16>i||i>20)||224===i||91===i||t.typing||a||(t.beforeChange(),Vk(t,!0,n),t.add({},e),r.set(!0))}}),e.on("mousedown",function(e){t.typing&&o(e)});var i=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data};e.on("input",function(e){e.inputType&&(i(e)||a(e))&&o(e)}),e.on("AddUndo Undo Redo ClearUndos",function(t){t.isDefaultPrevented()||e.nodeChanged()})},tN=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},nN=function(e){var t=Jt(J.none()),n=Jt(0),r=Jt(0),o={data:[],typing:!1,beforeChange:function(){jk(e,n,t)},add:function(i,a){return qk(e,o,r,n,t,i,a)},undo:function(){return Xk(e,o,n,r)},redo:function(){return Kk(e,r,o.data)},clear:function(){$k(e,o,r)},reset:function(){Yk(o)},hasUndo:function(){return Gk(e,o,r)},hasRedo:function(){return Zk(o,r)},transact:function(e){return Jk(o,n,e)},ignore:function(e){Qk(n,e)},extra:function(t,n){Wk(e,o,r,t,n)}};return eN(e,o,n),tN(e),o},rN=[9,27,vb.HOME,vb.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,vb.DOWN,vb.UP,vb.LEFT,vb.RIGHT].concat(Ri.browser.isFirefox()?[224]:[]),oN="data-mce-placeholder",iN=function(e){return"keydown"===e.type||"keyup"===e.type},aN=function(e){var t=e.keyCode;return t===vb.BACKSPACE||t===vb.DELETE},uN=function(e){if(iN(e)){var t=e.keyCode;return!aN(e)&&(vb.metaKeyPressed(e)||e.altKey||t>=112&&123>=t||ht(rN,t))}return!1},cN=function(e){return iN(e)&&!(aN(e)||"keyup"===e.type&&229===e.keyCode)},sN=function(e,t,n){if(gE.isEmpty(Zt.fromDom(t),!1)){var r=""===n,o=t.firstElementChild;return o?e.getStyle(t.firstElementChild,"padding-left")||e.getStyle(t.firstElementChild,"padding-right")?!1:r?!e.isBlock(o):n===o.nodeName.toLowerCase():!0}return!1},lN=function(e){var t=e.dom,n=yh.getForcedRootBlock(e),r=yh.getPlaceholder(e),o=function(i,a){if(!uN(i)){var u=e.getBody(),c=cN(i)?!1:sN(t,u,n),s=""!==t.getAttrib(u,oN);(s!==c||a)&&(t.setAttrib(u,oN,c?r:null),t.setAttrib(u,"aria-placeholder",c?r:null),Yv(e,c),e.on(c?"keydown":"keyup",o),e.off(c?"keyup":"keydown",o))}};r&&e.on("init",function(n){o(n,!0),e.on("change SetContent ExecCommand",o),e.on("remove",function(){var n=e.getBody();t.setAttrib(n,oN,null),t.setAttrib(n,"aria-placeholder",null)})})},fN=5,dN=400,hN=function(e){return void 0===e.touches||1!==e.touches.length?J.none():J.some(e.touches[0])},mN=function(e,t){var n=Math.abs(e.clientX-t.x()),r=Math.abs(e.clientY-t.y());return n>fN||r>fN},gN=function(e){var t=Jt(J.none()),n=Jt(!1),r=Ss(function(t){e.fire("longpress",$t($t({},t),{type:"longpress"})),n.set(!0)},dN);e.on("touchstart",function(e){hN(e).each(function(o){r.cancel();var i={x:U(o.clientX),y:U(o.clientY),target:U(e.target)};r.throttle(e),n.set(!1),t.set(J.some(i))})},!0),e.on("touchmove",function(o){r.cancel(),hN(o).each(function(r){t.get().each(function(o){mN(r,o)&&(t.set(J.none()),n.set(!1),e.fire("longpresscancel"))})})},!0),e.on("touchend touchcancel",function(o){r.cancel(),"touchcancel"!==o.type&&t.get().filter(function(e){return e.target().isEqualNode(o.target)}).each(function(){n.get()?o.preventDefault():e.fire("tap",$t($t({},o),{type:"tap"}))})},!0)},pN={setup:gN},vN=function(e,t){return e.hasOwnProperty(t.nodeName)},yN=function(e,t){return No.isText(t)?!0:No.isElement(t)?!vN(e,t)&&!Km.isBookmarkNode(t):!1},bN=function(e,t,n){return mt(dC.parents(Zt.fromDom(n),Zt.fromDom(t)),function(t){return vN(e,t.dom())})},CN=function(e,t){if(No.isText(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||vN(e,t.nextSibling)))return!0}return!1},wN=function(e){var t,n,r,o,i,a,u,c,s,l,f=e.dom,d=e.selection,h=e.schema,m=h.getBlockElements(),g=d.getStart(),p=e.getBody(),v=yh.getForcedRootBlock(e);if(g&&No.isElement(g)&&v&&(l=p.nodeName.toLowerCase(),h.isValidChild(l,v.toLowerCase())&&!bN(m,p,g))){for(t=d.getRng(),n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,s=Bv.hasFocus(e),g=p.firstChild;g;)if(yN(m,g)){if(CN(m,g)){u=g,g=g.nextSibling,f.remove(u);continue}a||(a=f.create(v,yh.getForcedRootBlockAttrs(e)),g.parentNode.insertBefore(a,g),c=!0),u=g,g=g.nextSibling,a.appendChild(u)}else a=null,g=g.nextSibling;c&&s&&(t.setStart(n,r),t.setEnd(o,i),d.setRng(t),e.nodeChanged())}},xN=function(e){yh.getForcedRootBlock(e)&&e.on("NodeChange",t(wN,e))},EN={setup:xN},zN=No.isText,kN=function(e){return zN(e)&&e.data[0]===ml.ZWSP},NN=function(e){return zN(e)&&e.data[e.data.length-1]===ml.ZWSP},SN=function(e){return e.ownerDocument.createTextNode(ml.ZWSP)},TN=function(e){if(zN(e.previousSibling))return NN(e.previousSibling)?e.previousSibling:(e.previousSibling.appendData(ml.ZWSP),e.previousSibling);if(zN(e))return kN(e)?e:(e.insertData(0,ml.ZWSP),e);var t=SN(e);return e.parentNode.insertBefore(t,e),t},AN=function(e){if(zN(e.nextSibling))return kN(e.nextSibling)?e.nextSibling:(e.nextSibling.insertData(0,ml.ZWSP),e.nextSibling);if(zN(e))return NN(e)?e:(e.appendData(ml.ZWSP),e);var t=SN(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},RN=function(e,t){return e?TN(t):AN(t)},BN=t(RN,!0),DN=t(RN,!1),MN=function(e,t){return No.isText(e.container())?RN(t,e.container()):RN(t,e.getNode())},_N=function(e,t){var n=t.get();return n&&e.container()===n&&yl(n)},PN=function(e,t){return t.fold(function(t){Dd.remove(e.get());var n=BN(t);return e.set(n),J.some(Mf(n,n.length-1))},function(t){return zm.firstPositionIn(t).map(function(t){if(_N(t,e))return Mf(e.get(),1);Dd.remove(e.get());var n=MN(t,!0);return e.set(n),Mf(n,1)})},function(t){return zm.lastPositionIn(t).map(function(t){if(_N(t,e))return Mf(e.get(),e.get().length-1);Dd.remove(e.get());var n=MN(t,!1);return e.set(n),Mf(n,n.length-1)})},function(t){Dd.remove(e.get());var n=DN(t);return e.set(n),J.some(Mf(n,1))})},ON={renderCaret:PN},HN=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,LN=function(e){return HN.test(e)},IN=function(e,t){return ur(Zt.fromDom(t),yh.getInlineBoundarySelector(e))},VN=function(e){return"rtl"===rs.DOM.getStyle(e,"direction",!0)||LN(e.textContent)},FN=function(e,t,n){return bt(rs.DOM.getParents(n.container(),"*",t),e)},UN=function(e,t,n){var r=FN(e,t,n);return J.from(r[r.length-1])},jN=function(e,t,n){var r=Hh(t,e),o=Hh(n,e);return r&&r===o},qN=function(e){return xl(e)||El(e)},$N=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?yl(n)?No.isText(n.nextSibling)?Mf(n.nextSibling,0):Mf.after(n):xl(t)?Mf(n,r+1):t:yl(n)?No.isText(n.previousSibling)?Mf(n.previousSibling,n.previousSibling.data.length):Mf.before(n):El(t)?Mf(n,r-1):t},WN=t($N,!0),KN=t($N,!1),XN={isInlineTarget:IN,findRootInline:UN,isRtl:VN,isAtZwsp:qN,normalizePosition:$N,normalizeForwards:WN,normalizeBackwards:KN,hasSameParentBlock:jN},YN=function(e,t){for(var n=0;n0&&t(a,Fi.last(s))&&c++,a.line=c,o(a))return!0;s.push(a)}};return(u=Fi.last(i.getClientRects()))?(a=i.getNode(),l(a),IS(e,r,l,a),s):s},FS=function(e,t){return t.line>e},US=function(e,t){return t.line===e},jS=t(VS,uz.Up,Zl,Jl),qS=t(VS,uz.Down,Jl,Zl),$S=function(e,t,n,r){var o,i,a,u,c,s,l=lm(t),f=[],d=0,h=function(t){return Fi.last(1===e?t.getClientRects():t.getClientRects())};1===e?(o=l.next,i=Jl,a=Zl,u=Mf.after(r)):(o=l.prev,i=Zl,a=Jl,u=Mf.before(r)),s=h(u);do if(u.isVisible()&&(c=h(u),!a(c,s))){if(f.length>0&&i(c,Fi.last(f))&&d++,c=Kl(c),c.position=u,c.line=d,n(c))return f;f.push(c)}while(u=o(u));return f},WS=function(e){return function(t){return FS(e,t)}},KS=function(e){return function(t){return US(e,t)}},XS=No.isContentEditableFalse,YS=Oh,GS=function(e,t){return Math.abs(e.left-t)},ZS=function(e,t){return Math.abs(e.right-t)},JS=function(e,t){return e>=t.left&&e<=t.right},QS=function(e,t){return Fi.reduce(e,function(e,n){var r,o;return r=Math.min(GS(e,t),ZS(e,t)),o=Math.min(GS(n,t),ZS(n,t)),JS(t,n)?n:JS(t,e)?e:o===r&&XS(n.node)?n:r>o?n:e})},eT=function(e,t,n,r){for(;r=YS(r,e,$l,t);)if(n(r))return},tT=function(e,n){var r=[],o=function(e,t){var o;return o=bt(HS([t]),function(t){return!e(t,n)}),r=r.concat(o),0===o.length};return r.push(n),eT(uz.Up,e,t(o,Zl),n.node),eT(uz.Down,e,t(o,Jl),n.node),r},nT=function(e){return bt(Mt(e.getElementsByTagName("*")),Nh)},rT=function(e,t){return{node:e.node,before:GS(e,t)=e.top&&n<=e.bottom});return r=QS(i,t),r&&(r=QS(tT(e,r),t),r&&Nh(r.node))?rT(r,t):null},iT=No.isContentEditableTrue,aT=No.isContentEditableFalse,uT=function(e,t,n,r,o){return t._selectionOverrides.showCaret(e,n,r,o)},cT=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},sT=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?null:cT(t)},lT=function(e,t,n){var r=$h(1,e.getBody(),t),o=Mf.fromRangeStart(r),i=o.getNode();if(aT(i))return uT(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(aT(a))return uT(1,e,a,!1,!1);var u=e.dom.getParent(o.getNode(),function(e){return aT(e)||iT(e)});return aT(u)?uT(1,e,u,!1,n):null},fT=function(e,t,n){if(!t||!t.collapsed)return t;var r=lT(e,t,n);return r?r:t},dT=function(e,t,n){return J.from(n.container()).filter(No.isText).exists(function(r){var o=e?0:-1;return t(r.data.charAt(n.offset()+o))})},hT=t(dT,!0,Gm),mT=t(dT,!1,Gm),gT=function(e){var t=e.container();return No.isText(t)&&0===t.data.length},pT=function(e,t){return function(n){return J.from(Ih(e?0:-1,n)).filter(t).isSome()}},vT=function(e){return"IMG"===e.nodeName&&"block"===Po(Zt.fromDom(e),"display")},yT=function(e){return No.isContentEditableFalse(e)&&!No.isBogusAll(e)},bT=pT(!0,vT),CT=pT(!1,vT),wT=pT(!0,No.isTable),xT=pT(!1,No.isTable),ET=pT(!0,yT),zT=pT(!1,yT);!function(e){e[e.Br=0]="Br",e[e.Block=1]="Block",e[e.Wrap=2]="Wrap",e[e.Eol=3]="Eol"}(LS||(LS={}));var kT,NT,ST=function(e,t){return e===Df.Backwards?St(t):t},TT=function(e,t,n){return e===Df.Forwards?t.next(n):t.prev(n)},AT=function(e,t,n,r){return No.isBr(r.getNode(t===Df.Forwards))?LS.Br:Lh(n,r)===!1?LS.Block:LS.Wrap},RT=function(e,t,n,r){for(var o,i=lm(n),a=r,u=[];a&&(o=TT(t,i,a));){if(No.isBr(o.getNode(!1)))return t===Df.Forwards?{positions:ST(t,u).concat([o]),breakType:LS.Br,breakAt:J.some(o)}:{positions:ST(t,u),breakType:LS.Br,breakAt:J.some(o)};if(o.isVisible()){if(e(a,o)){var c=AT(n,t,a,o);return{positions:ST(t,u),breakType:c,breakAt:J.some(o)}}u.push(o),a=o}else a=o}return{positions:ST(t,u),breakType:LS.Eol,breakAt:J.none()}},BT=function(e,t,n,r){return t(n,r).breakAt.map(function(r){var o=t(n,r).positions;return e===Df.Backwards?o.concat(r):[r].concat(o)}).getOr([])},DT=function(e,t){return wt(e,function(e,n){return e.fold(function(){return J.some(n)},function(r){return of(Bt(r.getClientRects()),Bt(n.getClientRects()),function(e,o){var i=Math.abs(t-e.left),a=Math.abs(t-o.left);return i>=a?n:r}).or(e)})},J.none())},MT=function(e,t){return Bt(t.getClientRects()).bind(function(t){return DT(e,t.left)})},_T=t(RT,N.isAbove,-1),PT=t(RT,N.isBelow,1),OT=function(e,t){return _T(e,t).breakAt.isNone()},HT=function(e,t){return PT(e,t).breakAt.isNone()},LT=t(BT,-1,_T),IT=t(BT,1,PT),VT=function(e){return zm.firstPositionIn(e).map(function(t){return[t].concat(PT(e,t).positions) -}).getOr([])},FT=function(e){return zm.lastPositionIn(e).map(function(t){return _T(e,t).positions.concat(t)}).getOr([])},UT=No.isContentEditableFalse,jT=ef,qT=function(e,t,n,r){var o=e===Df.Forwards,i=o?ET:zT;if(!r.collapsed){var a=jT(r);if(UT(a))return uT(e,t,a,e===Df.Backwards,!0)}var u=Rl(r),c=Kh(e,t.getBody(),r);if(i(c))return sT(t,c.getNode(!o));var s=XN.normalizePosition(o,n(c));if(!s)return u?r:null;if(i(s))return uT(e,t,s.getNode(!o),o,!0);var l=n(s);return l&&i(l)&&Zh(s,l)?uT(e,t,l.getNode(!o),o,!0):u?fT(t,s.toRange(),!0):null},$T=function(e,t,n,r){var o,i,a,u,c,s,l,f,d;if(d=jT(r),o=Kh(e,t.getBody(),r),i=n(t.getBody(),WS(1),o),a=bt(i,KS(1)),c=Fi.last(o.getClientRects()),(ET(o)||wT(o))&&(d=o.getNode()),(zT(o)||xT(o))&&(d=o.getNode(!0)),!c)return null;if(s=c.left,u=QS(a,s),u&&UT(u.node))return l=Math.abs(s-u.left),f=Math.abs(s-u.right),uT(e,t,u.node,f>l,!0);if(d){var h=$S(e,t.getBody(),WS(1),d);if(u=QS(bt(h,KS(1)),s))return fT(t,u.position.toRange(),!0);if(u=Fi.last(bt(h,KS(0))))return fT(t,u.position.toRange(),!0)}},WT=function(e){var t=e.dom.create(yh.getForcedRootBlock(e));return(!Ri.ie||Ri.ie>=11)&&(t.innerHTML='
    '),t},KT=function(e,n,r){var o,i,a,u=lm(e.getBody()),c=t(Gh,u.next),s=t(Gh,u.prev);if(r.collapsed&&e.settings.forced_root_block){if(o=e.dom.getParent(r.startContainer,"PRE"),!o)return;i=1===n?c(Mf.fromRangeStart(r)):s(Mf.fromRangeStart(r)),i||(a=WT(e),1===n?e.$(o).after(a):e.$(o).before(a),e.selection.select(a,!0),e.selection.collapse())}},XT=function(e,n){var r,o=lm(e.getBody()),i=t(Gh,o.next),a=t(Gh,o.prev),u=n?Df.Forwards:Df.Backwards,c=n?i:a,s=e.selection.getRng();return(r=qT(u,e,c,s))?r:(r=KT(e,u,s),r?r:null)},YT=function(e,t){var n,r=t?1:-1,o=t?qS:jS,i=e.selection.getRng();return(n=$T(r,e,o,i))?n:(n=KT(e,r,i),n?n:null)},GT=function(e,t){return function(){var n=XT(e,t);return n?(e.selection.setRng(n),!0):!1}},ZT=function(e,t){return function(){var n=YT(e,t);return n?(e.selection.setRng(n),!0):!1}},JT=function(e){return function(t){return e?zT(t):ET(t)}},QT=function(e,t){return function(){var n=t?Mf.fromRangeEnd(e.selection.getRng()):Mf.fromRangeStart(e.selection.getRng()),r=t?PT(e.getBody(),n):_T(e.getBody(),n),o=t?Dt(r.positions):Bt(r.positions);return o.filter(JT(t)).fold(U(!1),function(t){return e.selection.setRng(t.toRange()),!0})}},eA=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},tA=function(e,t){return kt(t,function(t){var n=eA(Kl(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]})},nA=function(e,t,n){return wt(e,function(e,r){return e.fold(function(){return J.some(r)},function(e){var o=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),i=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return J.some(o>i?r:e)})},J.none())},rA=function(e,t,n,r,o){var i=Vs(Zt.fromDom(n),"td,th,caption").map(function(e){return e.dom()}),a=bt(tA(e,i),function(e){return t(e,o)});return nA(a,r,o).map(function(e){return e.cell})},oA=function(e){return e.bottom},iA=function(e){return e.top},aA=function(e,t){return e.yt},cA=t(rA,oA,aA),sA=t(rA,iA,uA),lA=function(e,t){return Bt(t.getClientRects()).bind(function(t){return cA(e,t.left,t.top)}).bind(function(e){return MT(FT(e),t)})},fA=function(e,t){return Dt(t.getClientRects()).bind(function(t){return sA(e,t.left,t.top)}).bind(function(e){return MT(VT(e),t)})},dA=function(e,t){e.selection.setRng(t),Jb.scrollRangeIntoView(e,t)},hA=function(e,t,n){return n.breakAt.map(function(n){return e(t,n).breakAt.isSome()}).getOr(!1)},mA=function(e){return e.breakType===LS.Wrap&&0===e.positions.length},gA=function(e){return e.breakType===LS.Br&&1===e.positions.length},pA=function(e,t,n){var r=e(t,n);return mA(r)||!No.isBr(n.getNode())&&gA(r)?!hA(e,t,r):r.breakAt.isNone()},vA=t(pA,_T),yA=t(pA,PT),bA=function(e,t,n){var r=Mf.fromRangeStart(t);return zm.positionIn(!e,n).map(function(e){return e.isEqual(r)}).getOr(!1)},CA=function(e,t,n){var r=e.selection.getRng(),o=t?1:-1;if(kh()&&bA(t,r,n)){var i=uT(o,e,n,!t,!0);return dA(e,i),!0}return!1},wA=function(e,t,n){return lA(t,n).orThunk(function(){return Bt(n.getClientRects()).bind(function(n){return DT(LT(e,Mf.before(t)),n.left)})}).getOr(Mf.before(t))},xA=function(e,t,n){return fA(t,n).orThunk(function(){return Bt(n.getClientRects()).bind(function(n){return DT(IT(e,Mf.after(t)),n.left)})}).getOr(Mf.after(t))},EA=function(e,t){var n=t.getNode(e);return No.isElement(n)&&"TABLE"===n.nodeName?J.some(n):J.none()},zA=function(e,t,n,r){var o=yh.getForcedRootBlock(t);o?t.undoManager.transact(function(){var r=Zt.fromTag(o);Ro(r,yh.getForcedRootBlockAttrs(t)),Mr(r,Zt.fromTag("br")),e?Br(Zt.fromDom(n),r):Rr(Zt.fromDom(n),r);var i=t.dom.createRng();i.setStart(r.dom(),0),i.setEnd(r.dom(),0),dA(t,i)}):dA(t,r.toRange())},kA=function(e,t,n){var r=t?EA(!0,n):EA(!1,n),o=t===!1;r.fold(function(){return dA(e,n.toRange())},function(r){return zm.positionIn(o,e.getBody()).filter(function(e){return e.isEqual(n)}).fold(function(){return dA(e,n.toRange())},function(){return zA(t,e,r,n)})})},NA=function(e,t,n,r){var o=e.selection.getRng(),i=Mf.fromRangeStart(o),a=e.getBody();if(!t&&vA(r,i)){var u=wA(a,n,i);return kA(e,t,u),!0}if(t&&yA(r,i)){var u=xA(a,n,i);return kA(e,t,u),!0}return!1},SA=function(e,t){return function(){return J.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(function(n){return J.from(e.dom.getParent(n,"table")).map(function(n){return CA(e,t,n)})}).getOr(!1)}},TA=function(e,t){return function(){return J.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(function(n){return J.from(e.dom.getParent(n,"table")).map(function(r){return NA(e,t,r,n)})}).getOr(!1)}},AA=function(e){return ht(["figcaption"],Vr(e))},RA=function(t){var n=e.document.createRange();return n.setStartBefore(t.dom()),n.setEndBefore(t.dom()),n},BA=function(e,t,n){n?Mr(e,t):Dr(e,t)},DA=function(e,t){var n=Zt.fromTag("br");return BA(e,n,t),RA(n)},MA=function(e,t,n,r){var o=Zt.fromTag(n),i=Zt.fromTag("br");return Ro(o,r),Mr(o,i),BA(e,o,t),RA(i)},_A=function(e,t,n,r){return""===t?DA(e,r):MA(e,r,t,n)},PA=function(e,n){var r=t(fr,n);return Us(Zt.fromDom(e.container()),da,r).filter(AA)},OA=function(e,t,n){return t?HT(e.dom(),n):OT(e.dom(),n)},HA=function(e,t){var n=Zt.fromDom(e.getBody()),r=Mf.fromRangeStart(e.selection.getRng()),o=yh.getForcedRootBlock(e),i=yh.getForcedRootBlockAttrs(e);return PA(r,n).exists(function(){if(OA(n,t,r)){var a=_A(n,o,i,t);return e.selection.setRng(a),!0}return!1})},LA=function(e,t){return function(){return e.selection.isCollapsed()?HA(e,t):!1}},IA=function(e){return gt(e,function(e){return $t({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:V},e)})},VA=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},FA=function(e,t){return kt(IA(e),function(e){return VA(e,t)?[e]:[]})},UA=function(e){for(var t=[],n=1;n0})},bD=function(e){var t=xD(e);return!e.mode.isReadOnly()&&(t.length>1||yD(e,t))},CD=function(e){return va(e)||ya(e)},wD=function(e){return br(e).map(CD).getOr(!1)},xD=function(e){return bt(gt(e.selection.getSelectedBlocks(),Zt.fromDom),function(e){return!CD(e)&&!wD(e)&&mD(e)})},ED=function(e,t){var n=e.dom,r=e.selection,o=e.formatter,i=yh.getIndentation(e),a=/[a-z%]+$/i.exec(i)[0],u=parseInt(i,10),c=yh.shouldIndentUseMargin(e),s=yh.getForcedRootBlock(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==s||n.getParent(r.getNode(),n.isBlock)||o.apply("div"),pt(xD(e),function(e){vD(n,t,c,u,a,e.dom())})},zD=function(e,t,n){return zm.navigateIgnore(e,t,n,gT)},kD=function(e,t){return xt(dC.parentsAndSelf(Zt.fromDom(t.container()),e),da)},ND=function(e,t,n){return zD(e,t.dom(),n).forall(function(e){return kD(t,n).fold(function(){return Lh(e,n,t.dom())===!1},function(r){return Lh(e,n,t.dom())===!1&&gr(r,Zt.fromDom(e.container()))})})},SD=function(e,t,n){return kD(t,n).fold(function(){return zD(e,t.dom(),n).forall(function(e){return Lh(e,n,t.dom())===!1})},function(t){return zD(e,t.dom(),n).isNone()})},TD=t(SD,!1),AD=t(SD,!0),RD=t(ND,!1),BD=t(ND,!0),DD=function(e){if(e.selection.isCollapsed()&&bD(e)){var t=e.dom,n=e.selection.getRng(),r=Mf.fromRangeStart(n),o=t.getParent(n.startContainer,t.isBlock);if(null!==o&&TD(Zt.fromDom(o),r))return ED(e,"outdent"),!0}return!1},MD={backspaceDelete:DD},_D=function(e,t,n){qA.execute([{keyCode:vb.BACKSPACE,action:qA.action(MD.backspaceDelete,e,!1)},{keyCode:vb.BACKSPACE,action:qA.action(oB.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(oB.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(sB.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(sB.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(yB.backspaceDelete,e,t,!1)},{keyCode:vb.DELETE,action:qA.action(yB.backspaceDelete,e,t,!0)},{keyCode:vb.BACKSPACE,action:qA.action(lD.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(lD.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(hD.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(hD.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(BR.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(BR.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(ER.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(ER.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(zB.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(zB.backspaceDelete,e,!0)}],n).each(function(){n.preventDefault()})},PD=function(e,t){qA.execute([{keyCode:vb.BACKSPACE,action:qA.action(oB.paddEmptyElement,e)},{keyCode:vb.DELETE,action:qA.action(oB.paddEmptyElement,e)}],t)},OD=function(e,t){e.on("keydown",function(n){n.isDefaultPrevented()===!1&&_D(e,t,n)}),e.on("keyup",function(t){t.isDefaultPrevented()===!1&&PD(e,t)})},HD={setup:OD},LD=function(e){for(;e;){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},ID=function(e,t){var n,r,o=t,i=e.dom,a=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var u=LD(t.firstChild);u&&/^(UL|OL|DL)$/.test(u.nodeName)&&t.insertBefore(i.doc.createTextNode(yu),t.firstChild)}if(r=i.createRng(),t.normalize(),t.hasChildNodes()){for(var c=new Xc(t,t);n=c.current();){if(No.isText(n)){r.setStart(n,0),r.setEnd(n,0);break}if(a[n.nodeName.toLowerCase()]){r.setStartBefore(n),r.setEndBefore(n);break}o=n,n=c.next()}n||(r.setStart(o,0),r.setEnd(o,0))}else No.isBr(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)):(r.setStart(t,0),r.setEnd(t,0));e.selection.setRng(r),Jb.scrollRangeIntoView(e,r)}},VD=function(e,t){var n,r,o=e.getRoot();for(n=t;n!==o&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},FD=function(e){return J.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},UD=function(e){return FD(e).fold(U(""),function(e){return e.nodeName.toUpperCase()})},jD=function(e){return FD(e).filter(function(e){return ya(Zt.fromDom(e))}).isSome()},qD={moveToCaretPosition:ID,getEditableRoot:VD,getParentBlock:FD,getParentBlockName:UD,isListItemParentBlock:jD},$D=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},WD=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},KD=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},XD=function(e){return KD(e)&&KD(e.parentNode)},YD=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},GD=function(e,t,n){for(var r=e[n?"firstChild":"lastChild"];r&&!No.isElement(r);)r=r[n?"nextSibling":"previousSibling"];return r===t},ZD=function(e,t,n,r,o){var i=e.dom,a=e.selection.getRng();if(n!==e.getBody()){XD(n)&&(o="LI");var u=o?t(o):i.create("BR");if(GD(n,r,!0)&&GD(n,r,!1))WD(n,"LI")?i.insertAfter(u,YD(n)):i.replace(u,n);else if(GD(n,r,!0))WD(n,"LI")?(i.insertAfter(u,YD(n)),u.appendChild(i.doc.createTextNode(" ")),u.appendChild(n)):n.parentNode.insertBefore(u,n);else if(GD(n,r,!1))i.insertAfter(u,YD(n));else{n=YD(n);var c=a.cloneRange();c.setStartAfter(r),c.setEndAfter(n);var s=c.extractContents();"LI"===o&&$D(s,"LI")?(u=s.firstChild,i.insertAfter(s,n)):(i.insertAfter(s,n),i.insertAfter(u,n))}i.remove(r),qD.moveToCaretPosition(e,u)}},JD={insert:ZD},QD=function(e){pt(Is(Zt.fromDom(e),qr),function(e){var t=e.dom();t.nodeValue=ml.trim(t.nodeValue)})},eM=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},tM=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},nM=function(e){e.innerHTML='
    '},rM=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},oM=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},iM=function(e,t,n){var r,o=n,i=[];if(o){for(;o=o.firstChild;){if(e.isBlock(o))return;No.isElement(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}for(r=i.length;r--;)o=i[r],!o.hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue?e.remove(o):eM(e,o)&&e.remove(o)}},aM=function(e,t,n){return No.isText(t)===!1?n:e?1===n&&t.data.charAt(n-1)===ml.ZWSP?0:n:n===t.data.length-1&&t.data.charAt(n)===ml.ZWSP?t.data.length:n},uM=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,aM(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,aM(!1,e.endContainer,e.endOffset)),t},cM=function(e){do No.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;while(e)},sM=function(e,t){var n,r,o=e.getRoot();for(n=t;n!==o&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},lM=function(e,t,n){J.from(n.style).map(e.dom.parseStyle).each(function(n){var r=Lo(Zt.fromDom(t)),o=$t($t({},r),n);e.dom.setStyles(t,o)});var r=J.from(n.class).map(function(e){return e.split(/\s+/)}),i=J.from(t.className).map(function(e){return bt(e.split(/\s+/),function(e){return""!==e})});of(r,i,function(n,r){var i=bt(r,function(e){return!ht(n,e)}),a=o(n,i);e.dom.setAttrib(t,"class",a.join(" "))});var a=["style","class"],u=Ut(n,function(e,t){return!ht(a,t)});e.dom.setAttribs(t,u)},fM=function(e,t){var n=yh.getForcedRootBlock(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=yh.getForcedRootBlockAttrs(e);lM(e,t,r)}},dM=function(e,t,n,r,o){var i,a,u,c,s,l,f=t||"P",d=e.dom,h=sM(d,r);if(a=d.getParent(r,d.isBlock),!a||!oM(d,a)){if(a=a||h,l=a===e.getBody()||tM(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=d.create(f),fM(e,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;for(c=r;c.parentNode!==a;)c=c.parentNode;for(;c&&!d.isBlock(c);)u=c,c=c.previousSibling;if(u&&e.schema.isValidChild(l,f.toLowerCase())){for(i=d.create(f),fM(e,i),u.parentNode.insertBefore(i,u),c=u;c&&!d.isBlock(c);)s=c.nextSibling,i.appendChild(c),c=s;n.setStart(r,o),n.setEnd(r,o)}}return r},hM=function(e,t){var n;t.normalize(),n=t.lastChild,(!n||/^(left|right)$/gi.test(e.getStyle(n,"float",!0)))&&e.add(t,"br") -},mM=function(e,t){var n,r,o,i,a,u,c,s,l,f,d,h,m,g=e.dom,p=e.schema,v=p.getNonEmptyElements(),y=e.selection.getRng(),b=function(t){var n,i,u,c=o,s=p.getTextInlineElements();if(n=t||"TABLE"===f||"HR"===f?g.create(t||h):a.cloneNode(!1),u=n,yh.shouldKeepStyles(e)===!1)g.setAttrib(n,"style",null),g.setAttrib(n,"class",null);else do if(s[c.nodeName]){if(vd(c)||Km.isBookmarkNode(c))continue;i=c.cloneNode(!1),g.setAttrib(i,"id",""),n.hasChildNodes()?(i.appendChild(n.firstChild),n.appendChild(i)):(u=i,n.appendChild(i))}while((c=c.parentNode)&&c!==r);return fM(e,n),nM(u),n},C=function(e){var t,n,r=aM(e,o,i);if(No.isText(o)&&(e?r>0:ro.childNodes.length-1,o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o,i=m&&No.isText(o)?o.nodeValue.length:0),(r=sM(g,o))?((h&&!u||!h&&u)&&(o=dM(e,h,y,o,i)),a=g.getParent(o,g.isBlock),l=a?g.getParent(a.parentNode,g.isBlock):null,f=a?a.nodeName.toUpperCase():"",d=l?l.nodeName.toUpperCase():"","LI"!==d||x||(a=l,l=l.parentNode,f=d),/^(LI|DT|DD)$/.test(f)&&g.isEmpty(a)?void JD.insert(e,b,l,a,h):void(h&&a===e.getBody()||(h=h||"P",vl(a)?(c=Al(a),g.isEmpty(a)&&nM(a),fM(e,c),qD.moveToCaretPosition(e,c)):C()?w():C(!0)?(c=a.parentNode.insertBefore(b(),a),qD.moveToCaretPosition(e,rM(a,"HR")?c:a)):(n=uM(y).cloneRange(),n.setEndAfter(a),s=n.extractContents(),QD(s),cM(s),c=s.firstChild,g.insertAfter(s,a),iM(g,v,c),hM(g,a),g.isEmpty(a)&&nM(a),c.normalize(),g.isEmpty(c)?(g.remove(c),w()):(fM(e,c),qD.moveToCaretPosition(e,c))),g.setAttrib(c,"id",""),e.fire("NewBlock",{newBlock:c})))):void 0},gM={insert:mM},pM=function(e,t,n){for(var r,o=new Xc(t,n),i=e.getNonEmptyElements();r=o.next();)if(i[r.nodeName.toLowerCase()]||r.length>0)return!0},vM=function(e,t,n){var r=e.create("span",{}," ");n.parentNode.insertBefore(r,n),t.scrollIntoView(r),e.remove(r)},yM=function(e,t,n,r){var o=e.createRng();r?(o.setStartBefore(n),o.setEndBefore(n)):(o.setStartAfter(n),o.setEndAfter(n)),t.setRng(o)},bM=function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();xw.normalize(i,a).each(function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)});var u=a.startOffset,c=a.startContainer;if(1===c.nodeType&&c.hasChildNodes()){var s=u>c.childNodes.length-1;c=c.childNodes[Math.min(u,c.childNodes.length-1)]||c,u=s&&3===c.nodeType?c.nodeValue.length:0}var l=i.getParent(c,i.isBlock),f=l?i.getParent(l.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==d||h||(l=f),c&&3===c.nodeType&&u>=c.nodeValue.length&&(pM(e.schema,c,l)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),Zf(i,a,n),vM(i,o,n),yM(i,o,n,r),e.undoManager.add()},CM=function(e,t){var n=Zt.fromTag("br");Rr(Zt.fromDom(t),n),e.undoManager.add()},wM=function(e,t){EM(e.getBody(),t)||Br(Zt.fromDom(t),Zt.fromTag("br"));var n=Zt.fromTag("br");Br(Zt.fromDom(t),n),vM(e.dom,e.selection,n.dom()),yM(e.dom,e.selection,n.dom(),!1),e.undoManager.add()},xM=function(e){return No.isBr(e.getNode())},EM=function(e,t){return xM(Mf.after(t))?!0:zm.nextPosition(e,Mf.after(t)).map(function(e){return No.isBr(e.getNode())}).getOr(!1)},zM=function(e){return e&&"A"===e.nodeName&&"href"in e},kM=function(e){return e.fold(U(!1),zM,zM,U(!1))},NM=function(e){var n=t(XN.isInlineTarget,e),r=Mf.fromRangeStart(e.selection.getRng());return vS.readLocation(n,e.getBody(),r).filter(kM)},SM=function(e,n){n.fold(V,t(CM,e),t(wM,e),V)},TM=function(e,n){var r=NM(e);r.isSome()?r.each(t(SM,e)):bM(e,n)},AM={insert:TM},RM=function(e,t){return qD.getParentBlock(e).filter(function(e){return t.length>0&&ur(Zt.fromDom(e),t)}).isSome()},BM=function(e){return RM(e,yh.getBrNewLineSelector(e))},DM=function(e){return RM(e,yh.getNoNewLineSelector(e))},MM={shouldInsertBr:BM,shouldBlockNewLine:DM},_M=yp.generate([{br:[]},{block:[]},{none:[]}]),PM=function(e){return MM.shouldBlockNewLine(e)},OM=function(e){return function(t){var n=""===yh.getForcedRootBlock(t);return n===e}},HM=function(e){return function(t){return qD.isListItemParentBlock(t)===e}},LM=function(e,t){return function(n){var r=qD.getParentBlockName(n)===e.toUpperCase();return r===t}},IM=function(e){return LM("pre",e)},VM=function(){return LM("summary",!0)},FM=function(e){return function(t){return yh.shouldPutBrInPre(t)===e}},UM=function(e){return MM.shouldInsertBr(e)},jM=function(e,t){return t},qM=function(e){var t=yh.getForcedRootBlock(e),n=qD.getEditableRoot(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t?t:"P")},$M=function(e,t){return function(n,r){var o=wt(e,function(e,t){return e&&t(n,r)},!0);return o?J.some(t):J.none()}},WM=function(e,t){return GN.evaluateUntil([$M([PM],_M.none()),$M([VM()],_M.br()),$M([IM(!0),FM(!1),jM],_M.br()),$M([IM(!0),FM(!1)],_M.block()),$M([IM(!0),FM(!0),jM],_M.block()),$M([IM(!0),FM(!0)],_M.br()),$M([HM(!0),jM],_M.br()),$M([HM(!0)],_M.block()),$M([OM(!0),jM,qM],_M.block()),$M([OM(!0)],_M.br()),$M([UM],_M.br()),$M([OM(!1),jM],_M.br()),$M([qM],_M.block())],[e,!(!t||!t.shiftKey)]).getOr(_M.none())},KM={getAction:WM},XM=function(e,t){KM.getAction(e,t).fold(function(){AM.insert(e,t)},function(){gM.insert(e,t)},V)},YM={insert:XM},GM=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),Uk(e.undoManager),e.undoManager.transact(function(){e.selection.isCollapsed()===!1&&e.execCommand("Delete"),YM.insert(e,t)}))},ZM=function(e){e.on("keydown",function(t){t.keyCode===vb.ENTER&&GM(e,t)})},JM={setup:ZM},QM=function(e,t){var n=t.container(),r=t.offset();return No.isText(n)?(n.insertData(r,e),J.some(N(n,r+e.length))):Xh(t).map(function(n){var r=Zt.fromText(e);return t.isAtEnd()?Br(n,r):Rr(n,r),N(r.dom(),e.length)})},e_=t(QM,yu),t_=t(QM," "),n_=function(e){return N.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},r_=function(e,t){var n=bt(dC.parentsAndSelf(Zt.fromDom(t.container()),e),da);return Bt(n).getOr(e)},o_=function(e,t){return n_(t)?mT(t):mT(t)||zm.prevPosition(r_(e,t).dom(),t).exists(mT)},i_=function(e,t){return n_(t)?hT(t):hT(t)||zm.nextPosition(r_(e,t).dom(),t).exists(hT)},a_=function(e){return ht(["pre","pre-wrap"],e)},u_=function(e){return Xh(e).bind(function(e){return Us(e,jr)}).exists(function(e){return a_(Po(e,"white-space"))})},c_=function(e,t){return zm.prevPosition(e.dom(),t).isNone()},s_=function(e,t){return zm.nextPosition(e.dom(),t).isNone()},l_=function(e,t){return c_(e,t)||s_(e,t)||TD(e,t)||AD(e,t)||PR(e,t)||_R(e,t)},f_=function(e,t){return u_(t)?!1:l_(e,t)||o_(e,t)||i_(e,t)},d_=function(e,t){return u_(t)?!1:TD(e,t)||RD(e,t)||PR(e,t)||o_(e,t)},h_=function(e){var t=e.container(),n=e.offset();return No.isText(t)&&n0&&n=0&&n[t]===this.lastPath[t];t--);if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),W_=function(e){e.on("click",function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()})},K_=function(e){e.parser.addNodeFilter("details",function(e){pt(e,function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")})}),e.serializer.addNodeFilter("details",function(e){pt(e,function(e){var t=e.attr("data-mce-open");e.attr("open",tt(t)?t:null),e.attr("data-mce-open",null)})})},X_=function(e){W_(e),K_(e)},Y_=function(e){return No.isElement(e)&&pa(Zt.fromDom(e))},G_=function(e){var t=e.selection.getRng(),n=N.fromRangeStart(t),r=N.fromRangeEnd(t);if(N.isElementPosition(n)){var o=n.container();Y_(o)&&zm.firstPositionIn(o).each(function(e){return t.setStart(e.container(),e.offset())})}if(N.isElementPosition(r)){var o=n.container();Y_(o)&&zm.lastPositionIn(o).each(function(e){return t.setEnd(e.container(),e.offset())})}e.selection.setRng($z.normalize(t))},Z_=function(e){e.on("click",function(t){t.detail>=3&&G_(e)})},J_=function(e){var t,n,r,o;return o=e.getBoundingClientRect(),t=e.ownerDocument,n=t.documentElement,r=t.defaultView,{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}},Q_=function(e){return e.inline?J_(e.getBody()):{left:0,top:0}},eP=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},tP=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},o={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:o},nP=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=J_(e.getContentAreaContainer()),r=tP(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},rP=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},oP=function(e,t){return rP(Q_(e),eP(e),nP(e,t))},iP={calc:oP},aP=No.isContentEditableFalse,uP=No.isContentEditableTrue,cP=function(e,t){return aP(t)&&t!==e},sP=function(e,t,n){return t===n||e.dom.isChildOf(t,n)?!1:!aP(t)},lP=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},fP=function(e,t,n,r){var o=t.cloneNode(!0);e.dom.setStyles(o,{width:n,height:r}),e.dom.setAttrib(o,"data-mce-selected",null);var i=e.dom.create("div",{"class":"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return e.dom.setStyles(i,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),e.dom.setStyles(o,{margin:0,boxSizing:"border-box"}),i.appendChild(o),i},dP=function(e,t){e.parentNode!==t&&t.appendChild(e)},hP=function(e,t,n,r,o,i){var a=0,u=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>o&&(a=t.pageX+n-o),t.pageY+r>i&&(u=t.pageY+r-i),e.style.width=n-a+"px",e.style.height=r-u+"px"},mP=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},gP=function(e){return 0===e.button},pP=function(e){return e.element},vP=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},yP=function(e,t){return function(n){if(gP(n)){var r=xt(t.dom.getParents(n.target),ff.or(aP,uP)).getOr(null);if(cP(t.getBody(),r)){var o=t.dom.getPos(r),i=t.getBody(),a=t.getDoc().documentElement;e.element=r,e.screenX=n.screenX,e.screenY=n.screenY,e.maxX=(t.inline?i.scrollWidth:a.offsetWidth)-2,e.maxY=(t.inline?i.scrollHeight:a.offsetHeight)-2,e.relX=n.pageX-o.x,e.relY=n.pageY-o.y,e.width=r.offsetWidth,e.height=r.offsetHeight,e.ghost=fP(t,r,e.width,e.height)}}}},bP=function(e,t){var n=wi.throttle(function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)},0);return function(r){var o=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(pP(e)&&!e.dragging&&o>10){var i=t.fire("dragstart",{target:e.element});if(i.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=vP(e,iP.calc(t,r));dP(e.ghost,t.getBody()),hP(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}},CP=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},wP=function(e,t){return function(n){if(e.dragging&&sP(t,CP(t.selection),e.element)){var r=lP(e.element),o=t.fire("drop",{targetClone:r,clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||(r=o.targetClone,t.undoManager.transact(function(){mP(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}EP(e)}},xP=function(e,t){return function(){e.dragging&&t.fire("dragend"),EP(e)}},EP=function(e){e.dragging=!1,e.element=null,mP(e.ghost)},zP=function(t){var n,r,o,i,a,u,c={};n=rs.DOM,u=e.document,r=yP(c,t),o=bP(c,t),i=wP(c,t),a=xP(c,t),t.on("mousedown",r),t.on("mousemove",o),t.on("mouseup",i),n.bind(u,"mousemove",o),n.bind(u,"mouseup",a),t.on("remove",function(){n.unbind(u,"mousemove",o),n.unbind(u,"mouseup",a)})},kP=function(e){e.on("drop",function(t){var n="undefined"!=typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(aP(n)||aP(e.dom.getContentEditableParent(n)))&&t.preventDefault()})},NP=function(e){zP(e),kP(e)},SP={init:NP},TP=function(t){var n=Ns(function(){if(!t.removed&&t.getBody().contains(e.document.activeElement)){var n=t.selection.getRng();if(n.collapsed){var r=fT(t,t.selection.getRng(),!1);t.selection.setRng(r)}}},0);t.on("focus",function(){n.throttle()}),t.on("blur",function(){n.cancel()})},AP={setup:TP},RP=No.isContentEditableTrue,BP=No.isContentEditableFalse,DP=function(e,t){for(var n=e.getBody();t&&t!==n;){if(RP(t)||BP(t))return t;t=t.parentNode}return null},MP=function(e){var t,n=function(t){return e.dom.isBlock(t)},r=e.getBody(),o=zh(e,r,n,function(){return Bv.hasFocus(e)}),i="sel-"+e.dom.uniqueId(),a=function(t){return e.dom.hasClass(t,"mce-offscreen-selection")},u=function(){var t=e.dom.get(i);return t?t.getElementsByTagName("*")[0]:t},c=function(t){t&&e.selection.setRng(t)},s=function(){return e.selection.getRng()},l=function(t,n,r,i){void 0===i&&(i=!0);var a;return a=e.fire("ShowCaret",{target:n,direction:t,before:r}),a.isDefaultPrevented()?null:(i&&e.selection.scrollIntoView(n,-1===t),o.show(r,n))},f=function(t){t.hasAttribute("data-mce-caret")&&(Al(t),c(s()),e.selection.scrollIntoView(t))},d=function(){e.on("mouseup",function(t){var n=s();n.collapsed&&Yy.isXYInContentArea(e,t.clientX,t.clientY)&&c(lT(e,n,!1))}),e.on("click",function(t){var n;n=DP(e,t.target),n&&(BP(n)&&(t.preventDefault(),e.focus()),RP(n)&&e.dom.isChildOf(n,e.selection.getNode())&&v())}),e.on("blur NewBlock",function(){v()}),e.on("ResizeWindow FullscreenStateChanged",function(){return o.reposition()});var n=function(e){e.on("tap",function(t){var n=DP(e,t.target);BP(n)&&(t.preventDefault(),p(sT(e,n)))},!0)},i=function(e){var t=lm(e);if(!e.firstChild)return!1;var n=Mf.before(e.firstChild),r=t.next(n);return r&&!ET(r)&&!zT(r)},f=function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),o=e.dom.getParent(n,e.dom.isBlock);return r===o},d=function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),o=e.dom.getParent(n,e.dom.isBlock);return r&&e.dom.isChildOf(r,o)&&BP(DP(e,r))===!1?!0:r&&!f(r,o)&&i(r)};n(e),e.on("mousedown",function(t){var n,o=t.target;if((o===r||"HTML"===o.nodeName||e.dom.isChildOf(o,r))&&Yy.isXYInContentArea(e,t.clientX,t.clientY)!==!1)if(n=DP(e,o))BP(n)?(t.preventDefault(),p(sT(e,n))):(v(),RP(n)&&t.shiftKey||pb.isXYWithinRange(t.clientX,t.clientY,e.selection.getRng())||(b(),e.selection.placeCaretAt(t.clientX,t.clientY)));else if(Nh(o)===!1){v(),b();var i=oT(r,t.clientX,t.clientY);if(i&&!d(t.target,i.node)){t.preventDefault();var a=l(1,i.node,i.before,!1);e.getBody().focus(),c(a)}}}),e.on("keypress",function(t){if(!vb.modifierPressed(t))switch(t.keyCode){default:BP(e.selection.getNode())&&t.preventDefault()}}),e.on("GetSelectionRange",function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}}),e.on("SetSelectionRange",function(e){e.range=g(e.range);var t=p(e.range,e.forward);t&&(e.range=t)});var h=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",function(e){var t=e.range;m(t)||h(t.startContainer.parentNode)||b(),a(t.startContainer.parentNode)||v()}),e.on("copy",function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!Ri.ie){var n=u();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText))}}),SP.init(e),AP.setup(e)},h=function(e){return bl(e)||Nl(e)||Sl(e)},m=function(e){return h(e.startContainer)||h(e.endContainer)},g=function(t){var n=e.schema.getShortEndedElements(),r=e.dom.createRng(),o=t.startContainer,i=t.startOffset,a=t.endContainer,u=t.endOffset;return qt(n,o.nodeName.toLowerCase())?0===i?r.setStartBefore(o):r.setStartAfter(o):r.setStart(o,i),qt(n,a.nodeName.toLowerCase())?0===u?r.setEndBefore(a):r.setEndAfter(a):r.setEnd(a,u),r},p=function(n,o){var a,u,c,s,f,d,h,g,p,v,y=e.$,C=e.dom;if(!n)return null;if(n.collapsed){if(!m(n))if(o===!1){if(g=Kh(-1,r,n),Nh(g.getNode(!0)))return l(-1,g.getNode(!0),!1,!1);if(Nh(g.getNode()))return l(-1,g.getNode(),!g.isAtEnd(),!1)}else{if(g=Kh(1,r,n),Nh(g.getNode()))return l(1,g.getNode(),!g.isAtEnd(),!1);if(Nh(g.getNode(!0)))return l(1,g.getNode(!0),!1,!1)}return null}if(s=n.startContainer,f=n.startOffset,d=n.endOffset,3===s.nodeType&&0===f&&BP(s.parentNode)&&(s=s.parentNode,f=C.nodeIndex(s),s=s.parentNode),1!==s.nodeType)return null;if(d===f+1&&s===n.endContainer&&(a=s.childNodes[f]),!BP(a))return null;if(p=v=a.cloneNode(!0),h=e.fire("ObjectSelected",{target:a,targetClone:p}),h.isDefaultPrevented())return null;u=qs(Zt.fromDom(e.getBody()),"#"+i).fold(function(){return y([])},function(e){return y([e.dom()])}),p=h.targetClone,0===u.length&&(u=y('
    ').attr("id",i),u.appendTo(e.getBody())),n=e.dom.createRng(),p===v&&Ri.ie?(u.empty().append('

     

    ').append(p),n.setStartAfter(u[0].firstChild.firstChild),n.setEndAfter(p)):(u.empty().append(yu).append(p).append(yu),n.setStart(u[0].firstChild,1),n.setEnd(u[0].lastChild,0)),u.css({top:C.getPos(a,e.getBody()).y}),u[0].focus(),c=e.selection.getSel(),c.removeAllRanges(),c.addRange(n);var w=Zt.fromDom(a);return pt(Vs(Zt.fromDom(e.getBody()),"*[data-mce-selected]"),function(e){fr(w,e)||_o(e,"data-mce-selected")}),e.dom.getAttrib(a,"data-mce-selected")||a.setAttribute("data-mce-selected","1"),t=a,b(),n},v=function(){t&&(t.removeAttribute("data-mce-selected"),qs(Zt.fromDom(e.getBody()),"#"+i).each(Lr),t=null),qs(Zt.fromDom(e.getBody()),"#"+i).each(Lr),t=null},y=function(){o.destroy(),t=null},b=function(){o.hide()};return Ri.ceFalse&&d(),{showCaret:l,showBlockCaretContainer:f,hideFakeCaret:b,destroy:y}},_P=function(t){var n=ea.each,r=vb.BACKSPACE,o=vb.DELETE,i=t.dom,a=t.selection,u=t.settings,c=t.parser,s=Ri.gecko,l=Ri.ie,f=Ri.webkit,d="data:text/mce-internal,",h=l?"Text":"URL",m=function(e,n){try{t.getDoc().execCommand(e,!1,n)}catch(r){}},g=function(e){return e.isDefaultPrevented()},p=function(e){var n,r;e.dataTransfer&&(t.selection.isCollapsed()&&"IMG"===e.target.tagName&&a.select(e.target),n=t.selection.getContent(),n.length>0&&(r=d+escape(t.id)+","+escape(n),e.dataTransfer.setData(h,r)))},v=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(h),t&&t.indexOf(d)>=0)?(t=t.substr(d.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},y=function(e,n){t.queryCommandSupported("mceInsertClipboardContent")?t.execCommand("mceInsertClipboardContent",!1,{content:e,internal:n}):t.execCommand("mceInsertContent",!1,e)},b=function(){var e=function(e){var t=i.create("body"),n=e.cloneContents();return t.appendChild(n),a.serializer.serialize(t,{format:"html"})},n=function(n){var r=e(n),o=i.createRng();o.selectNode(t.getBody());var a=e(o);return r===a};t.on("keydown",function(e){var a,u,c=e.keyCode;if(!g(e)&&(c===o||c===r)){if(a=t.selection.isCollapsed(),u=t.getBody(),a&&!i.isEmpty(u))return;if(!a&&!n(t.selection.getRng()))return;e.preventDefault(),t.setContent(""),u.firstChild&&i.isBlock(u.firstChild)?t.selection.setCursorLocation(u.firstChild,0):t.selection.setCursorLocation(u,0),t.nodeChanged()}})},C=function(){t.shortcuts.add("meta+a",null,"SelectAll")},w=function(){t.inline||i.bind(t.getDoc(),"mousedown mouseup",function(e){var n;if(e.target===t.getDoc().documentElement)if(n=a.getRng(),t.getBody().focus(),"mousedown"===e.type){if(bl(n.startContainer))return;a.placeCaretAt(e.clientX,e.clientY)}else a.setRng(n)})},x=function(){t.on("keydown",function(e){if(!g(e)&&e.keyCode===r){if(!t.getBody().getElementsByTagName("hr").length)return;if(a.isCollapsed()&&0===a.getRng().startOffset){var n=a.getNode(),o=n.previousSibling;if("HR"===n.nodeName)return i.remove(n),void e.preventDefault();o&&o.nodeName&&"hr"===o.nodeName.toLowerCase()&&(i.remove(o),e.preventDefault())}}})},E=function(){e.Range.prototype.getClientRects||t.on("mousedown",function(e){if(!g(e)&&"HTML"===e.target.nodeName){var n=t.getBody();n.blur(),wi.setEditorTimeout(t,function(){n.focus()})}})},z=function(){t.on("click",function(e){var n=e.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==i.getContentEditableParent(n)&&(e.preventDefault(),t.selection.select(n),t.nodeChanged()),"A"===n.nodeName&&i.hasClass(n,"mce-item-anchor")&&(e.preventDefault(),a.select(n))})},k=function(){var e=function(){var e=i.getAttribs(a.getStart().cloneNode(!1));return function(){var r=a.getStart();r!==t.getBody()&&(i.setAttrib(r,"style",null),n(e,function(e){r.setAttributeNode(e.cloneNode(!0))}))}},r=function(){return!a.isCollapsed()&&i.getParent(a.getStart(),i.isBlock)!==i.getParent(a.getEnd(),i.isBlock)};t.on("keypress",function(n){var o;return g(n)||8!==n.keyCode&&46!==n.keyCode||!r()?void 0:(o=e(),t.getDoc().execCommand("delete",!1,null),o(),n.preventDefault(),!1)}),i.bind(t.getDoc(),"cut",function(n){var o;!g(n)&&r()&&(o=e(),wi.setEditorTimeout(t,function(){o()}))})},N=function(){t.on("keydown",function(e){if(!g(e)&&e.keyCode===r&&a.isCollapsed()&&0===a.getRng().startOffset){var t=a.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}})},S=function(){t.on("keydown",function(e){var n,r,o,u,c;if(!g(e)&&e.keyCode===vb.BACKSPACE&&(n=a.getRng(),r=n.startContainer,o=n.startOffset,u=i.getRoot(),c=r,n.collapsed&&0===o)){for(;c&&c.parentNode&&c.parentNode.firstChild===c&&c.parentNode!==u;)c=c.parentNode;"BLOCKQUOTE"===c.tagName&&(t.formatter.toggle("blockquote",null,c),n=i.createRng(),n.setStart(r,0),n.setEnd(r,0),a.setRng(n))}})},T=function(){var e=function(){m("StyleWithCSS",!1),m("enableInlineTableEditing",!1),u.object_resizing||m("enableObjectResizing",!1)};u.readonly||t.on("BeforeExecCommand mousedown",e)},A=function(){var e=function(){n(i.select("a"),function(e){var t=e.parentNode,n=i.getRoot();if(t.lastChild===e){for(;t&&!i.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}i.add(t,"br",{"data-mce-bogus":1})}})};t.on("SetContent ExecCommand",function(t){("setcontent"===t.type||"mceInsertLink"===t.command)&&e()})},R=function(){u.forced_root_block&&t.on("init",function(){m("DefaultParagraphSeparator",yh.getForcedRootBlock(t))})},B=function(){t.on("keyup focusin mouseup",function(e){vb.modifierPressed(e)||a.normalize()},!0)},D=function(){t.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},M=function(){t.inline||t.on("keydown",function(){e.document.activeElement===e.document.body&&t.getWin().focus()})},_=function(){t.inline||(t.contentStyles.push("body {min-height: 150px}"),t.on("click",function(e){var n;if("HTML"===e.target.nodeName){if(Ri.ie>11)return void t.getBody().focus();n=t.selection.getRng(),t.getBody().focus(),t.selection.setRng(n),t.selection.normalize(),t.nodeChanged()}}))},P=function(){Ri.mac&&t.on("keydown",function(e){if(vb.metaKeyPressed(e)&&!e.shiftKey&&(37===e.keyCode||39===e.keyCode)){e.preventDefault();var n=t.selection.getSel();n.modify("move",37===e.keyCode?"backward":"forward","lineboundary")}})},O=function(){m("AutoUrlDetect",!1)},H=function(){t.on("click",function(e){var t=e.target;do if("A"===t.tagName)return void e.preventDefault();while(t=t.parentNode)}),t.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},L=function(){t.on("init",function(){t.dom.bind(t.getBody(),"submit",function(e){e.preventDefault()})})},I=function(){c.addNodeFilter("br",function(e){for(var t=e.length;t--;)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()})},V=function(){t.on("dragstart",function(e){p(e)}),t.on("drop",function(e){if(!g(e)){var n=v(e);if(n&&n.id!==t.id){e.preventDefault();var r=oC.fromPoint(e.x,e.y,t.getDoc());a.setRng(r),y(n.html,!0)}}})},F=function(){},U=function(){var e;return!s||t.removed?!1:(e=t.selection.getSel(),!e||!e.rangeCount||0===e.rangeCount)};return S(),b(),Ri.windowsPhone||B(),f&&(w(),z(),R(),L(),N(),I(),Ri.iOS?(M(),_(),H()):C()),Ri.ie>=11&&(_(),N()),Ri.ie&&(C(),O(),V()),s&&(x(),E(),k(),T(),A(),D(),P(),N()),{refreshContentEditable:F,isHidden:U}},PP=rs.DOM,OP=function(e,t){var n=Zt.fromDom(e.getDoc().head),r=Zt.fromTag("style");Ao(r,"type","text/css"),Mr(r,Zt.fromText(t)),Mr(n,r)},HP=function(e){var t=ox(e.settings,e.schema);return t.addAttributeFilter("src,href,style,tabindex",function(t,n){for(var r,o,i=t.length,a=e.dom,u="data-mce-"+n;i--;)if(r=t[i],o=r.attr(n),o&&!r.attr(u)){if(0===o.indexOf("data:")||0===o.indexOf("blob:"))continue;"style"===n?(o=a.serializeStyle(a.parseStyle(o),r.name),o.length||(o=null),r.attr(u,o),r.attr(n,o)):"tabindex"===n?(r.attr(u,o),r.attr(n,null)):r.attr(u,e.convertURL(o,n,r.name))}}),t.addNodeFilter("script",function(e){for(var t,n,r=e.length;r--;)t=e[r],n=t.attr("type")||"no/type",0!==n.indexOf("mce-")&&t.attr("type","mce-"+n)}),e.settings.preserve_cdata&&t.addNodeFilter("#cdata",function(t){for(var n,r=t.length;r--;)n=t[r],n.type=8,n.name="#comment",n.value="[CDATA["+e.dom.encode(n.value)+"]]"}),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(t){for(var n,r=t.length,o=e.schema.getNonEmptyElements();r--;)n=t[r],n.isEmpty(o)&&0===n.getAll("br").length&&(n.append(new $g("br",1)).shortEnded=!0)}),t},LP=function(e){e.settings.auto_focus&&wi.setEditorTimeout(e,function(){var t;t=e.settings.auto_focus===!0?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()},100)},IP=function(e){var t=e.dom.getRoot();e.inline||bC(e)&&e.selection.getStart(!0)!==t||zm.firstPositionIn(t).each(function(t){var n=t.getNode(),r=No.isTable(n)?zm.firstPositionIn(n).getOr(t):t;Ri.browser.isIE()?Jp.storeNative(e,r.toRange()):e.selection.setRng(r.toRange())})},VP=function(e){e.bindPendingEventDelegates(),e.initialized=!0,Xv(e),e.focus(!0),IP(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),LP(e)},FP=function(e){return e.inline?PP.styleSheetLoader:e.dom.styleSheetLoader},UP=function(t,n){var r,o,i=t.settings,u=t.getElement(),c=t.getDoc();i.inline||(t.getElement().style.visibility=t.orgVisibility),n||t.inline||(c.open(),c.write(t.iframeHTML),c.close()),t.inline&&(t.on("remove",function(){var e=this.getBody();PP.removeClass(e,"mce-content-body"),PP.removeClass(e,"mce-edit-focus"),PP.setAttrib(e,"contentEditable",null)}),PP.addClass(u,"mce-content-body"),t.contentDocument=c=e.document,t.contentWindow=e.window,t.bodyElement=u,t.contentAreaContainer=u,i.root_name=u.nodeName.toLowerCase()),r=t.getBody(),r.disabled=!0,t.readonly=!!i.readonly,t.readonly||(t.inline&&"static"===PP.getStyle(r,"position",!0)&&(r.style.position="relative"),r.contentEditable=t.getParam("content_editable_state",!0)),r.disabled=!1,t.editorUpload=Px(t),t.schema=a(i),t.dom=rs(c,{keep_values:!0,url_converter:t.convertURL,url_converter_scope:t,hex_colors:i.force_hex_style_colors,update_styles:!0,root_element:t.inline?t.getBody():null,collect:function(){return t.inline},schema:t.schema,contentCssCors:yh.shouldUseContentCssCors(t),referrerPolicy:yh.getReferrerPolicy(t),onSetAttrib:function(e){t.fire("SetAttrib",e)}}),t.parser=HP(t),t.serializer=bx(i,t),t.selection=Vw(t.dom,t.getWin(),t.serializer,t),t.annotator=Ig(t),t.formatter=dk(t),t.undoManager=nN(t),t._nodeChangeDispatcher=new $_(t),t._selectionOverrides=MP(t),pN.setup(t),X_(t),Z_(t),q_.setup(t),EN.setup(t),lN(t),Wv(t),i.browser_spellcheck||i.gecko_spellcheck||(c.body.spellcheck=!1,PP.setAttrib(r,"spellcheck","false")),t.quirks=_P(t),Kv(t); -var s=yh.getDirectionality(t);void 0!==s&&(r.dir=s),i.protect&&t.on("BeforeSetContent",function(e){ea.each(i.protect,function(t){e.content=e.content.replace(t,function(e){return""})})}),t.on("SetContent",function(){t.addVisual(t.getBody())}),t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"}),t.on("compositionstart compositionend",function(e){t.composing="compositionstart"===e.type}),t.contentStyles.length>0&&(o="",ea.each(t.contentStyles,function(e){o+=e+"\r\n"}),t.dom.addStyle(o)),FP(t).loadAll(t.contentCSS,function(){VP(t)},function(){VP(t)}),i.content_style&&OP(t,i.content_style)},jP={initContentBody:UP},qP=rs.DOM,$P=function(t,n){if(e.document.domain!==e.window.location.hostname&&Ri.browser.isIE()){var r=Mx.uuid("mce");t[r]=function(){jP.initContentBody(t)};var o='javascript:(function(){document.open();document.domain="'+e.document.domain+'";var ed = window.parent.tinymce.get("'+t.id+'");document.write(ed.iframeHTML);document.close();ed.'+r+"(true);})()";return qP.setAttrib(n,"src",o),!0}return!1},WP=function(e,t,n,r){var o=Zt.fromTag("iframe");return Ro(o,r),Ro(o,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),Ps(o,"tox-edit-area__iframe"),o},KP=function(e){var t,n,r;return r=yh.getDocType(e)+"",yh.getDocumentBaseUrl(e)!==e.documentBaseUrl&&(r+=''),r+='',t=yh.getBodyId(e),n=yh.getBodyClass(e),yh.getContentSecurityPolicy(e)&&(r+=''),r+='
    '},XP=function(e,t){var n=e.editorManager.translate("Rich Text Area. Press ALT-0 for help."),r=WP(e.id,n,t.height,yh.getIframeAttrs(e)).dom();r.onload=function(){r.onload=null,e.fire("load")};var o=$P(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=KP(e),qP.add(t.iframeContainer,r),o},YP=function(e,t){var n=XP(e,t);t.editorContainer&&(qP.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=qP.isHidden(t.editorContainer)),e.getElement().style.display="none",qP.setAttrib(e.id,"aria-hidden","true"),n||jP.initContentBody(e)},GP={init:YP},ZP=rs.DOM,JP=function(e,t,n){var r=Gy.get(n),o=Gy.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=ea.trim(n),r&&-1===ea.inArray(t,n)){if(ea.each(Gy.dependencies(n),function(n){JP(e,t,n)}),e.plugins[n])return;try{var i=new r(e,o,e.$);e.plugins[n]=i,i.init&&(i.init(e,o),t.push(n))}catch(a){sb.pluginInitError(e,n,a)}}},QP=function(e){return e.replace(/^\-/,"")},eO=function(e){var t=[];ea.each(e.settings.plugins.split(/[ ,]/),function(n){JP(e,t,QP(n))})},tO=function(e){var t=ea.trim(e.settings.icons),n=e.ui.registry.getAll().icons,r=lb(),o=$t($t({},r),Oy.get(t).icons);Ot(o,function(t,r){qt(n,r)||e.ui.registry.addIcon(r,t)})},nO=function(e){var t=e.settings.theme;if(tt(t)){e.settings.theme=QP(t);var n=Zy.get(t);e.theme=new n(e,Zy.urls[t]),e.theme.init&&e.theme.init(e,Zy.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},rO=function(e){return e.theme.renderUI()},oO=function(e){var t=e.getElement(),n=e.settings.theme,r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},iO=function(e){return{editorContainer:e,iframeContainer:e}},aO=function(e){var t=ZP.create("div");return ZP.insertAfter(t,e),iO(t)},uO=function(e){var t=e.getElement();return e.inline?iO(null):aO(t)},cO=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,tt(e.settings.theme)?rO(e):at(e.settings.theme)?oO(e):uO(e)},sO=function(e){e.fire("ScriptsLoaded"),tO(e),nO(e),eO(e);var t=cO(e);return e.editorContainer=t.editorContainer?t.editorContainer:null,hb(e),e.inline?jP.initContentBody(e):GP.init(e,t)},lO={init:sO},fO=rs.DOM,dO=function(e){return"-"===e.charAt(0)},hO=function(e,t){var n=yh.getLanguageCode(t),r=yh.getLanguageUrl(t);if(zs.hasCode(n)===!1&&"en"!==n){var o=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(o,V,void 0,function(){sb.languageLoadError(t,o,n)})}},mO=function(e,t,n,r){var o=t.settings,i=o.theme;if(tt(i)){if(!dO(i)&&!Zy.urls.hasOwnProperty(i)){var a=o.theme_url;a?Zy.load(i,t.documentBaseURI.toAbsolute(a)):Zy.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue(function(){Zy.waitFor(i,r)})}else r()},gO=function(e){return J.from(yh.getIconsUrl(e)).filter(function(e){return e.length>0}).map(function(e){return{url:e,name:J.none()}})},pO=function(e){return J.from(yh.getIconPackName(e)).filter(function(e){return e.length>0&&!Oy.has(e)}).map(function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons.js",name:J.some(t)}})},vO=function(e,t){gO(t).orThunk(function(){return pO(t)}).each(function(n){e.add(n.url,V,void 0,function(){sb.iconsLoadError(t,n.url,n.name.getOrUndefined())})})},yO=function(e,t,n){rt(t.plugins)&&(t.plugins=t.plugins.join(" ")),ea.each(t.external_plugins,function(n,r){Gy.load(r,n,V,void 0,function(){sb.pluginLoadError(e,n,r)}),t.plugins+=" "+r}),ea.each(t.plugins.split(/[ ,]/),function(t){if(t=ea.trim(t),t&&!Gy.urls[t])if(dO(t)){t=t.substr(1,t.length);var r=Gy.dependencies(t);ea.each(r,function(t){var r={prefix:"plugins/",resource:t,suffix:"/plugin"+n+".js"},o=Gy.createUrl(r,t);Gy.load(o.resource,o,V,void 0,function(){sb.pluginLoadError(e,o.prefix+o.resource+o.suffix,o.resource)})})}else{var o={prefix:"plugins/",resource:t,suffix:"/plugin"+n+".js"};Gy.load(t,o,V,void 0,function(){sb.pluginLoadError(e,o.prefix+o.resource+o.suffix,t)})}})},bO=function(e,t){var n=fs.ScriptLoader;mO(n,e,t,function(){hO(n,e),vO(n,e),yO(e,e.settings,t),n.loadQueue(function(){e.removed||lO.init(e)},e,function(){e.removed||lO.init(e)})})},CO=function(t){var n=t.settings,r=t.id;zs.setCode(yh.getLanguageCode(t));var o=function(){fO.unbind(e.window,"ready",o),t.render()};if(!Du.Event.domLoaded)return void fO.bind(e.window,"ready",o);if(t.getElement()&&Ri.contentEditable){n.inline?t.inline=!0:(t.orgVisibility=t.getElement().style.visibility,t.getElement().style.visibility="hidden");var i=t.getElement().form||fO.getParent(r,"form");i&&(t.formElement=i,n.hidden_input&&!No.isTextareaOrInput(t.getElement())&&(fO.insertAfter(fO.create("input",{type:"hidden",name:r}),r),t.hasHiddenInput=!0),t.formEventDelegate=function(e){t.fire(e.type,e)},fO.bind(i,"submit reset",t.formEventDelegate),t.on("reset",function(){t.resetContent()}),!n.submit_patch||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return t.editorManager.triggerSave(),t.setDirty(!1),i._mceOldSubmit(i)})),t.windowManager=Jy(t),t.notificationManager=R(t),"xml"===n.encoding&&t.on("GetContent",function(e){e.save&&(e.content=fO.encode(e.content))}),n.add_form_submit_trigger&&t.on("submit",function(){t.initialized&&t.save()}),n.add_unload_trigger&&(t._beforeUnload=function(){!t.initialized||t.destroyed||t.isHidden()||t.save({format:"raw",no_events:!0,set_dirty:!1})},t.editorManager.on("BeforeUnload",t._beforeUnload)),t.editorManager.add(t),bO(t,t.suffix)}},wO={render:CO},xO=function(e){return e.firstChild&&e.firstChild===e.lastChild},EO=function(e){return"br"===e.name||e.value===yu},zO=function(e,t){var n=e.getBlockElements();return n[t.name]&&xO(t)&&EO(t.firstChild)},kO=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||zO(e,t))},NO=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),kO(e,r)&&(r=r.prev),n&&n===r?"ul"===n.name||"ol"===n.name:!1},SO=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},TO=function(e,t,n){var r=t.serialize(n),o=e.createFragment(r);return SO(o)},AO=function(e){return ea.grep(e.childNodes,function(e){return"LI"===e.nodeName})},RO=function(e){return e.data===yu||No.isBr(e)},BO=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&RO(e.firstChild)},DO=function(e){return!e.firstChild||BO(e)},MO=function(e){return e.length>0&&DO(e[e.length-1])?e.slice(0,-1):e},_O=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},PO=function(e,t){return!!_O(e,t)},OO=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},HO=function(e,t){var n=Mf.before(e),r=lm(t),o=r.next(n);return o?o.toRange():null},LO=function(e,t){var n=Mf.after(e),r=lm(t),o=r.prev(n);return o?o.toRange():null},IO=function(e,t,n,r){var o=OO(e,r),i=e.parentNode;return i.insertBefore(o[0],e),ea.each(t,function(t){i.insertBefore(t,e)}),i.insertBefore(o[1],e),i.removeChild(e),LO(t[t.length-1],n)},VO=function(e,t,n){var r=e.parentNode;return ea.each(t,function(t){r.insertBefore(t,e)}),HO(e,n)},FO=function(e,t,n,r){return r.insertAfter(t.reverse(),e),LO(t[0],n)},UO=function(e,t,n,r){var o=TO(t,e,r),i=_O(t,n.startContainer),a=MO(AO(o.firstChild)),u=1,c=2,s=t.getRoot(),l=function(e){var r=Mf.fromRangeStart(n),o=lm(t.getRoot()),a=e===u?o.prev(r):o.next(r);return a?_O(t,a.getNode())!==i:!0};return l(u)?VO(i,a,s):l(c)?FO(i,a,s,t):IO(i,a,s,n)},jO={isListFragment:NO,insertAtCaret:UO,isParentBlockLi:PO,trimListItems:MO,listItems:AO},qO=function(e,t){return No.isText(e)&&e.nodeValue[t-1]===yu},$O=function(e,t){var n,r;n=e.startContainer,r=e.startOffset;var o=function(e){return n[e]&&3===n[e].nodeType};return 3===n.nodeType&&(r>0?t=t.replace(/^ /," "):o("previousSibling")||(t=t.replace(/^ /," ")),r|)$/," "):o("nextSibling")||(t=t.replace(/( | )(
    |)$/," "))),t},WO=function(e,t){var n,r;return n=e.startContainer,r=e.startOffset,3===n.nodeType&&e.collapsed&&(n.data[r]===yu?(n.deleteData(r,1),/[\u00a0| ]$/.test(t)||(t+=" ")):n.data[r-1]===yu&&(n.deleteData(r-1,1),/[\u00a0| ]$/.test(t)||(t=" "+t))),t},KO=No.matchNodeNames(["td","th"]),XO=function(e,t){var n=e.selection.getRng(),r=n.startContainer,o=n.startOffset;n.collapsed&&qO(r,o)&&No.isText(r)&&(r.insertData(o-1," "),r.deleteData(o,1),n.setStart(r,o),n.setEnd(r,o),e.selection.setRng(n)),e.selection.setContent(t)},YO=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):XO(e,t)}},GO=function(e,t){J.from(e.getParent(t,"td,th")).map(Zt.fromDom).each(Ux.trimBlockTrailingBr)},ZO=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=new sz(r);ea.each(r.select("*[data-mce-fragment]"),function(e){for(var t=e.parentNode;t&&t!==o;t=t.parentNode)n[e.nodeName.toLowerCase()]&&i.compare(t,e)&&r.remove(e,!0)})}},JO=function(e){for(var t=e;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")},QO=function(e){ea.each(e.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")})},eH=function(e){return!!e.getAttribute("data-mce-fragment")},tH=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},nH=function(e,t){var n,r,o,i,a,u=e.dom,c=e.selection,s=function(t){for(var n=e.getBody();t&&t!==n;t=t.parentNode)if("false"===e.dom.getContentEditable(t))return t;return null};if(t){if(e.selection.scrollIntoView(t),n=s(t))return u.remove(t),void c.select(n);var l=u.createRng();i=t.previousSibling,i&&3===i.nodeType?(l.setStart(i,i.nodeValue.length),Ri.ie||(a=t.nextSibling,a&&3===a.nodeType&&(i.appendData(a.data),a.parentNode.removeChild(a)))):(l.setStartBefore(t),l.setEndBefore(t));var f=function(t){var n=Mf.fromRangeStart(t),r=lm(e.getBody());return n=r.next(n),n?n.toRange():void 0};r=u.getParent(t,u.isBlock),u.remove(t),r&&u.isEmpty(r)&&(e.$(r).empty(),l.setStart(r,0),l.setEnd(r,0),KO(r)||eH(r)||!(o=f(l))?u.add(r,u.create("br",{"data-mce-bogus":"1"})):(l=o,u.remove(r))),c.setRng(l)}},rH=function(e,t,n){var r,o,i,a,u,c,s,l,f,d,h,m=e.selection,g=e.dom;if(/^ | $/.test(t)&&(t=$O(m.getRng(),t)),r=e.parser,h=n.merge,o=lp({validate:e.settings.validate},e.schema),d='​',c={content:t,format:"html",selection:!0,paste:n.paste},c=e.fire("BeforeSetContent",c),c.isDefaultPrevented())return void e.fire("SetContent",{content:c.content,format:"html",selection:!0,paste:n.paste});t=c.content,-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d),l=m.getRng();var p=l.startContainer||(l.parentElement?l.parentElement():null),v=e.getBody();p===v&&m.isCollapsed()&&g.isBlock(v.firstChild)&&tH(e,v.firstChild)&&g.isEmpty(v.firstChild)&&(l=g.createRng(),l.setStart(v.firstChild,0),l.setEnd(v.firstChild,0),m.setRng(l)),m.isCollapsed()||(e.selection.setRng($z.normalize(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),t=WO(e.selection.getRng(),t)),i=m.getNode();var y={context:i.nodeName.toLowerCase(),data:n.data,insert:!0};if(u=r.parse(t,y),n.paste===!0&&jO.isListFragment(e.schema,u)&&jO.isParentBlockLi(g,i))return l=jO.insertAtCaret(o,g,e.selection.getRng(),u),e.selection.setRng(l),void e.fire("SetContent",c);if(JO(u),f=u.lastChild,"mce_marker"===f.attr("id"))for(s=f,f=f.prev;f;f=f.walk(!0))if(3===f.type||!g.isBlock(f.name)){e.schema.isValidChild(f.parent.name,"span")&&f.parent.insert(s,f,"br"===f.name);break}if(e._selectionOverrides.showBlockCaretContainer(i),y.invalid){for(XO(e,d),i=m.getNode(),a=e.getBody(),9===i.nodeType?i=f=a:f=i;f!==a;)i=f,f=f.parentNode;t=i===a?a.innerHTML:g.getOuterHTML(i),t=o.serialize(r.parse(t.replace(//i,function(){return o.serialize(u)}))),i===a?g.setHTML(a,t):g.setOuterHTML(i,t)}else t=o.serialize(u),YO(e,t,i);ZO(e,h),nH(e,g.get("mce_marker")),QO(e.getBody()),GO(e.dom,e.selection.getStart()),e.fire("SetContent",c),e.addVisual()},oH=function(e){var t;return"string"!=typeof e?(t=ea.extend({paste:e.paste,data:{paste:e.paste}},e),{content:e.content,details:t}):{content:e,details:{}}},iH=function(e,t){var n=oH(t);rH(e,n.content,n.details)},aH={insertAtCaret:iH},uH=function(e,t){e.getDoc().execCommand(t,!1,null)},cH=function(e){MD.backspaceDelete(e,!1)||oB.backspaceDelete(e,!1)||sB.backspaceDelete(e,!1)||yB.backspaceDelete(e,!1)||ER.backspaceDelete(e,!1)||lD.backspaceDelete(e)||BR.backspaceDelete(e,!1)||zB.backspaceDelete(e,!1)||(uH(e,"Delete"),QA.paddEmptyBody(e))},sH=function(e){oB.backspaceDelete(e,!0)||sB.backspaceDelete(e,!0)||yB.backspaceDelete(e,!0)||ER.backspaceDelete(e,!0)||lD.backspaceDelete(e)||BR.backspaceDelete(e,!0)||zB.backspaceDelete(e,!0)||uH(e,"ForwardDelete")},lH={deleteCommand:cH,forwardDeleteCommand:sH},fH=function(e,t,n){for(var r=e.dom(),o=at(n)?n:U(!1);r.parentNode;){r=r.parentNode;var i=Zt.fromDom(r),a=t(i);if(a.isSome())return a;if(o(i))break}return J.none()},dH=function(e,t,n){var r=t(e);return r.orThunk(function(){return n(e)?J.none():fH(e,t,n)})},hH={"font-size":"size","font-family":"face"},mH=function(e,t,n){var r=function(t){return Ho(t,e).orThunk(function(){return"font"===Vr(t)?jt(hH,e).bind(function(e){return Do(t,e)}):J.none()})},o=function(e){return fr(Zt.fromDom(t),e)};return dH(Zt.fromDom(n),function(e){return r(e)},o)},gH=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},pH=function(e,t){return/[0-9.]+px$/.test(e)?gH(72*parseInt(e,10)/96,t||0)+"pt":e},vH=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},yH=function(e,t){return J.from(rs.DOM.getStyle(t,e,!0))},bH=function(e){return function(t,n){return J.from(n).map(Zt.fromDom).filter(jr).bind(function(n){return mH(e,t,n.dom()).or(yH(e,n.dom()))}).getOr("")}},CH={getFontSize:bH("font-size"),getFontFamily:F(vH,bH("font-family")),toPt:pH},wH=function(e){return zm.firstPositionIn(e.getBody()).map(function(e){var t=e.container();return No.isText(t)?t.parentNode:t})},xH=function(e,t){return e.startContainer===t&&0===e.startOffset},EH=function(e){return J.from(e.selection.getRng()).bind(function(t){var n=e.getBody();return xH(t,n)?J.none():J.from(e.selection.getStart(!0))})},zH=function(e,t){if(/^[0-9\.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&7>=n){var r=yh.getFontStyleValues(e),o=yh.getFontSizeClasses(e);return o?o[n-1]||t:r[n-1]||t}return t}return t},kH=function(e){var t=e.split(/\s*,\s*/);return gt(t,function(e){return-1===e.indexOf(" ")||Pn(e,'"')||Pn(e,"'")?e:"'"+e+"'"}).join(",")},NH=function(e,t){var n=zH(e,t);e.formatter.toggle("fontname",{value:kH(n)}),e.nodeChanged()},SH=function(e){return EH(e).fold(function(){return wH(e).map(function(t){return CH.getFontFamily(e.getBody(),t)}).getOr("")},function(t){return CH.getFontFamily(e.getBody(),t)})},TH=function(e,t){e.formatter.toggle("fontsize",{value:zH(e,t)}),e.nodeChanged()},AH=function(e){return EH(e).fold(function(){return wH(e).map(function(t){return CH.getFontSize(e.getBody(),t)}).getOr("")},function(t){return CH.getFontSize(e.getBody(),t)})},RH=ea.each,BH=ea.map,DH=ea.inArray,MH=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var o,i,a=!1,u=this;if(!u.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?Jp.restore(u.editor):u.editor.focus(),r=u.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;if(i=e.toLowerCase(),o=u.commands.exec[i])return o(i,t,n),u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(RH(this.editor.plugins,function(r){return r.execCommand&&r.execCommand(e,t,n)?(u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),a=!0,!1):void 0}),a)return a;if(u.editor.theme&&u.editor.theme.execCommand&&u.editor.theme.execCommand(e,t,n))return u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{a=u.editor.getDoc().execCommand(e,t,n)}catch(c){}return a?(u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0):!1}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,t){var n=this;t=t||"exec",RH(e,function(e,r){RH(r.toLowerCase().split(","),function(r){n.commands[t][r]=e})})},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,a){return t.call(n||r.editor,o,i,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t?{value:t}:void 0),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(i){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var a=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");Ri.mac&&(a=a.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:a,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");return void(t&&e.dom.remove(t,!0))}e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),RH("left,center,right,justify".split(","),function(t){r!==t&&e.formatter.remove("align"+t)}),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r,o;t.execNativeCommand(n),r=e.dom.getParent(e.selection.getNode(),"ol,ul"),r&&(o=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName)&&(t.storeSelection(),e.dom.split(o,r),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,r)},FontName:function(t,n,r){NH(e,r)},FontSize:function(t,n,r){TH(e,r)},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,o){var i=o||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),function(t){return 1===t.nodeType&&o++===r?(e.selection.select(t),!1):void 0},e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){aH.insertAtCaret(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,function(){return r}))},mceInsertNewLine:function(t,n,r){YM.insert(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){ED(e,t)},mceRepaint:function(){},InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"
    ")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){var o;"string"==typeof r&&(r={href:r}),o=e.dom.getParent(e.selection.getNode(),"a"),r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),No.isContentEditableTrue);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},"delete":function(){lH.deleteCommand(e)},forwardDelete:function(){lH.forwardDeleteCommand(e)},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return AM.insert(e,r),!0}});var n=function(t){return function(){var n=e.selection.isCollapsed()?[e.dom.getParent(e.selection.getNode(),e.dom.isBlock)]:e.selection.getSelectedBlocks(),r=BH(n,function(n){return!!e.formatter.matchNode(n,t)});return-1!==DH(r,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return bD(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",function(){return SH(e)},this),t.addQueryValueHandler("FontSize",function(){return AH(e)},this)},e}(),_H=ea.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),PH=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||W}return e.isNative=function(e){return!!_H[e.toLowerCase()]},e.prototype.fire=function(e,t){var n,r,o,i;if(e=e.toLowerCase(),t=t||{},t.type=e,t.target||(t.target=this.scope),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=K},t.stopPropagation=function(){t.isPropagationStopped=K},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=K},t.isDefaultPrevented=W,t.isPropagationStopped=W,t.isImmediatePropagationStopped=W),this.settings.beforeFire&&this.settings.beforeFire(t),n=this.bindings[e])for(r=0,o=n.length;o>r;r++){if(i=n[r],i.once&&this.off(e,i.func),t.isImmediatePropagationStopped())return t.stopPropagation(),t;if(i.func.call(this.scope,t)===!1)return t.preventDefault(),t}return t},e.prototype.on=function(e,t,n,r){var o,i,a;if(t===!1&&(t=W),t){var u={func:t};for(r&&ea.extend(u,r),i=e.toLowerCase().split(" "),a=i.length;a--;)e=i[a],o=this.bindings[e],o||(o=this.bindings[e]=[],this.toggleEvent(e,!0)),n?o.unshift(u):o.push(u)}return this},e.prototype.off=function(e,t){var n,r,o,i,a;if(e)for(i=e.toLowerCase().split(" "),n=i.length;n--;){if(e=i[n],r=this.bindings[e],!e){for(o in this.bindings)this.toggleEvent(o,!1),delete this.bindings[o];return this}if(r){if(t)for(a=r.length;a--;)r[a].func===t&&(r=r.slice(0,a).concat(r.slice(a+1)),this.bindings[e]=r);else r.length=0;r.length||(this.toggleEvent(e,!1),delete this.bindings[e])}}else{for(e in this.bindings)this.toggleEvent(e,!1);this.bindings={}}return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),OH=function(e){return e._eventDispatcher||(e._eventDispatcher=new PH({scope:e,toggleEvent:function(t,n){PH.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},HH={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var o=OH(r).fire(e,t);if(n!==!1&&r.parent)for(var i=r.parent();i&&!o.isPropagationStopped();)i.fire(e,o,!1),i=i.parent();return o},on:function(e,t,n){return OH(this).on(e,t,n)},off:function(e,t){return OH(this).off(e,t)},once:function(e,t){return OH(this).once(e,t)},hasEventListeners:function(e){return OH(this).has(e)}},LH="data-mce-contenteditable",IH=function(e,t,n){Ls(e,t)&&n===!1?Hs(e,t):n&&Ps(e,t)},VH=function(e,t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},FH=function(e,t){e.dom().contentEditable=t?"true":"false"},UH=function(e){pt(Vs(e,'*[contenteditable="true"]'),function(e){Ao(e,LH,"true"),FH(e,!1)})},jH=function(e){pt(Vs(e,"*["+LH+'="true"]'),function(e){_o(e,LH),FH(e,!0)})},qH=function(e){J.from(e.selection.getNode()).each(function(e){e.removeAttribute("data-mce-selected")})},$H=function(e){e.selection.setRng(e.selection.getRng())},WH=function(e,t){var n=Zt.fromDom(e.getBody());IH(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),qH(e),e.readonly=!0,FH(n,!1),UH(n)):(e.readonly=!1,FH(n,!0),jH(n),VH(e,"StyleWithCSS",!1),VH(e,"enableInlineTableEditing",!1),VH(e,"enableObjectResizing",!1),Bv.hasEditorOrUiFocus(e)&&e.focus(),$H(e),e.nodeChanged())},KH=function(e){return e.readonly},XH=function(e){e.parser.addAttributeFilter("contenteditable",function(t){KH(e)&&pt(t,function(e){e.attr(LH,e.attr("contenteditable")),e.attr("contenteditable","false")})}),e.serializer.addAttributeFilter(LH,function(t){KH(e)&&pt(t,function(e){e.attr("contenteditable",e.attr(LH))})}),e.serializer.addTempAttr(LH)},YH=function(e){e.serializer?XH(e):e.on("PreInit",function(){XH(e)})},GH=function(e){return"click"===e.type},ZH=function(e,t){return null!==e.dom.getParent(t,"a")},JH=function(e,t){var n=t.target;GH(t)&&!vb.metaKeyPressed(t)&&ZH(e,n)&&t.preventDefault()},QH=function(e){e.on("ShowCaret",function(t){KH(e)&&t.preventDefault()}),e.on("ObjectSelected",function(t){KH(e)&&t.preventDefault()})},eL=rs.DOM,tL=function(e,t){return"selectionchange"===t?e.getDoc():!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t)?e.getDoc().documentElement:e.settings.event_root?(e.eventRoot||(e.eventRoot=eL.select(e.settings.event_root)[0]),e.eventRoot):e.getBody()},nL=function(e){return!e.hidden&&!KH(e)},rL=function(e,t,n){nL(e)?e.fire(t,n):KH(e)&&JH(e,n)},oL=function(e,t){var n,r;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed)if(n=tL(e,t),e.settings.event_root){if(kT||(kT={},e.editorManager.on("removeEditor",function(){var t;if(!e.editorManager.activeEditor&&kT){for(t in kT)e.dom.unbind(tL(e,t));kT=null}})),kT[t])return;r=function(n){for(var r=n.target,o=e.editorManager.get(),i=o.length;i--;){var a=o[i].getBody();(a===r||eL.isChildOf(r,a))&&rL(o[i],t,n)}},kT[t]=r,eL.bind(n,t,r)}else r=function(n){rL(e,t,n)},eL.bind(n,t,r),e.delegates[t]=r},iL=$t($t({},HH),{bindPendingEventDelegates:function(){var e=this;ea.each(e._pendingNativeEvents,function(t){oL(e,t)})},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(t?n.initialized?oL(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(tL(n,e),e,n.delegates[e]),delete n.delegates[e]))},unbindAllNativeEvents:function(){var e,t=this,n=t.getBody(),r=t.dom;if(t.delegates){for(e in t.delegates)t.dom.unbind(tL(t,e),e,t.delegates[e]);delete t.delegates}!t.inline&&n&&r&&(n.onload=null,r.unbind(t.getWin()),r.unbind(t.getDoc())),r&&(r.unbind(n),r.unbind(t.getContainer()))}}),aL=["design","readonly"],uL=function(t,n,r,o){var i=r[n.get()],a=r[o];try{a.activate()}catch(u){return void e.console.error("problem while activating editor mode "+o+":",u)}i.deactivate(),i.editorReadOnly!==a.editorReadOnly&&WH(t,a.editorReadOnly),n.set(o),jv(t,o)},cL=function(e,t,n,r){if(r!==n.get()){if(!qt(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?uL(e,n,t,r):e.on("init",function(){return uL(e,n,t,r)})}},sL=function(t,n,r){var o;if(ht(aL,n))throw new Error("Cannot override default mode "+n);return $t($t({},t),(o={},o[n]=$t($t({},r),{deactivate:function(){try{r.deactivate()}catch(t){e.console.error("problem while deactivating editor mode "+n+":",t)}}}),o))},lL=function(e){var t=Jt("design"),n=Jt({design:{activate:V,deactivate:V,editorReadOnly:!1},readonly:{activate:V,deactivate:V,editorReadOnly:!0}});return YH(e),QH(e),{isReadOnly:function(){return KH(e)},set:function(r){return cL(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(sL(n.get(),e,t))}}},fL=ea.each,dL=ea.explode,hL={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},mL=ea.makeMap("alt,ctrl,shift,meta,access"),gL=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(fL(t.shortcuts,function(n){return t.matchShortcut(e,n)?(t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0):void 0}),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift())) -})}return e.prototype.add=function(e,t,n,r){var o,i=this;return o=n,"string"==typeof n?n=function(){i.editor.execCommand(o,!1,null)}:ea.isArray(o)&&(n=function(){i.editor.execCommand(o[0],o[1],o[2])}),fL(dL(ea.trim(e)),function(e){var o=i.createShortcut(e,t,n,r);i.shortcuts[o.id]=o}),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return this.shortcuts[t.id]?(delete this.shortcuts[t.id],!0):!1},e.prototype.parseShortcut=function(e){var t,n,r={};fL(dL(e.toLowerCase(),"+"),function(e){e in mL?r[e]=!0:/^[0-9]{2,}$/.test(e)?r.keyCode=parseInt(e,10):(r.charCode=e.charCodeAt(0),r.keyCode=hL[e]||e.toUpperCase().charCodeAt(0))}),t=[r.keyCode];for(n in mL)r[n]?t.push(n):r[n]=!1;return r.id=t.join(","),r.access&&(r.alt=!0,Ri.mac?r.ctrl=!0:r.shift=!0),r.meta&&(Ri.mac?r.meta=!0:(r.ctrl=!0,r.meta=!1)),r},e.prototype.createShortcut=function(e,t,n,r){var o;return o=ea.map(dL(e,">"),this.parseShortcut),o[o.length-1]=ea.extend(o[o.length-1],{func:n,scope:r||this.editor}),ea.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return t?t.ctrl!==e.ctrlKey||t.meta!==e.metaKey?!1:t.alt!==e.altKey||t.shift!==e.shiftKey?!1:e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode?(e.preventDefault(),!0):!1:!1},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),pL=function(){var e={},t={},n={},r={},o={},i={},a={},u=function(e,t){return function(n,r){return e[n.toLowerCase()]=$t($t({},r),{type:t})}},c=function(e,t){return r[e.toLowerCase()]=t};return{addButton:u(e,"button"),addGroupToolbarButton:u(e,"grouptoolbarbutton"),addToggleButton:u(e,"togglebutton"),addMenuButton:u(e,"menubutton"),addSplitButton:u(e,"splitbutton"),addMenuItem:u(t,"menuitem"),addNestedMenuItem:u(t,"nestedmenuitem"),addToggleMenuItem:u(t,"togglemenuitem"),addAutocompleter:u(n,"autocompleter"),addContextMenu:u(o,"contextmenu"),addContextToolbar:u(i,"contexttoolbar"),addContextForm:u(i,"contextform"),addSidebar:u(a,"sidebar"),addIcon:c,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:o,contextToolbars:i,sidebars:a}}}},vL=function(){var e=pL();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},yL=ea.each,bL=ea.trim,CL="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),wL={ftp:21,http:80,https:443,mailto:25},xL=function(){function t(n,r){n=bL(n),this.settings=r||{};var o=this.settings.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(n)||/^\s*#/.test(n))return void(i.source=n);var a=0===n.indexOf("//");if(0!==n.indexOf("/")||a||(n=(o?o.protocol||"http":"http")+"://mce_host"+n),!/^[\w\-]*:?\/\//.test(n)){var u=this.settings.base_uri?this.settings.base_uri.path:new t(e.document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)n="//mce_host"+i.toAbsPath(u,n);else{var c=/([^#?]*)([#?]?.*)/.exec(n);n=(o&&o.protocol||"http")+"://mce_host"+i.toAbsPath(u,c[1])+c[2]}}n=n.replace(/@@/g,"(mce_at)");var s=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(n);yL(CL,function(e,t){var n=s[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),i[e]=n}),o&&(i.protocol||(i.protocol=o.protocol),i.userInfo||(i.userInfo=o.userInfo),i.port||"mce_host"!==i.host||(i.port=o.port),i.host&&"mce_host"!==i.host||(i.host=o.host),i.source=""),a&&(i.protocol="")}return t.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},t.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},t.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},t.prototype.toRelative=function(e){var n;if("./"===e)return e;var r=new t(e,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var o=this.getURI(),i=r.getURI();return o===i||"/"===o.charAt(o.length-1)&&o.substr(0,o.length-1)===i?o:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},t.prototype.toAbsolute=function(e,n){var r=new t(e,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},t.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=wL[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},t.prototype.toRelPath=function(e,t){var n,r,o,i=0,a="",u=e.substring(0,e.lastIndexOf("/")).split("/");if(n=t.split("/"),u.length>=n.length)for(r=0,o=u.length;o>r;r++)if(r>=n.length||u[r]!==n[r]){i=r+1;break}if(u.lengthr;r++)if(r>=u.length||u[r]!==n[r]){i=r+1;break}if(1===i)return t;for(r=0,o=u.length-(i-1);o>r;r++)a+="../";for(r=i-1,o=n.length;o>r;r++)a+=r!==i-1?"/"+n[r]:n[r];return a},t.prototype.toAbsPath=function(e,t){var n,r,o,i=0,a=[];r=/\/$/.test(t)?"/":"";var u=e.split("/"),c=t.split("/");for(yL(u,function(e){e&&a.push(e)}),u=a,n=c.length-1,a=[];n>=0;n--)0!==c[n].length&&"."!==c[n]&&(".."!==c[n]?i>0?i--:a.push(c[n]):i++);return n=u.length-i,o=0>=n?St(a).join("/"):u.slice(0,n).join("/")+"/"+St(a).join("/"),0!==o.indexOf("/")&&(o="/"+o),r&&o.lastIndexOf("/")!==o.length-1&&(o+=r),o},t.prototype.getURI=function(e){void 0===e&&(e=!1);var t;return(!this.source||e)&&(t="",e||(t+=this.protocol?this.protocol+"://":"//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},t}(),EL=rs.DOM,zL=ea.extend,kL=ea.each,NL=ea.resolve,SL=Ri.ie,TL=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,zL(this,iL),this.settings=Ry(this,e,this.documentBaseUrl,n.defaultSettings,t),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(fs.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),rs.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),ks.languageLoad=this.settings.language_load,ks.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new xL(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new gL(this),this.editorCommands=new MH(this),this.settings.cache_suffix&&(Ri.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:vL()};var o=this,i=lL(o);this.mode=i,this.setMode=i.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Kc.overrideDefaults(function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}})}return e.prototype.render=function(){wO.render(this)},e.prototype.focus=function(e){Bv.focus(this,e)},e.prototype.hasFocus=function(){return Bv.hasFocus(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n0?OL[0]:null),jL.focusedEditor===e&&(jL.focusedEditor=null),t.length!==OL.length},FL=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(VL(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},UL="CSS1Compat"!==e.document.compatMode,jL=$t($t({},HH),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Kc,majorVersion:"5",minorVersion:"2.2",releaseDate:"2020-04-23",editors:PL,i18n:zs,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var t,n,r=this,o="";n=xL.getDocumentBaseUrl(e.document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(n)&&(n=n.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(n)||(n+="/"));var i=window.tinymce||window.tinyMCEPreInit;if(i)t=i.base||i.baseURL,o=i.suffix;else{for(var a=e.document.getElementsByTagName("script"),u=0;u0&&BL(RL(n),function(t){var n;(n=AL.get(t))?r.push(n):BL(e.document.forms,function(e){BL(e.elements,function(e){e.name===t&&(t="mce_editor_"+ML++,AL.setAttrib(e,"id",t),r.push(e))})})});break;case"textareas":case"specific_textareas":BL(AL.select("textarea"),function(e){t.editor_deselector&&c(e,t.editor_deselector)||(!t.editor_selector||c(e,t.editor_selector))&&r.push(e)})}return r},l=function(e){n=e},f=function(){var e,n=0,r=[],c=function(t,i,a){var u=new TL(t,i,o);r.push(u),u.on("init",function(){++n===e.length&&l(r)}),u.targetElm=u.targetElm||a,u.render()};return AL.unbind(window,"ready",f),u("onpageload"),e=Kc.unique(s(t)),t.types?void BL(t.types,function(n){ea.each(e,function(e){return AL.is(e,n.selector)?(c(a(e),DL({},t,n),e),!1):!0})}):(ea.each(e,function(e){FL(o.get(e.id))}),e=ea.grep(e,function(e){return!o.get(e.id)}),void(0===e.length?l([]):BL(e,function(e){i(t,e)?sb.initError("Could not initialize inline editor on invalid inline target element",e):c(a(e),t,e)})))};return o.settings=t,AL.bind(window,"ready",f),new mi(function(e){n?e(n):l=function(t){e(t)}})},get:function(e){return 0===arguments.length?OL.slice(0):tt(e)?xt(OL,function(t){return t.id===e}).getOr(null):ut(e)&&OL[e]?OL[e]:null},add:function(e){var t,n=this;return t=PL[e.id],t===e?e:(null===n.get(e.id)&&(HL(e.id)&&(PL[e.id]=e),PL.push(e),OL.push(e)),IL(!0),n.activeEditor=e,n.fire("AddEditor",{editor:e}),NT||(NT=function(e){var t=n.fire("BeforeUnload");return t.returnValue?(e.preventDefault(),e.returnValue=t.returnValue,t.returnValue):void 0},window.addEventListener("beforeunload",NT)),e)},createEditor:function(e,t){return this.add(new TL(e,t,this))},remove:function(e){var t,n,r=this;if(e)return tt(e)?void BL(AL.select(e),function(e){n=r.get(e.id),n&&r.remove(n)}):(n=e,ot(r.get(n.id))?null:(VL(n)&&r.fire("RemoveEditor",{editor:n}),0===OL.length&&window.removeEventListener("beforeunload",NT),n.remove(),IL(OL.length>0),n));for(t=OL.length-1;t>=0;t--)r.remove(OL[t])},execCommand:function(e,t,n){var r=this,o=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new TL(n,r.settings,r).render(),!0;case"mceRemoveEditor":return o&&o.remove(),!0;case"mceToggleEditor":return o?(o.isHidden()?o.show():o.hide(),!0):(r.execCommand("mceAddEditor",0,n),!0)}return r.activeEditor?r.activeEditor.execCommand(e,t,n):!1},triggerSave:function(){BL(OL,function(e){e.save()})},addI18n:function(e,t){zs.add(e,t)},translate:function(e){return zs.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new xL(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new xL(this.baseURL)}});jL.setup(),function(e){e.compareRanges=sw.isEq,e.getCaretRangeFromPoint=oC.fromPoint,e.getSelectedNode=ef,e.getNode=tf}(I||(I={}));var qL,$L,WL=I,KL=function(t,n,r){void 0===r&&(r=1e3);var o=!1,i=null,a=function(t){return function(){for(var n=[],r=0;r=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},tI=function(e,t,n){return oI(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},nI=function(e,t){var n,r,o,i;return n=ZL(e.x,t.x),r=ZL(e.y,t.y),o=GL(e.x+e.w,t.x+t.w),i=GL(e.y+e.h,t.y+t.h),0>o-n||0>i-r?null:oI(n,r,o-n,i-r)},rI=function(e,t,n){var r,o,i,a,u,c,s,l,f,d;return u=e.x,c=e.y,s=e.x+e.w,l=e.y+e.h,f=t.x+t.w,d=t.y+t.h,r=ZL(0,t.x-u),o=ZL(0,t.y-c),i=ZL(0,s-f),a=ZL(0,l-d),u+=r,c+=o,n&&(s+=r,l+=o,u-=i,c-=a),s-=i,l-=a,oI(u,c,s-u,l-c)},oI=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},iI=function(e){return oI(e.left,e.top,e.width,e.height)},aI={inflate:tI,relativePosition:QL,findBestRelativePosition:eI,intersect:nI,clamp:rI,create:oI,fromClientRect:iI},uI=ea.each,cI=ea.extend,sI=function(){};sI.extend=qL=function(e){var t,n,r,o=this,i=o.prototype,a=function(){var e,t,n,r=this;if(!$L&&(r.init&&r.init.apply(r,arguments),t=r.Mixins))for(e=t.length;e--;)n=t[e],n.init&&n.init.apply(r,arguments)},u=function(){return this},c=function(e,t){return function(){var n,r=this,o=r._super;return r._super=i[e],n=t.apply(r,arguments),r._super=o,n}};$L=!0,t=new o,$L=!1,e.Mixins&&(uI(e.Mixins,function(t){for(var n in t)"init"!==n&&(e[n]=t[n])}),i.Mixins&&(e.Mixins=i.Mixins.concat(e.Mixins))),e.Methods&&uI(e.Methods.split(","),function(t){e[t]=u}),e.Properties&&uI(e.Properties.split(","),function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}}),e.Statics&&uI(e.Statics,function(e,t){a[t]=e}),e.Defaults&&i.Defaults&&(e.Defaults=cI({},i.Defaults,e.Defaults));for(n in e)r=e[n],t[n]="function"==typeof r&&i[n]?c(n,r):r;return a.prototype=t,a.constructor=a,a.extend=qL,a};var lI,fI=Math.min,dI=Math.max,hI=Math.round,mI=function(e){var t={},n=0,r=0,o=0,i=function(e,t,n){var r,o,i,a,u,c;return r=0,o=0,i=0,e/=255,t/=255,n/=255,u=fI(e,fI(t,n)),c=dI(e,dI(t,n)),u===c?(i=u,{h:0,s:0,v:100*i}):(a=e===u?t-n:n===u?e-t:n-e,r=e===u?3:n===u?1:5,r=60*(r-a/(c-u)),o=(c-u)/c,i=c,{h:hI(r),s:hI(100*o),v:hI(100*i)})},a=function(e,t,i){var a,u,c,s;if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,i=parseInt(i,10)/100,t=dI(0,fI(t,1)),i=dI(0,fI(i,1)),0===t)return void(n=r=o=hI(255*i));switch(a=e/60,u=i*t,c=u*(1-Math.abs(a%2-1)),s=i-u,Math.floor(a)){case 0:n=u,r=c,o=0;break;case 1:n=c,r=u,o=0;break;case 2:n=0,r=u,o=c;break;case 3:n=0,r=c,o=u;break;case 4:n=c,r=0,o=u;break;case 5:n=u,r=0,o=c;break;default:n=r=o=0}n=hI(255*(n+s)),r=hI(255*(r+s)),o=hI(255*(o+s))},u=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(o)},c=function(){return{r:n,g:r,b:o}},s=function(){return i(n,r,o)},l=function(e){var i;return"object"==typeof e?"r"in e?(n=e.r,r=e.g,o=e.b):"v"in e&&a(e.h,e.s,e.v):(i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10)):(i=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16)):(i=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(i[1]+i[1],16),r=parseInt(i[2]+i[2],16),o=parseInt(i[3]+i[3],16)),n=0>n?0:n>255?255:n,r=0>r?0:r>255?255:r,o=0>o?0:o>255?255:o,t};return e&&l(e),t.toRgb=c,t.toHsv=s,t.toHex=u,t.parse=l,t},gI=function(e){var t=JSON.stringify(e);return tt(t)?t.replace(/[\u0080-\uFFFF]/g,function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t}):t},pI={serialize:gI,parse:function(e){try{return JSON.parse(e)}catch(t){}}},vI={callbacks:{},count:0,send:function(e){var t=this,n=rs.DOM,r=void 0!==e.count?e.count:t.count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},yI=$t($t({},HH),{send:function(t){var n,r=0,o=function(){!t.async||4===n.readyState||r++>1e4?(t.success&&1e4>r&&200===n.status?t.success.call(t.success_scope,""+n.responseText,n,t):t.error&&t.error.call(t.error_scope,r>1e4?"TIMED_OUT":"GENERAL",n,t),n=null):wi.setTimeout(o,10)};if(t.scope=t.scope||this,t.success_scope=t.success_scope||t.scope,t.error_scope=t.error_scope||t.scope,t.async=t.async!==!1,t.data=t.data||"",yI.fire("beforeInitialize",{settings:t}),n=new e.XMLHttpRequest){if(n.overrideMimeType&&n.overrideMimeType(t.content_type),n.open(t.type||(t.data?"POST":"GET"),t.url,t.async),t.crossDomain&&(n.withCredentials=!0),t.content_type&&n.setRequestHeader("Content-Type",t.content_type),t.requestheaders&&ea.each(t.requestheaders,function(e){n.setRequestHeader(e.key,e.value)}),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n=yI.fire("beforeSend",{xhr:n,settings:t}).xhr,n.send(t.data),!t.async)return o();wi.setTimeout(o,10)}}}),bI=ea.extend,CI=function(){function e(e){this.settings=bI({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=bI(this.settings,e);r.success=function(e,o){e=pI.parse(e),"undefined"==typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,o):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=pI.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",yI.send(r)},e}(),wI=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n?n:null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter(function(e){return e===n}),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{lI=e.window.localStorage}catch(pc){lI=wI()}var xI=lI,EI={geom:{Rect:aI},util:{Promise:mi,Delay:wi,Tools:ea,VK:vb,URI:xL,Class:sI,EventDispatcher:PH,Observable:HH,I18n:zs,XHR:yI,JSON:pI,JSONRequest:CI,JSONP:vI,LocalStorage:xI,Color:mI},dom:{EventUtils:Du,Sizzle:vc,DomQuery:Kc,TreeWalker:Xc,TextSeeker:gd,DOMUtils:rs,ScriptLoader:fs,RangeUtils:WL,Serializer:bx,ControlSelection:wb,BookmarkManager:mb,Selection:Vw,Event:Du.Event},html:{Styles:Cu,Entities:au,Node:$g,Schema:a,SaxParser:Qg,DomParser:ox,Writer:sp,Serializer:lp},Env:Ri,AddOnManager:ks,Annotator:Ig,Formatter:dk,UndoManager:nN,EditorCommands:MH,WindowManager:Jy,NotificationManager:R,EditorObservable:iL,Shortcuts:gL,Editor:TL,FocusManager:ev,EditorManager:jL,DOM:rs.DOM,ScriptLoader:fs.ScriptLoader,PluginManager:ks.PluginManager,ThemeManager:ks.ThemeManager,IconManager:Oy,Resource:YL,trim:ea.trim,isArray:ea.isArray,is:ea.is,toArray:ea.toArray,makeMap:ea.makeMap,each:ea.each,map:ea.map,grep:ea.grep,inArray:ea.inArray,extend:ea.extend,create:ea.create,walk:ea.walk,createNS:ea.createNS,resolve:ea.resolve,explode:ea.explode,_addCacheSuffix:ea._addCacheSuffix,isOpera:Ri.opera,isWebKit:Ri.webkit,isIE:Ri.ie,isGecko:Ri.gecko,isMac:Ri.mac},zI=ea.extend(jL,EI),kI=function(e){if("object"==typeof n)try{n.exports=e}catch(t){}},NI=function(e){window.tinymce=e,window.tinyMCE=e};NI(zI),kI(zI)}(window)}); -;/*!node_modules/tinymce/themes/silver/theme.js*/ -amis.define("node_modules/tinymce/themes/silver/theme",function(){!function(n){"use strict";function t(n){for(var t=[],e=1;et;t++)n+=arguments[t].length;for(var o=Array(n),r=0,t=0;e>t;t++)for(var i=arguments[t],u=0,a=i.length;a>u;u++,r++)o[r]=i[u];return o}function r(n,t){var e=function(t,e){if(!It(e)&&!e.match(/^[0-9]+$/))throw new Error(n+".set accepts only positive integer values. Value was "+e);var o=t.dom();Ts(o)&&(o.style[n]=e+"px")},o=function(e){var o=t(e);if(0>=o||null===o){var r=Vs(e,n);return parseFloat(r)||0}return o},r=o,i=function(n,t){return $t(t,function(t,e){var o=Vs(n,e),r=void 0===o?0:parseInt(o,10);return isNaN(r)?t:t+r},0)},u=function(n,t,e){var o=i(n,e),r=t>o?t-o:0;return r};return{set:e,get:o,getOuter:r,aggregate:i,max:u}}function i(n,t,e,o,r){return n(e,o)?St.some(e):Ft(r)&&r(e)?St.none():t(e,o,r)}function u(n,t){var e=function(e){if(!n(e))throw new Error("Can only get "+t+" value of a "+t+" node");return o(e).getOr("")},o=function(t){return n(t)?St.from(t.dom().nodeValue):St.none()},r=function(e,o){if(!n(e))throw new Error("Can only set raw "+t+" value of a "+t+" node");e.dom().nodeValue=o};return{get:e,getOption:o,set:r}}function a(n){return void 0!==n.uid}function c(n,t,e){var o=t.backstage,r=ZS(n),i=function(n){switch(n){case"bc-bc":return BS;case"tc-tc":return ES;case"tc-bc":return td;case"bc-tc":default:return ed}},u=function(n){Xt(n,function(n){return n.moveTo(0,0)})},a=function(n){n.length>0&&(ce(n).each(function(n){return n.moveRel(null,"banner")}),Xt(n,function(t,e){e>0&&t.moveRel(n[e-1].getEl(),"bc-tc")}))},c=function(n){u(n),a(n)},s=function(n,u){var a=!n.closeButton&&n.timeout&&(n.timeout>0||n.timeout<0),c=function(){u(),bS.hide(f)},s=of(hC.sketch({text:n.text,level:Lt(["success","error","warning","warn","info"],n.type)?n.type:void 0,progress:n.progressBar===!0,icon:St.from(n.icon),closeButton:!a,onAction:c,iconProvider:o.shared.providers.icons,translationProvider:o.shared.providers.translate})),f=of(bS.sketch(vt({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:t.backstage.shared.getSink,fireDismissalEventInstead:{}},r?{}:{fireRepositionEventInstead:{}})));return e.add(f),n.timeout>0&&DS.setTimeout(function(){c()},n.timeout),{close:c,moveTo:function(n,t){bS.showAt(f,{anchor:"makeshift",x:n,y:t},rf(s))},moveRel:function(n,e){if("banner"!==e){var o=i(e),r={anchor:"node",root:Bs(),node:St.some(Xr.fromDom(n)),layouts:{onRtl:function(){return[o]},onLtr:function(){return[o]}}};bS.showAt(f,r,rf(s))}else bS.showAt(f,t.backstage.shared.anchors.banner(),rf(s))},text:function(n){hC.updateText(s,n)},settings:n,getEl:function(){return s.element().dom()},progressBar:{value:function(n){hC.updateProgress(s,n)}}}},f=function(n){n.close()},l=function(n){return n.settings};return{open:s,close:f,reposition:c,getArgs:l}}function s(n){var t=10,e=10,o=Sc("size-label"),r=KO(o,t,e),i=sC({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:o}},components:[nf("0x0")],behaviours:bd([ew.config({})])});return{type:"widget",data:{value:Sc("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GO().widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:$O(r).concat(i.asSpec()),behaviours:bd([rw("insert-table-picker",[ba(XO,function(n,o,u){var a=u.event().row(),c=u.event().col();JO(r,a,c,t,e),ew.set(i.get(n),[QO(a,c)])}),ba(YO,function(t,e,o){n.onAction({numRows:o.event().row()+1,numColumns:o.event().col()+1}),ea(t,Pu())})]),Xx.config({initSize:{numRows:t,numColumns:e},mode:"flatgrid",selector:'[role="button"]'})])})]}}function f(n){void 0===n&&(n=10);var t=x_.getItem(w_),e=Bt(t)?JSON.parse(t):[],o=function(t){var e=n-t.length;return 0>e?t.slice(0,n):t},r=o(e),i=function(t){zt(r,t).each(u),r.unshift(t),r.length>n&&r.pop(),x_.setItem(w_,JSON.stringify(r))},u=function(n){r.splice(n,1)},a=function(){return r.slice(0)};return{add:i,state:a}}function l(n,t){var e=eT.getColors(t.colorinput.getColors(),t.colorinput.hasCustomColors()),o=t.colorinput.getColorCols(),r="color",i=xT(Sc("menu-value"),e,function(t){n.onAction({value:t})},o,r,FO.CLOSE_ON_EXECUTE,function(){return!1},t.shared.providers),u=vt(vt({},i),{markers:iT(r),movement:ST(o,r)});return{type:"widget",data:{value:Sc("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GO().widget(oS.sketch(u))]}}function d(t,e){var o=null,r=function(){for(var r=[],i=0;il;++l){for(var d=l*u,m=Math.min(d+u,c),g=new Array(m-d),p=d,h=0;m>p;++h,++p)g[h]=a[p].charCodeAt(0);f[l]=new Uint8Array(g)}return St.some(new n.Blob(f,{type:r}))}function C(n){return new VF(function(t,e){S(n).fold(function(){e("uri is not base64: "+n)},t)})}function k(t,e,o){return e=e||"image/png",n.HTMLCanvasElement.prototype.toBlob?new VF(function(n,r){t.toBlob(function(t){t?n(t):r()},e,o)}):C(t.toDataURL(e,o))}function O(n,t,e){return t=t||"image/png",n.toDataURL(t,e)}function _(n){return w(n).then(function(n){E(n);var t=p(y(n),x(n)),e=v(t);return e.drawImage(n,0,0),t})}function T(t){return new VF(function(e){var o=new n.FileReader;o.onloadend=function(){e(o.result)},o.readAsDataURL(t)})}function E(t){n.URL.revokeObjectURL(t.src)}function B(n,t,e){function o(){return VF.resolve(t)}function r(){return e}function i(){return e.split(",")[1]}function u(t,e){return n.then(function(n){return k(n,t,e)})}function a(t,e){return n.then(function(n){return O(n,t,e)})}function c(n,t){return a(n,t).then(function(n){return n.split(",")[1]})}function s(){return n.then(h)}var f=t.type,l=ft(f);return{getType:l,toBlob:o,toDataURL:r,toBase64:i,toAdjustedBlob:u,toAdjustedDataURL:a,toAdjustedBase64:c,toCanvas:s}}function D(n){return T(n).then(function(t){return B(_(n),n,t)})}function A(n,t){return k(n,t).then(function(t){return B(VF.resolve(n),t,n.toDataURL())})}function M(n,t,e){var o="string"==typeof n?parseFloat(n):n;return o>e?o=e:t>o&&(o=t),o}function F(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]}function I(n,t){for(var e,o=[],r=new Array(25),i=0;5>i;i++){for(var u=0;5>u;u++)o[u]=t[u+5*i];for(var u=0;5>u;u++){e=0;for(var a=0;5>a;a++)e+=n[u+5*a]*o[a];r[u+5*i]=e}}return r}function R(n,t){var e;return t=M(t,-1,1),t*=100,0>t?e=127+t/100*127:(e=t%1,e=0===e?NF[t]:NF[Math.floor(t)]*(1-e)+NF[Math.floor(t)+1]*e,e=127*e+127),I(n,[e/127,0,0,0,.5*(127-e),0,e/127,0,0,.5*(127-e),0,0,e/127,0,.5*(127-e),0,0,0,1,0,0,0,0,0,1])}function V(n,t){return t=M(255*t,-255,255),I(n,[1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1])}function H(n,t,e,o){return t=M(t,0,2),e=M(e,0,2),o=M(o,0,2),I(n,[t,0,0,0,0,0,e,0,0,0,0,0,o,0,0,0,0,0,1,0,0,0,0,0,1])}function N(n,t){return n.toCanvas().then(function(e){return P(e,n.getType(),t)})}function P(n,t,e){function o(n,t){for(var e,o,r,i,u=n.data,a=t[0],c=t[1],s=t[2],f=t[3],l=t[4],d=t[5],m=t[6],g=t[7],p=t[8],h=t[9],v=t[10],b=t[11],y=t[12],x=t[13],w=t[14],S=t[15],C=t[16],k=t[17],O=t[18],_=t[19],T=0;Te?n=e:t>n&&(n=t),n}for(var r=Math.round(Math.sqrt(e.length)),i=Math.floor(r/2),u=n.data,a=t.data,c=n.width,s=n.height,f=0;s>f;f++)for(var l=0;c>l;l++){for(var d=0,m=0,g=0,p=0;r>p;p++)for(var h=0;r>h;h++){var v=o(l+h-i,0,c-1),b=o(f+p-i,0,s-1),y=4*(b*c+v),x=e[p*r+h];d+=u[y]*x,m+=u[y+1]*x,g+=u[y+2]*x}var w=4*(f*c+l);a[w]=o(d,0,255),a[w+1]=o(m,0,255),a[w+2]=o(g,0,255)}return t}var r=v(n),i=r.getImageData(0,0,n.width,n.height),u=r.getImageData(0,0,n.width,n.height);return u=o(i,u,e),r.putImageData(u,0,0),A(n,t)}function j(n){var t=function(t,e,o){function r(n,t){for(var e=n.data,o=0;oi||i>2)&&(i=.5>i?.5:2,a=!0),(.5>u||u>2)&&(u=.5>u?.5:2,a=!0);var c=Y(n,i,u);return a?c.then(function(n){return X(n,t,e)}):c}function Y(n,t,e){return new VF(function(o){var r=y(n),i=x(n),u=Math.floor(r*t),a=Math.floor(i*e),c=p(u,a),s=v(c);s.drawImage(n,0,0,r,i,0,0,u,a),o(c)})}function q(n,t){return n.toCanvas().then(function(e){return K(e,n.getType(),t)})}function K(n,t,e){var o=p(n.width,n.height),r=v(o),i=0,u=0;return e=0>e?360+e:e,(90===e||270===e)&&b(o,o.height,o.width),(90===e||180===e)&&(i=o.width),(270===e||180===e)&&(u=o.height),r.translate(i,u),r.rotate(e*Math.PI/180),r.drawImage(n,0,0),A(o,t)}function J(n,t){return n.toCanvas().then(function(e){return $(e,n.getType(),t)})}function $(n,t,e){var o=p(n.width,n.height),r=v(o);return"v"===e?(r.scale(1,-1),r.drawImage(n,0,-o.height)):(r.scale(-1,1),r.drawImage(n,-o.width,0)),A(o,t)}function Q(n,t,e,o,r){return n.toCanvas().then(function(i){return Z(i,n.getType(),t,e,o,r)})}function Z(n,t,e,o,r,i){var u=p(r,i),a=v(u);return a.drawImage(n,-e,-o),A(u,t)}function nt(n,t,e){return n.toCanvas().then(function(o){return X(o,t,e).then(function(t){return A(t,n.getType())})})}function tt(n){var t,e,o,r,i,u,a,c,s=Math.max;return t=n.documentElement,e=n.body,o=s(t.scrollWidth,e.scrollWidth),r=s(t.clientWidth,e.clientWidth),i=s(t.offsetWidth,e.offsetWidth),u=s(t.scrollHeight,e.scrollHeight),a=s(t.clientHeight,e.clientHeight),c=s(t.offsetHeight,e.offsetHeight),{width:i>o?r:o,height:c>u?a:u}}function et(n){var t,e;if(n.changedTouches)for(t="screenX screenY pageX pageY clientX clientY".split(" "),e=0;e").css({position:"absolute",top:0,left:0,width:m.width,height:m.height,zIndex:2147483647,opacity:1e-4,cursor:d}).appendTo(f.body),cR(f).on("mousemove touchmove",a).on("mouseup touchend",u),e.start(t)},a=function(n){return et(n),n.button!==r?u(n):(n.deltaX=n.screenX-c,n.deltaY=n.screenY-s,n.preventDefault(),void e.drag(n))},u=function(n){et(n),cR(f).off("mousemove touchmove",a).off("mouseup touchend",u),o.remove(),e.stop&&e.stop(n)},this.destroy=function(){cR(l).off()},cR(l).on("mousedown touchstart",i)}function rt(){function n(n){var t;return t=i.splice(++u),i.push(n),{state:n,removed:t}}function t(){return o()?i[--u]:void 0}function e(){return r()?i[++u]:void 0}function o(){return u>0}function r(){return-1!==u&&ue;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},vt.apply(this,arguments)},bt=function(){return yt},yt=function(){var n=function(n){return n.isNone()},t=function(n){return n()},e=function(n){return n},o={fold:function(n){return n()},is:gt,isSome:gt,isNone:pt,getOr:e,getOrThunk:t,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:ft(null),getOrUndefined:ft(void 0),or:e,orThunk:t,map:bt,each:at,bind:bt,exists:gt,forall:pt,filter:bt,equals:n,equals_:n,toArray:function(){return[]},toString:ft("none()")};return Object.freeze&&Object.freeze(o),o}(),xt=function(n){var t=ft(n),e=function(){return r},o=function(t){return t(n)},r={fold:function(t,e){return e(n)},is:function(t){return n===t},isSome:pt,isNone:gt,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:e,orThunk:e,map:function(t){return xt(t(n))},each:function(t){t(n)},bind:o,exists:o,forall:o,filter:function(t){return t(n)?r:yt},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(t){return t.is(n)},equals_:function(t,e){return t.fold(gt,function(t){return e(n,t)})}};return r},wt=function(n){return null===n||void 0===n?yt:xt(n)},St={some:xt,none:bt,from:wt},Ct=function(n){var t=function(t){return n===t},e=function(){return Ct(n)},o=function(){return Ct(n)},r=function(t){return Ct(t(n))},i=function(){return Ct(n)},u=function(t){t(n)},a=function(t){return t(n)},c=function(t,e){return e(n)},s=function(t){return t(n)},f=function(t){return t(n)},l=function(){return St.some(n)};return{is:t,isValue:pt,isError:gt,getOr:ft(n),getOrThunk:ft(n),getOrDie:ft(n),or:e,orThunk:o,fold:c,map:r,mapError:i,each:u,bind:a,exists:s,forall:f,toOption:l}},kt=function(n){var t=function(n){return n()},e=function(){return mt(String(n))()},o=function(n){return n},r=function(n){return n()},i=function(){return kt(n)},u=function(t){return kt(t(n))},a=function(){return kt(n)},c=function(t){return t(n)};return{is:gt,isValue:gt,isError:pt,getOr:lt,getOrThunk:t,getOrDie:e,or:o,orThunk:r,fold:c,map:i,mapError:u,each:at,bind:a,exists:gt,forall:pt,toOption:St.none}},Ot=function(n,t){return n.fold(function(){return kt(t)},Ct)},_t={value:Ct,error:kt,fromOption:Ot},Tt=function(n){if(null===n)return"null";var t=typeof n;return"object"===t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t},Et=function(n){return function(t){return Tt(t)===n}},Bt=Et("string"),Dt=Et("object"),At=Et("array"),Mt=Et("boolean"),Ft=Et("function"),It=Et("number"),Rt=function(n,t){if(At(n)){for(var e=0,o=n.length;o>e;++e)if(t(n[e])!==!0)return!1;return!0}return!1},Vt=Array.prototype.slice,Ht=Array.prototype.indexOf,Nt=Array.prototype.push,Pt=function(n,t){return Ht.call(n,t)},zt=function(n,t){var e=Pt(n,t);return-1===e?St.none():St.some(e)},Lt=function(n,t){return Pt(n,t)>-1},jt=function(n,t){for(var e=0,o=n.length;o>e;e++){var r=n[e];if(t(r,e))return!0}return!1},Ut=function(n,t){for(var e=[],o=0;n>o;o++)e.push(t(o));return e},Wt=function(n,t){for(var e=[],o=0;or;r++){var i=n[r];o[r]=t(i,r)}return o},Xt=function(n,t){for(var e=0,o=n.length;o>e;e++){var r=n[e];t(r,e)}},Yt=function(n,t){for(var e=n.length-1;e>=0;e--){var o=n[e];t(o,e)}},qt=function(n,t){for(var e=[],o=[],r=0,i=n.length;i>r;r++){var u=n[r],a=t(u,r)?e:o;a.push(u)}return{pass:e,fail:o}},Kt=function(n,t){for(var e=[],o=0,r=n.length;r>o;o++){var i=n[o];t(i,o)&&e.push(i)}return e},Jt=function(n,t,e){return Yt(n,function(n){e=t(e,n)}),e},$t=function(n,t,e){return Xt(n,function(n){e=t(e,n)}),e},Qt=function(n,t){for(var e=0,o=n.length;o>e;e++){var r=n[e];if(t(r,e))return St.some(r)}return St.none()},Zt=function(n,t){for(var e=0,o=n.length;o>e;e++){var r=n[e];if(t(r,e))return St.some(e)}return St.none()},ne=function(n){for(var t=[],e=0,o=n.length;o>e;++e){if(!At(n[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+n);Nt.apply(t,n[e])}return t},te=function(n,t){return ne(Gt(n,t))},ee=function(n,t){for(var e=0,o=n.length;o>e;++e){var r=n[e];if(t(r,e)!==!0)return!1}return!0},oe=function(n){var t=Vt.call(n,0);return t.reverse(),t},re=function(n,t){return Kt(n,function(n){return!Lt(t,n)})},ie=function(n,t){for(var e={},o=0,r=n.length;r>o;o++){var i=n[o];e[String(i)]=t(i,o)}return e},ue=function(n){return[n]},ae=function(n,t){var e=Vt.call(n,0);return e.sort(t),e},ce=function(n){return 0===n.length?St.none():St.some(n[0])},se=function(n){return 0===n.length?St.none():St.some(n[n.length-1])},fe=Ft(Array.from)?Array.from:function(n){return Vt.call(n)},le=function(n,t){for(var e=0;eo;o++){var i=e[o],u=n[i];t(u,i)}},pe=function(n,t){return he(n,function(n,e){return{k:e,v:t(n,e)}})},he=function(n,t){var e={};return ge(n,function(n,o){var r=t(n,o);e[r.k]=r.v}),e},ve=function(n,t){var e=[];return ge(n,function(n,o){e.push(t(n,o))}),e},be=function(n,t){for(var e=de(n),o=0,r=e.length;r>o;o++){var i=e[o],u=n[i];if(t(u,i,n))return St.some(u)}return St.none()},ye=function(n){return ve(n,function(n){return n})},xe=function(n,t){return we(n,t)?St.from(n[t]):St.none()},we=function(n,t){return me.call(n,t)},Se=function(n,t){return we(n,t)&&void 0!==n[t]&&null!==n[t]},Ce=function(t){if(!At(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],o={};return Xt(t,function(r,i){var u=de(r);if(1!==u.length)throw new Error("one and only one name per case");var a=u[0],c=r[a];if(void 0!==o[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!At(c))throw new Error("case arguments must be an array");e.push(a),o[a]=function(){var o=arguments.length;if(o!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+o);for(var r=new Array(o),u=0;u0?io(e.errors):ro(e.values,t)},ao=function(n,t){return Ue.svalue(n.length>0?Be(t,De.apply(void 0,n)):t)},co=function(n){return st(Ue.serror,ne)(n)},so=function(n,t){var e=Ue.partition(n);return e.errors.length>0?co(e.errors):ao(e.values,t)},fo=function(n){var t=Ue.partition(n);return t.errors.length>0?co(t.errors):Ue.svalue(t.values)},lo={consolidateObj:so,consolidateArr:fo},mo=function(n){return Dt(n)&&de(n).length>100?" removed due to size":JSON.stringify(n,null,2)},go=function(n){var t=n.length>10?n.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):n;return Gt(t,function(n){return"Failed path: ("+n.path.join(" > ")+")\n"+n.getErrorInfo()})},po=function(n,t){return Ue.serror([{path:n,getErrorInfo:t}])},ho=function(n,t,e){return po(n,function(){return'Could not find valid *strict* value for "'+t+'" in '+mo(e)})},vo=function(n,t){return po(n,function(){return'Choice schema did not contain choice key: "'+t+'"'})},bo=function(n,t,e){return po(n,function(){return'The chosen schema: "'+e+'" did not exist in branches: '+mo(t)})},yo=function(n,t){return po(n,function(){return"There are unsupported fields: ["+t.join(", ")+"] specified"})},xo=function(n,t){return po(n,function(){return t})},wo=ke.generate([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),So=function(n,t,e){return xe(t,e).fold(function(){return ho(n,e,t)},Ue.svalue)},Co=function(n,t,e){var o=xe(n,t).fold(function(){return e(n)},lt);return Ue.svalue(o)},ko=function(n,t){return Ue.svalue(xe(n,t))},Oo=function(n,t,e){var o=xe(n,t).map(function(t){return t===!0?e(n):t});return Ue.svalue(o)},_o=function(n,t,e,o){return e.fold(function(e,r,i,u){var a=function(t){var i=u.extract(n.concat([e]),o,t);return Ue.map(i,function(n){return Qe(r,o(n))})},c=function(t){return t.fold(function(){var n=Qe(r,o(St.none()));return Ue.svalue(n)},function(t){var i=u.extract(n.concat([e]),o,t);return Ue.map(i,function(n){return Qe(r,o(St.some(n)))})})};return function(){return i.fold(function(){return Ue.bind(So(n,t,e),a)},function(n){return Ue.bind(Co(t,e,n),a)},function(){return Ue.bind(ko(t,e),c)},function(n){return Ue.bind(Oo(t,e,n),c)},function(n){var o=n(t),r=Ue.map(Co(t,e,ft({})),function(n){return Be(o,n)});return Ue.bind(r,a)})}()},function(n,e){var r=e(t);return Ue.svalue(Qe(n,o(r)))})},To=function(n,t,e,o){var r=Gt(e,function(e){return _o(n,t,e,o)});return lo.consolidateObj(r,{})},Eo=function(n){var t=function(t,e,o){return n().extract(t,e,o)},e=function(){return n().toString()};return{extract:t,toString:e}},Bo=function(n){var t=function(t,e,o){return Ue.bindError(n(o,e),function(n){return xo(t,n)})},e=function(){return"val"};return{extract:t,toString:e}},Do=function(n){var t=de(n);return Kt(t,function(t){return Se(n,t)})},Ao=function(n){var t=Mo(n),e=Jt(n,function(n,t){return t.fold(function(t){return Be(n,eo(t,!0))},ft(n))},{}),o=function(n,o,r){var i=Mt(r)?[]:Do(r),u=Kt(i,function(n){return!Se(e,n)});return 0===u.length?t.extract(n,o,r):yo(n,u)};return{extract:o,toString:t.toString}},Mo=function(n){var t=function(t,e,o){return To(t,o,n,e)},e=function(){var t=Gt(n,function(n){return n.fold(function(n,t,e,o){return n+" -> "+o.toString()},function(n){return"state("+n+")"})});return"obj{\n"+t.join("\n")+"}"};return{extract:t,toString:e}},Fo=function(n){var t=function(t,e,o){var r=Gt(o,function(o,r){return n.extract(t.concat(["["+r+"]"]),e,o)});return lo.consolidateArr(r)},e=function(){return"array("+n.toString()+")"};return{extract:t,toString:e}},Io=function(n){var t=function(t,e,o){for(var r=[],i=0,u=n;i1)throw n.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Wr(r.childNodes[0])},jr=function(t,e){var o=e||n.document,r=o.createElement(t); -return Wr(r)},Ur=function(t,e){var o=e||n.document,r=o.createTextNode(t);return Wr(r)},Wr=function(n){if(null===n||void 0===n)throw new Error("Node cannot be null or undefined");return{dom:ft(n)}},Gr=function(n,t,e){var o=n.dom();return St.from(o.elementFromPoint(t,e)).map(Wr)},Xr={fromHtml:Lr,fromTag:jr,fromText:Ur,fromDom:Wr,fromPoint:Gr},Yr=function(n,t,e){return 0!==(n.compareDocumentPosition(t)&e)},qr=function(t,e){return Yr(t,e,n.Node.DOCUMENT_POSITION_PRECEDING)},Kr=function(t,e){return Yr(t,e,n.Node.DOCUMENT_POSITION_CONTAINED_BY)},Jr={documentPositionPreceding:qr,documentPositionContainedBy:Kr},$r=function(n,t){for(var e=0;e0&&Ba(u);var a={};return Xt(n,function(n){a[n]=ft(o[n])}),Xt(t,function(n){a[n]=ft(Object.prototype.hasOwnProperty.call(o,n)?St.some(o[n]):St.none())}),a}},Fa=function(n){return Xr.fromDom(n.dom().ownerDocument)},Ia=function(n){return Xr.fromDom(n.dom().ownerDocument.documentElement)},Ra=function(n){return Xr.fromDom(n.dom().ownerDocument.defaultView)},Va=function(n){return St.from(n.dom().parentNode).map(Xr.fromDom)},Ha=function(n){return St.from(n.dom().offsetParent).map(Xr.fromDom)},Na=function(n){return St.from(n.dom().nextSibling).map(Xr.fromDom)},Pa=function(n){return Gt(n.dom().childNodes,Xr.fromDom)},za=function(n,t){var e=n.dom().childNodes;return St.from(e[t]).map(Xr.fromDom)},La=function(n){return za(n,0)},ja=(_a("element","offset"),function(t,e){var o=e||n.document,r=o.createElement("div");return r.innerHTML=t,Pa(Xr.fromDom(r))}),Ua=function(n,t){var e=Va(n);e.each(function(e){e.dom().insertBefore(t.dom(),n.dom())})},Wa=function(n,t){var e=Na(n);e.fold(function(){var e=Va(n);e.each(function(n){Xa(n,t)})},function(n){Ua(n,t)})},Ga=function(n,t){var e=La(n);e.fold(function(){Xa(n,t)},function(e){n.dom().insertBefore(t.dom(),e.dom())})},Xa=function(n,t){n.dom().appendChild(t.dom())},Ya=function(n,t,e){za(n,e).fold(function(){Xa(n,t)},function(n){Ua(n,t)})},qa=function(n,t){Xt(t,function(t){Ua(n,t)})},Ka=function(n,t){Xt(t,function(t){Xa(n,t)})},Ja=function(n){n.dom().textContent="",Xt(Pa(n),function(n){$a(n)})},$a=function(n){var t=n.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},Qa=function(n){var t=Pa(n);t.length>0&&qa(n,t),$a(n)},Za=function(n){return n.dom().innerHTML},nc=function(n,t){var e=Fa(n),o=e.dom(),r=Xr.fromDom(o.createDocumentFragment()),i=ja(t,o);Ka(r,i),Ja(n),Xa(n,r)},tc=function(n){var t=Xr.fromTag("div"),e=Xr.fromDom(n.dom().cloneNode(!0));return Xa(t,e),Za(t)},ec=("undefined"!=typeof n.window?n.window:Function("return this;")(),function(n){var t=n.dom().nodeName;return t.toLowerCase()}),oc=function(n){return n.dom().nodeType},rc=function(n){return function(t){return oc(t)===n}},ic=rc(Gi),uc=rc(Xi),ac=function(t,e,o){if(!(Bt(o)||Mt(o)||It(o)))throw n.console.error("Invalid call to Attr.set. Key ",e,":: Value ",o,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,o+"")},cc=function(n,t,e){ac(n.dom(),t,e)},sc=function(n,t){var e=n.dom();ge(t,function(n,t){ac(e,t,n)})},fc=function(n,t){var e=n.dom().getAttribute(t);return null===e?void 0:e},lc=function(n,t){return St.from(fc(n,t))},dc=function(n,t){var e=n.dom();return e&&e.hasAttribute?e.hasAttribute(t):!1},mc=function(n,t){n.dom().removeAttribute(t)},gc=function(n,t){return Xr.fromDom(n.dom().cloneNode(t))},pc=function(n){return gc(n,!1)},hc=function(n){var t=pc(n);return tc(t)},vc=function(n){return hc(n)},bc=function(n,t,e){return Zi(t,n.element())&&!Zi(t,e)},yc=ca([fa(Au(),function(t,e){var o=e.event().originator(),r=e.event().target();return bc(t,o,r)?(n.console.warn(Au()+" did not get interpreted by the desired target. \nOriginator: "+vc(o)+"\nTarget: "+vc(r)+"\nCheck the "+Au()+" event handlers"),!1):!0})]),xc=Object.freeze({__proto__:null,events:yc}),wc=0,Sc=function(n){var t=new Date,e=t.getTime(),o=Math.floor(1e9*Math.random());return wc++,n+"_"+o+wc+String(e)},Cc=ft("alloy-id-"),kc=ft("data-alloy-id"),Oc=Cc(),_c=kc(),Tc=function(n,t){var e=Sc(Oc+n);return Ec(t,e),e},Ec=function(n,t){Object.defineProperty(n.dom(),_c,{value:t,writable:!0})},Bc=function(n){var t=ic(n)?n.dom()[_c]:null;return St.from(t)},Dc=function(n){return Sc(n)},Ac=lt,Mc=function(n){var t=function(t){return function(){throw new Error("The component must be in a context to send: "+t+(n?"\n"+vc(n().element())+" is not in context.":""))}};return{debugInfo:ft("fake"),triggerEvent:t("triggerEvent"),triggerFocus:t("triggerFocus"),triggerEscape:t("triggerEscape"),build:t("build"),addToWorld:t("addToWorld"),removeFromWorld:t("removeFromWorld"),addToGui:t("addToGui"),removeFromGui:t("removeFromGui"),getByUid:t("getByUid"),getByDom:t("getByDom"),broadcast:t("broadcast"),broadcastOn:t("broadcastOn"),broadcastEvent:t("broadcastEvent"),isConnected:ft(!1)}},Fc=Mc(),Ic=function(n,t,e){var o=e.toString(),r=o.indexOf(")")+1,i=o.indexOf("("),u=o.substring(i+1,r-1).split(/,\s*/);return n.toFunctionAnnotation=function(){return{name:t,parameters:Rc(u.slice(0,1).concat(u.slice(3)))}},n},Rc=function(n){return Gt(n,function(n){return Mi(n,"/*")?n.substring(0,n.length-"/*".length):n})},Vc=function(n,t){var e=n.toString(),o=e.indexOf(")")+1,r=e.indexOf("("),i=e.substring(r+1,o-1).split(/,\s*/);return n.toFunctionAnnotation=function(){return{name:t,parameters:Rc(i)}},n},Hc=function(n,t){var e=t.toString(),o=e.indexOf(")")+1,r=e.indexOf("("),i=e.substring(r+1,o-1).split(/,\s*/);return n.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:Rc(i.slice(1))}},n},Nc=Sc("alloy-premade"),Pc=function(n){return eo(Nc,n)},zc=function(n){return xe(n,Nc)},Lc=function(n){return Hc(function(t){for(var e=[],o=1;oa?-1:a>c?1:0});return _t.value(r)}catch(i){return _t.error([i])}},Qc=function(n,t){return{handler:n,purpose:ft(t)}},Zc=function(n,t){return{cHandler:n,purpose:ft(t)}},ns=function(n,e){return Zc(t.apply(void 0,[n.handler].concat(e)),n.purpose())},ts=function(n){return n.cHandler},es=function(n,t){return{name:ft(n),handler:ft(t)}},os=function(n,t){var e={};return Xt(n,function(n){e[n.name()]=n.handlers(t)}),e},rs=function(n,t,e){var o=vt(vt({},e),os(t,n));return Yc(o,es)},is=function(n,t,e,o){var r=rs(n,e,o);return ss(r,t)},us=function(n){var t=fu(n);return function(n,e){for(var o=[],r=2;r1?Kt(t[e],function(t){return jt(n,function(n){return n.name()===t})}).join(" > "):n[0].name();return eo(e,Qc(r,i))})});return uo(e,{})},fs=function(n){return Ko("custom.definition",Mo([Po("dom","dom",Ye(),Mo([fr("tag"),Br("styles",{}),Br("classes",[]),Br("attributes",{}),wr("value"),wr("innerHtml")])),fr("components"),fr("uid"),Br("events",{}),Br("apis",{}),Po("eventOrder","eventOrder",Xe({"alloy.execute":["disabling","alloy.base.behaviour","toggling","typeaheadevents"],"alloy.focus":["alloy.base.behaviour","focusing","keying"],"alloy.system.init":["alloy.base.behaviour","disabling","toggling","representing"],input:["alloy.base.behaviour","representing","streaming","invalidating"],"alloy.system.detached":["alloy.base.behaviour","representing","item-events","tooltipping"],mousedown:["focusing","alloy.base.behaviour","item-type-events"],touchstart:["focusing","alloy.base.behaviour","item-type-events"],mouseover:["item-type-events","tooltipping"]}),tr()),wr("domModification")]),n)},ls=function(n){return vt(vt({},n.dom),{uid:n.uid,domChildren:Gt(n.components,function(n){return n.element()})})},ds=function(n){return n.domModification.fold(function(){return qc({})},qc)},ms=function(n){return n.events},gs=function(n,t){var e=fc(n,t);return void 0===e||""===e?[]:e.split(" ")},ps=function(n,t,e){var o=gs(n,t),r=o.concat([e]);return cc(n,t,r.join(" ")),!0},hs=function(n,t,e){var o=Kt(gs(n,t),function(n){return n!==e});return o.length>0?cc(n,t,o.join(" ")):mc(n,t),!1},vs=function(n){return void 0!==n.dom().classList},bs=function(n){return gs(n,"class")},ys=function(n,t){return ps(n,"class",t)},xs=function(n,t){return hs(n,"class",t)},ws=function(n,t){vs(n)?n.dom().classList.add(t):ys(n,t)},Ss=function(n){var t=vs(n)?n.dom().classList:bs(n);0===t.length&&mc(n,"class")},Cs=function(n,t){if(vs(n)){var e=n.dom().classList;e.remove(t)}else xs(n,t);Ss(n)},ks=function(n,t){return vs(n)&&n.dom().classList.contains(t)},Os=function(n,t){Xt(t,function(t){ws(n,t)})},_s=function(n,t){Xt(t,function(t){Cs(n,t)})},Ts=function(n){return void 0!==n.style&&Ft(n.style.getPropertyValue)},Es=function(n){var t=uc(n)?n.dom().parentNode:n.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)},Bs=Ae(function(){return Ds(Xr.fromDom(n.document))}),Ds=function(n){var t=n.dom().body;if(null===t||void 0===t)throw new Error("Body is not available yet");return Xr.fromDom(t)},As=function(t,e,o){if(!Bt(o))throw n.console.error("Invalid call to CSS.set. Property ",e,":: Value ",o,":: Element ",t),new Error("CSS value must be a string: "+o);Ts(t)&&t.style.setProperty(e,o)},Ms=function(n,t){Ts(n)&&n.style.removeProperty(t)},Fs=function(n,t,e){var o=n.dom();As(o,t,e)},Is=function(n,t){var e=n.dom();ge(t,function(n,t){As(e,t,n)})},Rs=function(n,t){var e=n.dom();ge(t,function(n,t){n.fold(function(){Ms(e,t)},function(n){As(e,t,n)})})},Vs=function(t,e){var o=t.dom(),r=n.window.getComputedStyle(o),i=r.getPropertyValue(e),u=""!==i||Es(t)?i:Hs(o,e);return null===u?void 0:u},Hs=function(n,t){return Ts(n)?n.style.getPropertyValue(t):""},Ns=function(n,t){var e=n.dom(),o=Hs(e,t);return St.from(o).filter(function(n){return n.length>0})},Ps=function(n){var t={},e=n.dom();if(Ts(e))for(var o=0;o0?Jc(e,i,t,o):r;return Kc(o,u)},Js=function(n,t,e){var o={"alloy.base.behaviour":ms(n)};return is(e,n.eventOrder,t,o).getOrDie()},$s=function(n){var t=function(){return b},e=zr(Fc),o=Jo(fs(n)),r=qs(n),i=Gc(r),u=Xc(r),a=Ks(o,i,u),c=Gs(a),s=Js(o,i,u),f=zr(o.components),l=function(n){e.set(n)},d=function(){e.set(Mc(t))},m=function(){var n=Pa(c),t=te(n,function(n){return e.get().getByDom(n).fold(function(){return[]},function(n){return[n]})});f.set(t)},g=function(t){var e=u,o=Ft(e[t.name()])?e[t.name()]:function(){throw new Error("Could not find "+t.name()+" in "+JSON.stringify(n,null,2))};return o()},p=function(n){return Ft(u[n.name()])},h=function(){return o.apis},v=function(n){return u[n]().map(function(n){return n.state.readState()}).getOr("not enabled")},b={getSystem:e.get,config:g,hasConfigured:p,spec:ft(n),readState:v,getApis:h,connect:l,disconnect:d,element:ft(c),syncComponents:m,components:f.get,events:ft(s)};return b},Qs=function(n){var t=xe(n,"components").getOr([]);return Gt(t,of)},Zs=function(n){var t=Ac(n),o=t.events,r=e(t,["events"]),i=Qs(r),u=vt(vt({},r),{events:vt(vt({},xc),o),components:i});return _t.value($s(u))},nf=function(n){var t=Xr.fromText(n);return tf({element:t})},tf=function(n){var t=$o("external.component",Ao([fr("element"),wr("uid")]),n),e=zr(Mc()),o=function(n){e.set(n)},r=function(){e.set(Mc(function(){return i}))};t.uid.each(function(n){Ec(t.element,n)});var i={getSystem:e.get,config:St.none,hasConfigured:ft(!1),connect:o,disconnect:r,getApis:function(){return{}},element:ft(t.element),spec:ft(n),readState:ft("No state"),syncComponents:at,components:ft([]),events:ft({})};return Pc(i)},ef=Dc,of=function(n){return zc(n).fold(function(){var t=n.hasOwnProperty("uid")?n:vt({uid:ef("")},n);return Zs(t).getOrDie()},function(n){return n})},rf=Pc,uf=r("height",function(n){var t=n.dom();return Es(n)?t.getBoundingClientRect().height:t.offsetHeight}),af=function(n){return uf.get(n)},cf=function(n){return uf.getOuter(n)},sf=function(n,t){var e=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],o=uf.max(n,t,e);Fs(n,"max-height",o+"px")},ff=function(n,t){var e=function(e,o){return ff(n+e,t+o)};return{left:ft(n),top:ft(t),translate:e}},lf=ff,df=function(n){var t=n.getBoundingClientRect();return lf(t.left,t.top)},mf=function(n,t){return void 0!==n?n:void 0!==t?t:0},gf=function(n){var t=n.dom().ownerDocument,e=t.body,o=t.defaultView,r=t.documentElement;if(e===n.dom())return lf(e.offsetLeft,e.offsetTop);var i=mf(o.pageYOffset,r.scrollTop),u=mf(o.pageXOffset,r.scrollLeft),a=mf(r.clientTop,e.clientTop),c=mf(r.clientLeft,e.clientLeft);return pf(n).translate(u-c,i-a)},pf=function(n){var t=n.dom(),e=t.ownerDocument,o=e.body;return o===t?lf(o.offsetLeft,o.offsetTop):Es(n)?df(t):lf(0,0)},hf=r("width",function(n){return n.dom().offsetWidth}),vf=function(n,t){hf.set(n,t)},bf=function(n){return hf.get(n)},yf=function(n){return hf.getOuter(n)},xf=function(n,t){var e=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],o=hf.max(n,t,e);Fs(n,"max-width",o+"px")},wf=function(n,t,e,o,r,i,u){return{target:ft(n),x:ft(t),y:ft(e),stop:o,prevent:r,kill:i,raw:ft(u)}},Sf=function(n){var t=Xr.fromDom(n.target),e=function(){n.stopPropagation()},o=function(){n.preventDefault()},r=st(o,e);return wf(t,n.clientX,n.clientY,e,o,r,n)},Cf=function(n,t){return function(e){n(e)&&t(Sf(e))}},kf=function(n,e,o,r,i){var u=Cf(o,r);return n.dom().addEventListener(e,u,i),{unbind:t(Tf,n,e,u,i)}},Of=function(n,t,e,o){return kf(n,t,e,o,!1)},_f=function(n,t,e,o){return kf(n,t,e,o,!0)},Tf=function(n,t,e,o){n.dom().removeEventListener(t,e,o)},Ef=(Ui().browser.isSafari(),function(t){var e=void 0!==t?t.dom():n.document,o=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return lf(o,r)}),Bf=function(t,e,o){var r=void 0!==o?o.dom():n.document,i=r.defaultView;i.scrollTo(t,e)},Df=function(t){var e=void 0===t?n.window:t;return St.from(e.visualViewport)},Af=function(n,t,e,o){return{x:ft(n),y:ft(t),width:ft(e),height:ft(o),right:ft(n+e),bottom:ft(t+o)}},Mf=function(t){var e=void 0===t?n.window:t,o=e.document,r=Ef(Xr.fromDom(o));return Df(e).fold(function(){var n=e.document.documentElement,t=n.clientWidth,o=n.clientHeight;return Af(r.left(),r.top(),t,o)},function(n){return Af(Math.max(n.pageLeft,r.left()),Math.max(n.pageTop,r.top()),n.width,n.height)})},Ff=function(n,t){var e=n.view(t);return e.fold(ft([]),function(t){var e=n.owner(t),o=Ff(n,e);return[t].concat(o)})},If=function(n,t){var e=t.owner(n),o=Ff(t,e);return St.some(o)},Rf=function(t){var e=t.dom()===n.document?St.none():St.from(t.dom().defaultView.frameElement);return e.map(Xr.fromDom)},Vf=function(n){return Fa(n)},Hf=Object.freeze({__proto__:null,view:Rf,owner:Vf}),Nf=function(e){var o=Xr.fromDom(n.document),r=Ef(o),i=If(e,Hf);return i.fold(t(gf,e),function(n){var t=pf(e),o=Jt(n,function(n,t){var e=pf(t);return{left:n.left+e.left(),top:n.top+e.top()}},{left:0,top:0});return lf(o.left+t.left()+r.left(),o.top+t.top()+r.top())})},Pf=_a("point","width","height"),zf=_a("x","y","width","height"),Lf=function(n,t,e,o){return{x:ft(n),y:ft(t),width:ft(e),height:ft(o),right:ft(n+e),bottom:ft(t+o)}},jf=function(n){var t=gf(n),e=yf(n),o=cf(n);return Lf(t.left(),t.top(),e,o)},Uf=function(n){var t=Nf(n),e=yf(n),o=cf(n);return Lf(t.left(),t.top(),e,o)},Wf=function(){return Mf(n.window)},Gf=function(n,t,e){for(var o=n.dom(),r=Ft(e)?e:ft(!1);o.parentNode;){o=o.parentNode;var i=Xr.fromDom(o);if(t(i))return St.some(i);if(r(i))break}return St.none()},Xf=function(n,t,e){var o=function(n,t){return t(n)};return i(o,Gf,n,t,e)},Yf=function(n,t){var e=function(n){for(var o=0;o-1});return t.bind(function(n){var t=fc(n,"id"),e=Fa(n);return Jf(e,'[aria-owns="'+t+'"]')})},Zf=function(){var n=Sc("aria-owns"),t=function(t){cc(t,"aria-owns",n)},e=function(n){mc(n,"aria-owns")};return{id:ft(n),link:t,unlink:e}},nl=function(n,t){return Qf(t).exists(function(t){return tl(n,t)})},tl=function(n,t){return qf(t,function(t){return Zi(t,n.element())},ft(!1))||nl(n,t)},el="unknown";!function(n){n[n.STOP=0]="STOP",n[n.NORMAL=1]="NORMAL",n[n.LOGGING=2]="LOGGING"}(Me||(Me={}));var ol,rl=zr({}),il=function(t,e){var o=[],r=(new Date).getTime();return{logEventCut:function(n,t,e){o.push({outcome:"cut",target:t,purpose:e})},logEventStopped:function(n,t,e){o.push({outcome:"stopped",target:t,purpose:e})},logNoParent:function(n,t,e){o.push({outcome:"no-parent",target:t,purpose:e})},logEventNoHandlers:function(n,t){o.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(n,t,e){o.push({outcome:"response",purpose:e,target:t})},write:function(){var i=(new Date).getTime();Lt(["mousemove","mouseover","mouseout",Lu()],t)||n.console.log(t,{event:t,time:i-r,target:e.dom(),sequence:Gt(o,function(n){return Lt(["cut","stopped","response"],n.outcome)?"{"+n.purpose+"} "+n.outcome+" at ("+vc(n.target)+")":n.outcome})})}}},ul=function(n,t,e){var o=xe(rl.get(),n).orThunk(function(){var t=de(rl.get());return le(t,function(t){return n.indexOf(t)>-1?St.some(rl.get()[t]):St.none()})}).getOr(Me.NORMAL);switch(o){case Me.NORMAL:return e(ll());case Me.LOGGING:var r=il(n,t),i=e(r);return r.write(),i;case Me.STOP:return!0}},al=["alloy/data/Fields","alloy/debugging/Debugging"],cl=function(){var n=new Error;if(void 0!==n.stack){var t=n.stack.split("\n");return Qt(t,function(n){return n.indexOf("alloy")>0&&!jt(al,function(t){return n.indexOf(t)>-1})}).getOr(el)}return el},sl={logEventCut:at,logEventStopped:at,logNoParent:at,logEventNoHandlers:at,logEventResponse:at,write:at},fl=function(n,t,e){return ul(n,t,e)},ll=ft(sl),dl=ft([fr("menu"),fr("selectedMenu")]),ml=ft([fr("item"),fr("selectedItem")]),gl=(ft(Mo(ml().concat(dl()))),ft(Mo(ml()))),pl=br("initSize",[fr("numColumns"),fr("numRows")]),hl=function(){return lr("markers",gl())},vl=function(){return br("markers",[fr("backgroundMenu")].concat(dl()).concat(ml()))},bl=function(n){return br("markers",Gt(n,fr))},yl=function(n,t,e){cl();return Po(t,t,e,Xo(function(n){return _t.value(function(){for(var t=[],e=0;e=o?St.some(t):St.none():o>=t?St.some(t):St.none()}).map(function(n){return n+r}).getOr(o)},r=o("left",n.x()),i=o("top",n.y()),u=o("right",n.right()),a=o("bottom",n.bottom());return Lf(r,i,u-r,a-i)},Ul=function(n){return n.x()},Wl=function(n,t){return n.x()+n.width()/2-t.width()/2},Gl=function(n,t){return n.x()+n.width()-t.width()},Xl=function(n,t){return n.y()-t.height()},Yl=function(n){return n.y()+n.height()},ql=function(n,t){return n.y()+n.height()/2-t.height()/2},Kl=function(n){return n.x()+n.width()},Jl=function(n,t){return n.x()-t.width()},$l=function(n,t,e){return Tl(Ul(n),Yl(n),e.southeast(),Ml(),Ll(n,{left:1,top:3}),"layout-se")},Ql=function(n,t,e){return Tl(Gl(n,t),Yl(n),e.southwest(),Fl(),Ll(n,{right:0,top:3}),"layout-sw")},Zl=function(n,t,e){return Tl(Ul(n),Xl(n,t),e.northeast(),Il(),Ll(n,{left:1,bottom:2}),"layout-ne")},nd=function(n,t,e){return Tl(Gl(n,t),Xl(n,t),e.northwest(),Rl(),Ll(n,{right:0,bottom:2}),"layout-nw")},td=function(n,t,e){return Tl(Wl(n,t),Xl(n,t),e.north(),Hl(),Ll(n,{bottom:2}),"layout-n")},ed=function(n,t,e){return Tl(Wl(n,t),Yl(n),e.south(),Vl(),Ll(n,{top:3}),"layout-s")},od=function(n,t,e){return Tl(Kl(n),ql(n,t),e.east(),Nl(),Ll(n,{left:0}),"layout-e")},rd=function(n,t,e){return Tl(Jl(n,t),ql(n,t),e.west(),Pl(),Ll(n,{right:1}),"layout-w")},id=function(){return[$l,Ql,Zl,nd,ed,td,od,rd]},ud=function(){return[Ql,$l,nd,Zl,ed,td,od,rd]},ad=function(){return[Zl,nd,$l,Ql,td,ed]},cd=function(){return[nd,Zl,Ql,$l,td,ed]},sd=function(){return[$l,Ql,Zl,nd,ed,td]},fd=function(){return[Ql,$l,nd,Zl,ed,td]},ld=function(n,t,e){return Oa(function(o){e(o,n,t)})},dd=function(n,t,e){return ka(function(o){e(o,n,t)})},md=function(n,t,e,o,r,i){var u=Ao(n),a=Tr(t,[Er("config",n)]);return vd(u,a,t,e,o,r,i)},gd=function(n,t,e,o,r,i){var u=n,a=Tr(t,[Sr("config",n)]);return vd(u,a,t,e,o,r,i)},pd=function(n,t,e){var o=function(o){for(var r=[],i=1;io?e:e>r?o:r},$d=function(n,t,e){return Math.min(Math.max(n,t),e)},Qd=Ma(["x","y","width","height","maxHeight","maxWidth","direction","classes","label","candidateYforTest"],[]),Zd=ke.generate([{fit:["reposition"]},{nofit:["reposition","deltaW","deltaH"]}]),nm=function(n,t,e,o,r){var i=r.x(),u=r.y(),a=r.width(),c=r.height(),s=n>=i,f=t>=u,l=s&&f,d=i+a>=n+e,m=u+c>=t+o,g=d&&m,p=Math.abs(Math.min(e,s?i+a-n:i-(n+e))),h=Math.abs(Math.min(o,f?u+c-t:u-(t+o))),v=Math.max(r.x(),r.right()-e),b=Math.max(r.y(),r.bottom()-o),y=$d(n,r.x(),v),x=$d(t,r.y(),b);return{originInBounds:l,sizeInBounds:g,limitX:y,limitY:x,deltaW:p,deltaH:h}},tm=function(n,t,e,o){var r=n.x(),i=n.y(),u=n.bubble().offset(),a=u.left(),c=u.top(),s=jl(o,n.boundsRestriction(),u),f=s.y(),l=s.bottom(),d=s.x(),m=s.right(),g=r+a,p=i+c,h=nm(g,p,t,e,s),v=h.originInBounds,b=h.sizeInBounds,y=h.limitX,x=h.limitY,w=h.deltaW,S=h.deltaH,C=ft(x+S-f),k=ft(l-x),O=Dl(n.direction(),k,k,C),_=ft(y+w-d),T=ft(m-y),E=Al(n.direction(),T,T,_),B=Qd({x:y,y:x,width:w,height:S,maxHeight:O,maxWidth:E,direction:n.direction(),classes:{on:n.bubble().classesOn(),off:n.bubble().classesOff()},label:n.label(),candidateYforTest:p});return v&&b?Zd.fit(B):Zd.nofit(B,w,S)},em=function(n,e,o,r,i){var u=o.width(),a=o.height(),c=function(n,t,c,s){var f=n(e,o,r),l=tm(f,u,a,i);return l.fold(Zd.fit,function(n,e,o){var r=o>s||e>c;return r?Zd.nofit(n,e,o):Zd.nofit(t,c,s)})},s=$t(n,function(n,e){var o=t(c,e);return n.fold(Zd.fit,o)},Zd.nofit(Qd({x:e.x(),y:e.y(),width:o.width(),height:o.height(),maxHeight:o.height(),maxWidth:o.width(),direction:Ml(),classes:{on:[],off:[]},label:"none",candidateYforTest:e.y()}),-1,-1));return s.fold(lt,lt)},om=function(n){return{width:ft(yf(n)),height:ft(cf(n))}},rm=function(n,t,e,o){Ls(t,"max-height"),Ls(t,"max-width");var r=om(t);return em(o.preference(),n,r,e,o.bounds())},im=function(n,t){var e=t.classes();_s(n,e.off),Os(n,e.on)},um=function(n,t,e){var o=e.maxHeightFunction();o(n,t.maxHeight())},am=function(n,t,e){var o=e.maxWidthFunction();o(n,t.maxWidth())},cm=function(n,t,e){Nd(n,Ld(e.origin(),t))},sm=function(n,t){sf(n,Math.floor(t))},fm=ft(function(n,t){sm(n,t),Is(n,{"overflow-x":"hidden","overflow-y":"auto"})}),lm=ft(function(n,t){sm(n,t)}),dm=Ma(["bounds","origin","preference","maxHeightFunction","maxWidthFunction"],[]),mm=function(n,t,e){return void 0===n[t]?e:n[t]},gm=function(n,t,e,o,r,i){var u=mm(i,"maxHeightFunction",fm()),a=mm(i,"maxWidthFunction",at),c=n.anchorBox(),s=n.origin(),f=dm({bounds:Ud(s,r),origin:s,preference:o,maxHeightFunction:u,maxWidthFunction:a});pm(c,t,e,f)},pm=function(n,t,e,o){var r=rm(n,t,e,o);cm(t,r,o),im(t,r),um(t,r,o),am(t,r,o)},hm=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right"],vm=function(n,t,e){var o=function(n){return xe(e,n).getOr([])},r=function(n,t,e){var r=re(hm,e);return{offset:function(){return lf(n,t)},classesOn:function(){return te(e,o)},classesOff:function(){return te(r,o)}}};return{southeast:function(){return r(-n,t,["top","alignLeft"])},southwest:function(){return r(n,t,["top","alignRight"])},south:function(){return r(-n/2,t,["top","alignCentre"])},northeast:function(){return r(-n,-t,["bottom","alignLeft"])},northwest:function(){return r(n,-t,["bottom","alignRight"])},north:function(){return r(-n/2,-t,["bottom","alignCentre"])},east:function(){return r(n,-t/2,["valignCentre","left"])},west:function(){return r(-n,-t/2,["valignCentre","right"])},innerNorthwest:function(){return r(-n,t,["top","alignRight"])},innerNortheast:function(){return r(n,t,["top","alignLeft"])},innerNorth:function(){return r(-n/2,t,["top","alignCentre"])},innerSouthwest:function(){return r(-n,-t,["bottom","alignRight"])},innerSoutheast:function(){return r(n,-t,["bottom","alignLeft"])},innerSouth:function(){return r(-n/2,-t,["bottom","alignCentre"])},innerWest:function(){return r(n,-t/2,["valignCentre","right"])},innerEast:function(){return r(-n,-t/2,["valignCentre","left"])}}},bm=function(){return vm(0,0,{})},ym=function(n){return n},xm=function(n,t){return function(e){return"rtl"===wm(e)?t:n}},wm=function(n){return"rtl"===Vs(n,"direction")?"rtl":"ltr"};!function(n){n.TopToBottom="toptobottom",n.BottomToTop="bottomtotop"}(ol||(ol={}));var Sm,Cm="data-alloy-vertical-dir",km=function(n){return qf(n,function(n){return ic(n)&&fc(n,Cm)===ol.BottomToTop})},Om=function(){return Tr("layouts",[fr("onLtr"),fr("onRtl"),wr("onBottomLtr"),wr("onBottomRtl")])},_m=function(n,t,e,o,r,i,u){var a=u.map(km).getOr(!1),c=t.layouts.map(function(t){return t.onLtr(n)}),s=t.layouts.map(function(t){return t.onRtl(n)}),f=a?t.layouts.bind(function(t){return t.onBottomLtr.map(function(t){return t(n)})}).or(c).getOr(r):c.getOr(e),l=a?t.layouts.bind(function(t){return t.onBottomRtl.map(function(t){return t(n)})}).or(s).getOr(i):s.getOr(o),d=xm(f,l);return d(n)},Tm=function(n,t,e){var o=t.hotspot,r=jd(e,o.element()),i=_m(n.element(),t,sd(),fd(),ad(),cd(),St.some(t.hotspot.element()));return St.some(ym({anchorBox:r,bubble:t.bubble.getOr(bm()),overrides:t.overrides,layouts:i,placer:St.none()}))},Em=[fr("hotspot"),wr("bubble"),Br("overrides",{}),Om(),kl("placement",Tm)],Bm=function(n,t,e){var o=Wd(e,t.x,t.y),r=Lf(o.left(),o.top(),t.width,t.height),i=_m(n.element(),t,id(),ud(),id(),ud(),St.none());return St.some(ym({anchorBox:r,bubble:t.bubble,overrides:t.overrides,layouts:i,placer:St.none()}))},Dm=[fr("x"),fr("y"),Br("height",0),Br("width",0),Br("bubble",bm()),Br("overrides",{}),Om(),kl("placement",Bm)],Am="",Mm=" ",Fm=_a("start","soffset","finish","foffset"),Im={create:Fm},Rm=ke.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Vm=function(n,t,e,o){return n.fold(t,e,o)},Hm=function(n){return n.fold(lt,lt,lt)},Nm=Rm.before,Pm=Rm.on,zm=Rm.after,Lm={before:Nm,on:Pm,after:zm,cata:Vm,getStart:Hm},jm=ke.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Um=function(n){return jm.exact(n.start(),n.soffset(),n.finish(),n.foffset())},Wm=function(n){return n.match({domRange:function(n){return Xr.fromDom(n.startContainer)},relative:function(n){return Lm.getStart(n)},exact:function(n){return n}})},Gm=jm.domRange,Xm=jm.relative,Ym=jm.exact,qm=function(n){var t=Wm(n);return Ra(t)},Km=Im.create,Jm={domRange:Gm,relative:Xm,exact:Ym,exactFromRange:Um,getWin:qm,range:Km},$m=function(n,t){t.fold(function(t){n.setStartBefore(t.dom())},function(t,e){n.setStart(t.dom(),e)},function(t){n.setStartAfter(t.dom())})},Qm=function(n,t){t.fold(function(t){n.setEndBefore(t.dom())},function(t,e){n.setEnd(t.dom(),e)},function(t){n.setEndAfter(t.dom())})},Zm=function(n,t,e){var o=n.document.createRange();return $m(o,t),Qm(o,e),o},ng=function(n,t,e,o,r){var i=n.document.createRange();return i.setStart(t.dom(),e),i.setEnd(o.dom(),r),i},tg=function(n){return{left:ft(n.left),top:ft(n.top),right:ft(n.right),bottom:ft(n.bottom),width:ft(n.width),height:ft(n.height)}},eg=function(n){var t=n.getClientRects(),e=t.length>0?t[0]:n.getBoundingClientRect();return e.width>0||e.height>0?St.some(e).map(tg):St.none()},og=ke.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),rg=function(n,t,e){return t(Xr.fromDom(e.startContainer),e.startOffset,Xr.fromDom(e.endContainer),e.endOffset)},ig=function(n,t){return t.match({domRange:function(n){return{ltr:ft(n),rtl:St.none}},relative:function(t,e){return{ltr:Ae(function(){return Zm(n,t,e)}),rtl:Ae(function(){return St.some(Zm(n,e,t))})}},exact:function(t,e,o,r){return{ltr:Ae(function(){return ng(n,t,e,o,r)}),rtl:Ae(function(){return St.some(ng(n,o,r,t,e))})}}})},ug=function(n,t){var e=t.ltr();if(e.collapsed){var o=t.rtl().filter(function(n){return n.collapsed===!1});return o.map(function(n){return og.rtl(Xr.fromDom(n.endContainer),n.endOffset,Xr.fromDom(n.startContainer),n.startOffset)}).getOrThunk(function(){return rg(n,og.ltr,e)})}return rg(n,og.ltr,e)},ag=function(n,t){var e=ig(n,t);return ug(n,e)},cg=function(n,t){var e=ag(n,t);return e.match({ltr:function(t,e,o,r){var i=n.document.createRange();return i.setStart(t.dom(),e),i.setEnd(o.dom(),r),i},rtl:function(t,e,o,r){var i=n.document.createRange();return i.setStart(o.dom(),r),i.setEnd(t.dom(),e),i}})},sg=(og.ltr,og.rtl,u(uc,"text")),fg=function(n){return sg.get(n)},lg=function(n){return sg.getOption(n)},dg=function(n){return"img"===ec(n)?1:lg(n).fold(function(){return Pa(n).length},function(n){return n.length})},mg=function(n){return lg(n).filter(function(n){return 0!==n.trim().length||n.indexOf(Mm)>-1}).isSome()},gg=["img","br"],pg=function(n){var t=mg(n);return t||Lt(gg,ec(n))},hg=function(n){return vg(n,pg)},vg=function(n,t){var e=function(n){for(var o=Pa(n),r=o.length-1;r>=0;r--){var i=o[r];if(t(i))return St.some(i);var u=e(i);if(u.isSome())return u}return St.none()};return e(n)},bg=function(n,t){return $i(t,n)},yg=function(n,t,e,o){var r=Fa(n),i=r.dom().createRange();return i.setStart(n.dom(),t),i.setEnd(e.dom(),o),i},xg=function(n,t,e,o){var r=yg(n,t,e,o),i=Zi(n,e)&&t===o;return r.collapsed&&!i},wg=function(n){if(n.rangeCount>0){var t=n.getRangeAt(0),e=n.getRangeAt(n.rangeCount-1);return St.some(Im.create(Xr.fromDom(t.startContainer),t.startOffset,Xr.fromDom(e.endContainer),e.endOffset))}return St.none()},Sg=function(n){var t=Xr.fromDom(n.anchorNode),e=Xr.fromDom(n.focusNode);return xg(t,n.anchorOffset,e,n.focusOffset)?St.some(Im.create(t,n.anchorOffset,e,n.focusOffset)):wg(n)},Cg=function(n){return St.from(n.getSelection()).filter(function(n){return n.rangeCount>0}).bind(Sg)},kg=function(n,t){var e=cg(n,t);return eg(e)},Og=_a("element","offset"),_g=function(n,t){var e=Pa(n);if(0===e.length)return Og(n,t);if(tn&&(r=0,u=e+n),0>t&&(i=0,a=o+t);var c=Fg(lf(r,i));return St.some(Pf(c,u,a))},Ng=function(n,t,e,o,r){return n.map(function(n){var i=[t,n.point()],u=Gd(o,function(){return Mg(i)},function(){return Mg(i)},function(){return Ag(i)}),a=zf(u.left(),u.top(),n.width(),n.height()),c=e.showAbove?ad():sd(),s=(e.showAbove,fd()),f=_m(r,e,c,s,c,s,St.none());return ym({anchorBox:a,bubble:e.bubble.getOr(bm()),overrides:e.overrides,layouts:f,placer:St.none()})})},Pg={capRect:Hg,calcNewAnchor:Ng},zg=_a("element","offset"),Lg=function(n,t){return uc(n)?zg(n,t):_g(n,t)},jg=function(n,t){var e=t.getSelection.getOrThunk(function(){return function(){return Cg(n)}});return e().map(function(n){var t=Lg(n.start(),n.soffset()),e=Lg(n.finish(),n.foffset());return Jm.range(t.element(),t.offset(),e.element(),e.offset())})},Ug=function(n,t,e){var o=Ra(t.root).dom(),r=Vg(n,e,t),i=jg(o,t).bind(function(n){var t=kg(o,Jm.exactFromRange(n)).orThunk(function(){var t=Xr.fromText(Am);return Ua(n.start(),t),kg(o,Jm.exact(t,0,t,1)).map(function(n){return $a(t),n})});return t.bind(function(n){return Pg.capRect(n.left(),n.top(),n.width(),n.height())})}),u=jg(o,t).bind(function(n){return ic(n.start())?St.some(n.start()):Va(n.start())}),a=u.getOr(n.element());return Pg.calcNewAnchor(i,r,t,e,a)},Wg=[wr("getSelection"),fr("root"),wr("bubble"),Om(),Br("overrides",{}),Br("showAbove",!1),kl("placement",Ug)],Gg=function(n,t,e){var o=Vg(n,e,t);return t.node.bind(function(r){var i=r.dom().getBoundingClientRect(),u=Pg.capRect(i.left,i.top,i.width,i.height),a=t.node.getOr(n.element());return Pg.calcNewAnchor(u,o,t,e,a)})},Xg=[fr("node"),fr("root"),wr("bubble"),Om(),Br("overrides",{}),Br("showAbove",!1),kl("placement",Gg)],Yg=function(n){return n.x()+n.width()},qg=function(n,t){return n.x()-t.width()},Kg=function(n,t){return n.y()-t.height()+n.height()},Jg=function(n){return n.y()},$g=function(n,t,e){return Tl(Yg(n),Jg(n),e.southeast(),Ml(),Ll(n,{left:0,top:2}),"link-layout-se")},Qg=function(n,t,e){return Tl(qg(n,t),Jg(n),e.southwest(),Fl(),Ll(n,{right:1,top:2}),"link-layout-sw")},Zg=function(n,t,e){return Tl(Yg(n),Kg(n,t),e.northeast(),Il(),Ll(n,{left:0,bottom:3}),"link-layout-ne")},np=function(n,t,e){return Tl(qg(n,t),Kg(n,t),e.northwest(),Rl(),Ll(n,{right:1,bottom:3}),"link-layout-nw")},tp=function(){return[$g,Qg,Zg,np]},ep=function(){return[Qg,$g,np,Zg]},op=function(n,t,e){var o=jd(e,t.item.element()),r=_m(n.element(),t,tp(),ep(),tp(),ep(),St.none());return St.some(ym({anchorBox:o,bubble:bm(),overrides:t.overrides,layouts:r,placer:St.none()}))},rp=[fr("item"),Om(),Br("overrides",{}),kl("placement",op)],ip=nr("anchor",{selection:Wg,node:Xg,hotspot:Em,submenu:rp,makeshift:Dm}),up=function(){var t=n.document.documentElement;return Yd(0,0,t.clientWidth,t.clientHeight)},ap=function(n){var t=gf(n.element()),e=n.element().dom().getBoundingClientRect();return Xd(t.left(),t.top(),e.width,e.height)},cp=function(n,t,e,o,r){var i=Kd(e.anchorBox,t);gm(i,r.element(),e.bubble,e.layouts,o,e.overrides)},sp=function(n,t,e,o,r){fp(n,t,e,o,r,St.none())},fp=function(n,t,e,o,r,i){var u=i.map(jf);return lp(n,t,e,o,r,u)},lp=function(n,t,e,o,r,i){var u=$o("positioning anchor.info",ip,o);Vd(function(){Fs(r.element(),"position","fixed");var e=Ns(r.element(),"visibility");Fs(r.element(),"visibility","hidden");var o=t.useFixed()?up():ap(n),a=u.placement,c=i.map(ft).or(t.getBounds);a(n,u,o).each(function(t){var e=t.placer.getOr(cp);e(n,o,t,c,r)}),e.fold(function(){Ls(r.element(),"visibility")},function(n){Fs(r.element(),"visibility",n)}),Ns(r.element(),"left").isNone()&&Ns(r.element(),"top").isNone()&&Ns(r.element(),"right").isNone()&&Ns(r.element(),"bottom").isNone()&&Ns(r.element(),"position").is("fixed")&&Ls(r.element(),"position")},r.element())},dp=function(n,t){return t.useFixed()?"fixed":"absolute"},mp=Object.freeze({__proto__:null,position:sp,positionWithin:fp,positionWithinBounds:lp,getMode:dp}),gp=[Br("useFixed",gt),wr("getBounds")],pp=xd({fields:gp,name:"positioning",active:Dd,apis:mp}),hp=function(n){ea(n,Yu());var t=n.components();Xt(t,hp)},vp=function(n){var t=n.components();Xt(t,vp),ea(n,Xu())},bp=function(n,t){Xa(n.element(),t.element())},yp=function(n){Xt(n.components(),function(n){return $a(n.element())}),Ja(n.element()),n.syncComponents()},xp=function(n,t){var e=n.components();yp(n);var o=re(e,t);Xt(o,function(t){hp(t),n.getSystem().removeFromWorld(t)}),Xt(t,function(t){t.getSystem().isConnected()?bp(n,t):(n.getSystem().addToWorld(t),bp(n,t),Es(n.element())&&vp(t)),n.syncComponents()})},wp=function(n,t){Sp(n,t,Xa)},Sp=function(n,t,e){n.getSystem().addToWorld(t),e(n.element(),t.element()),Es(n.element())&&vp(t),n.syncComponents()},Cp=function(n){hp(n),$a(n.element()),n.getSystem().removeFromWorld(n)},kp=function(n){var t=Va(n.element()).bind(function(t){return n.getSystem().getByDom(t).toOption()});Cp(n),t.each(function(n){n.syncComponents()})},Op=function(n){var t=n.components();Xt(t,Cp),Ja(n.element()),n.syncComponents()},_p=function(n,t){Ep(n,t,Xa)},Tp=function(n,t){Ep(n,t,Wa)},Ep=function(n,t,e){e(n,t.element());var o=Pa(t.element());Xt(o,function(n){t.getByDom(n).each(vp)})},Bp=function(n){var t=Pa(n.element());Xt(t,function(t){n.getByDom(t).each(hp)}),$a(n.element())},Dp=function(n,t,e,o){e.get().each(function(){Op(n)});var r=t.getAttachPoint(n);wp(r,n);var i=n.getSystem().build(o);return wp(n,i),e.set(i),i},Ap=function(n,t,e,o){var r=Dp(n,t,e,o);return t.onOpen(n,r),r},Mp=function(n,t,e,o){return e.get().map(function(){return Dp(n,t,e,o)})},Fp=function(n,t,e,o,r){zp(n,t),Ap(n,t,e,o),r(),jp(n,t)},Ip=function(n,t,e){e.get().each(function(o){Op(n),kp(n),t.onClose(n,o),e.clear()})},Rp=function(n,t,e){return e.isOpen()},Vp=function(n,t,e,o){return Rp(n,t,e)&&e.get().exists(function(e){return t.isPartOf(n,e,o)})},Hp=function(n,t,e){return e.get()},Np=function(n,t,e,o){Ns(n.element(),t).fold(function(){mc(n.element(),e)},function(t){cc(n.element(),e,t)}),Fs(n.element(),t,o)},Pp=function(n,t,e){if(dc(n.element(),e)){var o=fc(n.element(),e);Fs(n.element(),t,o)}else Ls(n.element(),t)},zp=function(n,t){var e=t.getAttachPoint(n);Fs(n.element(),"position",pp.getMode(e)),Np(n,"visibility",t.cloakVisibilityAttr,"hidden")},Lp=function(n){return jt(["top","left","right","bottom"],function(t){return Ns(n,t).isSome()})},jp=function(n,t){Lp(n.element())||Ls(n.element(),"position"),Pp(n,"visibility",t.cloakVisibilityAttr)},Up=Object.freeze({__proto__:null,cloak:zp,decloak:jp,open:Ap,openWhileCloaked:Fp,close:Ip,isOpen:Rp,isPartOf:Vp,getState:Hp,setContent:Mp}),Wp=function(n,t){return ca([da(Pu(),function(e){Ip(e,n,t)})])},Gp=Object.freeze({__proto__:null,events:Wp}),Xp=[xl("onOpen"),xl("onClose"),fr("isPartOf"),fr("getAttachPoint"),Br("cloakVisibilityAttr","data-precloak-visibility")],Yp=function(){var n=zr(St.none()),t=ft("not-implemented"),e=function(){return n.get().isSome()},o=function(t){n.set(St.some(t))},r=function(){return n.get()},i=function(){n.set(St.none())};return Uc({readState:t,isOpen:e,clear:i,set:o,get:r})},qp=Object.freeze({__proto__:null,init:Yp}),Kp=xd({fields:Xp,name:"sandboxing",active:Gp,apis:Up,state:qp}),Jp=ft("dismiss.popups"),$p=ft("reposition.popups"),Qp=ft("mouse.released"),Zp=Ao([Br("isExtraPart",ft(!1)),Tr("fireEventInstead",[Br("event",qu())])]),nh=function(n){var t,e=$o("Dismissal",Zp,n);return t={},t[Jp()]={schema:Ao([fr("target")]),onReceive:function(n,t){if(Kp.isOpen(n)){var o=Kp.isPartOf(n,t.target)||e.isExtraPart(n,t.target);o||e.fireEventInstead.fold(function(){return Kp.close(n)},function(t){return ea(n,t.event)})}}},t},th=Ao([Tr("fireEventInstead",[Br("event",Ku())]),hr("doReposition")]),eh=function(n){var t,e=$o("Reposition",th,n);return t={},t[$p()]={onReceive:function(n){Kp.isOpen(n)&&e.fireEventInstead.fold(function(){return e.doReposition(n)},function(t){return ea(n,t.event)})}},t},oh=function(n,t,e){t.store.manager.onLoad(n,t,e)},rh=function(n,t,e){t.store.manager.onUnload(n,t,e)},ih=function(n,t,e,o){t.store.manager.setValue(n,t,e,o)},uh=function(n,t,e){return t.store.manager.getValue(n,t,e)},ah=function(n,t,e){return e},ch=Object.freeze({__proto__:null,onLoad:oh,onUnload:rh,setValue:ih,getValue:uh,getState:ah}),sh=function(n,t){var e=n.resetOnDom?[Sa(function(e){oh(e,n,t)}),Ca(function(e){rh(e,n,t)})]:[dd(n,t,oh)];return ca(e)},fh=Object.freeze({__proto__:null,events:sh}),lh=function(){var n=zr(null),t=function(){return{mode:"memory",value:n.get()}},e=function(){return null===n.get()},o=function(){n.set(null)};return Uc({set:n.set,get:n.get,isNotSet:e,clear:o,readState:t})},dh=function(){var n=function(){};return Uc({readState:n})},mh=function(){var n=zr({}),t=zr({}),e=function(){return{mode:"dataset",dataByValue:n.get(),dataByText:t.get()}},o=function(){n.set({}),t.set({})},r=function(e){return xe(n.get(),e).orThunk(function(){return xe(t.get(),e)})},i=function(e){var o=n.get(),r=t.get(),i={},u={};Xt(e,function(n){i[n.value]=n,xe(n,"meta").each(function(t){xe(t,"text").each(function(t){u[t]=n})})}),n.set(vt(vt({},o),i)),t.set(vt(vt({},r),u))};return Uc({readState:e,lookup:r,update:i,clear:o})},gh=function(n){return n.store.manager.state(n)},ph=Object.freeze({__proto__:null,memory:lh,dataset:mh,manual:dh,init:gh}),hh=function(n,t,e,o){var r=t.store;e.update([o]),r.setValue(n,o),t.onSetValue(n,o)},vh=function(n,t,e){var o=t.store,r=o.getDataKey(n);return e.lookup(r).fold(function(){return o.getFallbackEntry(r)},function(n){return n})},bh=function(n,t,e){var o=t.store;o.initialValue.each(function(o){hh(n,t,e,o)})},yh=function(n,t,e){e.clear()},xh=[wr("initialValue"),fr("getFallbackEntry"),fr("getDataKey"),fr("setValue"),kl("manager",{setValue:hh,getValue:vh,onLoad:bh,onUnload:yh,state:mh})],wh=function(n,t){return t.store.getValue(n)},Sh=function(n,t,e,o){t.store.setValue(n,o),t.onSetValue(n,o)},Ch=function(n,t){t.store.initialValue.each(function(e){t.store.setValue(n,e)})},kh=[fr("getValue"),Br("setValue",at),wr("initialValue"),kl("manager",{setValue:Sh,getValue:wh,onLoad:Ch,onUnload:at,state:jc.init})],Oh=function(n,t,e,o){e.set(o),t.onSetValue(n,o)},_h=function(n,t,e){return e.get()},Th=function(n,t,e){t.store.initialValue.each(function(n){e.isNotSet()&&e.set(n)})},Eh=function(n,t,e){e.clear()},Bh=[wr("initialValue"),kl("manager",{setValue:Oh,getValue:_h,onLoad:Th,onUnload:Eh,state:lh})],Dh=[Dr("store",{mode:"memory"},nr("mode",{memory:Bh,manual:kh,dataset:xh})),xl("onSetValue"),Br("resetOnDom",!1)],Ah=xd({fields:Dh,name:"representing",active:fh,apis:ch,extra:{setValueFrom:function(n,t){var e=Ah.getValue(t);Ah.setValue(n,e)}},state:ph}),Mh=function(n,t){return Nr(n,{},Gt(t,function(t){return vr(t.name(),"Cannot configure "+t.name()+" for "+n)}).concat([Pr("dump",lt)]))},Fh=function(n){return n.dump},Ih=function(n,t){return vt(vt({},n.dump),bd(t))},Rh={field:Mh,augment:Ih,get:Fh},Vh="placeholder",Hh=ke.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Nh=function(n){return we(n,"uiType")},Ph=function(n,t,e,o){return n.exists(function(n){return n!==e.owner})?Hh.single(!0,ft(e)):xe(o,e.name).fold(function(){throw new Error("Unknown placeholder component: "+e.name+"\nKnown: ["+de(o)+"]\nNamespace: "+n.getOr("none")+"\nSpec: "+JSON.stringify(e,null,2))},function(n){return n.replace()})},zh=function(n,t,e,o){return Nh(e)&&e.uiType===Vh?Ph(n,t,e,o):Hh.single(!1,ft(e))},Lh=function(n,t,e,o){var r=zh(n,t,e,o);return r.fold(function(r,i){var u=Nh(e)?i(t,e.config,e.validated):i(t),a=xe(u,"components").getOr([]),c=te(a,function(e){return Lh(n,t,e,o)});return[vt(vt({},u),{components:c})]},function(n,o){if(Nh(e)){var r=o(t,e.config,e.validated),i=e.validated.preprocess.getOr(lt);return i(r)}return o(t)})},jh=function(n,t,e,o){return te(e,function(e){return Lh(n,t,e,o)})},Uh=function(n,t){var e=!1,o=function(){return e},r=function(){if(e)throw new Error("Trying to use the same placeholder more than once: "+n);return e=!0,t},i=function(){return t.fold(function(n){return n},function(n){return n})};return{name:ft(n),required:i,used:o,replace:r}},Wh=function(n,t,e,o){var r=pe(o,function(n,t){return Uh(t,n)}),i=jh(n,t,e,r);return ge(r,function(e){if(e.used()===!1&&e.required())throw new Error("Placeholder: "+e.name()+" was not found in components list\nNamespace: "+n.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))}),i},Gh=Hh.single,Xh=Hh.multiple,Yh=ft(Vh),qh=ke.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),Kh=Br("factory",{sketch:lt}),Jh=Br("schema",[]),$h=fr("name"),Qh=Po("pname","pname",Ke(function(n){return""}),tr()),Zh=Pr("schema",function(){return[wr("preprocess")]}),nv=Br("defaults",ft({})),tv=Br("overrides",ft({})),ev=Mo([Kh,Jh,$h,Qh,nv,tv]),ov=Mo([Kh,Jh,$h,nv,tv]),rv=Mo([Kh,Jh,$h,Qh,nv,tv]),iv=Mo([Kh,Zh,$h,fr("unit"),Qh,nv,tv]),uv=function(n){return n.fold(St.some,St.none,St.some,St.some)},av=function(n){var t=function(n){return n.name};return n.fold(t,t,t,t)},cv=function(n){return n.fold(lt,lt,lt,lt)},sv=function(n,t){return function(e){var o=$o("Converting part type",t,e);return n(o)}},fv=sv(qh.required,ev),lv=sv(qh.external,ov),dv=sv(qh.optional,rv),mv=sv(qh.group,iv),gv=ft("entirety"),pv=Object.freeze({__proto__:null,required:fv,external:lv,optional:dv,group:mv,asNamedPart:uv,name:av,asCommon:cv,original:gv}),hv=function(n,t,e,o){return Be(t.defaults(n,e,o),e,{uid:n.partUids[t.name]},t.overrides(n,e,o))},vv=function(n,t,e){var o={},r={};return Xt(e,function(n){n.fold(function(n){o[n.pname]=Gh(!0,function(t,e,o){return n.factory.sketch(hv(t,n,e,o))})},function(n){var e=t.parts[n.name];r[n.name]=ft(n.factory.sketch(hv(t,n,e[gv()]),e))},function(n){o[n.pname]=Gh(!1,function(t,e,o){return n.factory.sketch(hv(t,n,e,o))})},function(n){o[n.pname]=Xh(!0,function(t,e,o){var r=t[n.name];return Gt(r,function(e){return n.factory.sketch(Be(n.defaults(t,e,o),e,n.overrides(t,e)))})})})}),{internals:ft(o),externals:ft(r)}},bv=function(n,t){var e={};return Xt(t,function(t){uv(t).each(function(t){var o=yv(n,t.pname);e[t.name]=function(e){var r=$o("Part: "+t.name+" in "+n,Mo(t.schema),e);return vt(vt({},o),{config:e,validated:r})}})}),e},yv=function(n,t){return{uiType:Yh(),owner:n,name:t} -},xv=function(n,t,e){return{uiType:Yh(),owner:n,name:t,config:e,validated:{}}},wv=function(n){return te(n,function(n){return n.fold(St.none,St.some,St.none,St.none).map(function(n){return br(n.name,n.schema.concat([Ol(gv())]))}).toArray()})},Sv=function(n){return Gt(n,av)},Cv=function(n,t,e){return vv(n,t,e)},kv=function(n,t,e){return Wh(St.some(n),t,t.components,e)},Ov=function(n,t,e){var o=t.partUids[e];return n.getSystem().getByUid(o).toOption()},_v=function(n,t,e){return Ov(n,t,e).getOrDie("Could not find part: "+e)},Tv=function(n,t,e){var o={},r=t.partUids,i=n.getSystem();return Xt(e,function(n){o[n]=ft(i.getByUid(r[n]))}),o},Ev=function(n,t){var e=n.getSystem();return pe(t.partUids,function(n){return ft(e.getByUid(n))})},Bv=function(n){return de(n.partUids)},Dv=function(n,t,e){var o={},r=t.partUids,i=n.getSystem();return Xt(e,function(n){o[n]=ft(i.getByUid(r[n]).getOrDie())}),o},Av=function(n,t){var e=Sv(t);return oo(Gt(e,function(t){return{key:t,value:n+"-"+t}}))},Mv=function(n){return Po("partUids","partUids",Je(function(t){return Av(t.uid,n)}),tr())},Fv=Object.freeze({__proto__:null,generate:bv,generateOne:xv,schemas:wv,names:Sv,substitutes:Cv,components:kv,defaultUids:Av,defaultUidsSchema:Mv,getAllParts:Ev,getAllPartNames:Bv,getPart:Ov,getPartOrDie:_v,getParts:Tv,getPartsOrDie:Dv}),Iv=function(n,t){var e=n.length>0?[br("parts",n)]:[];return e.concat([fr("uid"),Br("dom",{}),Br("components",[]),Ol("originalSpec"),Br("debug.sketcher",{})]).concat(t)},Rv=function(n,t,e,o,r){var i=Iv(o,r);return $o(n+" [SpecSchema]",Ao(i.concat(t)),e)},Vv=function(n,t,e,o){var r=Pv(o),i=Rv(n,t,r,[],[]);return e(i,r)},Hv=function(n,t,e,o,r){var i=Pv(r),u=wv(e),a=Mv(e),c=Rv(n,t,i,u,[a]),s=Cv(n,c,e),f=kv(n,c,s.internals());return o(c,f,i,s.externals())},Nv=function(n){return we(n,"uid")},Pv=function(n){return Nv(n)?n:vt(vt({},n),{uid:Dc("uid")})},zv=Ao([fr("name"),fr("factory"),fr("configFields"),Br("apis",{}),Br("extraApis",{})]),Lv=Ao([fr("name"),fr("factory"),fr("configFields"),fr("partFields"),Br("apis",{}),Br("extraApis",{})]),jv=function(n){var t=$o("Sketcher for "+n.name,zv,n),e=function(n){return Vv(t.name,t.configFields,t.factory,n)},o=pe(t.apis,Lc),r=pe(t.extraApis,function(n,t){return Vc(n,t)});return vt(vt({name:ft(t.name),configFields:ft(t.configFields),sketch:e},o),r)},Uv=function(n){var t=$o("Sketcher for "+n.name,Lv,n),e=function(n){return Hv(t.name,t.configFields,t.partFields,t.factory,n)},o=bv(t.name,t.partFields),r=pe(t.apis,Lc),i=pe(t.extraApis,function(n,t){return Vc(n,t)});return vt(vt({name:ft(t.name),partFields:ft(t.partFields),configFields:ft(t.configFields),sketch:e,parts:ft(o)},r),i)},Wv=function(n){for(var t=[],e=function(n){t.push(n)},o=0;o0?St.some(e[e.length-1]):St.none();return o.bind(function(t){return n.getSystem().getByDom(t).toOption()})},db=function(n,t,e,o){var r=bg(n.element(),"."+t.itemClass),i=Zt(r,function(n){return ks(n,t.highlightClass)});return i.bind(function(t){var e=Jd(t,o,0,r.length-1);return n.getSystem().getByDom(r[e]).toOption()})},mb=function(n,t,e){return db(n,t,e,-1)},gb=function(n,t,e){return db(n,t,e,1)},pb=function(n,t){var e=bg(n.element(),"."+t.itemClass);return Wv(Gt(e,function(t){return n.getSystem().getByDom(t).toOption()}))},hb=Object.freeze({__proto__:null,dehighlightAll:nb,dehighlight:tb,highlight:eb,highlightFirst:ob,highlightLast:rb,highlightAt:ib,highlightBy:ub,isHighlighted:ab,getHighlighted:cb,getFirst:fb,getLast:lb,getPrevious:mb,getNext:gb,getCandidates:pb}),vb=[fr("highlightClass"),fr("itemClass"),xl("onHighlight"),xl("onDehighlight")],bb=xd({fields:vb,name:"highlighting",apis:hb}),yb=function(){return[8]},xb=function(){return[9]},wb=function(){return[13]},Sb=function(){return[27]},Cb=function(){return[32]},kb=function(){return[37]},Ob=function(){return[38]},_b=function(){return[39]},Tb=function(){return[40]},Eb=function(n,t,e){var o=oe(n.slice(0,t)),r=oe(n.slice(t+1));return Qt(o.concat(r),e)},Bb=function(n,t,e){var o=oe(n.slice(0,t));return Qt(o,e)},Db=function(n,t,e){var o=n.slice(0,t),r=n.slice(t+1);return Qt(r.concat(o),e)},Ab=function(n,t,e){var o=n.slice(t+1);return Qt(o,e)},Mb=function(n){return function(t){var e=t.raw();return Lt(n,e.which)}},Fb=function(n){return function(t){return ee(n,function(n){return n(t)})}},Ib=function(n){var t=n.raw();return t.shiftKey===!0},Rb=function(n){var t=n.raw();return t.ctrlKey===!0},Vb=dt(Ib),Hb=function(n,t){return{matches:n,classification:t}},Nb=function(n,t){var e=Qt(n,function(n){return n.matches(t)});return e.map(function(n){return n.classification})},Pb=function(n,t,e){var o=t.exists(function(n){return e.exists(function(t){return Zi(t,n)})});o||oa(n,Ju(),{prevFocus:t,newFocus:e})},zb=function(){var n=function(n){return Rd(n.element())},t=function(t,e){var o=n(t);t.getSystem().triggerFocus(e,t.element());var r=n(t);Pb(t,o,r)};return{get:n,set:t}},Lb=function(){var n=function(n){return bb.getHighlighted(n).map(function(n){return n.element()})},t=function(t,e){var o=n(t);t.getSystem().getByDom(e).fold(at,function(n){bb.highlight(t,n)});var r=n(t);Pb(t,o,r)};return{get:n,set:t}};!function(n){n.OnFocusMode="onFocus",n.OnEnterOrSpaceMode="onEnterOrSpace",n.OnApiMode="onApi"}(Sm||(Sm={}));var jb,Ub=function(n,t,e,o,r){var i=function(){return n.concat([Br("focusManager",zb()),Dr("focusInside","onFocus",Xo(function(n){return Lt(["onFocus","onEnterOrSpace","onApi"],n)?_t.value(n):_t.error("Invalid value for focusInside")})),kl("handler",c),kl("state",t),kl("sendFocusIn",r)])},u=function(n,t,e,o,r){var i=e(n,t,o,r);return Nb(i,t.event()).bind(function(e){return e(n,t,o,r)})},a=function(n,t){var i=n.focusInside!==Sm.OnFocusMode?St.none():r(n).map(function(e){return da(Au(),function(o,r){e(o,n,t),r.stop()})}),a=function(e,o){var i=Mb(Cb().concat(wb()))(o.event());n.focusInside===Sm.OnEnterOrSpaceMode&&i&&uu(e,o)&&r(n).each(function(r){r(e,n,t),o.stop()})};return ca(i.toArray().concat([da(Cu(),function(o,r){u(o,r,e,n,t).fold(function(){a(o,r)},function(){r.stop()})}),da(ku(),function(e,r){u(e,r,o,n,t).each(function(){r.stop()})})]))},c={schema:i,processKey:u,toEvents:a};return c},Wb=function(n){var e=[wr("onEscape"),wr("onEnter"),Br("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Br("firstTabstop",0),Br("useTabstopAt",ft(!0)),wr("visibilitySelector")].concat([n]),o=function(n,t){var e=n.visibilitySelector.bind(function(n){return $f(t,n)}).getOr(t);return af(e)>0},r=function(n,t){var e=bg(n.element(),t.selector),r=Kt(e,function(n){return o(t,n)});return St.from(r[t.firstTabstop])},i=function(n,t){return t.focusManager.get(n).bind(function(n){return $f(n,t.selector)})},u=function(n,t){return o(n,t)&&n.useTabstopAt(t)},a=function(n,t){r(n,t).each(function(e){t.focusManager.set(n,e)})},c=function(n,t,e,o,r){return r(t,e,function(n){return u(o,n)}).fold(function(){return o.cyclic?St.some(!0):St.none()},function(t){return o.focusManager.set(n,t),St.some(!0)})},s=function(n,e,o,r){var u=bg(n.element(),o.selector);return i(n,o).bind(function(e){var i=Zt(u,t(Zi,e));return i.bind(function(t){return c(n,u,t,o,r)})})},f=function(n,t,e){var o=e.cyclic?Eb:Bb;return s(n,t,e,o)},l=function(n,t,e){var o=e.cyclic?Db:Ab;return s(n,t,e,o)},d=function(n,t,e){return e.onEnter.bind(function(e){return e(n,t)})},m=function(n,t,e){return e.onEscape.bind(function(e){return e(n,t)})},g=ft([Hb(Fb([Ib,Mb(xb())]),f),Hb(Mb(xb()),l),Hb(Mb(Sb()),m),Hb(Fb([Vb,Mb(wb())]),d)]),p=ft([]);return Ub(e,jc.init,g,p,function(){return St.some(a)})},Gb=Wb(Pr("cyclic",ft(!1))),Xb=Wb(Pr("cyclic",ft(!0))),Yb=function(n,t,e){return ia(n,e,Ru()),St.some(!0)},qb=function(n,t,e){return qv(e)&&Mb(Cb())(t.event())?St.none():Yb(n,t,e)},Kb=function(){return St.some(!0)},Jb=[Br("execute",qb),Br("useSpace",!1),Br("useEnter",!0),Br("useControlEnter",!1),Br("useDown",!1)],$b=function(n,t,e){return e.execute(n,t,n.element())},Qb=function(n,t,e){var o=e.useSpace&&!qv(n.element())?Cb():[],r=e.useEnter?wb():[],i=e.useDown?Tb():[],u=o.concat(r).concat(i);return[Hb(Mb(u),$b)].concat(e.useControlEnter?[Hb(Fb([Rb,Mb(wb())]),$b)]:[])},Zb=function(n,t,e){return e.useSpace&&!qv(n.element())?[Hb(Mb(Cb()),Kb)]:[]},ny=Ub(Jb,jc.init,Qb,Zb,function(){return St.none()}),ty=function(){var n=zr(St.none()),t=function(t,e){n.set(St.some({numRows:ft(t),numColumns:ft(e)}))},e=function(){return n.get().map(function(n){return n.numRows()})},o=function(){return n.get().map(function(n){return n.numColumns()})};return Uc({readState:function(){return n.get().map(function(n){return{numRows:String(n.numRows()),numColumns:String(n.numColumns())}}).getOr({numRows:"?",numColumns:"?"})},setGridSize:t,getNumRows:e,getNumColumns:o})},ey=function(n){return n.state(n)},oy=Object.freeze({__proto__:null,flatgrid:ty,init:ey}),ry=function(n){return function(t,e,o,r){var i=n(t.element());return cy(i,t,e,o,r)}},iy=function(n,t){var e=xm(n,t);return ry(e)},uy=function(n,t){var e=xm(t,n);return ry(e)},ay=function(n){return function(t,e,o,r){return cy(n,t,e,o,r)}},cy=function(n,t,e,o,r){var i=o.focusManager.get(t).bind(function(e){return n(t.element(),e,o,r)});return i.map(function(n){return o.focusManager.set(t,n),!0})},sy=ay,fy=ay,ly=ay,dy=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0},my=function(n){var t=n.dom();return!dy(t)},gy=function(n,t){return Zt(n,t).map(function(t){return{index:ft(t),candidates:ft(n)}})},py=function(n,t,e){var o=function(n){return Zi(n,t)},r=bg(n,e),i=Kt(r,my);return gy(i,o)},hy=function(n,t){return Zt(n,function(n){return Zi(t,n)})},vy=function(n,t,e,o){var r=Math.floor(t/e),i=t%e;return o(r,i).bind(function(t){var o=t.row()*e+t.column();return o>=0&&o1?St.some(n.slice(1)):St.none()})},g=function(n){return xe(e.get(),n)},p=function(n){return h(n).bind(cS)},h=function(n){return xe(t.get(),n)},v=function(t){return xe(n.get(),t)},b=function(n){var t=r.get();return re(de(t),n)},y=function(){return o.get().bind(p)},x=function(){return t.get()};return{setMenuBuilt:a,setContents:c,expand:d,refresh:g,collapse:m,lookupMenu:h,lookupItem:v,otherMenus:b,getPrimary:y,getMenus:x,clear:i,isClear:u,getTriggeringPath:l}},cS=function(n){return"prepared"===n.type?St.some(n.menu):St.none()},sS={init:aS,extractPreparedMenu:cS},fS=function(n){var t,e=zr(St.none()),o=function(t,e,o){return pe(o,function(o,r){var i=function(){return oS.sketch(vt(vt({dom:o.dom},o),{value:r,items:o.items,markers:n.markers,fakeFocus:n.fakeFocus,onHighlight:n.onHighlight,focusManager:n.fakeFocus?Lb():zb()}))};return r===e?{type:"prepared",menu:t.getSystem().build(i())}:{type:"notbuilt",nbMenu:i}})},r=sS.init(),i=function(t){var e=o(t,n.data.primary,n.data.menus),i=c();return r.setContents(n.data.primary,e,n.data.expansions,i),r.getPrimary()},u=function(n){return Ah.getValue(n).value},a=function(n,t,e){return le(t,function(n){if(!n.getSystem().isConnected())return St.none();var t=bb.getCandidates(n);return Qt(t,function(n){return u(n)===e})})},c=function(){return pe(n.data.menus,function(n){return te(n.items,function(n){return"separator"===n.type?[]:[n.data.value]})})},s=function(n,t){bb.highlight(n,t),bb.getHighlighted(t).orThunk(function(){return bb.getFirst(t)}).each(function(t){ia(n,t.element(),Vu())})},f=function(n,t){return Wv(Gt(t,function(t){return n.lookupMenu(t).bind(function(n){return"prepared"===n.type?St.some(n.menu):St.none()})}))},l=function(t,e,o){var r=f(e,e.otherMenus(o));Xt(r,function(e){_s(e.element(),[n.markers.backgroundMenu]),n.stayInDom||ew.remove(t,e)})},d=function(t){return e.get().getOrThunk(function(){var o={},r=bg(t.element(),"."+n.markers.item),i=Kt(r,function(n){return"true"===fc(n,"aria-haspopup")});return Xt(i,function(n){t.getSystem().getByDom(n).each(function(n){var t=u(n);o[t]=n})}),e.set(St.some(o)),o})},m=function(n,t){var e=d(n);ge(e,function(n,e){var o=Lt(t,e);cc(n.element(),"aria-expanded",o)})},g=function(t,e,o){return St.from(o[0]).bind(function(r){return e.lookupMenu(r).bind(function(r){if("notbuilt"===r.type)return St.none();var i=r.menu,u=f(e,o.slice(1));return Xt(u,function(t){ws(t.element(),n.markers.backgroundMenu)}),Es(i.element())||ew.append(t,rf(i)),_s(i.element(),[n.markers.backgroundMenu]),s(t,i),l(t,e,o),St.some(i)})})};!function(n){n[n.HighlightSubmenu=0]="HighlightSubmenu",n[n.HighlightParent=1]="HighlightParent"}(t||(t={}));var p=function(n,t,e){if("notbuilt"===e.type){var o=n.getSystem().build(e.nbMenu());return r.setMenuBuilt(t,o),o}return e.menu},h=function(e,o,i){void 0===i&&(i=t.HighlightSubmenu);var a=u(o);return r.expand(a).bind(function(u){return m(e,u),St.from(u[0]).bind(function(a){return r.lookupMenu(a).bind(function(c){var s=p(e,a,c);return Es(s.element())||ew.append(e,rf(s)),n.onOpenSubmenu(e,o,s,oe(u)),i===t.HighlightSubmenu?(bb.highlightFirst(s),g(e,r,u)):(bb.dehighlightAll(s),St.some(o))})})})},v=function(t,e){var o=u(e);return r.collapse(o).bind(function(o){return m(t,o),g(t,r,o).map(function(o){return n.onCollapseMenu(t,e,o),o})})},b=function(n,t){var e=u(t);return r.refresh(e).bind(function(t){return m(n,t),g(n,r,t)})},y=function(n,e){return qv(e.element())?St.none():h(n,e,t.HighlightSubmenu)},x=function(n,t){return qv(t.element())?St.none():v(n,t)},w=function(t,e){return v(t,e).orThunk(function(){return n.onEscape(t,e).map(function(){return t})})},S=function(t){return function(e,o){return $f(o.getSource(),"."+n.markers.item).bind(function(n){return e.getSystem().getByDom(n).toOption().bind(function(n){return t(e,n).map(function(){return!0})})})}},C=ca([da(tS(),function(n,t){var e=t.event().item();r.lookupItem(u(e)).each(function(){var e=t.event().menu();bb.highlight(n,e);var o=u(t.event().item());r.refresh(o).each(function(t){return l(n,r,t)})})}),Oa(function(e,o){var r=o.event().target();e.getSystem().getByDom(r).each(function(o){var r=u(o);0===r.indexOf("collapse-item")&&v(e,o),h(e,o,t.HighlightSubmenu).fold(function(){n.onExecute(e,o)},function(){})})}),Sa(function(t){i(t).each(function(e){ew.append(t,rf(e)),n.onOpenMenu(t,e),n.highlightImmediately&&s(t,e)})})].concat(n.navigateOnHover?[da(Pw(),function(e,o){var r=o.event().item();b(e,r),h(e,r,t.HighlightParent),n.onHover(e,r)})]:[])),k=function(n){return bb.getHighlighted(n).bind(bb.getHighlighted)},O=function(n){k(n).each(function(t){v(n,t)})},_=function(n){r.getPrimary().each(function(t){s(n,t)})},T=function(n){return St.from(n.components()[0]).filter(function(n){return"menu"===fc(n.element(),"role")})},E=function(t){var e=r.getPrimary().bind(function(n){return k(t).bind(function(n){var e=u(n),o=ye(r.getMenus()),i=Wv(Gt(o,sS.extractPreparedMenu));return r.getTriggeringPath(e,function(n){return a(t,i,n)})}).map(function(t){return{primary:n,triggeringPath:t} -})});e.fold(function(){T(t).each(function(e){n.onRepositionMenu(t,e,[])})},function(e){var o=e.primary,r=e.triggeringPath;n.onRepositionMenu(t,o,r)})},B={collapseMenu:O,highlightPrimary:_,repositionMenus:E};return{uid:n.uid,dom:n.dom,markers:n.markers,behaviours:Ih(n.tmenuBehaviours,[Xx.config({mode:"special",onRight:S(y),onLeft:S(x),onEscape:S(w),focusIn:function(n){r.getPrimary().each(function(t){ia(n,t.element(),Vu())})}}),bb.config({highlightClass:n.markers.selectedMenu,itemClass:n.markers.menu}),Qv.config({find:function(n){return bb.getHighlighted(n)}}),ew.config({})]),eventOrder:n.eventOrder,apis:B,events:C}},lS=ft("collapse-item"),dS=function(n,t,e){return{primary:n,menus:t,expansions:e}},mS=function(n,t){return{primary:n,menus:eo(n,t),expansions:{}}},gS=function(n){return{value:Sc(lS()),meta:{text:n}}},pS=jv({name:"TieredMenu",configFields:[Cl("onExecute"),Cl("onEscape"),Sl("onOpenMenu"),Sl("onOpenSubmenu"),xl("onRepositionMenu"),xl("onCollapseMenu"),Br("highlightImmediately",!0),br("data",[fr("primary"),fr("menus"),fr("expansions")]),Br("fakeFocus",!1),xl("onHighlight"),xl("onHover"),vl(),fr("dom"),Br("navigateOnHover",!0),Br("stayInDom",!1),Mh("tmenuBehaviours",[Xx,bb,Qv,ew]),Br("eventOrder",{})],apis:{collapseMenu:function(n,t){n.collapseMenu(t)},highlightPrimary:function(n,t){n.highlightPrimary(t)},repositionMenus:function(n,t){n.repositionMenus(t)}},factory:fS,extraApis:{tieredData:dS,singleData:mS,collapseItem:gS}}),hS=function(n,t,e,o,r){var i=function(){return n.lazySink(t)},u="horizontal"===o.type?{layouts:{onLtr:function(){return sd()},onRtl:function(){return fd()}}}:{},a=function(n){return 2===n.length},c=function(n){return a(n)?u:{}};return pS.sketch({dom:{tag:"div"},data:o.data,markers:o.menu.markers,highlightImmediately:o.menu.highlightImmediately,onEscape:function(){return Kp.close(t),n.onEscape.map(function(n){return n(t)}),St.some(!0)},onExecute:function(){return St.some(!0)},onOpenMenu:function(n,t){pp.positionWithinBounds(i().getOrDie(),e,t,r())},onOpenSubmenu:function(n,t,e,o){var r=i().getOrDie();pp.position(r,vt({anchor:"submenu",item:t},c(o)),e)},onRepositionMenu:function(n,t,o){var u=i().getOrDie();pp.positionWithinBounds(u,e,t,r()),Xt(o,function(n){var t=c(n.triggeringPath);pp.position(u,vt({anchor:"submenu",item:n.triggeringItem},t),n.triggeredMenu)})}})},vS=function(n,t){var e=function(t,e){var o=n.getRelated(t);return o.exists(function(n){return tl(n,e)})},o=function(n,t){Kp.setContent(n,t)},r=function(n,t,e){i(n,t,e,St.none())},i=function(n,t,e,o){u(n,t,e,function(){return o.map(function(n){return jf(n)})})},u=function(t,e,o,r){var i=n.lazySink(t).getOrDie();Kp.openWhileCloaked(t,o,function(){return pp.positionWithinBounds(i,e,t,r())}),Ah.setValue(t,St.some({mode:"position",anchor:e,getBounds:r}))},a=function(n,t,e){c(n,t,e,function(){return St.none()})},c=function(t,e,o,r){var i=hS(n,t,e,o,r);Kp.open(t,i),Ah.setValue(t,St.some({mode:"menu",menu:i}))},s=function(n){Kp.isOpen(n)&&(Ah.setValue(n,St.none()),Kp.close(n))},f=function(n){return Kp.getState(n)},l=function(t){Kp.isOpen(t)&&Ah.getValue(t).each(function(e){switch(e.mode){case"menu":Kp.getState(t).each(function(n){pS.repositionMenus(n)});break;case"position":var o=n.lazySink(t).getOrDie();pp.positionWithinBounds(o,e.anchor,t,e.getBounds())}})},d={setContent:o,showAt:r,showWithin:i,showWithinBounds:u,showMenuAt:a,showMenuWithinBounds:c,hide:s,getContent:f,reposition:l,isOpen:Kp.isOpen};return{uid:n.uid,dom:n.dom,behaviours:Ih(n.inlineBehaviours,[Kp.config({isPartOf:function(n,t,o){return tl(t,o)||e(n,o)},getAttachPoint:function(t){return n.lazySink(t).getOrDie()},onOpen:function(t){n.onShow(t)},onClose:function(t){n.onHide(t)}}),Ah.config({store:{mode:"memory",initialValue:St.none()}}),Ed.config({channels:vt(vt({},nh(vt({isExtraPart:t.isExtraPart},n.fireDismissalEventInstead.map(function(n){return{fireEventInstead:{event:n.event}}}).getOr({})))),eh(vt(vt({},n.fireRepositionEventInstead.map(function(n){return{fireEventInstead:{event:n.event}}}).getOr({})),{doReposition:l})))})]),eventOrder:n.eventOrder,apis:d}},bS=jv({name:"InlineView",configFields:[fr("lazySink"),xl("onShow"),xl("onHide"),Or("onEscape"),Mh("inlineBehaviours",[Kp,Ah,Ed]),Tr("fireDismissalEventInstead",[Br("event",qu())]),Tr("fireRepositionEventInstead",[Br("event",Ku())]),Br("getRelated",St.none),Br("isExtraPart",gt),Br("eventOrder",St.none)],factory:vS,apis:{showAt:function(n,t,e,o){n.showAt(t,e,o)},showWithin:function(n,t,e,o,r){n.showWithin(t,e,o,r)},showWithinBounds:function(n,t,e,o,r){n.showWithinBounds(t,e,o,r)},showMenuAt:function(n,t,e,o){n.showMenuAt(t,e,o)},showMenuWithinBounds:function(n,t,e,o,r){n.showMenuWithinBounds(t,e,o,r)},hide:function(n,t){n.hide(t)},isOpen:function(n,t){return n.isOpen(t)},getContent:function(n,t){return n.getContent(t)},setContent:function(n,t,e){n.setContent(t,e)},reposition:function(n,t){n.reposition(t)}}}),yS=function(n){return n.x()},xS=function(n,t){return n.x()+n.width()/2-t.width()/2},wS=function(n,t){return n.x()+n.width()-t.width()},SS=function(n){return n.y()},CS=function(n,t){return n.y()+n.height()-t.height()},kS=function(n,t,e){return Tl(wS(n,t),CS(n,t),e.innerSoutheast(),Rl(),Ll(n,{right:0,bottom:3}),"layout-inner-se")},OS=function(n,t,e){return Tl(yS(n),CS(n,t),e.innerSouthwest(),Il(),Ll(n,{left:1,bottom:3}),"layout-inner-sw")},_S=function(n,t,e){return Tl(wS(n,t),SS(n),e.innerNortheast(),Fl(),Ll(n,{right:0,top:2}),"layout-inner-ne")},TS=function(n,t,e){return Tl(yS(n),SS(n),e.innerNorthwest(),Ml(),Ll(n,{left:1,top:2}),"layout-inner-nw")},ES=function(n,t,e){return Tl(xS(n,t),SS(n),e.innerNorth(),Vl(),Ll(n,{top:2}),"layout-inner-n")},BS=function(n,t,e){return Tl(xS(n,t),CS(n,t),e.innerSouth(),Hl(),Ll(n,{bottom:3}),"layout-inner-s")},DS=tinymce.util.Tools.resolve("tinymce.util.Delay"),AS=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),MS=tinymce.util.Tools.resolve("tinymce.EditorManager"),FS=function(n){var t=n.settings,e=t.skin,o=t.skin_url;if(e!==!1){var r=e?e:"oxide";o=o?n.documentBaseURI.toAbsolute(o):MS.baseURL+"/skins/ui/"+r}return o},IS=function(n){return n.getParam("readonly",!1,"boolean")},RS=function(n){return n.getParam("skin")===!1},VS=function(n){return n.getParam("height",Math.max(n.getElement().offsetHeight,200))},HS=function(n){return n.getParam("width",AS.DOM.getStyle(n.getElement(),"width"))},NS=function(n){return St.from(n.settings.min_width).filter(It)},PS=function(n){return St.from(n.settings.min_height).filter(It)},zS=function(n){return St.from(n.getParam("max_width")).filter(It)},LS=function(n){return St.from(n.getParam("max_height")).filter(It)},jS=function(n){return St.from(n.getParam("style_formats")).filter(At)},US=function(n){return n.getParam("style_formats_merge",!1,"boolean")},WS=function(n){return n.getParam("removed_menuitems","")},GS=function(n){return n.getParam("menubar",!0,"boolean")!==!1},XS=function(n){var t=n.getParam("toolbar",!0),e=t===!0,o=Bt(t),r=At(t)&&t.length>0;return!qS(n)&&(r||o||e)},YS=function(n){var t=de(n.settings),e=Kt(t,function(n){return/^toolbar([1-9])$/.test(n)}),o=Gt(e,function(t){return n.getParam(t,!1,"string")}),r=Kt(o,function(n){return"string"==typeof n});return r.length>0?St.some(r):St.none()},qS=function(n){return YS(n).fold(function(){var t=n.getParam("toolbar",[],"string[]");return t.length>0},function(){return!0})};!function(n){n["default"]="wrap",n.floating="floating",n.sliding="sliding",n.scrolling="scrolling"}(jb||(jb={}));var KS,JS=function(n){return n.getParam("toolbar_mode","","string")};!function(n){n.top="top",n.bottom="bottom"}(KS||(KS={}));var $S,QS=function(n){return n.getParam("toolbar_groups",{},"object")},ZS=function(n){return n.getParam("toolbar_location",KS.top,"string")!==KS.bottom},nC=function(n){return n.getParam("fixed_toolbar_container","","string")},tC=function(n){var t=nC(n);return t.length>0&&n.inline?Jf(Bs(),t):St.none()},eC=function(n){return n.inline&&tC(n).isSome()},oC=function(n){var t=tC(n);return t.getOr(Bs())},rC=function(n){return n.inline&&!GS(n)&&!XS(n)&&!qS(n)},iC=function(n){var t=n.getParam("toolbar_sticky",!1,"boolean");return(t||n.inline)&&!eC(n)&&!rC(n)},uC=function(n){return n.getParam("draggable_modal",!1,"boolean")},aC=function(n){var t=Iw(n.action),e=n.dom.tag,o=function(t){return xe(n.dom,"attributes").bind(function(n){return xe(n,t)})},r=function(){if("button"===e){var n=o("type").getOr("button"),t=o("role").map(function(n){return{role:n}}).getOr({});return vt({type:n},t)}var r=o("role").getOr("button");return{role:r}};return{uid:n.uid,dom:n.dom,components:n.components,events:t,behaviours:Rh.augment(n.buttonBehaviours,[mw.config({}),Xx.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:r()},eventOrder:n.eventOrder}},cC=jv({name:"Button",factory:aC,configFields:[Br("uid",void 0),fr("dom"),Br("components",[]),Rh.field("buttonBehaviours",[mw,Xx]),wr("action"),wr("role"),Br("eventOrder",{})]}),sC=function(n){var t=a(n)&&Se(n,"uid")?n.uid:Dc("memento"),e=function(n){return n.getSystem().getByUid(t).getOrDie()},o=function(n){return n.getSystem().getByUid(t).toOption()},r=function(){return vt(vt({},n),{uid:t})};return{get:e,getOpt:o,asSpec:r}},fC=function(n){return St.from(n()["temporary-placeholder"]).getOr("!not found!")},lC=function(n,t){return St.from(t()[n]).getOrThunk(function(){return fC(t)})},dC=function(n,t,e){return St.from(t()[n]).or(e).getOrThunk(function(){return fC(t)})},mC=function(n,t){return le(n,function(n){return St.from(t()[n])}).getOrThunk(function(){return fC(t)})},gC={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},pC=function(n){var t=sC({dom:{tag:"p",innerHtml:n.translationProvider(n.text)},behaviours:bd([ew.config({})])}),e=function(n){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+n+"%"}}}},o=function(n){return{dom:{tag:"div",classes:["tox-text"],innerHtml:n+"%"}}},r=sC({dom:{tag:"div",classes:n.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[e(0)]},o(0)],behaviours:bd([ew.config({})])}),i=function(n,t){n.getSystem().isConnected()&&r.getOpt(n).each(function(n){ew.set(n,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[e(t)]},o(t)])})},u=function(n,e){if(n.getSystem().isConnected()){var o=t.get(n);ew.set(o,[nf(e)])}},a={updateProgress:i,updateText:u},c=ne([n.icon.toArray(),n.level.toArray(),n.level.bind(function(n){return St.from(gC[n])}).toArray()]);return{uid:n.uid,dom:{tag:"div",attributes:{role:"alert"},classes:n.level.map(function(n){return["tox-notification","tox-notification--in","tox-notification--"+n]}).getOr(["tox-notification","tox-notification--in"])},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:mC(c,n.iconProvider)}},{dom:{tag:"div",classes:["tox-notification__body"]},components:[t.asSpec()],behaviours:bd([ew.config({})])}].concat(n.progress?[r.asSpec()]:[]).concat(n.closeButton?[cC.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:lC("close",n.iconProvider),attributes:{"aria-label":n.translationProvider("Close")}}}],action:function(t){n.onAction(t)}})]:[]),apis:a}},hC=jv({name:"Notification",factory:pC,configFields:[wr("level"),fr("progress"),fr("icon"),fr("onAction"),fr("text"),fr("iconProvider"),fr("translationProvider"),Ir("closeButton",!0)],apis:{updateProgress:function(n,t,e){n.updateProgress(t,e)},updateText:function(n,t,e){n.updateText(t,e)}}}),vC=function(t,e){var o=null,r=function(){null!==o&&(n.clearTimeout(o),o=null)},i=function(){for(var r=[],i=0;i
    ',n.getDoc());return Xa(e,Xr.fromDom(t.extractContents())),t.insertNode(e.dom()),Va(e).each(function(n){return n.dom().normalize()}),hg(e).map(function(t){n.selection.setCursorLocation(t.dom(),dg(t))}),e})},kC=function(n){return $f(n,SC)},OC=function(n){return n.collapsed&&3===n.startContainer.nodeType},_C=function(n){return n.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},TC=function(n){return""!==n&&-1!=="  \f\n\r ".indexOf(n)},EC=function(n,t){return n.substring(t.length)},BC=function(n,t,e){var o;for(o=t-1;o>=0;o--){var r=n.charAt(o);if(TC(r))return St.none();if(r===e)break}return St.some(o)},DC=function(n,t,e,o){if(void 0===o&&(o=0),!OC(t))return St.none();var r=function(n,t,o){return BC(o,t,e).getOr(t)},i=n.getParent(t.startContainer,n.isBlock)||n.getRoot();return wC(n,t.startContainer,t.startOffset,r,i).bind(function(n){var r=t.cloneRange();if(r.setStart(n.container,n.offset),r.setEnd(t.endContainer,t.endOffset),r.collapsed)return St.none();var i=_C(r),u=i.lastIndexOf(e);return 0!==u||EC(i,e).length0?NC(t[t.length-1]):RC(n,t.length)},PC=function(n,t){var e=n.childNodes;return e.length>0&&t0&&HC(n)&&e.length===t?NC(e[e.length-1]):RC(n,t)},zC=function(n,t){return wC(n,t.container,t.offset,function(n,t){return 0===t?-1:t},n.getRoot()).filter(function(n){var t=n.container.data.charAt(n.offset-1);return!TC(t)}).isSome()},LC=function(n){return function(t){var e=PC(t.startContainer,t.startOffset);return!zC(n,e)}},jC=function(n,t,e){return le(e.triggerChars,function(e){return AC(n,t,e)})},UC=function(n,t){var e=t(),o=n.selection.getRng();return jC(n.dom,o,e).bind(function(e){return WC(n,t,e)})},WC=function(n,t,e,o){void 0===o&&(o={});var r=t(),i=n.selection.getRng(),u=i.startContainer.nodeValue,a=Kt(r.lookupByChar(e.triggerChar),function(t){return e.text.length>=t.minChars&&t.matches.getOrThunk(function(){return LC(n.dom)})(e.range,u,e.text)});if(0===a.length)return St.none();var c=IC.all(Gt(a,function(n){var t=n.fetch(e.text,n.maxResults,o);return t.then(function(t){return{matchText:e.text,items:t,columns:n.columns,onAction:n.onAction}})}));return St.some({lookupData:c,context:e})},GC=Mo([mr("type"),kr("text")]),XC=function(n){return Ko("separatormenuitem",GC,n)},YC=Mo([Pr("type",function(){return"autocompleteitem"}),Pr("active",function(){return!1}),Pr("disabled",function(){return!1}),Br("meta",{}),mr("value"),kr("text"),kr("icon")]),qC=Mo([mr("type"),mr("ch"),Ar("minChars",1),Br("columns",1),Ar("maxResults",10),Or("matches"),hr("fetch"),hr("onAction")]),KC=function(n){return Ko("Autocompleter.Separator",GC,n)},JC=function(n){return Ko("Autocompleter.Item",YC,n)},$C=function(n){return Ko("Autocompleter",qC,n)},QC=function(n){var t={};return Xt(n,function(n){t[n]={}}),de(t)},ZC=function(n){var t=n.ui.registry.getAll().popups,e=pe(t,function(n){return $C(n).fold(function(n){throw new Error(Qo(n))},function(n){return n})}),o=QC(ve(e,function(n){return n.ch})),r=ye(e),i=function(n){return Kt(r,function(t){return t.ch===n})};return{dataset:e,triggerChars:o,lookupByChar:i}},nk=[Ir("disabled",!1),kr("text"),kr("shortcut"),Po("value","value",Ke(function(){return Sc("menuitem-value")}),tr()),Br("meta",{})],tk=Mo([mr("type"),Rr("onSetup",function(){return at}),Rr("onAction",at),kr("icon")].concat(nk)),ek=function(n){return Ko("menuitem",tk,n)},ok=Mo([mr("type"),hr("getSubmenuItems"),Rr("onSetup",function(){return at}),kr("icon")].concat(nk)),rk=function(n){return Ko("nestedmenuitem",ok,n)},ik=Mo([mr("type"),Ir("active",!1),Rr("onSetup",function(){return at}),hr("onAction")].concat(nk)),uk=function(n){return Ko("togglemenuitem",ik,n)},ak=Mo([mr("type"),Ir("active",!1),kr("icon")].concat(nk)),ck=function(n){return Ko("choicemenuitem",ak,n)},sk=["inserttable","colorswatch"],fk=Mo([mr("type"),gr("fancytype",sk),Rr("onAction",at)]),lk=function(n){return Ko("fancymenuitem",fk,n)},dk=function(n,t,e){var o=bg(n.element(),"."+e);if(o.length>0){var r=Zt(o,function(n){var e=n.dom().getBoundingClientRect().top,r=o[0].dom().getBoundingClientRect().top;return Math.abs(e-r)>t}).getOr(o.length);return St.some({numColumns:r,numRows:Math.ceil(o.length/r)})}return St.none()},mk=function(n,t){return bd([rw(n,t)])},gk=function(n){return mk(Sc("unnamed-events"),n)},pk={namedEvents:mk,unnamedEvents:gk},hk=[fr("lazySink"),fr("tooltipDom"),Br("exclusive",!0),Br("tooltipComponents",[]),Br("delay",300),Fr("mode","normal",["normal","follow-highlight"]),Br("anchor",function(n){return{anchor:"hotspot",hotspot:n,layouts:{onLtr:ft([ed,td,$l,Zl,Ql,nd]),onRtl:ft([ed,td,$l,Zl,Ql,nd])}}}),xl("onHide"),xl("onShow")],vk=function(){var t=zr(St.none()),e=zr(St.none()),o=function(){return e.get()},r=function(n){e.set(St.some(n))},i=function(){e.set(St.none())},u=function(){t.get().each(function(t){n.clearTimeout(t)})},a=function(e,o){u(),t.set(St.some(n.setTimeout(function(){e()},o)))},c=function(){return e.get().isSome()},s=ft("not-implemented");return Uc({getTooltip:o,isShowing:c,setTooltip:r,clearTooltip:i,clearTimer:u,resetTimer:a,readState:s})},bk=Object.freeze({__proto__:null,init:vk}),yk=Sc("tooltip.exclusive"),xk=Sc("tooltip.show"),wk=Sc("tooltip.hide"),Sk=function(n){n.getSystem().broadcastOn([yk],{})},Ck=function(n,t,e,o){e.getTooltip().each(function(n){n.getSystem().isConnected()&&ew.set(n,o)})},kk=Object.freeze({__proto__:null,hideAllExclusive:Sk,setComponents:Ck}),Ok=function(n,t){var e=function(e){t.getTooltip().each(function(o){kp(o),n.onHide(e,o),t.clearTooltip()}),t.clearTimer()},o=function(e){if(!t.isShowing()){Sk(e);var o=n.lazySink(e).getOrDie(),r=e.getSystem().build({dom:n.tooltipDom,components:n.tooltipComponents,events:ca("normal"===n.mode?[da(xu(),function(){ea(e,xk)}),da(bu(),function(){ea(e,wk)})]:[]),behaviours:bd([ew.config({})])});t.setTooltip(r),wp(o,r),n.onShow(e,r),pp.position(o,n.anchor(e),r)}};return ca(ne([[da(xk,function(e){t.resetTimer(function(){o(e)},n.delay)}),da(wk,function(o){t.resetTimer(function(){e(o)},n.delay)}),da(Iu(),function(n,t){var o=t;Lt(o.channels(),yk)&&e(n)}),Ca(function(n){e(n)})],"normal"===n.mode?[da(wu(),function(n){ea(n,xk)}),da(Mu(),function(n){ea(n,wk)}),da(xu(),function(n){ea(n,xk)}),da(bu(),function(n){ea(n,wk)})]:[da(na(),function(n){ea(n,xk)}),da(ta(),function(n){ea(n,wk)})]]))},_k=Object.freeze({__proto__:null,events:Ok}),Tk=xd({fields:hk,name:"tooltipping",active:_k,state:bk,apis:kk}),Ek=tinymce.util.Tools.resolve("tinymce.util.I18n"),Bk="tox-menu-nav__js",Dk="tox-collection__item",Ak="tox-swatch",Mk={normal:Bk,color:Ak},Fk="tox-collection__item--enabled",Ik="tox-collection__group-heading",Rk="tox-collection__item-icon",Vk="tox-collection__item-label",Hk="tox-collection__item-accessory",Nk="tox-collection__item-caret",Pk="tox-collection__item-checkmark",zk="tox-collection__item--active",Lk="tox-collection__item-icon-rtl",jk=function(n){return xe(Mk,n).getOr(Bk)},Uk=tinymce.util.Tools.resolve("tinymce.Env"),Wk=function(n){var t={alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"},e={meta:"Ctrl",access:"Shift+Alt"},o=Uk.mac?t:e,r=n.split("+"),i=Gt(r,function(n){var t=n.toLowerCase().trim();return we(o,t)?o[t]:n});return i.join(Uk.mac?"":"+")},Gk={convertText:Wk},Xk=function(n){return{dom:{tag:"div",classes:[Rk],innerHtml:n}}},Yk=function(n){return{dom:{tag:"div",classes:[Vk]},components:[nf(Ek.translate(n))]}},qk=function(n){return{dom:{tag:"div",classes:[Vk],innerHtml:n}}},Kk=function(n,t){return{dom:{tag:"div",classes:[Vk]},components:[{dom:{tag:n.tag,styles:n.styles},components:[nf(Ek.translate(t))]}]}},Jk=function(n){return{dom:{tag:"div",classes:[Hk],innerHtml:Gk.convertText(n)}}},$k=function(n){return{dom:{tag:"div",classes:[Rk,Pk],innerHtml:lC("checkmark",n)}}},Qk=function(n){return{dom:{tag:"div",classes:[Nk],innerHtml:lC("chevron-right",n)}}},Zk=function(n){return{dom:{tag:"div",classes:[Nk],innerHtml:lC("chevron-down",n)}}},nO=function(n,t,e,r){var i="custom",u="remove",a=function(){var a=Ak,c=e.getOr(""),s=n.map(function(n){return{title:r.translate(n)}}).getOr({}),f={tag:"div",attributes:s,classes:[a]};return t===i?vt(vt({},f),{tag:"button",classes:o(f.classes,["tox-swatches__picker-btn"]),innerHtml:c}):t===u?vt(vt({},f),{classes:o(f.classes,["tox-swatch--remove"]),innerHtml:c}):vt(vt({},f),{attributes:vt(vt({},f.attributes),{"data-mce-color":t}),styles:{"background-color":t}})};return{dom:a(),optComponents:[]}},tO=function(n,t,e,o,r){var i=e?n.checkMark.orThunk(function(){return t.or(St.some("")).map(Xk)}):St.none(),u=n.ariaLabel.map(function(n){return{attributes:{title:Ek.translate(n)}}}).getOr({}),a=vt({tag:"div",classes:[Bk,Dk].concat(r?[Lk]:[])},u),c=n.htmlContent.fold(function(){return n.textContent.map(o)},function(n){return St.some(qk(n))}),s={dom:a,optComponents:[i,c,n.shortcutContent.map(Jk),n.caret]};return s},eO=["list-num-default","list-num-lower-alpha","list-num-lower-greek","list-num-lower-roman","list-num-upper-alpha","list-num-upper-roman"],oO=["list-bull-circle","list-bull-default","list-bull-square"],rO=function(n,e,o,r){void 0===r&&(r=St.none());var i=function(n){return n.map(function(n){return Ek.isRtl()&&Lt(eO,n)?n+"-rtl":n})},u=Ek.isRtl()&&n.iconContent.exists(function(n){return Lt(oO,n)}),a=i(n.iconContent).map(function(n){return dC(n,e.icons,r)}),c=St.from(n.meta).fold(function(){return Yk},function(n){return we(n,"style")?t(Kk,n.style):Yk});return"color"===n.presets?nO(n.ariaLabel,n.value,a,e):tO(n,a,o,c,u)},iO=["input","button","textarea","select"],uO=function(n,t){t.disabled&&gO(n,t)},aO=function(n,t){return t.useNative===!0&&Lt(iO,ec(n.element()))},cO=function(n){return dc(n.element(),"disabled")},sO=function(n){cc(n.element(),"disabled","disabled")},fO=function(n){mc(n.element(),"disabled")},lO=function(n){return"true"===fc(n.element(),"aria-disabled")},dO=function(n){cc(n.element(),"aria-disabled","true")},mO=function(n){cc(n.element(),"aria-disabled","false")},gO=function(n,t){t.disableClass.each(function(t){ws(n.element(),t)});var e=aO(n,t)?sO:dO;e(n),t.onDisabled(n)},pO=function(n,t){t.disableClass.each(function(t){Cs(n.element(),t)});var e=aO(n,t)?fO:mO;e(n),t.onEnabled(n)},hO=function(n,t){return aO(n,t)?cO(n):lO(n)},vO=function(n,t,e,o){var r=o?gO:pO;r(n,t,e)},bO=Object.freeze({__proto__:null,enable:pO,disable:gO,isDisabled:hO,onLoad:uO,set:vO}),yO=function(n,t){return qc({classes:t.disabled?t.disableClass.map(ue).getOr([]):[]})},xO=function(n,t){return ca([sa(Ru(),function(t){return hO(t,n)}),dd(n,t,uO)])},wO=Object.freeze({__proto__:null,exhibit:yO,events:xO}),SO=[Br("disabled",!1),Br("useNative",!0),wr("disableClass"),xl("onDisabled"),xl("onEnabled")],CO=xd({fields:SO,name:"disabling",active:wO,apis:bO}),kO=function(n){return CO.config({disabled:n,disableClass:"tox-collection__item--state-disabled"})},OO=function(n){return CO.config({disabled:n})},_O=function(n){return CO.config({disabled:n,disableClass:"tox-tbtn--disabled"})},TO=function(n){return CO.config({disabled:n,disableClass:"tox-tbtn--disabled",useNative:!1})},EO={item:kO,button:OO,splitButton:_O,toolbarButton:TO},BO=function(n,t){var e=n.getApi(t);return function(n){n(e)}},DO=function(n,t){return Sa(function(e){var o=BO(n,e);o(function(e){var o=n.onSetup(e);null!==o&&void 0!==o&&t.set(o)})})},AO=function(n,t){return Ca(function(e){return BO(n,e)(t.get())})};!function(n){n[n.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",n[n.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"}($S||($S={}));var MO,FO=$S,IO=function(n,t){return Oa(function(e,o){BO(n,e)(n.onAction),n.triggersSubmenu||t!==FO.CLOSE_ON_EXECUTE||(ea(e,Pu()),o.stop())})},RO={"alloy.execute":["disabling","alloy.base.behaviour","toggling","item-events"]},VO=function(n){return te(n,function(n){return n.toArray()})},HO=function(n,t,e){var o=zr(at);return{type:"item",dom:t.dom,components:VO(t.optComponents),data:n.data,eventOrder:RO,hasSubmenu:n.triggersSubmenu,itemBehaviours:bd([rw("item-events",[IO(n,e),DO(n,o),AO(n,o)]),EO.item(n.disabled),ew.config({})].concat(n.itemBehaviours))}},NO=function(n){return{value:n.value,meta:vt({text:n.text.getOr("")},n.meta)}},PO=function(n,t){return xe(n,"tooltipWorker").map(function(n){return[Tk.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(n){return{anchor:"submenu",item:n,overrides:{maxHeightFunction:lm}}},mode:"follow-highlight",onShow:function(t){n(function(n){Tk.setComponents(t,[tf({element:Xr.fromDom(n)})])})}})]}).getOr([])},zO=function(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},LO=function(n){return AS.DOM.encode(n)},jO=function(n,t){var e=Ek.translate(n),o=LO(e);if(t.length>0){var r=new RegExp(zO(t),"gi");return o.replace(r,function(n){return''+n+""})}return o},UO=function(n,t,e,o,r,i,u,a){void 0===a&&(a=!0);var c=rO({presets:o,textContent:St.none(),htmlContent:e?n.text.map(function(n){return jO(n,t)}):St.none(),ariaLabel:n.text,iconContent:n.icon,shortcutContent:St.none(),checkMark:St.none(),caret:St.none(),value:n.value},u.providers,a,n.icon);return HO({data:NO(n),disabled:n.disabled,getApi:function(){return{}},onAction:function(){return r(n.value,n.meta)},onSetup:function(){return function(){}},triggersSubmenu:!1,itemBehaviours:PO(n.meta,u)},c,i)},WO=function(n,t,e,o,r,i,u){var a=function(n){return{setActive:function(t){Mw.set(n,t)},isActive:function(){return Mw.isOn(n)},isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},c=rO({presets:e,textContent:t?n.text:St.none(),htmlContent:St.none(),ariaLabel:n.text,iconContent:n.icon,shortcutContent:t?n.shortcut:St.none(),checkMark:t?St.some($k(u.icons)):St.none(),caret:St.none(),value:n.value},u,!0);return Be(HO({data:NO(n),disabled:n.disabled,getApi:a,onAction:function(){return o(n.value)},onSetup:function(n){return n.setActive(r),function(){}},triggersSubmenu:!1,itemBehaviours:[]},c,i),{toggling:{toggleClass:Fk,toggleOnExecute:!1,selected:n.active}})},GO=ft(bv(Gw(),Xw())),XO=Sc("cell-over"),YO=Sc("cell-execute"),qO=function(n,t,e){var o,r=function(e){return oa(e,XO,{row:n,col:t})},i=function(e){return oa(e,YO,{row:n,col:t})},u=function(n,t){t.stop(),i(n)};return of({dom:{tag:"div",attributes:(o={role:"button"},o["aria-labelledby"]=e,o)},behaviours:bd([rw("insert-table-picker-cell",[da(xu(),mw.focus),da(Ru(),i),da(Tu(),u),da(Hu(),u)]),Mw.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),mw.config({onFocus:r})])})},KO=function(n,t,e){for(var o=[],r=0;t>r;r++){for(var i=[],u=0;e>u;u++)i.push(qO(r,u,n));o.push(i)}return o},JO=function(n,t,e,o,r){for(var i=0;o>i;i++)for(var u=0;r>u;u++)Mw.set(n[i][u],t>=i&&e>=u)},$O=function(n){return te(n,function(n){return Gt(n,rf)})},QO=function(n,t){return nf(t+1+"x"+(n+1))},ZO=function(n){return{value:ft(n)}},n_=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,t_=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,e_=function(n){return n_.test(n)||t_.test(n)},o_=function(n){var t=n.value().replace(n_,function(n,t,e,o){return t+t+e+e+o+o});return{value:ft(t)}},r_=function(n){var t=o_(n),e=t_.exec(t.value());return null===e?["FFFFFF","FF","FF","FF"]:e},i_=function(n){var t=n.toString(16);return 1===t.length?"0"+t:t},u_=function(n){var t=i_(n.red())+i_(n.green())+i_(n.blue());return ZO(t)},a_=Math.min,c_=Math.max,s_=Math.round,f_=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,l_=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,d_=function(n,t,e,o){return{red:ft(n),green:ft(t),blue:ft(e),alpha:ft(o)}},m_=function(n){var t=parseInt(n,10);return t.toString()===n&&t>=0&&255>=t},g_=function(n){var t,e,o,r=(n.hue()||0)%360,i=n.saturation()/100,u=n.value()/100;if(i=c_(0,a_(i,1)),u=c_(0,a_(u,1)),0===i)return t=e=o=s_(255*u),d_(t,e,o,1);var a=r/60,c=u*i,s=c*(1-Math.abs(a%2-1)),f=u-c;switch(Math.floor(a)){case 0:t=c,e=s,o=0;break;case 1:t=s,e=c,o=0;break;case 2:t=0,e=c,o=s;break;case 3:t=0,e=s,o=c;break;case 4:t=s,e=0,o=c;break;case 5:t=c,e=0,o=s;break;default:t=e=o=0}return t=s_(255*(t+f)),e=s_(255*(e+f)),o=s_(255*(o+f)),d_(t,e,o,1)},p_=function(n){var t=r_(n),e=parseInt(t[1],16),o=parseInt(t[2],16),r=parseInt(t[3],16);return d_(e,o,r,1)},h_=function(n,t,e,o){var r=parseInt(n,10),i=parseInt(t,10),u=parseInt(e,10),a=parseFloat(o);return d_(r,i,u,a)},v_=function(n){if("transparent"===n)return St.some(d_(0,0,0,0));var t=f_.exec(n);if(null!==t)return St.some(h_(t[1],t[2],t[3],"1"));var e=l_.exec(n);return null!==e?St.some(h_(e[1],e[2],e[3],e[4])):St.none()},b_=function(n){return"rgba("+n.red()+","+n.green()+","+n.blue()+","+n.alpha()+")"},y_=ft(d_(255,0,0,1)),x_=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),w_="tinymce-custom-colors",S_="choiceitem",C_=[{type:S_,text:"Light Green",value:"#BFEDD2"},{type:S_,text:"Light Yellow",value:"#FBEEB8"},{type:S_,text:"Light Red",value:"#F8CAC6"},{type:S_,text:"Light Purple",value:"#ECCAFA"},{type:S_,text:"Light Blue",value:"#C2E0F4"},{type:S_,text:"Green",value:"#2DC26B"},{type:S_,text:"Yellow",value:"#F1C40F"},{type:S_,text:"Red",value:"#E03E2D"},{type:S_,text:"Purple",value:"#B96AD9"},{type:S_,text:"Blue",value:"#3598DB"},{type:S_,text:"Dark Turquoise",value:"#169179"},{type:S_,text:"Orange",value:"#E67E23"},{type:S_,text:"Dark Red",value:"#BA372A"},{type:S_,text:"Dark Purple",value:"#843FA1"},{type:S_,text:"Dark Blue",value:"#236FA1"},{type:S_,text:"Light Gray",value:"#ECF0F1"},{type:S_,text:"Medium Gray",value:"#CED4D9"},{type:S_,text:"Gray",value:"#95A5A6"},{type:S_,text:"Dark Gray",value:"#7E8C8D"},{type:S_,text:"Navy Blue",value:"#34495E"},{type:S_,text:"Black",value:"#000000"},{type:S_,text:"White",value:"#ffffff"}],k_=f(10),O_=function(t){var e=[],o=n.document.createElement("canvas");o.height=1,o.width=1;for(var r=o.getContext("2d"),i=function(n,t){var e=255,o=t/255,r=Math.round(n*o+e*(1-o));return("0"+r.toString(16)).slice(-2).toUpperCase()},u=function(n){if(/^[0-9A-Fa-f]{6}$/.test(n))return"#"+n.toUpperCase();r.clearRect(0,0,o.width,o.height),r.fillStyle="#FFFFFF",r.fillStyle=n,r.fillRect(0,0,1,1);var t=r.getImageData(0,0,1,1).data,e=t[0],u=t[1],a=t[2],c=t[3]; -return"#"+i(e,c)+i(u,c)+i(a,c)},a=0;a0&&e.push(o),o=[],we(n.dom,"innerHtml")&&o.push(n)):o.push(n)}),o.length>0&&e.push(o),Gt(e,function(n){return{dom:{tag:"div",classes:["tox-collection__group"]},components:n}})},mT=function(n,t){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===n?["tox-collection--list"]:["tox-collection--grid"])},components:[oS.parts().items({preprocess:function(e){return"auto"!==n&&n>1?sT({tag:"div",classes:["tox-collection__group"]},n)(e):dT(e,function(n,e){return"separator"===t[e].type})}})]}},gT=function(n){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[oS.parts().items({preprocess:function(t){return dT(t,function(t,e){return"separator"===n[e].type})}})]}},pT=function(n){return void 0!==n.icon||"togglemenuitem"===n.type||"choicemenuitem"===n.type},hT=function(n){return jt(n,pT)},vT=function(t){return n.console.error(Qo(t)),n.console.log(t),St.none()},bT=function(n,t,e){var o=gT(e);return{value:n,dom:o.dom,components:o.components,items:e}},yT=function(n,t,e,o,r){if("color"===r){var i=fT(o);return{value:n,dom:i.dom,components:i.components,items:e}}if("normal"===r&&"auto"===o){var i=mT(o,e);return{value:n,dom:i.dom,components:i.components,items:e}}if("normal"===r&&1===o){var i=mT(1,e);return{value:n,dom:i.dom,components:i.components,items:e}}if("normal"===r){var i=mT(o,e);return{value:n,dom:i.dom,components:i.components,items:e}}if("listpreview"===r&&"auto"!==o){var i=lT(o);return{value:n,dom:i.dom,components:i.components,items:e}}return{value:n,dom:uT(t,o,r),components:aT,items:e}},xT=function(n,t,e,o,r,i,u,a){var c=hT(t),s="color"!==r?"normal":"color",f=wT(t,e,o,s,i,u,a);return yT(n,c,f,o,r)},wT=function(n,t,e,o,r,i,u){return Wv(Gt(n,function(n){return"choiceitem"===n.type?ck(n).fold(vT,function(a){return St.some(WO(a,1===e,o,t,i(n.value),r,u))}):St.none()}))},ST=function(n,t){var e=iT(t);if(1===n)return{mode:"menu",moveOnTab:!0};if("auto"===n)return{mode:"grid",selector:"."+e.item,initSize:{numColumns:1,numRows:1}};var o="color"===t?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+o}},CT=function(n,t){return 1===n?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===n?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===t?".tox-swatches__row":".tox-collection__group",cell:"color"===t?"."+Ak:"."+Dk}}},kT={inserttable:s,colorswatch:l},OT=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)?St.some(n[t]):St.none()},_T=function(n,t){return OT(kT,n.fancytype).map(function(e){return e(n,t)})},TT=function(n,t,e,o){void 0===o&&(o=!0);var r=function(n){return{isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},i=rO({presets:"normal",iconContent:n.icon,textContent:n.text,htmlContent:St.none(),ariaLabel:n.text,caret:St.none(),checkMark:St.none(),shortcutContent:n.shortcut},e,o);return HO({data:NO(n),getApi:r,disabled:n.disabled,onAction:n.onAction,onSetup:n.onSetup,triggersSubmenu:!1,itemBehaviours:[]},i,t)},ET=function(n,t,e,o,r){void 0===o&&(o=!0),void 0===r&&(r=!1);var i=r?Zk(e.icons):Qk(e.icons),u=function(n){return{isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},a=rO({presets:"normal",iconContent:n.icon,textContent:n.text,htmlContent:St.none(),ariaLabel:n.text,caret:St.some(i),checkMark:St.none(),shortcutContent:n.shortcut},e,o);return HO({data:NO(n),getApi:u,disabled:n.disabled,onAction:at,onSetup:n.onSetup,triggersSubmenu:!0,itemBehaviours:[]},a,t)},BT=function(n){var t=n.text.fold(function(){return{}},function(n){return{innerHtml:n}});return{type:"separator",dom:vt({tag:"div",classes:[Dk,Ik]},t),components:[]}},DT=function(n,t,e){var o=function(n){return{setActive:function(t){Mw.set(n,t)},isActive:function(){return Mw.isOn(n)},isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},r=rO({iconContent:St.none(),textContent:n.text,htmlContent:St.none(),ariaLabel:n.text,checkMark:St.some($k(e.icons)),caret:St.none(),shortcutContent:n.shortcut,presets:"normal",meta:n.meta},e,!0);return Be(HO({data:NO(n),disabled:n.disabled,getApi:o,onAction:n.onAction,onSetup:n.onSetup,triggersSubmenu:!1,itemBehaviours:[]},r,t),{toggling:{toggleClass:Fk,toggleOnExecute:!1,selected:n.active}})},AT=UO,MT=BT,FT=TT,IT=ET,RT=DT,VT=_T;!function(n){n[n.ContentFocus=0]="ContentFocus",n[n.UiFocus=1]="UiFocus"}(MO||(MO={}));var HT=function(n){return void 0!==n.icon||"togglemenuitem"===n.type||"choicemenuitem"===n.type},NT=function(n){return jt(n,HT)},PT=function(t,e,o,r,i){var u=o.shared.providers,a=function(n){return i?vt(vt({},n),{shortcut:St.none(),icon:n.text.isSome()?St.none():n.icon}):n};switch(t.type){case"menuitem":return ek(t).fold(vT,function(n){return St.some(FT(a(n),e,u,r))});case"nestedmenuitem":return rk(t).fold(vT,function(n){return St.some(IT(a(n),e,u,r,i))});case"togglemenuitem":return uk(t).fold(vT,function(n){return St.some(RT(a(n),e,u))});case"separator":return XC(t).fold(vT,function(n){return St.some(MT(n))});case"fancymenuitem":return lk(t).fold(vT,function(n){return VT(a(n),o)});default:return n.console.error("Unknown item in general menu",t),St.none()}},zT=function(n,t,e,o,r,i){var u=1===o,a=!u||NT(n);return Wv(Gt(n,function(n){return"separator"===n.type?KC(n).fold(vT,function(n){return St.some(MT(n))}):JC(n).fold(vT,function(n){return St.some(AT(n,t,u,"normal",e,r,i,a))})}))},LT=function(n,t,e,o,r){var i=NT(t),u=Wv(Gt(t,function(n){var t=function(n){return r?!n.hasOwnProperty("text"):i},u=function(n){return PT(n,e,o,t(n),r)};return u("nestedmenuitem"===n.type&&n.getSubmenuItems().length<=0?vt(vt({},n),{disabled:!0}):n)})),a=r?bT:yT;return a(n,i,u,1,"normal")},jT=function(n){return pS.singleData(n.value,n)},UT=function(n,t,e,o){var r=e===MO.ContentFocus?Lb():zb(),i=ST(t,o),u=iT(o);return{dom:n.dom,components:n.components,items:n.items,value:n.value,markers:{selectedItem:u.selectedItem,item:u.item},movement:i,fakeFocus:e===MO.ContentFocus,focusManager:r,menuBehaviours:pk.unnamedEvents("auto"!==t?[]:[Sa(function(n){dk(n,4,u.item).each(function(t){var e=t.numColumns,o=t.numRows;Xx.setGridSize(n,o,e)})})])}},WT=function(t,e){var o=zr(St.none()),r=zr(!1),i=of(bS.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:bd([rw("dismissAutocompleter",[da(qu(),function(){return s()})])]),lazySink:e.getSink})),u=function(){return bS.isOpen(i)},a=function(){return o.get().isSome()},c=function(){a()&&bS.hide(i)},s=function(){if(a()){var n=o.get().map(function(n){return n.element});kC(n.getOr(Xr.fromDom(t.selection.getNode()))).each(Qa),c(),o.set(St.none()),r.set(!1)}},f=Ae(function(){return ZC(t)}),l=function(o,i){var u=le(i,function(n){return St.from(n.columns)}).getOr(1);return te(i,function(i){var a=i.items;return zT(a,i.matchText,function(e,u){var a=t.selection.getRng();AC(t.dom,a,o).fold(function(){return n.console.error("Lost context. Cursor probably moved")},function(n){var t=n.range,o={hide:function(){s()},reload:function(n){c(),p(n)}};r.set(!0),i.onAction(o,t,e,u),r.set(!1)})},u,FO.BUBBLE_TO_SANDBOX,e)})},d=function(n){if(!a()){var e=CC(t,n.range);o.set(St.some({triggerChar:n.triggerChar,element:e,matchLength:n.text.length})),r.set(!1)}},m=function(n,e,o,r){n.matchLength=e.text.length;var u=le(o,function(n){return St.from(n.columns)}).getOr(1);bS.showAt(i,{anchor:"node",root:Xr.fromDom(t.getBody()),node:St.from(n.element)},oS.sketch(UT(yT("autocompleter-value",!0,r,u,"normal"),u,MO.ContentFocus,"normal"))),bS.getContent(i).each(bb.highlightFirst)},g=function(n){return o.get().map(function(e){return AC(t.dom,t.selection.getRng(),e.triggerChar).bind(function(e){return WC(t,f,e,n)})}).getOrThunk(function(){return UC(t,f)})},p=function(n){g(n).fold(s,function(n){d(n.context),n.lookupData.then(function(t){o.get().map(function(e){var o=n.context;if(e.triggerChar===o.triggerChar){var r=l(o.triggerChar,t);r.length>0?m(e,o,t,r):o.text.length-e.matchLength>=10?s():c()}})})})},h=bC(function(n){27!==n.which&&p()},50),v={onKeypress:h,cancelIfNecessary:s,isMenuOpen:u,isActive:a,isProcessingAction:r.get,getView:function(){return bS.getContent(i)}};FC.setup(v,t)},GT={register:WT},XT=ft(!0),YT=function(n,t,e){return Of(n,t,XT,e)},qT=function(n,t,e){return _f(n,t,XT,e)},KT=Sf,JT=function(n,t,e){return $f(n,t,e).isSome()},$T=5,QT=400,ZT=function(n){var t=n.raw();return void 0===t.touches||1!==t.touches.length?St.none():St.some(t.touches[0])},nE=function(n,t){var e=Math.abs(n.clientX-t.x()),o=Math.abs(n.clientY-t.y());return e>$T||o>$T},tE=function(n){var t=zr(St.none()),e=zr(!1),o=d(function(t){n.triggerEvent(Nu(),t),e.set(!0)},QT),r=function(n){return ZT(n).each(function(r){o.cancel();var i={x:ft(r.clientX),y:ft(r.clientY),target:n.target};o.schedule(n),e.set(!1),t.set(St.some(i))}),St.none()},i=function(n){return o.cancel(),ZT(n).each(function(n){t.get().each(function(e){nE(n,e)&&t.set(St.none())})}),St.none()},u=function(r){o.cancel();var i=function(n){return Zi(n.target(),r.target())};return t.get().filter(i).map(function(){return e.get()?(r.prevent(),!1):n.triggerEvent(Hu(),r)})},a=oo([{key:du(),value:r},{key:mu(),value:i},{key:gu(),value:u}]),c=function(n,t){return xe(a,t).bind(function(t){return t(n)})};return{fireIfReady:c}},eE=function(n){var t=n.raw();return t.which===yb()[0]&&!Lt(["input","textarea"],ec(n.target()))&&!JT(n.target(),'[contenteditable="true"]')},oE=Ui().browser.isFirefox(),rE=Ao([hr("triggerEvent"),Br("stopBackspace",!0)]),iE=function(n,t){return oE?qT(n,"focus",t):YT(n,"focusin",t)},uE=function(n,t){return oE?qT(n,"blur",t):YT(n,"focusout",t)},aE=function(t,e){var o=$o("Getting GUI events settings",rE,e),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],i=tE(o),u=Gt(r.concat(["selectstart","input","contextmenu","change","transitionend","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),function(n){return YT(t,n,function(t){i.fireIfReady(t,n).each(function(n){n&&t.kill()});var e=o.triggerEvent(n,t);e&&t.kill()})}),a=zr(St.none()),c=YT(t,"paste",function(t){i.fireIfReady(t,"paste").each(function(n){n&&t.kill()});var e=o.triggerEvent("paste",t);e&&t.kill(),a.set(St.some(n.setTimeout(function(){o.triggerEvent(Fu(),t)},0)))}),s=YT(t,"keydown",function(n){var t=o.triggerEvent("keydown",n);t?n.kill():o.stopBackspace===!0&&eE(n)&&n.prevent()}),f=iE(t,function(n){var t=o.triggerEvent("focusin",n);t&&n.kill()}),l=zr(St.none()),d=uE(t,function(t){var e=o.triggerEvent("focusout",t);e&&t.kill(),l.set(St.some(n.setTimeout(function(){o.triggerEvent(Mu(),t)},0)))}),m=function(){Xt(u,function(n){n.unbind()}),s.unbind(),f.unbind(),d.unbind(),c.unbind(),a.get().each(n.clearTimeout),l.get().each(n.clearTimeout)};return{unbind:m}},cE=function(n,t){var e=xe(n,"target").map(function(n){return n()}).getOr(t);return zr(e)},sE=function(n,t){var e=zr(!1),o=zr(!1),r=function(){e.set(!0)},i=function(){o.set(!0)};return{stop:r,cut:i,isStopped:e.get,isCut:o.get,event:ft(n),setSource:t.set,getSource:t.get}},fE=function(n){var t=zr(!1),e=function(){t.set(!0)};return{stop:e,cut:at,isStopped:t.get,isCut:ft(!1),event:ft(n),setSource:mt("Cannot set source of a broadcasted event"),getSource:mt("Cannot get source of a broadcasted event")}},lE=ke.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),dE=function(n,t,e,o,r,i){var u=n(t,o),a=sE(e,r);return u.fold(function(){return i.logEventNoHandlers(t,o),lE.complete()},function(n){var e=n.descHandler(),o=ts(e);return o(a),a.isStopped()?(i.logEventStopped(t,n.element(),e.purpose()),lE.stopped()):a.isCut()?(i.logEventCut(t,n.element(),e.purpose()),lE.complete()):Va(n.element()).fold(function(){return i.logNoParent(t,n.element(),e.purpose()),lE.complete()},function(o){return i.logEventResponse(t,n.element(),e.purpose()),lE.resume(o)})})},mE=function(n,t,e,o,r,i){return dE(n,t,e,o,r,i).fold(function(){return!0},function(o){return mE(n,t,e,o,r,i)},function(){return!1})},gE=function(n,t,e,o,r){var i=cE(e,o);return dE(n,t,e,o,i,r)},pE=function(n,t){var e=fE(t);return Xt(n,function(n){var t=n.descHandler(),o=ts(t);o(e)}),e.isStopped()},hE=function(n,t,e,o){var r=e.target();return vE(n,t,e,r,o)},vE=function(n,t,e,o,r){var i=cE(e,o);return mE(n,t,e,o,i,r)},bE=_a("element","descHandler"),yE=function(n,t){return{id:ft(n),descHandler:ft(t)}},xE=function(n){var t=n.dom,o=t.attributes,r=e(t,["attributes"]);return{uid:n.uid,dom:vt({tag:"div",attributes:vt({role:"presentation"},o)},r),components:n.components,behaviours:Fh(n.containerBehaviours),events:n.events,domModification:n.domModification,eventOrder:n.eventOrder}},wE=jv({name:"Container",factory:xE,configFields:[Br("components",[]),Mh("containerBehaviours",[]),Br("events",{}),Br("domModification",{}),Br("eventOrder",{})]}),SE=function(n){var t=function(t){return Va(n.element()).fold(function(){return!0},function(n){return Zi(t,n)})},e=g(),o=function(n,o){return e.find(t,n,o)},r=aE(n.element(),{triggerEvent:function(n,t){return fl(n,t.target(),function(e){return hE(o,n,t,e)})}}),i={debugInfo:ft("real"),triggerEvent:function(n,t,e){fl(n,t,function(r){return vE(o,n,e,t,r)})},triggerFocus:function(n,t){Bc(n).fold(function(){Ad(n)},function(){fl(Au(),n,function(e){return gE(o,Au(),{originator:ft(t),kill:at,prevent:at,target:ft(n)},n,e),!1})})},triggerEscape:function(n,t){i.triggerEvent("keydown",n.element(),t.event())},getByUid:function(n){return h(n)},getByDom:function(n){return v(n)},build:of,addToGui:function(n){c(n)},removeFromGui:function(n){s(n)},addToWorld:function(n){u(n)},removeFromWorld:function(n){a(n)},broadcast:function(n){d(n)},broadcastOn:function(n,t){m(n,t)},broadcastEvent:function(n,t){p(n,t)},isConnected:ft(!0)},u=function(n){n.connect(i),uc(n.element())||(e.register(n),Xt(n.components(),u),i.triggerEvent(Lu(),n.element(),{target:ft(n.element())}))},a=function(n){uc(n.element())||(Xt(n.components(),a),e.unregister(n)),n.disconnect()},c=function(t){wp(n,t)},s=function(n){kp(n)},f=function(){r.unbind(),$a(n.element())},l=function(n){var t=e.filter(Iu());Xt(t,function(t){var e=t.descHandler(),o=ts(e);o(n)})},d=function(n){l({universal:ft(!0),data:ft(n)})},m=function(n,t){l({universal:ft(!1),channels:ft(n),data:ft(t)})},p=function(n,t){var o=e.filter(n);return pE(o,t)},h=function(n){return e.getById(n).fold(function(){return _t.error(new Error('Could not find component with uid: "'+n+'" in system.'))},_t.value)},v=function(n){var t=Bc(n).getOr("not found");return h(t)};return u(n),{root:ft(n),element:n.element,destroy:f,add:c,remove:s,getByUid:h,getByDom:v,addToWorld:u,removeFromWorld:a,broadcast:d,broadcastOn:m,broadcastEvent:p}},CE=Sc("form-component-change"),kE=Sc("form-close"),OE=Sc("form-cancel"),_E=Sc("form-action"),TE=Sc("form-submit"),EE=Sc("form-block"),BE=Sc("form-unblock"),DE=Sc("form-tabchange"),AE=Sc("form-resize"),ME=function(n,t){return wE.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+n.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[cC.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:lC(n.icon,t.icons),attributes:{title:t.translate(n.iconTooltip)}},action:function(t){oa(t,_E,{name:"alert-banner",value:n.url})}})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(n.text)}}]})},FE=function(n,t){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:Gt(n.items,t.interpreter)}},IE=ft([Br("prefix","form-field"),Mh("fieldBehaviours",[Qv,Ah])]),RE=ft([dv({schema:[fr("dom")],name:"label"}),dv({factory:{sketch:function(n){return{uid:n.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:n.text}}}},schema:[fr("text")],name:"aria-descriptor"}),fv({factory:{sketch:function(n){var t=to(n,["factory"]);return n.factory.sketch(t)}},schema:[fr("factory")],name:"field"})]),VE=function(n,t){var e=Ih(n.fieldBehaviours,[Qv.config({find:function(t){return Ov(t,n,"field")}}),Ah.config({store:{mode:"manual",getValue:function(n){return Qv.getCurrent(n).bind(Ah.getValue)},setValue:function(n,t){Qv.getCurrent(n).each(function(n){Ah.setValue(n,t)})}}})]),o=ca([Sa(function(t){var e=Tv(t,n,["label","field","aria-descriptor"]);e.field().each(function(t){var o=Sc(n.prefix);e.label().each(function(n){cc(n.element(),"for",o),cc(t.element(),"id",o)}),e["aria-descriptor"]().each(function(e){var o=Sc(n.prefix);cc(e.element(),"id",o),cc(t.element(),"aria-describedby",o)})})})]),r={getField:function(t){return Ov(t,n,"field")},getLabel:function(t){return Ov(t,n,"label")}};return{uid:n.uid,dom:n.dom,components:t,behaviours:e,events:o,apis:r}},HE=Uv({name:"FormField",configFields:IE(),partFields:RE(),factory:VE,apis:{getField:function(n,t){return n.getField(t)},getLabel:function(n,t){return n.getLabel(t)}}}),NE=ft([wr("data"),Br("inputAttributes",{}),Br("inputStyles",{}),Br("tag","input"),Br("inputClasses",[]),xl("onSetValue"),Br("styles",{}),Br("eventOrder",{}),Mh("inputBehaviours",[Ah,mw]),Br("selectOnFocus",!0)]),PE=function(n){return bd([mw.config({onFocus:n.selectOnFocus?function(n){var t=n.element(),e=Us(t);t.dom().setSelectionRange(0,e.length)}:at})])},zE=function(n){return vt(vt({},PE(n)),Ih(n.inputBehaviours,[Ah.config({store:vt(vt({mode:"manual"},n.data.map(function(n){return{initialValue:n}}).getOr({})),{getValue:function(n){return Us(n.element())},setValue:function(n,t){var e=Us(n.element());e!==t&&Ws(n.element(),t)}}),onSetValue:n.onSetValue})]))},LE=function(n){return{tag:n.tag,attributes:vt({type:"text"},n.inputAttributes),styles:n.inputStyles,classes:n.inputClasses}},jE=function(n){return{uid:n.uid,dom:LE(n),components:[],behaviours:zE(n),eventOrder:n.eventOrder}},UE=jv({name:"Input",configFields:NE(),factory:jE}),WE={},GE={exports:WE};!function(n,t,e,o){!function(o){if("object"==typeof t&&"undefined"!=typeof e)e.exports=o();else if("function"==typeof n&&n.amd)n([],o);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.EphoxContactWrapper=o()}}(function(){return function(){function n(t,e,r){function i(a,c){if(!e[a]){if(!t[a]){var s="function"==typeof o&&o;if(!c&&s)return s(a,!0);if(u)return u(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var l=e[a]={exports:{}};t[a][0].call(l.exports,function(n){var e=t[a][1][n];return i(e||n)},l,l.exports,n,t,e,r)}return e[a].exports}for(var u="function"==typeof o&&o,a=0;a1)for(var e=1;et;t++)u(n,n._deferreds[t]);n._deferreds=null}function f(n,t,e){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=e}function l(n,t){var e=!1;try{n(function(n){e||(e=!0,a(t,n))},function(n){e||(e=!0,c(t,n))})}catch(o){if(e)return;e=!0,c(t,o)}}var d=setTimeout;i.prototype["catch"]=function(n){return this.then(null,n)},i.prototype.then=function(n,t){var e=new this.constructor(o);return u(this,new f(n,t,e)),e},i.all=function(n){var t=Array.prototype.slice.call(n);return new i(function(n,e){function o(i,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var a=u.then;if("function"==typeof a)return void a.call(u,function(n){o(i,n)},e)}t[i]=u,0===--r&&n(t)}catch(c){e(c)}}if(0===t.length)return n([]);for(var r=t.length,i=0;io;o++)n[o].then(t,e)})},i._immediateFn="function"==typeof n?function(t){n(t)}:function(n){d(n,0)},i._unhandledRejectionFn=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)},i._setImmediateFn=function(n){i._immediateFn=n},i._setUnhandledRejectionFn=function(n){i._unhandledRejectionFn=n},"undefined"!=typeof t&&t.exports?t.exports=i:e.Promise||(e.Promise=i)}(this)}).call(this,n("timers").setImmediate)},{timers:3}],3:[function(n,t,e){(function(t,o){function r(n,t){this._id=n,this._clearFn=t}var i=n("process/browser.js").nextTick,u=Function.prototype.apply,a=Array.prototype.slice,c={},s=0;e.setTimeout=function(){return new r(u.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(u.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(n){n.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(n,t){clearTimeout(n._idleTimeoutId),n._idleTimeout=t},e.unenroll=function(n){clearTimeout(n._idleTimeoutId),n._idleTimeout=-1},e._unrefActive=e.active=function(n){clearTimeout(n._idleTimeoutId);var t=n._idleTimeout;t>=0&&(n._idleTimeoutId=setTimeout(function(){n._onTimeout&&n._onTimeout()},t))},e.setImmediate="function"==typeof t?t:function(n){var t=s++,o=arguments.length<2?!1:a.call(arguments,1);return c[t]=!0,i(function(){c[t]&&(o?n.apply(null,o):n.call(null),e.clearImmediate(t))}),t},e.clearImmediate="function"==typeof o?o:function(n){delete c[n]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(n,t){var e=n("promise-polyfill"),o=function(){return"undefined"!=typeof window?window:Function("return this;")()}();t.exports={boltExport:o.Promise||e}},{"promise-polyfill":2}]},{},[4])(4)})}(void 0,WE,GE,void 0);var XE,YE=GE.exports.boltExport,qE=function(t){var e=St.none(),o=[],r=function(n){return qE(function(t){i(function(e){t(n(e))})})},i=function(n){a()?s(n):o.push(n)},u=function(n){e=St.some(n),c(o),o=[]},a=function(){return e.isSome()},c=function(n){Xt(n,s)},s=function(t){e.each(function(e){n.setTimeout(function(){t(e)},0)})};return t(u),{get:i,map:r,isReady:a}},KE=function(n){return qE(function(t){t(n)})},JE={nu:qE,pure:KE},$E=function(t){n.setTimeout(function(){throw t},0)},QE=function(n){var t=function(t){n().then(t,$E)},e=function(t){return QE(function(){return n().then(t)})},o=function(t){return QE(function(){return n().then(function(n){return t(n).toPromise()})})},r=function(t){return QE(function(){return n().then(function(){return t.toPromise()})})},i=function(){return JE.nu(t)},u=function(){var t=null;return QE(function(){return null===t&&(t=n()),t})},a=n;return{map:e,bind:o,anonBind:r,toLazy:i,toCached:u,toPromise:a,get:t}},ZE=function(n){return QE(function(){return new YE(n)})},nB=function(n){return QE(function(){return YE.resolve(n)})},tB={nu:ZE,pure:nB},eB=["input","textarea"],oB=function(n){var t=ec(n);return Lt(eB,t)},rB=function(n,t){var e=t.getRoot(n).getOr(n.element());Cs(e,t.invalidClass),t.notify.each(function(t){oB(n.element())&&cc(n.element(),"aria-invalid",!1),t.getContainer(n).each(function(n){nc(n,t.validHtml)}),t.onValid(n)})},iB=function(n,t,e,o){var r=t.getRoot(n).getOr(n.element());ws(r,t.invalidClass),t.notify.each(function(t){oB(n.element())&&cc(n.element(),"aria-invalid",!0),t.getContainer(n).each(function(n){nc(n,o)}),t.onInvalid(n,o)})},uB=function(n,t){return t.validator.fold(function(){return tB.pure(_t.value(!0))},function(t){return t.validate(n)})},aB=function(n,t,e){return t.notify.each(function(t){t.onValidate(n)}),uB(n,t).map(function(o){return n.getSystem().isConnected()?o.fold(function(o){return iB(n,t,e,o),_t.error(o) -},function(e){return rB(n,t),_t.value(e)}):_t.error("No longer in system")})},cB=function(n,t){var e=t.getRoot(n).getOr(n.element());return ks(e,t.invalidClass)},sB=Object.freeze({__proto__:null,markValid:rB,markInvalid:iB,query:uB,run:aB,isInvalid:cB}),fB=function(n,t){return n.validator.map(function(e){return ca([da(e.onEvent,function(e){aB(e,n,t).get(lt)})].concat(e.validateOnLoad?[Sa(function(e){aB(e,n,t).get(at)})]:[]))}).getOr({})},lB=Object.freeze({__proto__:null,events:fB}),dB=[fr("invalidClass"),Br("getRoot",St.none),Tr("notify",[Br("aria","alert"),Br("getContainer",St.none),Br("validHtml",""),xl("onValid"),xl("onInvalid"),xl("onValidate")]),Tr("validator",[fr("validate"),Br("onEvent","input"),Br("validateOnLoad",!0)])],mB=xd({fields:dB,name:"invalidating",active:lB,apis:sB,extra:{validation:function(n){return function(t){var e=Ah.getValue(t);return tB.pure(n(e))}}}}),gB=function(n,t){return qc({attributes:oo([{key:t.tabAttr,value:"true"}])})},pB=Object.freeze({__proto__:null,exhibit:gB}),hB=[Br("tabAttr","data-alloy-tabstop")],vB=xd({fields:hB,name:"tabstopping",active:pB}),bB=function(n,t,e,o){var r=xB(n,t,e,o);return HE.sketch(r)},yB=function(n,t){return bB(n,t,[],[])},xB=function(n,t,e,o){return{dom:SB(e),components:n.toArray().concat([t]),fieldBehaviours:bd(o)}},wB=function(){return SB([])},SB=function(n){return{tag:"div",classes:["tox-form__group"].concat(n)}},CB=function(n,t){return HE.parts().label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(n)}})},kB=function(n,t,e,o){return e.getOrCreate(n,t,o)},OB=Object.freeze({__proto__:null,getCoupled:kB}),_B=[lr("others",Yo(_t.value,tr()))],TB=function(){var n={},t=function(t,e,o){var r=de(e.others);if(r)return xe(n,o).getOrThunk(function(){var r=xe(e.others,o).getOrDie("No information found for coupled component: "+o),i=r(t),u=t.getSystem().build(i);return n[o]=u,u});throw new Error("Cannot find coupled component: "+o+". Known coupled components: "+JSON.stringify(r,null,2))},e=ft({});return Uc({readState:e,getOrCreate:t})},EB=Object.freeze({__proto__:null,init:TB}),BB=xd({fields:_B,name:"coupling",apis:OB,state:EB}),DB=ft("sink"),AB=ft(dv({name:DB(),overrides:ft({dom:{tag:"div"},behaviours:bd([pp.config({useFixed:pt})]),events:ca([ya(Cu()),ya(hu()),ya(Tu())])})}));!function(n){n[n.HighlightFirst=0]="HighlightFirst",n[n.HighlightNone=1]="HighlightNone"}(XE||(XE={}));var MB,FB=function(n,t){var e=n.getHotspot(t).getOr(t),o="hotspot",r=n.getAnchorOverrides();return n.layouts.fold(function(){return{anchor:o,hotspot:e,overrides:r}},function(n){return{anchor:o,hotspot:e,overrides:r,layouts:n}})},IB=function(n,t,e){var o=n.fetch;return o(e).map(t)},RB=function(n,t,e,o,r,i,u){var a=IB(n,t,o),c=zB(o,n);return a.map(function(n){return n.bind(function(n){return St.from(pS.sketch(vt(vt({},i.menu()),{uid:Dc(""),data:n,highlightImmediately:u===XE.HighlightFirst,onOpenMenu:function(n,t){var o=c().getOrDie();pp.position(o,e,t),Kp.decloak(r)},onOpenSubmenu:function(n,t,e){var o=c().getOrDie();pp.position(o,{anchor:"submenu",item:t},e),Kp.decloak(r)},onRepositionMenu:function(n,t,o){var r=c().getOrDie();pp.position(r,e,t),Xt(o,function(n){pp.position(r,{anchor:"submenu",item:n.triggeringItem},n.triggeredMenu)})},onEscape:function(){return mw.focus(o),Kp.close(r),St.some(!0)}})))})})},VB=function(n,t,e,o,r,i,u){var a=FB(n,e),c=RB(n,t,a,e,o,r,u);return c.map(function(n){return n.fold(function(){Kp.isOpen(o)&&Kp.close(o)},function(n){Kp.cloak(o),Kp.open(o,n),i(o)}),o})},HB=function(n,t,e,o){return Kp.close(o),tB.pure(o)},NB=function(n,t,e,o,r,i){var u=BB.getCoupled(e,"sandbox"),a=Kp.isOpen(u),c=a?HB:VB;return c(n,t,e,u,o,r,i)},PB=function(n,t,e){var o=Qv.getCurrent(t).getOr(t),r=bf(n.element());e?Fs(o.element(),"min-width",r+"px"):vf(o.element(),r)},zB=function(n,t){return n.getSystem().getByUid(t.uid+"-"+DB()).map(function(n){return function(){return _t.value(n)}}).getOrThunk(function(){return t.lazySink.fold(function(){return function(){return _t.error(new Error("No internal sink is specified, nor could an external sink be found"))}},function(t){return function(){return t(n)}})})},LB=function(n){Kp.getState(n).each(function(n){pS.repositionMenus(n)})},jB=function(n,t,e){var o=Zf(),r=function(r,i){var u=FB(n,t);o.link(t.element()),n.matchWidth&&PB(u.hotspot,i,n.useMinWidth),n.onOpen(u,r,i),void 0!==e&&void 0!==e.onOpen&&e.onOpen(r,i)},i=function(n,r){o.unlink(t.element()),void 0!==e&&void 0!==e.onClose&&e.onClose(n,r)},u=zB(t,n);return{dom:{tag:"div",classes:n.sandboxClasses,attributes:{id:o.id(),role:"listbox"}},behaviours:Rh.augment(n.sandboxBehaviours,[Ah.config({store:{mode:"memory",initialValue:t}}),Kp.config({onOpen:r,onClose:i,isPartOf:function(n,e,o){return tl(e,o)||tl(t,o)},getAttachPoint:function(){return u().getOrDie()}}),Qv.config({find:function(n){return Kp.getState(n).bind(function(n){return Qv.getCurrent(n)})}}),Ed.config({channels:vt(vt({},nh({isExtraPart:gt})),eh({doReposition:LB}))})])}},UB=function(n){var t=BB.getCoupled(n,"sandbox");LB(t)},WB=function(){return[Br("sandboxClasses",[]),Rh.field("sandboxBehaviours",[Qv,Ed,Kp,Ah])]},GB=ft([fr("dom"),fr("fetch"),xl("onOpen"),wl("onExecute"),Br("getHotspot",St.some),Br("getAnchorOverrides",ft({})),Om(),Mh("dropdownBehaviours",[Mw,BB,Xx,mw]),fr("toggleClass"),Br("eventOrder",{}),wr("lazySink"),Br("matchWidth",!1),Br("useMinWidth",!1),wr("role")].concat(WB())),XB=ft([lv({schema:[vl()],name:"menu",defaults:function(n){return{onExecute:n.onExecute}}}),AB()]),YB=function(n,t,e,o){var r,i=function(t){return xe(n.dom,"attributes").bind(function(n){return xe(n,t)})},u=function(n){Kp.getState(n).each(function(n){pS.highlightPrimary(n)})},a=function(t){var e=u;NB(n,function(n){return n},t,o,e,XE.HighlightFirst).get(at)},c={expand:function(t){Mw.isOn(t)||NB(n,function(n){return n},t,o,at,XE.HighlightNone).get(at)},open:function(t){Mw.isOn(t)||NB(n,function(n){return n},t,o,at,XE.HighlightFirst).get(at)},isOpen:Mw.isOn,close:function(t){Mw.isOn(t)&&NB(n,function(n){return n},t,o,at,XE.HighlightFirst).get(at)},repositionMenus:function(n){Mw.isOn(n)&&UB(n)}},s=function(n){return ra(n),St.some(!0)};return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.dropdownBehaviours,[Mw.config({toggleClass:n.toggleClass,aria:{mode:"expanded"}}),BB.config({others:{sandbox:function(t){return jB(n,t,{onOpen:function(){Mw.on(t)},onClose:function(){Mw.off(t)}})}}}),Xx.config({mode:"special",onSpace:s,onEnter:s,onDown:function(n){if(qB.isOpen(n)){var t=BB.getCoupled(n,"sandbox");u(t)}else qB.open(n);return St.some(!0)},onEscape:function(n){return qB.isOpen(n)?(qB.close(n),St.some(!0)):St.none()}}),mw.config({})]),events:Iw(St.some(a)),eventOrder:vt(vt({},n.eventOrder),(r={},r[Ru()]=["disabling","toggling","alloy.base.behaviour"],r)),apis:c,domModification:{attributes:vt(vt({"aria-haspopup":"true"},n.role.fold(function(){return{}},function(n){return{role:n}})),"button"===n.dom.tag?{type:i("type").getOr("button")}:{})}}},qB=Uv({name:"Dropdown",configFields:GB(),partFields:XB(),factory:YB,apis:{open:function(n,t){return n.open(t)},expand:function(n,t){return n.expand(t)},close:function(n,t){return n.close(t)},isOpen:function(n,t){return n.isOpen(t)},repositionMenus:function(n,t){return n.repositionMenus(t)}}}),KB=function(){return qc({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},JB=function(){return ca([sa(Bu(),ft(!0))])},$B=Object.freeze({__proto__:null,events:JB,exhibit:KB}),QB=xd({fields:[],name:"unselecting",active:$B}),ZB=function(n,t){return qB.sketch({dom:n.dom,components:n.components,toggleClass:"mce-active",dropdownBehaviours:bd([QB.config({}),vB.config({})]),layouts:n.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:function(e){return tB.nu(function(t){return n.fetch(t)}).map(function(o){return St.from(jT(Be(xT(Sc("menu-value"),o,function(t){n.onItemAction(e,t)},n.columns,n.presets,FO.CLOSE_ON_EXECUTE,function(){return!1},t.providers),{movement:ST(n.columns,n.presets)})))})},parts:{menu:cT(!1,1,n.presets)}})},nD=Sc("color-input-change"),tD=Sc("color-swatch-change"),eD=Sc("color-picker-cancel"),oD=function(n,t,e){var o=HE.parts().field({factory:UE,inputClasses:["tox-textfield"],onSetValue:function(n){return mB.run(n).get(function(){})},inputBehaviours:bd([vB.config({}),mB.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(n){return Va(n.element())},notify:{onValid:function(n){var t=Ah.getValue(n);oa(n,nD,{color:t})}},validator:{validateOnLoad:!1,validate:function(n){var t=Ah.getValue(n);if(0===t.length)return tB.pure(_t.value(!0));var e=Xr.fromTag("span");Fs(e,"background-color",t);var o=Ns(e,"background-color").fold(function(){return _t.error("blah")},function(){return _t.value(t)});return tB.pure(o)}}})]),selectOnFocus:!1}),r=n.label.map(function(n){return CB(n,t.providers)}),i=function(n,t){oa(n,tD,{value:t})},u=function(n,t){a.getOpt(n).each(function(n){"custom"===t?e.colorPicker(function(t){t.fold(function(){return ea(n,eD)},function(t){i(n,t),M_.addColor(t)})},"#ffffff"):"remove"===t?i(n,""):i(n,t)})},a=sC(ZB({dom:{tag:"span",attributes:{"aria-label":t.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[Ql,$l,ed]},onLtr:function(){return[$l,Ql,ed]}},components:[],fetch:eT.getFetch(e.getColors(),e.hasCustomColors()),columns:e.getColorCols(),presets:"color",onItemAction:u},t));return HE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:r.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[o,a.asSpec()]}]),fieldBehaviours:bd([rw("form-field-events",[da(nD,function(t,e){a.getOpt(t).each(function(n){Fs(n.element(),"background-color",e.event().color())}),oa(t,CE,{name:n.name})}),da(tD,function(n,t){HE.getField(n).each(function(e){Ah.setValue(e,t.event().value()),Qv.getCurrent(n).each(mw.focus)})}),da(eD,function(n){HE.getField(n).each(function(){Qv.getCurrent(n).each(mw.focus)})})])])})},rD=function(n,t,e){return{hue:ft(n),saturation:ft(t),value:ft(e)}},iD=function(n){var t=0,e=0,o=0,r=n.red()/255,i=n.green()/255,u=n.blue()/255,a=Math.min(r,Math.min(i,u)),c=Math.max(r,Math.max(i,u));if(a===c)return o=a,rD(0,0,100*o);var s=r===a?i-u:u===a?r-i:u-r;return t=r===a?3:u===a?1:5,t=60*(t-s/(c-a)),e=(c-a)/c,o=c,rD(Math.round(t),Math.round(100*e),Math.round(100*o))},uD=function(n){var t=(100-n)/100*360,e=rD(t,100,100),o=g_(e);return u_(o)},aD=ft(Sc("rgb-hex-update")),cD=ft(Sc("slider-update")),sD=ft(Sc("palette-update")),fD=dv({schema:[fr("dom")],name:"label"}),lD=function(n){return dv({name:""+n+"-edge",overrides:function(t){var e=t.model.manager.edgeActions[n];return e.fold(function(){return{}},function(n){return{events:ca([ma(du(),function(t,e,o){return n(t,o)},[t]),ma(hu(),function(t,e,o){return n(t,o)},[t]),ma(vu(),function(t,e,o){o.mouseIsDown.get()&&n(t,o)},[t])])}})}})},dD=lD("top-left"),mD=lD("top"),gD=lD("top-right"),pD=lD("right"),hD=lD("bottom-right"),vD=lD("bottom"),bD=lD("bottom-left"),yD=lD("left"),xD=fv({name:"thumb",defaults:ft({dom:{styles:{position:"absolute"}}}),overrides:function(n){return{events:ca([va(du(),n,"spectrum"),va(mu(),n,"spectrum"),va(gu(),n,"spectrum"),va(hu(),n,"spectrum"),va(vu(),n,"spectrum"),va(yu(),n,"spectrum")])}}}),wD=fv({schema:[Pr("mouseIsDown",function(){return zr(!1)})],name:"spectrum",overrides:function(n){var t=n.model,e=t.manager,o=function(t,o){return e.getValueFromEvent(o).map(function(o){return e.setValueFrom(t,n,o)})};return{behaviours:bd([Xx.config({mode:"special",onLeft:function(t){return e.onLeft(t,n)},onRight:function(t){return e.onRight(t,n)},onUp:function(t){return e.onUp(t,n)},onDown:function(t){return e.onDown(t,n)}}),mw.config({})]),events:ca([da(du(),o),da(mu(),o),da(hu(),o),da(vu(),function(t,e){n.mouseIsDown.get()&&o(t,e)})])}}}),SD=[fD,yD,pD,mD,vD,dD,gD,bD,hD,xD,wD],CD="slider.change.value",kD=ft(CD),OD=function(n){return-1!==n.type.indexOf("touch")},_D=function(n){var t=n.event().raw();if(OD(t)){var e=t;return void 0!==e.touches&&1===e.touches.length?St.some(e.touches[0]).map(function(n){return lf(n.clientX,n.clientY)}):St.none()}var o=t;return void 0!==o.clientX?St.some(o).map(function(n){return lf(n.clientX,n.clientY)}):St.none()},TD="top",ED="right",BD="bottom",DD="left",AD=function(n){return n.model.minX},MD=function(n){return n.model.minY},FD=function(n){return n.model.minX-1},ID=function(n){return n.model.minY-1},RD=function(n){return n.model.maxX},VD=function(n){return n.model.maxY},HD=function(n){return n.model.maxX+1},ND=function(n){return n.model.maxY+1},PD=function(n,t,e){return t(n)-e(n)},zD=function(n){return PD(n,RD,AD)},LD=function(n){return PD(n,VD,MD)},jD=function(n){return zD(n)/2},UD=function(n){return LD(n)/2},WD=function(n){return n.stepSize},GD=function(n){return n.snapToGrid},XD=function(n){return n.snapStart},YD=function(n){return n.rounded},qD=function(n,t){return void 0!==n[t+"-edge"]},KD=function(n){return qD(n,DD)},JD=function(n){return qD(n,ED)},$D=function(n){return qD(n,TD)},QD=function(n){return qD(n,BD)},ZD=function(n){return n.model.value.get()},nA=function(n){return{x:ft(n)}},tA=function(n){return{y:ft(n)}},eA=function(n,t){return{x:ft(n),y:ft(t)}},oA=function(n,t){oa(n,kD(),{value:t})},rA=function(n,t){oA(n,eA(FD(t),ID(t)))},iA=function(n,t){oA(n,tA(ID(t)))},uA=function(n,t){oA(n,eA(jD(t),ID(t)))},aA=function(n,t){oA(n,eA(HD(t),ID(t)))},cA=function(n,t){oA(n,nA(HD(t)))},sA=function(n,t){oA(n,eA(HD(t),UD(t)))},fA=function(n,t){oA(n,eA(HD(t),ND(t)))},lA=function(n,t){oA(n,tA(ND(t)))},dA=function(n,t){oA(n,eA(jD(t),ND(t)))},mA=function(n,t){oA(n,eA(FD(t),ND(t)))},gA=function(n,t){oA(n,nA(FD(t)))},pA=function(n,t){oA(n,eA(FD(t),UD(t)))},hA=function(n,t,e,o){return t>n?n:n>e?e:n===t?t-1:Math.max(t,n-o)},vA=function(n,t,e,o){return n>e?n:t>n?t:n===e?e+1:Math.min(e,n+o)},bA=function(n,t,e){return Math.max(t,Math.min(e,n))},yA=function(n,t,e,o,r){return r.fold(function(){var r=n-t,i=Math.round(r/o)*o;return bA(t+i,t-1,e+1)},function(t){var r=(n-t)%o,i=Math.round(r/o),u=Math.floor((n-t)/o),a=Math.floor((e-t)/o),c=Math.min(a,u+i),s=t+c*o;return Math.max(t,s)})},xA=function(n,t,e){return Math.min(e,Math.max(n,t))-t},wA=function(n){var t=n.min,e=n.max,o=n.range,r=n.value,i=n.step,u=n.snap,a=n.snapStart,c=n.rounded,s=n.hasMinEdge,f=n.hasMaxEdge,l=n.minBound,d=n.maxBound,m=n.screenRange,g=s?t-1:t,p=f?e+1:e;if(l>r)return g;if(r>d)return p;var h=xA(r,l,d),v=bA(h/m*o+t,g,p);return u&&v>=t&&e>=v?yA(v,t,e,i,a):c?Math.round(v):v},SA=function(n){var t=n.min,e=n.max,o=n.range,r=n.value,i=n.hasMinEdge,u=n.hasMaxEdge,a=n.maxBound,c=n.maxOffset,s=n.centerMinEdge,f=n.centerMaxEdge;return t>r?i?0:s:r>e?u?a:f:(r-t)/o*c},CA="top",kA="right",OA="bottom",_A="left",TA="width",EA="height",BA=function(n){return n.element().dom().getBoundingClientRect()},DA=function(n,t){return n[t]},AA=function(n){var t=BA(n);return DA(t,_A)},MA=function(n){var t=BA(n);return DA(t,kA)},FA=function(n){var t=BA(n);return DA(t,CA)},IA=function(n){var t=BA(n);return DA(t,OA)},RA=function(n){var t=BA(n);return DA(t,TA)},VA=function(n){var t=BA(n);return DA(t,EA)},HA=function(n,t,e){return(n+t)/2-e},NA=function(n,t){var e=BA(n),o=BA(t),r=DA(e,_A),i=DA(e,kA),u=DA(o,_A);return HA(r,i,u)},PA=function(n,t){var e=BA(n),o=BA(t),r=DA(e,CA),i=DA(e,OA),u=DA(o,CA);return HA(r,i,u)},zA=function(n,t){oa(n,kD(),{value:t})},LA=function(n){return{x:ft(n)}},jA=function(n,t,e){var o={min:AD(t),max:RD(t),range:zD(t),value:e,step:WD(t),snap:GD(t),snapStart:XD(t),rounded:YD(t),hasMinEdge:KD(t),hasMaxEdge:JD(t),minBound:AA(n),maxBound:MA(n),screenRange:RA(n)};return wA(o)},UA=function(n,t,e){var o=jA(n,t,e),r=LA(o);return zA(n,r),o},WA=function(n,t){var e=AD(t);zA(n,LA(e))},GA=function(n,t){var e=RD(t);zA(n,LA(e))},XA=function(n,t,e){var o=n>0?vA:hA,r=o(ZD(e).x(),AD(e),RD(e),WD(e));return zA(t,LA(r)),St.some(r)},YA=function(n){return function(t,e){return XA(n,t,e).map(function(){return!0})}},qA=function(n){var t=_D(n);return t.map(function(n){return n.left()})},KA=function(n,t,e,o,r){var i=0,u=RA(n),a=o.bind(function(t){return St.some(NA(t,n))}).getOr(i),c=r.bind(function(t){return St.some(NA(t,n))}).getOr(u),s={min:AD(t),max:RD(t),range:zD(t),value:e,hasMinEdge:KD(t),hasMaxEdge:JD(t),minBound:AA(n),minOffset:i,maxBound:MA(n),maxOffset:u,centerMinEdge:a,centerMaxEdge:c};return SA(s)},JA=function(n,t,e,o,r,i){var u=KA(t,i,e,o,r);return AA(t)-AA(n)+u},$A=function(n,t,e,o){var r=ZD(e),i=JA(n,o.getSpectrum(n),r.x(),o.getLeftEdge(n),o.getRightEdge(n),e),u=bf(t.element())/2;Fs(t.element(),"left",i-u+"px")},QA=YA(-1),ZA=YA(1),nM=St.none,tM=St.none,eM={"top-left":St.none(),top:St.none(),"top-right":St.none(),right:St.some(cA),"bottom-right":St.none(),bottom:St.none(),"bottom-left":St.none(),left:St.some(gA)},oM=Object.freeze({__proto__:null,setValueFrom:UA,setToMin:WA,setToMax:GA,findValueOfOffset:jA,getValueFromEvent:qA,findPositionOfValue:JA,setPositionFromValue:$A,onLeft:QA,onRight:ZA,onUp:nM,onDown:tM,edgeActions:eM}),rM=function(n,t){oa(n,kD(),{value:t})},iM=function(n){return{y:ft(n)}},uM=function(n,t,e){var o={min:MD(t),max:VD(t),range:LD(t),value:e,step:WD(t),snap:GD(t),snapStart:XD(t),rounded:YD(t),hasMinEdge:$D(t),hasMaxEdge:QD(t),minBound:FA(n),maxBound:IA(n),screenRange:VA(n)};return wA(o)},aM=function(n,t,e){var o=uM(n,t,e),r=iM(o);return rM(n,r),o},cM=function(n,t){var e=MD(t);rM(n,iM(e))},sM=function(n,t){var e=VD(t);rM(n,iM(e))},fM=function(n,t,e){var o=n>0?vA:hA,r=o(ZD(e).y(),MD(e),VD(e),WD(e));return rM(t,iM(r)),St.some(r)},lM=function(n){return function(t,e){return fM(n,t,e).map(function(){return!0})}},dM=function(n){var t=_D(n);return t.map(function(n){return n.top()})},mM=function(n,t,e,o,r){var i=0,u=VA(n),a=o.bind(function(t){return St.some(PA(t,n))}).getOr(i),c=r.bind(function(t){return St.some(PA(t,n))}).getOr(u),s={min:MD(t),max:VD(t),range:LD(t),value:e,hasMinEdge:$D(t),hasMaxEdge:QD(t),minBound:FA(n),minOffset:i,maxBound:IA(n),maxOffset:u,centerMinEdge:a,centerMaxEdge:c};return SA(s)},gM=function(n,t,e,o,r,i){var u=mM(t,i,e,o,r);return FA(t)-FA(n)+u},pM=function(n,t,e,o){var r=ZD(e),i=gM(n,o.getSpectrum(n),r.y(),o.getTopEdge(n),o.getBottomEdge(n),e),u=af(t.element())/2;Fs(t.element(),"top",i-u+"px")},hM=St.none,vM=St.none,bM=lM(-1),yM=lM(1),xM={"top-left":St.none(),top:St.some(iA),"top-right":St.none(),right:St.none(),"bottom-right":St.none(),bottom:St.some(lA),"bottom-left":St.none(),left:St.none()},wM=Object.freeze({__proto__:null,setValueFrom:aM,setToMin:cM,setToMax:sM,findValueOfOffset:uM,getValueFromEvent:dM,findPositionOfValue:gM,setPositionFromValue:pM,onLeft:hM,onRight:vM,onUp:bM,onDown:yM,edgeActions:xM}),SM=function(n,t){oa(n,kD(),{value:t})},CM=function(n,t){return{x:ft(n),y:ft(t)}},kM=function(n,t,e){var o=jA(n,t,e.left()),r=uM(n,t,e.top()),i=CM(o,r);return SM(n,i),i},OM=function(n,t,e,o){var r=n>0?vA:hA,i=t?ZD(o).x():r(ZD(o).x(),AD(o),RD(o),WD(o)),u=t?r(ZD(o).y(),MD(o),VD(o),WD(o)):ZD(o).y();return SM(e,CM(i,u)),St.some(i)},_M=function(n,t){return function(e,o){return OM(n,t,e,o).map(function(){return!0})}},TM=function(n,t){var e=AD(t),o=MD(t);SM(n,CM(e,o))},EM=function(n,t){var e=RD(t),o=VD(t);SM(n,CM(e,o))},BM=function(n){return _D(n)},DM=function(n,t,e,o){var r=ZD(e),i=JA(n,o.getSpectrum(n),r.x(),o.getLeftEdge(n),o.getRightEdge(n),e),u=gM(n,o.getSpectrum(n),r.y(),o.getTopEdge(n),o.getBottomEdge(n),e),a=bf(t.element())/2,c=af(t.element())/2;Fs(t.element(),"left",i-a+"px"),Fs(t.element(),"top",u-c+"px")},AM=_M(-1,!1),MM=_M(1,!1),FM=_M(-1,!0),IM=_M(1,!0),RM={"top-left":St.some(rA),top:St.some(uA),"top-right":St.some(aA),right:St.some(sA),"bottom-right":St.some(fA),bottom:St.some(dA),"bottom-left":St.some(mA),left:St.some(pA)},VM=Object.freeze({__proto__:null,setValueFrom:kM,setToMin:TM,setToMax:EM,getValueFromEvent:BM,setPositionFromValue:DM,onLeft:AM,onRight:MM,onUp:FM,onDown:IM,edgeActions:RM}),HM=[Br("stepSize",1),Br("onChange",at),Br("onChoose",at),Br("onInit",at),Br("onDragStart",at),Br("onDragEnd",at),Br("snapToGrid",!1),Br("rounded",!0),wr("snapStart"),lr("model",nr("mode",{x:[Br("minX",0),Br("maxX",100),Pr("value",function(n){return zr(n.mode.minX)}),fr("getInitialValue"),kl("manager",oM)],y:[Br("minY",0),Br("maxY",100),Pr("value",function(n){return zr(n.mode.minY)}),fr("getInitialValue"),kl("manager",wM)],xy:[Br("minX",0),Br("maxX",100),Br("minY",0),Br("maxY",100),Pr("value",function(n){return zr({x:ft(n.mode.minX),y:ft(n.mode.minY)})}),fr("getInitialValue"),kl("manager",VM)]})),Mh("sliderBehaviours",[Xx,Ah]),Pr("mouseIsDown",function(){return zr(!1)})],NM=function(n,t){var e,o=function(t){return _v(t,n,"thumb")},r=function(t){return _v(t,n,"spectrum")},i=function(t){return Ov(t,n,"left-edge")},u=function(t){return Ov(t,n,"right-edge")},a=function(t){return Ov(t,n,"top-edge")},c=function(t){return Ov(t,n,"bottom-edge")},s=n.model,f=s.manager,l=function(t,e){f.setPositionFromValue(t,e,n,{getLeftEdge:i,getRightEdge:u,getTopEdge:a,getBottomEdge:c,getSpectrum:r})},d=function(t,e){s.value.set(e);var r=o(t);return l(t,r),n.onChange(t,r,e),St.some(!0)},m=function(t){f.setToMin(t,n)},g=function(t){f.setToMax(t,n)},p=function(t){var e=function(){Ov(t,n,"thumb").each(function(e){var o=s.value.get();n.onChoose(t,e,o)})},o=n.mouseIsDown.get();n.mouseIsDown.set(!1),o&&e()},h=function(t,e){e.stop(),n.mouseIsDown.set(!0),n.onDragStart(t,o(t))},v=function(t,e){e.stop(),n.onDragEnd(t,o(t)),p(t)};return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.sliderBehaviours,[Xx.config({mode:"special",focusIn:function(t){return Ov(t,n,"spectrum").map(Xx.focusIn).map(ft(!0))}}),Ah.config({store:{mode:"manual",getValue:function(){return s.value.get()}}}),Ed.config({channels:(e={},e[Qp()]={onReceive:p},e)})]),events:ca([da(kD(),function(n,t){d(n,t.event().value())}),Sa(function(t){var e=s.getInitialValue();s.value.set(e);var i=o(t);l(t,i);var u=r(t);n.onInit(t,i,u,s.value.get())}),da(du(),h),da(gu(),v),da(hu(),h),da(yu(),v)]),apis:{resetToMin:m,resetToMax:g,changeValue:d,refresh:l},domModification:{styles:{position:"relative"}}}},PM=Uv({name:"Slider",configFields:HM,partFields:SD,factory:NM,apis:{resetToMin:function(n,t){n.resetToMin(t)},resetToMax:function(n,t){n.resetToMax(t)},refresh:function(n,t){n.refresh(t)}}}),zM=function(n,t){var e=PM.parts().spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),o=PM.parts().thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return PM.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:ft({y:ft(0)})},components:[e,o],sliderBehaviours:bd([mw.config({})]),onChange:function(n,t,e){oa(n,cD(),{value:e})}})},LM="form",jM=[Mh("formBehaviours",[Ah])],UM=function(n){return""},WM=function(n){var t=function(){var n=[],t=function(t,e){return n.push(t),xv(LM,UM(t),e)};return{field:t,record:function(){return n}}}(),e=n(t),o=t.record(),r=Gt(o,function(n){return fv({name:n,pname:UM(n)})});return Hv(LM,jM,r,XM,e)},GM=function(n,t){return n.fold(function(){return _t.error(t)},_t.value)},XM=function(n,t){return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.formBehaviours,[Ah.config({store:{mode:"manual",getValue:function(t){var e=Ev(t,n);return pe(e,function(n,t){return n().bind(function(n){var e=Qv.getCurrent(n);return GM(e,new Error("Cannot find a current component to extract the value from for form part '"+t+"': "+vc(n.element())))}).map(Ah.getValue)})},setValue:function(t,e){ge(e,function(e,o){Ov(t,n,o).each(function(n){Qv.getCurrent(n).each(function(n){Ah.setValue(n,e)})})})}}})]),apis:{getField:function(t,e){return Ov(t,n,e).bind(Qv.getCurrent)}}}},YM={getField:Lc(function(n,t,e){return n.getField(t,e)}),sketch:WM},qM=Sc("valid-input"),KM=Sc("invalid-input"),JM=Sc("validating-input"),$M="colorcustom.rgb.",QM=function(n,t,e,o){var r=function(e,o){return mB.config({invalidClass:t("invalid"),notify:{onValidate:function(n){oa(n,JM,{type:e})},onValid:function(n){oa(n,qM,{type:e,value:Ah.getValue(n)})},onInvalid:function(n){oa(n,KM,{type:e,value:Ah.getValue(n)})}},validator:{validate:function(t){var e=Ah.getValue(t),r=o(e)?_t.value(!0):_t.error(n("aria.input.invalid"));return tB.pure(r)},validateOnLoad:!1}})},i=function(e,o,i,u,a){var c=n($M+"range"),s=HE.parts().label({dom:{tag:"label",innerHtml:i,attributes:{"aria-label":u}}}),f=HE.parts().field({data:a,factory:UE,inputAttributes:vt({type:"text"},"hex"===o?{"aria-live":"polite"}:{}),inputClasses:[t("textfield")],inputBehaviours:bd([r(o,e),vB.config({})]),onSetValue:function(n){if(mB.isInvalid(n)){var t=mB.run(n);t.get(at)}}}),l=[s,f],d="hex"!==o?[HE.parts()["aria-descriptor"]({text:c})]:[],m=l.concat(d);return{dom:{tag:"div",attributes:{role:"presentation"}},components:m}},u=function(n,t){var e=u_(t);return YM.getField(n,"hex").each(function(t){mw.isFocused(t)||Ah.setValue(n,{hex:e.value()})}),e},a=function(n,t){var e=t.red(),o=t.green(),r=t.blue();Ah.setValue(n,{red:e,green:o,blue:r})},c=sC({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),s=function(n,t){c.getOpt(n).each(function(n){Fs(n.element(),"background-color","#"+t.value())})},f=function(){var r={red:ft(zr(St.some(255))),green:ft(zr(St.some(255))),blue:ft(zr(St.some(255))),hex:ft(zr(St.some("ffffff")))},f=function(n,t){var e=p_(t);a(n,e),g(e)},l=function(n){return r[n]().get()},d=function(n,t){r[n]().set(t)},m=function(){return l("red").bind(function(n){return l("green").bind(function(t){return l("blue").map(function(e){return d_(n,t,e,1)})})})},g=function(n){var t=n.red(),e=n.green(),o=n.blue();d("red",St.some(t)),d("green",St.some(e)),d("blue",St.some(o))},p=function(n,t){var e=t.event();"hex"!==e.type()?d(e.type(),St.none()):o(n)},h=function(n,t){e(n);var o=ZO(t);d("hex",St.some(t));var r=p_(o);a(n,r),g(r),oa(n,aD(),{hex:o}),s(n,o)},v=function(n,t,e){var o=parseInt(e,10);d(t,St.some(o)),m().each(function(t){var e=u(n,t);s(n,e)})},b=function(n){return"hex"===n.type()},y=function(n,t){var e=t.event();b(e)?h(n,e.value()):v(n,e.type(),e.value())},x=function(t){return{label:n($M+t+".label"),description:n($M+t+".description")}},w=x("red"),S=x("green"),C=x("blue"),k=x("hex");return Be(YM.sketch(function(e){return{dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":n("aria.color.picker")}},components:[e.field("red",HE.sketch(i(m_,"red",w.label,w.description,255))),e.field("green",HE.sketch(i(m_,"green",S.label,S.description,255))),e.field("blue",HE.sketch(i(m_,"blue",C.label,C.description,255))),e.field("hex",HE.sketch(i(e_,"hex",k.label,k.description,"ffffff"))),c.asSpec()],formBehaviours:bd([mB.config({invalidClass:t("form-invalid")}),rw("rgb-form-events",[da(qM,y),da(KM,p),da(JM,p)])])}}),{apis:{updateHex:function(n,t){Ah.setValue(n,{hex:t.value()}),f(n,t),s(n,t)}}})},l=jv({factory:f,name:"RgbForm",configFields:[],apis:{updateHex:function(n,t,e){n.updateHex(t,e)}},extraApis:{}});return l},ZM=function(n,t){var e=PM.parts().spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),o=PM.parts().thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:"'}}),r=function(n,t){var e=n.width,o=n.height,r=n.getContext("2d");if(null!==r){r.fillStyle=t,r.fillRect(0,0,e,o);var i=r.createLinearGradient(0,0,e,0);i.addColorStop(0,"rgba(255,255,255,1)"),i.addColorStop(1,"rgba(255,255,255,0)"),r.fillStyle=i,r.fillRect(0,0,e,o);var u=r.createLinearGradient(0,0,0,o);u.addColorStop(0,"rgba(0,0,0,0)"),u.addColorStop(1,"rgba(0,0,0,1)"),r.fillStyle=u,r.fillRect(0,0,e,o)}},i=function(n,t){var e=n.components()[0].element().dom();r(e,b_(t))},u=function(){var n=ft({x:ft(0),y:ft(0)}),i=function(n,t,e){oa(n,sD(),{value:e})},u=function(n,t,e){r(e.element().dom(),b_(y_()))},a=bd([Qv.config({find:St.some}),mw.config({})]);return PM.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:n},rounded:!1,components:[e,o],onChange:i,onInit:u,sliderBehaviours:a})},a=jv({factory:u,name:"SaturationBrightnessPalette",configFields:[],apis:{setRgba:function(n,t,e){i(t,e)}},extraApis:{}});return a},nF=function(n,t){var e=function(e){var o=QM(n,t,e.onValidHex,e.onInvalidHex),r=ZM(n,t),i={paletteRgba:ft(zr(y_()))},u=sC(r.sketch({})),a=sC(o.sketch({})),c=function(n,t){u.getOpt(n).each(function(n){var e=p_(t);i.paletteRgba().set(e),r.setRgba(n,e)})},s=function(n,t){a.getOpt(n).each(function(n){o.updateHex(n,t)})},f=function(n,t,e){Xt(e,function(e){e(n,t)})},l=function(){var n=[s];return function(t,e){var o=e.event().value(),r=i.paletteRgba().get(),u=iD(r),a=rD(u.hue(),o.x(),100-o.y()),c=g_(a),s=u_(c);f(t,s,n)}},d=function(){var n=[c,s];return function(t,e){var o=e.event().value(),r=uD(o.y());f(t,r,n)}};return{uid:e.uid,dom:e.dom,components:[u.asSpec(),zM(n,t),a.asSpec()],behaviours:bd([rw("colour-picker-events",[da(sD(),l()),da(cD(),d())]),Qv.config({find:function(n){return a.getOpt(n)}}),Xx.config({mode:"acyclic"})])}},o=jv({name:"ColourPicker",configFields:[fr("dom"),Br("onValidHex",at),Br("onInvalidHex",at)],factory:e});return o},tF=function(){return Qv.config({find:St.some})},eF=function(n){return Qv.config({find:n.getOpt})},oF=function(n){return Qv.config({find:function(t){return za(t.element(),n).bind(function(n){return t.getSystem().getByDom(n).toOption()})}})},rF={self:tF,memento:eF,childAt:oF},iF={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},uF=function(n){return iF[n]},aF=function(n){return uF(n)},cF=function(){var t=function(n){return"tox-"+n},e=nF(aF,t),o=function(n){oa(n,_E,{name:"hex-valid",value:!0})},r=function(n){oa(n,_E,{name:"hex-valid",value:!1})},i=sC(e.sketch({dom:{tag:"div",classes:[t("color-picker-container")],attributes:{role:"presentation"}},onValidHex:o,onInvalidHex:r}));return{dom:{tag:"div"},components:[i.asSpec()],behaviours:bd([Ah.config({store:{mode:"manual",getValue:function(n){var t=i.get(n),e=Qv.getCurrent(t),o=e.bind(function(n){var t=Ah.getValue(n);return t.hex});return o.map(function(n){return"#"+n}).getOr("")},setValue:function(t,e){var o=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=o.exec(e),u=i.get(t),a=Qv.getCurrent(u);a.fold(function(){n.console.log("Can not find form")},function(n){Ah.setValue(n,{hex:St.from(r[1]).getOr("")}),YM.getField(n,"hex").each(function(n){ea(n,Ou())})})}}}),rF.self()])}},sF=tinymce.util.Tools.resolve("tinymce.Resource"),fF=function(n){return Object.prototype.hasOwnProperty.call(n,"init")},lF=function(n){var t=zr(St.none()),e=sC({dom:{tag:n.tag}}),o=zr(St.none());return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:bd([rw("editor-foo-events",[Sa(function(r){e.getOpt(r).each(function(e){(fF(n)?n.init(e.element().dom()):sF.load(n.scriptId,n.scriptUrl).then(function(t){return t(e.element().dom(),n.settings)})).then(function(n){o.get().each(function(t){n.setValue(t)}),o.set(St.none()),t.set(St.some(n))})})})]),Ah.config({store:{mode:"manual",getValue:function(){return t.get().fold(function(){return o.get().getOr("")},function(n){return n.getValue()})},setValue:function(n,e){t.get().fold(function(){o.set(St.some(e)) -},function(n){return n.setValue(e)})}}}),rF.self()]),components:[e.asSpec()]}},dF=Mo([Br("preprocess",lt),Br("postprocess",lt)]),mF=function(n,t){var e=$o("RepresentingConfigs.memento processors",dF,t);return Ah.config({store:{mode:"manual",getValue:function(t){var o=n.get(t),r=Ah.getValue(o);return e.postprocess(r)},setValue:function(t,o){var r=e.preprocess(o),i=n.get(t);Ah.setValue(i,r)}}})},gF=function(n,t,e){return Ah.config(Be({store:{mode:"manual",getValue:t,setValue:e}},n.map(function(n){return{store:{initialValue:n}}}).getOr({})))},pF=function(n,t,e){return gF(n,function(n){return t(n.element())},function(n,t){return e(n.element(),t)})},hF=function(n){return pF(n,Us,Ws)},vF=function(n){return pF(n,Za,nc)},bF=function(n){return Ah.config({store:{mode:"memory",initialValue:n}})},yF={memento:mF,withElement:pF,withComp:gF,domValue:hF,domHtml:vF,memory:bF},xF=".jpg,.jpeg,.png,.gif",wF=function(n){var t=new RegExp("("+xF.split(/\s*,\s*/).join("|")+")$","i");return Kt(fe(n),function(n){return t.test(n.name)})},SF=function(n,t){var e=function(n,t){t.stop()},o=function(n){return function(t,e){Xt(n,function(n){n(t,e)})}},r=function(n,t){if(!CO.isDisabled(n)){var e=t.event().raw();u(n,e.dataTransfer.files)}},i=function(n,t){var e=t.event().raw().target.files;u(n,e)},u=function(t,e){Ah.setValue(t,wF(e)),oa(t,CE,{name:n.name})},a=sC({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:bd([rw("input-file-events",[ya(Tu()),ya(Hu())])])}),c=function(n){return{uid:n.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:bd([yF.memory([]),rF.self(),CO.config({}),Mw.config({toggleClass:"dragenter",toggleOnExecute:!1}),rw("dropzone-events",[da("dragenter",o([e,Mw.toggle])),da("dragleave",o([e,Mw.toggle])),da("dragover",e),da("drop",o([e,r])),da(_u(),i)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},cC.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[a.asSpec()],action:function(n){var t=a.get(n);t.element().dom().click()},buttonBehaviours:bd([vB.config({})])})]}]}},s=n.label.map(function(n){return CB(n,t)}),f=HE.parts().field({factory:{sketch:c}});return bB(s,f,["tox-form__group--stretched"],[])},CF=function(n,t){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+n.columns+"col"]},components:Gt(n.items,t.interpreter)}},kF=Sc("alloy-fake-before-tabstop"),OF=Sc("alloy-fake-after-tabstop"),_F=function(n){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:n},behaviours:bd([mw.config({ignore:!0}),vB.config({})])}},TF=function(n){return{dom:{tag:"div",classes:["tox-navobj"]},components:[_F([kF]),n,_F([OF])],behaviours:bd([rF.childAt(1)])}},EF=function(n,t){oa(n,Cu(),{raw:{which:9,shiftKey:t}})},BF=function(n,t){var e=t.element();ks(e,kF)?EF(n,!0):ks(e,OF)&&EF(n,!1)},DF=function(n){return JT(n,["."+kF,"."+OF].join(","),ft(!1))},AF={isPseudoStop:DF,onFocus:BF,craft:TF},MF=!(Ui().browser.isIE()||Ui().browser.isEdge()),FF=function(n){var t=zr("");return{getValue:function(){return t.get()},setValue:function(e,o){if(n)cc(e.element(),"srcdoc",o);else{cc(e.element(),"src","javascript:''");var r=e.element().dom().contentWindow.document;r.open(),r.write(o),r.close()}t.set(o)}}},IF=function(n,t){var e=MF&&n.sandboxed,o=vt(vt({},n.label.map(function(n){return{title:n}}).getOr({})),e?{sandbox:"allow-scripts allow-same-origin"}:{}),r=FF(e),i=n.label.map(function(n){return CB(n,t)}),u=function(n){return AF.craft({uid:n.uid,dom:{tag:"iframe",attributes:o},behaviours:bd([vB.config({}),mw.config({}),yF.withComp(St.none(),r.getValue,r.setValue)])})},a=HE.parts().field({factory:{sketch:u}});return bB(i,a,["tox-form__group--stretched"],[])},RF=function(){function t(n,t){return function(){return n.apply(t,arguments)}}function e(n){var t=this;return null===this._state?void this._deferreds.push(n):void s(function(){var e=t._state?n.onFulfilled:n.onRejected;if(null===e)return void(t._state?n.resolve:n.reject)(t._value);var o;try{o=e(t._value)}catch(r){return void n.reject(r)}n.resolve(o)})}function o(n){try{if(n===this)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var e=n.then;if("function"==typeof e)return void a(t(e,n),t(o,this),t(r,this))}this._state=!0,this._value=n,i.call(this)}catch(u){r.call(this,u)}}function r(n){this._state=!1,this._value=n,i.call(this)}function i(){for(var n=0,t=this._deferreds;n0&&!dI(n[n.length-1])?n.concat([gI]):n:we(t,e.toLowerCase())?n.concat([t[e.toLowerCase()]]):n:n.concat([e])},[]);return e.length>0&&dI(e[e.length-1])&&e.pop(),e},hI=function(n,t){var e=n.getSubmenuItems(),o=yI(e,t),r=Be(o.menus,eo(n.value,o.items)),i=Be(o.expansions,eo(n.value,n.value));return{item:n,menus:r,expansions:i}},vI=function(n,t){return mI(n)?hI(n,t):{item:n,menus:{},expansions:{}}},bI=function(n){if(dI(n))return n;var t=xe(n,"value").getOrThunk(function(){return Sc("generated-menu-item")});return Be({value:t},n)},yI=function(n,t){var e=pI(Bt(n)?n.split(" "):n,t);return Jt(e,function(n,e){var o=bI(e),r=vI(o,t);return{menus:Be(n.menus,r.menus),items:[r.item].concat(n.items),expansions:Be(n.expansions,r.expansions)}},{menus:{},expansions:{},items:[]})},xI=function(n,t,e,o){var r=Sc("primary-menu"),i=yI(n,e.shared.providers.menuItems());if(0===i.items.length)return St.none();var u=LT(r,i.items,t,e,o),a=pe(i.menus,function(n,o){return LT(o,n,t,e,!1)}),c=Be(a,eo(r,u));return St.from(pS.tieredData(r,c,i.expansions))},wI=function(n){return{isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)},setActive:function(t){var e=n.element();t?(ws(e,"tox-tbtn--enabled"),cc(e,"aria-pressed",!0)):(Cs(e,"tox-tbtn--enabled"),mc(e,"aria-pressed"))},isActive:function(){return ks(n.element(),"tox-tbtn--enabled")}}},SI=function(n,t,e,o){return fI({text:n.text,icon:n.icon,tooltip:n.tooltip,role:o,fetch:function(t){n.fetch(function(n){t(xI(n,FO.CLOSE_ON_EXECUTE,e,!1))})},onSetup:n.onSetup,getApi:wI,columns:1,presets:"normal",classes:[],dropdownBehaviours:[vB.config({})]},t,e.shared)},CI=function(n,t,e){var o=function(n){return function(o){var r=!o.isActive();o.setActive(r),n.storage.set(r),e.shared.getSink().each(function(e){t().getOpt(e).each(function(t){Ad(t.element()),oa(t,_E,{name:n.name,value:n.storage.get()})})})}},r=function(n){return function(t){t.setActive(n.storage.get())}};return function(t){t(Gt(n,function(n){var t=n.text.fold(function(){return{}},function(n){return{text:n}});return vt(vt({type:n.type,active:!1},t),{onAction:o(n),onSetup:r(n)})}))}},kI=function(n,t,e,o,r){void 0===e&&(e=[]);var i=t.fold(function(){return{}},function(n){return{action:n}}),u=vt({buttonBehaviours:bd([EO.button(n.disabled),vB.config({}),rw("button press",[la("click"),la("mousedown")])].concat(e)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},i),a=Be(u,{dom:o});return Be(a,{components:r})},OI=function(n,t,e,o){void 0===o&&(o=[]);var r=n.tooltip.map(function(n){return{"aria-label":e.translate(n),title:e.translate(n)}}).getOr({}),i={tag:"button",classes:["tox-tbtn"],attributes:r},u=n.icon.map(function(n){return eI(n,e.icons)}),a=VO([u]);return kI(n,t,o,i,a)},_I=function(n,t,e,o){void 0===o&&(o=[]);var r=OI(n,St.some(t),e,o);return cC.sketch(r)},TI=function(n,t,e,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var u=e.translate(n.text),a=n.icon?n.icon.map(function(n){return eI(n,e.icons)}):St.none(),c=a.isSome()?VO([a]):[],s=a.isSome()?{}:{innerHtml:u},f=o(n.primary||n.borderless?["tox-button"]:["tox-button","tox-button--secondary"],a.isSome()?["tox-button--icon"]:[],n.borderless?["tox-button--naked"]:[],i),l=vt(vt({tag:"button",classes:f},s),{attributes:{title:u}});return kI(n,t,r,l,c)},EI=function(n,t,e,o,r){void 0===o&&(o=[]),void 0===r&&(r=[]);var i=TI(n,St.some(t),e,o,r);return cC.sketch(i)},BI=function(t,e){return function(o){"custom"===e?oa(o,_E,{name:t,value:{}}):"submit"===e?ea(o,TE):"cancel"===e?ea(o,OE):n.console.error("Unknown button type: ",e)}},DI=function(n,t){return"menu"===t},AI=function(n,t){return"custom"===t||"cancel"===t||"submit"===t},MI=function(t,e,o){if(DI(t,e)){var r=function(){return a},i=t,u=vt(vt({},t),{onSetup:function(n){return n.setDisabled(t.disabled),at},fetch:CI(i.items,r,o)}),a=sC(SI(u,"tox-tbtn",o,St.none()));return a.asSpec()}if(AI(t,e)){var c=BI(t.name,e),s=vt(vt({},t),{borderless:!1});return EI(s,c,o.shared.providers,[])}n.console.error("Unknown footer button type: ",e)},FI=function(n,t){var e=BI(n.name,"custom");return yB(St.none(),HE.parts().field(vt({factory:cC},TI(n,St.some(e),t,[yF.memory(""),rF.self()]))))},II=ft([Br("field1Name","field1"),Br("field2Name","field2"),Sl("onLockedChange"),bl(["lockClass"]),Br("locked",!1),Rh.field("coupledFieldBehaviours",[Qv,Ah])]),RI=function(n,t,e){return Ov(n,t,e).bind(Qv.getCurrent)},VI=function(n,t){return fv({factory:HE,name:n,overrides:function(n){return{fieldBehaviours:bd([rw("coupled-input-behaviour",[da(Ou(),function(e){RI(e,n,t).each(function(t){Ov(e,n,"lock").each(function(o){Mw.isOn(o)&&n.onLockedChange(e,t,o)})})})])])}}})},HI=ft([VI("field1","field2"),VI("field2","field1"),fv({factory:cC,schema:[fr("dom")],name:"lock",overrides:function(n){return{buttonBehaviours:bd([Mw.config({selected:n.locked,toggleClass:n.markers.lockClass,aria:{mode:"pressed"}})])}}})]),NI=function(n,t){return{uid:n.uid,dom:n.dom,components:t,behaviours:Rh.augment(n.coupledFieldBehaviours,[Qv.config({find:St.some}),Ah.config({store:{mode:"manual",getValue:function(t){var e,o=Dv(t,n,["field1","field2"]);return e={},e[n.field1Name]=Ah.getValue(o.field1()),e[n.field2Name]=Ah.getValue(o.field2()),e},setValue:function(t,e){var o=Dv(t,n,["field1","field2"]);Se(e,n.field1Name)&&Ah.setValue(o.field1(),e[n.field1Name]),Se(e,n.field2Name)&&Ah.setValue(o.field2(),e[n.field2Name])}}})]),apis:{getField1:function(t){return Ov(t,n,"field1")},getField2:function(t){return Ov(t,n,"field2")},getLock:function(t){return Ov(t,n,"lock")}}}},PI=Uv({name:"FormCoupledInputs",configFields:II(),partFields:HI(),factory:NI,apis:{getField1:function(n,t){return n.getField1(t)},getField2:function(n,t){return n.getField2(t)},getLock:function(n,t){return n.getLock(t)}}}),zI=function(n){var t={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,"in":4,"%":4},e=function(n){return n in t?t[n]:1},o=n.value.toFixed(e(n.unit));return-1!==o.indexOf(".")&&(o=o.replace(/\.?0*$/,"")),o+n.unit},LI=function(n){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,e=t.exec(n);if(null!==e){var o=parseFloat(e[1]),r=e[2];return _t.value({value:o,unit:r})}return _t.error(n)},jI=function(n,t){var e={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,"in":1},o=function(n){return Object.prototype.hasOwnProperty.call(e,n)};return n.unit===t?St.some(n.value):o(n.unit)&&o(t)?St.some(e[n.unit]===e[t]?n.value:n.value/e[n.unit]*e[t]):St.none()},UI=function(){return St.none()},WI=function(n,t){return function(e){return jI(e,t).map(function(e){return{value:e*n,unit:t}})}},GI=function(n,t){var e=LI(n).toOption(),o=LI(t).toOption();return Xv(e,o,function(n,t){return jI(n,t.unit).map(function(n){return t.value/n}).map(function(n){return WI(n,t.unit)}).getOr(UI)}).getOr(UI)},XI=function(n,t){var e=UI,o=Sc("ratio-event"),r=PI.parts().lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(n.label.getOr("Constrain proportions"))}},components:[{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__lock"],innerHtml:lC("lock",t.icons)}},{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__unlock"],innerHtml:lC("unlock",t.icons)}}],buttonBehaviours:bd([EO.button(n.disabled),vB.config({})])}),i=function(n){return{dom:{tag:"div",classes:["tox-form__group"]},components:n}},u=function(t){return HE.parts().field({factory:UE,inputClasses:["tox-textfield"],inputBehaviours:bd([CO.config({disabled:n.disabled}),vB.config({}),rw("size-input-events",[da(wu(),function(n){oa(n,o,{isField1:t})}),da(_u(),function(t){oa(t,CE,{name:n.name})})])]),selectOnFocus:!1})},a=function(n){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(n)}}},c=PI.parts().field1(i([HE.parts().label(a("Width")),u(!0)])),s=PI.parts().field2(i([HE.parts().label(a("Height")),u(!1)]));return PI.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[c,s,i([a(" "),r])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(n,t){LI(Ah.getValue(n)).each(function(n){e(n).each(function(n){Ah.setValue(t,zI(n))})})},coupledFieldBehaviours:bd([CO.config({disabled:n.disabled,onDisabled:function(n){PI.getField1(n).bind(HE.getField).each(CO.disable),PI.getField2(n).bind(HE.getField).each(CO.disable),PI.getLock(n).each(CO.disable)},onEnabled:function(n){PI.getField1(n).bind(HE.getField).each(CO.enable),PI.getField2(n).bind(HE.getField).each(CO.enable),PI.getLock(n).each(CO.enable)}}),rw("size-input-events2",[da(o,function(n,t){var o=t.event().isField1(),r=o?PI.getField1(n):PI.getField2(n),i=o?PI.getField2(n):PI.getField1(n),u=r.map(Ah.getValue).getOr(""),a=i.map(Ah.getValue).getOr("");e=GI(u,a)})])])})},YI=ft(Sc("undo")),qI=ft(Sc("redo")),KI=ft(Sc("zoom")),JI=ft(Sc("back")),$I=ft(Sc("apply")),QI=ft(Sc("swap")),ZI=ft(Sc("transform")),nR=ft(Sc("temp-transform")),tR=ft(Sc("transform-apply")),eR={undo:YI,redo:qI,zoom:KI,back:JI,apply:$I,swap:QI,transform:ZI,tempTransform:nR,transformApply:tR},oR=ft("save-state"),rR=ft("disable"),iR=ft("enable"),uR={formActionEvent:_E,saveState:oR,disable:rR,enable:iR},aR=function(n,t){var e=function(n,e,o,r){return sC(EI({name:n,text:n,disabled:o,primary:r,icon:St.none(),borderless:!1},e,t))},o=function(n,e,o,r){return sC(_I({name:n,icon:St.some(n),tooltip:St.some(e),disabled:r,primary:!1,borderless:!1},o,t))},r=function(n,t){n.map(function(n){var e=n.get(t);e.hasConfigured(CO)&&CO.disable(e)})},i=function(n,t){n.map(function(n){var e=n.get(t);e.hasConfigured(CO)&&CO.enable(e)})},u={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},a=at,c=function(n,t,e){oa(n,t,e)},s=function(n){return ea(n,uR.disable())},f=function(n){return ea(n,uR.enable())},l=function(n,t){s(n),c(n,eR.transform(),{transform:t}),f(n)},d=function(n,t){s(n),c(n,eR.tempTransform(),{transform:t}),f(n)},m=function(n){return function(){ot.getOpt(n).each(function(n){ew.set(n,[tt])})}},g=function(n,t){s(n),c(n,eR.transformApply(),{transform:t,swap:m(n)}),f(n)},p=function(){return e("Back",function(n){return c(n,eR.back(),{swap:m(n)})},!1,!1)},h=function(){return sC({dom:{tag:"div",classes:["tox-spacer"]},behaviours:bd([CO.config({})])})},v=function(){return e("Apply",function(n){return c(n,eR.apply(),{swap:m(n)})},!0,!0)},b=function(){return function(t){var e=n.getRect();return QF(t,e.x,e.y,e.w,e.h)}},y=[p(),h(),e("Apply",function(t){var e=b();g(t,e),n.hideCrop()},!1,!0)],x=wE.sketch({dom:u,components:y.map(function(n){return n.asSpec()}),containerBehaviours:bd([rw("image-tools-crop-buttons-events",[da(uR.disable(),function(n){r(y,n)}),da(uR.enable(),function(n){i(y,n)})])])}),w=sC(XI({name:"size",label:St.none(),constrain:!0,disabled:!1},t)),S=function(n,t){return function(e){return ZF(e,n,t)}},C=[p(),h(),w,h(),e("Apply",function(n){w.getOpt(n).each(function(t){var e=Ah.getValue(t),o=parseInt(e.width,10),r=parseInt(e.height,10),i=S(o,r);g(n,i)})},!1,!0)],k=wE.sketch({dom:u,components:C.map(function(n){return n.asSpec()}),containerBehaviours:bd([rw("image-tools-resize-buttons-events",[da(uR.disable(),function(n){r(C,n)}),da(uR.enable(),function(n){i(C,n)})])])}),O=function(n,t){return function(e){return n(e,t)}},_=O($F,"h"),T=O($F,"v"),E=O(nI,-90),B=O(nI,90),D=function(n,t){d(n,t)},A=[p(),h(),o("flip-horizontally","Flip horizontally",function(n){D(n,_)},!1),o("flip-vertically","Flip vertically",function(n){D(n,T)},!1),o("rotate-left","Rotate counterclockwise",function(n){D(n,E)},!1),o("rotate-right","Rotate clockwise",function(n){D(n,B)},!1),h(),v()],M=wE.sketch({dom:u,components:A.map(function(n){return n.asSpec()}),containerBehaviours:bd([rw("image-tools-fliprotate-buttons-events",[da(uR.disable(),function(n){r(A,n)}),da(uR.enable(),function(n){i(A,n)})])])}),F=function(n,e,o,r,i){var u=PM.parts().label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(n)}}),a=PM.parts().spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),c=PM.parts().thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return sC(PM.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:o,maxX:i,getInitialValue:ft({x:ft(r)})},components:[u,a,c],sliderBehaviours:bd([mw.config({})]),onChoose:e}))},I=function(n,t,e,o,r){var i=function(n,e,o){var r=O(t,o.x()/100);l(n,r)};return F(n,i,e,o,r)},R=function(n,t,e,o,r){return[p(),I(n,t,e,o,r),v()]},V=function(n,t,e,o,a){var c=R(n,t,e,o,a);return wE.sketch({dom:u,components:c.map(function(n){return n.asSpec()}),containerBehaviours:bd([rw("image-tools-filter-panel-buttons-events",[da(uR.disable(),function(n){r(c,n)}),da(uR.enable(),function(n){i(c,n)})])])})},H=[p(),h(),v()],N=wE.sketch({dom:u,components:H.map(function(n){return n.asSpec()})}),P=V("Brightness",KF,-100,0,100),z=V("Contrast",JF,-100,0,100),L=V("Gamma",YF,-100,0,100),j=function(n,t,e){return function(o){return qF(o,n,t,e)}},U=function(n){var t=function(n){var t=W.getOpt(n),e=X.getOpt(n),o=G.getOpt(n);t.each(function(t){e.each(function(e){o.each(function(o){var r=Ah.getValue(t).x()/100,i=Ah.getValue(o).x()/100,u=Ah.getValue(e).x()/100,a=j(r,i,u);l(n,a)})})})};return F(n,t,0,100,200)},W=U("R"),G=U("G"),X=U("B"),Y=[p(),W,G,X,v()],q=wE.sketch({dom:u,components:Y.map(function(n){return n.asSpec()})}),K=function(n,t,e){return function(o){var r=function(){ot.getOpt(o).each(function(t){ew.set(t,[n]),e(t)})};c(o,eR.swap(),{transform:t,swap:r})}},J=function(){n.showCrop()},$=function(t){w.getOpt(t).each(function(t){var e=n.getMeasurements(),o=e.width,r=e.height;Ah.setValue(t,{width:o,height:r})})},Q=St.some(XF),Z=St.some(GF),nt=[o("crop","Crop",K(x,St.none(),J),!1),o("resize","Resize",K(k,St.none(),$),!1),o("orientation","Orientation",K(M,St.none(),a),!1),o("brightness","Brightness",K(P,St.none(),a),!1),o("sharpen","Sharpen",K(N,Q,a),!1),o("contrast","Contrast",K(z,St.none(),a),!1),o("color-levels","Color levels",K(q,St.none(),a),!1),o("gamma","Gamma",K(L,St.none(),a),!1),o("invert","Invert",K(N,Z,a),!1)],tt=wE.sketch({dom:u,components:nt.map(function(n){return n.asSpec()})}),et=wE.sketch({dom:{tag:"div"},components:[tt],containerBehaviours:bd([ew.config({})])}),ot=sC(et),rt=function(n){return ot.getOpt(n).map(function(n){var t=n.components()[0];return t.components()[t.components().length-1]})};return{memContainer:ot,getApplyButton:rt}},cR=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),sR=tinymce.util.Tools.resolve("tinymce.geom.Rect"),fR=tinymce.util.Tools.resolve("tinymce.util.Observable"),lR=tinymce.util.Tools.resolve("tinymce.util.Tools"),dR=tinymce.util.Tools.resolve("tinymce.util.VK"),mR=0,gR=function(n,t,e,o,r){function i(t,o,r,i){var u,a,c,s,f;u=o.x,a=o.y,c=o.w,s=o.h,u+=r*t.deltaX,a+=i*t.deltaY,c+=r*t.deltaW,s+=i*t.deltaH,20>c&&(c=20),20>s&&(s=20),f=n=sR.clamp({x:u,y:a,w:c,h:s},e,"move"===t.name),f=w(e,f),g.fire("updateRect",{rect:f}),l(f)}function u(){function t(t){var e;return new ot(b,{document:o.ownerDocument,handle:b+"-"+t.name,start:function(){e=n},drag:function(n){i(t,e,n.deltaX,n.deltaY)}})}cR('
    ').appendTo(o),lR.each(h,function(n){cR("#"+b,o).append('