@vc-shell/framework 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/LICENSE +12 -0
  2. package/dist/components/atoms/vc-badge/vc-badge.stories.d.ts +7 -0
  3. package/dist/components/atoms/vc-badge/vc-badge.stories.d.ts.map +1 -0
  4. package/dist/components/atoms/vc-button/vc-button.stories.d.ts +15 -0
  5. package/dist/components/atoms/vc-button/vc-button.stories.d.ts.map +1 -0
  6. package/dist/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts +7 -0
  7. package/dist/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +1 -0
  8. package/dist/components/atoms/vc-container/vc-container.stories.d.ts +7 -0
  9. package/dist/components/atoms/vc-container/vc-container.stories.d.ts.map +1 -0
  10. package/dist/components/atoms/vc-hint/vc-hint.stories.d.ts +7 -0
  11. package/dist/components/atoms/vc-hint/vc-hint.stories.d.ts.map +1 -0
  12. package/dist/components/atoms/vc-icon/vc-icon.stories.d.ts +15 -0
  13. package/dist/components/atoms/vc-icon/vc-icon.stories.d.ts.map +1 -0
  14. package/dist/components/atoms/vc-image/vc-image.stories.d.ts +21 -0
  15. package/dist/components/atoms/vc-image/vc-image.stories.d.ts.map +1 -0
  16. package/dist/components/atoms/vc-label/vc-label.stories.d.ts +7 -0
  17. package/dist/components/atoms/vc-label/vc-label.stories.d.ts.map +1 -0
  18. package/dist/components/atoms/vc-link/vc-link.stories.d.ts +13 -0
  19. package/dist/components/atoms/vc-link/vc-link.stories.d.ts.map +1 -0
  20. package/dist/components/atoms/vc-progress/vc-progress.stories.d.ts +7 -0
  21. package/dist/components/atoms/vc-progress/vc-progress.stories.d.ts.map +1 -0
  22. package/dist/components/atoms/vc-status/vc-status.stories.d.ts +7 -0
  23. package/dist/components/atoms/vc-status/vc-status.stories.d.ts.map +1 -0
  24. package/dist/components/atoms/vc-switch/vc-switch.stories.d.ts +7 -0
  25. package/dist/components/atoms/vc-switch/vc-switch.stories.d.ts.map +1 -0
  26. package/dist/components/index.d.ts +39 -0
  27. package/dist/components/index.d.ts.map +1 -0
  28. package/dist/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts +7 -0
  29. package/dist/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts.map +1 -0
  30. package/dist/components/molecules/vc-form/vc-form.stories.d.ts +7 -0
  31. package/dist/components/molecules/vc-form/vc-form.stories.d.ts.map +1 -0
  32. package/dist/components/molecules/vc-input/vc-input.stories.d.ts +7 -0
  33. package/dist/components/molecules/vc-input/vc-input.stories.d.ts.map +1 -0
  34. package/dist/components/molecules/vc-pagination/vc-pagination.stories.d.ts +7 -0
  35. package/dist/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +1 -0
  36. package/dist/components/molecules/vc-rating/vc-rating.stories.d.ts +7 -0
  37. package/dist/components/molecules/vc-rating/vc-rating.stories.d.ts.map +1 -0
  38. package/dist/components/molecules/vc-select/vc-select.stories.d.ts +7 -0
  39. package/dist/components/molecules/vc-select/vc-select.stories.d.ts.map +1 -0
  40. package/dist/components/molecules/vc-textarea/vc-textarea.stories.d.ts +7 -0
  41. package/dist/components/molecules/vc-textarea/vc-textarea.stories.d.ts.map +1 -0
  42. package/dist/components/organisms/vc-app/vc-app.stories.d.ts +16 -0
  43. package/dist/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -0
  44. package/dist/components/organisms/vc-blade/vc-blade.stories.d.ts +17 -0
  45. package/dist/components/organisms/vc-blade/vc-blade.stories.d.ts.map +1 -0
  46. package/dist/components/organisms/vc-login-form/vc-login-form.stories.d.ts +7 -0
  47. package/dist/components/organisms/vc-login-form/vc-login-form.stories.d.ts.map +1 -0
  48. package/dist/components/organisms/vc-popup/vc-popup.stories.d.ts +7 -0
  49. package/dist/components/organisms/vc-popup/vc-popup.stories.d.ts.map +1 -0
  50. package/dist/components/organisms/vc-table/vc-table.stories.d.ts +7 -0
  51. package/dist/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -0
  52. package/dist/core/api/index.d.ts +2 -0
  53. package/dist/core/api/index.d.ts.map +1 -0
  54. package/dist/core/api/platform.d.ts +2005 -0
  55. package/dist/core/api/platform.d.ts.map +1 -0
  56. package/dist/core/composables/index.d.ts +9 -0
  57. package/dist/core/composables/index.d.ts.map +1 -0
  58. package/dist/core/composables/useAutosave/index.d.ts +9 -0
  59. package/dist/core/composables/useAutosave/index.d.ts.map +1 -0
  60. package/dist/core/composables/useFunctions/debounce.d.ts +2 -0
  61. package/dist/core/composables/useFunctions/debounce.d.ts.map +1 -0
  62. package/dist/core/composables/useFunctions/delay.d.ts +2 -0
  63. package/dist/core/composables/useFunctions/delay.d.ts.map +1 -0
  64. package/dist/core/composables/useFunctions/index.d.ts +13 -0
  65. package/dist/core/composables/useFunctions/index.d.ts.map +1 -0
  66. package/dist/core/composables/useFunctions/once.d.ts +2 -0
  67. package/dist/core/composables/useFunctions/once.d.ts.map +1 -0
  68. package/dist/core/composables/useFunctions/sleep.d.ts +2 -0
  69. package/dist/core/composables/useFunctions/sleep.d.ts.map +1 -0
  70. package/dist/core/composables/useFunctions/throttle.d.ts +2 -0
  71. package/dist/core/composables/useFunctions/throttle.d.ts.map +1 -0
  72. package/dist/core/composables/useI18n/index.d.ts +5 -0
  73. package/dist/core/composables/useI18n/index.d.ts.map +1 -0
  74. package/dist/core/composables/useLogger/index.d.ts +5 -0
  75. package/dist/core/composables/useLogger/index.d.ts.map +1 -0
  76. package/dist/core/composables/useNotifications/index.d.ts +15 -0
  77. package/dist/core/composables/useNotifications/index.d.ts.map +1 -0
  78. package/dist/core/composables/usePermissions/index.d.ts +8 -0
  79. package/dist/core/composables/usePermissions/index.d.ts.map +1 -0
  80. package/dist/core/composables/useSettings/index.d.ts +8 -0
  81. package/dist/core/composables/useSettings/index.d.ts.map +1 -0
  82. package/dist/core/composables/useUser/index.d.ts +19 -0
  83. package/dist/core/composables/useUser/index.d.ts.map +1 -0
  84. package/dist/core/directives/autofocus/index.d.ts +4 -0
  85. package/dist/core/directives/autofocus/index.d.ts.map +1 -0
  86. package/dist/core/directives/click-outside/index.d.ts +4 -0
  87. package/dist/core/directives/click-outside/index.d.ts.map +1 -0
  88. package/dist/core/directives/index.d.ts +5 -0
  89. package/dist/core/directives/index.d.ts.map +1 -0
  90. package/dist/core/directives/loading/index.d.ts +4 -0
  91. package/dist/core/directives/loading/index.d.ts.map +1 -0
  92. package/dist/core/directives/permissions/index.d.ts +4 -0
  93. package/dist/core/directives/permissions/index.d.ts.map +1 -0
  94. package/dist/core/plugins/index.d.ts +2 -0
  95. package/dist/core/plugins/index.d.ts.map +1 -0
  96. package/dist/core/plugins/validation/index.d.ts +3 -0
  97. package/dist/core/plugins/validation/index.d.ts.map +1 -0
  98. package/dist/core/plugins/validation/rules.d.ts +12 -0
  99. package/dist/core/plugins/validation/rules.d.ts.map +1 -0
  100. package/dist/core/types/index.d.ts +77 -0
  101. package/dist/core/types/index.d.ts.map +1 -0
  102. package/dist/core/utilities/camelToSnake.d.ts +2 -0
  103. package/dist/core/utilities/camelToSnake.d.ts.map +1 -0
  104. package/dist/core/utilities/index.d.ts +2 -0
  105. package/dist/core/utilities/index.d.ts.map +1 -0
  106. package/dist/framework.js +1133 -0
  107. package/dist/framework.js.map +1 -0
  108. package/dist/index.d.ts +15 -0
  109. package/dist/index.d.ts.map +1 -0
  110. package/dist/shared/app-switcher/components/index.d.ts +2 -0
  111. package/dist/shared/app-switcher/components/index.d.ts.map +1 -0
  112. package/dist/shared/app-switcher/composables/index.d.ts +2 -0
  113. package/dist/shared/app-switcher/composables/index.d.ts.map +1 -0
  114. package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts +10 -0
  115. package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -0
  116. package/dist/shared/app-switcher/index.d.ts +8 -0
  117. package/dist/shared/app-switcher/index.d.ts.map +1 -0
  118. package/dist/shared/assets/components/index.d.ts +2 -0
  119. package/dist/shared/assets/components/index.d.ts.map +1 -0
  120. package/dist/shared/assets/index.d.ts +7 -0
  121. package/dist/shared/assets/index.d.ts.map +1 -0
  122. package/dist/shared/assets/locales/index.d.ts +3 -0
  123. package/dist/shared/assets/locales/index.d.ts.map +1 -0
  124. package/dist/shared/blade-navigation/components/index.d.ts +2 -0
  125. package/dist/shared/blade-navigation/components/index.d.ts.map +1 -0
  126. package/dist/shared/blade-navigation/composables/index.d.ts +2 -0
  127. package/dist/shared/blade-navigation/composables/index.d.ts.map +1 -0
  128. package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts +15 -0
  129. package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -0
  130. package/dist/shared/blade-navigation/index.d.ts +9 -0
  131. package/dist/shared/blade-navigation/index.d.ts.map +1 -0
  132. package/dist/shared/blade-navigation/types/index.d.ts +39 -0
  133. package/dist/shared/blade-navigation/types/index.d.ts.map +1 -0
  134. package/dist/shared/index.d.ts +6 -0
  135. package/dist/shared/index.d.ts.map +1 -0
  136. package/dist/style.css +1 -0
  137. package/dist/vite.config.d.ts +3 -0
  138. package/dist/vite.config.d.ts.map +1 -0
  139. package/package.json +51 -0
  140. package/tailwind.config.js +51 -0
@@ -0,0 +1,1133 @@
1
+ "use strict";var hw=Object.defineProperty;var dw=(t,e,n)=>e in t?hw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var L=(t,e,n)=>(dw(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue"),_t=require("vee-validate"),Vs=require("vue-router"),fw=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},pw=fw(d),Mm=d.defineComponent({__name:"vc-badge",props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},clickable:{type:Boolean,default:!0}},emits:["click"],setup(t,{emit:e}){const n=t;function r(){n.clickable&&!n.disabled&&e("click")}return(s,i)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["inline-block rounded-[var(--badge-border-radius)] py-1 px-2 text-base font-normal bg-[color:var(--badge-background-color)] text-[color:var(--badge-text-color)] border border-solid border-[color:var(--badge-border-color)] transition duration-200",{"bg-[color:var(--badge-background-color-active)] text-[color:var(--badge-text-color-active)] border-[color:var(--badge-border-color-active)]":t.active,"cursor-pointer hover:bg-[color:var(--badge-background-color-active)] hover:text-[color:var(--badge-text-color-hover)] hover:border-[color:var(--badge-border-color-hover)]":t.clickable,"cursor-not-allowed bg-[color:var(--badge-background-color-disabled)] text-[color:var(--badge-text-color-disabled)] border-[color:var(--badge-border-color-disabled)] hover:bg-[color:var(--badge-background-color-disabled)] hover:text-[color:var(--badge-text-color-disabled)] hover:border-[color:var(--badge-border-color-disabled)]":t.disabled}]),onClick:r},[d.renderSlot(s.$slots,"default")],2))}});const mw=["disabled"],gw={key:1,class:"vc-button__title"},Im=d.defineComponent({__name:"vc-button",props:{icon:{type:String,default:void 0},variant:{type:String,enum:["primary","secondary","special","danger","widget","onlytext"],default:"primary"},disabled:{type:Boolean,default:!1},small:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},selected:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const n=t;function r(s){n.disabled||(s.preventDefault(),e("click",s))}return(s,i)=>(d.openBlock(),d.createElementBlock("button",{class:d.normalizeClass(["vc-button",[`vc-button_${t.variant}`,{"vc-button_small":t.small,"vc-button_outline":t.outline,"vc-button_selected":t.selected}]]),onClick:r,disabled:t.disabled},[t.icon?(d.openBlock(),d.createBlock(d.unref(ke),{key:0,class:"vc-button__icon",icon:t.icon,size:t.small?"xs":"s"},null,8,["icon","size"])):d.createCommentVNode("",!0),s.$slots.default?(d.openBlock(),d.createElementBlock("span",gw,[d.renderSlot(s.$slots,"default")])):d.createCommentVNode("",!0)],10,mw))}});const vw={class:"vc-card__title"},yw={key:1,class:"vc-card__actions"},Nm=d.defineComponent({__name:"vc-card",props:{header:{type:String,default:void 0},icon:{type:String,default:void 0},isCollapsable:{type:Boolean,default:!1},isCollapsed:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},variant:{type:String,enum:["default","success","danger"],default:"default"}},emits:["header:click","state:collapsed"],setup(t,{emit:e}){const n=t,r=d.ref(n.isCollapsed);function s(){n.isCollapsable&&(r.value=!r.value,e("state:collapsed",r.value)),e("header:click")}return(i,o)=>{const u=d.resolveComponent("VcIcon");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-card",[{"vc-card_collapsable":t.isCollapsable},`vc-card_${t.variant}`]])},[t.header?(d.openBlock(),d.createElementBlock("div",{key:0,class:"vc-card__header",onClick:s},[t.icon?(d.openBlock(),d.createBlock(u,{key:0,class:"vc-card__icon",icon:t.icon,size:"xl"},null,8,["icon"])):d.createCommentVNode("",!0),d.createElementVNode("div",vw,d.toDisplayString(t.header),1),i.$slots.actions?(d.openBlock(),d.createElementBlock("div",yw,[d.renderSlot(i.$slots,"actions")])):d.createCommentVNode("",!0),t.isCollapsable?(d.openBlock(),d.createBlock(u,{key:2,class:"vc-card__collapse",icon:`fas fa-chevron-${r.value?"down":"up"}`,size:"s"},null,8,["icon"])):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0),d.createVNode(d.Transition,{name:"fade"},{default:d.withCtx(()=>[d.withDirectives(d.createElementVNode("div",{class:d.normalizeClass([{"vc-flex":t.fill},"vc-card__body"])},[d.renderSlot(i.$slots,"default")],2),[[d.vShow,!r.value]])]),_:3})],2)}}});const bw={class:"vc-checkbox__label"},ww=["checked","disabled"],Sw=d.createElementVNode("span",{class:"vc-checkbox__checkmark"},null,-1),_w={key:0,class:"ml-2"},xw={key:1,class:"text-[color:var(--checkbox-required-color)] ml-1"},pa=d.defineComponent({__name:"vc-checkbox",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},name:{type:String,default:"Field"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=d.getCurrentInstance(),{errorMessage:s,handleChange:i}=_t.useField(`${(r==null?void 0:r.uid)||n.name}`,n.required?"required":"",{initialValue:n.modelValue});d.watch(()=>n.modelValue,u=>{i(u)});function o(u){const l=u.target.checked;e("update:modelValue",l)}return(u,l)=>{const f=d.resolveComponent("VcHint");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-checkbox",{"vc-checkbox_disabled":t.disabled}])},[d.createElementVNode("label",bw,[d.createElementVNode("input",{type:"checkbox",class:"vc-checkbox__input",checked:t.modelValue,disabled:t.disabled,onChange:o},null,40,ww),Sw,u.$slots.default?(d.openBlock(),d.createElementBlock("span",_w,[d.renderSlot(u.$slots,"default")])):d.createCommentVNode("",!0),t.required?(d.openBlock(),d.createElementBlock("span",xw,"*")):d.createCommentVNode("",!0)]),d.unref(s)?d.renderSlot(u.$slots,"error",{key:0},()=>[d.createVNode(f,{class:"vc-checkbox__error mt-1"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(s)),1)]),_:1})]):d.createCommentVNode("",!0)],2)}}});const ma=d.defineComponent({__name:"vc-col",props:{size:{type:String,default:"1"}},setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("div",{class:"vc-col flex flex-col min-w-0 basis-0",style:d.normalizeStyle({flexGrow:t.size})},[d.renderSlot(e.$slots,"default")],4))}});const ts=d.defineComponent({__name:"vc-container",props:{shadow:{type:Boolean,default:!1},noPadding:{type:Boolean,default:!1},usePtr:{type:Boolean,default:!1}},emits:["scroll:ptr","scroll:infinite"],setup(t,{expose:e,emit:n}){const r=t,s=d.ref(),i=d.ref(!1),o=d.ref(0),u=d.ref(),l=d.ref(60),f=d.ref(0),a=d.ref("normal"),c=d.ref(0);d.onMounted(()=>{const b=new ResizeObserver(()=>{i.value=s.value&&s.value.clientHeight<s.value.scrollHeight});s.value&&b.observe(s.value)});const h=d.computed(()=>a.value!=="refresh"&&a.value!=="success");e({scrollTop:()=>{s.value&&s.value.scroll(0,0)}});function m(b){!h.value||_(b)}function g(b){if(r.usePtr){const C=b.touches[0];if(!h.value)return;u.value||_(b),c.value=C.clientY-o.value,u.value&&c.value>=0&&c.value<80&&(b.preventDefault(),$(x(c.value)))}}function v(){c.value&&h.value&&(a.value==="loosing"&&d.nextTick(()=>n("scroll:ptr")),$(0))}function w(b){const C=b.scrollTop;return Math.max(C,0)}function _(b){u.value=w(s.value)===0,u.value&&(o.value=b.touches[0].clientY)}function $(b){let C;b===0?C="normal":C=b<l.value?"pulling":"loosing",f.value=b,C!==a.value&&(a.value=C)}function x(b){const C=+l.value;return b>C&&(b<C*2?b=C+(b-C)/2:b=C*1.5+(b-C*2)/4),Math.round(b)}return(b,C)=>{const T=d.resolveComponent("VcIcon");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-container",{"vc-container_shadow":t.shadow&&i.value,"vc-container_nopadding":t.noPadding}]),onTouchstart:m,onTouchmove:g,onTouchend:v},[d.createElementVNode("div",{ref_key:"component",ref:s,class:"vc-container__inner",style:d.normalizeStyle({transform:f.value?`translate3d(0, ${f.value}px, 0)`:""})},[d.createElementVNode("div",{class:d.normalizeClass(["vc-container__overscroll",{"vc-container__overscroll_passed":a.value==="loosing"}]),style:d.normalizeStyle({height:f.value?`${f.value}px`:"0px"})},[d.createVNode(T,{icon:"fas fa-spinner",style:d.normalizeStyle({"font-size":`${f.value/2}px`}),class:"vc-container__overscroll-icon"},null,8,["style"])],6),d.renderSlot(b.$slots,"default")],4)],34)}}});const Fa=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},Cw={},Ew={class:"text-[color:var(--hint-color)] text-xs"};function kw(t,e){return d.openBlock(),d.createElementBlock("div",Ew,[d.renderSlot(t.$slots,"default")])}const Dm=Fa(Cw,[["render",kw]]),ke=d.defineComponent({__name:"vc-icon",props:{icon:{default:"fas fa-square-full"},size:{default:"m"}},setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("i",{class:d.normalizeClass(`vc-icon vc-icon_${t.size} ${t.icon.toLowerCase()}`)},null,2))}});const $w={class:"mb-[11px] last-of-type:mb-0"},Tw={key:0,class:"m-0"},Pm=d.defineComponent({__name:"vc-info-row",props:{label:{type:String,default:""},value:{type:String,default:""},tooltip:{type:String,default:""},type:{type:String,default:"default"}},setup(t){return(e,n)=>{const r=d.resolveComponent("VcLink");return d.openBlock(),d.createElementBlock("div",$w,[d.createVNode(d.unref(Uu),null,{default:d.withCtx(()=>[d.createVNode(d.unref(ma),null,{default:d.withCtx(()=>[d.createVNode(d.unref(br),null,d.createSlots({default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(t.label),1)]),_:2},[t.tooltip?{name:"tooltip",fn:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.tooltip),1)]),key:"0"}:void 0]),1024)]),_:1}),d.createVNode(d.unref(ma),{size:"2"},{default:d.withCtx(()=>[t.type==="default"?(d.openBlock(),d.createElementBlock("p",Tw,d.toDisplayString(t.value),1)):t.type==="email"?(d.openBlock(),d.createBlock(r,{key:1},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.value),1)]),_:1})):d.createCommentVNode("",!0)]),_:1})]),_:1})])}}}),Aw={key:0,class:"absolute w-full h-full flex items-center justify-center text-[#83a3be]"},Va=d.defineComponent({__name:"vc-image",props:{aspect:{type:String,default:"1x1"},rounded:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},src:{type:String,default:void 0},size:{type:String,default:"auto"},background:{type:String,default:"cover"}},emits:["click"],setup(t,{emit:e}){const n=t,r=d.computed(()=>{if(n.src)return`background: url(${encodeURI(n.src)}) center / ${n.background} no-repeat`});function s(){n.clickable&&e("click")}return(i,o)=>{const u=d.resolveComponent("VcIcon");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-image",[`vc-image_${t.size}`]])},[d.createElementVNode("div",{class:d.normalizeClass([`vc-image_${t.aspect}`,{"rounded-full pb-[var(--image-padding-bottom-1x1)]":t.rounded,"rounded-[3px] border border-solid border-[color:#efefef]":t.bordered,"cursor-pointer":t.clickable},"relative"]),style:d.normalizeStyle(d.unref(r)),onClick:s},[t.src?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",Aw,[d.createVNode(u,{icon:"fas fa-image",size:"xl"})]))],6)],2)}}});const Ow={class:"flex flex-nowrap font-bold"},Lw={key:0,class:"text-[color:var(--label-required-color)] ml-1"},Rw={key:1,class:"grow basis-0 ml-1"},Mw={key:0,class:"absolute z-10 bg-white border border-solid border-[color:#eef0f2] shadow-[1px_1px_8px_rgba(126,142,157,0.25)] rounded-[3px] text-[color:#8e9daa] font-normal py-1 px-2 ml-4"},br=d.defineComponent({__name:"vc-label",props:{required:{type:Boolean,default:!1},tooltipIcon:{type:String,default:"fas fa-info-circle"}},setup(t){const e=d.ref(!1);return(n,r)=>(d.openBlock(),d.createElementBlock("div",Ow,[d.createElementVNode("span",null,[d.renderSlot(n.$slots,"default")]),t.required?(d.openBlock(),d.createElementBlock("span",Lw,"*")):d.createCommentVNode("",!0),n.$slots.tooltip?(d.openBlock(),d.createElementBlock("span",Rw,[d.createVNode(d.unref(ke),{class:"text-[color:var(--label-tooltip-color)]",icon:t.tooltipIcon,size:"s",onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},null,8,["icon"]),e.value?(d.openBlock(),d.createElementBlock("span",Mw,[d.renderSlot(n.$slots,"tooltip")])):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0)]))}});const Vu=d.defineComponent({__name:"vc-link",props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const n=t;function r(){n.disabled||e("click")}return(s,i)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-link",{"vc-text-[color:var(--link-text-color-active)] no-underline":t.active,"cursor-not-allowed text-[color:var(--link-text-color-disabled)] hover:text-[color:var(--link-text-color-disabled)] no-underline":t.disabled}]),onClick:r},[d.renderSlot(s.$slots,"default")],2))}});const Iw={class:"relative w-[142px] h-[40px] z-[1]"},Nw=d.createElementVNode("span",{class:"absolute w-4 h-4 top-[12px] left-[15px] bg-[#319ed4] rounded-full translate-x-0 animate-loadingMarker"},null,-1),Dw={class:"translate-x-0 mt-3 ml-[31px] animate-loadingMarkers"},Wu=d.defineComponent({__name:"vc-loading",props:{active:{type:Boolean,default:!1}},setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["absolute items-center justify-center flex-col z-[9998] hidden w-full h-full box-border",{"!flex backdrop-blur-[3px] bg-[rgba(255, 255, 255, 0.5)]":t.active}])},[d.createElementVNode("div",Iw,[Nw,d.createElementVNode("div",Dw,[(d.openBlock(),d.createElementBlock(d.Fragment,null,d.renderList(3,r=>d.createElementVNode("span",{class:"block float-left w-4 h-4 bg-[#319ed4] rounded-full ml-4",key:`marker_${r}`})),64))])])],2))}}),Bm=d.defineComponent({__name:"vc-progress",props:{value:{type:Number,default:0},variant:{type:String,default:"default",enum:["default","striped"]}},setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-progress border border-[length:var(--progressbar-border-width)] border-[color:var(--progressbar-border-color)] rounded-[var(--progressbar-border-radius)] h-[var(--progressbar-height)] transition duration-200 box-border bg-[color:var(--progressbar-background-color)]",t.variant])},[d.createElementVNode("div",{class:"vc-progress__value bg-[color:var(--progressbar-foreground-color)] transition duration-200 h-full",style:d.normalizeStyle(`width: ${t.value}%`)},null,4)],2))}});const Pw={},Bw={class:"vc-row flex-nowrap flex items-stretch"};function Fw(t,e){return d.openBlock(),d.createElementBlock("div",Bw,[d.renderSlot(t.$slots,"default")])}const Uu=Fa(Pw,[["render",Fw]]),Hu=d.defineComponent({__name:"vc-status",props:{variant:{type:String,default:"info",enum:["info","warning","danger","success","light-danger"]},outline:{type:Boolean,default:!0},extend:{type:Boolean,default:!1}},setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-status",[`vc-status_${t.variant}`,{"vc-status_outline":t.outline},{"vc-status_extended":t.extend}]])},[d.renderSlot(e.$slots,"default")],2))}});const ju=d.defineComponent({__name:"vc-status-icon",props:{status:{type:Boolean,default:!1}},setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("div",null,[t.status?(d.openBlock(),d.createBlock(d.unref(ke),{key:0,icon:"fas fa-check-circle",class:"text-[color:#87b563]"})):(d.openBlock(),d.createBlock(d.unref(ke),{key:1,icon:"fas fa-times-circle",class:"text-[color:#bdd1df]"}))]))}}),Vw={class:"relative inline-block w-[54px] h-[18px]"},Ww=["checked","disabled"],Uw=d.createElementVNode("span",{class:"vc-switch__slider"},null,-1),Fm=d.defineComponent({__name:"vc-switch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tooltip:{type:String,default:""},required:{type:Boolean,default:!1},label:{type:String,default:void 0}},emits:["update:modelValue"],setup(t,{emit:e}){function n(r){const s=r.target.checked;e("update:modelValue",s)}return(r,s)=>{const i=d.resolveComponent("VcLabel"),o=d.resolveComponent("VcHint");return d.openBlock(),d.createElementBlock("div",null,[t.label?(d.openBlock(),d.createBlock(i,{key:0,class:"mb-2",required:t.required},{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(t.label),1)]),_:1},8,["required"])):d.createCommentVNode("",!0),d.createElementVNode("div",Vw,[d.createElementVNode("label",null,[d.createElementVNode("input",{type:"checkbox",class:"vc-switch__input",checked:t.modelValue,disabled:t.disabled,onInput:n},null,40,Ww),Uw]),t.tooltip?(d.openBlock(),d.createBlock(o,{key:0,class:"mt-2 w-max"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.tooltip),1)]),_:1})):d.createCommentVNode("",!0)])])}}});const Hw={key:1,class:"vc-widget__title"},jw={key:2,class:"vc-widget__value"},Vm=d.defineComponent({__name:"vc-widget",props:{icon:{type:String,default:void 0},title:{type:String,default:void 0},value:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const n=t;function r(){n.disabled||e("click")}return(s,i)=>{const o=d.resolveComponent("VcIcon");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-widget",{"vc-widget_disabled":t.disabled}]),onClick:r},[t.icon?(d.openBlock(),d.createBlock(o,{key:0,class:"vc-widget__icon",icon:t.icon,size:"xxl"},null,8,["icon"])):d.createCommentVNode("",!0),t.title?(d.openBlock(),d.createElementBlock("div",Hw,d.toDisplayString(t.title),1)):d.createCommentVNode("",!0),t.value!==void 0?(d.openBlock(),d.createElementBlock("div",jw,d.toDisplayString(t.value),1)):d.createCommentVNode("",!0)],2)}}});const zw={class:"vc-breadcrumbs-item__title"},Gw=d.defineComponent({__name:"vc-breadcrumbs-item",props:{current:{type:Boolean,default:!1},icon:{type:String,default:void 0},title:{type:String,default:void 0},clickHandler:{type:Function,default:void 0},id:{type:String,default:void 0}},emits:["click"],setup(t,{emit:e}){const n=t;function r(){n.current||(n.clickHandler&&typeof n.clickHandler=="function"?n.clickHandler(n.id):e("click"))}return(s,i)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-breadcrumbs-item",{"vc-breadcrumbs-item_current":t.current}]),onClick:r},[t.icon?(d.openBlock(),d.createBlock(d.unref(ke),{key:0,class:"vc-breadcrumbs-item__icon",icon:t.icon,size:"s"},null,8,["icon"])):d.createCommentVNode("",!0),d.createElementVNode("div",zw,d.toDisplayString(t.title),1)],2))}});const Yw={key:0,class:"flex items-center flex-nowrap"},Wm=d.defineComponent({__name:"vc-breadcrumbs",props:{items:{type:Array,default:()=>[]}},setup(t){return(e,n)=>t.items?(d.openBlock(),d.createElementBlock("div",Yw,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.items,(r,s)=>(d.openBlock(),d.createBlock(Gw,d.mergeProps({key:r.id},r,{current:s===t.items.length-1}),null,16,["current"]))),128))])):d.createCommentVNode("",!0)}});function Jw(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var Um={exports:{}};(function(t,e){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var s=function(a,c,h){if(typeof a!="string"){s.original?s.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(h=c),s.modules[a]||(s.payloads[a]=h,s.modules[a]=null)};s.modules={},s.payloads={};var i=function(a,c,h){if(typeof c=="string"){var p=l(a,c);if(p!=null)return h&&h(),p}else if(Object.prototype.toString.call(c)==="[object Array]"){for(var m=[],g=0,v=c.length;g<v;++g){var w=l(a,c[g]);if(w==null&&o.original)return;m.push(w)}return h&&h.apply(null,m)||!0}},o=function(a,c){var h=i("",a,c);return h==null&&o.original?o.original.apply(this,arguments):h},u=function(a,c){if(c.indexOf("!")!==-1){var h=c.split("!");return u(a,h[0])+"!"+u(a,h[1])}if(c.charAt(0)=="."){var p=a.split("/").slice(0,-1).join("/");for(c=p+"/"+c;c.indexOf(".")!==-1&&m!=c;){var m=c;c=c.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return c},l=function(a,c){c=u(a,c);var h=s.modules[c];if(!h){if(h=s.payloads[c],typeof h=="function"){var p={},m={id:c,uri:"",exports:p,packaged:!0},g=function(w,_){return i(c,w,_)},v=h(g,p,m);p=v||m.exports,s.modules[c]=p,delete s.payloads[c]}h=s.modules[c]=p||h}return h};function f(a){var c=r;a&&(r[a]||(r[a]={}),c=r[a]),(!c.define||!c.define.packaged)&&(s.original=c.define,c.define=s,c.define.packaged=!0),(!c.require||!c.require.packaged)&&(o.original=c.require,c.require=o,c.require.packaged=!0)}f(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,s){function i(o,u,l){Object.defineProperty(o,u,{value:l,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||i(String.prototype,"startsWith",function(o,u){return u=u||0,this.lastIndexOf(o,u)===u}),String.prototype.endsWith||i(String.prototype,"endsWith",function(o,u){var l=this;(u===void 0||u>l.length)&&(u=l.length),u-=o.length;var f=l.indexOf(o,u);return f!==-1&&f===u}),String.prototype.repeat||i(String.prototype,"repeat",function(o){for(var u="",l=this;o>0;)o&1&&(u+=l),(o>>=1)&&(l+=l);return u}),String.prototype.includes||i(String.prototype,"includes",function(o,u){return this.indexOf(o,u)!=-1}),Object.assign||(Object.assign=function(o){if(o==null)throw new TypeError("Cannot convert undefined or null to object");for(var u=Object(o),l=1;l<arguments.length;l++){var f=arguments[l];f!=null&&Object.keys(f).forEach(function(a){u[a]=f[a]})}return u}),Object.values||(Object.values=function(o){return Object.keys(o).map(function(u){return o[u]})}),Array.prototype.find||i(Array.prototype,"find",function(o){for(var u=this.length,l=arguments[1],f=0;f<u;f++){var a=this[f];if(o.call(l,a,f,this))return a}}),Array.prototype.findIndex||i(Array.prototype,"findIndex",function(o){for(var u=this.length,l=arguments[1],f=0;f<u;f++){var a=this[f];if(o.call(l,a,f,this))return f}}),Array.prototype.includes||i(Array.prototype,"includes",function(o,u){return this.indexOf(o,u)!=-1}),Array.prototype.fill||i(Array.prototype,"fill",function(o){for(var u=this,l=u.length>>>0,f=arguments[1],a=f>>0,c=a<0?Math.max(l+a,0):Math.min(a,l),h=arguments[2],p=h===void 0?l:h>>0,m=p<0?Math.max(l+p,0):Math.min(p,l);c<m;)u[c]=o,c++;return u}),Array.of||i(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,r,s){n("./es6-shim")}),ace.define("ace/lib/lang",["require","exports","module"],function(n,r,s){r.last=function(u){return u[u.length-1]},r.stringReverse=function(u){return u.split("").reverse().join("")},r.stringRepeat=function(u,l){for(var f="";l>0;)l&1&&(f+=u),(l>>=1)&&(u+=u);return f};var i=/^\s\s*/,o=/\s\s*$/;r.stringTrimLeft=function(u){return u.replace(i,"")},r.stringTrimRight=function(u){return u.replace(o,"")},r.copyObject=function(u){var l={};for(var f in u)l[f]=u[f];return l},r.copyArray=function(u){for(var l=[],f=0,a=u.length;f<a;f++)u[f]&&typeof u[f]=="object"?l[f]=this.copyObject(u[f]):l[f]=u[f];return l},r.deepCopy=function u(l){if(typeof l!="object"||!l)return l;var f;if(Array.isArray(l)){f=[];for(var a=0;a<l.length;a++)f[a]=u(l[a]);return f}if(Object.prototype.toString.call(l)!=="[object Object]")return l;f={};for(var a in l)f[a]=u(l[a]);return f},r.arrayToMap=function(u){for(var l={},f=0;f<u.length;f++)l[u[f]]=1;return l},r.createMap=function(u){var l=Object.create(null);for(var f in u)l[f]=u[f];return l},r.arrayRemove=function(u,l){for(var f=0;f<=u.length;f++)l===u[f]&&u.splice(f,1)},r.escapeRegExp=function(u){return u.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(u){return(""+u).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(u,l){var f=[];return u.replace(l,function(a){f.push({offset:arguments[arguments.length-2],length:a.length})}),f},r.deferredCall=function(u){var l=null,f=function(){l=null,u()},a=function(c){return a.cancel(),l=setTimeout(f,c||0),a};return a.schedule=a,a.call=function(){return this.cancel(),u(),a},a.cancel=function(){return clearTimeout(l),l=null,a},a.isPending=function(){return l},a},r.delayedCall=function(u,l){var f=null,a=function(){f=null,u()},c=function(h){f==null&&(f=setTimeout(a,h||l))};return c.delay=function(h){f&&clearTimeout(f),f=setTimeout(a,h||l)},c.schedule=c,c.call=function(){this.cancel(),u()},c.cancel=function(){f&&clearTimeout(f),f=null},c.isPending=function(){return f},c}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,s){r.inherits=function(i,o){i.super_=o,i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(i,o){for(var u in o)i[u]=o[u];return i},r.implement=function(i,o){r.mixin(i,o)}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,s){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var i=typeof navigator=="object"?navigator:{},o=(/mac|win|linux/i.exec(i.platform)||["other"])[0].toLowerCase(),u=i.userAgent||"",l=i.appName||"";r.isWin=o=="win",r.isMac=o=="mac",r.isLinux=o=="linux",r.isIE=l=="Microsoft Internet Explorer"||l.indexOf("MSAppHost")>=0?parseFloat((u.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((u.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=u.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(u.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(u.split(" Chrome/")[1])||void 0,r.isEdge=parseFloat(u.split(" Edge/")[1])||void 0,r.isAIR=u.indexOf("AdobeAIR")>=0,r.isAndroid=u.indexOf("Android")>=0,r.isChromeOS=u.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(u)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,r,s){var i=n("./useragent"),o="http://www.w3.org/1999/xhtml";r.buildDom=function h(p,m,g){if(typeof p=="string"&&p){var v=document.createTextNode(p);return m&&m.appendChild(v),v}if(!Array.isArray(p))return p&&p.appendChild&&m&&m.appendChild(p),p;if(typeof p[0]!="string"||!p[0]){for(var w=[],_=0;_<p.length;_++){var $=h(p[_],m,g);$&&w.push($)}return w}var x=document.createElement(p[0]),b=p[1],C=1;b&&typeof b=="object"&&!Array.isArray(b)&&(C=2);for(var _=C;_<p.length;_++)h(p[_],x,g);return C==2&&Object.keys(b).forEach(function(T){var k=b[T];T==="class"?x.className=Array.isArray(k)?k.join(" "):k:typeof k=="function"||T=="value"||T[0]=="$"?x[T]=k:T==="ref"?g&&(g[k]=x):T==="style"?typeof k=="string"&&(x.style.cssText=k):k!=null&&x.setAttribute(T,k)}),m&&m.appendChild(x),x},r.getDocumentHead=function(h){return h||(h=document),h.head||h.getElementsByTagName("head")[0]||h.documentElement},r.createElement=function(h,p){return document.createElementNS?document.createElementNS(p||o,h):document.createElement(h)},r.removeChildren=function(h){h.innerHTML=""},r.createTextNode=function(h,p){var m=p?p.ownerDocument:document;return m.createTextNode(h)},r.createFragment=function(h){var p=h?h.ownerDocument:document;return p.createDocumentFragment()},r.hasCssClass=function(h,p){var m=(h.className+"").split(/\s+/g);return m.indexOf(p)!==-1},r.addCssClass=function(h,p){r.hasCssClass(h,p)||(h.className+=" "+p)},r.removeCssClass=function(h,p){for(var m=h.className.split(/\s+/g);;){var g=m.indexOf(p);if(g==-1)break;m.splice(g,1)}h.className=m.join(" ")},r.toggleCssClass=function(h,p){for(var m=h.className.split(/\s+/g),g=!0;;){var v=m.indexOf(p);if(v==-1)break;g=!1,m.splice(v,1)}return g&&m.push(p),h.className=m.join(" "),g},r.setCssClass=function(h,p,m){m?r.addCssClass(h,p):r.removeCssClass(h,p)},r.hasCssString=function(h,p){var m=0,g;if(p=p||document,g=p.querySelectorAll("style")){for(;m<g.length;)if(g[m++].id===h)return!0}},r.removeElementById=function(h,p){p=p||document,p.getElementById(h)&&p.getElementById(h).remove()};var u,l=[];r.useStrictCSP=function(h){u=h,h==!1?f():l||(l=[])};function f(){var h=l;l=null,h&&h.forEach(function(p){a(p[0],p[1])})}function a(h,p,m){if(!(typeof document>"u")){if(l){if(m)f();else if(m===!1)return l.push([h,p])}if(!u){var g=m;!m||!m.getRootNode?g=document:(g=m.getRootNode(),(!g||g==m)&&(g=document));var v=g.ownerDocument||g;if(p&&r.hasCssString(p,g))return null;p&&(h+=`
2
+ /*# sourceURL=ace/css/`+p+" */");var w=r.createElement("style");w.appendChild(v.createTextNode(h)),p&&(w.id=p),g==v&&(g=r.getDocumentHead(v)),g.insertBefore(w,g.firstChild)}}}if(r.importCssString=a,r.importCssStylsheet=function(h,p){r.buildDom(["link",{rel:"stylesheet",href:h}],r.getDocumentHead(p))},r.scrollbarWidth=function(h){var p=r.createElement("ace_inner");p.style.width="100%",p.style.minWidth="0px",p.style.height="200px",p.style.display="block";var m=r.createElement("ace_outer"),g=m.style;g.position="absolute",g.left="-10000px",g.overflow="hidden",g.width="200px",g.minWidth="0px",g.height="150px",g.display="block",m.appendChild(p);var v=h&&h.documentElement||document&&document.documentElement;if(!v)return 0;v.appendChild(m);var w=p.offsetWidth;g.overflow="scroll";var _=p.offsetWidth;return w===_&&(_=m.clientWidth),v.removeChild(m),w-_},r.computedStyle=function(h,p){return window.getComputedStyle(h,"")||{}},r.setStyle=function(h,p,m){h[p]!==m&&(h[p]=m)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=i.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,i.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var c=document.createElement("div");r.HI_DPI&&c.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!i.isEdge&&typeof c.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),c=null}r.HAS_CSS_TRANSFORMS?r.translate=function(h,p,m){h.style.transform="translate("+Math.round(p)+"px, "+Math.round(m)+"px)"}:r.translate=function(h,p,m){h.style.top=Math.round(m)+"px",h.style.left=Math.round(p)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,s){/*
3
+ * based on code from:
4
+ *
5
+ * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
6
+ * Available via the MIT or new BSD license.
7
+ * see: http://github.com/jrburke/requirejs for details
8
+ */var i=n("./dom");r.get=function(o,u){var l=new XMLHttpRequest;l.open("GET",o,!0),l.onreadystatechange=function(){l.readyState===4&&u(l.responseText)},l.send(null)},r.loadScript=function(o,u){var l=i.getDocumentHead(),f=document.createElement("script");f.src=o,l.appendChild(f),f.onload=f.onreadystatechange=function(a,c){(c||!f.readyState||f.readyState=="loaded"||f.readyState=="complete")&&(f=f.onload=f.onreadystatechange=null,c||u())}},r.qualifyURL=function(o){var u=document.createElement("a");return u.href=o,u.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,s){var i={},o=function(){this.propagationStopped=!0},u=function(){this.defaultPrevented=!0};i._emit=i._dispatchEvent=function(l,f){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var a=this._eventRegistry[l]||[],c=this._defaultHandlers[l];if(!(!a.length&&!c)){(typeof f!="object"||!f)&&(f={}),f.type||(f.type=l),f.stopPropagation||(f.stopPropagation=o),f.preventDefault||(f.preventDefault=u),a=a.slice();for(var h=0;h<a.length&&(a[h](f,this),!f.propagationStopped);h++);if(c&&!f.defaultPrevented)return c(f,this)}},i._signal=function(l,f){var a=(this._eventRegistry||{})[l];if(!!a){a=a.slice();for(var c=0;c<a.length;c++)a[c](f,this)}},i.once=function(l,f){var a=this;if(this.on(l,function c(){a.off(l,c),f.apply(null,arguments)}),!f)return new Promise(function(c){f=c})},i.setDefaultHandler=function(l,f){var a=this._defaultHandlers;if(a||(a=this._defaultHandlers={_disabled_:{}}),a[l]){var c=a[l],h=a._disabled_[l];h||(a._disabled_[l]=h=[]),h.push(c);var p=h.indexOf(f);p!=-1&&h.splice(p,1)}a[l]=f},i.removeDefaultHandler=function(l,f){var a=this._defaultHandlers;if(!!a){var c=a._disabled_[l];if(a[l]==f)c&&this.setDefaultHandler(l,c.pop());else if(c){var h=c.indexOf(f);h!=-1&&c.splice(h,1)}}},i.on=i.addEventListener=function(l,f,a){this._eventRegistry=this._eventRegistry||{};var c=this._eventRegistry[l];return c||(c=this._eventRegistry[l]=[]),c.indexOf(f)==-1&&c[a?"unshift":"push"](f),f},i.off=i.removeListener=i.removeEventListener=function(l,f){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[l];if(!!a){var c=a.indexOf(f);c!==-1&&a.splice(c,1)}},i.removeAllListeners=function(l){l||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[l]=void 0),this._defaultHandlers&&(this._defaultHandlers[l]=void 0)},r.EventEmitter=i}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,s){var i=n("./oop"),o=n("./event_emitter").EventEmitter,u={setOptions:function(c){Object.keys(c).forEach(function(h){this.setOption(h,c[h])},this)},getOptions:function(c){var h={};if(c)Array.isArray(c)||(h=c,c=Object.keys(h));else{var p=this.$options;c=Object.keys(p).filter(function(m){return!p[m].hidden})}return c.forEach(function(m){h[m]=this.getOption(m)},this),h},setOption:function(c,h){if(this["$"+c]!==h){var p=this.$options[c];if(!p)return l('misspelled option "'+c+'"');if(p.forwardTo)return this[p.forwardTo]&&this[p.forwardTo].setOption(c,h);p.handlesSet||(this["$"+c]=h),p&&p.set&&p.set.call(this,h)}},getOption:function(c){var h=this.$options[c];return h?h.forwardTo?this[h.forwardTo]&&this[h.forwardTo].getOption(c):h&&h.get?h.get.call(this):this["$"+c]:l('misspelled option "'+c+'"')}};function l(c){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}function f(c,h){var p=new Error(c);p.data=h,typeof console=="object"&&console.error&&console.error(p),setTimeout(function(){throw p})}var a=function(){this.$defaultOptions={}};(function(){i.implement(this,o),this.defineOptions=function(c,h,p){return c.$options||(this.$defaultOptions[h]=c.$options={}),Object.keys(p).forEach(function(m){var g=p[m];typeof g=="string"&&(g={forwardTo:g}),g.name||(g.name=m),c.$options[g.name]=g,"initialValue"in g&&(c["$"+g.name]=g.initialValue)}),i.implement(c,u),this},this.resetOptions=function(c){Object.keys(c.$options).forEach(function(h){var p=c.$options[h];"value"in p&&c.setOption(h,p.value)})},this.setDefaultValue=function(c,h,p){if(!c){for(c in this.$defaultOptions)if(this.$defaultOptions[c][h])break;if(!this.$defaultOptions[c][h])return!1}var m=this.$defaultOptions[c]||(this.$defaultOptions[c]={});m[h]&&(m.forwardTo?this.setDefaultValue(m.forwardTo,h,p):m[h].value=p)},this.setDefaultValues=function(c,h){Object.keys(h).forEach(function(p){this.setDefaultValue(c,p,h[p])},this)},this.warn=l,this.reportError=f}).call(a.prototype),r.AppConfig=a}),ace.define("ace/theme/textmate.css",["require","exports","module"],function(n,r,s){s.exports=`.ace-tm .ace_gutter {
9
+ background: #f0f0f0;
10
+ color: #333;
11
+ }
12
+
13
+ .ace-tm .ace_print-margin {
14
+ width: 1px;
15
+ background: #e8e8e8;
16
+ }
17
+
18
+ .ace-tm .ace_fold {
19
+ background-color: #6B72E6;
20
+ }
21
+
22
+ .ace-tm {
23
+ background-color: #FFFFFF;
24
+ color: black;
25
+ }
26
+
27
+ .ace-tm .ace_cursor {
28
+ color: black;
29
+ }
30
+
31
+ .ace-tm .ace_invisible {
32
+ color: rgb(191, 191, 191);
33
+ }
34
+
35
+ .ace-tm .ace_storage,
36
+ .ace-tm .ace_keyword {
37
+ color: blue;
38
+ }
39
+
40
+ .ace-tm .ace_constant {
41
+ color: rgb(197, 6, 11);
42
+ }
43
+
44
+ .ace-tm .ace_constant.ace_buildin {
45
+ color: rgb(88, 72, 246);
46
+ }
47
+
48
+ .ace-tm .ace_constant.ace_language {
49
+ color: rgb(88, 92, 246);
50
+ }
51
+
52
+ .ace-tm .ace_constant.ace_library {
53
+ color: rgb(6, 150, 14);
54
+ }
55
+
56
+ .ace-tm .ace_invalid {
57
+ background-color: rgba(255, 0, 0, 0.1);
58
+ color: red;
59
+ }
60
+
61
+ .ace-tm .ace_support.ace_function {
62
+ color: rgb(60, 76, 114);
63
+ }
64
+
65
+ .ace-tm .ace_support.ace_constant {
66
+ color: rgb(6, 150, 14);
67
+ }
68
+
69
+ .ace-tm .ace_support.ace_type,
70
+ .ace-tm .ace_support.ace_class {
71
+ color: rgb(109, 121, 222);
72
+ }
73
+
74
+ .ace-tm .ace_keyword.ace_operator {
75
+ color: rgb(104, 118, 135);
76
+ }
77
+
78
+ .ace-tm .ace_string {
79
+ color: rgb(3, 106, 7);
80
+ }
81
+
82
+ .ace-tm .ace_comment {
83
+ color: rgb(76, 136, 107);
84
+ }
85
+
86
+ .ace-tm .ace_comment.ace_doc {
87
+ color: rgb(0, 102, 255);
88
+ }
89
+
90
+ .ace-tm .ace_comment.ace_doc.ace_tag {
91
+ color: rgb(128, 159, 191);
92
+ }
93
+
94
+ .ace-tm .ace_constant.ace_numeric {
95
+ color: rgb(0, 0, 205);
96
+ }
97
+
98
+ .ace-tm .ace_variable {
99
+ color: rgb(49, 132, 149);
100
+ }
101
+
102
+ .ace-tm .ace_xml-pe {
103
+ color: rgb(104, 104, 91);
104
+ }
105
+
106
+ .ace-tm .ace_entity.ace_name.ace_function {
107
+ color: #0000A2;
108
+ }
109
+
110
+
111
+ .ace-tm .ace_heading {
112
+ color: rgb(12, 7, 255);
113
+ }
114
+
115
+ .ace-tm .ace_list {
116
+ color:rgb(185, 6, 144);
117
+ }
118
+
119
+ .ace-tm .ace_meta.ace_tag {
120
+ color:rgb(0, 22, 142);
121
+ }
122
+
123
+ .ace-tm .ace_string.ace_regex {
124
+ color: rgb(255, 0, 0)
125
+ }
126
+
127
+ .ace-tm .ace_marker-layer .ace_selection {
128
+ background: rgb(181, 213, 255);
129
+ }
130
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
131
+ box-shadow: 0 0 3px 0px white;
132
+ }
133
+ .ace-tm .ace_marker-layer .ace_step {
134
+ background: rgb(252, 255, 0);
135
+ }
136
+
137
+ .ace-tm .ace_marker-layer .ace_stack {
138
+ background: rgb(164, 229, 101);
139
+ }
140
+
141
+ .ace-tm .ace_marker-layer .ace_bracket {
142
+ margin: -1px 0 0 -1px;
143
+ border: 1px solid rgb(192, 192, 192);
144
+ }
145
+
146
+ .ace-tm .ace_marker-layer .ace_active-line {
147
+ background: rgba(0, 0, 0, 0.07);
148
+ }
149
+
150
+ .ace-tm .ace_gutter-active-line {
151
+ background-color : #dcdcdc;
152
+ }
153
+
154
+ .ace-tm .ace_marker-layer .ace_selected-word {
155
+ background: rgb(250, 250, 255);
156
+ border: 1px solid rgb(200, 200, 250);
157
+ }
158
+
159
+ .ace-tm .ace_indent-guide {
160
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
161
+ }
162
+
163
+ .ace-tm .ace_indent-guide-active {
164
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
165
+ }
166
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate.css","ace/lib/dom"],function(n,r,s){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate.css"),r.$id="ace/theme/textmate";var i=n("../lib/dom");i.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,r,s){var i=n("./lib/lang");n("./lib/oop");var o=n("./lib/net"),u=n("./lib/dom"),l=n("./lib/app_config").AppConfig;s.exports=r=new l;var f={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(h){if(!f.hasOwnProperty(h))throw new Error("Unknown config key: "+h);return f[h]},r.set=function(h,p){if(f.hasOwnProperty(h))f[h]=p;else if(this.setDefaultValue("",h,p)==!1)throw new Error("Unknown config key: "+h);h=="useStrictCSP"&&u.useStrictCSP(p)},r.all=function(){return i.copyObject(f)},r.$modes={},r.moduleUrl=function(h,p){if(f.$moduleUrls[h])return f.$moduleUrls[h];var m=h.split("/");p=p||m[m.length-2]||"";var g=p=="snippets"?"/":"-",v=m[m.length-1];if(p=="worker"&&g=="-"){var w=new RegExp("^"+p+"[\\-_]|[\\-_]"+p+"$","g");v=v.replace(w,"")}(!v||v==p)&&m.length>1&&(v=m[m.length-2]);var _=f[p+"Path"];return _==null?_=f.basePath:g=="/"&&(p=g=""),_&&_.slice(-1)!="/"&&(_+="/"),_+p+g+v+this.get("suffix")},r.setModuleUrl=function(h,p){return f.$moduleUrls[h]=p};var a=function(h,p){return h=="ace/theme/textmate"?p(null,n("./theme/textmate")):console.error("loader is not configured")};r.setLoader=function(h){a=h},r.$loading={},r.loadModule=function(h,p){var m,g;Array.isArray(h)&&(g=h[0],h=h[1]);try{m=n(h)}catch{}if(m&&!r.$loading[h])return p&&p(m);if(r.$loading[h]||(r.$loading[h]=[]),r.$loading[h].push(p),!(r.$loading[h].length>1)){var v=function(){a(h,function(w,_){r._emit("load.module",{name:h,module:_});var $=r.$loading[h];r.$loading[h]=null,$.forEach(function(x){x&&x(_)})})};if(!r.get("packaged"))return v();o.loadScript(r.moduleUrl(h,g),v),c()}};var c=function(){!f.basePath&&!f.workerPath&&!f.modePath&&!f.themePath&&!Object.keys(f.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};r.version="1.13.1"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,s){n("./lib/fixoldbrowsers");var i=n("./config");i.setLoader(function(f,a){n([f],function(c){a(null,c)})});var o=function(){return this||typeof window<"u"&&window}();s.exports=function(f){i.init=u,f.require=n},u(!0);function u(f){if(!(!o||!o.document)){i.set("packaged",f||n.packaged||s.packaged||o.define&&(void 0).packaged);for(var a={},c="",h=document.currentScript||document._currentScript,p=h&&h.ownerDocument||document,m=p.getElementsByTagName("script"),g=0;g<m.length;g++){var v=m[g],w=v.src||v.getAttribute("src");if(!!w){for(var _=v.attributes,$=0,x=_.length;$<x;$++){var b=_[$];b.name.indexOf("data-ace-")===0&&(a[l(b.name.replace(/^data-ace-/,""))]=b.value)}var C=w.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);C&&(c=C[1])}}c&&(a.base=a.base||c,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base;for(var T in a)typeof a[T]<"u"&&i.set(T,a[T])}}function l(f){return f.replace(/-(.)/g,function(a,c){return c.toUpperCase()})}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,s){/*! @license
167
+ ==========================================================================
168
+ SproutCore -- JavaScript Application Framework
169
+ copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
170
+
171
+ Permission is hereby granted, free of charge, to any person obtaining a
172
+ copy of this software and associated documentation files (the "Software"),
173
+ to deal in the Software without restriction, including without limitation
174
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
175
+ and/or sell copies of the Software, and to permit persons to whom the
176
+ Software is furnished to do so, subject to the following conditions:
177
+
178
+ The above copyright notice and this permission notice shall be included in
179
+ all copies or substantial portions of the Software.
180
+
181
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
182
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
183
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
184
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
185
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
186
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
187
+ DEALINGS IN THE SOFTWARE.
188
+
189
+ SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
190
+
191
+ For more information about SproutCore, visit http://www.sproutcore.com
192
+
193
+
194
+ ==========================================================================
195
+ @license */var i=n("./oop"),o=function(){var u={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};u.PRINTABLE_KEYS[173]="-";var l,f;for(f in u.FUNCTION_KEYS)l=u.FUNCTION_KEYS[f].toLowerCase(),u[l]=parseInt(f,10);for(f in u.PRINTABLE_KEYS)l=u.PRINTABLE_KEYS[f].toLowerCase(),u[l]=parseInt(f,10);return i.mixin(u,u.MODIFIER_KEYS),i.mixin(u,u.PRINTABLE_KEYS),i.mixin(u,u.FUNCTION_KEYS),u.enter=u.return,u.escape=u.esc,u.del=u.delete,function(){for(var a=["cmd","ctrl","alt","shift"],c=Math.pow(2,a.length);c--;)u.KEY_MODS[c]=a.filter(function(h){return c&u.KEY_MODS[h]}).join("-")+"-"}(),u.KEY_MODS[0]="",u.KEY_MODS[-1]="input-",u}();i.mixin(r,o),r.keyCodeToString=function(u){var l=o[u];return typeof l!="string"&&(l=String.fromCharCode(u)),l.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,s){var i=n("./keys"),o=n("./useragent"),u=null,l=0,f;function a(){f=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){f={passive:!1}}})}catch{}}function c(){return f==null&&a(),f}function h($,x,b){this.elem=$,this.type=x,this.callback=b}h.prototype.destroy=function(){m(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var p=r.addListener=function($,x,b,C){$.addEventListener(x,b,c()),C&&C.$toDestroy.push(new h($,x,b))},m=r.removeListener=function($,x,b){$.removeEventListener(x,b,c())};r.stopEvent=function($){return r.stopPropagation($),r.preventDefault($),!1},r.stopPropagation=function($){$.stopPropagation&&$.stopPropagation()},r.preventDefault=function($){$.preventDefault&&$.preventDefault()},r.getButton=function($){return $.type=="dblclick"?0:$.type=="contextmenu"||o.isMac&&$.ctrlKey&&!$.altKey&&!$.shiftKey?2:$.button},r.capture=function($,x,b){var C=$&&$.ownerDocument||document;function T(k){x&&x(k),b&&b(k),m(C,"mousemove",x),m(C,"mouseup",T),m(C,"dragstart",T)}return p(C,"mousemove",x),p(C,"mouseup",T),p(C,"dragstart",T),T},r.addMouseWheelListener=function($,x,b){p($,"wheel",function(C){var T=.15,k=C.deltaX||0,S=C.deltaY||0;switch(C.deltaMode){case C.DOM_DELTA_PIXEL:C.wheelX=k*T,C.wheelY=S*T;break;case C.DOM_DELTA_LINE:var y=15;C.wheelX=k*y,C.wheelY=S*y;break;case C.DOM_DELTA_PAGE:var E=150;C.wheelX=k*E,C.wheelY=S*E;break}x(C)},b)},r.addMultiMouseDownListener=function($,x,b,C,T){var k=0,S,y,E,A={2:"dblclick",3:"tripleclick",4:"quadclick"};function O(R){if(r.getButton(R)!==0?k=0:R.detail>1?(k++,k>4&&(k=1)):k=1,o.isIE){var M=Math.abs(R.clientX-S)>5||Math.abs(R.clientY-y)>5;(!E||M)&&(k=1),E&&clearTimeout(E),E=setTimeout(function(){E=null},x[k-1]||600),k==1&&(S=R.clientX,y=R.clientY)}if(R._clicks=k,b[C]("mousedown",R),k>4)k=0;else if(k>1)return b[C](A[k],R)}Array.isArray($)||($=[$]),$.forEach(function(R){p(R,"mousedown",O,T)})};var g=function($){return 0|($.ctrlKey?1:0)|($.altKey?2:0)|($.shiftKey?4:0)|($.metaKey?8:0)};r.getModifierString=function($){return i.KEY_MODS[g($)]};function v($,x,b){var C=g(x);if(!o.isMac&&u){if(x.getModifierState&&(x.getModifierState("OS")||x.getModifierState("Win"))&&(C|=8),u.altGr)if((3&C)!=3)u.altGr=0;else return;if(b===18||b===17){var T="location"in x?x.location:x.keyLocation;if(b===17&&T===1)u[b]==1&&(l=x.timeStamp);else if(b===18&&C===3&&T===2){var k=x.timeStamp-l;k<50&&(u.altGr=!0)}}}if(b in i.MODIFIER_KEYS&&(b=-1),!C&&b===13){var T="location"in x?x.location:x.keyLocation;if(T===3&&($(x,C,-b),x.defaultPrevented))return}if(o.isChromeOS&&C&8){if($(x,C,b),x.defaultPrevented)return;C&=-9}return!C&&!(b in i.FUNCTION_KEYS)&&!(b in i.PRINTABLE_KEYS)?!1:$(x,C,b)}r.addCommandKeyListener=function($,x,b){if(o.isOldGecko||o.isOpera&&!("KeyboardEvent"in window)){var C=null;p($,"keydown",function(k){C=k.keyCode},b),p($,"keypress",function(k){return v(x,k,C)},b)}else{var T=null;p($,"keydown",function(k){u[k.keyCode]=(u[k.keyCode]||0)+1;var S=v(x,k,k.keyCode);return T=k.defaultPrevented,S},b),p($,"keypress",function(k){T&&(k.ctrlKey||k.altKey||k.shiftKey||k.metaKey)&&(r.stopEvent(k),T=null)},b),p($,"keyup",function(k){u[k.keyCode]=null},b),u||(w(),p(window,"focus",w))}};function w(){u=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!o.isOldIE){var _=1;r.nextTick=function($,x){x=x||window;var b="zero-timeout-message-"+_++,C=function(T){T.data==b&&(r.stopPropagation(T),m(x,"message",C),$())};p(x,"message",C),x.postMessage(b,"*")}}r.$idleBlocked=!1,r.onIdle=function($,x){return setTimeout(function b(){r.$idleBlocked?setTimeout(b,100):$()},x)},r.$idleBlockId=null,r.blockIdle=function($){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},$||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function($){setTimeout($,17)}}),ace.define("ace/range",["require","exports","module"],function(n,r,s){var i=function(u,l){return u.row-l.row||u.column-l.column},o=function(u,l,f,a){this.start={row:u,column:l},this.end={row:f,column:a}};(function(){this.isEqual=function(u){return this.start.row===u.start.row&&this.end.row===u.end.row&&this.start.column===u.start.column&&this.end.column===u.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(u,l){return this.compare(u,l)==0},this.compareRange=function(u){var l,f=u.end,a=u.start;return l=this.compare(f.row,f.column),l==1?(l=this.compare(a.row,a.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(a.row,a.column),l==-1?-1:l==1?42:0)},this.comparePoint=function(u){return this.compare(u.row,u.column)},this.containsRange=function(u){return this.comparePoint(u.start)==0&&this.comparePoint(u.end)==0},this.intersects=function(u){var l=this.compareRange(u);return l==-1||l==0||l==1},this.isEnd=function(u,l){return this.end.row==u&&this.end.column==l},this.isStart=function(u,l){return this.start.row==u&&this.start.column==l},this.setStart=function(u,l){typeof u=="object"?(this.start.column=u.column,this.start.row=u.row):(this.start.row=u,this.start.column=l)},this.setEnd=function(u,l){typeof u=="object"?(this.end.column=u.column,this.end.row=u.row):(this.end.row=u,this.end.column=l)},this.inside=function(u,l){return this.compare(u,l)==0?!(this.isEnd(u,l)||this.isStart(u,l)):!1},this.insideStart=function(u,l){return this.compare(u,l)==0?!this.isEnd(u,l):!1},this.insideEnd=function(u,l){return this.compare(u,l)==0?!this.isStart(u,l):!1},this.compare=function(u,l){return!this.isMultiLine()&&u===this.start.row?l<this.start.column?-1:l>this.end.column?1:0:u<this.start.row?-1:u>this.end.row?1:this.start.row===u?l>=this.start.column?0:-1:this.end.row===u?l<=this.end.column?0:1:0},this.compareStart=function(u,l){return this.start.row==u&&this.start.column==l?-1:this.compare(u,l)},this.compareEnd=function(u,l){return this.end.row==u&&this.end.column==l?1:this.compare(u,l)},this.compareInside=function(u,l){return this.end.row==u&&this.end.column==l?1:this.start.row==u&&this.start.column==l?-1:this.compare(u,l)},this.clipRows=function(u,l){if(this.end.row>l)var f={row:l+1,column:0};else if(this.end.row<u)var f={row:u,column:0};if(this.start.row>l)var a={row:l+1,column:0};else if(this.start.row<u)var a={row:u,column:0};return o.fromPoints(a||this.start,f||this.end)},this.extend=function(u,l){var f=this.compare(u,l);if(f==0)return this;if(f==-1)var a={row:u,column:l};else var c={row:u,column:l};return o.fromPoints(a||this.start,c||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return o.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new o(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new o(this.start.row,0,this.end.row,0)},this.toScreenRange=function(u){var l=u.documentToScreenPosition(this.start),f=u.documentToScreenPosition(this.end);return new o(l.row,l.column,f.row,f.column)},this.moveBy=function(u,l){this.start.row+=u,this.start.column+=l,this.end.row+=u,this.end.column+=l}}).call(o.prototype),o.fromPoints=function(u,l){return new o(u.row,u.column,l.row,l.column)},o.comparePoints=i,o.comparePoints=function(u,l){return u.row-l.row||u.column-l.column},r.Range=o}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,s){var i;s.exports={lineMode:!1,pasteCancelled:function(){return i&&i>Date.now()-50?!0:i=!1},cancel:function(){i=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,r,s){var i=n("../lib/event"),o=n("../lib/useragent"),u=n("../lib/dom"),l=n("../lib/lang"),f=n("../clipboard"),a=o.isChrome<18,c=o.isIE,h=o.isChrome>63,p=400,m=n("../lib/keys"),g=m.KEY_MODS,v=o.isIOS,w=v?/\s/:/\n/,_=o.isMobile,$=function(x,b){var C=u.createElement("textarea");C.className="ace_text-input",C.setAttribute("wrap","off"),C.setAttribute("autocorrect","off"),C.setAttribute("autocapitalize","off"),C.setAttribute("spellcheck",!1),C.style.opacity="0",x.insertBefore(C,x.firstChild);var T=!1,k=!1,S=!1,y=!1,E="";_||(C.style.fontSize="1px");var A=!1,O=!1,R="",M=0,I=0,B=0;try{var W=document.activeElement===C}catch{}i.addListener(C,"blur",function(q){O||(b.onBlur(q),W=!1)},b),i.addListener(C,"focus",function(q){if(!O){if(W=!0,o.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(q),o.isEdge?setTimeout(F):F()}},b),this.$focusScroll=!1,this.focus=function(){if(E||h||this.$focusScroll=="browser")return C.focus({preventScroll:!0});var q=C.style.top;C.style.position="fixed",C.style.top="0px";try{var ne=C.getBoundingClientRect().top!=0}catch{return}var H=[];if(ne)for(var K=C.parentElement;K&&K.nodeType==1;)H.push(K),K.setAttribute("ace_nocontext",!0),!K.parentElement&&K.getRootNode?K=K.getRootNode().host:K=K.parentElement;C.focus({preventScroll:!0}),ne&&H.forEach(function(ue){ue.removeAttribute("ace_nocontext")}),setTimeout(function(){C.style.position="",C.style.top=="0px"&&(C.style.top=q)},0)},this.blur=function(){C.blur()},this.isFocused=function(){return W},b.on("beforeEndOperation",function(){var q=b.curOp,ne=q&&q.command&&q.command.name;if(ne!="insertstring"){var H=ne&&(q.docChanged||q.selectionChanged);S&&H&&(R=C.value="",P()),F()}});var F=v?function(q){if(!(!W||T&&!q||y)){q||(q="");var ne=`
196
+ ab`+q+`cde fg
197
+ `;ne!=C.value&&(C.value=R=ne);var H=4,K=4+(q.length||(b.selection.isEmpty()?0:1));(M!=H||I!=K)&&C.setSelectionRange(H,K),M=H,I=K}}:function(){if(!(S||y)&&!(!W&&!U)){S=!0;var q=0,ne=0,H="";if(b.session){var K=b.selection,ue=K.getRange(),ge=K.cursor.row;if(q=ue.start.column,ne=ue.end.column,H=b.session.getLine(ge),ue.start.row!=ge){var Xe=b.session.getLine(ge-1);q=ue.start.row<ge-1?0:q,ne+=Xe.length+1,H=Xe+`
198
+ `+H}else if(ue.end.row!=ge){var Ge=b.session.getLine(ge+1);ne=ue.end.row>ge+1?Ge.length:ne,ne+=H.length+1,H=H+`
199
+ `+Ge}else _&&ge>0&&(H=`
200
+ `+H,ne+=1,q+=1);H.length>p&&(q<p&&ne<p?H=H.slice(0,p):(H=`
201
+ `,q==ne?q=ne=0:(q=0,ne=1)))}var Fe=H+`
202
+
203
+ `;if(Fe!=R&&(C.value=R=Fe,M=I=Fe.length),U&&(M=C.selectionStart,I=C.selectionEnd),I!=ne||M!=q||C.selectionEnd!=I)try{C.setSelectionRange(q,ne),M=q,I=ne}catch{}S=!1}};this.resetSelection=F,W&&b.onFocus();var j=function(q){return q.selectionStart===0&&q.selectionEnd>=R.length&&q.value===R&&R&&q.selectionEnd!==I},J=function(q){S||(T?T=!1:j(C)?(b.selectAll(),F()):_&&C.selectionStart!=M&&F())},Y=null;this.setInputHandler=function(q){Y=q},this.getInputHandler=function(){return Y};var U=!1,G=function(q,ne){if(U&&(U=!1),k)return F(),q&&b.onPaste(q),k=!1,"";for(var H=C.selectionStart,K=C.selectionEnd,ue=M,ge=R.length-I,Xe=q,Ge=q.length-H,Fe=q.length-K,Ne=0;ue>0&&R[Ne]==q[Ne];)Ne++,ue--;for(Xe=Xe.slice(Ne),Ne=1;ge>0&&R.length-Ne>M-1&&R[R.length-Ne]==q[q.length-Ne];)Ne++,ge--;Ge-=Ne-1,Fe-=Ne-1;var dn=Xe.length-Ne+1;if(dn<0&&(ue=-dn,dn=0),Xe=Xe.slice(0,dn),!ne&&!Xe&&!Ge&&!ue&&!ge&&!Fe)return"";y=!0;var ei=!1;return o.isAndroid&&Xe==". "&&(Xe=" ",ei=!0),Xe&&!ue&&!ge&&!Ge&&!Fe||A?b.onTextInput(Xe):b.onTextInput(Xe,{extendLeft:ue,extendRight:ge,restoreStart:Ge,restoreEnd:Fe}),y=!1,R=q,M=H,I=K,B=Fe,ei?`
204
+ `:Xe},X=function(q){if(S)return Re();if(q&&q.inputType){if(q.inputType=="historyUndo")return b.execCommand("undo");if(q.inputType=="historyRedo")return b.execCommand("redo")}var ne=C.value,H=G(ne,!0);(ne.length>p+100||w.test(H)||_&&M<1&&M==I)&&F()},Z=function(q,ne,H){var K=q.clipboardData||window.clipboardData;if(!(!K||a)){var ue=c||H?"Text":"text/plain";try{return ne?K.setData(ue,ne)!==!1:K.getData(ue)}catch(ge){if(!H)return Z(ge,ne,!0)}}},te=function(q,ne){var H=b.getCopyText();if(!H)return i.preventDefault(q);Z(q,H)?(v&&(F(H),T=H,setTimeout(function(){T=!1},10)),ne?b.onCut():b.onCopy(),i.preventDefault(q)):(T=!0,C.value=H,C.select(),setTimeout(function(){T=!1,F(),ne?b.onCut():b.onCopy()}))},ie=function(q){te(q,!0)},de=function(q){te(q,!1)},ae=function(q){var ne=Z(q);f.pasteCancelled()||(typeof ne=="string"?(ne&&b.onPaste(ne,q),o.isIE&&setTimeout(F),i.preventDefault(q)):(C.value="",k=!0))};i.addCommandKeyListener(C,b.onCommandKey.bind(b),b),i.addListener(C,"select",J,b),i.addListener(C,"input",X,b),i.addListener(C,"cut",ie,b),i.addListener(C,"copy",de,b),i.addListener(C,"paste",ae,b),(!("oncut"in C)||!("oncopy"in C)||!("onpaste"in C))&&i.addListener(x,"keydown",function(q){if(!(o.isMac&&!q.metaKey||!q.ctrlKey))switch(q.keyCode){case 67:de(q);break;case 86:ae(q);break;case 88:ie(q);break}},b);var Ce=function(q){if(!(S||!b.onCompositionStart||b.$readOnly)&&(S={},!A)){q.data&&(S.useTextareaForIME=!1),setTimeout(Re,0),b._signal("compositionStart"),b.on("mousedown",D);var ne=b.getSelectionRange();ne.end.row=ne.start.row,ne.end.column=ne.start.column,S.markerRange=ne,S.selectionStart=M,b.onCompositionStart(S),S.useTextareaForIME?(R=C.value="",M=0,I=0):(C.msGetInputContext&&(S.context=C.msGetInputContext()),C.getInputContext&&(S.context=C.getInputContext()))}},Re=function(){if(!(!S||!b.onCompositionUpdate||b.$readOnly)){if(A)return D();if(S.useTextareaForIME)b.onCompositionUpdate(C.value);else{var q=C.value;G(q),S.markerRange&&(S.context&&(S.markerRange.start.column=S.selectionStart=S.context.compositionStartOffset),S.markerRange.end.column=S.markerRange.start.column+I-S.selectionStart+B)}}},P=function(q){!b.onCompositionEnd||b.$readOnly||(S=!1,b.onCompositionEnd(),b.off("mousedown",D),q&&X())};function D(){O=!0,C.blur(),C.focus(),O=!1}var z=l.delayedCall(Re,50).schedule.bind(null,null);function ee(q){q.keyCode==27&&C.value.length<C.selectionStart&&(S||(R=C.value),M=I=-1,F()),z()}i.addListener(C,"compositionstart",Ce,b),i.addListener(C,"compositionupdate",Re,b),i.addListener(C,"keyup",ee,b),i.addListener(C,"keydown",z,b),i.addListener(C,"compositionend",P,b),this.getElement=function(){return C},this.setCommandMode=function(q){A=q,C.readOnly=!1},this.setReadOnly=function(q){A||(C.readOnly=q)},this.setCopyWithEmptySelection=function(q){},this.onContextMenu=function(q){U=!0,F(),b._emit("nativecontextmenu",{target:b,domEvent:q}),this.moveToMouse(q,!0)},this.moveToMouse=function(q,ne){E||(E=C.style.cssText),C.style.cssText=(ne?"z-index:100000;":"")+(o.isIE?"opacity:0.1;":"")+"text-indent: -"+(M+I)*b.renderer.characterWidth*.5+"px;";var H=b.container.getBoundingClientRect(),K=u.computedStyle(b.container),ue=H.top+(parseInt(K.borderTopWidth)||0),ge=H.left+(parseInt(H.borderLeftWidth)||0),Xe=H.bottom-ue-C.clientHeight-2,Ge=function(Fe){u.translate(C,Fe.clientX-ge-2,Math.min(Fe.clientY-ue-2,Xe))};Ge(q),q.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(fe),o.isWin&&i.capture(b.container,Ge,be))},this.onContextMenuClose=be;var fe;function be(){clearTimeout(fe),fe=setTimeout(function(){E&&(C.style.cssText=E,E=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var mt=function(q){b.textInput.onContextMenu(q),be()};i.addListener(C,"mouseup",mt,b),i.addListener(C,"mousedown",function(q){q.preventDefault(),be()},b),i.addListener(b.renderer.scroller,"contextmenu",mt,b),i.addListener(C,"contextmenu",mt,b),v&&dt(x,b,C);function dt(q,ne,H){var K=null,ue=!1;H.addEventListener("keydown",function(Xe){K&&clearTimeout(K),ue=!0},!0),H.addEventListener("keyup",function(Xe){K=setTimeout(function(){ue=!1},100)},!0);var ge=function(Xe){if(document.activeElement===H&&!(ue||S||ne.$mouseHandler.isMousePressed)&&!T){var Ge=H.selectionStart,Fe=H.selectionEnd,Ne=null,dn=0;if(Ge==0?Ne=m.up:Ge==1?Ne=m.home:Fe>I&&R[Fe]==`
205
+ `?Ne=m.end:Ge<M&&R[Ge-1]==" "?(Ne=m.left,dn=g.option):Ge<M||Ge==M&&I!=M&&Ge==Fe?Ne=m.left:Fe>I&&R.slice(0,Fe).split(`
206
+ `).length>2?Ne=m.down:Fe>I&&R[Fe-1]==" "?(Ne=m.right,dn=g.option):(Fe>I||Fe==I&&I!=M&&Ge==Fe)&&(Ne=m.right),Ge!==Fe&&(dn|=g.shift),Ne){var ei=ne.onCommandKey({},dn,Ne);if(!ei&&ne.commands){Ne=m.keyCodeToString(Ne);var Zd=ne.commands.findKeyCommand(dn,Ne);Zd&&ne.execCommand(Zd)}M=Ge,I=Fe,F("")}}};document.addEventListener("selectionchange",ge),ne.on("destroy",function(){document.removeEventListener("selectionchange",ge)})}this.destroy=function(){C.parentElement&&C.parentElement.removeChild(C)}};r.TextInput=$,r.$setUserAgentForTests=function(x,b){_=x,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,s){var i=n("../lib/useragent"),o=0,u=550;function l(c){c.$clickSelection=null;var h=c.editor;h.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),h.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),h.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),h.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),h.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var p=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];p.forEach(function(m){c[m]=this[m]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}(function(){this.onMouseDown=function(c){var h=c.inSelection(),p=c.getDocumentPosition();this.mousedownEvent=c;var m=this.editor,g=c.getButton();if(g!==0){var v=m.getSelectionRange(),w=v.isEmpty();(w||g==1)&&m.selection.moveToPosition(p),g==2&&(m.textInput.onContextMenu(c.domEvent),i.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),h&&!m.isFocused()&&(m.focus(),this.$focusTimeout&&!this.$clickSelection&&!m.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(p,c.domEvent._clicks>1),c.preventDefault()},this.startSelect=function(c,h){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var p=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?p.selection.selectToPosition(c):h||p.selection.moveToPosition(c),h||this.select(),p.renderer.scroller.setCapture&&p.renderer.scroller.setCapture(),p.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var c,h=this.editor,p=h.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var m=this.$clickSelection.comparePoint(p);if(m==-1)c=this.$clickSelection.end;else if(m==1)c=this.$clickSelection.start;else{var g=a(this.$clickSelection,p);p=g.cursor,c=g.anchor}h.selection.setSelectionAnchor(c.row,c.column)}h.selection.selectToPosition(p),h.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(c){var h,p=this.editor,m=p.renderer.screenToTextCoordinates(this.x,this.y),g=p.selection[c](m.row,m.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(g.start),w=this.$clickSelection.comparePoint(g.end);if(v==-1&&w<=0)h=this.$clickSelection.end,(g.end.row!=m.row||g.end.column!=m.column)&&(m=g.start);else if(w==1&&v>=0)h=this.$clickSelection.start,(g.start.row!=m.row||g.start.column!=m.column)&&(m=g.end);else if(v==-1&&w==1)m=g.end,h=g.start;else{var _=a(this.$clickSelection,m);m=_.cursor,h=_.anchor}p.selection.setSelectionAnchor(h.row,h.column)}p.selection.selectToPosition(m),p.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var c=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),h=Date.now();(c>o||h-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(c){var h=c.getDocumentPosition(),p=this.editor,m=p.session,g=m.getBracketRange(h);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=p.selection.getWordRange(h.row,h.column),this.setState("selectByWords")),this.$clickSelection=g,this.select()},this.onTripleClick=function(c){var h=c.getDocumentPosition(),p=this.editor;this.setState("selectByLines");var m=p.getSelectionRange();m.isMultiLine()&&m.contains(h.row,h.column)?(this.$clickSelection=p.selection.getLineRange(m.start.row),this.$clickSelection.end=p.selection.getLineRange(m.end.row).end):this.$clickSelection=p.selection.getLineRange(h.row),this.select()},this.onQuadClick=function(c){var h=this.editor;h.selectAll(),this.$clickSelection=h.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var h=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var p=this.$lastScroll,m=c.domEvent.timeStamp,g=m-p.t,v=g?c.wheelX/g:p.vx,w=g?c.wheelY/g:p.vy;g<u&&(v=(v+p.vx)/2,w=(w+p.vy)/2);var _=Math.abs(v/w),$=!1;if(_>=1&&h.renderer.isScrollableBy(c.wheelX*c.speed,0)&&($=!0),_<=1&&h.renderer.isScrollableBy(0,c.wheelY*c.speed)&&($=!0),$)p.allowed=m;else if(m-p.allowed<u){var x=Math.abs(v)<=1.5*Math.abs(p.vx)&&Math.abs(w)<=1.5*Math.abs(p.vy);x?($=!0,p.allowed=m):p.allowed=0}if(p.t=m,p.vx=v,p.vy=w,$)return h.renderer.scrollBy(c.wheelX*c.speed,c.wheelY*c.speed),c.stop()}}}).call(l.prototype),r.DefaultHandlers=l;function f(c,h,p,m){return Math.sqrt(Math.pow(p-c,2)+Math.pow(m-h,2))}function a(c,h){if(c.start.row==c.end.row)var p=2*h.column-c.start.column-c.end.column;else if(c.start.row==c.end.row-1&&!c.start.column&&!c.end.column)var p=h.column-4;else var p=2*h.row-c.start.row-c.end.row;return p<0?{cursor:c.start,anchor:c.end}:{cursor:c.end,anchor:c.start}}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(n,r,s){n("./lib/oop");var i=n("./lib/dom"),o="ace_tooltip";function u(l){this.isOpen=!1,this.$element=null,this.$parentNode=l}(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className=o,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(l){this.getElement().textContent=l},this.setHtml=function(l){this.getElement().innerHTML=l},this.setPosition=function(l,f){this.getElement().style.left=l+"px",this.getElement().style.top=f+"px"},this.setClassName=function(l){i.addCssClass(this.getElement(),l)},this.show=function(l,f,a){l!=null&&this.setText(l),f!=null&&a!=null&&this.setPosition(f,a),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=o,this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(u.prototype),r.Tooltip=u}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(n,r,s){var i=n("../lib/dom"),o=n("../lib/oop"),u=n("../lib/event"),l=n("../tooltip").Tooltip;function f(c){var h=c.editor,p=h.renderer.$gutterLayer,m=new a(h.container);c.editor.setDefaultHandler("guttermousedown",function(b){if(!(!h.isFocused()||b.getButton()!=0)){var C=p.getRegion(b);if(C!="foldWidgets"){var T=b.getDocumentPosition().row,k=h.session.selection;if(b.getShiftKey())k.selectTo(T,0);else{if(b.domEvent.detail==2)return h.selectAll(),b.preventDefault();c.$clickSelection=h.selection.getLineRange(T)}return c.setState("selectByLines"),c.captureMouse(b),b.preventDefault()}}});var g,v,w;function _(){var b=v.getDocumentPosition().row,C=p.$annotations[b];if(!C)return $();var T=h.session.getLength();if(b==T){var k=h.renderer.pixelToScreenCoordinates(0,v.y).row,S=v.$pos;if(k>h.session.documentToScreenRow(S.row,S.column))return $()}if(w!=C){w=C.text.join("<br/>"),m.setHtml(w);var y=C.className;if(y&&m.setClassName(y.trim()),m.show(),h._signal("showGutterTooltip",m),h.on("mousewheel",$),c.$tooltipFollowsMouse)x(v);else{var E=v.domEvent.target,A=E.getBoundingClientRect(),O=m.getElement().style;O.left=A.right+"px",O.top=A.bottom+"px"}}}function $(){g&&(g=clearTimeout(g)),w&&(m.hide(),w=null,h._signal("hideGutterTooltip",m),h.off("mousewheel",$))}function x(b){m.setPosition(b.x,b.y)}c.editor.setDefaultHandler("guttermousemove",function(b){var C=b.domEvent.target||b.domEvent.srcElement;if(i.hasCssClass(C,"ace_fold-widget"))return $();w&&c.$tooltipFollowsMouse&&x(b),v=b,!g&&(g=setTimeout(function(){g=null,v&&!c.isMousePressed?_():$()},50))}),u.addListener(h.renderer.$gutter,"mouseout",function(b){v=null,!(!w||g)&&(g=setTimeout(function(){g=null,$()},50))},h),h.on("changeSession",$)}function a(c){l.call(this,c)}o.inherits(a,l),function(){this.setPosition=function(c,h){var p=window.innerWidth||document.documentElement.clientWidth,m=window.innerHeight||document.documentElement.clientHeight,g=this.getWidth(),v=this.getHeight();c+=15,h+=15,c+g>p&&(c-=c+g-p),h+v>m&&(h-=20+v),l.prototype.setPosition.call(this,c,h)}}.call(a.prototype),r.GutterHandler=f}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,s){var i=n("../lib/event"),o=n("../lib/useragent"),u=r.MouseEvent=function(l,f){this.domEvent=l,this.editor=f,this.x=this.clientX=l.clientX,this.y=this.clientY=l.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var l=this.editor,f=l.getSelectionRange();if(f.isEmpty())this.$inSelection=!1;else{var a=this.getDocumentPosition();this.$inSelection=f.contains(a.row,a.column)}return this.$inSelection},this.getButton=function(){return i.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(u.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,s){var i=n("../lib/dom"),o=n("../lib/event"),u=n("../lib/useragent"),l=200,f=200,a=5;function c(p){var m=p.editor,g=i.createElement("div");g.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",g.textContent="\xA0";var v=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];v.forEach(function(U){p[U]=this[U]},this),m.on("mousedown",this.onMouseDown.bind(p));var w=m.container,_,$,x,b,C,T,k=0,S,y,E,A,O;this.onDragStart=function(U){if(this.cancelDrag||!w.draggable){var G=this;return setTimeout(function(){G.startSelect(),G.captureMouse(U)},0),U.preventDefault()}C=m.getSelectionRange();var X=U.dataTransfer;X.effectAllowed=m.getReadOnly()?"copy":"copyMove",m.container.appendChild(g),X.setDragImage&&X.setDragImage(g,0,0),setTimeout(function(){m.container.removeChild(g)}),X.clearData(),X.setData("Text",m.session.getTextRange()),y=!0,this.setState("drag")},this.onDragEnd=function(U){if(w.draggable=!1,y=!1,this.setState(null),!m.getReadOnly()){var G=U.dataTransfer.dropEffect;!S&&G=="move"&&m.session.remove(m.getSelectionRange()),m.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(U){if(!(m.getReadOnly()||!J(U.dataTransfer)))return $=U.clientX,x=U.clientY,_||B(),k++,U.dataTransfer.dropEffect=S=Y(U),o.preventDefault(U)},this.onDragOver=function(U){if(!(m.getReadOnly()||!J(U.dataTransfer)))return $=U.clientX,x=U.clientY,_||(B(),k++),F!==null&&(F=null),U.dataTransfer.dropEffect=S=Y(U),o.preventDefault(U)},this.onDragLeave=function(U){if(k--,k<=0&&_)return W(),S=null,o.preventDefault(U)},this.onDrop=function(U){if(!!T){var G=U.dataTransfer;if(y)switch(S){case"move":C.contains(T.row,T.column)?C={start:T,end:T}:C=m.moveText(C,T);break;case"copy":C=m.moveText(C,T,!0);break}else{var X=G.getData("Text");C={start:T,end:m.session.insert(T,X)},m.focus(),S=null}return W(),o.preventDefault(U)}},o.addListener(w,"dragstart",this.onDragStart.bind(p),m),o.addListener(w,"dragend",this.onDragEnd.bind(p),m),o.addListener(w,"dragenter",this.onDragEnter.bind(p),m),o.addListener(w,"dragover",this.onDragOver.bind(p),m),o.addListener(w,"dragleave",this.onDragLeave.bind(p),m),o.addListener(w,"drop",this.onDrop.bind(p),m);function R(U,G){var X=Date.now(),Z=!G||U.row!=G.row,te=!G||U.column!=G.column;if(!A||Z||te)m.moveCursorToPosition(U),A=X,O={x:$,y:x};else{var ie=h(O.x,O.y,$,x);ie>a?A=null:X-A>=f&&(m.renderer.scrollCursorIntoView(),A=null)}}function M(U,G){var X=Date.now(),Z=m.renderer.layerConfig.lineHeight,te=m.renderer.layerConfig.characterWidth,ie=m.renderer.scroller.getBoundingClientRect(),de={x:{left:$-ie.left,right:ie.right-$},y:{top:x-ie.top,bottom:ie.bottom-x}},ae=Math.min(de.x.left,de.x.right),Ce=Math.min(de.y.top,de.y.bottom),Re={row:U.row,column:U.column};ae/te<=2&&(Re.column+=de.x.left<de.x.right?-3:2),Ce/Z<=1&&(Re.row+=de.y.top<de.y.bottom?-1:1);var P=U.row!=Re.row,D=U.column!=Re.column,z=!G||U.row!=G.row;P||D&&!z?E?X-E>=l&&m.renderer.scrollCursorIntoView(Re):E=X:E=null}function I(){var U=T;T=m.renderer.screenToTextCoordinates($,x),R(T,U),M(T,U)}function B(){C=m.selection.toOrientedRange(),_=m.session.addMarker(C,"ace_selection",m.getSelectionStyle()),m.clearSelection(),m.isFocused()&&m.renderer.$cursorLayer.setBlinking(!1),clearInterval(b),I(),b=setInterval(I,20),k=0,o.addListener(document,"mousemove",j)}function W(){clearInterval(b),m.session.removeMarker(_),_=null,m.selection.fromOrientedRange(C),m.isFocused()&&!y&&m.$resetCursorStyle(),C=null,T=null,k=0,E=null,A=null,o.removeListener(document,"mousemove",j)}var F=null;function j(){F==null&&(F=setTimeout(function(){F!=null&&_&&W()},20))}function J(U){var G=U.types;return!G||Array.prototype.some.call(G,function(X){return X=="text/plain"||X=="Text"})}function Y(U){var G=["copy","copymove","all","uninitialized"],X=["move","copymove","linkmove","all","uninitialized"],Z=u.isMac?U.altKey:U.ctrlKey,te="uninitialized";try{te=U.dataTransfer.effectAllowed.toLowerCase()}catch{}var ie="none";return Z&&G.indexOf(te)>=0?ie="copy":X.indexOf(te)>=0?ie="move":G.indexOf(te)>=0&&(ie="copy"),ie}}(function(){this.dragWait=function(){var p=Date.now()-this.mousedownEvent.time;p>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var p=this.editor.container;p.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(p){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var p=this.editor,m=p.container;m.draggable=!0,p.renderer.$cursorLayer.setBlinking(!1),p.setStyle("ace_dragging");var g=u.isWin?"default":"move";p.renderer.setCursorStyle(g),this.setState("dragReady")},this.onMouseDrag=function(p){var m=this.editor.container;if(u.isIE&&this.state=="dragReady"){var g=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>3&&m.dragDrop()}if(this.state==="dragWait"){var g=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>0&&(m.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(p){if(!!this.$dragEnabled){this.mousedownEvent=p;var m=this.editor,g=p.inSelection(),v=p.getButton(),w=p.domEvent.detail||1;if(w===1&&v===0&&g){if(p.editor.inMultiSelectMode&&(p.getAccelKey()||p.getShiftKey()))return;this.mousedownEvent.time=Date.now();var _=p.domEvent.target||p.domEvent.srcElement;if("unselectable"in _&&(_.unselectable="on"),m.getDragDelay()){if(u.isWebKit){this.cancelDrag=!0;var $=m.container;$.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(p,this.onMouseDrag.bind(this)),p.defaultPrevented=!0}}}}).call(c.prototype);function h(p,m,g,v){return Math.sqrt(Math.pow(g-p,2)+Math.pow(v-m,2))}r.DragdropHandler=c}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,s){var i=n("./mouse_event").MouseEvent,o=n("../lib/event"),u=n("../lib/dom");r.addTouchListeners=function(l,f){var a="scroll",c,h,p,m,g,v,w=0,_,$=0,x=0,b=0,C,T;function k(){var R=window.navigator&&window.navigator.clipboard,M=!1,I=function(){var W=f.getCopyText(),F=f.session.getUndoManager().hasUndo();T.replaceChild(u.buildDom(M?["span",!W&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],W&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],W&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],R&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],F&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),T.firstChild)},B=function(W){var F=W.target.getAttribute("action");if(F=="more"||!M)return M=!M,I();F=="paste"?R.readText().then(function(j){f.execCommand(F,j)}):F&&((F=="cut"||F=="copy")&&(R?R.writeText(f.getCopyText()):document.execCommand("copy")),f.execCommand(F)),T.firstChild.style.display="none",M=!1,F!="openCommandPallete"&&f.focus()};T=u.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(W){a="menu",W.stopPropagation(),W.preventDefault(),f.textInput.focus()},ontouchend:function(W){W.stopPropagation(),W.preventDefault(),B(W)},onclick:B},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],f.container)}function S(){T||k();var R=f.selection.cursor,M=f.renderer.textToScreenCoordinates(R.row,R.column),I=f.renderer.textToScreenCoordinates(0,0).pageX,B=f.renderer.scrollLeft,W=f.container.getBoundingClientRect();T.style.top=M.pageY-W.top-3+"px",M.pageX-W.left<W.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=I+B-W.left+"px"),T.style.display="",T.firstChild.style.display="none",f.on("input",y)}function y(R){T&&(T.style.display="none"),f.off("input",y)}function E(){g=null,clearTimeout(g);var R=f.selection.getRange(),M=R.contains(_.row,_.column);(R.isEmpty()||!M)&&(f.selection.moveToPosition(_),f.selection.selectWord()),a="wait",S()}function A(){g=null,clearTimeout(g),f.selection.moveToPosition(_);var R=$>=2?f.selection.getLineRange(_.row):f.session.getBracketRange(_);R&&!R.isEmpty()?f.selection.setRange(R):f.selection.selectWord(),a="wait"}o.addListener(l,"contextmenu",function(R){if(!!C){var M=f.textInput.getElement();M.focus()}},f),o.addListener(l,"touchstart",function(R){var M=R.touches;if(g||M.length>1){clearTimeout(g),g=null,p=-1,a="zoom";return}C=f.$mouseHandler.isMousePressed=!0;var I=f.renderer.layerConfig.lineHeight,B=f.renderer.layerConfig.lineHeight,W=R.timeStamp;m=W;var F=M[0],j=F.clientX,J=F.clientY;Math.abs(c-j)+Math.abs(h-J)>I&&(p=-1),c=R.clientX=j,h=R.clientY=J,x=b=0;var Y=new i(R,f);if(_=Y.getDocumentPosition(),W-p<500&&M.length==1&&!w)$++,R.preventDefault(),R.button=0,A();else{$=0;var U=f.selection.cursor,G=f.selection.isEmpty()?U:f.selection.anchor,X=f.renderer.$cursorLayer.getPixelPosition(U,!0),Z=f.renderer.$cursorLayer.getPixelPosition(G,!0),te=f.renderer.scroller.getBoundingClientRect(),ie=f.renderer.layerConfig.offset,de=f.renderer.scrollLeft,ae=function(P,D){return P=P/B,D=D/I-.75,P*P+D*D};if(R.clientX<te.left){a="zoom";return}var Ce=ae(R.clientX-te.left-X.left+de,R.clientY-te.top-X.top+ie),Re=ae(R.clientX-te.left-Z.left+de,R.clientY-te.top-Z.top+ie);Ce<3.5&&Re<3.5&&(a=Ce>Re?"cursor":"anchor"),Re<3.5?a="anchor":Ce<3.5?a="cursor":a="scroll",g=setTimeout(E,450)}p=W},f),o.addListener(l,"touchend",function(R){C=f.$mouseHandler.isMousePressed=!1,v&&clearInterval(v),a=="zoom"?(a="",w=0):g?(f.selection.moveToPosition(_),w=0,S()):a=="scroll"?(O(),y()):S(),clearTimeout(g),g=null},f),o.addListener(l,"touchmove",function(R){g&&(clearTimeout(g),g=null);var M=R.touches;if(!(M.length>1||a=="zoom")){var I=M[0],B=c-I.clientX,W=h-I.clientY;if(a=="wait")if(B*B+W*W>4)a="cursor";else return R.preventDefault();c=I.clientX,h=I.clientY,R.clientX=I.clientX,R.clientY=I.clientY;var F=R.timeStamp,j=F-m;if(m=F,a=="scroll"){var J=new i(R,f);J.speed=1,J.wheelX=B,J.wheelY=W,10*Math.abs(B)<Math.abs(W)&&(B=0),10*Math.abs(W)<Math.abs(B)&&(W=0),j!=0&&(x=B/j,b=W/j),f._emit("mousewheel",J),J.propagationStopped||(x=b=0)}else{var Y=new i(R,f),U=Y.getDocumentPosition();a=="cursor"?f.selection.moveCursorToPosition(U):a=="anchor"&&f.selection.setSelectionAnchor(U.row,U.column),f.renderer.scrollCursorIntoView(U),R.preventDefault()}}},f);function O(){w+=60,v=setInterval(function(){w--<=0&&(clearInterval(v),v=null),Math.abs(x)<.01&&(x=0),Math.abs(b)<.01&&(b=0),w<20&&(x=.9*x),w<20&&(b=.9*b);var R=f.session.getScrollTop();f.renderer.scrollBy(10*x,10*b),R==f.session.getScrollTop()&&(w=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(n,r,s){var i=n("../lib/event"),o=n("../lib/useragent"),u=n("./default_handlers").DefaultHandlers,l=n("./default_gutter_handler").GutterHandler,f=n("./mouse_event").MouseEvent,a=n("./dragdrop_handler").DragdropHandler,c=n("./touch_handler").addTouchListeners,h=n("../config"),p=function(m){var g=this;this.editor=m,new u(this),new l(this),new a(this);var v=function($){var x=!document.hasFocus||!document.hasFocus()||!m.isFocused()&&document.activeElement==(m.textInput&&m.textInput.getElement());x&&window.focus(),m.focus(),setTimeout(function(){m.isFocused()||m.focus()})},w=m.renderer.getMouseEventTarget();i.addListener(w,"click",this.onMouseEvent.bind(this,"click"),m),i.addListener(w,"mousemove",this.onMouseMove.bind(this,"mousemove"),m),i.addMultiMouseDownListener([w,m.renderer.scrollBarV&&m.renderer.scrollBarV.inner,m.renderer.scrollBarH&&m.renderer.scrollBarH.inner,m.textInput&&m.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",m),i.addMouseWheelListener(m.container,this.onMouseWheel.bind(this,"mousewheel"),m),c(m.container,m);var _=m.renderer.$gutter;i.addListener(_,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),m),i.addListener(_,"click",this.onMouseEvent.bind(this,"gutterclick"),m),i.addListener(_,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),m),i.addListener(_,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),m),i.addListener(w,"mousedown",v,m),i.addListener(_,"mousedown",v,m),o.isIE&&m.renderer.scrollBarV&&(i.addListener(m.renderer.scrollBarV.element,"mousedown",v,m),i.addListener(m.renderer.scrollBarH.element,"mousedown",v,m)),m.on("mousemove",function($){if(!(g.state||g.$dragDelay||!g.$dragEnabled)){var x=m.renderer.screenToTextCoordinates($.x,$.y),b=m.session.selection.getRange(),C=m.renderer;!b.isEmpty()&&b.insideStart(x.row,x.column)?C.setCursorStyle("default"):C.setCursorStyle("")}},m)};(function(){this.onMouseEvent=function(m,g){!this.editor.session||this.editor._emit(m,new f(g,this.editor))},this.onMouseMove=function(m,g){var v=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!v||!v.length||this.editor._emit(m,new f(g,this.editor))},this.onMouseWheel=function(m,g){var v=new f(g,this.editor);v.speed=this.$scrollSpeed*2,v.wheelX=g.wheelX,v.wheelY=g.wheelY,this.editor._emit(m,v)},this.setState=function(m){this.state=m},this.captureMouse=function(m,g){this.x=m.x,this.y=m.y,this.isMousePressed=!0;var v=this.editor,w=this.editor.renderer;w.$isMousePressed=!0;var _=this,$=function(k){if(!!k){if(o.isWebKit&&!k.which&&_.releaseMouse)return _.releaseMouse();_.x=k.clientX,_.y=k.clientY,g&&g(k),_.mouseEvent=new f(k,_.editor),_.$mouseMoved=!0}},x=function(k){v.off("beforeEndOperation",C),clearInterval(T),v.session&&b(),_[_.state+"End"]&&_[_.state+"End"](k),_.state="",_.isMousePressed=w.$isMousePressed=!1,w.$keepTextAreaAtCursor&&w.$moveTextAreaToCursor(),_.$onCaptureMouseMove=_.releaseMouse=null,k&&_.onMouseEvent("mouseup",k),v.endOperation()},b=function(){_[_.state]&&_[_.state](),_.$mouseMoved=!1};if(o.isOldIE&&m.domEvent.type=="dblclick")return setTimeout(function(){x(m)});var C=function(k){!_.releaseMouse||v.curOp.command.name&&v.curOp.selectionChanged&&(_[_.state+"End"]&&_[_.state+"End"](),_.state="",_.releaseMouse())};v.on("beforeEndOperation",C),v.startOperation({command:{name:"mouse"}}),_.$onCaptureMouseMove=$,_.releaseMouse=i.capture(this.editor.container,$,x);var T=setInterval(b,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var m=function(g){g&&g.domEvent&&g.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",m),g&&g.domEvent&&i.stopEvent(g.domEvent))}.bind(this);setTimeout(m,10),this.editor.on("nativecontextmenu",m)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(p.prototype),h.defineOptions(p.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:o.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=p}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,s){var i=n("../lib/dom");function o(u){u.on("click",function(l){var f=l.getDocumentPosition(),a=u.session,c=a.getFoldAt(f.row,f.column,1);c&&(l.getAccelKey()?a.removeFold(c):a.expandFold(c),l.stop());var h=l.domEvent&&l.domEvent.target;h&&i.hasCssClass(h,"ace_inline_button")&&i.hasCssClass(h,"ace_toggle_wrap")&&(a.setOption("wrap",!a.getUseWrapMode()),u.renderer.scrollCursorIntoView())}),u.on("gutterclick",function(l){var f=u.renderer.$gutterLayer.getRegion(l);if(f=="foldWidgets"){var a=l.getDocumentPosition().row,c=u.session;c.foldWidgets&&c.foldWidgets[a]&&u.session.onFoldWidgetClick(a,l),u.isFocused()||u.focus(),l.stop()}}),u.on("gutterdblclick",function(l){var f=u.renderer.$gutterLayer.getRegion(l);if(f=="foldWidgets"){var a=l.getDocumentPosition().row,c=u.session,h=c.getParentFoldRangeData(a,!0),p=h.range||h.firstRange;if(p){a=p.start.row;var m=c.getFoldAt(a,c.getLine(a).length,1);m?c.removeFold(m):(c.addFold("...",p),u.renderer.scrollCursorIntoView({row:p.start.row,column:0}))}l.stop()}})}r.FoldHandler=o}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,r,s){var i=n("../lib/keys"),o=n("../lib/event"),u=function(l){this.$editor=l,this.$data={editor:l},this.$handlers=[],this.setDefaultHandler(l.commands)};(function(){this.setDefaultHandler=function(l){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=l,this.addKeyboardHandler(l,0)},this.setKeyboardHandler=function(l){var f=this.$handlers;if(f[f.length-1]!=l){for(;f[f.length-1]&&f[f.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(f[f.length-1]);this.addKeyboardHandler(l,1)}},this.addKeyboardHandler=function(l,f){if(!!l){typeof l=="function"&&!l.handleKeyboard&&(l.handleKeyboard=l);var a=this.$handlers.indexOf(l);a!=-1&&this.$handlers.splice(a,1),f==null?this.$handlers.push(l):this.$handlers.splice(f,0,l),a==-1&&l.attach&&l.attach(this.$editor)}},this.removeKeyboardHandler=function(l){var f=this.$handlers.indexOf(l);return f==-1?!1:(this.$handlers.splice(f,1),l.detach&&l.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var l=this.$data,f=l.editor;return this.$handlers.map(function(a){return a.getStatusText&&a.getStatusText(f,l)||""}).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(l,f,a,c){for(var h,p=!1,m=this.$editor.commands,g=this.$handlers.length;g--&&(h=this.$handlers[g].handleKeyboard(this.$data,l,f,a,c),!(!(!h||!h.command)&&(h.command=="null"?p=!0:p=m.exec(h.command,this.$editor,h.args,c),p&&c&&l!=-1&&h.passEvent!=!0&&h.command.passEvent!=!0&&o.stopEvent(c),p))););return!p&&l==-1&&(h={command:"insertstring"},p=m.exec("insertstring",this.$editor,f)),p&&this.$editor._signal&&this.$editor._signal("keyboardActivity",h),p},this.onCommandKey=function(l,f,a){var c=i.keyCodeToString(a);return this.$callKeyboardHandlers(f,c,a,l)},this.onTextInput=function(l){return this.$callKeyboardHandlers(-1,l)}}).call(u.prototype),r.KeyBinding=u}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,r,s){var i=0,o=0,u=!1,l=!1,f=!1,a=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h=0,p=1,m=0,g=1,v=2,w=3,_=4,$=5,x=6,b=7,C=8,T=9,k=10,S=11,y=12,E=13,A=14,O=15,R=16,M=17,I=18,B=[I,I,I,I,I,I,I,I,I,x,$,x,C,$,I,I,I,I,I,I,I,I,I,I,I,I,I,I,$,$,$,x,C,_,_,S,S,S,_,_,_,_,_,k,T,k,T,T,v,v,v,v,v,v,v,v,v,v,T,_,_,_,_,_,_,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,_,_,_,_,_,_,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,_,_,_,_,I,I,I,I,I,I,$,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,T,_,S,S,S,S,_,_,_,_,m,_,_,I,_,_,S,S,v,v,_,m,_,_,_,v,m,_,_,_,_,_],W=[C,C,C,C,C,C,C,C,C,C,C,I,I,I,m,g,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,C,$,E,A,O,R,M,T,S,S,S,S,S,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,T,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,C];function F(U,G,X,Z){var te=i?c:a,ie=null,de=null,ae=null,Ce=0,Re=null,P=null,D=-1,z=null,ee=null,fe=[];if(!Z)for(z=0,Z=[];z<X;z++)Z[z]=Y(U[z]);for(o=i,u=!1,l=!1,f=!1,ee=0;ee<X;ee++){if(ie=Ce,fe[ee]=de=J(U,Z,fe,ee),Ce=te[ie][de],Re=Ce&240,Ce&=15,G[ee]=ae=te[Ce][5],Re>0)if(Re==16){for(z=D;z<ee;z++)G[z]=1;D=-1}else D=-1;if(P=te[Ce][6],P)D==-1&&(D=ee);else if(D>-1){for(z=D;z<ee;z++)G[z]=ae;D=-1}Z[ee]==$&&(G[ee]=0),o|=ae}if(f){for(z=0;z<X;z++)if(Z[z]==x){G[z]=i;for(var be=z-1;be>=0&&Z[be]==C;be--)G[be]=i}}}function j(U,G,X){if(!(o<U)){if(U==1&&i==p&&!l){X.reverse();return}for(var Z=X.length,te=0,ie,de,ae,Ce;te<Z;){if(G[te]>=U){for(ie=te+1;ie<Z&&G[ie]>=U;)ie++;for(de=te,ae=ie-1;de<ae;de++,ae--)Ce=X[de],X[de]=X[ae],X[ae]=Ce;te=ie}te++}}}function J(U,G,X,Z){var te=G[Z],ie,de,ae,Ce;switch(te){case m:case g:u=!1;case _:case w:return te;case v:return u?w:v;case b:return u=!0,g;case C:return _;case T:return Z<1||Z+1>=G.length||(ie=X[Z-1])!=v&&ie!=w||(de=G[Z+1])!=v&&de!=w?_:(u&&(de=w),de==ie?de:_);case k:return ie=Z>0?X[Z-1]:$,ie==v&&Z+1<G.length&&G[Z+1]==v?v:_;case S:if(Z>0&&X[Z-1]==v)return v;if(u)return _;for(Ce=Z+1,ae=G.length;Ce<ae&&G[Ce]==S;)Ce++;return Ce<ae&&G[Ce]==v?v:_;case y:for(ae=G.length,Ce=Z+1;Ce<ae&&G[Ce]==y;)Ce++;if(Ce<ae){var Re=U[Z],P=Re>=1425&&Re<=2303||Re==64286;if(ie=G[Ce],P&&(ie==g||ie==b))return g}return Z<1||(ie=G[Z-1])==$?_:X[Z-1];case $:return u=!1,l=!0,i;case x:return f=!0,_;case E:case A:case R:case M:case O:u=!1;case I:return _}}function Y(U){var G=U.charCodeAt(0),X=G>>8;return X==0?G>191?m:B[G]:X==5?/[\u0591-\u05f4]/.test(U)?g:m:X==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(U)?y:/[\u0660-\u0669\u066b-\u066c]/.test(U)?w:G==1642?S:/[\u06f0-\u06f9]/.test(U)?v:b:X==32&&G<=8287?W[G&255]:X==254&&G>=65136?b:_}r.L=m,r.R=g,r.EN=v,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="\xB7",r.doBidiReorder=function(U,G,X){if(U.length<2)return{};var Z=U.split(""),te=new Array(Z.length),ie=new Array(Z.length),de=[];i=X?p:h,F(Z,de,Z.length,G);for(var ae=0;ae<te.length;te[ae]=ae,ae++);j(2,de,te),j(1,de,te);for(var ae=0;ae<te.length-1;ae++)G[ae]===w?de[ae]=r.AN:de[ae]===g&&(G[ae]>b&&G[ae]<E||G[ae]===_||G[ae]===I)?de[ae]=r.ON_R:ae>0&&Z[ae-1]==="\u0644"&&/\u0622|\u0623|\u0625|\u0627/.test(Z[ae])&&(de[ae-1]=de[ae]=r.R_H,ae++);Z[Z.length-1]===r.DOT&&(de[Z.length-1]=r.B),Z[0]==="\u202B"&&(de[0]=r.RLE);for(var ae=0;ae<te.length;ae++)ie[ae]=de[te[ae]];return{logicalFromVisual:te,bidiLevels:ie}},r.hasBidiCharacters=function(U,G){for(var X=!1,Z=0;Z<U.length;Z++)G[Z]=Y(U.charAt(Z)),!X&&(G[Z]==g||G[Z]==b||G[Z]==w)&&(X=!0);return X},r.getVisualFromLogicalIdx=function(U,G){for(var X=0;X<G.logicalFromVisual.length;X++)if(G.logicalFromVisual[X]==U)return X;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,s){var i=n("./lib/bidiutil"),o=n("./lib/lang"),u=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,l=function(f){this.session=f,this.bidiMap={},this.currentRow=null,this.bidiUtil=i,this.charWidths=[],this.EOL="\xAC",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="\xB6",this.RLE="\u202B",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=u.test(f.getValue())};(function(){this.isBidiRow=function(f,a,c){return this.seenBidi?(f!==this.currentRow&&(this.currentRow=f,this.updateRowLine(a,c),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},this.onChange=function(f){this.seenBidi?this.currentRow=null:f.action=="insert"&&u.test(f.lines.join(`
207
+ `))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var f=0,a=this.session.$screenRowCache;if(a.length){var c=this.session.$getRowCacheIndex(a,this.currentRow);c>=0&&(f=this.session.$docRowCache[c])}return f},this.getSplitIndex=function(){var f=0,a=this.session.$screenRowCache;if(a.length)for(var c,h=this.session.$getRowCacheIndex(a,this.currentRow);this.currentRow-f>0&&(c=this.session.$getRowCacheIndex(a,this.currentRow-f-1),c===h);)h=c,f++;else f=this.currentRow;return f},this.updateRowLine=function(f,a){f===void 0&&(f=this.getDocumentRow());var c=f===this.session.getLength()-1,h=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(f),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var p=this.session.$wrapData[f];p&&(a===void 0&&(a=this.getSplitIndex()),a>0&&p.length?(this.wrapIndent=p.indent,this.wrapOffset=this.wrapIndent*this.charWidths[i.L],this.line=a<p.length?this.line.substring(p[a-1],p[a]):this.line.substring(p[p.length-1])):this.line=this.line.substring(0,p[a]),a==p.length&&(this.line+=this.showInvisibles?h:i.DOT))}else this.line+=this.showInvisibles?h:i.DOT;var m=this.session,g=0,v;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(w,_){return w===" "||m.isFullWidth(w.charCodeAt(0))?(v=w===" "?m.getScreenTabSize(_+g):2,g+=v-1,o.stringRepeat(i.DOT,v)):w}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==i.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var f=[];i.hasBidiCharacters(this.line,f)||this.isRtlDir?this.bidiMap=i.doBidiReorder(this.line,f,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(f){if(this.characterWidth!==f.$characterSize.width){this.fontMetrics=f;var a=this.characterWidth=f.$characterSize.width,c=f.$measureCharWidth("\u05D4");this.charWidths[i.L]=this.charWidths[i.EN]=this.charWidths[i.ON_R]=a,this.charWidths[i.R]=this.charWidths[i.AN]=c,this.charWidths[i.R_H]=c*.45,this.charWidths[i.B]=this.charWidths[i.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(f){this.showInvisibles=f,this.currentRow=null},this.setEolChar=function(f){this.EOL=f},this.setContentWidth=function(f){this.contentWidth=f},this.isRtlLine=function(f){return this.$isRtl?!0:f!=null?this.session.getLine(f).charAt(0)==this.RLE:this.isRtlDir},this.setRtlDirection=function(f,a){for(var c=f.getCursorPosition(),h=f.selection.getSelectionAnchor().row;h<=c.row;h++)!a&&f.session.getLine(h).charAt(0)===f.session.$bidiHandler.RLE?f.session.doc.removeInLine(h,0,1):a&&f.session.getLine(h).charAt(0)!==f.session.$bidiHandler.RLE&&f.session.doc.insert({column:0,row:h},f.session.$bidiHandler.RLE)},this.getPosLeft=function(f){f-=this.wrapIndent;var a=this.line.charAt(0)===this.RLE?1:0,c=f>a?this.session.getOverwrite()?f:f-1:a,h=i.getVisualFromLogicalIdx(c,this.bidiMap),p=this.bidiMap.bidiLevels,m=0;!this.session.getOverwrite()&&f<=a&&p[h]%2!==0&&h++;for(var g=0;g<h;g++)m+=this.charWidths[p[g]];return!this.session.getOverwrite()&&f>a&&p[h]%2===0&&(m+=this.charWidths[p[h]]),this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(m+=this.rtlLineOffset),m},this.getSelections=function(f,a){var c=this.bidiMap,h=c.bidiLevels,p,m=[],g=0,v=Math.min(f,a)-this.wrapIndent,w=Math.max(f,a)-this.wrapIndent,_=!1,$=!1,x=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,C=0;C<h.length;C++)b=c.logicalFromVisual[C],p=h[C],_=b>=v&&b<w,_&&!$?x=g:!_&&$&&m.push({left:x,width:g-x}),g+=this.charWidths[p],$=_;if(_&&C===h.length&&m.push({left:x,width:g-x}),this.isRtlDir)for(var T=0;T<m.length;T++)m[T].left+=this.rtlLineOffset;return m},this.offsetToCol=function(c){this.isRtlDir&&(c-=this.rtlLineOffset);var a=0,c=Math.max(c,0),h=0,p=0,m=this.bidiMap.bidiLevels,g=this.charWidths[m[p]];for(this.wrapIndent&&(c-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);c>h+g/2;){if(h+=g,p===m.length-1){g=0;break}g=this.charWidths[m[++p]]}return p>0&&m[p-1]%2!==0&&m[p]%2===0?(c<h&&p--,a=this.bidiMap.logicalFromVisual[p]):p>0&&m[p-1]%2===0&&m[p]%2!==0?a=1+(c>h?this.bidiMap.logicalFromVisual[p]:this.bidiMap.logicalFromVisual[p-1]):this.isRtlDir&&p===m.length-1&&g===0&&m[p-1]%2===0||!this.isRtlDir&&p===0&&m[p]%2!==0?a=1+this.bidiMap.logicalFromVisual[p]:(p>0&&m[p-1]%2!==0&&g!==0&&p--,a=this.bidiMap.logicalFromVisual[p]),a===0&&this.isRtlDir&&a++,a+this.wrapIndent}}).call(l.prototype),r.BidiHandler=l}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,s){var i=n("./lib/oop"),o=n("./lib/lang"),u=n("./lib/event_emitter").EventEmitter,l=n("./range").Range,f=function(a){this.session=a,this.doc=a.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(h){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&h.old.column!=h.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})};(function(){i.implement(this,u),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(a,c){this.$isEmpty=!1,this.anchor.setPosition(a,c)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var a=this.anchor,c=this.lead;return a.row>c.row||a.row==c.row&&a.column>c.column},this.getRange=function(){var a=this.anchor,c=this.lead;return this.$isEmpty?l.fromPoints(c,c):this.isBackwards()?l.fromPoints(c,a):l.fromPoints(a,c)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(a,c){var h=c?a.end:a.start,p=c?a.start:a.end;this.$setSelection(h.row,h.column,p.row,p.column)},this.$setSelection=function(a,c,h,p){if(!this.$silent){var m=this.$isEmpty,g=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(a,c),this.cursor.setPosition(h,p),this.$isEmpty=!l.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||m!=this.$isEmpty||g)&&this._emit("changeSelection")}},this.$moveSelection=function(a){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),a.call(this)},this.selectTo=function(a,c){this.$moveSelection(function(){this.moveCursorTo(a,c)})},this.selectToPosition=function(a){this.$moveSelection(function(){this.moveCursorToPosition(a)})},this.moveTo=function(a,c){this.clearSelection(),this.moveCursorTo(a,c)},this.moveToPosition=function(a){this.clearSelection(),this.moveCursorToPosition(a)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(a,c){if(typeof c>"u"){var h=a||this.lead;a=h.row,c=h.column}return this.session.getWordRange(a,c)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var a=this.getCursor(),c=this.session.getAWordRange(a.row,a.column);this.setSelectionRange(c)},this.getLineRange=function(a,c){var h=typeof a=="number"?a:this.lead.row,p,m=this.session.getFoldLine(h);return m?(h=m.start.row,p=m.end.row):p=h,c===!0?new l(h,0,p,this.session.getLine(p).length):new l(h,0,p+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(a,c,h){var p=a.column,m=a.column+c;return h<0&&(p=a.column-c,m=a.column),this.session.isTabStop(a)&&this.doc.getLine(a.row).slice(p,m).split(" ").length-1==c},this.moveCursorLeft=function(){var a=this.lead.getPosition(),c;if(c=this.session.getFoldAt(a.row,a.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(a.column===0)a.row>0&&this.moveCursorTo(a.row-1,this.doc.getLine(a.row-1).length);else{var h=this.session.getTabSize();this.wouldMoveIntoSoftTab(a,h,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-h):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var a=this.lead.getPosition(),c;if(c=this.session.getFoldAt(a.row,a.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var h=this.session.getTabSize(),a=this.lead;this.wouldMoveIntoSoftTab(a,h,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,h):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var a=this.lead.row,c=this.lead.column,h=this.session.documentToScreenRow(a,c),p=this.session.screenToDocumentPosition(h,0),m=this.session.getDisplayLine(a,null,p.row,p.column),g=m.match(/^\s*/);g[0].length!=c&&!this.session.$useEmacsStyleLineStart&&(p.column+=g[0].length),this.moveCursorToPosition(p)},this.moveCursorLineEnd=function(){var a=this.lead,c=this.session.getDocumentLastRowColumnPosition(a.row,a.column);if(this.lead.column==c.column){var h=this.session.getLine(c.row);if(c.column==h.length){var p=h.search(/\s+$/);p>0&&(c.column=p)}}this.moveCursorTo(c.row,c.column)},this.moveCursorFileEnd=function(){var a=this.doc.getLength()-1,c=this.doc.getLine(a).length;this.moveCursorTo(a,c)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var a=this.lead.row,c=this.lead.column,h=this.doc.getLine(a),p=h.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var m=this.session.getFoldAt(a,c,1);if(m){this.moveCursorTo(m.end.row,m.end.column);return}if(this.session.nonTokenRe.exec(p)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,p=h.substring(c)),c>=h.length){this.moveCursorTo(a,h.length),this.moveCursorRight(),a<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(p)&&(c+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,c)},this.moveCursorLongWordLeft=function(){var a=this.lead.row,c=this.lead.column,h;if(h=this.session.getFoldAt(a,c,-1)){this.moveCursorTo(h.start.row,h.start.column);return}var p=this.session.getFoldStringAt(a,c,-1);p==null&&(p=this.doc.getLine(a).substring(0,c));var m=o.stringReverse(p);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(m)&&(c-=this.session.nonTokenRe.lastIndex,m=m.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),c<=0){this.moveCursorTo(a,0),this.moveCursorLeft(),a>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(m)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,c)},this.$shortWordEndIndex=function(a){var c=0,h,p=/\s/,m=this.session.tokenRe;if(m.lastIndex=0,this.session.tokenRe.exec(a))c=this.session.tokenRe.lastIndex;else{for(;(h=a[c])&&p.test(h);)c++;if(c<1){for(m.lastIndex=0;(h=a[c])&&!m.test(h);)if(m.lastIndex=0,c++,p.test(h))if(c>2){c--;break}else{for(;(h=a[c])&&p.test(h);)c++;if(c>2)break}}}return m.lastIndex=0,c},this.moveCursorShortWordRight=function(){var a=this.lead.row,c=this.lead.column,h=this.doc.getLine(a),p=h.substring(c),m=this.session.getFoldAt(a,c,1);if(m)return this.moveCursorTo(m.end.row,m.end.column);if(c==h.length){var g=this.doc.getLength();do a++,p=this.doc.getLine(a);while(a<g&&/^\s*$/.test(p));/^\s+/.test(p)||(p=""),c=0}var v=this.$shortWordEndIndex(p);this.moveCursorTo(a,c+v)},this.moveCursorShortWordLeft=function(){var a=this.lead.row,c=this.lead.column,h;if(h=this.session.getFoldAt(a,c,-1))return this.moveCursorTo(h.start.row,h.start.column);var p=this.session.getLine(a).substring(0,c);if(c===0){do a--,p=this.doc.getLine(a);while(a>0&&/^\s*$/.test(p));c=p.length,/\s+$/.test(p)||(p="")}var m=o.stringReverse(p),g=this.$shortWordEndIndex(m);return this.moveCursorTo(a,c-g)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(a,c){var h=this.session.documentToScreenPosition(this.lead.row,this.lead.column),p;if(c===0&&(a!==0&&(this.session.$bidiHandler.isBidiRow(h.row,this.lead.row)?(p=this.session.$bidiHandler.getPosLeft(h.column),h.column=Math.round(p/this.session.$bidiHandler.charWidths[0])):p=h.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?h.column=this.$desiredColumn:this.$desiredColumn=h.column),a!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var m=this.session.lineWidgets[this.lead.row];a<0?a-=m.rowsAbove||0:a>0&&(a+=m.rowCount-(m.rowsAbove||0))}var g=this.session.screenToDocumentPosition(h.row+a,h.column,p);a!==0&&c===0&&g.row===this.lead.row&&(g.column,this.lead.column),this.moveCursorTo(g.row,g.column+c,c===0)},this.moveCursorToPosition=function(a){this.moveCursorTo(a.row,a.column)},this.moveCursorTo=function(a,c,h){var p=this.session.getFoldAt(a,c,1);p&&(a=p.start.row,c=p.start.column),this.$keepDesiredColumnOnChange=!0;var m=this.session.getLine(a);/[\uDC00-\uDFFF]/.test(m.charAt(c))&&m.charAt(c-1)&&(this.lead.row==a&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(a,c),this.$keepDesiredColumnOnChange=!1,h||(this.$desiredColumn=null)},this.moveCursorToScreen=function(a,c,h){var p=this.session.screenToDocumentPosition(a,c);this.moveCursorTo(p.row,p.column,h)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(a){this.setSelectionRange(a,a.cursor==a.start),this.$desiredColumn=a.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(a){var c=this.getRange();return a?(a.start.column=c.start.column,a.start.row=c.start.row,a.end.column=c.end.column,a.end.row=c.end.row):a=c,a.cursor=this.isBackwards()?a.start:a.end,a.desiredColumn=this.$desiredColumn,a},this.getRangeOfMovements=function(a){var c=this.getCursor();try{a(this);var h=this.getCursor();return l.fromPoints(c,h)}catch{return l.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},this.toJSON=function(){if(this.rangeCount)var a=this.ranges.map(function(c){var h=c.clone();return h.isBackwards=c.cursor==c.start,h});else{var a=this.getRange();a.isBackwards=this.isBackwards()}return a},this.fromJSON=function(a){if(a.start==null)if(this.rangeList&&a.length>1){this.toSingleRange(a[0]);for(var c=a.length;c--;){var h=l.fromPoints(a[c].start,a[c].end);a[c].isBackwards&&(h.cursor=h.start),this.addRange(h,!0)}return}else a=a[0];this.rangeList&&this.toSingleRange(a),this.setSelectionRange(a,a.isBackwards)},this.isEqual=function(a){if((a.length||this.rangeCount)&&a.length!=this.rangeCount)return!1;if(!a.length||!this.ranges)return this.getRange().isEqual(a);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(a[c]))return!1;return!0}}).call(f.prototype),r.Selection=f}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(n,r,s){var i=n("./config"),o=2e3,u=function(l){this.states=l,this.regExps={},this.matchMappings={};for(var f in this.states){for(var a=this.states[f],c=[],h=0,p=this.matchMappings[f]={defaultToken:"text"},m="g",g=[],v=0;v<a.length;v++){var w=a[v];if(w.defaultToken&&(p.defaultToken=w.defaultToken),w.caseInsensitive&&m.indexOf("i")===-1&&(m+="i"),w.unicode&&m.indexOf("u")===-1&&(m+="u"),w.regex!=null){w.regex instanceof RegExp&&(w.regex=w.regex.toString().slice(1,-1));var _=w.regex,$=new RegExp("(?:("+_+")|(.))").exec("a").length-2;Array.isArray(w.token)?w.token.length==1||$==1?w.token=w.token[0]:$-1!=w.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:w,groupCount:$-1}),w.token=w.token[0]):(w.tokenArray=w.token,w.token=null,w.onMatch=this.$arrayTokens):typeof w.token=="function"&&!w.onMatch&&($>1?w.onMatch=this.$applyToken:w.onMatch=w.token),$>1&&(/\\\d/.test(w.regex)?_=w.regex.replace(/\\([0-9]+)/g,function(x,b){return"\\"+(parseInt(b,10)+h+1)}):($=1,_=this.removeCapturingGroups(w.regex)),!w.splitRegex&&typeof w.token!="string"&&g.push(w)),p[h]=v,h+=$,c.push(_),w.onMatch||(w.onMatch=null)}}c.length||(p[0]=0,c.push("$")),g.forEach(function(x){x.splitRegex=this.createSplitterRegexp(x.regex,m)},this),this.regExps[f]=new RegExp("("+c.join(")|(")+")|($)",m)}};(function(){this.$setMaxTokenCount=function(l){o=l|0},this.$applyToken=function(l){var f=this.splitRegex.exec(l).slice(1),a=this.token.apply(this,f);if(typeof a=="string")return[{type:a,value:l}];for(var c=[],h=0,p=a.length;h<p;h++)f[h]&&(c[c.length]={type:a[h],value:f[h]});return c},this.$arrayTokens=function(l){if(!l)return[];var f=this.splitRegex.exec(l);if(!f)return"text";for(var a=[],c=this.tokenArray,h=0,p=c.length;h<p;h++)f[h+1]&&(a[a.length]={type:c[h],value:f[h+1]});return a},this.removeCapturingGroups=function(l){var f=l.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(a,c){return c?"(?:":a});return f},this.createSplitterRegexp=function(l,f){if(l.indexOf("(?=")!=-1){var a=0,c=!1,h={};l.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(p,m,g,v,w,_){return c?c=w!="]":w?c=!0:v?(a==h.stack&&(h.end=_+1,h.stack=-1),a--):g&&(a++,g.length!=1&&(h.stack=a,h.start=_)),p}),h.end!=null&&/^\)*$/.test(l.substr(h.end))&&(l=l.substring(0,h.start)+l.substr(h.end))}return l.charAt(0)!="^"&&(l="^"+l),l.charAt(l.length-1)!="$"&&(l+="$"),new RegExp(l,(f||"").replace("g",""))},this.getLineTokens=function(l,f){if(f&&typeof f!="string"){var a=f.slice(0);f=a[0],f==="#tmp"&&(a.shift(),f=a.shift())}else var a=[];var c=f||"start",h=this.states[c];h||(c="start",h=this.states[c]);var p=this.matchMappings[c],m=this.regExps[c];m.lastIndex=0;for(var g,v=[],w=0,_=0,$={type:null,value:""};g=m.exec(l);){var x=p.defaultToken,b=null,C=g[0],T=m.lastIndex;if(T-C.length>w){var k=l.substring(w,T-C.length);$.type==x?$.value+=k:($.type&&v.push($),$={type:x,value:k})}for(var S=0;S<g.length-2;S++)if(g[S+1]!==void 0){b=h[p[S]],b.onMatch?x=b.onMatch(C,c,a,l):x=b.token,b.next&&(typeof b.next=="string"?c=b.next:c=b.next(c,a),h=this.states[c],h||(this.reportError("state doesn't exist",c),c="start",h=this.states[c]),p=this.matchMappings[c],w=T,m=this.regExps[c],m.lastIndex=T),b.consumeLineEnd&&(w=T);break}if(C){if(typeof x=="string")(!b||b.merge!==!1)&&$.type===x?$.value+=C:($.type&&v.push($),$={type:x,value:C});else if(x){$.type&&v.push($),$={type:null,value:""};for(var S=0;S<x.length;S++)v.push(x[S])}}if(w==l.length)break;if(w=T,_++>o){for(_>2*l.length&&this.reportError("infinite loop with in ace tokenizer",{startState:f,line:l});w<l.length;)$.type&&v.push($),$={value:l.substring(w,w+=500),type:"overflow"};c="start",a=[];break}}return $.type&&v.push($),a.length>1&&a[0]!==c&&a.unshift("#tmp",c),{tokens:v,state:a.length?a:c}},this.reportError=i.reportError}).call(u.prototype),r.Tokenizer=u}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(n,r,s){var i=n("../lib/lang"),o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(f,a){if(!a){for(var c in f)this.$rules[c]=f[c];return}for(var c in f){for(var h=f[c],p=0;p<h.length;p++){var m=h[p];(m.next||m.onMatch)&&(typeof m.next=="string"&&m.next.indexOf(a)!==0&&(m.next=a+m.next),m.nextState&&m.nextState.indexOf(a)!==0&&(m.nextState=a+m.nextState))}this.$rules[a+c]=h}},this.getRules=function(){return this.$rules},this.embedRules=function(f,a,c,h,p){var m=typeof f=="function"?new f().getRules():f;if(h)for(var g=0;g<h.length;g++)h[g]=a+h[g];else{h=[];for(var v in m)h.push(a+v)}if(this.addRules(m,a),c)for(var w=Array.prototype[p?"push":"unshift"],g=0;g<h.length;g++)w.apply(this.$rules[h[g]],i.deepCopy(c));this.$embeds||(this.$embeds=[]),this.$embeds.push(a)},this.getEmbeds=function(){return this.$embeds};var u=function(f,a){return(f!="start"||a.length)&&a.unshift(this.nextState,f),this.nextState},l=function(f,a){return a.shift(),a.shift()||"start"};this.normalizeRules=function(){var f=0,a=this.$rules;function c(h){var p=a[h];p.processed=!0;for(var m=0;m<p.length;m++){var g=p[m],v=null;Array.isArray(g)&&(v=g,g={}),!g.regex&&g.start&&(g.regex=g.start,g.next||(g.next=[]),g.next.push({defaultToken:g.token},{token:g.token+".end",regex:g.end||g.start,next:"pop"}),g.token=g.token+".start",g.push=!0);var w=g.next||g.push;if(w&&Array.isArray(w)){var _=g.stateName;_||(_=g.token,typeof _!="string"&&(_=_[0]||""),a[_]&&(_+=f++)),a[_]=w,g.next=_,c(_)}else w=="pop"&&(g.next=l);if(g.push&&(g.nextState=g.next||g.push,g.next=u,delete g.push),g.rules)for(var $ in g.rules)a[$]?a[$].push&&a[$].push.apply(a[$],g.rules[$]):a[$]=g.rules[$];var x=typeof g=="string"?g:g.include;if(x&&(Array.isArray(x)?v=x.map(function(C){return a[C]}):v=a[x]),v){var b=[m,1].concat(v);g.noEscape&&(b=b.filter(function(C){return!C.next})),p.splice.apply(p,b),m--}g.keywordMap&&(g.token=this.createKeywordMapper(g.keywordMap,g.defaultToken||"text",g.caseInsensitive),delete g.defaultToken)}}Object.keys(a).forEach(c,this)},this.createKeywordMapper=function(f,a,c,h){var p=Object.create(null);return this.$keywordList=[],Object.keys(f).forEach(function(m){for(var g=f[m],v=g.split(h||"|"),w=v.length;w--;){var _=v[w];this.$keywordList.push(_),c&&(_=_.toLowerCase()),p[_]=m}},this),f=null,c?function(m){return p[m.toLowerCase()]||a}:function(m){return p[m]||a}},this.getKeywords=function(){return this.$keywords}}).call(o.prototype),r.TextHighlightRules=o}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,r,s){var i=function(){this.$behaviours={}};(function(){this.add=function(o,u,l){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[o]:this.$behaviours[o]={}}this.$behaviours[o][u]=l},this.addBehaviours=function(o){for(var u in o)for(var l in o[u])this.add(u,l,o[u][l])},this.remove=function(o){this.$behaviours&&this.$behaviours[o]&&delete this.$behaviours[o]},this.inherit=function(o,u){if(typeof o=="function")var l=new o().getBehaviours(u);else var l=o.getBehaviours(u);this.addBehaviours(l)},this.getBehaviours=function(o){if(o){for(var u={},l=0;l<o.length;l++)this.$behaviours[o[l]]&&(u[o[l]]=this.$behaviours[o[l]]);return u}else return this.$behaviours}}).call(i.prototype),r.Behaviour=i}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,r,s){var i=n("./range").Range,o=function(u,l,f){this.$session=u,this.$row=l,this.$rowTokens=u.getTokens(l);var a=u.getTokenAt(l,f);this.$tokenIndex=a?a.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){this.$tokenIndex+=1;for(var u;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,u||(u=this.$session.getLength()),this.$row>=u)return this.$row=u-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var u=this.$rowTokens,l=this.$tokenIndex,f=u[l].start;if(f!==void 0)return f;for(f=0;l>0;)l-=1,f+=u[l].value.length;return f},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var u=this.$rowTokens[this.$tokenIndex],l=this.getCurrentTokenColumn();return new i(this.$row,l,this.$row,l+u.value.length)}}).call(o.prototype),r.TokenIterator=o}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,s){var i=n("../../lib/oop"),o=n("../behaviour").Behaviour,u=n("../../token_iterator").TokenIterator,l=n("../../lib/lang"),f=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c,h={},p={'"':'"',"'":"'"},m=function(w){var _=-1;if(w.multiSelect&&(_=w.selection.index,h.rangeCount!=w.multiSelect.rangeCount&&(h={rangeCount:w.multiSelect.rangeCount})),h[_])return c=h[_];c=h[_]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(w,_,$,x){var b=w.end.row-w.start.row;return{text:$+_+x,selection:[0,w.start.column+1,b,w.end.column+(b?0:1)]}},v=function(w){this.add("braces","insertion",function(_,$,x,b,C){var T=x.getCursorPosition(),k=b.doc.getLine(T.row);if(C=="{"){m(x);var S=x.getSelectionRange(),y=b.doc.getTextRange(S);if(y!==""&&y!=="{"&&x.getWrapBehavioursEnabled())return g(S,y,"{","}");if(v.isSaneInsertion(x,b))return/[\]\}\)]/.test(k[T.column])||x.inMultiSelectMode||w&&w.braces?(v.recordAutoInsert(x,b,"}"),{text:"{}",selection:[1,1]}):(v.recordMaybeInsert(x,b,"{"),{text:"{",selection:[1,1]})}else if(C=="}"){m(x);var E=k.substring(T.column,T.column+1);if(E=="}"){var A=b.$findOpeningBracket("}",{column:T.column+1,row:T.row});if(A!==null&&v.isAutoInsertedClosing(T,k,C))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(C==`
208
+ `||C==`\r
209
+ `){m(x);var O="";v.isMaybeInsertedClosing(T,k)&&(O=l.stringRepeat("}",c.maybeInsertedBrackets),v.clearMaybeInsertedClosing());var E=k.substring(T.column,T.column+1);if(E==="}"){var R=b.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!R)return null;var M=this.$getIndent(b.getLine(R.row))}else if(O)var M=this.$getIndent(k);else{v.clearMaybeInsertedClosing();return}var I=M+b.getTabString();return{text:`
210
+ `+I+`
211
+ `+M+O,selection:[1,I.length,1,I.length]}}else v.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(_,$,x,b,C){var T=b.doc.getTextRange(C);if(!C.isMultiLine()&&T=="{"){m(x);var k=b.doc.getLine(C.start.row),S=k.substring(C.end.column,C.end.column+1);if(S=="}")return C.end.column++,C;c.maybeInsertedBrackets--}}),this.add("parens","insertion",function(_,$,x,b,C){if(C=="("){m(x);var T=x.getSelectionRange(),k=b.doc.getTextRange(T);if(k!==""&&x.getWrapBehavioursEnabled())return g(T,k,"(",")");if(v.isSaneInsertion(x,b))return v.recordAutoInsert(x,b,")"),{text:"()",selection:[1,1]}}else if(C==")"){m(x);var S=x.getCursorPosition(),y=b.doc.getLine(S.row),E=y.substring(S.column,S.column+1);if(E==")"){var A=b.$findOpeningBracket(")",{column:S.column+1,row:S.row});if(A!==null&&v.isAutoInsertedClosing(S,y,C))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(_,$,x,b,C){var T=b.doc.getTextRange(C);if(!C.isMultiLine()&&T=="("){m(x);var k=b.doc.getLine(C.start.row),S=k.substring(C.start.column+1,C.start.column+2);if(S==")")return C.end.column++,C}}),this.add("brackets","insertion",function(_,$,x,b,C){if(C=="["){m(x);var T=x.getSelectionRange(),k=b.doc.getTextRange(T);if(k!==""&&x.getWrapBehavioursEnabled())return g(T,k,"[","]");if(v.isSaneInsertion(x,b))return v.recordAutoInsert(x,b,"]"),{text:"[]",selection:[1,1]}}else if(C=="]"){m(x);var S=x.getCursorPosition(),y=b.doc.getLine(S.row),E=y.substring(S.column,S.column+1);if(E=="]"){var A=b.$findOpeningBracket("]",{column:S.column+1,row:S.row});if(A!==null&&v.isAutoInsertedClosing(S,y,C))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(_,$,x,b,C){var T=b.doc.getTextRange(C);if(!C.isMultiLine()&&T=="["){m(x);var k=b.doc.getLine(C.start.row),S=k.substring(C.start.column+1,C.start.column+2);if(S=="]")return C.end.column++,C}}),this.add("string_dquotes","insertion",function(_,$,x,b,C){var T=b.$mode.$quotes||p;if(C.length==1&&T[C]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(C)!=-1)return;m(x);var k=C,S=x.getSelectionRange(),y=b.doc.getTextRange(S);if(y!==""&&(y.length!=1||!T[y])&&x.getWrapBehavioursEnabled())return g(S,y,k,k);if(!y){var E=x.getCursorPosition(),A=b.doc.getLine(E.row),O=A.substring(E.column-1,E.column),R=A.substring(E.column,E.column+1),M=b.getTokenAt(E.row,E.column),I=b.getTokenAt(E.row,E.column+1);if(O=="\\"&&M&&/escape/.test(M.type))return null;var B=M&&/string|escape/.test(M.type),W=!I||/string|escape/.test(I.type),F;if(R==k)F=B!==W,F&&/string\.end/.test(I.type)&&(F=!1);else{if(B&&!W||B&&W)return null;var j=b.$mode.tokenRe;j.lastIndex=0;var J=j.test(O);j.lastIndex=0;var Y=j.test(O);if(J||Y||R&&!/[\s;,.})\]\\]/.test(R))return null;var U=A[E.column-2];if(O==k&&(U==k||j.test(U)))return null;F=!0}return{text:F?k+k:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(_,$,x,b,C){var T=b.$mode.$quotes||p,k=b.doc.getTextRange(C);if(!C.isMultiLine()&&T.hasOwnProperty(k)){m(x);var S=b.doc.getLine(C.start.row),y=S.substring(C.start.column+1,C.start.column+2);if(y==k)return C.end.column++,C}})};v.isSaneInsertion=function(w,_){var $=w.getCursorPosition(),x=new u(_,$.row,$.column);if(!this.$matchTokenType(x.getCurrentToken()||"text",f)){if(/[)}\]]/.test(w.session.getLine($.row)[$.column]))return!0;var b=new u(_,$.row,$.column+1);if(!this.$matchTokenType(b.getCurrentToken()||"text",f))return!1}return x.stepForward(),x.getCurrentTokenRow()!==$.row||this.$matchTokenType(x.getCurrentToken()||"text",a)},v.$matchTokenType=function(w,_){return _.indexOf(w.type||w)>-1},v.recordAutoInsert=function(w,_,$){var x=w.getCursorPosition(),b=_.doc.getLine(x.row);this.isAutoInsertedClosing(x,b,c.autoInsertedLineEnd[0])||(c.autoInsertedBrackets=0),c.autoInsertedRow=x.row,c.autoInsertedLineEnd=$+b.substr(x.column),c.autoInsertedBrackets++},v.recordMaybeInsert=function(w,_,$){var x=w.getCursorPosition(),b=_.doc.getLine(x.row);this.isMaybeInsertedClosing(x,b)||(c.maybeInsertedBrackets=0),c.maybeInsertedRow=x.row,c.maybeInsertedLineStart=b.substr(0,x.column)+$,c.maybeInsertedLineEnd=b.substr(x.column),c.maybeInsertedBrackets++},v.isAutoInsertedClosing=function(w,_,$){return c.autoInsertedBrackets>0&&w.row===c.autoInsertedRow&&$===c.autoInsertedLineEnd[0]&&_.substr(w.column)===c.autoInsertedLineEnd},v.isMaybeInsertedClosing=function(w,_){return c.maybeInsertedBrackets>0&&w.row===c.maybeInsertedRow&&_.substr(w.column)===c.maybeInsertedLineEnd&&_.substr(0,w.column)==c.maybeInsertedLineStart},v.popAutoInsertedClosing=function(){c.autoInsertedLineEnd=c.autoInsertedLineEnd.substr(1),c.autoInsertedBrackets--},v.clearMaybeInsertedClosing=function(){c&&(c.maybeInsertedBrackets=0,c.maybeInsertedRow=-1)},i.inherits(v,o),r.CstyleBehaviour=v}),ace.define("ace/unicode",["require","exports","module"],function(n,r,s){for(var i=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],o=0,u=[],l=0;l<i.length;l+=2)u.push(o+=i[l]),i[l+1]&&u.push(45,o+=i[l+1]);r.wordChars=String.fromCharCode.apply(null,u)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(n,r,s){var i=n("../config"),o=n("../tokenizer").Tokenizer,u=n("./text_highlight_rules").TextHighlightRules,l=n("./behaviour/cstyle").CstyleBehaviour,f=n("../unicode"),a=n("../lib/lang"),c=n("../token_iterator").TokenIterator,h=n("../range").Range,p=function(){this.HighlightRules=u};(function(){this.$defaultBehaviour=new l,this.tokenRe=new RegExp("^["+f.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+f.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new o(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(m,g,v,w){var _=g.doc,$=!0,x=!0,b=1/0,C=g.getTabSize(),T=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var y=this.lineCommentStart.map(a.escapeRegExp).join("|"),k=this.lineCommentStart[0];else var y=a.escapeRegExp(this.lineCommentStart),k=this.lineCommentStart;y=new RegExp("^(\\s*)(?:"+y+") ?"),T=g.getUseSoftTabs();var O=function(Y,U){var G=Y.match(y);if(!!G){var X=G[1].length,Z=G[0].length;!I(Y,X,Z)&&G[0][Z-1]==" "&&Z--,_.removeInLine(U,X,Z)}},M=k+" ",A=function(Y,U){(!$||/\S/.test(Y))&&(I(Y,b,b)?_.insertInLine({row:U,column:b},M):_.insertInLine({row:U,column:b},k))},R=function(Y,U){return y.test(Y)},I=function(Y,U,G){for(var X=0;U--&&Y.charAt(U)==" ";)X++;if(X%C!=0)return!1;for(var X=0;Y.charAt(G++)==" ";)X++;return C>2?X%C!=C-1:X%C==0}}else{if(!this.blockComment)return!1;var k=this.blockComment.start,S=this.blockComment.end,y=new RegExp("^(\\s*)(?:"+a.escapeRegExp(k)+")"),E=new RegExp("(?:"+a.escapeRegExp(S)+")\\s*$"),A=function(F,j){R(F,j)||(!$||/\S/.test(F))&&(_.insertInLine({row:j,column:F.length},S),_.insertInLine({row:j,column:b},k))},O=function(F,j){var J;(J=F.match(E))&&_.removeInLine(j,F.length-J[0].length,F.length),(J=F.match(y))&&_.removeInLine(j,J[1].length,J[0].length)},R=function(F,j){if(y.test(F))return!0;for(var J=g.getTokens(j),Y=0;Y<J.length;Y++)if(J[Y].type==="comment")return!0}}function B(F){for(var j=v;j<=w;j++)F(_.getLine(j),j)}var W=1/0;B(function(F,j){var J=F.search(/\S/);J!==-1?(J<b&&(b=J),x&&!R(F,j)&&(x=!1)):W>F.length&&(W=F.length)}),b==1/0&&(b=W,$=!1,x=!1),T&&b%C!=0&&(b=Math.floor(b/C)*C),B(x?O:A)},this.toggleBlockComment=function(m,g,v,w){var _=this.blockComment;if(!!_){!_.start&&_[0]&&(_=_[0]);var $=new c(g,w.row,w.column),x=$.getCurrentToken();g.selection;var b=g.selection.toOrientedRange(),C,T;if(x&&/comment/.test(x.type)){for(var k,S;x&&/comment/.test(x.type);){var y=x.value.indexOf(_.start);if(y!=-1){var E=$.getCurrentTokenRow(),A=$.getCurrentTokenColumn()+y;k=new h(E,A,E,A+_.start.length);break}x=$.stepBackward()}for(var $=new c(g,w.row,w.column),x=$.getCurrentToken();x&&/comment/.test(x.type);){var y=x.value.indexOf(_.end);if(y!=-1){var E=$.getCurrentTokenRow(),A=$.getCurrentTokenColumn()+y;S=new h(E,A,E,A+_.end.length);break}x=$.stepForward()}S&&g.remove(S),k&&(g.remove(k),C=k.start.row,T=-_.start.length)}else T=_.start.length,C=v.start.row,g.insert(v.end,_.end),g.insert(v.start,_.start);b.start.row==C&&(b.start.column+=T),b.end.row==C&&(b.end.column+=T),g.selection.fromOrientedRange(b)}},this.getNextLineIndent=function(m,g,v){return this.$getIndent(g)},this.checkOutdent=function(m,g,v){return!1},this.autoOutdent=function(m,g,v){},this.$getIndent=function(m){return m.match(/^\s*/)[0]},this.createWorker=function(m){return null},this.createModeDelegates=function(m){this.$embeds=[],this.$modes={};for(var g in m)if(m[g]){var v=m[g],w=v.prototype.$id,_=i.$modes[w];_||(i.$modes[w]=_=new v),i.$modes[g]||(i.$modes[g]=_),this.$embeds.push(g),this.$modes[g]=_}for(var $=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],g=0;g<$.length;g++)(function(b){var C=$[g],T=b[C];b[$[g]]=function(){return this.$delegator(C,arguments,T)}})(this)},this.$delegator=function(m,g,v){var w=g[0]||"start";if(typeof w!="string"){if(Array.isArray(w[2])){var _=w[2][w[2].length-1],$=this.$modes[_];if($)return $[m].apply($,[w[1]].concat([].slice.call(g,1)))}w=w[0]||"start"}for(var x=0;x<this.$embeds.length;x++)if(!!this.$modes[this.$embeds[x]]){var b=w.split(this.$embeds[x]);if(!b[0]&&b[1]){g[0]=b[1];var $=this.$modes[this.$embeds[x]];return $[m].apply($,g)}}var C=v.apply(this,g);return v?C:void 0},this.transformAction=function(m,g,v,w,_){if(this.$behaviour){var $=this.$behaviour.getBehaviours();for(var x in $)if($[x][g]){var b=$[x][g].apply(this,arguments);if(b)return b}}},this.getKeywords=function(m){if(!this.completionKeywords){var g=this.$tokenizer.rules,v=[];for(var w in g)for(var _=g[w],$=0,x=_.length;$<x;$++)if(typeof _[$].token=="string")/keyword|support|storage/.test(_[$].token)&&v.push(_[$].regex);else if(typeof _[$].token=="object"){for(var b=0,C=_[$].token.length;b<C;b++)if(/keyword|support|storage/.test(_[$].token[b])){var w=_[$].regex.match(/\(.+?\)/g)[b];v.push(w.substr(1,w.length-2))}}this.completionKeywords=v}return m?v.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(m,g,v,w){var _=this.$keywordList||this.$createKeywordList();return _.map(function($){return{name:$,value:$,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(p.prototype),r.Mode=p}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,s){r.applyDelta=function(i,o,u){var l=o.start.row,f=o.start.column,a=i[l]||"";switch(o.action){case"insert":var c=o.lines;if(c.length===1)i[l]=a.substring(0,f)+o.lines[0]+a.substring(f);else{var h=[l,1].concat(o.lines);i.splice.apply(i,h),i[l]=a.substring(0,f)+i[l],i[l+o.lines.length-1]+=a.substring(f)}break;case"remove":var p=o.end.column,m=o.end.row;l===m?i[l]=a.substring(0,f)+a.substring(p):i.splice(l,m-l+1,a.substring(0,f)+i[m].substring(p));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,s){var i=n("./lib/oop"),o=n("./lib/event_emitter").EventEmitter,u=r.Anchor=function(l,f,a){this.$onChange=this.onChange.bind(this),this.attach(l),typeof a>"u"?this.setPosition(f.row,f.column):this.setPosition(f,a)};(function(){i.implement(this,o),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(a){if(!(a.start.row==a.end.row&&a.start.row!=this.row)&&!(a.start.row>this.row)){var c=f(a,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}};function l(a,c,h){var p=h?a.column<=c.column:a.column<c.column;return a.row<c.row||a.row==c.row&&p}function f(a,c,h){var p=a.action=="insert",m=(p?1:-1)*(a.end.row-a.start.row),g=(p?1:-1)*(a.end.column-a.start.column),v=a.start,w=p?v:a.end;return l(c,v,h)?{row:c.row,column:c.column}:l(w,c,!h)?{row:c.row+m,column:c.column+(c.row==w.row?g:0)}:{row:v.row,column:v.column}}this.setPosition=function(a,c,h){var p;if(h?p={row:a,column:c}:p=this.$clipPositionToDocument(a,c),!(this.row==p.row&&this.column==p.column)){var m={row:this.row,column:this.column};this.row=p.row,this.column=p.column,this._signal("change",{old:m,value:p})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(a){this.document=a||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(a,c){var h={};return a>=this.document.getLength()?(h.row=Math.max(0,this.document.getLength()-1),h.column=this.document.getLine(h.row).length):a<0?(h.row=0,h.column=0):(h.row=a,h.column=Math.min(this.document.getLine(h.row).length,Math.max(0,c))),c<0&&(h.column=0),h}}).call(u.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,r,s){var i=n("./lib/oop"),o=n("./apply_delta").applyDelta,u=n("./lib/event_emitter").EventEmitter,l=n("./range").Range,f=n("./anchor").Anchor,a=function(c){this.$lines=[""],c.length===0?this.$lines=[""]:Array.isArray(c)?this.insertMergedLines({row:0,column:0},c):this.insert({row:0,column:0},c)};(function(){i.implement(this,u),this.setValue=function(c){var h=this.getLength()-1;this.remove(new l(0,0,h,this.getLine(h).length)),this.insert({row:0,column:0},c||"")},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(c,h){return new f(this,c,h)},"aaa".split(/a/).length===0?this.$split=function(c){return c.replace(/\r\n|\r/g,`
212
+ `).split(`
213
+ `)}:this.$split=function(c){return c.split(/\r\n|\r|\n/)},this.$detectNewLine=function(c){var h=c.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=h?h[1]:`
214
+ `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
215
+ `;case"unix":return`
216
+ `;default:return this.$autoNewLine||`
217
+ `}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(c){this.$newLineMode!==c&&(this.$newLineMode=c,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(c){return c==`\r
218
+ `||c=="\r"||c==`
219
+ `},this.getLine=function(c){return this.$lines[c]||""},this.getLines=function(c,h){return this.$lines.slice(c,h+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(c){return this.getLinesForRange(c).join(this.getNewLineCharacter())},this.getLinesForRange=function(c){var h;if(c.start.row===c.end.row)h=[this.getLine(c.start.row).substring(c.start.column,c.end.column)];else{h=this.getLines(c.start.row,c.end.row),h[0]=(h[0]||"").substring(c.start.column);var p=h.length-1;c.end.row-c.start.row==p&&(h[p]=h[p].substring(0,c.end.column))}return h},this.insertLines=function(c,h){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(c,h)},this.removeLines=function(c,h){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(c,h)},this.insertNewLine=function(c){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(c,["",""])},this.insert=function(c,h){return this.getLength()<=1&&this.$detectNewLine(h),this.insertMergedLines(c,this.$split(h))},this.insertInLine=function(c,h){var p=this.clippedPos(c.row,c.column),m=this.pos(c.row,c.column+h.length);return this.applyDelta({start:p,end:m,action:"insert",lines:[h]},!0),this.clonePos(m)},this.clippedPos=function(c,h){var p=this.getLength();c===void 0?c=p:c<0?c=0:c>=p&&(c=p-1,h=void 0);var m=this.getLine(c);return h==null&&(h=m.length),h=Math.min(Math.max(h,0),m.length),{row:c,column:h}},this.clonePos=function(c){return{row:c.row,column:c.column}},this.pos=function(c,h){return{row:c,column:h}},this.$clipPosition=function(c){var h=this.getLength();return c.row>=h?(c.row=Math.max(0,h-1),c.column=this.getLine(h-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},this.insertFullLines=function(c,h){c=Math.min(Math.max(c,0),this.getLength());var p=0;c<this.getLength()?(h=h.concat([""]),p=0):(h=[""].concat(h),c--,p=this.$lines[c].length),this.insertMergedLines({row:c,column:p},h)},this.insertMergedLines=function(c,h){var p=this.clippedPos(c.row,c.column),m={row:p.row+h.length-1,column:(h.length==1?p.column:0)+h[h.length-1].length};return this.applyDelta({start:p,end:m,action:"insert",lines:h}),this.clonePos(m)},this.remove=function(c){var h=this.clippedPos(c.start.row,c.start.column),p=this.clippedPos(c.end.row,c.end.column);return this.applyDelta({start:h,end:p,action:"remove",lines:this.getLinesForRange({start:h,end:p})}),this.clonePos(h)},this.removeInLine=function(c,h,p){var m=this.clippedPos(c,h),g=this.clippedPos(c,p);return this.applyDelta({start:m,end:g,action:"remove",lines:this.getLinesForRange({start:m,end:g})},!0),this.clonePos(m)},this.removeFullLines=function(c,h){c=Math.min(Math.max(0,c),this.getLength()-1),h=Math.min(Math.max(0,h),this.getLength()-1);var p=h==this.getLength()-1&&c>0,m=h<this.getLength()-1,g=p?c-1:c,v=p?this.getLine(g).length:0,w=m?h+1:h,_=m?0:this.getLine(w).length,$=new l(g,v,w,_),x=this.$lines.slice(c,h+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),x},this.removeNewLine=function(c){c<this.getLength()-1&&c>=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},this.replace=function(c,h){if(c instanceof l||(c=l.fromPoints(c.start,c.end)),h.length===0&&c.isEmpty())return c.start;if(h==this.getTextRange(c))return c.end;this.remove(c);var p;return h?p=this.insert(c.start,h):p=c.start,p},this.applyDeltas=function(c){for(var h=0;h<c.length;h++)this.applyDelta(c[h])},this.revertDeltas=function(c){for(var h=c.length-1;h>=0;h--)this.revertDelta(c[h])},this.applyDelta=function(c,h){var p=c.action=="insert";(p?c.lines.length<=1&&!c.lines[0]:!l.comparePoints(c.start,c.end))||(p&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(o(this.$lines,c,h),this._signal("change",c)))},this.$safeApplyDelta=function(c){var h=this.$lines.length;(c.action=="remove"&&c.start.row<h&&c.end.row<h||c.action=="insert"&&c.start.row<=h)&&this.applyDelta(c)},this.$splitAndapplyLargeDelta=function(c,h){for(var p=c.lines,m=p.length-h+1,g=c.start.row,v=c.start.column,w=0,_=0;w<m;w=_){_+=h-1;var $=p.slice(w,_);$.push(""),this.applyDelta({start:this.pos(g+w,v),end:this.pos(g+_,v=0),action:c.action,lines:$},!0)}c.lines=p.slice(w),c.start.row=g+w,c.start.column=v,this.applyDelta(c,!0)},this.revertDelta=function(c){this.$safeApplyDelta({start:this.clonePos(c.start),end:this.clonePos(c.end),action:c.action=="insert"?"remove":"insert",lines:c.lines.slice()})},this.indexToPosition=function(c,h){for(var p=this.$lines||this.getAllLines(),m=this.getNewLineCharacter().length,g=h||0,v=p.length;g<v;g++)if(c-=p[g].length+m,c<0)return{row:g,column:c+p[g].length+m};return{row:v-1,column:c+p[v-1].length+m}},this.positionToIndex=function(c,h){for(var p=this.$lines||this.getAllLines(),m=this.getNewLineCharacter().length,g=0,v=Math.min(c.row,p.length),w=h||0;w<v;++w)g+=p[w].length+m;return g+c.column}}).call(a.prototype),r.Document=a}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,s){var i=n("./lib/oop"),o=n("./lib/event_emitter").EventEmitter,u=function(l,f){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=l;var a=this;this.$worker=function(){if(!!a.running){for(var c=new Date,h=a.currentLine,p=-1,m=a.doc,g=h;a.lines[h];)h++;var v=m.getLength(),w=0;for(a.running=!1;h<v;){a.$tokenizeRow(h),p=h;do h++;while(a.lines[h]);if(w++,w%5===0&&new Date-c>20){a.running=setTimeout(a.$worker,20);break}}a.currentLine=h,p==-1&&(p=h),g<=p&&a.fireUpdateEvent(g,p)}}};(function(){i.implement(this,o),this.setTokenizer=function(l){this.tokenizer=l,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(l){this.doc=l,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(l,f){var a={first:l,last:f};this._signal("update",{data:a})},this.start=function(l){this.currentLine=Math.min(l||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(l){var f=l.start.row,a=l.end.row-f;if(a===0)this.lines[f]=null;else if(l.action=="remove")this.lines.splice(f,a+1,null),this.states.splice(f,a+1,null);else{var c=Array(a+1);c.unshift(f,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(f,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(l){return this.lines[l]||this.$tokenizeRow(l)},this.getState=function(l){return this.currentLine==l&&this.$tokenizeRow(l),this.states[l]||"start"},this.$tokenizeRow=function(l){var f=this.doc.getLine(l),a=this.states[l-1],c=this.tokenizer.getLineTokens(f,a,l);return this.states[l]+""!=c.state+""?(this.states[l]=c.state,this.lines[l+1]=null,this.currentLine>l+1&&(this.currentLine=l+1)):this.currentLine==l&&(this.currentLine=l+1),this.lines[l]=c.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(u.prototype),r.BackgroundTokenizer=u}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,s){var i=n("./lib/lang");n("./lib/oop");var o=n("./range").Range,u=function(l,f,a){this.setRegexp(l),this.clazz=f,this.type=a||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(l){this.regExp+""!=l+""&&(this.regExp=l,this.cache=[])},this.update=function(l,f,a,c){if(!!this.regExp)for(var h=c.firstRow,p=c.lastRow,m={},g=h;g<=p;g++){var v=this.cache[g];v==null&&(v=i.getMatchOffsets(a.getLine(g),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(x){return new o(g,x.offset,g,x.offset+x.length)}),this.cache[g]=v.length?v:"");for(var w=v.length;w--;){var _=v[w].toScreenRange(a),$=_.toString();m[$]||(m[$]=!0,f.drawSingleLineMarker(l,_,this.clazz,c))}}}}).call(u.prototype),r.SearchHighlight=u}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,s){var i=n("../range").Range;function o(u,l){this.foldData=u,Array.isArray(l)?this.folds=l:l=this.folds=[l];var f=l[l.length-1];this.range=new i(l[0].start.row,l[0].start.column,f.end.row,f.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(a){a.setFoldLine(this)},this)}(function(){this.shiftRow=function(u){this.start.row+=u,this.end.row+=u,this.folds.forEach(function(l){l.start.row+=u,l.end.row+=u})},this.addFold=function(u){if(u.sameRow){if(u.start.row<this.startRow||u.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(u),this.folds.sort(function(l,f){return-l.range.compareEnd(f.start.row,f.start.column)}),this.range.compareEnd(u.start.row,u.start.column)>0?(this.end.row=u.end.row,this.end.column=u.end.column):this.range.compareStart(u.end.row,u.end.column)<0&&(this.start.row=u.start.row,this.start.column=u.start.column)}else if(u.start.row==this.end.row)this.folds.push(u),this.end.row=u.end.row,this.end.column=u.end.column;else if(u.end.row==this.start.row)this.folds.unshift(u),this.start.row=u.start.row,this.start.column=u.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");u.foldLine=this},this.containsRow=function(u){return u>=this.start.row&&u<=this.end.row},this.walk=function(u,l,f){var a=0,c=this.folds,h,p,m,g=!0;l==null&&(l=this.end.row,f=this.end.column);for(var v=0;v<c.length;v++){if(h=c[v],p=h.range.compareStart(l,f),p==-1){u(null,l,f,a,g);return}if(m=u(null,h.start.row,h.start.column,a,g),m=!m&&u(h.placeholder,h.start.row,h.start.column,a),m||p===0)return;g=!h.sameRow,a=h.end.column}u(null,l,f,a,g)},this.getNextFoldTo=function(u,l){for(var f,a,c=0;c<this.folds.length;c++){if(f=this.folds[c],a=f.range.compareEnd(u,l),a==-1)return{fold:f,kind:"after"};if(a===0)return{fold:f,kind:"inside"}}return null},this.addRemoveChars=function(u,l,f){var a=this.getNextFoldTo(u,l),c,h;if(a){if(c=a.fold,a.kind=="inside"&&c.start.column!=l&&c.start.row!=u)window.console&&window.console.log(u,l,c);else if(c.start.row==u){h=this.folds;var p=h.indexOf(c);for(p===0&&(this.start.column+=f),p;p<h.length;p++){if(c=h[p],c.start.column+=f,!c.sameRow)return;c.end.column+=f}this.end.column+=f}}},this.split=function(u,l){var f=this.getNextFoldTo(u,l);if(!f||f.kind=="inside")return null;var a=f.fold,c=this.folds,h=this.foldData,p=c.indexOf(a),m=c[p-1];this.end.row=m.end.row,this.end.column=m.end.column,c=c.splice(p,c.length-p);var g=new o(h,c);return h.splice(h.indexOf(this)+1,0,g),g},this.merge=function(u){for(var l=u.folds,f=0;f<l.length;f++)this.addFold(l[f]);var a=this.foldData;a.splice(a.indexOf(u),1)},this.toString=function(){var u=[this.range.toString()+": ["];return this.folds.forEach(function(l){u.push(" "+l.toString())}),u.push("]"),u.join(`
220
+ `)},this.idxToPosition=function(u){for(var l=0,f=0;f<this.folds.length;f++){var a=this.folds[f];if(u-=a.start.column-l,u<0)return{row:a.start.row,column:a.start.column+u};if(u-=a.placeholder.length,u<0)return a.start;l=a.end.column}return{row:this.end.row,column:this.end.column+u}}}).call(o.prototype),r.FoldLine=o}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,s){var i=n("./range").Range,o=i.comparePoints,u=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=o,this.pointIndex=function(l,f,a){for(var c=this.ranges,h=a||0;h<c.length;h++){var p=c[h],m=o(l,p.end);if(!(m>0)){var g=o(l,p.start);return m===0?f&&g!==0?-h-2:h:g>0||g===0&&!f?h:-h-1}}return-h-1},this.add=function(l){var f=!l.isEmpty(),a=this.pointIndex(l.start,f);a<0&&(a=-a-1);var c=this.pointIndex(l.end,f,a);return c<0?c=-c-1:c++,this.ranges.splice(a,c-a,l)},this.addList=function(l){for(var f=[],a=l.length;a--;)f.push.apply(f,this.add(l[a]));return f},this.substractPoint=function(l){var f=this.pointIndex(l);if(f>=0)return this.ranges.splice(f,1)},this.merge=function(){var l=[],f=this.ranges;f=f.sort(function(m,g){return o(m.start,g.start)});for(var a=f[0],c,h=1;h<f.length;h++){c=a,a=f[h];var p=o(c.end,a.start);p<0||p==0&&!c.isEmpty()&&!a.isEmpty()||(o(c.end,a.end)<0&&(c.end.row=a.end.row,c.end.column=a.end.column),f.splice(h,1),l.push(a),a=c,h--)}return this.ranges=f,l},this.contains=function(l,f){return this.pointIndex({row:l,column:f})>=0},this.containsPoint=function(l){return this.pointIndex(l)>=0},this.rangeAtPoint=function(l){var f=this.pointIndex(l);if(f>=0)return this.ranges[f]},this.clipRows=function(l,f){var a=this.ranges;if(a[0].start.row>f||a[a.length-1].start.row<l)return[];var c=this.pointIndex({row:l,column:0});c<0&&(c=-c-1);var h=this.pointIndex({row:f,column:0},c);h<0&&(h=-h-1);for(var p=[],m=c;m<h;m++)p.push(a[m]);return p},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(l){this.session&&this.detach(),this.session=l,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){!this.session||(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(l){for(var f=l.start,a=l.end,c=f.row,h=a.row,p=this.ranges,m=0,g=p.length;m<g;m++){var v=p[m];if(v.end.row>=c)break}if(l.action=="insert")for(var w=h-c,_=-f.column+a.column;m<g;m++){var v=p[m];if(v.start.row>c)break;if(v.start.row==c&&v.start.column>=f.column&&(v.start.column==f.column&&this.$bias<=0||(v.start.column+=_,v.start.row+=w)),v.end.row==c&&v.end.column>=f.column){if(v.end.column==f.column&&this.$bias<0)continue;v.end.column==f.column&&_>0&&m<g-1&&v.end.column>v.start.column&&v.end.column==p[m+1].start.column&&(v.end.column-=_),v.end.column+=_,v.end.row+=w}}else for(var w=c-h,_=f.column-a.column;m<g;m++){var v=p[m];if(v.start.row>h)break;v.end.row<h&&(c<v.end.row||c==v.end.row&&f.column<v.end.column)?(v.end.row=c,v.end.column=f.column):v.end.row==h?v.end.column<=a.column?(w||v.end.column>f.column)&&(v.end.column=f.column,v.end.row=f.row):(v.end.column+=_,v.end.row+=w):v.end.row>h&&(v.end.row+=w),v.start.row<h&&(c<v.start.row||c==v.start.row&&f.column<v.start.column)?(v.start.row=c,v.start.column=f.column):v.start.row==h?v.start.column<=a.column?(w||v.start.column>f.column)&&(v.start.column=f.column,v.start.row=f.row):(v.start.column+=_,v.start.row+=w):v.start.row>h&&(v.start.row+=w)}if(w!=0&&m<g)for(;m<g;m++){var v=p[m];v.start.row+=w,v.end.row+=w}}}).call(u.prototype),r.RangeList=u}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],function(n,r,s){var i=n("../range_list").RangeList,o=n("../lib/oop"),u=r.Fold=function(h,p){this.foldLine=null,this.placeholder=p,this.range=h,this.start=h.start,this.end=h.end,this.sameRow=h.start.row==h.end.row,this.subFolds=this.ranges=[]};o.inherits(u,i),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(h){this.foldLine=h,this.subFolds.forEach(function(p){p.setFoldLine(h)})},this.clone=function(){var h=this.range.clone(),p=new u(h,this.placeholder);return this.subFolds.forEach(function(m){p.subFolds.push(m.clone())}),p.collapseChildren=this.collapseChildren,p},this.addSubFold=function(h){if(!this.range.isEqual(h)){f(h,this.start);for(var w=h.start.row,_=h.start.column,p=0,m=-1;p<this.subFolds.length&&(m=this.subFolds[p].range.compare(w,_),m==1);p++);var g=this.subFolds[p],v=0;if(m==0){if(g.range.containsRange(h))return g.addSubFold(h);v=1}for(var w=h.range.end.row,_=h.range.end.column,$=p,m=-1;$<this.subFolds.length&&(m=this.subFolds[$].range.compare(w,_),m==1);$++);m==0&&$++;for(var x=this.subFolds.splice(p,$-p,h),b=m==0?x.length-1:x.length,C=v;C<b;C++)h.addSubFold(x[C]);return h.setFoldLine(this.foldLine),h}},this.restoreRange=function(h){return c(h,this.start)}}.call(u.prototype);function l(h,p){h.row-=p.row,h.row==0&&(h.column-=p.column)}function f(h,p){l(h.start,p),l(h.end,p)}function a(h,p){h.row==0&&(h.column+=p.column),h.row+=p.row}function c(h,p){a(h.start,p),a(h.end,p)}}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],function(n,r,s){var i=n("../range").Range,o=n("./fold_line").FoldLine,u=n("./fold").Fold,l=n("../token_iterator").TokenIterator;function f(){this.getFoldAt=function(a,c,h){var p=this.getFoldLine(a);if(!p)return null;for(var m=p.folds,g=0;g<m.length;g++){var v=m[g].range;if(v.contains(a,c)){if(h==1&&v.isEnd(a,c)&&!v.isEmpty())continue;if(h==-1&&v.isStart(a,c)&&!v.isEmpty())continue;return m[g]}}},this.getFoldsInRange=function(a){var c=a.start,h=a.end,p=this.$foldData,m=[];c.column+=1,h.column-=1;for(var g=0;g<p.length;g++){var v=p[g].range.compareRange(a);if(v!=2){if(v==-2)break;for(var w=p[g].folds,_=0;_<w.length;_++){var $=w[_];if(v=$.range.compareRange(a),v==-2)break;if(v==2)continue;if(v==42)break;m.push($)}}}return c.column-=1,h.column+=1,m},this.getFoldsInRangeList=function(a){if(Array.isArray(a)){var c=[];a.forEach(function(h){c=c.concat(this.getFoldsInRange(h))},this)}else var c=this.getFoldsInRange(a);return c},this.getAllFolds=function(){for(var a=[],c=this.$foldData,h=0;h<c.length;h++)for(var p=0;p<c[h].folds.length;p++)a.push(c[h].folds[p]);return a},this.getFoldStringAt=function(a,c,h,p){if(p=p||this.getFoldLine(a),!p)return null;for(var m={end:{column:0}},g,v,w=0;w<p.folds.length;w++){v=p.folds[w];var _=v.range.compareEnd(a,c);if(_==-1){g=this.getLine(v.start.row).substring(m.end.column,v.start.column);break}else if(_===0)return null;m=v}return g||(g=this.getLine(v.start.row).substring(m.end.column)),h==-1?g.substring(0,c-m.end.column):h==1?g.substring(c-m.end.column):g},this.getFoldLine=function(a,c){var h=this.$foldData,p=0;for(c&&(p=h.indexOf(c)),p==-1&&(p=0),p;p<h.length;p++){var m=h[p];if(m.start.row<=a&&m.end.row>=a)return m;if(m.end.row>a)return null}return null},this.getNextFoldLine=function(a,c){var h=this.$foldData,p=0;for(c&&(p=h.indexOf(c)),p==-1&&(p=0),p;p<h.length;p++){var m=h[p];if(m.end.row>=a)return m}return null},this.getFoldedRowCount=function(a,c){for(var h=this.$foldData,p=c-a+1,m=0;m<h.length;m++){var g=h[m],v=g.end.row,w=g.start.row;if(v>=c){w<c&&(w>=a?p-=c-w:p=0);break}else v>=a&&(w>=a?p-=v-w:p-=v-a+1)}return p},this.$addFoldLine=function(a){return this.$foldData.push(a),this.$foldData.sort(function(c,h){return c.start.row-h.start.row}),a},this.addFold=function(a,c){var h=this.$foldData,p=!1,m;a instanceof u?m=a:(m=new u(c,a),m.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(m.range);var g=m.start.row,v=m.start.column,w=m.end.row,_=m.end.column,$=this.getFoldAt(g,v,1),x=this.getFoldAt(w,_,-1);if($&&x==$)return $.addSubFold(m);$&&!$.range.isStart(g,v)&&this.removeFold($),x&&!x.range.isEnd(w,_)&&this.removeFold(x);var b=this.getFoldsInRange(m.range);b.length>0&&(this.removeFolds(b),m.collapseChildren||b.forEach(function(S){m.addSubFold(S)}));for(var C=0;C<h.length;C++){var T=h[C];if(w==T.start.row){T.addFold(m),p=!0;break}else if(g==T.end.row){if(T.addFold(m),p=!0,!m.sameRow){var k=h[C+1];if(k&&k.start.row==w){T.merge(k);break}}break}else if(w<=T.start.row)break}return p||(T=this.$addFoldLine(new o(this.$foldData,m))),this.$useWrapMode?this.$updateWrapData(T.start.row,T.start.row):this.$updateRowLengthCache(T.start.row,T.start.row),this.$modified=!0,this._signal("changeFold",{data:m,action:"add"}),m},this.addFolds=function(a){a.forEach(function(c){this.addFold(c)},this)},this.removeFold=function(a){var c=a.foldLine,h=c.start.row,p=c.end.row,m=this.$foldData,g=c.folds;if(g.length==1)m.splice(m.indexOf(c),1);else if(c.range.isEnd(a.end.row,a.end.column))g.pop(),c.end.row=g[g.length-1].end.row,c.end.column=g[g.length-1].end.column;else if(c.range.isStart(a.start.row,a.start.column))g.shift(),c.start.row=g[0].start.row,c.start.column=g[0].start.column;else if(a.sameRow)g.splice(g.indexOf(a),1);else{var v=c.split(a.start.row,a.start.column);g=v.folds,g.shift(),v.start.row=g[0].start.row,v.start.column=g[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(h,p):this.$updateRowLengthCache(h,p)),this.$modified=!0,this._signal("changeFold",{data:a,action:"remove"})},this.removeFolds=function(a){for(var c=[],h=0;h<a.length;h++)c.push(a[h]);c.forEach(function(p){this.removeFold(p)},this),this.$modified=!0},this.expandFold=function(a){this.removeFold(a),a.subFolds.forEach(function(c){a.restoreRange(c),this.addFold(c)},this),a.collapseChildren>0&&this.foldAll(a.start.row+1,a.end.row,a.collapseChildren-1),a.subFolds=[]},this.expandFolds=function(a){a.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(a,c){var h,p;if(a==null)h=new i(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof a=="number")h=new i(a,0,a,this.getLine(a).length);else if("row"in a)h=i.fromPoints(a,a);else{if(Array.isArray(a))return p=[],a.forEach(function(g){p=p.concat(this.unfold(g))},this),p;h=a}p=this.getFoldsInRangeList(h);for(var m=p;p.length==1&&i.comparePoints(p[0].start,h.start)<0&&i.comparePoints(p[0].end,h.end)>0;)this.expandFolds(p),p=this.getFoldsInRangeList(h);if(c!=!1?this.removeFolds(p):this.expandFolds(p),m.length)return m},this.isRowFolded=function(a,c){return!!this.getFoldLine(a,c)},this.getRowFoldEnd=function(a,c){var h=this.getFoldLine(a,c);return h?h.end.row:a},this.getRowFoldStart=function(a,c){var h=this.getFoldLine(a,c);return h?h.start.row:a},this.getFoldDisplayLine=function(a,c,h,p,m){p==null&&(p=a.start.row),m==null&&(m=0),c==null&&(c=a.end.row),h==null&&(h=this.getLine(c).length);var g=this.doc,v="";return a.walk(function(w,_,$,x){if(!(_<p)){if(_==p){if($<m)return;x=Math.max(m,x)}w!=null?v+=w:v+=g.getLine(_).substring(x,$)}},c,h),v},this.getDisplayLine=function(a,c,h,p){var m=this.getFoldLine(a);if(m)return this.getFoldDisplayLine(m,a,c,h,p);var g;return g=this.doc.getLine(a),g.substring(p||0,c||g.length)},this.$cloneFoldData=function(){var a=[];return a=this.$foldData.map(function(c){var h=c.folds.map(function(p){return p.clone()});return new o(a,h)}),a},this.toggleFold=function(a){var c=this.selection,h=c.getRange(),p,m;if(h.isEmpty()){var g=h.start;if(p=this.getFoldAt(g.row,g.column),p){this.expandFold(p);return}else(m=this.findMatchingBracket(g))?h.comparePoint(m)==1?h.end=m:(h.start=m,h.start.column++,h.end.column--):(m=this.findMatchingBracket({row:g.row,column:g.column+1}))?(h.comparePoint(m)==1?h.end=m:h.start=m,h.start.column++):h=this.getCommentFoldRange(g.row,g.column)||h}else{var v=this.getFoldsInRange(h);if(a&&v.length){this.expandFolds(v);return}else v.length==1&&(p=v[0])}if(p||(p=this.getFoldAt(h.start.row,h.start.column)),p&&p.range.toString()==h.toString()){this.expandFold(p);return}var w="...";if(!h.isMultiLine()){if(w=this.getTextRange(h),w.length<4)return;w=w.trim().substring(0,2)+".."}this.addFold(w,h)},this.getCommentFoldRange=function(a,c,h){var p=new l(this,a,c),m=p.getCurrentToken(),g=m&&m.type;if(m&&/^comment|string/.test(g)){g=g.match(/comment|string/)[0],g=="comment"&&(g+="|doc-start");var v=new RegExp(g),w=new i;if(h!=1){do m=p.stepBackward();while(m&&v.test(m.type)&&!/^comment.end/.test(m.type));m=p.stepForward()}if(w.start.row=p.getCurrentTokenRow(),w.start.column=p.getCurrentTokenColumn()+(/^comment.start/.test(m.type)?m.value.length:2),p=new l(this,a,c),h!=-1){var _=-1;do if(m=p.stepForward(),_==-1){var $=this.getState(p.$row);v.test($)||(_=p.$row)}else if(p.$row>_)break;while(m&&v.test(m.type)&&!/^comment.start/.test(m.type));m=p.stepBackward()}else m=p.getCurrentToken();return w.end.row=p.getCurrentTokenRow(),w.end.column=p.getCurrentTokenColumn(),/^comment.end/.test(m.type)||(w.end.column+=m.value.length-2),w}},this.foldAll=function(a,c,h,p){h==null&&(h=1e5);var m=this.foldWidgets;if(!!m){c=c||this.getLength(),a=a||0;for(var g=a;g<c;g++)if(m[g]==null&&(m[g]=this.getFoldWidget(g)),m[g]=="start"&&!(p&&!p(g))){var v=this.getFoldWidgetRange(g);v&&v.isMultiLine()&&v.end.row<=c&&v.start.row>=a&&(g=v.end.row,v.collapseChildren=h,this.addFold("...",v))}}},this.foldToLevel=function(a){for(this.foldAll();a-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var a=this;this.foldAll(null,null,null,function(c){for(var h=a.getTokens(c),p=0;p<h.length;p++){var m=h[p];if(!(m.type=="text"&&/^\s+$/.test(m.value)))return!!/comment/.test(m.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(a){if(!this.$foldStyles[a])throw new Error("invalid fold style: "+a+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=a){this.$foldStyle=a,a=="manual"&&this.unfold();var c=this.$foldMode;this.$setFolding(null),this.$setFolding(c)}},this.$setFolding=function(a){if(this.$foldMode!=a){if(this.$foldMode=a,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!a||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=a.getFoldWidget.bind(a,this,this.$foldStyle),this.getFoldWidgetRange=a.getFoldWidgetRange.bind(a,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(a,c){var h=this.foldWidgets;if(!h||c&&h[a])return{};for(var p=a-1,m;p>=0;){var g=h[p];if(g==null&&(g=h[p]=this.getFoldWidget(p)),g=="start"){var v=this.getFoldWidgetRange(p);if(m||(m=v),v&&v.end.row>=a)break}p--}return{range:p!==-1&&v,firstRange:m}},this.onFoldWidgetClick=function(a,c){c=c.domEvent;var h={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},p=this.$toggleFoldWidget(a,h);if(!p){var m=c.target||c.srcElement;m&&/ace_fold-widget/.test(m.className)&&(m.className+=" ace_invalid")}},this.$toggleFoldWidget=function(a,c){if(!!this.getFoldWidget){var h=this.getFoldWidget(a),p=this.getLine(a),m=h==="end"?-1:1,g=this.getFoldAt(a,m===-1?0:p.length,m);if(g)return c.children||c.all?this.removeFold(g):this.expandFold(g),g;var v=this.getFoldWidgetRange(a,!0);if(v&&!v.isMultiLine()&&(g=this.getFoldAt(v.start.row,v.start.column,1),g&&v.isEqual(g.range)))return this.removeFold(g),g;if(c.siblings){var w=this.getParentFoldRangeData(a);if(w.range)var _=w.range.start.row+1,$=w.range.end.row;this.foldAll(_,$,c.all?1e4:0)}else c.children?($=v?v.end.row:this.getLength(),this.foldAll(a+1,$,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(a){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var h=this.$toggleFoldWidget(c,{});if(!h){var p=this.getParentFoldRangeData(c,!0);if(h=p.range||p.firstRange,h){c=h.start.row;var m=this.getFoldAt(c,this.getLine(c).length,1);m?this.removeFold(m):this.addFold("...",h)}}},this.updateFoldWidgets=function(a){var c=a.start.row,h=a.end.row-c;if(h===0)this.foldWidgets[c]=null;else if(a.action=="remove")this.foldWidgets.splice(c,h+1,null);else{var p=Array(h+1);p.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,p)}},this.tokenizerUpdateFoldWidgets=function(a){var c=a.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}r.Folding=f}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,s){var i=n("../token_iterator").TokenIterator,o=n("../range").Range;function u(){this.findMatchingBracket=function(l,f){if(l.column==0)return null;var a=f||this.getLine(l.row).charAt(l.column-1);if(a=="")return null;var c=a.match(/([\(\[\{])|([\)\]\}])/);return c?c[1]?this.$findClosingBracket(c[1],l):this.$findOpeningBracket(c[2],l):null},this.getBracketRange=function(l){var f=this.getLine(l.row),a=!0,c,h=f.charAt(l.column-1),p=h&&h.match(/([\(\[\{])|([\)\]\}])/);if(p||(h=f.charAt(l.column),l={row:l.row,column:l.column+1},p=h&&h.match(/([\(\[\{])|([\)\]\}])/),a=!1),!p)return null;if(p[1]){var m=this.$findClosingBracket(p[1],l);if(!m)return null;c=o.fromPoints(l,m),a||(c.end.column++,c.start.column--),c.cursor=c.end}else{var m=this.$findOpeningBracket(p[2],l);if(!m)return null;c=o.fromPoints(m,l),a||(c.start.column++,c.end.column--),c.cursor=c.start}return c},this.getMatchingBracketRanges=function(l,f){var a=this.getLine(l.row),c=/([\(\[\{])|([\)\]\}])/,h=!f&&a.charAt(l.column-1),p=h&&h.match(c);if(p||(h=(f===void 0||f)&&a.charAt(l.column),l={row:l.row,column:l.column+1},p=h&&h.match(c)),!p)return null;var m=new o(l.row,l.column-1,l.row,l.column),g=p[1]?this.$findClosingBracket(p[1],l):this.$findOpeningBracket(p[2],l);if(!g)return[m];var v=new o(g.row,g.column,g.row,g.column+1);return[m,v]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(l,f,a){var c=this.$brackets[l],h=1,p=new i(this,f.row,f.column),m=p.getCurrentToken();if(m||(m=p.stepForward()),!!m){a||(a=new RegExp("(\\.?"+m.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var g=f.column-p.getCurrentTokenColumn()-2,v=m.value;;){for(;g>=0;){var w=v.charAt(g);if(w==c){if(h-=1,h==0)return{row:p.getCurrentTokenRow(),column:g+p.getCurrentTokenColumn()}}else w==l&&(h+=1);g-=1}do m=p.stepBackward();while(m&&!a.test(m.type));if(m==null)break;v=m.value,g=v.length-1}return null}},this.$findClosingBracket=function(l,f,a){var c=this.$brackets[l],h=1,p=new i(this,f.row,f.column),m=p.getCurrentToken();if(m||(m=p.stepForward()),!!m){a||(a=new RegExp("(\\.?"+m.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var g=f.column-p.getCurrentTokenColumn();;){for(var v=m.value,w=v.length;g<w;){var _=v.charAt(g);if(_==c){if(h-=1,h==0)return{row:p.getCurrentTokenRow(),column:g+p.getCurrentTokenColumn()}}else _==l&&(h+=1);g+=1}do m=p.stepForward();while(m&&!a.test(m.type));if(m==null)break;g=0}return null}},this.getMatchingTags=function(l){var f=new i(this,l.row,l.column),a=this.$findTagName(f);if(!!a){var c=f.stepBackward();return c.value==="<"?this.$findClosingTag(f,a):this.$findOpeningTag(f,a)}},this.$findTagName=function(l){var f=l.getCurrentToken(),a=!1,c=!1;if(f&&f.type.indexOf("tag-name")===-1)do c?f=l.stepBackward():f=l.stepForward(),f&&(f.value==="/>"?c=!0:f.type.indexOf("tag-name")!==-1&&(a=!0));while(f&&!a);return f},this.$findClosingTag=function(l,f){var a,c=f.value,h=f.value,p=0,m=new o(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);f=l.stepForward();var g=new o(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+f.value.length),v=!1;do if(a=f,f=l.stepForward(),f){if(f.value===">"&&!v){var w=new o(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);v=!0}if(f.type.indexOf("tag-name")!==-1){if(c=f.value,h===c){if(a.value==="<")p++;else if(a.value==="</"&&(p--,p<0)){l.stepBackward();var _=new o(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2);f=l.stepForward();var $=new o(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+f.value.length);if(f=l.stepForward(),f&&f.value===">")var x=new o(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);else return}}}else if(h===c&&f.value==="/>"&&(p--,p<0))var _=new o(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2),$=_,x=$,w=new o(g.end.row,g.end.column,g.end.row,g.end.column+1)}while(f&&p>=0);if(m&&w&&_&&x&&g&&$)return{openTag:new o(m.start.row,m.start.column,w.end.row,w.end.column),closeTag:new o(_.start.row,_.start.column,x.end.row,x.end.column),openTagName:g,closeTagName:$}},this.$findOpeningTag=function(l,f){var a=l.getCurrentToken(),c=f.value,h=0,p=l.getCurrentTokenRow(),m=l.getCurrentTokenColumn(),g=m+2,v=new o(p,m,p,g);l.stepForward();var w=new o(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+f.value.length);if(f=l.stepForward(),!(!f||f.value!==">")){var _=new o(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);l.stepBackward(),l.stepBackward();do if(f=a,p=l.getCurrentTokenRow(),m=l.getCurrentTokenColumn(),g=m+f.value.length,a=l.stepBackward(),f){if(f.type.indexOf("tag-name")!==-1){if(c===f.value)if(a.value==="<"){if(h++,h>0){var $=new o(p,m,p,g),x=new o(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);do f=l.stepForward();while(f&&f.value!==">");var b=new o(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1)}}else a.value==="</"&&h--}else if(f.value==="/>"){for(var C=0,T=a;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===c){h--;break}else if(T.value==="<")break;T=l.stepBackward(),C++}for(var k=0;k<C;k++)l.stepForward()}}while(a&&h<=0);if(x&&b&&v&&_&&$&&w)return{openTag:new o(x.start.row,x.start.column,b.end.row,b.end.column),closeTag:new o(v.start.row,v.start.column,_.end.row,_.end.column),openTagName:$,closeTagName:w}}}}r.BracketMatch=u}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,r,s){var i=n("./lib/oop"),o=n("./lib/lang"),u=n("./bidihandler").BidiHandler,l=n("./config"),f=n("./lib/event_emitter").EventEmitter,a=n("./selection").Selection,c=n("./mode/text").Mode,h=n("./range").Range,p=n("./document").Document,m=n("./background_tokenizer").BackgroundTokenizer,g=n("./search_highlight").SearchHighlight,v=function(w,_){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++v.$uid,this.$foldData.toString=function(){return this.join(`
221
+ `)},this.bgTokenizer=new m(new c().getTokenizer(),this);var $=this;this.bgTokenizer.on("update",function(x){$._signal("tokenizerUpdate",x)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof w!="object"||!w.getLine)&&(w=new p(w)),this.setDocument(w),this.selection=new a(this),this.$bidiHandler=new u(this),l.resetOptions(this),this.setMode(_),l._signal("session",this),this.destroyed=!1};v.$uid=0,function(){i.implement(this,f),this.setDocument=function(y){this.doc&&this.doc.off("change",this.$onChange),this.doc=y,y.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(y){if(!y){this.$docRowCache=[],this.$screenRowCache=[];return}var E=this.$docRowCache.length,A=this.$getRowCacheIndex(this.$docRowCache,y)+1;E>A&&(this.$docRowCache.splice(A,E),this.$screenRowCache.splice(A,E))},this.$getRowCacheIndex=function(y,E){for(var A=0,O=y.length-1;A<=O;){var R=A+O>>1,M=y[R];if(E>M)A=R+1;else if(E<M)O=R-1;else return R}return A-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},this.onChangeFold=function(y){var E=y.data;this.$resetRowCache(E.start.row)},this.onChange=function(y){this.$modified=!0,this.$bidiHandler.onChange(y),this.$resetRowCache(y.start.row);var E=this.$updateInternalDataOnChange(y);!this.$fromUndo&&this.$undoManager&&(E&&E.length&&(this.$undoManager.add({action:"removeFolds",folds:E},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(y,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(y),this._signal("change",y)},this.setValue=function(y){this.doc.setValue(y),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(y){return this.bgTokenizer.getState(y)},this.getTokens=function(y){return this.bgTokenizer.getTokens(y)},this.getTokenAt=function(y,E){var A=this.bgTokenizer.getTokens(y),O,R=0;if(E==null){var M=A.length-1;R=this.getLine(y).length}else for(var M=0;M<A.length&&(R+=A[M].value.length,!(R>=E));M++);return O=A[M],O?(O.index=M,O.start=R-O.value.length,O):null},this.setUndoManager=function(y){if(this.$undoManager=y,this.$informUndoManager&&this.$informUndoManager.cancel(),y){var E=this;y.addSession(this),this.$syncInformUndoManager=function(){E.$informUndoManager.cancel(),E.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(y){this.setOption("useSoftTabs",y)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(y){this.setOption("tabSize",y)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(y){return this.$useSoftTabs&&y.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(y){this.setOption("navigateWithinSoftTabs",y)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(y){this.setOption("overwrite",y)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(y,E){this.$decorations[y]||(this.$decorations[y]=""),this.$decorations[y]+=" "+E,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(y,E){this.$decorations[y]=(this.$decorations[y]||"").replace(" "+E,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(y){this.$breakpoints=[];for(var E=0;E<y.length;E++)this.$breakpoints[y[E]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(y,E){E===void 0&&(E="ace_breakpoint"),E?this.$breakpoints[y]=E:delete this.$breakpoints[y],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(y){delete this.$breakpoints[y],this._signal("changeBreakpoint",{})},this.addMarker=function(y,E,A,O){var R=this.$markerId++,M={range:y,type:A||"line",renderer:typeof A=="function"?A:null,clazz:E,inFront:!!O,id:R};return O?(this.$frontMarkers[R]=M,this._signal("changeFrontMarker")):(this.$backMarkers[R]=M,this._signal("changeBackMarker")),R},this.addDynamicMarker=function(y,E){if(!!y.update){var A=this.$markerId++;return y.id=A,y.inFront=!!E,E?(this.$frontMarkers[A]=y,this._signal("changeFrontMarker")):(this.$backMarkers[A]=y,this._signal("changeBackMarker")),y}},this.removeMarker=function(y){var E=this.$frontMarkers[y]||this.$backMarkers[y];if(!!E){var A=E.inFront?this.$frontMarkers:this.$backMarkers;delete A[y],this._signal(E.inFront?"changeFrontMarker":"changeBackMarker")}},this.getMarkers=function(y){return y?this.$frontMarkers:this.$backMarkers},this.highlight=function(y){if(!this.$searchHighlight){var E=new g(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(E)}this.$searchHighlight.setRegexp(y)},this.highlightLines=function(y,E,A,O){typeof E!="number"&&(A=E,E=y),A||(A="ace_step");var R=new h(y,0,E,1/0);return R.id=this.addMarker(R,A,"fullLine",O),R},this.setAnnotations=function(y){this.$annotations=y,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(y){var E=y.match(/^.*?(\r?\n)/m);E?this.$autoNewLine=E[1]:this.$autoNewLine=`
222
+ `},this.getWordRange=function(y,E){var A=this.getLine(y),O=!1;if(E>0&&(O=!!A.charAt(E-1).match(this.tokenRe)),O||(O=!!A.charAt(E).match(this.tokenRe)),O)var R=this.tokenRe;else if(/^\s+$/.test(A.slice(E-1,E+1)))var R=/\s/;else var R=this.nonTokenRe;var M=E;if(M>0){do M--;while(M>=0&&A.charAt(M).match(R));M++}for(var I=E;I<A.length&&A.charAt(I).match(R);)I++;return new h(y,M,y,I)},this.getAWordRange=function(y,E){for(var A=this.getWordRange(y,E),O=this.getLine(A.end.row);O.charAt(A.end.column).match(/[ \t]/);)A.end.column+=1;return A},this.setNewLineMode=function(y){this.doc.setNewLineMode(y)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(y){this.setOption("useWorker",y)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(y){var E=y.data;this.bgTokenizer.start(E.first),this._signal("tokenizerUpdate",y)},this.$modes=l.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(y,E){if(y&&typeof y=="object"){if(y.getTokenizer)return this.$onChangeMode(y);var A=y,O=A.path}else O=y||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[O]&&!A){this.$onChangeMode(this.$modes[O]),E&&E();return}this.$modeId=O,l.loadModule(["mode",O],function(R){if(this.$modeId!==O)return E&&E();this.$modes[O]&&!A?this.$onChangeMode(this.$modes[O]):R&&R.Mode&&(R=new R.Mode(A),A||(this.$modes[O]=R,R.$id=O),this.$onChangeMode(R)),E&&E()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(y,E){if(E||(this.$modeId=y.$id),this.$mode!==y){var A=this.$mode;this.$mode=y,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=y.getTokenizer();if(O.on!==void 0){var R=this.onReloadTokenizer.bind(this);O.on("update",R)}this.bgTokenizer.setTokenizer(O),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=y.tokenRe,this.nonTokenRe=y.nonTokenRe,E||(y.attachToSession&&y.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(y.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:A,mode:y}))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(y){l.warn("Could not load worker",y),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(y){this.$scrollTop===y||isNaN(y)||(this.$scrollTop=y,this._signal("changeScrollTop",y))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(y){this.$scrollLeft===y||isNaN(y)||(this.$scrollLeft=y,this._signal("changeScrollLeft",y))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var y=0;return this.lineWidgets.forEach(function(E){E&&E.screenWidth>y&&(y=E.screenWidth)}),this.lineWidgetWidth=y},this.$computeWidth=function(y){if(this.$modified||y){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var E=this.doc.getAllLines(),A=this.$rowLengthCache,O=0,R=0,M=this.$foldData[R],I=M?M.start.row:1/0,B=E.length,W=0;W<B;W++){if(W>I){if(W=M.end.row+1,W>=B)break;M=this.$foldData[R++],I=M?M.start.row:1/0}A[W]==null&&(A[W]=this.$getStringScreenWidth(E[W])[0]),A[W]>O&&(O=A[W])}this.screenWidth=O}},this.getLine=function(y){return this.doc.getLine(y)},this.getLines=function(y,E){return this.doc.getLines(y,E)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(y){return this.doc.getTextRange(y||this.selection.getRange())},this.insert=function(y,E){return this.doc.insert(y,E)},this.remove=function(y){return this.doc.remove(y)},this.removeFullLines=function(y,E){return this.doc.removeFullLines(y,E)},this.undoChanges=function(y,E){if(!!y.length){this.$fromUndo=!0;for(var A=y.length-1;A!=-1;A--){var O=y[A];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!E&&this.$undoSelect&&(y.selectionBefore?this.selection.fromJSON(y.selectionBefore):this.selection.setRange(this.$getUndoSelection(y,!0))),this.$fromUndo=!1}},this.redoChanges=function(y,E){if(!!y.length){this.$fromUndo=!0;for(var A=0;A<y.length;A++){var O=y[A];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!E&&this.$undoSelect&&(y.selectionAfter?this.selection.fromJSON(y.selectionAfter):this.selection.setRange(this.$getUndoSelection(y,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(y){this.$undoSelect=y},this.$getUndoSelection=function(y,E){function A(B){return E?B.action!=="insert":B.action==="insert"}for(var O,R,M=0;M<y.length;M++){var I=y[M];if(!!I.start){if(!O){A(I)?O=h.fromPoints(I.start,I.end):O=h.fromPoints(I.start,I.start);continue}A(I)?(R=I.start,O.compare(R.row,R.column)==-1&&O.setStart(R),R=I.end,O.compare(R.row,R.column)==1&&O.setEnd(R)):(R=I.start,O.compare(R.row,R.column)==-1&&(O=h.fromPoints(I.start,I.start)))}}return O},this.replace=function(y,E){return this.doc.replace(y,E)},this.moveText=function(y,E,A){var O=this.getTextRange(y),R=this.getFoldsInRange(y),M=h.fromPoints(E,E);if(!A){this.remove(y);var I=y.start.row-y.end.row,B=I?-y.end.column:y.start.column-y.end.column;B&&(M.start.row==y.end.row&&M.start.column>y.end.column&&(M.start.column+=B),M.end.row==y.end.row&&M.end.column>y.end.column&&(M.end.column+=B)),I&&M.start.row>=y.end.row&&(M.start.row+=I,M.end.row+=I)}if(M.end=this.insert(M.start,O),R.length){var W=y.start,F=M.start,I=F.row-W.row,B=F.column-W.column;this.addFolds(R.map(function(Y){return Y=Y.clone(),Y.start.row==W.row&&(Y.start.column+=B),Y.end.row==W.row&&(Y.end.column+=B),Y.start.row+=I,Y.end.row+=I,Y}))}return M},this.indentRows=function(y,E,A){A=A.replace(/\t/g,this.getTabString());for(var O=y;O<=E;O++)this.doc.insertInLine({row:O,column:0},A)},this.outdentRows=function(y){for(var E=y.collapseRows(),A=new h(0,0,0,0),O=this.getTabSize(),R=E.start.row;R<=E.end.row;++R){var M=this.getLine(R);A.start.row=R,A.end.row=R;for(var I=0;I<O&&M.charAt(I)==" ";++I);I<O&&M.charAt(I)==" "?(A.start.column=I,A.end.column=I+1):(A.start.column=0,A.end.column=I),this.remove(A)}},this.$moveLines=function(y,E,A){if(y=this.getRowFoldStart(y),E=this.getRowFoldEnd(E),A<0){var O=this.getRowFoldStart(y+A);if(O<0)return 0;var R=O-y}else if(A>0){var O=this.getRowFoldEnd(E+A);if(O>this.doc.getLength()-1)return 0;var R=O-E}else{y=this.$clipRowToDocument(y),E=this.$clipRowToDocument(E);var R=E-y+1}var M=new h(y,0,E,Number.MAX_VALUE),I=this.getFoldsInRange(M).map(function(W){return W=W.clone(),W.start.row+=R,W.end.row+=R,W}),B=A==0?this.doc.getLines(y,E):this.doc.removeFullLines(y,E);return this.doc.insertFullLines(y+R,B),I.length&&this.addFolds(I),R},this.moveLinesUp=function(y,E){return this.$moveLines(y,E,-1)},this.moveLinesDown=function(y,E){return this.$moveLines(y,E,1)},this.duplicateLines=function(y,E){return this.$moveLines(y,E,0)},this.$clipRowToDocument=function(y){return Math.max(0,Math.min(y,this.doc.getLength()-1))},this.$clipColumnToRow=function(y,E){return E<0?0:Math.min(this.doc.getLine(y).length,E)},this.$clipPositionToDocument=function(y,E){if(E=Math.max(0,E),y<0)y=0,E=0;else{var A=this.doc.getLength();y>=A?(y=A-1,E=this.doc.getLine(A-1).length):E=Math.min(this.doc.getLine(y).length,E)}return{row:y,column:E}},this.$clipRangeToDocument=function(y){y.start.row<0?(y.start.row=0,y.start.column=0):y.start.column=this.$clipColumnToRow(y.start.row,y.start.column);var E=this.doc.getLength()-1;return y.end.row>E?(y.end.row=E,y.end.column=this.doc.getLine(E).length):y.end.column=this.$clipColumnToRow(y.end.row,y.end.column),y},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(y){if(y!=this.$useWrapMode){if(this.$useWrapMode=y,this.$modified=!0,this.$resetRowCache(0),y){var E=this.getLength();this.$wrapData=Array(E),this.$updateWrapData(0,E-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(y,E){(this.$wrapLimitRange.min!==y||this.$wrapLimitRange.max!==E)&&(this.$wrapLimitRange={min:y,max:E},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(y,E){var A=this.$wrapLimitRange;A.max<0&&(A={min:E,max:E});var O=this.$constrainWrapLimit(y,A.min,A.max);return O!=this.$wrapLimit&&O>1?(this.$wrapLimit=O,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(y,E,A){return E&&(y=Math.max(E,y)),A&&(y=Math.min(A,y)),y},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(y){this.setWrapLimitRange(y,y)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(y){var E=this.$useWrapMode,A=y.action,O=y.start,R=y.end,M=O.row,I=R.row,B=I-M,W=null;if(this.$updating=!0,B!=0)if(A==="remove"){this[E?"$wrapData":"$rowLengthCache"].splice(M,B);var F=this.$foldData;W=this.getFoldsInRange(y),this.removeFolds(W);var j=this.getFoldLine(R.row),J=0;if(j){j.addRemoveChars(R.row,R.column,O.column-R.column),j.shiftRow(-B);var Y=this.getFoldLine(M);Y&&Y!==j&&(Y.merge(j),j=Y),J=F.indexOf(j)+1}for(J;J<F.length;J++){var j=F[J];j.start.row>=R.row&&j.shiftRow(-B)}I=M}else{var U=Array(B);U.unshift(M,0);var G=E?this.$wrapData:this.$rowLengthCache;G.splice.apply(G,U);var F=this.$foldData,j=this.getFoldLine(M),J=0;if(j){var X=j.range.compareInside(O.row,O.column);X==0?(j=j.split(O.row,O.column),j&&(j.shiftRow(B),j.addRemoveChars(I,0,R.column-O.column))):X==-1&&(j.addRemoveChars(M,0,R.column-O.column),j.shiftRow(B)),J=F.indexOf(j)+1}for(J;J<F.length;J++){var j=F[J];j.start.row>=M&&j.shiftRow(B)}}else{B=Math.abs(y.start.column-y.end.column),A==="remove"&&(W=this.getFoldsInRange(y),this.removeFolds(W),B=-B);var j=this.getFoldLine(M);j&&j.addRemoveChars(M,O.column,B)}return E&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,E?this.$updateWrapData(M,I):this.$updateRowLengthCache(M,I),W},this.$updateRowLengthCache=function(y,E,A){this.$rowLengthCache[y]=null,this.$rowLengthCache[E]=null},this.$updateWrapData=function(y,E){var A=this.doc.getAllLines(),O=this.getTabSize(),R=this.$wrapData,M=this.$wrapLimit,I,B,W=y;for(E=Math.min(E,A.length-1);W<=E;)B=this.getFoldLine(W,B),B?(I=[],B.walk(function(F,j,J,Y){var U;if(F!=null){U=this.$getDisplayTokens(F,I.length),U[0]=$;for(var G=1;G<U.length;G++)U[G]=x}else U=this.$getDisplayTokens(A[j].substring(Y,J),I.length);I=I.concat(U)}.bind(this),B.end.row,A[B.end.row].length+1),R[B.start.row]=this.$computeWrapSplits(I,M,O),W=B.end.row+1):(I=this.$getDisplayTokens(A[W]),R[W]=this.$computeWrapSplits(I,M,O),W++)};var w=1,_=2,$=3,x=4,b=9,C=10,T=11,k=12;this.$computeWrapSplits=function(y,E,A){if(y.length==0)return[];var O=[],R=y.length,M=0,I=0,B=this.$wrapAsCode,W=this.$indentedSoftWrap,F=E<=Math.max(2*A,8)||W===!1?0:Math.floor(E/2);function j(){var X=0;if(F===0)return X;if(W)for(var Z=0;Z<y.length;Z++){var te=y[Z];if(te==C)X+=1;else if(te==T)X+=A;else{if(te==k)continue;break}}return B&&W!==!1&&(X+=A),Math.min(X,F)}function J(X){for(var Z=X-M,te=M;te<X;te++){var ie=y[te];(ie===12||ie===2)&&(Z-=1)}O.length||(Y=j(),O.indent=Y),I+=Z,O.push(I),M=X}for(var Y=0;R-M>E-Y;){var U=M+E-Y;if(y[U-1]>=C&&y[U]>=C){J(U);continue}if(y[U]==$||y[U]==x){for(U;U!=M-1&&y[U]!=$;U--);if(U>M){J(U);continue}for(U=M+E,U;U<y.length&&y[U]==x;U++);if(U==y.length)break;J(U);continue}for(var G=Math.max(U-(E-(E>>2)),M-1);U>G&&y[U]<$;)U--;if(B){for(;U>G&&y[U]<$;)U--;for(;U>G&&y[U]==b;)U--}else for(;U>G&&y[U]<C;)U--;if(U>G){J(++U);continue}U=M+E,y[U]==_&&U--,J(U-Y)}return O},this.$getDisplayTokens=function(y,E){var A=[],O;E=E||0;for(var R=0;R<y.length;R++){var M=y.charCodeAt(R);if(M==9){O=this.getScreenTabSize(A.length+E),A.push(T);for(var I=1;I<O;I++)A.push(k)}else M==32?A.push(C):M>39&&M<48||M>57&&M<64?A.push(b):M>=4352&&S(M)?A.push(w,_):A.push(w)}return A},this.$getStringScreenWidth=function(y,E,A){if(E==0)return[0,0];E==null&&(E=1/0),A=A||0;var O,R;for(R=0;R<y.length&&(O=y.charCodeAt(R),O==9?A+=this.getScreenTabSize(A):O>=4352&&S(O)?A+=2:A+=1,!(A>E));R++);return[A,R]},this.lineWidgets=null,this.getRowLength=function(y){var E=1;return this.lineWidgets&&(E+=this.lineWidgets[y]&&this.lineWidgets[y].rowCount||0),!this.$useWrapMode||!this.$wrapData[y]?E:this.$wrapData[y].length+E},this.getRowLineCount=function(y){return!this.$useWrapMode||!this.$wrapData[y]?1:this.$wrapData[y].length+1},this.getRowWrapIndent=function(y){if(this.$useWrapMode){var E=this.screenToDocumentPosition(y,Number.MAX_VALUE),A=this.$wrapData[E.row];return A.length&&A[0]<E.column?A.indent:0}else return 0},this.getScreenLastRowColumn=function(y){var E=this.screenToDocumentPosition(y,Number.MAX_VALUE);return this.documentToScreenColumn(E.row,E.column)},this.getDocumentLastRowColumn=function(y,E){var A=this.documentToScreenRow(y,E);return this.getScreenLastRowColumn(A)},this.getDocumentLastRowColumnPosition=function(y,E){var A=this.documentToScreenRow(y,E);return this.screenToDocumentPosition(A,Number.MAX_VALUE/10)},this.getRowSplitData=function(y){if(this.$useWrapMode)return this.$wrapData[y]},this.getScreenTabSize=function(y){return this.$tabSize-(y%this.$tabSize|0)},this.screenToDocumentRow=function(y,E){return this.screenToDocumentPosition(y,E).row},this.screenToDocumentColumn=function(y,E){return this.screenToDocumentPosition(y,E).column},this.screenToDocumentPosition=function(y,E,A){if(y<0)return{row:0,column:0};var O,R=0,M=0,I,B=0,W=0,F=this.$screenRowCache,j=this.$getRowCacheIndex(F,y),J=F.length;if(J&&j>=0)var B=F[j],R=this.$docRowCache[j],Y=y>F[J-1];else var Y=!J;for(var U=this.getLength()-1,G=this.getNextFoldLine(R),X=G?G.start.row:1/0;B<=y&&(W=this.getRowLength(R),!(B+W>y||R>=U));)B+=W,R++,R>X&&(R=G.end.row+1,G=this.getNextFoldLine(R,G),X=G?G.start.row:1/0),Y&&(this.$docRowCache.push(R),this.$screenRowCache.push(B));if(G&&G.start.row<=R)O=this.getFoldDisplayLine(G),R=G.start.row;else{if(B+W<=y||R>U)return{row:U,column:this.getLine(U).length};O=this.getLine(R),G=null}var Z=0,te=Math.floor(y-B);if(this.$useWrapMode){var ie=this.$wrapData[R];ie&&(I=ie[te],te>0&&ie.length&&(Z=ie.indent,M=ie[te-1]||ie[ie.length-1],O=O.substring(M)))}return A!==void 0&&this.$bidiHandler.isBidiRow(B+te,R,te)&&(E=this.$bidiHandler.offsetToCol(A)),M+=this.$getStringScreenWidth(O,E-Z)[1],this.$useWrapMode&&M>=I&&(M=I-1),G?G.idxToPosition(M):{row:R,column:M}},this.documentToScreenPosition=function(y,E){if(typeof E>"u")var A=this.$clipPositionToDocument(y.row,y.column);else A=this.$clipPositionToDocument(y,E);y=A.row,E=A.column;var O=0,R=null,M=null;M=this.getFoldAt(y,E,1),M&&(y=M.start.row,E=M.start.column);var I,B=0,W=this.$docRowCache,F=this.$getRowCacheIndex(W,y),j=W.length;if(j&&F>=0)var B=W[F],O=this.$screenRowCache[F],J=y>W[j-1];else var J=!j;for(var Y=this.getNextFoldLine(B),U=Y?Y.start.row:1/0;B<y;){if(B>=U){if(I=Y.end.row+1,I>y)break;Y=this.getNextFoldLine(I,Y),U=Y?Y.start.row:1/0}else I=B+1;O+=this.getRowLength(B),B=I,J&&(this.$docRowCache.push(B),this.$screenRowCache.push(O))}var G="";Y&&B>=U?(G=this.getFoldDisplayLine(Y,y,E),R=Y.start.row):(G=this.getLine(y).substring(0,E),R=y);var X=0;if(this.$useWrapMode){var Z=this.$wrapData[R];if(Z){for(var te=0;G.length>=Z[te];)O++,te++;G=G.substring(Z[te-1]||0,G.length),X=te>0?Z.indent:0}}return this.lineWidgets&&this.lineWidgets[B]&&this.lineWidgets[B].rowsAbove&&(O+=this.lineWidgets[B].rowsAbove),{row:O,column:X+this.$getStringScreenWidth(G)[0]}},this.documentToScreenColumn=function(y,E){return this.documentToScreenPosition(y,E).column},this.documentToScreenRow=function(y,E){return this.documentToScreenPosition(y,E).row},this.getScreenLength=function(){var y=0,E=null;if(this.$useWrapMode)for(var R=this.$wrapData.length,M=0,O=0,E=this.$foldData[O++],I=E?E.start.row:1/0;M<R;){var B=this.$wrapData[M];y+=B?B.length+1:1,M++,M>I&&(M=E.end.row+1,E=this.$foldData[O++],I=E?E.start.row:1/0)}else{y=this.getLength();for(var A=this.$foldData,O=0;O<A.length;O++)E=A[O],y-=E.end.row-E.start.row}return this.lineWidgets&&(y+=this.$getWidgetScreenLength()),y},this.$setFontMetrics=function(y){!this.$enableVarChar||(this.$getStringScreenWidth=function(E,A,O){if(A===0)return[0,0];A||(A=1/0),O=O||0;var R,M;for(M=0;M<E.length&&(R=E.charAt(M),R===" "?O+=this.getScreenTabSize(O):O+=y.getCharacterWidth(R),!(O>A));M++);return[O,M]})},this.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=S;function S(y){return y<4352?!1:y>=4352&&y<=4447||y>=4515&&y<=4519||y>=4602&&y<=4607||y>=9001&&y<=9002||y>=11904&&y<=11929||y>=11931&&y<=12019||y>=12032&&y<=12245||y>=12272&&y<=12283||y>=12288&&y<=12350||y>=12353&&y<=12438||y>=12441&&y<=12543||y>=12549&&y<=12589||y>=12593&&y<=12686||y>=12688&&y<=12730||y>=12736&&y<=12771||y>=12784&&y<=12830||y>=12832&&y<=12871||y>=12880&&y<=13054||y>=13056&&y<=19903||y>=19968&&y<=42124||y>=42128&&y<=42182||y>=43360&&y<=43388||y>=44032&&y<=55203||y>=55216&&y<=55238||y>=55243&&y<=55291||y>=63744&&y<=64255||y>=65040&&y<=65049||y>=65072&&y<=65106||y>=65108&&y<=65126||y>=65128&&y<=65131||y>=65281&&y<=65376||y>=65504&&y<=65510}}.call(v.prototype),n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),l.defineOptions(v.prototype,"session",{wrap:{set:function(w){if(!w||w=="off"?w=!1:w=="free"?w=!0:w=="printMargin"?w=-1:typeof w=="string"&&(w=parseInt(w,10)||!1),this.$wrap!=w)if(this.$wrap=w,!w)this.setUseWrapMode(!1);else{var _=typeof w=="number"?w:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(w){w=w=="auto"?this.$mode.type!="text":w!="text",w!=this.$wrapAsCode&&(this.$wrapAsCode=w,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(w){this.$useWorker=w,this.$stopWorker(),w&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(w){w=parseInt(w),w>0&&this.$tabSize!==w&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=w,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(w){this.setFoldStyle(w)},handlesSet:!0},overwrite:{set:function(w){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(w){this.doc.setNewLineMode(w)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(w){this.setMode(w)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,s){var i=n("./lib/lang"),o=n("./lib/oop"),u=n("./range").Range,l=function(){this.$options={}};(function(){this.set=function(a){return o.mixin(this.$options,a),this},this.getOptions=function(){return i.copyObject(this.$options)},this.setOptions=function(a){this.$options=a},this.find=function(a){var c=this.$options,h=this.$matchIterator(a,c);if(!h)return!1;var p=null;return h.forEach(function(m,g,v,w){return p=new u(m,g,v,w),g==w&&c.start&&c.start.start&&c.skipCurrent!=!1&&p.isEqual(c.start)?(p=null,!1):!0}),p},this.findAll=function(a){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var h=c.range,p=h?a.getLines(h.start.row,h.end.row):a.doc.getAllLines(),m=[],g=c.re;if(c.$isMultiLine){var v=g.length,w=p.length-v,_;e:for(var $=g.offset||0;$<=w;$++){for(var x=0;x<v;x++)if(p[$+x].search(g[x])==-1)continue e;var b=p[$],C=p[$+v-1],T=b.length-b.match(g[0])[0].length,k=C.match(g[v-1])[0].length;_&&_.end.row===$&&_.end.column>T||(m.push(_=new u($,T,$+v-1,k)),v>2&&($=$+v-2))}}else for(var S=0;S<p.length;S++)for(var y=i.getMatchOffsets(p[S],g),x=0;x<y.length;x++){var E=y[x];m.push(new u(S,E.offset,S,E.offset+E.length))}if(h){for(var A=h.start.column,O=h.end.column,S=0,x=m.length-1;S<x&&m[S].start.column<A&&m[S].start.row==0;)S++;for(var R=h.end.row-h.start.row;S<x&&m[x].end.column>O&&m[x].end.row==R;)x--;for(m=m.slice(S,x+1),S=0,x=m.length;S<x;S++)m[S].start.row+=h.start.row,m[S].end.row+=h.start.row}return m},this.replace=function(a,c){var h=this.$options,p=this.$assembleRegExp(h);if(h.$isMultiLine)return c;if(!!p){var m=p.exec(a);if(!m||m[0].length!=a.length)return null;if(c=a.replace(p,c),h.preserveCase){c=c.split("");for(var g=Math.min(a.length,a.length);g--;){var v=a[g];v&&v.toLowerCase()!=v?c[g]=c[g].toUpperCase():c[g]=c[g].toLowerCase()}c=c.join("")}return c}},this.$assembleRegExp=function(a,c){if(a.needle instanceof RegExp)return a.re=a.needle;var h=a.needle;if(!a.needle)return a.re=!1;a.regExp||(h=i.escapeRegExp(h)),a.wholeWord&&(h=f(h,a));var p=a.caseSensitive?"gm":"gmi";if(a.$isMultiLine=!c&&/[\n\r]/.test(h),a.$isMultiLine)return a.re=this.$assembleMultilineRegExp(h,p);try{var m=new RegExp(h,p)}catch{m=!1}return a.re=m},this.$assembleMultilineRegExp=function(a,c){for(var h=a.replace(/\r\n|\r|\n/g,`$
223
+ ^`).split(`
224
+ `),p=[],m=0;m<h.length;m++)try{p.push(new RegExp(h[m],c))}catch{return!1}return p},this.$matchIterator=function(a,c){var h=this.$assembleRegExp(c);if(!h)return!1;var p=c.backwards==!0,m=c.skipCurrent!=!1,g=c.range,v=c.start;v||(v=g?g[p?"end":"start"]:a.selection.getRange()),v.start&&(v=v[m!=p?"end":"start"]);var w=g?g.start.row:0,_=g?g.end.row:a.getLength()-1;if(p)var $=function(C){var T=v.row;if(!b(T,v.column,C)){for(T--;T>=w;T--)if(b(T,Number.MAX_VALUE,C))return;if(c.wrap!=!1){for(T=_,w=v.row;T>=w;T--)if(b(T,Number.MAX_VALUE,C))return}}};else var $=function(T){var k=v.row;if(!b(k,v.column,T)){for(k=k+1;k<=_;k++)if(b(k,0,T))return;if(c.wrap!=!1){for(k=w,_=v.row;k<=_;k++)if(b(k,0,T))return}}};if(c.$isMultiLine)var x=h.length,b=function(C,T,k){var S=p?C-x+1:C;if(!(S<0||S+x>a.getLength())){var y=a.getLine(S),E=y.search(h[0]);if(!(!p&&E<T||E===-1)){for(var A=1;A<x;A++)if(y=a.getLine(S+A),y.search(h[A])==-1)return;var O=y.match(h[x-1])[0].length;if(!(p&&O>T)&&k(S,E,S+x-1,O))return!0}}};else if(p)var b=function(T,k,S){var y=a.getLine(T),E=[],A,O=0;for(h.lastIndex=0;A=h.exec(y);){var R=A[0].length;if(O=A.index,!R){if(O>=y.length)break;h.lastIndex=O+=1}if(A.index+R>k)break;E.push(A.index,R)}for(var M=E.length-1;M>=0;M-=2){var I=E[M-1],R=E[M];if(S(T,I,T,I+R))return!0}};else var b=function(T,k,S){var y=a.getLine(T),E,A;for(h.lastIndex=k;A=h.exec(y);){var O=A[0].length;if(E=A.index,S(T,E,T,E+O))return!0;if(!O&&(h.lastIndex=E+=1,E>=y.length))return!1}};return{forEach:$}}}).call(l.prototype);function f(a,c){function h(p){return/\w/.test(p)||c.regExp?"\\b":""}return h(a[0])+a+h(a[a.length-1])}r.Search=l}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,s){var i=n("../lib/keys"),o=n("../lib/useragent"),u=i.KEY_MODS;function l(a,c){this.platform=c||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(a),this.$singleCommand=!0}function f(a,c){l.call(this,a,c),this.$singleCommand=!1}f.prototype=l.prototype,function(){this.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},this.removeCommand=function(c,h){var p=c&&(typeof c=="string"?c:c.name);c=this.commands[p],h||delete this.commands[p];var m=this.commandKeyBinding;for(var g in m){var v=m[g];if(v==c)delete m[g];else if(Array.isArray(v)){var w=v.indexOf(c);w!=-1&&(v.splice(w,1),v.length==1&&(m[g]=v[0]))}}},this.bindKey=function(c,h,p){if(typeof c=="object"&&c&&(p==null&&(p=c.position),c=c[this.platform]),!!c){if(typeof h=="function")return this.addCommand({exec:h,bindKey:c,name:h.name||c});c.split("|").forEach(function(m){var g="";if(m.indexOf(" ")!=-1){var v=m.split(/\s+/);m=v.pop(),v.forEach(function($){var x=this.parseKeys($),b=u[x.hashId]+x.key;g+=(g?" ":"")+b,this._addCommandToBinding(g,"chainKeys")},this),g+=" "}var w=this.parseKeys(m),_=u[w.hashId]+w.key;this._addCommandToBinding(g+_,h,p)},this)}};function a(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}this._addCommandToBinding=function(c,h,p){var m=this.commandKeyBinding,g;if(!h)delete m[c];else if(!m[c]||this.$singleCommand)m[c]=h;else{Array.isArray(m[c])?(g=m[c].indexOf(h))!=-1&&m[c].splice(g,1):m[c]=[m[c]],typeof p!="number"&&(p=a(h));var v=m[c];for(g=0;g<v.length;g++){var w=v[g],_=a(w);if(_>p)break}v.splice(g,0,h)}},this.addCommands=function(c){c&&Object.keys(c).forEach(function(h){var p=c[h];if(!!p){if(typeof p=="string")return this.bindKey(p,h);typeof p=="function"&&(p={exec:p}),typeof p=="object"&&(p.name||(p.name=h),this.addCommand(p))}},this)},this.removeCommands=function(c){Object.keys(c).forEach(function(h){this.removeCommand(c[h])},this)},this.bindKeys=function(c){Object.keys(c).forEach(function(h){this.bindKey(h,c[h])},this)},this._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},this.parseKeys=function(c){var h=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(_){return _}),p=h.pop(),m=i[p];if(i.FUNCTION_KEYS[m])p=i.FUNCTION_KEYS[m].toLowerCase();else if(h.length){if(h.length==1&&h[0]=="shift")return{key:p.toUpperCase(),hashId:-1}}else return{key:p,hashId:-1};for(var g=0,v=h.length;v--;){var w=i.KEY_MODS[h[v]];if(w==null)return typeof console<"u"&&console.error("invalid modifier "+h[v]+" in "+c),!1;g|=w}return{key:p,hashId:g}},this.findKeyCommand=function(h,p){var m=u[h]+p;return this.commandKeyBinding[m]},this.handleKeyboard=function(c,h,p,m){if(!(m<0)){var g=u[h]+p,v=this.commandKeyBinding[g];return c.$keyChain&&(c.$keyChain+=" "+g,v=this.commandKeyBinding[c.$keyChain]||v),v&&(v=="chainKeys"||v[v.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||g,{command:"null"}):(c.$keyChain&&((!h||h==4)&&p.length==1?c.$keyChain=c.$keyChain.slice(0,-g.length-1):(h==-1||m>0)&&(c.$keyChain="")),{command:v})}},this.getStatusText=function(c,h){return h.$keyChain||""}}.call(l.prototype),r.HashHandler=l,r.MultiHashHandler=f}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,r,s){var i=n("../lib/oop"),o=n("../keyboard/hash_handler").MultiHashHandler,u=n("../lib/event_emitter").EventEmitter,l=function(f,a){o.call(this,a,f),this.byName=this.commands,this.setDefaultHandler("exec",function(c){return c.args?c.command.exec(c.editor,c.args,c.event,!1):c.command.exec(c.editor,{},c.event,!0)})};i.inherits(l,o),function(){i.implement(this,u),this.exec=function(f,a,c){if(Array.isArray(f)){for(var h=f.length;h--;)if(this.exec(f[h],a,c))return!0;return!1}if(typeof f=="string"&&(f=this.commands[f]),!f||a&&a.$readOnly&&!f.readOnly||this.$checkCommandState!=!1&&f.isAvailable&&!f.isAvailable(a))return!1;var p={editor:a,command:f,args:c};return p.returnValue=this._emit("exec",p),this._signal("afterExec",p),p.returnValue!==!1},this.toggleRecording=function(f){if(!this.$inReplay)return f&&f._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(a){this.macro.push([a.command,a.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(f){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(f);try{this.$inReplay=!0,this.macro.forEach(function(a){typeof a=="string"?this.exec(a,f):this.exec(a[0],f,a[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(f){return f.map(function(a){return typeof a[0]!="string"&&(a[0]=a[0].name),a[1]||(a=a[0]),a})}}.call(l.prototype),r.CommandManager=l}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,s){var i=n("../lib/lang"),o=n("../config"),u=n("../range").Range;function l(a,c){return{win:a,mac:c}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:l("Ctrl-,","Command-,"),exec:function(a){o.loadModule("ace/ext/settings_menu",function(c){c.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:l("Alt-E","F4"),exec:function(a){o.loadModule("./ext/error_marker",function(c){c.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:l("Alt-Shift-E","Shift-F4"),exec:function(a){o.loadModule("./ext/error_marker",function(c){c.showErrorMarker(a,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:l("Ctrl-A","Command-A"),exec:function(a){a.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:l(null,"Ctrl-L"),exec:function(a){a.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:l("Ctrl-L","Command-L"),exec:function(a,c){typeof c=="number"&&!isNaN(c)&&a.gotoLine(c),a.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:l("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(a){a.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:l("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(a){a.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:l("F2","F2"),exec:function(a){a.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:l("Alt-F2","Alt-F2"),exec:function(a){a.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:l("Alt-0","Command-Option-0"),exec:function(a){a.session.foldAll(),a.session.unfold(a.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:l("Alt-Shift-0","Command-Option-Shift-0"),exec:function(a){a.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:l("Ctrl-K","Command-G"),exec:function(a){a.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:l("Ctrl-Shift-K","Command-Shift-G"),exec:function(a){a.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:l("Alt-K","Ctrl-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:l("Alt-Shift-K","Ctrl-Shift-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:l("Ctrl-F","Command-F"),exec:function(a){o.loadModule("ace/ext/searchbox",function(c){c.Search(a)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(a){a.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:l("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(a){a.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:l("Ctrl-Home","Command-Home|Command-Up"),exec:function(a){a.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:l("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(a){a.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:l("Up","Up|Ctrl-P"),exec:function(a,c){a.navigateUp(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:l("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(a){a.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:l("Ctrl-End","Command-End|Command-Down"),exec:function(a){a.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:l("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(a){a.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:l("Down","Down|Ctrl-N"),exec:function(a,c){a.navigateDown(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:l("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(a){a.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:l("Ctrl-Left","Option-Left"),exec:function(a){a.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:l("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:l("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(a){a.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:l("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(a){a.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:l("Left","Left|Ctrl-B"),exec:function(a,c){a.navigateLeft(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:l("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(a){a.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:l("Ctrl-Right","Option-Right"),exec:function(a){a.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:l("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:l("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(a){a.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:l("Shift-Right","Shift-Right"),exec:function(a){a.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:l("Right","Right|Ctrl-F"),exec:function(a,c){a.navigateRight(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(a){a.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:l(null,"Option-PageDown"),exec:function(a){a.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:l("PageDown","PageDown|Ctrl-V"),exec:function(a){a.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(a){a.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:l(null,"Option-PageUp"),exec:function(a){a.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(a){a.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:l("Ctrl-Up",null),exec:function(a){a.renderer.scrollBy(0,-2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:l("Ctrl-Down",null),exec:function(a){a.renderer.scrollBy(0,2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:l("Ctrl-Alt-E","Command-Option-E"),exec:function(a){a.commands.toggleRecording(a)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:l("Ctrl-Shift-E","Command-Shift-E"),exec:function(a){a.commands.replay(a)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:l("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(a){a.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:l("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(a){a.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:l("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(a){a.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:l(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(a){},readOnly:!0},{name:"cut",description:"Cut",exec:function(a){var c=a.$copyWithEmptySelection&&a.selection.isEmpty(),h=c?a.selection.getLineRange():a.selection.getRange();a._emit("cut",h),h.isEmpty()||a.session.remove(h),a.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(a,c){a.$handlePaste(c)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:l("Ctrl-D","Command-D"),exec:function(a){a.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:l("Ctrl-Shift-D","Command-Shift-D"),exec:function(a){a.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:l("Ctrl-Alt-S","Command-Alt-S"),exec:function(a){a.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:l("Ctrl-/","Command-/"),exec:function(a){a.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:l("Ctrl-Shift-/","Command-Shift-/"),exec:function(a){a.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:l("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(a){a.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:l("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(a){a.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:l("Ctrl-H","Command-Option-F"),exec:function(a){o.loadModule("ace/ext/searchbox",function(c){c.Search(a,!0)})}},{name:"undo",description:"Undo",bindKey:l("Ctrl-Z","Command-Z"),exec:function(a){a.undo()}},{name:"redo",description:"Redo",bindKey:l("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(a){a.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:l("Alt-Shift-Up","Command-Option-Up"),exec:function(a){a.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:l("Alt-Up","Option-Up"),exec:function(a){a.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:l("Alt-Shift-Down","Command-Option-Down"),exec:function(a){a.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:l("Alt-Down","Option-Down"),exec:function(a){a.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:l("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(a){a.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:l("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(a){a.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:l("Shift-Delete",null),exec:function(a){if(a.selection.isEmpty())a.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:l("Alt-Backspace","Command-Backspace"),exec:function(a){a.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:l("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(a){a.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:l("Ctrl-Shift-Backspace",null),exec:function(a){var c=a.selection.getRange();c.start.column=0,a.session.remove(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:l("Ctrl-Shift-Delete",null),exec:function(a){var c=a.selection.getRange();c.end.column=Number.MAX_VALUE,a.session.remove(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:l("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(a){a.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:l("Ctrl-Delete","Alt-Delete"),exec:function(a){a.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:l("Shift-Tab","Shift-Tab"),exec:function(a){a.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:l("Tab","Tab"),exec:function(a){a.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:l("Ctrl-[","Ctrl-["),exec:function(a){a.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:l("Ctrl-]","Ctrl-]"),exec:function(a){a.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(a,c){a.insert(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(a,c){a.insert(i.stringRepeat(c.text||"",c.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:l(null,"Ctrl-O"),exec:function(a){a.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:l("Alt-Shift-X","Ctrl-T"),exec:function(a){a.transposeLetters()},multiSelectAction:function(a){a.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:l("Ctrl-U","Ctrl-U"),exec:function(a){a.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:l("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(a){a.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:l(null,null),exec:function(a){a.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:l("Ctrl-Shift-L","Command-Shift-L"),exec:function(a){var c=a.selection.getRange();c.start.column=c.end.column=0,c.end.row++,a.selection.setRange(c,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:l("Ctrl+F3","F3"),exec:function(a){a.openLink()}},{name:"joinlines",description:"Join lines",bindKey:l(null,null),exec:function(a){for(var c=a.selection.isBackwards(),h=c?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),p=c?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),m=a.session.doc.getLine(h.row).length,g=a.session.doc.getTextRange(a.selection.getRange()),v=g.replace(/\n\s*/," ").length,w=a.session.doc.getLine(h.row),_=h.row+1;_<=p.row+1;_++){var $=i.stringTrimLeft(i.stringTrimRight(a.session.doc.getLine(_)));$.length!==0&&($=" "+$),w+=$}p.row+1<a.session.doc.getLength()-1&&(w+=a.session.doc.getNewLineCharacter()),a.clearSelection(),a.session.doc.replace(new u(h.row,0,p.row+2,0),w),v>0?(a.selection.moveCursorTo(h.row,h.column),a.selection.selectTo(h.row,h.column+v)):(m=a.session.doc.getLine(h.row).length>m?m+1:m,a.selection.moveCursorTo(h.row,m))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:l(null,null),exec:function(a){var c=a.session.doc.getLength()-1,h=a.session.doc.getLine(c).length,p=a.selection.rangeList.ranges,m=[];p.length<1&&(p=[a.selection.getRange()]);for(var g=0;g<p.length;g++)g==p.length-1&&(p[g].end.row===c&&p[g].end.column===h||m.push(new u(p[g].end.row,p[g].end.column,c,h))),g===0?p[g].start.row===0&&p[g].start.column===0||m.push(new u(0,0,p[g].start.row,p[g].start.column)):m.push(new u(p[g-1].end.row,p[g-1].end.column,p[g].start.row,p[g].start.column));a.exitMultiSelectMode(),a.clearSelection();for(var g=0;g<m.length;g++)a.selection.addRange(m[g],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(a){a.selection.clearSelection(),a.navigateLineEnd(),a.insert(`
225
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(a){a.selection.clearSelection();var c=a.getCursorPosition();a.selection.moveTo(c.row-1,Number.MAX_VALUE),a.insert(`
226
+ `),c.row===0&&a.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command palette",bindKey:l("F1","F1"),exec:function(a){a.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:l(null,null),exec:function(a){a.prompt({$type:"modes"})},readOnly:!0}];for(var f=1;f<9;f++)r.commands.push({name:"foldToLevel"+f,description:"Fold To Level "+f,level:f,exec:function(a){a.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/clipboard"],function(n,r,s){var i=this&&this.__values||function(S){var y=typeof Symbol=="function"&&Symbol.iterator,E=y&&S[y],A=0;if(E)return E.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&A>=S.length&&(S=void 0),{value:S&&S[A++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")},o=n("./lib/oop"),u=n("./lib/dom"),l=n("./lib/lang"),f=n("./lib/useragent"),a=n("./keyboard/textinput").TextInput,c=n("./mouse/mouse_handler").MouseHandler,h=n("./mouse/fold_handler").FoldHandler,p=n("./keyboard/keybinding").KeyBinding,m=n("./edit_session").EditSession,g=n("./search").Search,v=n("./range").Range,w=n("./lib/event_emitter").EventEmitter,_=n("./commands/command_manager").CommandManager,$=n("./commands/default_commands").commands,x=n("./config"),b=n("./token_iterator").TokenIterator,C=n("./clipboard"),T=function(S,y,E){this.$toDestroy=[];var A=S.getContainerElement();this.container=A,this.renderer=S,this.id="editor"+ ++T.$uid,this.commands=new _(f.isMac?"mac":"win",$),typeof document=="object"&&(this.textInput=new a(S.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new h(this)),this.keyBinding=new p(this),this.$search=new g().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=l.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(O,R){R._$emitInputEvent.schedule(31)}),this.setSession(y||E&&E.session||new m("")),x.resetOptions(this),E&&this.setOptions(E),x._signal("editor",this)};T.$uid=0,function(){o.implement(this,w),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=l.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(S){if(this.curOp){if(!S||this.curOp.command)return;this.prevOp=this.curOp}S||(this.previousCommand=null,S={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:S.command||{},args:S.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(S){if(this.curOp&&this.session){if(S&&S.returnValue===!1||!this.session)return this.curOp=null;if(S==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var y=this.curOp.command,E=y&&y.scrollIntoView;if(E){switch(E){case"center-animate":E="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var A=this.selection.getRange(),O=this.renderer.layerConfig;(A.start.row>=O.lastRow||A.end.row<=O.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}E=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var R=this.selection.toJSON();this.curOp.selectionAfter=R,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(R),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(S){if(!!this.$mergeUndoDeltas){var y=this.prevOp,E=this.$mergeableCommands,A=y.command&&S.command.name==y.command.name;if(S.command.name=="insertstring"){var O=S.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),A=A&&this.mergeNextCommand&&(!/\s/.test(O)||/\s/.test(y.args)),this.mergeNextCommand=!0}else A=A&&E.indexOf(S.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(A=!1),A?this.session.mergeUndoDeltas=!0:E.indexOf(S.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(S,y){if(S&&typeof S=="string"&&S!="ace"){this.$keybindingId=S;var E=this;x.loadModule(["keybinding",S],function(A){E.$keybindingId==S&&E.keyBinding.setKeyboardHandler(A&&A.handler),y&&y()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(S),y&&y()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(S){if(this.session!=S){this.curOp&&this.endOperation(),this.curOp={};var y=this.session;if(y){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var E=this.session.getSelection();E.off("changeCursor",this.$onCursorChange),E.off("changeSelection",this.$onSelectionChange)}this.session=S,S?(this.$onDocumentChange=this.onDocumentChange.bind(this),S.on("change",this.$onDocumentChange),this.renderer.setSession(S),this.$onChangeMode=this.onChangeMode.bind(this),S.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),S.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),S.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),S.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),S.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),S.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=S.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(S)),this._signal("changeSession",{session:S,oldSession:y}),this.curOp=null,y&&y._signal("changeEditor",{oldEditor:this}),S&&S._signal("changeEditor",{editor:this}),S&&!S.destroyed&&S.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(S,y){return this.session.doc.setValue(S),y?y==1?this.navigateFileEnd():y==-1&&this.navigateFileStart():this.selectAll(),S},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(S){this.renderer.onResize(S)},this.setTheme=function(S,y){this.renderer.setTheme(S,y)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(S){this.renderer.setStyle(S)},this.unsetStyle=function(S){this.renderer.unsetStyle(S)},this.getFontSize=function(){return this.getOption("fontSize")||u.computedStyle(this.container).fontSize},this.setFontSize=function(S){this.setOption("fontSize",S)},this.$highlightBrackets=function(){if(!this.$highlightPending){var S=this;this.$highlightPending=!0,setTimeout(function(){S.$highlightPending=!1;var y=S.session;if(!(!y||y.destroyed)){y.$bracketHighlight&&(y.$bracketHighlight.markerIds.forEach(function(F){y.removeMarker(F)}),y.$bracketHighlight=null);var E=S.getCursorPosition(),A=S.getKeyboardHandler(),O=A&&A.$getDirectionForHighlight&&A.$getDirectionForHighlight(S),R=y.getMatchingBracketRanges(E,O);if(!R){var M=new b(y,E.row,E.column),I=M.getCurrentToken();if(I&&/\b(?:tag-open|tag-name)/.test(I.type)){var B=y.getMatchingTags(E);B&&(R=[B.openTagName,B.closeTagName])}}if(!R&&y.$mode.getMatching&&(R=y.$mode.getMatching(S.session)),!R){S.getHighlightIndentGuides()&&S.renderer.$textLayer.$highlightIndentGuide();return}var W="ace_bracket";Array.isArray(R)?R.length==1&&(W="ace_error_bracket"):R=[R],R.length==2&&(v.comparePoints(R[0].end,R[1].start)==0?R=[v.fromPoints(R[0].start,R[1].end)]:v.comparePoints(R[0].start,R[1].end)==0&&(R=[v.fromPoints(R[1].start,R[0].end)])),y.$bracketHighlight={ranges:R,markerIds:R.map(function(F){return y.addMarker(F,W,"text")})},S.getHighlightIndentGuides()&&S.renderer.$textLayer.$highlightIndentGuide()}},50)}},this.focus=function(){this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(S){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",S))},this.onBlur=function(S){!this.$isFocused||(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",S))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(S){var y=this.session.$useWrapMode,E=S.start.row==S.end.row?S.end.row:1/0;this.renderer.updateLines(S.start.row,E,y),this._signal("change",S),this.$cursorChange()},this.onTokenizerUpdate=function(S){var y=S.data;this.renderer.updateLines(y.first,y.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var S=this.getSession(),y;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(y=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(y=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(y=!1)),S.$highlightLineMarker&&!y)S.removeMarker(S.$highlightLineMarker.id),S.$highlightLineMarker=null;else if(!S.$highlightLineMarker&&y){var E=new v(y.row,y.column,y.row,1/0);E.id=S.addMarker(E,"ace_active-line","screenLine"),S.$highlightLineMarker=E}else y&&(S.$highlightLineMarker.start.row=y.row,S.$highlightLineMarker.end.row=y.row,S.$highlightLineMarker.start.column=y.column,S._signal("changeBackMarker"))},this.onSelectionChange=function(S){var y=this.session;if(y.$selectionMarker&&y.removeMarker(y.$selectionMarker),y.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var E=this.selection.getRange(),A=this.getSelectionStyle();y.$selectionMarker=y.addMarker(E,"ace_selection",A)}var O=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(O),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var S=this.session,y=this.getSelectionRange();if(!(y.isEmpty()||y.isMultiLine())){var E=y.start.column,A=y.end.column,O=S.getLine(y.start.row),R=O.substring(E,A);if(!(R.length>5e3||!/[\w\d]/.test(R))){var M=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:R}),I=O.substring(E-1,A+1);if(!!M.test(I))return M}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(S){this.renderer.updateText(),this._emit("changeMode",S)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var S=this.getSelectedText(),y=this.session.doc.getNewLineCharacter(),E=!1;if(!S&&this.$copyWithEmptySelection){E=!0;for(var A=this.selection.getAllRanges(),O=0;O<A.length;O++){var R=A[O];O&&A[O-1].start.row==R.start.row||(S+=this.session.getLine(R.start.row)+y)}}var M={text:S};return this._signal("copy",M),C.lineMode=E?M.text:!1,M.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(S,y){var E={text:S,event:y};this.commands.exec("paste",this,E)},this.$handlePaste=function(S){typeof S=="string"&&(S={text:S}),this._signal("paste",S);var y=S.text,E=y===C.lineMode,A=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)E?A.insert({row:this.selection.lead.row,column:0},y):this.insert(y);else if(E)this.selection.rangeList.ranges.forEach(function(W){A.insert({row:W.start.row,column:0},y)});else{var O=y.split(/\r\n|\r|\n/),R=this.selection.rangeList.ranges,M=O.length==2&&(!O[0]||!O[1]);if(O.length!=R.length||M)return this.commands.exec("insertstring",this,y);for(var I=R.length;I--;){var B=R[I];B.isEmpty()||A.remove(B),A.insert(B.start,O[I])}}},this.execCommand=function(S,y){return this.commands.exec(S,this,y)},this.insert=function(S,y){var E=this.session,A=E.getMode(),O=this.getCursorPosition();if(this.getBehavioursEnabled()&&!y){var R=A.transformAction(E.getState(O.row),"insertion",this,E,S);R&&(S!==R.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),S=R.text)}if(S==" "&&(S=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&S.indexOf(`
227
+ `)==-1){var M=new v.fromPoints(O,O);M.end.column+=S.length,this.session.remove(M)}}else{var M=this.getSelectionRange();O=this.session.remove(M),this.clearSelection()}if(S==`
228
+ `||S==`\r
229
+ `){var F=E.getLine(O.row);if(O.column>F.search(/\S|$/)){var I=F.substr(O.column).search(/\S|$/);E.doc.removeInLine(O.row,O.column,O.column+I)}}this.clearSelection();var B=O.column,W=E.getState(O.row),F=E.getLine(O.row),j=A.checkOutdent(W,F,S);if(E.insert(O,S),R&&R.selection&&(R.selection.length==2?this.selection.setSelectionRange(new v(O.row,B+R.selection[0],O.row,B+R.selection[1])):this.selection.setSelectionRange(new v(O.row+R.selection[0],R.selection[1],O.row+R.selection[2],R.selection[3]))),this.$enableAutoIndent){if(E.getDocument().isNewLine(S)){var J=A.getNextLineIndent(W,F.slice(0,O.column),E.getTabString());E.insert({row:O.row+1,column:0},J)}j&&A.autoOutdent(W,E,O.row)}},this.autoIndent=function(){var S=this.session,y=S.getMode(),E,A;if(this.selection.isEmpty())E=0,A=S.doc.getLength()-1;else{var O=this.getSelectionRange();E=O.start.row,A=O.end.row}for(var R="",M="",I="",B,W,F,j=S.getTabString(),J=E;J<=A;J++)J>0&&(R=S.getState(J-1),M=S.getLine(J-1),I=y.getNextLineIndent(R,M,j)),B=S.getLine(J),W=y.$getIndent(B),I!==W&&(W.length>0&&(F=new v(J,0,J,W.length),S.remove(F)),I.length>0&&S.insert({row:J,column:0},I)),y.autoOutdent(R,S,J)},this.onTextInput=function(S,y){if(!y)return this.keyBinding.onTextInput(S);this.startOperation({command:{name:"insertstring"}});var E=this.applyComposition.bind(this,S,y);this.selection.rangeCount?this.forEachSelection(E):E(),this.endOperation()},this.applyComposition=function(S,y){if(y.extendLeft||y.extendRight){var E=this.selection.getRange();E.start.column-=y.extendLeft,E.end.column+=y.extendRight,E.start.column<0&&(E.start.row--,E.start.column+=this.session.getLine(E.start.row).length+1),this.selection.setRange(E),!S&&!E.isEmpty()&&this.remove()}if((S||!this.selection.isEmpty())&&this.insert(S,!0),y.restoreStart||y.restoreEnd){var E=this.selection.getRange();E.start.column-=y.restoreStart,E.end.column-=y.restoreEnd,this.selection.setRange(E)}},this.onCommandKey=function(S,y,E){return this.keyBinding.onCommandKey(S,y,E)},this.setOverwrite=function(S){this.session.setOverwrite(S)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(S){this.setOption("scrollSpeed",S)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(S){this.setOption("dragDelay",S)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(S){this.setOption("selectionStyle",S)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(S){this.setOption("highlightActiveLine",S)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(S){this.setOption("highlightGutterLine",S)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(S){this.setOption("highlightSelectedWord",S)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(S){this.renderer.setAnimatedScroll(S)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(S){this.renderer.setShowInvisibles(S)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(S){this.renderer.setDisplayIndentGuides(S)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setHighlightIndentGuides=function(S){this.renderer.setHighlightIndentGuides(S)},this.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},this.setShowPrintMargin=function(S){this.renderer.setShowPrintMargin(S)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(S){this.renderer.setPrintMarginColumn(S)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(S){this.setOption("readOnly",S)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(S){this.setOption("behavioursEnabled",S)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(S){this.setOption("wrapBehavioursEnabled",S)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(S){this.setOption("showFoldWidgets",S)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(S){this.setOption("fadeFoldWidgets",S)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(S){this.selection.isEmpty()&&(S=="left"?this.selection.selectLeft():this.selection.selectRight());var y=this.getSelectionRange();if(this.getBehavioursEnabled()){var E=this.session,A=E.getState(y.start.row),O=E.getMode().transformAction(A,"deletion",this,E,y);if(y.end.column===0){var R=E.getTextRange(y);if(R[R.length-1]==`
230
+ `){var M=E.getLine(y.end.row);/^\s+$/.test(M)&&(y.end.column=M.length)}}O&&(y=O)}this.session.remove(y),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var S=this.getSelectionRange();S.start.column==S.end.column&&S.start.row==S.end.row&&(S.end.column=0,S.end.row++),this.session.remove(S),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var S=this.getCursorPosition();this.insert(`
231
+ `),this.moveCursorToPosition(S)},this.transposeLetters=function(){if(!!this.selection.isEmpty()){var S=this.getCursorPosition(),y=S.column;if(y!==0){var E=this.session.getLine(S.row),A,O;y<E.length?(A=E.charAt(y)+E.charAt(y-1),O=new v(S.row,y-1,S.row,y+1)):(A=E.charAt(y-1)+E.charAt(y-2),O=new v(S.row,y-2,S.row,y)),this.session.replace(O,A),this.session.selection.moveToPosition(O.end)}}},this.toLowerCase=function(){var S=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var y=this.getSelectionRange(),E=this.session.getTextRange(y);this.session.replace(y,E.toLowerCase()),this.selection.setSelectionRange(S)},this.toUpperCase=function(){var S=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var y=this.getSelectionRange(),E=this.session.getTextRange(y);this.session.replace(y,E.toUpperCase()),this.selection.setSelectionRange(S)},this.indent=function(){var S=this.session,y=this.getSelectionRange();if(y.start.row<y.end.row){var E=this.$getSelectedRows();S.indentRows(E.first,E.last," ");return}else if(y.start.column<y.end.column){var A=S.getTextRange(y);if(!/^\s+$/.test(A)){var E=this.$getSelectedRows();S.indentRows(E.first,E.last," ");return}}var O=S.getLine(y.start.row),R=y.start,M=S.getTabSize(),I=S.documentToScreenColumn(R.row,R.column);if(this.session.getUseSoftTabs())var B=M-I%M,W=l.stringRepeat(" ",B);else{for(var B=I%M;O[y.start.column-1]==" "&&B;)y.start.column--,B--;this.selection.setSelectionRange(y),W=" "}return this.insert(W)},this.blockIndent=function(){var S=this.$getSelectedRows();this.session.indentRows(S.first,S.last," ")},this.blockOutdent=function(){var S=this.session.getSelection();this.session.outdentRows(S.getRange())},this.sortLines=function(){for(var S=this.$getSelectedRows(),y=this.session,E=[],A=S.first;A<=S.last;A++)E.push(y.getLine(A));E.sort(function(M,I){return M.toLowerCase()<I.toLowerCase()?-1:M.toLowerCase()>I.toLowerCase()?1:0});for(var O=new v(0,0,0,0),A=S.first;A<=S.last;A++){var R=y.getLine(A);O.start.row=A,O.end.row=A,O.end.column=R.length,y.replace(O,E[A-S.first])}},this.toggleCommentLines=function(){var S=this.session.getState(this.getCursorPosition().row),y=this.$getSelectedRows();this.session.getMode().toggleCommentLines(S,this.session,y.first,y.last)},this.toggleBlockComment=function(){var S=this.getCursorPosition(),y=this.session.getState(S.row),E=this.getSelectionRange();this.session.getMode().toggleBlockComment(y,this.session,E,S)},this.getNumberAt=function(S,y){var E=/[\-]?[0-9]+(?:\.[0-9]+)?/g;E.lastIndex=0;for(var A=this.session.getLine(S);E.lastIndex<y;){var O=E.exec(A);if(O.index<=y&&O.index+O[0].length>=y){var R={value:O[0],start:O.index,end:O.index+O[0].length};return R}}return null},this.modifyNumber=function(S){var y=this.selection.getCursor().row,E=this.selection.getCursor().column,A=new v(y,E-1,y,E),O=this.session.getTextRange(A);if(!isNaN(parseFloat(O))&&isFinite(O)){var R=this.getNumberAt(y,E);if(R){var M=R.value.indexOf(".")>=0?R.start+R.value.indexOf(".")+1:R.end,I=R.start+R.value.length-M,B=parseFloat(R.value);B*=Math.pow(10,I),M!==R.end&&E<M?S*=Math.pow(10,R.end-E-1):S*=Math.pow(10,R.end-E),B+=S,B/=Math.pow(10,I);var W=B.toFixed(I),F=new v(y,R.start,y,R.end);this.session.replace(F,W),this.moveCursorTo(y,Math.max(R.start+1,E+W.length-R.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var S=this.selection.getCursor().row,y=this.selection.getCursor().column;this.selection.selectWord();var E=this.getSelectedText(),A=this.selection.getWordRange().start.column,O=E.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),R=y-A-1;R<0&&(R=0);var M=0,I=0,B=this;E.match(/[A-Za-z0-9_]+/)&&O.forEach(function(Z,te){I=M+Z.length,R>=M&&R<=I&&(E=Z,B.selection.clearSelection(),B.moveCursorTo(S,M+A),B.selection.selectTo(S,I+A)),M=I});for(var W=this.$toggleWordPairs,F,j=0;j<W.length;j++)for(var J=W[j],Y=0;Y<=1;Y++){var U=+!Y,G=E.match(new RegExp("^\\s?_?("+l.escapeRegExp(J[Y])+")\\s?$","i"));if(G){var X=E.match(new RegExp("([_]|^|\\s)("+l.escapeRegExp(G[1])+")($|\\s)","g"));X&&(F=E.replace(new RegExp(l.escapeRegExp(J[Y]),"i"),function(Z){var te=J[U];return Z.toUpperCase()==Z?te=te.toUpperCase():Z.charAt(0).toUpperCase()==Z.charAt(0)&&(te=te.substr(0,0)+J[U].charAt(0).toUpperCase()+te.substr(1)),te}),this.insert(F),F="")}}},this.findLinkAt=function(S,y){var E,A,O=this.session.getLine(S),R=O.split(/((?:https?|ftp):\/\/[\S]+)/),M=y;M<0&&(M=0);var I=0,B=0,W;try{for(var F=i(R),j=F.next();!j.done;j=F.next()){var J=j.value;if(B=I+J.length,M>=I&&M<=B&&J.match(/((?:https?|ftp):\/\/[\S]+)/)){W=J.replace(/[\s:.,'";}\]]+$/,"");break}I=B}}catch(Y){E={error:Y}}finally{try{j&&!j.done&&(A=F.return)&&A.call(F)}finally{if(E)throw E.error}}return W},this.openLink=function(){var S=this.selection.getCursor(),y=this.findLinkAt(S.row,S.column);return y&&window.open(y,"_blank"),y!=null},this.removeLines=function(){var S=this.$getSelectedRows();this.session.removeFullLines(S.first,S.last),this.clearSelection()},this.duplicateSelection=function(){var S=this.selection,y=this.session,E=S.getRange(),A=S.isBackwards();if(E.isEmpty()){var O=E.start.row;y.duplicateLines(O,O)}else{var R=A?E.start:E.end,M=y.insert(R,y.getTextRange(E),!1);E.start=R,E.end=M,S.setSelectionRange(E,A)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(S,y,E){return this.session.moveText(S,y,E)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(S,y){var E,A,O=this.selection;if(!O.inMultiSelectMode||this.inVirtualSelectionMode){var R=O.toOrientedRange();E=this.$getSelectedRows(R),A=this.session.$moveLines(E.first,E.last,y?0:S),y&&S==-1&&(A=0),R.moveBy(A,0),O.fromOrientedRange(R)}else{var M=O.rangeList.ranges;O.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var I=0,B=0,W=M.length,F=0;F<W;F++){var j=F;M[F].moveBy(I,0),E=this.$getSelectedRows(M[F]);for(var J=E.first,Y=E.last;++F<W;){B&&M[F].moveBy(B,0);var U=this.$getSelectedRows(M[F]);if(y&&U.first!=Y)break;if(!y&&U.first>Y+1)break;Y=U.last}for(F--,I=this.session.$moveLines(J,Y,y?0:S),y&&S==-1&&(j=F+1);j<=F;)M[j].moveBy(I,0),j++;y||(I=0),B+=I}O.fromOrientedRange(O.ranges[0]),O.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(S){return S=(S||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(S.start.row),last:this.session.getRowFoldEnd(S.end.row)}},this.onCompositionStart=function(S){this.renderer.showComposition(S)},this.onCompositionUpdate=function(S){this.renderer.setCompositionText(S)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(S){return S>=this.getFirstVisibleRow()&&S<=this.getLastVisibleRow()},this.isRowFullyVisible=function(S){return S>=this.renderer.getFirstFullyVisibleRow()&&S<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(S,y){var E=this.renderer,A=this.renderer.layerConfig,O=S*Math.floor(A.height/A.lineHeight);y===!0?this.selection.$moveSelection(function(){this.moveCursorBy(O,0)}):y===!1&&(this.selection.moveCursorBy(O,0),this.selection.clearSelection());var R=E.scrollTop;E.scrollBy(0,O*A.lineHeight),y!=null&&E.scrollCursorIntoView(null,.5),E.animateScrolling(R)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(S){this.renderer.scrollToRow(S)},this.scrollToLine=function(S,y,E,A){this.renderer.scrollToLine(S,y,E,A)},this.centerSelection=function(){var S=this.getSelectionRange(),y={row:Math.floor(S.start.row+(S.end.row-S.start.row)/2),column:Math.floor(S.start.column+(S.end.column-S.start.column)/2)};this.renderer.alignCursor(y,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(S,y){this.selection.moveCursorTo(S,y)},this.moveCursorToPosition=function(S){this.selection.moveCursorToPosition(S)},this.jumpToMatching=function(S,y){var E=this.getCursorPosition(),A=new b(this.session,E.row,E.column),O=A.getCurrentToken(),R=0;O&&O.type.indexOf("tag-name")!==-1&&(O=A.stepBackward());var M=O||A.stepForward();if(!!M){var I,B=!1,W={},F=E.column-M.start,j,J={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(M.value.match(/[{}()\[\]]/g)){for(;F<M.value.length&&!B;F++)if(!!J[M.value[F]])switch(j=J[M.value[F]]+"."+M.type.replace("rparen","lparen"),isNaN(W[j])&&(W[j]=0),M.value[F]){case"(":case"[":case"{":W[j]++;break;case")":case"]":case"}":W[j]--,W[j]===-1&&(I="bracket",B=!0);break}}else M.type.indexOf("tag-name")!==-1&&(isNaN(W[M.value])&&(W[M.value]=0),O.value==="<"&&R>1?W[M.value]++:O.value==="</"&&W[M.value]--,W[M.value]===-1&&(I="tag",B=!0));B||(O=M,R++,M=A.stepForward(),F=0)}while(M&&!B);if(!!I){var Y,U;if(I==="bracket")Y=this.session.getBracketRange(E),Y||(Y=new v(A.getCurrentTokenRow(),A.getCurrentTokenColumn()+F-1,A.getCurrentTokenRow(),A.getCurrentTokenColumn()+F-1),U=Y.start,(y||U.row===E.row&&Math.abs(U.column-E.column)<2)&&(Y=this.session.getBracketRange(U)));else if(I==="tag"){if(!M||M.type.indexOf("tag-name")===-1)return;if(Y=new v(A.getCurrentTokenRow(),A.getCurrentTokenColumn()-2,A.getCurrentTokenRow(),A.getCurrentTokenColumn()-2),Y.compare(E.row,E.column)===0){var G=this.session.getMatchingTags(E);G&&(G.openTag.contains(E.row,E.column)?(Y=G.closeTag,U=Y.start):(Y=G.openTag,G.closeTag.start.row===E.row&&G.closeTag.start.column===E.column?U=Y.end:U=Y.start))}U=U||Y.start}U=Y&&Y.cursor||U,U&&(S?Y&&y?this.selection.setRange(Y):Y&&Y.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(U.row,U.column):this.selection.moveTo(U.row,U.column))}}},this.gotoLine=function(S,y,E){this.selection.clearSelection(),this.session.unfold({row:S-1,column:y||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(S-1,y||0),this.isRowFullyVisible(S-1)||this.scrollToLine(S-1,!0,E)},this.navigateTo=function(S,y){this.selection.moveTo(S,y)},this.navigateUp=function(S){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var y=this.selection.anchor.getPosition();return this.moveCursorToPosition(y)}this.selection.clearSelection(),this.selection.moveCursorBy(-S||-1,0)},this.navigateDown=function(S){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var y=this.selection.anchor.getPosition();return this.moveCursorToPosition(y)}this.selection.clearSelection(),this.selection.moveCursorBy(S||1,0)},this.navigateLeft=function(S){if(this.selection.isEmpty())for(S=S||1;S--;)this.selection.moveCursorLeft();else{var y=this.getSelectionRange().start;this.moveCursorToPosition(y)}this.clearSelection()},this.navigateRight=function(S){if(this.selection.isEmpty())for(S=S||1;S--;)this.selection.moveCursorRight();else{var y=this.getSelectionRange().end;this.moveCursorToPosition(y)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(S,y){y&&this.$search.set(y);var E=this.$search.find(this.session),A=0;return E&&(this.$tryReplace(E,S)&&(A=1),this.selection.setSelectionRange(E),this.renderer.scrollSelectionIntoView(E.start,E.end)),A},this.replaceAll=function(S,y){y&&this.$search.set(y);var E=this.$search.findAll(this.session),A=0;if(!E.length)return A;var O=this.getSelectionRange();this.selection.moveTo(0,0);for(var R=E.length-1;R>=0;--R)this.$tryReplace(E[R],S)&&A++;return this.selection.setSelectionRange(O),A},this.$tryReplace=function(S,y){var E=this.session.getTextRange(S);return y=this.$search.replace(E,y),y!==null?(S.end=this.session.replace(S,y),S):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(S,y,E){y||(y={}),typeof S=="string"||S instanceof RegExp?y.needle=S:typeof S=="object"&&o.mixin(y,S);var A=this.selection.getRange();y.needle==null&&(S=this.session.getTextRange(A)||this.$search.$options.needle,S||(A=this.session.getWordRange(A.start.row,A.start.column),S=this.session.getTextRange(A)),this.$search.set({needle:S})),this.$search.set(y),y.start||this.$search.set({start:A});var O=this.$search.find(this.session);if(y.preventScroll)return O;if(O)return this.revealRange(O,E),O;y.backwards?A.start=A.end:A.end=A.start,this.selection.setRange(A)},this.findNext=function(S,y){this.find({skipCurrent:!0,backwards:!1},S,y)},this.findPrevious=function(S,y){this.find(S,{skipCurrent:!0,backwards:!0},y)},this.revealRange=function(S,y){this.session.unfold(S),this.selection.setSelectionRange(S);var E=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(S.start,S.end,.5),y!==!1&&this.renderer.animateScrolling(E)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(S){S.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(S){if(!!S){var y,E=this,A=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var O=this.$scrollAnchor;O.style.cssText="position:absolute",this.container.insertBefore(O,this.container.firstChild);var R=this.on("changeSelection",function(){A=!0}),M=this.renderer.on("beforeRender",function(){A&&(y=E.renderer.container.getBoundingClientRect())}),I=this.renderer.on("afterRender",function(){if(A&&y&&(E.isFocused()||E.searchBox&&E.searchBox.isFocused())){var B=E.renderer,W=B.$cursorLayer.$pixelPos,F=B.layerConfig,j=W.top-F.offset;W.top>=0&&j+y.top<0?A=!0:W.top<F.height&&W.top+y.top+F.lineHeight>window.innerHeight?A=!1:A=null,A!=null&&(O.style.top=j+"px",O.style.left=W.left+"px",O.style.height=F.lineHeight+"px",O.scrollIntoView(A)),A=y=null}});this.setAutoScrollEditorIntoView=function(B){B||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",R),this.renderer.off("afterRender",I),this.renderer.off("beforeRender",M))}}},this.$resetCursorStyle=function(){var S=this.$cursorStyle||"ace",y=this.renderer.$cursorLayer;!y||(y.setSmoothBlinking(/smooth/.test(S)),y.isBlinking=!this.$readOnly&&S!="wide",u.setCssClass(y.element,"ace_slim-cursors",/slim/.test(S)))},this.prompt=function(S,y,E){var A=this;x.loadModule("./ext/prompt",function(O){O.prompt(A,S,y,E)})}}.call(T.prototype),x.defineOptions(T.prototype,"editor",{selectionStyle:{set:function(S){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:S})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(S){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(S){this.textInput.setReadOnly(S),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(S){this.textInput.setCopyWithEmptySelection(S)},initialValue:!1},cursorStyle:{set:function(S){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(S){this.setAutoScrollEditorIntoView(S)}},keyboardHandler:{set:function(S){this.setKeyboardHandler(S)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(S){this.session.setValue(S)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(S){this.setSession(S)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(S){this.renderer.$gutterLayer.setShowLineNumbers(S),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),S&&this.$relativeLineNumbers?k.attach(this):k.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(S){this.$showLineNumbers&&S?k.attach(this):k.detach(this)}},placeholder:{set:function(S){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var y=this.session&&(this.renderer.$composition||this.getValue());if(y&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),u.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!y&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),u.addCssClass(this.container,"ace_hasPlaceholder");var E=u.createElement("div");E.className="ace_placeholder",E.textContent=this.$placeholder||"",this.renderer.placeholderNode=E,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!y&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var k={getText:function(S,y){return(Math.abs(S.selection.lead.row-y)||y+1+(y<9?"\xB7":""))+""},getWidth:function(S,y,E){return Math.max(y.toString().length,(E.lastRow+1).toString().length,2)*E.characterWidth},update:function(S,y){y.renderer.$loop.schedule(y.renderer.CHANGE_GUTTER)},attach:function(S){S.renderer.$gutterLayer.$renderer=this,S.on("changeSelection",this.update),this.update(null,S)},detach:function(S){S.renderer.$gutterLayer.$renderer==this&&(S.renderer.$gutterLayer.$renderer=null),S.off("changeSelection",this.update),this.update(null,S)}};r.Editor=T}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,s){var i=function(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()};(function(){this.addSession=function(b){this.$session=b},this.add=function(b,C,T){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),C===!1||!this.lastDeltas){this.lastDeltas=[];var k=this.$undoStack.length;k>this.$undoDepth-1&&this.$undoStack.splice(0,k-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},this.addSelection=function(b,C){this.selections.push({value:b,rev:C||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(b,C){C==null&&(C=this.$rev+1);for(var T=this.$undoStack,k=T.length;k--;){var S=T[k][0];if(S.id<=b)break;S.id<C&&(S.ignore=!0)}this.lastDeltas=null},this.getSelection=function(b,C){for(var T=this.selections,k=T.length;k--;){var S=T[k];if(S.rev<b)return C&&(S=T[k+1]),S}},this.getRevision=function(){return this.$rev},this.getDeltas=function(b,C){C==null&&(C=this.$rev+1);for(var T=this.$undoStack,k=null,S=0,y=T.length;y--;){var E=T[y][0];if(E.id<C&&!k&&(k=y+1),E.id<=b){S=y+1;break}}return T.slice(S,k)},this.getChangedRanges=function(b,C){C==null&&(C=this.$rev+1)},this.getChangedLines=function(b,C){C==null&&(C=this.$rev+1)},this.undo=function(b,C){this.lastDeltas=null;var T=this.$undoStack;if(!!o(T,T.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var k=T.pop(),S=null;return k&&(S=b.undoChanges(k,C),this.$redoStack.push(k),this.$syncRev()),this.$fromUndo=!1,S}},this.redo=function(b,C){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var T=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);x(this.$redoStack,T),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(y){y[0].id=++this.$maxRev},this)}var k=this.$redoStack.pop(),S=null;return k&&(S=b.redoChanges(k,C),this.$undoStack.push(k),this.$syncRev()),this.$fromUndo=!1,S},this.$syncRev=function(){var b=this.$undoStack,C=b[b.length-1],T=C&&C[0].id||0;this.$redoStackBaseRev=T,this.$rev=T},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return this.$undoStack.length>0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(b){return b?c(b):c(this.$undoStack)+`
232
+ ---
233
+ `+c(this.$redoStack)}}).call(i.prototype);function o(b,C){for(var T=C;T--;){var k=b[T];if(k&&!k[0].ignore){for(;T<C-1;){var S=m(b[T],b[T+1]);b[T]=S[0],b[T+1]=S[1],T++}return!0}}}var u=n("./range").Range,l=u.comparePoints;u.comparePoints;function f(b){return{row:b.row,column:b.column}}function a(b){return{start:f(b.start),end:f(b.end),action:b.action,lines:b.lines.slice()}}function c(b){if(b=b||this,Array.isArray(b))return b.map(c).join(`
234
+ `);var C="";return b.action?(C=b.action=="insert"?"+":"-",C+="["+b.lines+"]"):b.value&&(Array.isArray(b.value)?C=b.value.map(h).join(`
235
+ `):C=h(b.value)),b.start&&(C+=h(b)),(b.id||b.rev)&&(C+=" ("+(b.id||b.rev)+")"),C}function h(b){return b.start.row+":"+b.start.column+"=>"+b.end.row+":"+b.end.column}function p(b,C){var T=b.action=="insert",k=C.action=="insert";if(T&&k)if(l(C.start,b.end)>=0)v(C,b,-1);else if(l(C.start,b.start)<=0)v(b,C,1);else return null;else if(T&&!k)if(l(C.start,b.end)>=0)v(C,b,-1);else if(l(C.end,b.start)<=0)v(b,C,-1);else return null;else if(!T&&k)if(l(C.start,b.start)>=0)v(C,b,1);else if(l(C.start,b.start)<=0)v(b,C,1);else return null;else if(!T&&!k)if(l(C.start,b.start)>=0)v(C,b,1);else if(l(C.end,b.start)<=0)v(b,C,-1);else return null;return[C,b]}function m(b,C){for(var T=b.length;T--;)for(var k=0;k<C.length;k++)if(!p(b[T],C[k])){for(;T<b.length;){for(;k--;)p(C[k],b[T]);k=C.length,T++}return[b,C]}return b.selectionBefore=C.selectionBefore=b.selectionAfter=C.selectionAfter=null,[C,b]}function g(b,C){var T=b.action=="insert",k=C.action=="insert";if(T&&k)l(b.start,C.start)<0?v(C,b,1):v(b,C,1);else if(T&&!k)l(b.start,C.end)>=0?v(b,C,-1):(l(b.start,C.start)<=0||v(b,u.fromPoints(C.start,b.start),-1),v(C,b,1));else if(!T&&k)l(C.start,b.end)>=0?v(C,b,-1):(l(C.start,b.start)<=0||v(C,u.fromPoints(b.start,C.start),-1),v(b,C,1));else if(!T&&!k)if(l(C.start,b.end)>=0)v(C,b,-1);else if(l(C.end,b.start)<=0)v(b,C,-1);else{var S,y;return l(b.start,C.start)<0&&(S=b,b=_(b,C.start)),l(b.end,C.end)>0&&(y=_(b,C.end)),w(C.end,b.start,b.end,-1),y&&!S&&(b.lines=y.lines,b.start=y.start,b.end=y.end,y=b),[C,S,y].filter(Boolean)}return[C,b]}function v(b,C,T){w(b.start,C.start,C.end,T),w(b.end,C.start,C.end,T)}function w(b,C,T,k){b.row==(k==1?C:T).row&&(b.column+=k*(T.column-C.column)),b.row+=k*(T.row-C.row)}function _(b,C){var T=b.lines,k=b.end;b.end=f(C);var S=b.end.row-b.start.row,y=T.splice(S,T.length),E=S?C.column:C.column-b.start.column;T.push(y[0].substring(0,E)),y[0]=y[0].substr(E);var A={start:f(C),end:k,lines:y,action:b.action};return A}function $(b,C){C=a(C);for(var T=b.length;T--;){for(var k=b[T],S=0;S<k.length;S++){var y=k[S],E=g(y,C);C=E[0],E.length!=2&&(E[2]?(k.splice(S+1,1,E[1],E[2]),S++):E[1]||(k.splice(S,1),S--))}k.length||b.splice(T,1)}return b}function x(b,C){for(var T=0;T<C.length;T++)for(var k=C[T],S=0;S<k.length;S++)$(b,k[S])}r.UndoManager=i}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,s){var i=n("../lib/dom"),o=function(u,l){this.element=u,this.canvasHeight=l||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(u){i.translate(this.element,0,-(u.firstRowScreen*u.lineHeight%this.canvasHeight)-u.offset*this.$offsetCoefficient)},this.pageChanged=function(u,l){return Math.floor(u.firstRowScreen*u.lineHeight/this.canvasHeight)!==Math.floor(l.firstRowScreen*l.lineHeight/this.canvasHeight)},this.computeLineTop=function(u,l,f){var a=l.firstRowScreen*l.lineHeight,c=Math.floor(a/this.canvasHeight),h=f.documentToScreenRow(u,0)*l.lineHeight;return h-c*this.canvasHeight},this.computeLineHeight=function(u,l,f){return l.lineHeight*f.getRowLineCount(u)},this.getLength=function(){return this.cells.length},this.get=function(u){return this.cells[u]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(u){if(Array.isArray(u)){this.cells.push.apply(this.cells,u);for(var l=i.createFragment(this.element),f=0;f<u.length;f++)l.appendChild(u[f].element);this.element.appendChild(l)}else this.cells.push(u),this.element.appendChild(u.element)},this.unshift=function(u){if(Array.isArray(u)){this.cells.unshift.apply(this.cells,u);for(var l=i.createFragment(this.element),f=0;f<u.length;f++)l.appendChild(u[f].element);this.element.firstChild?this.element.insertBefore(l,this.element.firstChild):this.element.appendChild(l)}else this.cells.unshift(u),this.element.insertAdjacentElement("afterbegin",u.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(u){!u||(u.element.remove(),this.cellCache.push(u))},this.createCell=function(u,l,f,a){var c=this.cellCache.pop();if(!c){var h=i.createElement("div");a&&a(h),this.element.appendChild(h),c={element:h,text:"",row:u}}return c.row=u,c}}).call(o.prototype),r.Lines=o}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],function(n,r,s){var i=n("../lib/dom"),o=n("../lib/oop"),u=n("../lib/lang"),l=n("../lib/event_emitter").EventEmitter,f=n("./lines").Lines,a=function(h){this.element=i.createElement("div"),this.element.className="ace_layer ace_gutter-layer",h.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new f(this.element),this.$lines.$offsetCoefficient=1};(function(){o.implement(this,l),this.setSession=function(h){this.session&&this.session.off("change",this.$updateAnnotations),this.session=h,h&&h.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(h,p){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(h,p)},this.removeGutterDecoration=function(h,p){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(h,p)},this.setAnnotations=function(h){this.$annotations=[];for(var p=0;p<h.length;p++){var m=h[p],g=m.row,v=this.$annotations[g];v||(v=this.$annotations[g]={text:[]});var w=m.text;w=w?u.escapeHTML(w):m.html||"",v.text.indexOf(w)===-1&&v.text.push(w);var _=m.type,$=m.className;$?v.className=$:_=="error"?v.className=" ace_error":_=="warning"&&v.className!=" ace_error"?v.className=" ace_warning":_=="info"&&!v.className&&(v.className=" ace_info")}},this.$updateAnnotations=function(h){if(!!this.$annotations.length){var p=h.start.row,m=h.end.row-p;if(m!==0)if(h.action=="remove")this.$annotations.splice(p,m+1,null);else{var g=new Array(m+1);g.unshift(p,1),this.$annotations.splice.apply(this.$annotations,g)}}},this.update=function(h){this.config=h;var p=this.session,m=h.firstRow,g=Math.min(h.lastRow+h.gutterOffset,p.getLength()-1);this.oldLastRow=g,this.config=h,this.$lines.moveContainer(h),this.$updateCursorRow();for(var v=p.getNextFoldLine(m),w=v?v.start.row:1/0,_=null,$=-1,x=m;;){if(x>w&&(x=v.end.row+1,v=p.getNextFoldLine(x,v),w=v?v.start.row:1/0),x>g){for(;this.$lines.getLength()>$+1;)this.$lines.pop();break}_=this.$lines.get(++$),_?_.row=x:(_=this.$lines.createCell(x,h,this.session,c),this.$lines.push(_)),this.$renderCell(_,h,v,x),x++}this._signal("afterRender"),this.$updateGutterWidth(h)},this.$updateGutterWidth=function(h){var p=this.session,m=p.gutterRenderer||this.$renderer,g=p.$firstLineNumber,v=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||p.$useWrapMode)&&(v=p.getLength()+g-1);var w=m?m.getWidth(p,v,h):v.toString().length*h.characterWidth,_=this.$padding||this.$computePadding();w+=_.left+_.right,w!==this.gutterWidth&&!isNaN(w)&&(this.gutterWidth=w,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",w))},this.$updateCursorRow=function(){if(!!this.$highlightGutterLine){var h=this.session.selection.getCursor();this.$cursorRow!==h.row&&(this.$cursorRow=h.row)}},this.updateLineHighlight=function(){if(!!this.$highlightGutterLine){var h=this.session.selection.cursor.row;if(this.$cursorRow=h,!(this.$cursorCell&&this.$cursorCell.row==h)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var p=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<p.length;m++){var g=p[m];if(g.row>=this.$cursorRow){if(g.row>this.$cursorRow){var v=this.session.getFoldLine(this.$cursorRow);if(m>0&&v&&v.start.row==p[m-1].row)g=p[m-1];else break}g.element.className="ace_gutter-active-line "+g.element.className,this.$cursorCell=g;break}}}}},this.scrollLines=function(h){var p=this.config;if(this.config=h,this.$updateCursorRow(),this.$lines.pageChanged(p,h))return this.update(h);this.$lines.moveContainer(h);var m=Math.min(h.lastRow+h.gutterOffset,this.session.getLength()-1),g=this.oldLastRow;if(this.oldLastRow=m,!p||g<h.firstRow)return this.update(h);if(m<p.firstRow)return this.update(h);if(p.firstRow<h.firstRow)for(var v=this.session.getFoldedRowCount(p.firstRow,h.firstRow-1);v>0;v--)this.$lines.shift();if(g>m)for(var v=this.session.getFoldedRowCount(m+1,g);v>0;v--)this.$lines.pop();h.firstRow<p.firstRow&&this.$lines.unshift(this.$renderLines(h,h.firstRow,p.firstRow-1)),m>g&&this.$lines.push(this.$renderLines(h,g+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(h)},this.$renderLines=function(h,p,m){for(var g=[],v=p,w=this.session.getNextFoldLine(v),_=w?w.start.row:1/0;v>_&&(v=w.end.row+1,w=this.session.getNextFoldLine(v,w),_=w?w.start.row:1/0),!(v>m);){var $=this.$lines.createCell(v,h,this.session,c);this.$renderCell($,h,w,v),g.push($),v++}return g},this.$renderCell=function(h,p,m,g){var v=h.element,w=this.session,_=v.childNodes[0],$=v.childNodes[1],x=w.$firstLineNumber,b=w.$breakpoints,C=w.$decorations,T=w.gutterRenderer||this.$renderer,k=this.$showFoldWidgets&&w.foldWidgets,S=m?m.start.row:Number.MAX_VALUE,y="ace_gutter-cell ";if(this.$highlightGutterLine&&(g==this.$cursorRow||m&&g<this.$cursorRow&&g>=S&&this.$cursorRow<=m.end.row)&&(y+="ace_gutter-active-line ",this.$cursorCell!=h&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=h)),b[g]&&(y+=b[g]),C[g]&&(y+=C[g]),this.$annotations[g]&&(y+=this.$annotations[g].className),v.className!=y&&(v.className=y),k){var E=k[g];E==null&&(E=k[g]=w.getFoldWidget(g))}if(E){var y="ace_fold-widget ace_"+E;E=="start"&&g==S&&g<m.end.row?y+=" ace_closed":y+=" ace_open",$.className!=y&&($.className=y);var A=p.lineHeight+"px";i.setStyle($.style,"height",A),i.setStyle($.style,"display","inline-block")}else $&&i.setStyle($.style,"display","none");var O=(T?T.getText(w,g):g+x).toString();return O!==_.data&&(_.data=O),i.setStyle(h.element.style,"height",this.$lines.computeLineHeight(g,p,w)+"px"),i.setStyle(h.element.style,"top",this.$lines.computeLineTop(g,p,w)+"px"),h.text=O,h},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(h){this.$highlightGutterLine=h},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(h){this.$renderer=!h&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(h){h?i.addCssClass(this.element,"ace_folding-enabled"):i.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=h,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var h=i.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(h.borderLeftWidth)||0)+(parseInt(h.paddingLeft)||0)+1,this.$padding.right=(parseInt(h.borderRightWidth)||0)+(parseInt(h.paddingRight)||0),this.$padding},this.getRegion=function(h){var p=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(h.x<p.left+m.left)return"markers";if(this.$showFoldWidgets&&h.x>m.right-p.right)return"foldWidgets"}}).call(a.prototype);function c(h){var p=document.createTextNode("");h.appendChild(p);var m=i.createElement("span");return h.appendChild(m),h}r.Gutter=a}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,s){var i=n("../range").Range,o=n("../lib/dom"),u=function(l){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",l.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(f){this.$padding=f},this.setSession=function(f){this.session=f},this.setMarkers=function(f){this.markers=f},this.elt=function(f,a){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=a,c.className=f},this.update=function(f){if(!!f){this.config=f,this.i=0;var a;for(var c in this.markers){var h=this.markers[c];if(!h.range){h.update(a,this,this.session,f);continue}var p=h.range.clipRows(f.firstRow,f.lastRow);if(!p.isEmpty())if(p=p.toScreenRange(this.session),h.renderer){var m=this.$getTop(p.start.row,f),g=this.$padding+p.start.column*f.characterWidth;h.renderer(a,p,g,m,f)}else h.type=="fullLine"?this.drawFullLineMarker(a,p,h.clazz,f):h.type=="screenLine"?this.drawScreenLineMarker(a,p,h.clazz,f):p.isMultiLine()?h.type=="text"?this.drawTextMarker(a,p,h.clazz,f):this.drawMultiLineMarker(a,p,h.clazz,f):this.drawSingleLineMarker(a,p,h.clazz+" ace_start ace_br15",f)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(f,a){return(f-a.firstRowScreen)*a.lineHeight};function l(f,a,c,h){return(f?1:0)|(a?2:0)|(c?4:0)|(h?8:0)}this.drawTextMarker=function(f,a,c,h,p){for(var m=this.session,g=a.start.row,v=a.end.row,w=g,_=0,$=0,x=m.getScreenLastRowColumn(w),b=new i(w,a.start.column,w,$);w<=v;w++)b.start.row=b.end.row=w,b.start.column=w==g?a.start.column:m.getRowWrapIndent(w),b.end.column=x,_=$,$=x,x=w+1<v?m.getScreenLastRowColumn(w+1):w==v?0:a.end.column,this.drawSingleLineMarker(f,b,c+(w==g?" ace_start":"")+" ace_br"+l(w==g||w==g+1&&a.start.column,_<$,$>x,w==v),h,w==v?0:1,p)},this.drawMultiLineMarker=function(f,a,c,h,p){var m=this.$padding,g=h.lineHeight,v=this.$getTop(a.start.row,h),w=m+a.start.column*h.characterWidth;if(p=p||"",this.session.$bidiHandler.isBidiRow(a.start.row)){var _=a.clone();_.end.row=_.start.row,_.end.column=this.session.getLine(_.start.row).length,this.drawBidiSingleLineMarker(f,_,c+" ace_br1 ace_start",h,null,p)}else this.elt(c+" ace_br1 ace_start","height:"+g+"px;right:0;top:"+v+"px;left:"+w+"px;"+(p||""));if(this.session.$bidiHandler.isBidiRow(a.end.row)){var _=a.clone();_.start.row=_.end.row,_.start.column=0,this.drawBidiSingleLineMarker(f,_,c+" ace_br12",h,null,p)}else{v=this.$getTop(a.end.row,h);var $=a.end.column*h.characterWidth;this.elt(c+" ace_br12","height:"+g+"px;width:"+$+"px;top:"+v+"px;left:"+m+"px;"+(p||""))}if(g=(a.end.row-a.start.row-1)*h.lineHeight,!(g<=0)){v=this.$getTop(a.start.row+1,h);var x=(a.start.column?1:0)|(a.end.column?0:8);this.elt(c+(x?" ace_br"+x:""),"height:"+g+"px;right:0;top:"+v+"px;left:"+m+"px;"+(p||""))}},this.drawSingleLineMarker=function(f,a,c,h,p,m){if(this.session.$bidiHandler.isBidiRow(a.start.row))return this.drawBidiSingleLineMarker(f,a,c,h,p,m);var g=h.lineHeight,v=(a.end.column+(p||0)-a.start.column)*h.characterWidth,w=this.$getTop(a.start.row,h),_=this.$padding+a.start.column*h.characterWidth;this.elt(c,"height:"+g+"px;width:"+v+"px;top:"+w+"px;left:"+_+"px;"+(m||""))},this.drawBidiSingleLineMarker=function(f,a,c,h,p,m){var g=h.lineHeight,v=this.$getTop(a.start.row,h),w=this.$padding,_=this.session.$bidiHandler.getSelections(a.start.column,a.end.column);_.forEach(function($){this.elt(c,"height:"+g+"px;width:"+$.width+(p||0)+"px;top:"+v+"px;left:"+(w+$.left)+"px;"+(m||""))},this)},this.drawFullLineMarker=function(f,a,c,h,p){var m=this.$getTop(a.start.row,h),g=h.lineHeight;a.start.row!=a.end.row&&(g+=this.$getTop(a.end.row,h)-m),this.elt(c,"height:"+g+"px;top:"+m+"px;left:0;right:0;"+(p||""))},this.drawScreenLineMarker=function(f,a,c,h,p){var m=this.$getTop(a.start.row,h),g=h.lineHeight;this.elt(c,"height:"+g+"px;top:"+m+"px;left:0;right:0;"+(p||""))}}).call(u.prototype),r.Marker=u}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(n,r,s){var i=n("../lib/oop"),o=n("../lib/dom"),u=n("../lib/lang"),l=n("./lines").Lines,f=n("../lib/event_emitter").EventEmitter,a=function(c){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",c.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new l(this.element)};(function(){i.implement(this,f),this.EOF_CHAR="\xB6",this.EOL_CHAR_LF="\xAC",this.EOL_CHAR_CRLF="\xA4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xB7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.MAX_CHUNK_LENGTH=250,this.$updateEolChar=function(){var c=this.session.doc,h=c.getNewLineCharacter()==`
236
+ `&&c.getNewLineMode()!="windows",p=h?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=p)return this.EOL_CHAR=p,!0},this.setPadding=function(c){this.$padding=c,this.element.style.margin="0 "+c+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(c){this.$fontMetrics=c,this.$fontMetrics.on("changeCharacterSize",function(h){this._signal("changeCharacterSize",h)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(c){this.session=c,c&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(c){return this.showInvisibles==c?!1:(this.showInvisibles=c,typeof c=="string"?(this.showSpaces=/tab/i.test(c),this.showTabs=/space/i.test(c),this.showEOL=/eol/i.test(c)):this.showSpaces=this.showTabs=this.showEOL=c,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(c){return this.displayIndentGuides==c?!1:(this.displayIndentGuides=c,this.$computeTabString(),!0)},this.$highlightIndentGuides=!0,this.setHighlightIndentGuides=function(c){return this.$highlightIndentGuides===c?!1:(this.$highlightIndentGuides=c,c)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var c=this.session.getTabSize();this.tabSize=c;for(var h=this.$tabStrings=[0],p=1;p<c+1;p++)if(this.showTabs){var m=this.dom.createElement("span");m.className="ace_invisible ace_invisible_tab",m.textContent=u.stringRepeat(this.TAB_CHAR,p),h.push(m)}else h.push(this.dom.createTextNode(u.stringRepeat(" ",p),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var g="ace_indent-guide",v=this.showSpaces?" ace_invisible ace_invisible_space":"",w=this.showSpaces?u.stringRepeat(this.SPACE_CHAR,this.tabSize):u.stringRepeat(" ",this.tabSize),_=this.showTabs?" ace_invisible ace_invisible_tab":"",$=this.showTabs?u.stringRepeat(this.TAB_CHAR,this.tabSize):w,m=this.dom.createElement("span");m.className=g+v,m.textContent=w,this.$tabStrings[" "]=m;var m=this.dom.createElement("span");m.className=g+_,m.textContent=$,this.$tabStrings[" "]=m}},this.updateLines=function(c,h,p){if(this.config.lastRow!=c.lastRow||this.config.firstRow!=c.firstRow)return this.update(c);this.config=c;for(var m=Math.max(h,c.firstRow),g=Math.min(p,c.lastRow),v=this.element.childNodes,w=0,$=c.firstRow;$<m;$++){var x=this.session.getFoldLine($);if(x)if(x.containsRow(m)){m=x.start.row;break}else $=x.end.row;w++}for(var _=!1,$=m,x=this.session.getNextFoldLine($),b=x?x.start.row:1/0;$>b&&($=x.end.row+1,x=this.session.getNextFoldLine($,x),b=x?x.start.row:1/0),!($>g);){var C=v[w++];if(C){this.dom.removeChildren(C),this.$renderLine(C,$,$==b?x:!1),_&&(C.style.top=this.$lines.computeLineTop($,c,this.session)+"px");var T=c.lineHeight*this.session.getRowLength($)+"px";C.style.height!=T&&(_=!0,C.style.height=T)}$++}if(_)for(;w<this.$lines.cells.length;){var k=this.$lines.cells[w++];k.element.style.top=this.$lines.computeLineTop(k.row,c,this.session)+"px"}},this.scrollLines=function(c){var h=this.config;if(this.config=c,this.$lines.pageChanged(h,c))return this.update(c);this.$lines.moveContainer(c);var p=c.lastRow,m=h?h.lastRow:-1;if(!h||m<c.firstRow)return this.update(c);if(p<h.firstRow)return this.update(c);if(!h||h.lastRow<c.firstRow)return this.update(c);if(c.lastRow<h.firstRow)return this.update(c);if(h.firstRow<c.firstRow)for(var g=this.session.getFoldedRowCount(h.firstRow,c.firstRow-1);g>0;g--)this.$lines.shift();if(h.lastRow>c.lastRow)for(var g=this.session.getFoldedRowCount(c.lastRow+1,h.lastRow);g>0;g--)this.$lines.pop();c.firstRow<h.firstRow&&this.$lines.unshift(this.$renderLinesFragment(c,c.firstRow,h.firstRow-1)),c.lastRow>h.lastRow&&this.$lines.push(this.$renderLinesFragment(c,h.lastRow+1,c.lastRow)),this.$highlightIndentGuide()},this.$renderLinesFragment=function(c,h,p){for(var m=[],g=h,v=this.session.getNextFoldLine(g),w=v?v.start.row:1/0;g>w&&(g=v.end.row+1,v=this.session.getNextFoldLine(g,v),w=v?v.start.row:1/0),!(g>p);){var _=this.$lines.createCell(g,c,this.session),$=_.element;this.dom.removeChildren($),o.setStyle($.style,"height",this.$lines.computeLineHeight(g,c,this.session)+"px"),o.setStyle($.style,"top",this.$lines.computeLineTop(g,c,this.session)+"px"),this.$renderLine($,g,g==w?v:!1),this.$useLineGroups()?$.className="ace_line_group":$.className="ace_line",m.push(_),g++}return m},this.update=function(c){this.$lines.moveContainer(c),this.config=c;for(var h=c.firstRow,p=c.lastRow,m=this.$lines;m.getLength();)m.pop();m.push(this.$renderLinesFragment(c,h,p))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderTokenInChunks=function(c,h,p,m){for(var g,v=0;v<m.length;v+=this.MAX_CHUNK_LENGTH){var w=m.substring(v,v+this.MAX_CHUNK_LENGTH),_={type:p.type,value:w};g=this.$renderToken(c,h+v,_,w)}return g},this.$renderToken=function(c,h,p,m){for(var g=this,v=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,w=this.dom.createFragment(this.element),_,$=0;_=v.exec(m);){var x=_[1],b=_[2],C=_[3],T=_[4],k=_[5];if(!(!g.showSpaces&&b)){var S=$!=_.index?m.slice($,_.index):"";if($=_.index+_[0].length,S&&w.appendChild(this.dom.createTextNode(S,this.element)),x){var y=g.session.getScreenTabSize(h+_.index);w.appendChild(g.$tabStrings[y].cloneNode(!0)),h+=y-1}else if(b)if(g.showSpaces){var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_space",E.textContent=u.stringRepeat(g.SPACE_CHAR,b.length),w.appendChild(E)}else w.appendChild(this.com.createTextNode(b,this.element));else if(C){var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_space ace_invalid",E.textContent=u.stringRepeat(g.SPACE_CHAR,C.length),w.appendChild(E)}else if(T){h+=1;var E=this.dom.createElement("span");E.style.width=g.config.characterWidth*2+"px",E.className=g.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",E.textContent=g.showSpaces?g.SPACE_CHAR:T,w.appendChild(E)}else if(k){h+=1;var E=this.dom.createElement("span");E.style.width=g.config.characterWidth*2+"px",E.className="ace_cjk",E.textContent=k,w.appendChild(E)}}}w.appendChild(this.dom.createTextNode($?m.slice($):m,this.element));var E=this.dom.createElement("span");if(!this.$textToken[p.type]){var A="ace_"+p.type.replace(/\./g," ace_");p.type=="fold"&&(E.style.width=p.value.length*this.config.characterWidth+"px"),E.className=A}return E.appendChild(w),c.appendChild(E),h+m.length},this.renderIndentGuide=function(c,h,p){var m=h.search(this.$indentGuideRe);if(m<=0||m>=p)return h;if(h[0]==" "){m-=m%this.tabSize;for(var g=m/this.tabSize,v=0;v<g;v++)c.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),h.substr(m)}else if(h[0]==" "){for(var v=0;v<m;v++)c.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),h.substr(m)}return this.$highlightIndentGuide(),h},this.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var c=this.session.doc.$lines;if(!!c){var h=this.session.selection.getCursor(),p=/^\s*/.exec(this.session.doc.getLine(h.row))[0].length,m=Math.floor(p/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:m,start:h.row};var g=this.session.$bracketHighlight;if(g){for(var v=this.session.$bracketHighlight.ranges,w=0;w<v.length;w++)if(h.row!==v[w].start.row){this.$highlightIndentGuideMarker.end=v[w].start.row,h.row>v[w].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&c[h.row]!==""&&h.column===c[h.row].length){this.$highlightIndentGuideMarker.dir=1;for(var w=h.row+1;w<c.length;w++){var _=c[w],$=/^\s*/.exec(_)[0].length;if(_!==""&&(this.$highlightIndentGuideMarker.end=w,$<=p))break}}this.$renderHighlightIndentGuide()}}},this.$clearActiveIndentGuide=function(){for(var c=this.$lines.cells,h=0;h<c.length;h++){var p=c[h],m=p.element.childNodes;if(m.length>0){for(var g=0;g<m.length;g++)if(m[g].classList&&m[g].classList.contains("ace_indent-guide-active")){m[g].classList.remove("ace_indent-guide-active");break}}}},this.$setIndentGuideActive=function(c,h){var p=this.session.doc.getLine(c.row);if(p!==""){var m=c.element.childNodes;if(m){var g=m[h-1];g&&g.classList&&g.classList.contains("ace_indent-guide")&&g.classList.add("ace_indent-guide-active")}}},this.$renderHighlightIndentGuide=function(){if(!!this.$lines){var c=this.$lines.cells;this.$clearActiveIndentGuide();var h=this.$highlightIndentGuideMarker.indentLevel;if(h!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var p=0;p<c.length;p++){var m=c[p];if(this.$highlightIndentGuideMarker.end&&m.row>=this.$highlightIndentGuideMarker.start+1){if(m.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(m,h)}}else for(var p=c.length-1;p>=0;p--){var m=c[p];if(this.$highlightIndentGuideMarker.end&&m.row<this.$highlightIndentGuideMarker.start){if(m.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(m,h)}}}},this.$createLineElement=function(c){var h=this.dom.createElement("div");return h.className="ace_line",h.style.height=this.config.lineHeight+"px",h},this.$renderWrappedLine=function(c,h,p){var m=0,g=0,v=p[0],w=0,_=this.$createLineElement();c.appendChild(_);for(var $=0;$<h.length;$++){var x=h[$],b=x.value;if($==0&&this.displayIndentGuides){if(m=b.length,b=this.renderIndentGuide(_,b,v),!b)continue;m-=b.length}if(m+b.length<v)w=this.$renderTokenInChunks(_,w,x,b),m+=b.length;else{for(;m+b.length>=v;)w=this.$renderTokenInChunks(_,w,x,b.substring(0,v-m)),b=b.substring(v-m),m=v,_=this.$createLineElement(),c.appendChild(_),_.appendChild(this.dom.createTextNode(u.stringRepeat("\xA0",p.indent),this.element)),g++,w=0,v=p[g]||Number.MAX_VALUE;b.length!=0&&(m+=b.length,w=this.$renderTokenInChunks(_,w,x,b))}}p[p.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(_,w,null,"",!0)},this.$renderSimpleLine=function(c,h){for(var p=0,m=0;m<h.length;m++){var g=h[m],v=g.value;if(!(m==0&&this.displayIndentGuides&&(v=this.renderIndentGuide(c,v),!v))){if(p+v.length>this.MAX_LINE_LENGTH){this.$renderOverflowMessage(c,p,g,v);return}p=this.$renderTokenInChunks(c,p,g,v)}}},this.$renderOverflowMessage=function(c,h,p,m,g){p&&this.$renderTokenInChunks(c,h,p,m.slice(0,this.MAX_LINE_LENGTH-h));var v=this.dom.createElement("span");v.className="ace_inline_button ace_keyword ace_toggle_wrap",v.textContent=g?"<hide>":"<click to see more...>",c.appendChild(v)},this.$renderLine=function(c,h,p){if(!p&&p!=!1&&(p=this.session.getFoldLine(h)),p)var m=this.$getFoldLineTokens(h,p);else var m=this.session.getTokens(h);var g=c;if(m.length){var v=this.session.getRowSplitData(h);if(v&&v.length){this.$renderWrappedLine(c,m,v);var g=c.lastChild}else{var g=c;this.$useLineGroups()&&(g=this.$createLineElement(),c.appendChild(g)),this.$renderSimpleLine(g,m)}}else this.$useLineGroups()&&(g=this.$createLineElement(),c.appendChild(g));if(this.showEOL&&g){p&&(h=p.end.row);var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_eol",w.textContent=h==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,g.appendChild(w)}},this.$getFoldLineTokens=function(c,h){var p=this.session,m=[];function g(w,_,$){for(var x=0,b=0;b+w[x].value.length<_;)if(b+=w[x].value.length,x++,x==w.length)return;if(b!=_){var C=w[x].value.substring(_-b);C.length>$-_&&(C=C.substring(0,$-_)),m.push({type:w[x].type,value:C}),b=_+C.length,x+=1}for(;b<$&&x<w.length;){var C=w[x].value;C.length+b>$?m.push({type:w[x].type,value:C.substring(0,$-b)}):m.push(w[x]),b+=C.length,x+=1}}var v=p.getTokens(c);return h.walk(function(w,_,$,x,b){w!=null?m.push({type:"fold",value:w}):(b&&(v=p.getTokens(_)),v.length&&g(v,x,$))},h.end.row,this.session.getLine(h.end.row).length),m},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(a.prototype),r.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,s){var i=n("../lib/dom"),o=function(u){this.element=i.createElement("div"),this.element.className="ace_layer ace_cursor-layer",u.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),i.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(u){for(var l=this.cursors,f=l.length;f--;)i.setStyle(l[f].style,"opacity",u?"":"0")},this.$startCssAnimation=function(){for(var u=this.cursors,l=u.length;l--;)u[l].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&i.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,i.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(u){this.$padding=u},this.setSession=function(u){this.session=u},this.setBlinking=function(u){u!=this.isBlinking&&(this.isBlinking=u,this.restartTimer())},this.setBlinkInterval=function(u){u!=this.blinkInterval&&(this.blinkInterval=u,this.restartTimer())},this.setSmoothBlinking=function(u){u!=this.smoothBlinking&&(this.smoothBlinking=u,i.setCssClass(this.element,"ace_smooth-blinking",u),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var u=i.createElement("div");return u.className="ace_cursor",this.element.appendChild(u),this.cursors.push(u),u},this.removeCursor=function(){if(this.cursors.length>1){var u=this.cursors.pop();return u.parentNode.removeChild(u),u}},this.hideCursor=function(){this.isVisible=!1,i.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,i.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var u=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,i.removeCssClass(this.element,"ace_smooth-blinking")),u(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&i.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),i.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var l=function(){this.timeoutId=setTimeout(function(){u(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){u(!0),l()},this.blinkInterval),l()}},this.getPixelPosition=function(u,l){if(!this.config||!this.session)return{left:0,top:0};u||(u=this.session.selection.getCursor());var f=this.session.documentToScreenPosition(u),a=this.$padding+(this.session.$bidiHandler.isBidiRow(f.row,u.row)?this.session.$bidiHandler.getPosLeft(f.column):f.column*this.config.characterWidth),c=(f.row-(l?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:a,top:c}},this.isCursorInView=function(u,l){return u.top>=0&&u.top<l.maxHeight},this.update=function(u){this.config=u;var l=this.session.$selectionMarkers,f=0,a=0;(l===void 0||l.length===0)&&(l=[{cursor:null}]);for(var f=0,c=l.length;f<c;f++){var h=this.getPixelPosition(l[f].cursor,!0);if(!((h.top>u.height+u.offset||h.top<0)&&f>1)){var p=this.cursors[a++]||this.addCursor(),m=p.style;this.drawCursor?this.drawCursor(p,h,u,l[f],this.session):this.isCursorInView(h,u)?(i.setStyle(m,"display","block"),i.translate(p,h.left,h.top),i.setStyle(m,"width",Math.round(u.characterWidth)+"px"),i.setStyle(m,"height",u.lineHeight+"px")):i.setStyle(m,"display","none")}}for(;this.cursors.length>a;)this.removeCursor();var g=this.session.getOverwrite();this.$setOverwrite(g),this.$pixelPos=h,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(u){u!=this.overwrite&&(this.overwrite=u,u?i.addCssClass(this.element,"ace_overwrite-cursors"):i.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),r.Cursor=o}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,s){var i=n("./lib/oop"),o=n("./lib/dom"),u=n("./lib/event"),l=n("./lib/event_emitter").EventEmitter,f=32768,a=function(p){this.element=o.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xA0",this.element.appendChild(this.inner),p.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,u.addListener(this.element,"scroll",this.onScroll.bind(this)),u.addListener(this.element,"mousedown",u.preventDefault)};(function(){i.implement(this,l),this.setVisible=function(p){this.element.style.display=p?"":"none",this.isVisible=p,this.coeff=1}}).call(a.prototype);var c=function(p,m){a.call(this,p),this.scrollTop=0,this.scrollHeight=0,m.$scrollbarWidth=this.width=o.scrollbarWidth(p.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};i.inherits(c,a),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var p=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-p)/(this.coeff-p)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(p){this.element.style.height=p+"px"},this.setInnerHeight=this.setScrollHeight=function(p){this.scrollHeight=p,p>f?(this.coeff=f/p,p=f):this.coeff!=1&&(this.coeff=1),this.inner.style.height=p+"px"},this.setScrollTop=function(p){this.scrollTop!=p&&(this.skipEvent=!0,this.scrollTop=p,this.element.scrollTop=p*this.coeff)}}.call(c.prototype);var h=function(p,m){a.call(this,p),this.scrollLeft=0,this.height=m.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};i.inherits(h,a),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(p){this.element.style.width=p+"px"},this.setInnerWidth=function(p){this.inner.style.width=p+"px"},this.setScrollWidth=function(p){this.inner.style.width=p+"px"},this.setScrollLeft=function(p){this.scrollLeft!=p&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=p)}}.call(h.prototype),r.ScrollBar=c,r.ScrollBarV=c,r.ScrollBarH=h,r.VScrollBar=c,r.HScrollBar=h}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,s){var i=n("./lib/oop"),o=n("./lib/dom"),u=n("./lib/event"),l=n("./lib/event_emitter").EventEmitter;o.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
237
+ position: absolute;
238
+ background: rgba(128, 128, 128, 0.6);
239
+ -moz-box-sizing: border-box;
240
+ box-sizing: border-box;
241
+ border: 1px solid #bbb;
242
+ border-radius: 2px;
243
+ z-index: 8;
244
+ }
245
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
246
+ position: absolute;
247
+ z-index: 6;
248
+ background: none;
249
+ overflow: hidden!important;
250
+ }
251
+ .ace_editor>.ace_sb-v {
252
+ z-index: 6;
253
+ right: 0;
254
+ top: 0;
255
+ width: 12px;
256
+ }
257
+ .ace_editor>.ace_sb-v div {
258
+ z-index: 8;
259
+ right: 0;
260
+ width: 100%;
261
+ }
262
+ .ace_editor>.ace_sb-h {
263
+ bottom: 0;
264
+ left: 0;
265
+ height: 12px;
266
+ }
267
+ .ace_editor>.ace_sb-h div {
268
+ bottom: 0;
269
+ height: 100%;
270
+ }
271
+ .ace_editor>.ace_sb_grabbed {
272
+ z-index: 8;
273
+ background: #000;
274
+ }`,"ace_scrollbar.css",!1);var f=function(h){this.element=o.createElement("div"),this.element.className="ace_sb"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,h.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,u.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")};(function(){i.implement(this,l),this.setVisible=function(h){this.element.style.display=h?"":"none",this.isVisible=h,this.coeff=1}}).call(f.prototype);var a=function(h,p){f.call(this,h),this.scrollTop=0,this.scrollHeight=0,this.parent=h,this.width=this.VScrollWidth,this.renderer=p,this.inner.style.width=this.element.style.width=(this.width||15)+"px",this.$minWidth=0};i.inherits(a,f),function(){this.classSuffix="-v",i.implement(this,l),this.onMouseDown=function(h,p){if(h==="mousedown"&&!(u.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var m=this,g=p.clientY,v=function(T){g=T.clientY},w=function(){clearInterval(b)},_=p.clientY,$=this.thumbTop,x=function(){if(g!==void 0){var T=m.scrollTopFromThumbTop($+g-_);T!==m.scrollTop&&m._emit("scroll",{data:T})}};u.capture(this.inner,v,w);var b=setInterval(x,20);return u.preventDefault(p)}var C=p.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(C)}),u.preventDefault(p)}},this.getHeight=function(){return this.height},this.scrollTopFromThumbTop=function(h){var p=h*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return p=p>>0,p<0?p=0:p>this.pageHeight-this.viewHeight&&(p=this.pageHeight-this.viewHeight),p},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(h){this.height=Math.max(0,h),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},this.setInnerHeight=this.setScrollHeight=function(h,p){this.pageHeight===h&&!p||(this.pageHeight=h,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},this.setScrollTop=function(h){this.scrollTop=h,h<0&&(h=0),this.thumbTop=h*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"}}.call(a.prototype);var c=function(h,p){f.call(this,h),this.scrollLeft=0,this.scrollWidth=0,this.height=this.HScrollHeight,this.inner.style.height=this.element.style.height=(this.height||12)+"px",this.renderer=p};i.inherits(c,f),function(){this.classSuffix="-h",i.implement(this,l),this.onMouseDown=function(h,p){if(h==="mousedown"&&!(u.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var m=this,g=p.clientX,v=function(T){g=T.clientX},w=function(){clearInterval(b)},_=p.clientX,$=this.thumbLeft,x=function(){if(g!==void 0){var T=m.scrollLeftFromThumbLeft($+g-_);T!==m.scrollLeft&&m._emit("scroll",{data:T})}};u.capture(this.inner,v,w);var b=setInterval(x,20);return u.preventDefault(p)}var C=p.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(C)}),u.preventDefault(p)}},this.getHeight=function(){return this.isVisible?this.height:0},this.scrollLeftFromThumbLeft=function(h){var p=h*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return p=p>>0,p<0?p=0:p>this.pageWidth-this.viewWidth&&(p=this.pageWidth-this.viewWidth),p},this.setWidth=function(h){this.width=Math.max(0,h),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},this.setInnerWidth=this.setScrollWidth=function(h,p){this.pageWidth===h&&!p||(this.pageWidth=h,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},this.setScrollLeft=function(h){this.scrollLeft=h,h<0&&(h=0),this.thumbLeft=h*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"}}.call(c.prototype),r.ScrollBar=a,r.ScrollBarV=a,r.ScrollBarH=c,r.VScrollBar=a,r.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,s){var i=n("./lib/event"),o=function(u,l){this.onRender=u,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=l||window;var f=this;this._flush=function(a){f.pending=!1;var c=f.changes;if(c&&(i.blockIdle(100),f.changes=0,f.onRender(c)),f.changes){if(f.$recursionLimit--<0)return;f.schedule()}else f.$recursionLimit=2}};(function(){this.schedule=function(u){this.changes=this.changes|u,this.changes&&!this.pending&&(i.nextFrame(this._flush),this.pending=!0)},this.clear=function(u){var l=this.changes;return this.changes=0,l}}).call(o.prototype),r.RenderLoop=o}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,r,s){var i=n("../lib/oop"),o=n("../lib/dom"),u=n("../lib/lang"),l=n("../lib/event"),f=n("../lib/useragent"),a=n("../lib/event_emitter").EventEmitter,c=250,h=typeof ResizeObserver=="function",p=200,m=r.FontMetrics=function(g,v){this.charCount=v||c,this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),g.appendChild(this.el),this.$measureNode.textContent=u.stringRepeat("X",this.charCount),this.$characterSize={width:0,height:0},h?this.$addObserver():this.checkForSizeChanges()};(function(){i.implement(this,a),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(g,v){g.width=g.height="auto",g.left=g.top="0px",g.visibility="hidden",g.position="absolute",g.whiteSpace="pre",f.isIE<8?g["font-family"]="inherit":g.font="inherit",g.overflow=v?"hidden":"visible"},this.checkForSizeChanges=function(g){if(g===void 0&&(g=this.$measureSizes()),g&&(this.$characterSize.width!==g.width||this.$characterSize.height!==g.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=g,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===g.width&&v.height===g.height,this._emit("changeCharacterSize",{data:g})}},this.$addObserver=function(){var g=this;this.$observer=new window.ResizeObserver(function(v){g.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var g=this;return this.$pollSizeChangesTimer=l.onIdle(function v(){g.checkForSizeChanges(),l.onIdle(v,500)},500)},this.setPolling=function(g){g?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(g){g=g||this.$measureNode;var v=g.getBoundingClientRect(),w={height:v.height,width:v.width/this.charCount};return w.width===0||w.height===0?null:w},this.$measureCharWidth=function(g){this.$main.textContent=u.stringRepeat(g,this.charCount);var v=this.$main.getBoundingClientRect();return v.width/this.charCount},this.getCharacterWidth=function(g){var v=this.charSizes[g];return v===void 0&&(v=this.charSizes[g]=this.$measureCharWidth(g)/this.$characterSize.width),v},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function g(v){return!v||!v.parentElement?1:(window.getComputedStyle(v).zoom||1)*g(v.parentElement)},this.$initTransformMeasureNodes=function(){var g=function(v,w){return["div",{style:"position: absolute;top:"+v+"px;left:"+w+"px;"}]};this.els=o.buildDom([g(0,0),g(p,0),g(0,p),g(p,p)],this.el)},this.transformCoordinates=function(g,v){if(g){var w=this.$getZoom(this.el);g=b(1/w,g)}function _(F,j,J){var Y=F[1]*j[0]-F[0]*j[1];return[(-j[1]*J[0]+j[0]*J[1])/Y,(+F[1]*J[0]-F[0]*J[1])/Y]}function $(F,j){return[F[0]-j[0],F[1]-j[1]]}function x(F,j){return[F[0]+j[0],F[1]+j[1]]}function b(F,j){return[F*j[0],F*j[1]]}this.els||this.$initTransformMeasureNodes();function C(F){var j=F.getBoundingClientRect();return[j.left,j.top]}var T=C(this.els[0]),k=C(this.els[1]),S=C(this.els[2]),y=C(this.els[3]),E=_($(y,k),$(y,S),$(x(k,S),x(y,T))),A=b(1+E[0],$(k,T)),O=b(1+E[1],$(S,T));if(v){var R=v,M=E[0]*R[0]/p+E[1]*R[1]/p+1,I=x(b(R[0],A),b(R[1],O));return x(b(1/M/p,I),T)}var B=$(g,T),W=_($(A,b(E[0],B)),$(O,b(E[1],B)),B);return b(p,W)}}).call(m.prototype)}),ace.define("ace/css/editor.css",["require","exports","module"],function(n,r,s){s.exports=`/*
275
+ styles = []
276
+ for (var i = 1; i < 16; i++) {
277
+ styles.push(".ace_br" + i + "{" + (
278
+ ["top-left", "top-right", "bottom-right", "bottom-left"]
279
+ ).map(function(x, j) {
280
+ return i & (1<<j) ? "border-" + x + "-radius: 3px;" : ""
281
+ }).filter(Boolean).join(" ") + "}")
282
+ }
283
+ styles.join("\\n")
284
+ */
285
+ .ace_br1 {border-top-left-radius : 3px;}
286
+ .ace_br2 {border-top-right-radius : 3px;}
287
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
288
+ .ace_br4 {border-bottom-right-radius: 3px;}
289
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
290
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
291
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
292
+ .ace_br8 {border-bottom-left-radius : 3px;}
293
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
294
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
295
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
296
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
297
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
298
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
299
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
300
+
301
+
302
+ .ace_editor {
303
+ position: relative;
304
+ overflow: hidden;
305
+ padding: 0;
306
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
307
+ direction: ltr;
308
+ text-align: left;
309
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
310
+ }
311
+
312
+ .ace_scroller {
313
+ position: absolute;
314
+ overflow: hidden;
315
+ top: 0;
316
+ bottom: 0;
317
+ background-color: inherit;
318
+ -ms-user-select: none;
319
+ -moz-user-select: none;
320
+ -webkit-user-select: none;
321
+ user-select: none;
322
+ cursor: text;
323
+ }
324
+
325
+ .ace_content {
326
+ position: absolute;
327
+ box-sizing: border-box;
328
+ min-width: 100%;
329
+ contain: style size layout;
330
+ font-variant-ligatures: no-common-ligatures;
331
+ }
332
+
333
+ .ace_dragging .ace_scroller:before{
334
+ position: absolute;
335
+ top: 0;
336
+ left: 0;
337
+ right: 0;
338
+ bottom: 0;
339
+ content: '';
340
+ background: rgba(250, 250, 250, 0.01);
341
+ z-index: 1000;
342
+ }
343
+ .ace_dragging.ace_dark .ace_scroller:before{
344
+ background: rgba(0, 0, 0, 0.01);
345
+ }
346
+
347
+ .ace_gutter {
348
+ position: absolute;
349
+ overflow : hidden;
350
+ width: auto;
351
+ top: 0;
352
+ bottom: 0;
353
+ left: 0;
354
+ cursor: default;
355
+ z-index: 4;
356
+ -ms-user-select: none;
357
+ -moz-user-select: none;
358
+ -webkit-user-select: none;
359
+ user-select: none;
360
+ contain: style size layout;
361
+ }
362
+
363
+ .ace_gutter-active-line {
364
+ position: absolute;
365
+ left: 0;
366
+ right: 0;
367
+ }
368
+
369
+ .ace_scroller.ace_scroll-left {
370
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
371
+ }
372
+
373
+ .ace_gutter-cell {
374
+ position: absolute;
375
+ top: 0;
376
+ left: 0;
377
+ right: 0;
378
+ padding-left: 19px;
379
+ padding-right: 6px;
380
+ background-repeat: no-repeat;
381
+ }
382
+
383
+ .ace_gutter-cell.ace_error {
384
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
385
+ background-repeat: no-repeat;
386
+ background-position: 2px center;
387
+ }
388
+
389
+ .ace_gutter-cell.ace_warning {
390
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
391
+ background-position: 2px center;
392
+ }
393
+
394
+ .ace_gutter-cell.ace_info {
395
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
396
+ background-position: 2px center;
397
+ }
398
+ .ace_dark .ace_gutter-cell.ace_info {
399
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
400
+ }
401
+
402
+ .ace_scrollbar {
403
+ contain: strict;
404
+ position: absolute;
405
+ right: 0;
406
+ bottom: 0;
407
+ z-index: 6;
408
+ }
409
+
410
+ .ace_scrollbar-inner {
411
+ position: absolute;
412
+ cursor: text;
413
+ left: 0;
414
+ top: 0;
415
+ }
416
+
417
+ .ace_scrollbar-v{
418
+ overflow-x: hidden;
419
+ overflow-y: scroll;
420
+ top: 0;
421
+ }
422
+
423
+ .ace_scrollbar-h {
424
+ overflow-x: scroll;
425
+ overflow-y: hidden;
426
+ left: 0;
427
+ }
428
+
429
+ .ace_print-margin {
430
+ position: absolute;
431
+ height: 100%;
432
+ }
433
+
434
+ .ace_text-input {
435
+ position: absolute;
436
+ z-index: 0;
437
+ width: 0.5em;
438
+ height: 1em;
439
+ opacity: 0;
440
+ background: transparent;
441
+ -moz-appearance: none;
442
+ appearance: none;
443
+ border: none;
444
+ resize: none;
445
+ outline: none;
446
+ overflow: hidden;
447
+ font: inherit;
448
+ padding: 0 1px;
449
+ margin: 0 -1px;
450
+ contain: strict;
451
+ -ms-user-select: text;
452
+ -moz-user-select: text;
453
+ -webkit-user-select: text;
454
+ user-select: text;
455
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
456
+ white-space: pre!important;
457
+ }
458
+ .ace_text-input.ace_composition {
459
+ background: transparent;
460
+ color: inherit;
461
+ z-index: 1000;
462
+ opacity: 1;
463
+ }
464
+ .ace_composition_placeholder { color: transparent }
465
+ .ace_composition_marker {
466
+ border-bottom: 1px solid;
467
+ position: absolute;
468
+ border-radius: 0;
469
+ margin-top: 1px;
470
+ }
471
+
472
+ [ace_nocontext=true] {
473
+ transform: none!important;
474
+ filter: none!important;
475
+ clip-path: none!important;
476
+ mask : none!important;
477
+ contain: none!important;
478
+ perspective: none!important;
479
+ mix-blend-mode: initial!important;
480
+ z-index: auto;
481
+ }
482
+
483
+ .ace_layer {
484
+ z-index: 1;
485
+ position: absolute;
486
+ overflow: hidden;
487
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
488
+ word-wrap: normal;
489
+ white-space: pre;
490
+ height: 100%;
491
+ width: 100%;
492
+ box-sizing: border-box;
493
+ /* setting pointer-events: auto; on node under the mouse, which changes
494
+ during scroll, will break mouse wheel scrolling in Safari */
495
+ pointer-events: none;
496
+ }
497
+
498
+ .ace_gutter-layer {
499
+ position: relative;
500
+ width: auto;
501
+ text-align: right;
502
+ pointer-events: auto;
503
+ height: 1000000px;
504
+ contain: style size layout;
505
+ }
506
+
507
+ .ace_text-layer {
508
+ font: inherit !important;
509
+ position: absolute;
510
+ height: 1000000px;
511
+ width: 1000000px;
512
+ contain: style size layout;
513
+ }
514
+
515
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
516
+ contain: style size layout;
517
+ position: absolute;
518
+ top: 0;
519
+ left: 0;
520
+ right: 0;
521
+ }
522
+
523
+ .ace_hidpi .ace_text-layer,
524
+ .ace_hidpi .ace_gutter-layer,
525
+ .ace_hidpi .ace_content,
526
+ .ace_hidpi .ace_gutter {
527
+ contain: strict;
528
+ will-change: transform;
529
+ }
530
+ .ace_hidpi .ace_text-layer > .ace_line,
531
+ .ace_hidpi .ace_text-layer > .ace_line_group {
532
+ contain: strict;
533
+ }
534
+
535
+ .ace_cjk {
536
+ display: inline-block;
537
+ text-align: center;
538
+ }
539
+
540
+ .ace_cursor-layer {
541
+ z-index: 4;
542
+ }
543
+
544
+ .ace_cursor {
545
+ z-index: 4;
546
+ position: absolute;
547
+ box-sizing: border-box;
548
+ border-left: 2px solid;
549
+ /* workaround for smooth cursor repaintng whole screen in chrome */
550
+ transform: translatez(0);
551
+ }
552
+
553
+ .ace_multiselect .ace_cursor {
554
+ border-left-width: 1px;
555
+ }
556
+
557
+ .ace_slim-cursors .ace_cursor {
558
+ border-left-width: 1px;
559
+ }
560
+
561
+ .ace_overwrite-cursors .ace_cursor {
562
+ border-left-width: 0;
563
+ border-bottom: 1px solid;
564
+ }
565
+
566
+ .ace_hidden-cursors .ace_cursor {
567
+ opacity: 0.2;
568
+ }
569
+
570
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
571
+ opacity: 0;
572
+ }
573
+
574
+ .ace_smooth-blinking .ace_cursor {
575
+ transition: opacity 0.18s;
576
+ }
577
+
578
+ .ace_animate-blinking .ace_cursor {
579
+ animation-duration: 1000ms;
580
+ animation-timing-function: step-end;
581
+ animation-name: blink-ace-animate;
582
+ animation-iteration-count: infinite;
583
+ }
584
+
585
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
586
+ animation-duration: 1000ms;
587
+ animation-timing-function: ease-in-out;
588
+ animation-name: blink-ace-animate-smooth;
589
+ }
590
+
591
+ @keyframes blink-ace-animate {
592
+ from, to { opacity: 1; }
593
+ 60% { opacity: 0; }
594
+ }
595
+
596
+ @keyframes blink-ace-animate-smooth {
597
+ from, to { opacity: 1; }
598
+ 45% { opacity: 1; }
599
+ 60% { opacity: 0; }
600
+ 85% { opacity: 0; }
601
+ }
602
+
603
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
604
+ position: absolute;
605
+ z-index: 3;
606
+ }
607
+
608
+ .ace_marker-layer .ace_selection {
609
+ position: absolute;
610
+ z-index: 5;
611
+ }
612
+
613
+ .ace_marker-layer .ace_bracket {
614
+ position: absolute;
615
+ z-index: 6;
616
+ }
617
+
618
+ .ace_marker-layer .ace_error_bracket {
619
+ position: absolute;
620
+ border-bottom: 1px solid #DE5555;
621
+ border-radius: 0;
622
+ }
623
+
624
+ .ace_marker-layer .ace_active-line {
625
+ position: absolute;
626
+ z-index: 2;
627
+ }
628
+
629
+ .ace_marker-layer .ace_selected-word {
630
+ position: absolute;
631
+ z-index: 4;
632
+ box-sizing: border-box;
633
+ }
634
+
635
+ .ace_line .ace_fold {
636
+ box-sizing: border-box;
637
+
638
+ display: inline-block;
639
+ height: 11px;
640
+ margin-top: -2px;
641
+ vertical-align: middle;
642
+
643
+ background-image:
644
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
645
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
646
+ background-repeat: no-repeat, repeat-x;
647
+ background-position: center center, top left;
648
+ color: transparent;
649
+
650
+ border: 1px solid black;
651
+ border-radius: 2px;
652
+
653
+ cursor: pointer;
654
+ pointer-events: auto;
655
+ }
656
+
657
+ .ace_dark .ace_fold {
658
+ }
659
+
660
+ .ace_fold:hover{
661
+ background-image:
662
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
663
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
664
+ }
665
+
666
+ .ace_tooltip {
667
+ background-color: #FFF;
668
+ background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
669
+ border: 1px solid gray;
670
+ border-radius: 1px;
671
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
672
+ color: black;
673
+ max-width: 100%;
674
+ padding: 3px 4px;
675
+ position: fixed;
676
+ z-index: 999999;
677
+ box-sizing: border-box;
678
+ cursor: default;
679
+ white-space: pre;
680
+ word-wrap: break-word;
681
+ line-height: normal;
682
+ font-style: normal;
683
+ font-weight: normal;
684
+ letter-spacing: normal;
685
+ pointer-events: none;
686
+ }
687
+
688
+ .ace_folding-enabled > .ace_gutter-cell {
689
+ padding-right: 13px;
690
+ }
691
+
692
+ .ace_fold-widget {
693
+ box-sizing: border-box;
694
+
695
+ margin: 0 -12px 0 1px;
696
+ display: none;
697
+ width: 11px;
698
+ vertical-align: top;
699
+
700
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
701
+ background-repeat: no-repeat;
702
+ background-position: center;
703
+
704
+ border-radius: 3px;
705
+
706
+ border: 1px solid transparent;
707
+ cursor: pointer;
708
+ }
709
+
710
+ .ace_folding-enabled .ace_fold-widget {
711
+ display: inline-block;
712
+ }
713
+
714
+ .ace_fold-widget.ace_end {
715
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
716
+ }
717
+
718
+ .ace_fold-widget.ace_closed {
719
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
720
+ }
721
+
722
+ .ace_fold-widget:hover {
723
+ border: 1px solid rgba(0, 0, 0, 0.3);
724
+ background-color: rgba(255, 255, 255, 0.2);
725
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
726
+ }
727
+
728
+ .ace_fold-widget:active {
729
+ border: 1px solid rgba(0, 0, 0, 0.4);
730
+ background-color: rgba(0, 0, 0, 0.05);
731
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
732
+ }
733
+ /**
734
+ * Dark version for fold widgets
735
+ */
736
+ .ace_dark .ace_fold-widget {
737
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
738
+ }
739
+ .ace_dark .ace_fold-widget.ace_end {
740
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
741
+ }
742
+ .ace_dark .ace_fold-widget.ace_closed {
743
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
744
+ }
745
+ .ace_dark .ace_fold-widget:hover {
746
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
747
+ background-color: rgba(255, 255, 255, 0.1);
748
+ }
749
+ .ace_dark .ace_fold-widget:active {
750
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
751
+ }
752
+
753
+ .ace_inline_button {
754
+ border: 1px solid lightgray;
755
+ display: inline-block;
756
+ margin: -1px 8px;
757
+ padding: 0 5px;
758
+ pointer-events: auto;
759
+ cursor: pointer;
760
+ }
761
+ .ace_inline_button:hover {
762
+ border-color: gray;
763
+ background: rgba(200,200,200,0.2);
764
+ display: inline-block;
765
+ pointer-events: auto;
766
+ }
767
+
768
+ .ace_fold-widget.ace_invalid {
769
+ background-color: #FFB4B4;
770
+ border-color: #DE5555;
771
+ }
772
+
773
+ .ace_fade-fold-widgets .ace_fold-widget {
774
+ transition: opacity 0.4s ease 0.05s;
775
+ opacity: 0;
776
+ }
777
+
778
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
779
+ transition: opacity 0.05s ease 0.05s;
780
+ opacity:1;
781
+ }
782
+
783
+ .ace_underline {
784
+ text-decoration: underline;
785
+ }
786
+
787
+ .ace_bold {
788
+ font-weight: bold;
789
+ }
790
+
791
+ .ace_nobold .ace_bold {
792
+ font-weight: normal;
793
+ }
794
+
795
+ .ace_italic {
796
+ font-style: italic;
797
+ }
798
+
799
+
800
+ .ace_error-marker {
801
+ background-color: rgba(255, 0, 0,0.2);
802
+ position: absolute;
803
+ z-index: 9;
804
+ }
805
+
806
+ .ace_highlight-marker {
807
+ background-color: rgba(255, 255, 0,0.2);
808
+ position: absolute;
809
+ z-index: 8;
810
+ }
811
+
812
+ .ace_mobile-menu {
813
+ position: absolute;
814
+ line-height: 1.5;
815
+ border-radius: 4px;
816
+ -ms-user-select: none;
817
+ -moz-user-select: none;
818
+ -webkit-user-select: none;
819
+ user-select: none;
820
+ background: white;
821
+ box-shadow: 1px 3px 2px grey;
822
+ border: 1px solid #dcdcdc;
823
+ color: black;
824
+ }
825
+ .ace_dark > .ace_mobile-menu {
826
+ background: #333;
827
+ color: #ccc;
828
+ box-shadow: 1px 3px 2px grey;
829
+ border: 1px solid #444;
830
+
831
+ }
832
+ .ace_mobile-button {
833
+ padding: 2px;
834
+ cursor: pointer;
835
+ overflow: hidden;
836
+ }
837
+ .ace_mobile-button:hover {
838
+ background-color: #eee;
839
+ opacity:1;
840
+ }
841
+ .ace_mobile-button:active {
842
+ background-color: #ddd;
843
+ }
844
+
845
+ .ace_placeholder {
846
+ font-family: arial;
847
+ transform: scale(0.9);
848
+ transform-origin: left;
849
+ white-space: pre;
850
+ opacity: 0.7;
851
+ margin: 0 10px;
852
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,s){var i=n("../lib/dom"),o=n("../lib/oop"),u=n("../lib/event_emitter").EventEmitter,l=function(f,a){this.canvas=i.createElement("canvas"),this.renderer=a,this.pixelRatio=1,this.maxHeight=a.layerConfig.maxHeight,this.lineHeight=a.layerConfig.lineHeight,this.canvasHeight=f.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=f.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top=0+"px",this.canvas.style.right=0+"px",this.canvas.style.zIndex=7+"px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},f.element.appendChild(this.canvas)};(function(){o.implement(this,u),this.$updateDecorators=function(f){var a=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(f){this.maxHeight=f.maxHeight,this.lineHeight=f.lineHeight,this.canvasHeight=f.height;var c=(f.lastRow+1)*this.lineHeight;c<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var h=this.canvas.getContext("2d");function p(y,E){return y.priority<E.priority?-1:y.priority>E.priority?1:0}var m=this.renderer.session.$annotations;if(h.clearRect(0,0,this.canvas.width,this.canvas.height),m){var g={info:1,warning:2,error:3};m.forEach(function(y){y.priority=g[y.type]||null}),m=m.sort(p);for(var v=this.renderer.session.$foldData,w=0;w<m.length;w++){var _=m[w].row,$=this.compensateFoldRows(_,v),x=Math.round((_-$)*this.lineHeight*this.heightRatio),b=Math.round((_-$)*this.lineHeight*this.heightRatio),C=Math.round(((_-$)*this.lineHeight+this.lineHeight)*this.heightRatio),T=C-b;if(T<this.minDecorationHeight){var k=(b+C)/2|0;k<this.halfMinDecorationHeight?k=this.halfMinDecorationHeight:k+this.halfMinDecorationHeight>this.canvasHeight&&(k=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(k-this.halfMinDecorationHeight),C=Math.round(k+this.halfMinDecorationHeight)}h.fillStyle=a[m[w].type]||null,h.fillRect(0,x,this.canvasWidth,C-b)}}var S=this.renderer.session.selection.getCursor();if(S){var $=this.compensateFoldRows(S.row,v),x=Math.round((S.row-$)*this.lineHeight*this.heightRatio);h.fillStyle="rgba(0, 0, 0, 0.5)",h.fillRect(0,x,this.canvasWidth,2)}},this.compensateFoldRows=function(f,a){var c=0;if(a&&a.length>0)for(var h=0;h<a.length;h++)f>a[h].start.row&&f<a[h].end.row?c+=f-a[h].start.row:f>=a[h].end.row&&(c+=a[h].end.row-a[h].start.row);return c}}).call(l.prototype),r.Decorator=l}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor.css","ace/layer/decorators","ace/lib/useragent"],function(n,r,s){var i=n("./lib/oop"),o=n("./lib/dom"),u=n("./config"),l=n("./layer/gutter").Gutter,f=n("./layer/marker").Marker,a=n("./layer/text").Text,c=n("./layer/cursor").Cursor,h=n("./scrollbar").HScrollBar,p=n("./scrollbar").VScrollBar,m=n("./scrollbar_custom").HScrollBar,g=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,w=n("./layer/font_metrics").FontMetrics,_=n("./lib/event_emitter").EventEmitter,$=n("./css/editor.css"),x=n("./layer/decorators").Decorator,b=n("./lib/useragent"),C=b.isIE;o.importCssString($,"ace_editor.css",!1);var T=function(k,S){var y=this;this.container=k||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(S),u.get("useStrictCSP")==null&&u.set("useStrictCSP",!1),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new l(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new f(this.content);var E=this.$textLayer=new a(this.content);this.canvas=E.element,this.$markerFront=new f(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new p(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.on("scroll",function(A){y.$scrollAnimation||y.session.setScrollTop(A.data-y.scrollMargin.top)}),this.scrollBarH.on("scroll",function(A){y.$scrollAnimation||y.session.setScrollLeft(A.data-y.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new w(this.container,this.$textLayer.MAX_CHUNK_LENGTH),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(A){y.updateCharacterSize(),y.onResize(!0,y.gutterWidth,y.$size.width,y.$size.height),y._signal("changeCharacterSize",A)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),u.resetOptions(this),u._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,i.implement(this,_),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(k){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=k,k&&this.scrollMargin.top&&k.getScrollTop()<=0&&k.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(k),this.$markerBack.setSession(k),this.$markerFront.setSession(k),this.$gutterLayer.setSession(k),this.$textLayer.setSession(k),k&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(k,S,y){if(S===void 0&&(S=1/0),this.$changedLines?(this.$changedLines.firstRow>k&&(this.$changedLines.firstRow=k),this.$changedLines.lastRow<S&&(this.$changedLines.lastRow=S)):this.$changedLines={firstRow:k,lastRow:S},this.$changedLines.lastRow<this.layerConfig.firstRow)if(y)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(k){k?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(k,S,y,E){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=k?1:0;var A=this.container;E||(E=A.clientHeight||A.scrollHeight),y||(y=A.clientWidth||A.scrollWidth);var O=this.$updateCachedSize(k,S,y,E);if(!this.$size.scrollerHeight||!y&&!E)return this.resizing=0;k&&(this.$gutterLayer.$padding=null),k?this.$renderChanges(O|this.$changes,!0):this.$loop.schedule(O|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},this.$updateCachedSize=function(k,S,y,E){E-=this.$extraHeight||0;var A=0,O=this.$size,R={width:O.width,height:O.height,scrollerHeight:O.scrollerHeight,scrollerWidth:O.scrollerWidth};if(E&&(k||O.height!=E)&&(O.height=E,A|=this.CHANGE_SIZE,O.scrollerHeight=O.height,this.$horizScroll&&(O.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(O.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",A=A|this.CHANGE_SCROLL),y&&(k||O.width!=y)){A|=this.CHANGE_SIZE,O.width=y,S==null&&(S=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=S,o.setStyle(this.scrollBarH.element.style,"left",S+"px"),o.setStyle(this.scroller.style,"left",S+this.margin.left+"px"),O.scrollerWidth=Math.max(0,y-S-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var M=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",M),o.setStyle(this.scroller.style,"right",M),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(O.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||k)&&(A|=this.CHANGE_FULL)}return O.$dirty=!y||!E,A&&this._signal("resize",R),A},this.onGutterResize=function(k){var S=this.$showGutter?k:0;S!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,S,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var k=this.$size.scrollerWidth-this.$padding*2,S=Math.floor(k/this.characterWidth);return this.session.adjustWrapLimit(S,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(k){this.setOption("animatedScroll",k)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(k){this.setOption("showInvisibles",k),this.session.$bidiHandler.setShowInvisibles(k)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(k){this.setOption("displayIndentGuides",k)},this.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},this.setHighlightIndentGuides=function(k){this.setOption("highlightIndentGuides",k)},this.setShowPrintMargin=function(k){this.setOption("showPrintMargin",k)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(k){this.setOption("printMarginColumn",k)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(k){return this.setOption("showGutter",k)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},this.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var k=o.createElement("div");k.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",k.appendChild(this.$printMarginEl),this.content.insertBefore(k,this.content.firstChild)}var S=this.$printMarginEl.style;S.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",S.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var k=this.textarea.style,S=this.$composition;if(!this.$keepTextAreaAtCursor&&!S){o.translate(this.textarea,-100,0);return}var y=this.$cursorLayer.$pixelPos;if(!!y){S&&S.markerRange&&(y=this.$cursorLayer.getPixelPosition(S.markerRange.start,!0));var E=this.layerConfig,A=y.top,O=y.left;A-=E.offset;var R=S&&S.useTextareaForIME?this.lineHeight:C?0:1;if(A<0||A>E.height-R){o.translate(this.textarea,0,0);return}var M=1,I=this.$size.height-R;if(!S)A+=this.lineHeight;else if(S.useTextareaForIME){var B=this.textarea.value;M=this.characterWidth*this.session.$getStringScreenWidth(B)[0]}else A+=this.lineHeight+2;O-=this.scrollLeft,O>this.$size.scrollerWidth-M&&(O=this.$size.scrollerWidth-M),O+=this.gutterWidth+this.margin.left,o.setStyle(k,"height",R+"px"),o.setStyle(k,"width",M+"px"),o.translate(this.textarea,Math.min(O,this.$size.scrollerWidth-M),Math.min(A,I))}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var k=this.layerConfig,S=k.lastRow,y=this.session.documentToScreenRow(S,0)*k.lineHeight;return y-this.session.getScrollTop()>k.height-k.lineHeight?S-1:S},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(k){this.$padding=k,this.$textLayer.setPadding(k),this.$cursorLayer.setPadding(k),this.$markerFront.setPadding(k),this.$markerBack.setPadding(k),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(k,S,y,E){var A=this.scrollMargin;A.top=k|0,A.bottom=S|0,A.right=E|0,A.left=y|0,A.v=A.top+A.bottom,A.h=A.left+A.right,A.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-A.top),this.updateFull()},this.setMargin=function(k,S,y,E){var A=this.margin;A.top=k|0,A.bottom=S|0,A.right=E|0,A.left=y|0,A.v=A.top+A.bottom,A.h=A.left+A.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(k){this.setOption("hScrollBarAlwaysVisible",k)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(k){this.setOption("vScrollBarAlwaysVisible",k)},this.$updateScrollBarV=function(){var k=this.layerConfig.maxHeight,S=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(k-=(S-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>k-S&&(k=this.scrollTop+S,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(k+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(k,S){if(this.$changes&&(k|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!k&&!S){this.$changes|=k;return}if(this.$size.$dirty)return this.$changes|=k,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",k),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var y=this.layerConfig;if(k&this.CHANGE_FULL||k&this.CHANGE_SIZE||k&this.CHANGE_TEXT||k&this.CHANGE_LINES||k&this.CHANGE_SCROLL||k&this.CHANGE_H_SCROLL){if(k|=this.$computeLayerConfig()|this.$loop.clear(),y.firstRow!=this.layerConfig.firstRow&&y.firstRowScreen==this.layerConfig.firstRowScreen){var E=this.scrollTop+(y.firstRow-this.layerConfig.firstRow)*this.lineHeight;E>0&&(this.scrollTop=E,k=k|this.CHANGE_SCROLL,k|=this.$computeLayerConfig()|this.$loop.clear())}y=this.layerConfig,this.$updateScrollBarV(),k&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-y.offset);var A=y.width+2*this.$padding+"px",O=y.minHeight+"px";o.setStyle(this.content.style,"width",A),o.setStyle(this.content.style,"height",O)}if(k&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-y.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),k&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}if(k&this.CHANGE_SCROLL){this.$changedLines=null,k&this.CHANGE_TEXT||k&this.CHANGE_LINES?this.$textLayer.update(y):this.$textLayer.scrollLines(y),this.$showGutter&&(k&this.CHANGE_GUTTER||k&this.CHANGE_LINES?this.$gutterLayer.update(y):this.$gutterLayer.scrollLines(y)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}k&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):k&this.CHANGE_LINES?((this.$updateLines()||k&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):k&this.CHANGE_TEXT||k&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):k&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)),k&this.CHANGE_CURSOR&&(this.$cursorLayer.update(y),this.$moveTextAreaToCursor()),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(y),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(y),this._signal("afterRender",k)},this.$autosize=function(){var k=this.session.getScreenLength()*this.lineHeight,S=this.$maxLines*this.lineHeight,y=Math.min(S,Math.max((this.$minLines||1)*this.lineHeight,k))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(y+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&y>this.$maxPixelHeight&&(y=this.$maxPixelHeight);var E=y<=2*this.lineHeight,A=!E&&k>S;if(y!=this.desiredHeight||this.$size.height!=this.desiredHeight||A!=this.$vScroll){A!=this.$vScroll&&(this.$vScroll=A,this.scrollBarV.setVisible(A));var O=this.container.clientWidth;this.container.style.height=y+"px",this.$updateCachedSize(!0,this.$gutterWidth,O,y),this.desiredHeight=y,this._signal("autosize")}},this.$computeLayerConfig=function(){var k=this.session,S=this.$size,y=S.height<=2*this.lineHeight,E=this.session.getScreenLength(),A=E*this.lineHeight,O=this.$getLongestLine(),R=!y&&(this.$hScrollBarAlwaysVisible||S.scrollerWidth-O-2*this.$padding<0),M=this.$horizScroll!==R;M&&(this.$horizScroll=R,this.scrollBarH.setVisible(R));var I=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var B=S.scrollerHeight+this.lineHeight,W=!this.$maxLines&&this.$scrollPastEnd?(S.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;A+=W;var F=this.scrollMargin;this.session.setScrollTop(Math.max(-F.top,Math.min(this.scrollTop,A-S.scrollerHeight+F.bottom))),this.session.setScrollLeft(Math.max(-F.left,Math.min(this.scrollLeft,O+2*this.$padding-S.scrollerWidth+F.right)));var j=!y&&(this.$vScrollBarAlwaysVisible||S.scrollerHeight-A+W<0||this.scrollTop>F.top),J=I!==j;J&&(this.$vScroll=j,this.scrollBarV.setVisible(j));var Y=this.scrollTop%this.lineHeight,U=Math.ceil(B/this.lineHeight)-1,G=Math.max(0,Math.round((this.scrollTop-Y)/this.lineHeight)),X=G+U,Z,te,ie=this.lineHeight;G=k.screenToDocumentRow(G,0);var de=k.getFoldLine(G);de&&(G=de.start.row),Z=k.documentToScreenRow(G,0),te=k.getRowLength(G)*ie,X=Math.min(k.screenToDocumentRow(X,0),k.getLength()-1),B=S.scrollerHeight+k.getRowLength(X)*ie+te,Y=this.scrollTop-Z*ie;var ae=0;return(this.layerConfig.width!=O||M)&&(ae=this.CHANGE_H_SCROLL),(M||J)&&(ae|=this.$updateCachedSize(!0,this.gutterWidth,S.width,S.height),this._signal("scrollbarVisibilityChanged"),J&&(O=this.$getLongestLine())),this.layerConfig={width:O,padding:this.$padding,firstRow:G,firstRowScreen:Z,lastRow:X,lineHeight:ie,characterWidth:this.characterWidth,minHeight:B,maxHeight:A,offset:Y,gutterOffset:ie?Math.max(0,Math.ceil((Y+S.height-S.scrollerHeight)/ie)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(O-this.$padding),ae},this.$updateLines=function(){if(!!this.$changedLines){var k=this.$changedLines.firstRow,S=this.$changedLines.lastRow;this.$changedLines=null;var y=this.layerConfig;if(!(k>y.lastRow+1)&&!(S<y.firstRow)){if(S===1/0){this.$showGutter&&this.$gutterLayer.update(y),this.$textLayer.update(y);return}return this.$textLayer.updateLines(y,k,S),!0}}},this.$getLongestLine=function(){var k=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(k+=1),this.$textLayer&&k>this.$textLayer.MAX_LINE_LENGTH&&(k=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(k*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(k,S){this.$gutterLayer.addGutterDecoration(k,S)},this.removeGutterDecoration=function(k,S){this.$gutterLayer.removeGutterDecoration(k,S)},this.updateBreakpoints=function(k){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(k){this.$gutterLayer.setAnnotations(k),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(k,S,y){this.scrollCursorIntoView(k,y),this.scrollCursorIntoView(S,y)},this.scrollCursorIntoView=function(k,S,y){if(this.$size.scrollerHeight!==0){var E=this.$cursorLayer.getPixelPosition(k),A=E.left,O=E.top,R=y&&y.top||0,M=y&&y.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var I=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;I+R>O?(S&&I+R>O+this.lineHeight&&(O-=S*this.$size.scrollerHeight),O===0&&(O=-this.scrollMargin.top),this.session.setScrollTop(O)):I+this.$size.scrollerHeight-M<O+this.lineHeight&&(S&&I+this.$size.scrollerHeight-M<O-this.lineHeight&&(O+=S*this.$size.scrollerHeight),this.session.setScrollTop(O+this.lineHeight+M-this.$size.scrollerHeight));var B=this.scrollLeft;B>A?(A<this.$padding+2*this.layerConfig.characterWidth&&(A=-this.scrollMargin.left),this.session.setScrollLeft(A)):B+this.$size.scrollerWidth<A+this.characterWidth?this.session.setScrollLeft(Math.round(A+this.characterWidth-this.$size.scrollerWidth)):B<=this.$padding&&A-B<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(k){this.session.setScrollTop(k*this.lineHeight)},this.alignCursor=function(k,S){typeof k=="number"&&(k={row:k,column:0});var y=this.$cursorLayer.getPixelPosition(k),E=this.$size.scrollerHeight-this.lineHeight,A=y.top-E*(S||0);return this.session.setScrollTop(A),A},this.STEPS=8,this.$calcSteps=function(k,S){var y=0,E=this.STEPS,A=[],O=function(R,M,I){return I*(Math.pow(R-1,3)+1)+M};for(y=0;y<E;++y)A.push(O(y/this.STEPS,k,S-k));return A},this.scrollToLine=function(k,S,y,E){var A=this.$cursorLayer.getPixelPosition({row:k,column:0}),O=A.top;S&&(O-=this.$size.scrollerHeight/2);var R=this.scrollTop;this.session.setScrollTop(O),y!==!1&&this.animateScrolling(R,E)},this.animateScrolling=function(k,S){var y=this.scrollTop;if(!this.$animatedScroll)return;var E=this;if(k==y)return;if(this.$scrollAnimation){var A=this.$scrollAnimation.steps;if(A.length&&(k=A[0],k==y))return}var O=E.$calcSteps(k,y);this.$scrollAnimation={from:k,to:y,steps:O},clearInterval(this.$timer),E.session.setScrollTop(O.shift()),E.session.$scrollTop=y;function R(){E.$timer=clearInterval(E.$timer),E.$scrollAnimation=null,E.$stopAnimation=!1,S&&S()}this.$timer=setInterval(function(){if(E.$stopAnimation){R();return}if(!E.session)return clearInterval(E.$timer);O.length?(E.session.setScrollTop(O.shift()),E.session.$scrollTop=y):y!=null?(E.session.$scrollTop=-1,E.session.setScrollTop(y),y=null):R()},10)},this.scrollToY=function(k){this.scrollTop!==k&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=k)},this.scrollToX=function(k){this.scrollLeft!==k&&(this.scrollLeft=k),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(k,S){this.session.setScrollTop(S),this.session.setScrollLeft(k)},this.scrollBy=function(k,S){S&&this.session.setScrollTop(this.session.getScrollTop()+S),k&&this.session.setScrollLeft(this.session.getScrollLeft()+k)},this.isScrollableBy=function(k,S){if(S<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||S>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||k<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||k>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(k,S){var y;if(this.$hasCssTransforms){y={top:0,left:0};var E=this.$fontMetrics.transformCoordinates([k,S]);k=E[1]-this.gutterWidth-this.margin.left,S=E[0]}else y=this.scroller.getBoundingClientRect();var A=k+this.scrollLeft-y.left-this.$padding,O=A/this.characterWidth,R=Math.floor((S+this.scrollTop-y.top)/this.lineHeight),M=this.$blockCursor?Math.floor(O):Math.round(O);return{row:R,column:M,side:O-M>0?1:-1,offsetX:A}},this.screenToTextCoordinates=function(k,S){var y;if(this.$hasCssTransforms){y={top:0,left:0};var E=this.$fontMetrics.transformCoordinates([k,S]);k=E[1]-this.gutterWidth-this.margin.left,S=E[0]}else y=this.scroller.getBoundingClientRect();var A=k+this.scrollLeft-y.left-this.$padding,O=A/this.characterWidth,R=this.$blockCursor?Math.floor(O):Math.round(O),M=Math.floor((S+this.scrollTop-y.top)/this.lineHeight);return this.session.screenToDocumentPosition(M,Math.max(R,0),A)},this.textToScreenCoordinates=function(k,S){var y=this.scroller.getBoundingClientRect(),E=this.session.documentToScreenPosition(k,S),A=this.$padding+(this.session.$bidiHandler.isBidiRow(E.row,k)?this.session.$bidiHandler.getPosLeft(E.column):Math.round(E.column*this.characterWidth)),O=E.row*this.lineHeight;return{pageX:y.left+A-this.scrollLeft,pageY:y.top+O-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(k){this.$composition=k,k.cssText||(k.cssText=this.textarea.style.cssText),k.useTextareaForIME==null&&(k.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):k.markerId=this.session.addMarker(k.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(k){var S=this.session.selection.cursor;this.addToken(k,"composition_placeholder",S.row,S.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(!!this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var k=this.session.selection.cursor;this.removeExtraToken(k.row,k.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(k,S,y,E){var A=this.session;A.bgTokenizer.lines[y]=null;var O={type:S,value:k},R=A.getTokens(y);if(E==null)R.push(O);else for(var M=0,I=0;I<R.length;I++){var B=R[I];if(M+=B.value.length,E<=M){var W=B.value.length-(M-E),F=B.value.slice(0,W),j=B.value.slice(W);R.splice(I,1,{type:B.type,value:F},O,{type:B.type,value:j});break}}this.updateLines(y,y)},this.removeExtraToken=function(k,S){this.updateLines(k,k)},this.setTheme=function(k,S){var y=this;if(this.$themeId=k,y._dispatchEvent("themeChange",{theme:k}),!k||typeof k=="string"){var E=k||this.$options.theme.initialValue;u.loadModule(["theme",E],A)}else A(k);function A(O){if(y.$themeId!=k)return S&&S();if(!O||!O.cssClass)throw new Error("couldn't load module "+k+" or it didn't call define");O.$id&&(y.$themeId=O.$id),o.importCssString(O.cssText,O.cssClass,y.container),y.theme&&o.removeCssClass(y.container,y.theme.cssClass);var R="padding"in O?O.padding:"padding"in(y.theme||{})?4:y.$padding;y.$padding&&R!=y.$padding&&y.setPadding(R),y.$theme=O.cssClass,y.theme=O,o.addCssClass(y.container,O.cssClass),o.setCssClass(y.container,"ace_dark",O.isDark),y.$size&&(y.$size.width=0,y.$updateSizeAsync()),y._dispatchEvent("themeLoaded",{theme:O}),S&&S()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(k,S){o.setCssClass(this.container,k,S!==!1)},this.unsetStyle=function(k){o.removeCssClass(this.container,k)},this.setCursorStyle=function(k){o.setStyle(this.scroller.style,"cursor",k)},this.setMouseCursor=function(k){o.setStyle(this.scroller.style,"cursor",k)},this.attachToShadowRoot=function(){o.importCssString($,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""},this.$updateCustomScrollbar=function(k){var S=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,k===!0?(this.scrollBarV=new g(this.container,this),this.scrollBarH=new m(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(y){S.$scrollAnimation||S.session.setScrollTop(y.data-S.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(y){S.$scrollAnimation||S.session.setScrollLeft(y.data-S.scrollMargin.left)}),this.$scrollDecorator=new x(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new p(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener("scroll",function(y){S.$scrollAnimation||S.session.setScrollTop(y.data-S.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(y){S.$scrollAnimation||S.session.setScrollLeft(y.data-S.scrollMargin.left)}))}}).call(T.prototype),u.defineOptions(T.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(k){this.$textLayer.setShowInvisibles(k)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(k){typeof k=="number"&&(this.$printMarginColumn=k),this.$showPrintMargin=!!k,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(k){this.$gutter.style.display=k?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(k){o.setCssClass(this.$gutter,"ace_fade-fold-widgets",k)},initialValue:!1},showFoldWidgets:{set:function(k){this.$gutterLayer.setShowFoldWidgets(k),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(k){this.$textLayer.setDisplayIndentGuides(k)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(k){this.$textLayer.setHighlightIndentGuides(k)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(k){this.$gutterLayer.setHighlightGutterLine(k),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(k){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(k){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(k){typeof k=="number"&&(k=k+"px"),this.container.style.fontSize=k,this.updateFontSize()},initialValue:12},fontFamily:{set:function(k){this.container.style.fontFamily=k,this.updateFontSize()}},maxLines:{set:function(k){this.updateFull()}},minLines:{set:function(k){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(k){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(k){k=+k||0,this.$scrollPastEnd!=k&&(this.$scrollPastEnd=k,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(k){this.$gutterLayer.$fixedWidth=!!k,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(k){this.$updateCustomScrollbar(k)},initialValue:!1},theme:{set:function(k){this.setTheme(k)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),r.VirtualRenderer=T}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,r,s){var i=n("../lib/oop"),o=n("../lib/net"),u=n("../lib/event_emitter").EventEmitter,l=n("../config");function f(p){var m="importScripts('"+o.qualifyURL(p)+"');";try{return new Blob([m],{type:"application/javascript"})}catch{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,v=new g;return v.append(m),v.getBlob("application/javascript")}}function a(p){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(l.get("loadWorkerFromBlob")){var m=f(p),g=window.URL||window.webkitURL,v=g.createObjectURL(m);return new Worker(v)}return new Worker(p)}var c=function(p){p.postMessage||(p=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=p,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,u),this.$createWorkerFromOldConfig=function(p,m,g,v,w){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),l.get("packaged")||!n.toUrl)v=v||l.moduleUrl(m,"worker");else{var _=this.$normalizePath;v=v||_(n.toUrl("ace/worker/worker.js",null,"_"));var $={};p.forEach(function(x){$[x]=_(n.toUrl(x,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=a(v),w&&this.send("importScripts",w),this.$worker.postMessage({init:!0,tlns:$,module:m,classname:g}),this.$worker},this.onMessage=function(p){var m=p.data;switch(m.type){case"event":this._signal(m.name,{data:m.data});break;case"call":var g=this.callbacks[m.id];g&&(g(m.data),delete this.callbacks[m.id]);break;case"error":this.reportError(m.data);break;case"log":window.console&&console.log&&console.log.apply(console,m.data);break}},this.reportError=function(p){window.console&&console.error&&console.error(p)},this.$normalizePath=function(p){return o.qualifyURL(p)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(p,m){this.$worker.postMessage({command:p,args:m})},this.call=function(p,m,g){if(g){var v=this.callbackId++;this.callbacks[v]=g,m.push(v)}this.send(p,m)},this.emit=function(p,m){try{m.data&&m.data.err&&(m.data.err={message:m.data.err.message,stack:m.data.err.stack,code:m.data.err.code}),this.$worker&&this.$worker.postMessage({event:p,data:{data:m.data}})}catch(g){console.error(g.stack)}},this.attachToDocument=function(p){this.$doc&&this.terminate(),this.$doc=p,this.call("setValue",[p.getValue()]),p.on("change",this.changeListener,!0)},this.changeListener=function(p){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),p.action=="insert"?this.deltaQueue.push(p.start,p.lines):this.deltaQueue.push(p.start,p.end)},this.$sendDeltaQueue=function(){var p=this.deltaQueue;!p||(this.deltaQueue=null,p.length>50&&p.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:p}))}}).call(c.prototype);var h=function(p,m,g){var v=null,w=!1,_=Object.create(u),$=[],x=new c({messageBuffer:$,terminate:function(){},postMessage:function(C){$.push(C),v&&(w?setTimeout(b):b())}});x.setEmitSync=function(C){w=C};var b=function(){var C=$.shift();C.command?v[C.command].apply(v,C.args):C.event&&_._signal(C.event,C.data)};return _.postMessage=function(C){x.onMessage({data:C})},_.callback=function(C,T){this.postMessage({type:"call",id:T,data:C})},_.emit=function(C,T){this.postMessage({type:"event",name:C,data:T})},l.loadModule(["worker",m],function(C){for(v=new C[g](_);$.length;)b()}),x};r.UIWorkerClient=h,r.WorkerClient=c,r.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,s){var i=n("./range").Range,o=n("./lib/event_emitter").EventEmitter,u=n("./lib/oop"),l=function(f,a,c,h,p,m){var g=this;this.length=a,this.session=f,this.doc=f.getDocument(),this.mainClass=p,this.othersClass=m,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=h,this.$onCursorChange=function(){setTimeout(function(){g.onCursorChange()})},this.$pos=c;var v=f.getUndoManager().$undoStack||f.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),f.selection.on("changeCursor",this.$onCursorChange)};(function(){u.implement(this,o),this.setup=function(){var f=this,a=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=a.createAnchor(this.$pos.row,this.$pos.column);var h=this.pos;h.$insertRight=!0,h.detach(),h.markerId=c.addMarker(new i(h.row,h.column,h.row,h.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(p){var m=a.createAnchor(p.row,p.column);m.$insertRight=!0,m.detach(),f.others.push(m)}),c.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var f=this.session,a=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=f.addMarker(new i(c.row,c.column,c.row,c.column+a.length),a.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(!!this.othersActive){this.othersActive=!1;for(var f=0;f<this.others.length;f++)this.session.removeMarker(this.others[f].markerId)}},this.onUpdate=function(f){if(this.$updating)return this.updateAnchors(f);var a=f;if(a.start.row===a.end.row&&a.start.row===this.pos.row){this.$updating=!0;var c=f.action==="insert"?a.end.column-a.start.column:a.start.column-a.end.column,h=a.start.column>=this.pos.column&&a.start.column<=this.pos.column+this.length+1,p=a.start.column-this.pos.column;if(this.updateAnchors(f),h&&(this.length+=c),h&&!this.session.$fromUndo){if(f.action==="insert")for(var m=this.others.length-1;m>=0;m--){var g=this.others[m],v={row:g.row,column:g.column+p};this.doc.insertMergedLines(v,f.lines)}else if(f.action==="remove")for(var m=this.others.length-1;m>=0;m--){var g=this.others[m],v={row:g.row,column:g.column+p};this.doc.remove(new i(v.row,v.column,v.row,v.column-c))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(f){this.pos.onChange(f);for(var a=this.others.length;a--;)this.others[a].onChange(f);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var f=this,a=this.session,c=function(p,m){a.removeMarker(p.markerId),p.markerId=a.addMarker(new i(p.row,p.column,p.row,p.column+f.length),m,null,!1)};c(this.pos,this.mainClass);for(var h=this.others.length;h--;)c(this.others[h],this.othersClass)}},this.onCursorChange=function(f){if(!(this.$updating||!this.session)){var a=this.session.selection.getCursor();a.row===this.pos.row&&a.column>=this.pos.column&&a.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",f)):(this.hideOtherMarkers(),this._emit("cursorLeave",f))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var f=this.session.getUndoManager(),a=(f.$undoStack||f.$undostack).length-this.$undoStackDepth,c=0;c<a;c++)f.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(l.prototype),r.PlaceHolder=l}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,s){var i=n("../lib/event"),o=n("../lib/useragent");function u(f,a){return f.row==a.row&&f.column==a.column}function l(f){var a=f.domEvent,c=a.altKey,h=a.shiftKey,p=a.ctrlKey,m=f.getAccelKey(),g=f.getButton();if(p&&o.isMac&&(g=a.button),f.editor.inMultiSelectMode&&g==2){f.editor.textInput.onContextMenu(f.domEvent);return}if(!p&&!c&&!m){g===0&&f.editor.inMultiSelectMode&&f.editor.exitMultiSelectMode();return}if(g===0){var v=f.editor,w=v.selection,_=v.inMultiSelectMode,$=f.getDocumentPosition(),x=w.getCursor(),b=f.inSelection()||w.isEmpty()&&u($,x),C=f.x,T=f.y,k=function(J){C=J.clientX,T=J.clientY},S=v.session,y=v.renderer.pixelToScreenCoordinates(C,T),E=y,A;if(v.$mouseHandler.$enableJumpToDef)p&&c||m&&c?A=h?"block":"add":c&&v.$blockSelectEnabled&&(A="block");else if(m&&!c){if(A="add",!_&&h)return}else c&&v.$blockSelectEnabled&&(A="block");if(A&&o.isMac&&a.ctrlKey&&v.$mouseHandler.cancelContextMenu(),A=="add"){if(!_&&b)return;if(!_){var O=w.toOrientedRange();v.addSelectionMarker(O)}var R=w.rangeList.rangeAtPoint($);v.inVirtualSelectionMode=!0,h&&(R=null,O=w.ranges[0]||O,v.removeSelectionMarker(O)),v.once("mouseup",function(){var J=w.toOrientedRange();R&&J.isEmpty()&&u(R.cursor,J.cursor)?w.substractPoint(J.cursor):(h?w.substractPoint(O.cursor):O&&(v.removeSelectionMarker(O),w.addRange(O)),w.addRange(J)),v.inVirtualSelectionMode=!1})}else if(A=="block"){f.stop(),v.inVirtualSelectionMode=!0;var M,I=[],B=function(){var J=v.renderer.pixelToScreenCoordinates(C,T),Y=S.screenToDocumentPosition(J.row,J.column,J.offsetX);u(E,J)&&u(Y,w.lead)||(E=J,v.selection.moveToPosition(Y),v.renderer.scrollCursorIntoView(),v.removeSelectionMarkers(I),I=w.rectangularRangeBlock(E,y),v.$mouseHandler.$clickSelection&&I.length==1&&I[0].isEmpty()&&(I[0]=v.$mouseHandler.$clickSelection.clone()),I.forEach(v.addSelectionMarker,v),v.updateSelectionMarkers())};_&&!m?w.toSingleRange():!_&&m&&(M=w.toOrientedRange(),v.addSelectionMarker(M)),h?y=S.documentToScreenPosition(w.lead):w.moveToPosition($),E={row:-1,column:-1};var W=function(J){B(),clearInterval(j),v.removeSelectionMarkers(I),I.length||(I=[w.toOrientedRange()]),M&&(v.removeSelectionMarker(M),w.toSingleRange(M));for(var Y=0;Y<I.length;Y++)w.addRange(I[Y]);v.inVirtualSelectionMode=!1,v.$mouseHandler.$clickSelection=null},F=B;i.capture(v.container,k,W);var j=setInterval(function(){F()},20);return f.preventDefault()}}}r.onMouseDown=l}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,r,s){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(o){o.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(o){o.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(o){o.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(o){o.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(o){o.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(o){o.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(o){o.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(o){o.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(o){o.multiSelect.rangeCount>1?o.multiSelect.joinSelections():o.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(o){o.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(o){o.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(o){o.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(o){o.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(o){return o&&o.inMultiSelectMode}}];var i=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new i(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,r,s){var i=n("./range_list").RangeList,o=n("./range").Range,u=n("./selection").Selection,l=n("./mouse/multi_select_handler").onMouseDown,f=n("./lib/event"),a=n("./lib/lang"),c=n("./commands/multi_select_commands");r.commands=c.defaultCommands.concat(c.multiSelectCommands);var h=n("./search").Search,p=new h;function m(x,b,C){return p.$options.wrap=!0,p.$options.needle=b,p.$options.backwards=C==-1,p.find(x)}var g=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(x,b){if(!!x){if(!this.inMultiSelectMode&&this.rangeCount===0){var C=this.toOrientedRange();if(this.rangeList.add(C),this.rangeList.add(x),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),b||this.fromOrientedRange(x);this.rangeList.removeAll(),this.rangeList.add(C),this.$onAddRange(C)}x.cursor||(x.cursor=x.end);var T=this.rangeList.add(x);return this.$onAddRange(x),T.length&&this.$onRemoveRange(T),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),b||this.fromOrientedRange(x)}},this.toSingleRange=function(x){x=x||this.ranges[0];var b=this.rangeList.removeAll();b.length&&this.$onRemoveRange(b),x&&this.fromOrientedRange(x)},this.substractPoint=function(x){var b=this.rangeList.substractPoint(x);if(b)return this.$onRemoveRange(b),b[0]},this.mergeOverlappingRanges=function(){var x=this.rangeList.merge();x.length&&this.$onRemoveRange(x)},this.$onAddRange=function(x){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(x),this._signal("addRange",{range:x})},this.$onRemoveRange=function(x){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var b=this.rangeList.ranges.pop();x.push(b),this.rangeCount=0}for(var C=x.length;C--;){var T=this.ranges.indexOf(x[C]);this.ranges.splice(T,1)}this._signal("removeRange",{ranges:x}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),b=b||this.ranges[0],b&&!b.isEqual(this.getRange())&&this.fromOrientedRange(b)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var x=this.ranges.length?this.ranges:[this.getRange()],b=[],C=0;C<x.length;C++){var T=x[C],k=T.start.row,S=T.end.row;if(k===S)b.push(T.clone());else{for(b.push(new o(k,T.start.column,k,this.session.getLine(k).length));++k<S;)b.push(this.getLineRange(k,!0));b.push(new o(S,0,S,T.end.column))}C==0&&!this.isBackwards()&&(b=b.reverse())}this.toSingleRange();for(var C=b.length;C--;)this.addRange(b[C])},this.joinSelections=function(){var x=this.rangeList.ranges,b=x[x.length-1],C=o.fromPoints(x[0].start,b.end);this.toSingleRange(),this.setSelectionRange(C,b.cursor==b.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var x=this.rangeList.ranges,b=x[x.length-1],C=o.fromPoints(x[0].start,b.end);this.toSingleRange(),this.setSelectionRange(C,b.cursor==b.start)}else{var T=this.session.documentToScreenPosition(this.cursor),k=this.session.documentToScreenPosition(this.anchor),S=this.rectangularRangeBlock(T,k);S.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(x,b,C){var T=[],k=x.column<b.column;if(k)var S=x.column,y=b.column,E=x.offsetX,A=b.offsetX;else var S=b.column,y=x.column,E=b.offsetX,A=x.offsetX;var O=x.row<b.row;if(O)var R=x.row,M=b.row;else var R=b.row,M=x.row;S<0&&(S=0),R<0&&(R=0),R==M&&(C=!0);for(var I,B=R;B<=M;B++){var W=o.fromPoints(this.session.screenToDocumentPosition(B,S,E),this.session.screenToDocumentPosition(B,y,A));if(W.isEmpty()){if(I&&w(W.end,I))break;I=W.end}W.cursor=k?W.start:W.end,T.push(W)}if(O&&T.reverse(),!C){for(var F=T.length-1;T[F].isEmpty()&&F>0;)F--;if(F>0)for(var j=0;T[j].isEmpty();)j++;for(var J=F;J>=j;J--)T[J].isEmpty()&&T.splice(J,1)}return T}}.call(u.prototype);var v=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(x){x.cursor||(x.cursor=x.end);var b=this.getSelectionStyle();return x.marker=this.session.addMarker(x,"ace_selection",b),this.session.$selectionMarkers.push(x),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,x},this.removeSelectionMarker=function(x){if(!!x.marker){this.session.removeMarker(x.marker);var b=this.session.$selectionMarkers.indexOf(x);b!=-1&&this.session.$selectionMarkers.splice(b,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(x){for(var b=this.session.$selectionMarkers,C=x.length;C--;){var T=x[C];if(!!T.marker){this.session.removeMarker(T.marker);var k=b.indexOf(T);k!=-1&&b.splice(k,1)}}this.session.selectionMarkerCount=b.length},this.$onAddRange=function(x){this.addSelectionMarker(x.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(x){this.removeSelectionMarkers(x.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(x){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(x){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(x){var b=x.command,C=x.editor;if(!!C.multiSelect){if(b.multiSelectAction)b.multiSelectAction=="forEach"?T=C.forEachSelection(b,x.args):b.multiSelectAction=="forEachLine"?T=C.forEachSelection(b,x.args,!0):b.multiSelectAction=="single"?(C.exitMultiSelectMode(),T=b.exec(C,x.args||{})):T=b.multiSelectAction(C,x.args||{});else{var T=b.exec(C,x.args||{});C.multiSelect.addRange(C.multiSelect.toOrientedRange()),C.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function(x,b,C){if(!this.inVirtualSelectionMode){var T=C&&C.keepOrder,k=C==!0||C&&C.$byLines,S=this.session,y=this.selection,E=y.rangeList,A=(T?y:E).ranges,O;if(!A.length)return x.exec?x.exec(this,b||{}):x(this,b||{});var R=y._eventRegistry;y._eventRegistry={};var M=new u(S);this.inVirtualSelectionMode=!0;for(var I=A.length;I--;){if(k)for(;I>0&&A[I].start.row==A[I-1].end.row;)I--;M.fromOrientedRange(A[I]),M.index=I,this.selection=S.selection=M;var B=x.exec?x.exec(this,b||{}):x(this,b||{});!O&&B!==void 0&&(O=B),M.toOrientedRange(A[I])}M.detach(),this.selection=S.selection=y,this.inVirtualSelectionMode=!1,y._eventRegistry=R,y.mergeOverlappingRanges(),y.ranges[0]&&y.fromOrientedRange(y.ranges[0]);var W=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),W&&W.from==W.to&&this.renderer.animateScrolling(W.from),O}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var x="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var b=this.multiSelect.rangeList.ranges,C=[],T=0;T<b.length;T++)C.push(this.session.getTextRange(b[T]));var k=this.session.getDocument().getNewLineCharacter();x=C.join(k),x.length==(C.length-1)*k.length&&(x="")}else this.selection.isEmpty()||(x=this.session.getTextRange(this.getSelectionRange()));return x},this.$checkMultiselectChange=function(x,b){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var C=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&b==this.multiSelect.anchor)return;var T=b==this.multiSelect.anchor?C.cursor==C.start?C.end:C.start:C.cursor;T.row!=b.row||this.session.$clipPositionToDocument(T.row,T.column).column!=b.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(x,b,C){if(b=b||{},b.needle=x||b.needle,b.needle==null){var T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();b.needle=this.session.getTextRange(T)}this.$search.set(b);var k=this.$search.findAll(this.session);if(!k.length)return 0;var S=this.multiSelect;C||S.toSingleRange(k[0]);for(var y=k.length;y--;)S.addRange(k[y],!0);return T&&S.rangeList.rangeAtPoint(T.start)&&S.addRange(T,!0),k.length},this.selectMoreLines=function(x,b){var C=this.selection.toOrientedRange(),T=C.cursor==C.end,k=this.session.documentToScreenPosition(C.cursor);this.selection.$desiredColumn&&(k.column=this.selection.$desiredColumn);var S=this.session.screenToDocumentPosition(k.row+x,k.column);if(C.isEmpty())var E=S;else var y=this.session.documentToScreenPosition(T?C.end:C.start),E=this.session.screenToDocumentPosition(y.row+x,y.column);if(T){var A=o.fromPoints(S,E);A.cursor=A.start}else{var A=o.fromPoints(E,S);A.cursor=A.end}if(A.desiredColumn=k.column,!this.selection.inMultiSelectMode)this.selection.addRange(C);else if(b)var O=C.cursor;this.selection.addRange(A),O&&this.selection.substractPoint(O)},this.transposeSelections=function(x){for(var b=this.session,C=b.multiSelect,T=C.ranges,k=T.length;k--;){var S=T[k];if(S.isEmpty()){var y=b.getWordRange(S.start.row,S.start.column);S.start.row=y.start.row,S.start.column=y.start.column,S.end.row=y.end.row,S.end.column=y.end.column}}C.mergeOverlappingRanges();for(var E=[],k=T.length;k--;){var S=T[k];E.unshift(b.getTextRange(S))}x<0?E.unshift(E.pop()):E.push(E.shift());for(var k=T.length;k--;){var S=T[k],y=S.clone();b.replace(S,E[k]),S.start.row=y.start.row,S.start.column=y.start.column}C.fromOrientedRange(C.ranges[0])},this.selectMore=function(x,b,C){var T=this.session,k=T.multiSelect,S=k.toOrientedRange();if(!(S.isEmpty()&&(S=T.getWordRange(S.start.row,S.start.column),S.cursor=x==-1?S.start:S.end,this.multiSelect.addRange(S),C))){var y=T.getTextRange(S),E=m(T,y,x);E&&(E.cursor=x==-1?E.start:E.end,this.session.unfold(E),this.multiSelect.addRange(E),this.renderer.scrollCursorIntoView(null,.5)),b&&this.multiSelect.substractPoint(S.cursor)}},this.alignCursors=function(){var x=this.session,b=x.multiSelect,C=b.ranges,T=-1,k=C.filter(function(F){if(F.cursor.row==T)return!0;T=F.cursor.row});if(!C.length||k.length==C.length-1){var S=this.selection.getRange(),y=S.start.row,E=S.end.row,A=y==E;if(A){var O=this.session.getLength(),R;do R=this.session.getLine(E);while(/[=:]/.test(R)&&++E<O);do R=this.session.getLine(y);while(/[=:]/.test(R)&&--y>0);y<0&&(y=0),E>=O&&(E=O-1)}var M=this.session.removeFullLines(y,E);M=this.$reAlignText(M,A),this.session.insert({row:y,column:0},M.join(`
853
+ `)+`
854
+ `),A||(S.start.column=0,S.end.column=M[M.length-1].length),this.selection.setRange(S)}else{k.forEach(function(F){b.substractPoint(F.cursor)});var I=0,B=1/0,W=C.map(function(F){var j=F.cursor,J=x.getLine(j.row),Y=J.substr(j.column).search(/\S/g);return Y==-1&&(Y=0),j.column>I&&(I=j.column),Y<B&&(B=Y),Y});C.forEach(function(F,j){var J=F.cursor,Y=I-J.column,U=W[j]-B;Y>U?x.insert(J,a.stringRepeat(" ",Y-U)):x.remove(new o(J.row,J.column,J.row,J.column-Y+U)),F.start.column=F.end.column=I,F.start.row=F.end.row=J.row,F.cursor=F.end}),b.fromOrientedRange(C[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(x,b){var C=!0,T=!0,k,S,y;return x.map(function(M){var I=M.match(/(\s*)(.*?)(\s*)([=:].*)/);return I?k==null?(k=I[1].length,S=I[2].length,y=I[3].length,I):(k+S+y!=I[1].length+I[2].length+I[3].length&&(T=!1),k!=I[1].length&&(C=!1),k>I[1].length&&(k=I[1].length),S<I[2].length&&(S=I[2].length),y>I[3].length&&(y=I[3].length),I):[M]}).map(b?A:C?T?O:A:R);function E(M){return a.stringRepeat(" ",M)}function A(M){return M[2]?E(k)+M[2]+E(S-M[2].length+y)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function O(M){return M[2]?E(k+S-M[2].length)+M[2]+E(y)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function R(M){return M[2]?E(k)+M[2]+E(y)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}}}).call(v.prototype);function w(x,b){return x.row==b.row&&x.column==b.column}r.onSessionChange=function(x){var b=x.session;b&&!b.multiSelect&&(b.$selectionMarkers=[],b.selection.$initRangeList(),b.multiSelect=b.selection),this.multiSelect=b&&b.multiSelect;var C=x.oldSession;C&&(C.multiSelect.off("addRange",this.$onAddRange),C.multiSelect.off("removeRange",this.$onRemoveRange),C.multiSelect.off("multiSelect",this.$onMultiSelect),C.multiSelect.off("singleSelect",this.$onSingleSelect),C.multiSelect.lead.off("change",this.$checkMultiselectChange),C.multiSelect.anchor.off("change",this.$checkMultiselectChange)),b&&(b.multiSelect.on("addRange",this.$onAddRange),b.multiSelect.on("removeRange",this.$onRemoveRange),b.multiSelect.on("multiSelect",this.$onMultiSelect),b.multiSelect.on("singleSelect",this.$onSingleSelect),b.multiSelect.lead.on("change",this.$checkMultiselectChange),b.multiSelect.anchor.on("change",this.$checkMultiselectChange)),b&&this.inMultiSelectMode!=b.selection.inMultiSelectMode&&(b.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function _(x){x.$multiselectOnSessionChange||(x.$onAddRange=x.$onAddRange.bind(x),x.$onRemoveRange=x.$onRemoveRange.bind(x),x.$onMultiSelect=x.$onMultiSelect.bind(x),x.$onSingleSelect=x.$onSingleSelect.bind(x),x.$multiselectOnSessionChange=r.onSessionChange.bind(x),x.$checkMultiselectChange=x.$checkMultiselectChange.bind(x),x.$multiselectOnSessionChange(x),x.on("changeSession",x.$multiselectOnSessionChange),x.on("mousedown",l),x.commands.addCommands(c.defaultCommands),$(x))}function $(x){if(!x.textInput)return;var b=x.textInput.getElement(),C=!1;f.addListener(b,"keydown",function(k){var S=k.keyCode==18&&!(k.ctrlKey||k.shiftKey||k.metaKey);x.$blockSelectEnabled&&S?C||(x.renderer.setMouseCursor("crosshair"),C=!0):C&&T()},x),f.addListener(b,"keyup",T,x),f.addListener(b,"blur",T,x);function T(k){C&&(x.renderer.setMouseCursor(""),C=!1)}}r.MultiSelect=_,n("./config").defineOptions(v.prototype,"editor",{enableMultiselect:{set:function(x){_(this),x?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",l)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",l))},value:!0},enableBlockSelect:{set:function(x){this.$blockSelectEnabled=x},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,s){var i=n("../../range").Range,o=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(u,l,f){var a=u.getLine(f);return this.foldingStartMarker.test(a)?"start":l=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(a)?"end":""},this.getFoldWidgetRange=function(u,l,f){return null},this.indentationBlock=function(u,l,f){var a=/\S/,c=u.getLine(l),h=c.search(a);if(h!=-1){for(var p=f||c.length,m=u.getLength(),g=l,v=l;++l<m;){var w=u.getLine(l).search(a);if(w!=-1){if(w<=h){var _=u.getTokenAt(l,0);if(!_||_.type!=="string")break}v=l}}if(v>g){var $=u.getLine(v).length;return new i(g,p,v,$)}}},this.openingBracketBlock=function(u,l,f,a,c){var h={row:f,column:a+1},p=u.$findClosingBracket(l,h,c);if(!!p){var m=u.foldWidgets[p.row];return m==null&&(m=u.getFoldWidget(p.row)),m=="start"&&p.row>h.row&&(p.row--,p.column=u.getLine(p.row).length),i.fromPoints(h,p)}},this.closingBracketBlock=function(u,l,f,a,c){var h={row:f,column:a},p=u.$findOpeningBracket(l,h);if(!!p)return p.column++,h.column--,i.fromPoints(p,h)}}).call(o.prototype)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,r,s){var i=n("./lib/dom");function o(u){this.session=u,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(u){var l;return this.lineWidgets?l=this.lineWidgets[u]&&this.lineWidgets[u].rowCount||0:l=0,!this.$useWrapMode||!this.$wrapData[u]?1+l:this.$wrapData[u].length+1+l},this.$getWidgetScreenLength=function(){var u=0;return this.lineWidgets.forEach(function(l){l&&l.rowCount&&!l.hidden&&(u+=l.rowCount)}),u},this.$onChangeEditor=function(u){this.attach(u.editor)},this.attach=function(u){u&&u.widgetManager&&u.widgetManager!=this&&u.widgetManager.detach(),this.editor!=u&&(this.detach(),this.editor=u,u&&(u.widgetManager=this,u.renderer.on("beforeRender",this.measureWidgets),u.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(u){var l=this.editor;if(!!l){this.editor=null,l.widgetManager=null,l.renderer.off("beforeRender",this.measureWidgets),l.renderer.off("afterRender",this.renderWidgets);var f=this.session.lineWidgets;f&&f.forEach(function(a){a&&a.el&&a.el.parentNode&&(a._inDocument=!1,a.el.parentNode.removeChild(a.el))})}},this.updateOnFold=function(u,l){var f=l.lineWidgets;if(!(!f||!u.action)){for(var a=u.data,c=a.start.row,h=a.end.row,p=u.action=="add",m=c+1;m<h;m++)f[m]&&(f[m].hidden=p);f[h]&&(p?f[c]?f[h].hidden=p:f[c]=f[h]:(f[c]==f[h]&&(f[c]=void 0),f[h].hidden=p))}},this.updateOnChange=function(u){var l=this.session.lineWidgets;if(!!l){var f=u.start.row,a=u.end.row-f;if(a!==0)if(u.action=="remove"){var c=l.splice(f+1,a);!l[f]&&c[c.length-1]&&(l[f]=c.pop()),c.forEach(function(p){p&&this.removeLineWidget(p)},this),this.$updateRows()}else{var h=new Array(a);l[f]&&l[f].column!=null&&u.start.column>l[f].column&&f++,h.unshift(f,0),l.splice.apply(l,h),this.$updateRows()}}},this.$updateRows=function(){var u=this.session.lineWidgets;if(!!u){var l=!0;u.forEach(function(f,a){if(f)for(l=!1,f.row=a;f.$oldWidget;)f.$oldWidget.row=a,f=f.$oldWidget}),l&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(u){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var l=this.session.lineWidgets[u.row];return l&&(u.$oldWidget=l,l.el&&l.el.parentNode&&(l.el.parentNode.removeChild(l.el),l._inDocument=!1)),this.session.lineWidgets[u.row]=u,u},this.addLineWidget=function(u){if(this.$registerLineWidget(u),u.session=this.session,!this.editor)return u;var l=this.editor.renderer;u.html&&!u.el&&(u.el=i.createElement("div"),u.el.innerHTML=u.html),u.el&&(i.addCssClass(u.el,"ace_lineWidgetContainer"),u.el.style.position="absolute",u.el.style.zIndex=5,l.container.appendChild(u.el),u._inDocument=!0,u.coverGutter||(u.el.style.zIndex=3),u.pixelHeight==null&&(u.pixelHeight=u.el.offsetHeight)),u.rowCount==null&&(u.rowCount=u.pixelHeight/l.layerConfig.lineHeight);var f=this.session.getFoldAt(u.row,0);if(u.$fold=f,f){var a=this.session.lineWidgets;u.row==f.end.row&&!a[f.start.row]?a[f.start.row]=u:u.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:u.row}}}),this.$updateRows(),this.renderWidgets(null,l),this.onWidgetChanged(u),u},this.removeLineWidget=function(u){if(u._inDocument=!1,u.session=null,u.el&&u.el.parentNode&&u.el.parentNode.removeChild(u.el),u.editor&&u.editor.destroy)try{u.editor.destroy()}catch{}if(this.session.lineWidgets){var l=this.session.lineWidgets[u.row];if(l==u)this.session.lineWidgets[u.row]=u.$oldWidget,u.$oldWidget&&this.onWidgetChanged(u.$oldWidget);else for(;l;){if(l.$oldWidget==u){l.$oldWidget=u.$oldWidget;break}l=l.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:u.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(u){for(var l=this.session.lineWidgets,f=l&&l[u],a=[];f;)a.push(f),f=f.$oldWidget;return a},this.onWidgetChanged=function(u){this.session._changedWidgets.push(u),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(u,l){var f=this.session._changedWidgets,a=l.layerConfig;if(!(!f||!f.length)){for(var c=1/0,h=0;h<f.length;h++){var p=f[h];if(!(!p||!p.el)&&p.session==this.session){if(!p._inDocument){if(this.session.lineWidgets[p.row]!=p)continue;p._inDocument=!0,l.container.appendChild(p.el)}p.h=p.el.offsetHeight,p.fixedWidth||(p.w=p.el.offsetWidth,p.screenWidth=Math.ceil(p.w/a.characterWidth));var m=p.h/a.lineHeight;p.coverLine&&(m-=this.session.getRowLineCount(p.row),m<0&&(m=0)),p.rowCount!=m&&(p.rowCount=m,p.row<c&&(c=p.row))}}c!=1/0&&(this.session._emit("changeFold",{data:{start:{row:c}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(u,l){var f=l.layerConfig,a=this.session.lineWidgets;if(!!a){for(var c=Math.min(this.firstRow,f.firstRow),h=Math.max(this.lastRow,f.lastRow,a.length);c>0&&!a[c];)c--;this.firstRow=f.firstRow,this.lastRow=f.lastRow,l.$cursorLayer.config=f;for(var p=c;p<=h;p++){var m=a[p];if(!(!m||!m.el)){if(m.hidden){m.el.style.top=-100-(m.pixelHeight||0)+"px";continue}m._inDocument||(m._inDocument=!0,l.container.appendChild(m.el));var g=l.$cursorLayer.getPixelPosition({row:p,column:0},!0).top;m.coverLine||(g+=f.lineHeight*this.session.getRowLineCount(m.row)),m.el.style.top=g-f.offset+"px";var v=m.coverGutter?0:l.gutterWidth;m.fixedWidth||(v-=l.scrollLeft),m.el.style.left=v+"px",m.fullWidth&&m.screenWidth&&(m.el.style.minWidth=f.width+2*f.padding+"px"),m.fixedWidth?m.el.style.right=l.scrollBar.getWidth()+"px":m.el.style.right=""}}}}}).call(o.prototype),r.LineWidgets=o}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(n,r,s){var i=n("../line_widgets").LineWidgets,o=n("../lib/dom"),u=n("../range").Range;function l(a,c,h){for(var p=0,m=a.length-1;p<=m;){var g=p+m>>1,v=h(c,a[g]);if(v>0)p=g+1;else if(v<0)m=g-1;else return g}return-(p+1)}function f(a,c,h){var p=a.getAnnotations().sort(u.comparePoints);if(!!p.length){var m=l(p,{row:c,column:-1},u.comparePoints);m<0&&(m=-m-1),m>=p.length?m=h>0?0:p.length-1:m===0&&h<0&&(m=p.length-1);var g=p[m];if(!(!g||!h)){if(g.row===c){do g=p[m+=h];while(g&&g.row===c);if(!g)return p.slice()}var v=[];c=g.row;do v[h<0?"unshift":"push"](g),g=p[m+=h];while(g&&g.row==c);return v.length&&v}}}r.showErrorMarker=function(a,c){var h=a.session;h.widgetManager||(h.widgetManager=new i(h),h.widgetManager.attach(a));var p=a.getCursorPosition(),m=p.row,g=h.widgetManager.getWidgetsAtRow(m).filter(function(k){return k.type=="errorMarker"})[0];g?g.destroy():m-=c;var v=f(h,m,c),w;if(v){var _=v[0];p.column=(_.pos&&typeof _.column!="number"?_.pos.sc:_.column)||0,p.row=_.row,w=a.renderer.$gutterLayer.$annotations[p.row]}else{if(g)return;w={text:["Looks good!"],className:"ace_ok"}}a.session.unfold(p.row),a.selection.moveToPosition(p);var $={row:p.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},x=$.el.appendChild(o.createElement("div")),b=$.el.appendChild(o.createElement("div"));b.className="error_widget_arrow "+w.className;var C=a.renderer.$cursorLayer.getPixelPosition(p).left;b.style.left=C+a.renderer.gutterWidth-5+"px",$.el.className="error_widget_wrapper",x.className="error_widget "+w.className,x.innerHTML=w.text.join("<br>"),x.appendChild(o.createElement("div"));var T=function(k,S,y){if(S===0&&(y==="esc"||y==="return"))return $.destroy(),{command:"null"}};$.destroy=function(){a.$mouseHandler.isMousePressed||(a.keyBinding.removeKeyboardHandler(T),h.widgetManager.removeLineWidget($),a.off("changeSelection",$.destroy),a.off("changeSession",$.destroy),a.off("mouseup",$.destroy),a.off("change",$.destroy))},a.keyBinding.addKeyboardHandler(T),a.on("changeSelection",$.destroy),a.on("changeSession",$.destroy),a.on("mouseup",$.destroy),a.on("change",$.destroy),a.session.widgetManager.addLineWidget($),$.el.onmousedown=a.focus.bind(a),a.renderer.scrollCursorIntoView(null,.5,{bottom:$.el.offsetHeight})},o.importCssString(`
855
+ .error_widget_wrapper {
856
+ background: inherit;
857
+ color: inherit;
858
+ border:none
859
+ }
860
+ .error_widget {
861
+ border-top: solid 2px;
862
+ border-bottom: solid 2px;
863
+ margin: 5px 0;
864
+ padding: 10px 40px;
865
+ white-space: pre-wrap;
866
+ }
867
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
868
+ border-color: #ff5a5a
869
+ }
870
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
871
+ border-color: #F1D817
872
+ }
873
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
874
+ border-color: #5a5a5a
875
+ }
876
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
877
+ border-color: #5aaa5a
878
+ }
879
+ .error_widget_arrow {
880
+ position: absolute;
881
+ border: solid 5px;
882
+ border-top-color: transparent!important;
883
+ border-right-color: transparent!important;
884
+ border-left-color: transparent!important;
885
+ top: -5px;
886
+ }
887
+ `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(n,r,s){n("./loader_build")(r);var i=n("./lib/dom"),o=n("./lib/event"),u=n("./range").Range,l=n("./editor").Editor,f=n("./edit_session").EditSession,a=n("./undomanager").UndoManager,c=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),r.config=n("./config"),r.edit=function(h,p){if(typeof h=="string"){var m=h;if(h=document.getElementById(m),!h)throw new Error("ace.edit can't find div #"+m)}if(h&&h.env&&h.env.editor instanceof l)return h.env.editor;var g="";if(h&&/input|textarea/i.test(h.tagName)){var v=h;g=v.value,h=i.createElement("pre"),v.parentNode.replaceChild(h,v)}else h&&(g=h.textContent,h.innerHTML="");var w=r.createEditSession(g),_=new l(new c(h),w,p),$={document:w,editor:_,onResize:_.resize.bind(_,null)};return v&&($.textarea=v),o.addListener(window,"resize",$.onResize),_.on("destroy",function(){o.removeListener(window,"resize",$.onResize),$.editor.container.env=null}),_.container.env=_.env=$,_},r.createEditSession=function(h,p){var m=new f(h,p);return m.setUndoManager(new a),m},r.Range=u,r.Editor=l,r.EditSession=f,r.UndoManager=a,r.VirtualRenderer=c,r.version=r.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define),window.ace||(window.ace=n);for(var r in n)n.hasOwnProperty(r)&&(window.ace[r]=n[r]);window.ace.default=window.ace,t&&(t.exports=window.ace)})}()})(Um);const Kw=Um.exports;var Hm=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(s,i){return s[0]===n?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),s=this.__entries__[r];return s&&s[1]},e.prototype.set=function(n,r){var s=t(this.__entries__,n);~s?this.__entries__[s][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,s=t(r,n);~s&&r.splice(s,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var s=0,i=this.__entries__;s<i.length;s++){var o=i[s];n.call(r,o[1],o[0])}},e}()}(),jc=typeof window<"u"&&typeof document<"u"&&window.document===document,ga=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Xw=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ga):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),qw=2;function Zw(t,e){var n=!1,r=!1,s=0;function i(){n&&(n=!1,t()),r&&u()}function o(){Xw(i)}function u(){var l=Date.now();if(n){if(l-s<qw)return;r=!0}else n=!0,r=!1,setTimeout(o,e);s=l}return u}var Qw=20,eS=["top","right","bottom","left","width","height","size","weight"],tS=typeof MutationObserver<"u",nS=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Zw(this.refresh.bind(this),Qw)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!jc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),tS?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!jc||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,s=eS.some(function(i){return!!~r.indexOf(i)});s&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),jm=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var s=r[n];Object.defineProperty(t,s,{value:e[s],enumerable:!1,writable:!1,configurable:!0})}return t},zi=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||ga},zm=Wa(0,0,0,0);function va(t){return parseFloat(t)||0}function Qd(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,s){var i=t["border-"+s+"-width"];return r+va(i)},0)}function rS(t){for(var e=["top","right","bottom","left"],n={},r=0,s=e;r<s.length;r++){var i=s[r],o=t["padding-"+i];n[i]=va(o)}return n}function iS(t){var e=t.getBBox();return Wa(0,0,e.width,e.height)}function sS(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return zm;var r=zi(t).getComputedStyle(t),s=rS(r),i=s.left+s.right,o=s.top+s.bottom,u=va(r.width),l=va(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+i)!==e&&(u-=Qd(r,"left","right")+i),Math.round(l+o)!==n&&(l-=Qd(r,"top","bottom")+o)),!aS(t)){var f=Math.round(u+i)-e,a=Math.round(l+o)-n;Math.abs(f)!==1&&(u-=f),Math.abs(a)!==1&&(l-=a)}return Wa(s.left,s.top,u,l)}var oS=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof zi(t).SVGGraphicsElement}:function(t){return t instanceof zi(t).SVGElement&&typeof t.getBBox=="function"}}();function aS(t){return t===zi(t).document.documentElement}function lS(t){return jc?oS(t)?iS(t):sS(t):zm}function cS(t){var e=t.x,n=t.y,r=t.width,s=t.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(i.prototype);return jm(o,{x:e,y:n,width:r,height:s,top:n,right:e+r,bottom:s+n,left:e}),o}function Wa(t,e,n,r){return{x:t,y:e,width:n,height:r}}var uS=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Wa(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=lS(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),hS=function(){function t(e,n){var r=cS(n);jm(this,{target:e,contentRect:r})}return t}(),dS=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new Hm,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof zi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new uS(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof zi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;!n.has(e)||(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(!!this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new hS(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Gm=typeof WeakMap<"u"?new WeakMap:new Hm,Ym=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=nS.getInstance(),r=new dS(e,n,this);Gm.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Ym.prototype[t]=function(){var e;return(e=Gm.get(this))[t].apply(e,arguments)}});var fS=function(){return typeof ga.ResizeObserver<"u"?ga.ResizeObserver:Ym}();const ef=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],pS=d.defineComponent({props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...ef],render(){return d.h("div")},mounted(){const t=this._editor=d.markRaw(Kw.edit(this.$el,{placeholder:this.placeholder,readOnly:this.readonly,value:this.value,mode:"ace/mode/"+this.lang,theme:"ace/theme/"+this.theme,wrap:this.wrap,printMargin:this.printMargin,useWorker:!1,minLines:this.minLines,maxLines:this.maxLines,...this.options}));this._contentBackup=this.value,this._isSettingContent=!1,t.on("change",()=>{if(this._isSettingContent)return;const e=t.getValue();this._contentBackup=e,this.$emit("update:value",e)}),ef.forEach(e=>{const n="on"+d.capitalize(e);typeof this.$.vnode.props[n]=="function"&&t.on(e,this.$emit.bind(this,e))}),this._ro=new fS(()=>t.resize()),this._ro.observe(this.$el),this.$emit("init",t)},beforeUnmount(){var t,e;(t=this._ro)===null||t===void 0||t.disconnect(),(e=this._editor)===null||e===void 0||e.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()}},watch:{value(t){if(this._contentBackup!==t){try{this._isSettingContent=!0,this._editor.setValue(t,1)}finally{this._isSettingContent=!1}this._contentBackup=t}},theme(t){this._editor.setTheme("ace/theme/"+t)},options(t){this._editor.setOptions(t)},readonly(t){this._editor.setReadOnly(t)},placeholder(t){this._editor.setOption("placeholder",t)},wrap(t){this._editor.setWrapBehavioursEnabled(t)},printMargin(t){this._editor.setOption("printMargin",t)},lang(t){this._editor.setOption("mode","ace/mode/"+t)},minLines(t){this._editor.setOption("minLines",t)},maxLines(t){this._editor.setOption("maxLines",t)}}});var mS={exports:{}};(function(t,e){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,s){var i=n("../lib/oop"),o=n("./text_highlight_rules").TextHighlightRules,u=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},u.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};i.inherits(u,o),u.getTagRule=function(l){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},u.getStartRule=function(l){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:l}},u.getEndRule=function(l){return{token:"comment.doc",regex:"\\*\\/",next:l}},r.DocCommentHighlightRules=u}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,r,s){var i=n("../lib/oop"),o=n("./doc_comment_highlight_rules").DocCommentHighlightRules,u=n("./text_highlight_rules").TextHighlightRules,l="[a-zA-Z\\$_\xA1-\uFFFF][a-zA-Z\\d\\$_\xA1-\uFFFF]*",f=function(h){var p=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),m="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",g="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[o.getStartRule("doc-start"),c("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+l+")(\\.)(prototype)(\\.)("+l+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+l+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+m+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:p,regex:l},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:l},{regex:"",token:"empty",next:"no_regex"}],start:[o.getStartRule("doc-start"),c("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:l},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!h||!h.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(v,w,_){if(this.next=v=="{"?this.nextState:"",v=="{"&&_.length)_.unshift("start",w);else if(v=="}"&&_.length&&(_.shift(),this.next=_.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return v=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:g},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!h||h.jsx!=!1)&&a.call(this)),this.embedRules(o,"doc-",[o.getEndRule("no_regex")]),this.normalizeRules()};i.inherits(f,u);function a(){var h=l.replace("\\d","\\d\\-"),p={onMatch:function(g,v,w){var _=g.charAt(1)=="/"?2:1;return _==1?(v!=this.nextState?w.unshift(this.next,this.nextState,0):w.unshift(this.next),w[2]++):_==2&&v==this.nextState&&(w[1]--,(!w[1]||w[1]<0)&&(w.shift(),w.shift())),[{type:"meta.tag.punctuation."+(_==1?"":"end-")+"tag-open.xml",value:g.slice(0,_)},{type:"meta.tag.tag-name.xml",value:g.substr(_)}]},regex:"</?"+h,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(p);var m={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[m,p,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(g,v,w){return v==w[0]&&w.shift(),g.length==2&&(w[0]==this.nextState&&w[1]--,(!w[1]||w[1]<0)&&w.splice(0,2)),this.next=w[0]||"start",[{type:this.token,value:g}]},nextState:"jsx"},m,c("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:h},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},p],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function c(h){return[{token:"comment",regex:/\/\*/,next:[o.getTagRule(),{token:"comment",regex:"\\*\\/",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[o.getTagRule(),{token:"comment",regex:"$|^",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=f}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,s){var i=n("../range").Range,o=function(){};(function(){this.checkOutdent=function(u,l){return/^\s+$/.test(u)?/^\s*\}/.test(l):!1},this.autoOutdent=function(u,l){var f=u.getLine(l),a=f.match(/^(\s*\})/);if(!a)return 0;var c=a[1].length,h=u.findMatchingBracket({row:l,column:c});if(!h||h.row==l)return 0;var p=this.$getIndent(u.getLine(h.row));u.replace(new i(l,0,l,c-1),p)},this.$getIndent=function(u){return u.match(/^\s*/)[0]}}).call(o.prototype),r.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,s){var i=n("../../lib/oop"),o=n("../../range").Range,u=n("./fold_mode").FoldMode,l=r.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end)))};i.inherits(l,u),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,a,c){var h=f.getLine(c);if(this.singleLineBlockCommentRe.test(h)&&!this.startRegionRe.test(h)&&!this.tripleStarBlockCommentRe.test(h))return"";var p=this._getFoldWidgetBase(f,a,c);return!p&&this.startRegionRe.test(h)?"start":p},this.getFoldWidgetRange=function(f,a,c,h){var p=f.getLine(c);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(f,p,c);var v=p.match(this.foldingStartMarker);if(v){var m=v.index;if(v[1])return this.openingBracketBlock(f,v[1],c,m);var g=f.getCommentFoldRange(c,m+v[0].length,1);return g&&!g.isMultiLine()&&(h?g=this.getSectionRange(f,c):a!="all"&&(g=null)),g}if(a!=="markbegin"){var v=p.match(this.foldingStopMarker);if(v){var m=v.index+v[0].length;return v[1]?this.closingBracketBlock(f,v[1],c,m):f.getCommentFoldRange(c,m,-1)}}},this.getSectionRange=function(f,a){var c=f.getLine(a),h=c.search(/\S/),p=a,m=c.length;a=a+1;for(var g=a,v=f.getLength();++a<v;){c=f.getLine(a);var w=c.search(/\S/);if(w!==-1){if(h>w)break;var _=this.getFoldWidgetRange(f,"all",a);if(_){if(_.start.row<=p)break;if(_.isMultiLine())a=_.end.row;else if(h==w)break}g=a}}return new o(p,m,g,f.getLine(g).length)},this.getCommentRegionBlock=function(f,a,c){for(var h=a.search(/\s*$/),p=f.getLength(),m=c,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,v=1;++c<p;){a=f.getLine(c);var w=g.exec(a);if(!!w&&(w[1]?v--:v++,!v))break}var _=c;if(_>m)return new o(m,h,_,a.length)}}.call(l.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(n,r,s){var i=n("../lib/oop"),o=n("./text").Mode,u=n("./javascript_highlight_rules").JavaScriptHighlightRules,l=n("./matching_brace_outdent").MatchingBraceOutdent,f=n("../worker/worker_client").WorkerClient,a=n("./behaviour/cstyle").CstyleBehaviour,c=n("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=u,this.$outdent=new l,this.$behaviour=new a,this.foldingRules=new c};i.inherits(h,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(p,m,g){var v=this.$getIndent(m),w=this.getTokenizer().getLineTokens(m,p),_=w.tokens,$=w.state;if(_.length&&_[_.length-1].type=="comment")return v;if(p=="start"||p=="no_regex"){var x=m.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);x&&(v+=g)}else if(p=="doc-start"){if($=="start"||$=="no_regex")return"";var x=m.match(/^\s*(\/?)\*/);x&&(x[1]&&(v+=" "),v+="* ")}return v},this.checkOutdent=function(p,m,g){return this.$outdent.checkOutdent(m,g)},this.autoOutdent=function(p,m,g){this.$outdent.autoOutdent(m,g)},this.createWorker=function(p){var m=new f(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return m.attachToDocument(p.getDocument()),m.on("annotate",function(g){p.setAnnotations(g.data)}),m.on("terminate",function(){p.clearAnnotations()}),m},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(h.prototype),r.Mode=h}),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(n,r,s){var i=n("../lib/oop");n("../lib/lang");var o=n("./text_highlight_rules").TextHighlightRules,u=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",l=r.supportFunction="rgb|rgba|url|attr|counter|counters",f=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",a=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",h=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",p=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",m=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",g=function(){var v=this.createKeywordMapper({"support.function":l,"support.constant":f,"support.type":u,"support.constant.color":a,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:h},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+h+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:h},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:p},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:m},{include:"url"},{token:v,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};i.inherits(g,o),r.CssHighlightRules=g}),ace.define("ace/mode/css_completions",["require","exports","module"],function(n,r,s){var i={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},o=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var u=document.createElement("c").style;for(var l in u)if(typeof u[l]=="string"){var f=l.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()});i.hasOwnProperty(f)||(i[f]=1)}}this.completionsDefined=!0},this.getCompletions=function(u,l,f,a){if(this.completionsDefined||this.defineCompletions(),u==="ruleset"||l.$mode.$id=="ace/mode/scss"){var c=l.getLine(f.row).substr(0,f.column),h=/\([^)]*$/.test(c);return h&&(c=c.substr(c.lastIndexOf("(")+1)),/:[^;]+$/.test(c)?(/([\w\-]+):[^:]*$/.test(c),this.getPropertyValueCompletions(u,l,f,a)):this.getPropertyCompletions(u,l,f,a,h)}return[]},this.getPropertyCompletions=function(u,l,f,a,c){c=c||!1;var h=Object.keys(i);return h.map(function(p){return{caption:p,snippet:p+": $0"+(c?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(u,l,f,a){var c=l.getLine(f.row).substr(0,f.column),h=(/([\w\-]+):[^:]*$/.exec(c)||{})[1];if(!h)return[];var p=[];return h in i&&typeof i[h]=="object"&&(p=Object.keys(i[h])),p.map(function(m){return{caption:m,snippet:m,meta:"property value",score:1e6}})}}).call(o.prototype),r.CssCompletions=o}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(n,r,s){var i=n("../../lib/oop");n("../behaviour").Behaviour;var o=n("./cstyle").CstyleBehaviour,u=n("../../token_iterator").TokenIterator,l=function(){this.inherit(o),this.add("colon","insertion",function(f,a,c,h,p){if(p===":"&&c.selection.isEmpty()){var m=c.getCursorPosition(),g=new u(h,m.row,m.column),v=g.getCurrentToken();if(v&&v.value.match(/\s+/)&&(v=g.stepBackward()),v&&v.type==="support.type"){var w=h.doc.getLine(m.row),_=w.substring(m.column,m.column+1);if(_===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(w.substring(m.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(f,a,c,h,p){var m=h.doc.getTextRange(p);if(!p.isMultiLine()&&m===":"){var g=c.getCursorPosition(),v=new u(h,g.row,g.column),w=v.getCurrentToken();if(w&&w.value.match(/\s+/)&&(w=v.stepBackward()),w&&w.type==="support.type"){var _=h.doc.getLine(p.start.row),$=_.substring(p.end.column,p.end.column+1);if($===";")return p.end.column++,p}}}),this.add("semicolon","insertion",function(f,a,c,h,p){if(p===";"&&c.selection.isEmpty()){var m=c.getCursorPosition(),g=h.doc.getLine(m.row),v=g.substring(m.column,m.column+1);if(v===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(f,a,c,h,p){if(p==="!"&&c.selection.isEmpty()){var m=c.getCursorPosition(),g=h.doc.getLine(m.row);if(/^\s*(;|}|$)/.test(g.substring(m.column)))return{text:"!important",selection:[10,10]}}})};i.inherits(l,o),r.CssBehaviour=l}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(n,r,s){var i=n("../lib/oop"),o=n("./text").Mode,u=n("./css_highlight_rules").CssHighlightRules,l=n("./matching_brace_outdent").MatchingBraceOutdent,f=n("../worker/worker_client").WorkerClient,a=n("./css_completions").CssCompletions,c=n("./behaviour/css").CssBehaviour,h=n("./folding/cstyle").FoldMode,p=function(){this.HighlightRules=u,this.$outdent=new l,this.$behaviour=new c,this.$completer=new a,this.foldingRules=new h};i.inherits(p,o),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(m,g,v){var w=this.$getIndent(g),_=this.getTokenizer().getLineTokens(g,m).tokens;if(_.length&&_[_.length-1].type=="comment")return w;var $=g.match(/^.*\{\s*$/);return $&&(w+=v),w},this.checkOutdent=function(m,g,v){return this.$outdent.checkOutdent(g,v)},this.autoOutdent=function(m,g,v){this.$outdent.autoOutdent(g,v)},this.getCompletions=function(m,g,v,w){return this.$completer.getCompletions(m,g,v,w)},this.createWorker=function(m){var g=new f(["ace"],"ace/mode/css_worker","Worker");return g.attachToDocument(m.getDocument()),g.on("annotate",function(v){m.setAnnotations(v.data)}),g.on("terminate",function(){m.clearAnnotations()}),g},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(p.prototype),r.Mode=p}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,s){var i=n("../lib/oop"),o=n("./text_highlight_rules").TextHighlightRules,u=function(l){var f="[_:a-zA-Z\xC0-\uFFFF][-_:.a-zA-Z0-9\xC0-\uFFFF]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+f+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:f},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+f+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+f+":)?"+f+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:f},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===u&&this.normalizeRules()};(function(){this.embedTagRules=function(l,f,a){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(<)("+a+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:f+"start"}]}),this.$rules[a+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(c,h,p){return p.splice(0),this.token}}],this.embedRules(l,f,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(</)("+a+"(?=\\s|>|$))",next:a+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(o.prototype),i.inherits(u,o),r.XmlHighlightRules=u}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(n,r,s){var i=n("../lib/oop"),o=n("../lib/lang"),u=n("./css_highlight_rules").CssHighlightRules,l=n("./javascript_highlight_rules").JavaScriptHighlightRules,f=n("./xml_highlight_rules").XmlHighlightRules,a=o.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),c=function(){f.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(h,p){var m=a[p];return["meta.tag.punctuation."+(h=="<"?"":"end-")+"tag-open.xml","meta.tag"+(m?"."+m:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(u,"css-","style"),this.embedTagRules(new l({jsx:!1}).getRules(),"js-","script"),this.constructor===c&&this.normalizeRules()};i.inherits(c,f),r.HtmlHighlightRules=c}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,s){var i=n("../../lib/oop"),o=n("../behaviour").Behaviour,u=n("../../token_iterator").TokenIterator;n("../../lib/lang");function l(a,c){return a&&a.type.lastIndexOf(c+".xml")>-1}var f=function(){this.add("string_dquotes","insertion",function(a,c,h,p,m){if(m=='"'||m=="'"){var g=m,v=p.doc.getTextRange(h.getSelectionRange());if(v!==""&&v!=="'"&&v!='"'&&h.getWrapBehavioursEnabled())return{text:g+v+g,selection:!1};var w=h.getCursorPosition(),_=p.doc.getLine(w.row),$=_.substring(w.column,w.column+1),x=new u(p,w.row,w.column),b=x.getCurrentToken();if($==g&&(l(b,"attribute-value")||l(b,"string")))return{text:"",selection:[1,1]};if(b||(b=x.stepBackward()),!b)return;for(;l(b,"tag-whitespace")||l(b,"whitespace");)b=x.stepBackward();var C=!$||$.match(/\s/);if(l(b,"attribute-equals")&&(C||$==">")||l(b,"decl-attribute-equals")&&(C||$=="?"))return{text:g+g,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(a,c,h,p,m){var g=p.doc.getTextRange(m);if(!m.isMultiLine()&&(g=='"'||g=="'")){var v=p.doc.getLine(m.start.row),w=v.substring(m.start.column+1,m.start.column+2);if(w==g)return m.end.column++,m}}),this.add("autoclosing","insertion",function(a,c,h,p,m){if(m==">"){var g=h.getSelectionRange().start,v=new u(p,g.row,g.column),w=v.getCurrentToken()||v.stepBackward();if(!w||!(l(w,"tag-name")||l(w,"tag-whitespace")||l(w,"attribute-name")||l(w,"attribute-equals")||l(w,"attribute-value"))||l(w,"reference.attribute-value"))return;if(l(w,"attribute-value")){var _=v.getCurrentTokenColumn()+w.value.length;if(g.column<_)return;if(g.column==_){var $=v.stepForward();if($&&l($,"attribute-value"))return;v.stepBackward()}}if(/^\s*>/.test(p.getLine(g.row).slice(g.column)))return;for(;!l(w,"tag-name");)if(w=v.stepBackward(),w.value=="<"){w=v.stepForward();break}var x=v.getCurrentTokenRow(),b=v.getCurrentTokenColumn();if(l(v.stepBackward(),"end-tag-open"))return;var C=w.value;return x==g.row&&(C=C.substring(0,g.column-b)),this.voidElements.hasOwnProperty(C.toLowerCase())?void 0:{text:"></"+C+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(a,c,h,p,m){if(m==`
888
+ `){var g=h.getCursorPosition(),v=p.getLine(g.row),w=new u(p,g.row,g.column),_=w.getCurrentToken();if(_&&_.type.indexOf("tag-close")!==-1){if(_.value=="/>")return;for(;_&&_.type.indexOf("tag-name")===-1;)_=w.stepBackward();if(!_)return;var $=_.value,x=w.getCurrentTokenRow();if(_=w.stepBackward(),!_||_.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[$]){var b=p.getTokenAt(g.row,g.column+1),v=p.getLine(x),C=this.$getIndent(v),T=C+p.getTabString();return b&&b.value==="</"?{text:`
889
+ `+T+`
890
+ `+C,selection:[1,T.length,1,T.length]}:{text:`
891
+ `+T}}}}})};i.inherits(f,o),r.XmlBehaviour=f}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(n,r,s){var i=n("../../lib/oop"),o=n("./fold_mode").FoldMode,u=r.FoldMode=function(l,f){this.defaultMode=l,this.subModes=f};i.inherits(u,o),function(){this.$getMode=function(l){typeof l!="string"&&(l=l[0]);for(var f in this.subModes)if(l.indexOf(f)===0)return this.subModes[f];return null},this.$tryMode=function(l,f,a,c){var h=this.$getMode(l);return h?h.getFoldWidget(f,a,c):""},this.getFoldWidget=function(l,f,a){return this.$tryMode(l.getState(a-1),l,f,a)||this.$tryMode(l.getState(a),l,f,a)||this.defaultMode.getFoldWidget(l,f,a)},this.getFoldWidgetRange=function(l,f,a){var c=this.$getMode(l.getState(a-1));return(!c||!c.getFoldWidget(l,f,a))&&(c=this.$getMode(l.getState(a))),(!c||!c.getFoldWidget(l,f,a))&&(c=this.defaultMode),c.getFoldWidgetRange(l,f,a)}}.call(u.prototype)}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,s){var i=n("../../lib/oop"),o=n("../../range").Range,u=n("./fold_mode").FoldMode,l=r.FoldMode=function(c,h){u.call(this),this.voidElements=c||{},this.optionalEndTags=i.mixin({},this.voidElements),h&&i.mixin(this.optionalEndTags,h)};i.inherits(l,u);var f=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function a(c,h){return c.type.lastIndexOf(h+".xml")>-1}(function(){this.getFoldWidget=function(c,h,p){var m=this._getFirstTagInLine(c,p);return m?m.closing||!m.tagName&&m.selfClosing?h==="markbeginend"?"end":"":!m.tagName||m.selfClosing||this.voidElements.hasOwnProperty(m.tagName.toLowerCase())||this._findEndTagInLine(c,p,m.tagName,m.end.column)?"":"start":this.getCommentFoldWidget(c,p)},this.getCommentFoldWidget=function(c,h){return/comment/.test(c.getState(h))&&/<!-/.test(c.getLine(h))?"start":""},this._getFirstTagInLine=function(c,h){for(var p=c.getTokens(h),m=new f,g=0;g<p.length;g++){var v=p[g];if(a(v,"tag-open")){if(m.end.column=m.start.column+v.value.length,m.closing=a(v,"end-tag-open"),v=p[++g],!v)return null;for(m.tagName=v.value,m.end.column+=v.value.length,g++;g<p.length;g++)if(v=p[g],m.end.column+=v.value.length,a(v,"tag-close")){m.selfClosing=v.value=="/>";break}return m}else if(a(v,"tag-close"))return m.selfClosing=v.value=="/>",m;m.start.column+=v.value.length}return null},this._findEndTagInLine=function(c,h,p,m){for(var g=c.getTokens(h),v=0,w=0;w<g.length;w++){var _=g[w];if(v+=_.value.length,!(v<m)&&a(_,"end-tag-open")&&(_=g[w+1],_&&_.value==p))return!0}return!1},this.getFoldWidgetRange=function(c,h,p){var m=c.getMatchingTags({row:p,column:0});return m?new o(m.openTag.end.row,m.openTag.end.column,m.closeTag.start.row,m.closeTag.start.column):this.getCommentFoldWidget(c,p)&&c.getCommentFoldRange(p,c.getLine(p).length)}}).call(l.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(n,r,s){var i=n("../../lib/oop"),o=n("./mixed").FoldMode,u=n("./xml").FoldMode,l=n("./cstyle").FoldMode,f=r.FoldMode=function(a,c){o.call(this,new u(a,c),{"js-":new l,"css-":new l})};i.inherits(f,o)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(n,r,s){var i=n("../token_iterator").TokenIterator,o=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],u=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],l=o.concat(u),f={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},a=Object.keys(f);function c(g,v){return g.type.lastIndexOf(v+".xml")>-1}function h(g,v){for(var w=new i(g,v.row,v.column),_=w.getCurrentToken();_&&!c(_,"tag-name");)_=w.stepBackward();if(_)return _.value}function p(g,v){for(var w=new i(g,v.row,v.column),_=w.getCurrentToken();_&&!c(_,"attribute-name");)_=w.stepBackward();if(_)return _.value}var m=function(){};(function(){this.getCompletions=function(g,v,w,_){var $=v.getTokenAt(w.row,w.column);if(!$)return[];if(c($,"tag-name")||c($,"tag-open")||c($,"end-tag-open"))return this.getTagCompletions(g,v,w,_);if(c($,"tag-whitespace")||c($,"attribute-name"))return this.getAttributeCompletions(g,v,w,_);if(c($,"attribute-value"))return this.getAttributeValueCompletions(g,v,w,_);var x=v.getLine(w.row).substr(0,w.column);return/&[a-z]*$/i.test(x)?this.getHTMLEntityCompletions(g,v,w,_):[]},this.getTagCompletions=function(g,v,w,_){return a.map(function($){return{value:$,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(g,v,w,_){var $=h(v,w);if(!$)return[];var x=l;return $ in f&&(x=x.concat(Object.keys(f[$]))),x.map(function(b){return{caption:b,snippet:b+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(g,v,w,_){var $=h(v,w),x=p(v,w);if(!$)return[];var b=[];return $ in f&&x in f[$]&&typeof f[$][x]=="object"&&(b=Object.keys(f[$][x])),b.map(function(C){return{caption:C,snippet:C,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(g,v,w,_){var $=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return $.map(function(x){return{caption:x,snippet:x,meta:"html entity",score:1e6}})}}).call(m.prototype),r.HtmlCompletions=m}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(n,r,s){var i=n("../lib/oop"),o=n("../lib/lang"),u=n("./text").Mode,l=n("./javascript").Mode,f=n("./css").Mode,a=n("./html_highlight_rules").HtmlHighlightRules,c=n("./behaviour/xml").XmlBehaviour,h=n("./folding/html").FoldMode,p=n("./html_completions").HtmlCompletions,m=n("../worker/worker_client").WorkerClient,g=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],v=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],w=function(_){this.fragmentContext=_&&_.fragmentContext,this.HighlightRules=a,this.$behaviour=new c,this.$completer=new p,this.createModeDelegates({"js-":l,"css-":f}),this.foldingRules=new h(this.voidElements,o.arrayToMap(v))};i.inherits(w,u),function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=o.arrayToMap(g),this.getNextLineIndent=function(_,$,x){return this.$getIndent($)},this.checkOutdent=function(_,$,x){return!1},this.getCompletions=function(_,$,x,b){return this.$completer.getCompletions(_,$,x,b)},this.createWorker=function(_){if(this.constructor==w){var $=new m(["ace"],"ace/mode/html_worker","Worker");return $.attachToDocument(_.getDocument()),this.fragmentContext&&$.call("setOptions",[{context:this.fragmentContext}]),$.on("error",function(x){_.setAnnotations(x.data)}),$.on("terminate",function(){_.clearAnnotations()}),$}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}.call(w.prototype),r.Mode=w}),function(){ace.require(["ace/mode/html"],function(n){t&&(t.exports=n)})}()})(mS);var gS={exports:{}};(function(t,e){ace.define("ace/theme/chrome.css",["require","exports","module"],function(n,r,s){s.exports=`.ace-chrome .ace_gutter {
892
+ background: #ebebeb;
893
+ color: #333;
894
+ overflow : hidden;
895
+ }
896
+
897
+ .ace-chrome .ace_print-margin {
898
+ width: 1px;
899
+ background: #e8e8e8;
900
+ }
901
+
902
+ .ace-chrome {
903
+ background-color: #FFFFFF;
904
+ color: black;
905
+ }
906
+
907
+ .ace-chrome .ace_cursor {
908
+ color: black;
909
+ }
910
+
911
+ .ace-chrome .ace_invisible {
912
+ color: rgb(191, 191, 191);
913
+ }
914
+
915
+ .ace-chrome .ace_constant.ace_buildin {
916
+ color: rgb(88, 72, 246);
917
+ }
918
+
919
+ .ace-chrome .ace_constant.ace_language {
920
+ color: rgb(88, 92, 246);
921
+ }
922
+
923
+ .ace-chrome .ace_constant.ace_library {
924
+ color: rgb(6, 150, 14);
925
+ }
926
+
927
+ .ace-chrome .ace_invalid {
928
+ background-color: rgb(153, 0, 0);
929
+ color: white;
930
+ }
931
+
932
+ .ace-chrome .ace_fold {
933
+ }
934
+
935
+ .ace-chrome .ace_support.ace_function {
936
+ color: rgb(60, 76, 114);
937
+ }
938
+
939
+ .ace-chrome .ace_support.ace_constant {
940
+ color: rgb(6, 150, 14);
941
+ }
942
+
943
+ .ace-chrome .ace_support.ace_type,
944
+ .ace-chrome .ace_support.ace_class
945
+ .ace-chrome .ace_support.ace_other {
946
+ color: rgb(109, 121, 222);
947
+ }
948
+
949
+ .ace-chrome .ace_variable.ace_parameter {
950
+ font-style:italic;
951
+ color:#FD971F;
952
+ }
953
+ .ace-chrome .ace_keyword.ace_operator {
954
+ color: rgb(104, 118, 135);
955
+ }
956
+
957
+ .ace-chrome .ace_comment {
958
+ color: #236e24;
959
+ }
960
+
961
+ .ace-chrome .ace_comment.ace_doc {
962
+ color: #236e24;
963
+ }
964
+
965
+ .ace-chrome .ace_comment.ace_doc.ace_tag {
966
+ color: #236e24;
967
+ }
968
+
969
+ .ace-chrome .ace_constant.ace_numeric {
970
+ color: rgb(0, 0, 205);
971
+ }
972
+
973
+ .ace-chrome .ace_variable {
974
+ color: rgb(49, 132, 149);
975
+ }
976
+
977
+ .ace-chrome .ace_xml-pe {
978
+ color: rgb(104, 104, 91);
979
+ }
980
+
981
+ .ace-chrome .ace_entity.ace_name.ace_function {
982
+ color: #0000A2;
983
+ }
984
+
985
+
986
+ .ace-chrome .ace_heading {
987
+ color: rgb(12, 7, 255);
988
+ }
989
+
990
+ .ace-chrome .ace_list {
991
+ color:rgb(185, 6, 144);
992
+ }
993
+
994
+ .ace-chrome .ace_marker-layer .ace_selection {
995
+ background: rgb(181, 213, 255);
996
+ }
997
+
998
+ .ace-chrome .ace_marker-layer .ace_step {
999
+ background: rgb(252, 255, 0);
1000
+ }
1001
+
1002
+ .ace-chrome .ace_marker-layer .ace_stack {
1003
+ background: rgb(164, 229, 101);
1004
+ }
1005
+
1006
+ .ace-chrome .ace_marker-layer .ace_bracket {
1007
+ margin: -1px 0 0 -1px;
1008
+ border: 1px solid rgb(192, 192, 192);
1009
+ }
1010
+
1011
+ .ace-chrome .ace_marker-layer .ace_active-line {
1012
+ background: rgba(0, 0, 0, 0.07);
1013
+ }
1014
+
1015
+ .ace-chrome .ace_gutter-active-line {
1016
+ background-color : #dcdcdc;
1017
+ }
1018
+
1019
+ .ace-chrome .ace_marker-layer .ace_selected-word {
1020
+ background: rgb(250, 250, 255);
1021
+ border: 1px solid rgb(200, 200, 250);
1022
+ }
1023
+
1024
+ .ace-chrome .ace_storage,
1025
+ .ace-chrome .ace_keyword,
1026
+ .ace-chrome .ace_meta.ace_tag {
1027
+ color: rgb(147, 15, 128);
1028
+ }
1029
+
1030
+ .ace-chrome .ace_string.ace_regex {
1031
+ color: rgb(255, 0, 0)
1032
+ }
1033
+
1034
+ .ace-chrome .ace_string {
1035
+ color: #1A1AA6;
1036
+ }
1037
+
1038
+ .ace-chrome .ace_entity.ace_other.ace_attribute-name {
1039
+ color: #994409;
1040
+ }
1041
+
1042
+ .ace-chrome .ace_indent-guide {
1043
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
1044
+ }
1045
+
1046
+ .ace-chrome .ace_indent-guide-active {
1047
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
1048
+ }
1049
+ `}),ace.define("ace/theme/chrome",["require","exports","module","ace/theme/chrome.css","ace/lib/dom"],function(n,r,s){r.isDark=!1,r.cssClass="ace-chrome",r.cssText=n("./chrome.css");var i=n("../lib/dom");i.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/chrome"],function(n){t&&(t.exports=n)})}()})(gS);const Jm=d.defineComponent({__name:"vc-editor",props:{placeholder:{type:String,default:""},modelValue:{type:[String,Number,Date],default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{type:String,default:void 0},tooltip:{type:String,default:void 0},name:{type:String,default:"Field"},rules:{type:[String,Object]}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t;d.ref();const r=d.getCurrentInstance();let s=d.unref(n.modelValue),i=d.unref(n.rules)||"";n.required&&(typeof i=="string"?i=`required|${i}`.replace(/(\|)+$/,""):i.required=!0);const{errorMessage:o,handleChange:u,value:l}=_t.useField(`${(r==null?void 0:r.uid)||n.name}`,i,{initialValue:s});function f(){e("update:modelValue",l.value)}return d.watch(()=>n.modelValue,a=>{let c=d.unref(a);u(c)}),(a,c)=>{const h=d.resolveComponent("VcLabel"),p=d.resolveComponent("VcHint");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-editor",[{"vc-editor_error":d.unref(o),"vc-editor_disabled":t.disabled}]])},[t.label?(d.openBlock(),d.createBlock(h,{key:0,class:"mb-2",required:t.required},d.createSlots({default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(t.label),1)]),_:2},[t.tooltip?{name:"tooltip",fn:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.tooltip),1)]),key:"0"}:void 0]),1032,["required"])):d.createCommentVNode("",!0),d.createVNode(d.unref(pS),{class:"border border-solid border-[color:var(--editor-border-color)] rounded-[var(--editor-border-radius)]",value:d.unref(l),"onUpdate:value":c[0]||(c[0]=m=>d.isRef(l)?l.value=m:null),lang:"html",theme:"chrome",style:{height:"200px"},onInput:f},null,8,["value"]),d.unref(o)?d.renderSlot(a.$slots,"error",{key:1},()=>[d.createVNode(p,{class:"vc-editor__error"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(o)),1)]),_:1})]):d.createCommentVNode("",!0)],2)}}});const vS={};function yS(t,e){return d.openBlock(),d.createElementBlock("form",null,[d.renderSlot(t.$slots,"default",{},()=>[d.createTextVNode("vc-form")])])}const zu=Fa(vS,[["render",yS]]),bS={class:"flex flex-col flex-1"},wS=["onDrop"],SS={class:"text-[#9db0be] text-center text-lg leading-lg mt-4"},_S=d.createElementVNode("span",null,"Drag and drop file here or",-1),xS=d.createElementVNode("br",null,null,-1),CS=["accept","multiple","name"],Gu=d.defineComponent({__name:"vc-file-upload",props:{variant:{type:String,enum:["gallery","file-upload"],default:"gallery"},loading:{type:Boolean,default:!1},accept:{type:String,default:".jpg, .png, .jpeg"},multiple:{type:Boolean,default:!1},rules:{type:[String,Object]},name:{type:String,default:"Gallery"}},emits:["upload"],setup(t,{emit:e}){const n=t,r=d.getCurrentInstance();let s=d.unref(n.rules)||"";const{errorMessage:i,handleChange:o,errors:u,validate:l}=_t.useField(`${n.name==="Gallery"?r==null?void 0:r.uid:n.name}`,s),f=d.ref(),a=async p=>{if(await o(p.target),(await l()).valid){const v=p.target.files;v&&v.length&&e("upload",v)}};function c(){f.value.value="",f.value.click()}function h(p){var g;const m=(g=p.dataTransfer)==null?void 0:g.files;m&&m.length&&e("upload",m)}return(p,m)=>{const g=d.resolveComponent("VcLoading"),v=d.resolveComponent("VcIcon"),w=d.resolveComponent("VcLink"),_=d.resolveComponent("VcHint");return d.openBlock(),d.createElementBlock("div",bS,[d.createElementVNode("div",{class:d.normalizeClass(["vc-file-upload relative h-[155px] box-border border border-dashed border-[#c8dbea] rounded-[6px] p-2 p-4 flex flex-col items-center justify-center",`vc-file-upload_${t.variant}`]),onDrop:d.withModifiers(h,["stop","prevent"]),onDrag:m[0]||(m[0]=d.withModifiers(()=>{},["stop","prevent"])),onDragstart:m[1]||(m[1]=d.withModifiers(()=>{},["stop","prevent"])),onDragend:m[2]||(m[2]=d.withModifiers(()=>{},["stop","prevent"])),onDragover:m[3]||(m[3]=d.withModifiers(()=>{},["stop","prevent"])),onDragenter:m[4]||(m[4]=d.withModifiers(()=>{},["stop","prevent"])),onDragleave:m[5]||(m[5]=d.withModifiers(()=>{},["stop","prevent"]))},[d.createVNode(g,{active:t.loading},null,8,["active"]),d.createVNode(v,{class:"text-[#c8dbea]",icon:"fas fa-cloud-upload-alt",size:"xxl"}),d.createElementVNode("div",SS,[_S,d.createTextVNode("\xA0 "),xS,d.createVNode(w,{onClick:c},{default:d.withCtx(()=>[d.createTextVNode("browse your files")]),_:1})]),d.createElementVNode("input",{ref_key:"uploader",ref:f,type:"file",hidden:"",onChange:a,accept:t.accept,multiple:t.multiple,name:t.name},null,40,CS)],42,wS),d.unref(i)?d.renderSlot(p.$slots,"error",{key:0},()=>[d.createVNode(_,{class:"vc-input__error"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(i)),1)]),_:1})]):d.createCommentVNode("",!0)])}}});var zt="top",yn="bottom",bn="right",Gt="left",Ua="auto",fo=[zt,yn,bn,Gt],Gi="start",Ws="end",ES="clippingParents",Km="viewport",ps="popper",kS="reference",tf=fo.reduce(function(t,e){return t.concat([e+"-"+Gi,e+"-"+Ws])},[]),Xm=[].concat(fo,[Ua]).reduce(function(t,e){return t.concat([e,e+"-"+Gi,e+"-"+Ws])},[]),$S="beforeRead",TS="read",AS="afterRead",OS="beforeMain",LS="main",RS="afterMain",MS="beforeWrite",IS="write",NS="afterWrite",zc=[$S,TS,AS,OS,LS,RS,MS,IS,NS];function jn(t){return t?(t.nodeName||"").toLowerCase():null}function xn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function fi(t){var e=xn(t).Element;return t instanceof e||t instanceof Element}function rn(t){var e=xn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Yu(t){if(typeof ShadowRoot>"u")return!1;var e=xn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function DS(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},s=e.attributes[n]||{},i=e.elements[n];!rn(i)||!jn(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(o){var u=s[o];u===!1?i.removeAttribute(o):i.setAttribute(o,u===!0?"":u)}))})}function PS(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var s=e.elements[r],i=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),u=o.reduce(function(l,f){return l[f]="",l},{});!rn(s)||!jn(s)||(Object.assign(s.style,u),Object.keys(i).forEach(function(l){s.removeAttribute(l)}))})}}const BS={name:"applyStyles",enabled:!0,phase:"write",fn:DS,effect:PS,requires:["computeStyles"]};function Ln(t){return t.split("-")[0]}var hi=Math.max,ya=Math.min,Yi=Math.round;function Gc(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qm(){return!/^((?!chrome|android).)*safari/i.test(Gc())}function Ji(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),s=1,i=1;e&&rn(t)&&(s=t.offsetWidth>0&&Yi(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Yi(r.height)/t.offsetHeight||1);var o=fi(t)?xn(t):window,u=o.visualViewport,l=!qm()&&n,f=(r.left+(l&&u?u.offsetLeft:0))/s,a=(r.top+(l&&u?u.offsetTop:0))/i,c=r.width/s,h=r.height/i;return{width:c,height:h,top:a,right:f+c,bottom:a+h,left:f,x:f,y:a}}function Ju(t){var e=Ji(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Zm(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Yu(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Mn(t){return xn(t).getComputedStyle(t)}function FS(t){return["table","td","th"].indexOf(jn(t))>=0}function Yr(t){return((fi(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ha(t){return jn(t)==="html"?t:t.assignedSlot||t.parentNode||(Yu(t)?t.host:null)||Yr(t)}function nf(t){return!rn(t)||Mn(t).position==="fixed"?null:t.offsetParent}function VS(t){var e=/firefox/i.test(Gc()),n=/Trident/i.test(Gc());if(n&&rn(t)){var r=Mn(t);if(r.position==="fixed")return null}var s=Ha(t);for(Yu(s)&&(s=s.host);rn(s)&&["html","body"].indexOf(jn(s))<0;){var i=Mn(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function po(t){for(var e=xn(t),n=nf(t);n&&FS(n)&&Mn(n).position==="static";)n=nf(n);return n&&(jn(n)==="html"||jn(n)==="body"&&Mn(n).position==="static")?e:n||VS(t)||e}function Ku(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ts(t,e,n){return hi(t,ya(e,n))}function WS(t,e,n){var r=Ts(t,e,n);return r>n?n:r}function Qm(){return{top:0,right:0,bottom:0,left:0}}function eg(t){return Object.assign({},Qm(),t)}function tg(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var US=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,eg(typeof e!="number"?e:tg(e,fo))};function HS(t){var e,n=t.state,r=t.name,s=t.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,u=Ln(n.placement),l=Ku(u),f=[Gt,bn].indexOf(u)>=0,a=f?"height":"width";if(!(!i||!o)){var c=US(s.padding,n),h=Ju(i),p=l==="y"?zt:Gt,m=l==="y"?yn:bn,g=n.rects.reference[a]+n.rects.reference[l]-o[l]-n.rects.popper[a],v=o[l]-n.rects.reference[l],w=po(i),_=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,$=g/2-v/2,x=c[p],b=_-h[a]-c[m],C=_/2-h[a]/2+$,T=Ts(x,C,b),k=l;n.modifiersData[r]=(e={},e[k]=T,e.centerOffset=T-C,e)}}function jS(t){var e=t.state,n=t.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;if(s!=null&&!(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s))){if(process.env.NODE_ENV!=="production"&&(rn(s)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Zm(e.elements.popper,s)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=s}}const zS={name:"arrow",enabled:!0,phase:"main",fn:HS,effect:jS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ki(t){return t.split("-")[1]}var GS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YS(t){var e=t.x,n=t.y,r=window,s=r.devicePixelRatio||1;return{x:Yi(e*s)/s||0,y:Yi(n*s)/s||0}}function rf(t){var e,n=t.popper,r=t.popperRect,s=t.placement,i=t.variation,o=t.offsets,u=t.position,l=t.gpuAcceleration,f=t.adaptive,a=t.roundOffsets,c=t.isFixed,h=o.x,p=h===void 0?0:h,m=o.y,g=m===void 0?0:m,v=typeof a=="function"?a({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var w=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),$=Gt,x=zt,b=window;if(f){var C=po(n),T="clientHeight",k="clientWidth";if(C===xn(n)&&(C=Yr(n),Mn(C).position!=="static"&&u==="absolute"&&(T="scrollHeight",k="scrollWidth")),C=C,s===zt||(s===Gt||s===bn)&&i===Ws){x=yn;var S=c&&C===b&&b.visualViewport?b.visualViewport.height:C[T];g-=S-r.height,g*=l?1:-1}if(s===Gt||(s===zt||s===yn)&&i===Ws){$=bn;var y=c&&C===b&&b.visualViewport?b.visualViewport.width:C[k];p-=y-r.width,p*=l?1:-1}}var E=Object.assign({position:u},f&&GS),A=a===!0?YS({x:p,y:g}):{x:p,y:g};if(p=A.x,g=A.y,l){var O;return Object.assign({},E,(O={},O[x]=_?"0":"",O[$]=w?"0":"",O.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",O))}return Object.assign({},E,(e={},e[x]=_?g+"px":"",e[$]=w?p+"px":"",e.transform="",e))}function JS(t){var e=t.state,n=t.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,u=n.roundOffsets,l=u===void 0?!0:u;if(process.env.NODE_ENV!=="production"){var f=Mn(e.elements.popper).transitionProperty||"";o&&["transform","top","right","bottom","left"].some(function(c){return f.indexOf(c)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
1050
+
1051
+ `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
1052
+
1053
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var a={placement:Ln(e.placement),variation:Ki(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,rf(Object.assign({},a,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,rf(Object.assign({},a,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const KS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JS,data:{}};var jo={passive:!0};function XS(t){var e=t.state,n=t.instance,r=t.options,s=r.scroll,i=s===void 0?!0:s,o=r.resize,u=o===void 0?!0:o,l=xn(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&f.forEach(function(a){a.addEventListener("scroll",n.update,jo)}),u&&l.addEventListener("resize",n.update,jo),function(){i&&f.forEach(function(a){a.removeEventListener("scroll",n.update,jo)}),u&&l.removeEventListener("resize",n.update,jo)}}const qS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:XS,data:{}};var ZS={left:"right",right:"left",bottom:"top",top:"bottom"};function ea(t){return t.replace(/left|right|bottom|top/g,function(e){return ZS[e]})}var QS={start:"end",end:"start"};function sf(t){return t.replace(/start|end/g,function(e){return QS[e]})}function Xu(t){var e=xn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function qu(t){return Ji(Yr(t)).left+Xu(t).scrollLeft}function e1(t,e){var n=xn(t),r=Yr(t),s=n.visualViewport,i=r.clientWidth,o=r.clientHeight,u=0,l=0;if(s){i=s.width,o=s.height;var f=qm();(f||!f&&e==="fixed")&&(u=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:u+qu(t),y:l}}function t1(t){var e,n=Yr(t),r=Xu(t),s=(e=t.ownerDocument)==null?void 0:e.body,i=hi(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=hi(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-r.scrollLeft+qu(t),l=-r.scrollTop;return Mn(s||n).direction==="rtl"&&(u+=hi(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:u,y:l}}function Zu(t){var e=Mn(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function ng(t){return["html","body","#document"].indexOf(jn(t))>=0?t.ownerDocument.body:rn(t)&&Zu(t)?t:ng(Ha(t))}function As(t,e){var n;e===void 0&&(e=[]);var r=ng(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),i=xn(r),o=s?[i].concat(i.visualViewport||[],Zu(r)?r:[]):r,u=e.concat(o);return s?u:u.concat(As(Ha(o)))}function Yc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function n1(t,e){var n=Ji(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function of(t,e,n){return e===Km?Yc(e1(t,n)):fi(e)?n1(e,n):Yc(t1(Yr(t)))}function r1(t){var e=As(Ha(t)),n=["absolute","fixed"].indexOf(Mn(t).position)>=0,r=n&&rn(t)?po(t):t;return fi(r)?e.filter(function(s){return fi(s)&&Zm(s,r)&&jn(s)!=="body"}):[]}function i1(t,e,n,r){var s=e==="clippingParents"?r1(t):[].concat(e),i=[].concat(s,[n]),o=i[0],u=i.reduce(function(l,f){var a=of(t,f,r);return l.top=hi(a.top,l.top),l.right=ya(a.right,l.right),l.bottom=ya(a.bottom,l.bottom),l.left=hi(a.left,l.left),l},of(t,o,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function rg(t){var e=t.reference,n=t.element,r=t.placement,s=r?Ln(r):null,i=r?Ki(r):null,o=e.x+e.width/2-n.width/2,u=e.y+e.height/2-n.height/2,l;switch(s){case zt:l={x:o,y:e.y-n.height};break;case yn:l={x:o,y:e.y+e.height};break;case bn:l={x:e.x+e.width,y:u};break;case Gt:l={x:e.x-n.width,y:u};break;default:l={x:e.x,y:e.y}}var f=s?Ku(s):null;if(f!=null){var a=f==="y"?"height":"width";switch(i){case Gi:l[f]=l[f]-(e[a]/2-n[a]/2);break;case Ws:l[f]=l[f]+(e[a]/2-n[a]/2);break}}return l}function Us(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=r===void 0?t.placement:r,i=n.strategy,o=i===void 0?t.strategy:i,u=n.boundary,l=u===void 0?ES:u,f=n.rootBoundary,a=f===void 0?Km:f,c=n.elementContext,h=c===void 0?ps:c,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,v=g===void 0?0:g,w=eg(typeof v!="number"?v:tg(v,fo)),_=h===ps?kS:ps,$=t.rects.popper,x=t.elements[m?_:h],b=i1(fi(x)?x:x.contextElement||Yr(t.elements.popper),l,a,o),C=Ji(t.elements.reference),T=rg({reference:C,element:$,strategy:"absolute",placement:s}),k=Yc(Object.assign({},$,T)),S=h===ps?k:C,y={top:b.top-S.top+w.top,bottom:S.bottom-b.bottom+w.bottom,left:b.left-S.left+w.left,right:S.right-b.right+w.right},E=t.modifiersData.offset;if(h===ps&&E){var A=E[s];Object.keys(y).forEach(function(O){var R=[bn,yn].indexOf(O)>=0?1:-1,M=[zt,yn].indexOf(O)>=0?"y":"x";y[O]+=A[M]*R})}return y}function s1(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=n.boundary,i=n.rootBoundary,o=n.padding,u=n.flipVariations,l=n.allowedAutoPlacements,f=l===void 0?Xm:l,a=Ki(r),c=a?u?tf:tf.filter(function(m){return Ki(m)===a}):fo,h=c.filter(function(m){return f.indexOf(m)>=0});h.length===0&&(h=c,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=h.reduce(function(m,g){return m[g]=Us(t,{placement:g,boundary:s,rootBoundary:i,padding:o})[Ln(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function o1(t){if(Ln(t)===Ua)return[];var e=ea(t);return[sf(t),e,sf(e)]}function a1(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,u=o===void 0?!0:o,l=n.fallbackPlacements,f=n.padding,a=n.boundary,c=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,v=e.options.placement,w=Ln(v),_=w===v,$=l||(_||!m?[ea(v)]:o1(v)),x=[v].concat($).reduce(function(G,X){return G.concat(Ln(X)===Ua?s1(e,{placement:X,boundary:a,rootBoundary:c,padding:f,flipVariations:m,allowedAutoPlacements:g}):X)},[]),b=e.rects.reference,C=e.rects.popper,T=new Map,k=!0,S=x[0],y=0;y<x.length;y++){var E=x[y],A=Ln(E),O=Ki(E)===Gi,R=[zt,yn].indexOf(A)>=0,M=R?"width":"height",I=Us(e,{placement:E,boundary:a,rootBoundary:c,altBoundary:h,padding:f}),B=R?O?bn:Gt:O?yn:zt;b[M]>C[M]&&(B=ea(B));var W=ea(B),F=[];if(i&&F.push(I[A]<=0),u&&F.push(I[B]<=0,I[W]<=0),F.every(function(G){return G})){S=E,k=!1;break}T.set(E,F)}if(k)for(var j=m?3:1,J=function(X){var Z=x.find(function(te){var ie=T.get(te);if(ie)return ie.slice(0,X).every(function(de){return de})});if(Z)return S=Z,"break"},Y=j;Y>0;Y--){var U=J(Y);if(U==="break")break}e.placement!==S&&(e.modifiersData[r]._skip=!0,e.placement=S,e.reset=!0)}}const l1={name:"flip",enabled:!0,phase:"main",fn:a1,requiresIfExists:["offset"],data:{_skip:!1}};function af(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function lf(t){return[zt,bn,yn,Gt].some(function(e){return t[e]>=0})}function c1(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,i=e.modifiersData.preventOverflow,o=Us(e,{elementContext:"reference"}),u=Us(e,{altBoundary:!0}),l=af(o,r),f=af(u,s,i),a=lf(l),c=lf(f);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:a,hasPopperEscaped:c},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":c})}const u1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:c1};function h1(t,e,n){var r=Ln(t),s=[Gt,zt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=i[0],u=i[1];return o=o||0,u=(u||0)*s,[Gt,bn].indexOf(r)>=0?{x:u,y:o}:{x:o,y:u}}function d1(t){var e=t.state,n=t.options,r=t.name,s=n.offset,i=s===void 0?[0,0]:s,o=Xm.reduce(function(a,c){return a[c]=h1(c,e.rects,i),a},{}),u=o[e.placement],l=u.x,f=u.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=f),e.modifiersData[r]=o}const f1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:d1};function p1(t){var e=t.state,n=t.name;e.modifiersData[n]=rg({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const m1={name:"popperOffsets",enabled:!0,phase:"read",fn:p1,data:{}};function g1(t){return t==="x"?"y":"x"}function v1(t){var e=t.state,n=t.options,r=t.name,s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,u=o===void 0?!1:o,l=n.boundary,f=n.rootBoundary,a=n.altBoundary,c=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,g=m===void 0?0:m,v=Us(e,{boundary:l,rootBoundary:f,padding:c,altBoundary:a}),w=Ln(e.placement),_=Ki(e.placement),$=!_,x=Ku(w),b=g1(x),C=e.modifiersData.popperOffsets,T=e.rects.reference,k=e.rects.popper,S=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,y=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(!!C){if(i){var O,R=x==="y"?zt:Gt,M=x==="y"?yn:bn,I=x==="y"?"height":"width",B=C[x],W=B+v[R],F=B-v[M],j=p?-k[I]/2:0,J=_===Gi?T[I]:k[I],Y=_===Gi?-k[I]:-T[I],U=e.elements.arrow,G=p&&U?Ju(U):{width:0,height:0},X=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Qm(),Z=X[R],te=X[M],ie=Ts(0,T[I],G[I]),de=$?T[I]/2-j-ie-Z-y.mainAxis:J-ie-Z-y.mainAxis,ae=$?-T[I]/2+j+ie+te+y.mainAxis:Y+ie+te+y.mainAxis,Ce=e.elements.arrow&&po(e.elements.arrow),Re=Ce?x==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,P=(O=E==null?void 0:E[x])!=null?O:0,D=B+de-P-Re,z=B+ae-P,ee=Ts(p?ya(W,D):W,B,p?hi(F,z):F);C[x]=ee,A[x]=ee-B}if(u){var fe,be=x==="x"?zt:Gt,mt=x==="x"?yn:bn,dt=C[b],q=b==="y"?"height":"width",ne=dt+v[be],H=dt-v[mt],K=[zt,Gt].indexOf(w)!==-1,ue=(fe=E==null?void 0:E[b])!=null?fe:0,ge=K?ne:dt-T[q]-k[q]-ue+y.altAxis,Xe=K?dt+T[q]+k[q]-ue-y.altAxis:H,Ge=p&&K?WS(ge,dt,Xe):Ts(p?ge:ne,dt,p?Xe:H);C[b]=Ge,A[b]=Ge-dt}e.modifiersData[r]=A}}const y1={name:"preventOverflow",enabled:!0,phase:"main",fn:v1,requiresIfExists:["offset"]};function b1(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function w1(t){return t===xn(t)||!rn(t)?Xu(t):b1(t)}function S1(t){var e=t.getBoundingClientRect(),n=Yi(e.width)/t.offsetWidth||1,r=Yi(e.height)/t.offsetHeight||1;return n!==1||r!==1}function _1(t,e,n){n===void 0&&(n=!1);var r=rn(e),s=rn(e)&&S1(e),i=Yr(e),o=Ji(t,s,n),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jn(e)!=="body"||Zu(i))&&(u=w1(e)),rn(e)?(l=Ji(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=qu(i))),{x:o.left+u.scrollLeft-l.x,y:o.top+u.scrollTop-l.y,width:o.width,height:o.height}}function x1(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function s(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(u){if(!n.has(u)){var l=e.get(u);l&&s(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||s(i)}),r}function C1(t){var e=x1(t);return zc.reduce(function(n,r){return n.concat(e.filter(function(s){return s.phase===r}))},[])}function E1(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Or(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(s,i){return s.replace(/%s/,i)},t)}var ti='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',k1='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',cf=["name","enabled","phase","fn","effect","requires","options"];function $1(t){t.forEach(function(e){[].concat(Object.keys(e),cf).filter(function(n,r,s){return s.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(Or(ti,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Or(ti,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":zc.indexOf(e.phase)<0&&console.error(Or(ti,e.name,'"phase"',"either "+zc.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Or(ti,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Or(ti,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Or(ti,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Or(ti,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+cf.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(s){return s.name===r})==null&&console.error(Or(k1,String(e.name),r,r))})})})}function T1(t,e){var n=new Set;return t.filter(function(r){var s=e(r);if(!n.has(s))return n.add(s),!0})}function A1(t){var e=t.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var uf="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",O1="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",hf={placement:"bottom",modifiers:[],strategy:"absolute"};function df(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function L1(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,s=e.defaultOptions,i=s===void 0?hf:s;return function(u,l,f){f===void 0&&(f=i);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},hf,i),modifiersData:{},elements:{reference:u,popper:l},attributes:{},styles:{}},c=[],h=!1,p={state:a,setOptions:function(w){var _=typeof w=="function"?w(a.options):w;g(),a.options=Object.assign({},i,a.options,_),a.scrollParents={reference:fi(u)?As(u):u.contextElement?As(u.contextElement):[],popper:As(l)};var $=C1(A1([].concat(r,a.options.modifiers)));if(a.orderedModifiers=$.filter(function(E){return E.enabled}),process.env.NODE_ENV!=="production"){var x=T1([].concat($,a.options.modifiers),function(E){var A=E.name;return A});if($1(x),Ln(a.options.placement)===Ua){var b=a.orderedModifiers.find(function(E){var A=E.name;return A==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var C=Mn(l),T=C.marginTop,k=C.marginRight,S=C.marginBottom,y=C.marginLeft;[T,k,S,y].some(function(E){return parseFloat(E)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),p.update()},forceUpdate:function(){if(!h){var w=a.elements,_=w.reference,$=w.popper;if(!df(_,$)){process.env.NODE_ENV!=="production"&&console.error(uf);return}a.rects={reference:_1(_,po($),a.options.strategy==="fixed"),popper:Ju($)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(E){return a.modifiersData[E.name]=Object.assign({},E.data)});for(var x=0,b=0;b<a.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(x+=1,x>100)){console.error(O1);break}if(a.reset===!0){a.reset=!1,b=-1;continue}var C=a.orderedModifiers[b],T=C.fn,k=C.options,S=k===void 0?{}:k,y=C.name;typeof T=="function"&&(a=T({state:a,options:S,name:y,instance:p})||a)}}},update:E1(function(){return new Promise(function(v){p.forceUpdate(),v(a)})}),destroy:function(){g(),h=!0}};if(!df(u,l))return process.env.NODE_ENV!=="production"&&console.error(uf),p;p.setOptions(f).then(function(v){!h&&f.onFirstUpdate&&f.onFirstUpdate(v)});function m(){a.orderedModifiers.forEach(function(v){var w=v.name,_=v.options,$=_===void 0?{}:_,x=v.effect;if(typeof x=="function"){var b=x({state:a,name:w,instance:p,options:$}),C=function(){};c.push(b||C)}})}function g(){c.forEach(function(v){return v()}),c=[]}return p}}var R1=[qS,m1,KS,BS,f1,l1,y1,zS,u1],ns=L1({defaultModifiers:R1});/**
1054
+ * Vue Currency Input 3.0.2
1055
+ * (c) 2018-2022 Matthias Stiller
1056
+ * @license MIT
1057
+ */var lr;(function(t){t.symbol="symbol",t.narrowSymbol="narrowSymbol",t.code="code",t.name="name",t.hidden="hidden"})(lr||(lr={}));var ai;(function(t){t.precision="precision",t.thousands="thousands",t.millions="millions",t.billions="billions"})(ai||(ai={}));const ta=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),ig=t=>t.replace(/^0+(0$|[^0])/,"$1"),oc=(t,e)=>(t.match(new RegExp(ta(e),"g"))||[]).length,M1=(t,e)=>t.substring(0,t.indexOf(e)),sg=[",",".","\u066B"],ff="(0|[1-9]\\d*)";class I1{constructor(e){var n,r,s,i,o,u;const{currency:l,currencyDisplay:f,locale:a,precision:c,accountingSign:h}=e;this.locale=a,this.options={style:"currency",currency:l,currencySign:h?"accounting":void 0,currencyDisplay:f!==lr.hidden?f:void 0};const p=new Intl.NumberFormat(a,this.options),m=p.formatToParts(123456);this.currency=(n=m.find(({type:w})=>w==="currency"))===null||n===void 0?void 0:n.value,this.digits=[0,1,2,3,4,5,6,7,8,9].map(w=>w.toLocaleString(a)),this.decimalSymbol=(r=m.find(({type:w})=>w==="decimal"))===null||r===void 0?void 0:r.value,this.groupingSymbol=(s=m.find(({type:w})=>w==="group"))===null||s===void 0?void 0:s.value,this.minusSign=(i=p.formatToParts(-1).find(({type:w})=>w==="minusSign"))===null||i===void 0?void 0:i.value,this.decimalSymbol===void 0?this.minimumFractionDigits=this.maximumFractionDigits=0:typeof c=="number"?this.minimumFractionDigits=this.maximumFractionDigits=c:(this.minimumFractionDigits=(o=c==null?void 0:c.min)!==null&&o!==void 0?o:p.resolvedOptions().minimumFractionDigits,this.maximumFractionDigits=(u=c==null?void 0:c.max)!==null&&u!==void 0?u:p.resolvedOptions().maximumFractionDigits);const g=w=>M1(w,this.digits[1]),v=w=>w.substring(w.lastIndexOf(this.decimalSymbol?this.digits[0]:this.digits[1])+1);this.prefix=g(p.format(1)),this.suffix=v(p.format(1)),this.negativePrefix=g(p.format(-1)),this.negativeSuffix=v(p.format(-1))}parse(e){if(e){const n=this.isNegative(e);e=this.normalizeDigits(e),e=this.stripCurrency(e,n),e=this.stripSignLiterals(e);const r=this.decimalSymbol?`(?:${ta(this.decimalSymbol)}(\\d*))?`:"",s=this.stripGroupingSeparator(e).match(new RegExp(`^${ff}${r}$`));if(s&&this.isValidIntegerFormat(this.decimalSymbol?e.split(this.decimalSymbol)[0]:e,Number(s[1])))return Number(`${n?"-":""}${this.onlyDigits(s[1])}.${this.onlyDigits(s[2]||"")}`)}return null}isValidIntegerFormat(e,n){const r={...this.options,minimumFractionDigits:0};return[this.stripCurrency(this.normalizeDigits(n.toLocaleString(this.locale,{...r,useGrouping:!0})),!1),this.stripCurrency(this.normalizeDigits(n.toLocaleString(this.locale,{...r,useGrouping:!1})),!1)].includes(e)}format(e,n={minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits}){return e!=null?e.toLocaleString(this.locale,{...this.options,...n}):""}toFraction(e){return`${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(e.substr(1)).substr(0,this.maximumFractionDigits)}`}isFractionIncomplete(e){return!!this.normalizeDigits(this.stripGroupingSeparator(e)).match(new RegExp(`^${ff}${ta(this.decimalSymbol)}$`))}isNegative(e){return e.startsWith(this.negativePrefix)||this.minusSign===void 0&&(e.startsWith("(")||e.startsWith("-"))||this.minusSign!==void 0&&e.replace("-",this.minusSign).startsWith(this.minusSign)}insertCurrency(e,n){return`${n?this.negativePrefix:this.prefix}${e}${n?this.negativeSuffix:this.suffix}`}stripGroupingSeparator(e){return this.groupingSymbol!==void 0?e.replace(new RegExp(ta(this.groupingSymbol),"g"),""):e}stripSignLiterals(e){return this.minusSign!==void 0?e.replace("-",this.minusSign).replace(this.minusSign,""):e.replace(/[-()]/g,"")}stripCurrency(e,n){return e.replace(n?this.negativePrefix:this.prefix,"").replace(n?this.negativeSuffix:this.suffix,"")}normalizeDecimalSeparator(e,n){return sg.forEach(r=>{e=e.substr(0,n)+e.substr(n).replace(r,this.decimalSymbol)}),e}normalizeDigits(e){return this.digits[0]!=="0"&&this.digits.forEach((n,r)=>{e=e.replace(new RegExp(n,"g"),String(r))}),e}onlyDigits(e){return this.normalizeDigits(e).replace(/\D+/g,"")}onlyLocaleDigits(e){return e.replace(new RegExp(`[^${this.digits.join("")}]*`,"g"),"")}}class og{constructor(e){this.currencyFormat=e}}class N1 extends og{conformToMask(e,n=""){const r=this.currencyFormat.isNegative(e),s=m=>m===""&&r&&!(this.currencyFormat.minusSign===void 0?n===this.currencyFormat.negativePrefix+this.currencyFormat.negativeSuffix:n===this.currencyFormat.negativePrefix),i=m=>{if(s(m))return"";if(this.currencyFormat.maximumFractionDigits>0){if(this.currencyFormat.isFractionIncomplete(m))return m;if(m.startsWith(this.currencyFormat.decimalSymbol))return this.currencyFormat.toFraction(m)}return null};let o=e;o=this.currencyFormat.stripCurrency(o,r),o=this.currencyFormat.stripSignLiterals(o);const u=i(o);if(u!=null)return this.currencyFormat.insertCurrency(u,r);const[l,...f]=o.split(this.currencyFormat.decimalSymbol),a=ig(this.currencyFormat.onlyDigits(l)),c=this.currencyFormat.onlyDigits(f.join("")).substr(0,this.currencyFormat.maximumFractionDigits),h=f.length>0&&c.length===0,p=a===""&&r&&(this.currencyFormat.minusSign===void 0?n===e.slice(0,-2)+this.currencyFormat.negativeSuffix:n===e.slice(0,-1));return h||p||s(a)?n:a.match(/\d+/)?{numberValue:Number(`${r?"-":""}${a}.${c}`),fractionDigits:c}:""}}class D1 extends og{conformToMask(e,n=""){if(e===""||this.currencyFormat.parse(n)===0&&this.currencyFormat.stripCurrency(n,!0).slice(0,-1)===this.currencyFormat.stripCurrency(e,!0))return"";const r=this.currencyFormat.isNegative(e),s=this.currencyFormat.stripSignLiterals(e)===""?-0:Number(`${r?"-":""}${ig(this.currencyFormat.onlyDigits(e))}`)/Math.pow(10,this.currencyFormat.maximumFractionDigits);return{numberValue:s,fractionDigits:s.toFixed(this.currencyFormat.maximumFractionDigits).slice(-this.currencyFormat.maximumFractionDigits)}}}const P1={locale:void 0,currency:void 0,currencyDisplay:void 0,hideGroupingSeparatorOnFocus:!0,hideCurrencySymbolOnFocus:!0,hideNegligibleDecimalDigitsOnFocus:!0,precision:void 0,autoDecimalDigits:!1,valueRange:void 0,useGrouping:!0,valueScaling:void 0};class B1{constructor(e){this.el=e.el,this.onInput=e.onInput,this.onChange=e.onChange,this.addEventListener(),this.init(e.options)}setOptions(e){this.init(e),this.applyFixedFractionFormat(this.numberValue,!0)}getValue(){return{number:this.valueScaling&&this.numberValue!=null?this.toInteger(this.numberValue,this.valueScaling):this.numberValue,formatted:this.formattedValue}}setValue(e){const n=this.valueScaling!==void 0&&e!=null?this.toFloat(e,this.valueScaling):e;n!==this.numberValue&&this.applyFixedFractionFormat(n)}init(e){this.options={...P1,...e},this.options.autoDecimalDigits?(this.options.hideNegligibleDecimalDigitsOnFocus=!1,this.el.setAttribute("inputmode","numeric")):this.el.setAttribute("inputmode","decimal"),this.currencyFormat=new I1(this.options),this.numberMask=this.options.autoDecimalDigits?new D1(this.currencyFormat):new N1(this.currencyFormat);const n={[ai.precision]:this.currencyFormat.maximumFractionDigits,[ai.thousands]:3,[ai.millions]:6,[ai.billions]:9};this.valueScaling=this.options.valueScaling?n[this.options.valueScaling]:void 0,this.valueScalingFractionDigits=this.valueScaling!==void 0&&this.options.valueScaling!==ai.precision?this.valueScaling+this.currencyFormat.maximumFractionDigits:this.currencyFormat.maximumFractionDigits,this.minValue=this.getMinValue(),this.maxValue=this.getMaxValue()}getMinValue(){var e,n;let r=this.toFloat(-Number.MAX_SAFE_INTEGER);return((e=this.options.valueRange)===null||e===void 0?void 0:e.min)!==void 0&&(r=Math.max((n=this.options.valueRange)===null||n===void 0?void 0:n.min,this.toFloat(-Number.MAX_SAFE_INTEGER))),r}getMaxValue(){var e,n;let r=this.toFloat(Number.MAX_SAFE_INTEGER);return((e=this.options.valueRange)===null||e===void 0?void 0:e.max)!==void 0&&(r=Math.min((n=this.options.valueRange)===null||n===void 0?void 0:n.max,this.toFloat(Number.MAX_SAFE_INTEGER))),r}toFloat(e,n){return e/Math.pow(10,n!=null?n:this.valueScalingFractionDigits)}toInteger(e,n){return Number(e.toFixed(n!=null?n:this.valueScalingFractionDigits).split(".").join(""))}validateValueRange(e){return e!=null?Math.min(Math.max(e,this.minValue),this.maxValue):e}applyFixedFractionFormat(e,n=!1){this.format(this.currencyFormat.format(this.validateValueRange(e))),(e!==this.numberValue||n)&&this.onChange(this.getValue())}format(e,n=!1){if(e!=null){this.decimalSymbolInsertedAt!==void 0&&(e=this.currencyFormat.normalizeDecimalSeparator(e,this.decimalSymbolInsertedAt),this.decimalSymbolInsertedAt=void 0);const r=this.numberMask.conformToMask(e,this.formattedValue);let s;if(typeof r=="object"){const{numberValue:i,fractionDigits:o}=r;let{maximumFractionDigits:u,minimumFractionDigits:l}=this.currencyFormat;this.focus?l=n?o.replace(/0+$/,"").length:Math.min(u,o.length):Number.isInteger(i)&&!this.options.autoDecimalDigits&&(this.options.precision===void 0||l===0)&&(l=u=0),s=this.toInteger(Math.abs(i))>Number.MAX_SAFE_INTEGER?this.formattedValue:this.currencyFormat.format(i,{useGrouping:this.options.useGrouping&&!(this.focus&&this.options.hideGroupingSeparatorOnFocus),minimumFractionDigits:l,maximumFractionDigits:u})}else s=r;this.maxValue<=0&&!this.currencyFormat.isNegative(s)&&this.currencyFormat.parse(s)!==0&&(s=s.replace(this.currencyFormat.prefix,this.currencyFormat.negativePrefix)),this.minValue>=0&&(s=s.replace(this.currencyFormat.negativePrefix,this.currencyFormat.prefix)),(this.options.currencyDisplay===lr.hidden||this.focus&&this.options.hideCurrencySymbolOnFocus)&&(s=s.replace(this.currencyFormat.negativePrefix,this.currencyFormat.minusSign!==void 0?this.currencyFormat.minusSign:"(").replace(this.currencyFormat.negativeSuffix,this.currencyFormat.minusSign!==void 0?"":")").replace(this.currencyFormat.prefix,"").replace(this.currencyFormat.suffix,"")),this.el.value=s,this.numberValue=this.currencyFormat.parse(s)}else this.el.value="",this.numberValue=null;this.formattedValue=this.el.value,this.onInput(this.getValue())}addEventListener(){this.el.addEventListener("input",e=>{const{value:n,selectionStart:r}=this.el,s=e;if(r&&s.data&&sg.includes(s.data)&&(this.decimalSymbolInsertedAt=r-1),this.format(n),this.focus&&r!=null){const i=()=>{const{prefix:o,suffix:u,decimalSymbol:l,maximumFractionDigits:f,groupingSymbol:a}=this.currencyFormat;let c=n.length-r;const h=this.formattedValue.length;if(this.currencyFormat.minusSign===void 0&&(n.startsWith("(")||n.startsWith("-"))&&!n.endsWith(")"))return h-this.currencyFormat.negativeSuffix.length>1?this.formattedValue.substring(r).length:1;if(this.formattedValue.substr(r,1)===a&&oc(this.formattedValue,a)===oc(n,a)+1)return h-c-1;if(h<c)return r;if(l!==void 0&&n.indexOf(l)!==-1){const p=n.indexOf(l)+1;if(Math.abs(h-n.length)>1&&r<=p)return this.formattedValue.indexOf(l)+1;!this.options.autoDecimalDigits&&r>p&&this.currencyFormat.onlyDigits(n.substr(p)).length-1===f&&(c-=1)}return this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===lr.hidden?h-c:Math.max(h-Math.max(c,u.length),o.length)};this.setCaretPosition(i())}}),this.el.addEventListener("focus",()=>{this.focus=!0,setTimeout(()=>{const{value:e,selectionStart:n,selectionEnd:r}=this.el;if(this.format(e,this.options.hideNegligibleDecimalDigitsOnFocus),n!=null&&r!=null&&Math.abs(n-r)>0)this.setCaretPosition(0,this.el.value.length);else if(n!=null){const s=this.getCaretPositionOnFocus(e,n);this.setCaretPosition(s)}})}),this.el.addEventListener("blur",()=>{this.focus=!1,this.applyFixedFractionFormat(this.numberValue)}),this.el.addEventListener("change",()=>{this.onChange(this.getValue())})}getCaretPositionOnFocus(e,n){if(this.numberValue==null)return n;const{prefix:r,negativePrefix:s,suffix:i,negativeSuffix:o,groupingSymbol:u,currency:l}=this.currencyFormat,f=this.numberValue<0,a=f?s:r,c=a.length;if(this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===lr.hidden){if(f){if(n<=1)return 1;if(e.endsWith(")")&&n>e.indexOf(")"))return this.formattedValue.length-1}}else{const p=f?o.length:i.length;if(n>=e.length-p)return this.formattedValue.length-p;if(n<c)return c}let h=n;return this.options.hideCurrencySymbolOnFocus&&this.options.currencyDisplay!==lr.hidden&&n>=c&&l!==void 0&&a.includes(l)&&(h-=c,f&&(h+=1)),this.options.hideGroupingSeparatorOnFocus&&u!==void 0&&(h-=oc(e.substring(0,n),u)),h}setCaretPosition(e,n=e){this.el.setSelectionRange(e,n)}}const F1=t=>t!=null&&t.matches("input")?t:t==null?void 0:t.querySelector("input");function V1(t,e){var n,r,s,i;let o;const u=d.ref(null),l=d.ref(null),f=d.ref(null),a=d.getCurrentInstance(),c=(a==null?void 0:a.emit)||((r=(n=a==null?void 0:a.proxy)===null||n===void 0?void 0:n.$emit)===null||r===void 0?void 0:r.bind(a==null?void 0:a.proxy)),h=(a==null?void 0:a.props)||((s=a==null?void 0:a.proxy)===null||s===void 0?void 0:s.$props),p=d.version.startsWith("3"),m=p&&((i=a==null?void 0:a.attrs.modelModifiers)===null||i===void 0?void 0:i.lazy),g=d.computed(()=>h==null?void 0:h[p?"modelValue":"value"]),v=p?"update:modelValue":"input",w=m?"update:modelValue":"change";return d.watch(u,_=>{var $;if(_){const x=F1(($=_==null?void 0:_.$el)!==null&&$!==void 0?$:_);x?(o=new B1({el:x,options:t,onInput:b=>{!m&&e!==!1&&g.value!==b.number&&(c==null||c(v,b.number)),f.value=b.number,l.value=b.formatted},onChange:b=>{c==null||c(w,b.number)}}),o.setValue(g.value)):console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.')}else o=null}),{inputRef:u,numberValue:f,formattedValue:l,setValue:_=>o==null?void 0:o.setValue(_),setOptions:_=>o==null?void 0:o.setOptions(_)}}function W1(t,e){console.debug("[@vc-shell/framework#useFunctions:debounce] - Entry point");let n=null;return function(...r){n&&clearTimeout(n),n=window.setTimeout(()=>{n=null,t(...r)},e)}}function U1(t,e=0){console.debug("[@vc-shell/framework#useFunctions:delay] - Entry point"),setTimeout(t,e)}const ac=new WeakMap;function H1(t){return console.debug("[@vc-shell/framework#useFunctions:once] - Entry point"),function(...e){if(!ac.has(t)){const n=t(...e);ac.set(t,n)}return ac.get(t)}}function j1(t,e){console.debug("[@vc-shell/framework#useFunctions:throttle] - Entry point");let n=!1;return function(...r){n||(t(...r),n=!0,setTimeout(()=>{n=!1},e))}}function z1(){return console.debug("useFunctions entry point"),{debounce:W1,delay:U1,once:H1,throttle:j1}}/*!
1058
+ * shared v9.2.2
1059
+ * (c) 2022 kazuya kawaguchi
1060
+ * Released under the MIT License.
1061
+ */const zn=typeof window<"u";let nn,pi;if(process.env.NODE_ENV!=="production"){const t=zn&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(nn=e=>t.mark(e),pi=(e,n,r)=>{t.measure(e,n,r),t.clearMarks(n),t.clearMarks(r)})}const G1=/\{([0-9a-zA-Z]+)\}/g;function ja(t,...e){return e.length===1&&Ye(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(G1,(n,r)=>e.hasOwnProperty(r)?e[r]:"")}const Y1=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Kn=t=>Y1?Symbol(t):t,J1=(t,e,n)=>K1({l:t,k:e,s:n}),K1=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),bt=t=>typeof t=="number"&&isFinite(t),X1=t=>eh(t)==="[object Date]",Hr=t=>eh(t)==="[object RegExp]",za=t=>_e(t)&&Object.keys(t).length===0;function jt(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const Et=Object.assign;let pf;const Os=()=>pf||(pf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mf(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const q1=Object.prototype.hasOwnProperty;function Qu(t,e){return q1.call(t,e)}const qe=Array.isArray,ct=t=>typeof t=="function",se=t=>typeof t=="string",Me=t=>typeof t=="boolean",Ye=t=>t!==null&&typeof t=="object",ag=Object.prototype.toString,eh=t=>ag.call(t),_e=t=>eh(t)==="[object Object]",Z1=t=>t==null?"":qe(t)||_e(t)&&t.toString===ag?JSON.stringify(t,null,2):String(t),gf=2;function Q1(t,e=0,n=t.length){const r=t.split(/\r?\n/);let s=0;const i=[];for(let o=0;o<r.length;o++)if(s+=r[o].length+1,s>=e){for(let u=o-gf;u<=o+gf||n>s;u++){if(u<0||u>=r.length)continue;const l=u+1;i.push(`${l}${" ".repeat(3-String(l).length)}| ${r[u]}`);const f=r[u].length;if(u===o){const a=e-(s-f)+1,c=Math.max(1,n>s?f-a:n-e);i.push(" | "+" ".repeat(a)+"^".repeat(c))}else if(u>o){if(n>s){const a=Math.max(Math.min(n-s,f),1);i.push(" | "+"^".repeat(a))}s+=f+1}}break}return i.join(`
1062
+ `)}function th(){const t=new Map;return{events:t,on(n,r){const s=t.get(n);s&&s.push(r)||t.set(n,[r])},off(n,r){const s=t.get(n);s&&s.splice(s.indexOf(r)>>>0,1)},emit(n,r){(t.get(n)||[]).slice().map(s=>s(r)),(t.get("*")||[]).slice().map(s=>s(n,r))}}}/*!
1063
+ * message-compiler v9.2.2
1064
+ * (c) 2022 kazuya kawaguchi
1065
+ * Released under the MIT License.
1066
+ */const we={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15},e_={[we.EXPECTED_TOKEN]:"Expected token: '{0}'",[we.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[we.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[we.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[we.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[we.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[we.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[we.EMPTY_PLACEHOLDER]:"Empty placeholder",[we.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[we.INVALID_LINKED_FORMAT]:"Invalid linked format",[we.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[we.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[we.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[we.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function Ga(t,e,n={}){const{domain:r,messages:s,args:i}=n,o=process.env.NODE_ENV!=="production"?ja((s||e_)[t]||"",...i||[]):t,u=new SyntaxError(String(o));return u.code=t,e&&(u.location=e),u.domain=r,u}function t_(t){throw t}function n_(t,e,n){return{line:t,column:e,offset:n}}function Jc(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const ir=" ",r_="\r",Dt=`
1067
+ `,i_=String.fromCharCode(8232),s_=String.fromCharCode(8233);function o_(t){const e=t;let n=0,r=1,s=1,i=0;const o=T=>e[T]===r_&&e[T+1]===Dt,u=T=>e[T]===Dt,l=T=>e[T]===s_,f=T=>e[T]===i_,a=T=>o(T)||u(T)||l(T)||f(T),c=()=>n,h=()=>r,p=()=>s,m=()=>i,g=T=>o(T)||l(T)||f(T)?Dt:e[T],v=()=>g(n),w=()=>g(n+i);function _(){return i=0,a(n)&&(r++,s=0),o(n)&&n++,n++,s++,e[n]}function $(){return o(n+i)&&i++,i++,e[n+i]}function x(){n=0,r=1,s=1,i=0}function b(T=0){i=T}function C(){const T=n+i;for(;T!==n;)_();i=0}return{index:c,line:h,column:p,peekOffset:m,charAt:g,currentChar:v,currentPeek:w,next:_,peek:$,reset:x,resetPeek:b,skipToPeek:C}}const Lr=void 0,vf="'",a_="tokenizer";function l_(t,e={}){const n=e.location!==!1,r=o_(t),s=()=>r.index(),i=()=>n_(r.line(),r.column(),r.index()),o=i(),u=s(),l={currentType:14,offset:u,startLoc:o,endLoc:o,lastType:14,lastOffset:u,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},f=()=>l,{onError:a}=e;function c(P,D,z,...ee){const fe=f();if(D.column+=z,D.offset+=z,a){const be=Jc(fe.startLoc,D),mt=Ga(P,be,{domain:a_,args:ee});a(mt)}}function h(P,D,z){P.endLoc=i(),P.currentType=D;const ee={type:D};return n&&(ee.loc=Jc(P.startLoc,P.endLoc)),z!=null&&(ee.value=z),ee}const p=P=>h(P,14);function m(P,D){return P.currentChar()===D?(P.next(),D):(c(we.EXPECTED_TOKEN,i(),0,D),"")}function g(P){let D="";for(;P.currentPeek()===ir||P.currentPeek()===Dt;)D+=P.currentPeek(),P.peek();return D}function v(P){const D=g(P);return P.skipToPeek(),D}function w(P){if(P===Lr)return!1;const D=P.charCodeAt(0);return D>=97&&D<=122||D>=65&&D<=90||D===95}function _(P){if(P===Lr)return!1;const D=P.charCodeAt(0);return D>=48&&D<=57}function $(P,D){const{currentType:z}=D;if(z!==2)return!1;g(P);const ee=w(P.currentPeek());return P.resetPeek(),ee}function x(P,D){const{currentType:z}=D;if(z!==2)return!1;g(P);const ee=P.currentPeek()==="-"?P.peek():P.currentPeek(),fe=_(ee);return P.resetPeek(),fe}function b(P,D){const{currentType:z}=D;if(z!==2)return!1;g(P);const ee=P.currentPeek()===vf;return P.resetPeek(),ee}function C(P,D){const{currentType:z}=D;if(z!==8)return!1;g(P);const ee=P.currentPeek()===".";return P.resetPeek(),ee}function T(P,D){const{currentType:z}=D;if(z!==9)return!1;g(P);const ee=w(P.currentPeek());return P.resetPeek(),ee}function k(P,D){const{currentType:z}=D;if(!(z===8||z===12))return!1;g(P);const ee=P.currentPeek()===":";return P.resetPeek(),ee}function S(P,D){const{currentType:z}=D;if(z!==10)return!1;const ee=()=>{const be=P.currentPeek();return be==="{"?w(P.peek()):be==="@"||be==="%"||be==="|"||be===":"||be==="."||be===ir||!be?!1:be===Dt?(P.peek(),ee()):w(be)},fe=ee();return P.resetPeek(),fe}function y(P){g(P);const D=P.currentPeek()==="|";return P.resetPeek(),D}function E(P){const D=g(P),z=P.currentPeek()==="%"&&P.peek()==="{";return P.resetPeek(),{isModulo:z,hasSpace:D.length>0}}function A(P,D=!0){const z=(fe=!1,be="",mt=!1)=>{const dt=P.currentPeek();return dt==="{"?be==="%"?!1:fe:dt==="@"||!dt?be==="%"?!0:fe:dt==="%"?(P.peek(),z(fe,"%",!0)):dt==="|"?be==="%"||mt?!0:!(be===ir||be===Dt):dt===ir?(P.peek(),z(!0,ir,mt)):dt===Dt?(P.peek(),z(!0,Dt,mt)):!0},ee=z();return D&&P.resetPeek(),ee}function O(P,D){const z=P.currentChar();return z===Lr?Lr:D(z)?(P.next(),z):null}function R(P){return O(P,z=>{const ee=z.charCodeAt(0);return ee>=97&&ee<=122||ee>=65&&ee<=90||ee>=48&&ee<=57||ee===95||ee===36})}function M(P){return O(P,z=>{const ee=z.charCodeAt(0);return ee>=48&&ee<=57})}function I(P){return O(P,z=>{const ee=z.charCodeAt(0);return ee>=48&&ee<=57||ee>=65&&ee<=70||ee>=97&&ee<=102})}function B(P){let D="",z="";for(;D=M(P);)z+=D;return z}function W(P){v(P);const D=P.currentChar();return D!=="%"&&c(we.EXPECTED_TOKEN,i(),0,D),P.next(),"%"}function F(P){let D="";for(;;){const z=P.currentChar();if(z==="{"||z==="}"||z==="@"||z==="|"||!z)break;if(z==="%")if(A(P))D+=z,P.next();else break;else if(z===ir||z===Dt)if(A(P))D+=z,P.next();else{if(y(P))break;D+=z,P.next()}else D+=z,P.next()}return D}function j(P){v(P);let D="",z="";for(;D=R(P);)z+=D;return P.currentChar()===Lr&&c(we.UNTERMINATED_CLOSING_BRACE,i(),0),z}function J(P){v(P);let D="";return P.currentChar()==="-"?(P.next(),D+=`-${B(P)}`):D+=B(P),P.currentChar()===Lr&&c(we.UNTERMINATED_CLOSING_BRACE,i(),0),D}function Y(P){v(P),m(P,"'");let D="",z="";const ee=be=>be!==vf&&be!==Dt;for(;D=O(P,ee);)D==="\\"?z+=U(P):z+=D;const fe=P.currentChar();return fe===Dt||fe===Lr?(c(we.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),fe===Dt&&(P.next(),m(P,"'")),z):(m(P,"'"),z)}function U(P){const D=P.currentChar();switch(D){case"\\":case"'":return P.next(),`\\${D}`;case"u":return G(P,D,4);case"U":return G(P,D,6);default:return c(we.UNKNOWN_ESCAPE_SEQUENCE,i(),0,D),""}}function G(P,D,z){m(P,D);let ee="";for(let fe=0;fe<z;fe++){const be=I(P);if(!be){c(we.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${D}${ee}${P.currentChar()}`);break}ee+=be}return`\\${D}${ee}`}function X(P){v(P);let D="",z="";const ee=fe=>fe!=="{"&&fe!=="}"&&fe!==ir&&fe!==Dt;for(;D=O(P,ee);)z+=D;return z}function Z(P){let D="",z="";for(;D=R(P);)z+=D;return z}function te(P){const D=(z=!1,ee)=>{const fe=P.currentChar();return fe==="{"||fe==="%"||fe==="@"||fe==="|"||!fe||fe===ir?ee:fe===Dt?(ee+=fe,P.next(),D(z,ee)):(ee+=fe,P.next(),D(!0,ee))};return D(!1,"")}function ie(P){v(P);const D=m(P,"|");return v(P),D}function de(P,D){let z=null;switch(P.currentChar()){case"{":return D.braceNest>=1&&c(we.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),P.next(),z=h(D,2,"{"),v(P),D.braceNest++,z;case"}":return D.braceNest>0&&D.currentType===2&&c(we.EMPTY_PLACEHOLDER,i(),0),P.next(),z=h(D,3,"}"),D.braceNest--,D.braceNest>0&&v(P),D.inLinked&&D.braceNest===0&&(D.inLinked=!1),z;case"@":return D.braceNest>0&&c(we.UNTERMINATED_CLOSING_BRACE,i(),0),z=ae(P,D)||p(D),D.braceNest=0,z;default:let fe=!0,be=!0,mt=!0;if(y(P))return D.braceNest>0&&c(we.UNTERMINATED_CLOSING_BRACE,i(),0),z=h(D,1,ie(P)),D.braceNest=0,D.inLinked=!1,z;if(D.braceNest>0&&(D.currentType===5||D.currentType===6||D.currentType===7))return c(we.UNTERMINATED_CLOSING_BRACE,i(),0),D.braceNest=0,Ce(P,D);if(fe=$(P,D))return z=h(D,5,j(P)),v(P),z;if(be=x(P,D))return z=h(D,6,J(P)),v(P),z;if(mt=b(P,D))return z=h(D,7,Y(P)),v(P),z;if(!fe&&!be&&!mt)return z=h(D,13,X(P)),c(we.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,z.value),v(P),z;break}return z}function ae(P,D){const{currentType:z}=D;let ee=null;const fe=P.currentChar();switch((z===8||z===9||z===12||z===10)&&(fe===Dt||fe===ir)&&c(we.INVALID_LINKED_FORMAT,i(),0),fe){case"@":return P.next(),ee=h(D,8,"@"),D.inLinked=!0,ee;case".":return v(P),P.next(),h(D,9,".");case":":return v(P),P.next(),h(D,10,":");default:return y(P)?(ee=h(D,1,ie(P)),D.braceNest=0,D.inLinked=!1,ee):C(P,D)||k(P,D)?(v(P),ae(P,D)):T(P,D)?(v(P),h(D,12,Z(P))):S(P,D)?(v(P),fe==="{"?de(P,D)||ee:h(D,11,te(P))):(z===8&&c(we.INVALID_LINKED_FORMAT,i(),0),D.braceNest=0,D.inLinked=!1,Ce(P,D))}}function Ce(P,D){let z={type:14};if(D.braceNest>0)return de(P,D)||p(D);if(D.inLinked)return ae(P,D)||p(D);switch(P.currentChar()){case"{":return de(P,D)||p(D);case"}":return c(we.UNBALANCED_CLOSING_BRACE,i(),0),P.next(),h(D,3,"}");case"@":return ae(P,D)||p(D);default:if(y(P))return z=h(D,1,ie(P)),D.braceNest=0,D.inLinked=!1,z;const{isModulo:fe,hasSpace:be}=E(P);if(fe)return be?h(D,0,F(P)):h(D,4,W(P));if(A(P))return h(D,0,F(P));break}return z}function Re(){const{currentType:P,offset:D,startLoc:z,endLoc:ee}=l;return l.lastType=P,l.lastOffset=D,l.lastStartLoc=z,l.lastEndLoc=ee,l.offset=s(),l.startLoc=i(),r.currentChar()===Lr?h(l,14):Ce(r,l)}return{nextToken:Re,currentOffset:s,currentPosition:i,context:f}}const c_="parser",u_=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function h_(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"\uFFFD"}}}function d_(t={}){const e=t.location!==!1,{onError:n}=t;function r(w,_,$,x,...b){const C=w.currentPosition();if(C.offset+=x,C.column+=x,n){const T=Jc($,C),k=Ga(_,T,{domain:c_,args:b});n(k)}}function s(w,_,$){const x={type:w,start:_,end:_};return e&&(x.loc={start:$,end:$}),x}function i(w,_,$,x){w.end=_,x&&(w.type=x),e&&w.loc&&(w.loc.end=$)}function o(w,_){const $=w.context(),x=s(3,$.offset,$.startLoc);return x.value=_,i(x,w.currentOffset(),w.currentPosition()),x}function u(w,_){const $=w.context(),{lastOffset:x,lastStartLoc:b}=$,C=s(5,x,b);return C.index=parseInt(_,10),w.nextToken(),i(C,w.currentOffset(),w.currentPosition()),C}function l(w,_){const $=w.context(),{lastOffset:x,lastStartLoc:b}=$,C=s(4,x,b);return C.key=_,w.nextToken(),i(C,w.currentOffset(),w.currentPosition()),C}function f(w,_){const $=w.context(),{lastOffset:x,lastStartLoc:b}=$,C=s(9,x,b);return C.value=_.replace(u_,h_),w.nextToken(),i(C,w.currentOffset(),w.currentPosition()),C}function a(w){const _=w.nextToken(),$=w.context(),{lastOffset:x,lastStartLoc:b}=$,C=s(8,x,b);return _.type!==12?(r(w,we.UNEXPECTED_EMPTY_LINKED_MODIFIER,$.lastStartLoc,0),C.value="",i(C,x,b),{nextConsumeToken:_,node:C}):(_.value==null&&r(w,we.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Fn(_)),C.value=_.value||"",i(C,w.currentOffset(),w.currentPosition()),{node:C})}function c(w,_){const $=w.context(),x=s(7,$.offset,$.startLoc);return x.value=_,i(x,w.currentOffset(),w.currentPosition()),x}function h(w){const _=w.context(),$=s(6,_.offset,_.startLoc);let x=w.nextToken();if(x.type===9){const b=a(w);$.modifier=b.node,x=b.nextConsumeToken||w.nextToken()}switch(x.type!==10&&r(w,we.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Fn(x)),x=w.nextToken(),x.type===2&&(x=w.nextToken()),x.type){case 11:x.value==null&&r(w,we.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Fn(x)),$.key=c(w,x.value||"");break;case 5:x.value==null&&r(w,we.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Fn(x)),$.key=l(w,x.value||"");break;case 6:x.value==null&&r(w,we.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Fn(x)),$.key=u(w,x.value||"");break;case 7:x.value==null&&r(w,we.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Fn(x)),$.key=f(w,x.value||"");break;default:r(w,we.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const b=w.context(),C=s(7,b.offset,b.startLoc);return C.value="",i(C,b.offset,b.startLoc),$.key=C,i($,b.offset,b.startLoc),{nextConsumeToken:x,node:$}}return i($,w.currentOffset(),w.currentPosition()),{node:$}}function p(w){const _=w.context(),$=_.currentType===1?w.currentOffset():_.offset,x=_.currentType===1?_.endLoc:_.startLoc,b=s(2,$,x);b.items=[];let C=null;do{const S=C||w.nextToken();switch(C=null,S.type){case 0:S.value==null&&r(w,we.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Fn(S)),b.items.push(o(w,S.value||""));break;case 6:S.value==null&&r(w,we.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Fn(S)),b.items.push(u(w,S.value||""));break;case 5:S.value==null&&r(w,we.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Fn(S)),b.items.push(l(w,S.value||""));break;case 7:S.value==null&&r(w,we.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Fn(S)),b.items.push(f(w,S.value||""));break;case 8:const y=h(w);b.items.push(y.node),C=y.nextConsumeToken||null;break}}while(_.currentType!==14&&_.currentType!==1);const T=_.currentType===1?_.lastOffset:w.currentOffset(),k=_.currentType===1?_.lastEndLoc:w.currentPosition();return i(b,T,k),b}function m(w,_,$,x){const b=w.context();let C=x.items.length===0;const T=s(1,_,$);T.cases=[],T.cases.push(x);do{const k=p(w);C||(C=k.items.length===0),T.cases.push(k)}while(b.currentType!==14);return C&&r(w,we.MUST_HAVE_MESSAGES_IN_PLURAL,$,0),i(T,w.currentOffset(),w.currentPosition()),T}function g(w){const _=w.context(),{offset:$,startLoc:x}=_,b=p(w);return _.currentType===14?b:m(w,$,x,b)}function v(w){const _=l_(w,Et({},t)),$=_.context(),x=s(0,$.offset,$.startLoc);return e&&x.loc&&(x.loc.source=w),x.body=g(_),$.currentType!==14&&r(_,we.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,w[$.offset]||""),i(x,_.currentOffset(),_.currentPosition()),x}return{parse:v}}function Fn(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"\u2026":e}function f_(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function yf(t,e){for(let n=0;n<t.length;n++)nh(t[n],e)}function nh(t,e){switch(t.type){case 1:yf(t.cases,e),e.helper("plural");break;case 2:yf(t.items,e);break;case 6:nh(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function p_(t,e={}){const n=f_(t);n.helper("normalize"),t.body&&nh(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function m_(t,e){const{sourceMap:n,filename:r,breakLineCode:s,needIndent:i}=e,o={source:t.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:i,indentLevel:0},u=()=>o;function l(g,v){o.code+=g}function f(g,v=!0){const w=v?s:"";l(i?w+" ".repeat(g):w)}function a(g=!0){const v=++o.indentLevel;g&&f(v)}function c(g=!0){const v=--o.indentLevel;g&&f(v)}function h(){f(o.indentLevel)}return{context:u,push:l,indent:a,deindent:c,newline:h,helper:g=>`_${g}`,needIndent:()=>o.needIndent}}function g_(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),Xi(t,e.key),e.modifier?(t.push(", "),Xi(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function v_(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const s=e.items.length;for(let i=0;i<s&&(Xi(t,e.items[i]),i!==s-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function y_(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const s=e.cases.length;for(let i=0;i<s&&(Xi(t,e.cases[i]),i!==s-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function b_(t,e){e.body?Xi(t,e.body):t.push("null")}function Xi(t,e){const{helper:n}=t;switch(e.type){case 0:b_(t,e);break;case 1:y_(t,e);break;case 2:v_(t,e);break;case 6:g_(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:if(process.env.NODE_ENV!=="production")throw new Error(`unhandled codegen node type: ${e.type}`)}}const w_=(t,e={})=>{const n=se(e.mode)?e.mode:"normal",r=se(e.filename)?e.filename:"message.intl",s=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
1068
+ `,o=e.needIndent?e.needIndent:n!=="arrow",u=t.helpers||[],l=m_(t,{mode:n,filename:r,sourceMap:s,breakLineCode:i,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),u.length>0&&(l.push(`const { ${u.map(c=>`${c}: _${c}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Xi(l,t),l.deindent(o),l.push("}");const{code:f,map:a}=l.context();return{ast:t,code:f,map:a?a.toJSON():void 0}};function S_(t,e={}){const n=Et({},e),s=d_(n).parse(t);return p_(s,n),w_(s,n)}/*!
1069
+ * devtools-if v9.2.2
1070
+ * (c) 2022 kazuya kawaguchi
1071
+ * Released under the MIT License.
1072
+ */const lg={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
1073
+ * core-base v9.2.2
1074
+ * (c) 2022 kazuya kawaguchi
1075
+ * Released under the MIT License.
1076
+ */const Jr=[];Jr[0]={w:[0],i:[3,0],["["]:[4],o:[7]};Jr[1]={w:[1],["."]:[2],["["]:[4],o:[7]};Jr[2]={w:[2],i:[3,0],[0]:[3,0]};Jr[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};Jr[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};Jr[5]={["'"]:[4,0],o:8,l:[5,0]};Jr[6]={['"']:[4,0],o:8,l:[6,0]};const __=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function x_(t){return __.test(t)}function C_(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function E_(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function k_(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:x_(e)?C_(e):"*"+e}function $_(t){const e=[];let n=-1,r=0,s=0,i,o,u,l,f,a,c;const h=[];h[0]=()=>{o===void 0?o=u:o+=u},h[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},h[2]=()=>{h[0](),s++},h[3]=()=>{if(s>0)s--,r=4,h[0]();else{if(s=0,o===void 0||(o=k_(o),o===!1))return!1;h[1]()}};function p(){const m=t[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,u="\\"+m,h[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&p())){if(l=E_(i),c=Jr[r],f=c[l]||c.l||8,f===8||(r=f[0],f[1]!==void 0&&(a=h[f[1]],a&&(u=i,a()===!1))))return;if(r===7)return e}}const bf=new Map;function T_(t,e){return Ye(t)?t[e]:null}function A_(t,e){if(!Ye(t))return null;let n=bf.get(e);if(n||(n=$_(e),n&&bf.set(e,n)),!n)return null;const r=n.length;let s=t,i=0;for(;i<r;){const o=s[n[i]];if(o===void 0)return null;s=o,i++}return s}const O_=t=>t,L_=t=>"",R_="text",M_=t=>t.length===0?"":t.join(""),I_=Z1;function wf(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function N_(t){const e=bt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(bt(t.named.count)||bt(t.named.n))?bt(t.named.count)?t.named.count:bt(t.named.n)?t.named.n:e:e}function D_(t,e){e.count||(e.count=t),e.n||(e.n=t)}function P_(t={}){const e=t.locale,n=N_(t),r=Ye(t.pluralRules)&&se(e)&&ct(t.pluralRules[e])?t.pluralRules[e]:wf,s=Ye(t.pluralRules)&&se(e)&&ct(t.pluralRules[e])?wf:void 0,i=w=>w[r(n,w.length,s)],o=t.list||[],u=w=>o[w],l=t.named||{};bt(t.pluralIndex)&&D_(n,l);const f=w=>l[w];function a(w){const _=ct(t.messages)?t.messages(w):Ye(t.messages)?t.messages[w]:!1;return _||(t.parent?t.parent.message(w):L_)}const c=w=>t.modifiers?t.modifiers[w]:O_,h=_e(t.processor)&&ct(t.processor.normalize)?t.processor.normalize:M_,p=_e(t.processor)&&ct(t.processor.interpolate)?t.processor.interpolate:I_,m=_e(t.processor)&&se(t.processor.type)?t.processor.type:R_,v={list:u,named:f,plural:i,linked:(w,..._)=>{const[$,x]=_;let b="text",C="";_.length===1?Ye($)?(C=$.modifier||C,b=$.type||b):se($)&&(C=$||C):_.length===2&&(se($)&&(C=$||C),se(x)&&(b=x||b));let T=a(w)(v);return b==="vnode"&&qe(T)&&C&&(T=T[0]),C?c(C)(T,b):T},message:a,type:m,interpolate:p,normalize:h};return v}let Hs=null;function B_(t){Hs=t}function F_(t,e,n){Hs&&Hs.emit(lg.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:n})}const V_=W_(lg.FunctionTranslate);function W_(t){return e=>Hs&&Hs.emit(t,e)}const Qt={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},U_={[Qt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Qt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Qt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Qt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Qt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Qt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function qi(t,...e){return ja(U_[t],...e)}function H_(t,e,n){return[...new Set([n,...qe(e)?e:Ye(e)?Object.keys(e):se(e)?[e]:[n]])]}function cg(t,e,n){const r=se(n)?n:mo,s=t;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;qe(o);)o=Sf(i,o,e);const u=qe(e)||!_e(e)?e:e.default?e.default:null;o=se(u)?[u]:u,qe(o)&&Sf(i,o,!1),s.__localeChainCache.set(r,i)}return i}function Sf(t,e,n){let r=!0;for(let s=0;s<e.length&&Me(r);s++){const i=e[s];se(i)&&(r=j_(t,e[s],n))}return r}function j_(t,e,n){let r;const s=e.split("-");do{const i=s.join("-");r=z_(t,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function z_(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const s=e.replace(/!/g,"");t.push(s),(qe(n)||_e(n))&&n[s]&&(r=n[s])}return r}const G_="9.2.2",Ya=-1,mo="en-US",ba="",_f=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function Y_(){return{upper:(t,e)=>e==="text"&&se(t)?t.toUpperCase():e==="vnode"&&Ye(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&se(t)?t.toLowerCase():e==="vnode"&&Ye(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&se(t)?_f(t):e==="vnode"&&Ye(t)&&"__v_isVNode"in t?_f(t.children):t}}let ug;function J_(t){ug=t}let hg;function K_(t){hg=t}let dg;function X_(t){dg=t}let fg=null;const xf=t=>{fg=t},q_=()=>fg;let pg=null;const Cf=t=>{pg=t},Z_=()=>pg;let Ef=0;function Q_(t={}){const e=se(t.version)?t.version:G_,n=se(t.locale)?t.locale:mo,r=qe(t.fallbackLocale)||_e(t.fallbackLocale)||se(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,s=_e(t.messages)?t.messages:{[n]:{}},i=_e(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},o=_e(t.numberFormats)?t.numberFormats:{[n]:{}},u=Et({},t.modifiers||{},Y_()),l=t.pluralRules||{},f=ct(t.missing)?t.missing:null,a=Me(t.missingWarn)||Hr(t.missingWarn)?t.missingWarn:!0,c=Me(t.fallbackWarn)||Hr(t.fallbackWarn)?t.fallbackWarn:!0,h=!!t.fallbackFormat,p=!!t.unresolving,m=ct(t.postTranslation)?t.postTranslation:null,g=_e(t.processor)?t.processor:null,v=Me(t.warnHtmlMessage)?t.warnHtmlMessage:!0,w=!!t.escapeParameter,_=ct(t.messageCompiler)?t.messageCompiler:ug,$=ct(t.messageResolver)?t.messageResolver:hg||T_,x=ct(t.localeFallbacker)?t.localeFallbacker:dg||H_,b=Ye(t.fallbackContext)?t.fallbackContext:void 0,C=ct(t.onWarn)?t.onWarn:jt,T=t,k=Ye(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,S=Ye(T.__numberFormatters)?T.__numberFormatters:new Map,y=Ye(T.__meta)?T.__meta:{};Ef++;const E={version:e,cid:Ef,locale:n,fallbackLocale:r,messages:s,modifiers:u,pluralRules:l,missing:f,missingWarn:a,fallbackWarn:c,fallbackFormat:h,unresolving:p,postTranslation:m,processor:g,warnHtmlMessage:v,escapeParameter:w,messageCompiler:_,messageResolver:$,localeFallbacker:x,fallbackContext:b,onWarn:C,__meta:y};return E.datetimeFormats=i,E.numberFormats=o,E.__datetimeFormatters=k,E.__numberFormatters=S,process.env.NODE_ENV!=="production"&&(E.__v_emitter=T.__v_emitter!=null?T.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&F_(E,e,y),E}function Ja(t,e){return t instanceof RegExp?t.test(e):t}function mg(t,e){return t instanceof RegExp?t.test(e):t}function rh(t,e,n,r,s){const{missing:i,onWarn:o}=t;if(process.env.NODE_ENV!=="production"){const u=t.__v_emitter;u&&u.emit("missing",{locale:n,key:e,type:s,groupId:`${s}:${e}`})}if(i!==null){const u=i(t,n,e,s);return se(u)?u:e}else return process.env.NODE_ENV!=="production"&&mg(r,e)&&o(qi(Qt.NOT_FOUND_KEY,{key:e,locale:n})),e}function ms(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}const ex=/<\/?[\w\s="/.':;#-\/]+>/,tx="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function nx(t,e){(Me(e.warnHtmlMessage)?e.warnHtmlMessage:!0)&&ex.test(t)&&jt(ja(tx,{source:t}))}const rx=t=>t;let kf=Object.create(null);function ix(t,e={}){{process.env.NODE_ENV!=="production"&&nx(t,e);const r=(e.onCacheKey||rx)(t),s=kf[r];if(s)return s;let i=!1;const o=e.onError||t_;e.onError=f=>{i=!0,o(f)};const{code:u}=S_(t,e),l=new Function(`return ${u}`)();return i?l:kf[r]=l}}let gg=we.__EXTEND_POINT__;const lc=()=>++gg,cr={INVALID_ARGUMENT:gg,INVALID_DATE_ARGUMENT:lc(),INVALID_ISO_DATE_ARGUMENT:lc(),__EXTEND_POINT__:lc()};function Di(t){return Ga(t,null,process.env.NODE_ENV!=="production"?{messages:sx}:void 0)}const sx={[cr.INVALID_ARGUMENT]:"Invalid arguments",[cr.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[cr.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string"},$f=()=>"",Wn=t=>ct(t);function Tf(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:u}=t,[l,f]=Kc(...e),a=Me(f.missingWarn)?f.missingWarn:t.missingWarn,c=Me(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,h=Me(f.escapeParameter)?f.escapeParameter:t.escapeParameter,p=!!f.resolvedMessage,m=se(f.default)||Me(f.default)?Me(f.default)?i?l:()=>l:f.default:n?i?l:()=>l:"",g=n||m!=="",v=se(f.locale)?f.locale:t.locale;h&&ox(f);let[w,_,$]=p?[l,v,u[v]||{}]:vg(t,l,v,o,c,a),x=w,b=l;if(!p&&!(se(x)||Wn(x))&&g&&(x=m,b=x),!p&&(!(se(x)||Wn(x))||!se(_)))return s?Ya:l;if(process.env.NODE_ENV!=="production"&&se(x)&&t.messageCompiler==null)return jt(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let C=!1;const T=()=>{C=!0},k=Wn(x)?x:yg(t,l,_,x,b,T);if(C)return x;const S=cx(t,_,$,f),y=P_(S),E=ax(t,k,y),A=r?r(E,l):E;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const O={timestamp:Date.now(),key:se(l)?l:Wn(x)?x.key:"",locale:_||(Wn(x)?x.locale:""),format:se(x)?x:Wn(x)?x.source:"",message:A};O.meta=Et({},t.__meta,q_()||{}),V_(O)}return A}function ox(t){qe(t.list)?t.list=t.list.map(e=>se(e)?mf(e):e):Ye(t.named)&&Object.keys(t.named).forEach(e=>{se(t.named[e])&&(t.named[e]=mf(t.named[e]))})}function vg(t,e,n,r,s,i){const{messages:o,onWarn:u,messageResolver:l,localeFallbacker:f}=t,a=f(t,r,n);let c={},h,p=null,m=n,g=null;const v="translate";for(let w=0;w<a.length;w++){if(h=g=a[w],process.env.NODE_ENV!=="production"&&n!==h&&Ja(s,e)&&u(qi(Qt.FALLBACK_TO_TRANSLATE,{key:e,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const C=t.__v_emitter;C&&C.emit("fallback",{type:v,key:e,from:m,to:g,groupId:`${v}:${e}`})}c=o[h]||{};let _=null,$,x;if(process.env.NODE_ENV!=="production"&&zn&&(_=window.performance.now(),$="intlify-message-resolve-start",x="intlify-message-resolve-end",nn&&nn($)),(p=l(c,e))===null&&(p=c[e]),process.env.NODE_ENV!=="production"&&zn){const C=window.performance.now(),T=t.__v_emitter;T&&_&&p&&T.emit("message-resolve",{type:"message-resolve",key:e,message:p,time:C-_,groupId:`${v}:${e}`}),$&&x&&nn&&pi&&(nn(x),pi("intlify message resolve",$,x))}if(se(p)||ct(p))break;const b=rh(t,e,h,i,v);b!==e&&(p=b),m=g}return[p,h,c]}function yg(t,e,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:u}=t;if(Wn(r)){const h=r;return h.locale=h.locale||n,h.key=h.key||e,h}if(o==null){const h=()=>r;return h.locale=n,h.key=e,h}let l=null,f,a;process.env.NODE_ENV!=="production"&&zn&&(l=window.performance.now(),f="intlify-message-compilation-start",a="intlify-message-compilation-end",nn&&nn(f));const c=o(r,lx(t,n,s,r,u,i));if(process.env.NODE_ENV!=="production"&&zn){const h=window.performance.now(),p=t.__v_emitter;p&&l&&p.emit("message-compilation",{type:"message-compilation",message:r,time:h-l,groupId:`translate:${e}`}),f&&a&&nn&&pi&&(nn(a),pi("intlify message compilation",f,a))}return c.locale=n,c.key=e,c.source=r,c}function ax(t,e,n){let r=null,s,i;process.env.NODE_ENV!=="production"&&zn&&(r=window.performance.now(),s="intlify-message-evaluation-start",i="intlify-message-evaluation-end",nn&&nn(s));const o=e(n);if(process.env.NODE_ENV!=="production"&&zn){const u=window.performance.now(),l=t.__v_emitter;l&&r&&l.emit("message-evaluation",{type:"message-evaluation",value:o,time:u-r,groupId:`translate:${e.key}`}),s&&i&&nn&&pi&&(nn(i),pi("intlify message evaluation",s,i))}return o}function Kc(...t){const[e,n,r]=t,s={};if(!se(e)&&!bt(e)&&!Wn(e))throw Di(cr.INVALID_ARGUMENT);const i=bt(e)?String(e):(Wn(e),e);return bt(n)?s.plural=n:se(n)?s.default=n:_e(n)&&!za(n)?s.named=n:qe(n)&&(s.list=n),bt(r)?s.plural=r:se(r)?s.default=r:_e(r)&&Et(s,r),[i,s]}function lx(t,e,n,r,s,i){return{warnHtmlMessage:s,onError:o=>{if(i&&i(o),process.env.NODE_ENV!=="production"){const u=`Message compilation error: ${o.message}`,l=o.location&&Q1(r,o.location.start.offset,o.location.end.offset),f=t.__v_emitter;f&&f.emit("compile-error",{message:r,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(l?`${u}
1077
+ ${l}`:u)}else throw o},onCacheKey:o=>J1(e,n,o)}}function cx(t,e,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:u,fallbackWarn:l,missingWarn:f,fallbackContext:a}=t,h={locale:e,modifiers:s,pluralRules:i,messages:p=>{let m=o(n,p);if(m==null&&a){const[,,g]=vg(a,p,e,u,l,f);m=o(g,p)}if(se(m)){let g=!1;const w=yg(t,p,e,m,p,()=>{g=!0});return g?$f:w}else return Wn(m)?m:$f}};return t.processor&&(h.processor=t.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),bt(r.plural)&&(h.pluralIndex=r.plural),h}const Af=typeof Intl<"u",bg={dateTimeFormat:Af&&typeof Intl.DateTimeFormat<"u",numberFormat:Af&&typeof Intl.NumberFormat<"u"};function Of(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:u}=t;if(process.env.NODE_ENV!=="production"&&!bg.dateTimeFormat)return i(qi(Qt.CANNOT_FORMAT_DATE)),ba;const[l,f,a,c]=Xc(...e),h=Me(a.missingWarn)?a.missingWarn:t.missingWarn,p=Me(a.fallbackWarn)?a.fallbackWarn:t.fallbackWarn,m=!!a.part,g=se(a.locale)?a.locale:t.locale,v=o(t,s,g);if(!se(l)||l==="")return new Intl.DateTimeFormat(g,c).format(f);let w={},_,$=null,x=g,b=null;const C="datetime format";for(let S=0;S<v.length;S++){if(_=b=v[S],process.env.NODE_ENV!=="production"&&g!==_&&Ja(p,l)&&i(qi(Qt.FALLBACK_TO_DATE_FORMAT,{key:l,target:_})),process.env.NODE_ENV!=="production"&&g!==_){const y=t.__v_emitter;y&&y.emit("fallback",{type:C,key:l,from:x,to:b,groupId:`${C}:${l}`})}if(w=n[_]||{},$=w[l],_e($))break;rh(t,l,_,h,C),x=b}if(!_e($)||!se(_))return r?Ya:l;let T=`${_}__${l}`;za(c)||(T=`${T}__${JSON.stringify(c)}`);let k=u.get(T);return k||(k=new Intl.DateTimeFormat(_,Et({},$,c)),u.set(T,k)),m?k.formatToParts(f):k.format(f)}const wg=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Xc(...t){const[e,n,r,s]=t,i={};let o={},u;if(se(e)){const l=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Di(cr.INVALID_ISO_DATE_ARGUMENT);const f=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();u=new Date(f);try{u.toISOString()}catch{throw Di(cr.INVALID_ISO_DATE_ARGUMENT)}}else if(X1(e)){if(isNaN(e.getTime()))throw Di(cr.INVALID_DATE_ARGUMENT);u=e}else if(bt(e))u=e;else throw Di(cr.INVALID_ARGUMENT);return se(n)?i.key=n:_e(n)&&Object.keys(n).forEach(l=>{wg.includes(l)?o[l]=n[l]:i[l]=n[l]}),se(r)?i.locale=r:_e(r)&&(o=r),_e(s)&&(o=s),[i.key||"",u,i,o]}function Lf(t,e,n){const r=t;for(const s in n){const i=`${e}__${s}`;!r.__datetimeFormatters.has(i)||r.__datetimeFormatters.delete(i)}}function Rf(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:u}=t;if(process.env.NODE_ENV!=="production"&&!bg.numberFormat)return i(qi(Qt.CANNOT_FORMAT_NUMBER)),ba;const[l,f,a,c]=qc(...e),h=Me(a.missingWarn)?a.missingWarn:t.missingWarn,p=Me(a.fallbackWarn)?a.fallbackWarn:t.fallbackWarn,m=!!a.part,g=se(a.locale)?a.locale:t.locale,v=o(t,s,g);if(!se(l)||l==="")return new Intl.NumberFormat(g,c).format(f);let w={},_,$=null,x=g,b=null;const C="number format";for(let S=0;S<v.length;S++){if(_=b=v[S],process.env.NODE_ENV!=="production"&&g!==_&&Ja(p,l)&&i(qi(Qt.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:_})),process.env.NODE_ENV!=="production"&&g!==_){const y=t.__v_emitter;y&&y.emit("fallback",{type:C,key:l,from:x,to:b,groupId:`${C}:${l}`})}if(w=n[_]||{},$=w[l],_e($))break;rh(t,l,_,h,C),x=b}if(!_e($)||!se(_))return r?Ya:l;let T=`${_}__${l}`;za(c)||(T=`${T}__${JSON.stringify(c)}`);let k=u.get(T);return k||(k=new Intl.NumberFormat(_,Et({},$,c)),u.set(T,k)),m?k.formatToParts(f):k.format(f)}const Sg=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function qc(...t){const[e,n,r,s]=t,i={};let o={};if(!bt(e))throw Di(cr.INVALID_ARGUMENT);const u=e;return se(n)?i.key=n:_e(n)&&Object.keys(n).forEach(l=>{Sg.includes(l)?o[l]=n[l]:i[l]=n[l]}),se(r)?i.locale=r:_e(r)&&(o=r),_e(s)&&(o=s),[i.key||"",u,i,o]}function Mf(t,e,n){const r=t;for(const s in n){const i=`${e}__${s}`;!r.__numberFormatters.has(i)||r.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Os().__INTLIFY_PROD_DEVTOOLS__=!1);function ux(){return _g().__VUE_DEVTOOLS_GLOBAL_HOOK__}function _g(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const hx=typeof Proxy=="function",dx="devtools-plugin:setup",fx="plugin:settings:set";let $i,Zc;function px(){var t;return $i!==void 0||(typeof window<"u"&&window.performance?($i=!0,Zc=window.performance):typeof global<"u"&&((t=global.perf_hooks)===null||t===void 0?void 0:t.performance)?($i=!0,Zc=global.perf_hooks.performance):$i=!1),$i}function mx(){return px()?Zc.now():Date.now()}class gx{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const o in e.settings){const u=e.settings[o];r[o]=u.defaultValue}const s=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},r);try{const o=localStorage.getItem(s),u=JSON.parse(o);Object.assign(i,u)}catch{}this.fallbacks={getSettings(){return i},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}i=o},now(){return mx()}},n&&n.on(fx,(o,u)=>{o===this.plugin.id&&this.fallbacks.setSettings(u)}),this.proxiedOn=new Proxy({},{get:(o,u)=>this.target?this.target.on[u]:(...l)=>{this.onQueue.push({method:u,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,u)=>this.target?this.target[u]:u==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(u)?(...l)=>(this.targetQueue.push({method:u,args:l,resolve:()=>{}}),this.fallbacks[u](...l)):(...l)=>new Promise(f=>{this.targetQueue.push({method:u,args:l,resolve:f})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function vx(t,e){const n=t,r=_g(),s=ux(),i=hx&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))s.emit(dx,t,e);else{const o=i?new gx(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*!
1078
+ * vue-devtools v9.2.2
1079
+ * (c) 2022 kazuya kawaguchi
1080
+ * Released under the MIT License.
1081
+ */const cc={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},yx={["vue-i18n-resource-inspector"]:"Search for scopes ..."},bx={["vue-i18n-timeline"]:16764185};/*!
1082
+ * vue-i18n v9.2.2
1083
+ * (c) 2022 kazuya kawaguchi
1084
+ * Released under the MIT License.
1085
+ */const wx="9.2.2";function Sx(){let t=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(t=!0,Os().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(t=!0,Os().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Os().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&t&&console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.")}let xg=Qt.__EXTEND_POINT__;const Ti=()=>++xg,Ct={FALLBACK_TO_ROOT:xg,NOT_SUPPORTED_PRESERVE:Ti(),NOT_SUPPORTED_FORMATTER:Ti(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Ti(),NOT_SUPPORTED_GET_CHOICE_INDEX:Ti(),COMPONENT_NAME_LEGACY_COMPATIBLE:Ti(),NOT_FOUND_PARENT_SCOPE:Ti()},_x={[Ct.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ct.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Ct.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Ct.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Ct.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Ct.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Ct.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function An(t,...e){return ja(_x[t],...e)}let Cg=we.__EXTEND_POINT__;const Wt=()=>++Cg,De={UNEXPECTED_RETURN_TYPE:Cg,INVALID_ARGUMENT:Wt(),MUST_BE_CALL_SETUP_TOP:Wt(),NOT_INSLALLED:Wt(),NOT_AVAILABLE_IN_LEGACY_MODE:Wt(),REQUIRED_VALUE:Wt(),INVALID_VALUE:Wt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Wt(),NOT_INSLALLED_WITH_PROVIDE:Wt(),UNEXPECTED_ERROR:Wt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Wt(),BRIDGE_SUPPORT_VUE_2_ONLY:Wt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Wt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Wt(),__EXTEND_POINT__:Wt()};function vt(t,...e){return Ga(t,null,process.env.NODE_ENV!=="production"?{messages:xx,args:e}:void 0)}const xx={[De.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[De.INVALID_ARGUMENT]:"Invalid argument",[De.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[De.NOT_INSLALLED]:"Need to install with `app.use` function",[De.UNEXPECTED_ERROR]:"Unexpected error",[De.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[De.REQUIRED_VALUE]:"Required in value: {0}",[De.INVALID_VALUE]:"Invalid value",[De.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[De.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[De.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[De.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[De.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[De.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Qc=Kn("__transrateVNode"),eu=Kn("__datetimeParts"),tu=Kn("__numberParts"),mi=Kn("__enableEmitter"),js=Kn("__disableEmitter"),Eg=Kn("__setPluralRules");Kn("__intlifyMeta");const kg=Kn("__injectWithOption");function nu(t){if(!Ye(t))return t;for(const e in t)if(!!Qu(t,e))if(!e.includes("."))Ye(t[e])&&nu(t[e]);else{const n=e.split("."),r=n.length-1;let s=t;for(let i=0;i<r;i++)n[i]in s||(s[n[i]]={}),s=s[n[i]];s[n[r]]=t[e],delete t[e],Ye(s[n[r]])&&nu(s[n[r]])}return t}function Ka(t,e){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=e,o=_e(n)?n:qe(r)?{}:{[t]:{}};if(qe(r)&&r.forEach(u=>{if("locale"in u&&"resource"in u){const{locale:l,resource:f}=u;l?(o[l]=o[l]||{},Ls(f,o[l])):Ls(f,o)}else se(u)&&Ls(JSON.parse(u),o)}),s==null&&i)for(const u in o)Qu(o,u)&&nu(o[u]);return o}const zo=t=>!Ye(t)||qe(t);function Ls(t,e){if(zo(t)||zo(e))throw vt(De.INVALID_VALUE);for(const n in t)Qu(t,n)&&(zo(t[n])||zo(e[n])?e[n]=t[n]:Ls(t[n],e[n]))}function $g(t){return t.type}function Tg(t,e,n){let r=Ye(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=Ka(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Ye(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Ye(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function If(t){return d.createVNode(d.Text,null,t,0)}const Nf="__INTLIFY_META__";let Df=0;function Pf(t){return(e,n,r,s)=>t(n,r,d.getCurrentInstance()||void 0,s)}const Cx=()=>{const t=d.getCurrentInstance();let e=null;return t&&(e=$g(t)[Nf])?{[Nf]:e}:null};function ih(t={},e){const{__root:n}=t,r=n===void 0;let s=Me(t.inheritLocale)?t.inheritLocale:!0;const i=d.ref(n&&s?n.locale.value:se(t.locale)?t.locale:mo),o=d.ref(n&&s?n.fallbackLocale.value:se(t.fallbackLocale)||qe(t.fallbackLocale)||_e(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),u=d.ref(Ka(i.value,t)),l=d.ref(_e(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),f=d.ref(_e(t.numberFormats)?t.numberFormats:{[i.value]:{}});let a=n?n.missingWarn:Me(t.missingWarn)||Hr(t.missingWarn)?t.missingWarn:!0,c=n?n.fallbackWarn:Me(t.fallbackWarn)||Hr(t.fallbackWarn)?t.fallbackWarn:!0,h=n?n.fallbackRoot:Me(t.fallbackRoot)?t.fallbackRoot:!0,p=!!t.fallbackFormat,m=ct(t.missing)?t.missing:null,g=ct(t.missing)?Pf(t.missing):null,v=ct(t.postTranslation)?t.postTranslation:null,w=n?n.warnHtmlMessage:Me(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter;const $=n?n.modifiers:_e(t.modifiers)?t.modifiers:{};let x=t.pluralRules||n&&n.pluralRules,b;b=(()=>{r&&Cf(null);const H={version:wx,locale:i.value,fallbackLocale:o.value,messages:u.value,modifiers:$,pluralRules:x,missing:g===null?void 0:g,missingWarn:a,fallbackWarn:c,fallbackFormat:p,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:w,escapeParameter:_,messageResolver:t.messageResolver,__meta:{framework:"vue"}};H.datetimeFormats=l.value,H.numberFormats=f.value,H.__datetimeFormatters=_e(b)?b.__datetimeFormatters:void 0,H.__numberFormatters=_e(b)?b.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(H.__v_emitter=_e(b)?b.__v_emitter:void 0);const K=Q_(H);return r&&Cf(K),K})(),ms(b,i.value,o.value);function T(){return[i.value,o.value,u.value,l.value,f.value]}const k=d.computed({get:()=>i.value,set:H=>{i.value=H,b.locale=i.value}}),S=d.computed({get:()=>o.value,set:H=>{o.value=H,b.fallbackLocale=o.value,ms(b,i.value,H)}}),y=d.computed(()=>u.value),E=d.computed(()=>l.value),A=d.computed(()=>f.value);function O(){return ct(v)?v:null}function R(H){v=H,b.postTranslation=H}function M(){return m}function I(H){H!==null&&(g=Pf(H)),m=H,b.missing=g}function B(H,K){return H!=="translate"||!K.resolvedMessage}const W=(H,K,ue,ge,Xe,Ge)=>{T();let Fe;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{xf(Cx()),r||(b.fallbackContext=n?Z_():void 0),Fe=H(b)}finally{xf(null),r||(b.fallbackContext=void 0)}else Fe=H(b);if(bt(Fe)&&Fe===Ya){const[Ne,dn]=K();if(process.env.NODE_ENV!=="production"&&n&&se(Ne)&&B(ue,dn)&&(h&&(Ja(c,Ne)||mg(a,Ne))&&jt(An(Ct.FALLBACK_TO_ROOT,{key:Ne,type:ue})),process.env.NODE_ENV!=="production")){const{__v_emitter:ei}=b;ei&&h&&ei.emit("fallback",{type:ue,key:Ne,to:"global",groupId:`${ue}:${Ne}`})}return n&&h?ge(n):Xe(Ne)}else{if(Ge(Fe))return Fe;throw vt(De.UNEXPECTED_RETURN_TYPE)}};function F(...H){return W(K=>Reflect.apply(Tf,null,[K,...H]),()=>Kc(...H),"translate",K=>Reflect.apply(K.t,K,[...H]),K=>K,K=>se(K))}function j(...H){const[K,ue,ge]=H;if(ge&&!Ye(ge))throw vt(De.INVALID_ARGUMENT);return F(K,ue,Et({resolvedMessage:!0},ge||{}))}function J(...H){return W(K=>Reflect.apply(Of,null,[K,...H]),()=>Xc(...H),"datetime format",K=>Reflect.apply(K.d,K,[...H]),()=>ba,K=>se(K))}function Y(...H){return W(K=>Reflect.apply(Rf,null,[K,...H]),()=>qc(...H),"number format",K=>Reflect.apply(K.n,K,[...H]),()=>ba,K=>se(K))}function U(H){return H.map(K=>se(K)||bt(K)||Me(K)?If(String(K)):K)}const X={normalize:U,interpolate:H=>H,type:"vnode"};function Z(...H){return W(K=>{let ue;const ge=K;try{ge.processor=X,ue=Reflect.apply(Tf,null,[ge,...H])}finally{ge.processor=null}return ue},()=>Kc(...H),"translate",K=>K[Qc](...H),K=>[If(K)],K=>qe(K))}function te(...H){return W(K=>Reflect.apply(Rf,null,[K,...H]),()=>qc(...H),"number format",K=>K[tu](...H),()=>[],K=>se(K)||qe(K))}function ie(...H){return W(K=>Reflect.apply(Of,null,[K,...H]),()=>Xc(...H),"datetime format",K=>K[eu](...H),()=>[],K=>se(K)||qe(K))}function de(H){x=H,b.pluralRules=x}function ae(H,K){const ue=se(K)?K:i.value,ge=P(ue);return b.messageResolver(ge,H)!==null}function Ce(H){let K=null;const ue=cg(b,o.value,i.value);for(let ge=0;ge<ue.length;ge++){const Xe=u.value[ue[ge]]||{},Ge=b.messageResolver(Xe,H);if(Ge!=null){K=Ge;break}}return K}function Re(H){const K=Ce(H);return K!=null?K:n?n.tm(H)||{}:{}}function P(H){return u.value[H]||{}}function D(H,K){u.value[H]=K,b.messages=u.value}function z(H,K){u.value[H]=u.value[H]||{},Ls(K,u.value[H]),b.messages=u.value}function ee(H){return l.value[H]||{}}function fe(H,K){l.value[H]=K,b.datetimeFormats=l.value,Lf(b,H,K)}function be(H,K){l.value[H]=Et(l.value[H]||{},K),b.datetimeFormats=l.value,Lf(b,H,K)}function mt(H){return f.value[H]||{}}function dt(H,K){f.value[H]=K,b.numberFormats=f.value,Mf(b,H,K)}function q(H,K){f.value[H]=Et(f.value[H]||{},K),b.numberFormats=f.value,Mf(b,H,K)}Df++,n&&zn&&(d.watch(n.locale,H=>{s&&(i.value=H,b.locale=H,ms(b,i.value,o.value))}),d.watch(n.fallbackLocale,H=>{s&&(o.value=H,b.fallbackLocale=H,ms(b,i.value,o.value))}));const ne={id:Df,locale:k,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(H){s=H,H&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,ms(b,i.value,o.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:y,get modifiers(){return $},get pluralRules(){return x||{}},get isGlobal(){return r},get missingWarn(){return a},set missingWarn(H){a=H,b.missingWarn=a},get fallbackWarn(){return c},set fallbackWarn(H){c=H,b.fallbackWarn=c},get fallbackRoot(){return h},set fallbackRoot(H){h=H},get fallbackFormat(){return p},set fallbackFormat(H){p=H,b.fallbackFormat=p},get warnHtmlMessage(){return w},set warnHtmlMessage(H){w=H,b.warnHtmlMessage=H},get escapeParameter(){return _},set escapeParameter(H){_=H,b.escapeParameter=H},t:F,getLocaleMessage:P,setLocaleMessage:D,mergeLocaleMessage:z,getPostTranslationHandler:O,setPostTranslationHandler:R,getMissingHandler:M,setMissingHandler:I,[Eg]:de};return ne.datetimeFormats=E,ne.numberFormats=A,ne.rt=j,ne.te=ae,ne.tm=Re,ne.d=J,ne.n=Y,ne.getDateTimeFormat=ee,ne.setDateTimeFormat=fe,ne.mergeDateTimeFormat=be,ne.getNumberFormat=mt,ne.setNumberFormat=dt,ne.mergeNumberFormat=q,ne[kg]=t.__injectWithOption,ne[Qc]=Z,ne[eu]=ie,ne[tu]=te,process.env.NODE_ENV!=="production"&&(ne[mi]=H=>{b.__v_emitter=H},ne[js]=()=>{b.__v_emitter=void 0}),ne}function Ex(t){const e=se(t.locale)?t.locale:mo,n=se(t.fallbackLocale)||qe(t.fallbackLocale)||_e(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=ct(t.missing)?t.missing:void 0,s=Me(t.silentTranslationWarn)||Hr(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Me(t.silentFallbackWarn)||Hr(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Me(t.fallbackRoot)?t.fallbackRoot:!0,u=!!t.formatFallbackMessages,l=_e(t.modifiers)?t.modifiers:{},f=t.pluralizationRules,a=ct(t.postTranslation)?t.postTranslation:void 0,c=se(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,h=!!t.escapeParameterHtml,p=Me(t.sync)?t.sync:!0;process.env.NODE_ENV!=="production"&&t.formatter&&jt(An(Ct.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&t.preserveDirectiveContent&&jt(An(Ct.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let m=t.messages;if(_e(t.sharedMessages)){const b=t.sharedMessages;m=Object.keys(b).reduce((T,k)=>{const S=T[k]||(T[k]={});return Et(S,b[k]),T},m||{})}const{__i18n:g,__root:v,__injectWithOption:w}=t,_=t.datetimeFormats,$=t.numberFormats,x=t.flatJson;return{locale:e,fallbackLocale:n,messages:m,flatJson:x,datetimeFormats:_,numberFormats:$,missing:r,missingWarn:s,fallbackWarn:i,fallbackRoot:o,fallbackFormat:u,modifiers:l,pluralRules:f,postTranslation:a,warnHtmlMessage:c,escapeParameter:h,messageResolver:t.messageResolver,inheritLocale:p,__i18n:g,__root:v,__injectWithOption:w}}function ru(t={},e){{const n=ih(Ex(t)),r={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&jt(An(Ct.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&jt(An(Ct.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return Me(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=Me(s)?!s:s},get silentFallbackWarn(){return Me(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=Me(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&jt(An(Ct.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&jt(An(Ct.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[i,o,u]=s,l={};let f=null,a=null;if(!se(i))throw vt(De.INVALID_ARGUMENT);const c=i;return se(o)?l.locale=o:qe(o)?f=o:_e(o)&&(a=o),qe(u)?f=u:_e(u)&&(a=u),Reflect.apply(n.t,n,[c,f||a||{},l])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[i,o,u]=s,l={plural:1};let f=null,a=null;if(!se(i))throw vt(De.INVALID_ARGUMENT);const c=i;return se(o)?l.locale=o:bt(o)?l.plural=o:qe(o)?f=o:_e(o)&&(a=o),se(u)?l.locale=u:qe(u)?f=u:_e(u)&&(a=u),Reflect.apply(n.t,n,[c,f||a||{},l])},te(s,i){return n.te(s,i)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,i){n.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){n.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,i){n.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){n.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,i){n.setNumberFormat(s,i)},mergeNumberFormat(s,i){n.mergeNumberFormat(s,i)},getChoiceIndex(s,i){return process.env.NODE_ENV!=="production"&&jt(An(Ct.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1},__onComponentInstanceCreated(s){const{componentInstanceCreatedListener:i}=t;i&&i(s,r)}};return process.env.NODE_ENV!=="production"&&(r.__enableEmitter=s=>{const i=n;i[mi]&&i[mi](s)},r.__disableEmitter=()=>{const s=n;s[js]&&s[js]()}),r}}const sh={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function kx({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,s)=>r=[...r,...qe(s.children)?s.children:[s]],[]):e.reduce((n,r)=>{const s=t[r];return s&&(n[r]=s()),n},{})}function Ag(t){return d.Fragment}const uc={name:"i18n-t",props:Et({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>bt(t)||!isNaN(t)}},sh),setup(t,e){const{slots:n,attrs:r}=e,s=t.i18n||Xa({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(c=>c!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=se(t.plural)?+t.plural:t.plural);const u=kx(e,i),l=s[Qc](t.keypath,u,o),f=Et({},r),a=se(t.tag)||Ye(t.tag)?t.tag:Ag();return d.h(a,f,l)}}};function $x(t){return qe(t)&&!se(t[0])}function Og(t,e,n,r){const{slots:s,attrs:i}=e;return()=>{const o={part:!0};let u={};t.locale&&(o.locale=t.locale),se(t.format)?o.key=t.format:Ye(t.format)&&(se(t.format.key)&&(o.key=t.format.key),u=Object.keys(t.format).reduce((h,p)=>n.includes(p)?Et({},h,{[p]:t.format[p]}):h,{}));const l=r(t.value,o,u);let f=[o.key];qe(l)?f=l.map((h,p)=>{const m=s[h.type],g=m?m({[h.type]:h.value,index:p,parts:l}):[h.value];return $x(g)&&(g[0].key=`${h.type}-${p}`),g}):se(l)&&(f=[l]);const a=Et({},i),c=se(t.tag)||Ye(t.tag)?t.tag:Ag();return d.h(c,a,f)}}const Bf={name:"i18n-n",props:Et({value:{type:Number,required:!0},format:{type:[String,Object]}},sh),setup(t,e){const n=t.i18n||Xa({useScope:"parent",__useComponent:!0});return Og(t,e,Sg,(...r)=>n[tu](...r))}},Ff={name:"i18n-d",props:Et({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},sh),setup(t,e){const n=t.i18n||Xa({useScope:"parent",__useComponent:!0});return Og(t,e,wg,(...r)=>n[eu](...r))}};function Tx(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function Ax(t){const e=o=>{const{instance:u,modifiers:l,value:f}=o;if(!u||!u.$)throw vt(De.UNEXPECTED_ERROR);const a=Tx(t,u.$);process.env.NODE_ENV!=="production"&&l.preserve&&jt(An(Ct.NOT_SUPPORTED_PRESERVE));const c=Vf(f);return[Reflect.apply(a.t,a,[...Wf(c)]),a]};return{created:(o,u)=>{const[l,f]=e(u);zn&&t.global===f&&(o.__i18nWatcher=d.watch(f.locale,()=>{u.instance&&u.instance.$forceUpdate()})),o.__composer=f,o.textContent=l},unmounted:o=>{zn&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:u})=>{if(o.__composer){const l=o.__composer,f=Vf(u);o.textContent=Reflect.apply(l.t,l,[...Wf(f)])}},getSSRProps:o=>{const[u]=e(o);return{textContent:u}}}}function Vf(t){if(se(t))return{path:t};if(_e(t)){if(!("path"in t))throw vt(De.REQUIRED_VALUE,"path");return t}else throw vt(De.INVALID_VALUE)}function Wf(t){const{path:e,locale:n,args:r,choice:s,plural:i}=t,o={},u=r||{};return se(n)&&(o.locale=n),bt(s)&&(o.plural=s),bt(i)&&(o.plural=i),[e,u,o]}function Ox(t,e,...n){const r=_e(n[0])?n[0]:{},s=!!r.useI18nComponentName,i=Me(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&i&&s&&jt(An(Ct.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:uc.name})),i&&(t.component(s?"i18n":uc.name,uc),t.component(Bf.name,Bf),t.component(Ff.name,Ff)),t.directive("t",Ax(e))}const Lg="vue-i18n: composer properties";let iu;async function Lx(t,e){return new Promise((n,r)=>{try{vx({id:"vue-devtools-plugin-vue-i18n",label:cc["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Lg],app:t},s=>{iu=s,s.on.visitComponentTree(({componentInstance:o,treeNode:u})=>{Rx(o,u,e)}),s.on.inspectComponent(({componentInstance:o,instanceData:u})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&u&&(e.mode==="legacy"?o.vnode.el.__VUE_I18N__!==e.global.__composer&&Uf(u,o.vnode.el.__VUE_I18N__):Uf(u,o.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:cc["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:yx["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===t&&o.inspectorId==="vue-i18n-resource-inspector"&&Px(o,e)});const i=new Map;s.on.getInspectorState(async o=>{if(o.app===t&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),Fx(o,e),o.nodeId==="global"){if(!i.has(o.app)){const[u]=await s.getComponentInstances(o.app);i.set(o.app,u)}s.highlightElement(i.get(o.app))}else{const u=Bx(o.nodeId,e);u&&s.highlightElement(u)}}),s.on.editInspectorState(o=>{o.app===t&&o.inspectorId==="vue-i18n-resource-inspector"&&Wx(o,e)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:cc["vue-i18n-timeline"],color:bx["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),r(!1)}})}function Rg(t){return t.type.name||t.type.displayName||t.type.__file||"Anonymous"}function Rx(t,e,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(t&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&t.vnode.el.__VUE_I18N__!==r){const s={label:`i18n (${Rg(t)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(s)}}function Uf(t,e){const n=Lg;t.state.push({type:n,key:"locale",editable:!0,value:e.locale.value}),t.state.push({type:n,key:"availableLocales",editable:!1,value:e.availableLocales}),t.state.push({type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value}),t.state.push({type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}),t.state.push({type:n,key:"messages",editable:!1,value:oh(e.messages.value)}),t.state.push({type:n,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}),t.state.push({type:n,key:"numberFormats",editable:!1,value:e.numberFormats.value})}function oh(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];ct(r)&&"source"in r?e[n]=Dx(r):Ye(r)?e[n]=oh(r):e[n]=r}),e}const Mx={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Ix(t){return t.replace(/[<>"&]/g,Nx)}function Nx(t){return Mx[t]||t}function Dx(t){return{_custom:{type:"function",display:`<span>\u0192</span> ${t.source?`("${Ix(t.source)}")`:"(?)"}`}}}function Px(t,e){t.rootNodes.push({id:"global",label:"Global Scope"});const n=e.mode==="composition"?e.global:e.global.__composer;for(const[r,s]of e.__instances){const i=e.mode==="composition"?s:s.__composer;n!==i&&t.rootNodes.push({id:i.id.toString(),label:`${Rg(r)} Scope`})}}function Bx(t,e){let n=null;if(t!=="global"){for(const[r,s]of e.__instances.entries())if(s.id.toString()===t){n=r;break}}return n}function Mg(t,e){if(t==="global")return e.mode==="composition"?e.global:e.global.__composer;{const n=Array.from(e.__instances.values()).find(r=>r.id.toString()===t);return n?e.mode==="composition"?n:n.__composer:null}}function Fx(t,e){const n=Mg(t.nodeId,e);return n&&(t.state=Vx(n)),null}function Vx(t){const e={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:t.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:t.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}];e[n]=r;const s="Locale messages info",i=[{type:s,key:"messages",editable:!1,value:oh(t.messages.value)}];e[s]=i;{const o="Datetime formats info",u=[{type:o,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}];e[o]=u;const l="Datetime formats info",f=[{type:l,key:"numberFormats",editable:!1,value:t.numberFormats.value}];e[l]=f}return e}function zs(t,e){if(iu){let n;e&&"groupId"in e&&(n=e.groupId,delete e.groupId),iu.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:t,groupId:n,time:Date.now(),meta:{},data:e||{},logType:t==="compile-error"?"error":t==="fallback"||t==="missing"?"warning":"default"}})}}function Wx(t,e){const n=Mg(t.nodeId,e);if(n){const[r]=t.path;r==="locale"&&se(t.state.value)?n.locale.value=t.state.value:r==="fallbackLocale"&&(se(t.state.value)||qe(t.state.value)||Ye(t.state.value))?n.fallbackLocale.value=t.state.value:r==="inheritLocale"&&Me(t.state.value)&&(n.inheritLocale=t.state.value)}}function Ux(t,e,n){return{beforeCreate(){const r=d.getCurrentInstance();if(!r)throw vt(De.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const i=s.i18n;s.__i18n&&(i.__i18n=s.__i18n),i.__root=e,this===this.$root?this.$i18n=Hf(t,i):(i.__injectWithOption=!0,this.$i18n=ru(i))}else s.__i18n?this===this.$root?this.$i18n=Hf(t,s):this.$i18n=ru({__i18n:s.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;s.__i18nGlobal&&Tg(e,s,s),t.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i)},mounted(){if((process.env.NODE_ENV!=="production"||!1)&&!0&&this.$el&&this.$i18n){this.$el.__VUE_I18N__=this.$i18n.__composer;const r=this.__v_emitter=th(),s=this.$i18n;s.__enableEmitter&&s.__enableEmitter(r),r.on("*",zs)}},unmounted(){const r=d.getCurrentInstance();if(!r)throw vt(De.UNEXPECTED_ERROR);if((process.env.NODE_ENV!=="production"||!1)&&!0&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",zs),delete this.__v_emitter),this.$i18n)){const s=this.$i18n;s.__disableEmitter&&s.__disableEmitter(),delete this.$el.__VUE_I18N__}delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function Hf(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[Eg](e.pluralizationRules||t.pluralizationRules);const n=Ka(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const Hx=Kn("global-vue-i18n");function jx(t={},e){const n=__VUE_I18N_LEGACY_API__&&Me(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Me(t.globalInjection)?t.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,i=new Map,[o,u]=zx(t,n),l=Kn(process.env.NODE_ENV!=="production"?"vue-i18n":"");function f(h){return i.get(h)||null}function a(h,p){i.set(h,p)}function c(h){i.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return s},async install(p,...m){process.env.NODE_ENV!=="production"&&(p.__VUE_I18N__=h),p.__VUE_I18N_SYMBOL__=l,p.provide(p.__VUE_I18N_SYMBOL__,h),!n&&r&&eC(p,h.global),__VUE_I18N_FULL_INSTALL__&&Ox(p,h,...m),__VUE_I18N_LEGACY_API__&&n&&p.mixin(Ux(u,u.__composer,h));const g=p.unmount;if(p.unmount=()=>{h.dispose(),g()},process.env.NODE_ENV!=="production"||!1){if(!await Lx(p,h))throw vt(De.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const w=th();if(n){const _=u;_.__enableEmitter&&_.__enableEmitter(w)}else{const _=u;_[mi]&&_[mi](w)}w.on("*",zs)}},get global(){return u},dispose(){o.stop()},__instances:i,__getInstance:f,__setInstance:a,__deleteInstance:c};return h}}function Xa(t={}){const e=d.getCurrentInstance();if(e==null)throw vt(De.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw vt(De.NOT_INSLALLED);const n=Gx(e),r=Jx(n),s=$g(e),i=Yx(t,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw vt(De.NOT_AVAILABLE_IN_LEGACY_MODE);return qx(e,i,r,t)}if(i==="global")return Tg(r,t,s),r;if(i==="parent"){let l=Kx(n,e,t.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&jt(An(Ct.NOT_FOUND_PARENT_SCOPE)),l=r),l}const o=n;let u=o.__getInstance(e);if(u==null){const l=Et({},t);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),u=ih(l),Xx(o,e,u),o.__setInstance(e,u)}return u}function zx(t,e,n){const r=d.effectScope();{const s=__VUE_I18N_LEGACY_API__&&e?r.run(()=>ru(t)):r.run(()=>ih(t));if(s==null)throw vt(De.UNEXPECTED_ERROR);return[r,s]}}function Gx(t){{const e=d.inject(t.isCE?Hx:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw vt(t.isCE?De.NOT_INSLALLED_WITH_PROVIDE:De.UNEXPECTED_ERROR);return e}}function Yx(t,e){return za(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function Jx(t){return t.mode==="composition"?t.global:t.global.__composer}function Kx(t,e,n=!1){let r=null;const s=e.root;let i=e.parent;for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const u=o.__getInstance(i);u!=null&&(r=u.__composer,n&&r&&!r[kg]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function Xx(t,e,n){let r=null;d.onMounted(()=>{if((process.env.NODE_ENV!=="production"||!1)&&!0&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=th();const s=n;s[mi]&&s[mi](r),r.on("*",zs)}},e),d.onUnmounted(()=>{if((process.env.NODE_ENV!=="production"||!1)&&!0&&e.vnode.el&&e.vnode.el.__VUE_I18N__){r&&r.off("*",zs);const s=n;s[js]&&s[js](),delete e.vnode.el.__VUE_I18N__}t.__deleteInstance(e)},e)}function qx(t,e,n,r={}){const s=e==="local",i=d.shallowRef(null);if(s&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw vt(De.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Me(r.inheritLocale)?r.inheritLocale:!0,u=d.ref(s&&o?n.locale.value:se(r.locale)?r.locale:mo),l=d.ref(s&&o?n.fallbackLocale.value:se(r.fallbackLocale)||qe(r.fallbackLocale)||_e(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:u.value),f=d.ref(Ka(u.value,r)),a=d.ref(_e(r.datetimeFormats)?r.datetimeFormats:{[u.value]:{}}),c=d.ref(_e(r.numberFormats)?r.numberFormats:{[u.value]:{}}),h=s?n.missingWarn:Me(r.missingWarn)||Hr(r.missingWarn)?r.missingWarn:!0,p=s?n.fallbackWarn:Me(r.fallbackWarn)||Hr(r.fallbackWarn)?r.fallbackWarn:!0,m=s?n.fallbackRoot:Me(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,v=ct(r.missing)?r.missing:null,w=ct(r.postTranslation)?r.postTranslation:null,_=s?n.warnHtmlMessage:Me(r.warnHtmlMessage)?r.warnHtmlMessage:!0,$=!!r.escapeParameter,x=s?n.modifiers:_e(r.modifiers)?r.modifiers:{},b=r.pluralRules||s&&n.pluralRules;function C(){return[u.value,l.value,f.value,a.value,c.value]}const T=d.computed({get:()=>i.value?i.value.locale.value:u.value,set:D=>{i.value&&(i.value.locale.value=D),u.value=D}}),k=d.computed({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:D=>{i.value&&(i.value.fallbackLocale.value=D),l.value=D}}),S=d.computed(()=>i.value?i.value.messages.value:f.value),y=d.computed(()=>a.value),E=d.computed(()=>c.value);function A(){return i.value?i.value.getPostTranslationHandler():w}function O(D){i.value&&i.value.setPostTranslationHandler(D)}function R(){return i.value?i.value.getMissingHandler():v}function M(D){i.value&&i.value.setMissingHandler(D)}function I(D){return C(),D()}function B(...D){return i.value?I(()=>Reflect.apply(i.value.t,null,[...D])):I(()=>"")}function W(...D){return i.value?Reflect.apply(i.value.rt,null,[...D]):""}function F(...D){return i.value?I(()=>Reflect.apply(i.value.d,null,[...D])):I(()=>"")}function j(...D){return i.value?I(()=>Reflect.apply(i.value.n,null,[...D])):I(()=>"")}function J(D){return i.value?i.value.tm(D):{}}function Y(D,z){return i.value?i.value.te(D,z):!1}function U(D){return i.value?i.value.getLocaleMessage(D):{}}function G(D,z){i.value&&(i.value.setLocaleMessage(D,z),f.value[D]=z)}function X(D,z){i.value&&i.value.mergeLocaleMessage(D,z)}function Z(D){return i.value?i.value.getDateTimeFormat(D):{}}function te(D,z){i.value&&(i.value.setDateTimeFormat(D,z),a.value[D]=z)}function ie(D,z){i.value&&i.value.mergeDateTimeFormat(D,z)}function de(D){return i.value?i.value.getNumberFormat(D):{}}function ae(D,z){i.value&&(i.value.setNumberFormat(D,z),c.value[D]=z)}function Ce(D,z){i.value&&i.value.mergeNumberFormat(D,z)}const Re={get id(){return i.value?i.value.id:-1},locale:T,fallbackLocale:k,messages:S,datetimeFormats:y,numberFormats:E,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(D){i.value&&(i.value.inheritLocale=D)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(f.value)},get modifiers(){return i.value?i.value.modifiers:x},get pluralRules(){return i.value?i.value.pluralRules:b},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(D){i.value&&(i.value.missingWarn=D)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(D){i.value&&(i.value.missingWarn=D)},get fallbackRoot(){return i.value?i.value.fallbackRoot:m},set fallbackRoot(D){i.value&&(i.value.fallbackRoot=D)},get fallbackFormat(){return i.value?i.value.fallbackFormat:g},set fallbackFormat(D){i.value&&(i.value.fallbackFormat=D)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:_},set warnHtmlMessage(D){i.value&&(i.value.warnHtmlMessage=D)},get escapeParameter(){return i.value?i.value.escapeParameter:$},set escapeParameter(D){i.value&&(i.value.escapeParameter=D)},t:B,getPostTranslationHandler:A,setPostTranslationHandler:O,getMissingHandler:R,setMissingHandler:M,rt:W,d:F,n:j,tm:J,te:Y,getLocaleMessage:U,setLocaleMessage:G,mergeLocaleMessage:X,getDateTimeFormat:Z,setDateTimeFormat:te,mergeDateTimeFormat:ie,getNumberFormat:de,setNumberFormat:ae,mergeNumberFormat:Ce};function P(D){D.locale.value=u.value,D.fallbackLocale.value=l.value,Object.keys(f.value).forEach(z=>{D.mergeLocaleMessage(z,f.value[z])}),Object.keys(a.value).forEach(z=>{D.mergeDateTimeFormat(z,a.value[z])}),Object.keys(c.value).forEach(z=>{D.mergeNumberFormat(z,c.value[z])}),D.escapeParameter=$,D.fallbackFormat=g,D.fallbackRoot=m,D.fallbackWarn=p,D.missingWarn=h,D.warnHtmlMessage=_}return d.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw vt(De.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const D=i.value=t.proxy.$i18n.__composer;e==="global"?(u.value=D.locale.value,l.value=D.fallbackLocale.value,f.value=D.messages.value,a.value=D.datetimeFormats.value,c.value=D.numberFormats.value):s&&P(D)}),Re}const Zx=["locale","fallbackLocale","availableLocales"],Qx=["t","rt","d","n","tm"];function eC(t,e){const n=Object.create(null);Zx.forEach(r=>{const s=Object.getOwnPropertyDescriptor(e,r);if(!s)throw vt(De.UNEXPECTED_ERROR);const i=d.isRef(s.value)?{get(){return s.value.value},set(o){s.value.value=o}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,r,i)}),t.config.globalProperties.$i18n=n,Qx.forEach(r=>{const s=Object.getOwnPropertyDescriptor(e,r);if(!s||!s.value)throw vt(De.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,s)})}J_(ix);K_(A_);X_(cg);Sx();if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Os();t.__INTLIFY__=!0,B_(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function tC(t){console.debug("[@vc-shell/framework#useI18n:init] - Entry point");const e=jx({legacy:!1,globalInjection:!0,locale:"en",fallbackLocale:"en"});return t.use(e),t.config.globalProperties.$mergeLocaleMessage=e.global.mergeLocaleMessage,t}function ah(){return console.debug("[@vc-shell/framework#useI18n] - Entry point"),Xa({useScope:"global"})}var lh={},Vr={};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.useLogger=Vr.createLogger=Vr.VueLogger=void 0;const nC=pw.default,Ig=process.env.NODE_ENV==="production",Ng=Symbol("vue-logger-plugin"),hc=["debug","info","warn","error","log"],rC={enabled:!0,consoleEnabled:!0,level:"debug",callerInfo:!1,prefixFormat:({level:t,caller:e})=>e?`[${t.toUpperCase()}] [${e==null?void 0:e.fileName}:${e==null?void 0:e.functionName}:${e==null?void 0:e.lineNumber}]`:`[${t.toUpperCase()}]`};class Dg{constructor(e){this.apply(e),this._consoleFunctions=hc.filter(n=>typeof console[n]=="function")}apply(e){const n=this._options||rC;this._options={...n,...e},this.installHooks(this._options.beforeHooks),this.installHooks(this._options.afterHooks)}debug(...e){this.invoke("debug",...e).then(()=>{}).catch(()=>{})}info(...e){this.invoke("info",...e).then(()=>{}).catch(()=>{})}warn(...e){this.invoke("warn",...e).then(()=>{}).catch(()=>{})}error(...e){this.invoke("error",...e).then(()=>{}).catch(()=>{})}log(...e){this.invoke("log",...e).then(()=>{}).catch(()=>{})}async invoke(e,...n){if(this._options.enabled&&hc.indexOf(e)>=hc.indexOf(this._options.level)){const r=this._options.callerInfo?this.getCallerInfo():void 0,s={level:e,caller:r,argumentArray:n};if(await this.invokeHooks(this._options.beforeHooks,s),this._options.consoleEnabled){const i=this._options.prefixFormat({level:e,caller:r});this._consoleFunctions.indexOf(e)>=0?console[e](i,...n):console.log(i,...n)}await this.invokeHooks(this._options.afterHooks,s)}}installHooks(e){if(e&&e.length>0){for(const n of e)if(n.install)try{n.install(this._options)}catch(r){console.warn("LoggerHook install failure",r)}}}async invokeHooks(e,n){if(e&&e.length>0)for(const r of e)try{await r.run(n)}catch(s){console.warn("LoggerHook run failure",s)}}getCallerInfo(){const e=new Error;if(e.stack)try{const r=e.stack.split(`
1086
+ `)[0].startsWith("Error")?4:3,s=e.stack.split(`
1087
+ `)[r].trim().replace("(","").replace(")","");let i;s.indexOf("at ")>-1?i=s.substring(s.indexOf("at ")+3,s.lastIndexOf(" ")).split(".").reverse()[0]:s.indexOf("@")>-1&&(i=s.substring(0,s.indexOf("@")));const o=s.split(":").reverse(),u=o[2].substring(Math.max(o[2].lastIndexOf("/"),o[2].lastIndexOf("\\"))+1).split("?")[0],l=o[1];return{functionName:i,fileName:u,lineNumber:l}}catch{Ig||console.debug("vue-logger-plugin :: failed to determine caller function info")}}get enabled(){return this._options.enabled}get level(){return this._options.level}install(e){e.provide(Ng,this),e.config.globalProperties.$log=this,e.config.globalProperties.$logger=this}}Vr.VueLogger=Dg;function iC(t={}){return new Dg(t)}Vr.createLogger=iC;function sC(){const t=nC.inject(Ng);return!t&&!Ig&&console.warn("vue-logger-plugin :: useLogger missing inject"),t}Vr.useLogger=sC;var Zi={};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.StringifyAndParseObjectsHook=Zi.StringifyObjectsHook=void 0;Zi.StringifyObjectsHook={run(t){for(let e=0;e<t.argumentArray.length;e++)t.argumentArray[e]!=null&&typeof t.argumentArray[e]=="object"&&(t.argumentArray[e]=JSON.stringify(t.argumentArray[e]))}};Zi.StringifyAndParseObjectsHook={run(t){for(let e=0;e<t.argumentArray.length;e++)t.argumentArray[e]!=null&&typeof t.argumentArray[e]=="object"&&(t.argumentArray[e]=JSON.parse(JSON.stringify(t.argumentArray[e])))}};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.StringifyAndParseObjectsHook=t.StringifyObjectsHook=t.useLogger=t.createLogger=t.VueLogger=void 0;var e=Vr;Object.defineProperty(t,"VueLogger",{enumerable:!0,get:function(){return e.VueLogger}}),Object.defineProperty(t,"createLogger",{enumerable:!0,get:function(){return e.createLogger}}),Object.defineProperty(t,"useLogger",{enumerable:!0,get:function(){return e.useLogger}});var n=Zi;Object.defineProperty(t,"StringifyObjectsHook",{enumerable:!0,get:function(){return n.StringifyObjectsHook}}),Object.defineProperty(t,"StringifyAndParseObjectsHook",{enumerable:!0,get:function(){return n.StringifyAndParseObjectsHook}})})(lh);function oC(t){var e;return console.debug("[@vc-shell/framework#useLogger:init] - Entry point"),t.use(lh.createLogger({enabled:{BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.APP_LOG_ENABLED==="true",level:(e={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.APP_LOG_LEVEL)!=null?e:"debug"})),t}function qa(){return console.debug("[@vc-shell/framework#useLogger] - Entry point"),lh.useLogger()}const aC={},lC=Object.freeze(Object.defineProperty({__proto__:null,default:aC},Symbol.toStringTag,{value:"Module"})),cC=Jw(lC);var Gs={};function uC(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var hC=function(t,e,n,r){e=e||"&",n=n||"=";var s={};if(typeof t!="string"||t.length===0)return s;var i=/\+/g;t=t.split(e);var o=1e3;r&&typeof r.maxKeys=="number"&&(o=r.maxKeys);var u=t.length;o>0&&u>o&&(u=o);for(var l=0;l<u;++l){var f=t[l].replace(i,"%20"),a=f.indexOf(n),c,h,p,m;a>=0?(c=f.substr(0,a),h=f.substr(a+1)):(c=f,h=""),p=decodeURIComponent(c),m=decodeURIComponent(h),uC(s,p)?Array.isArray(s[p])?s[p].push(m):s[p]=[s[p],m]:s[p]=m}return s},gs=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}},dC=function(t,e,n,r){return e=e||"&",n=n||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(s){var i=encodeURIComponent(gs(s))+n;return Array.isArray(t[s])?t[s].map(function(o){return i+encodeURIComponent(gs(o))}).join(e):i+encodeURIComponent(gs(t[s]))}).filter(Boolean).join(e):r?encodeURIComponent(gs(r))+n+encodeURIComponent(gs(t)):""};Gs.decode=Gs.parse=hC;Gs.encode=Gs.stringify=dC;var fC=function(e,n,r,s){return new Promise(function(i,o){var u=new window.XMLHttpRequest;u.open(e,n),u.onload=function(){return i({status:u.status,body:u.responseText})},u.onerror=u.onabort=function(){return o(new Error(u.statusText||"XHR aborted: "+n))},Object.keys(s).forEach(function(l){u.setRequestHeader(l,s[l])}),u.send(r)})},Pg=cC.Buffer,gi=Gs,pC=fC;const wa="https://example.org/";var su;typeof Pg=="function"?su=vC:su=window.btoa.bind(window);var mC=Ys,go={Accept:"application/json, application/x-www-form-urlencoded","Content-Type":"application/x-www-form-urlencoded"},gC={invalid_request:["The request is missing a required parameter, includes an","invalid parameter value, includes a parameter more than","once, or is otherwise malformed."].join(" "),invalid_client:["Client authentication failed (e.g., unknown client, no","client authentication included, or unsupported","authentication method)."].join(" "),invalid_grant:["The provided authorization grant (e.g., authorization","code, resource owner credentials) or refresh token is","invalid, expired, revoked, does not match the redirection","URI used in the authorization request, or was issued to","another client."].join(" "),unauthorized_client:["The client is not authorized to request an authorization","code using this method."].join(" "),unsupported_grant_type:["The authorization grant type is not supported by the","authorization server."].join(" "),access_denied:["The resource owner or authorization server denied the request."].join(" "),unsupported_response_type:["The authorization server does not support obtaining","an authorization code using this method."].join(" "),invalid_scope:["The requested scope is invalid, unknown, or malformed."].join(" "),server_error:["The authorization server encountered an unexpected","condition that prevented it from fulfilling the request.","(This error code is needed because a 500 Internal Server","Error HTTP status code cannot be returned to the client","via an HTTP redirect.)"].join(" "),temporarily_unavailable:["The authorization server is currently unable to handle","the request due to a temporary overloading or maintenance","of the server."].join(" ")};function vC(t){return Pg.from(t).toString("base64")}function Za(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];if(t[n]==null)throw new TypeError('Expected "'+n+'" to exist')}}function ch(t){var e=gC[t.error]||t.error_description||t.error;if(e){var n=new Error(e);return n.body=t,n.code="EAUTH",n}}function yC(t){try{return JSON.parse(t)}catch{return gi.parse(t)}}function Qa(t){return Array.isArray(t)?t.join(" "):ou(t)}function Bg(t,e){Za(t,"clientId","authorizationUri");const n={client_id:t.clientId,redirect_uri:t.redirectUri,response_type:e,state:t.state};t.scopes!==void 0&&(n.scope=Qa(t.scopes));const r=t.authorizationUri.includes("?")?"&":"?";return t.authorizationUri+r+gi.stringify(Object.assign(n,t.query))}function vo(t,e){return"Basic "+su(ou(t)+":"+ou(e))}function ou(t){return t==null?"":String(t)}function yo(t,e){return{url:t.url,method:t.method,body:Object.assign({},t.body,e.body),query:Object.assign({},t.query,e.query),headers:Object.assign({},t.headers,e.headers)}}function Ys(t,e){this.options=t,this.request=e||pC,this.code=new hh(this),this.token=new uh(this),this.owner=new Fg(this),this.credentials=new Vg(this),this.jwt=new Wg(this)}Ys.Token=bo;Ys.prototype.createToken=function(t,e,n,r){var s=Object.assign({},r,typeof t=="string"?{access_token:t}:t,typeof e=="string"?{refresh_token:e}:e,typeof n=="string"?{token_type:n}:n);return new Ys.Token(this,s)};Ys.prototype._request=function(t){var e=t.url,n=gi.stringify(t.body),r=gi.stringify(t.query);return r&&(e+=(e.indexOf("?")===-1?"?":"&")+r),this.request(t.method,e,n,t.headers).then(function(s){var i=yC(s.body),o=ch(i);if(o)return Promise.reject(o);if(s.status<200||s.status>=399){var u=new Error("HTTP status "+s.status);return u.status=s.status,u.body=s.body,u.code="ESTATUS",Promise.reject(u)}return i})};function bo(t,e){this.client=t,this.data=e,this.tokenType=e.token_type&&e.token_type.toLowerCase(),this.accessToken=e.access_token,this.refreshToken=e.refresh_token,this.expiresIn(Number(e.expires_in))}bo.prototype.expiresIn=function(t){if(typeof t=="number")this.expires=new Date,this.expires.setSeconds(this.expires.getSeconds()+t);else if(t instanceof Date)this.expires=new Date(t.getTime());else throw new TypeError("Unknown duration: "+t);return this.expires};bo.prototype.sign=function(t){if(!this.accessToken)throw new Error("Unable to sign without access token");if(t.headers=t.headers||{},this.tokenType==="bearer")t.headers.Authorization="Bearer "+this.accessToken;else{var e=t.url.split("#"),n="access_token="+this.accessToken,r=e[0].replace(/[?&]access_token=[^&#]/,""),s=e[1]?"#"+e[1]:"";t.url=r+(r.indexOf("?")>-1?"&":"?")+n+s,t.headers.Pragma="no-store",t.headers["Cache-Control"]="no-store"}return t};bo.prototype.refresh=function(t){var e=this,n=Object.assign({},this.client.options,t);return this.refreshToken?this.client._request(yo({url:n.accessTokenUri,method:"POST",headers:Object.assign({},go,{Authorization:vo(n.clientId,n.clientSecret)}),body:{refresh_token:this.refreshToken,grant_type:"refresh_token"}},n)).then(function(r){return e.client.createToken(Object.assign({},e.data,r))}):Promise.reject(new Error("No refresh token"))};bo.prototype.expired=function(){return Date.now()>this.expires.getTime()};function Fg(t){this.client=t}Fg.prototype.getToken=function(t,e,n){var r=this,s=Object.assign({},this.client.options,n);const i={username:t,password:e,grant_type:"password"};return s.scopes!==void 0&&(i.scope=Qa(s.scopes)),this.client._request(yo({url:s.accessTokenUri,method:"POST",headers:Object.assign({},go,{Authorization:vo(s.clientId,s.clientSecret)}),body:i},s)).then(function(o){return r.client.createToken(o)})};function uh(t){this.client=t}uh.prototype.getUri=function(t){var e=Object.assign({},this.client.options,t);return Bg(e,"token")};uh.prototype.getToken=function(t,e){var n=Object.assign({},this.client.options,e),r=typeof t=="object"?t:new URL(t,wa),s=new URL(n.redirectUri,wa);if(typeof r.pathname=="string"&&r.pathname!==s.pathname)return Promise.reject(new TypeError("Redirected path should match configured path, but got: "+r.pathname));if(!r.hash&&!r.search)return Promise.reject(new TypeError("Unable to process uri: "+t));var i=Object.assign({},typeof r.search=="string"?gi.parse(r.search.substr(1)):r.search||{},typeof r.hash=="string"?gi.parse(r.hash.substr(1)):r.hash||{}),o=ch(i);return o?Promise.reject(o):n.state!=null&&i.state!==n.state?Promise.reject(new TypeError("Invalid state: "+i.state)):Promise.resolve(this.client.createToken(i))};function Vg(t){this.client=t}Vg.prototype.getToken=function(t){var e=this,n=Object.assign({},this.client.options,t);Za(n,"clientId","clientSecret","accessTokenUri");const r={grant_type:"client_credentials"};return n.scopes!==void 0&&(r.scope=Qa(n.scopes)),this.client._request(yo({url:n.accessTokenUri,method:"POST",headers:Object.assign({},go,{Authorization:vo(n.clientId,n.clientSecret)}),body:r},n)).then(function(s){return e.client.createToken(s)})};function hh(t){this.client=t}hh.prototype.getUri=function(t){var e=Object.assign({},this.client.options,t);return Bg(e,"code")};hh.prototype.getToken=function(t,e){var n=this,r=Object.assign({},this.client.options,e);Za(r,"clientId","accessTokenUri");var s=typeof t=="object"?t:new URL(t,wa);if(typeof r.redirectUri=="string"&&typeof s.pathname=="string"&&s.pathname!==new URL(r.redirectUri,wa).pathname)return Promise.reject(new TypeError("Redirected path should match configured path, but got: "+s.pathname));if(!s.search||!s.search.substr(1))return Promise.reject(new TypeError("Unable to process uri: "+t));var i=typeof s.search=="string"?gi.parse(s.search.substr(1)):s.search||{},o=ch(i);if(o)return Promise.reject(o);if(r.state!=null&&i.state!==r.state)return Promise.reject(new TypeError("Invalid state: "+i.state));if(!i.code)return Promise.reject(new TypeError("Missing code, unable to request token"));var u=Object.assign({},go),l={code:i.code,grant_type:"authorization_code",redirect_uri:r.redirectUri};return r.clientSecret?u.Authorization=vo(r.clientId,r.clientSecret):l.client_id=r.clientId,this.client._request(yo({url:r.accessTokenUri,method:"POST",headers:u,body:l},r)).then(function(f){return n.client.createToken(f)})};function Wg(t){this.client=t}Wg.prototype.getToken=function(t,e){var n=this,r=Object.assign({},this.client.options,e),s=Object.assign({},go);Za(r,"accessTokenUri"),r.clientId&&(s.Authorization=vo(r.clientId,r.clientSecret));const i={grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:t};return r.scopes!==void 0&&(i.scope=Qa(r.scopes)),this.client._request(yo({url:r.accessTokenUri,method:"POST",headers:s,body:i},r)).then(function(o){return n.client.createToken(o)})};class un{constructor(){L(this,"authToken","")}getBaseUrl(e,n){return""}setAuthToken(e){this.authToken=e}transformOptions(e){return e.headers.authorization=`Bearer ${this.authToken}`,Promise.resolve(e)}}class bC extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}exchange(n){let r=this.baseUrl+"/connect/token";r=r.replace(/[?&]$/,"");let i={body:Object.keys(n).map(o=>encodeURIComponent(o)+"="+encodeURIComponent(n[o])).join("&"),method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processExchange(o))}processExchange(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=Js.fromJS(u),o}):r===400?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=Js.fromJS(u),V("Bad Request",r,i,s,o)}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class wC extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}signIn(n){let r=this.baseUrl+"/externalsignin?";n!=null&&(r+="authenticationType="+encodeURIComponent(""+n)+"&"),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSignIn(i))}processSignIn(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}signInCallback(n){let r=this.baseUrl+"/externalsignin/callback?";n!=null&&(r+="returnUrl="+encodeURIComponent(""+n)+"&"),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSignInCallback(i))}processSignInCallback(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getExternalLoginProviders(){let n=this.baseUrl+"/externalsignin/providers";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processGetExternalLoginProviders(s))}processGetExternalLoginProviders(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class Ug extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}getApps(){let n=this.baseUrl+"/api/platform/apps";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processGetApps(s))}processGetApps(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(el.fromJS(l))}else o=null;return o}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class SC extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}forceChanges(n){let r=this.baseUrl+"/api/changes/force?";n!=null&&(r+="Scope="+encodeURIComponent(""+n)+"&"),r=r.replace(/[?&]$/,"");let s={method:"POST",headers:{}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processForceChanges(i))}processForceChanges(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}resetPlatformCache(){let n=this.baseUrl+"/api/platform-cache/reset";n=n.replace(/[?&]$/,"");let r={method:"POST",headers:{}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processResetPlatformCache(s))}processResetPlatformCache(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getLastModifiedDate(n){let r=this.baseUrl+"/api/changes/lastmodifieddate?";n!=null&&(r+="scope="+encodeURIComponent(""+n)+"&"),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetLastModifiedDate(i))}processGetLastModifiedDate(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=tl.fromJS(u),o}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getChangedEntities(n){let r=this.baseUrl+"/api/changes/changed-entities";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processGetChangedEntities(o))}processGetChangedEntities(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=rl.fromJS(u),o}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}resetChangedEntities(n){let r=this.baseUrl+"/api/changes/changed-entities/reset";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processResetChangedEntities(o))}processResetChangedEntities(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}searchChanges(n){let r=this.baseUrl+"/api/platform/changelog/search";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processSearchChanges(o))}processSearchChanges(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=il.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}searchTypeChangeHistory(n,r,s){let i=this.baseUrl+"/api/platform/changelog/{type}/changes?";if(n==null)throw new Error("The parameter 'type' must be defined.");i=i.replace("{type}",encodeURIComponent(""+n)),r!=null&&(i+="start="+encodeURIComponent(r?""+r.toISOString():"")+"&"),s!=null&&(i+="end="+encodeURIComponent(s?""+s.toISOString():"")+"&"),i=i.replace(/[?&]$/,"");let o={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(o).then(u=>this.http.fetch(i,u)).then(u=>this.processSearchTypeChangeHistory(u))}processSearchTypeChangeHistory(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(wo.fromJS(l))}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class _C extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}getSystemInfo(){let n=this.baseUrl+"/api/platform/diagnostics/systeminfo";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processGetSystemInfo(s))}processGetSystemInfo(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=al.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getModulesErrors(){let n=this.baseUrl+"/api/platform/diagnostics/errors";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processGetModulesErrors(s))}processGetModulesErrors(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(ur.fromJS(l))}else o=null;return o}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class xC extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}getObjectTypes(){let n=this.baseUrl+"/api/platform/dynamic/types";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processGetObjectTypes(s))}processGetObjectTypes(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(l)}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}searchDynamicProperties(n){let r=this.baseUrl+"/api/platform/dynamic/properties/search";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processSearchDynamicProperties(o))}processSearchDynamicProperties(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=ll.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}createProperty(n){let r=this.baseUrl+"/api/platform/dynamic/properties";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processCreateProperty(o))}processCreateProperty(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=_o.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}updateProperty(n){let r=this.baseUrl+"/api/platform/dynamic/properties";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"PUT",headers:{"Content-Type":"application/json-patch+json"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processUpdateProperty(o))}processUpdateProperty(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}deleteProperty(n){let r=this.baseUrl+"/api/platform/dynamic/properties?";n!=null&&n&&n.forEach(i=>{r+="propertyIds="+encodeURIComponent(""+i)+"&"}),r=r.replace(/[?&]$/,"");let s={method:"DELETE",headers:{}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDeleteProperty(i))}processDeleteProperty(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}exposeDynamicObjectProperty(){let n=this.baseUrl+"/api/platform/dynamic";n=n.replace(/[?&]$/,"");let r={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processExposeDynamicObjectProperty(s))}processExposeDynamicObjectProperty(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=ul.fromJS(u),o}):r===204?n.text().then(i=>V("Success",r,i,s)):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}searchDictionaryItems(n){let r=this.baseUrl+"/api/platform/dynamic/dictionaryitems/search";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processSearchDictionaryItems(o))}processSearchDictionaryItems(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=fl.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}saveDictionaryItems(n){let r=this.baseUrl+"/api/platform/dynamic/dictionaryitems";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processSaveDictionaryItems(o))}processSaveDictionaryItems(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}deleteDictionaryItem(n){let r=this.baseUrl+"/api/platform/dynamic/dictionaryitems?";n!=null&&n&&n.forEach(i=>{r+="ids="+encodeURIComponent(""+i)+"&"}),r=r.replace(/[?&]$/,"");let s={method:"DELETE",headers:{}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDeleteDictionaryItem(i))}processDeleteDictionaryItem(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class CC extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}getStatus(n){let r=this.baseUrl+"/api/platform/jobs/{id}";if(n==null)throw new Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetStatus(i))}processGetStatus(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=pl.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class EC extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}reloadModules(){let n=this.baseUrl+"/api/platform/modules/reload";n=n.replace(/[?&]$/,"");let r={method:"POST",headers:{}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processReloadModules(s))}processReloadModules(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getModules(){let n=this.baseUrl+"/api/platform/modules";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processGetModules(s))}processGetModules(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(ur.fromJS(l))}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getDependingModules(n){let r=this.baseUrl+"/api/platform/modules/getdependents";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processGetDependingModules(o))}processGetDependingModules(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(ur.fromJS(l))}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getMissingDependencies(n){let r=this.baseUrl+"/api/platform/modules/getmissingdependencies";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processGetMissingDependencies(o))}processGetMissingDependencies(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(ur.fromJS(l))}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}uploadModuleArchive(){let n=this.baseUrl+"/api/platform/modules/localstorage";n=n.replace(/[?&]$/,"");let r={method:"POST",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processUploadModuleArchive(s))}processUploadModuleArchive(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=ur.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}installModules(n){let r=this.baseUrl+"/api/platform/modules/install";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processInstallModules(o))}processInstallModules(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=Xs.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}uninstallModule(n){let r=this.baseUrl+"/api/platform/modules/uninstall";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processUninstallModule(o))}processUninstallModule(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=Xs.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}restart(){let n=this.baseUrl+"/api/platform/modules/restart";n=n.replace(/[?&]$/,"");let r={method:"POST",headers:{}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processRestart(s))}processRestart(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}tryToAutoInstallModules(){let n=this.baseUrl+"/api/platform/modules/autoinstall";n=n.replace(/[?&]$/,"");let r={method:"POST",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processTryToAutoInstallModules(s))}processTryToAutoInstallModules(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=ml.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class kC extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}new(){let n=this.baseUrl+"/api/platform/oauthapps/new";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processNew(s))}processNew(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=Qi.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}save(n){let r=this.baseUrl+"/api/platform/oauthapps";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processSave(o))}processSave(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=Qi.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}delete(n){let r=this.baseUrl+"/api/platform/oauthapps?";n!=null&&n&&n.forEach(i=>{r+="clientIds="+encodeURIComponent(""+i)+"&"}),r=r.replace(/[?&]$/,"");let s={method:"DELETE",headers:{}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDelete(i))}processDelete(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}search(n){let r=this.baseUrl+"/api/platform/oauthapps/search";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processSearch(o))}processSearch(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=gl.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class Hg extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}searchPushNotification(n){let r=this.baseUrl+"/api/platform/pushnotifications";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processSearchPushNotification(o))}processSearchPushNotification(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=Zs.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}markAllAsRead(){let n=this.baseUrl+"/api/platform/pushnotifications/markAllAsRead";n=n.replace(/[?&]$/,"");let r={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processMarkAllAsRead(s))}processMarkAllAsRead(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=Zs.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class jg extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}login(n){let r=this.baseUrl+"/api/platform/security/login";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processLogin(o))}processLogin(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=yl.fromJS(u),o}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}logout(){let n=this.baseUrl+"/api/platform/security/logout";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processLogout(s))}processLogout(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getCurrentUser(){let n=this.baseUrl+"/api/platform/security/currentuser";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processGetCurrentUser(s))}processGetCurrentUser(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=bl.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}userinfo(){let n=this.baseUrl+"/api/platform/security/userinfo";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processUserinfo(s))}processUserinfo(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(Co.fromJS(l))}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getAllRegisteredPermissions(){let n=this.baseUrl+"/api/platform/security/permissions";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processGetAllRegisteredPermissions(s))}processGetAllRegisteredPermissions(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(Eo.fromJS(l))}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}searchRoles(n){let r=this.baseUrl+"/api/platform/security/roles/search";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processSearchRoles(o))}processSearchRoles(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=wl.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getRole(n){let r=this.baseUrl+"/api/platform/security/roles/{roleName}";if(n==null)throw new Error("The parameter 'roleName' must be defined.");r=r.replace("{roleName}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetRole(i))}processGetRole(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=vi.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}deleteRoles(n){let r=this.baseUrl+"/api/platform/security/roles?";n!=null&&n&&n.forEach(i=>{r+="ids="+encodeURIComponent(""+i)+"&"}),r=r.replace(/[?&]$/,"");let s={method:"DELETE",headers:{}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDeleteRoles(i))}processDeleteRoles(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}updateRole(n){let r=this.baseUrl+"/api/platform/security/roles";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"PUT",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processUpdateRole(o))}processUpdateRole(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=fn.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}searchUsers(n){let r=this.baseUrl+"/api/platform/security/users/search";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processSearchUsers(o))}processSearchUsers(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=_l.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getUserByName(n){let r=this.baseUrl+"/api/platform/security/users/{userName}";if(n==null)throw new Error("The parameter 'userName' must be defined.");r=r.replace("{userName}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetUserByName(i))}processGetUserByName(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=hr.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getUserById(n){let r=this.baseUrl+"/api/platform/security/users/id/{id}";if(n==null)throw new Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetUserById(i))}processGetUserById(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=hr.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getUserByEmail(n){let r=this.baseUrl+"/api/platform/security/users/email/{email}";if(n==null)throw new Error("The parameter 'email' must be defined.");r=r.replace("{email}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetUserByEmail(i))}processGetUserByEmail(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=hr.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getUserByLogin(n,r){let s=this.baseUrl+"/api/platform/security/users/login/external/{loginProvider}/{providerKey}";if(n==null)throw new Error("The parameter 'loginProvider' must be defined.");if(s=s.replace("{loginProvider}",encodeURIComponent(""+n)),r==null)throw new Error("The parameter 'providerKey' must be defined.");s=s.replace("{providerKey}",encodeURIComponent(""+r)),s=s.replace(/[?&]$/,"");let i={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(s,o)).then(o=>this.processGetUserByLogin(o))}processGetUserByLogin(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=hr.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}create(n){let r=this.baseUrl+"/api/platform/security/users/create";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processCreate(o))}processCreate(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=fn.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}changeCurrentUserPassword(n){let r=this.baseUrl+"/api/platform/security/currentuser/changepassword";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processChangeCurrentUserPassword(o))}processChangeCurrentUserPassword(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=fn.fromJS(u),o}):r===400?n.text().then(i=>V("Bad Request",r,i,s)):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}changePassword(n,r){let s=this.baseUrl+"/api/platform/security/users/{userName}/changepassword";if(n==null)throw new Error("The parameter 'userName' must be defined.");s=s.replace("{userName}",encodeURIComponent(""+n)),s=s.replace(/[?&]$/,"");let o={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(o).then(u=>this.http.fetch(s,u)).then(u=>this.processChangePassword(u))}processChangePassword(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=fn.fromJS(u),o}):r===400?n.text().then(i=>V("Bad Request",r,i,s)):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}resetPassword(n,r){let s=this.baseUrl+"/api/platform/security/users/{userName}/resetpassword";if(n==null)throw new Error("The parameter 'userName' must be defined.");s=s.replace("{userName}",encodeURIComponent(""+n)),s=s.replace(/[?&]$/,"");let o={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(o).then(u=>this.http.fetch(s,u)).then(u=>this.processResetPassword(u))}processResetPassword(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=fn.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}resetPasswordByToken(n,r){let s=this.baseUrl+"/api/platform/security/users/{userId}/resetpasswordconfirm";if(n==null)throw new Error("The parameter 'userId' must be defined.");s=s.replace("{userId}",encodeURIComponent(""+n)),s=s.replace(/[?&]$/,"");let o={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(o).then(u=>this.http.fetch(s,u)).then(u=>this.processResetPasswordByToken(u))}processResetPasswordByToken(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=fn.fromJS(u),o}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}validatePasswordResetToken(n,r){let s=this.baseUrl+"/api/platform/security/users/{userId}/validatepasswordresettoken";if(n==null)throw new Error("The parameter 'userId' must be defined.");s=s.replace("{userId}",encodeURIComponent(""+n)),s=s.replace(/[?&]$/,"");let o={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(o).then(u=>this.http.fetch(s,u)).then(u=>this.processValidatePasswordResetToken(u))}processValidatePasswordResetToken(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=u!==void 0?u:null,o}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}requestPasswordReset(n){let r=this.baseUrl+"/api/platform/security/users/{loginOrEmail}/requestpasswordreset";if(n==null)throw new Error("The parameter 'loginOrEmail' must be defined.");r=r.replace("{loginOrEmail}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"POST",headers:{}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processRequestPasswordReset(i))}processRequestPasswordReset(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}validatePassword(n){let r=this.baseUrl+"/api/platform/security/validatepassword";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processValidatePassword(o))}processValidatePassword(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=to.fromJS(u),o}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}validateUserPassword(n){let r=this.baseUrl+"/api/platform/security/validateuserpassword";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processValidateUserPassword(o))}processValidateUserPassword(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=to.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}update(n){let r=this.baseUrl+"/api/platform/security/users";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"PUT",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processUpdate(o))}processUpdate(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=fn.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}delete(n){let r=this.baseUrl+"/api/platform/security/users?";n!=null&&n&&n.forEach(i=>{r+="names="+encodeURIComponent(""+i)+"&"}),r=r.replace(/[?&]$/,"");let s={method:"DELETE",headers:{}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDelete(i))}processDelete(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}isUserLocked(n){let r=this.baseUrl+"/api/platform/security/users/{id}/locked";if(n==null)throw new Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processIsUserLocked(i))}processIsUserLocked(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=Cl.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}lockUser(n){let r=this.baseUrl+"/api/platform/security/users/{id}/lock";if(n==null)throw new Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"POST",headers:{Accept:"text/plain"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processLockUser(i))}processLockUser(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=fn.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}unlockUser(n){let r=this.baseUrl+"/api/platform/security/users/{id}/unlock";if(n==null)throw new Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"POST",headers:{Accept:"text/plain"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUnlockUser(i))}processUnlockUser(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=fn.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getUserApiKeys(n){let r=this.baseUrl+"/api/platform/security/users/{id}/apikeys";if(n==null)throw new Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetUserApiKeys(i))}processGetUserApiKeys(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(li.fromJS(l))}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}saveUserApiKey(n){let r=this.baseUrl+"/api/platform/security/users/apikeys";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processSaveUserApiKey(o))}processSaveUserApiKey(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(li.fromJS(l))}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}updateUserApiKey(n){let r=this.baseUrl+"/api/platform/security/users/apikeys";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"PUT",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processUpdateUserApiKey(o))}processUpdateUserApiKey(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(li.fromJS(l))}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}deleteUserApiKeys(n){let r=this.baseUrl+"/api/platform/security/users/apikeys?";n!=null&&n&&n.forEach(i=>{r+="ids="+encodeURIComponent(""+i)+"&"}),r=r.replace(/[?&]$/,"");let s={method:"DELETE",headers:{Accept:"text/plain"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDeleteUserApiKeys(i))}processDeleteUserApiKeys(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(li.fromJS(l))}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getLoginTypes(){let n=this.baseUrl+"/api/platform/security/logintypes";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processGetLoginTypes(s))}processGetLoginTypes(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}sendVerificationEmail(n){let r=this.baseUrl+"/api/platform/security/users/{userId}/sendVerificationEmail";if(n==null)throw new Error("The parameter 'userId' must be defined.");r=r.replace("{userId}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"POST",headers:{}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSendVerificationEmail(i))}processSendVerificationEmail(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class zg extends un{constructor(n,r){super();L(this,"http");L(this,"baseUrl");L(this,"jsonParseReviver");this.http=r||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",n)}getAllGlobalSettings(){let n=this.baseUrl+"/api/platform/settings";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processGetAllGlobalSettings(s))}processGetAllGlobalSettings(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=ci.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}update(n){let r=this.baseUrl+"/api/platform/settings";r=r.replace(/[?&]$/,"");let i={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json-patch+json"}};return this.transformOptions(i).then(o=>this.http.fetch(r,o)).then(o=>this.processUpdate(o))}processUpdate(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===204?n.text().then(i=>{}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getGlobalModuleSettings(n){let r=this.baseUrl+"/api/platform/settings/modules/{id}";if(n==null)throw new Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetGlobalModuleSettings(i))}processGetGlobalModuleSettings(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(u)){o=[];for(let l of u)o.push(ci.fromJS(l))}else o=null;return o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getGlobalSetting(n){let r=this.baseUrl+"/api/platform/settings/{name}";if(n==null)throw new Error("The parameter 'name' must be defined.");r=r.replace("{name}",encodeURIComponent(""+n)),r=r.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetGlobalSetting(i))}processGetGlobalSetting(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=ci.fromJS(u),o}):r===401?n.text().then(i=>V("Unauthorized",r,i,s)):r===403?n.text().then(i=>V("Forbidden",r,i,s)):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}getUICustomizationSetting(){let n=this.baseUrl+"/api/platform/settings/ui/customization";n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(s=>this.http.fetch(n,s)).then(s=>this.processGetUICustomizationSetting(s))}processGetUICustomizationSetting(n){const r=n.status;let s={};return n.headers&&n.headers.forEach&&n.headers.forEach((i,o)=>s[o]=i),r===200?n.text().then(i=>{let o=null,u=i===""?null:JSON.parse(i,this.jsonParseReviver);return o=ci.fromJS(u),o}):r!==200&&r!==204?n.text().then(i=>V("An unexpected server error occurred.",r,i,s)):Promise.resolve(null)}}class Js{constructor(e){L(this,"accessToken");L(this,"code");L(this,"deviceCode");L(this,"error");L(this,"errorDescription");L(this,"errorUri");L(this,"expiresIn");L(this,"idToken");L(this,"refreshToken");L(this,"scope");L(this,"state");L(this,"tokenType");L(this,"userCode");L(this,"count");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.accessToken=e.accessToken,this.code=e.code,this.deviceCode=e.deviceCode,this.error=e.error,this.errorDescription=e.errorDescription,this.errorUri=e.errorUri,this.expiresIn=e.expiresIn,this.idToken=e.idToken,this.refreshToken=e.refreshToken,this.scope=e.scope,this.state=e.state,this.tokenType=e.tokenType,this.userCode=e.userCode,this.count=e.count)}static fromJS(e){e=typeof e=="object"?e:{};let n=new Js;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.accessToken=this.accessToken,e.code=this.code,e.deviceCode=this.deviceCode,e.error=this.error,e.errorDescription=this.errorDescription,e.errorUri=this.errorUri,e.expiresIn=this.expiresIn,e.idToken=this.idToken,e.refreshToken=this.refreshToken,e.scope=this.scope,e.state=this.state,e.tokenType=this.tokenType,e.userCode=this.userCode,e.count=this.count,e}}class el{constructor(e){L(this,"title");L(this,"description");L(this,"iconUrl");L(this,"relativeUrl");L(this,"permission");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.title=e.title,this.description=e.description,this.iconUrl=e.iconUrl,this.relativeUrl=e.relativeUrl,this.permission=e.permission,this.id=e.id)}static fromJS(e){e=typeof e=="object"?e:{};let n=new el;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.title=this.title,e.description=this.description,e.iconUrl=this.iconUrl,e.relativeUrl=this.relativeUrl,e.permission=this.permission,e.id=this.id,e}}class tl{constructor(e){L(this,"scope");L(this,"lastModifiedDate");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.scope=e.scope,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0)}static fromJS(e){e=typeof e=="object"?e:{};let n=new tl;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.scope=this.scope,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e}}class dh{constructor(e){L(this,"entityNames");L(this,"modifiedSince");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(Array.isArray(e.entityNames)){this.entityNames=[];for(let n of e.entityNames)this.entityNames.push(n)}this.modifiedSince=e.modifiedSince?new Date(e.modifiedSince.toString()):void 0}}static fromJS(e){e=typeof e=="object"?e:{};let n=new dh;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.entityNames)){e.entityNames=[];for(let n of this.entityNames)e.entityNames.push(n)}return e.modifiedSince=this.modifiedSince?this.modifiedSince.toISOString():void 0,e}}class nl{constructor(e){L(this,"name");L(this,"modifiedDate");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.name=e.name,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0)}static fromJS(e){e=typeof e=="object"?e:{};let n=new nl;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.name=this.name,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e}}class rl{constructor(e){L(this,"entities");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e&&Array.isArray(e.entities)){this.entities=[];for(let n of e.entities)this.entities.push(nl.fromJS(n))}}static fromJS(e){e=typeof e=="object"?e:{};let n=new rl;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.entities)){e.entities=[];for(let n of this.entities)e.entities.push(n.toJSON())}return e}}exports.EntryState=void 0;(function(t){t.Detached="Detached",t.Unchanged="Unchanged",t.Added="Added",t.Deleted="Deleted",t.Modified="Modified"})(exports.EntryState||(exports.EntryState={}));exports.SortDirection=void 0;(function(t){t.Ascending="Ascending",t.Descending="Descending"})(exports.SortDirection||(exports.SortDirection={}));class Xn{constructor(e){L(this,"sortColumn");L(this,"sortDirection");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.sortColumn=e.sortColumn,this.sortDirection=e.sortDirection)}static fromJS(e){e=typeof e=="object"?e:{};let n=new Xn;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.sortColumn=this.sortColumn,e.sortDirection=this.sortDirection,e}}class fh{constructor(e){L(this,"operationTypes");L(this,"startDate");L(this,"endDate");L(this,"responseGroup");L(this,"objectType");L(this,"objectTypes");L(this,"objectIds");L(this,"keyword");L(this,"searchPhrase");L(this,"languageCode");L(this,"sort");L(this,"sortInfos");L(this,"skip");L(this,"take");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(Array.isArray(e.operationTypes)){this.operationTypes=[];for(let n of e.operationTypes)this.operationTypes.push(n)}if(this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let n of e.objectTypes)this.objectTypes.push(n)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let n of e.objectIds)this.objectIds.push(n)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let n of e.sortInfos)this.sortInfos.push(Xn.fromJS(n))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let n=new fh;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.operationTypes)){e.operationTypes=[];for(let n of this.operationTypes)e.operationTypes.push(n)}if(e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let n of this.objectTypes)e.objectTypes.push(n)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let n of this.objectIds)e.objectIds.push(n)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let n of this.sortInfos)e.sortInfos.push(n.toJSON())}return e.skip=this.skip,e.take=this.take,e}}class wo{constructor(e){L(this,"objectType");L(this,"objectId");L(this,"operationType");L(this,"detail");L(this,"createdDate");L(this,"modifiedDate");L(this,"createdBy");L(this,"modifiedBy");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.objectType=e.objectType,this.objectId=e.objectId,this.operationType=e.operationType,this.detail=e.detail,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,this.id=e.id)}static fromJS(e){e=typeof e=="object"?e:{};let n=new wo;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.objectType=this.objectType,e.objectId=this.objectId,e.operationType=this.operationType,e.detail=this.detail,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,e.id=this.id,e}}class il{constructor(e){L(this,"totalCount");L(this,"results");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e&&(this.totalCount=e.totalCount,Array.isArray(e.results))){this.results=[];for(let n of e.results)this.results.push(wo.fromJS(n))}}static fromJS(e){e=typeof e=="object"?e:{};let n=new il;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let n of this.results)e.results.push(n.toJSON())}return e}}class sl{constructor(e){L(this,"type");L(this,"customerName");L(this,"customerEmail");L(this,"expirationDate");L(this,"rawLicense");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.type=e.type,this.customerName=e.customerName,this.customerEmail=e.customerEmail,this.expirationDate=e.expirationDate?new Date(e.expirationDate.toString()):void 0,this.rawLicense=e.rawLicense)}static fromJS(e){e=typeof e=="object"?e:{};let n=new sl;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.type=this.type,e.customerName=this.customerName,e.customerEmail=this.customerEmail,e.expirationDate=this.expirationDate?this.expirationDate.toISOString():void 0,e.rawLicense=this.rawLicense,e}}class ol{constructor(e){L(this,"major");L(this,"minor");L(this,"patch");L(this,"prerelease");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.major=e.major,this.minor=e.minor,this.patch=e.patch,this.prerelease=e.prerelease)}static fromJS(e){e=typeof e=="object"?e:{};let n=new ol;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.major=this.major,e.minor=this.minor,e.patch=this.patch,e.prerelease=this.prerelease,e}}class Ks{constructor(e){L(this,"id");L(this,"version");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.id=e.id,this.version=e.version?ol.fromJS(e.version):void 0)}static fromJS(e){e=typeof e=="object"?e:{};let n=new Ks;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.id=this.id,e.version=this.version?this.version.toJSON():void 0,e}}class ur{constructor(e){L(this,"version");L(this,"platformVersion");L(this,"title");L(this,"description");L(this,"authors");L(this,"owners");L(this,"licenseUrl");L(this,"projectUrl");L(this,"iconUrl");L(this,"requireLicenseAcceptance");L(this,"releaseNotes");L(this,"copyright");L(this,"tags");L(this,"groups");L(this,"dependencies");L(this,"validationErrors");L(this,"isRemovable");L(this,"isInstalled");L(this,"installedVersion");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.version=e.version,this.platformVersion=e.platformVersion,this.title=e.title,this.description=e.description,Array.isArray(e.authors)){this.authors=[];for(let n of e.authors)this.authors.push(n)}if(Array.isArray(e.owners)){this.owners=[];for(let n of e.owners)this.owners.push(n)}if(this.licenseUrl=e.licenseUrl,this.projectUrl=e.projectUrl,this.iconUrl=e.iconUrl,this.requireLicenseAcceptance=e.requireLicenseAcceptance,this.releaseNotes=e.releaseNotes,this.copyright=e.copyright,this.tags=e.tags,Array.isArray(e.groups)){this.groups=[];for(let n of e.groups)this.groups.push(n)}if(Array.isArray(e.dependencies)){this.dependencies=[];for(let n of e.dependencies)this.dependencies.push(Ks.fromJS(n))}if(Array.isArray(e.validationErrors)){this.validationErrors=[];for(let n of e.validationErrors)this.validationErrors.push(n)}this.isRemovable=e.isRemovable,this.isInstalled=e.isInstalled,this.installedVersion=e.installedVersion?Ks.fromJS(e.installedVersion):void 0,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let n=new ur;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.version=this.version,e.platformVersion=this.platformVersion,e.title=this.title,e.description=this.description,Array.isArray(this.authors)){e.authors=[];for(let n of this.authors)e.authors.push(n)}if(Array.isArray(this.owners)){e.owners=[];for(let n of this.owners)e.owners.push(n)}if(e.licenseUrl=this.licenseUrl,e.projectUrl=this.projectUrl,e.iconUrl=this.iconUrl,e.requireLicenseAcceptance=this.requireLicenseAcceptance,e.releaseNotes=this.releaseNotes,e.copyright=this.copyright,e.tags=this.tags,Array.isArray(this.groups)){e.groups=[];for(let n of this.groups)e.groups.push(n)}if(Array.isArray(this.dependencies)){e.dependencies=[];for(let n of this.dependencies)e.dependencies.push(n.toJSON())}if(Array.isArray(this.validationErrors)){e.validationErrors=[];for(let n of this.validationErrors)e.validationErrors.push(n)}return e.isRemovable=this.isRemovable,e.isInstalled=this.isInstalled,e.installedVersion=this.installedVersion?this.installedVersion.toJSON():void 0,e.id=this.id,e}}class al{constructor(e){L(this,"platformVersion");L(this,"license");L(this,"installedModules");L(this,"version");L(this,"is64BitOperatingSystem");L(this,"is64BitProcess");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.platformVersion=e.platformVersion,this.license=e.license?sl.fromJS(e.license):void 0,Array.isArray(e.installedModules)){this.installedModules=[];for(let n of e.installedModules)this.installedModules.push(ur.fromJS(n))}this.version=e.version,this.is64BitOperatingSystem=e.is64BitOperatingSystem,this.is64BitProcess=e.is64BitProcess}}static fromJS(e){e=typeof e=="object"?e:{};let n=new al;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.platformVersion=this.platformVersion,e.license=this.license?this.license.toJSON():void 0,Array.isArray(this.installedModules)){e.installedModules=[];for(let n of this.installedModules)e.installedModules.push(n.toJSON())}return e.version=this.version,e.is64BitOperatingSystem=this.is64BitOperatingSystem,e.is64BitProcess=this.is64BitProcess,e}}class ph{constructor(e){L(this,"typeName");L(this,"responseGroup");L(this,"objectType");L(this,"objectTypes");L(this,"objectIds");L(this,"keyword");L(this,"searchPhrase");L(this,"languageCode");L(this,"sort");L(this,"sortInfos");L(this,"skip");L(this,"take");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.typeName=e.typeName,this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let n of e.objectTypes)this.objectTypes.push(n)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let n of e.objectIds)this.objectIds.push(n)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let n of e.sortInfos)this.sortInfos.push(Xn.fromJS(n))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let n=new ph;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.typeName=this.typeName,e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let n of this.objectTypes)e.objectTypes.push(n)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let n of this.objectIds)e.objectIds.push(n)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let n of this.sortInfos)e.sortInfos.push(n.toJSON())}return e.skip=this.skip,e.take=this.take,e}}exports.DynamicPropertyValueType=void 0;(function(t){t.Undefined="Undefined",t.ShortText="ShortText",t.LongText="LongText",t.Integer="Integer",t.Decimal="Decimal",t.DateTime="DateTime",t.Boolean="Boolean",t.Html="Html",t.Image="Image"})(exports.DynamicPropertyValueType||(exports.DynamicPropertyValueType={}));class So{constructor(e){L(this,"locale");L(this,"name");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.locale=e.locale,this.name=e.name)}static fromJS(e){e=typeof e=="object"?e:{};let n=new So;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.locale=this.locale,e.name=this.name,e}}class _o{constructor(e){L(this,"name");L(this,"description");L(this,"objectType");L(this,"isArray");L(this,"isDictionary");L(this,"isMultilingual");L(this,"isRequired");L(this,"displayOrder");L(this,"valueType");L(this,"displayNames");L(this,"createdDate");L(this,"modifiedDate");L(this,"createdBy");L(this,"modifiedBy");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.name=e.name,this.description=e.description,this.objectType=e.objectType,this.isArray=e.isArray,this.isDictionary=e.isDictionary,this.isMultilingual=e.isMultilingual,this.isRequired=e.isRequired,this.displayOrder=e.displayOrder,this.valueType=e.valueType,Array.isArray(e.displayNames)){this.displayNames=[];for(let n of e.displayNames)this.displayNames.push(So.fromJS(n))}this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let n=new _o;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.name=this.name,e.description=this.description,e.objectType=this.objectType,e.isArray=this.isArray,e.isDictionary=this.isDictionary,e.isMultilingual=this.isMultilingual,e.isRequired=this.isRequired,e.displayOrder=this.displayOrder,e.valueType=this.valueType,Array.isArray(this.displayNames)){e.displayNames=[];for(let n of this.displayNames)e.displayNames.push(n.toJSON())}return e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,e.id=this.id,e}}class ll{constructor(e){L(this,"totalCount");L(this,"results");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e&&(this.totalCount=e.totalCount,Array.isArray(e.results))){this.results=[];for(let n of e.results)this.results.push(_o.fromJS(n))}}static fromJS(e){e=typeof e=="object"?e:{};let n=new ll;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let n of this.results)e.results.push(n.toJSON())}return e}}class cl{constructor(e){L(this,"objectType");L(this,"objectId");L(this,"locale");L(this,"value");L(this,"valueId");L(this,"valueType");L(this,"propertyId");L(this,"propertyName");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.objectType=e.objectType,this.objectId=e.objectId,this.locale=e.locale,this.value=e.value,this.valueId=e.valueId,this.valueType=e.valueType,this.propertyId=e.propertyId,this.propertyName=e.propertyName)}static fromJS(e){e=typeof e=="object"?e:{};let n=new cl;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.objectType=this.objectType,e.objectId=this.objectId,e.locale=this.locale,e.value=this.value,e.valueId=this.valueId,e.valueType=this.valueType,e.propertyId=this.propertyId,e.propertyName=this.propertyName,e}}class ul{constructor(e){L(this,"objectId");L(this,"values");L(this,"name");L(this,"description");L(this,"objectType");L(this,"isArray");L(this,"isDictionary");L(this,"isMultilingual");L(this,"isRequired");L(this,"displayOrder");L(this,"valueType");L(this,"displayNames");L(this,"createdDate");L(this,"modifiedDate");L(this,"createdBy");L(this,"modifiedBy");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.objectId=e.objectId,Array.isArray(e.values)){this.values=[];for(let n of e.values)this.values.push(cl.fromJS(n))}if(this.name=e.name,this.description=e.description,this.objectType=e.objectType,this.isArray=e.isArray,this.isDictionary=e.isDictionary,this.isMultilingual=e.isMultilingual,this.isRequired=e.isRequired,this.displayOrder=e.displayOrder,this.valueType=e.valueType,Array.isArray(e.displayNames)){this.displayNames=[];for(let n of e.displayNames)this.displayNames.push(So.fromJS(n))}this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let n=new ul;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.objectId=this.objectId,Array.isArray(this.values)){e.values=[];for(let n of this.values)e.values.push(n.toJSON())}if(e.name=this.name,e.description=this.description,e.objectType=this.objectType,e.isArray=this.isArray,e.isDictionary=this.isDictionary,e.isMultilingual=this.isMultilingual,e.isRequired=this.isRequired,e.displayOrder=this.displayOrder,e.valueType=this.valueType,Array.isArray(this.displayNames)){e.displayNames=[];for(let n of this.displayNames)e.displayNames.push(n.toJSON())}return e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,e.id=this.id,e}}class mh{constructor(e){L(this,"propertyId");L(this,"responseGroup");L(this,"objectType");L(this,"objectTypes");L(this,"objectIds");L(this,"keyword");L(this,"searchPhrase");L(this,"languageCode");L(this,"sort");L(this,"sortInfos");L(this,"skip");L(this,"take");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.propertyId=e.propertyId,this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let n of e.objectTypes)this.objectTypes.push(n)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let n of e.objectIds)this.objectIds.push(n)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let n of e.sortInfos)this.sortInfos.push(Xn.fromJS(n))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let n=new mh;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.propertyId=this.propertyId,e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let n of this.objectTypes)e.objectTypes.push(n)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let n of this.objectIds)e.objectIds.push(n)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let n of this.sortInfos)e.sortInfos.push(n.toJSON())}return e.skip=this.skip,e.take=this.take,e}}class hl{constructor(e){L(this,"locale");L(this,"name");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.locale=e.locale,this.name=e.name)}static fromJS(e){e=typeof e=="object"?e:{};let n=new hl;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.locale=this.locale,e.name=this.name,e}}class dl{constructor(e){L(this,"propertyId");L(this,"name");L(this,"displayNames");L(this,"createdDate");L(this,"modifiedDate");L(this,"createdBy");L(this,"modifiedBy");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.propertyId=e.propertyId,this.name=e.name,Array.isArray(e.displayNames)){this.displayNames=[];for(let n of e.displayNames)this.displayNames.push(hl.fromJS(n))}this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let n=new dl;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.propertyId=this.propertyId,e.name=this.name,Array.isArray(this.displayNames)){e.displayNames=[];for(let n of this.displayNames)e.displayNames.push(n.toJSON())}return e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,e.id=this.id,e}}class fl{constructor(e){L(this,"totalCount");L(this,"results");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e&&(this.totalCount=e.totalCount,Array.isArray(e.results))){this.results=[];for(let n of e.results)this.results.push(dl.fromJS(n))}}static fromJS(e){e=typeof e=="object"?e:{};let n=new fl;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let n of this.results)e.results.push(n.toJSON())}return e}}class pl{constructor(e){L(this,"state");L(this,"completed");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.state=e.state,this.completed=e.completed,this.id=e.id)}static fromJS(e){e=typeof e=="object"?e:{};let n=new pl;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.state=this.state,e.completed=this.completed,e.id=this.id,e}}exports.ProgressMessageLevel=void 0;(function(t){t.Info="Info",t.Warning="Warning",t.Debug="Debug",t.Error="Error"})(exports.ProgressMessageLevel||(exports.ProgressMessageLevel={}));class xo{constructor(e){L(this,"message");L(this,"level");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.message=e.message,this.level=e.level)}static fromJS(e){e=typeof e=="object"?e:{};let n=new xo;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.message=this.message,e.level=this.level,e}}class Xs{constructor(e){L(this,"started");L(this,"finished");L(this,"progressLog");L(this,"errorCount");L(this,"serverId");L(this,"creator");L(this,"created");L(this,"isNew");L(this,"notifyType");L(this,"description");L(this,"title");L(this,"repeatCount");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.started=e.started?new Date(e.started.toString()):void 0,this.finished=e.finished?new Date(e.finished.toString()):void 0,Array.isArray(e.progressLog)){this.progressLog=[];for(let n of e.progressLog)this.progressLog.push(xo.fromJS(n))}this.errorCount=e.errorCount,this.serverId=e.serverId,this.creator=e.creator,this.created=e.created?new Date(e.created.toString()):void 0,this.isNew=e.isNew,this.notifyType=e.notifyType,this.description=e.description,this.title=e.title,this.repeatCount=e.repeatCount,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let n=new Xs;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.started=this.started?this.started.toISOString():void 0,e.finished=this.finished?this.finished.toISOString():void 0,Array.isArray(this.progressLog)){e.progressLog=[];for(let n of this.progressLog)e.progressLog.push(n.toJSON())}return e.errorCount=this.errorCount,e.serverId=this.serverId,e.creator=this.creator,e.created=this.created?this.created.toISOString():void 0,e.isNew=this.isNew,e.notifyType=this.notifyType,e.description=this.description,e.title=this.title,e.repeatCount=this.repeatCount,e.id=this.id,e}}class ml{constructor(e){L(this,"started");L(this,"finished");L(this,"progressLog");L(this,"errorCount");L(this,"serverId");L(this,"creator");L(this,"created");L(this,"isNew");L(this,"notifyType");L(this,"description");L(this,"title");L(this,"repeatCount");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.started=e.started?new Date(e.started.toString()):void 0,this.finished=e.finished?new Date(e.finished.toString()):void 0,Array.isArray(e.progressLog)){this.progressLog=[];for(let n of e.progressLog)this.progressLog.push(xo.fromJS(n))}this.errorCount=e.errorCount,this.serverId=e.serverId,this.creator=e.creator,this.created=e.created?new Date(e.created.toString()):void 0,this.isNew=e.isNew,this.notifyType=e.notifyType,this.description=e.description,this.title=e.title,this.repeatCount=e.repeatCount,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let n=new ml;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.started=this.started?this.started.toISOString():void 0,e.finished=this.finished?this.finished.toISOString():void 0,Array.isArray(this.progressLog)){e.progressLog=[];for(let n of this.progressLog)e.progressLog.push(n.toJSON())}return e.errorCount=this.errorCount,e.serverId=this.serverId,e.creator=this.creator,e.created=this.created?this.created.toISOString():void 0,e.isNew=this.isNew,e.notifyType=this.notifyType,e.description=this.description,e.title=this.title,e.repeatCount=this.repeatCount,e.id=this.id,e}}exports.JsonValueKind=void 0;(function(t){t.Undefined="Undefined",t.Object="Object",t.Array="Array",t.String="String",t.Number="Number",t.True="True",t.False="False",t.Null="Null"})(exports.JsonValueKind||(exports.JsonValueKind={}));class qs{constructor(e){L(this,"valueKind");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.valueKind=e.valueKind)}static fromJS(e){e=typeof e=="object"?e:{};let n=new qs;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.valueKind=this.valueKind,e}}class Qi{constructor(e){L(this,"clientId");L(this,"clientSecret");L(this,"consentType");L(this,"displayName");L(this,"displayNames");L(this,"permissions");L(this,"postLogoutRedirectUris");L(this,"properties");L(this,"redirectUris");L(this,"requirements");L(this,"type");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.clientId=e.clientId,this.clientSecret=e.clientSecret,this.consentType=e.consentType,this.displayName=e.displayName,e.displayNames){this.displayNames={};for(let n in e.displayNames)e.displayNames.hasOwnProperty(n)&&(this.displayNames[n]=e.displayNames[n])}if(Array.isArray(e.permissions)){this.permissions=[];for(let n of e.permissions)this.permissions.push(n)}if(Array.isArray(e.postLogoutRedirectUris)){this.postLogoutRedirectUris=[];for(let n of e.postLogoutRedirectUris)this.postLogoutRedirectUris.push(n)}if(e.properties){this.properties={};for(let n in e.properties)e.properties.hasOwnProperty(n)&&(this.properties[n]=e.properties[n]?qs.fromJS(e.properties[n]):new qs)}if(Array.isArray(e.redirectUris)){this.redirectUris=[];for(let n of e.redirectUris)this.redirectUris.push(n)}if(Array.isArray(e.requirements)){this.requirements=[];for(let n of e.requirements)this.requirements.push(n)}this.type=e.type}}static fromJS(e){e=typeof e=="object"?e:{};let n=new Qi;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.clientId=this.clientId,e.clientSecret=this.clientSecret,e.consentType=this.consentType,e.displayName=this.displayName,this.displayNames){e.displayNames={};for(let n in this.displayNames)this.displayNames.hasOwnProperty(n)&&(e.displayNames[n]=this.displayNames[n])}if(Array.isArray(this.permissions)){e.permissions=[];for(let n of this.permissions)e.permissions.push(n)}if(Array.isArray(this.postLogoutRedirectUris)){e.postLogoutRedirectUris=[];for(let n of this.postLogoutRedirectUris)e.postLogoutRedirectUris.push(n)}if(this.properties){e.properties={};for(let n in this.properties)this.properties.hasOwnProperty(n)&&(e.properties[n]=this.properties[n]?this.properties[n].toJSON():void 0)}if(Array.isArray(this.redirectUris)){e.redirectUris=[];for(let n of this.redirectUris)e.redirectUris.push(n)}if(Array.isArray(this.requirements)){e.requirements=[];for(let n of this.requirements)e.requirements.push(n)}return e.type=this.type,e}}class gh{constructor(e){L(this,"responseGroup");L(this,"objectType");L(this,"objectTypes");L(this,"objectIds");L(this,"keyword");L(this,"searchPhrase");L(this,"languageCode");L(this,"sort");L(this,"sortInfos");L(this,"skip");L(this,"take");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let n of e.objectTypes)this.objectTypes.push(n)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let n of e.objectIds)this.objectIds.push(n)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let n of e.sortInfos)this.sortInfos.push(Xn.fromJS(n))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let n=new gh;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let n of this.objectTypes)e.objectTypes.push(n)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let n of this.objectIds)e.objectIds.push(n)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let n of this.sortInfos)e.sortInfos.push(n.toJSON())}return e.skip=this.skip,e.take=this.take,e}}class gl{constructor(e){L(this,"totalCount");L(this,"results");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e&&(this.totalCount=e.totalCount,Array.isArray(e.results))){this.results=[];for(let n of e.results)this.results.push(Qi.fromJS(n))}}static fromJS(e){e=typeof e=="object"?e:{};let n=new gl;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let n of this.results)e.results.push(n.toJSON())}return e}}class vh{constructor(e){L(this,"ids");L(this,"onlyNew");L(this,"startDate");L(this,"endDate");L(this,"responseGroup");L(this,"objectType");L(this,"objectTypes");L(this,"objectIds");L(this,"keyword");L(this,"searchPhrase");L(this,"languageCode");L(this,"sort");L(this,"sortInfos");L(this,"skip");L(this,"take");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(Array.isArray(e.ids)){this.ids=[];for(let n of e.ids)this.ids.push(n)}if(this.onlyNew=e.onlyNew,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let n of e.objectTypes)this.objectTypes.push(n)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let n of e.objectIds)this.objectIds.push(n)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let n of e.sortInfos)this.sortInfos.push(Xn.fromJS(n))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let n=new vh;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.ids)){e.ids=[];for(let n of this.ids)e.ids.push(n)}if(e.onlyNew=this.onlyNew,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let n of this.objectTypes)e.objectTypes.push(n)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let n of this.objectIds)e.objectIds.push(n)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let n of this.sortInfos)e.sortInfos.push(n.toJSON())}return e.skip=this.skip,e.take=this.take,e}}class vl{constructor(e){L(this,"serverId");L(this,"creator");L(this,"created");L(this,"isNew");L(this,"notifyType");L(this,"description");L(this,"title");L(this,"repeatCount");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.serverId=e.serverId,this.creator=e.creator,this.created=e.created?new Date(e.created.toString()):void 0,this.isNew=e.isNew,this.notifyType=e.notifyType,this.description=e.description,this.title=e.title,this.repeatCount=e.repeatCount,this.id=e.id)}static fromJS(e){e=typeof e=="object"?e:{};let n=new vl;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.serverId=this.serverId,e.creator=this.creator,e.created=this.created?this.created.toISOString():void 0,e.isNew=this.isNew,e.notifyType=this.notifyType,e.description=this.description,e.title=this.title,e.repeatCount=this.repeatCount,e.id=this.id,e}}class Zs{constructor(e){L(this,"totalCount");L(this,"newCount");L(this,"notifyEvents");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e&&(this.totalCount=e.totalCount,this.newCount=e.newCount,Array.isArray(e.notifyEvents))){this.notifyEvents=[];for(let n of e.notifyEvents)this.notifyEvents.push(vl.fromJS(n))}}static fromJS(e){e=typeof e=="object"?e:{};let n=new Zs;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.totalCount=this.totalCount,e.newCount=this.newCount,Array.isArray(this.notifyEvents)){e.notifyEvents=[];for(let n of this.notifyEvents)e.notifyEvents.push(n.toJSON())}return e}}class yh{constructor(e){L(this,"userName");L(this,"password");L(this,"rememberMe");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.userName=e.userName,this.password=e.password,this.rememberMe=e.rememberMe)}static fromJS(e){e=typeof e=="object"?e:{};let n=new yh;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.userName=this.userName,e.password=this.password,e.rememberMe=this.rememberMe,e}}class yl{constructor(e){L(this,"succeeded");L(this,"isLockedOut");L(this,"isNotAllowed");L(this,"requiresTwoFactor");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.succeeded=e.succeeded,this.isLockedOut=e.isLockedOut,this.isNotAllowed=e.isNotAllowed,this.requiresTwoFactor=e.requiresTwoFactor)}static fromJS(e){e=typeof e=="object"?e:{};let n=new yl;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.succeeded=this.succeeded,e.isLockedOut=this.isLockedOut,e.isNotAllowed=this.isNotAllowed,e.requiresTwoFactor=this.requiresTwoFactor,e}}class bl{constructor(e){L(this,"permissions");L(this,"userName");L(this,"isAdministrator");L(this,"passwordExpired");L(this,"daysTillPasswordExpiry");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(Array.isArray(e.permissions)){this.permissions=[];for(let n of e.permissions)this.permissions.push(n)}this.userName=e.userName,this.isAdministrator=e.isAdministrator,this.passwordExpired=e.passwordExpired,this.daysTillPasswordExpiry=e.daysTillPasswordExpiry,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let n=new bl;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.permissions)){e.permissions=[];for(let n of this.permissions)e.permissions.push(n)}return e.userName=this.userName,e.isAdministrator=this.isAdministrator,e.passwordExpired=this.passwordExpired,e.daysTillPasswordExpiry=this.daysTillPasswordExpiry,e.id=this.id,e}}class Qs{constructor(e){L(this,"authenticationType");L(this,"isAuthenticated");L(this,"actor");L(this,"bootstrapContext");L(this,"claims");L(this,"label");L(this,"name");L(this,"nameClaimType");L(this,"roleClaimType");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.authenticationType=e.authenticationType,this.isAuthenticated=e.isAuthenticated,this.actor=e.actor?Qs.fromJS(e.actor):void 0,this.bootstrapContext=e.bootstrapContext,Array.isArray(e.claims)){this.claims=[];for(let n of e.claims)this.claims.push(Co.fromJS(n))}this.label=e.label,this.name=e.name,this.nameClaimType=e.nameClaimType,this.roleClaimType=e.roleClaimType}}static fromJS(e){e=typeof e=="object"?e:{};let n=new Qs;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.authenticationType=this.authenticationType,e.isAuthenticated=this.isAuthenticated,e.actor=this.actor?this.actor.toJSON():void 0,e.bootstrapContext=this.bootstrapContext,Array.isArray(this.claims)){e.claims=[];for(let n of this.claims)e.claims.push(n.toJSON())}return e.label=this.label,e.name=this.name,e.nameClaimType=this.nameClaimType,e.roleClaimType=this.roleClaimType,e}}class Co{constructor(e){L(this,"issuer");L(this,"originalIssuer");L(this,"properties");L(this,"subject");L(this,"type");L(this,"value");L(this,"valueType");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.issuer=e.issuer,this.originalIssuer=e.originalIssuer,e.properties){this.properties={};for(let n in e.properties)e.properties.hasOwnProperty(n)&&(this.properties[n]=e.properties[n])}this.subject=e.subject?Qs.fromJS(e.subject):void 0,this.type=e.type,this.value=e.value,this.valueType=e.valueType}}static fromJS(e){e=typeof e=="object"?e:{};let n=new Co;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.issuer=this.issuer,e.originalIssuer=this.originalIssuer,this.properties){e.properties={};for(let n in this.properties)this.properties.hasOwnProperty(n)&&(e.properties[n]=this.properties[n])}return e.subject=this.subject?this.subject.toJSON():void 0,e.type=this.type,e.value=this.value,e.valueType=this.valueType,e}}class eo{constructor(e){L(this,"type");L(this,"label");L(this,"scope");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.type=e.type,this.label=e.label,this.scope=e.scope)}static fromJS(e){e=typeof e=="object"?e:{};let n=new eo;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.type=this.type,e.label=this.label,e.scope=this.scope,e}}class Eo{constructor(e){L(this,"id");L(this,"name");L(this,"moduleId");L(this,"groupName");L(this,"assignedScopes");L(this,"availableScopes");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.id=e.id,this.name=e.name,this.moduleId=e.moduleId,this.groupName=e.groupName,Array.isArray(e.assignedScopes)){this.assignedScopes=[];for(let n of e.assignedScopes)this.assignedScopes.push(eo.fromJS(n))}if(Array.isArray(e.availableScopes)){this.availableScopes=[];for(let n of e.availableScopes)this.availableScopes.push(eo.fromJS(n))}}}static fromJS(e){e=typeof e=="object"?e:{};let n=new Eo;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.id=this.id,e.name=this.name,e.moduleId=this.moduleId,e.groupName=this.groupName,Array.isArray(this.assignedScopes)){e.assignedScopes=[];for(let n of this.assignedScopes)e.assignedScopes.push(n.toJSON())}if(Array.isArray(this.availableScopes)){e.availableScopes=[];for(let n of this.availableScopes)e.availableScopes.push(n.toJSON())}return e}}class bh{constructor(e){L(this,"responseGroup");L(this,"objectType");L(this,"objectTypes");L(this,"objectIds");L(this,"keyword");L(this,"searchPhrase");L(this,"languageCode");L(this,"sort");L(this,"sortInfos");L(this,"skip");L(this,"take");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let n of e.objectTypes)this.objectTypes.push(n)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let n of e.objectIds)this.objectIds.push(n)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let n of e.sortInfos)this.sortInfos.push(Xn.fromJS(n))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let n=new bh;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let n of this.objectTypes)e.objectTypes.push(n)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let n of this.objectIds)e.objectIds.push(n)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let n of this.sortInfos)e.sortInfos.push(n.toJSON())}return e.skip=this.skip,e.take=this.take,e}}class wh{constructor(e){L(this,"userId");L(this,"roleId");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.userId=e.userId,this.roleId=e.roleId)}static fromJS(e){e=typeof e=="object"?e:{};let n=new wh;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.userId=this.userId,e.roleId=this.roleId,e}}class vi{constructor(e){L(this,"description");L(this,"permissions");L(this,"id");L(this,"name");L(this,"normalizedName");L(this,"concurrencyStamp");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.description=e.description,Array.isArray(e.permissions)){this.permissions=[];for(let n of e.permissions)this.permissions.push(Eo.fromJS(n))}this.id=e.id,this.name=e.name,this.normalizedName=e.normalizedName,this.concurrencyStamp=e.concurrencyStamp}}static fromJS(e){e=typeof e=="object"?e:{};let n=new vi;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.description=this.description,Array.isArray(this.permissions)){e.permissions=[];for(let n of this.permissions)e.permissions.push(n.toJSON())}return e.id=this.id,e.name=this.name,e.normalizedName=this.normalizedName,e.concurrencyStamp=this.concurrencyStamp,e}}class wl{constructor(e){L(this,"roles");L(this,"totalCount");L(this,"results");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(Array.isArray(e.roles)){this.roles=[];for(let n of e.roles)this.roles.push(vi.fromJS(n))}if(this.totalCount=e.totalCount,Array.isArray(e.results)){this.results=[];for(let n of e.results)this.results.push(vi.fromJS(n))}}}static fromJS(e){e=typeof e=="object"?e:{};let n=new wl;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.roles)){e.roles=[];for(let n of this.roles)e.roles.push(n.toJSON())}if(e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let n of this.results)e.results.push(n.toJSON())}return e}}class fn{constructor(e){L(this,"succeeded");L(this,"errors");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e&&(this.succeeded=e.succeeded,Array.isArray(e.errors))){this.errors=[];for(let n of e.errors)this.errors.push(n)}}static fromJS(e){e=typeof e=="object"?e:{};let n=new fn;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.succeeded=this.succeeded,Array.isArray(this.errors)){e.errors=[];for(let n of this.errors)e.errors.push(n)}return e}}class Sh{constructor(e){L(this,"memberId");L(this,"memberIds");L(this,"modifiedSinceDate");L(this,"roles");L(this,"responseGroup");L(this,"objectType");L(this,"objectTypes");L(this,"objectIds");L(this,"keyword");L(this,"searchPhrase");L(this,"languageCode");L(this,"sort");L(this,"sortInfos");L(this,"skip");L(this,"take");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.memberId=e.memberId,Array.isArray(e.memberIds)){this.memberIds=[];for(let n of e.memberIds)this.memberIds.push(n)}if(this.modifiedSinceDate=e.modifiedSinceDate?new Date(e.modifiedSinceDate.toString()):void 0,Array.isArray(e.roles)){this.roles=[];for(let n of e.roles)this.roles.push(n)}if(this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let n of e.objectTypes)this.objectTypes.push(n)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let n of e.objectIds)this.objectIds.push(n)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let n of e.sortInfos)this.sortInfos.push(Xn.fromJS(n))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let n=new Sh;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.memberId=this.memberId,Array.isArray(this.memberIds)){e.memberIds=[];for(let n of this.memberIds)e.memberIds.push(n)}if(e.modifiedSinceDate=this.modifiedSinceDate?this.modifiedSinceDate.toISOString():void 0,Array.isArray(this.roles)){e.roles=[];for(let n of this.roles)e.roles.push(n)}if(e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let n of this.objectTypes)e.objectTypes.push(n)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let n of this.objectIds)e.objectIds.push(n)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let n of this.sortInfos)e.sortInfos.push(n.toJSON())}return e.skip=this.skip,e.take=this.take,e}}exports.AccountState=void 0;(function(t){t.PendingApproval="PendingApproval",t.Approved="Approved",t.Rejected="Rejected"})(exports.AccountState||(exports.AccountState={}));class Sl{constructor(e){L(this,"loginProvider");L(this,"providerKey");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.loginProvider=e.loginProvider,this.providerKey=e.providerKey)}static fromJS(e){e=typeof e=="object"?e:{};let n=new Sl;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.loginProvider=this.loginProvider,e.providerKey=this.providerKey,e}}class hr{constructor(e){L(this,"storeId");L(this,"memberId");L(this,"isAdministrator");L(this,"photoUrl");L(this,"userType");L(this,"status");L(this,"password");L(this,"createdDate");L(this,"modifiedDate");L(this,"createdBy");L(this,"modifiedBy");L(this,"roles");L(this,"lockoutEndDateUtc");L(this,"userState");L(this,"permissions");L(this,"logins");L(this,"passwordExpired");L(this,"lastPasswordChangedDate");L(this,"lastPasswordChangeRequestDate");L(this,"id");L(this,"userName");L(this,"normalizedUserName");L(this,"email");L(this,"normalizedEmail");L(this,"emailConfirmed");L(this,"passwordHash");L(this,"securityStamp");L(this,"concurrencyStamp");L(this,"phoneNumber");L(this,"phoneNumberConfirmed");L(this,"twoFactorEnabled");L(this,"lockoutEnd");L(this,"lockoutEnabled");L(this,"accessFailedCount");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.storeId=e.storeId,this.memberId=e.memberId,this.isAdministrator=e.isAdministrator,this.photoUrl=e.photoUrl,this.userType=e.userType,this.status=e.status,this.password=e.password,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,Array.isArray(e.roles)){this.roles=[];for(let n of e.roles)this.roles.push(vi.fromJS(n))}if(this.lockoutEndDateUtc=e.lockoutEndDateUtc?new Date(e.lockoutEndDateUtc.toString()):void 0,this.userState=e.userState,Array.isArray(e.permissions)){this.permissions=[];for(let n of e.permissions)this.permissions.push(n)}if(Array.isArray(e.logins)){this.logins=[];for(let n of e.logins)this.logins.push(Sl.fromJS(n))}this.passwordExpired=e.passwordExpired,this.lastPasswordChangedDate=e.lastPasswordChangedDate?new Date(e.lastPasswordChangedDate.toString()):void 0,this.lastPasswordChangeRequestDate=e.lastPasswordChangeRequestDate?new Date(e.lastPasswordChangeRequestDate.toString()):void 0,this.id=e.id,this.userName=e.userName,this.normalizedUserName=e.normalizedUserName,this.email=e.email,this.normalizedEmail=e.normalizedEmail,this.emailConfirmed=e.emailConfirmed,this.passwordHash=e.passwordHash,this.securityStamp=e.securityStamp,this.concurrencyStamp=e.concurrencyStamp,this.phoneNumber=e.phoneNumber,this.phoneNumberConfirmed=e.phoneNumberConfirmed,this.twoFactorEnabled=e.twoFactorEnabled,this.lockoutEnd=e.lockoutEnd?new Date(e.lockoutEnd.toString()):void 0,this.lockoutEnabled=e.lockoutEnabled,this.accessFailedCount=e.accessFailedCount}}static fromJS(e){e=typeof e=="object"?e:{};let n=new hr;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.storeId=this.storeId,e.memberId=this.memberId,e.isAdministrator=this.isAdministrator,e.photoUrl=this.photoUrl,e.userType=this.userType,e.status=this.status,e.password=this.password,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,Array.isArray(this.roles)){e.roles=[];for(let n of this.roles)e.roles.push(n.toJSON())}if(e.lockoutEndDateUtc=this.lockoutEndDateUtc?this.lockoutEndDateUtc.toISOString():void 0,e.userState=this.userState,Array.isArray(this.permissions)){e.permissions=[];for(let n of this.permissions)e.permissions.push(n)}if(Array.isArray(this.logins)){e.logins=[];for(let n of this.logins)e.logins.push(n.toJSON())}return e.passwordExpired=this.passwordExpired,e.lastPasswordChangedDate=this.lastPasswordChangedDate?this.lastPasswordChangedDate.toISOString():void 0,e.lastPasswordChangeRequestDate=this.lastPasswordChangeRequestDate?this.lastPasswordChangeRequestDate.toISOString():void 0,e.id=this.id,e.userName=this.userName,e.normalizedUserName=this.normalizedUserName,e.email=this.email,e.normalizedEmail=this.normalizedEmail,e.emailConfirmed=this.emailConfirmed,e.passwordHash=this.passwordHash,e.securityStamp=this.securityStamp,e.concurrencyStamp=this.concurrencyStamp,e.phoneNumber=this.phoneNumber,e.phoneNumberConfirmed=this.phoneNumberConfirmed,e.twoFactorEnabled=this.twoFactorEnabled,e.lockoutEnd=this.lockoutEnd?this.lockoutEnd.toISOString():void 0,e.lockoutEnabled=this.lockoutEnabled,e.accessFailedCount=this.accessFailedCount,e}}class _l{constructor(e){L(this,"users");L(this,"totalCount");L(this,"results");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(Array.isArray(e.users)){this.users=[];for(let n of e.users)this.users.push(hr.fromJS(n))}if(this.totalCount=e.totalCount,Array.isArray(e.results)){this.results=[];for(let n of e.results)this.results.push(hr.fromJS(n))}}}static fromJS(e){e=typeof e=="object"?e:{};let n=new _l;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.users)){e.users=[];for(let n of this.users)e.users.push(n.toJSON())}if(e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let n of this.results)e.results.push(n.toJSON())}return e}}class _h{constructor(e){L(this,"userName");L(this,"oldPassword");L(this,"newPassword");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.userName=e.userName,this.oldPassword=e.oldPassword,this.newPassword=e.newPassword)}static fromJS(e){e=typeof e=="object"?e:{};let n=new _h;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.userName=this.userName,e.oldPassword=this.oldPassword,e.newPassword=this.newPassword,e}}class xh{constructor(e){L(this,"token");L(this,"newPassword");L(this,"forcePasswordChangeOnNextSignIn");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.token=e.token,this.newPassword=e.newPassword,this.forcePasswordChangeOnNextSignIn=e.forcePasswordChangeOnNextSignIn)}static fromJS(e){e=typeof e=="object"?e:{};let n=new xh;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.token=this.token,e.newPassword=this.newPassword,e.forcePasswordChangeOnNextSignIn=this.forcePasswordChangeOnNextSignIn,e}}class Ch{constructor(e){L(this,"token");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.token=e.token)}static fromJS(e){e=typeof e=="object"?e:{};let n=new Ch;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.token=this.token,e}}class xl{constructor(e){L(this,"code");L(this,"description");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.code=e.code,this.description=e.description)}static fromJS(e){e=typeof e=="object"?e:{};let n=new xl;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.code=this.code,e.description=this.description,e}}class to{constructor(e){L(this,"succeeded");L(this,"errors");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e&&(this.succeeded=e.succeeded,Array.isArray(e.errors))){this.errors=[];for(let n of e.errors)this.errors.push(xl.fromJS(n))}}static fromJS(e){e=typeof e=="object"?e:{};let n=new to;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.succeeded=this.succeeded,Array.isArray(this.errors)){e.errors=[];for(let n of this.errors)e.errors.push(n.toJSON())}return e}}class Cl{constructor(e){L(this,"locked");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.locked=e.locked)}static fromJS(e){e=typeof e=="object"?e:{};let n=new Cl;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.locked=this.locked,e}}class li{constructor(e){L(this,"apiKey");L(this,"userName");L(this,"userId");L(this,"isActive");L(this,"createdDate");L(this,"modifiedDate");L(this,"createdBy");L(this,"modifiedBy");L(this,"id");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.apiKey=e.apiKey,this.userName=e.userName,this.userId=e.userId,this.isActive=e.isActive,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,this.id=e.id)}static fromJS(e){e=typeof e=="object"?e:{};let n=new li;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.apiKey=this.apiKey,e.userName=this.userName,e.userId=this.userId,e.isActive=this.isActive,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,e.id=this.id,e}}exports.SettingValueType=void 0;(function(t){t.ShortText="ShortText",t.LongText="LongText",t.Integer="Integer",t.Decimal="Decimal",t.DateTime="DateTime",t.Boolean="Boolean",t.SecureString="SecureString",t.Json="Json",t.PositiveInteger="PositiveInteger"})(exports.SettingValueType||(exports.SettingValueType={}));class ci{constructor(e){L(this,"itHasValues");L(this,"objectId");L(this,"objectType");L(this,"isReadOnly");L(this,"value");L(this,"id");L(this,"restartRequired");L(this,"moduleId");L(this,"groupName");L(this,"name");L(this,"displayName");L(this,"isRequired");L(this,"isHidden");L(this,"valueType");L(this,"allowedValues");L(this,"defaultValue");L(this,"isDictionary");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){if(e){if(this.itHasValues=e.itHasValues,this.objectId=e.objectId,this.objectType=e.objectType,this.isReadOnly=e.isReadOnly,this.value=e.value,this.id=e.id,this.restartRequired=e.restartRequired,this.moduleId=e.moduleId,this.groupName=e.groupName,this.name=e.name,this.displayName=e.displayName,this.isRequired=e.isRequired,this.isHidden=e.isHidden,this.valueType=e.valueType,Array.isArray(e.allowedValues)){this.allowedValues=[];for(let n of e.allowedValues)this.allowedValues.push(n)}this.defaultValue=e.defaultValue,this.isDictionary=e.isDictionary}}static fromJS(e){e=typeof e=="object"?e:{};let n=new ci;return n.init(e),n}toJSON(e){if(e=typeof e=="object"?e:{},e.itHasValues=this.itHasValues,e.objectId=this.objectId,e.objectType=this.objectType,e.isReadOnly=this.isReadOnly,e.value=this.value,e.id=this.id,e.restartRequired=this.restartRequired,e.moduleId=this.moduleId,e.groupName=this.groupName,e.name=this.name,e.displayName=this.displayName,e.isRequired=this.isRequired,e.isHidden=this.isHidden,e.valueType=this.valueType,Array.isArray(this.allowedValues)){e.allowedValues=[];for(let n of this.allowedValues)e.allowedValues.push(n)}return e.defaultValue=this.defaultValue,e.isDictionary=this.isDictionary,e}}class Eh{constructor(e){L(this,"grant_type");L(this,"scope");L(this,"username");L(this,"password");if(e)for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n])}init(e){e&&(this.grant_type=e.grant_type,this.scope=e.scope,this.username=e.username,this.password=e.password)}static fromJS(e){e=typeof e=="object"?e:{};let n=new Eh;return n.init(e),n}toJSON(e){return e=typeof e=="object"?e:{},e.grant_type=this.grant_type,e.scope=this.scope,e.username=this.username,e.password=this.password,e}}exports.SortInfoSortDirection=void 0;(function(t){t.Ascending="Ascending",t.Descending="Descending"})(exports.SortInfoSortDirection||(exports.SortInfoSortDirection={}));exports.OperationLogOperationType=void 0;(function(t){t.Detached="Detached",t.Unchanged="Unchanged",t.Added="Added",t.Deleted="Deleted",t.Modified="Modified"})(exports.OperationLogOperationType||(exports.OperationLogOperationType={}));exports.DynamicPropertyValueType2=void 0;(function(t){t.Undefined="Undefined",t.ShortText="ShortText",t.LongText="LongText",t.Integer="Integer",t.Decimal="Decimal",t.DateTime="DateTime",t.Boolean="Boolean",t.Html="Html",t.Image="Image"})(exports.DynamicPropertyValueType2||(exports.DynamicPropertyValueType2={}));exports.DynamicPropertyObjectValueValueType=void 0;(function(t){t.Undefined="Undefined",t.ShortText="ShortText",t.LongText="LongText",t.Integer="Integer",t.Decimal="Decimal",t.DateTime="DateTime",t.Boolean="Boolean",t.Html="Html",t.Image="Image"})(exports.DynamicPropertyObjectValueValueType||(exports.DynamicPropertyObjectValueValueType={}));exports.DynamicObjectPropertyValueType=void 0;(function(t){t.Undefined="Undefined",t.ShortText="ShortText",t.LongText="LongText",t.Integer="Integer",t.Decimal="Decimal",t.DateTime="DateTime",t.Boolean="Boolean",t.Html="Html",t.Image="Image"})(exports.DynamicObjectPropertyValueType||(exports.DynamicObjectPropertyValueType={}));exports.ProgressMessageLevel2=void 0;(function(t){t.Info="Info",t.Warning="Warning",t.Debug="Debug",t.Error="Error"})(exports.ProgressMessageLevel2||(exports.ProgressMessageLevel2={}));exports.JsonElementValueKind=void 0;(function(t){t.Undefined="Undefined",t.Object="Object",t.Array="Array",t.String="String",t.Number="Number",t.True="True",t.False="False",t.Null="Null"})(exports.JsonElementValueKind||(exports.JsonElementValueKind={}));exports.ApplicationUserUserState=void 0;(function(t){t.PendingApproval="PendingApproval",t.Approved="Approved",t.Rejected="Rejected"})(exports.ApplicationUserUserState||(exports.ApplicationUserUserState={}));exports.ObjectSettingEntryValueType=void 0;(function(t){t.ShortText="ShortText",t.LongText="LongText",t.Integer="Integer",t.Decimal="Decimal",t.DateTime="DateTime",t.Boolean="Boolean",t.SecureString="SecureString",t.Json="Json",t.PositiveInteger="PositiveInteger"})(exports.ObjectSettingEntryValueType||(exports.ObjectSettingEntryValueType={}));class Gg extends Error{constructor(n,r,s,i,o){super();L(this,"message");L(this,"status");L(this,"response");L(this,"headers");L(this,"result");L(this,"isApiException",!0);this.message=n,this.status=r,this.response=s,this.headers=i,this.result=o}static isApiException(n){return n.isApiException===!0}}function V(t,e,n,r,s){throw s!=null?s:new Gg(t,e,n,r,null)}const jf="ls.authenticationData",vs=d.ref(),$n=d.ref(!1),At=d.ref(),zf=new mC({accessTokenUri:"/connect/token",scopes:["offline_access"]}),Ai=new jg,ko=()=>{async function t(h,p){let m=!1;try{$n.value=!0,m=await Ai.validatePasswordResetToken(h,{token:p})}catch{}finally{$n.value=!1}return m}async function e(h){return Ai.validatePassword(h)}async function n(h,p,m){return Ai.resetPasswordByToken(h,{newPassword:p,token:m})}async function r(h,p){console.debug("[@vc-shell/framework#useUser:signIn] - Entry point");let m;try{$n.value=!0,m=await zf.owner.getToken(h,p)}catch(g){return{succeeded:!1,error:g}}finally{$n.value=!1}return m&&(At.value={accessToken:m.accessToken,refreshToken:m.refreshToken,expiresAt:f(Number(m.data.expires_in)),userName:h},console.log("[userUsers]: an access token has been obtained successfully",At.value),u(At.value),await i()),{succeeded:!0}}async function s(){console.debug("[@vc-shell/framework#useUser:signOut] - Entry point"),vs.value=void 0,At.value=void 0,u({})}async function i(){console.debug("[@vc-shell/framework#useUser:loadUser] - Entry point");const h=await o();if(h){Ai.setAuthToken(h);try{$n.value=!0,vs.value=await Ai.getCurrentUser(),console.log("[userUsers]: an user details has been loaded",vs.value)}catch(p){console.dir(p)}finally{$n.value=!1}}return{...vs.value}}async function o(){var h,p,m,g,v,w,_;if(console.debug("[@vc-shell/framework#useUser:getAccessToken] - Entry point"),At.value||(At.value=l()),At.value&&Date.now()>=((h=At.value.expiresAt)!=null?h:0)){const $=zf.createToken((m=(p=At.value.accessToken)!=null?p:At.value.token)!=null?m:"",(g=At.value.refreshToken)!=null?g:"",{});console.log("[userUsers]: an access token is expired, using refresh token to receive a new");try{const x=await $.refresh();x&&(At.value={...At.value,accessToken:x.accessToken,token:x.accessToken,refreshToken:x.refreshToken,expiresAt:f(Number(x.data.expires_in))},u(At.value))}catch(x){console.log("[userUsers]: getAccessToken() returns error",x)}}return(_=(v=At.value)==null?void 0:v.accessToken)!=null?_:(w=At.value)==null?void 0:w.token}function u(h){localStorage.setItem(jf,JSON.stringify({...h||{}}))}function l(){return JSON.parse(localStorage.getItem(jf)||"{}")}function f(h){return Date.now()+h*1e3}async function a(h){try{return $n.value=!0,await Ai.requestPasswordReset(h),{succeeded:!0}}catch(p){return{succeeded:!1,error:p}}finally{$n.value=!1}}async function c(h,p){const m=await o();let g;if(m)try{$n.value=!0;const v=await fetch("/api/platform/security/currentuser/changepassword",{method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain",authorization:`Bearer ${m}`},body:JSON.stringify({oldPassword:h,newPassword:p})});v.status!==500&&(g=await v.text().then(w=>JSON.parse(w)))}catch(v){return{succeeded:!1,errors:[v.message]}}finally{$n.value=!1}return g}return{user:d.computed(()=>vs.value),loading:d.computed(()=>$n.value),getAccessToken:o,loadUser:i,signIn:r,signOut:s,validateToken:t,validatePassword:e,resetPasswordByToken:n,requestPasswordReset:a,changeUserPassword:c}};var $C=typeof global=="object"&&global&&global.Object===Object&&global;const Yg=$C;var TC=typeof self=="object"&&self&&self.Object===Object&&self,AC=Yg||TC||Function("return this")();const kt=AC;var OC=kt.Symbol;const Rt=OC;var Jg=Object.prototype,LC=Jg.hasOwnProperty,RC=Jg.toString,ys=Rt?Rt.toStringTag:void 0;function MC(t){var e=LC.call(t,ys),n=t[ys];try{t[ys]=void 0;var r=!0}catch{}var s=RC.call(t);return r&&(e?t[ys]=n:delete t[ys]),s}var IC=Object.prototype,NC=IC.toString;function DC(t){return NC.call(t)}var PC="[object Null]",BC="[object Undefined]",Gf=Rt?Rt.toStringTag:void 0;function Bt(t){return t==null?t===void 0?BC:PC:Gf&&Gf in Object(t)?MC(t):DC(t)}function ut(t){return t!=null&&typeof t=="object"}var FC="[object Symbol]";function sn(t){return typeof t=="symbol"||ut(t)&&Bt(t)==FC}var VC=0/0;function Yf(t){return typeof t=="number"?t:sn(t)?VC:+t}function it(t,e){for(var n=-1,r=t==null?0:t.length,s=Array(r);++n<r;)s[n]=e(t[n],n,t);return s}var WC=Array.isArray;const Ee=WC;var UC=1/0,Jf=Rt?Rt.prototype:void 0,Kf=Jf?Jf.toString:void 0;function on(t){if(typeof t=="string")return t;if(Ee(t))return it(t,on)+"";if(sn(t))return Kf?Kf.call(t):"";var e=t+"";return e=="0"&&1/t==-UC?"-0":e}function El(t,e){return function(n,r){var s;if(n===void 0&&r===void 0)return e;if(n!==void 0&&(s=n),r!==void 0){if(s===void 0)return r;typeof n=="string"||typeof r=="string"?(n=on(n),r=on(r)):(n=Yf(n),r=Yf(r)),s=t(n,r)}return s}}var HC=El(function(t,e){return t+e},0);const jC=HC;var zC=/\s/;function Kg(t){for(var e=t.length;e--&&zC.test(t.charAt(e)););return e}var GC=/^\s+/;function Xg(t){return t&&t.slice(0,Kg(t)+1).replace(GC,"")}function st(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Xf=0/0,YC=/^[-+]0x[0-9a-f]+$/i,JC=/^0b[01]+$/i,KC=/^0o[0-7]+$/i,XC=parseInt;function gn(t){if(typeof t=="number")return t;if(sn(t))return Xf;if(st(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=st(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Xg(t);var n=JC.test(t);return n||KC.test(t)?XC(t.slice(2),n?2:8):YC.test(t)?Xf:+t}var qf=1/0,qC=17976931348623157e292;function pr(t){if(!t)return t===0?t:0;if(t=gn(t),t===qf||t===-qf){var e=t<0?-1:1;return e*qC}return t===t?t:0}function Te(t){var e=pr(t),n=e%1;return e===e?n?e-n:e:0}var ZC="Expected a function";function QC(t,e){if(typeof e!="function")throw new TypeError(ZC);return t=Te(t),function(){if(--t<1)return e.apply(this,arguments)}}function Ft(t){return t}var eE="[object AsyncFunction]",tE="[object Function]",nE="[object GeneratorFunction]",rE="[object Proxy]";function wr(t){if(!st(t))return!1;var e=Bt(t);return e==tE||e==nE||e==eE||e==rE}var iE=kt["__core-js_shared__"];const na=iE;var Zf=function(){var t=/[^.]+$/.exec(na&&na.keys&&na.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function sE(t){return!!Zf&&Zf in t}var oE=Function.prototype,aE=oE.toString;function _i(t){if(t!=null){try{return aE.call(t)}catch{}try{return t+""}catch{}}return""}var lE=/[\\^$.*+?()[\]{}|]/g,cE=/^\[object .+?Constructor\]$/,uE=Function.prototype,hE=Object.prototype,dE=uE.toString,fE=hE.hasOwnProperty,pE=RegExp("^"+dE.call(fE).replace(lE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qg(t){if(!st(t)||sE(t))return!1;var e=wr(t)?pE:cE;return e.test(_i(t))}function mE(t,e){return t==null?void 0:t[e]}function xi(t,e){var n=mE(t,e);return qg(n)?n:void 0}var gE=xi(kt,"WeakMap");const no=gE;var vE=no&&new no;const Sa=vE;var yE=Sa?function(t,e){return Sa.set(t,e),t}:Ft;const Zg=yE;var Qf=Object.create,bE=function(){function t(){}return function(e){if(!st(e))return{};if(Qf)return Qf(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const rs=bE;function ro(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=rs(t.prototype),r=t.apply(n,e);return st(r)?r:n}}var wE=1;function SE(t,e,n){var r=e&wE,s=ro(t);function i(){var o=this&&this!==kt&&this instanceof i?s:t;return o.apply(r?n:this,arguments)}return i}function an(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var _E=Math.max;function Qg(t,e,n,r){for(var s=-1,i=t.length,o=n.length,u=-1,l=e.length,f=_E(i-o,0),a=Array(l+f),c=!r;++u<l;)a[u]=e[u];for(;++s<o;)(c||s<i)&&(a[n[s]]=t[s]);for(;f--;)a[u++]=t[s++];return a}var xE=Math.max;function ev(t,e,n,r){for(var s=-1,i=t.length,o=-1,u=n.length,l=-1,f=e.length,a=xE(i-u,0),c=Array(a+f),h=!r;++s<a;)c[s]=t[s];for(var p=s;++l<f;)c[p+l]=e[l];for(;++o<u;)(h||s<i)&&(c[p+n[o]]=t[s++]);return c}function CE(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function kl(){}var EE=4294967295;function Ie(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=EE,this.__views__=[]}Ie.prototype=rs(kl.prototype);Ie.prototype.constructor=Ie;function kh(){}var kE=Sa?function(t){return Sa.get(t)}:kh;const $h=kE;var $E={};const Fi=$E;var TE=Object.prototype,AE=TE.hasOwnProperty;function ra(t){for(var e=t.name+"",n=Fi[e],r=AE.call(Fi,e)?n.length:0;r--;){var s=n[r],i=s.func;if(i==null||i==t)return s.name}return e}function wn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}wn.prototype=rs(kl.prototype);wn.prototype.constructor=wn;function Yt(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function tv(t){if(t instanceof Ie)return t.clone();var e=new wn(t.__wrapped__,t.__chain__);return e.__actions__=Yt(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var OE=Object.prototype,LE=OE.hasOwnProperty;function N(t){if(ut(t)&&!Ee(t)&&!(t instanceof Ie)){if(t instanceof wn)return t;if(LE.call(t,"__wrapped__"))return tv(t)}return new wn(t)}N.prototype=kl.prototype;N.prototype.constructor=N;function au(t){var e=ra(t),n=N[e];if(typeof n!="function"||!(e in Ie.prototype))return!1;if(t===n)return!0;var r=$h(n);return!!r&&t===r[0]}var RE=800,ME=16,IE=Date.now;function nv(t){var e=0,n=0;return function(){var r=IE(),s=ME-(r-n);if(n=r,s>0){if(++e>=RE)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var NE=nv(Zg);const rv=NE;var DE=/\{\n\/\* \[wrapped with (.+)\] \*/,PE=/,? & /;function BE(t){var e=t.match(DE);return e?e[1].split(PE):[]}var FE=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function VE(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(FE,`{
1088
+ /* [wrapped with `+e+`] */
1089
+ `)}function Th(t){return function(){return t}}var WE=function(){try{var t=xi(Object,"defineProperty");return t({},"",{}),t}catch{}}();const _a=WE;var UE=_a?function(t,e){return _a(t,"toString",{configurable:!0,enumerable:!1,value:Th(e),writable:!0})}:Ft;const HE=UE;var jE=nv(HE);const Ah=jE;function Cn(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function $l(t,e,n,r){for(var s=t.length,i=n+(r?1:-1);r?i--:++i<s;)if(e(t[i],i,t))return i;return-1}function iv(t){return t!==t}function zE(t,e,n){for(var r=n-1,s=t.length;++r<s;)if(t[r]===e)return r;return-1}function is(t,e,n){return e===e?zE(t,e,n):$l(t,iv,n)}function Tl(t,e){var n=t==null?0:t.length;return!!n&&is(t,e,0)>-1}var GE=1,YE=2,JE=8,KE=16,XE=32,qE=64,ZE=128,QE=256,ek=512,tk=[["ary",ZE],["bind",GE],["bindKey",YE],["curry",JE],["curryRight",KE],["flip",ek],["partial",XE],["partialRight",qE],["rearg",QE]];function nk(t,e){return Cn(tk,function(n){var r="_."+n[0];e&n[1]&&!Tl(t,r)&&t.push(r)}),t.sort()}function sv(t,e,n){var r=e+"";return Ah(t,VE(r,nk(BE(r),n)))}var rk=1,ik=2,sk=4,ok=8,ep=32,tp=64;function ov(t,e,n,r,s,i,o,u,l,f){var a=e&ok,c=a?o:void 0,h=a?void 0:o,p=a?i:void 0,m=a?void 0:i;e|=a?ep:tp,e&=~(a?tp:ep),e&sk||(e&=~(rk|ik));var g=[t,e,s,p,c,m,h,u,l,f],v=n.apply(void 0,g);return au(t)&&rv(v,g),v.placeholder=r,sv(v,t,e)}function ss(t){var e=t;return e.placeholder}var ak=9007199254740991,lk=/^(?:0|[1-9]\d*)$/;function Sr(t,e){var n=typeof t;return e=e==null?ak:e,!!e&&(n=="number"||n!="symbol"&&lk.test(t))&&t>-1&&t%1==0&&t<e}var ck=Math.min;function uk(t,e){for(var n=t.length,r=ck(e.length,n),s=Yt(t);r--;){var i=e[r];t[r]=Sr(i,n)?s[i]:void 0}return t}var np="__lodash_placeholder__";function jr(t,e){for(var n=-1,r=t.length,s=0,i=[];++n<r;){var o=t[n];(o===e||o===np)&&(t[n]=np,i[s++]=n)}return i}var hk=1,dk=2,fk=8,pk=16,mk=128,gk=512;function Al(t,e,n,r,s,i,o,u,l,f){var a=e&mk,c=e&hk,h=e&dk,p=e&(fk|pk),m=e&gk,g=h?void 0:ro(t);function v(){for(var w=arguments.length,_=Array(w),$=w;$--;)_[$]=arguments[$];if(p)var x=ss(v),b=CE(_,x);if(r&&(_=Qg(_,r,s,p)),i&&(_=ev(_,i,o,p)),w-=b,p&&w<f){var C=jr(_,x);return ov(t,e,Al,v.placeholder,n,_,C,u,l,f-w)}var T=c?n:this,k=h?T[t]:t;return w=_.length,u?_=uk(_,u):m&&w>1&&_.reverse(),a&&l<w&&(_.length=l),this&&this!==kt&&this instanceof v&&(k=g||ro(k)),k.apply(T,_)}return v}function vk(t,e,n){var r=ro(t);function s(){for(var i=arguments.length,o=Array(i),u=i,l=ss(s);u--;)o[u]=arguments[u];var f=i<3&&o[0]!==l&&o[i-1]!==l?[]:jr(o,l);if(i-=f.length,i<n)return ov(t,e,Al,s.placeholder,void 0,o,f,void 0,void 0,n-i);var a=this&&this!==kt&&this instanceof s?r:t;return an(a,this,o)}return s}var yk=1;function bk(t,e,n,r){var s=e&yk,i=ro(t);function o(){for(var u=-1,l=arguments.length,f=-1,a=r.length,c=Array(a+l),h=this&&this!==kt&&this instanceof o?i:t;++f<a;)c[f]=r[f];for(;l--;)c[f++]=arguments[++u];return an(h,s?n:this,c)}return o}var rp="__lodash_placeholder__",dc=1,wk=2,Sk=4,ip=8,bs=128,sp=256,_k=Math.min;function xk(t,e){var n=t[1],r=e[1],s=n|r,i=s<(dc|wk|bs),o=r==bs&&n==ip||r==bs&&n==sp&&t[7].length<=e[8]||r==(bs|sp)&&e[7].length<=e[8]&&n==ip;if(!(i||o))return t;r&dc&&(t[2]=e[2],s|=n&dc?0:Sk);var u=e[3];if(u){var l=t[3];t[3]=l?Qg(l,u,e[4]):u,t[4]=l?jr(t[3],rp):e[4]}return u=e[5],u&&(l=t[5],t[5]=l?ev(l,u,e[6]):u,t[6]=l?jr(t[5],rp):e[6]),u=e[7],u&&(t[7]=u),r&bs&&(t[8]=t[8]==null?e[8]:_k(t[8],e[8])),t[9]==null&&(t[9]=e[9]),t[0]=e[0],t[1]=s,t}var Ck="Expected a function",op=1,Ek=2,fc=8,pc=16,mc=32,ap=64,lp=Math.max;function _r(t,e,n,r,s,i,o,u){var l=e&Ek;if(!l&&typeof t!="function")throw new TypeError(Ck);var f=r?r.length:0;if(f||(e&=~(mc|ap),r=s=void 0),o=o===void 0?o:lp(Te(o),0),u=u===void 0?u:Te(u),f-=s?s.length:0,e&ap){var a=r,c=s;r=s=void 0}var h=l?void 0:$h(t),p=[t,e,n,r,s,a,c,i,o,u];if(h&&xk(p,h),t=p[0],e=p[1],n=p[2],r=p[3],s=p[4],u=p[9]=p[9]===void 0?l?0:t.length:lp(p[9]-f,0),!u&&e&(fc|pc)&&(e&=~(fc|pc)),!e||e==op)var m=SE(t,e,n);else e==fc||e==pc?m=vk(t,e,u):(e==mc||e==(op|mc))&&!s.length?m=bk(t,e,n,r):m=Al.apply(void 0,p);var g=h?Zg:rv;return sv(g(m,p),t,e)}var kk=128;function av(t,e,n){return e=n?void 0:e,e=t&&e==null?t.length:e,_r(t,kk,void 0,void 0,void 0,void 0,e)}function xr(t,e,n){e=="__proto__"&&_a?_a(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Pn(t,e){return t===e||t!==t&&e!==e}var $k=Object.prototype,Tk=$k.hasOwnProperty;function $o(t,e,n){var r=t[e];(!(Tk.call(t,e)&&Pn(r,n))||n===void 0&&!(e in t))&&xr(t,e,n)}function qn(t,e,n,r){var s=!n;n||(n={});for(var i=-1,o=e.length;++i<o;){var u=e[i],l=r?r(n[u],t[u],u,n,t):void 0;l===void 0&&(l=t[u]),s?xr(n,u,l):$o(n,u,l)}return n}var cp=Math.max;function lv(t,e,n){return e=cp(e===void 0?t.length-1:e,0),function(){for(var r=arguments,s=-1,i=cp(r.length-e,0),o=Array(i);++s<i;)o[s]=r[e+s];s=-1;for(var u=Array(e+1);++s<e;)u[s]=r[s];return u[e]=n(o),an(t,this,u)}}function Oe(t,e){return Ah(lv(t,e,Ft),t+"")}var Ak=9007199254740991;function Ol(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ak}function Jt(t){return t!=null&&Ol(t.length)&&!wr(t)}function Pt(t,e,n){if(!st(n))return!1;var r=typeof e;return(r=="number"?Jt(n)&&Sr(e,n.length):r=="string"&&e in n)?Pn(n[e],t):!1}function os(t){return Oe(function(e,n){var r=-1,s=n.length,i=s>1?n[s-1]:void 0,o=s>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(s--,i):void 0,o&&Pt(n[0],n[1],o)&&(i=s<3?void 0:i,s=1),e=Object(e);++r<s;){var u=n[r];u&&t(e,u,r,i)}return e})}var Ok=Object.prototype;function To(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Ok;return t===n}function Oh(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Lk="[object Arguments]";function up(t){return ut(t)&&Bt(t)==Lk}var cv=Object.prototype,Rk=cv.hasOwnProperty,Mk=cv.propertyIsEnumerable,Ik=up(function(){return arguments}())?up:function(t){return ut(t)&&Rk.call(t,"callee")&&!Mk.call(t,"callee")};const yi=Ik;function Lh(){return!1}var uv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hp=uv&&typeof module=="object"&&module&&!module.nodeType&&module,Nk=hp&&hp.exports===uv,dp=Nk?kt.Buffer:void 0,Dk=dp?dp.isBuffer:void 0,Pk=Dk||Lh;const zr=Pk;var Bk="[object Arguments]",Fk="[object Array]",Vk="[object Boolean]",Wk="[object Date]",Uk="[object Error]",Hk="[object Function]",jk="[object Map]",zk="[object Number]",Gk="[object Object]",Yk="[object RegExp]",Jk="[object Set]",Kk="[object String]",Xk="[object WeakMap]",qk="[object ArrayBuffer]",Zk="[object DataView]",Qk="[object Float32Array]",e$="[object Float64Array]",t$="[object Int8Array]",n$="[object Int16Array]",r$="[object Int32Array]",i$="[object Uint8Array]",s$="[object Uint8ClampedArray]",o$="[object Uint16Array]",a$="[object Uint32Array]",Qe={};Qe[Qk]=Qe[e$]=Qe[t$]=Qe[n$]=Qe[r$]=Qe[i$]=Qe[s$]=Qe[o$]=Qe[a$]=!0;Qe[Bk]=Qe[Fk]=Qe[qk]=Qe[Vk]=Qe[Zk]=Qe[Wk]=Qe[Uk]=Qe[Hk]=Qe[jk]=Qe[zk]=Qe[Gk]=Qe[Yk]=Qe[Jk]=Qe[Kk]=Qe[Xk]=!1;function l$(t){return ut(t)&&Ol(t.length)&&!!Qe[Bt(t)]}function ln(t){return function(e){return t(e)}}var hv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rs=hv&&typeof module=="object"&&module&&!module.nodeType&&module,c$=Rs&&Rs.exports===hv,gc=c$&&Yg.process,u$=function(){try{var t=Rs&&Rs.require&&Rs.require("util").types;return t||gc&&gc.binding&&gc.binding("util")}catch{}}();const Sn=u$;var fp=Sn&&Sn.isTypedArray,h$=fp?ln(fp):l$;const as=h$;var d$=Object.prototype,f$=d$.hasOwnProperty;function dv(t,e){var n=Ee(t),r=!n&&yi(t),s=!n&&!r&&zr(t),i=!n&&!r&&!s&&as(t),o=n||r||s||i,u=o?Oh(t.length,String):[],l=u.length;for(var f in t)(e||f$.call(t,f))&&!(o&&(f=="length"||s&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Sr(f,l)))&&u.push(f);return u}function fv(t,e){return function(n){return t(e(n))}}var p$=fv(Object.keys,Object);const m$=p$;var g$=Object.prototype,v$=g$.hasOwnProperty;function Rh(t){if(!To(t))return m$(t);var e=[];for(var n in Object(t))v$.call(t,n)&&n!="constructor"&&e.push(n);return e}function xt(t){return Jt(t)?dv(t):Rh(t)}var y$=Object.prototype,b$=y$.hasOwnProperty,w$=os(function(t,e){if(To(e)||Jt(e)){qn(e,xt(e),t);return}for(var n in e)b$.call(e,n)&&$o(t,n,e[n])});const S$=w$;function _$(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var x$=Object.prototype,C$=x$.hasOwnProperty;function E$(t){if(!st(t))return _$(t);var e=To(t),n=[];for(var r in t)r=="constructor"&&(e||!C$.call(t,r))||n.push(r);return n}function Kt(t){return Jt(t)?dv(t,!0):E$(t)}var k$=os(function(t,e){qn(e,Kt(e),t)});const pp=k$;var $$=os(function(t,e,n,r){qn(e,Kt(e),t,r)});const xa=$$;var T$=os(function(t,e,n,r){qn(e,xt(e),t,r)});const A$=T$;var O$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L$=/^\w*$/;function Mh(t,e){if(Ee(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||sn(t)?!0:L$.test(t)||!O$.test(t)||e!=null&&t in Object(e)}var R$=xi(Object,"create");const io=R$;function M$(){this.__data__=io?io(null):{},this.size=0}function I$(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var N$="__lodash_hash_undefined__",D$=Object.prototype,P$=D$.hasOwnProperty;function B$(t){var e=this.__data__;if(io){var n=e[t];return n===N$?void 0:n}return P$.call(e,t)?e[t]:void 0}var F$=Object.prototype,V$=F$.hasOwnProperty;function W$(t){var e=this.__data__;return io?e[t]!==void 0:V$.call(e,t)}var U$="__lodash_hash_undefined__";function H$(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=io&&e===void 0?U$:e,this}function bi(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}bi.prototype.clear=M$;bi.prototype.delete=I$;bi.prototype.get=B$;bi.prototype.has=W$;bi.prototype.set=H$;function j$(){this.__data__=[],this.size=0}function Ll(t,e){for(var n=t.length;n--;)if(Pn(t[n][0],e))return n;return-1}var z$=Array.prototype,G$=z$.splice;function Y$(t){var e=this.__data__,n=Ll(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():G$.call(e,n,1),--this.size,!0}function J$(t){var e=this.__data__,n=Ll(e,t);return n<0?void 0:e[n][1]}function K$(t){return Ll(this.__data__,t)>-1}function X$(t,e){var n=this.__data__,r=Ll(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Cr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Cr.prototype.clear=j$;Cr.prototype.delete=Y$;Cr.prototype.get=J$;Cr.prototype.has=K$;Cr.prototype.set=X$;var q$=xi(kt,"Map");const so=q$;function Z$(){this.size=0,this.__data__={hash:new bi,map:new(so||Cr),string:new bi}}function Q$(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Rl(t,e){var n=t.__data__;return Q$(e)?n[typeof e=="string"?"string":"hash"]:n.map}function eT(t){var e=Rl(this,t).delete(t);return this.size-=e?1:0,e}function tT(t){return Rl(this,t).get(t)}function nT(t){return Rl(this,t).has(t)}function rT(t,e){var n=Rl(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Er(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Er.prototype.clear=Z$;Er.prototype.delete=eT;Er.prototype.get=tT;Er.prototype.has=nT;Er.prototype.set=rT;var iT="Expected a function";function Ml(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(iT);var n=function(){var r=arguments,s=e?e.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=t.apply(this,r);return n.cache=i.set(s,o)||i,o};return n.cache=new(Ml.Cache||Er),n}Ml.Cache=Er;var sT=500;function oT(t){var e=Ml(t,function(r){return n.size===sT&&n.clear(),r}),n=e.cache;return e}var aT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lT=/\\(\\)?/g,cT=oT(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(aT,function(n,r,s,i){e.push(s?i.replace(lT,"$1"):r||n)}),e});const pv=cT;function je(t){return t==null?"":on(t)}function Kr(t,e){return Ee(t)?t:Mh(t,e)?[t]:pv(je(t))}var uT=1/0;function Zn(t){if(typeof t=="string"||sn(t))return t;var e=t+"";return e=="0"&&1/t==-uT?"-0":e}function Ci(t,e){e=Kr(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Zn(e[n++])];return n&&n==r?t:void 0}function Ih(t,e,n){var r=t==null?void 0:Ci(t,e);return r===void 0?n:r}function Nh(t,e){for(var n=-1,r=e.length,s=Array(r),i=t==null;++n<r;)s[n]=i?void 0:Ih(t,e[n]);return s}function Xr(t,e){for(var n=-1,r=e.length,s=t.length;++n<r;)t[s+n]=e[n];return t}var mp=Rt?Rt.isConcatSpreadable:void 0;function hT(t){return Ee(t)||yi(t)||!!(mp&&t&&t[mp])}function Tt(t,e,n,r,s){var i=-1,o=t.length;for(n||(n=hT),s||(s=[]);++i<o;){var u=t[i];e>0&&n(u)?e>1?Tt(u,e-1,n,r,s):Xr(s,u):r||(s[s.length]=u)}return s}function mv(t){var e=t==null?0:t.length;return e?Tt(t,1):[]}function kr(t){return Ah(lv(t,void 0,mv),t+"")}var dT=kr(Nh);const fT=dT;var pT=fv(Object.getPrototypeOf,Object);const Il=pT;var mT="[object Object]",gT=Function.prototype,vT=Object.prototype,gv=gT.toString,yT=vT.hasOwnProperty,bT=gv.call(Object);function Ao(t){if(!ut(t)||Bt(t)!=mT)return!1;var e=Il(t);if(e===null)return!0;var n=yT.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&gv.call(n)==bT}var wT="[object DOMException]",ST="[object Error]";function Dh(t){if(!ut(t))return!1;var e=Bt(t);return e==ST||e==wT||typeof t.message=="string"&&typeof t.name=="string"&&!Ao(t)}var _T=Oe(function(t,e){try{return an(t,void 0,e)}catch(n){return Dh(n)?n:new Error(n)}});const vv=_T;var xT="Expected a function";function yv(t,e){var n;if(typeof e!="function")throw new TypeError(xT);return t=Te(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var CT=1,ET=32,Ph=Oe(function(t,e,n){var r=CT;if(n.length){var s=jr(n,ss(Ph));r|=ET}return _r(t,r,e,n,s)});Ph.placeholder={};const bv=Ph;var kT=kr(function(t,e){return Cn(e,function(n){n=Zn(n),xr(t,n,bv(t[n],t))}),t});const $T=kT;var TT=1,AT=2,OT=32,Bh=Oe(function(t,e,n){var r=TT|AT;if(n.length){var s=jr(n,ss(Bh));r|=OT}return _r(e,r,t,n,s)});Bh.placeholder={};const LT=Bh;function _n(t,e,n){var r=-1,s=t.length;e<0&&(e=-e>s?0:s+e),n=n>s?s:n,n<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(s);++r<s;)i[r]=t[r+e];return i}function qr(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:_n(t,e,n)}var RT="\\ud800-\\udfff",MT="\\u0300-\\u036f",IT="\\ufe20-\\ufe2f",NT="\\u20d0-\\u20ff",DT=MT+IT+NT,PT="\\ufe0e\\ufe0f",BT="\\u200d",FT=RegExp("["+BT+RT+DT+PT+"]");function ls(t){return FT.test(t)}function VT(t){return t.split("")}var wv="\\ud800-\\udfff",WT="\\u0300-\\u036f",UT="\\ufe20-\\ufe2f",HT="\\u20d0-\\u20ff",jT=WT+UT+HT,zT="\\ufe0e\\ufe0f",GT="["+wv+"]",lu="["+jT+"]",cu="\\ud83c[\\udffb-\\udfff]",YT="(?:"+lu+"|"+cu+")",Sv="[^"+wv+"]",_v="(?:\\ud83c[\\udde6-\\uddff]){2}",xv="[\\ud800-\\udbff][\\udc00-\\udfff]",JT="\\u200d",Cv=YT+"?",Ev="["+zT+"]?",KT="(?:"+JT+"(?:"+[Sv,_v,xv].join("|")+")"+Ev+Cv+")*",XT=Ev+Cv+KT,qT="(?:"+[Sv+lu+"?",lu,_v,xv,GT].join("|")+")",ZT=RegExp(cu+"(?="+cu+")|"+qT+XT,"g");function QT(t){return t.match(ZT)||[]}function In(t){return ls(t)?QT(t):VT(t)}function kv(t){return function(e){e=je(e);var n=ls(e)?In(e):void 0,r=n?n[0]:e.charAt(0),s=n?qr(n,1).join(""):e.slice(1);return r[t]()+s}}var eA=kv("toUpperCase");const Fh=eA;function $v(t){return Fh(je(t).toLowerCase())}function Vh(t,e,n,r){var s=-1,i=t==null?0:t.length;for(r&&i&&(n=t[++s]);++s<i;)n=e(n,t[s],s,t);return n}function Wh(t){return function(e){return t==null?void 0:t[e]}}var tA={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},nA=Wh(tA);const rA=nA;var iA=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sA="\\u0300-\\u036f",oA="\\ufe20-\\ufe2f",aA="\\u20d0-\\u20ff",lA=sA+oA+aA,cA="["+lA+"]",uA=RegExp(cA,"g");function Tv(t){return t=je(t),t&&t.replace(iA,rA).replace(uA,"")}var hA=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function dA(t){return t.match(hA)||[]}var fA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function pA(t){return fA.test(t)}var Av="\\ud800-\\udfff",mA="\\u0300-\\u036f",gA="\\ufe20-\\ufe2f",vA="\\u20d0-\\u20ff",yA=mA+gA+vA,Ov="\\u2700-\\u27bf",Lv="a-z\\xdf-\\xf6\\xf8-\\xff",bA="\\xac\\xb1\\xd7\\xf7",wA="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",SA="\\u2000-\\u206f",_A=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rv="A-Z\\xc0-\\xd6\\xd8-\\xde",xA="\\ufe0e\\ufe0f",Mv=bA+wA+SA+_A,Iv="['\u2019]",gp="["+Mv+"]",CA="["+yA+"]",Nv="\\d+",EA="["+Ov+"]",Dv="["+Lv+"]",Pv="[^"+Av+Mv+Nv+Ov+Lv+Rv+"]",kA="\\ud83c[\\udffb-\\udfff]",$A="(?:"+CA+"|"+kA+")",TA="[^"+Av+"]",Bv="(?:\\ud83c[\\udde6-\\uddff]){2}",Fv="[\\ud800-\\udbff][\\udc00-\\udfff]",Mi="["+Rv+"]",AA="\\u200d",vp="(?:"+Dv+"|"+Pv+")",OA="(?:"+Mi+"|"+Pv+")",yp="(?:"+Iv+"(?:d|ll|m|re|s|t|ve))?",bp="(?:"+Iv+"(?:D|LL|M|RE|S|T|VE))?",Vv=$A+"?",Wv="["+xA+"]?",LA="(?:"+AA+"(?:"+[TA,Bv,Fv].join("|")+")"+Wv+Vv+")*",RA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",MA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",IA=Wv+Vv+LA,NA="(?:"+[EA,Bv,Fv].join("|")+")"+IA,DA=RegExp([Mi+"?"+Dv+"+"+yp+"(?="+[gp,Mi,"$"].join("|")+")",OA+"+"+bp+"(?="+[gp,Mi+vp,"$"].join("|")+")",Mi+"?"+vp+"+"+yp,Mi+"+"+bp,MA,RA,Nv,NA].join("|"),"g");function PA(t){return t.match(DA)||[]}function Uv(t,e,n){return t=je(t),e=n?void 0:e,e===void 0?pA(t)?PA(t):dA(t):t.match(e)||[]}var BA="['\u2019]",FA=RegExp(BA,"g");function cs(t){return function(e){return Vh(Uv(Tv(e).replace(FA,"")),t,"")}}var VA=cs(function(t,e,n){return e=e.toLowerCase(),t+(n?$v(e):e)});const WA=VA;function UA(){if(!arguments.length)return[];var t=arguments[0];return Ee(t)?t:[t]}var HA=kt.isFinite,jA=Math.min;function Uh(t){var e=Math[t];return function(n,r){if(n=gn(n),r=r==null?0:jA(Te(r),292),r&&HA(n)){var s=(je(n)+"e").split("e"),i=e(s[0]+"e"+(+s[1]+r));return s=(je(i)+"e").split("e"),+(s[0]+"e"+(+s[1]-r))}return e(n)}}var zA=Uh("ceil");const GA=zA;function Hv(t){var e=N(t);return e.__chain__=!0,e}var YA=Math.ceil,JA=Math.max;function KA(t,e,n){(n?Pt(t,e,n):e===void 0)?e=1:e=JA(Te(e),0);var r=t==null?0:t.length;if(!r||e<1)return[];for(var s=0,i=0,o=Array(YA(r/e));s<r;)o[i++]=_n(t,s,s+=e);return o}function Ei(t,e,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),e!==void 0&&(t=t>=e?t:e)),t}function XA(t,e,n){return n===void 0&&(n=e,e=void 0),n!==void 0&&(n=gn(n),n=n===n?n:0),e!==void 0&&(e=gn(e),e=e===e?e:0),Ei(gn(t),e,n)}function qA(){this.__data__=new Cr,this.size=0}function ZA(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function QA(t){return this.__data__.get(t)}function eO(t){return this.__data__.has(t)}var tO=200;function nO(t,e){var n=this.__data__;if(n instanceof Cr){var r=n.__data__;if(!so||r.length<tO-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Er(r)}return n.set(t,e),this.size=n.size,this}function Rn(t){var e=this.__data__=new Cr(t);this.size=e.size}Rn.prototype.clear=qA;Rn.prototype.delete=ZA;Rn.prototype.get=QA;Rn.prototype.has=eO;Rn.prototype.set=nO;function jv(t,e){return t&&qn(e,xt(e),t)}function rO(t,e){return t&&qn(e,Kt(e),t)}var zv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wp=zv&&typeof module=="object"&&module&&!module.nodeType&&module,iO=wp&&wp.exports===zv,Sp=iO?kt.Buffer:void 0,_p=Sp?Sp.allocUnsafe:void 0;function Gv(t,e){if(e)return t.slice();var n=t.length,r=_p?_p(n):new t.constructor(n);return t.copy(r),r}function Zr(t,e){for(var n=-1,r=t==null?0:t.length,s=0,i=[];++n<r;){var o=t[n];e(o,n,t)&&(i[s++]=o)}return i}function Hh(){return[]}var sO=Object.prototype,oO=sO.propertyIsEnumerable,xp=Object.getOwnPropertySymbols,aO=xp?function(t){return t==null?[]:(t=Object(t),Zr(xp(t),function(e){return oO.call(t,e)}))}:Hh;const jh=aO;function lO(t,e){return qn(t,jh(t),e)}var cO=Object.getOwnPropertySymbols,uO=cO?function(t){for(var e=[];t;)Xr(e,jh(t)),t=Il(t);return e}:Hh;const Yv=uO;function hO(t,e){return qn(t,Yv(t),e)}function Jv(t,e,n){var r=e(t);return Ee(t)?r:Xr(r,n(t))}function uu(t){return Jv(t,xt,jh)}function zh(t){return Jv(t,Kt,Yv)}var dO=xi(kt,"DataView");const hu=dO;var fO=xi(kt,"Promise");const du=fO;var pO=xi(kt,"Set");const Vi=pO;var Cp="[object Map]",mO="[object Object]",Ep="[object Promise]",kp="[object Set]",$p="[object WeakMap]",Tp="[object DataView]",gO=_i(hu),vO=_i(so),yO=_i(du),bO=_i(Vi),wO=_i(no),si=Bt;(hu&&si(new hu(new ArrayBuffer(1)))!=Tp||so&&si(new so)!=Cp||du&&si(du.resolve())!=Ep||Vi&&si(new Vi)!=kp||no&&si(new no)!=$p)&&(si=function(t){var e=Bt(t),n=e==mO?t.constructor:void 0,r=n?_i(n):"";if(r)switch(r){case gO:return Tp;case vO:return Cp;case yO:return Ep;case bO:return kp;case wO:return $p}return e});const Gn=si;var SO=Object.prototype,_O=SO.hasOwnProperty;function xO(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&_O.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var CO=kt.Uint8Array;const Ca=CO;function Gh(t){var e=new t.constructor(t.byteLength);return new Ca(e).set(new Ca(t)),e}function EO(t,e){var n=e?Gh(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var kO=/\w*$/;function $O(t){var e=new t.constructor(t.source,kO.exec(t));return e.lastIndex=t.lastIndex,e}var Ap=Rt?Rt.prototype:void 0,Op=Ap?Ap.valueOf:void 0;function TO(t){return Op?Object(Op.call(t)):{}}function Kv(t,e){var n=e?Gh(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var AO="[object Boolean]",OO="[object Date]",LO="[object Map]",RO="[object Number]",MO="[object RegExp]",IO="[object Set]",NO="[object String]",DO="[object Symbol]",PO="[object ArrayBuffer]",BO="[object DataView]",FO="[object Float32Array]",VO="[object Float64Array]",WO="[object Int8Array]",UO="[object Int16Array]",HO="[object Int32Array]",jO="[object Uint8Array]",zO="[object Uint8ClampedArray]",GO="[object Uint16Array]",YO="[object Uint32Array]";function JO(t,e,n){var r=t.constructor;switch(e){case PO:return Gh(t);case AO:case OO:return new r(+t);case BO:return EO(t,n);case FO:case VO:case WO:case UO:case HO:case jO:case zO:case GO:case YO:return Kv(t,n);case LO:return new r;case RO:case NO:return new r(t);case MO:return $O(t);case IO:return new r;case DO:return TO(t)}}function Xv(t){return typeof t.constructor=="function"&&!To(t)?rs(Il(t)):{}}var KO="[object Map]";function XO(t){return ut(t)&&Gn(t)==KO}var Lp=Sn&&Sn.isMap,qO=Lp?ln(Lp):XO;const qv=qO;var ZO="[object Set]";function QO(t){return ut(t)&&Gn(t)==ZO}var Rp=Sn&&Sn.isSet,eL=Rp?ln(Rp):QO;const Zv=eL;var tL=1,nL=2,rL=4,Qv="[object Arguments]",iL="[object Array]",sL="[object Boolean]",oL="[object Date]",aL="[object Error]",ey="[object Function]",lL="[object GeneratorFunction]",cL="[object Map]",uL="[object Number]",ty="[object Object]",hL="[object RegExp]",dL="[object Set]",fL="[object String]",pL="[object Symbol]",mL="[object WeakMap]",gL="[object ArrayBuffer]",vL="[object DataView]",yL="[object Float32Array]",bL="[object Float64Array]",wL="[object Int8Array]",SL="[object Int16Array]",_L="[object Int32Array]",xL="[object Uint8Array]",CL="[object Uint8ClampedArray]",EL="[object Uint16Array]",kL="[object Uint32Array]",Ze={};Ze[Qv]=Ze[iL]=Ze[gL]=Ze[vL]=Ze[sL]=Ze[oL]=Ze[yL]=Ze[bL]=Ze[wL]=Ze[SL]=Ze[_L]=Ze[cL]=Ze[uL]=Ze[ty]=Ze[hL]=Ze[dL]=Ze[fL]=Ze[pL]=Ze[xL]=Ze[CL]=Ze[EL]=Ze[kL]=!0;Ze[aL]=Ze[ey]=Ze[mL]=!1;function vn(t,e,n,r,s,i){var o,u=e&tL,l=e&nL,f=e&rL;if(n&&(o=s?n(t,r,s,i):n(t)),o!==void 0)return o;if(!st(t))return t;var a=Ee(t);if(a){if(o=xO(t),!u)return Yt(t,o)}else{var c=Gn(t),h=c==ey||c==lL;if(zr(t))return Gv(t,u);if(c==ty||c==Qv||h&&!s){if(o=l||h?{}:Xv(t),!u)return l?hO(t,rO(o,t)):lO(t,jv(o,t))}else{if(!Ze[c])return s?t:{};o=JO(t,c,u)}}i||(i=new Rn);var p=i.get(t);if(p)return p;i.set(t,o),Zv(t)?t.forEach(function(v){o.add(vn(v,e,n,v,t,i))}):qv(t)&&t.forEach(function(v,w){o.set(w,vn(v,e,n,w,t,i))});var m=f?l?zh:uu:l?Kt:xt,g=a?void 0:m(t);return Cn(g||t,function(v,w){g&&(w=v,v=t[w]),$o(o,w,vn(v,e,n,w,t,i))}),o}var $L=4;function TL(t){return vn(t,$L)}var AL=1,OL=4;function LL(t){return vn(t,AL|OL)}var RL=1,ML=4;function IL(t,e){return e=typeof e=="function"?e:void 0,vn(t,RL|ML,e)}var NL=4;function DL(t,e){return e=typeof e=="function"?e:void 0,vn(t,NL,e)}function PL(){return new wn(this.value(),this.__chain__)}function BL(t){for(var e=-1,n=t==null?0:t.length,r=0,s=[];++e<n;){var i=t[e];i&&(s[r++]=i)}return s}function FL(){var t=arguments.length;if(!t)return[];for(var e=Array(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Xr(Ee(n)?Yt(n):[n],Tt(e,1))}var VL="__lodash_hash_undefined__";function WL(t){return this.__data__.set(t,VL),this}function UL(t){return this.__data__.has(t)}function wi(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Er;++e<n;)this.add(t[e])}wi.prototype.add=wi.prototype.push=WL;wi.prototype.has=UL;function Yh(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function oo(t,e){return t.has(e)}var HL=1,jL=2;function ny(t,e,n,r,s,i){var o=n&HL,u=t.length,l=e.length;if(u!=l&&!(o&&l>u))return!1;var f=i.get(t),a=i.get(e);if(f&&a)return f==e&&a==t;var c=-1,h=!0,p=n&jL?new wi:void 0;for(i.set(t,e),i.set(e,t);++c<u;){var m=t[c],g=e[c];if(r)var v=o?r(g,m,c,e,t,i):r(m,g,c,t,e,i);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!Yh(e,function(w,_){if(!oo(p,_)&&(m===w||s(m,w,n,r,i)))return p.push(_)})){h=!1;break}}else if(!(m===g||s(m,g,n,r,i))){h=!1;break}}return i.delete(t),i.delete(e),h}function Jh(t){var e=-1,n=Array(t.size);return t.forEach(function(r,s){n[++e]=[s,r]}),n}function Nl(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var zL=1,GL=2,YL="[object Boolean]",JL="[object Date]",KL="[object Error]",XL="[object Map]",qL="[object Number]",ZL="[object RegExp]",QL="[object Set]",eR="[object String]",tR="[object Symbol]",nR="[object ArrayBuffer]",rR="[object DataView]",Mp=Rt?Rt.prototype:void 0,vc=Mp?Mp.valueOf:void 0;function iR(t,e,n,r,s,i,o){switch(n){case rR:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case nR:return!(t.byteLength!=e.byteLength||!i(new Ca(t),new Ca(e)));case YL:case JL:case qL:return Pn(+t,+e);case KL:return t.name==e.name&&t.message==e.message;case ZL:case eR:return t==e+"";case XL:var u=Jh;case QL:var l=r&zL;if(u||(u=Nl),t.size!=e.size&&!l)return!1;var f=o.get(t);if(f)return f==e;r|=GL,o.set(t,e);var a=ny(u(t),u(e),r,s,i,o);return o.delete(t),a;case tR:if(vc)return vc.call(t)==vc.call(e)}return!1}var sR=1,oR=Object.prototype,aR=oR.hasOwnProperty;function lR(t,e,n,r,s,i){var o=n&sR,u=uu(t),l=u.length,f=uu(e),a=f.length;if(l!=a&&!o)return!1;for(var c=l;c--;){var h=u[c];if(!(o?h in e:aR.call(e,h)))return!1}var p=i.get(t),m=i.get(e);if(p&&m)return p==e&&m==t;var g=!0;i.set(t,e),i.set(e,t);for(var v=o;++c<l;){h=u[c];var w=t[h],_=e[h];if(r)var $=o?r(_,w,h,e,t,i):r(w,_,h,t,e,i);if(!($===void 0?w===_||s(w,_,n,r,i):$)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var x=t.constructor,b=e.constructor;x!=b&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(t),i.delete(e),g}var cR=1,Ip="[object Arguments]",Np="[object Array]",Go="[object Object]",uR=Object.prototype,Dp=uR.hasOwnProperty;function hR(t,e,n,r,s,i){var o=Ee(t),u=Ee(e),l=o?Np:Gn(t),f=u?Np:Gn(e);l=l==Ip?Go:l,f=f==Ip?Go:f;var a=l==Go,c=f==Go,h=l==f;if(h&&zr(t)){if(!zr(e))return!1;o=!0,a=!1}if(h&&!a)return i||(i=new Rn),o||as(t)?ny(t,e,n,r,s,i):iR(t,e,l,n,r,s,i);if(!(n&cR)){var p=a&&Dp.call(t,"__wrapped__"),m=c&&Dp.call(e,"__wrapped__");if(p||m){var g=p?t.value():t,v=m?e.value():e;return i||(i=new Rn),s(g,v,n,r,i)}}return h?(i||(i=new Rn),lR(t,e,n,r,s,i)):!1}function Oo(t,e,n,r,s){return t===e?!0:t==null||e==null||!ut(t)&&!ut(e)?t!==t&&e!==e:hR(t,e,n,r,Oo,s)}var dR=1,fR=2;function Kh(t,e,n,r){var s=n.length,i=s,o=!r;if(t==null)return!i;for(t=Object(t);s--;){var u=n[s];if(o&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<i;){u=n[s];var l=u[0],f=t[l],a=u[1];if(o&&u[2]){if(f===void 0&&!(l in t))return!1}else{var c=new Rn;if(r)var h=r(f,a,l,t,e,c);if(!(h===void 0?Oo(a,f,dR|fR,r,c):h))return!1}}return!0}function ry(t){return t===t&&!st(t)}function Xh(t){for(var e=xt(t),n=e.length;n--;){var r=e[n],s=t[r];e[n]=[r,s,ry(s)]}return e}function iy(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function sy(t){var e=Xh(t);return e.length==1&&e[0][2]?iy(e[0][0],e[0][1]):function(n){return n===t||Kh(n,t,e)}}function pR(t,e){return t!=null&&e in Object(t)}function oy(t,e,n){e=Kr(e,t);for(var r=-1,s=e.length,i=!1;++r<s;){var o=Zn(e[r]);if(!(i=t!=null&&n(t,o)))break;t=t[o]}return i||++r!=s?i:(s=t==null?0:t.length,!!s&&Ol(s)&&Sr(o,s)&&(Ee(t)||yi(t)))}function qh(t,e){return t!=null&&oy(t,e,pR)}var mR=1,gR=2;function ay(t,e){return Mh(t)&&ry(e)?iy(Zn(t),e):function(n){var r=Ih(n,t);return r===void 0&&r===e?qh(n,t):Oo(e,r,mR|gR)}}function Zh(t){return function(e){return e==null?void 0:e[t]}}function vR(t){return function(e){return Ci(e,t)}}function ly(t){return Mh(t)?Zh(Zn(t)):vR(t)}function xe(t){return typeof t=="function"?t:t==null?Ft:typeof t=="object"?Ee(t)?ay(t[0],t[1]):sy(t):ly(t)}var yR="Expected a function";function bR(t){var e=t==null?0:t.length,n=xe;return t=e?it(t,function(r){if(typeof r[1]!="function")throw new TypeError(yR);return[n(r[0]),r[1]]}):[],Oe(function(r){for(var s=-1;++s<e;){var i=t[s];if(an(i[0],this,r))return an(i[1],this,r)}})}function cy(t,e,n){var r=n.length;if(t==null)return!r;for(t=Object(t);r--;){var s=n[r],i=e[s],o=t[s];if(o===void 0&&!(s in t)||!i(o))return!1}return!0}function wR(t){var e=xt(t);return function(n){return cy(n,t,e)}}var SR=1;function _R(t){return wR(vn(t,SR))}function xR(t,e){return e==null||cy(t,e,xt(e))}function CR(t,e,n,r){for(var s=-1,i=t==null?0:t.length;++s<i;){var o=t[s];e(r,o,n(o),t)}return r}function uy(t){return function(e,n,r){for(var s=-1,i=Object(e),o=r(e),u=o.length;u--;){var l=o[t?u:++s];if(n(i[l],l,i)===!1)break}return e}}var ER=uy();const Qh=ER;function Qn(t,e){return t&&Qh(t,e,xt)}function hy(t,e){return function(n,r){if(n==null)return n;if(!Jt(n))return t(n,r);for(var s=n.length,i=e?s:-1,o=Object(n);(e?i--:++i<s)&&r(o[i],i,o)!==!1;);return n}}var kR=hy(Qn);const Qr=kR;function $R(t,e,n,r){return Qr(t,function(s,i,o){e(r,s,n(s),o)}),r}function Dl(t,e){return function(n,r){var s=Ee(n)?CR:$R,i=e?e():{};return s(n,t,xe(r),i)}}var TR=Object.prototype,AR=TR.hasOwnProperty,OR=Dl(function(t,e,n){AR.call(t,n)?++t[n]:xr(t,n,1)});const LR=OR;function RR(t,e){var n=rs(t);return e==null?n:jv(n,e)}var MR=8;function ed(t,e,n){e=n?void 0:e;var r=_r(t,MR,void 0,void 0,void 0,void 0,void 0,e);return r.placeholder=ed.placeholder,r}ed.placeholder={};var IR=16;function td(t,e,n){e=n?void 0:e;var r=_r(t,IR,void 0,void 0,void 0,void 0,void 0,e);return r.placeholder=td.placeholder,r}td.placeholder={};var NR=function(){return kt.Date.now()};const ia=NR;var DR="Expected a function",PR=Math.max,BR=Math.min;function dy(t,e,n){var r,s,i,o,u,l,f=0,a=!1,c=!1,h=!0;if(typeof t!="function")throw new TypeError(DR);e=gn(e)||0,st(n)&&(a=!!n.leading,c="maxWait"in n,i=c?PR(gn(n.maxWait)||0,e):i,h="trailing"in n?!!n.trailing:h);function p(C){var T=r,k=s;return r=s=void 0,f=C,o=t.apply(k,T),o}function m(C){return f=C,u=setTimeout(w,e),a?p(C):o}function g(C){var T=C-l,k=C-f,S=e-T;return c?BR(S,i-k):S}function v(C){var T=C-l,k=C-f;return l===void 0||T>=e||T<0||c&&k>=i}function w(){var C=ia();if(v(C))return _(C);u=setTimeout(w,g(C))}function _(C){return u=void 0,h&&r?p(C):(r=s=void 0,o)}function $(){u!==void 0&&clearTimeout(u),f=0,r=l=s=u=void 0}function x(){return u===void 0?o:_(ia())}function b(){var C=ia(),T=v(C);if(r=arguments,s=this,l=C,T){if(u===void 0)return m(l);if(c)return clearTimeout(u),u=setTimeout(w,e),p(l)}return u===void 0&&(u=setTimeout(w,e)),o}return b.cancel=$,b.flush=x,b}function FR(t,e){return t==null||t!==t?e:t}var fy=Object.prototype,VR=fy.hasOwnProperty,WR=Oe(function(t,e){t=Object(t);var n=-1,r=e.length,s=r>2?e[2]:void 0;for(s&&Pt(e[0],e[1],s)&&(r=1);++n<r;)for(var i=e[n],o=Kt(i),u=-1,l=o.length;++u<l;){var f=o[u],a=t[f];(a===void 0||Pn(a,fy[f])&&!VR.call(t,f))&&(t[f]=i[f])}return t});const UR=WR;function fu(t,e,n){(n!==void 0&&!Pn(t[e],n)||n===void 0&&!(e in t))&&xr(t,e,n)}function pt(t){return ut(t)&&Jt(t)}function pu(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function py(t){return qn(t,Kt(t))}function HR(t,e,n,r,s,i,o){var u=pu(t,n),l=pu(e,n),f=o.get(l);if(f){fu(t,n,f);return}var a=i?i(u,l,n+"",t,e,o):void 0,c=a===void 0;if(c){var h=Ee(l),p=!h&&zr(l),m=!h&&!p&&as(l);a=l,h||p||m?Ee(u)?a=u:pt(u)?a=Yt(u):p?(c=!1,a=Gv(l,!0)):m?(c=!1,a=Kv(l,!0)):a=[]:Ao(l)||yi(l)?(a=u,yi(u)?a=py(u):(!st(u)||wr(u))&&(a=Xv(l))):c=!1}c&&(o.set(l,a),s(a,l,r,i,o),o.delete(l)),fu(t,n,a)}function Pl(t,e,n,r,s){t!==e&&Qh(e,function(i,o){if(s||(s=new Rn),st(i))HR(t,e,o,n,Pl,r,s);else{var u=r?r(pu(t,o),i,o+"",t,e,s):void 0;u===void 0&&(u=i),fu(t,o,u)}},Kt)}function my(t,e,n,r,s,i){return st(t)&&st(e)&&(i.set(e,t),Pl(t,e,void 0,my,i),i.delete(e)),t}var jR=os(function(t,e,n,r){Pl(t,e,n,r)});const gy=jR;var zR=Oe(function(t){return t.push(void 0,my),an(gy,void 0,t)});const GR=zR;var YR="Expected a function";function vy(t,e,n){if(typeof t!="function")throw new TypeError(YR);return setTimeout(function(){t.apply(void 0,n)},e)}var JR=Oe(function(t,e){return vy(t,1,e)});const KR=JR;var XR=Oe(function(t,e,n){return vy(t,gn(e)||0,n)});const qR=XR;function nd(t,e,n){for(var r=-1,s=t==null?0:t.length;++r<s;)if(n(e,t[r]))return!0;return!1}var ZR=200;function Lo(t,e,n,r){var s=-1,i=Tl,o=!0,u=t.length,l=[],f=e.length;if(!u)return l;n&&(e=it(e,ln(n))),r?(i=nd,o=!1):e.length>=ZR&&(i=oo,o=!1,e=new wi(e));e:for(;++s<u;){var a=t[s],c=n==null?a:n(a);if(a=r||a!==0?a:0,o&&c===c){for(var h=f;h--;)if(e[h]===c)continue e;l.push(a)}else i(e,c,r)||l.push(a)}return l}var QR=Oe(function(t,e){return pt(t)?Lo(t,Tt(e,1,pt,!0)):[]});const eM=QR;function cn(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var tM=Oe(function(t,e){var n=cn(e);return pt(n)&&(n=void 0),pt(t)?Lo(t,Tt(e,1,pt,!0),xe(n)):[]});const nM=tM;var rM=Oe(function(t,e){var n=cn(e);return pt(n)&&(n=void 0),pt(t)?Lo(t,Tt(e,1,pt,!0),void 0,n):[]});const iM=rM;var sM=El(function(t,e){return t/e},1);const oM=sM;function aM(t,e,n){var r=t==null?0:t.length;return r?(e=n||e===void 0?1:Te(e),_n(t,e<0?0:e,r)):[]}function lM(t,e,n){var r=t==null?0:t.length;return r?(e=n||e===void 0?1:Te(e),e=r-e,_n(t,0,e<0?0:e)):[]}function Bl(t,e,n,r){for(var s=t.length,i=r?s:-1;(r?i--:++i<s)&&e(t[i],i,t););return n?_n(t,r?0:i,r?i+1:s):_n(t,r?i+1:0,r?s:i)}function cM(t,e){return t&&t.length?Bl(t,xe(e),!0,!0):[]}function uM(t,e){return t&&t.length?Bl(t,xe(e),!0):[]}function er(t){return typeof t=="function"?t:Ft}function Pp(t,e){var n=Ee(t)?Cn:Qr;return n(t,er(e))}function hM(t,e){for(var n=t==null?0:t.length;n--&&e(t[n],n,t)!==!1;);return t}var dM=uy(!0);const yy=dM;function rd(t,e){return t&&yy(t,e,xt)}var fM=hy(rd,!0);const by=fM;function Bp(t,e){var n=Ee(t)?hM:by;return n(t,er(e))}function pM(t,e,n){t=je(t),e=on(e);var r=t.length;n=n===void 0?r:Ei(Te(n),0,r);var s=n;return n-=e.length,n>=0&&t.slice(n,s)==e}function mM(t,e){return it(e,function(n){return[n,t[n]]})}function gM(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=[r,r]}),n}var vM="[object Map]",yM="[object Set]";function wy(t){return function(e){var n=Gn(e);return n==vM?Jh(e):n==yM?gM(e):mM(e,t(e))}}var bM=wy(xt);const Fp=bM;var wM=wy(Kt);const Vp=wM;var SM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_M=Wh(SM);const xM=_M;var Sy=/[&<>"']/g,CM=RegExp(Sy.source);function _y(t){return t=je(t),t&&CM.test(t)?t.replace(Sy,xM):t}var xy=/[\\^$.*+?()[\]{}|]/g,EM=RegExp(xy.source);function kM(t){return t=je(t),t&&EM.test(t)?t.replace(xy,"\\$&"):t}function Cy(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function $M(t,e){var n=!0;return Qr(t,function(r,s,i){return n=!!e(r,s,i),n}),n}function TM(t,e,n){var r=Ee(t)?Cy:$M;return n&&Pt(t,e,n)&&(e=void 0),r(t,xe(e))}var AM=4294967295;function Ey(t){return t?Ei(Te(t),0,AM):0}function OM(t,e,n,r){var s=t.length;for(n=Te(n),n<0&&(n=-n>s?0:s+n),r=r===void 0||r>s?s:Te(r),r<0&&(r+=s),r=n>r?0:Ey(r);n<r;)t[n++]=e;return t}function LM(t,e,n,r){var s=t==null?0:t.length;return s?(n&&typeof n!="number"&&Pt(t,e,n)&&(n=0,r=s),OM(t,e,n,r)):[]}function ky(t,e){var n=[];return Qr(t,function(r,s,i){e(r,s,i)&&n.push(r)}),n}function RM(t,e){var n=Ee(t)?Zr:ky;return n(t,xe(e))}function $y(t){return function(e,n,r){var s=Object(e);if(!Jt(e)){var i=xe(n);e=xt(e),n=function(u){return i(s[u],u,s)}}var o=t(e,n,r);return o>-1?s[i?e[o]:o]:void 0}}var MM=Math.max;function Ty(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var s=n==null?0:Te(n);return s<0&&(s=MM(r+s,0)),$l(t,xe(e),s)}var IM=$y(Ty);const NM=IM;function Ay(t,e,n){var r;return n(t,function(s,i,o){if(e(s,i,o))return r=i,!1}),r}function DM(t,e){return Ay(t,xe(e),Qn)}var PM=Math.max,BM=Math.min;function Oy(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var s=r-1;return n!==void 0&&(s=Te(n),s=n<0?PM(r+s,0):BM(s,r-1)),$l(t,xe(e),s,!0)}var FM=$y(Oy);const VM=FM;function WM(t,e){return Ay(t,xe(e),rd)}function Wp(t){return t&&t.length?t[0]:void 0}function Ly(t,e){var n=-1,r=Jt(t)?Array(t.length):[];return Qr(t,function(s,i,o){r[++n]=e(s,i,o)}),r}function Fl(t,e){var n=Ee(t)?it:Ly;return n(t,xe(e))}function UM(t,e){return Tt(Fl(t,e),1)}var HM=1/0;function jM(t,e){return Tt(Fl(t,e),HM)}function zM(t,e,n){return n=n===void 0?1:Te(n),Tt(Fl(t,e),n)}var GM=1/0;function YM(t){var e=t==null?0:t.length;return e?Tt(t,GM):[]}function JM(t,e){var n=t==null?0:t.length;return n?(e=e===void 0?1:Te(e),Tt(t,e)):[]}var KM=512;function XM(t){return _r(t,KM)}var qM=Uh("floor");const ZM=qM;var QM="Expected a function",eI=8,tI=32,nI=128,rI=256;function Ry(t){return kr(function(e){var n=e.length,r=n,s=wn.prototype.thru;for(t&&e.reverse();r--;){var i=e[r];if(typeof i!="function")throw new TypeError(QM);if(s&&!o&&ra(i)=="wrapper")var o=new wn([],!0)}for(r=o?r:n;++r<n;){i=e[r];var u=ra(i),l=u=="wrapper"?$h(i):void 0;l&&au(l[0])&&l[1]==(nI|eI|tI|rI)&&!l[4].length&&l[9]==1?o=o[ra(l[0])].apply(o,l[3]):o=i.length==1&&au(i)?o[u]():o.thru(i)}return function(){var f=arguments,a=f[0];if(o&&f.length==1&&Ee(a))return o.plant(a).value();for(var c=0,h=n?e[c].apply(this,f):a;++c<n;)h=e[c].call(this,h);return h}})}var iI=Ry();const sI=iI;var oI=Ry(!0);const aI=oI;function lI(t,e){return t==null?t:Qh(t,er(e),Kt)}function cI(t,e){return t==null?t:yy(t,er(e),Kt)}function uI(t,e){return t&&Qn(t,er(e))}function hI(t,e){return t&&rd(t,er(e))}function dI(t){for(var e=-1,n=t==null?0:t.length,r={};++e<n;){var s=t[e];r[s[0]]=s[1]}return r}function Vl(t,e){return Zr(e,function(n){return wr(t[n])})}function fI(t){return t==null?[]:Vl(t,xt(t))}function pI(t){return t==null?[]:Vl(t,Kt(t))}var mI=Object.prototype,gI=mI.hasOwnProperty,vI=Dl(function(t,e,n){gI.call(t,n)?t[n].push(e):xr(t,n,[e])});const yI=vI;function id(t,e){return t>e}function Wl(t){return function(e,n){return typeof e=="string"&&typeof n=="string"||(e=gn(e),n=gn(n)),t(e,n)}}var bI=Wl(id);const wI=bI;var SI=Wl(function(t,e){return t>=e});const _I=SI;var xI=Object.prototype,CI=xI.hasOwnProperty;function EI(t,e){return t!=null&&CI.call(t,e)}function kI(t,e){return t!=null&&oy(t,e,EI)}var $I=Math.max,TI=Math.min;function AI(t,e,n){return t>=TI(e,n)&&t<$I(e,n)}function OI(t,e,n){return e=pr(e),n===void 0?(n=e,e=0):n=pr(n),t=gn(t),AI(t,e,n)}var LI="[object String]";function Ul(t){return typeof t=="string"||!Ee(t)&&ut(t)&&Bt(t)==LI}function sd(t,e){return it(e,function(n){return t[n]})}function us(t){return t==null?[]:sd(t,xt(t))}var RI=Math.max;function MI(t,e,n,r){t=Jt(t)?t:us(t),n=n&&!r?Te(n):0;var s=t.length;return n<0&&(n=RI(s+n,0)),Ul(t)?n<=s&&t.indexOf(e,n)>-1:!!s&&is(t,e,n)>-1}var II=Math.max;function NI(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var s=n==null?0:Te(n);return s<0&&(s=II(r+s,0)),is(t,e,s)}function DI(t){var e=t==null?0:t.length;return e?_n(t,0,-1):[]}var PI=Math.min;function od(t,e,n){for(var r=n?nd:Tl,s=t[0].length,i=t.length,o=i,u=Array(i),l=1/0,f=[];o--;){var a=t[o];o&&e&&(a=it(a,ln(e))),l=PI(a.length,l),u[o]=!n&&(e||s>=120&&a.length>=120)?new wi(o&&a):void 0}a=t[0];var c=-1,h=u[0];e:for(;++c<s&&f.length<l;){var p=a[c],m=e?e(p):p;if(p=n||p!==0?p:0,!(h?oo(h,m):r(f,m,n))){for(o=i;--o;){var g=u[o];if(!(g?oo(g,m):r(t[o],m,n)))continue e}h&&h.push(m),f.push(p)}}return f}function ad(t){return pt(t)?t:[]}var BI=Oe(function(t){var e=it(t,ad);return e.length&&e[0]===t[0]?od(e):[]});const FI=BI;var VI=Oe(function(t){var e=cn(t),n=it(t,ad);return e===cn(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?od(n,xe(e)):[]});const WI=VI;var UI=Oe(function(t){var e=cn(t),n=it(t,ad);return e=typeof e=="function"?e:void 0,e&&n.pop(),n.length&&n[0]===t[0]?od(n,void 0,e):[]});const HI=UI;function jI(t,e,n,r){return Qn(t,function(s,i,o){e(r,n(s),i,o)}),r}function My(t,e){return function(n,r){return jI(n,t,e(r),{})}}var zI=Object.prototype,GI=zI.toString,YI=My(function(t,e,n){e!=null&&typeof e.toString!="function"&&(e=GI.call(e)),t[e]=n},Th(Ft));const JI=YI;var Iy=Object.prototype,KI=Iy.hasOwnProperty,XI=Iy.toString,qI=My(function(t,e,n){e!=null&&typeof e.toString!="function"&&(e=XI.call(e)),KI.call(t,e)?t[e].push(n):t[e]=[n]},xe);const ZI=qI;function Ny(t,e){return e.length<2?t:Ci(t,_n(e,0,-1))}function Ro(t,e,n){e=Kr(e,t),t=Ny(t,e);var r=t==null?t:t[Zn(cn(e))];return r==null?void 0:an(r,t,n)}var QI=Oe(Ro);const eN=QI;var tN=Oe(function(t,e,n){var r=-1,s=typeof e=="function",i=Jt(t)?Array(t.length):[];return Qr(t,function(o){i[++r]=s?an(e,o,n):Ro(o,e,n)}),i});const nN=tN;var rN="[object ArrayBuffer]";function iN(t){return ut(t)&&Bt(t)==rN}var Up=Sn&&Sn.isArrayBuffer,sN=Up?ln(Up):iN;const oN=sN;var aN="[object Boolean]";function lN(t){return t===!0||t===!1||ut(t)&&Bt(t)==aN}var cN="[object Date]";function uN(t){return ut(t)&&Bt(t)==cN}var Hp=Sn&&Sn.isDate,hN=Hp?ln(Hp):uN;const dN=hN;function fN(t){return ut(t)&&t.nodeType===1&&!Ao(t)}var pN="[object Map]",mN="[object Set]",gN=Object.prototype,vN=gN.hasOwnProperty;function yN(t){if(t==null)return!0;if(Jt(t)&&(Ee(t)||typeof t=="string"||typeof t.splice=="function"||zr(t)||as(t)||yi(t)))return!t.length;var e=Gn(t);if(e==pN||e==mN)return!t.size;if(To(t))return!Rh(t).length;for(var n in t)if(vN.call(t,n))return!1;return!0}function Dy(t,e){return Oo(t,e)}function bN(t,e,n){n=typeof n=="function"?n:void 0;var r=n?n(t,e):void 0;return r===void 0?Oo(t,e,void 0,n):!!r}var wN=kt.isFinite;function SN(t){return typeof t=="number"&&wN(t)}function Py(t){return typeof t=="number"&&t==Te(t)}function _N(t,e){return t===e||Kh(t,e,Xh(e))}function xN(t,e,n){return n=typeof n=="function"?n:void 0,Kh(t,e,Xh(e),n)}var CN="[object Number]";function By(t){return typeof t=="number"||ut(t)&&Bt(t)==CN}function EN(t){return By(t)&&t!=+t}var kN=na?wr:Lh;const $N=kN;var TN="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function AN(t){if($N(t))throw new Error(TN);return qg(t)}function ON(t){return t==null}function LN(t){return t===null}var RN="[object RegExp]";function MN(t){return ut(t)&&Bt(t)==RN}var jp=Sn&&Sn.isRegExp,IN=jp?ln(jp):MN;const ld=IN;var zp=9007199254740991;function NN(t){return Py(t)&&t>=-zp&&t<=zp}function DN(t){return t===void 0}var PN="[object WeakMap]";function BN(t){return ut(t)&&Gn(t)==PN}var FN="[object WeakSet]";function VN(t){return ut(t)&&Bt(t)==FN}var WN=1;function UN(t){return xe(typeof t=="function"?t:vn(t,WN))}var HN=Array.prototype,jN=HN.join;function zN(t,e){return t==null?"":jN.call(t,e)}var GN=cs(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});const YN=GN;var JN=Dl(function(t,e,n){xr(t,n,e)});const KN=JN;function XN(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}var qN=Math.max,ZN=Math.min;function QN(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var s=r;return n!==void 0&&(s=Te(n),s=s<0?qN(r+s,0):ZN(s,r-1)),e===e?XN(t,e,s):$l(t,iv,s,!0)}var eD=cs(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()});const tD=eD;var nD=kv("toLowerCase");const rD=nD;function cd(t,e){return t<e}var iD=Wl(cd);const sD=iD;var oD=Wl(function(t,e){return t<=e});const aD=oD;function lD(t,e){var n={};return e=xe(e),Qn(t,function(r,s,i){xr(n,e(r,s,i),r)}),n}function cD(t,e){var n={};return e=xe(e),Qn(t,function(r,s,i){xr(n,s,e(r,s,i))}),n}var uD=1;function hD(t){return sy(vn(t,uD))}var dD=1;function fD(t,e){return ay(t,vn(e,dD))}function Hl(t,e,n){for(var r=-1,s=t.length;++r<s;){var i=t[r],o=e(i);if(o!=null&&(u===void 0?o===o&&!sn(o):n(o,u)))var u=o,l=i}return l}function pD(t){return t&&t.length?Hl(t,Ft,id):void 0}function mD(t,e){return t&&t.length?Hl(t,xe(e),id):void 0}function ud(t,e){for(var n,r=-1,s=t.length;++r<s;){var i=e(t[r]);i!==void 0&&(n=n===void 0?i:n+i)}return n}var gD=0/0;function Fy(t,e){var n=t==null?0:t.length;return n?ud(t,e)/n:gD}function vD(t){return Fy(t,Ft)}function yD(t,e){return Fy(t,xe(e))}var bD=os(function(t,e,n){Pl(t,e,n)});const wD=bD;var SD=Oe(function(t,e){return function(n){return Ro(n,t,e)}});const _D=SD;var xD=Oe(function(t,e){return function(n){return Ro(t,n,e)}});const CD=xD;function ED(t){return t&&t.length?Hl(t,Ft,cd):void 0}function kD(t,e){return t&&t.length?Hl(t,xe(e),cd):void 0}function Vy(t,e,n){var r=xt(e),s=Vl(e,r),i=!(st(n)&&"chain"in n)||!!n.chain,o=wr(t);return Cn(s,function(u){var l=e[u];t[u]=l,o&&(t.prototype[u]=function(){var f=this.__chain__;if(i||f){var a=t(this.__wrapped__),c=a.__actions__=Yt(this.__actions__);return c.push({func:l,args:arguments,thisArg:t}),a.__chain__=f,a}return l.apply(t,Xr([this.value()],arguments))})}),t}var $D=El(function(t,e){return t*e},1);const TD=$D;var AD="Expected a function";function Mo(t){if(typeof t!="function")throw new TypeError(AD);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function OD(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}var LD="[object Map]",RD="[object Set]",yc=Rt?Rt.iterator:void 0;function Wy(t){if(!t)return[];if(Jt(t))return Ul(t)?In(t):Yt(t);if(yc&&t[yc])return OD(t[yc]());var e=Gn(t),n=e==LD?Jh:e==RD?Nl:us;return n(t)}function MD(){this.__values__===void 0&&(this.__values__=Wy(this.value()));var t=this.__index__>=this.__values__.length,e=t?void 0:this.__values__[this.__index__++];return{done:t,value:e}}function Uy(t,e){var n=t.length;if(!!n)return e+=e<0?n:0,Sr(e,n)?t[e]:void 0}function ID(t,e){return t&&t.length?Uy(t,Te(e)):void 0}function ND(t){return t=Te(t),Oe(function(e){return Uy(e,t)})}function hd(t,e){return e=Kr(e,t),t=Ny(t,e),t==null||delete t[Zn(cn(e))]}function DD(t){return Ao(t)?void 0:t}var PD=1,BD=2,FD=4,VD=kr(function(t,e){var n={};if(t==null)return n;var r=!1;e=it(e,function(i){return i=Kr(i,t),r||(r=i.length>1),i}),qn(t,zh(t),n),r&&(n=vn(n,PD|BD|FD,DD));for(var s=e.length;s--;)hd(n,e[s]);return n});const WD=VD;function Io(t,e,n,r){if(!st(t))return t;e=Kr(e,t);for(var s=-1,i=e.length,o=i-1,u=t;u!=null&&++s<i;){var l=Zn(e[s]),f=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(s!=o){var a=u[l];f=r?r(a,l,u):void 0,f===void 0&&(f=st(a)?a:Sr(e[s+1])?[]:{})}$o(u,l,f),u=u[l]}return t}function Hy(t,e,n){for(var r=-1,s=e.length,i={};++r<s;){var o=e[r],u=Ci(t,o);n(u,o)&&Io(i,Kr(o,t),u)}return i}function jy(t,e){if(t==null)return{};var n=it(zh(t),function(r){return[r]});return e=xe(e),Hy(t,n,function(r,s){return e(r,s[0])})}function UD(t,e){return jy(t,Mo(xe(e)))}function HD(t){return yv(2,t)}function jD(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function zy(t,e){if(t!==e){var n=t!==void 0,r=t===null,s=t===t,i=sn(t),o=e!==void 0,u=e===null,l=e===e,f=sn(e);if(!u&&!f&&!i&&t>e||i&&o&&l&&!u&&!f||r&&o&&l||!n&&l||!s)return 1;if(!r&&!i&&!f&&t<e||f&&n&&s&&!r&&!i||u&&n&&s||!o&&s||!l)return-1}return 0}function zD(t,e,n){for(var r=-1,s=t.criteria,i=e.criteria,o=s.length,u=n.length;++r<o;){var l=zy(s[r],i[r]);if(l){if(r>=u)return l;var f=n[r];return l*(f=="desc"?-1:1)}}return t.index-e.index}function Gy(t,e,n){e.length?e=it(e,function(i){return Ee(i)?function(o){return Ci(o,i.length===1?i[0]:i)}:i}):e=[Ft];var r=-1;e=it(e,ln(xe));var s=Ly(t,function(i,o,u){var l=it(e,function(f){return f(i)});return{criteria:l,index:++r,value:i}});return jD(s,function(i,o){return zD(i,o,n)})}function GD(t,e,n,r){return t==null?[]:(Ee(e)||(e=e==null?[]:[e]),n=r?void 0:n,Ee(n)||(n=n==null?[]:[n]),Gy(t,e,n))}function dd(t){return kr(function(e){return e=it(e,ln(xe)),Oe(function(n){var r=this;return t(e,function(s){return an(s,r,n)})})})}var YD=dd(it);const JD=YD;var KD=Oe;const XD=KD;var qD=Math.min,ZD=XD(function(t,e){e=e.length==1&&Ee(e[0])?it(e[0],ln(xe)):it(Tt(e,1),ln(xe));var n=e.length;return Oe(function(r){for(var s=-1,i=qD(r.length,n);++s<i;)r[s]=e[s].call(this,r[s]);return an(t,this,r)})});const QD=ZD;var eP=dd(Cy);const tP=eP;var nP=dd(Yh);const rP=nP;var iP=9007199254740991,sP=Math.floor;function mu(t,e){var n="";if(!t||e<1||e>iP)return n;do e%2&&(n+=t),e=sP(e/2),e&&(t+=t);while(e);return n}var oP=Zh("length");const aP=oP;var Yy="\\ud800-\\udfff",lP="\\u0300-\\u036f",cP="\\ufe20-\\ufe2f",uP="\\u20d0-\\u20ff",hP=lP+cP+uP,dP="\\ufe0e\\ufe0f",fP="["+Yy+"]",gu="["+hP+"]",vu="\\ud83c[\\udffb-\\udfff]",pP="(?:"+gu+"|"+vu+")",Jy="[^"+Yy+"]",Ky="(?:\\ud83c[\\udde6-\\uddff]){2}",Xy="[\\ud800-\\udbff][\\udc00-\\udfff]",mP="\\u200d",qy=pP+"?",Zy="["+dP+"]?",gP="(?:"+mP+"(?:"+[Jy,Ky,Xy].join("|")+")"+Zy+qy+")*",vP=Zy+qy+gP,yP="(?:"+[Jy+gu+"?",gu,Ky,Xy,fP].join("|")+")",Gp=RegExp(vu+"(?="+vu+")|"+yP+vP,"g");function bP(t){for(var e=Gp.lastIndex=0;Gp.test(t);)++e;return e}function hs(t){return ls(t)?bP(t):aP(t)}var wP=Math.ceil;function Ea(t,e){e=e===void 0?" ":on(e);var n=e.length;if(n<2)return n?mu(e,t):e;var r=mu(e,wP(t/hs(e)));return ls(e)?qr(In(r),0,t).join(""):r.slice(0,t)}var SP=Math.ceil,_P=Math.floor;function xP(t,e,n){t=je(t),e=Te(e);var r=e?hs(t):0;if(!e||r>=e)return t;var s=(e-r)/2;return Ea(_P(s),n)+t+Ea(SP(s),n)}function CP(t,e,n){t=je(t),e=Te(e);var r=e?hs(t):0;return e&&r<e?t+Ea(e-r,n):t}function EP(t,e,n){t=je(t),e=Te(e);var r=e?hs(t):0;return e&&r<e?Ea(e-r,n)+t:t}var kP=/^\s+/,$P=kt.parseInt;function TP(t,e,n){return n||e==null?e=0:e&&(e=+e),$P(je(t).replace(kP,""),e||0)}var AP=32,fd=Oe(function(t,e){var n=jr(e,ss(fd));return _r(t,AP,void 0,e,n)});fd.placeholder={};const Qy=fd;var OP=64,pd=Oe(function(t,e){var n=jr(e,ss(pd));return _r(t,OP,void 0,e,n)});pd.placeholder={};const LP=pd;var RP=Dl(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});const MP=RP;function IP(t,e){return Hy(t,e,function(n,r){return qh(t,r)})}var NP=kr(function(t,e){return t==null?{}:IP(t,e)});const DP=NP;function PP(t){for(var e,n=this;n instanceof kl;){var r=tv(n);r.__index__=0,r.__values__=void 0,e?s.__wrapped__=r:e=r;var s=r;n=n.__wrapped__}return s.__wrapped__=t,e}function BP(t){return function(e){return t==null?void 0:Ci(t,e)}}function FP(t,e,n,r){for(var s=n-1,i=t.length;++s<i;)if(r(t[s],e))return s;return-1}var VP=Array.prototype,Yp=VP.splice;function md(t,e,n,r){var s=r?FP:is,i=-1,o=e.length,u=t;for(t===e&&(e=Yt(e)),n&&(u=it(t,ln(n)));++i<o;)for(var l=0,f=e[i],a=n?n(f):f;(l=s(u,a,l,r))>-1;)u!==t&&Yp.call(u,l,1),Yp.call(t,l,1);return t}function eb(t,e){return t&&t.length&&e&&e.length?md(t,e):t}var WP=Oe(eb);const UP=WP;function HP(t,e,n){return t&&t.length&&e&&e.length?md(t,e,xe(n)):t}function jP(t,e,n){return t&&t.length&&e&&e.length?md(t,e,void 0,n):t}var zP=Array.prototype,GP=zP.splice;function tb(t,e){for(var n=t?e.length:0,r=n-1;n--;){var s=e[n];if(n==r||s!==i){var i=s;Sr(s)?GP.call(t,s,1):hd(t,s)}}return t}var YP=kr(function(t,e){var n=t==null?0:t.length,r=Nh(t,e);return tb(t,it(e,function(s){return Sr(s,n)?+s:s}).sort(zy)),r});const JP=YP;var KP=Math.floor,XP=Math.random;function gd(t,e){return t+KP(XP()*(e-t+1))}var qP=parseFloat,ZP=Math.min,QP=Math.random;function eB(t,e,n){if(n&&typeof n!="boolean"&&Pt(t,e,n)&&(e=n=void 0),n===void 0&&(typeof e=="boolean"?(n=e,e=void 0):typeof t=="boolean"&&(n=t,t=void 0)),t===void 0&&e===void 0?(t=0,e=1):(t=pr(t),e===void 0?(e=t,t=0):e=pr(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var s=QP();return ZP(t+s*(e-t+qP("1e-"+((s+"").length-1))),e)}return gd(t,e)}var tB=Math.ceil,nB=Math.max;function rB(t,e,n,r){for(var s=-1,i=nB(tB((e-t)/(n||1)),0),o=Array(i);i--;)o[r?i:++s]=t,t+=n;return o}function nb(t){return function(e,n,r){return r&&typeof r!="number"&&Pt(e,n,r)&&(n=r=void 0),e=pr(e),n===void 0?(n=e,e=0):n=pr(n),r=r===void 0?e<n?1:-1:pr(r),rB(e,n,r,t)}}var iB=nb();const sB=iB;var oB=nb(!0);const aB=oB;var lB=256,cB=kr(function(t,e){return _r(t,lB,void 0,void 0,void 0,e)});const uB=cB;function rb(t,e,n,r,s){return s(t,function(i,o,u){n=r?(r=!1,i):e(n,i,o,u)}),n}function hB(t,e,n){var r=Ee(t)?Vh:rb,s=arguments.length<3;return r(t,xe(e),n,s,Qr)}function dB(t,e,n,r){var s=t==null?0:t.length;for(r&&s&&(n=t[--s]);s--;)n=e(n,t[s],s,t);return n}function fB(t,e,n){var r=Ee(t)?dB:rb,s=arguments.length<3;return r(t,xe(e),n,s,by)}function pB(t,e){var n=Ee(t)?Zr:ky;return n(t,Mo(xe(e)))}function mB(t,e){var n=[];if(!(t&&t.length))return n;var r=-1,s=[],i=t.length;for(e=xe(e);++r<i;){var o=t[r];e(o,r,t)&&(n.push(o),s.push(r))}return tb(t,s),n}function gB(t,e,n){return(n?Pt(t,e,n):e===void 0)?e=1:e=Te(e),mu(je(t),e)}function vB(){var t=arguments,e=je(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var yB="Expected a function";function bB(t,e){if(typeof t!="function")throw new TypeError(yB);return e=e===void 0?e:Te(e),Oe(t,e)}function wB(t,e,n){e=Kr(e,t);var r=-1,s=e.length;for(s||(s=1,t=void 0);++r<s;){var i=t==null?void 0:t[Zn(e[r])];i===void 0&&(r=s,i=n),t=wr(i)?i.call(t):i}return t}var SB=Array.prototype,_B=SB.reverse;function yu(t){return t==null?t:_B.call(t)}var xB=Uh("round");const CB=xB;function ib(t){var e=t.length;return e?t[gd(0,e-1)]:void 0}function EB(t){return ib(us(t))}function kB(t){var e=Ee(t)?ib:EB;return e(t)}function jl(t,e){var n=-1,r=t.length,s=r-1;for(e=e===void 0?r:e;++n<e;){var i=gd(n,s),o=t[i];t[i]=t[n],t[n]=o}return t.length=e,t}function $B(t,e){return jl(Yt(t),Ei(e,0,t.length))}function TB(t,e){var n=us(t);return jl(n,Ei(e,0,n.length))}function AB(t,e,n){(n?Pt(t,e,n):e===void 0)?e=1:e=Te(e);var r=Ee(t)?$B:TB;return r(t,e)}function OB(t,e,n){return t==null?t:Io(t,e,n)}function LB(t,e,n,r){return r=typeof r=="function"?r:void 0,t==null?t:Io(t,e,n,r)}function RB(t){return jl(Yt(t))}function MB(t){return jl(us(t))}function IB(t){var e=Ee(t)?RB:MB;return e(t)}var NB="[object Map]",DB="[object Set]";function PB(t){if(t==null)return 0;if(Jt(t))return Ul(t)?hs(t):t.length;var e=Gn(t);return e==NB||e==DB?t.size:Rh(t).length}function BB(t,e,n){var r=t==null?0:t.length;return r?(n&&typeof n!="number"&&Pt(t,e,n)?(e=0,n=r):(e=e==null?0:Te(e),n=n===void 0?r:Te(n)),_n(t,e,n)):[]}var FB=cs(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});const VB=FB;function WB(t,e){var n;return Qr(t,function(r,s,i){return n=e(r,s,i),!n}),!!n}function UB(t,e,n){var r=Ee(t)?Yh:WB;return n&&Pt(t,e,n)&&(e=void 0),r(t,xe(e))}var HB=Oe(function(t,e){if(t==null)return[];var n=e.length;return n>1&&Pt(t,e[0],e[1])?e=[]:n>2&&Pt(e[0],e[1],e[2])&&(e=[e[0]]),Gy(t,Tt(e,1),[])});const jB=HB;var zB=4294967295,GB=zB-1,YB=Math.floor,JB=Math.min;function vd(t,e,n,r){var s=0,i=t==null?0:t.length;if(i===0)return 0;e=n(e);for(var o=e!==e,u=e===null,l=sn(e),f=e===void 0;s<i;){var a=YB((s+i)/2),c=n(t[a]),h=c!==void 0,p=c===null,m=c===c,g=sn(c);if(o)var v=r||m;else f?v=m&&(r||h):u?v=m&&h&&(r||!p):l?v=m&&h&&!p&&(r||!g):p||g?v=!1:v=r?c<=e:c<e;v?s=a+1:i=a}return JB(i,GB)}var KB=4294967295,XB=KB>>>1;function zl(t,e,n){var r=0,s=t==null?r:t.length;if(typeof e=="number"&&e===e&&s<=XB){for(;r<s;){var i=r+s>>>1,o=t[i];o!==null&&!sn(o)&&(n?o<=e:o<e)?r=i+1:s=i}return s}return vd(t,e,Ft,n)}function qB(t,e){return zl(t,e)}function ZB(t,e,n){return vd(t,e,xe(n))}function QB(t,e){var n=t==null?0:t.length;if(n){var r=zl(t,e);if(r<n&&Pn(t[r],e))return r}return-1}function eF(t,e){return zl(t,e,!0)}function tF(t,e,n){return vd(t,e,xe(n),!0)}function nF(t,e){var n=t==null?0:t.length;if(n){var r=zl(t,e,!0)-1;if(Pn(t[r],e))return r}return-1}function sb(t,e){for(var n=-1,r=t.length,s=0,i=[];++n<r;){var o=t[n],u=e?e(o):o;if(!n||!Pn(u,l)){var l=u;i[s++]=o===0?0:o}}return i}function rF(t){return t&&t.length?sb(t):[]}function iF(t,e){return t&&t.length?sb(t,xe(e)):[]}var sF=4294967295;function oF(t,e,n){return n&&typeof n!="number"&&Pt(t,e,n)&&(e=n=void 0),n=n===void 0?sF:n>>>0,n?(t=je(t),t&&(typeof e=="string"||e!=null&&!ld(e))&&(e=on(e),!e&&ls(t))?qr(In(t),0,n):t.split(e,n)):[]}var aF="Expected a function",lF=Math.max;function cF(t,e){if(typeof t!="function")throw new TypeError(aF);return e=e==null?0:lF(Te(e),0),Oe(function(n){var r=n[e],s=qr(n,0,e);return r&&Xr(s,r),an(t,this,s)})}var uF=cs(function(t,e,n){return t+(n?" ":"")+Fh(e)});const hF=uF;function dF(t,e,n){return t=je(t),n=n==null?0:Ei(Te(n),0,t.length),e=on(e),t.slice(n,n+e.length)==e}function fF(){return{}}function pF(){return""}function mF(){return!0}var gF=El(function(t,e){return t-e},0);const vF=gF;function yF(t){return t&&t.length?ud(t,Ft):0}function bF(t,e){return t&&t.length?ud(t,xe(e)):0}function wF(t){var e=t==null?0:t.length;return e?_n(t,1,e):[]}function SF(t,e,n){return t&&t.length?(e=n||e===void 0?1:Te(e),_n(t,0,e<0?0:e)):[]}function _F(t,e,n){var r=t==null?0:t.length;return r?(e=n||e===void 0?1:Te(e),e=r-e,_n(t,e<0?0:e,r)):[]}function xF(t,e){return t&&t.length?Bl(t,xe(e),!1,!0):[]}function CF(t,e){return t&&t.length?Bl(t,xe(e)):[]}function EF(t,e){return e(t),t}var ob=Object.prototype,kF=ob.hasOwnProperty;function Jp(t,e,n,r){return t===void 0||Pn(t,ob[n])&&!kF.call(r,n)?e:t}var $F={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function TF(t){return"\\"+$F[t]}var AF=/<%=([\s\S]+?)%>/g;const ab=AF;var OF=/<%-([\s\S]+?)%>/g;const LF=OF;var RF=/<%([\s\S]+?)%>/g;const MF=RF;var IF={escape:LF,evaluate:MF,interpolate:ab,variable:"",imports:{_:{escape:_y}}};const bu=IF;var NF="Invalid `variable` option passed into `_.template`",DF=/\b__p \+= '';/g,PF=/\b(__p \+=) '' \+/g,BF=/(__e\(.*?\)|\b__t\)) \+\n'';/g,FF=/[()=,{}\[\]\/\s]/,VF=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yo=/($^)/,WF=/['\n\r\u2028\u2029\\]/g,UF=Object.prototype,Kp=UF.hasOwnProperty;function HF(t,e,n){var r=bu.imports._.templateSettings||bu;n&&Pt(t,e,n)&&(e=void 0),t=je(t),e=xa({},e,r,Jp);var s=xa({},e.imports,r.imports,Jp),i=xt(s),o=sd(s,i),u,l,f=0,a=e.interpolate||Yo,c="__p += '",h=RegExp((e.escape||Yo).source+"|"+a.source+"|"+(a===ab?VF:Yo).source+"|"+(e.evaluate||Yo).source+"|$","g"),p=Kp.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
1090
+ `:"";t.replace(h,function(v,w,_,$,x,b){return _||(_=$),c+=t.slice(f,b).replace(WF,TF),w&&(u=!0,c+=`' +
1091
+ __e(`+w+`) +
1092
+ '`),x&&(l=!0,c+=`';
1093
+ `+x+`;
1094
+ __p += '`),_&&(c+=`' +
1095
+ ((__t = (`+_+`)) == null ? '' : __t) +
1096
+ '`),f=b+v.length,v}),c+=`';
1097
+ `;var m=Kp.call(e,"variable")&&e.variable;if(!m)c=`with (obj) {
1098
+ `+c+`
1099
+ }
1100
+ `;else if(FF.test(m))throw new Error(NF);c=(l?c.replace(DF,""):c).replace(PF,"$1").replace(BF,"$1;"),c="function("+(m||"obj")+`) {
1101
+ `+(m?"":`obj || (obj = {});
1102
+ `)+"var __t, __p = ''"+(u?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
1103
+ function print() { __p += __j.call(arguments, '') }
1104
+ `:`;
1105
+ `)+c+`return __p
1106
+ }`;var g=vv(function(){return Function(i,p+"return "+c).apply(void 0,o)});if(g.source=c,Dh(g))throw g;return g}var jF="Expected a function";function zF(t,e,n){var r=!0,s=!0;if(typeof t!="function")throw new TypeError(jF);return st(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),dy(t,e,{leading:r,maxWait:e,trailing:s})}function No(t,e){return e(t)}var GF=9007199254740991,bc=4294967295,YF=Math.min;function JF(t,e){if(t=Te(t),t<1||t>GF)return[];var n=bc,r=YF(t,bc);e=er(e),t-=bc;for(var s=Oh(r,e);++n<t;)e(n);return s}function KF(){return this}function lb(t,e){var n=t;return n instanceof Ie&&(n=n.value()),Vh(e,function(r,s){return s.func.apply(s.thisArg,Xr([r],s.args))},n)}function wc(){return lb(this.__wrapped__,this.__actions__)}function XF(t){return je(t).toLowerCase()}function qF(t){return Ee(t)?it(t,Zn):sn(t)?[t]:Yt(pv(je(t)))}var Xp=9007199254740991;function ZF(t){return t?Ei(Te(t),-Xp,Xp):t===0?t:0}function QF(t){return je(t).toUpperCase()}function e2(t,e,n){var r=Ee(t),s=r||zr(t)||as(t);if(e=xe(e),n==null){var i=t&&t.constructor;s?n=r?new i:[]:st(t)?n=wr(i)?rs(Il(t)):{}:n={}}return(s?Cn:Qn)(t,function(o,u,l){return e(n,o,u,l)}),n}function cb(t,e){for(var n=t.length;n--&&is(e,t[n],0)>-1;);return n}function ub(t,e){for(var n=-1,r=t.length;++n<r&&is(e,t[n],0)>-1;);return n}function t2(t,e,n){if(t=je(t),t&&(n||e===void 0))return Xg(t);if(!t||!(e=on(e)))return t;var r=In(t),s=In(e),i=ub(r,s),o=cb(r,s)+1;return qr(r,i,o).join("")}function n2(t,e,n){if(t=je(t),t&&(n||e===void 0))return t.slice(0,Kg(t)+1);if(!t||!(e=on(e)))return t;var r=In(t),s=cb(r,In(e))+1;return qr(r,0,s).join("")}var r2=/^\s+/;function i2(t,e,n){if(t=je(t),t&&(n||e===void 0))return t.replace(r2,"");if(!t||!(e=on(e)))return t;var r=In(t),s=ub(r,In(e));return qr(r,s).join("")}var s2=30,o2="...",a2=/\w*$/;function l2(t,e){var n=s2,r=o2;if(st(e)){var s="separator"in e?e.separator:s;n="length"in e?Te(e.length):n,r="omission"in e?on(e.omission):r}t=je(t);var i=t.length;if(ls(t)){var o=In(t);i=o.length}if(n>=i)return t;var u=n-hs(r);if(u<1)return r;var l=o?qr(o,0,u).join(""):t.slice(0,u);if(s===void 0)return l+r;if(o&&(u+=l.length-u),ld(s)){if(t.slice(u).search(s)){var f,a=l;for(s.global||(s=RegExp(s.source,je(a2.exec(s))+"g")),s.lastIndex=0;f=s.exec(a);)var c=f.index;l=l.slice(0,c===void 0?u:c)}}else if(t.indexOf(on(s),u)!=u){var h=l.lastIndexOf(s);h>-1&&(l=l.slice(0,h))}return l+r}function c2(t){return av(t,1)}var u2={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},h2=Wh(u2);const d2=h2;var hb=/&(?:amp|lt|gt|quot|#39);/g,f2=RegExp(hb.source);function p2(t){return t=je(t),t&&f2.test(t)?t.replace(hb,d2):t}var m2=1/0,g2=Vi&&1/Nl(new Vi([,-0]))[1]==m2?function(t){return new Vi(t)}:kh;const v2=g2;var y2=200;function Gr(t,e,n){var r=-1,s=Tl,i=t.length,o=!0,u=[],l=u;if(n)o=!1,s=nd;else if(i>=y2){var f=e?null:v2(t);if(f)return Nl(f);o=!1,s=oo,l=new wi}else l=e?[]:u;e:for(;++r<i;){var a=t[r],c=e?e(a):a;if(a=n||a!==0?a:0,o&&c===c){for(var h=l.length;h--;)if(l[h]===c)continue e;e&&l.push(c),u.push(a)}else s(l,c,n)||(l!==u&&l.push(c),u.push(a))}return u}var b2=Oe(function(t){return Gr(Tt(t,1,pt,!0))});const w2=b2;var S2=Oe(function(t){var e=cn(t);return pt(e)&&(e=void 0),Gr(Tt(t,1,pt,!0),xe(e))});const _2=S2;var x2=Oe(function(t){var e=cn(t);return e=typeof e=="function"?e:void 0,Gr(Tt(t,1,pt,!0),void 0,e)});const C2=x2;function E2(t){return t&&t.length?Gr(t):[]}function k2(t,e){return t&&t.length?Gr(t,xe(e)):[]}function $2(t,e){return e=typeof e=="function"?e:void 0,t&&t.length?Gr(t,void 0,e):[]}var T2=0;function A2(t){var e=++T2;return je(t)+e}function O2(t,e){return t==null?!0:hd(t,e)}var L2=Math.max;function yd(t){if(!(t&&t.length))return[];var e=0;return t=Zr(t,function(n){if(pt(n))return e=L2(n.length,e),!0}),Oh(e,function(n){return it(t,Zh(n))})}function db(t,e){if(!(t&&t.length))return[];var n=yd(t);return e==null?n:it(n,function(r){return an(e,void 0,r)})}function fb(t,e,n,r){return Io(t,e,n(Ci(t,e)),r)}function R2(t,e,n){return t==null?t:fb(t,e,er(n))}function M2(t,e,n,r){return r=typeof r=="function"?r:void 0,t==null?t:fb(t,e,er(n),r)}var I2=cs(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()});const N2=I2;function D2(t){return t==null?[]:sd(t,Kt(t))}var P2=Oe(function(t,e){return pt(t)?Lo(t,e):[]});const B2=P2;function F2(t,e){return Qy(er(e),t)}var V2=kr(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,s=function(i){return Nh(i,t)};return e>1||this.__actions__.length||!(r instanceof Ie)||!Sr(n)?this.thru(s):(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:No,args:[s],thisArg:void 0}),new wn(r,this.__chain__).thru(function(i){return e&&!i.length&&i.push(void 0),i}))});const W2=V2;function U2(){return Hv(this)}function H2(){var t=this.__wrapped__;if(t instanceof Ie){var e=t;return this.__actions__.length&&(e=new Ie(this)),e=e.reverse(),e.__actions__.push({func:No,args:[yu],thisArg:void 0}),new wn(e,this.__chain__)}return this.thru(yu)}function bd(t,e,n){var r=t.length;if(r<2)return r?Gr(t[0]):[];for(var s=-1,i=Array(r);++s<r;)for(var o=t[s],u=-1;++u<r;)u!=s&&(i[s]=Lo(i[s]||o,t[u],e,n));return Gr(Tt(i,1),e,n)}var j2=Oe(function(t){return bd(Zr(t,pt))});const z2=j2;var G2=Oe(function(t){var e=cn(t);return pt(e)&&(e=void 0),bd(Zr(t,pt),xe(e))});const Y2=G2;var J2=Oe(function(t){var e=cn(t);return e=typeof e=="function"?e:void 0,bd(Zr(t,pt),void 0,e)});const K2=J2;var X2=Oe(yd);const q2=X2;function pb(t,e,n){for(var r=-1,s=t.length,i=e.length,o={};++r<s;){var u=r<i?e[r]:void 0;n(o,t[r],u)}return o}function Z2(t,e){return pb(t||[],e||[],$o)}function Q2(t,e){return pb(t||[],e||[],Io)}var eV=Oe(function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n=typeof n=="function"?(t.pop(),n):void 0,db(t,n)});const tV=eV,ce={chunk:KA,compact:BL,concat:FL,difference:eM,differenceBy:nM,differenceWith:iM,drop:aM,dropRight:lM,dropRightWhile:cM,dropWhile:uM,fill:LM,findIndex:Ty,findLastIndex:Oy,first:Wp,flatten:mv,flattenDeep:YM,flattenDepth:JM,fromPairs:dI,head:Wp,indexOf:NI,initial:DI,intersection:FI,intersectionBy:WI,intersectionWith:HI,join:zN,last:cn,lastIndexOf:QN,nth:ID,pull:UP,pullAll:eb,pullAllBy:HP,pullAllWith:jP,pullAt:JP,remove:mB,reverse:yu,slice:BB,sortedIndex:qB,sortedIndexBy:ZB,sortedIndexOf:QB,sortedLastIndex:eF,sortedLastIndexBy:tF,sortedLastIndexOf:nF,sortedUniq:rF,sortedUniqBy:iF,tail:wF,take:SF,takeRight:_F,takeRightWhile:xF,takeWhile:CF,union:w2,unionBy:_2,unionWith:C2,uniq:E2,uniqBy:k2,uniqWith:$2,unzip:yd,unzipWith:db,without:B2,xor:z2,xorBy:Y2,xorWith:K2,zip:q2,zipObject:Z2,zipObjectDeep:Q2,zipWith:tV},Je={countBy:LR,each:Pp,eachRight:Bp,every:TM,filter:RM,find:NM,findLast:VM,flatMap:UM,flatMapDeep:jM,flatMapDepth:zM,forEach:Pp,forEachRight:Bp,groupBy:yI,includes:MI,invokeMap:nN,keyBy:KN,map:Fl,orderBy:GD,partition:MP,reduce:hB,reduceRight:fB,reject:pB,sample:kB,sampleSize:AB,shuffle:IB,size:PB,some:UB,sortBy:jB},nV={now:ia},ht={after:QC,ary:av,before:yv,bind:bv,bindKey:LT,curry:ed,curryRight:td,debounce:dy,defer:KR,delay:qR,flip:XM,memoize:Ml,negate:Mo,once:HD,overArgs:QD,partial:Qy,partialRight:LP,rearg:uB,rest:bB,spread:cF,throttle:zF,unary:c2,wrap:F2},me={castArray:UA,clone:TL,cloneDeep:LL,cloneDeepWith:IL,cloneWith:DL,conformsTo:xR,eq:Pn,gt:wI,gte:_I,isArguments:yi,isArray:Ee,isArrayBuffer:oN,isArrayLike:Jt,isArrayLikeObject:pt,isBoolean:lN,isBuffer:zr,isDate:dN,isElement:fN,isEmpty:yN,isEqual:Dy,isEqualWith:bN,isError:Dh,isFinite:SN,isFunction:wr,isInteger:Py,isLength:Ol,isMap:qv,isMatch:_N,isMatchWith:xN,isNaN:EN,isNative:AN,isNil:ON,isNull:LN,isNumber:By,isObject:st,isObjectLike:ut,isPlainObject:Ao,isRegExp:ld,isSafeInteger:NN,isSet:Zv,isString:Ul,isSymbol:sn,isTypedArray:as,isUndefined:DN,isWeakMap:BN,isWeakSet:VN,lt:sD,lte:aD,toArray:Wy,toFinite:pr,toInteger:Te,toLength:Ey,toNumber:gn,toPlainObject:py,toSafeInteger:ZF,toString:je},Vt={add:jC,ceil:GA,divide:oM,floor:ZM,max:pD,maxBy:mD,mean:vD,meanBy:yD,min:ED,minBy:kD,multiply:TD,round:CB,subtract:vF,sum:yF,sumBy:bF},wd={clamp:XA,inRange:OI,random:eB},Se={assign:S$,assignIn:pp,assignInWith:xa,assignWith:A$,at:fT,create:RR,defaults:UR,defaultsDeep:GR,entries:Fp,entriesIn:Vp,extend:pp,extendWith:xa,findKey:DM,findLastKey:WM,forIn:lI,forInRight:cI,forOwn:uI,forOwnRight:hI,functions:fI,functionsIn:pI,get:Ih,has:kI,hasIn:qh,invert:JI,invertBy:ZI,invoke:eN,keys:xt,keysIn:Kt,mapKeys:lD,mapValues:cD,merge:wD,mergeWith:gy,omit:WD,omitBy:UD,pick:DP,pickBy:jy,result:wB,set:OB,setWith:LB,toPairs:Fp,toPairsIn:Vp,transform:e2,unset:O2,update:R2,updateWith:M2,values:us,valuesIn:D2},tr={at:W2,chain:Hv,commit:PL,lodash:N,next:MD,plant:PP,reverse:H2,tap:EF,thru:No,toIterator:KF,toJSON:wc,value:wc,valueOf:wc,wrapperChain:U2},He={camelCase:WA,capitalize:$v,deburr:Tv,endsWith:pM,escape:_y,escapeRegExp:kM,kebabCase:YN,lowerCase:tD,lowerFirst:rD,pad:xP,padEnd:CP,padStart:EP,parseInt:TP,repeat:gB,replace:vB,snakeCase:VB,split:oF,startCase:hF,startsWith:dF,template:HF,templateSettings:bu,toLower:XF,toUpper:QF,trim:t2,trimEnd:n2,trimStart:i2,truncate:l2,unescape:p2,upperCase:N2,upperFirst:Fh,words:Uv},ze={attempt:vv,bindAll:$T,cond:bR,conforms:_R,constant:Th,defaultTo:FR,flow:sI,flowRight:aI,identity:Ft,iteratee:UN,matches:hD,matchesProperty:fD,method:_D,methodOf:CD,mixin:Vy,noop:kh,nthArg:ND,over:JD,overEvery:tP,overSome:rP,property:ly,propertyOf:BP,range:sB,rangeRight:aB,stubArray:Hh,stubFalse:Lh,stubObject:fF,stubString:pF,stubTrue:mF,times:JF,toPath:qF,uniqueId:A2};function rV(){var t=new Ie(this.__wrapped__);return t.__actions__=Yt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Yt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Yt(this.__views__),t}function iV(){if(this.__filtered__){var t=new Ie(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}var sV=Math.max,oV=Math.min;function aV(t,e,n){for(var r=-1,s=n.length;++r<s;){var i=n[r],o=i.size;switch(i.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=oV(e,t+o);break;case"takeRight":t=sV(t,e-o);break}}return{start:t,end:e}}var lV=1,cV=2,uV=Math.min;function hV(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ee(t),r=e<0,s=n?t.length:0,i=aV(0,s,this.__views__),o=i.start,u=i.end,l=u-o,f=r?u:o-1,a=this.__iteratees__,c=a.length,h=0,p=uV(l,this.__takeCount__);if(!n||!r&&s==l&&p==l)return lb(t,this.__actions__);var m=[];e:for(;l--&&h<p;){f+=e;for(var g=-1,v=t[f];++g<c;){var w=a[g],_=w.iteratee,$=w.type,x=_(v);if($==cV)v=x;else if(!x){if($==lV)continue e;break e}}m[h++]=v}return m}/**
1107
+ * @license
1108
+ * Lodash (Custom Build) <https://lodash.com/>
1109
+ * Build: `lodash modularize exports="es" -o ./`
1110
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1111
+ * Released under MIT license <https://lodash.com/license>
1112
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1113
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1114
+ */var dV="4.17.21",fV=2,pV=1,mV=3,mb=4294967295,gV=Array.prototype,vV=Object.prototype,gb=vV.hasOwnProperty,qp=Rt?Rt.iterator:void 0,yV=Math.max,Zp=Math.min,Sd=function(t){return function(e,n,r){if(r==null){var s=st(n),i=s&&xt(n),o=i&&i.length&&Vl(n,i);(o?o.length:s)||(r=n,n=e,e=this)}return t(e,n,r)}}(Vy);N.after=ht.after;N.ary=ht.ary;N.assign=Se.assign;N.assignIn=Se.assignIn;N.assignInWith=Se.assignInWith;N.assignWith=Se.assignWith;N.at=Se.at;N.before=ht.before;N.bind=ht.bind;N.bindAll=ze.bindAll;N.bindKey=ht.bindKey;N.castArray=me.castArray;N.chain=tr.chain;N.chunk=ce.chunk;N.compact=ce.compact;N.concat=ce.concat;N.cond=ze.cond;N.conforms=ze.conforms;N.constant=ze.constant;N.countBy=Je.countBy;N.create=Se.create;N.curry=ht.curry;N.curryRight=ht.curryRight;N.debounce=ht.debounce;N.defaults=Se.defaults;N.defaultsDeep=Se.defaultsDeep;N.defer=ht.defer;N.delay=ht.delay;N.difference=ce.difference;N.differenceBy=ce.differenceBy;N.differenceWith=ce.differenceWith;N.drop=ce.drop;N.dropRight=ce.dropRight;N.dropRightWhile=ce.dropRightWhile;N.dropWhile=ce.dropWhile;N.fill=ce.fill;N.filter=Je.filter;N.flatMap=Je.flatMap;N.flatMapDeep=Je.flatMapDeep;N.flatMapDepth=Je.flatMapDepth;N.flatten=ce.flatten;N.flattenDeep=ce.flattenDeep;N.flattenDepth=ce.flattenDepth;N.flip=ht.flip;N.flow=ze.flow;N.flowRight=ze.flowRight;N.fromPairs=ce.fromPairs;N.functions=Se.functions;N.functionsIn=Se.functionsIn;N.groupBy=Je.groupBy;N.initial=ce.initial;N.intersection=ce.intersection;N.intersectionBy=ce.intersectionBy;N.intersectionWith=ce.intersectionWith;N.invert=Se.invert;N.invertBy=Se.invertBy;N.invokeMap=Je.invokeMap;N.iteratee=ze.iteratee;N.keyBy=Je.keyBy;N.keys=xt;N.keysIn=Se.keysIn;N.map=Je.map;N.mapKeys=Se.mapKeys;N.mapValues=Se.mapValues;N.matches=ze.matches;N.matchesProperty=ze.matchesProperty;N.memoize=ht.memoize;N.merge=Se.merge;N.mergeWith=Se.mergeWith;N.method=ze.method;N.methodOf=ze.methodOf;N.mixin=Sd;N.negate=Mo;N.nthArg=ze.nthArg;N.omit=Se.omit;N.omitBy=Se.omitBy;N.once=ht.once;N.orderBy=Je.orderBy;N.over=ze.over;N.overArgs=ht.overArgs;N.overEvery=ze.overEvery;N.overSome=ze.overSome;N.partial=ht.partial;N.partialRight=ht.partialRight;N.partition=Je.partition;N.pick=Se.pick;N.pickBy=Se.pickBy;N.property=ze.property;N.propertyOf=ze.propertyOf;N.pull=ce.pull;N.pullAll=ce.pullAll;N.pullAllBy=ce.pullAllBy;N.pullAllWith=ce.pullAllWith;N.pullAt=ce.pullAt;N.range=ze.range;N.rangeRight=ze.rangeRight;N.rearg=ht.rearg;N.reject=Je.reject;N.remove=ce.remove;N.rest=ht.rest;N.reverse=ce.reverse;N.sampleSize=Je.sampleSize;N.set=Se.set;N.setWith=Se.setWith;N.shuffle=Je.shuffle;N.slice=ce.slice;N.sortBy=Je.sortBy;N.sortedUniq=ce.sortedUniq;N.sortedUniqBy=ce.sortedUniqBy;N.split=He.split;N.spread=ht.spread;N.tail=ce.tail;N.take=ce.take;N.takeRight=ce.takeRight;N.takeRightWhile=ce.takeRightWhile;N.takeWhile=ce.takeWhile;N.tap=tr.tap;N.throttle=ht.throttle;N.thru=No;N.toArray=me.toArray;N.toPairs=Se.toPairs;N.toPairsIn=Se.toPairsIn;N.toPath=ze.toPath;N.toPlainObject=me.toPlainObject;N.transform=Se.transform;N.unary=ht.unary;N.union=ce.union;N.unionBy=ce.unionBy;N.unionWith=ce.unionWith;N.uniq=ce.uniq;N.uniqBy=ce.uniqBy;N.uniqWith=ce.uniqWith;N.unset=Se.unset;N.unzip=ce.unzip;N.unzipWith=ce.unzipWith;N.update=Se.update;N.updateWith=Se.updateWith;N.values=Se.values;N.valuesIn=Se.valuesIn;N.without=ce.without;N.words=He.words;N.wrap=ht.wrap;N.xor=ce.xor;N.xorBy=ce.xorBy;N.xorWith=ce.xorWith;N.zip=ce.zip;N.zipObject=ce.zipObject;N.zipObjectDeep=ce.zipObjectDeep;N.zipWith=ce.zipWith;N.entries=Se.toPairs;N.entriesIn=Se.toPairsIn;N.extend=Se.assignIn;N.extendWith=Se.assignInWith;Sd(N,N);N.add=Vt.add;N.attempt=ze.attempt;N.camelCase=He.camelCase;N.capitalize=He.capitalize;N.ceil=Vt.ceil;N.clamp=wd.clamp;N.clone=me.clone;N.cloneDeep=me.cloneDeep;N.cloneDeepWith=me.cloneDeepWith;N.cloneWith=me.cloneWith;N.conformsTo=me.conformsTo;N.deburr=He.deburr;N.defaultTo=ze.defaultTo;N.divide=Vt.divide;N.endsWith=He.endsWith;N.eq=me.eq;N.escape=He.escape;N.escapeRegExp=He.escapeRegExp;N.every=Je.every;N.find=Je.find;N.findIndex=ce.findIndex;N.findKey=Se.findKey;N.findLast=Je.findLast;N.findLastIndex=ce.findLastIndex;N.findLastKey=Se.findLastKey;N.floor=Vt.floor;N.forEach=Je.forEach;N.forEachRight=Je.forEachRight;N.forIn=Se.forIn;N.forInRight=Se.forInRight;N.forOwn=Se.forOwn;N.forOwnRight=Se.forOwnRight;N.get=Se.get;N.gt=me.gt;N.gte=me.gte;N.has=Se.has;N.hasIn=Se.hasIn;N.head=ce.head;N.identity=Ft;N.includes=Je.includes;N.indexOf=ce.indexOf;N.inRange=wd.inRange;N.invoke=Se.invoke;N.isArguments=me.isArguments;N.isArray=Ee;N.isArrayBuffer=me.isArrayBuffer;N.isArrayLike=me.isArrayLike;N.isArrayLikeObject=me.isArrayLikeObject;N.isBoolean=me.isBoolean;N.isBuffer=me.isBuffer;N.isDate=me.isDate;N.isElement=me.isElement;N.isEmpty=me.isEmpty;N.isEqual=me.isEqual;N.isEqualWith=me.isEqualWith;N.isError=me.isError;N.isFinite=me.isFinite;N.isFunction=me.isFunction;N.isInteger=me.isInteger;N.isLength=me.isLength;N.isMap=me.isMap;N.isMatch=me.isMatch;N.isMatchWith=me.isMatchWith;N.isNaN=me.isNaN;N.isNative=me.isNative;N.isNil=me.isNil;N.isNull=me.isNull;N.isNumber=me.isNumber;N.isObject=st;N.isObjectLike=me.isObjectLike;N.isPlainObject=me.isPlainObject;N.isRegExp=me.isRegExp;N.isSafeInteger=me.isSafeInteger;N.isSet=me.isSet;N.isString=me.isString;N.isSymbol=me.isSymbol;N.isTypedArray=me.isTypedArray;N.isUndefined=me.isUndefined;N.isWeakMap=me.isWeakMap;N.isWeakSet=me.isWeakSet;N.join=ce.join;N.kebabCase=He.kebabCase;N.last=cn;N.lastIndexOf=ce.lastIndexOf;N.lowerCase=He.lowerCase;N.lowerFirst=He.lowerFirst;N.lt=me.lt;N.lte=me.lte;N.max=Vt.max;N.maxBy=Vt.maxBy;N.mean=Vt.mean;N.meanBy=Vt.meanBy;N.min=Vt.min;N.minBy=Vt.minBy;N.stubArray=ze.stubArray;N.stubFalse=ze.stubFalse;N.stubObject=ze.stubObject;N.stubString=ze.stubString;N.stubTrue=ze.stubTrue;N.multiply=Vt.multiply;N.nth=ce.nth;N.noop=ze.noop;N.now=nV.now;N.pad=He.pad;N.padEnd=He.padEnd;N.padStart=He.padStart;N.parseInt=He.parseInt;N.random=wd.random;N.reduce=Je.reduce;N.reduceRight=Je.reduceRight;N.repeat=He.repeat;N.replace=He.replace;N.result=Se.result;N.round=Vt.round;N.sample=Je.sample;N.size=Je.size;N.snakeCase=He.snakeCase;N.some=Je.some;N.sortedIndex=ce.sortedIndex;N.sortedIndexBy=ce.sortedIndexBy;N.sortedIndexOf=ce.sortedIndexOf;N.sortedLastIndex=ce.sortedLastIndex;N.sortedLastIndexBy=ce.sortedLastIndexBy;N.sortedLastIndexOf=ce.sortedLastIndexOf;N.startCase=He.startCase;N.startsWith=He.startsWith;N.subtract=Vt.subtract;N.sum=Vt.sum;N.sumBy=Vt.sumBy;N.template=He.template;N.times=ze.times;N.toFinite=me.toFinite;N.toInteger=Te;N.toLength=me.toLength;N.toLower=He.toLower;N.toNumber=me.toNumber;N.toSafeInteger=me.toSafeInteger;N.toString=me.toString;N.toUpper=He.toUpper;N.trim=He.trim;N.trimEnd=He.trimEnd;N.trimStart=He.trimStart;N.truncate=He.truncate;N.unescape=He.unescape;N.uniqueId=ze.uniqueId;N.upperCase=He.upperCase;N.upperFirst=He.upperFirst;N.each=Je.forEach;N.eachRight=Je.forEachRight;N.first=ce.head;Sd(N,function(){var t={};return Qn(N,function(e,n){gb.call(N.prototype,n)||(t[n]=e)}),t}(),{chain:!1});N.VERSION=dV;(N.templateSettings=He.templateSettings).imports._=N;Cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){N[t].placeholder=N});Cn(["drop","take"],function(t,e){Ie.prototype[t]=function(n){n=n===void 0?1:yV(Te(n),0);var r=this.__filtered__&&!e?new Ie(this):this.clone();return r.__filtered__?r.__takeCount__=Zp(n,r.__takeCount__):r.__views__.push({size:Zp(n,mb),type:t+(r.__dir__<0?"Right":"")}),r},Ie.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}});Cn(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==pV||n==mV;Ie.prototype[t]=function(s){var i=this.clone();return i.__iteratees__.push({iteratee:xe(s),type:n}),i.__filtered__=i.__filtered__||r,i}});Cn(["head","last"],function(t,e){var n="take"+(e?"Right":"");Ie.prototype[t]=function(){return this[n](1).value()[0]}});Cn(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Ie.prototype[t]=function(){return this.__filtered__?new Ie(this):this[n](1)}});Ie.prototype.compact=function(){return this.filter(Ft)};Ie.prototype.find=function(t){return this.filter(t).head()};Ie.prototype.findLast=function(t){return this.reverse().find(t)};Ie.prototype.invokeMap=Oe(function(t,e){return typeof t=="function"?new Ie(this):this.map(function(n){return Ro(n,t,e)})});Ie.prototype.reject=function(t){return this.filter(Mo(xe(t)))};Ie.prototype.slice=function(t,e){t=Te(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Ie(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==void 0&&(e=Te(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)};Ie.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()};Ie.prototype.toArray=function(){return this.take(mb)};Qn(Ie.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=N[r?"take"+(e=="last"?"Right":""):e],i=r||/^find/.test(e);!s||(N.prototype[e]=function(){var o=this.__wrapped__,u=r?[1]:arguments,l=o instanceof Ie,f=u[0],a=l||Ee(o),c=function(w){var _=s.apply(N,Xr([w],u));return r&&h?_[0]:_};a&&n&&typeof f=="function"&&f.length!=1&&(l=a=!1);var h=this.__chain__,p=!!this.__actions__.length,m=i&&!h,g=l&&!p;if(!i&&a){o=g?o:new Ie(this);var v=t.apply(o,u);return v.__actions__.push({func:No,args:[c],thisArg:void 0}),new wn(v,h)}return m&&g?t.apply(this,u):(v=this.thru(c),m?r?v.value()[0]:v.value():v)})});Cn(["pop","push","shift","sort","splice","unshift"],function(t){var e=gV[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);N.prototype[t]=function(){var s=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ee(i)?i:[],s)}return this[n](function(o){return e.apply(Ee(o)?o:[],s)})}});Qn(Ie.prototype,function(t,e){var n=N[e];if(n){var r=n.name+"";gb.call(Fi,r)||(Fi[r]=[]),Fi[r].push({name:e,func:n})}});Fi[Al(void 0,fV).name]=[{name:"wrapper",func:void 0}];Ie.prototype.clone=rV;Ie.prototype.reverse=iV;Ie.prototype.value=hV;N.prototype.at=tr.at;N.prototype.chain=tr.wrapperChain;N.prototype.commit=tr.commit;N.prototype.next=tr.next;N.prototype.plant=tr.plant;N.prototype.reverse=tr.reverse;N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=tr.value;N.prototype.first=N.prototype.head;qp&&(N.prototype[qp]=tr.toIterator);const Sc=new Hg,Rr=d.ref([]),ws=d.ref([]),bV=()=>{const{getAccessToken:t}=ko(),e=qa();async function n(l=10){const f=await t();if(f)try{Sc.setAuthToken(f),(await fetch("/api/platform/pushnotifications",{method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"application/json",authorization:`Bearer ${f}`},body:JSON.stringify({take:l})})).text().then(c=>{var h;Rr.value=(h=JSON.parse(c).notifyEvents)!=null?h:[]})}catch(a){throw e.error(a),a}}function r(l){if(l.notifyType!=="IndexProgressPushNotification"){const f=Rr.value.find(a=>a.id==l.id);f?(l.isNew=f.isNew,Object.assign(f,l)):(ws.value.unshift(l),Rr.value.unshift(l))}}function s(l){l.isNew=!1,N.remove(ws.value,f=>f.id==l.id)}function i(l){N.remove(ws.value,f=>f.id==l.id),N.remove(Rr.value,f=>f.id==l.id)}function o(){ws.value=[],Rr.value=[]}async function u(){const l=await t();if(l){Sc.setAuthToken(l);try{await Sc.markAllAsRead(),Rr.value=Rr.value.map(f=>(f.isNew&&(f.isNew=!1),f))}catch(f){throw e.error(f),f}}}return{notifications:d.computed(()=>d.readonly(N.orderBy(Rr.value,["created"],["desc"]))),popupNotifications:d.computed(()=>d.readonly(ws.value)),loadFromHistory:n,addNotification:r,dismissAll:o,dismiss:i,markAsRead:s,markAllAsRead:u}},Qp=d.ref(),wV=()=>{const{getAccessToken:t}=ko(),e=qa();async function n(){const s=new zg;return s.setAuthToken(await t()),s}async function r(){const s=await n();try{const i=await s.getUICustomizationSetting();Qp.value=JSON.parse(i.defaultValue)}catch(i){e.error(i)}}return{uiSettings:d.computed(()=>Qp.value),getUiCustomizationSettings:r}},Gl=()=>{const{user:t}=ko();function e(n){var r,s;if(n)if(n||n&&n instanceof Array){if(typeof n=="string")return(r=t.value)==null?void 0:r.permissions.includes(n);if(n.length>0)return(s=t.value)==null?void 0:s.permissions.some(i=>n.includes(i))}else console.error("Permissions must be a string or strings array");else return!0}return{userPermissions:d.computed(()=>{var n;return(n=t.value)==null?void 0:n.permissions}),checkPermission:e}},SV=(t,e,n)=>{const r=d.computed(()=>d.isRef(t)?d.unref(t):t),s=d.computed(()=>d.isRef(e)?d.unref(e):e),i=d.ref(),o=d.ref(!1);d.watch(s,()=>{s.value?o.value=!0:(o.value=!1,f())}),d.watch([r,o],()=>{o.value&&u()},{deep:!0});function u(){localStorage.setItem(n,JSON.stringify(r.value))}function l(){const a=JSON.parse(localStorage.getItem(n));a&&(i.value=a)}function f(){localStorage.removeItem(n)}return{savedValue:d.computed(()=>i.value),loadAutosaved:l,resetAutosaved:f}},{checkPermission:_V}=Gl();function em(t,e){const{value:n}=e;_V(n)===!1&&t.parentNode&&t.parentNode.removeChild(t)}const xV={mounted(t,e){em(t,e)},updated(t,e){em(t,e)}},CV={mounted(t,e){e.value&&t.focus()}},Do={mounted(t,e){const n=e.value;t._outsideClickHandler=function(r){t.contains(r.target)||(r.stopPropagation(),n())},document.addEventListener("click",t._outsideClickHandler)},unmounted(t){document.removeEventListener("click",t._outsideClickHandler)}},tm="v-loading",EV={mounted:function(t,e){console.log("v-loading mount");const n=document.createElement("div");n.className=tm,n.innerHTML="Loading...",n.style.display=e.value?"flex":"none",n.style.position="absolute",n.style.alignItems="center",n.style.justifyContent="center",n.style.background="rgba(255, 255, 255, 0.75)",n.style.zIndex="9999",n.style.width="100%",n.style.height="100%",t.appendChild(n)},updated:function(t,e){console.log("v-loading updated");const n=t.querySelector(`.${tm}`);n&&(n.style.display=e.value?"flex":"none")}},kV=Object.freeze(Object.defineProperty({__proto__:null,permissions:xV,autofocus:CV,clickOutside:Do,loading:EV},Symbol.toStringTag,{value:"Module"}));/**
1115
+ * vee-validate v4.7.3
1116
+ * (c) 2022 Abdelrahman Awad
1117
+ * @license MIT
1118
+ */function vb(t){return!!(t==null||t===""||Array.isArray(t)&&t.length===0)}const yb=t=>{if(vb(t))return!0;const e=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return Array.isArray(t)?t.every(n=>e.test(String(n))):e.test(String(t))},$V=/^[٠١٢٣٤٥٦٧٨٩]+$/,TV=/^[0-9]+$/,bb=t=>{if(vb(t))return!0;const e=n=>{const r=String(n);return TV.test(r)||$V.test(r)};return Array.isArray(t)?t.every(e):e(t)},ka=t=>t==null||t===!1||t===""?"This field is required":!0;_t.defineRule("required",ka);_t.defineRule("numeric",bb);_t.defineRule("email",yb);const wb=(t,[e])=>!t||!t.length?!0:t.length<e?`This field must contain at least ${e} characters`:!0;_t.defineRule("min",wb);const Sb=(t,[e])=>!t||!t.length?!0:t.length>e?`This field must contain not more than ${e} characters`:!0;_t.defineRule("max",Sb);const _b=(t,[e])=>!t||!t.length||e.test(t)?!0:"This field must match a given pattern";_t.defineRule("regex",_b);const xb=(t,[e])=>!t||!t.length?!0:Number(t)<e?`Value must be greater than ${e}`:!0;_t.defineRule("min_value",xb);const Cb=(t,[e])=>!t||!t.length?!0:Number(t)>e?`Value must be less than ${e}`:!0;_t.defineRule("max_value",Cb);const Eb=(t,[e])=>{if(!t||!t.length)return!0;const n=new Date(t),r=new Date(e);return n.getTime()>0&&r.getTime()>0&&r.getTime()>n.getTime()?"End date must be later than start date":!0};_t.defineRule("after",Eb);const kb=(t,[e,n])=>{var o;if(!(t!=null&&t.files)||!((o=t.files)!=null&&o.length))return!0;const r=(u,l,f)=>{const a=window.URL||window.webkitURL;return new Promise(c=>{const h=new Image;h.onerror=()=>c(!1),h.onload=()=>{const p=h.width>=Number(l)&&h.height>=Number(f);c(p?!0:`Image dimensions must be greater than ${f}*${l}`)},h.src=a.createObjectURL(u)})},s=[],i=t.files;for(let u=0;u<i.length;u++){if(!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(i[u].name))return Promise.resolve("Not image file");s.push(i[u])}return Promise.all(s.map(u=>r(u,e,n))).then(u=>{const l=u.find(f=>f!==!0);return l===!1||typeof l=="string"?l:!0})};_t.defineRule("maxdimensions",kb);const $b=(t,[e])=>{var u;if(!(t!=null&&t.files)||!((u=t.files)!=null&&u.length))return!0;const n=e*1e3,r=l=>l.size>n,s=[];for(let l=0;l<t.files.length;l++)s.push(t.files[l]);return s.map(l=>r(l)).find(l=>l===!0)?`File size must be maximum ${e} kb`:!0};_t.defineRule("size",$b);const AV={class:"vc-input__field-wrapper"},OV=["placeholder","type","value","disabled","max","name","maxlength"],LV={key:0,class:"vc-input__dropdown-wrap"},RV=["onClick"],MV={class:"vc-input__dropdown-title"},IV={class:"vc-input__dropdown-list"},NV=["onClick"],ao=d.defineComponent({__name:"vc-input",props:{placeholder:{default:""},modelValue:{default:null},clearable:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"text"},label:null,tooltip:null,name:{default:"Field"},rules:null,currency:{type:Boolean,default:!1},options:{default:()=>[]},optionsTitle:{default:"Select"},optionsValue:{default:""},keyProperty:{default:"id"},displayProperty:{default:"title"},fieldDescription:{default:""},maxchars:{default:"1024"},max:null},emits:["update:modelValue","update:optionsValue"],setup(t,{emit:e}){const n=t;let r;const s=d.ref(d.unref(n.type)),i=d.ref(),o=d.ref(),u=d.ref(!1),l=d.getCurrentInstance(),f=d.ref(),a=d.ref(""),c=d.ref(),h=d.computed(()=>n.currency?r==null?void 0:r.formattedValue.value:w.value);let p=d.unref(n.rules);if(n.required)switch(typeof p){case"undefined":p="required";break;case"string":p=`required|${p}`;break;case"function":p=[ka,p];break;case"object":Array.isArray(p)?p.unshift(ka):p.required=!0;break}let m=d.unref(n.modelValue);const{errorMessage:g,handleChange:v,value:w}=_t.useField(`${n.name==="Field"?l==null?void 0:l.uid:n.name}`,p,{initialValue:m});n.currency&&(r=V1({currency:n.optionsValue||"USD",currencyDisplay:lr.hidden})),d.onMounted(()=>{!w.value&&n.currency&&r&&r.setValue(null)}),d.watch(()=>n.optionsValue,S=>{r&&r.setOptions({currency:S,currencyDisplay:lr.hidden})});const _=d.computed(()=>n.options.filter(S=>S[n.displayProperty].toLowerCase().includes(a.value.toLowerCase()))),$=r&&r.inputRef;d.watch(()=>n.modelValue,S=>{let y=d.unref(S);if(y&&y.toString().length>=parseInt(n.maxchars)){y.toString().slice(0,parseInt(n.maxchars));return}v(y)});function x(){!u.value&&!n.disabled?(u.value=!0,d.nextTick(()=>{c.value.focus(),f.value=ns(i.value,o.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[13,15]}}]})})):b()}function b(){var S;u.value=!1,a.value="",(S=f.value)==null||S.destroy()}function C(S){e("update:optionsValue",S[n.keyProperty]),b()}function T(S){const y=S.target.value;if(y)if(n.currency){const E=r.numberValue.value;e("update:modelValue",E)}else e("update:modelValue",y);else e("update:modelValue",null)}function k(){n.currency&&r&&r.setValue(null),e("update:modelValue",null)}return(S,y)=>{const E=d.resolveComponent("VcHint");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-input",[`vc-input_${t.type}`,{"vc-input_clearable":t.clearable,"vc-input_error":d.unref(g),"vc-input_disabled":t.disabled}]])},[t.label?(d.openBlock(),d.createBlock(d.unref(br),{key:0,class:"mb-2",required:t.required},d.createSlots({default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(t.label),1)]),_:2},[t.tooltip?{name:"tooltip",fn:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.tooltip),1)]),key:"0"}:void 0]),1032,["required"])):d.createCommentVNode("",!0),d.createElementVNode("div",AV,[d.createElementVNode("input",{class:"vc-input__field",placeholder:t.placeholder,type:s.value,value:d.unref(h),disabled:t.disabled,onInput:T,ref_key:"inputRef",ref:$,max:t.max,name:t.name,maxlength:t.maxchars},null,40,OV),t.options&&t.options.length?(d.openBlock(),d.createElementBlock("div",LV,[d.createElementVNode("div",{onClick:d.withModifiers(x,["stop"]),"aria-describedby":"tooltip",ref_key:"toggleDropRef",ref:i,class:d.normalizeClass([{"vc-input__dropdown-btn_disabled":t.disabled},"vc-input__dropdown-btn"])},d.toDisplayString(t.optionsValue),11,RV),(d.openBlock(),d.createBlock(d.Teleport,{to:"body"},[u.value?d.withDirectives((d.openBlock(),d.createElementBlock("div",{key:0,ref_key:"dropRef",ref:o,role:"tooltip",class:"vc-input__dropdown"},[d.createElementVNode("p",MV,d.toDisplayString(t.optionsTitle),1),d.withDirectives(d.createElementVNode("input",{class:"vc-input__dropdown-search","onUpdate:modelValue":y[0]||(y[0]=A=>a.value=A),ref_key:"searchInput",ref:c},null,512),[[d.vModelText,a.value]]),d.createElementVNode("ul",IV,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(_),(A,O)=>(d.openBlock(),d.createElementBlock("li",{key:O},[d.createElementVNode("button",{onClick:R=>C(A),class:d.normalizeClass(["vc-input__dropdown-selector",{"vc-input__dropdown-selector-active":A[t.displayProperty]===t.optionsValue}])},d.toDisplayString(A[t.displayProperty]),11,NV)]))),128))])])),[[d.unref(Do),b]]):d.createCommentVNode("",!0)]))])):d.createCommentVNode("",!0),t.clearable&&t.modelValue&&!t.disabled&&t.type!=="password"?(d.openBlock(),d.createElementBlock("div",{key:1,class:"vc-input__clear",onClick:k},[d.createVNode(d.unref(ke),{size:"s",icon:"fas fa-times"})])):d.createCommentVNode("",!0),t.type==="password"&&s.value==="password"?(d.openBlock(),d.createElementBlock("div",{key:2,class:"vc-input__showhide",onClick:y[1]||(y[1]=A=>s.value="text")},[d.createVNode(d.unref(ke),{size:"s",icon:"fas fa-eye-slash"})])):d.createCommentVNode("",!0),t.type==="password"&&s.value==="text"?(d.openBlock(),d.createElementBlock("div",{key:3,class:"vc-input__showhide",onClick:y[2]||(y[2]=A=>s.value="password")},[d.createVNode(d.unref(ke),{size:"s",icon:"fas fa-eye"})])):d.createCommentVNode("",!0)]),d.unref(g)?d.renderSlot(S.$slots,"error",{key:1},()=>[d.createVNode(E,{class:"vc-input__error"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(g)),1)]),_:1})]):d.createCommentVNode("",!0),t.fieldDescription?d.renderSlot(S.$slots,"error",{key:2},()=>[d.createVNode(E,{class:"vc-input__desc"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.fieldDescription),1)]),_:1})]):d.createCommentVNode("",!0)],2)}}});const DV={class:"vc-multivalue__field-value"},PV=["title"],BV=["onClick"],FV=["placeholder","type","value","disabled","onKeypress"],Tb=d.defineComponent({__name:"vc-multivalue",props:{placeholder:{type:String,default:""},modelValue:{type:Array,default:()=>[]},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"text"},label:{type:String,default:void 0},tooltip:{type:String,default:void 0},name:{type:String,default:"Field"},rules:{type:[String,Object]},options:{type:Array,default:()=>[]},keyProperty:{type:String,default:"id"},displayProperty:{type:String,default:"title"},multivalue:{type:Boolean,default:!1}},emits:["update:modelValue","search","close"],setup(t,{emit:e}){const n=t,r=d.getCurrentInstance(),s=d.ref(),i=d.ref(),o=d.ref(),u=d.ref(),l=d.ref(!1),f=d.ref();let a=d.unref(n.rules)||"";n.required&&(typeof a=="string"?a=`required|${a}`.replace(/(\|)+$/,""):a.required=!0);const{errorMessage:c,handleChange:h,value:p}=_t.useField(`${(r==null?void 0:r.uid)||n.name}`,a),m=d.computed(()=>{var b;return(b=n.options)==null?void 0:b.filter(C=>{var T;return!((T=n.modelValue)!=null&&T.find(k=>k.valueId===C.id))})});function g(b){const C=b.target.value;e("update:modelValue",[...n.modelValue,{value:C}]),h("")}function v(b){e("update:modelValue",[...n.modelValue,{valueId:b[n.keyProperty]}]),e("close"),$()}function w(b){const C=d.unref(n.modelValue);C.splice(b,1),e("update:modelValue",[...C])}function _(){var b;n.disabled||(l.value?(l.value=!1,(b=s.value)==null||b.destroy(),u.value.style.borderRadius="var(--select-border-radius)",e("close")):(l.value=!0,d.nextTick(()=>{var C;(C=f==null?void 0:f.value)==null||C.focus(),s.value=ns(u.value,o.value,{placement:"bottom",modifiers:[{name:"flip",options:{fallbackPlacements:["top","bottom"]}},{name:"preventOverflow",options:{mainAxis:!1}},{name:"sameWidthChangeBorders",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:T})=>{T.placement==="top"?(T.styles.popper.borderTop="1px solid var(--select-border-color)",T.styles.popper.borderBottom="1px solid var(--select-background-color)",T.styles.popper.borderRadius="var(--select-border-radius) var(--select-border-radius) 0 0",u.value.style.borderRadius="0 0 var(--select-border-radius) var(--select-border-radius)"):(T.styles.popper.borderBottom="1px solid var(--select-border-color)",T.styles.popper.borderTop="1px solid var(--select-background-color)",T.styles.popper.borderRadius="0 0 var(--select-border-radius) var(--select-border-radius)",u.value&&(u.value.style.borderRadius="var(--select-border-radius) var(--select-border-radius) 0 0")),T.styles.popper.width=`${T.rects.reference.width}px`},effect:({state:T})=>{const k=T.elements.reference;T.placement==="top"?(T.elements.popper.style.borderTop="1px solid var(--select-border-color)",T.elements.popper.style.borderBottom="1px solid var(--select-background-color)",T.elements.popper.style.borderRadius="var(--select-border-radius) var(--select-border-radius) 0 0",u.value.style.borderRadius="0 0 var(--select-border-radius) var(--select-border-radius)"):(T.elements.popper.style.borderBottom="1px solid var(--select-border-color)",T.elements.popper.style.borderTop="1px solid var(--select-background-color)",T.elements.popper.style.borderRadius="0 0 var(--select-border-radius) var(--select-border-radius)",u.value&&(u.value.style.borderRadius="var(--select-border-radius) var(--select-border-radius) 0 0")),T.elements.popper.style.width=`${k.offsetWidth}px`}},{name:"offset",options:{offset:[0,-1]}}]})})))}function $(){var b;l.value=!1,(b=s.value)==null||b.destroy(),u.value.style.borderRadius="var(--select-border-radius)",e("close")}function x(b){e("search",b.target.value)}return(b,C)=>{const T=d.resolveComponent("VcButton"),k=d.resolveComponent("VcContainer"),S=d.resolveComponent("VcHint");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-multivalue",[`vc-multivalue_${t.type}`,{"vc-multivalue_opened":l.value,"vc-multivalue_error":d.unref(c),"vc-multivalue_disabled":t.disabled}]])},[t.label?(d.openBlock(),d.createBlock(d.unref(br),{key:0,class:"mb-2",required:t.required},d.createSlots({default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(t.label),1)]),_:2},[t.tooltip?{name:"tooltip",fn:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.tooltip),1)]),key:"0"}:void 0]),1032,["required"])):d.createCommentVNode("",!0),d.createElementVNode("div",{class:"vc-multivalue__field-wrapper",ref_key:"inputFieldWrapRef",ref:u},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.modelValue,(y,E)=>(d.openBlock(),d.createElementBlock("div",{key:y.id,class:"vc-multivalue__field-value-wrapper"},[d.createElementVNode("div",DV,[d.createElementVNode("span",{class:"truncate",title:t.type==="number"?Number(y.value).toFixed(3):y.value},d.toDisplayString(t.type==="number"?Number(y.value).toFixed(3):y.value),9,PV),t.disabled?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(d.unref(ke),{key:0,class:"vc-multivalue__field-value-clear",icon:"fas fa-times",size:"s",onClick:A=>w(E)},null,8,["onClick"]))])]))),128)),t.multivalue?(d.openBlock(),d.createElementBlock("div",{key:0,ref_key:"dropdownToggleRef",ref:i,class:"vc-multivalue__field vc-multivalue__field_dictionary grow basis-0 p-2"},[d.createVNode(T,{small:"",onClick:d.withModifiers(_,["stop"])},{default:d.withCtx(()=>[d.createTextVNode("Add +")]),_:1},8,["onClick"]),(d.openBlock(),d.createBlock(d.Teleport,{to:"#app"},[l.value?d.withDirectives((d.openBlock(),d.createElementBlock("div",{key:0,class:"vc-multivalue__dropdown",ref_key:"dropdownRef",ref:o},[d.createElementVNode("input",{ref_key:"search",ref:f,class:"vc-multivalue__search",onInput:x},null,544),d.createVNode(k,{"no-padding":!0},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(m),(y,E)=>(d.openBlock(),d.createElementBlock("div",{class:"vc-multivalue__item",key:E,onClick:A=>v(y)},[d.renderSlot(b.$slots,"item",{item:y},()=>[d.createTextVNode(d.toDisplayString(y[t.displayProperty]),1)])],8,BV))),128))]),_:3})])),[[d.unref(Do),$]]):d.createCommentVNode("",!0)]))],512)):(d.openBlock(),d.createElementBlock("input",{key:1,class:"vc-multivalue__field grow basis-0 pl-3",placeholder:t.placeholder,type:t.type,value:d.unref(p),disabled:t.disabled,onKeypress:d.withKeys(g,["enter"])},null,40,FV))],512),d.unref(c)?d.renderSlot(b.$slots,"error",{key:1},()=>[d.createVNode(S,{class:"vc-multivalue__error mt-1"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(c)),1)]),_:1})]):d.createCommentVNode("",!0)],2)}}});const VV={class:"text-[color:var(--notification-content-color)]"},Ab=d.defineComponent({__name:"vc-notification",props:{variant:{type:String,default:"info"},timeout:{type:Number,default:0}},emits:["dismiss","expired"],setup(t,{emit:e}){const n=t;function r(l,f){let a,c,h=f;function p(){window.clearTimeout(a),h-=Date.now()-c}function m(){c=Date.now(),window.clearTimeout(a),a=window.setTimeout(l,h)}function g(){h=f,m()}return{pause:p,resume:m,start:g}}const s=r(()=>e("expired"),n.timeout);n.timeout&&s.start();function i(){s.pause()}function o(){n.timeout&&s.resume()}function u(){s.pause(),e("dismiss")}return(l,f)=>(d.openBlock(),d.createElementBlock("div",{class:"vc-notification flex items-center mt-1 mb-3 mx-2 bg-[color:var(--notification-background)] border border-solid border-[color:#eef0f2] box-border shadow-[2px_2px_11px_rgba(126,142,157,0.4)] rounded-[var(--notification-border-radius)] overflow-hidden py-2 px-4 max-w-[600px]",onMouseenter:i,onMouseleave:o},[d.createElementVNode("div",VV,[d.renderSlot(l.$slots,"default")]),d.createVNode(d.unref(ke),{icon:"fas fa-times",class:"cursor-pointer text-[color:var(--notification-dismiss-color)] ml-2",size:"s",onClick:u})],32))}});const WV={class:"vc-pagination flex"},UV={class:"vc-pagination__item vc-pagination__item_current"},_d=d.defineComponent({__name:"vc-pagination",props:{expanded:{type:Boolean,default:!1},pages:{type:Number,default:1},currentPage:{type:Number,default:1}},emits:["itemClick"],setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("div",WV,[d.createElementVNode("div",{class:d.normalizeClass(["vc-pagination__item",{"vc-pagination__item_disabled":t.currentPage===1}]),onClick:n[0]||(n[0]=r=>t.currentPage!==1&&e.$emit("itemClick",1))},[d.createVNode(d.unref(ke),{size:"xs",icon:"fas fa-angle-double-left"})],2),d.createElementVNode("div",{class:d.normalizeClass(["vc-pagination__item",{"vc-pagination__item_disabled":t.currentPage===1}]),onClick:n[1]||(n[1]=r=>t.currentPage!==1&&e.$emit("itemClick",t.currentPage-1))},[d.createVNode(d.unref(ke),{size:"xs",icon:"fas fa-arrow-left"})],2),t.expanded&&e.$isDesktop.value?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[t.currentPage>2?(d.openBlock(),d.createElementBlock("div",{key:0,class:"vc-pagination__item",onClick:n[2]||(n[2]=r=>e.$emit("itemClick",t.currentPage-2))},d.toDisplayString(t.currentPage-2),1)):d.createCommentVNode("",!0),t.currentPage>1?(d.openBlock(),d.createElementBlock("div",{key:1,class:"vc-pagination__item",onClick:n[3]||(n[3]=r=>e.$emit("itemClick",t.currentPage-1))},d.toDisplayString(t.currentPage-1),1)):d.createCommentVNode("",!0)],64)):d.createCommentVNode("",!0),d.createElementVNode("div",UV,d.toDisplayString(t.currentPage),1),t.expanded&&e.$isDesktop.value?(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[t.currentPage<t.pages?(d.openBlock(),d.createElementBlock("div",{key:0,class:"vc-pagination__item",onClick:n[4]||(n[4]=r=>e.$emit("itemClick",t.currentPage+1))},d.toDisplayString(t.currentPage+1),1)):d.createCommentVNode("",!0),t.currentPage<t.pages-1?(d.openBlock(),d.createElementBlock("div",{key:1,class:"vc-pagination__item",onClick:n[5]||(n[5]=r=>e.$emit("itemClick",t.currentPage+2))},d.toDisplayString(t.currentPage+2),1)):d.createCommentVNode("",!0)],64)):d.createCommentVNode("",!0),d.createElementVNode("div",{class:d.normalizeClass(["vc-pagination__item",{"vc-pagination__item_disabled":t.currentPage===t.pages}]),onClick:n[6]||(n[6]=r=>t.currentPage!==t.pages&&e.$emit("itemClick",t.currentPage+1))},[d.createVNode(d.unref(ke),{size:"xs",icon:"fas fa-arrow-right"})],2),d.createElementVNode("div",{class:d.normalizeClass(["vc-pagination__item",{"vc-pagination__item_disabled":t.currentPage===t.pages}]),onClick:n[7]||(n[7]=r=>t.currentPage!==t.pages&&e.$emit("itemClick",t.pages))},[d.createVNode(d.unref(ke),{size:"xs",icon:"fas fa-angle-double-right"})],2)]))}});const HV={class:"vc-rating"},jV=["innerHTML"],zV={class:"vc-rating__rating"},GV={key:2,class:"vc-rating__placeholder"},Ob=d.defineComponent({__name:"vc-rating",props:{label:null,placeholder:null,tooltip:null,rating:null,max:{default:5},variant:{default:"stars"}},setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("div",HV,[t.label?(d.openBlock(),d.createBlock(d.unref(br),{key:0,class:"mb-2"},d.createSlots({default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(t.label),1)]),_:2},[t.tooltip?{name:"tooltip",fn:d.withCtx(()=>[d.createElementVNode("span",{innerHTML:t.tooltip},null,8,jV)]),key:"0"}:void 0]),1024)):d.createCommentVNode("",!0),t.rating?(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[t.variant=="stars"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.rating,r=>(d.openBlock(),d.createBlock(d.unref(ke),{key:r,icon:"fas fa-star",class:"vc-rating__icon"}))),128)),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.max-t.rating,r=>(d.openBlock(),d.createBlock(d.unref(ke),{key:r,icon:"far fa-star",class:"vc-rating__icon"}))),128))],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[t.variant=="star-and-text"?(d.openBlock(),d.createBlock(d.unref(ke),{key:0,icon:"fas fa-star",class:"vc-rating__icon"})):d.createCommentVNode("",!0),d.createElementVNode("span",zV,d.toDisplayString(t.rating)+"/"+d.toDisplayString(t.max),1),d.renderSlot(e.$slots,"details")],64))],64)):(d.openBlock(),d.createElementBlock("span",GV))]))}});const YV=["innerHTML"],JV=["onClick"],KV={key:0,class:"text-[#a5a5a5]"},XV=["onClick"],qV=["onClick"],Lb=d.defineComponent({__name:"vc-select",props:{modelValue:{type:[String,Number],default:void 0},placeholder:{type:String,default:"Click to select..."},options:{type:Array,default:()=>[]},isRequired:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isSearchable:{type:Boolean,default:!1},label:{type:String,default:void 0},tooltip:{type:String,default:void 0},keyProperty:{type:String,default:"id"},displayProperty:{type:String,default:"title"},initialItem:{type:Object,default:void 0},name:{type:String,default:"Field"},clearable:{type:Boolean,default:!0},optionsTotal:{type:Number,default:0},onInfiniteScroll:{type:Function,default:void 0}},emits:["update:modelValue","change","close","search"],setup(t,{emit:e}){const n=t,r=d.getCurrentInstance(),s=d.ref(!1),i=d.ref(),o=d.ref(),u=d.ref(),l=d.ref(),f=d.ref();d.ref(!1);const a=d.ref(),c=new IntersectionObserver(b),h=d.computed(()=>{var C;return((C=n.options)==null?void 0:C.find(T=>T[n.keyProperty]===n.modelValue))||n.initialItem}),p=d.computed(()=>n.options.length<n.optionsTotal),{errorMessage:m,handleChange:g}=_t.useField(`${(r==null?void 0:r.uid)||n.name}`,n.isRequired?"required":"",{initialValue:n.modelValue});d.watch(()=>n.modelValue,C=>{g(C)});function v(){var C;c.disconnect(),s.value=!1,(C=o.value)==null||C.destroy(),f.value.style.borderRadius="var(--select-border-radius)",e("close")}async function w(){n.isDisabled||(s.value?v():(s.value=!0,p.value&&(await d.nextTick(),c.observe(a.value)),await d.nextTick(()=>{var C;(C=i==null?void 0:i.value)==null||C.focus(),o.value=ns(u.value,l.value,{placement:"bottom",modifiers:[{name:"flip",options:{fallbackPlacements:["top","bottom"]}},{name:"preventOverflow",options:{mainAxis:!1}},{name:"sameWidthChangeBorders",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:T})=>{T.placement==="top"?(T.styles.popper.borderTop="1px solid var(--select-border-color)",T.styles.popper.borderBottom="1px solid var(--select-background-color)",T.styles.popper.borderRadius="var(--select-border-radius) var(--select-border-radius) 0 0",f.value.style.borderRadius="0 0 var(--select-border-radius) var(--select-border-radius)"):(T.styles.popper.borderBottom="1px solid var(--select-border-color)",T.styles.popper.borderTop="1px solid var(--select-background-color)",T.styles.popper.borderRadius="0 0 var(--select-border-radius) var(--select-border-radius)",f.value&&(f.value.style.borderRadius="var(--select-border-radius) var(--select-border-radius) 0 0")),T.styles.popper.width=`${T.rects.reference.width+2}px`},effect:({state:T})=>{const k=T.elements.reference;T.placement==="top"?(T.elements.popper.style.borderTop="1px solid var(--select-border-color)",T.elements.popper.style.borderBottom="1px solid var(--select-background-color)",T.elements.popper.style.borderRadius="var(--select-border-radius) var(--select-border-radius) 0 0",f.value.style.borderRadius="0 0 var(--select-border-radius) var(--select-border-radius)"):(T.elements.popper.style.borderBottom="1px solid var(--select-border-color)",T.elements.popper.style.borderTop="1px solid var(--select-background-color)",T.elements.popper.style.borderRadius="0 0 var(--select-border-radius) var(--select-border-radius)",f.value&&(f.value.style.borderRadius="var(--select-border-radius) var(--select-border-radius) 0 0")),T.elements.popper.style.width=`${k.offsetWidth+2}px`}},{name:"offset",options:{offset:[0,0]}}]})})))}function _(C){e("update:modelValue",C[n.keyProperty]),e("change",C[n.keyProperty]),e("close"),s.value=!1}function $(C){e("search",C.target.value)}function x(){e("update:modelValue","")}async function b([{isIntersecting:C,target:T}]){var k;if(C&&n.onInfiniteScroll&&typeof n.onInfiniteScroll=="function"){const S=T.offsetParent,y=(k=T.offsetParent)==null?void 0:k.scrollTop;await n.onInfiniteScroll(),await d.nextTick(),S.scrollTop=y}}return(C,T)=>{const k=d.resolveComponent("VcHint");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-select box-border",{"vc-select_opened":s.value,"vc-select_error":d.unref(m),"vc-select_disabled":t.isDisabled}])},[t.label?(d.openBlock(),d.createBlock(d.unref(br),{key:0,class:"mb-2",required:t.isRequired},d.createSlots({default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(t.label),1)]),_:2},[t.tooltip?{name:"tooltip",fn:d.withCtx(()=>[d.createElementVNode("span",{innerHTML:t.tooltip},null,8,YV)]),key:"0"}:void 0]),1032,["required"])):d.createCommentVNode("",!0),d.createElementVNode("div",{class:"vc-select__field-wrapper relative box-border border border-solid border-[color:var(--select-border-color)] rounded-[var(--select-border-radius)] bg-[color:var(--select-background-color)] flex items-stretch",ref_key:"inputFieldWrapRef",ref:f},[d.createElementVNode("div",{class:"w-full appearance-none border-none outline-none min-h-[var(--select-height)] px-3 flex items-center w-full box-border box-border cursor-pointer invalid:text-[color:var(--select-placeholder-color)] overflow-hidden",onClick:d.withModifiers(w,["stop"]),ref_key:"dropdownToggleRef",ref:u},[d.unref(h)?C.$slots.selectedItem?d.renderSlot(C.$slots,"selectedItem",{key:1,item:d.unref(h)}):d.renderSlot(C.$slots,"item",{key:2,item:d.unref(h)},()=>[d.createTextVNode(d.toDisplayString(d.unref(h)[t.displayProperty]),1)]):(d.openBlock(),d.createElementBlock("div",KV,d.toDisplayString(t.placeholder),1))],8,JV),t.isDisabled?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",{key:0,class:"vc-select__chevron absolute right-0 top-0 h-full cursor-pointer px-3 flex items-center text-[color:var(--select-chevron-color)] hover:text-[color:var(--select-chevron-color-hover)]",onClick:d.withModifiers(w,["stop"])},[d.createVNode(d.unref(ke),{size:"s",icon:"fas fa-chevron-down"})],8,XV)),(d.openBlock(),d.createBlock(d.Teleport,{to:"#app"},[s.value?d.withDirectives((d.openBlock(),d.createElementBlock("div",{key:0,class:"flex flex-col box-border max-h-[300px] z-10 overflow-hidden absolute bg-[color:var(--select-background-color)] border border-solid border-[color:var(--select-border-color)] border-t-[color:var(--select-background-color)] rounded-b-[var(--select-border-radius)] p-2",ref_key:"dropdownRef",ref:l},[t.isSearchable?(d.openBlock(),d.createElementBlock("input",{key:0,ref_key:"search",ref:i,class:"w-full box-border border border-solid border-[#eaecf2] rounded-[4px] h-[32px] leading-[32px] outline-none mb-3 px-2",onInput:$},null,544)):d.createCommentVNode("",!0),d.createVNode(d.unref(ts),{"no-padding":!0},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.options,(S,y)=>(d.openBlock(),d.createElementBlock("div",{class:"flex items-center min-h-[36px] px-2 rounded-[3px] cursor-pointer hover:bg-[#eff7fc]",key:y,onClick:E=>_(S)},[d.renderSlot(C.$slots,"item",{item:S},()=>[d.createTextVNode(d.toDisplayString(S[t.displayProperty]),1)])],8,qV))),128)),d.withDirectives(d.createElementVNode("div",{ref_key:"load",ref:a,class:"text-center"}," Loading... ",512),[[d.vShow,d.unref(p)]])]),_:3})])),[[d.unref(Do),v]]):d.createCommentVNode("",!0)])),t.clearable&&t.modelValue&&!t.isDisabled?(d.openBlock(),d.createElementBlock("div",{key:1,class:"vc-select__clear",onClick:x},[d.createVNode(d.unref(ke),{size:"s",icon:"fas fa-times"})])):d.createCommentVNode("",!0)],512),d.unref(m)?d.renderSlot(C.$slots,"error",{key:1},()=>[d.createVNode(k,{class:"text-[color:var(--select-border-color-error)] mt-1"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(m)),1)]),_:1})]):d.createCommentVNode("",!0)],2)}}});function nm(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function xd(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){typeof t[n]>"u"?t[n]=e[n]:nm(e[n])&&nm(t[n])&&Object.keys(e[n]).length>0&&xd(t[n],e[n])})}var Rb={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Xt(){var t=typeof document<"u"?document:{};return xd(t,Rb),t}var ZV={document:Rb,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout>"u"||clearTimeout(t)}};function St(){var t=typeof window<"u"?window:{};return xd(t,ZV),t}function QV(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function wu(t){return wu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wu(t)}function $a(t,e){return $a=Object.setPrototypeOf||function(r,s){return r.__proto__=s,r},$a(t,e)}function eW(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function sa(t,e,n){return eW()?sa=Reflect.construct:sa=function(s,i,o){var u=[null];u.push.apply(u,i);var l=Function.bind.apply(s,u),f=new l;return o&&$a(f,o.prototype),f},sa.apply(null,arguments)}function tW(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Su(t){var e=typeof Map=="function"?new Map:void 0;return Su=function(r){if(r===null||!tW(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,s)}function s(){return sa(r,arguments,wu(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),$a(s,r)},Su(t)}function nW(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rW(t){var e=t.__proto__;Object.defineProperty(t,"__proto__",{get:function(){return e},set:function(r){e.__proto__=r}})}var Nr=function(t){QV(e,t);function e(n){var r;return r=t.call.apply(t,[this].concat(n))||this,rW(nW(r)),r}return e}(Su(Array));function Po(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,Po(n)):e.push(n)}),e}function Mb(t,e){return Array.prototype.filter.call(t,e)}function iW(t){for(var e=[],n=0;n<t.length;n+=1)e.indexOf(t[n])===-1&&e.push(t[n]);return e}function sW(t,e){if(typeof t!="string")return[t];for(var n=[],r=e.querySelectorAll(t),s=0;s<r.length;s+=1)n.push(r[s]);return n}function he(t,e){var n=St(),r=Xt(),s=[];if(!e&&t instanceof Nr)return t;if(!t)return new Nr(s);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var o="div";i.indexOf("<li")===0&&(o="ul"),i.indexOf("<tr")===0&&(o="tbody"),(i.indexOf("<td")===0||i.indexOf("<th")===0)&&(o="tr"),i.indexOf("<tbody")===0&&(o="table"),i.indexOf("<option")===0&&(o="select");var u=r.createElement(o);u.innerHTML=i;for(var l=0;l<u.childNodes.length;l+=1)s.push(u.childNodes[l])}else s=sW(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)s.push(t);else if(Array.isArray(t)){if(t instanceof Nr)return t;s=t}return new Nr(iW(s))}he.fn=Nr.prototype;function oW(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Po(e.map(function(s){return s.split(" ")}));return this.forEach(function(s){var i;(i=s.classList).add.apply(i,r)}),this}function aW(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Po(e.map(function(s){return s.split(" ")}));return this.forEach(function(s){var i;(i=s.classList).remove.apply(i,r)}),this}function lW(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Po(e.map(function(s){return s.split(" ")}));this.forEach(function(s){r.forEach(function(i){s.classList.toggle(i)})})}function cW(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Po(e.map(function(s){return s.split(" ")}));return Mb(this,function(s){return r.filter(function(i){return s.classList.contains(i)}).length>0}).length>0}function uW(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this}function hW(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function dW(t){for(var e=0;e<this.length;e+=1)this[e].style.transform=t;return this}function fW(t){for(var e=0;e<this.length;e+=1)this[e].style.transitionDuration=typeof t!="string"?t+"ms":t;return this}function pW(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],s=e[1],i=e[2],o=e[3];typeof e[1]=="function"&&(r=e[0],i=e[1],o=e[2],s=void 0),o||(o=!1);function u(g){var v=g.target;if(!!v){var w=g.target.dom7EventData||[];if(w.indexOf(g)<0&&w.unshift(g),he(v).is(s))i.apply(v,w);else for(var _=he(v).parents(),$=0;$<_.length;$+=1)he(_[$]).is(s)&&i.apply(_[$],w)}}function l(g){var v=g&&g.target?g.target.dom7EventData||[]:[];v.indexOf(g)<0&&v.unshift(g),i.apply(this,v)}for(var f=r.split(" "),a,c=0;c<this.length;c+=1){var h=this[c];if(s)for(a=0;a<f.length;a+=1){var m=f[a];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[m]||(h.dom7LiveListeners[m]=[]),h.dom7LiveListeners[m].push({listener:i,proxyListener:u}),h.addEventListener(m,u,o)}else for(a=0;a<f.length;a+=1){var p=f[a];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[p]||(h.dom7Listeners[p]=[]),h.dom7Listeners[p].push({listener:i,proxyListener:l}),h.addEventListener(p,l,o)}}return this}function mW(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],s=e[1],i=e[2],o=e[3];typeof e[1]=="function"&&(r=e[0],i=e[1],o=e[2],s=void 0),o||(o=!1);for(var u=r.split(" "),l=0;l<u.length;l+=1)for(var f=u[l],a=0;a<this.length;a+=1){var c=this[a],h=void 0;if(!s&&c.dom7Listeners?h=c.dom7Listeners[f]:s&&c.dom7LiveListeners&&(h=c.dom7LiveListeners[f]),h&&h.length)for(var p=h.length-1;p>=0;p-=1){var m=h[p];i&&m.listener===i||i&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===i?(c.removeEventListener(f,m.proxyListener,o),h.splice(p,1)):i||(c.removeEventListener(f,m.proxyListener,o),h.splice(p,1))}}return this}function gW(){for(var t=St(),e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var s=n[0].split(" "),i=n[1],o=0;o<s.length;o+=1)for(var u=s[o],l=0;l<this.length;l+=1){var f=this[l];if(t.CustomEvent){var a=new t.CustomEvent(u,{detail:i,bubbles:!0,cancelable:!0});f.dom7EventData=n.filter(function(c,h){return h>0}),f.dispatchEvent(a),f.dom7EventData=[],delete f.dom7EventData}}return this}function vW(t){var e=this;function n(r){r.target===this&&(t.call(this,r),e.off("transitionend",n))}return t&&e.on("transitionend",n),this}function yW(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function bW(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function wW(){if(this.length>0){var t=St(),e=Xt(),n=this[0],r=n.getBoundingClientRect(),s=e.body,i=n.clientTop||s.clientTop||0,o=n.clientLeft||s.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,l=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+l-o}}return null}function SW(){var t=St();return this[0]?t.getComputedStyle(this[0],null):{}}function _W(t,e){var n=St(),r;if(arguments.length===1)if(typeof t=="string"){if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(t)}else{for(r=0;r<this.length;r+=1)for(var s in t)this[r].style[s]=t[s];return this}if(arguments.length===2&&typeof t=="string"){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this}function xW(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function CW(t){var e=Mb(this,t);return he(e)}function EW(t){if(typeof t>"u")return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function kW(t){if(typeof t>"u")return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function $W(t){var e=St(),n=Xt(),r=this[0],s,i;if(!r||typeof t>"u")return!1;if(typeof t=="string"){if(r.matches)return r.matches(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);for(s=he(t),i=0;i<s.length;i+=1)if(s[i]===r)return!0;return!1}if(t===n)return r===n;if(t===e)return r===e;if(t.nodeType||t instanceof Nr){for(s=t.nodeType?[t]:t,i=0;i<s.length;i+=1)if(s[i]===r)return!0;return!1}return!1}function TW(){var t=this[0],e;if(t){for(e=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(e+=1);return e}}function AW(t){if(typeof t>"u")return this;var e=this.length;if(t>e-1)return he([]);if(t<0){var n=e+t;return n<0?he([]):he([this[n]])}return he([this[t]])}function OW(){for(var t,e=Xt(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof t=="string"){var s=e.createElement("div");for(s.innerHTML=t;s.firstChild;)this[r].appendChild(s.firstChild)}else if(t instanceof Nr)for(var i=0;i<t.length;i+=1)this[r].appendChild(t[i]);else this[r].appendChild(t)}return this}function LW(t){var e=Xt(),n,r;for(n=0;n<this.length;n+=1)if(typeof t=="string"){var s=e.createElement("div");for(s.innerHTML=t,r=s.childNodes.length-1;r>=0;r-=1)this[n].insertBefore(s.childNodes[r],this[n].childNodes[0])}else if(t instanceof Nr)for(r=0;r<t.length;r+=1)this[n].insertBefore(t[r],this[n].childNodes[0]);else this[n].insertBefore(t,this[n].childNodes[0]);return this}function RW(t){return this.length>0?t?this[0].nextElementSibling&&he(this[0].nextElementSibling).is(t)?he([this[0].nextElementSibling]):he([]):this[0].nextElementSibling?he([this[0].nextElementSibling]):he([]):he([])}function MW(t){var e=[],n=this[0];if(!n)return he([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;t?he(r).is(t)&&e.push(r):e.push(r),n=r}return he(e)}function IW(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&he(e.previousElementSibling).is(t)?he([e.previousElementSibling]):he([]):e.previousElementSibling?he([e.previousElementSibling]):he([])}return he([])}function NW(t){var e=[],n=this[0];if(!n)return he([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;t?he(r).is(t)&&e.push(r):e.push(r),n=r}return he(e)}function DW(t){for(var e=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?he(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return he(e)}function PW(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)t?he(r).is(t)&&e.push(r):e.push(r),r=r.parentNode;return he(e)}function BW(t){var e=this;return typeof t>"u"?he([]):(e.is(t)||(e=e.parents(t).eq(0)),e)}function FW(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),s=0;s<r.length;s+=1)e.push(r[s]);return he(e)}function VW(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].children,s=0;s<r.length;s+=1)(!t||he(r[s]).is(t))&&e.push(r[s]);return he(e)}function WW(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}var rm={addClass:oW,removeClass:aW,hasClass:cW,toggleClass:lW,attr:uW,removeAttr:hW,transform:dW,transition:fW,on:pW,off:mW,trigger:gW,transitionEnd:vW,outerWidth:yW,outerHeight:bW,styles:SW,offset:wW,css:_W,each:xW,html:EW,text:kW,is:$W,index:TW,eq:AW,append:OW,prepend:LW,next:RW,nextAll:MW,prev:IW,prevAll:NW,parent:DW,parents:PW,closest:BW,find:FW,children:VW,filter:CW,remove:WW};Object.keys(rm).forEach(function(t){Object.defineProperty(he.fn,t,{value:rm[t],writable:!0})});function UW(t){var e=t;Object.keys(e).forEach(function(n){try{e[n]=null}catch{}try{delete e[n]}catch{}})}function _u(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Wr(){return Date.now()}function HW(t){var e=St(),n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function jW(t,e){e===void 0&&(e="x");var n=St(),r,s,i,o=HW(t);return n.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(function(u){return u.replace(",",".")}).join(", ")),i=new n.WebKitCSSMatrix(s==="none"?"":s)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?s=i.m41:r.length===16?s=parseFloat(r[12]):s=parseFloat(r[4])),e==="y"&&(n.WebKitCSSMatrix?s=i.m42:r.length===16?s=parseFloat(r[13]):s=parseFloat(r[5])),s||0}function Cs(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function zW(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function lt(){for(var t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"],n=1;n<arguments.length;n+=1){var r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!zW(r))for(var s=Object.keys(Object(r)).filter(function(f){return e.indexOf(f)<0}),i=0,o=s.length;i<o;i+=1){var u=s[i],l=Object.getOwnPropertyDescriptor(r,u);l!==void 0&&l.enumerable&&(Cs(t[u])&&Cs(r[u])?r[u].__swiper__?t[u]=r[u]:lt(t[u],r[u]):!Cs(t[u])&&Cs(r[u])?(t[u]={},r[u].__swiper__?t[u]=r[u]:lt(t[u],r[u])):t[u]=r[u])}}return t}function Ib(t,e){Object.keys(e).forEach(function(n){Cs(e[n])&&Object.keys(e[n]).forEach(function(r){typeof e[n][r]=="function"&&(e[n][r]=e[n][r].bind(t))}),t[n]=e[n]})}function GW(t,e,n,r){var s=Xt();return n&&Object.keys(r).forEach(function(i){if(!e[i]&&e.auto===!0){var o=s.createElement("div");o.className=r[i],t.append(o),e[i]=o}}),e}var _c;function YW(){var t=St(),e=Xt();return{touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!t.PointerEvent&&"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>=0,observer:function(){return"MutationObserver"in t||"WebkitMutationObserver"in t}(),passiveListener:function(){var r=!1;try{var s=Object.defineProperty({},"passive",{get:function(){r=!0}});t.addEventListener("testPassiveListener",null,s)}catch{}return r}(),gestures:function(){return"ongesturestart"in t}()}}function Nb(){return _c||(_c=YW()),_c}var xc;function JW(t){var e=t===void 0?{}:t,n=e.userAgent,r=Nb(),s=St(),i=s.navigator.platform,o=n||s.navigator.userAgent,u={ios:!1,android:!1},l=s.screen.width,f=s.screen.height,a=o.match(/(Android);?[\s\/]+([\d.]+)?/),c=o.match(/(iPad).*OS\s([\d_]+)/),h=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=i==="Win32",g=i==="MacIntel",v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&g&&r.touch&&v.indexOf(l+"x"+f)>=0&&(c=o.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),g=!1),a&&!m&&(u.os="android",u.android=!0),(c||p||h)&&(u.os="ios",u.ios=!0),u}function KW(t){return t===void 0&&(t={}),xc||(xc=JW(t)),xc}var Cc;function XW(){var t=St();function e(){var n=t.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:e(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function qW(){return Cc||(Cc=XW()),Cc}var ZW=function(){var e=St();return typeof e.ResizeObserver<"u"};const QW={name:"resize",create:function(){var e=this;lt(e,{resize:{observer:null,createObserver:function(){!e||e.destroyed||!e.initialized||(e.resize.observer=new ResizeObserver(function(r){var s=e.width,i=e.height,o=s,u=i;r.forEach(function(l){var f=l.contentBoxSize,a=l.contentRect,c=l.target;c&&c!==e.el||(o=a?a.width:(f[0]||f).inlineSize,u=a?a.height:(f[0]||f).blockSize)}),(o!==s||u!==i)&&e.resize.resizeHandler()}),e.resize.observer.observe(e.el))},removeObserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizeHandler:function(){!e||e.destroyed||!e.initialized||(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){!e||e.destroyed||!e.initialized||e.emit("orientationchange")}}})},on:{init:function(e){var n=St();if(e.params.resizeObserver&&ZW()){e.resize.createObserver();return}n.addEventListener("resize",e.resize.resizeHandler),n.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(e){var n=St();e.resize.removeObserver(),n.removeEventListener("resize",e.resize.resizeHandler),n.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function xu(){return xu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xu.apply(this,arguments)}var eU={attach:function(e,n){n===void 0&&(n={});var r=St(),s=this,i=r.MutationObserver||r.WebkitMutationObserver,o=new i(function(u){if(u.length===1){s.emit("observerUpdate",u[0]);return}var l=function(){s.emit("observerUpdate",u[0])};r.requestAnimationFrame?r.requestAnimationFrame(l):r.setTimeout(l,0)});o.observe(e,{attributes:typeof n.attributes>"u"?!0:n.attributes,childList:typeof n.childList>"u"?!0:n.childList,characterData:typeof n.characterData>"u"?!0:n.characterData}),s.observer.observers.push(o)},init:function(){var e=this;if(!(!e.support.observer||!e.params.observer)){if(e.params.observeParents)for(var n=e.$el.parents(),r=0;r<n.length;r+=1)e.observer.attach(n[r]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){var e=this;e.observer.observers.forEach(function(n){n.disconnect()}),e.observer.observers=[]}};const tU={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;Ib(e,{observer:xu({},eU,{observers:[]})})},on:{init:function(e){e.observer.init()},destroy:function(e){e.observer.destroy()}}},nU={useParams:function(e){var n=this;!n.modules||Object.keys(n.modules).forEach(function(r){var s=n.modules[r];s.params&&lt(e,s.params)})},useModules:function(e){e===void 0&&(e={});var n=this;!n.modules||Object.keys(n.modules).forEach(function(r){var s=n.modules[r],i=e[r]||{};s.on&&n.on&&Object.keys(s.on).forEach(function(o){n.on(o,s.on[o])}),s.create&&s.create.bind(n)(i)})}},rU={on:function(e,n,r){var s=this;if(typeof n!="function")return s;var i=r?"unshift":"push";return e.split(" ").forEach(function(o){s.eventsListeners[o]||(s.eventsListeners[o]=[]),s.eventsListeners[o][i](n)}),s},once:function(e,n,r){var s=this;if(typeof n!="function")return s;function i(){s.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var o=arguments.length,u=new Array(o),l=0;l<o;l++)u[l]=arguments[l];n.apply(s,u)}return i.__emitterProxy=n,s.on(e,i,r)},onAny:function(e,n){var r=this;if(typeof e!="function")return r;var s=n?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[s](e),r},offAny:function(e){var n=this;if(!n.eventsAnyListeners)return n;var r=n.eventsAnyListeners.indexOf(e);return r>=0&&n.eventsAnyListeners.splice(r,1),n},off:function(e,n){var r=this;return r.eventsListeners&&e.split(" ").forEach(function(s){typeof n>"u"?r.eventsListeners[s]=[]:r.eventsListeners[s]&&r.eventsListeners[s].forEach(function(i,o){(i===n||i.__emitterProxy&&i.__emitterProxy===n)&&r.eventsListeners[s].splice(o,1)})}),r},emit:function(){var e=this;if(!e.eventsListeners)return e;for(var n,r,s,i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];typeof o[0]=="string"||Array.isArray(o[0])?(n=o[0],r=o.slice(1,o.length),s=e):(n=o[0].events,r=o[0].data,s=o[0].context||e),r.unshift(s);var l=Array.isArray(n)?n:n.split(" ");return l.forEach(function(f){e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(function(a){a.apply(s,[f].concat(r))}),e.eventsListeners&&e.eventsListeners[f]&&e.eventsListeners[f].forEach(function(a){a.apply(s,r)})}),e}};function iU(){var t=this,e,n,r=t.$el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=r[0].clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=r[0].clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),n=n-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),lt(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function sU(){var t=this;function e(ue){return t.isHorizontal()?ue:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[ue]}function n(ue,ge){return parseFloat(ue.getPropertyValue(e(ge))||0)}var r=t.params,s=t.$wrapperEl,i=t.size,o=t.rtlTranslate,u=t.wrongRTL,l=t.virtual&&r.virtual.enabled,f=l?t.virtual.slides.length:t.slides.length,a=s.children("."+t.params.slideClass),c=l?t.virtual.slides.length:a.length,h=[],p=[],m=[],g=r.slidesOffsetBefore;typeof g=="function"&&(g=r.slidesOffsetBefore.call(t));var v=r.slidesOffsetAfter;typeof v=="function"&&(v=r.slidesOffsetAfter.call(t));var w=t.snapGrid.length,_=t.slidesGrid.length,$=r.spaceBetween,x=-g,b=0,C=0;if(!(typeof i>"u")){typeof $=="string"&&$.indexOf("%")>=0&&($=parseFloat($.replace("%",""))/100*i),t.virtualSize=-$,o?a.css({marginLeft:"",marginBottom:"",marginTop:""}):a.css({marginRight:"",marginBottom:"",marginTop:""});var T;r.slidesPerColumn>1&&(Math.floor(c/r.slidesPerColumn)===c/t.params.slidesPerColumn?T=c:T=Math.ceil(c/r.slidesPerColumn)*r.slidesPerColumn,r.slidesPerView!=="auto"&&r.slidesPerColumnFill==="row"&&(T=Math.max(T,r.slidesPerView*r.slidesPerColumn)));for(var k,S=r.slidesPerColumn,y=T/S,E=Math.floor(c/r.slidesPerColumn),A=0;A<c;A+=1){k=0;var O=a.eq(A);if(r.slidesPerColumn>1){var R=void 0,M=void 0,I=void 0;if(r.slidesPerColumnFill==="row"&&r.slidesPerGroup>1){var B=Math.floor(A/(r.slidesPerGroup*r.slidesPerColumn)),W=A-r.slidesPerColumn*r.slidesPerGroup*B,F=B===0?r.slidesPerGroup:Math.min(Math.ceil((c-B*S*r.slidesPerGroup)/S),r.slidesPerGroup);I=Math.floor(W/F),M=W-I*F+B*r.slidesPerGroup,R=M+I*T/S,O.css({"-webkit-box-ordinal-group":R,"-moz-box-ordinal-group":R,"-ms-flex-order":R,"-webkit-order":R,order:R})}else r.slidesPerColumnFill==="column"?(M=Math.floor(A/S),I=A-M*S,(M>E||M===E&&I===S-1)&&(I+=1,I>=S&&(I=0,M+=1))):(I=Math.floor(A/y),M=A-I*y);O.css(e("margin-top"),I!==0?r.spaceBetween&&r.spaceBetween+"px":"")}if(O.css("display")!=="none"){if(r.slidesPerView==="auto"){var j=getComputedStyle(O[0]),J=O[0].style.transform,Y=O[0].style.webkitTransform;if(J&&(O[0].style.transform="none"),Y&&(O[0].style.webkitTransform="none"),r.roundLengths)k=t.isHorizontal()?O.outerWidth(!0):O.outerHeight(!0);else{var U=n(j,"width"),G=n(j,"padding-left"),X=n(j,"padding-right"),Z=n(j,"margin-left"),te=n(j,"margin-right"),ie=j.getPropertyValue("box-sizing");if(ie&&ie==="border-box")k=U+Z+te;else{var de=O[0],ae=de.clientWidth,Ce=de.offsetWidth;k=U+G+X+Z+te+(Ce-ae)}}J&&(O[0].style.transform=J),Y&&(O[0].style.webkitTransform=Y),r.roundLengths&&(k=Math.floor(k))}else k=(i-(r.slidesPerView-1)*$)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),a[A]&&(a[A].style[e("width")]=k+"px");a[A]&&(a[A].swiperSlideSize=k),m.push(k),r.centeredSlides?(x=x+k/2+b/2+$,b===0&&A!==0&&(x=x-i/2-$),A===0&&(x=x-i/2-$),Math.abs(x)<1/1e3&&(x=0),r.roundLengths&&(x=Math.floor(x)),C%r.slidesPerGroup===0&&h.push(x),p.push(x)):(r.roundLengths&&(x=Math.floor(x)),(C-Math.min(t.params.slidesPerGroupSkip,C))%t.params.slidesPerGroup===0&&h.push(x),p.push(x),x=x+k+$),t.virtualSize+=k+$,b=k,C+=1}}t.virtualSize=Math.max(t.virtualSize,i)+v;var Re;if(o&&u&&(r.effect==="slide"||r.effect==="coverflow")&&s.css({width:t.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize){var P;s.css((P={},P[e("width")]=t.virtualSize+r.spaceBetween+"px",P))}if(r.slidesPerColumn>1){var D;if(t.virtualSize=(k+r.spaceBetween)*T,t.virtualSize=Math.ceil(t.virtualSize/r.slidesPerColumn)-r.spaceBetween,s.css((D={},D[e("width")]=t.virtualSize+r.spaceBetween+"px",D)),r.centeredSlides){Re=[];for(var z=0;z<h.length;z+=1){var ee=h[z];r.roundLengths&&(ee=Math.floor(ee)),h[z]<t.virtualSize+h[0]&&Re.push(ee)}h=Re}}if(!r.centeredSlides){Re=[];for(var fe=0;fe<h.length;fe+=1){var be=h[fe];r.roundLengths&&(be=Math.floor(be)),h[fe]<=t.virtualSize-i&&Re.push(be)}h=Re,Math.floor(t.virtualSize-i)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-i)}if(h.length===0&&(h=[0]),r.spaceBetween!==0){var mt,dt=t.isHorizontal()&&o?"marginLeft":e("marginRight");a.filter(function(ue,ge){return r.cssMode?ge!==a.length-1:!0}).css((mt={},mt[dt]=$+"px",mt))}if(r.centeredSlides&&r.centeredSlidesBounds){var q=0;m.forEach(function(ue){q+=ue+(r.spaceBetween?r.spaceBetween:0)}),q-=r.spaceBetween;var ne=q-i;h=h.map(function(ue){return ue<0?-g:ue>ne?ne+v:ue})}if(r.centerInsufficientSlides){var H=0;if(m.forEach(function(ue){H+=ue+(r.spaceBetween?r.spaceBetween:0)}),H-=r.spaceBetween,H<i){var K=(i-H)/2;h.forEach(function(ue,ge){h[ge]=ue-K}),p.forEach(function(ue,ge){p[ge]=ue+K})}}lt(t,{slides:a,snapGrid:h,slidesGrid:p,slidesSizesGrid:m}),c!==f&&t.emit("slidesLengthChange"),h.length!==w&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==_&&t.emit("slidesGridLengthChange"),(r.watchSlidesProgress||r.watchSlidesVisibility)&&t.updateSlidesOffset()}}function oU(t){var e=this,n=[],r=e.virtual&&e.params.virtual.enabled,s=0,i;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);var o=function(a){return r?e.slides.filter(function(c){return parseInt(c.getAttribute("data-swiper-slide-index"),10)===a})[0]:e.slides.eq(a)[0]};if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each(function(f){n.push(f)});else for(i=0;i<Math.ceil(e.params.slidesPerView);i+=1){var u=e.activeIndex+i;if(u>e.slides.length&&!r)break;n.push(o(u))}else n.push(o(e.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){var l=n[i].offsetHeight;s=l>s?l:s}s&&e.$wrapperEl.css("height",s+"px")}function aU(){for(var t=this,e=t.slides,n=0;n<e.length;n+=1)e[n].swiperSlideOffset=t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop}function lU(t){t===void 0&&(t=this&&this.translate||0);var e=this,n=e.params,r=e.slides,s=e.rtlTranslate;if(r.length!==0){typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();var i=-t;s&&(i=t),r.removeClass(n.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(var o=0;o<r.length;o+=1){var u=r[o],l=(i+(n.centeredSlides?e.minTranslate():0)-u.swiperSlideOffset)/(u.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight){var f=-(i-u.swiperSlideOffset),a=f+e.slidesSizesGrid[o],c=f>=0&&f<e.size-1||a>1&&a<=e.size||f<=0&&a>=e.size;c&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(o),r.eq(o).addClass(n.slideVisibleClass))}u.progress=s?-l:l}e.visibleSlides=he(e.visibleSlides)}}function cU(t){var e=this;if(typeof t>"u"){var n=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*n||0}var r=e.params,s=e.maxTranslate()-e.minTranslate(),i=e.progress,o=e.isBeginning,u=e.isEnd,l=o,f=u;s===0?(i=0,o=!0,u=!0):(i=(t-e.minTranslate())/s,o=i<=0,u=i>=1),lt(e,{progress:i,isBeginning:o,isEnd:u}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&e.updateSlidesProgress(t),o&&!l&&e.emit("reachBeginning toEdge"),u&&!f&&e.emit("reachEnd toEdge"),(l&&!o||f&&!u)&&e.emit("fromEdge"),e.emit("progress",i)}function uU(){var t=this,e=t.slides,n=t.params,r=t.$wrapperEl,s=t.activeIndex,i=t.realIndex,o=t.virtual&&n.virtual.enabled;e.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass);var u;o?u=t.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+s+'"]'):u=e.eq(s),u.addClass(n.slideActiveClass),n.loop&&(u.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+i+'"]').addClass(n.slideDuplicateActiveClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+i+'"]').addClass(n.slideDuplicateActiveClass));var l=u.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);n.loop&&l.length===0&&(l=e.eq(0),l.addClass(n.slideNextClass));var f=u.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);n.loop&&f.length===0&&(f=e.eq(-1),f.addClass(n.slidePrevClass)),n.loop&&(l.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),f.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+f.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+f.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass)),t.emitSlidesClasses()}function hU(t){var e=this,n=e.rtlTranslate?e.translate:-e.translate,r=e.slidesGrid,s=e.snapGrid,i=e.params,o=e.activeIndex,u=e.realIndex,l=e.snapIndex,f=t,a;if(typeof f>"u"){for(var c=0;c<r.length;c+=1)typeof r[c+1]<"u"?n>=r[c]&&n<r[c+1]-(r[c+1]-r[c])/2?f=c:n>=r[c]&&n<r[c+1]&&(f=c+1):n>=r[c]&&(f=c);i.normalizeSlideIndex&&(f<0||typeof f>"u")&&(f=0)}if(s.indexOf(n)>=0)a=s.indexOf(n);else{var h=Math.min(i.slidesPerGroupSkip,f);a=h+Math.floor((f-h)/i.slidesPerGroup)}if(a>=s.length&&(a=s.length-1),f===o){a!==l&&(e.snapIndex=a,e.emit("snapIndexChange"));return}var p=parseInt(e.slides.eq(f).attr("data-swiper-slide-index")||f,10);lt(e,{snapIndex:a,realIndex:p,previousIndex:o,activeIndex:f}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),u!==p&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function dU(t){var e=this,n=e.params,r=he(t.target).closest("."+n.slideClass)[0],s=!1,i;if(r){for(var o=0;o<e.slides.length;o+=1)if(e.slides[o]===r){s=!0,i=o;break}}if(r&&s)e.clickedSlide=r,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(he(r).attr("data-swiper-slide-index"),10):e.clickedIndex=i;else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}n.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}const fU={updateSize:iU,updateSlides:sU,updateAutoHeight:oU,updateSlidesOffset:aU,updateSlidesProgress:lU,updateProgress:cU,updateSlidesClasses:uU,updateActiveIndex:hU,updateClickedSlide:dU};function pU(t){t===void 0&&(t=this.isHorizontal()?"x":"y");var e=this,n=e.params,r=e.rtlTranslate,s=e.translate,i=e.$wrapperEl;if(n.virtualTranslate)return r?-s:s;if(n.cssMode)return s;var o=jW(i[0],t);return r&&(o=-o),o||0}function mU(t,e){var n=this,r=n.rtlTranslate,s=n.params,i=n.$wrapperEl,o=n.wrapperEl,u=n.progress,l=0,f=0,a=0;n.isHorizontal()?l=r?-t:t:f=t,s.roundLengths&&(l=Math.floor(l),f=Math.floor(f)),s.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-f:s.virtualTranslate||i.transform("translate3d("+l+"px, "+f+"px, "+a+"px)"),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:f;var c,h=n.maxTranslate()-n.minTranslate();h===0?c=0:c=(t-n.minTranslate())/h,c!==u&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function gU(){return-this.snapGrid[0]}function vU(){return-this.snapGrid[this.snapGrid.length-1]}function yU(t,e,n,r,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),r===void 0&&(r=!0);var i=this,o=i.params,u=i.wrapperEl;if(i.animating&&o.preventInteractionOnTransition)return!1;var l=i.minTranslate(),f=i.maxTranslate(),a;if(r&&t>l?a=l:r&&t<f?a=f:a=t,i.updateProgress(a),o.cssMode){var c=i.isHorizontal();if(e===0)u[c?"scrollLeft":"scrollTop"]=-a;else if(u.scrollTo){var h;u.scrollTo((h={},h[c?"left":"top"]=-a,h.behavior="smooth",h))}else u[c?"scrollLeft":"scrollTop"]=-a;return!0}return e===0?(i.setTransition(0),i.setTranslate(a),n&&(i.emit("beforeTransitionStart",e,s),i.emit("transitionEnd"))):(i.setTransition(e),i.setTranslate(a),n&&(i.emit("beforeTransitionStart",e,s),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(m){!i||i.destroyed||m.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,n&&i.emit("transitionEnd"))}),i.$wrapperEl[0].addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onTranslateToWrapperTransitionEnd))),!0}const bU={getTranslate:pU,setTranslate:mU,minTranslate:gU,maxTranslate:vU,translateTo:yU};function wU(t,e){var n=this;n.params.cssMode||n.$wrapperEl.transition(t),n.emit("setTransition",t,e)}function SU(t,e){t===void 0&&(t=!0);var n=this,r=n.activeIndex,s=n.params,i=n.previousIndex;if(!s.cssMode){s.autoHeight&&n.updateAutoHeight();var o=e;if(o||(r>i?o="next":r<i?o="prev":o="reset"),n.emit("transitionStart"),t&&r!==i){if(o==="reset"){n.emit("slideResetTransitionStart");return}n.emit("slideChangeTransitionStart"),o==="next"?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}}function _U(t,e){t===void 0&&(t=!0);var n=this,r=n.activeIndex,s=n.previousIndex,i=n.params;if(n.animating=!1,!i.cssMode){n.setTransition(0);var o=e;if(o||(r>s?o="next":r<s?o="prev":o="reset"),n.emit("transitionEnd"),t&&r!==s){if(o==="reset"){n.emit("slideResetTransitionEnd");return}n.emit("slideChangeTransitionEnd"),o==="next"?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}}const xU={setTransition:wU,transitionStart:SU,transitionEnd:_U};function CU(t,e,n,r,s){if(t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),typeof t!="number"&&typeof t!="string")throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof t+"] given.");if(typeof t=="string"){var i=parseInt(t,10),o=isFinite(i);if(!o)throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+t+"] given.");t=i}var u=this,l=t;l<0&&(l=0);var f=u.params,a=u.snapGrid,c=u.slidesGrid,h=u.previousIndex,p=u.activeIndex,m=u.rtlTranslate,g=u.wrapperEl,v=u.enabled;if(u.animating&&f.preventInteractionOnTransition||!v&&!r&&!s)return!1;var w=Math.min(u.params.slidesPerGroupSkip,l),_=w+Math.floor((l-w)/u.params.slidesPerGroup);_>=a.length&&(_=a.length-1),(p||f.initialSlide||0)===(h||0)&&n&&u.emit("beforeSlideChangeStart");var $=-a[_];if(u.updateProgress($),f.normalizeSlideIndex)for(var x=0;x<c.length;x+=1){var b=-Math.floor($*100),C=Math.floor(c[x]*100),T=Math.floor(c[x+1]*100);typeof c[x+1]<"u"?b>=C&&b<T-(T-C)/2?l=x:b>=C&&b<T&&(l=x+1):b>=C&&(l=x)}if(u.initialized&&l!==p&&(!u.allowSlideNext&&$<u.translate&&$<u.minTranslate()||!u.allowSlidePrev&&$>u.translate&&$>u.maxTranslate()&&(p||0)!==l))return!1;var k;if(l>p?k="next":l<p?k="prev":k="reset",m&&-$===u.translate||!m&&$===u.translate)return u.updateActiveIndex(l),f.autoHeight&&u.updateAutoHeight(),u.updateSlidesClasses(),f.effect!=="slide"&&u.setTranslate($),k!=="reset"&&(u.transitionStart(n,k),u.transitionEnd(n,k)),!1;if(f.cssMode){var S=u.isHorizontal(),y=-$;if(m&&(y=g.scrollWidth-g.offsetWidth-y),e===0)g[S?"scrollLeft":"scrollTop"]=y;else if(g.scrollTo){var E;g.scrollTo((E={},E[S?"left":"top"]=y,E.behavior="smooth",E))}else g[S?"scrollLeft":"scrollTop"]=y;return!0}return e===0?(u.setTransition(0),u.setTranslate($),u.updateActiveIndex(l),u.updateSlidesClasses(),u.emit("beforeTransitionStart",e,r),u.transitionStart(n,k),u.transitionEnd(n,k)):(u.setTransition(e),u.setTranslate($),u.updateActiveIndex(l),u.updateSlidesClasses(),u.emit("beforeTransitionStart",e,r),u.transitionStart(n,k),u.animating||(u.animating=!0,u.onSlideToWrapperTransitionEnd||(u.onSlideToWrapperTransitionEnd=function(O){!u||u.destroyed||O.target===this&&(u.$wrapperEl[0].removeEventListener("transitionend",u.onSlideToWrapperTransitionEnd),u.$wrapperEl[0].removeEventListener("webkitTransitionEnd",u.onSlideToWrapperTransitionEnd),u.onSlideToWrapperTransitionEnd=null,delete u.onSlideToWrapperTransitionEnd,u.transitionEnd(n,k))}),u.$wrapperEl[0].addEventListener("transitionend",u.onSlideToWrapperTransitionEnd),u.$wrapperEl[0].addEventListener("webkitTransitionEnd",u.onSlideToWrapperTransitionEnd))),!0}function EU(t,e,n,r){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0);var s=this,i=t;return s.params.loop&&(i+=s.loopedSlides),s.slideTo(i,e,n,r)}function kU(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);var r=this,s=r.params,i=r.animating,o=r.enabled;if(!o)return r;var u=r.activeIndex<s.slidesPerGroupSkip?1:s.slidesPerGroup;if(s.loop){if(i&&s.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return r.slideTo(r.activeIndex+u,t,e,n)}function $U(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);var r=this,s=r.params,i=r.animating,o=r.snapGrid,u=r.slidesGrid,l=r.rtlTranslate,f=r.enabled;if(!f)return r;if(s.loop){if(i&&s.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var a=l?r.translate:-r.translate;function c(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}var h=c(a),p=o.map(function(v){return c(v)}),m=o[p.indexOf(h)-1];typeof m>"u"&&s.cssMode&&o.forEach(function(v){!m&&h>=v&&(m=v)});var g;return typeof m<"u"&&(g=u.indexOf(m),g<0&&(g=r.activeIndex-1)),r.slideTo(g,t,e,n)}function TU(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);var r=this;return r.slideTo(r.activeIndex,t,e,n)}function AU(t,e,n,r){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),r===void 0&&(r=.5);var s=this,i=s.activeIndex,o=Math.min(s.params.slidesPerGroupSkip,i),u=o+Math.floor((i-o)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[u]){var f=s.snapGrid[u],a=s.snapGrid[u+1];l-f>(a-f)*r&&(i+=s.params.slidesPerGroup)}else{var c=s.snapGrid[u-1],h=s.snapGrid[u];l-c<=(h-c)*r&&(i-=s.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,s.slidesGrid.length-1),s.slideTo(i,t,e,n)}function OU(){var t=this,e=t.params,n=t.$wrapperEl,r=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView,s=t.clickedIndex,i;if(e.loop){if(t.animating)return;i=parseInt(he(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?s<t.loopedSlides-r/2||s>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),s=n.children("."+e.slideClass+'[data-swiper-slide-index="'+i+'"]:not(.'+e.slideDuplicateClass+")").eq(0).index(),_u(function(){t.slideTo(s)})):t.slideTo(s):s>t.slides.length-r?(t.loopFix(),s=n.children("."+e.slideClass+'[data-swiper-slide-index="'+i+'"]:not(.'+e.slideDuplicateClass+")").eq(0).index(),_u(function(){t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}const LU={slideTo:CU,slideToLoop:EU,slideNext:kU,slidePrev:$U,slideReset:TU,slideToClosest:AU,slideToClickedSlide:OU};function RU(){var t=this,e=Xt(),n=t.params,r=t.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var s=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var i=n.slidesPerGroup-s.length%n.slidesPerGroup;if(i!==n.slidesPerGroup){for(var o=0;o<i;o+=1){var u=he(e.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);r.append(u)}s=r.children("."+n.slideClass)}}n.slidesPerView==="auto"&&!n.loopedSlides&&(n.loopedSlides=s.length),t.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>s.length&&(t.loopedSlides=s.length);var l=[],f=[];s.each(function(h,p){var m=he(h);p<t.loopedSlides&&f.push(h),p<s.length&&p>=s.length-t.loopedSlides&&l.push(h),m.attr("data-swiper-slide-index",p)});for(var a=0;a<f.length;a+=1)r.append(he(f[a].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var c=l.length-1;c>=0;c-=1)r.prepend(he(l[c].cloneNode(!0)).addClass(n.slideDuplicateClass))}function MU(){var t=this;t.emit("beforeLoopFix");var e=t.activeIndex,n=t.slides,r=t.loopedSlides,s=t.allowSlidePrev,i=t.allowSlideNext,o=t.snapGrid,u=t.rtlTranslate,l;t.allowSlidePrev=!0,t.allowSlideNext=!0;var f=-o[e],a=f-t.getTranslate();if(e<r){l=n.length-r*3+e,l+=r;var c=t.slideTo(l,0,!1,!0);c&&a!==0&&t.setTranslate((u?-t.translate:t.translate)-a)}else if(e>=n.length-r){l=-n.length+e+r,l+=r;var h=t.slideTo(l,0,!1,!0);h&&a!==0&&t.setTranslate((u?-t.translate:t.translate)-a)}t.allowSlidePrev=s,t.allowSlideNext=i,t.emit("loopFix")}function IU(){var t=this,e=t.$wrapperEl,n=t.params,r=t.slides;e.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}const NU={loopCreate:RU,loopFix:MU,loopDestroy:IU};function DU(t){var e=this;if(!(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)){var n=e.el;n.style.cursor="move",n.style.cursor=t?"-webkit-grabbing":"-webkit-grab",n.style.cursor=t?"-moz-grabbin":"-moz-grab",n.style.cursor=t?"grabbing":"grab"}}function PU(){var t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.el.style.cursor="")}const BU={setGrabCursor:DU,unsetGrabCursor:PU};function FU(t){var e=this,n=e.$wrapperEl,r=e.params;if(r.loop&&e.loopDestroy(),typeof t=="object"&&"length"in t)for(var s=0;s<t.length;s+=1)t[s]&&n.append(t[s]);else n.append(t);r.loop&&e.loopCreate(),r.observer&&e.support.observer||e.update()}function VU(t){var e=this,n=e.params,r=e.$wrapperEl,s=e.activeIndex;n.loop&&e.loopDestroy();var i=s+1;if(typeof t=="object"&&"length"in t){for(var o=0;o<t.length;o+=1)t[o]&&r.prepend(t[o]);i=s+t.length}else r.prepend(t);n.loop&&e.loopCreate(),n.observer&&e.support.observer||e.update(),e.slideTo(i,0,!1)}function WU(t,e){var n=this,r=n.$wrapperEl,s=n.params,i=n.activeIndex,o=i;s.loop&&(o-=n.loopedSlides,n.loopDestroy(),n.slides=r.children("."+s.slideClass));var u=n.slides.length;if(t<=0){n.prependSlide(e);return}if(t>=u){n.appendSlide(e);return}for(var l=o>t?o+1:o,f=[],a=u-1;a>=t;a-=1){var c=n.slides.eq(a);c.remove(),f.unshift(c)}if(typeof e=="object"&&"length"in e){for(var h=0;h<e.length;h+=1)e[h]&&r.append(e[h]);l=o>t?o+e.length:o}else r.append(e);for(var p=0;p<f.length;p+=1)r.append(f[p]);s.loop&&n.loopCreate(),s.observer&&n.support.observer||n.update(),s.loop?n.slideTo(l+n.loopedSlides,0,!1):n.slideTo(l,0,!1)}function UU(t){var e=this,n=e.params,r=e.$wrapperEl,s=e.activeIndex,i=s;n.loop&&(i-=e.loopedSlides,e.loopDestroy(),e.slides=r.children("."+n.slideClass));var o=i,u;if(typeof t=="object"&&"length"in t){for(var l=0;l<t.length;l+=1)u=t[l],e.slides[u]&&e.slides.eq(u).remove(),u<o&&(o-=1);o=Math.max(o,0)}else u=t,e.slides[u]&&e.slides.eq(u).remove(),u<o&&(o-=1),o=Math.max(o,0);n.loop&&e.loopCreate(),n.observer&&e.support.observer||e.update(),n.loop?e.slideTo(o+e.loopedSlides,0,!1):e.slideTo(o,0,!1)}function HU(){for(var t=this,e=[],n=0;n<t.slides.length;n+=1)e.push(n);t.removeSlide(e)}const jU={appendSlide:FU,prependSlide:VU,addSlide:WU,removeSlide:UU,removeAllSlides:HU};function zU(t,e){e===void 0&&(e=this);function n(r){if(!r||r===Xt()||r===St())return null;r.assignedSlot&&(r=r.assignedSlot);var s=r.closest(t);return s||n(r.getRootNode().host)}return n(e)}function GU(t){var e=this,n=Xt(),r=St(),s=e.touchEventsData,i=e.params,o=e.touches,u=e.enabled;if(!!u&&!(e.animating&&i.preventInteractionOnTransition)){var l=t;l.originalEvent&&(l=l.originalEvent);var f=he(l.target);if(!(i.touchEventsTarget==="wrapper"&&!f.closest(e.wrapperEl).length)&&(s.isTouchEvent=l.type==="touchstart",!(!s.isTouchEvent&&"which"in l&&l.which===3)&&!(!s.isTouchEvent&&"button"in l&&l.button>0)&&!(s.isTouched&&s.isMoved))){var a=!!i.noSwipingClass&&i.noSwipingClass!=="";a&&l.target&&l.target.shadowRoot&&t.path&&t.path[0]&&(f=he(t.path[0]));var c=i.noSwipingSelector?i.noSwipingSelector:"."+i.noSwipingClass,h=!!(l.target&&l.target.shadowRoot);if(i.noSwiping&&(h?zU(c,l.target):f.closest(c)[0])){e.allowClick=!0;return}if(!(i.swipeHandler&&!f.closest(i.swipeHandler)[0])){o.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX,o.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;var p=o.currentX,m=o.currentY,g=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,v=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(g&&(p<=v||p>=r.innerWidth-v))if(g==="prevent")t.preventDefault();else return;if(lt(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=m,s.touchStartTime=Wr(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,i.threshold>0&&(s.allowThresholdMove=!1),l.type!=="touchstart"){var w=!0;f.is(s.focusableElements)&&(w=!1),n.activeElement&&he(n.activeElement).is(s.focusableElements)&&n.activeElement!==f[0]&&n.activeElement.blur();var _=w&&e.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||_)&&!f[0].isContentEditable&&l.preventDefault()}e.emit("touchStart",l)}}}}function YU(t){var e=Xt(),n=this,r=n.touchEventsData,s=n.params,i=n.touches,o=n.rtlTranslate,u=n.enabled;if(!!u){var l=t;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}if(!(r.isTouchEvent&&l.type!=="touchmove")){var f=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),a=l.type==="touchmove"?f.pageX:l.pageX,c=l.type==="touchmove"?f.pageY:l.pageY;if(l.preventedByNestedSwiper){i.startX=a,i.startY=c;return}if(!n.allowTouchMove){n.allowClick=!1,r.isTouched&&(lt(i,{startX:a,startY:c,currentX:a,currentY:c}),r.touchStartTime=Wr());return}if(r.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop){if(n.isVertical()){if(c<i.startY&&n.translate<=n.maxTranslate()||c>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(a<i.startX&&n.translate<=n.maxTranslate()||a>i.startX&&n.translate>=n.minTranslate())return}if(r.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&he(l.target).is(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),!(l.targetTouches&&l.targetTouches.length>1)){i.currentX=a,i.currentY=c;var h=i.currentX-i.startX,p=i.currentY-i.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(h,2)+Math.pow(p,2))<n.params.threshold)){if(typeof r.isScrolling>"u"){var m;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:h*h+p*p>=25&&(m=Math.atan2(Math.abs(p),Math.abs(h))*180/Math.PI,r.isScrolling=n.isHorizontal()?m>s.touchAngle:90-m>s.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(!!r.startMoving){n.allowClick=!1,!s.cssMode&&l.cancelable&&l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation(),r.isMoved||(s.loop&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,s.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)),n.emit("sliderMove",l),r.isMoved=!0;var g=n.isHorizontal()?h:p;i.diff=g,g*=s.touchRatio,o&&(g=-g),n.swipeDirection=g>0?"prev":"next",r.currentTranslate=g+r.startTranslate;var v=!0,w=s.resistanceRatio;if(s.touchReleaseOnEdges&&(w=0),g>0&&r.currentTranslate>n.minTranslate()?(v=!1,s.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+g,w))):g<0&&r.currentTranslate<n.maxTranslate()&&(v=!1,s.resistance&&(r.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-r.startTranslate-g,w))),v&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),s.threshold>0)if(Math.abs(g)>s.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&(r.velocities.length===0&&r.velocities.push({position:i[n.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:i[n.isHorizontal()?"currentX":"currentY"],time:Wr()})),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}}}function JU(t){var e=this,n=e.touchEventsData,r=e.params,s=e.touches,i=e.rtlTranslate,o=e.$wrapperEl,u=e.slidesGrid,l=e.snapGrid,f=e.enabled;if(!!f){var a=t;if(a.originalEvent&&(a=a.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",a),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&r.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}r.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);var c=Wr(),h=c-n.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(a),e.emit("tap click",a),h<300&&c-n.lastClickTime<300&&e.emit("doubleTap doubleClick",a)),n.lastClickTime=Wr(),_u(function(){e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||s.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;var p;if(r.followFinger?p=i?e.translate:-e.translate:p=-n.currentTranslate,!r.cssMode){if(r.freeMode){if(p<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(p>-e.maxTranslate()){e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1);return}if(r.freeModeMomentum){if(n.velocities.length>1){var m=n.velocities.pop(),g=n.velocities.pop(),v=m.position-g.position,w=m.time-g.time;e.velocity=v/w,e.velocity/=2,Math.abs(e.velocity)<r.freeModeMinimumVelocity&&(e.velocity=0),(w>150||Wr()-m.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var _=1e3*r.freeModeMomentumRatio,$=e.velocity*_,x=e.translate+$;i&&(x=-x);var b=!1,C,T=Math.abs(e.velocity)*20*r.freeModeMomentumBounceRatio,k;if(x<e.maxTranslate())r.freeModeMomentumBounce?(x+e.maxTranslate()<-T&&(x=e.maxTranslate()-T),C=e.maxTranslate(),b=!0,n.allowMomentumBounce=!0):x=e.maxTranslate(),r.loop&&r.centeredSlides&&(k=!0);else if(x>e.minTranslate())r.freeModeMomentumBounce?(x-e.minTranslate()>T&&(x=e.minTranslate()+T),C=e.minTranslate(),b=!0,n.allowMomentumBounce=!0):x=e.minTranslate(),r.loop&&r.centeredSlides&&(k=!0);else if(r.freeModeSticky){for(var S,y=0;y<l.length;y+=1)if(l[y]>-x){S=y;break}Math.abs(l[S]-x)<Math.abs(l[S-1]-x)||e.swipeDirection==="next"?x=l[S]:x=l[S-1],x=-x}if(k&&e.once("transitionEnd",function(){e.loopFix()}),e.velocity!==0){if(i?_=Math.abs((-x-e.translate)/e.velocity):_=Math.abs((x-e.translate)/e.velocity),r.freeModeSticky){var E=Math.abs((i?-x:x)-e.translate),A=e.slidesSizesGrid[e.activeIndex];E<A?_=r.speed:E<2*A?_=r.speed*1.5:_=r.speed*2.5}}else if(r.freeModeSticky){e.slideToClosest();return}r.freeModeMomentumBounce&&b?(e.updateProgress(C),e.setTransition(_),e.setTranslate(x),e.transitionStart(!0,e.swipeDirection),e.animating=!0,o.transitionEnd(function(){!e||e.destroyed||!n.allowMomentumBounce||(e.emit("momentumBounce"),e.setTransition(r.speed),setTimeout(function(){e.setTranslate(C),o.transitionEnd(function(){!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(e.updateProgress(x),e.setTransition(_),e.setTranslate(x),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,o.transitionEnd(function(){!e||e.destroyed||e.transitionEnd()}))):(e.emit("_freeModeNoMomentumRelease"),e.updateProgress(x)),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeModeSticky){e.slideToClosest();return}else r.freeMode&&e.emit("_freeModeNoMomentumRelease");(!r.freeModeMomentum||h>=r.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses());return}for(var O=0,R=e.slidesSizesGrid[0],M=0;M<u.length;M+=M<r.slidesPerGroupSkip?1:r.slidesPerGroup){var I=M<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof u[M+I]<"u"?p>=u[M]&&p<u[M+I]&&(O=M,R=u[M+I]-u[M]):p>=u[M]&&(O=M,R=u[u.length-1]-u[u.length-2])}var B=(p-u[O])/R,W=O<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(h>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(B>=r.longSwipesRatio?e.slideTo(O+W):e.slideTo(O)),e.swipeDirection==="prev"&&(B>1-r.longSwipesRatio?e.slideTo(O+W):e.slideTo(O))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}var F=e.navigation&&(a.target===e.navigation.nextEl||a.target===e.navigation.prevEl);F?a.target===e.navigation.nextEl?e.slideTo(O+W):e.slideTo(O):(e.swipeDirection==="next"&&e.slideTo(O+W),e.swipeDirection==="prev"&&e.slideTo(O))}}}}function Cu(){var t=this,e=t.params,n=t.el;if(!(n&&n.offsetWidth===0)){e.breakpoints&&t.setBreakpoint();var r=t.allowSlideNext,s=t.allowSlidePrev,i=t.snapGrid;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=s,t.allowSlideNext=r,t.params.watchOverflow&&i!==t.snapGrid&&t.checkOverflow()}}function KU(t){var e=this;!e.enabled||e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function XU(){var t=this,e=t.wrapperEl,n=t.rtlTranslate,r=t.enabled;if(!!r){t.previousTranslate=t.translate,t.isHorizontal()?n?t.translate=e.scrollWidth-e.offsetWidth-e.scrollLeft:t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===-0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();var s,i=t.maxTranslate()-t.minTranslate();i===0?s=0:s=(t.translate-t.minTranslate())/i,s!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}}var im=!1;function qU(){}function ZU(){var t=this,e=Xt(),n=t.params,r=t.touchEvents,s=t.el,i=t.wrapperEl,o=t.device,u=t.support;t.onTouchStart=GU.bind(t),t.onTouchMove=YU.bind(t),t.onTouchEnd=JU.bind(t),n.cssMode&&(t.onScroll=XU.bind(t)),t.onClick=KU.bind(t);var l=!!n.nested;if(!u.touch&&u.pointerEvents)s.addEventListener(r.start,t.onTouchStart,!1),e.addEventListener(r.move,t.onTouchMove,l),e.addEventListener(r.end,t.onTouchEnd,!1);else{if(u.touch){var f=r.start==="touchstart"&&u.passiveListener&&n.passiveListeners?{passive:!0,capture:!1}:!1;s.addEventListener(r.start,t.onTouchStart,f),s.addEventListener(r.move,t.onTouchMove,u.passiveListener?{passive:!1,capture:l}:l),s.addEventListener(r.end,t.onTouchEnd,f),r.cancel&&s.addEventListener(r.cancel,t.onTouchEnd,f),im||(e.addEventListener("touchstart",qU),im=!0)}(n.simulateTouch&&!o.ios&&!o.android||n.simulateTouch&&!u.touch&&o.ios)&&(s.addEventListener("mousedown",t.onTouchStart,!1),e.addEventListener("mousemove",t.onTouchMove,l),e.addEventListener("mouseup",t.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&s.addEventListener("click",t.onClick,!0),n.cssMode&&i.addEventListener("scroll",t.onScroll),n.updateOnWindowResize?t.on(o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Cu,!0):t.on("observerUpdate",Cu,!0)}function QU(){var t=this,e=Xt(),n=t.params,r=t.touchEvents,s=t.el,i=t.wrapperEl,o=t.device,u=t.support,l=!!n.nested;if(!u.touch&&u.pointerEvents)s.removeEventListener(r.start,t.onTouchStart,!1),e.removeEventListener(r.move,t.onTouchMove,l),e.removeEventListener(r.end,t.onTouchEnd,!1);else{if(u.touch){var f=r.start==="onTouchStart"&&u.passiveListener&&n.passiveListeners?{passive:!0,capture:!1}:!1;s.removeEventListener(r.start,t.onTouchStart,f),s.removeEventListener(r.move,t.onTouchMove,l),s.removeEventListener(r.end,t.onTouchEnd,f),r.cancel&&s.removeEventListener(r.cancel,t.onTouchEnd,f)}(n.simulateTouch&&!o.ios&&!o.android||n.simulateTouch&&!u.touch&&o.ios)&&(s.removeEventListener("mousedown",t.onTouchStart,!1),e.removeEventListener("mousemove",t.onTouchMove,l),e.removeEventListener("mouseup",t.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&s.removeEventListener("click",t.onClick,!0),n.cssMode&&i.removeEventListener("scroll",t.onScroll),t.off(o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Cu)}const eH={attachEvents:ZU,detachEvents:QU};function tH(){var t=this,e=t.activeIndex,n=t.initialized,r=t.loopedSlides,s=r===void 0?0:r,i=t.params,o=t.$el,u=i.breakpoints;if(!(!u||u&&Object.keys(u).length===0)){var l=t.getBreakpoint(u,t.params.breakpointsBase,t.el);if(!(!l||t.currentBreakpoint===l)){var f=l in u?u[l]:void 0;f&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(function(w){var _=f[w];typeof _>"u"||(w==="slidesPerView"&&(_==="AUTO"||_==="auto")?f[w]="auto":w==="slidesPerView"?f[w]=parseFloat(_):f[w]=parseInt(_,10))});var a=f||t.originalParams,c=i.slidesPerColumn>1,h=a.slidesPerColumn>1,p=i.enabled;c&&!h?(o.removeClass(i.containerModifierClass+"multirow "+i.containerModifierClass+"multirow-column"),t.emitContainerClasses()):!c&&h&&(o.addClass(i.containerModifierClass+"multirow"),(a.slidesPerColumnFill&&a.slidesPerColumnFill==="column"||!a.slidesPerColumnFill&&i.slidesPerColumnFill==="column")&&o.addClass(i.containerModifierClass+"multirow-column"),t.emitContainerClasses());var m=a.direction&&a.direction!==i.direction,g=i.loop&&(a.slidesPerView!==i.slidesPerView||m);m&&n&&t.changeDirection(),lt(t.params,a);var v=t.params.enabled;lt(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!v?t.disable():!p&&v&&t.enable(),t.currentBreakpoint=l,t.emit("_beforeBreakpoint",a),g&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-s+t.loopedSlides,0,!1)),t.emit("breakpoint",a)}}}function nH(t,e,n){if(e===void 0&&(e="window"),!(!t||e==="container"&&!n)){var r=!1,s=St(),i=e==="window"?s.innerHeight:n.clientHeight,o=Object.keys(t).map(function(c){if(typeof c=="string"&&c.indexOf("@")===0){var h=parseFloat(c.substr(1)),p=i*h;return{value:p,point:c}}return{value:c,point:c}});o.sort(function(c,h){return parseInt(c.value,10)-parseInt(h.value,10)});for(var u=0;u<o.length;u+=1){var l=o[u],f=l.point,a=l.value;e==="window"?s.matchMedia("(min-width: "+a+"px)").matches&&(r=f):a<=n.clientWidth&&(r=f)}return r||"max"}}const rH={setBreakpoint:tH,getBreakpoint:nH};function iH(t,e){var n=[];return t.forEach(function(r){typeof r=="object"?Object.keys(r).forEach(function(s){r[s]&&n.push(e+s)}):typeof r=="string"&&n.push(e+r)}),n}function sH(){var t=this,e=t.classNames,n=t.params,r=t.rtl,s=t.$el,i=t.device,o=t.support,u=iH(["initialized",n.direction,{"pointer-events":o.pointerEvents&&!o.touch},{"free-mode":n.freeMode},{autoheight:n.autoHeight},{rtl:r},{multirow:n.slidesPerColumn>1},{"multirow-column":n.slidesPerColumn>1&&n.slidesPerColumnFill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode}],n.containerModifierClass);e.push.apply(e,u),s.addClass([].concat(e).join(" ")),t.emitContainerClasses()}function oH(){var t=this,e=t.$el,n=t.classNames;e.removeClass(n.join(" ")),t.emitContainerClasses()}const aH={addClasses:sH,removeClasses:oH};function lH(t,e,n,r,s,i){var o=St(),u;function l(){i&&i()}var f=he(t).parent("picture")[0];!f&&(!t.complete||!s)&&e?(u=new o.Image,u.onload=l,u.onerror=l,r&&(u.sizes=r),n&&(u.srcset=n),e&&(u.src=e)):l()}function cH(){var t=this;t.imagesToLoad=t.$el.find("img");function e(){typeof t>"u"||t===null||!t||t.destroyed||(t.imagesLoaded!==void 0&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}for(var n=0;n<t.imagesToLoad.length;n+=1){var r=t.imagesToLoad[n];t.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,e)}}const uH={loadImage:lH,preloadImages:cH};function hH(){var t=this,e=t.params,n=t.isLocked,r=t.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&r?t.isLocked=r<=t.size:t.isLocked=t.snapGrid.length===1,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,n!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),n&&n!==t.isLocked&&(t.isEnd=!1,t.navigation&&t.navigation.update())}const dH={checkOverflow:hH},sm={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function om(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fH(t,e,n){return e&&om(t.prototype,e),n&&om(t,n),t}var Ec={modular:nU,eventsEmitter:rU,update:fU,translate:bU,transition:xU,slide:LU,loop:NU,grabCursor:BU,manipulation:jU,events:eH,breakpoints:rH,checkOverflow:dH,classes:aH,images:uH},kc={},Cd=function(){function t(){for(var n,r,s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];if(i.length===1&&i[0].constructor&&Object.prototype.toString.call(i[0]).slice(8,-1)==="Object"?r=i[0]:(n=i[0],r=i[1]),r||(r={}),r=lt({},r),n&&!r.el&&(r.el=n),r.el&&he(r.el).length>1){var u=[];return he(r.el).each(function(a){var c=lt({},r,{el:a});u.push(new t(c))}),u}var l=this;l.__swiper__=!0,l.support=Nb(),l.device=KW({userAgent:r.userAgent}),l.browser=qW(),l.eventsListeners={},l.eventsAnyListeners=[],typeof l.modules>"u"&&(l.modules={}),Object.keys(l.modules).forEach(function(a){var c=l.modules[a];if(c.params){var h=Object.keys(c.params)[0],p=c.params[h];if(typeof p!="object"||p===null||(["navigation","pagination","scrollbar"].indexOf(h)>=0&&r[h]===!0&&(r[h]={auto:!0}),!(h in r&&"enabled"in p)))return;r[h]===!0&&(r[h]={enabled:!0}),typeof r[h]=="object"&&!("enabled"in r[h])&&(r[h].enabled=!0),r[h]||(r[h]={enabled:!1})}});var f=lt({},sm);return l.useParams(f),l.params=lt({},f,kc,r),l.originalParams=lt({},l.params),l.passedParams=lt({},r),l.params&&l.params.on&&Object.keys(l.params.on).forEach(function(a){l.on(a,l.params.on[a])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),l.$=he,lt(l,{enabled:l.params.enabled,el:n,classNames:[],slides:he(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return l.params.direction==="horizontal"},isVertical:function(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){var c=["touchstart","touchmove","touchend","touchcancel"],h=["mousedown","mousemove","mouseup"];return l.support.pointerEvents&&(h=["pointerdown","pointermove","pointerup"]),l.touchEventsTouch={start:c[0],move:c[1],end:c[2],cancel:c[3]},l.touchEventsDesktop={start:h[0],move:h[1],end:h[2]},l.support.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:Wr(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.emit("_swiper"),l.params.init&&l.init(),l}var e=t.prototype;return e.enable=function(){var r=this;r.enabled||(r.enabled=!0,r.params.grabCursor&&r.setGrabCursor(),r.emit("enable"))},e.disable=function(){var r=this;!r.enabled||(r.enabled=!1,r.params.grabCursor&&r.unsetGrabCursor(),r.emit("disable"))},e.setProgress=function(r,s){var i=this;r=Math.min(Math.max(r,0),1);var o=i.minTranslate(),u=i.maxTranslate(),l=(u-o)*r+o;i.translateTo(l,typeof s>"u"?0:s),i.updateActiveIndex(),i.updateSlidesClasses()},e.emitContainerClasses=function(){var r=this;if(!(!r.params._emitClasses||!r.el)){var s=r.el.className.split(" ").filter(function(i){return i.indexOf("swiper-container")===0||i.indexOf(r.params.containerModifierClass)===0});r.emit("_containerClasses",s.join(" "))}},e.getSlideClasses=function(r){var s=this;return r.className.split(" ").filter(function(i){return i.indexOf("swiper-slide")===0||i.indexOf(s.params.slideClass)===0}).join(" ")},e.emitSlidesClasses=function(){var r=this;if(!(!r.params._emitClasses||!r.el)){var s=[];r.slides.each(function(i){var o=r.getSlideClasses(i);s.push({slideEl:i,classNames:o}),r.emit("_slideClass",i,o)}),r.emit("_slideClasses",s)}},e.slidesPerViewDynamic=function(){var r=this,s=r.params,i=r.slides,o=r.slidesGrid,u=r.size,l=r.activeIndex,f=1;if(s.centeredSlides){for(var a=i[l].swiperSlideSize,c,h=l+1;h<i.length;h+=1)i[h]&&!c&&(a+=i[h].swiperSlideSize,f+=1,a>u&&(c=!0));for(var p=l-1;p>=0;p-=1)i[p]&&!c&&(a+=i[p].swiperSlideSize,f+=1,a>u&&(c=!0))}else for(var m=l+1;m<i.length;m+=1)o[m]-o[l]<u&&(f+=1);return f},e.update=function(){var r=this;if(!r||r.destroyed)return;var s=r.snapGrid,i=r.params;i.breakpoints&&r.setBreakpoint(),r.updateSize(),r.updateSlides(),r.updateProgress(),r.updateSlidesClasses();function o(){var l=r.rtlTranslate?r.translate*-1:r.translate,f=Math.min(Math.max(l,r.maxTranslate()),r.minTranslate());r.setTranslate(f),r.updateActiveIndex(),r.updateSlidesClasses()}var u;r.params.freeMode?(o(),r.params.autoHeight&&r.updateAutoHeight()):((r.params.slidesPerView==="auto"||r.params.slidesPerView>1)&&r.isEnd&&!r.params.centeredSlides?u=r.slideTo(r.slides.length-1,0,!1,!0):u=r.slideTo(r.activeIndex,0,!1,!0),u||o()),i.watchOverflow&&s!==r.snapGrid&&r.checkOverflow(),r.emit("update")},e.changeDirection=function(r,s){s===void 0&&(s=!0);var i=this,o=i.params.direction;return r||(r=o==="horizontal"?"vertical":"horizontal"),r===o||r!=="horizontal"&&r!=="vertical"||(i.$el.removeClass(""+i.params.containerModifierClass+o).addClass(""+i.params.containerModifierClass+r),i.emitContainerClasses(),i.params.direction=r,i.slides.each(function(u){r==="vertical"?u.style.width="":u.style.height=""}),i.emit("changeDirection"),s&&i.update()),i},e.mount=function(r){var s=this;if(s.mounted)return!0;var i=he(r||s.params.el);if(r=i[0],!r)return!1;r.swiper=s;var o=function(){return"."+(s.params.wrapperClass||"").trim().split(" ").join(".")},u=function(){if(r&&r.shadowRoot&&r.shadowRoot.querySelector){var h=he(r.shadowRoot.querySelector(o()));return h.children=function(p){return i.children(p)},h}return i.children(o())},l=u();if(l.length===0&&s.params.createElements){var f=Xt(),a=f.createElement("div");l=he(a),a.className=s.params.wrapperClass,i.append(a),i.children("."+s.params.slideClass).each(function(c){l.append(c)})}return lt(s,{$el:i,el:r,$wrapperEl:l,wrapperEl:l[0],mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl",rtlTranslate:s.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl"),wrongRTL:l.css("display")==="-webkit-box"}),!0},e.init=function(r){var s=this;if(s.initialized)return s;var i=s.mount(r);return i===!1||(s.emit("beforeInit"),s.params.breakpoints&&s.setBreakpoint(),s.addClasses(),s.params.loop&&s.loopCreate(),s.updateSize(),s.updateSlides(),s.params.watchOverflow&&s.checkOverflow(),s.params.grabCursor&&s.enabled&&s.setGrabCursor(),s.params.preloadImages&&s.preloadImages(),s.params.loop?s.slideTo(s.params.initialSlide+s.loopedSlides,0,s.params.runCallbacksOnInit,!1,!0):s.slideTo(s.params.initialSlide,0,s.params.runCallbacksOnInit,!1,!0),s.attachEvents(),s.initialized=!0,s.emit("init"),s.emit("afterInit")),s},e.destroy=function(r,s){r===void 0&&(r=!0),s===void 0&&(s=!0);var i=this,o=i.params,u=i.$el,l=i.$wrapperEl,f=i.slides;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),o.loop&&i.loopDestroy(),s&&(i.removeClasses(),u.removeAttr("style"),l.removeAttr("style"),f&&f.length&&f.removeClass([o.slideVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(function(a){i.off(a)}),r!==!1&&(i.$el[0].swiper=null,UW(i)),i.destroyed=!0),null},t.extendDefaults=function(r){lt(kc,r)},t.installModule=function(r){t.prototype.modules||(t.prototype.modules={});var s=r.name||Object.keys(t.prototype.modules).length+"_"+Wr();t.prototype.modules[s]=r},t.use=function(r){return Array.isArray(r)?(r.forEach(function(s){return t.installModule(s)}),t):(t.installModule(r),t)},fH(t,null,[{key:"extendedDefaults",get:function(){return kc}},{key:"defaults",get:function(){return sm}}]),t}();Object.keys(Ec).forEach(function(t){Object.keys(Ec[t]).forEach(function(e){Cd.prototype[e]=Ec[t][e]})});Cd.use([QW,tU]);const lo=Cd;function Eu(){return Eu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Eu.apply(this,arguments)}var pH={toggleEl:function(e,n){e[n?"addClass":"removeClass"](this.params.navigation.disabledClass),e[0]&&e[0].tagName==="BUTTON"&&(e[0].disabled=n)},update:function(){var e=this,n=e.params.navigation,r=e.navigation.toggleEl;if(!e.params.loop){var s=e.navigation,i=s.$nextEl,o=s.$prevEl;o&&o.length>0&&(e.isBeginning?r(o,!0):r(o,!1),e.params.watchOverflow&&e.enabled&&o[e.isLocked?"addClass":"removeClass"](n.lockClass)),i&&i.length>0&&(e.isEnd?r(i,!0):r(i,!1),e.params.watchOverflow&&e.enabled&&i[e.isLocked?"addClass":"removeClass"](n.lockClass))}},onPrevClick:function(e){var n=this;e.preventDefault(),!(n.isBeginning&&!n.params.loop)&&n.slidePrev()},onNextClick:function(e){var n=this;e.preventDefault(),!(n.isEnd&&!n.params.loop)&&n.slideNext()},init:function(){var e=this,n=e.params.navigation;if(e.params.navigation=GW(e.$el,e.params.navigation,e.params.createElements,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!!(n.nextEl||n.prevEl)){var r,s;n.nextEl&&(r=he(n.nextEl),e.params.uniqueNavElements&&typeof n.nextEl=="string"&&r.length>1&&e.$el.find(n.nextEl).length===1&&(r=e.$el.find(n.nextEl))),n.prevEl&&(s=he(n.prevEl),e.params.uniqueNavElements&&typeof n.prevEl=="string"&&s.length>1&&e.$el.find(n.prevEl).length===1&&(s=e.$el.find(n.prevEl))),r&&r.length>0&&r.on("click",e.navigation.onNextClick),s&&s.length>0&&s.on("click",e.navigation.onPrevClick),lt(e.navigation,{$nextEl:r,nextEl:r&&r[0],$prevEl:s,prevEl:s&&s[0]}),e.enabled||(r&&r.addClass(n.lockClass),s&&s.addClass(n.lockClass))}},destroy:function(){var e=this,n=e.navigation,r=n.$nextEl,s=n.$prevEl;r&&r.length&&(r.off("click",e.navigation.onNextClick),r.removeClass(e.params.navigation.disabledClass)),s&&s.length&&(s.off("click",e.navigation.onPrevClick),s.removeClass(e.params.navigation.disabledClass))}};const mH={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;Ib(e,{navigation:Eu({},pH)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},"enable disable":function(e){var n=e.navigation,r=n.$nextEl,s=n.$prevEl;r&&r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),s&&s[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)},click:function(e,n){var r=e.navigation,s=r.$nextEl,i=r.$prevEl,o=n.target;if(e.params.navigation.hideOnClick&&!he(o).is(i)&&!he(o).is(s)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;var u;s?u=s.hasClass(e.params.navigation.hiddenClass):i&&(u=i.hasClass(e.params.navigation.hiddenClass)),u===!0?e.emit("navigationShow"):e.emit("navigationHide"),s&&s.toggleClass(e.params.navigation.hiddenClass),i&&i.toggleClass(e.params.navigation.hiddenClass)}}}};function Si(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Dr(t,e){var n=["__proto__","constructor","prototype"];Object.keys(e).filter(function(r){return n.indexOf(r)<0}).forEach(function(r){typeof t[r]>"u"?t[r]=e[r]:Si(e[r])&&Si(t[r])&&Object.keys(e[r]).length>0?e[r].__swiper__?t[r]=e[r]:Dr(t[r],e[r]):t[r]=e[r]})}function Db(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Pb(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Bb(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Fb(t){t===void 0&&(t="");var e=t.split(" ").map(function(r){return r.trim()}).filter(function(r){return!!r}),n=[];return e.forEach(function(r){n.indexOf(r)<0&&n.push(r)}),n.join(" ")}var Vb=["init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_freeModeMomentum","_freeModeMomentumRatio","_freeModeMomentumBounce","_freeModeMomentumBounceRatio","_freeModeMomentumVelocityRatio","_freeModeSticky","_freeModeMinimumVelocity","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_slidesPerColumn","_slidesPerColumnFill","_slidesPerGroup","_slidesPerGroupSkip","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_watchSlidesVisibility","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function am(t){t===void 0&&(t={});var e={on:{}},n={};Dr(e,lo.defaults),Dr(e,lo.extendedDefaults),e._emitClasses=!0,e.init=!1;var r={},s=Vb.map(function(o){return o.replace(/_/,"")}),i=Object.assign({},t);return Object.keys(i).forEach(function(o){typeof t[o]>"u"||(s.indexOf(o)>=0?Si(t[o])?(e[o]={},n[o]={},Dr(e[o],t[o]),Dr(n[o],t[o])):(e[o]=t[o],n[o]=t[o]):o.search(/on[A-Z]/)===0&&typeof t[o]=="function"?e.on[""+o[2].toLowerCase()+o.substr(3)]=t[o]:r[o]=t[o])}),["navigation","pagination","scrollbar"].forEach(function(o){e[o]===!0&&(e[o]={}),e[o]===!1&&delete e[o]}),{params:e,passedParams:n,rest:r}}function gH(t){return new lo(t)}function vH(t,e){var n=t.el,r=t.nextEl,s=t.prevEl,i=t.paginationEl,o=t.scrollbarEl,u=t.swiper;Db(e)&&r&&s&&(u.params.navigation.nextEl=r,u.originalParams.navigation.nextEl=r,u.params.navigation.prevEl=s,u.originalParams.navigation.prevEl=s),Pb(e)&&i&&(u.params.pagination.el=i,u.originalParams.pagination.el=i),Bb(e)&&o&&(u.params.scrollbar.el=o,u.originalParams.scrollbar.el=o),u.init(n)}function ku(){return ku=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ku.apply(this,arguments)}function Wb(t,e){var n=e.slidesPerView;if(e.breakpoints){var r=lo.prototype.getBreakpoint(e.breakpoints),s=r in e.breakpoints?e.breakpoints[r]:void 0;s&&s.slidesPerView&&(n=s.slidesPerView)}var i=Math.ceil(parseFloat(e.loopedSlides||n,10));return i+=e.loopAdditionalSlides,i>t.length&&(i=t.length),i}function yH(t,e,n){var r=e.map(function(c,h){return c.props||(c.props={}),c.props.swiperRef=t,c.props["data-swiper-slide-index"]=h,c});function s(c,h,p){return c.props||(c.props={}),d.h(c.type,ku({},c.props,{key:c.key+"-duplicate-"+h+"-"+p,class:(c.props.className||"")+" "+n.slideDuplicateClass+" "+(c.props.class||"")}),c.children)}if(n.loopFillGroupWithBlank){var i=n.slidesPerGroup-r.length%n.slidesPerGroup;if(i!==n.slidesPerGroup)for(var o=0;o<i;o+=1){var u=d.h("div",{class:n.slideClass+" "+n.slideBlankClass});r.push(u)}}n.slidesPerView==="auto"&&!n.loopedSlides&&(n.loopedSlides=r.length);var l=Wb(r,n),f=[],a=[];return r.forEach(function(c,h){h<l&&a.push(s(c,h,"prepend")),h<r.length&&h>=r.length-l&&f.push(s(c,h,"append"))}),t.value&&(t.value.loopedSlides=l),[].concat(f,r,a)}function bH(t,e,n,r){var s=[];if(!e)return s;var i=function(a){s.indexOf(a)<0&&s.push(a)},o=r.map(function(f){return f.props&&f.props.key}),u=n.map(function(f){return f.props&&f.props.key});o.join("")!==u.join("")&&s.push("children"),r.length!==n.length&&s.push("children");var l=Vb.filter(function(f){return f[0]==="_"}).map(function(f){return f.replace(/_/,"")});return l.forEach(function(f){if(f in t&&f in e)if(Si(t[f])&&Si(e[f])){var a=Object.keys(t[f]),c=Object.keys(e[f]);a.length!==c.length?i(f):(a.forEach(function(h){t[f][h]!==e[f][h]&&i(f)}),c.forEach(function(h){t[f][h]!==e[f][h]&&i(f)}))}else t[f]!==e[f]&&i(f)}),s}function $c(t,e,n){t===void 0&&(t={});var r=[],s={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},i=function o(u,l){!Array.isArray(u)||u.forEach(function(f){var a=typeof f.type=="symbol";l==="default"&&(l="container-end"),a&&f.children?o(f.children,"default"):f.type&&(f.type.name==="SwiperSlide"||f.type.name==="AsyncComponentWrapper")?r.push(f):s[l]&&s[l].push(f)})};return Object.keys(t).forEach(function(o){var u=t[o]();i(u,o)}),n.value=e.value,e.value=r,{slides:r,slots:s}}function wH(t){var e=t.swiper,n=t.slides,r=t.passedParams,s=t.changedParams,i=t.nextEl,o=t.prevEl,u=t.paginationEl,l=t.scrollbarEl,f=s.filter(function(T){return T!=="children"&&T!=="direction"}),a=e.params,c=e.pagination,h=e.navigation,p=e.scrollbar,m=e.virtual,g=e.thumbs,v,w,_,$,x;s.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&a.thumbs&&!a.thumbs.swiper&&(v=!0),s.includes("controller")&&r.controller&&r.controller.control&&a.controller&&!a.controller.control&&(w=!0),s.includes("pagination")&&r.pagination&&(r.pagination.el||u)&&(a.pagination||a.pagination===!1)&&c&&!c.el&&(_=!0),s.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(a.scrollbar||a.scrollbar===!1)&&p&&!p.el&&($=!0),s.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||i)&&(a.navigation||a.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(x=!0);var b=function(k){!e[k]||(e[k].destroy(),k==="navigation"?(a[k].prevEl=void 0,a[k].nextEl=void 0,e[k].prevEl=void 0,e[k].nextEl=void 0):(a[k].el=void 0,e[k].el=void 0))};if(f.forEach(function(T){if(Si(a[T])&&Si(r[T]))Dr(a[T],r[T]);else{var k=r[T];(k===!0||k===!1)&&(T==="navigation"||T==="pagination"||T==="scrollbar")?k===!1&&b(T):a[T]=r[T]}}),s.includes("children")&&m&&a.virtual.enabled?(m.slides=n,m.update(!0)):s.includes("children")&&e.lazy&&e.params.lazy.enabled&&e.lazy.load(),v){var C=g.init();C&&g.update(!0)}w&&(e.controller.control=a.controller.control),_&&(u&&(a.pagination.el=u),c.init(),c.render(),c.update()),$&&(l&&(a.scrollbar.el=l),p.init(),p.updateSize(),p.setTranslate()),x&&(i&&(a.navigation.nextEl=i),o&&(a.navigation.prevEl=o),h.init(),h.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),s.includes("direction")&&e.changeDirection(r.direction,!1),e.update()}function $u(){return $u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$u.apply(this,arguments)}function SH(t){!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())}function _H(t,e,n){var r;if(!n)return null;var s=t.value.isHorizontal()?(r={},r[t.value.rtlTranslate?"right":"left"]=n.offset+"px",r):{top:n.offset+"px"};return e.filter(function(i,o){return o>=n.from&&o<=n.to}).map(function(i){return i.props||(i.props={}),i.props.style||(i.props.style={}),i.props.swiperRef=t,i.props.style=s,d.h(i.type,$u({},i.props),i.children)})}var xH={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},freeMode:{type:Boolean,default:void 0},freeModeMomentum:{type:Boolean,default:void 0},freeModeMomentumRatio:{type:Number,default:void 0},freeModeMomentumBounce:{type:Boolean,default:void 0},freeModeMomentumBounceRatio:{type:Number,default:void 0},freeModeMomentumVelocityRatio:{type:Number,default:void 0},freeModeSticky:{type:Boolean,default:void 0},freeModeMinimumVelocity:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:Number,default:void 0},slidesPerView:{type:[Number,String],default:void 0},slidesPerColumn:{type:Number,default:void 0},slidesPerColumnFill:{type:String,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},watchSlidesVisibility:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},preloadImages:{type:Boolean,default:void 0},updateOnImagesReady:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopedSlides:{type:Number,default:void 0},loopFillGroupWithBlank:{type:Boolean,default:void 0},loopPreventsSlide:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideDuplicateActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideDuplicateClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slideDuplicateNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},slideDuplicatePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},lazy:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","imagesReady","init","keyPress","lazyImageLoad","lazyImageReady","lock","loopFix","momentumBounce","navigationHide","navigationShow","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","zoomChange"],setup:function(e,n){var r=n.slots,s=n.emit,i=e.tag,o=e.wrapperTag,u=d.ref("swiper-container"),l=d.ref(null),f=d.ref(!1),a=d.ref(!1),c=d.ref(null),h=d.ref(null),p=d.ref(null),m={value:[]},g={value:[]},v=d.ref(null),w=d.ref(null),_=d.ref(null),$=d.ref(null),x=am(e),b=x.params,C=x.passedParams;$c(r,m,g),p.value=C,g.value=m.value;var T=function(){$c(r,m,g),f.value=!0};if(b.onAny=function(y){for(var E=arguments.length,A=new Array(E>1?E-1:0),O=1;O<E;O++)A[O-1]=arguments[O];s.apply(void 0,[y].concat(A))},Object.assign(b.on,{_beforeBreakpoint:T,_containerClasses:function(E,A){u.value=A}}),h.value=gH(b),h.value.loopCreate=function(){},h.value.loopDestroy=function(){},b.loop&&(h.value.loopedSlides=Wb(m.value,b)),h.value.virtual&&h.value.params.virtual.enabled){h.value.virtual.slides=m.value;var k={cache:!1,renderExternal:function(E){l.value=E},renderExternalUpdate:!1};Dr(h.value.params.virtual,k),Dr(h.value.originalParams.virtual,k)}d.onUpdated(function(){!a.value&&h.value&&(h.value.emitSlidesClasses(),a.value=!0);var y=am(e),E=y.passedParams,A=bH(E,p.value,m.value,g.value);p.value=E,(A.length||f.value)&&h.value&&!h.value.destroyed&&wH({swiper:h.value,slides:m.value,passedParams:E,changedParams:A,nextEl:v.value,prevEl:w.value,scrollbarEl:$.value,paginationEl:_.value}),f.value=!1}),d.watch(l,function(){d.nextTick(function(){SH(h.value)})}),d.onMounted(function(){!c.value||(vH({el:c.value,nextEl:v.value,prevEl:w.value,paginationEl:_.value,scrollbarEl:$.value,swiper:h.value},b),s("swiper",h.value))}),d.onBeforeUnmount(function(){h.value&&!h.value.destroyed&&h.value.destroy(!0,!1)});function S(y){return b.virtual?_H(h,y,l.value):!b.loop||h.value&&h.value.destroyed?(y.forEach(function(E){E.props||(E.props={}),E.props.swiperRef=h}),y):yH(h,y,b)}return function(){var y=$c(r,m,g),E=y.slides,A=y.slots;return d.h(i,{ref:c,class:Fb(u.value)},[A["container-start"],Db(e)&&[d.h("div",{ref:w,class:"swiper-button-prev"}),d.h("div",{ref:v,class:"swiper-button-next"})],Bb(e)&&d.h("div",{ref:$,class:"swiper-scrollbar"}),Pb(e)&&d.h("div",{ref:_,class:"swiper-pagination"}),d.h(o,{class:"swiper-wrapper"},[A["wrapper-start"],S(E),A["wrapper-end"]]),A["container-end"]])}}},CH={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:Object,zoom:{type:Boolean,default:void 0},virtualIndex:{type:[String,Number],default:void 0}},setup:function(e,n){var r=n.slots,s=!1,i=e.swiperRef,o=d.ref(null),u=d.ref("swiper-slide");function l(a,c,h){c===o.value&&(u.value=h)}d.onMounted(function(){!i.value||(i.value.on("_slideClass",l),s=!0)}),d.onBeforeUpdate(function(){s||!i||!i.value||(i.value.on("_slideClass",l),s=!0)}),d.onUpdated(function(){!o.value||!i||!i.value||i.value.destroyed&&u.value!=="swiper-slide"&&(u.value="swiper-slide")}),d.onBeforeUnmount(function(){!i||!i.value||i.value.off("_slideClass",l)});var f=d.computed(function(){return{isActive:u.value.indexOf("swiper-slide-active")>=0||u.value.indexOf("swiper-slide-duplicate-active")>=0,isVisible:u.value.indexOf("swiper-slide-visible")>=0,isDuplicate:u.value.indexOf("swiper-slide-duplicate")>=0,isPrev:u.value.indexOf("swiper-slide-prev")>=0||u.value.indexOf("swiper-slide-duplicate-prev")>=0,isNext:u.value.indexOf("swiper-slide-next")>=0||u.value.indexOf("swiper-slide-duplicate-next")>=0}});return function(){return d.h(e.tag,{class:Fb(""+u.value),ref:o,"data-swiper-slide-index":e.virtualIndex},e.zoom?d.h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},r.default&&r.default(f.value)):r.default&&r.default(f.value))}}};const EH={class:"vc-slider relative"},kH={class:"vc-slider__prev left-0"},$H={class:"vc-slider__btn"},TH={class:"vc-slider__next right-0"},AH={class:"vc-slider__btn"},OH=d.defineComponent({__name:"vc-slider",props:{slides:{type:Array,default:()=>[]},navigation:{type:Boolean,default:!1},overflow:{type:Boolean,default:!1},slidesPerView:{type:String,default:"auto"},spaceBetweenSlides:{type:Number,default:10}},setup(t){lo.use([mH]);const e=d.computed(()=>({nextEl:".vc-slider__next",prevEl:".vc-slider__prev"}));return(n,r)=>{const s=d.resolveComponent("VcIcon");return d.openBlock(),d.createElementBlock("div",EH,[d.createVNode(d.unref(xH),{class:d.normalizeClass(["vc-slider__swiper",{"overflow-visible":t.overflow,"px-[40px]":t.navigation}]),"space-between":t.spaceBetweenSlides,navigation:d.unref(e),slidesPerView:t.slidesPerView,resizeObserver:!0},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.slides,(i,o)=>(d.openBlock(),d.createBlock(d.unref(CH),{key:o},{default:d.withCtx(()=>[d.renderSlot(n.$slots,"default",{slide:i},void 0,!0)]),_:2},1024))),128))]),_:3},8,["class","space-between","navigation","slidesPerView"]),d.withDirectives(d.createElementVNode("div",null,[d.createElementVNode("div",kH,[d.renderSlot(n.$slots,"prevBtn",{},()=>[d.createElementVNode("div",$H,[d.createVNode(s,{icon:"fas fa-chevron-left"})])],!0)]),d.createElementVNode("div",TH,[d.renderSlot(n.$slots,"nextBtn",{},()=>[d.createElementVNode("div",AH,[d.createVNode(s,{icon:"fas fa-chevron-right"})])],!0)])],512),[[d.vShow,t.navigation]])])}}});const Ub=Fa(OH,[["__scopeId","data-v-9e4472fa"]]),LH=["innerHTML"],RH={class:"vc-textarea__field-wrapper"},MH=["placeholder","value","disabled","maxlength"],Ed=d.defineComponent({__name:"vc-textarea",props:{placeholder:{type:String,default:""},modelValue:{type:String,default:void 0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{type:String,default:void 0},tooltip:{type:String,default:void 0},name:{type:String,default:"Field"},rules:{type:[String,Object]},maxchars:{type:String,default:"1024"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=d.getCurrentInstance();let s=d.unref(n.rules)||"";n.required&&(typeof s=="string"?s=`required|${s}`.replace(/(\|)+$/,""):s.required=!0);const{errorMessage:i,handleChange:o}=_t.useField(`${(r==null?void 0:r.uid)||n.name}`,s,{initialValue:n.modelValue,label:n.label});d.watch(()=>n.modelValue,l=>{o(l)});function u(l){const f=l.target.value;e("update:modelValue",f)}return(l,f)=>{const a=d.resolveComponent("VcHint");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-textarea",{"vc-textarea_error":d.unref(i),"vc-textarea_disabled":t.disabled}])},[t.label?(d.openBlock(),d.createBlock(d.unref(br),{key:0,class:"mb-2",required:t.required},d.createSlots({default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(t.label),1)]),_:2},[t.tooltip?{name:"tooltip",fn:d.withCtx(()=>[d.createElementVNode("span",{innerHTML:t.tooltip},null,8,LH)]),key:"0"}:void 0]),1032,["required"])):d.createCommentVNode("",!0),d.createElementVNode("div",RH,[d.createElementVNode("textarea",{class:"vc-textarea__field",placeholder:t.placeholder,value:t.modelValue,disabled:t.disabled,onInput:u,maxlength:t.maxchars},null,40,MH)]),d.unref(i)?d.renderSlot(l.$slots,"error",{key:1},()=>[d.createVNode(a,{class:"vc-textarea__error"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(i)),1)]),_:1})]):d.createCommentVNode("",!0)],2)}}});const IH={class:"relative flex items-center content-between h-[var(--app-bar-height)] bg-[color:var(--app-bar-background-color)] pl-4"},NH=["src"],DH={key:1,class:"overflow-ellipsis overflow-hidden whitespace-nowrap text-2xl leading-header"},PH={class:"ml-2 text-lg"},BH=["src"],FH={key:2,class:"text-[color:var(--app-bar-product-name-color)] text-[length:var(--app-bar-product-name-size)] font-medium ml-[30px]"},VH=d.createElementVNode("div",{class:"grow basis-0 basis-0"},null,-1),WH={class:"flex h-full box-border"},UH=["title","onClick"],HH=d.defineComponent({__name:"vc-app-bar",props:{logo:{default:""},version:{default:""},blades:{default:()=>[]},buttons:{default:()=>[]}},emits:["logo:click","backlink:click","version:click","toolbarbutton:click","menubutton:click"],setup(t){return(e,n)=>{const r=d.resolveComponent("VcLink");return d.openBlock(),d.createElementBlock("div",IH,[d.renderSlot(e.$slots,"appSwitcher"),e.$isMobile.value?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[t.blades.length===0?(d.openBlock(),d.createElementBlock("img",{key:0,class:"h-3/6 cursor-pointer",src:t.logo,onClick:n[0]||(n[0]=s=>e.$emit("logo:click"))},null,8,NH)):t.blades.length===1?(d.openBlock(),d.createElementBlock("div",DH,d.toDisplayString(t.blades[0].title),1)):(d.openBlock(),d.createBlock(r,{key:2,onClick:n[1]||(n[1]=s=>e.$emit("backlink:click"))},{default:d.withCtx(()=>[d.createVNode(d.unref(ke),{icon:"fas fa-chevron-left",size:"s"}),d.createElementVNode("span",PH,d.toDisplayString(e.$t("Back")),1)]),_:1}))],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createElementVNode("img",{class:"h-3/6 cursor-pointer",src:t.logo,onClick:n[2]||(n[2]=s=>e.$emit("logo:click"))},null,8,BH),d.createElementVNode("div",{class:"text-[color:var(--app-bar-version-color)] text-xs ml-[30px]",onClick:n[3]||(n[3]=s=>e.$emit("version:click"))},d.toDisplayString(t.version),1)],64)),e.$slots.productName?(d.openBlock(),d.createElementBlock("div",FH,[d.renderSlot(e.$slots,"productName")])):d.createCommentVNode("",!0),VH,d.createElementVNode("div",WH,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.buttons,(s,i)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:i},[s.isVisible===void 0||s.isVisible?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[s.component?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(s.component),d.mergeProps({key:0},s.bladeOptions,{isAccent:s.isAccent}),null,16,["isAccent"])):(d.openBlock(),d.createElementBlock("div",{key:1,class:d.normalizeClass(["relative flex items-center justify-center w-[var(--app-bar-button-width)] border-l border-solid border-[color:var(--app-bar-button-border-color)] cursor-pointer text-[color: var(--app-bar-button-color)] bg-[color:var(--app-bar-button-background-color)] transition-[color] duration-200 hover:text-[color:var(--app-bar-button-color-hover)] hover:bg-[color:var(--app-bar-button-background-color-hover)]",{"vc-app-bar__button_accent":s.isAccent}]),title:s.title,onClick:o=>e.$emit("button:click",s)},[d.createVNode(d.unref(ke),{icon:typeof s.icon=="function"?s.icon():s.icon,size:"xl"},null,8,["icon"])],10,UH))],64)):d.createCommentVNode("",!0)],64))),128))]),e.$isMobile.value?(d.openBlock(),d.createElementBlock("div",{key:3,class:"text-[#319ed4] w-[var(--app-bar-button-width)] flex items-center justify-center h-full box-border",onClick:n[4]||(n[4]=s=>e.$emit("menubutton:click"))},[d.createVNode(d.unref(ke),{icon:"fas fa-bars"})])):d.createCommentVNode("",!0)])}}});const jH={key:0,class:"vc-app-menu-item__icon"},zH={class:"vc-app-menu-item__title"},lm=d.defineComponent({__name:"vc-app-menu-link",props:{isActive:{type:Boolean,default:!1},children:{default:()=>({})},sticky:{type:Boolean,default:!0},icon:{default:""},title:{default:""}},emits:["onClick"],setup(t){return(e,n)=>{const r=d.resolveComponent("VcIcon");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-app-menu-item",[{"vc-app-menu-item_active":t.isActive&&!t.children.length},{"vc-app-menu-item_no-hover":t.children.length}]]),onClick:n[0]||(n[0]=s=>e.$emit("onClick"))},[d.createElementVNode("div",{class:d.normalizeClass(["vc-app-menu-item__handler",{"vc-app-menu-item__handler_enabled":!t.sticky}])},[d.createVNode(r,{icon:"fas fa-ellipsis-v",size:"m"})],2),t.icon?(d.openBlock(),d.createElementBlock("div",jH,[d.createVNode(r,{icon:t.icon,size:"m"},null,8,["icon"])])):d.createCommentVNode("",!0),d.createElementVNode("div",zH,[d.createTextVNode(d.toDisplayString(t.title)+" ",1),t.children.length?(d.openBlock(),d.createBlock(r,{key:0,class:"vc-app-menu-item__title-icon",icon:"fas fa-chevron-down",size:"xs"})):d.createCommentVNode("",!0)])],2)}}});const GH={key:0,class:"vc-app-menu-item__child"},YH=["onClick"],JH=d.defineComponent({__name:"vc-app-menu-item",props:{sticky:{type:Boolean,default:!0},isVisible:{type:Boolean,default:!1},component:{default:void 0},bladeOptions:{default:()=>({})},clickHandler:{type:Function,default:void 0},icon:{default:""},title:{default:""},children:{default:()=>[]},isCollapsed:{type:Boolean,default:!0}},emits:["click","child:click"],setup(t,{emit:e}){const n=t,r=Vs.useRoute(),s=d.ref(!1);d.onMounted(()=>{n.children&&n.children.length&&n.children.find(o=>{var u;return((u=o.component)==null?void 0:u.url)===(r==null?void 0:r.path)})&&(s.value=!0)});function i(o){var u;(u=n.children)!=null&&u.length?s.value=!s.value:e("click",o)}return(o,u)=>{const l=d.resolveComponent("router-link");return d.openBlock(),d.createElementBlock("div",null,[t.component&&t.component.url?(d.openBlock(),d.createBlock(l,{key:0,to:t.component.url,custom:""},{default:d.withCtx(({isActive:f,navigate:a})=>[d.createVNode(lm,{isActive:f,children:t.children,sticky:t.sticky,icon:t.icon,title:t.title,onOnClick:c=>i(a)},null,8,["isActive","children","sticky","icon","title","onOnClick"])]),_:1},8,["to"])):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createVNode(lm,{children:t.children,sticky:t.sticky,icon:t.icon,title:t.title,onOnClick:i},null,8,["children","sticky","icon","title"]),s.value?(d.openBlock(),d.createElementBlock("div",GH,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.children,(f,a)=>(d.openBlock(),d.createBlock(l,{key:a,to:f.component.url,custom:""},{default:d.withCtx(({isActive:c,navigate:h})=>[f.isVisible===void 0||f.isVisible?(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass([{"vc-app-menu-item__child-item_active":c},"vc-app-menu-item__child-item"]),key:a,onClick:p=>o.$emit("child:click",{item:f,navigationCb:h})},d.toDisplayString(f.title),11,YH)):d.createCommentVNode("",!0)]),_:2},1032,["to"]))),128))])):d.createCommentVNode("",!0)],64))])}}});const KH={class:"vc-app-menu__inner flex flex-col h-full"},XH={key:0,class:"text-[#319ed4] flex justify-end items-center p-4"},qH={class:"gap-[5px] flex flex-col px-4"},ZH=d.defineComponent({__name:"vc-app-menu",props:{items:{default:()=>[]},mobileMenuItems:{default:()=>[]}},emits:["item:click"],setup(t,{expose:e}){const n=d.ref(!1);return e({isMobileVisible:n}),(r,s)=>{const i=d.resolveComponent("VcIcon");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["relative w-[var(--app-menu-width)] transition duration-100 pt-4",{"vc-app-menu_mobile hidden !fixed !left-0 !top-0 !w-full !bottom-0 !z-[9999]":r.$isMobile.value,"!block":n.value}])},[r.$isMobile.value?(d.openBlock(),d.createElementBlock("div",{key:0,class:"absolute left-0 top-0 right-0 bottom-0 z-[9998] bg-[#808c99] opacity-60",onClick:s[0]||(s[0]=o=>n.value=!1)})):d.createCommentVNode("",!0),d.createElementVNode("div",KH,[r.$isMobile.value?(d.openBlock(),d.createElementBlock("div",XH,[d.createVNode(i,{icon:"fas fa-times",size:"xl",onClick:s[1]||(s[1]=o=>n.value=!1)})])):d.createCommentVNode("",!0),d.createVNode(d.unref(ts),{noPadding:!0,class:"grow basis-0"},{default:d.withCtx(()=>[d.createElementVNode("div",qH,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.mobileMenuItems,(o,u)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:`info_item_${u}`},[o.isVisible===void 0||o.isVisible?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[o.component?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(o.component),d.mergeProps({key:0},o.bladeOptions,{class:"p-0 mb-2 w-full"}),null,16)):d.createCommentVNode("",!0)],64)):d.createCommentVNode("",!0)],64))),128)),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.items,(o,u)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:u},[o.isVisible===void 0||o.isVisible?(d.openBlock(),d.createBlock(JH,d.mergeProps({key:0},o,{onClick:l=>{r.$emit("item:click",{item:o,navigationCb:l}),n.value=!1},"onChild:click":s[2]||(s[2]=({item:l,navigationCb:f})=>{r.$emit("item:click",{item:l,navigationCb:f}),n.value=!1})}),null,16,["onClick"])):d.createCommentVNode("",!0)],64))),128))])]),_:1})])],2)}}});const QH={class:"overflow-hidden flex grow basis-0"},ej={class:"vc-app__workspace px-2 w-full overflow-hidden flex grow basis-0"},tj={class:"[pointer-events:painted] absolute flex z-[1000] overflow-hidden top-0 left-2/4 -translate-x-2/4 flex-col items-center p-2 box-border"},nj=d.defineComponent({inheritAttrs:!1}),Hb=d.defineComponent({...nj,__name:"vc-app",props:{pages:{default:()=>[]},menuItems:{default:()=>[]},mobileMenuItems:{default:()=>[]},toolbarItems:{default:()=>[]},isReady:{type:Boolean,default:!1},isAuthorized:{type:Boolean,default:!1},logo:{default:void 0},version:{default:void 0},theme:{default:"light"},bladesRefs:{default:()=>[]}},emits:["onOpen","onClose","backlink:click"],setup(t,{expose:e,emit:n}){console.debug("vc-app: Init vc-app");const r=d.getCurrentInstance(),s=Vs.useRouter(),i=function({item:l,navigationCb:f}){console.debug("vc-app#onMenuItemClick() called."),l.clickHandler&&typeof l.clickHandler=="function"?l.clickHandler(r==null?void 0:r.exposed):n("onOpen",{parentBlade:l.component,id:0,navigationCb:f})},o=function(l){console.debug("vc-app#onToolbarButtonClick() called."),l.clickHandler&&typeof l.clickHandler=="function"&&l.clickHandler(r==null?void 0:r.proxy)},u=async()=>{console.debug("openDashboard() called."),await n("onClose",0),s.push("/")};return e({openDashboard:u,onToolbarButtonClick:o,onMenuItemClick:i}),(l,f)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-app flex flex-col w-full h-full box-border m-0 overflow-hidden text-base",[`vc-theme_${t.theme}`,{"vc-app_touch":l.$isTouch,"vc-app_phone":l.$isPhone.value,"vc-app_mobile":l.$isMobile.value}]])},[d.createVNode(HH,{class:"shrink-0",logo:t.logo,blades:t.bladesRefs,version:t.version,buttons:t.toolbarItems,"onToolbarbutton:click":o,"onMenubutton:click":f[0]||(f[0]=a=>l.$refs.menu.isMobileVisible=!0),"onBacklink:click":f[1]||(f[1]=a=>l.$emit("backlink:click",t.bladesRefs.length-2)),"onLogo:click":u},d.createSlots({appSwitcher:d.withCtx(()=>[d.renderSlot(l.$slots,"appSwitcher")]),_:2},[l.$slots.productName?{name:"productName",fn:d.withCtx(()=>[d.renderSlot(l.$slots,"productName")]),key:"0"}:void 0]),1032,["logo","blades","version","buttons"]),d.createElementVNode("div",QH,[d.createVNode(ZH,{ref:"menu",class:"shrink-0",items:t.menuItems,mobileMenuItems:t.mobileMenuItems,"onItem:click":i},null,8,["items","mobileMenuItems"]),d.createElementVNode("div",ej,[d.renderSlot(l.$slots,"bladeNavigation")]),d.createElementVNode("div",tj,[d.renderSlot(l.$slots,"notifications")]),d.createElementVNode("div",null,[d.renderSlot(l.$slots,"passwordChange")])])],2))}});const rj={class:"shrink-0 h-[var(--blade-header-height)] bg-[color:var(--blade-header-background-color)] flex items-center py-0 px-4 border-solid border-b border-b-[color:#eaedf3]"},ij={key:0,class:"text-[color:var(--blade-header-icon-color)] mr-3"},sj={class:"overflow-hidden grow basis-0"},oj={key:0,class:"text-[color:var(--blade-header-subtitle-color)] text-xs mt-1"},aj={key:1},lj={key:2,class:"flex items-center"},cj=d.defineComponent({__name:"vc-blade-header",props:{expandable:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},title:{type:String,default:void 0},subtitle:{type:String,default:void 0},icon:{type:String,default:void 0}},emits:["close","expand","collapse"],setup(t,{emit:e}){const n=t;function r(){n.expandable&&e("expand")}function s(){n.expandable&&e("collapse")}function i(){n.closable&&e("close")}return(o,u)=>(d.openBlock(),d.createElementBlock("div",rj,[t.icon?(d.openBlock(),d.createElementBlock("div",ij,[d.createVNode(d.unref(ke),{icon:t.icon,size:"xxl"},null,8,["icon"])])):d.createCommentVNode("",!0),d.createElementVNode("div",sj,[d.createElementVNode("div",{class:d.normalizeClass(["text-[color:var(--blade-header-title-color)] text-lg truncate",{"!text-[length:var(--blade-header-title-font-size)] font-medium":!t.subtitle}])},d.toDisplayString(t.title),3),t.subtitle?(d.openBlock(),d.createElementBlock("div",oj,d.toDisplayString(t.subtitle),1)):d.createCommentVNode("",!0)]),o.$slots.actions?(d.openBlock(),d.createElementBlock("div",aj,[d.renderSlot(o.$slots,"actions")])):d.createCommentVNode("",!0),o.$isMobile.value?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",lj,[t.expandable?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[t.expanded?(d.openBlock(),d.createElementBlock("div",{key:0,class:"text-[color:var(--blade-header-button-color)] ml-4 cursor-pointer hover:text-[color:var(--blade-header-button-color-hover)]",onClick:s},[d.createVNode(d.unref(ke),{icon:"fas fa-window-minimize",size:"s"})])):(d.openBlock(),d.createElementBlock("div",{key:1,class:"vc-blade-header__button",onClick:r},[d.createVNode(d.unref(ke),{icon:"fas fa-window-maximize",size:"s"})]))],64)):d.createCommentVNode("",!0),t.closable?(d.openBlock(),d.createElementBlock("div",{key:1,class:"text-[color:var(--blade-header-button-color)] ml-4 cursor-pointer hover:text-[color:var(--blade-header-button-color-hover)]",onClick:i},[d.createVNode(d.unref(ke),{icon:"fas fa-times"})])):d.createCommentVNode("",!0)]))]))}});const uj=["title"],hj={key:0,class:"vc-blade-toolbar-button__title"},dj=["onClick"],fj=d.defineComponent({inheritAttrs:!1}),pj=d.defineComponent({...fj,__name:"vc-blade-toolbar-button",props:{disabled:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!0},icon:{type:String,default:"fas fa-question-circle"},title:{type:String,default:void 0},dropdownItems:{type:Array,default:()=>[]},clickHandler:{type:Function,default:void 0}},emits:["click"],setup(t,{emit:e}){const n=t,r=d.ref(),s=d.ref(!1),i=d.ref(!1),o=d.ref(),u=d.ref(),l=d.ref();async function f(){var h;if(console.debug("vc-blade-toolbar-item#onClick()"),!n.disabled&&!s.value)if(n.clickHandler&&typeof n.clickHandler=="function"){s.value=!0;try{await n.clickHandler()}finally{s.value=!1}}else(h=n.dropdownItems)!=null&&h.length?a():e("click")}function a(){var h,p;(h=n.dropdownItems)!=null&&h.length&&(i.value?(i.value=!1,(p=r.value)==null||p.destroy()):(i.value=!0,d.nextTick(()=>{r.value=ns(o.value,l.value,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[70,5]}}]})})))}function c(h){h.clickHandler&&typeof h.clickHandler=="function"&&(h.clickHandler(),a())}return(h,p)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-blade-toolbar-button",{"vc-blade-toolbar-button_disabled":t.disabled||s.value}]),onClick:f,title:t.title},[d.createElementVNode("div",{ref_key:"dropButtonRef",ref:u},[d.createElementVNode("div",{class:"vc-blade-toolbar-button__wrap",ref_key:"bladeDropToggle",ref:o},[d.createVNode(d.unref(ke),{class:"vc-blade-toolbar-button__icon",icon:t.icon,size:"m"},null,8,["icon"]),t.isExpanded?(d.openBlock(),d.createElementBlock("div",hj,d.toDisplayString(t.title),1)):d.createCommentVNode("",!0)],512),(d.openBlock(),d.createBlock(d.Teleport,{to:"#app"},[i.value?(d.openBlock(),d.createElementBlock("div",{key:0,class:"vc-blade-toolbar-button__dropdown",ref_key:"bladeDropRef",ref:l},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.dropdownItems,(m,g)=>(d.openBlock(),d.createElementBlock("div",{class:"vc-blade-toolbar-button__dropdown-item",key:g,onClick:v=>c(m)},[d.createVNode(d.unref(ke),{icon:m.icon,class:"vc-blade-toolbar-button__dropdown-item-icon"},null,8,["icon"]),d.createTextVNode(" "+d.toDisplayString(m.title),1)],8,dj))),128))],512)):d.createCommentVNode("",!0)]))],512)],10,uj))}});const mj={class:"grow basis-0 flex content-start items-center overflow-x-auto px-2"},gj=d.defineComponent({__name:"vc-blade-toolbar",props:{items:{type:Array,default:()=>[]}},setup(t){const e=t,n=d.ref(!0);try{n.value=localStorage.getItem("VC_BLADE_TOOLBAR_IS_EXPANDED")==="true"}catch{n.value=!0}function r(){n.value=!n.value,localStorage.setItem("VC_BLADE_TOOLBAR_IS_EXPANDED",n.value.toString())}function s(){return!!e.items.filter(o=>o.isVisible===void 0||o.isVisible).length}return(i,o)=>{const u=d.resolveComponent("VcIcon");return s()?(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass(["h-[var(--blade-toolbar-height)] bg-[color:var(--blade-toolbar-background-color)] border-b-[color:#eaedf3] border-solid border-b flex box-border w-full content-center items-stretch shrink-0",{"!h-[var(--blade-toolbar-height-expanded)]":n.value}])},[d.createElementVNode("div",mj,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.items,l=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:l.id},[l.isVisible===void 0||l.isVisible?(d.openBlock(),d.createBlock(pj,d.mergeProps({key:0},l,{isExpanded:n.value}),null,16,["isExpanded"])):d.createCommentVNode("",!0)],64))),128))]),d.createVNode(u,{class:"self-center justify-self-center text-[#a1c0d4] cursor-pointer mr-4 hover:text-[#7ea8c4]",icon:`fas fa-chevron-${n.value?"up":"down"}`,onClick:r},null,8,["icon"])],2)):d.createCommentVNode("",!0)}}});const vj=d.defineComponent({inheritAttrs:!1}),kd=d.defineComponent({...vj,__name:"vc-blade",props:{icon:{type:String},title:{type:String},subtitle:{type:String},width:{type:[Number,String],default:"30%"},expanded:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},toolbarItems:{type:Array,default:()=>[]}},setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-blade relative flex shrink-0 flex-col bg-[color:var(--blade-background-color)] rounded-[var(--blade-border-radius)] shadow-[2px_2px_8px_rgba(126,142,157,0.14)] my-4 mx-2 overflow-hidden transition-[width] duration-200",[e.$attrs.class,{"!w-full shrink":e.$isMobile.value||t.expanded}]]),style:d.normalizeStyle({width:typeof t.width=="number"?`${t.width}px`:t.width})},[!e.$isMobile.value||t.closable?(d.openBlock(),d.createBlock(cj,{key:0,class:"shrink-0",expanded:t.expanded,closable:t.closable,icon:t.icon,title:t.title,subtitle:t.subtitle,onClose:n[0]||(n[0]=r=>e.$emit("close"))},d.createSlots({_:2},[e.$slots.actions?{name:"actions",fn:d.withCtx(()=>[d.renderSlot(e.$slots,"actions")]),key:"0"}:void 0]),1032,["expanded","closable","icon","title","subtitle"])):d.createCommentVNode("",!0),d.createVNode(gj,{class:"shrink-0",items:t.toolbarItems},null,8,["items"]),d.renderSlot(e.$slots,"default")],6))}});const jb=d.defineComponent({__name:"vc-dynamic-property",props:{property:{type:Object,default:()=>({})},dictionaries:{type:Object,default:()=>({})},getter:{type:Function},optionsGetter:{type:Function},setter:{type:Function},culture:{type:String,default:"en-US"},disabled:{type:Boolean,default:!1}},setup(t){var c,h,p,m;const e=t,{locale:n,te:r,t:s}=ah(),i={},o=d.ref([]),u=d.computed(()=>{var g;return(g=o.value)!=null&&g.some(v=>v.alias)?"alias":"name"}),l=d.computed(()=>{var w,_;let g;const v=(w=e.property.displayNames)==null?void 0:w.find($=>{var x,b;return(b=$.languageCode)==null?void 0:b.toLowerCase().startsWith((x=n.value)==null?void 0:x.toLowerCase())});if(v&&v.name)g=v.name;else{const $=(_=e.property.displayNames)==null?void 0:_.find(x=>{var b,C;return(C=x.languageCode)==null?void 0:C.toLowerCase().includes((b=e.culture)==null?void 0:b.toLowerCase())});g=$&&($==null?void 0:$.name)?$.name:e.property.name}return g&&r(g.toUpperCase())?s(g.toUpperCase()):g});d.onMounted(async()=>{e.optionsGetter&&(o.value=await e.optionsGetter(e.property))}),(e.property.required||e.property.isRequired)&&(i.required=!0),(c=e.property.validationRule)!=null&&c.charCountMin&&(i.min=Number(e.property.validationRule.charCountMin)),(h=e.property.validationRule)!=null&&h.charCountMax&&(i.max=Number(e.property.validationRule.charCountMax)),(p=e.property.validationRule)!=null&&p.regExp&&(i.regex=new RegExp((m=e.property.validationRule)==null?void 0:m.regExp));async function f(g){e.optionsGetter&&(o.value=await e.optionsGetter(e.property,g))}async function a(){e.optionsGetter&&(o.value=await e.optionsGetter(e.property))}return(g,v)=>{const w=d.resolveComponent("VcSelect"),_=d.resolveComponent("VcMultivalue"),$=d.resolveComponent("VcInput"),x=d.resolveComponent("VcTextarea"),b=d.resolveComponent("VcCheckbox"),C=d.resolveComponent("VcEditor");return(t.property.dictionary||t.property.isDictionary)&&!t.property.multivalue?(d.openBlock(),d.createBlock(w,{key:0,label:d.unref(l)||t.property.displayName,modelValue:t.getter(t.property,!0),"onUpdate:modelValue":v[0]||(v[0]=T=>t.setter(t.property,T,o.value)),isRequired:t.property.required||t.property.isRequired,placeholder:d.unref(l)||t.property.defaultValue,options:o.value,keyProperty:"id",displayProperty:d.unref(u),rules:i,"is-disabled":t.disabled,name:t.property.displayName||t.property.name,isSearchable:!0,onSearch:f,onClose:a},null,8,["label","modelValue","isRequired","placeholder","options","displayProperty","is-disabled","name"])):t.property.valueType==="ShortText"&&t.property.multivalue&&!(t.property.dictionary||t.property.isDictionary)?(d.openBlock(),d.createBlock(_,{key:1,label:d.unref(l),modelValue:t.property.values,"onUpdate:modelValue":v[1]||(v[1]=T=>t.setter(t.property,T)),required:t.property.required||t.property.isRequired,placeholder:"Add value",rules:i,disabled:t.disabled,name:t.property.name},null,8,["label","modelValue","required","disabled","name"])):t.property.valueType==="ShortText"&&t.property.multivalue&&(t.property.dictionary||t.property.isDictionary)?(d.openBlock(),d.createBlock(_,{key:2,label:d.unref(l),modelValue:t.property.values,"onUpdate:modelValue":v[2]||(v[2]=T=>t.setter(t.property,T,o.value)),required:t.property.required||t.property.isRequired,placeholder:"Add value",multivalue:t.property.multivalue,rules:i,disabled:t.disabled,name:t.property.name,options:o.value,keyProperty:"id",displayProperty:"alias",onSearch:f,onClose:a},null,8,["label","modelValue","required","multivalue","disabled","name","options"])):t.property.valueType==="ShortText"?(d.openBlock(),d.createBlock($,{key:3,label:d.unref(l)||t.property.displayName,modelValue:t.getter(t.property),"onUpdate:modelValue":v[3]||(v[3]=T=>t.setter(t.property,T)),clearable:!0,required:t.property.required||t.property.isRequired,placeholder:d.unref(l)||"Add value",rules:i,disabled:t.disabled,name:t.property.displayName||t.property.name},null,8,["label","modelValue","required","placeholder","disabled","name"])):t.property.valueType==="Number"&&t.property.multivalue?(d.openBlock(),d.createBlock(_,{key:4,label:d.unref(l),modelValue:t.property.values,"onUpdate:modelValue":v[4]||(v[4]=T=>t.setter(t.property,T)),type:"number",required:t.property.required||t.property.isRequired,placeholder:"Add value",rules:i,disabled:t.disabled,name:t.property.name},null,8,["label","modelValue","required","disabled","name"])):t.property.valueType==="Number"?(d.openBlock(),d.createBlock($,{key:5,label:d.unref(l),modelValue:t.getter(t.property),"onUpdate:modelValue":v[5]||(v[5]=T=>t.setter(t.property,T)),clearable:!0,type:"number",required:t.property.required||t.property.isRequired,placeholder:d.unref(l)||t.property.defaultValue,rules:i,disabled:t.disabled,name:t.property.name},null,8,["label","modelValue","required","placeholder","disabled","name"])):t.property.valueType==="Integer"?(d.openBlock(),d.createBlock($,{key:6,label:d.unref(l),modelValue:t.getter(t.property),"onUpdate:modelValue":v[6]||(v[6]=T=>t.setter(t.property,T)),clearable:!0,type:"number",step:"1",required:t.property.required||t.property.isRequired,placeholder:d.unref(l)||t.property.defaultValue,rules:i,disabled:t.disabled,name:t.property.name},null,8,["label","modelValue","required","placeholder","disabled","name"])):t.property.valueType==="DateTime"?(d.openBlock(),d.createBlock($,{key:7,label:d.unref(l),modelValue:t.getter(t.property),"onUpdate:modelValue":v[7]||(v[7]=T=>t.setter(t.property,T)),type:"datetime-local",required:t.property.required||t.property.isRequired,placeholder:d.unref(l)||t.property.defaultValue,rules:i,disabled:t.disabled,name:t.property.name},null,8,["label","modelValue","required","placeholder","disabled","name"])):t.property.valueType==="LongText"?(d.openBlock(),d.createBlock(x,{key:8,label:d.unref(l),modelValue:t.getter(t.property),"onUpdate:modelValue":v[8]||(v[8]=T=>t.setter(t.property,T)),required:t.property.required||t.property.isRequired,placeholder:d.unref(l)||t.property.defaultValue,rules:i,disabled:t.disabled,name:t.property.name},null,8,["label","modelValue","required","placeholder","disabled","name"])):t.property.valueType==="Boolean"?(d.openBlock(),d.createBlock(b,{key:9,modelValue:t.getter(t.property),"onUpdate:modelValue":v[9]||(v[9]=T=>t.setter(t.property,T)),required:t.property.required||t.property.isRequired,rules:i,disabled:t.disabled,name:t.property.displayName||t.property.name},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(l)||t.property.displayName),1)]),_:1},8,["modelValue","required","disabled","name"])):t.property.valueType==="Html"?(d.openBlock(),d.createBlock(C,{key:10,label:d.unref(l)||t.property.displayName,modelValue:t.getter(t.property),"onUpdate:modelValue":v[10]||(v[10]=T=>t.setter(t.property,T)),required:t.property.required||t.property.isRequired,placeholder:d.unref(l)||"Add value",rules:i,disabled:t.disabled,name:t.property.displayName||t.property.name},null,8,["label","modelValue","required","placeholder","disabled","name"])):d.createCommentVNode("",!0)}}}),yj={class:"vc-gallery-item__overlay"},bj={class:"flex"},wj=["title"],Sj={class:"flex grow basis-0 items-center justify-around"},_j=d.createElementVNode("div",{class:"mt-2"},"Fullscreen",-1),xj=d.createElementVNode("div",{class:"mt-2"},"Edit",-1),Cj=d.createElementVNode("div",{class:"mt-2"},"Delete",-1),Ej=d.defineComponent({__name:"vc-gallery-item",props:{image:{type:Object,default:()=>({})},readonly:{type:Boolean,default:!1},actions:{type:Object,default:()=>({})},disableDrag:{type:Boolean,default:!1}},emits:["preview","edit","remove"],setup(t){const e=d.ref(!1);function n(){e.value=!1}return(r,s)=>{const i=d.resolveComponent("VcImage"),o=d.resolveComponent("VcIcon");return d.withDirectives((d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-gallery-item",{"vc-gallery-item_readonly":t.readonly,"vc-gallery-item_hover":e.value}]),onTap:s[3]||(s[3]=d.withModifiers(u=>e.value=!e.value,["stop"]))},[d.createVNode(i,{aspect:"1x1",src:t.image.url,background:"contain"},null,8,["src"]),d.createElementVNode("div",yj,[d.createElementVNode("div",bj,[!t.readonly&&!t.disableDrag?(d.openBlock(),d.createBlock(o,{key:0,class:"vc-gallery-item__move",icon:"fas fa-arrows-alt",size:"s"})):d.createCommentVNode("",!0),d.createElementVNode("div",{class:"truncate",title:t.image.name},d.toDisplayString(t.image.name),9,wj)]),d.createElementVNode("div",Sj,[t.actions&&t.actions.preview?(d.openBlock(),d.createElementBlock("div",{key:0,class:"vc-gallery-item__button",onClick:s[0]||(s[0]=u=>r.$emit("preview",t.image))},[d.createVNode(o,{class:"vc-gallery-item__button-icon",icon:"fas fa-eye"}),_j])):d.createCommentVNode("",!0),!t.readonly&&t.actions&&t.actions.edit?(d.openBlock(),d.createElementBlock("div",{key:1,class:"vc-gallery-item__button",onClick:s[1]||(s[1]=u=>r.$emit("edit",t.image))},[d.createVNode(o,{class:"vc-gallery-item__button-icon",icon:"fas fa-pen"}),xj])):d.createCommentVNode("",!0),!t.readonly&&t.actions&&t.actions.remove?(d.openBlock(),d.createElementBlock("div",{key:2,class:"vc-gallery-item__button",onClick:s[2]||(s[2]=u=>r.$emit("remove",t.image))},[d.createVNode(o,{class:"vc-gallery-item__button-icon",icon:"fas fa-trash"}),Cj])):d.createCommentVNode("",!0)])])],34)),[[d.unref(Do),n]])}}});const kj=d.createElementVNode("span",null,")",-1),$j={class:"w-full h-full box-border flex flex-col items-center"},Tj={class:"box-border p-5 grow basis-0 w-full"},Aj={class:"p-4 pb-[40px] max-w-full overflow-x-auto box-border shrink flex"},Oj=d.defineComponent({__name:"vc-gallery-preview",props:{images:{type:Array,default:()=>[]},index:{type:Number,default:0}},setup(t){const e=t,n=d.ref(e.index),r=d.computed(()=>e.images[n.value]||{}),s=i=>{var o,u;i.charAt(0)==="/"?(o=navigator.clipboard)==null||o.writeText(`${location.origin}${i}`):(u=navigator.clipboard)==null||u.writeText(i)};return(i,o)=>{const u=d.resolveComponent("VcLink"),l=d.resolveComponent("VcIcon"),f=d.resolveComponent("VcImage");return d.openBlock(),d.createBlock(d.unref($d),{title:d.unref(r).title,onClose:o[3]||(o[3]=a=>i.$emit("close"))},{title:d.withCtx(()=>[d.createElementVNode("div",null,[d.createElementVNode("span",null,d.toDisplayString(d.unref(r).name)+" (",1),d.createVNode(u,{onClick:o[0]||(o[0]=a=>s(d.unref(r).url))},{default:d.withCtx(()=>[d.createTextVNode("copy image link")]),_:1}),kj])]),default:d.withCtx(()=>[d.createElementVNode("div",$j,[d.createElementVNode("div",Tj,[d.createElementVNode("div",{class:"bg-contain bg-no-repeat bg-center w-full h-full box-border",style:d.normalizeStyle({backgroundImage:"url("+d.unref(r).url+")"})},null,4),n.value>0?(d.openBlock(),d.createElementBlock("div",{key:0,class:"absolute top-2/4 -mt-9 h-[72px] w-[72px] flex items-center justify-center rounded-full bg-[#f1f6fa] cursor-pointer text-[#a1c0d4] [--icon-size-xl: 36px] hover:shadow-[0_0_20px_rgba(31,40,50,0.15)] left-[25px]",onClick:o[1]||(o[1]=a=>n.value--)},[d.createVNode(l,{icon:"fas fa-arrow-left",size:"xl"})])):d.createCommentVNode("",!0),n.value<t.images.length-1?(d.openBlock(),d.createElementBlock("div",{key:1,class:"absolute top-2/4 -mt-9 h-[72px] w-[72px] flex items-center justify-center rounded-full bg-[#f1f6fa] cursor-pointer text-[#a1c0d4] [--icon-size-xl: 36px] hover:shadow-[0_0_20px_rgba(31,40,50,0.15)] right-[25px]",onClick:o[2]||(o[2]=a=>n.value++)},[d.createVNode(l,{icon:"fas fa-arrow-right",size:"xl"})])):d.createCommentVNode("",!0)]),d.createElementVNode("div",Aj,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.images,(a,c)=>(d.openBlock(),d.createElementBlock("div",{key:c,class:d.normalizeClass(["m-1 opacity-60",{"vc-gallery-preview__images-item_current":c===n.value}])},[d.createVNode(f,{src:a.url,size:"xl",bordered:!0,clickable:!0,onClick:h=>n.value=c},null,8,["src","onClick"])],2))),128))])])]),_:1},8,["title"])}}});const Lj={class:"vc-gallery"},Rj={key:1,class:"flex flex-wrap"},Mj={key:2,class:"flex justify-center p-5"},zb=d.defineComponent({__name:"vc-gallery",props:{images:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},label:{type:String,default:void 0},tooltip:{type:String,default:void 0},tooltipIcon:{type:String,default:"fas fa-info"},uploadIcon:{type:String,default:"fas fa-upload"},multiple:{type:Boolean,default:!1},variant:{type:String,default:"gallery"},itemActions:{type:Object,default:()=>({preview:!0,edit:!0,remove:!0})},disableDrag:{type:Boolean,default:!1},hideAfterUpload:{type:Boolean,default:!1},rules:{type:[String,Object]},name:{type:String,default:"Gallery"}},emits:["upload","sort","item:preview","item:edit","item:remove","item:move"],setup(t,{emit:e}){const n=t,r=d.ref(!1),s=d.ref(),i=d.computed(()=>({animation:200,group:"description",disabled:n.disableDrag,ghostClass:"ghost"})),o=f=>{f&&f.length&&e("upload",f)},u=f=>{r.value=!0,s.value=f},l=()=>{const a=n.images.map((c,h)=>(c.sortOrder=h,c));e("sort",d.ref(a).value)};return(f,a)=>{const c=d.resolveComponent("draggable"),h=d.resolveComponent("VcHint");return d.openBlock(),d.createElementBlock("div",Lj,[t.label?(d.openBlock(),d.createBlock(d.unref(br),{key:0,tooltip:t.tooltip,required:t.required,"tooltip-icon":t.tooltipIcon},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.label),1)]),_:1},8,["tooltip","required","tooltip-icon"])):d.createCommentVNode("",!0),t.images&&t.images.length||!t.disabled?(d.openBlock(),d.createElementBlock("div",Rj,[d.createVNode(c,d.mergeProps({list:t.images,class:"flex flex-wrap w-full",tag:"transition-group"},d.unref(i),{onChange:l,"component-data":{tag:"div"}}),{item:d.withCtx(({element:p,index:m})=>[(d.openBlock(),d.createBlock(Ej,{class:"m-2",key:p.sortOrder,image:p,readonly:t.disabled,onPreview:g=>u(m),onEdit:a[0]||(a[0]=g=>f.$emit("item:edit",g)),onRemove:a[1]||(a[1]=g=>f.$emit("item:remove",g)),actions:t.itemActions,disableDrag:t.disableDrag},null,8,["image","readonly","onPreview","actions","disableDrag"]))]),footer:d.withCtx(()=>[!t.disabled&&!t.hideAfterUpload?(d.openBlock(),d.createBlock(d.unref(Gu),{key:0,class:"m-2",icon:t.uploadIcon,onUpload:o,variant:t.variant,multiple:t.multiple,rules:t.rules,name:t.name},null,8,["icon","variant","multiple","rules","name"])):d.createCommentVNode("",!0)]),_:1},16,["list"])])):(d.openBlock(),d.createElementBlock("div",Mj,[d.createVNode(h,null,{default:d.withCtx(()=>[d.createTextVNode("Gallery is empty")]),_:1})])),r.value?(d.openBlock(),d.createBlock(Oj,{key:3,images:t.images,index:s.value,onClose:a[2]||(a[2]=p=>r.value=!1)},null,8,["images","index"])):d.createCommentVNode("",!0)])}}}),Ij={class:"w-[516px] max-w-[90%] bg-white rounded-md overflow-hidden shadow-[0_0_0_rgba(0,0,0,0.05)]"},Nj={class:"uppercase text-white bg-[#465769] h-[50px] px-[28px] text-xl flex items-center"},Dj={class:"pt-4 px-[28px] pb-[24px]"},Gb=d.defineComponent({__name:"vc-login-form",props:{logo:{type:String,default:void 0},background:{type:String,default:void 0},title:{type:String,default:"Login"}},setup(t){return console.debug("Init vc-login-form"),(e,n)=>(d.openBlock(),d.createElementBlock("div",{class:"w-full h-full box-border flex flex-col items-center justify-center",style:d.normalizeStyle({background:`url(${t.background}) center / cover no-repeat`})},[d.createElementVNode("div",{class:"h-[80px] w-[516px] max-w-[90%] mb-[50px] -mt-[90px]",style:d.normalizeStyle({background:`url(${t.logo}) center / contain no-repeat`})},null,4),d.createElementVNode("div",Ij,[d.createElementVNode("div",Nj,d.toDisplayString(t.title),1),d.createElementVNode("div",Dj,[d.renderSlot(e.$slots,"default")])])],4))}}),Pj={class:"vc-popup__wrapper"},Bj={class:"vc-popup__inner"},Fj={class:"vc-popup__header"},Vj={class:"truncate grow basis-0"},Wj={class:"vc-popup__content grow basis-0"},$d=d.defineComponent({__name:"vc-popup",props:{title:{type:String,default:void 0},closable:{type:Boolean,default:!0},variant:{type:String,default:"fullscreen",enum:["small","medium","fullscreen"]}},emits:["close"],setup(t){return(e,n)=>{const r=d.resolveComponent("VcIcon");return d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["vc-popup",`vc-popup_${t.variant}`])},[d.createElementVNode("div",Pj,[d.createElementVNode("div",Bj,[d.createElementVNode("div",Fj,[d.createElementVNode("div",Vj,[d.renderSlot(e.$slots,"title",{},()=>[d.createTextVNode(d.toDisplayString(t.title),1)])]),t.closable?(d.openBlock(),d.createBlock(r,{key:0,class:"vc-popup__header-icon",icon:"fas fa-times",onClick:n[0]||(n[0]=s=>e.$emit("close"))})):d.createCommentVNode("",!0)]),d.createElementVNode("div",Wj,[d.renderSlot(e.$slots,"default")])])])],2)}}});const Uj={class:"font-medium text-base"},Hj={class:"text-[color:var(--table-counter-label-color)]"},jj={class:"text-[color:var(--table-counter-value-color)]"},zj=d.defineComponent({__name:"vc-table-counter",props:{label:{default:"Total"},value:{default:0}},setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("div",Uj,[d.createElementVNode("span",Hj,d.toDisplayString(t.label)+"\xA0",1),d.createElementVNode("span",jj,d.toDisplayString(t.value),1)]))}});const Gj={class:"relative overflow-visible"},Yj={key:0,class:"ml-[10px] font-medium"},Jj={key:1,class:"ml-[10px] rounded-[10px] bg-white text-[#43b0e6] h-[20px] min-w-[20px] leading-[20px] text-center font-medium"},Kj=["onClick"],Xj=d.defineComponent({inheritAttrs:!1}),cm=d.defineComponent({...Xj,__name:"vc-table-filter",props:{title:{default:void 0},counter:{default:0},parentExpanded:{type:Boolean,default:!0}},setup(t){const e=t,n=d.ref(!1),r=d.ref(),s=d.ref(),i=d.ref();d.watch(()=>e.parentExpanded,()=>{u()});function o(f){if(n.value=!n.value,!f){const a=document.querySelector(".vc-blade");n.value?d.nextTick(()=>{i.value=ns(r.value,s.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"preventOverflow",options:{boundary:a}}]})}):l()}}function u(){n.value=!1,l()}function l(){var f;(f=i.value)==null||f.destroy()}return(f,a)=>(d.openBlock(),d.createElementBlock("div",Gj,[d.createElementVNode("div",{class:"rounded-[3px] bg-[#43b0e6] flex items-center px-[10px] text-white h-[38px] box-border cursor-pointer",onClick:a[0]||(a[0]=c=>o(f.$isMobile.value)),ref_key:"filterToggle",ref:r},[d.createVNode(d.unref(ke),{icon:"fas fa-filter",size:"m"}),t.title?(d.openBlock(),d.createElementBlock("span",Yj,d.toDisplayString(t.title),1)):d.createCommentVNode("",!0),t.counter?(d.openBlock(),d.createElementBlock("div",Jj,d.toDisplayString(t.counter),1)):d.createCommentVNode("",!0)],512),(d.openBlock(),d.createBlock(d.Teleport,{to:"body"},[n.value?(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass({"vc-table-filter__panel_mobile fixed left-0 top-0 w-full bottom-0 z-[9999] bg-[rgba(128,140,153,0.6)] shadow-none rounded-none max-h-full max-w-full min-w-full":f.$isMobile.value,"vc-table-filter__panel absolute max-h-[400px] max-w-[800px] min-w-[400px] z-[100] shadow-[1px_1px_11px_rgba(141,152,163,0.6)] rounded-[3px] overflow-hidden":!f.$isMobile.value}),onClick:d.withModifiers(u,["self"]),ref_key:"filterPanel",ref:s},[d.createElementVNode("div",{class:"vc-table-filter__panel-inner bg-white box-border p-5 flex flex-col",onClick:a[1]||(a[1]=d.withModifiers(()=>{},["stop"]))},[d.createVNode(d.unref(ke),{class:"vc-table-filter__panel-close text-[#43b0e6] cursor-pointer self-end shrink-0",icon:"fas fa-times",size:"xl",onClick:u}),d.renderSlot(f.$slots,"default",{closePanel:u})])],10,Kj)):d.createCommentVNode("",!0)]))]))}});const qj={key:0,class:"flex-shrink-0 w-[80px] flex flex-col [justify-content:stretch] bg-[#a9bfd2]"},Zj={class:"mt-1 text-lg"},Qj={class:"flex-shrink-0 w-full"},e4={key:1,class:"flex-shrink-0 w-[80px] flex flex-col [justify-content:stretch] bg-[#a9bfd2]"},t4={class:"vc-table-mobile__item-action-text"},n4={class:"mt-1 text-lg"},r4=d.createElementVNode("div",{class:"mt-1 text-lg"},"More",-1),i4={class:"absolute left-0 top-0 right-0 bottom-0 bg-[rgba(107,121,135,0.15)] flex items-center justify-center z-[99]"},s4={class:"bg-white rounded-[6px] overflow-hidden p-5 max-w-[80%] w-[350px] border border-solid border-[#eef0f2] box-border shadow-[1px_1px_22px_rgba(126,142,157,0.2)]"},o4={class:"flex w-full items-center"},a4={class:"grow text-[#2e3d4e] text-[19px] font-semibold tracking-[-0.01em]"},l4={class:"flex flex-wrap my-5 justify-between"},c4=["onClick"],u4={class:"text-base mt-2 text-center"},h4=d.defineComponent({__name:"vc-table-mobile-item",props:{item:{default:void 0},actionBuilder:{type:Function,default:void 0},swipingItem:{default:null}},emits:["swipeStart"],setup(t,{emit:e}){const n=t,r=d.ref(0),s=d.ref(0),i=d.ref(0),o=d.ref(0),u=d.ref(!1),l=10,f=80,a=d.ref(!1),c=d.ref([]);d.watch(()=>n.swipingItem,$=>{$!==n.item.id&&m()});const h=d.computed(()=>c.value&&c.value.length&&c.value.filter($=>!$.leftActions)),p=d.computed(()=>c.value&&c.value.length&&c.value.filter($=>$.leftActions));function m(){c.value.some($=>$.leftActions)?(r.value=-f,o.value=r.value):(r.value=0,o.value=0)}async function g($){s.value=$.touches[0].clientX,i.value=$.touches[0].clientY,o.value=r.value,u.value=!0,c.value.length||typeof n.actionBuilder=="function"&&(c.value=n.actionBuilder(n.item),m())}function v($){if(e("swipeStart",n.item.id),c.value&&c.value.length){const x=$.touches[0].clientX-s.value,b=$.touches[0].clientY-i.value;Math.abs(x)>l&&(h.value&&h.value.length&&p.value&&p.value.length?Math.abs(o.value+x)<=f*2:Math.abs(o.value+x)<=f)&&o.value+x<0&&(Math.abs(b)<l*2&&$.preventDefault(),r.value=o.value+x)}}function w(){const $=Math.abs(r.value);$<f?r.value=$<f/2?0:-f:r.value=$<=f*2-l*2?-f:-f*2,u.value=!1}function _(){const $=Math.abs(r.value);$<f?r.value=$<f/2?0:-f:r.value=$<=f*2-l*2?-f:-f*2,u.value=!1}return($,x)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["relative flex flex-nowrap items-stretch transition duration-200",{"transition-none":u.value}]),style:d.normalizeStyle(`transform: translateX(${r.value}px)`),onClick:x[5]||(x[5]=b=>$.$emit("click")),onTouchstart:g,onTouchmove:v,onTouchend:w,onTouchcancel:_},[d.unref(p)&&d.unref(p).length?(d.openBlock(),d.createElementBlock("div",qj,[d.createElementVNode("div",{class:d.normalizeClass(["flex grow basis-[1] flex-col justify-center items-center text-white",[`vc-table-mobile__item-action_${d.unref(p)[0].variant}`]]),onClick:x[0]||(x[0]=d.withModifiers(b=>d.unref(p)[0].clickHandler(t.item),["stop"]))},[d.createVNode(d.unref(ke),{icon:d.unref(p)[0].icon},null,8,["icon"]),d.createElementVNode("div",Zj,d.toDisplayString(d.unref(p)[0].title),1)],2)])):d.createCommentVNode("",!0),d.createElementVNode("div",Qj,[d.renderSlot($.$slots,"default")]),d.unref(h)&&d.unref(h).length?(d.openBlock(),d.createElementBlock("div",e4,[d.createElementVNode("div",{class:d.normalizeClass(["flex grow basis-[1] flex-col justify-center items-center text-white",[`vc-table-mobile__item-action_${d.unref(h)[0].variant}`]]),onClick:x[1]||(x[1]=d.withModifiers(b=>d.unref(h)[0].clickHandler(t.item),["stop"]))},[d.createVNode(d.unref(ke),{icon:d.unref(h)[0].icon},null,8,["icon"]),d.createElementVNode("div",t4,d.toDisplayString(d.unref(h)[0].title),1)],2),d.unref(h).length===2?(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass(["flex grow basis-[1] flex-col justify-center items-center text-white",[`vc-table-mobile__item-action_${d.unref(h)[1].variant}`]]),onClick:x[2]||(x[2]=d.withModifiers(b=>d.unref(h)[1].clickHandler(t.item),["stop"]))},[d.createVNode(d.unref(ke),{icon:d.unref(h)[1].icon},null,8,["icon"]),d.createElementVNode("div",n4,d.toDisplayString(d.unref(h)[1].title),1)],2)):d.createCommentVNode("",!0),d.unref(h).length>2?(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createElementVNode("div",{class:"flex grow basis-[1] flex-col justify-center items-center text-white",onClick:x[3]||(x[3]=d.withModifiers(b=>a.value=!0,["stop"]))},[d.createVNode(d.unref(ke),{icon:"fas fa-ellipsis-h"}),r4]),a.value?(d.openBlock(),d.createBlock(d.Teleport,{key:0,to:"body"},[d.createElementVNode("div",i4,[d.createElementVNode("div",s4,[d.createElementVNode("div",o4,[d.createElementVNode("span",a4,d.toDisplayString($.$t("All actions")),1),d.createVNode(d.unref(ke),{class:"text-[#c2d7e4]",icon:"fas fa-times-circle",size:"xl",onClick:x[4]||(x[4]=b=>a.value=!1)})]),d.createElementVNode("div",l4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(c.value,(b,C)=>(d.openBlock(),d.createElementBlock("div",{key:C,class:"flex grow shrink-0 flex-col items-center text-[#319ed4] my-2 box-border p-1 max-w-[80px]",onClick:T=>b.clickHandler(t.item)},[d.createVNode(d.unref(ke),{icon:b.icon,size:"xl"},null,8,["icon"]),d.createElementVNode("div",u4,d.toDisplayString(b.title),1)],8,c4))),128))])])])])):d.createCommentVNode("",!0)],64)):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0)],38))}});//! moment.js
1119
+ //! version : 2.29.4
1120
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
1121
+ //! license : MIT
1122
+ //! momentjs.com
1123
+ var Yb;function oe(){return Yb.apply(null,arguments)}function d4(t){Yb=t}function Nn(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function di(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function Ve(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Td(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(Ve(t,e))return!1;return!0}function Ht(t){return t===void 0}function vr(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function Bo(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function Jb(t,e){var n=[],r,s=t.length;for(r=0;r<s;++r)n.push(e(t[r],r));return n}function Pr(t,e){for(var n in e)Ve(e,n)&&(t[n]=e[n]);return Ve(e,"toString")&&(t.toString=e.toString),Ve(e,"valueOf")&&(t.valueOf=e.valueOf),t}function nr(t,e,n,r){return y0(t,e,n,r,!0).utc()}function f4(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Ae(t){return t._pf==null&&(t._pf=f4()),t._pf}var Tu;Array.prototype.some?Tu=Array.prototype.some:Tu=function(t){var e=Object(this),n=e.length>>>0,r;for(r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};function Ad(t){if(t._isValid==null){var e=Ae(t),n=Tu.call(e.parsedDateParts,function(s){return s!=null}),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=r;else return r}return t._isValid}function Yl(t){var e=nr(NaN);return t!=null?Pr(Ae(e),t):Ae(e).userInvalidated=!0,e}var um=oe.momentProperties=[],Tc=!1;function Od(t,e){var n,r,s,i=um.length;if(Ht(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),Ht(e._i)||(t._i=e._i),Ht(e._f)||(t._f=e._f),Ht(e._l)||(t._l=e._l),Ht(e._strict)||(t._strict=e._strict),Ht(e._tzm)||(t._tzm=e._tzm),Ht(e._isUTC)||(t._isUTC=e._isUTC),Ht(e._offset)||(t._offset=e._offset),Ht(e._pf)||(t._pf=Ae(e)),Ht(e._locale)||(t._locale=e._locale),i>0)for(n=0;n<i;n++)r=um[n],s=e[r],Ht(s)||(t[r]=s);return t}function Fo(t){Od(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Tc===!1&&(Tc=!0,oe.updateOffset(this),Tc=!1)}function Dn(t){return t instanceof Fo||t!=null&&t._isAMomentObject!=null}function Kb(t){oe.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function En(t,e){var n=!0;return Pr(function(){if(oe.deprecationHandler!=null&&oe.deprecationHandler(null,t),n){var r=[],s,i,o,u=arguments.length;for(i=0;i<u;i++){if(s="",typeof arguments[i]=="object"){s+=`
1124
+ [`+i+"] ";for(o in arguments[0])Ve(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[i];r.push(s)}Kb(t+`
1125
+ Arguments: `+Array.prototype.slice.call(r).join("")+`
1126
+ `+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var hm={};function Xb(t,e){oe.deprecationHandler!=null&&oe.deprecationHandler(t,e),hm[t]||(Kb(e),hm[t]=!0)}oe.suppressDeprecationWarnings=!1;oe.deprecationHandler=null;function rr(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function p4(t){var e,n;for(n in t)Ve(t,n)&&(e=t[n],rr(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Au(t,e){var n=Pr({},t),r;for(r in e)Ve(e,r)&&(di(t[r])&&di(e[r])?(n[r]={},Pr(n[r],t[r]),Pr(n[r],e[r])):e[r]!=null?n[r]=e[r]:delete n[r]);for(r in t)Ve(t,r)&&!Ve(e,r)&&di(t[r])&&(n[r]=Pr({},n[r]));return n}function Ld(t){t!=null&&this.set(t)}var Ou;Object.keys?Ou=Object.keys:Ou=function(t){var e,n=[];for(e in t)Ve(t,e)&&n.push(e);return n};var m4={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function g4(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return rr(r)?r.call(e,n):r}function Yn(t,e,n){var r=""+Math.abs(t),s=e-r.length,i=t>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var Rd=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Jo=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ac={},Wi={};function pe(t,e,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),t&&(Wi[t]=s),e&&(Wi[e[0]]=function(){return Yn(s.apply(this,arguments),e[1],e[2])}),n&&(Wi[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function v4(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function y4(t){var e=t.match(Rd),n,r;for(n=0,r=e.length;n<r;n++)Wi[e[n]]?e[n]=Wi[e[n]]:e[n]=v4(e[n]);return function(s){var i="",o;for(o=0;o<r;o++)i+=rr(e[o])?e[o].call(s,t):e[o];return i}}function oa(t,e){return t.isValid()?(e=qb(e,t.localeData()),Ac[e]=Ac[e]||y4(e),Ac[e](t)):t.localeData().invalidDate()}function qb(t,e){var n=5;function r(s){return e.longDateFormat(s)||s}for(Jo.lastIndex=0;n>=0&&Jo.test(t);)t=t.replace(Jo,r),Jo.lastIndex=0,n-=1;return t}var b4={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function w4(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(Rd).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var S4="Invalid date";function _4(){return this._invalidDate}var x4="%d",C4=/\d{1,2}/;function E4(t){return this._ordinal.replace("%d",t)}var k4={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $4(t,e,n,r){var s=this._relativeTime[n];return rr(s)?s(t,e,n,r):s.replace(/%d/i,t)}function T4(t,e){var n=this._relativeTime[t>0?"future":"past"];return rr(n)?n(e):n.replace(/%s/i,e)}var Ms={};function Mt(t,e){var n=t.toLowerCase();Ms[n]=Ms[n+"s"]=Ms[e]=t}function kn(t){return typeof t=="string"?Ms[t]||Ms[t.toLowerCase()]:void 0}function Md(t){var e={},n,r;for(r in t)Ve(t,r)&&(n=kn(r),n&&(e[n]=t[r]));return e}var Zb={};function It(t,e){Zb[t]=e}function A4(t){var e=[],n;for(n in t)Ve(t,n)&&e.push({unit:n,priority:Zb[n]});return e.sort(function(r,s){return r.priority-s.priority}),e}function Jl(t){return t%4===0&&t%100!==0||t%400===0}function mn(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Le(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=mn(e)),n}function ds(t,e){return function(n){return n!=null?(Qb(this,t,n),oe.updateOffset(this,e),this):Ta(this,t)}}function Ta(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Qb(t,e,n){t.isValid()&&!isNaN(n)&&(e==="FullYear"&&Jl(t.year())&&t.month()===1&&t.date()===29?(n=Le(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ec(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function O4(t){return t=kn(t),rr(this[t])?this[t]():this}function L4(t,e){if(typeof t=="object"){t=Md(t);var n=A4(t),r,s=n.length;for(r=0;r<s;r++)this[n[r].unit](t[n[r].unit])}else if(t=kn(t),rr(this[t]))return this[t](e);return this}var e0=/\d/,hn=/\d\d/,t0=/\d{3}/,Id=/\d{4}/,Kl=/[+-]?\d{6}/,tt=/\d\d?/,n0=/\d\d\d\d?/,r0=/\d\d\d\d\d\d?/,Xl=/\d{1,3}/,Nd=/\d{1,4}/,ql=/[+-]?\d{1,6}/,fs=/\d+/,Zl=/[+-]?\d+/,R4=/Z|[+-]\d\d:?\d\d/gi,Ql=/Z|[+-]\d\d(?::?\d\d)?/gi,M4=/[+-]?\d+(\.\d{1,3})?/,Vo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Aa;Aa={};function le(t,e,n){Aa[t]=rr(e)?e:function(r,s){return r&&n?n:e}}function I4(t,e){return Ve(Aa,t)?Aa[t](e._strict,e._locale):new RegExp(N4(t))}function N4(t){return en(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,r,s,i){return n||r||s||i}))}function en(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Lu={};function Ke(t,e){var n,r=e,s;for(typeof t=="string"&&(t=[t]),vr(e)&&(r=function(i,o){o[e]=Le(i)}),s=t.length,n=0;n<s;n++)Lu[t[n]]=r}function Wo(t,e){Ke(t,function(n,r,s,i){s._w=s._w||{},e(n,s._w,s,i)})}function D4(t,e,n){e!=null&&Ve(Lu,t)&&Lu[t](e,n._a,n,t)}var Lt=0,dr=1,Un=2,wt=3,On=4,fr=5,ui=6,P4=7,B4=8;function F4(t,e){return(t%e+e)%e}var ft;Array.prototype.indexOf?ft=Array.prototype.indexOf:ft=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function ec(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=F4(e,12);return t+=(e-n)/12,n===1?Jl(t)?29:28:31-n%7%2}pe("M",["MM",2],"Mo",function(){return this.month()+1});pe("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)});pe("MMMM",0,0,function(t){return this.localeData().months(this,t)});Mt("month","M");It("month",8);le("M",tt);le("MM",tt,hn);le("MMM",function(t,e){return e.monthsShortRegex(t)});le("MMMM",function(t,e){return e.monthsRegex(t)});Ke(["M","MM"],function(t,e){e[dr]=Le(t)-1});Ke(["MMM","MMMM"],function(t,e,n,r){var s=n._locale.monthsParse(t,r,n._strict);s!=null?e[dr]=s:Ae(n).invalidMonth=t});var V4="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),i0="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),s0=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,W4=Vo,U4=Vo;function H4(t,e){return t?Nn(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||s0).test(e)?"format":"standalone"][t.month()]:Nn(this._months)?this._months:this._months.standalone}function j4(t,e){return t?Nn(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[s0.test(e)?"format":"standalone"][t.month()]:Nn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function z4(t,e,n){var r,s,i,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=nr([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?e==="MMM"?(s=ft.call(this._shortMonthsParse,o),s!==-1?s:null):(s=ft.call(this._longMonthsParse,o),s!==-1?s:null):e==="MMM"?(s=ft.call(this._shortMonthsParse,o),s!==-1?s:(s=ft.call(this._longMonthsParse,o),s!==-1?s:null)):(s=ft.call(this._longMonthsParse,o),s!==-1?s:(s=ft.call(this._shortMonthsParse,o),s!==-1?s:null))}function G4(t,e,n){var r,s,i;if(this._monthsParseExact)return z4.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=nr([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(n&&e==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function o0(t,e){var n;if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=Le(e);else if(e=t.localeData().monthsParse(e),!vr(e))return t}return n=Math.min(t.date(),ec(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function a0(t){return t!=null?(o0(this,t),oe.updateOffset(this,!0),this):Ta(this,"Month")}function Y4(){return ec(this.year(),this.month())}function J4(t){return this._monthsParseExact?(Ve(this,"_monthsRegex")||l0.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(Ve(this,"_monthsShortRegex")||(this._monthsShortRegex=W4),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function K4(t){return this._monthsParseExact?(Ve(this,"_monthsRegex")||l0.call(this),t?this._monthsStrictRegex:this._monthsRegex):(Ve(this,"_monthsRegex")||(this._monthsRegex=U4),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function l0(){function t(o,u){return u.length-o.length}var e=[],n=[],r=[],s,i;for(s=0;s<12;s++)i=nr([2e3,s]),e.push(this.monthsShort(i,"")),n.push(this.months(i,"")),r.push(this.months(i,"")),r.push(this.monthsShort(i,""));for(e.sort(t),n.sort(t),r.sort(t),s=0;s<12;s++)e[s]=en(e[s]),n[s]=en(n[s]);for(s=0;s<24;s++)r[s]=en(r[s]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}pe("Y",0,0,function(){var t=this.year();return t<=9999?Yn(t,4):"+"+t});pe(0,["YY",2],0,function(){return this.year()%100});pe(0,["YYYY",4],0,"year");pe(0,["YYYYY",5],0,"year");pe(0,["YYYYYY",6,!0],0,"year");Mt("year","y");It("year",1);le("Y",Zl);le("YY",tt,hn);le("YYYY",Nd,Id);le("YYYYY",ql,Kl);le("YYYYYY",ql,Kl);Ke(["YYYYY","YYYYYY"],Lt);Ke("YYYY",function(t,e){e[Lt]=t.length===2?oe.parseTwoDigitYear(t):Le(t)});Ke("YY",function(t,e){e[Lt]=oe.parseTwoDigitYear(t)});Ke("Y",function(t,e){e[Lt]=parseInt(t,10)});function Is(t){return Jl(t)?366:365}oe.parseTwoDigitYear=function(t){return Le(t)+(Le(t)>68?1900:2e3)};var c0=ds("FullYear",!0);function X4(){return Jl(this.year())}function q4(t,e,n,r,s,i,o){var u;return t<100&&t>=0?(u=new Date(t+400,e,n,r,s,i,o),isFinite(u.getFullYear())&&u.setFullYear(t)):u=new Date(t,e,n,r,s,i,o),u}function co(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Oa(t,e,n){var r=7+e-n,s=(7+co(t,0,r).getUTCDay()-e)%7;return-s+r-1}function u0(t,e,n,r,s){var i=(7+n-r)%7,o=Oa(t,r,s),u=1+7*(e-1)+i+o,l,f;return u<=0?(l=t-1,f=Is(l)+u):u>Is(t)?(l=t+1,f=u-Is(t)):(l=t,f=u),{year:l,dayOfYear:f}}function uo(t,e,n){var r=Oa(t.year(),e,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1,i,o;return s<1?(o=t.year()-1,i=s+mr(o,e,n)):s>mr(t.year(),e,n)?(i=s-mr(t.year(),e,n),o=t.year()+1):(o=t.year(),i=s),{week:i,year:o}}function mr(t,e,n){var r=Oa(t,e,n),s=Oa(t+1,e,n);return(Is(t)-r+s)/7}pe("w",["ww",2],"wo","week");pe("W",["WW",2],"Wo","isoWeek");Mt("week","w");Mt("isoWeek","W");It("week",5);It("isoWeek",5);le("w",tt);le("ww",tt,hn);le("W",tt);le("WW",tt,hn);Wo(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=Le(t)});function Z4(t){return uo(t,this._week.dow,this._week.doy).week}var Q4={dow:0,doy:6};function ez(){return this._week.dow}function tz(){return this._week.doy}function nz(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function rz(t){var e=uo(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}pe("d",0,"do","day");pe("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});pe("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});pe("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});pe("e",0,0,"weekday");pe("E",0,0,"isoWeekday");Mt("day","d");Mt("weekday","e");Mt("isoWeekday","E");It("day",11);It("weekday",11);It("isoWeekday",11);le("d",tt);le("e",tt);le("E",tt);le("dd",function(t,e){return e.weekdaysMinRegex(t)});le("ddd",function(t,e){return e.weekdaysShortRegex(t)});le("dddd",function(t,e){return e.weekdaysRegex(t)});Wo(["dd","ddd","dddd"],function(t,e,n,r){var s=n._locale.weekdaysParse(t,r,n._strict);s!=null?e.d=s:Ae(n).invalidWeekday=t});Wo(["d","e","E"],function(t,e,n,r){e[r]=Le(t)});function iz(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function sz(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Dd(t,e){return t.slice(e,7).concat(t.slice(0,e))}var oz="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),h0="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),az="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),lz=Vo,cz=Vo,uz=Vo;function hz(t,e){var n=Nn(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?Dd(n,this._week.dow):t?n[t.day()]:n}function dz(t){return t===!0?Dd(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function fz(t){return t===!0?Dd(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function pz(t,e,n){var r,s,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=nr([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?e==="dddd"?(s=ft.call(this._weekdaysParse,o),s!==-1?s:null):e==="ddd"?(s=ft.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=ft.call(this._minWeekdaysParse,o),s!==-1?s:null):e==="dddd"?(s=ft.call(this._weekdaysParse,o),s!==-1||(s=ft.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=ft.call(this._minWeekdaysParse,o),s!==-1?s:null)):e==="ddd"?(s=ft.call(this._shortWeekdaysParse,o),s!==-1||(s=ft.call(this._weekdaysParse,o),s!==-1)?s:(s=ft.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=ft.call(this._minWeekdaysParse,o),s!==-1||(s=ft.call(this._weekdaysParse,o),s!==-1)?s:(s=ft.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function mz(t,e,n){var r,s,i;if(this._weekdaysParseExact)return pz.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=nr([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function gz(t){if(!this.isValid())return t!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return t!=null?(t=iz(t,this.localeData()),this.add(t-e,"d")):e}function vz(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function yz(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=sz(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function bz(t){return this._weekdaysParseExact?(Ve(this,"_weekdaysRegex")||Pd.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(Ve(this,"_weekdaysRegex")||(this._weekdaysRegex=lz),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function wz(t){return this._weekdaysParseExact?(Ve(this,"_weekdaysRegex")||Pd.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ve(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cz),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Sz(t){return this._weekdaysParseExact?(Ve(this,"_weekdaysRegex")||Pd.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ve(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=uz),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Pd(){function t(a,c){return c.length-a.length}var e=[],n=[],r=[],s=[],i,o,u,l,f;for(i=0;i<7;i++)o=nr([2e3,1]).day(i),u=en(this.weekdaysMin(o,"")),l=en(this.weekdaysShort(o,"")),f=en(this.weekdays(o,"")),e.push(u),n.push(l),r.push(f),s.push(u),s.push(l),s.push(f);e.sort(t),n.sort(t),r.sort(t),s.sort(t),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Bd(){return this.hours()%12||12}function _z(){return this.hours()||24}pe("H",["HH",2],0,"hour");pe("h",["hh",2],0,Bd);pe("k",["kk",2],0,_z);pe("hmm",0,0,function(){return""+Bd.apply(this)+Yn(this.minutes(),2)});pe("hmmss",0,0,function(){return""+Bd.apply(this)+Yn(this.minutes(),2)+Yn(this.seconds(),2)});pe("Hmm",0,0,function(){return""+this.hours()+Yn(this.minutes(),2)});pe("Hmmss",0,0,function(){return""+this.hours()+Yn(this.minutes(),2)+Yn(this.seconds(),2)});function d0(t,e){pe(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}d0("a",!0);d0("A",!1);Mt("hour","h");It("hour",13);function f0(t,e){return e._meridiemParse}le("a",f0);le("A",f0);le("H",tt);le("h",tt);le("k",tt);le("HH",tt,hn);le("hh",tt,hn);le("kk",tt,hn);le("hmm",n0);le("hmmss",r0);le("Hmm",n0);le("Hmmss",r0);Ke(["H","HH"],wt);Ke(["k","kk"],function(t,e,n){var r=Le(t);e[wt]=r===24?0:r});Ke(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t});Ke(["h","hh"],function(t,e,n){e[wt]=Le(t),Ae(n).bigHour=!0});Ke("hmm",function(t,e,n){var r=t.length-2;e[wt]=Le(t.substr(0,r)),e[On]=Le(t.substr(r)),Ae(n).bigHour=!0});Ke("hmmss",function(t,e,n){var r=t.length-4,s=t.length-2;e[wt]=Le(t.substr(0,r)),e[On]=Le(t.substr(r,2)),e[fr]=Le(t.substr(s)),Ae(n).bigHour=!0});Ke("Hmm",function(t,e,n){var r=t.length-2;e[wt]=Le(t.substr(0,r)),e[On]=Le(t.substr(r))});Ke("Hmmss",function(t,e,n){var r=t.length-4,s=t.length-2;e[wt]=Le(t.substr(0,r)),e[On]=Le(t.substr(r,2)),e[fr]=Le(t.substr(s))});function xz(t){return(t+"").toLowerCase().charAt(0)==="p"}var Cz=/[ap]\.?m?\.?/i,Ez=ds("Hours",!0);function kz(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var p0={calendar:m4,longDateFormat:b4,invalidDate:S4,ordinal:x4,dayOfMonthOrdinalParse:C4,relativeTime:k4,months:V4,monthsShort:i0,week:Q4,weekdays:oz,weekdaysMin:az,weekdaysShort:h0,meridiemParse:Cz},rt={},Ss={},ho;function $z(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function dm(t){return t&&t.toLowerCase().replace("_","-")}function Tz(t){for(var e=0,n,r,s,i;e<t.length;){for(i=dm(t[e]).split("-"),n=i.length,r=dm(t[e+1]),r=r?r.split("-"):null;n>0;){if(s=tc(i.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&$z(i,r)>=n-1)break;n--}e++}return ho}function Az(t){return t.match("^[^/\\\\]*$")!=null}function tc(t){var e=null,n;if(rt[t]===void 0&&typeof module<"u"&&module&&module.exports&&Az(t))try{e=ho._abbr,n=require,n("./locale/"+t),Ur(e)}catch{rt[t]=null}return rt[t]}function Ur(t,e){var n;return t&&(Ht(e)?n=$r(t):n=Fd(t,e),n?ho=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ho._abbr}function Fd(t,e){if(e!==null){var n,r=p0;if(e.abbr=t,rt[t]!=null)Xb("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=rt[t]._config;else if(e.parentLocale!=null)if(rt[e.parentLocale]!=null)r=rt[e.parentLocale]._config;else if(n=tc(e.parentLocale),n!=null)r=n._config;else return Ss[e.parentLocale]||(Ss[e.parentLocale]=[]),Ss[e.parentLocale].push({name:t,config:e}),null;return rt[t]=new Ld(Au(r,e)),Ss[t]&&Ss[t].forEach(function(s){Fd(s.name,s.config)}),Ur(t),rt[t]}else return delete rt[t],null}function Oz(t,e){if(e!=null){var n,r,s=p0;rt[t]!=null&&rt[t].parentLocale!=null?rt[t].set(Au(rt[t]._config,e)):(r=tc(t),r!=null&&(s=r._config),e=Au(s,e),r==null&&(e.abbr=t),n=new Ld(e),n.parentLocale=rt[t],rt[t]=n),Ur(t)}else rt[t]!=null&&(rt[t].parentLocale!=null?(rt[t]=rt[t].parentLocale,t===Ur()&&Ur(t)):rt[t]!=null&&delete rt[t]);return rt[t]}function $r(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ho;if(!Nn(t)){if(e=tc(t),e)return e;t=[t]}return Tz(t)}function Lz(){return Ou(rt)}function Vd(t){var e,n=t._a;return n&&Ae(t).overflow===-2&&(e=n[dr]<0||n[dr]>11?dr:n[Un]<1||n[Un]>ec(n[Lt],n[dr])?Un:n[wt]<0||n[wt]>24||n[wt]===24&&(n[On]!==0||n[fr]!==0||n[ui]!==0)?wt:n[On]<0||n[On]>59?On:n[fr]<0||n[fr]>59?fr:n[ui]<0||n[ui]>999?ui:-1,Ae(t)._overflowDayOfYear&&(e<Lt||e>Un)&&(e=Un),Ae(t)._overflowWeeks&&e===-1&&(e=P4),Ae(t)._overflowWeekday&&e===-1&&(e=B4),Ae(t).overflow=e),t}var Rz=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mz=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Iz=/Z|[+-]\d\d(?::?\d\d)?/,Ko=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Oc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Nz=/^\/?Date\((-?\d+)/i,Dz=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Pz={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function m0(t){var e,n,r=t._i,s=Rz.exec(r)||Mz.exec(r),i,o,u,l,f=Ko.length,a=Oc.length;if(s){for(Ae(t).iso=!0,e=0,n=f;e<n;e++)if(Ko[e][1].exec(s[1])){o=Ko[e][0],i=Ko[e][2]!==!1;break}if(o==null){t._isValid=!1;return}if(s[3]){for(e=0,n=a;e<n;e++)if(Oc[e][1].exec(s[3])){u=(s[2]||" ")+Oc[e][0];break}if(u==null){t._isValid=!1;return}}if(!i&&u!=null){t._isValid=!1;return}if(s[4])if(Iz.exec(s[4]))l="Z";else{t._isValid=!1;return}t._f=o+(u||"")+(l||""),Ud(t)}else t._isValid=!1}function Bz(t,e,n,r,s,i){var o=[Fz(t),i0.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return i&&o.push(parseInt(i,10)),o}function Fz(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Vz(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Wz(t,e,n){if(t){var r=h0.indexOf(t),s=new Date(e[0],e[1],e[2]).getDay();if(r!==s)return Ae(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Uz(t,e,n){if(t)return Pz[t];if(e)return 0;var r=parseInt(n,10),s=r%100,i=(r-s)/100;return i*60+s}function g0(t){var e=Dz.exec(Vz(t._i)),n;if(e){if(n=Bz(e[4],e[3],e[2],e[5],e[6],e[7]),!Wz(e[1],n,t))return;t._a=n,t._tzm=Uz(e[8],e[9],e[10]),t._d=co.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),Ae(t).rfc2822=!0}else t._isValid=!1}function Hz(t){var e=Nz.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(m0(t),t._isValid===!1)delete t._isValid;else return;if(g0(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:oe.createFromInputFallback(t)}oe.createFromInputFallback=En("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Ii(t,e,n){return t!=null?t:e!=null?e:n}function jz(t){var e=new Date(oe.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Wd(t){var e,n,r=[],s,i,o;if(!t._d){for(s=jz(t),t._w&&t._a[Un]==null&&t._a[dr]==null&&zz(t),t._dayOfYear!=null&&(o=Ii(t._a[Lt],s[Lt]),(t._dayOfYear>Is(o)||t._dayOfYear===0)&&(Ae(t)._overflowDayOfYear=!0),n=co(o,0,t._dayOfYear),t._a[dr]=n.getUTCMonth(),t._a[Un]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=s[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[wt]===24&&t._a[On]===0&&t._a[fr]===0&&t._a[ui]===0&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?co:q4).apply(null,r),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(Ae(t).weekdayMismatch=!0)}}function zz(t){var e,n,r,s,i,o,u,l,f;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,n=Ii(e.GG,t._a[Lt],uo(et(),1,4).year),r=Ii(e.W,1),s=Ii(e.E,1),(s<1||s>7)&&(l=!0)):(i=t._locale._week.dow,o=t._locale._week.doy,f=uo(et(),i,o),n=Ii(e.gg,t._a[Lt],f.year),r=Ii(e.w,f.week),e.d!=null?(s=e.d,(s<0||s>6)&&(l=!0)):e.e!=null?(s=e.e+i,(e.e<0||e.e>6)&&(l=!0)):s=i),r<1||r>mr(n,i,o)?Ae(t)._overflowWeeks=!0:l!=null?Ae(t)._overflowWeekday=!0:(u=u0(n,r,s,i,o),t._a[Lt]=u.year,t._dayOfYear=u.dayOfYear)}oe.ISO_8601=function(){};oe.RFC_2822=function(){};function Ud(t){if(t._f===oe.ISO_8601){m0(t);return}if(t._f===oe.RFC_2822){g0(t);return}t._a=[],Ae(t).empty=!0;var e=""+t._i,n,r,s,i,o,u=e.length,l=0,f,a;for(s=qb(t._f,t._locale).match(Rd)||[],a=s.length,n=0;n<a;n++)i=s[n],r=(e.match(I4(i,t))||[])[0],r&&(o=e.substr(0,e.indexOf(r)),o.length>0&&Ae(t).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Wi[i]?(r?Ae(t).empty=!1:Ae(t).unusedTokens.push(i),D4(i,r,t)):t._strict&&!r&&Ae(t).unusedTokens.push(i);Ae(t).charsLeftOver=u-l,e.length>0&&Ae(t).unusedInput.push(e),t._a[wt]<=12&&Ae(t).bigHour===!0&&t._a[wt]>0&&(Ae(t).bigHour=void 0),Ae(t).parsedDateParts=t._a.slice(0),Ae(t).meridiem=t._meridiem,t._a[wt]=Gz(t._locale,t._a[wt],t._meridiem),f=Ae(t).era,f!==null&&(t._a[Lt]=t._locale.erasConvertYear(f,t._a[Lt])),Wd(t),Vd(t)}function Gz(t,e,n){var r;return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(r=t.isPM(n),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function Yz(t){var e,n,r,s,i,o,u=!1,l=t._f.length;if(l===0){Ae(t).invalidFormat=!0,t._d=new Date(NaN);return}for(s=0;s<l;s++)i=0,o=!1,e=Od({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[s],Ud(e),Ad(e)&&(o=!0),i+=Ae(e).charsLeftOver,i+=Ae(e).unusedTokens.length*10,Ae(e).score=i,u?i<r&&(r=i,n=e):(r==null||i<r||o)&&(r=i,n=e,o&&(u=!0));Pr(t,n||e)}function Jz(t){if(!t._d){var e=Md(t._i),n=e.day===void 0?e.date:e.day;t._a=Jb([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),Wd(t)}}function Kz(t){var e=new Fo(Vd(v0(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function v0(t){var e=t._i,n=t._f;return t._locale=t._locale||$r(t._l),e===null||n===void 0&&e===""?Yl({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),Dn(e)?new Fo(Vd(e)):(Bo(e)?t._d=e:Nn(n)?Yz(t):n?Ud(t):Xz(t),Ad(t)||(t._d=null),t))}function Xz(t){var e=t._i;Ht(e)?t._d=new Date(oe.now()):Bo(e)?t._d=new Date(e.valueOf()):typeof e=="string"?Hz(t):Nn(e)?(t._a=Jb(e.slice(0),function(n){return parseInt(n,10)}),Wd(t)):di(e)?Jz(t):vr(e)?t._d=new Date(e):oe.createFromInputFallback(t)}function y0(t,e,n,r,s){var i={};return(e===!0||e===!1)&&(r=e,e=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(di(t)&&Td(t)||Nn(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=n,i._i=t,i._f=e,i._strict=r,Kz(i)}function et(t,e,n,r){return y0(t,e,n,r,!1)}var qz=En("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=et.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Yl()}),Zz=En("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=et.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Yl()});function b0(t,e){var n,r;if(e.length===1&&Nn(e[0])&&(e=e[0]),!e.length)return et();for(n=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](n))&&(n=e[r]);return n}function Qz(){var t=[].slice.call(arguments,0);return b0("isBefore",t)}function eG(){var t=[].slice.call(arguments,0);return b0("isAfter",t)}var tG=function(){return Date.now?Date.now():+new Date},_s=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nG(t){var e,n=!1,r,s=_s.length;for(e in t)if(Ve(t,e)&&!(ft.call(_s,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(r=0;r<s;++r)if(t[_s[r]]){if(n)return!1;parseFloat(t[_s[r]])!==Le(t[_s[r]])&&(n=!0)}return!0}function rG(){return this._isValid}function iG(){return Bn(NaN)}function nc(t){var e=Md(t),n=e.year||0,r=e.quarter||0,s=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,u=e.hour||0,l=e.minute||0,f=e.second||0,a=e.millisecond||0;this._isValid=nG(e),this._milliseconds=+a+f*1e3+l*6e4+u*1e3*60*60,this._days=+o+i*7,this._months=+s+r*3+n*12,this._data={},this._locale=$r(),this._bubble()}function aa(t){return t instanceof nc}function Ru(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function sG(t,e,n){var r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),i=0,o;for(o=0;o<r;o++)(n&&t[o]!==e[o]||!n&&Le(t[o])!==Le(e[o]))&&i++;return i+s}function w0(t,e){pe(t,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Yn(~~(n/60),2)+e+Yn(~~n%60,2)})}w0("Z",":");w0("ZZ","");le("Z",Ql);le("ZZ",Ql);Ke(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Hd(Ql,t)});var oG=/([\+\-]|\d\d)/gi;function Hd(t,e){var n=(e||"").match(t),r,s,i;return n===null?null:(r=n[n.length-1]||[],s=(r+"").match(oG)||["-",0,0],i=+(s[1]*60)+Le(s[2]),i===0?0:s[0]==="+"?i:-i)}function jd(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(Dn(t)||Bo(t)?t.valueOf():et(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),oe.updateOffset(n,!1),n):et(t).local()}function Mu(t){return-Math.round(t._d.getTimezoneOffset())}oe.updateOffset=function(){};function aG(t,e,n){var r=this._offset||0,s;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=Hd(Ql,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(s=Mu(this)),this._offset=t,this._isUTC=!0,s!=null&&this.add(s,"m"),r!==t&&(!e||this._changeInProgress?x0(this,Bn(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,oe.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Mu(this)}function lG(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function cG(t){return this.utcOffset(0,t)}function uG(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Mu(this),"m")),this}function hG(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=Hd(R4,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function dG(t){return this.isValid()?(t=t?et(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function fG(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function pG(){if(!Ht(this._isDSTShifted))return this._isDSTShifted;var t={},e;return Od(t,this),t=v0(t),t._a?(e=t._isUTC?nr(t._a):et(t._a),this._isDSTShifted=this.isValid()&&sG(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function mG(){return this.isValid()?!this._isUTC:!1}function gG(){return this.isValid()?this._isUTC:!1}function S0(){return this.isValid()?this._isUTC&&this._offset===0:!1}var vG=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,yG=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Bn(t,e){var n=t,r=null,s,i,o;return aa(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:vr(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(r=vG.exec(t))?(s=r[1]==="-"?-1:1,n={y:0,d:Le(r[Un])*s,h:Le(r[wt])*s,m:Le(r[On])*s,s:Le(r[fr])*s,ms:Le(Ru(r[ui]*1e3))*s}):(r=yG.exec(t))?(s=r[1]==="-"?-1:1,n={y:ni(r[2],s),M:ni(r[3],s),w:ni(r[4],s),d:ni(r[5],s),h:ni(r[6],s),m:ni(r[7],s),s:ni(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=bG(et(n.from),et(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new nc(n),aa(t)&&Ve(t,"_locale")&&(i._locale=t._locale),aa(t)&&Ve(t,"_isValid")&&(i._isValid=t._isValid),i}Bn.fn=nc.prototype;Bn.invalid=iG;function ni(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function fm(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function bG(t,e){var n;return t.isValid()&&e.isValid()?(e=jd(e,t),t.isBefore(e)?n=fm(t,e):(n=fm(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function _0(t,e){return function(n,r){var s,i;return r!==null&&!isNaN(+r)&&(Xb(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),s=Bn(n,r),x0(this,s,t),this}}function x0(t,e,n,r){var s=e._milliseconds,i=Ru(e._days),o=Ru(e._months);!t.isValid()||(r=r==null?!0:r,o&&o0(t,Ta(t,"Month")+o*n),i&&Qb(t,"Date",Ta(t,"Date")+i*n),s&&t._d.setTime(t._d.valueOf()+s*n),r&&oe.updateOffset(t,i||o))}var wG=_0(1,"add"),SG=_0(-1,"subtract");function C0(t){return typeof t=="string"||t instanceof String}function _G(t){return Dn(t)||Bo(t)||C0(t)||vr(t)||CG(t)||xG(t)||t===null||t===void 0}function xG(t){var e=di(t)&&!Td(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,o=r.length;for(s=0;s<o;s+=1)i=r[s],n=n||Ve(t,i);return e&&n}function CG(t){var e=Nn(t),n=!1;return e&&(n=t.filter(function(r){return!vr(r)&&C0(t)}).length===0),e&&n}function EG(t){var e=di(t)&&!Td(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,i;for(s=0;s<r.length;s+=1)i=r[s],n=n||Ve(t,i);return e&&n}function kG(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function $G(t,e){arguments.length===1&&(arguments[0]?_G(arguments[0])?(t=arguments[0],e=void 0):EG(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||et(),r=jd(n,this).startOf("day"),s=oe.calendarFormat(this,r)||"sameElse",i=e&&(rr(e[s])?e[s].call(this,n):e[s]);return this.format(i||this.localeData().calendar(s,this,et(n)))}function TG(){return new Fo(this)}function AG(t,e){var n=Dn(t)?t:et(t);return this.isValid()&&n.isValid()?(e=kn(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function OG(t,e){var n=Dn(t)?t:et(t);return this.isValid()&&n.isValid()?(e=kn(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function LG(t,e,n,r){var s=Dn(t)?t:et(t),i=Dn(e)?e:et(e);return this.isValid()&&s.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function RG(t,e){var n=Dn(t)?t:et(t),r;return this.isValid()&&n.isValid()?(e=kn(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function MG(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function IG(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function NG(t,e,n){var r,s,i;if(!this.isValid())return NaN;if(r=jd(t,this),!r.isValid())return NaN;switch(s=(r.utcOffset()-this.utcOffset())*6e4,e=kn(e),e){case"year":i=la(this,r)/12;break;case"month":i=la(this,r);break;case"quarter":i=la(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-s)/864e5;break;case"week":i=(this-r-s)/6048e5;break;default:i=this-r}return n?i:mn(i)}function la(t,e){if(t.date()<e.date())return-la(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,"months"),s,i;return e-r<0?(s=t.clone().add(n-1,"months"),i=(e-r)/(r-s)):(s=t.clone().add(n+1,"months"),i=(e-r)/(s-r)),-(n+i)||0}oe.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";oe.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function DG(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function PG(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?oa(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):rr(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",oa(n,"Z")):oa(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function BG(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,r,s,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(n+r+s+i)}function FG(t){t||(t=this.isUtc()?oe.defaultFormatUtc:oe.defaultFormat);var e=oa(this,t);return this.localeData().postformat(e)}function VG(t,e){return this.isValid()&&(Dn(t)&&t.isValid()||et(t).isValid())?Bn({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function WG(t){return this.from(et(),t)}function UG(t,e){return this.isValid()&&(Dn(t)&&t.isValid()||et(t).isValid())?Bn({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function HG(t){return this.to(et(),t)}function E0(t){var e;return t===void 0?this._locale._abbr:(e=$r(t),e!=null&&(this._locale=e),this)}var k0=En("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function $0(){return this._locale}var La=1e3,Ui=60*La,Ra=60*Ui,T0=(365*400+97)*24*Ra;function Hi(t,e){return(t%e+e)%e}function A0(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-T0:new Date(t,e,n).valueOf()}function O0(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-T0:Date.UTC(t,e,n)}function jG(t){var e,n;if(t=kn(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?O0:A0,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Hi(e+(this._isUTC?0:this.utcOffset()*Ui),Ra);break;case"minute":e=this._d.valueOf(),e-=Hi(e,Ui);break;case"second":e=this._d.valueOf(),e-=Hi(e,La);break}return this._d.setTime(e),oe.updateOffset(this,!0),this}function zG(t){var e,n;if(t=kn(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?O0:A0,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Ra-Hi(e+(this._isUTC?0:this.utcOffset()*Ui),Ra)-1;break;case"minute":e=this._d.valueOf(),e+=Ui-Hi(e,Ui)-1;break;case"second":e=this._d.valueOf(),e+=La-Hi(e,La)-1;break}return this._d.setTime(e),oe.updateOffset(this,!0),this}function GG(){return this._d.valueOf()-(this._offset||0)*6e4}function YG(){return Math.floor(this.valueOf()/1e3)}function JG(){return new Date(this.valueOf())}function KG(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function XG(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function qG(){return this.isValid()?this.toISOString():null}function ZG(){return Ad(this)}function QG(){return Pr({},Ae(this))}function e3(){return Ae(this).overflow}function t3(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}pe("N",0,0,"eraAbbr");pe("NN",0,0,"eraAbbr");pe("NNN",0,0,"eraAbbr");pe("NNNN",0,0,"eraName");pe("NNNNN",0,0,"eraNarrow");pe("y",["y",1],"yo","eraYear");pe("y",["yy",2],0,"eraYear");pe("y",["yyy",3],0,"eraYear");pe("y",["yyyy",4],0,"eraYear");le("N",zd);le("NN",zd);le("NNN",zd);le("NNNN",d3);le("NNNNN",f3);Ke(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){var s=n._locale.erasParse(t,r,n._strict);s?Ae(n).era=s:Ae(n).invalidEra=t});le("y",fs);le("yy",fs);le("yyy",fs);le("yyyy",fs);le("yo",p3);Ke(["y","yy","yyy","yyyy"],Lt);Ke(["yo"],function(t,e,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Lt]=n._locale.eraYearOrdinalParse(t,s):e[Lt]=parseInt(t,10)});function n3(t,e){var n,r,s,i=this._eras||$r("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":s=oe(i[n].since).startOf("day"),i[n].since=s.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":s=oe(i[n].until).startOf("day").valueOf(),i[n].until=s.valueOf();break}}return i}function r3(t,e,n){var r,s,i=this.eras(),o,u,l;for(t=t.toUpperCase(),r=0,s=i.length;r<s;++r)if(o=i[r].name.toUpperCase(),u=i[r].abbr.toUpperCase(),l=i[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(u===t)return i[r];break;case"NNNN":if(o===t)return i[r];break;case"NNNNN":if(l===t)return i[r];break}else if([o,u,l].indexOf(t)>=0)return i[r]}function i3(t,e){var n=t.since<=t.until?1:-1;return e===void 0?oe(t.since).year():oe(t.since).year()+(e-t.offset)*n}function s3(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].name;return""}function o3(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].narrow;return""}function a3(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].abbr;return""}function l3(){var t,e,n,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=s[t].since<=s[t].until?1:-1,r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return(this.year()-oe(s[t].since).year())*n+s[t].offset;return this.year()}function c3(t){return Ve(this,"_erasNameRegex")||Gd.call(this),t?this._erasNameRegex:this._erasRegex}function u3(t){return Ve(this,"_erasAbbrRegex")||Gd.call(this),t?this._erasAbbrRegex:this._erasRegex}function h3(t){return Ve(this,"_erasNarrowRegex")||Gd.call(this),t?this._erasNarrowRegex:this._erasRegex}function zd(t,e){return e.erasAbbrRegex(t)}function d3(t,e){return e.erasNameRegex(t)}function f3(t,e){return e.erasNarrowRegex(t)}function p3(t,e){return e._eraYearOrdinalRegex||fs}function Gd(){var t=[],e=[],n=[],r=[],s,i,o=this.eras();for(s=0,i=o.length;s<i;++s)e.push(en(o[s].name)),t.push(en(o[s].abbr)),n.push(en(o[s].narrow)),r.push(en(o[s].name)),r.push(en(o[s].abbr)),r.push(en(o[s].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}pe(0,["gg",2],0,function(){return this.weekYear()%100});pe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function rc(t,e){pe(0,[t,t.length],0,e)}rc("gggg","weekYear");rc("ggggg","weekYear");rc("GGGG","isoWeekYear");rc("GGGGG","isoWeekYear");Mt("weekYear","gg");Mt("isoWeekYear","GG");It("weekYear",1);It("isoWeekYear",1);le("G",Zl);le("g",Zl);le("GG",tt,hn);le("gg",tt,hn);le("GGGG",Nd,Id);le("gggg",Nd,Id);le("GGGGG",ql,Kl);le("ggggg",ql,Kl);Wo(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=Le(t)});Wo(["gg","GG"],function(t,e,n,r){e[r]=oe.parseTwoDigitYear(t)});function m3(t){return L0.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function g3(t){return L0.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function v3(){return mr(this.year(),1,4)}function y3(){return mr(this.isoWeekYear(),1,4)}function b3(){var t=this.localeData()._week;return mr(this.year(),t.dow,t.doy)}function w3(){var t=this.localeData()._week;return mr(this.weekYear(),t.dow,t.doy)}function L0(t,e,n,r,s){var i;return t==null?uo(this,r,s).year:(i=mr(t,r,s),e>i&&(e=i),S3.call(this,t,e,n,r,s))}function S3(t,e,n,r,s){var i=u0(t,e,n,r,s),o=co(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}pe("Q",0,"Qo","quarter");Mt("quarter","Q");It("quarter",7);le("Q",e0);Ke("Q",function(t,e){e[dr]=(Le(t)-1)*3});function _3(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}pe("D",["DD",2],"Do","date");Mt("date","D");It("date",9);le("D",tt);le("DD",tt,hn);le("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});Ke(["D","DD"],Un);Ke("Do",function(t,e){e[Un]=Le(t.match(tt)[0])});var R0=ds("Date",!0);pe("DDD",["DDDD",3],"DDDo","dayOfYear");Mt("dayOfYear","DDD");It("dayOfYear",4);le("DDD",Xl);le("DDDD",t0);Ke(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Le(t)});function x3(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}pe("m",["mm",2],0,"minute");Mt("minute","m");It("minute",14);le("m",tt);le("mm",tt,hn);Ke(["m","mm"],On);var C3=ds("Minutes",!1);pe("s",["ss",2],0,"second");Mt("second","s");It("second",15);le("s",tt);le("ss",tt,hn);Ke(["s","ss"],fr);var E3=ds("Seconds",!1);pe("S",0,0,function(){return~~(this.millisecond()/100)});pe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});pe(0,["SSS",3],0,"millisecond");pe(0,["SSSS",4],0,function(){return this.millisecond()*10});pe(0,["SSSSS",5],0,function(){return this.millisecond()*100});pe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});pe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});pe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});pe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Mt("millisecond","ms");It("millisecond",16);le("S",Xl,e0);le("SS",Xl,hn);le("SSS",Xl,t0);var Br,M0;for(Br="SSSS";Br.length<=9;Br+="S")le(Br,fs);function k3(t,e){e[ui]=Le(("0."+t)*1e3)}for(Br="S";Br.length<=9;Br+="S")Ke(Br,k3);M0=ds("Milliseconds",!1);pe("z",0,0,"zoneAbbr");pe("zz",0,0,"zoneName");function $3(){return this._isUTC?"UTC":""}function T3(){return this._isUTC?"Coordinated Universal Time":""}var Q=Fo.prototype;Q.add=wG;Q.calendar=$G;Q.clone=TG;Q.diff=NG;Q.endOf=zG;Q.format=FG;Q.from=VG;Q.fromNow=WG;Q.to=UG;Q.toNow=HG;Q.get=O4;Q.invalidAt=e3;Q.isAfter=AG;Q.isBefore=OG;Q.isBetween=LG;Q.isSame=RG;Q.isSameOrAfter=MG;Q.isSameOrBefore=IG;Q.isValid=ZG;Q.lang=k0;Q.locale=E0;Q.localeData=$0;Q.max=Zz;Q.min=qz;Q.parsingFlags=QG;Q.set=L4;Q.startOf=jG;Q.subtract=SG;Q.toArray=KG;Q.toObject=XG;Q.toDate=JG;Q.toISOString=PG;Q.inspect=BG;typeof Symbol<"u"&&Symbol.for!=null&&(Q[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Q.toJSON=qG;Q.toString=DG;Q.unix=YG;Q.valueOf=GG;Q.creationData=t3;Q.eraName=s3;Q.eraNarrow=o3;Q.eraAbbr=a3;Q.eraYear=l3;Q.year=c0;Q.isLeapYear=X4;Q.weekYear=m3;Q.isoWeekYear=g3;Q.quarter=Q.quarters=_3;Q.month=a0;Q.daysInMonth=Y4;Q.week=Q.weeks=nz;Q.isoWeek=Q.isoWeeks=rz;Q.weeksInYear=b3;Q.weeksInWeekYear=w3;Q.isoWeeksInYear=v3;Q.isoWeeksInISOWeekYear=y3;Q.date=R0;Q.day=Q.days=gz;Q.weekday=vz;Q.isoWeekday=yz;Q.dayOfYear=x3;Q.hour=Q.hours=Ez;Q.minute=Q.minutes=C3;Q.second=Q.seconds=E3;Q.millisecond=Q.milliseconds=M0;Q.utcOffset=aG;Q.utc=cG;Q.local=uG;Q.parseZone=hG;Q.hasAlignedHourOffset=dG;Q.isDST=fG;Q.isLocal=mG;Q.isUtcOffset=gG;Q.isUtc=S0;Q.isUTC=S0;Q.zoneAbbr=$3;Q.zoneName=T3;Q.dates=En("dates accessor is deprecated. Use date instead.",R0);Q.months=En("months accessor is deprecated. Use month instead",a0);Q.years=En("years accessor is deprecated. Use year instead",c0);Q.zone=En("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",lG);Q.isDSTShifted=En("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",pG);function A3(t){return et(t*1e3)}function O3(){return et.apply(null,arguments).parseZone()}function I0(t){return t}var We=Ld.prototype;We.calendar=g4;We.longDateFormat=w4;We.invalidDate=_4;We.ordinal=E4;We.preparse=I0;We.postformat=I0;We.relativeTime=$4;We.pastFuture=T4;We.set=p4;We.eras=n3;We.erasParse=r3;We.erasConvertYear=i3;We.erasAbbrRegex=u3;We.erasNameRegex=c3;We.erasNarrowRegex=h3;We.months=H4;We.monthsShort=j4;We.monthsParse=G4;We.monthsRegex=K4;We.monthsShortRegex=J4;We.week=Z4;We.firstDayOfYear=tz;We.firstDayOfWeek=ez;We.weekdays=hz;We.weekdaysMin=fz;We.weekdaysShort=dz;We.weekdaysParse=mz;We.weekdaysRegex=bz;We.weekdaysShortRegex=wz;We.weekdaysMinRegex=Sz;We.isPM=xz;We.meridiem=kz;function Ma(t,e,n,r){var s=$r(),i=nr().set(r,e);return s[n](i,t)}function N0(t,e,n){if(vr(t)&&(e=t,t=void 0),t=t||"",e!=null)return Ma(t,e,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=Ma(t,r,n,"month");return s}function Yd(t,e,n,r){typeof t=="boolean"?(vr(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,vr(e)&&(n=e,e=void 0),e=e||"");var s=$r(),i=t?s._week.dow:0,o,u=[];if(n!=null)return Ma(e,(n+i)%7,r,"day");for(o=0;o<7;o++)u[o]=Ma(e,(o+i)%7,r,"day");return u}function L3(t,e){return N0(t,e,"months")}function R3(t,e){return N0(t,e,"monthsShort")}function M3(t,e,n){return Yd(t,e,n,"weekdays")}function I3(t,e,n){return Yd(t,e,n,"weekdaysShort")}function N3(t,e,n){return Yd(t,e,n,"weekdaysMin")}Ur("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=Le(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}});oe.lang=En("moment.lang is deprecated. Use moment.locale instead.",Ur);oe.langData=En("moment.langData is deprecated. Use moment.localeData instead.",$r);var sr=Math.abs;function D3(){var t=this._data;return this._milliseconds=sr(this._milliseconds),this._days=sr(this._days),this._months=sr(this._months),t.milliseconds=sr(t.milliseconds),t.seconds=sr(t.seconds),t.minutes=sr(t.minutes),t.hours=sr(t.hours),t.months=sr(t.months),t.years=sr(t.years),this}function D0(t,e,n,r){var s=Bn(e,n);return t._milliseconds+=r*s._milliseconds,t._days+=r*s._days,t._months+=r*s._months,t._bubble()}function P3(t,e){return D0(this,t,e,1)}function B3(t,e){return D0(this,t,e,-1)}function pm(t){return t<0?Math.floor(t):Math.ceil(t)}function F3(){var t=this._milliseconds,e=this._days,n=this._months,r=this._data,s,i,o,u,l;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=pm(Iu(n)+e)*864e5,e=0,n=0),r.milliseconds=t%1e3,s=mn(t/1e3),r.seconds=s%60,i=mn(s/60),r.minutes=i%60,o=mn(i/60),r.hours=o%24,e+=mn(o/24),l=mn(P0(e)),n+=l,e-=pm(Iu(l)),u=mn(n/12),n%=12,r.days=e,r.months=n,r.years=u,this}function P0(t){return t*4800/146097}function Iu(t){return t*146097/4800}function V3(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=kn(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,n=this._months+P0(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Iu(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+t)}}function W3(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Le(this._months/12)*31536e6:NaN}function Tr(t){return function(){return this.as(t)}}var U3=Tr("ms"),H3=Tr("s"),j3=Tr("m"),z3=Tr("h"),G3=Tr("d"),Y3=Tr("w"),J3=Tr("M"),K3=Tr("Q"),X3=Tr("y");function q3(){return Bn(this)}function Z3(t){return t=kn(t),this.isValid()?this[t+"s"]():NaN}function ki(t){return function(){return this.isValid()?this._data[t]:NaN}}var Q3=ki("milliseconds"),eY=ki("seconds"),tY=ki("minutes"),nY=ki("hours"),rY=ki("days"),iY=ki("months"),sY=ki("years");function oY(){return mn(this.days()/7)}var ar=Math.round,Pi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function aY(t,e,n,r,s){return s.relativeTime(e||1,!!n,t,r)}function lY(t,e,n,r){var s=Bn(t).abs(),i=ar(s.as("s")),o=ar(s.as("m")),u=ar(s.as("h")),l=ar(s.as("d")),f=ar(s.as("M")),a=ar(s.as("w")),c=ar(s.as("y")),h=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||u<=1&&["h"]||u<n.h&&["hh",u]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(h=h||a<=1&&["w"]||a<n.w&&["ww",a]),h=h||f<=1&&["M"]||f<n.M&&["MM",f]||c<=1&&["y"]||["yy",c],h[2]=e,h[3]=+t>0,h[4]=r,aY.apply(null,h)}function cY(t){return t===void 0?ar:typeof t=="function"?(ar=t,!0):!1}function uY(t,e){return Pi[t]===void 0?!1:e===void 0?Pi[t]:(Pi[t]=e,t==="s"&&(Pi.ss=e-1),!0)}function hY(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Pi,s,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(r=Object.assign({},Pi,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),s=this.localeData(),i=lY(this,!n,r,s),n&&(i=s.pastFuture(+this,i)),s.postformat(i)}var Lc=Math.abs;function Oi(t){return(t>0)-(t<0)||+t}function ic(){if(!this.isValid())return this.localeData().invalidDate();var t=Lc(this._milliseconds)/1e3,e=Lc(this._days),n=Lc(this._months),r,s,i,o,u=this.asSeconds(),l,f,a,c;return u?(r=mn(t/60),s=mn(r/60),t%=60,r%=60,i=mn(n/12),n%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=u<0?"-":"",f=Oi(this._months)!==Oi(u)?"-":"",a=Oi(this._days)!==Oi(u)?"-":"",c=Oi(this._milliseconds)!==Oi(u)?"-":"",l+"P"+(i?f+i+"Y":"")+(n?f+n+"M":"")+(e?a+e+"D":"")+(s||r||t?"T":"")+(s?c+s+"H":"")+(r?c+r+"M":"")+(t?c+o+"S":"")):"P0D"}var Pe=nc.prototype;Pe.isValid=rG;Pe.abs=D3;Pe.add=P3;Pe.subtract=B3;Pe.as=V3;Pe.asMilliseconds=U3;Pe.asSeconds=H3;Pe.asMinutes=j3;Pe.asHours=z3;Pe.asDays=G3;Pe.asWeeks=Y3;Pe.asMonths=J3;Pe.asQuarters=K3;Pe.asYears=X3;Pe.valueOf=W3;Pe._bubble=F3;Pe.clone=q3;Pe.get=Z3;Pe.milliseconds=Q3;Pe.seconds=eY;Pe.minutes=tY;Pe.hours=nY;Pe.days=rY;Pe.weeks=oY;Pe.months=iY;Pe.years=sY;Pe.humanize=hY;Pe.toISOString=ic;Pe.toString=ic;Pe.toJSON=ic;Pe.locale=E0;Pe.localeData=$0;Pe.toIsoString=En("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ic);Pe.lang=k0;pe("X",0,0,"unix");pe("x",0,0,"valueOf");le("x",Zl);le("X",M4);Ke("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)});Ke("x",function(t,e,n){n._d=new Date(Le(t))});//! moment.js
1127
+ oe.version="2.29.4";d4(et);oe.fn=Q;oe.min=Qz;oe.max=eG;oe.now=tG;oe.utc=nr;oe.unix=A3;oe.months=L3;oe.isDate=Bo;oe.locale=Ur;oe.invalid=Yl;oe.duration=Bn;oe.isMoment=Dn;oe.weekdays=M3;oe.parseZone=O3;oe.localeData=$r;oe.isDuration=aa;oe.monthsShort=R3;oe.weekdaysMin=N3;oe.defineLocale=Fd;oe.updateLocale=Oz;oe.locales=Lz;oe.weekdaysShort=I3;oe.normalizeUnits=kn;oe.relativeTimeRounding=cY;oe.relativeTimeThreshold=uY;oe.calendarFormat=kG;oe.prototype=Q;oe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const dY={class:"text-[#a5a5a5] text-xs"},fY={key:1},pY={key:1,class:"text-[#a5a5a5]"},mY={key:2,class:"text-[#a5a5a5]"},gY={key:5,class:"flex justify-center"},vY={key:6,class:"text-right"},yY={key:8},bY=d.defineComponent({__name:"vc-table-cell",props:{cell:{default:void 0},item:{default:void 0}},setup(t){const e=t,n=window.navigator.language,r=d.computed(()=>(e.cell.field||e.cell.id).split(".").reduce((s,i)=>s&&s[i]||null,e.item));return(s,i)=>t.cell.type==="money"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.unref(r)>0?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createElementVNode("span",null,d.toDisplayString(Math.trunc(Number(d.unref(r)))),1),d.createElementVNode("span",dY,"."+d.toDisplayString(`${Number(d.unref(r))*100%100}`.padEnd(2,"0").slice(0,2)),1)],64)):(d.openBlock(),d.createElementBlock("span",fY,"N/A"))],64)):t.cell.type==="date-ago"?(d.openBlock(),d.createElementBlock("span",pY,[d.unref(r)?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createTextVNode(d.toDisplayString(d.unref(oe)(d.unref(r)).fromNow()),1)],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createTextVNode("N/A")],64))])):t.cell.type==="date"||t.cell.type==="time"||t.cell.type==="date-time"?(d.openBlock(),d.createElementBlock("span",mY,[d.unref(r)?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[t.cell.format?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createTextVNode(d.toDisplayString(d.unref(oe)(d.unref(r)).locale(d.unref(n)).format(t.cell.format)),1)],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[t.cell.type==="date"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createTextVNode(d.toDisplayString(d.unref(r).toLocaleDateString()),1)],64)):d.createCommentVNode("",!0),t.cell.type==="time"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createTextVNode(d.toDisplayString(d.unref(r).toLocaleTimeString()),1)],64)):d.createCommentVNode("",!0),t.cell.type==="date-time"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:2},[d.createTextVNode(d.toDisplayString(d.unref(r).toLocaleString()),1)],64)):d.createCommentVNode("",!0)],64))],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createTextVNode("N/A")],64))])):t.cell.type==="image"?(d.openBlock(),d.createBlock(d.unref(Va),{key:3,bordered:!0,size:"s",aspect:"1x1",src:d.unref(r),background:"contain"},null,8,["src"])):t.cell.type==="status"?(d.openBlock(),d.createBlock(d.unref(Hu),{key:4},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(r)),1)]),_:1})):t.cell.type==="status-icon"?(d.openBlock(),d.createElementBlock("div",gY,[d.createVNode(d.unref(ju),{status:d.unref(r)},null,8,["status"])])):t.cell.type==="number"?(d.openBlock(),d.createElementBlock("span",vY,d.toDisplayString(Number(d.unref(r)).toFixed(0)),1)):t.cell.type==="link"?(d.openBlock(),d.createBlock(d.unref(Vu),{key:7},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(r)),1)]),_:1})):(d.openBlock(),d.createElementBlock("span",yY,d.toDisplayString(d.unref(r)),1))}}),wY={class:"relative overflow-hidden flex flex-col grow basis-0"},SY={class:"shrink-0 flex items-center justify-between p-4"},_Y={key:0,class:"mr-3"},xY={key:1,class:"ml-3"},CY={class:"flex relative overflow-hidden grow"},EY={key:0},kY={key:0,class:"vc-table__header"},$Y={class:"vc-table__header-row"},TY={key:0,class:"h-[42px] bg-[#f9f9f9] !border-0 shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] box-border sticky top-0 select-none overflow-hidden z-[1]",width:"50"},AY={class:"flex justify-center items-center"},OY=["width","onClick"],LY={key:0,class:"ml-1"},RY={key:1,class:"flex flex-col ml-1 invisible group-hover:visible"},MY={key:1,class:"h-[42px] bg-[#f9f9f9] !border-0 shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] box-border sticky top-0 select-none overflow-hidden z-[1]",width:"44"},IY={key:1,class:"vc-table__body"},NY=["onClick","onMouseover"],DY={key:0,width:"50"},PY={class:"flex justify-center items-center"},BY=["width"],FY={key:1,class:"box-border overflow-visible px-3",width:"44"},VY={class:"vc-table__body-actions-container relative !hidden justify-center items-center"},WY=["onClick","disabled"],UY={class:"flex items-center flex-row text-[#3f3f3f] font-normal not-italic text-base leading-[20px] gap-[25px]"},HY=["onClick"],jY={class:"not-italic font-normal text-base leading-[20px] text-[#3f3f3f] ml-[7px]"},zY=d.createElementVNode("div",{class:"vc-table__body-tooltip-arrow","data-popper-arrow":""},null,-1),GY={key:0,class:"w-full h-full box-border flex flex-col items-center justify-center"},YY=["src"],JY={class:"m-4 vc-table__empty-text"},KY={key:0,class:"w-full h-full box-border flex flex-col items-center justify-center"},XY=["src"],qY={class:"m-4 text-xl font-medium"},ZY={class:"bg-[#fbfdfe] border-t border-solid border-[#eaedf3] flex-shrink-0 flex items-center justify-between p-4"},B0=d.defineComponent({__name:"vc-table",props:{columns:{type:Array,default:()=>[]},items:{type:Array,default:()=>[]},filterItems:{type:Array,default:()=>[]},itemActionBuilder:{type:Function,default:void 0},sort:{type:String,default:void 0},multiselect:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},totalLabel:{type:String,default:"Totals:"},totalCount:{type:Number,default:0},pages:{type:Number,default:0},currentPage:{type:Number,default:0},searchPlaceholder:{type:String,default:"Search..."},searchValue:{type:String,default:void 0},loading:{type:Boolean,default:!1},empty:{type:Object,default:()=>({text:"List is empty."})},notfound:{type:Object,default:()=>({text:"Nothing found."})},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},activeFilterCount:{type:Number,default:0},selectedItemId:{type:String,default:void 0},scrolling:{type:Boolean,default:!1},onItemClick:{type:Function,default:void 0}},emits:["paginationClick","selectionChanged","search:change","filter:apply","filter:reset","headerClick"],setup(t,{emit:e}){const n=t,r=d.ref({}),s=d.ref(),i=d.ref(),o=d.ref(),u=d.ref([]),l=d.ref([]),f=d.ref([]),a=d.ref();d.onBeforeUpdate(()=>{u.value=[],l.value=[]});const c=d.computed(()=>{var S;const k=(S=n.sort)==null?void 0:S.split(":");return k&&k.length===2&&k[1]}),h=d.computed(()=>{var S;const k=(S=n.sort)==null?void 0:S.split(":");return k&&k.length===2&&k[0]}),p={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},m=d.computed(()=>Object.values(r.value).every(k=>k));d.watch(()=>n.items,k=>{var S;r.value={},k==null||k.forEach(y=>r.value[y.id]=!1),(S=o.value)==null||S.scrollTop()});function g(k,S){k&&(l.value.some(E=>E.id===S)||l.value.push({element:k,id:S}))}function v(k,S){k&&(u.value.some(E=>E.id===S)||u.value.push({element:k,id:S}))}function w(){const k=Object.values(r.value).every(S=>S);Object.keys(r.value).forEach(S=>r.value[S]=!k),e("selectionChanged",r.value)}function _(k,S){r.value[k]=S,e("selectionChanged",r.value)}function $(k,S){s.value=k.id;const y=u.value.find(A=>A.id===S),E=l.value.find(A=>A.id===S);y&&E&&d.nextTick(()=>{i.value=ns(y.element,E.element,{placement:"bottom",onFirstUpdate:()=>{var A;return(A=i.value)==null?void 0:A.update()},modifiers:[{name:"offset",options:{offset:[-15,15]}}]})})}async function x(k){typeof n.itemActionBuilder=="function"&&(f.value=await n.itemActionBuilder(k))}function b(){var k;s.value=void 0,(k=i.value)==null||k.destroy()}function C(k){a.value=k}function T(k){e("headerClick",k)}return(k,S)=>{const y=d.resolveComponent("VcButton");return d.openBlock(),d.createElementBlock("div",wY,[(k.$slots.header||t.header)&&(t.items&&t.items.length||t.searchValue||t.searchValue===""||t.activeFilterCount)?d.renderSlot(k.$slots,"header",{key:0},()=>[d.createElementVNode("div",SY,[k.$isMobile.value&&k.$slots.filters?(d.openBlock(),d.createElementBlock("div",_Y,[d.createVNode(cm,{counter:t.activeFilterCount},{default:d.withCtx(({closePanel:E})=>[d.renderSlot(k.$slots,"filters",{closePanel:E})]),_:3},8,["counter"])])):d.createCommentVNode("",!0),d.createVNode(d.unref(ao),{class:"grow basis-0",placeholder:t.searchPlaceholder,clearable:!0,name:"table_search",modelValue:t.searchValue,"onUpdate:modelValue":S[0]||(S[0]=E=>k.$emit("search:change",E))},null,8,["placeholder","modelValue"]),k.$isDesktop.value&&k.$slots.filters?(d.openBlock(),d.createElementBlock("div",xY,[d.createVNode(cm,{title:k.$t("Filters"),counter:t.activeFilterCount,parentExpanded:t.expanded},{default:d.withCtx(({closePanel:E})=>[d.renderSlot(k.$slots,"filters",{closePanel:E})]),_:3},8,["title","counter","parentExpanded"])])):d.createCommentVNode("",!0)])]):d.createCommentVNode("",!0),d.createElementVNode("div",CY,[d.createVNode(d.unref(Wu),{active:t.loading},null,8,["active"]),t.items&&t.items.length?(d.openBlock(),d.createBlock(d.unref(ts),{key:0,ref_key:"scrollContainer",ref:o,noPadding:!0,class:"grow basis-0",usePtr:!!k.$attrs["onScroll:ptr"],"onScroll:ptr":S[3]||(S[3]=E=>k.$emit("scroll:ptr"))},{default:d.withCtx(()=>[k.$isMobile.value&&k.$slots["mobile-item"]?(d.openBlock(),d.createElementBlock("div",EY,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.items,E=>(d.openBlock(),d.createBlock(h4,{key:E.id,item:E,actionBuilder:t.itemActionBuilder,onClick:A=>k.$emit("itemClick",E),onSwipeStart:C,swipingItem:a.value},{default:d.withCtx(()=>[d.renderSlot(k.$slots,"mobile-item",{item:E})]),_:2},1032,["item","actionBuilder","onClick","swipingItem"]))),128))])):(d.openBlock(),d.createElementBlock("table",{key:1,class:d.normalizeClass(["[border-spacing:0] border-collapse relative pt-[43px] table-fixed box-border w-full",{"vc-table_empty":!t.items||!t.items.length,"vc-table_multiselect":t.multiselect}])},[t.columns?(d.openBlock(),d.createElementBlock("thead",kY,[d.createElementVNode("tr",$Y,[t.multiselect?(d.openBlock(),d.createElementBlock("th",TY,[d.createElementVNode("div",AY,[d.createVNode(d.unref(pa),{modelValue:d.unref(m),"onUpdate:modelValue":w,onClick:S[1]||(S[1]=d.withModifiers(()=>{},["stop"]))},null,8,["modelValue"])])])):d.createCommentVNode("",!0),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.columns,E=>(d.openBlock(),d.createElementBlock("th",{key:E.id,class:d.normalizeClass(["h-[42px] bg-[#f9f9f9] !border-0 shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] box-border sticky top-0 select-none overflow-hidden z-[1] px-3",{"cursor-pointer group":E.sortable}]),width:E.width,onClick:A=>T(E)},[d.createElementVNode("div",{class:d.normalizeClass(["flex items-center flex-nowrap",p[E.align]])},[d.createElementVNode("div",null,[d.renderSlot(k.$slots,`header_${E.id}`,{},()=>[d.createTextVNode(d.toDisplayString(E.title),1)])]),d.unref(h)===E.id?(d.openBlock(),d.createElementBlock("div",LY,[d.createVNode(d.unref(ke),{size:"xs",icon:`fas fa-caret-${d.unref(c)==="DESC"?"down":"up"}`},null,8,["icon"])])):(d.openBlock(),d.createElementBlock("div",RY,[d.createVNode(d.unref(ke),{size:"xs",icon:"fas fa-caret-up"}),d.createVNode(d.unref(ke),{size:"xs",icon:"fas fa-caret-down"})]))],2)],10,OY))),128)),t.itemActionBuilder?(d.openBlock(),d.createElementBlock("th",MY)):d.createCommentVNode("",!0)])])):d.createCommentVNode("",!0),t.items?(d.openBlock(),d.createElementBlock("tbody",IY,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.items,(E,A)=>(d.openBlock(),d.createElementBlock("tr",{key:E.id,class:d.normalizeClass(["vc-table__body-row h-[60px] bg-white hover:bg-[#dfeef9]",{"cursor-pointer hover:bg-[#dfeef9]":t.onItemClick,"bg-[#f8f8f8]":A%2===1,"!bg-[#dfeef9] hover:bg-[#dfeef9]":E&&E.id?t.selectedItemId===E.id:!1}]),onClick:O=>k.$emit("itemClick",E),onMouseover:O=>x(E),onMouseleave:b},[t.multiselect?(d.openBlock(),d.createElementBlock("td",DY,[d.createElementVNode("div",PY,[d.createVNode(d.unref(pa),{modelValue:r.value[E.id],"onUpdate:modelValue":O=>_(E.id,O),onClick:S[2]||(S[2]=d.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])])):d.createCommentVNode("",!0),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.columns,O=>(d.openBlock(),d.createElementBlock("td",{key:`${E.id}_${O.id}`,class:d.normalizeClass(["box-border overflow-hidden px-3",O.class]),width:O.width},[d.renderSlot(k.$slots,`item_${O.id}`,{item:E,cell:O},()=>[d.createVNode(bY,{cell:O,item:E},null,8,["cell","item"])])],10,BY))),128)),t.itemActionBuilder?(d.openBlock(),d.createElementBlock("td",FY,[d.createElementVNode("div",VY,[d.createElementVNode("button",{class:"text-[#319ed4] cursor-pointer border-none bg-transparent disabled:text-[gray]",onClick:d.withModifiers(O=>$(E,E.id),["stop"]),ref_for:!0,ref:O=>v(O,E.id),"aria-describedby":"tooltip",disabled:!(f.value&&f.value.length)},[d.createVNode(d.unref(ke),{icon:"fas fa-cog",size:"m"})],8,WY),d.withDirectives(d.createElementVNode("div",{class:"vc-table__body-tooltip bg-white rounded-l-[4px] p-[15px] z-0 absolute right-0 drop-shadow-[1px_3px_14px_rgba(111,122,131,0.25)]",onMouseleave:b,ref_for:!0,ref:O=>g(O,E.id),role:"tooltip"},[d.createElementVNode("div",UY,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(f.value,(O,R)=>(d.openBlock(),d.createElementBlock("div",{key:R,class:d.normalizeClass(["flex flex-row items-center text-[#319ed4] cursor-pointer",`vc-table__body-actions-item_${O.variant}`]),onClick:d.withModifiers(M=>O.clickHandler(E),["stop"])},[d.createVNode(d.unref(ke),{icon:O.icon,size:"m"},null,8,["icon"]),d.createElementVNode("div",jY,d.toDisplayString(O.title),1)],10,HY))),128))]),zY],544),[[d.vShow,s.value===E.id]])])])):d.createCommentVNode("",!0)],42,NY))),128))])):d.createCommentVNode("",!0)],2))]),_:3},8,["usePtr"])):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[t.searchValue||t.searchValue===""||t.activeFilterCount?d.renderSlot(k.$slots,"notfound",{key:0},()=>[t.notfound?(d.openBlock(),d.createElementBlock("div",GY,[t.notfound.image?(d.openBlock(),d.createElementBlock("img",{key:0,src:t.notfound.image},null,8,YY)):d.createCommentVNode("",!0),d.createElementVNode("div",JY,d.toDisplayString(t.notfound.text),1),t.notfound.action?(d.openBlock(),d.createBlock(y,{key:1,onClick:t.notfound.clickHandler},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.notfound.action),1)]),_:1},8,["onClick"])):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0)]):d.renderSlot(k.$slots,"empty",{key:1},()=>[t.empty?(d.openBlock(),d.createElementBlock("div",KY,[t.empty.image?(d.openBlock(),d.createElementBlock("img",{key:0,src:t.empty.image},null,8,XY)):d.createCommentVNode("",!0),d.createElementVNode("div",qY,d.toDisplayString(t.empty.text),1),t.empty.action?(d.openBlock(),d.createBlock(y,{key:1,onClick:t.empty.clickHandler},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.empty.action),1)]),_:1},8,["onClick"])):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0)])],64))]),(k.$slots.footer||t.footer)&&t.items&&t.items.length?d.renderSlot(k.$slots,"footer",{key:1},()=>[d.createElementVNode("div",ZY,[d.createVNode(d.unref(_d),{expanded:t.expanded,pages:t.pages,currentPage:t.currentPage,onItemClick:S[4]||(S[4]=E=>k.$emit("paginationClick",E))},null,8,["expanded","pages","currentPage"]),d.createVNode(zj,{label:t.totalLabel,value:t.totalCount},null,8,["label","value"])])]):d.createCommentVNode("",!0)])}}});const QY=Object.freeze(Object.defineProperty({__proto__:null,VcBadge:Mm,VcButton:Im,VcCard:Nm,VcCheckbox:pa,VcCol:ma,VcContainer:ts,VcHint:Dm,VcIcon:ke,VcInfoRow:Pm,VcImage:Va,VcLabel:br,VcLink:Vu,VcLoading:Wu,VcProgress:Bm,VcRow:Uu,VcStatus:Hu,VcStatusIcon:ju,VcSwitch:Fm,VcWidget:Vm,VcBreadcrumbs:Wm,VcEditor:Jm,VcForm:zu,VcFileUpload:Gu,VcInput:ao,VcMultivalue:Tb,VcNotification:Ab,VcPagination:_d,VcRating:Ob,VcSelect:Lb,VcSlider:Ub,VcTextarea:Ed,VcApp:Hb,VcBlade:kd,VcDynamicProperty:jb,VcGallery:zb,VcLoginForm:Gb,VcPopup:$d,VcTable:B0},Symbol.toStringTag,{value:"Module"}));function e8(t){return d.getCurrentScope()?(d.onScopeDispose(t),!0):!1}const Jd=typeof window<"u";function t8(t,e){var n;if(typeof t=="number")return t+e;const r=((n=t.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",s=t.slice(r.length),i=parseFloat(r)+e;return Number.isNaN(i)?t:i+s}const F0=Jd?window:void 0;Jd&&window.document;Jd&&window.navigator;function Rc(t,e={}){const{window:n=F0}=e;if(!n)return d.ref(!1);const r=n.matchMedia(t),s=d.ref(r.matches),i=o=>{s.value=o.matches};return"addEventListener"in r?r.addEventListener("change",i):r.addListener(i),e8(()=>{"removeEventListener"in r?r.removeEventListener("change",i):r.removeListener(i)}),s}var n8=Object.defineProperty,mm=Object.getOwnPropertySymbols,r8=Object.prototype.hasOwnProperty,i8=Object.prototype.propertyIsEnumerable,gm=(t,e,n)=>e in t?n8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,s8=(t,e)=>{for(var n in e||(e={}))r8.call(e,n)&&gm(t,n,e[n]);if(mm)for(var n of mm(e))i8.call(e,n)&&gm(t,n,e[n]);return t};function o8(t,e={}){function n(u,l){let f=t[u];return l!=null&&(f=t8(f,l)),typeof f=="number"&&(f=`${f}px`),f}const{window:r=F0}=e;function s(u){return r?r.matchMedia(u).matches:!1}const i=u=>Rc(`(min-width: ${n(u)})`,e),o=Object.keys(t).reduce((u,l)=>(Object.defineProperty(u,l,{get:()=>i(l),enumerable:!0,configurable:!0}),u),{});return s8({greater:i,smaller(u){return Rc(`(max-width: ${n(u,-.1)})`,e)},between(u,l){return Rc(`(min-width: ${n(u)}) and (max-width: ${n(l,-.1)})`,e)},isGreater(u){return s(`(min-width: ${n(u)})`)},isSmaller(u){return s(`(max-width: ${n(u,-.1)})`)},isInBetween(u,l){return s(`(min-width: ${n(u)}) and (max-width: ${n(l,-.1)})`)}},o)}var vm;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(vm||(vm={}));function ym(t){return t.type.indexOf("mouse")!==-1?t.clientX:t.touches[0].clientX}function bm(t){return t.type.indexOf("mouse")!==-1?t.clientY:t.touches[0].clientY}var a8=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch{}return t}(),l8={install:function(t,e){var n=Object.assign({},{disableClick:!1,tapTolerance:10,swipeTolerance:30,touchHoldTolerance:400,longTapTimeInterval:400,touchClass:"",dragFrequency:100,rollOverFrequency:100},e);function r(g){var v=this.$$touchObj,w=g.type.indexOf("touch")>=0,_=g.type.indexOf("mouse")>=0,$=this;w&&(v.lastTouchStartTime=g.timeStamp),!(_&&v.lastTouchStartTime&&g.timeStamp-v.lastTouchStartTime<350)&&(v.touchStarted||(c(this),v.touchStarted=!0,v.touchMoved=!1,v.swipeOutBounded=!1,v.startX=ym(g),v.startY=bm(g),v.currentX=0,v.currentY=0,v.touchStartTime=g.timeStamp,v.hasSwipe=f(this,"swipe")||f(this,"swipe.left")||f(this,"swipe.right")||f(this,"swipe.top")||f(this,"swipe.bottom"),f(this,"hold")&&(v.touchHoldTimer=setTimeout(function(){v.touchHoldTimer=null,a(g,$,"hold")},v.options.touchHoldTolerance)),a(g,this,"press")))}function s(g){var v=this.$$touchObj,w=ym(g),_=bm(g),$=v.currentX!=w||v.currentY!=_;if(v.currentX=w,v.currentY=_,v.touchMoved){if(v.hasSwipe&&!v.swipeOutBounded){var b=v.options.swipeTolerance;v.swipeOutBounded=Math.abs(v.startX-v.currentX)>b&&Math.abs(v.startY-v.currentY)>b}}else{var x=v.options.tapTolerance;v.touchMoved=Math.abs(v.startX-v.currentX)>x||Math.abs(v.startY-v.currentY)>x,v.touchMoved&&(p(v),a(g,this,"drag.once"))}if(f(this,"rollover")&&$){var C=g.timeStamp,T=v.options.rollOverFrequency;(v.touchRollTime==null||C>v.touchRollTime+T)&&(v.touchRollTime=C,a(g,this,"rollover"))}if(f(this,"drag")&&v.touchStarted&&v.touchMoved&&$){var C=g.timeStamp,T=v.options.dragFrequency;(v.touchDragTime==null||C>v.touchDragTime+T)&&(v.touchDragTime=C,a(g,this,"drag"))}}function i(){var g=this.$$touchObj;p(g),h(this),g.touchStarted=g.touchMoved=!1,g.startX=g.startY=0}function o(g){var v=this.$$touchObj,w=g.type.indexOf("touch")>=0,_=g.type.indexOf("mouse")>=0;w&&(v.lastTouchEndTime=g.timeStamp);var $=w&&!v.touchHoldTimer;if(p(v),v.touchStarted=!1,h(this),!(_&&v.lastTouchEndTime&&g.timeStamp-v.lastTouchEndTime<350))if(a(g,this,"release"),v.touchMoved){if(v.hasSwipe&&!v.swipeOutBounded){var x=v.options.swipeTolerance,b,C=Math.abs(v.startY-v.currentY),T=Math.abs(v.startX-v.currentX);(C>x||T>x)&&(C>x?b=v.startY>v.currentY?"top":"bottom":b=v.startX>v.currentX?"left":"right",f(this,"swipe."+b)?a(g,this,"swipe."+b,b):a(g,this,"swipe",b))}}else if(f(this,"longtap")&&g.timeStamp-v.touchStartTime>v.options.longTapTimeInterval)g.cancelable&&g.preventDefault(),a(g,this,"longtap");else if(f(this,"hold")&&$){g.cancelable&&g.preventDefault();return}else a(g,this,"tap")}function u(){c(this)}function l(){h(this)}function f(g,v){var w=g.$$touchObj.callbacks[v];return w!=null&&w.length>0}function a(g,v,w,_){var $=v.$$touchObj,x=$.callbacks[w];if(x==null||x.length===0)return null;for(var b=0;b<x.length;b++){var C=x[b];C.modifiers.stop&&g.stopPropagation(),C.modifiers.prevent&&g.preventDefault(),!(C.modifiers.self&&g.target!==g.currentTarget)&&typeof C.value=="function"&&(_?C.value(_,g):C.value(g))}}function c(g){var v=g.$$touchObj.options.touchClass;v&&g.classList.add(v)}function h(g){var v=g.$$touchObj.options.touchClass;v&&g.classList.remove(v)}function p(g){g.touchHoldTimer&&(clearTimeout(g.touchHoldTimer),g.touchHoldTimer=null)}function m(g,v){var w=g.$$touchObj||{callbacks:{},hasBindTouchEvents:!1,options:n};return v&&(w.options=Object.assign({},w.options,v)),g.$$touchObj=w,g.$$touchObj}t.directive("touch",{beforeMount:function(g,v){var w=m(g),_=a8?{passive:!0}:!1,$=v.arg||"tap";switch($){case"swipe":var x=v.modifiers;if(x.left||x.right||x.top||x.bottom){for(var b in v.modifiers)if(["left","right","top","bottom"].indexOf(b)>=0){var C="swipe."+b;w.callbacks[C]=w.callbacks[C]||[],w.callbacks[C].push(v)}}else w.callbacks.swipe=w.callbacks.swipe||[],w.callbacks.swipe.push(v);break;case"press":case"drag":v.modifiers.disablePassive&&(_=!1);default:w.callbacks[$]=w.callbacks[$]||[],w.callbacks[$].push(v)}w.hasBindTouchEvents||(g.addEventListener("touchstart",r,_),g.addEventListener("touchmove",s,_),g.addEventListener("touchcancel",i),g.addEventListener("touchend",o),w.options.disableClick||(g.addEventListener("mousedown",r),g.addEventListener("mousemove",s),g.addEventListener("mouseup",o),g.addEventListener("mouseenter",u),g.addEventListener("mouseleave",l)),w.hasBindTouchEvents=!0)},unmounted:function(g){g.removeEventListener("touchstart",r),g.removeEventListener("touchmove",s),g.removeEventListener("touchcancel",i),g.removeEventListener("touchend",o),g.$$touchObj&&!g.$$touchObj.options.disableClick&&(g.removeEventListener("mousedown",r),g.removeEventListener("mousemove",s),g.removeEventListener("mouseup",o),g.removeEventListener("mouseenter",u),g.removeEventListener("mouseleave",l)),delete g.$$touchObj}}),t.directive("touch-class",{beforeMount:function(g,v){m(g,{touchClass:v.value})}}),t.directive("touch-options",{beforeMount:function(g,v){m(g,v.value)}})}};/**!
1128
+ * Sortable 1.14.0
1129
+ * @author RubaXa <trash@rubaxa.org>
1130
+ * @author owenm <owen23355@gmail.com>
1131
+ * @license MIT
1132
+ */function wm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Jn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wm(Object(n),!0).forEach(function(r){c8(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ca(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ca=function(e){return typeof e}:ca=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ca(t)}function c8(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yr(){return yr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},yr.apply(this,arguments)}function u8(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function h8(t,e){if(t==null)return{};var n=u8(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,r)||(n[r]=t[r]))}return n}var d8="1.14.0";function gr(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Ar=gr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Uo=gr(/Edge/i),Sm=gr(/firefox/i),Ns=gr(/safari/i)&&!gr(/chrome/i)&&!gr(/android/i),V0=gr(/iP(ad|od|hone)/i),f8=gr(/chrome/i)&&gr(/android/i),W0={capture:!1,passive:!1};function Ue(t,e,n){t.addEventListener(e,n,!Ar&&W0)}function Be(t,e,n){t.removeEventListener(e,n,!Ar&&W0)}function Ia(t,e){if(!!e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function p8(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Vn(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Ia(t,e):Ia(t,e))||r&&t===n)return t;if(t===n)break}while(t=p8(t))}return null}var _m=/\s+/g;function qt(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(_m," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(_m," ")}}function ve(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function ji(t,e){var n="";if(typeof t=="string")n=t;else do{var r=ve(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(n)}function U0(t,e,n){if(t){var r=t.getElementsByTagName(e),s=0,i=r.length;if(n)for(;s<i;s++)n(r[s],s);return r}return[]}function Hn(){var t=document.scrollingElement;return t||document.documentElement}function yt(t,e,n,r,s){if(!(!t.getBoundingClientRect&&t!==window)){var i,o,u,l,f,a,c;if(t!==window&&t.parentNode&&t!==Hn()?(i=t.getBoundingClientRect(),o=i.top,u=i.left,l=i.bottom,f=i.right,a=i.height,c=i.width):(o=0,u=0,l=window.innerHeight,f=window.innerWidth,a=window.innerHeight,c=window.innerWidth),(e||n)&&t!==window&&(s=s||t.parentNode,!Ar))do if(s&&s.getBoundingClientRect&&(ve(s,"transform")!=="none"||n&&ve(s,"position")!=="static")){var h=s.getBoundingClientRect();o-=h.top+parseInt(ve(s,"border-top-width")),u-=h.left+parseInt(ve(s,"border-left-width")),l=o+i.height,f=u+i.width;break}while(s=s.parentNode);if(r&&t!==window){var p=ji(s||t),m=p&&p.a,g=p&&p.d;p&&(o/=g,u/=m,c/=m,a/=g,l=o+a,f=u+c)}return{top:o,left:u,bottom:l,right:f,width:c,height:a}}}function xm(t,e,n){for(var r=Fr(t,!0),s=yt(t)[e];r;){var i=yt(r)[n],o=void 0;if(n==="top"||n==="left"?o=s>=i:o=s<=i,!o)return r;if(r===Hn())break;r=Fr(r,!1)}return!1}function es(t,e,n,r){for(var s=0,i=0,o=t.children;i<o.length;){if(o[i].style.display!=="none"&&o[i]!==ye.ghost&&(r||o[i]!==ye.dragged)&&Vn(o[i],n.draggable,t,!1)){if(s===e)return o[i];s++}i++}return null}function Kd(t,e){for(var n=t.lastElementChild;n&&(n===ye.ghost||ve(n,"display")==="none"||e&&!Ia(n,e));)n=n.previousElementSibling;return n||null}function pn(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==ye.clone&&(!e||Ia(t,e))&&n++;return n}function Cm(t){var e=0,n=0,r=Hn();if(t)do{var s=ji(t),i=s.a,o=s.d;e+=t.scrollLeft*i,n+=t.scrollTop*o}while(t!==r&&(t=t.parentNode));return[e,n]}function m8(t,e){for(var n in t)if(!!t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function Fr(t,e){if(!t||!t.getBoundingClientRect)return Hn();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var s=ve(n);if(n.clientWidth<n.scrollWidth&&(s.overflowX=="auto"||s.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(s.overflowY=="auto"||s.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Hn();if(r||e)return n;r=!0}}while(n=n.parentNode);return Hn()}function g8(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Mc(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Ds;function H0(t,e){return function(){if(!Ds){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),Ds=setTimeout(function(){Ds=void 0},e)}}}function v8(){clearTimeout(Ds),Ds=void 0}function j0(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function z0(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var tn="Sortable"+new Date().getTime();function y8(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(s){if(!(ve(s,"display")==="none"||s===ye.ghost)){t.push({target:s,rect:yt(s)});var i=Jn({},t[t.length-1].rect);if(s.thisAnimationDuration){var o=ji(s,!0);o&&(i.top-=o.f,i.left-=o.e)}s.fromRect=i}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(m8(t,{target:r}),1)},animateAll:function(r){var s=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var i=!1,o=0;t.forEach(function(u){var l=0,f=u.target,a=f.fromRect,c=yt(f),h=f.prevFromRect,p=f.prevToRect,m=u.rect,g=ji(f,!0);g&&(c.top-=g.f,c.left-=g.e),f.toRect=c,f.thisAnimationDuration&&Mc(h,c)&&!Mc(a,c)&&(m.top-c.top)/(m.left-c.left)===(a.top-c.top)/(a.left-c.left)&&(l=w8(m,h,p,s.options)),Mc(c,a)||(f.prevFromRect=a,f.prevToRect=c,l||(l=s.options.animation),s.animate(f,m,c,l)),l&&(i=!0,o=Math.max(o,l),clearTimeout(f.animationResetTimer),f.animationResetTimer=setTimeout(function(){f.animationTime=0,f.prevFromRect=null,f.fromRect=null,f.prevToRect=null,f.thisAnimationDuration=null},l),f.thisAnimationDuration=l)}),clearTimeout(e),i?e=setTimeout(function(){typeof r=="function"&&r()},o):typeof r=="function"&&r(),t=[]},animate:function(r,s,i,o){if(o){ve(r,"transition",""),ve(r,"transform","");var u=ji(this.el),l=u&&u.a,f=u&&u.d,a=(s.left-i.left)/(l||1),c=(s.top-i.top)/(f||1);r.animatingX=!!a,r.animatingY=!!c,ve(r,"transform","translate3d("+a+"px,"+c+"px,0)"),this.forRepaintDummy=b8(r),ve(r,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),ve(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){ve(r,"transition",""),ve(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},o)}}}}function b8(t){return t.offsetWidth}function w8(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var Li=[],Ic={initializeByDefault:!0},Ho={mount:function(e){for(var n in Ic)Ic.hasOwnProperty(n)&&!(n in e)&&(e[n]=Ic[n]);Li.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Li.push(e)},pluginEvent:function(e,n,r){var s=this;this.eventCanceled=!1,r.cancel=function(){s.eventCanceled=!0};var i=e+"Global";Li.forEach(function(o){!n[o.pluginName]||(n[o.pluginName][i]&&n[o.pluginName][i](Jn({sortable:n},r)),n.options[o.pluginName]&&n[o.pluginName][e]&&n[o.pluginName][e](Jn({sortable:n},r)))})},initializePlugins:function(e,n,r,s){Li.forEach(function(u){var l=u.pluginName;if(!(!e.options[l]&&!u.initializeByDefault)){var f=new u(e,n,e.options);f.sortable=e,f.options=e.options,e[l]=f,yr(r,f.defaults)}});for(var i in e.options)if(!!e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);typeof o<"u"&&(e.options[i]=o)}},getEventProperties:function(e,n){var r={};return Li.forEach(function(s){typeof s.eventProperties=="function"&&yr(r,s.eventProperties.call(n[s.pluginName],e))}),r},modifyOption:function(e,n,r){var s;return Li.forEach(function(i){!e[i.pluginName]||i.optionListeners&&typeof i.optionListeners[n]=="function"&&(s=i.optionListeners[n].call(e[i.pluginName],r))}),s}};function S8(t){var e=t.sortable,n=t.rootEl,r=t.name,s=t.targetEl,i=t.cloneEl,o=t.toEl,u=t.fromEl,l=t.oldIndex,f=t.newIndex,a=t.oldDraggableIndex,c=t.newDraggableIndex,h=t.originalEvent,p=t.putSortable,m=t.extraEventProperties;if(e=e||n&&n[tn],!!e){var g,v=e.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Ar&&!Uo?g=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(r,!0,!0)),g.to=o||n,g.from=u||n,g.item=s||n,g.clone=i,g.oldIndex=l,g.newIndex=f,g.oldDraggableIndex=a,g.newDraggableIndex=c,g.originalEvent=h,g.pullMode=p?p.lastPutMode:void 0;var _=Jn(Jn({},m),Ho.getEventProperties(r,e));for(var $ in _)g[$]=_[$];n&&n.dispatchEvent(g),v[w]&&v[w].call(e,g)}}var _8=["evt"],Ut=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=r.evt,i=h8(r,_8);Ho.pluginEvent.bind(ye)(e,n,Jn({dragEl:re,parentEl:ot,ghostEl:$e,rootEl:nt,nextEl:oi,lastDownEl:ua,cloneEl:at,cloneHidden:Ir,dragStarted:Es,putSortable:$t,activeSortable:ye.active,originalEvent:s,oldIndex:Bi,oldDraggableIndex:Ps,newIndex:Zt,newDraggableIndex:Mr,hideGhostForTarget:K0,unhideGhostForTarget:X0,cloneNowHidden:function(){Ir=!0},cloneNowShown:function(){Ir=!1},dispatchSortableEvent:function(u){Nt({sortable:n,name:u,originalEvent:s})}},i))};function Nt(t){S8(Jn({putSortable:$t,cloneEl:at,targetEl:re,rootEl:nt,oldIndex:Bi,oldDraggableIndex:Ps,newIndex:Zt,newDraggableIndex:Mr},t))}var re,ot,$e,nt,oi,ua,at,Ir,Bi,Zt,Ps,Mr,Xo,$t,Ni=!1,Na=!1,Da=[],ri,Tn,Nc,Dc,Em,km,Es,Ri,Bs,Fs=!1,qo=!1,ha,Ot,Pc=[],Nu=!1,Pa=[],sc=typeof document<"u",Zo=V0,$m=Uo||Ar?"cssFloat":"float",x8=sc&&!f8&&!V0&&"draggable"in document.createElement("div"),G0=function(){if(!!sc){if(Ar)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Y0=function(e,n){var r=ve(e),s=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=es(e,0,n),o=es(e,1,n),u=i&&ve(i),l=o&&ve(o),f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+yt(i).width,a=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+yt(o).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&u.float&&u.float!=="none"){var c=u.float==="left"?"left":"right";return o&&(l.clear==="both"||l.clear===c)?"vertical":"horizontal"}return i&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||f>=s&&r[$m]==="none"||o&&r[$m]==="none"&&f+a>s)?"vertical":"horizontal"},C8=function(e,n,r){var s=r?e.left:e.top,i=r?e.right:e.bottom,o=r?e.width:e.height,u=r?n.left:n.top,l=r?n.right:n.bottom,f=r?n.width:n.height;return s===u||i===l||s+o/2===u+f/2},E8=function(e,n){var r;return Da.some(function(s){var i=s[tn].options.emptyInsertThreshold;if(!(!i||Kd(s))){var o=yt(s),u=e>=o.left-i&&e<=o.right+i,l=n>=o.top-i&&n<=o.bottom+i;if(u&&l)return r=s}}),r},J0=function(e){function n(i,o){return function(u,l,f,a){var c=u.options.group.name&&l.options.group.name&&u.options.group.name===l.options.group.name;if(i==null&&(o||c))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return n(i(u,l,f,a),o)(u,l,f,a);var h=(o?u:l).options.group.name;return i===!0||typeof i=="string"&&i===h||i.join&&i.indexOf(h)>-1}}var r={},s=e.group;(!s||ca(s)!="object")&&(s={name:s}),r.name=s.name,r.checkPull=n(s.pull,!0),r.checkPut=n(s.put),r.revertClone=s.revertClone,e.group=r},K0=function(){!G0&&$e&&ve($e,"display","none")},X0=function(){!G0&&$e&&ve($e,"display","")};sc&&document.addEventListener("click",function(t){if(Na)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Na=!1,!1},!0);var ii=function(e){if(re){e=e.touches?e.touches[0]:e;var n=E8(e.clientX,e.clientY);if(n){var r={};for(var s in e)e.hasOwnProperty(s)&&(r[s]=e[s]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[tn]._onDragOver(r)}}},k8=function(e){re&&re.parentNode[tn]._isOutsideThisEl(e.target)};function ye(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=yr({},e),t[tn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Y0(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,u){o.setData("Text",u.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ye.supportPointer!==!1&&"PointerEvent"in window&&!Ns,emptyInsertThreshold:5};Ho.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);J0(e);for(var s in this)s.charAt(0)==="_"&&typeof this[s]=="function"&&(this[s]=this[s].bind(this));this.nativeDraggable=e.forceFallback?!1:x8,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Ue(t,"pointerdown",this._onTapStart):(Ue(t,"mousedown",this._onTapStart),Ue(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ue(t,"dragover",this),Ue(t,"dragenter",this)),Da.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),yr(this,y8())}ye.prototype={constructor:ye,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ri=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,re):this.options.direction},_onTapStart:function(e){if(!!e.cancelable){var n=this,r=this.el,s=this.options,i=s.preventOnFilter,o=e.type,u=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(u||e).target,f=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,a=s.filter;if(I8(r),!re&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||s.disabled)&&!f.isContentEditable&&!(!this.nativeDraggable&&Ns&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Vn(l,s.draggable,r,!1),!(l&&l.animated)&&ua!==l)){if(Bi=pn(l),Ps=pn(l,s.draggable),typeof a=="function"){if(a.call(this,e,l,this)){Nt({sortable:n,rootEl:f,name:"filter",targetEl:l,toEl:r,fromEl:r}),Ut("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(a&&(a=a.split(",").some(function(c){if(c=Vn(f,c.trim(),r,!1),c)return Nt({sortable:n,rootEl:c,name:"filter",targetEl:l,fromEl:r,toEl:r}),Ut("filter",n,{evt:e}),!0}),a)){i&&e.cancelable&&e.preventDefault();return}s.handle&&!Vn(f,s.handle,r,!1)||this._prepareDragStart(e,u,l)}}},_prepareDragStart:function(e,n,r){var s=this,i=s.el,o=s.options,u=i.ownerDocument,l;if(r&&!re&&r.parentNode===i){var f=yt(r);if(nt=i,re=r,ot=re.parentNode,oi=re.nextSibling,ua=r,Xo=o.group,ye.dragged=re,ri={target:re,clientX:(n||e).clientX,clientY:(n||e).clientY},Em=ri.clientX-f.left,km=ri.clientY-f.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,re.style["will-change"]="all",l=function(){if(Ut("delayEnded",s,{evt:e}),ye.eventCanceled){s._onDrop();return}s._disableDelayedDragEvents(),!Sm&&s.nativeDraggable&&(re.draggable=!0),s._triggerDragStart(e,n),Nt({sortable:s,name:"choose",originalEvent:e}),qt(re,o.chosenClass,!0)},o.ignore.split(",").forEach(function(a){U0(re,a.trim(),Bc)}),Ue(u,"dragover",ii),Ue(u,"mousemove",ii),Ue(u,"touchmove",ii),Ue(u,"mouseup",s._onDrop),Ue(u,"touchend",s._onDrop),Ue(u,"touchcancel",s._onDrop),Sm&&this.nativeDraggable&&(this.options.touchStartThreshold=4,re.draggable=!0),Ut("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Uo||Ar))){if(ye.eventCanceled){this._onDrop();return}Ue(u,"mouseup",s._disableDelayedDrag),Ue(u,"touchend",s._disableDelayedDrag),Ue(u,"touchcancel",s._disableDelayedDrag),Ue(u,"mousemove",s._delayedDragTouchMoveHandler),Ue(u,"touchmove",s._delayedDragTouchMoveHandler),o.supportPointer&&Ue(u,"pointermove",s._delayedDragTouchMoveHandler),s._dragStartTimer=setTimeout(l,o.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){re&&Bc(re),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Be(e,"mouseup",this._disableDelayedDrag),Be(e,"touchend",this._disableDelayedDrag),Be(e,"touchcancel",this._disableDelayedDrag),Be(e,"mousemove",this._delayedDragTouchMoveHandler),Be(e,"touchmove",this._delayedDragTouchMoveHandler),Be(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?Ue(document,"pointermove",this._onTouchMove):n?Ue(document,"touchmove",this._onTouchMove):Ue(document,"mousemove",this._onTouchMove):(Ue(re,"dragend",this),Ue(nt,"dragstart",this._onDragStart));try{document.selection?da(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Ni=!1,nt&&re){Ut("dragStarted",this,{evt:n}),this.nativeDraggable&&Ue(document,"dragover",k8);var r=this.options;!e&&qt(re,r.dragClass,!1),qt(re,r.ghostClass,!0),ye.active=this,e&&this._appendGhost(),Nt({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Tn){this._lastX=Tn.clientX,this._lastY=Tn.clientY,K0();for(var e=document.elementFromPoint(Tn.clientX,Tn.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Tn.clientX,Tn.clientY),e!==n);)n=e;if(re.parentNode[tn]._isOutsideThisEl(e),n)do{if(n[tn]){var r=void 0;if(r=n[tn]._onDragOver({clientX:Tn.clientX,clientY:Tn.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);X0()}},_onTouchMove:function(e){if(ri){var n=this.options,r=n.fallbackTolerance,s=n.fallbackOffset,i=e.touches?e.touches[0]:e,o=$e&&ji($e,!0),u=$e&&o&&o.a,l=$e&&o&&o.d,f=Zo&&Ot&&Cm(Ot),a=(i.clientX-ri.clientX+s.x)/(u||1)+(f?f[0]-Pc[0]:0)/(u||1),c=(i.clientY-ri.clientY+s.y)/(l||1)+(f?f[1]-Pc[1]:0)/(l||1);if(!ye.active&&!Ni){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if($e){o?(o.e+=a-(Nc||0),o.f+=c-(Dc||0)):o={a:1,b:0,c:0,d:1,e:a,f:c};var h="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");ve($e,"webkitTransform",h),ve($e,"mozTransform",h),ve($e,"msTransform",h),ve($e,"transform",h),Nc=a,Dc=c,Tn=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!$e){var e=this.options.fallbackOnBody?document.body:nt,n=yt(re,!0,Zo,!0,e),r=this.options;if(Zo){for(Ot=e;ve(Ot,"position")==="static"&&ve(Ot,"transform")==="none"&&Ot!==document;)Ot=Ot.parentNode;Ot!==document.body&&Ot!==document.documentElement?(Ot===document&&(Ot=Hn()),n.top+=Ot.scrollTop,n.left+=Ot.scrollLeft):Ot=Hn(),Pc=Cm(Ot)}$e=re.cloneNode(!0),qt($e,r.ghostClass,!1),qt($e,r.fallbackClass,!0),qt($e,r.dragClass,!0),ve($e,"transition",""),ve($e,"transform",""),ve($e,"box-sizing","border-box"),ve($e,"margin",0),ve($e,"top",n.top),ve($e,"left",n.left),ve($e,"width",n.width),ve($e,"height",n.height),ve($e,"opacity","0.8"),ve($e,"position",Zo?"absolute":"fixed"),ve($e,"zIndex","100000"),ve($e,"pointerEvents","none"),ye.ghost=$e,e.appendChild($e),ve($e,"transform-origin",Em/parseInt($e.style.width)*100+"% "+km/parseInt($e.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,s=e.dataTransfer,i=r.options;if(Ut("dragStart",this,{evt:e}),ye.eventCanceled){this._onDrop();return}Ut("setupClone",this),ye.eventCanceled||(at=z0(re),at.draggable=!1,at.style["will-change"]="",this._hideClone(),qt(at,this.options.chosenClass,!1),ye.clone=at),r.cloneId=da(function(){Ut("clone",r),!ye.eventCanceled&&(r.options.removeCloneOnHide||nt.insertBefore(at,re),r._hideClone(),Nt({sortable:r,name:"clone"}))}),!n&&qt(re,i.dragClass,!0),n?(Na=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Be(document,"mouseup",r._onDrop),Be(document,"touchend",r._onDrop),Be(document,"touchcancel",r._onDrop),s&&(s.effectAllowed="move",i.setData&&i.setData.call(r,s,re)),Ue(document,"drop",r),ve(re,"transform","translateZ(0)")),Ni=!0,r._dragStartId=da(r._dragStarted.bind(r,n,e)),Ue(document,"selectstart",r),Es=!0,Ns&&ve(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,s,i,o,u=this.options,l=u.group,f=ye.active,a=Xo===l,c=u.sort,h=$t||f,p,m=this,g=!1;if(Nu)return;function v(W,F){Ut(W,m,Jn({evt:e,isOwner:a,axis:p?"vertical":"horizontal",revert:o,dragRect:s,targetRect:i,canSort:c,fromSortable:h,target:r,completed:_,onMove:function(J,Y){return Qo(nt,n,re,s,J,yt(J),e,Y)},changed:$},F))}function w(){v("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function _(W){return v("dragOverCompleted",{insertion:W}),W&&(a?f._hideClone():f._showClone(m),m!==h&&(qt(re,$t?$t.options.ghostClass:f.options.ghostClass,!1),qt(re,u.ghostClass,!0)),$t!==m&&m!==ye.active?$t=m:m===ye.active&&$t&&($t=null),h===m&&(m._ignoreWhileAnimating=r),m.animateAll(function(){v("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===re&&!re.animated||r===n&&!r.animated)&&(Ri=null),!u.dragoverBubble&&!e.rootEl&&r!==document&&(re.parentNode[tn]._isOutsideThisEl(e.target),!W&&ii(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function $(){Zt=pn(re),Mr=pn(re,u.draggable),Nt({sortable:m,name:"change",toEl:n,newIndex:Zt,newDraggableIndex:Mr,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Vn(r,u.draggable,n,!0),v("dragOver"),ye.eventCanceled)return g;if(re.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||m._ignoreWhileAnimating===r)return _(!1);if(Na=!1,f&&!u.disabled&&(a?c||(o=ot!==nt):$t===this||(this.lastPutMode=Xo.checkPull(this,f,re,e))&&l.checkPut(this,f,re,e))){if(p=this._getDirection(e,r)==="vertical",s=yt(re),v("dragOverValid"),ye.eventCanceled)return g;if(o)return ot=nt,w(),this._hideClone(),v("revert"),ye.eventCanceled||(oi?nt.insertBefore(re,oi):nt.appendChild(re)),_(!0);var x=Kd(n,u.draggable);if(!x||O8(e,p,this)&&!x.animated){if(x===re)return _(!1);if(x&&n===e.target&&(r=x),r&&(i=yt(r)),Qo(nt,n,re,s,r,i,e,!!r)!==!1)return w(),n.appendChild(re),ot=n,$(),_(!0)}else if(x&&A8(e,p,this)){var b=es(n,0,u,!0);if(b===re)return _(!1);if(r=b,i=yt(r),Qo(nt,n,re,s,r,i,e,!1)!==!1)return w(),n.insertBefore(re,b),ot=n,$(),_(!0)}else if(r.parentNode===n){i=yt(r);var C=0,T,k=re.parentNode!==n,S=!C8(re.animated&&re.toRect||s,r.animated&&r.toRect||i,p),y=p?"top":"left",E=xm(r,"top","top")||xm(re,"top","top"),A=E?E.scrollTop:void 0;Ri!==r&&(T=i[y],Fs=!1,qo=!S&&u.invertSwap||k),C=L8(e,r,i,p,S?1:u.swapThreshold,u.invertedSwapThreshold==null?u.swapThreshold:u.invertedSwapThreshold,qo,Ri===r);var O;if(C!==0){var R=pn(re);do R-=C,O=ot.children[R];while(O&&(ve(O,"display")==="none"||O===$e))}if(C===0||O===r)return _(!1);Ri=r,Bs=C;var M=r.nextElementSibling,I=!1;I=C===1;var B=Qo(nt,n,re,s,r,i,e,I);if(B!==!1)return(B===1||B===-1)&&(I=B===1),Nu=!0,setTimeout(T8,30),w(),I&&!M?n.appendChild(re):r.parentNode.insertBefore(re,I?M:r),E&&j0(E,0,A-E.scrollTop),ot=re.parentNode,T!==void 0&&!qo&&(ha=Math.abs(T-yt(r)[y])),$(),_(!0)}if(n.contains(re))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Be(document,"mousemove",this._onTouchMove),Be(document,"touchmove",this._onTouchMove),Be(document,"pointermove",this._onTouchMove),Be(document,"dragover",ii),Be(document,"mousemove",ii),Be(document,"touchmove",ii)},_offUpEvents:function(){var e=this.el.ownerDocument;Be(e,"mouseup",this._onDrop),Be(e,"touchend",this._onDrop),Be(e,"pointerup",this._onDrop),Be(e,"touchcancel",this._onDrop),Be(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(Zt=pn(re),Mr=pn(re,r.draggable),Ut("drop",this,{evt:e}),ot=re&&re.parentNode,Zt=pn(re),Mr=pn(re,r.draggable),ye.eventCanceled){this._nulling();return}Ni=!1,qo=!1,Fs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Du(this.cloneId),Du(this._dragStartId),this.nativeDraggable&&(Be(document,"drop",this),Be(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ns&&ve(document.body,"user-select",""),ve(re,"transform",""),e&&(Es&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),$e&&$e.parentNode&&$e.parentNode.removeChild($e),(nt===ot||$t&&$t.lastPutMode!=="clone")&&at&&at.parentNode&&at.parentNode.removeChild(at),re&&(this.nativeDraggable&&Be(re,"dragend",this),Bc(re),re.style["will-change"]="",Es&&!Ni&&qt(re,$t?$t.options.ghostClass:this.options.ghostClass,!1),qt(re,this.options.chosenClass,!1),Nt({sortable:this,name:"unchoose",toEl:ot,newIndex:null,newDraggableIndex:null,originalEvent:e}),nt!==ot?(Zt>=0&&(Nt({rootEl:ot,name:"add",toEl:ot,fromEl:nt,originalEvent:e}),Nt({sortable:this,name:"remove",toEl:ot,originalEvent:e}),Nt({rootEl:ot,name:"sort",toEl:ot,fromEl:nt,originalEvent:e}),Nt({sortable:this,name:"sort",toEl:ot,originalEvent:e})),$t&&$t.save()):Zt!==Bi&&Zt>=0&&(Nt({sortable:this,name:"update",toEl:ot,originalEvent:e}),Nt({sortable:this,name:"sort",toEl:ot,originalEvent:e})),ye.active&&((Zt==null||Zt===-1)&&(Zt=Bi,Mr=Ps),Nt({sortable:this,name:"end",toEl:ot,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ut("nulling",this),nt=re=ot=$e=oi=at=ua=Ir=ri=Tn=Es=Zt=Mr=Bi=Ps=Ri=Bs=$t=Xo=ye.dragged=ye.ghost=ye.clone=ye.active=null,Pa.forEach(function(e){e.checked=!0}),Pa.length=Nc=Dc=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":re&&(this._onDragOver(e),$8(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,s=0,i=r.length,o=this.options;s<i;s++)n=r[s],Vn(n,o.draggable,this.el,!1)&&e.push(n.getAttribute(o.dataIdAttr)||M8(n));return e},sort:function(e,n){var r={},s=this.el;this.toArray().forEach(function(i,o){var u=s.children[o];Vn(u,this.options.draggable,s,!1)&&(r[i]=u)},this),n&&this.captureAnimationState(),e.forEach(function(i){r[i]&&(s.removeChild(r[i]),s.appendChild(r[i]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Vn(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var s=Ho.modifyOption(this,e,n);typeof s<"u"?r[e]=s:r[e]=n,e==="group"&&J0(r)},destroy:function(){Ut("destroy",this);var e=this.el;e[tn]=null,Be(e,"mousedown",this._onTapStart),Be(e,"touchstart",this._onTapStart),Be(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Be(e,"dragover",this),Be(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Da.splice(Da.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ir){if(Ut("hideClone",this),ye.eventCanceled)return;ve(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),Ir=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Ir){if(Ut("showClone",this),ye.eventCanceled)return;re.parentNode==nt&&!this.options.group.revertClone?nt.insertBefore(at,re):oi?nt.insertBefore(at,oi):nt.appendChild(at),this.options.group.revertClone&&this.animate(re,at),ve(at,"display",""),Ir=!1}}};function $8(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Qo(t,e,n,r,s,i,o,u){var l,f=t[tn],a=f.options.onMove,c;return window.CustomEvent&&!Ar&&!Uo?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=n,l.draggedRect=r,l.related=s||e,l.relatedRect=i||yt(e),l.willInsertAfter=u,l.originalEvent=o,t.dispatchEvent(l),a&&(c=a.call(f,l,o)),c}function Bc(t){t.draggable=!1}function T8(){Nu=!1}function A8(t,e,n){var r=yt(es(n.el,0,n.options,!0)),s=10;return e?t.clientX<r.left-s||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-s||t.clientY<r.bottom&&t.clientX<r.left}function O8(t,e,n){var r=yt(Kd(n.el,n.options.draggable)),s=10;return e?t.clientX>r.right+s||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+s}function L8(t,e,n,r,s,i,o,u){var l=r?t.clientY:t.clientX,f=r?n.height:n.width,a=r?n.top:n.left,c=r?n.bottom:n.right,h=!1;if(!o){if(u&&ha<f*s){if(!Fs&&(Bs===1?l>a+f*i/2:l<c-f*i/2)&&(Fs=!0),Fs)h=!0;else if(Bs===1?l<a+ha:l>c-ha)return-Bs}else if(l>a+f*(1-s)/2&&l<c-f*(1-s)/2)return R8(e)}return h=h||o,h&&(l<a+f*i/2||l>c-f*i/2)?l>a+f/2?1:-1:0}function R8(t){return pn(re)<pn(t)?1:-1}function M8(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function I8(t){Pa.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&Pa.push(r)}}function da(t){return setTimeout(t,0)}function Du(t){return clearTimeout(t)}sc&&Ue(document,"touchmove",function(t){(ye.active||Ni)&&t.cancelable&&t.preventDefault()});ye.utils={on:Ue,off:Be,css:ve,find:U0,is:function(e,n){return!!Vn(e,n,e,!1)},extend:g8,throttle:H0,closest:Vn,toggleClass:qt,clone:z0,index:pn,nextTick:da,cancelNextTick:Du,detectDirection:Y0,getChild:es};ye.get=function(t){return t[tn]};ye.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(ye.utils=Jn(Jn({},ye.utils),r.utils)),Ho.mount(r)})};ye.create=function(t,e){return new ye(t,e)};ye.version=d8;var gt=[],ks,Pu,Bu=!1,Fc,Vc,Ba,$s;function N8(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Ue(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ue(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ue(document,"touchmove",this._handleFallbackAutoScroll):Ue(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Be(document,"dragover",this._handleAutoScroll):(Be(document,"pointermove",this._handleFallbackAutoScroll),Be(document,"touchmove",this._handleFallbackAutoScroll),Be(document,"mousemove",this._handleFallbackAutoScroll)),Tm(),fa(),v8()},nulling:function(){Ba=Pu=ks=Bu=$s=Fc=Vc=null,gt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var s=this,i=(n.touches?n.touches[0]:n).clientX,o=(n.touches?n.touches[0]:n).clientY,u=document.elementFromPoint(i,o);if(Ba=n,r||this.options.forceAutoScrollFallback||Uo||Ar||Ns){Wc(n,this.options,u,r);var l=Fr(u,!0);Bu&&(!$s||i!==Fc||o!==Vc)&&($s&&Tm(),$s=setInterval(function(){var f=Fr(document.elementFromPoint(i,o),!0);f!==l&&(l=f,fa()),Wc(n,s.options,f,r)},10),Fc=i,Vc=o)}else{if(!this.options.bubbleScroll||Fr(u,!0)===Hn()){fa();return}Wc(n,this.options,Fr(u,!1),!1)}}},yr(t,{pluginName:"scroll",initializeByDefault:!0})}function fa(){gt.forEach(function(t){clearInterval(t.pid)}),gt=[]}function Tm(){clearInterval($s)}var Wc=H0(function(t,e,n,r){if(!!e.scroll){var s=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=e.scrollSensitivity,u=e.scrollSpeed,l=Hn(),f=!1,a;Pu!==n&&(Pu=n,fa(),ks=e.scroll,a=e.scrollFn,ks===!0&&(ks=Fr(n,!0)));var c=0,h=ks;do{var p=h,m=yt(p),g=m.top,v=m.bottom,w=m.left,_=m.right,$=m.width,x=m.height,b=void 0,C=void 0,T=p.scrollWidth,k=p.scrollHeight,S=ve(p),y=p.scrollLeft,E=p.scrollTop;p===l?(b=$<T&&(S.overflowX==="auto"||S.overflowX==="scroll"||S.overflowX==="visible"),C=x<k&&(S.overflowY==="auto"||S.overflowY==="scroll"||S.overflowY==="visible")):(b=$<T&&(S.overflowX==="auto"||S.overflowX==="scroll"),C=x<k&&(S.overflowY==="auto"||S.overflowY==="scroll"));var A=b&&(Math.abs(_-s)<=o&&y+$<T)-(Math.abs(w-s)<=o&&!!y),O=C&&(Math.abs(v-i)<=o&&E+x<k)-(Math.abs(g-i)<=o&&!!E);if(!gt[c])for(var R=0;R<=c;R++)gt[R]||(gt[R]={});(gt[c].vx!=A||gt[c].vy!=O||gt[c].el!==p)&&(gt[c].el=p,gt[c].vx=A,gt[c].vy=O,clearInterval(gt[c].pid),(A!=0||O!=0)&&(f=!0,gt[c].pid=setInterval(function(){r&&this.layer===0&&ye.active._onTouchMove(Ba);var M=gt[this.layer].vy?gt[this.layer].vy*u:0,I=gt[this.layer].vx?gt[this.layer].vx*u:0;typeof a=="function"&&a.call(ye.dragged.parentNode[tn],I,M,t,Ba,gt[this.layer].el)!=="continue"||j0(gt[this.layer].el,I,M)}.bind({layer:c}),24))),c++}while(e.bubbleScroll&&h!==l&&(h=Fr(h,!1)));Bu=f}},30),q0=function(e){var n=e.originalEvent,r=e.putSortable,s=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,u=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(!!n){var f=r||i;u();var a=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,c=document.elementFromPoint(a.clientX,a.clientY);l(),f&&!f.el.contains(c)&&(o("spill"),this.onSpill({dragEl:s,putSortable:r}))}};function Xd(){}Xd.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var s=es(this.sortable.el,this.startIndex,this.options);s?this.sortable.el.insertBefore(n,s):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:q0};yr(Xd,{pluginName:"revertOnSpill"});function qd(){}qd.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,s=r||this.sortable;s.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),s.animateAll()},drop:q0};yr(qd,{pluginName:"removeOnSpill"});ye.mount(new N8);ye.mount(qd,Xd);function Uc(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function Am(t,e,n){const r=n===0?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}function D8(){return typeof window<"u"?window.console:global.console}const P8=D8();function B8(t){const e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}const F8=/-(\w)/g,V8=B8(t=>t.replace(F8,(e,n)=>n.toUpperCase())),Z0=["Start","Add","Remove","Update","End"],Q0=["Choose","Unchoose","Sort","Filter","Clone"],ew=["Move"],W8=[ew,Z0,Q0].flatMap(t=>t).map(t=>`on${t}`),Fu={manage:ew,manageAndEmit:Z0,emit:Q0};function U8(t){return W8.indexOf(t)!==-1}const H8=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function j8(t){return H8.includes(t)}function z8(t){return["transition-group","TransitionGroup"].includes(t)}function tw(t){return["id","class","role","style"].includes(t)||t.startsWith("data-")||t.startsWith("aria-")||t.startsWith("on")}function nw(t){return t.reduce((e,[n,r])=>(e[n]=r,e),{})}function G8({$attrs:t,componentData:e={}}){return{...nw(Object.entries(t).filter(([r,s])=>tw(r))),...e}}function Y8({$attrs:t,callBackBuilder:e}){const n=nw(rw(t));Object.entries(e).forEach(([s,i])=>{Fu[s].forEach(o=>{n[`on${o}`]=i(o)})});const r=`[data-draggable]${n.draggable||""}`;return{...n,draggable:r}}function rw(t){return Object.entries(t).filter(([e,n])=>!tw(e)).map(([e,n])=>[V8(e),n]).filter(([e,n])=>!U8(e))}const Om=({el:t})=>t,J8=(t,e)=>t.__draggable_context=e,Lm=t=>t.__draggable_context;class K8{constructor({nodes:{header:e,default:n,footer:r},root:s,realList:i}){this.defaultNodes=n,this.children=[...e,...n,...r],this.externalComponent=s.externalComponent,this.rootTransition=s.transition,this.tag=s.tag,this.realList=i}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,n){const{tag:r,children:s,_isRootComponent:i}=this;return e(r,n,i?{default:()=>s}:s)}updated(){const{defaultNodes:e,realList:n}=this;e.forEach((r,s)=>{J8(Om(r),{element:n[s],index:s})})}getUnderlyingVm(e){return Lm(e)}getVmIndexFromDomIndex(e,n){const{defaultNodes:r}=this,{length:s}=r,i=n.children,o=i.item(e);if(o===null)return s;const u=Lm(o);if(u)return u.index;if(s===0)return 0;const l=Om(r[0]),f=[...i].findIndex(a=>a===l);return e<f?0:s}}function X8(t,e){const n=t[e];return n?n():[]}function q8({$slots:t,realList:e,getKey:n}){const r=e||[],[s,i]=["header","footer"].map(l=>X8(t,l)),{item:o}=t;if(!o)throw new Error("draggable element must have an item slot");const u=r.flatMap((l,f)=>o({element:l,index:f}).map(a=>(a.key=n(l),a.props={...a.props||{},"data-draggable":!0},a)));if(u.length!==r.length)throw new Error("Item slot must have only one child");return{header:s,footer:i,default:u}}function Z8(t){const e=z8(t),n=!j8(t)&&!e;return{transition:e,externalComponent:n,tag:n?d.resolveComponent(t):e?d.TransitionGroup:t}}function Q8({$slots:t,tag:e,realList:n,getKey:r}){const s=q8({$slots:t,realList:n,getKey:r}),i=Z8(e);return new K8({nodes:s,root:i,realList:n})}function iw(t,e){d.nextTick(()=>this.$emit(t.toLowerCase(),e))}function sw(t){return(e,n)=>{if(this.realList!==null)return this[`onDrag${t}`](e,n)}}function e5(t){const e=sw.call(this,t);return(n,r)=>{e.call(this,n,r),iw.call(this,t,n)}}let Hc=null;const t5={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},n5=["update:modelValue","change",...[...Fu.manageAndEmit,...Fu.emit].map(t=>t.toLowerCase())],r5=d.defineComponent({name:"draggable",inheritAttrs:!1,props:t5,emits:n5,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:t,$attrs:e,tag:n,componentData:r,realList:s,getKey:i}=this,o=Q8({$slots:t,tag:n,realList:s,getKey:i});this.componentStructure=o;const u=G8({$attrs:e,componentData:r});return o.render(d.h,u)}catch(t){return this.error=!0,d.h("pre",{style:{color:"red"}},t.stack)}},created(){this.list!==null&&this.modelValue!==null&&P8.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:t,$el:e,componentStructure:n}=this;n.updated();const r=Y8({$attrs:t,callBackBuilder:{manageAndEmit:i=>e5.call(this,i),emit:i=>iw.bind(this,i),manage:i=>sw.call(this,i)}}),s=e.nodeType===1?e:e.parentElement;this._sortable=new ye(s,r),this.targetDomElement=s,s.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:t}=this;return t||this.modelValue},getKey(){const{itemKey:t}=this;return typeof t=="function"?t:e=>e[t]}},watch:{$attrs:{handler(t){const{_sortable:e}=this;!e||rw(t).forEach(([n,r])=>{e.option(n,r)})},deep:!0}},methods:{getUnderlyingVm(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent(t){return t.__draggable_component__},emitChanges(t){d.nextTick(()=>this.$emit("change",t))},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=r=>r.splice(e,0,r.splice(t,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getUnderlyingPotencialDraggableComponent(t);if(!n)return{component:n};const r=n.realList,s={list:r,component:n};return t!==e&&r?{...n.getUnderlyingVm(e)||{},...s}:s},getVmIndexFromDomIndex(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),Hc=t.item},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;Uc(t.item);const n=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(n,0,e);const r={element:e,newIndex:n};this.emitChanges({added:r})},onDragRemove(t){if(Am(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){Uc(t.clone);return}const{index:e,element:n}=this.context;this.spliceList(e,1);const r={element:n,oldIndex:e};this.emitChanges({removed:r})},onDragUpdate(t){Uc(t.item),Am(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(e,n);const r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex(t,e){if(!t.element)return 0;const n=[...e.to.children].filter(o=>o.style.display!=="none"),r=n.indexOf(e.related),s=t.component.getVmIndexFromDomIndex(r);return n.indexOf(Hc)!==-1||!e.willInsertAfter?s:s+1},onDragMove(t,e){const{move:n,realList:r}=this;if(!n||!r)return!0;const s=this.getRelatedContextFromMoveEvent(t),i=this.computeFutureIndex(s,t),o={...this.context,futureIndex:i},u={...t,relatedContext:s,draggedContext:o};return n(u,e)},onDragEnd(){Hc=null}}}),i5={class:"flex grow-1 border-t border-solid border-t-[#eaedf3]"},s5={class:"assets-details__content grow basis-0"},o5={class:"p-4"},ow=d.defineComponent({__name:"assets-details",props:{expanded:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},options:{default:()=>({})}},emits:["parent:call","close:blade"],setup(t,{emit:e}){const n=t,{t:r}=ah(),s=d.reactive({...n.options.editableAsset}),i=[{id:"save",title:r("ASSETS.PAGES.DETAILS.TOOLBAR.SAVE"),icon:"fas fa-save",clickHandler(){n.options.sortHandler&&typeof n.options.sortHandler=="function"&&(n.options.sortHandler(!1,s),e("close:blade"))}},{id:"delete",title:r("ASSETS.PAGES.DETAILS.TOOLBAR.DELETE"),icon:"fas fa-trash",clickHandler(){window.confirm(d.unref(d.computed(()=>r("ASSETS.PAGES.DETAILS.DELETE_CONFIRMATION"))))&&n.options.sortHandler&&typeof n.options.sortHandler=="function"&&(n.options.sortHandler(!0,s),e("close:blade"))}}];return(o,u)=>(d.openBlock(),d.createBlock(d.unref(kd),{title:t.options.editableAsset.name,subtitle:o.$t("ASSETS.PAGES.DETAILS.SUBTITLE"),expanded:t.expanded,closable:t.closable,toolbarItems:i,onClose:u[3]||(u[3]=l=>o.$emit("close:blade"))},{default:d.withCtx(()=>[d.createElementVNode("div",i5,[d.createElementVNode("div",s5,[d.createVNode(d.unref(ts),{"no-padding":!0},{default:d.withCtx(()=>[d.createElementVNode("div",o5,[d.createVNode(d.unref(zu),null,{default:d.withCtx(()=>[d.createVNode(d.unref(Va),{class:"mb-4",src:s.url,size:"xl",bordered:!0},null,8,["src"]),d.createVNode(d.unref(ao),{class:"mb-4",label:o.$t("ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE"),modelValue:s.name,"onUpdate:modelValue":u[0]||(u[0]=l=>s.name=l),clearable:!0,required:!0,placeholder:o.$t("ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER")},null,8,["label","modelValue","placeholder"]),d.createVNode(d.unref(ao),{class:"mb-4",label:o.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.TITLE"),modelValue:s.altText,"onUpdate:modelValue":u[1]||(u[1]=l=>s.altText=l),clearable:!0,required:!0,placeholder:o.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.PLACEHOLDER"),tooltip:o.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.TOOLTIP")},null,8,["label","modelValue","placeholder","tooltip"]),d.createVNode(d.unref(Ed),{class:"mb-4",label:o.$t("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.TITLE"),modelValue:s.description,"onUpdate:modelValue":u[2]||(u[2]=l=>s.description=l),required:!0,placeholder:o.$t("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER")},null,8,["label","modelValue","placeholder"])]),_:1})])]),_:1})])])]),_:1},8,["title","subtitle","expanded","closable"]))}}),a5=Object.freeze(Object.defineProperty({__proto__:null,AssetsDetails:ow},Symbol.toStringTag,{value:"Module"})),aw={PAGES:{DETAILS:{SUBTITLE:"Image edit",TOOLBAR:{SAVE:"Save",DELETE:"Delete"},FIELDS:{NAME:{TITLE:"Image name",PLACEHOLDER:"Enter image name"},ALT:{TITLE:"Image alternative text",PLACEHOLDER:"Enter image alt text",TOOLTIP:"This text will be displayed in case of disabled/unloaded image on the page"},DESCRIPTION:{TITLE:"Meta description",PLACEHOLDER:"Enter meta description"}},DELETE_CONFIRMATION:"Are you sure you want to delete this image?"}}},l5={ASSETS:aw},c5=Object.freeze(Object.defineProperty({__proto__:null,ASSETS:aw,default:l5},Symbol.toStringTag,{value:"Module"})),u5=Object.freeze(Object.defineProperty({__proto__:null,en:c5},Symbol.toStringTag,{value:"Module"})),h5={install(t){Object.entries(a5).forEach(([e,n])=>{var r;t.component(e,n),(r=t.config.globalProperties.pages)==null||r.push(n)}),Object.entries(u5).forEach(([e,n])=>{t.config.globalProperties.$mergeLocaleMessage(e,n)})}},d5={class:"relative h-full flex items-center justify-center ml-2 mr-[15px] shrink-0"},f5=["onClick"],p5=d.createElementVNode("div",{class:"h-[22px] w-[22px] [mask:url(/assets/app-select.svg)] bg-[color:var(--app-bar-button-color)] duration-200"},null,-1),m5=[p5],g5={key:0,class:"px-4 py-3.5 bg-white drop-shadow-[4px_4px_20px_rgba(47,86,108,0.25)] absolute z-[10000] rounded top-[var(--app-bar-height)] left-0"},v5={class:"flex flex-col gap-3 overflow-hidden"},y5=["onClick"],b5=["src","alt"],w5={class:"font-normal text-sm text-[#727C87] truncate group-hover:opacity-80"},lw=d.defineComponent({__name:"vc-app-switcher",props:{appsList:{default:void 0}},emits:["onClick"],setup(t,{emit:e}){const n=t,r=d.ref(!1),s=f=>window.location.origin+f,i=f=>{const a=window.location.pathname.replace(/\/+$/,""),c=f.match(a);return c?c[0]:null},o=f=>{e("onClick",f),l()},u=()=>{n.appsList&&n.appsList.length&&(r.value=!r.value)},l=()=>{r.value=!1};return(f,a)=>{const c=d.resolveDirective("click-outside");return d.withDirectives((d.openBlock(),d.createElementBlock("div",d5,[d.createElementVNode("button",{class:"hover:[&>img] hover:[&_div]:bg-[color:var(--app-bar-button-color-hover)]",onClick:d.withModifiers(u,["stop"])},m5,8,f5),r.value&&t.appsList&&t.appsList.length?(d.openBlock(),d.createElementBlock("div",g5,[d.createElementVNode("ul",v5,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.appsList,h=>(d.openBlock(),d.createElementBlock("li",{key:h.id,onClick:p=>o(h),class:d.normalizeClass(["flex flex-row items-center cursor-pointer group",{"[&>p]:font-extrabold":i(h.relativeUrl)}])},[d.createElementVNode("img",{src:s(h.iconUrl),alt:`icon_${h.id}`,class:"w-5 h-5 mr-2 shrink-0"},null,8,b5),d.createElementVNode("p",w5,d.toDisplayString(h.title),1)],10,y5))),128))])])):d.createCommentVNode("",!0)])),[[c,l]])}}}),S5=Object.freeze(Object.defineProperty({__proto__:null,VcAppSwitcher:lw},Symbol.toStringTag,{value:"Module"})),_5=()=>{const t=qa(),{checkPermission:e}=Gl(),n=d.ref([]);async function r(){const{getAccessToken:o}=ko(),u=new Ug;return u.setAuthToken(await o()),u}async function s(){const o=await r();try{n.value=await o.getApps()}catch(u){throw t.error(u),u}}function i(o){e(o.permission)?o.relativeUrl&&(window.location.href=window.location.origin+o.relativeUrl):alert("Access restricted")}return{appsList:d.computed(()=>n.value),getApps:s,switchApp:i}},x5={install(t){Object.entries(S5).forEach(([e,n])=>{t.component(e,n)})}},cw=d.defineComponent({__name:"vc-blade-navigation",props:{blades:{default:()=>[]},parentBladeOptions:{default:()=>({})},parentBladeParam:{default:""}},emits:["onOpen","onClose","onParentCall"],setup(t,{expose:e,emit:n}){const r=t,s=Vs.useRoute(),i=d.ref([]),o=d.ref();d.onBeforeUpdate(()=>{i.value=[o.value]});const u=f=>{f&&Object.keys(f).length&&i.value.push(f)},l=d.computed(()=>r.parentBladeParam?r.parentBladeParam:s.params.param);return e({bladesRefs:i}),(f,a)=>{const c=d.resolveComponent("router-view");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(c,null,{default:d.withCtx(({Component:h,route:p})=>[d.withDirectives((d.openBlock(),d.createBlock(d.resolveDynamicComponent(h),{closable:!1,"onOpen:blade":a[0]||(a[0]=m=>f.$emit("onOpen",{blade:m,id:0})),options:t.parentBladeOptions,param:d.unref(l),key:p,ref_key:"parentRef",ref:o},null,40,["options","param"])),[[d.vShow,f.$isMobile.value?!t.blades.length:t.blades.length<=1]])]),_:1}),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.blades,(h,p)=>d.withDirectives((d.openBlock(),d.createBlock(d.resolveDynamicComponent(h.component),{key:`blade_${p}`,param:h.param,closable:p>=0,expanded:p===t.blades.length-1,options:h.bladeOptions,"onOpen:blade":m=>f.$emit("onOpen",{blade:m,id:h.idx}),"onClose:blade":m=>f.$emit("onClose",p),"onClose:children":m=>f.$emit("onClose",p+1),"onParent:call":m=>f.$emit("onParentCall",{id:p,cb:m}),ref_for:!0,ref:u},null,40,["param","closable","expanded","options","onOpen:blade","onClose:blade","onClose:children","onParent:call"])),[[d.vShow,p>=t.blades.length-(f.$isMobile.value?1:2)]])),128))],64)}}}),C5=Object.freeze(Object.defineProperty({__proto__:null,VcBladeNavigation:cw},Symbol.toStringTag,{value:"Module"})),or=d.ref([]),xs=d.ref([]),Rm=d.ref(),E5=d.ref(),k5=()=>{const t=Vs.useRouter(),e=Vs.useRoute(),{checkPermission:n}=Gl();let r=d.ref(!1);d.watch(()=>or.value,a=>{const c=a[a.length-1];c&&c.component.url?c.param?l(c.component.url+"/"+c.param):l(c.component.url):c||l(e.path)},{deep:!0});async function s({parentBlade:a,component:c,param:h,bladeOptions:p,onOpen:m,onClose:g},v,w){console.debug(`openBlade(${1}) called.`);const _=d.unref(a),$=d.unref(c),x=f($);if(_&&_.url&&(await i(0),!r.value))if(Rm.value=p,w&&typeof w=="function")try{await w()}catch{throw"Navigation failure"}else w||await t.push(_.url);$&&(x===void 0?$.idx=v+1:x&&(await i(or.value.findIndex(b=>b.idx===x.idx)),$.idx=x.idx),await o($,h,p,m,g,v))}async function i(a){var c,h,p,m;if(a<xs.value.length){const g=xs.value.slice(a).reverse();r.value=!1;for(let v=0;v<g.length;v++)if(((c=g[v])==null?void 0:c.onBeforeClose)&&typeof g[v].onBeforeClose=="function"&&await g[v].onBeforeClose()===!1){r.value=!0;break}if(!r.value)typeof((h=or.value[a])==null?void 0:h.onClose)=="function"&&((m=(p=or.value[a])==null?void 0:p.onClose)==null||m.call(p)),or.value.splice(a);else throw"Closing prevented"}}async function o(a,c,h,p,m,g){or.value.length>g&&await i(g),a&&n(a.permissions)?(or.value.push({component:a,bladeOptions:h,param:c,onOpen:p,onClose:m,idx:a.idx}),p&&typeof p=="function"&&p()):alert("Access restricted")}async function u(a,c){if(console.debug(`vc-app#onParentCall(${a}, { method: ${c.method} }) called.`),a>=0){const h=d.unref(xs.value[xs.value.length-2]);if(h)if(c.method&&typeof h[c.method]=="function"){const p=h[c.method],m=await p(c.args);typeof c.callback=="function"&&c.callback(m)}else console.error(`No such method: ${c.method}.`)}}function l(a){history.pushState({},null,"#"+a)}function f(a){return or.value.find(c=>Dy(c.component,a))}return{blades:d.computed(()=>or.value),parentBladeOptions:d.computed(()=>Rm.value),parentBladeParam:d.computed(()=>E5.value),bladesRefs:xs,openBlade:s,closeBlade:i,onParentCall:u}},$5={install(t){Object.entries(C5).forEach(([e,n])=>{t.component(e,n)})}},T5=[h5,x5,$5];function uw(t){return T5.forEach(e=>t.use(e)),t}function A5(t){return t.replace(/[\w]([A-Z])/g,function(e){return e[0]+"_"+e[1]}).toLowerCase()}const O5=[oC,tC,uw],L5={install(t){O5.forEach(n=>n(t)),t.use(l8),t.component("draggable",r5),Object.entries(QY).forEach(([n,r])=>{t.component(n,r)}),Object.entries(kV).forEach(([n,r])=>{t.directive(n,r)});const e=o8({phone:480,desktop:1024});t.config.globalProperties.pages=[],t.config.globalProperties.$isPhone=e.smaller("phone"),t.config.globalProperties.$isTablet=e.between("phone","desktop"),t.config.globalProperties.$isMobile=e.smaller("desktop"),t.config.globalProperties.$isDesktop=e.greater("desktop"),t.config.globalProperties.$isTouch="ontouchstart"in window||navigator.maxTouchPoints>0,t.provide("isPhone",t.config.globalProperties.$isPhone),t.provide("isTablet",t.config.globalProperties.$isTablet),t.provide("isMobile",t.config.globalProperties.$isMobile),t.provide("isDesktop",t.config.globalProperties.$isDesktop),t.provide("pages",t.config.globalProperties.pages)}};Object.defineProperty(exports,"useForm",{enumerable:!0,get:()=>_t.useForm});exports.ApiException=Gg;exports.AppDescriptor=el;exports.ApplicationUser=hr;exports.ApplicationUserLogin=Sl;exports.AppsClient=Ug;exports.AssetsDetails=ow;exports.AuthApiBase=un;exports.AuthorizationClient=bC;exports.Body=Eh;exports.ChangeLogClient=SC;exports.ChangeLogSearchCriteria=fh;exports.ChangeLogSearchResult=il;exports.ChangePasswordRequest=_h;exports.ChangedEntitiesRequest=dh;exports.ChangedEntitiesResponse=rl;exports.ChangedEntity=nl;exports.Claim=Co;exports.ClaimsIdentity=Qs;exports.DiagnosticsClient=_C;exports.DynamicObjectProperty=ul;exports.DynamicPropertiesClient=xC;exports.DynamicProperty=_o;exports.DynamicPropertyDictionaryItem=dl;exports.DynamicPropertyDictionaryItemName=hl;exports.DynamicPropertyDictionaryItemSearchCriteria=mh;exports.DynamicPropertyDictionaryItemSearchResult=fl;exports.DynamicPropertyName=So;exports.DynamicPropertyObjectValue=cl;exports.DynamicPropertySearchCriteria=ph;exports.DynamicPropertySearchResult=ll;exports.ExternalSignInClient=wC;exports.IdentityError=xl;exports.IdentityResult=to;exports.Job=pl;exports.JobsClient=CC;exports.JsonElement=qs;exports.LastModifiedResponse=tl;exports.License=sl;exports.LoginRequest=yh;exports.ModuleAutoInstallPushNotification=ml;exports.ModuleDescriptor=ur;exports.ModuleIdentity=Ks;exports.ModulePushNotification=Xs;exports.ModulesClient=EC;exports.OAuthAppSearchCriteria=gh;exports.OAuthAppSearchResult=gl;exports.OAuthAppsClient=kC;exports.ObjectSettingEntry=ci;exports.OpenIddictApplicationDescriptor=Qi;exports.OpenIddictResponse=Js;exports.OperationLog=wo;exports.Permission=Eo;exports.PermissionScope=eo;exports.ProgressMessage=xo;exports.PushNotification=vl;exports.PushNotificationClient=Hg;exports.PushNotificationSearchCriteria=vh;exports.PushNotificationSearchResult=Zs;exports.ResetPasswordConfirmRequest=xh;exports.Role=vi;exports.RoleSearchCriteria=bh;exports.RoleSearchResult=wl;exports.SecurityClient=jg;exports.SecurityResult=fn;exports.SemanticVersion=ol;exports.SettingClient=zg;exports.SignInResult=yl;exports.SortInfo=Xn;exports.StringIdentityUserRole=wh;exports.SystemInfo=al;exports.UserApiKey=li;exports.UserDetail=bl;exports.UserLockedResult=Cl;exports.UserSearchCriteria=Sh;exports.UserSearchResult=_l;exports.ValidatePasswordResetTokenRequest=Ch;exports.VcApp=Hb;exports.VcAppSwitcher=lw;exports.VcBadge=Mm;exports.VcBlade=kd;exports.VcBladeNavigation=cw;exports.VcBreadcrumbs=Wm;exports.VcButton=Im;exports.VcCard=Nm;exports.VcCheckbox=pa;exports.VcCol=ma;exports.VcContainer=ts;exports.VcDynamicProperty=jb;exports.VcEditor=Jm;exports.VcFileUpload=Gu;exports.VcForm=zu;exports.VcGallery=zb;exports.VcHint=Dm;exports.VcIcon=ke;exports.VcImage=Va;exports.VcInfoRow=Pm;exports.VcInput=ao;exports.VcLabel=br;exports.VcLink=Vu;exports.VcLoading=Wu;exports.VcLoginForm=Gb;exports.VcMultivalue=Tb;exports.VcNotification=Ab;exports.VcPagination=_d;exports.VcPopup=$d;exports.VcProgress=Bm;exports.VcRating=Ob;exports.VcRow=Uu;exports.VcSelect=Lb;exports.VcSlider=Ub;exports.VcStatus=Hu;exports.VcStatusIcon=ju;exports.VcSwitch=Fm;exports.VcTable=B0;exports.VcTextarea=Ed;exports.VcWidget=Vm;exports.after=Eb;exports.camelToSnake=A5;exports.default=L5;exports.email=yb;exports.init=uw;exports.max=Sb;exports.max_value=Cb;exports.maxdimensions=kb;exports.min=wb;exports.min_value=xb;exports.numeric=bb;exports.regex=_b;exports.required=ka;exports.size=$b;exports.useAppSwitcher=_5;exports.useAutosave=SV;exports.useBladeNavigation=k5;exports.useFunctions=z1;exports.useI18n=ah;exports.useLogger=qa;exports.useNotifications=bV;exports.usePermissions=Gl;exports.useSettings=wV;exports.useUser=ko;
1133
+ //# sourceMappingURL=framework.js.map