@avakhula/ui 0.0.505 → 0.0.510-alpha-spa.1
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.
- package/.babelrc.json +0 -0
- package/.eslintrc.cjs +0 -0
- package/.nvmrc +0 -0
- package/.storybook/main.js +0 -0
- package/.storybook/preview-head.html +0 -0
- package/.storybook/preview.js +0 -0
- package/dist/index.css +1 -0
- package/dist/index.es.js +22382 -0
- package/dist/index.umd.js +238 -0
- package/package.json +11 -10
- package/src/App.vue +16 -127
- package/src/assets/scss/mixins/dropdown-list-item.scss +9 -4
- package/src/assets/scss/mixins/tooltip-position.scss +7 -0
- package/src/assets/scss/mixins.scss +2 -2
- package/src/assets/scss/style.scss +4 -4
- package/src/assets/scss/typography.scss +3 -3
- package/src/assets/scss/variables/colors.json +0 -0
- package/src/assets/scss/variables/colors.scss +0 -0
- package/src/assets/scss/variables/shadows.json +0 -0
- package/src/assets/scss/variables/shadows.scss +0 -0
- package/src/components/Accordion/Accordion.scss +3 -3
- package/src/components/Accordion/Accordion.stories.js +0 -0
- package/src/components/Accordion/Accordion.vue +2 -2
- package/src/components/Accordion/Acordion.spec.js +0 -0
- package/src/components/Accordion/readme.mdx +0 -0
- package/src/components/Alert/Alert.spec.js +0 -0
- package/src/components/Alert/Alert.stories.js +0 -0
- package/src/components/Alert/Alert.vue +6 -1
- package/src/components/Alert/alert.scss +8 -3
- package/src/components/Alert/constants.js +0 -0
- package/src/components/Alert/readme.mdx +0 -0
- package/src/components/Avatar/Avatar.stories.js +5 -1
- package/src/components/Avatar/Avatar.vue +27 -4
- package/src/components/Avatar/constants.js +6 -0
- package/src/components/Badge/Badge.spec.js +0 -0
- package/src/components/Badge/Badge.vue +2 -2
- package/src/components/Badge/readme.mdx +0 -0
- package/src/components/Breadcrumbs/Breadcrumbs.vue +24 -9
- package/src/components/Breadcrumbs/breadcrumbs.scss +5 -5
- package/src/components/Breadcrumbs/breadcrumbs.stories.js +0 -0
- package/src/components/Button/Button.spec.js +0 -0
- package/src/components/Button/Button.vue +20 -4
- package/src/components/Button/button.scss +8 -3
- package/src/components/Button/readme.mdx +0 -0
- package/src/components/ButtonGroup/ButtonGroup.stories.js +0 -0
- package/src/components/ButtonGroup/readme.mdx +0 -0
- package/src/components/Chips/Chips.stories.js +30 -0
- package/src/components/Chips/Chips.vue +125 -0
- package/src/components/Dropdown/Dropdown.spec.js +0 -0
- package/src/components/Dropdown/Dropdown.stories.js +0 -0
- package/src/components/Dropdown/Dropdown.vue +3 -3
- package/src/components/Dropdown/DropdownDivider.vue +1 -1
- package/src/components/Dropdown/DropdownItem.vue +27 -5
- package/src/components/Dropdown/DropdownList.stories.js +0 -0
- package/src/components/Dropdown/DropdownList.vue +6 -2
- package/src/components/Dropdown/readme.mdx +0 -0
- package/src/components/Form/CharactersCount.vue +12 -9
- package/src/components/Form/Checkbox/Checkbox.scss +4 -4
- package/src/components/Form/Checkbox/Checkbox.stories.js +0 -0
- package/src/components/Form/Checkbox/Checkbox.vue +25 -12
- package/src/components/Form/Checkbox/readme.mdx +0 -0
- package/src/components/Form/CheckboxGroup/CheckboxGroup.stories.js +0 -0
- package/src/components/Form/CheckboxGroup/CheckboxGroup.vue +15 -0
- package/src/components/Form/CheckboxGroup/readme.mdx +2 -0
- package/src/components/Form/DatePicker/DatePicker.scss +356 -265
- package/src/components/Form/DatePicker/DatePicker.stories.js +0 -0
- package/src/components/Form/DatePicker/DatePicker.vue +73 -18
- package/src/components/Form/DatePicker/readme.mdx +0 -0
- package/src/components/Form/FormGroup/FormGroup.vue +5 -5
- package/src/components/Form/FormGroup/FormGroupSet.vue +1 -1
- package/src/components/Form/Input/Input.stories.js +0 -0
- package/src/components/Form/Input/Input.vue +120 -14
- package/src/components/Form/Input/constants.js +0 -0
- package/src/components/Form/Input/input.scss +64 -5
- package/src/components/Form/Input/readme.mdx +0 -0
- package/src/components/Form/Label/Label.stories.js +0 -0
- package/src/components/Form/Label/Label.vue +24 -12
- package/src/components/Form/Label/readme.mdx +0 -0
- package/src/components/Form/PhoneInput/PhoneInput.stories.js +0 -0
- package/src/components/Form/PhoneInput/PhoneInput.vue +77 -28
- package/src/components/Form/PhoneInput/phoneInput.scss +42 -10
- package/src/components/Form/PhoneInput/readme.mdx +0 -0
- package/src/components/Form/Radio/Radio.stories.js +0 -0
- package/src/components/Form/Radio/Radio.vue +17 -45
- package/src/components/Form/Radio/radio.scss +8 -5
- package/src/components/Form/Radio/readme.mdx +0 -0
- package/src/components/Form/TextEditor/TextEditor.stories.js +0 -0
- package/src/components/Form/TextEditor/TextEditor.vue +92 -138
- package/src/components/Form/TextEditor/Toolbar.vue +723 -0
- package/src/components/Form/TextEditor/icons/toolbarIcons.js +8 -0
- package/src/components/Form/TextEditor/plugins/imageBlot.js +23 -0
- package/src/components/Form/TextEditor/readme.mdx +0 -0
- package/src/components/Form/TextEditor/setupTextEditor.js +71 -0
- package/src/components/Form/TextEditor/textEditor.scss +15 -339
- package/src/components/Form/Textarea/Textarea.spec.js +0 -0
- package/src/components/Form/Textarea/Textarea.stories.js +0 -0
- package/src/components/Form/Textarea/Textarea.vue +28 -10
- package/src/components/Form/Textarea/readme.mdx +0 -0
- package/src/components/Form/Textarea/textarea.scss +33 -5
- package/src/components/Form/Toggle/Toggle.stories.js +0 -0
- package/src/components/Form/Toggle/Toggle.vue +1 -1
- package/src/components/Form/Toggle/readme.mdx +0 -0
- package/src/components/Form/Toggle/toggle.scss +3 -3
- package/src/components/IconButton/IconButton.scss +13 -2
- package/src/components/IconButton/IconButton.vue +11 -4
- package/src/components/IconButton/readme.mdx +0 -0
- package/src/components/List.vue +1 -1
- package/src/components/Modal/Modal.stories.js +0 -0
- package/src/components/Modal/Modal.vue +109 -40
- package/src/components/Modal/constants.js +0 -0
- package/src/components/Modal/readme.mdx +0 -0
- package/src/components/Pagination/LimitSelector.vue +5 -0
- package/src/components/Pagination/Pagination.vue +37 -5
- package/src/components/Pagination/pagination.scss +20 -4
- package/src/components/Panel/Panel.stories.js +0 -0
- package/src/components/Panel/Panel.vue +72 -6
- package/src/components/Popover/Popover.vue +27 -10
- package/src/components/Popover/constants.js +0 -0
- package/src/components/Popover/popover.scss +4 -4
- package/src/components/Popover/readme.mdx +0 -0
- package/src/components/ProgressBar/ProgressBar.vue +1 -1
- package/src/components/ProgressBar/constants.js +0 -0
- package/src/components/ProgressBar/progressBar.scss +1 -1
- package/src/components/ProgressBar/readme.mdx +0 -0
- package/src/components/Sorting/Sorting.stories.js +0 -0
- package/src/components/Sorting/Sorting.vue +25 -27
- package/src/components/Sorting/sorting.scss +5 -5
- package/src/components/SplitButton/SplitButton.stories.js +0 -0
- package/src/components/SplitButton/SplitButton.vue +52 -9
- package/src/components/SplitButton/SplitButtonItem.vue +14 -2
- package/src/components/SplitButton/readme.mdx +0 -0
- package/src/components/SplitButton/splitButton.scss +3 -3
- package/src/components/StatusIndicator/StatusIndicator.stories.js +0 -0
- package/src/components/StatusIndicator/StatusIndicator.vue +2 -2
- package/src/components/StatusIndicator/constants.js +0 -0
- package/src/components/StatusIndicator/icons.js +0 -0
- package/src/components/StatusIndicator/readme.mdx +0 -0
- package/src/components/Table/Cells/Cell.vue +2 -2
- package/src/components/Table/Cells/CheckboxCell.vue +0 -0
- package/src/components/Table/Row.vue +1 -1
- package/src/components/Table/Table.stories.js +0 -0
- package/src/components/Table/Table.vue +0 -0
- package/src/components/Tabs/Tab.vue +4 -0
- package/src/components/Tabs/TabDropdown.vue +1 -1
- package/src/components/Tabs/Tabs.stories.js +0 -0
- package/src/components/Tabs/Tabs.vue +21 -6
- package/src/components/Tabs/tabs.scss +12 -6
- package/src/components/TagPill/TagPill.stories.js +0 -0
- package/src/components/TagPill/TagPill.vue +8 -2
- package/src/components/TagPill/readme.mdx +0 -0
- package/src/components/ToggleTip/ToggleTip.vue +1 -1
- package/src/components/ToggleTip/constants.js +0 -0
- package/src/components/ToggleTip/readme.mdx +0 -0
- package/src/components/ToggleTip/toggleTip.scss +5 -5
- package/src/components/Tooltip/Tooltip.vue +4 -4
- package/src/components/Tooltip/readme.mdx +0 -0
- package/src/components/TreeSelect/Option.vue +59 -25
- package/src/components/TreeSelect/Select.stories.js +0 -0
- package/src/components/TreeSelect/Select.vue +283 -148
- package/src/components/TreeSelect/TreeSelect.stories.js +0 -0
- package/src/components/TreeSelect/mixins/InfinityLoaderMixin.js +40 -0
- package/src/components/TreeSelect/scss/option.scss +37 -6
- package/src/components/TreeSelect/scss/select.scss +97 -6
- package/src/constants/keyCodes.js +1 -0
- package/src/directives/outside/outside.stories.js +0 -0
- package/src/directives/outside/readme.mdx +0 -0
- package/src/directives/tooltip/TooltipController.js +2 -0
- package/src/directives/tooltip/readme.mdx +0 -0
- package/src/directives/tooltip/textOverflowTooltip.js +3 -1
- package/src/directives/tooltip/tooltip.js +61 -0
- package/src/directives/tooltip/tooltip.stories.js +0 -0
- package/src/helpers/debounce.js +23 -0
- package/src/helpers/removeEvents.js +0 -0
- package/src/helpers/stripHtml.js +4 -0
- package/src/index.js +7 -0
- package/src/main.js +0 -0
- package/src/mixins/expandAnimation.js +0 -0
- package/src/scripts/parseScssVariables.js +0 -0
- package/src/stories/link.readme.mdx +0 -0
- package/src/stories/variables/colors.stories.js +0 -0
- package/src/stories/variables/shadows.stories.js +0 -0
- package/static/docks/button.pdf +0 -0
- package/static/favicon.ico +0 -0
- package/vite.config.js +3 -9
- package/dist/index.js +0 -20786
- package/dist/index.umd.cjs +0 -227
- package/dist/style.css +0 -1
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
(function(fe,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(fe=typeof globalThis<"u"?globalThis:fe||self,n(fe.MyLib={},fe.Vue))})(this,(function(fe,n){"use strict";const be=(t,r)=>{const e=t.__vccOpts||t;for(const[o,a]of r)e[o]=a;return e},La={name:"IbIcon",props:{name:{type:String,required:!0},classes:{type:String,default:""},styles:{type:[String,Object],default:""}},mounted(){const t=setInterval(()=>{var r,e;(e=(r=this.$refs.icon)==null?void 0:r.shadowRoot)!=null&&e.querySelector("title")&&(this.$refs.icon.shadowRoot.querySelector("title").innerHTML="",clearInterval(t))},1e3)}},Ra=["name"];function ja(t,r,e,o,a,i){return n.openBlock(),n.createElementBlock("ion-icon",{style:n.normalizeStyle(e.styles),name:e.name,class:n.normalizeClass(e.classes+" ib-icon icon-"+e.name),ref:"icon"},null,14,Ra)}const Le=be(La,[["render",ja]]);function dt(){return"_"+Math.random().toString(36).substr(2,9)}const Pi={methods:{enter(t){const r=getComputedStyle(t).width;t.style.width=r,t.style.position="absolute",t.style.visibility="hidden",t.style.height="auto";const e=getComputedStyle(t).height;t.style.width=null,t.style.position=null,t.style.visibility=null,t.style.height=0,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=e})},afterEnter(t){t.style.height="auto"},leave(t){const r=getComputedStyle(t).height;t.style.height=r,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=0})}}},Va={name:"IbAccordion",mixins:[Pi],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:dt()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:Le}},Fa=["id","aria-controls","aria-expanded"],qa=["id","aria-labelledby"],Ha={class:"accordion-content-wrapper"};function za(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ib-accordion",{active:a.isActive}])},[n.createElementVNode("button",{class:"accordion-title",id:"accordion"+a.uuid,"aria-controls":"accordion-section-"+a.uuid,"aria-expanded":a.isActive,type:"button",onClick:r[0]||(r[0]=n.withModifiers((...c)=>i.onClick&&i.onClick(...c),["prevent"]))},[n.renderSlot(t.$slots,"title",{},void 0,!0),n.createVNode(d,{class:"chevron-icon",name:"chevron-down-outline"})],8,Fa),n.createVNode(n.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{role:"region",class:"accordion-content",id:"accordion-section-"+a.uuid,"aria-labelledby":"accordion"+a.uuid},[n.createElementVNode("div",Ha,[n.renderSlot(t.$slots,"default",{},void 0,!0)])],8,qa),[[n.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Ua=be(Va,[["render",za],["__scopeId","data-v-e6e815cc"]]),qt={primary:"primary",tertiary:"tertiary",ghost:"ghost"};function Nr(t,r=[]){for(let e in t)e.startsWith("on")&&(r.length===0||r.includes(e))&&delete t[e];return t}const Ka={name:"IbButton",props:{kind:{type:String,default:qt.primary},disabled:{type:Boolean,required:!1,default:!1},preventDefault:{type:Boolean,default:null},confirmMessage:{type:String,default:""},block:{type:Boolean,default:!1},href:{type:String,default:""},to:{type:[String,Object]},linkMethod:{type:String,default:"get"},disableAfterClick:{type:Boolean,default:!1},postOptions:{type:Object,default:()=>({})}},data(){return{isDisabled:this.disabled}},watch:{disabled(t){this.isDisabled=t}},methods:{onMouseenter(t){this.$emit("mouseenter",t)},onMouseleave(t){this.$emit("mouseleave",t)},onClick(t){if((this.preventDefault||this.isDisabled)&&t.preventDefault(),this.confirmMessage.length>0&&!confirm(this.confirmMessage)){t.preventDefault();return}!this.isDisabled&&this.href.length&&!this.preventDefault&&this.linkMethod.toUpperCase()!=="GET"&&(t.preventDefault(),this.$refs.form.submit()),this.isDisabled||this.$emit("click",t),this.disableAfterClick&&!this.disabled&&(this.isDisabled=!0)}},computed:{component(){return this.href.length?"a":this.to?"router-link":"button"},classes(){const t=["ib-button"];return t.push(`ib-btn-${this.kind}`),this.isDisabled&&t.push("ib-btn-disabled"),this.block&&t.push("ib-btn-block"),(this.href.length||this.to)&&t.push("ib-btn-link"),this.hasIcon&&t.push("ib-btn-has-icon"),t},attrs(){const t=Nr({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],t.disabled=this.isDisabled,this.href.length&&(t.href=this.href),this.to&&(t.to=this.to),t},hasIcon(){return!!this.$slots.icon},formMethod(){return this.linkMethod==="GET"?"GET":"POST"},token(){var t;return(t=document.head.querySelector('meta[name="csrf-token"]'))==null?void 0:t.content}},inheritAttrs:!1},Ga=["method","action"],Wa=["value"],Ya=["value"],Za=["name","value"];function Ja(t,r,e,o,a,i){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.component),n.mergeProps(i.attrs,{onClick:r[0]||(r[0]=d=>i.onClick(d)),onMouseenter:i.onMouseenter,onMouseleave:i.onMouseleave}),{default:n.withCtx(()=>[n.renderSlot(t.$slots,"icon"),n.renderSlot(t.$slots,"default"),e.href.length&&e.linkMethod.toUpperCase()!=="GET"?n.withDirectives((n.openBlock(),n.createElementBlock("form",{key:0,ref:"form",method:i.formMethod,action:e.href},[n.createElementVNode("input",{type:"hidden",name:"_method",value:e.linkMethod},null,8,Wa),n.createElementVNode("input",{type:"hidden",name:"_token",value:i.token},null,8,Ya),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(e.postOptions),(d,c)=>(n.openBlock(),n.createElementBlock("input",{key:c,type:"hidden",name:d,value:e.postOptions[d]},null,8,Za))),128))],8,Ga)),[[n.vShow,!1]]):n.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const Li=be(Ka,[["render",Ja]]),Ri={topLeft:"top-left",topCenter:"top-center",topRight:"top-right",rightTop:"right-top",rightCenter:"right-center",rightBottom:"right-bottom",bottomLeft:"bottom-left",bottomCenter:"bottom-center",bottomRight:"bottom-right",leftTop:"left-top",leftCenter:"left-center",leftBottom:"left-bottom"},Xa=["top","right","bottom","left"],ji=["start","end"],Vi=Xa.reduce((t,r)=>t.concat(r,r+"-"+ji[0],r+"-"+ji[1]),[]),Fi=Math.min,mn=Math.max,Yn=Math.round,Bt=t=>({x:t,y:t}),Qa={left:"right",right:"left",bottom:"top",top:"bottom"},el={start:"end",end:"start"};function qi(t,r){return typeof t=="function"?t(r):t}function Zn(t){return t.split("-")[0]}function Ht(t){return t.split("-")[1]}function tl(t){return t==="x"?"y":"x"}function Hi(t){return t==="y"?"height":"width"}function zi(t){return["top","bottom"].includes(Zn(t))?"y":"x"}function Ui(t){return tl(zi(t))}function nl(t,r,e){e===void 0&&(e=!1);const o=Ht(t),a=Ui(t),i=Hi(a);let d=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(d=Ki(d)),[d,Ki(d)]}function rl(t){return t.replace(/start|end/g,r=>el[r])}function Ki(t){return t.replace(/left|right|bottom|top/g,r=>Qa[r])}function il(t){return{top:0,right:0,bottom:0,left:0,...t}}function ol(t){return typeof t!="number"?il(t):{top:t,right:t,bottom:t,left:t}}function Jn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Gi(t,r,e){let{reference:o,floating:a}=t;const i=zi(r),d=Ui(r),c=Hi(d),p=Zn(r),s=i==="y",h=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,l=o[c]/2-a[c]/2;let u;switch(p){case"top":u={x:h,y:o.y-a.height};break;case"bottom":u={x:h,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:f};break;case"left":u={x:o.x-a.width,y:f};break;default:u={x:o.x,y:o.y}}switch(Ht(r)){case"start":u[d]-=l*(e&&s?-1:1);break;case"end":u[d]+=l*(e&&s?-1:1);break}return u}const al=async(t,r,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:d}=e,c=i.filter(Boolean),p=await(d.isRTL==null?void 0:d.isRTL(r));let s=await d.getElementRects({reference:t,floating:r,strategy:a}),{x:h,y:f}=Gi(s,o,p),l=o,u={},_=0;for(let g=0;g<c.length;g++){const{name:$,fn:v}=c[g],{x:b,y,data:m,reset:w}=await v({x:h,y:f,initialPlacement:o,placement:l,strategy:a,middlewareData:u,rects:s,platform:d,elements:{reference:t,floating:r}});h=b??h,f=y??f,u={...u,[$]:{...u[$],...m}},w&&_<=50&&(_++,typeof w=="object"&&(w.placement&&(l=w.placement),w.rects&&(s=w.rects===!0?await d.getElementRects({reference:t,floating:r,strategy:a}):w.rects),{x:h,y:f}=Gi(s,l,p)),g=-1)}return{x:h,y:f,placement:l,strategy:a,middlewareData:u}};async function ll(t,r){var e;r===void 0&&(r={});const{x:o,y:a,platform:i,rects:d,elements:c,strategy:p}=t,{boundary:s="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:l=!1,padding:u=0}=qi(r,t),_=ol(u),$=c[l?f==="floating"?"reference":"floating":f],v=Jn(await i.getClippingRect({element:(e=await(i.isElement==null?void 0:i.isElement($)))==null||e?$:$.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:s,rootBoundary:h,strategy:p})),b=f==="floating"?{...d.floating,x:o,y:a}:d.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),m=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},w=Jn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:y,strategy:p}):b);return{top:(v.top-w.top+_.top)/m.y,bottom:(w.bottom-v.bottom+_.bottom)/m.y,left:(v.left-w.left+_.left)/m.x,right:(w.right-v.right+_.right)/m.x}}function sl(t,r,e){return(t?[...e.filter(a=>Ht(a)===t),...e.filter(a=>Ht(a)!==t)]:e.filter(a=>Zn(a)===a)).filter(a=>t?Ht(a)===t||(r?rl(a)!==a:!1):!0)}const cl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(r){var e,o,a;const{rects:i,middlewareData:d,placement:c,platform:p,elements:s}=r,{crossAxis:h=!1,alignment:f,allowedPlacements:l=Vi,autoAlignment:u=!0,..._}=qi(t,r),g=f!==void 0||l===Vi?sl(f||null,u,l):l,$=await ll(r,_),v=((e=d.autoPlacement)==null?void 0:e.index)||0,b=g[v];if(b==null)return{};const y=nl(b,i,await(p.isRTL==null?void 0:p.isRTL(s.floating)));if(c!==b)return{reset:{placement:g[0]}};const m=[$[Zn(b)],$[y[0]],$[y[1]]],w=[...((o=d.autoPlacement)==null?void 0:o.overflows)||[],{placement:b,overflows:m}],x=g[v+1];if(x)return{data:{index:v+1,overflows:w},reset:{placement:x}};const S=w.map(E=>{const C=Ht(E.placement);return[E.placement,C&&h?E.overflows.slice(0,2).reduce((O,N)=>O+N,0):E.overflows[0],E.overflows]}).sort((E,C)=>E[1]-C[1]),M=((a=S.filter(E=>E[2].slice(0,Ht(E[0])?2:3).every(C=>C<=0))[0])==null?void 0:a[0])||S[0][0];return M!==c?{data:{index:v+1,overflows:w},reset:{placement:M}}:{}}}};function Pt(t){return Wi(t)?(t.nodeName||"").toLowerCase():"#document"}function lt(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Lt(t){var r;return(r=(Wi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Wi(t){return t instanceof Node||t instanceof lt(t).Node}function kt(t){return t instanceof Element||t instanceof lt(t).Element}function mt(t){return t instanceof HTMLElement||t instanceof lt(t).HTMLElement}function Yi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof lt(t).ShadowRoot}function gn(t){const{overflow:r,overflowX:e,overflowY:o,display:a}=ut(t);return/auto|scroll|overlay|hidden|clip/.test(r+o+e)&&!["inline","contents"].includes(a)}function dl(t){return["table","td","th"].includes(Pt(t))}function Ar(t){const r=Dr(),e=ut(t);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!r&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!r&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function ul(t){let r=Qt(t);for(;mt(r)&&!Xn(r);){if(Ar(r))return r;r=Qt(r)}return null}function Dr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xn(t){return["html","body","#document"].includes(Pt(t))}function ut(t){return lt(t).getComputedStyle(t)}function Qn(t){return kt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Qt(t){if(Pt(t)==="html")return t;const r=t.assignedSlot||t.parentNode||Yi(t)&&t.host||Lt(t);return Yi(r)?r.host:r}function Zi(t){const r=Qt(t);return Xn(r)?t.ownerDocument?t.ownerDocument.body:t.body:mt(r)&&gn(r)?r:Zi(r)}function Mr(t,r,e){var o;r===void 0&&(r=[]),e===void 0&&(e=!0);const a=Zi(t),i=a===((o=t.ownerDocument)==null?void 0:o.body),d=lt(a);return i?r.concat(d,d.visualViewport||[],gn(a)?a:[],d.frameElement&&e?Mr(d.frameElement):[]):r.concat(a,Mr(a,[],e))}function Ji(t){const r=ut(t);let e=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=mt(t),i=a?t.offsetWidth:e,d=a?t.offsetHeight:o,c=Yn(e)!==i||Yn(o)!==d;return c&&(e=i,o=d),{width:e,height:o,$:c}}function Xi(t){return kt(t)?t:t.contextElement}function en(t){const r=Xi(t);if(!mt(r))return Bt(1);const e=r.getBoundingClientRect(),{width:o,height:a,$:i}=Ji(r);let d=(i?Yn(e.width):e.width)/o,c=(i?Yn(e.height):e.height)/a;return(!d||!Number.isFinite(d))&&(d=1),(!c||!Number.isFinite(c))&&(c=1),{x:d,y:c}}const fl=Bt(0);function Qi(t){const r=lt(t);return!Dr()||!r.visualViewport?fl:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function hl(t,r,e){return r===void 0&&(r=!1),!e||r&&e!==lt(t)?!1:r}function yn(t,r,e,o){r===void 0&&(r=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),i=Xi(t);let d=Bt(1);r&&(o?kt(o)&&(d=en(o)):d=en(t));const c=hl(i,e,o)?Qi(i):Bt(0);let p=(a.left+c.x)/d.x,s=(a.top+c.y)/d.y,h=a.width/d.x,f=a.height/d.y;if(i){const l=lt(i),u=o&&kt(o)?lt(o):o;let _=l,g=_.frameElement;for(;g&&o&&u!==_;){const $=en(g),v=g.getBoundingClientRect(),b=ut(g),y=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*$.x,m=v.top+(g.clientTop+parseFloat(b.paddingTop))*$.y;p*=$.x,s*=$.y,h*=$.x,f*=$.y,p+=y,s+=m,_=lt(g),g=_.frameElement}}return Jn({width:h,height:f,x:p,y:s})}const pl=[":popover-open",":modal"];function eo(t){return pl.some(r=>{try{return t.matches(r)}catch{return!1}})}function ml(t){let{elements:r,rect:e,offsetParent:o,strategy:a}=t;const i=a==="fixed",d=Lt(o),c=r?eo(r.floating):!1;if(o===d||c&&i)return e;let p={scrollLeft:0,scrollTop:0},s=Bt(1);const h=Bt(0),f=mt(o);if((f||!f&&!i)&&((Pt(o)!=="body"||gn(d))&&(p=Qn(o)),mt(o))){const l=yn(o);s=en(o),h.x=l.x+o.clientLeft,h.y=l.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-p.scrollLeft*s.x+h.x,y:e.y*s.y-p.scrollTop*s.y+h.y}}function gl(t){return Array.from(t.getClientRects())}function to(t){return yn(Lt(t)).left+Qn(t).scrollLeft}function yl(t){const r=Lt(t),e=Qn(t),o=t.ownerDocument.body,a=mn(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=mn(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let d=-e.scrollLeft+to(t);const c=-e.scrollTop;return ut(o).direction==="rtl"&&(d+=mn(r.clientWidth,o.clientWidth)-a),{width:a,height:i,x:d,y:c}}function bl(t,r){const e=lt(t),o=Lt(t),a=e.visualViewport;let i=o.clientWidth,d=o.clientHeight,c=0,p=0;if(a){i=a.width,d=a.height;const s=Dr();(!s||s&&r==="fixed")&&(c=a.offsetLeft,p=a.offsetTop)}return{width:i,height:d,x:c,y:p}}function vl(t,r){const e=yn(t,!0,r==="fixed"),o=e.top+t.clientTop,a=e.left+t.clientLeft,i=mt(t)?en(t):Bt(1),d=t.clientWidth*i.x,c=t.clientHeight*i.y,p=a*i.x,s=o*i.y;return{width:d,height:c,x:p,y:s}}function no(t,r,e){let o;if(r==="viewport")o=bl(t,e);else if(r==="document")o=yl(Lt(t));else if(kt(r))o=vl(r,e);else{const a=Qi(t);o={...r,x:r.x-a.x,y:r.y-a.y}}return Jn(o)}function ro(t,r){const e=Qt(t);return e===r||!kt(e)||Xn(e)?!1:ut(e).position==="fixed"||ro(e,r)}function _l(t,r){const e=r.get(t);if(e)return e;let o=Mr(t,[],!1).filter(c=>kt(c)&&Pt(c)!=="body"),a=null;const i=ut(t).position==="fixed";let d=i?Qt(t):t;for(;kt(d)&&!Xn(d);){const c=ut(d),p=Ar(d);!p&&c.position==="fixed"&&(a=null),(i?!p&&!a:!p&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||gn(d)&&!p&&ro(t,d))?o=o.filter(h=>h!==d):a=c,d=Qt(d)}return r.set(t,o),o}function $l(t){let{element:r,boundary:e,rootBoundary:o,strategy:a}=t;const d=[...e==="clippingAncestors"?_l(r,this._c):[].concat(e),o],c=d[0],p=d.reduce((s,h)=>{const f=no(r,h,a);return s.top=mn(f.top,s.top),s.right=Fi(f.right,s.right),s.bottom=Fi(f.bottom,s.bottom),s.left=mn(f.left,s.left),s},no(r,c,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function wl(t){const{width:r,height:e}=Ji(t);return{width:r,height:e}}function kl(t,r,e){const o=mt(r),a=Lt(r),i=e==="fixed",d=yn(t,!0,i,r);let c={scrollLeft:0,scrollTop:0};const p=Bt(0);if(o||!o&&!i)if((Pt(r)!=="body"||gn(a))&&(c=Qn(r)),o){const f=yn(r,!0,i,r);p.x=f.x+r.clientLeft,p.y=f.y+r.clientTop}else a&&(p.x=to(a));const s=d.left+c.scrollLeft-p.x,h=d.top+c.scrollTop-p.y;return{x:s,y:h,width:d.width,height:d.height}}function io(t,r){return!mt(t)||ut(t).position==="fixed"?null:r?r(t):t.offsetParent}function oo(t,r){const e=lt(t);if(!mt(t)||eo(t))return e;let o=io(t,r);for(;o&&dl(o)&&ut(o).position==="static";)o=io(o,r);return o&&(Pt(o)==="html"||Pt(o)==="body"&&ut(o).position==="static"&&!Ar(o))?e:o||ul(t)||e}const Cl=async function(t){const r=this.getOffsetParent||oo,e=this.getDimensions;return{reference:kl(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,...await e(t.floating)}}};function El(t){return ut(t).direction==="rtl"}const Ol={convertOffsetParentRelativeRectToViewportRelativeRect:ml,getDocumentElement:Lt,getClippingRect:$l,getOffsetParent:oo,getElementRects:Cl,getClientRects:gl,getDimensions:wl,getScale:en,isElement:kt,isRTL:El},Sl=cl,Tl=(t,r,e)=>{const o=new Map,a={platform:Ol,...e},i={...a.platform,_c:o};return al(t,r,{...a,platform:i})},xl={name:"IbPopover",props:{position:{type:[String,Array],default:"top"},alwaysVisible:{type:Boolean,default:!1},attachToBody:{type:Boolean,default:!1},attachTo:{type:String,default:null}},data(){return{parentNode:null,isVisible:!!this.alwaysVisible,activePosition:null}},mounted(){this.$nextTick(()=>{var t,r,e,o;this.parentNode=this.$el.parentNode,this.alwaysVisible||((t=this.parentNode)==null||t.addEventListener("focus",this.showPopover,!0),(r=this.parentNode)==null||r.addEventListener("blur",this.hidePopover,!0),(e=this.parentNode)==null||e.addEventListener("mouseover",this.showPopover),(o=this.parentNode)==null||o.addEventListener("mouseleave",this.hidePopover))})},methods:{showPopover(){this.isVisible||(this.isVisible=!0,Tl(this.parentNode,this.$refs.popover,{middleware:[Sl({allowedPlacements:this.position})]}).then(({x:t,y:r,placement:e})=>{this.activePosition=e,Object.assign(this.$refs.popover.style,{left:`${t}px`,top:`${r}px`})}))},hidePopover(){this.isVisible=!1}},computed:{classes(){const t=["ib-popover"];return t.push(`ib-${this.activePosition}`),this.isVisible&&t.push("active"),t}},beforeUnmount(){!this.alwaysVisible&&this.parentNode&&(this.parentNode.removeEventListener("focus",this.showPopover,!0),this.parentNode.removeEventListener("blur",this.hidePopover,!0),this.parentNode.removeEventListener("mouseover",this.showPopover,!0),this.parentNode.removeEventListener("mouseleave",this.hidePopover,!0))}};function Nl(t,r,e,o,a,i){return e.attachToBody||e.attachTo?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:e.attachToBody?"body":e.attachTo},[n.createVNode(n.Transition,null,{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref:"popover",class:n.normalizeClass(i.classes)},[n.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[n.vShow,a.isVisible]])]),_:3})],8,["to"])):(n.openBlock(),n.createBlock(n.Transition,{key:1},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref:"popover",class:n.normalizeClass(i.classes)},[n.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[n.vShow,a.isVisible]])]),_:3}))}const ao=be(xl,[["render",Nl],["__scopeId","data-v-6da16abc"]]),Al={name:"IbTooltip",props:{position:{type:String},title:{type:String},text:{type:String},alwaysVisible:{type:Boolean,default:!1}},computed:{classList(){const t=["ib-tooltip"];return this.title&&t.push("ib-tooltip-large"),t}},components:{IbPopover:ao}},Dl={key:0};function Ml(t,r,e,o,a,i){const d=n.resolveComponent("ib-popover");return n.openBlock(),n.createBlock(d,{position:e.position,"always-visible":e.alwaysVisible,class:n.normalizeClass(i.classList)},{default:n.withCtx(()=>[e.title?(n.openBlock(),n.createElementBlock("b",Dl,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),n.createElementVNode("p",null,n.toDisplayString(e.text),1)]),_:1},8,["position","always-visible","class"])}const bn=be(Al,[["render",Ml],["__scopeId","data-v-996c106d"]]);class lo{constructor(){this.tooltipInstance=null,this.tooltipContainer=null,this.uuid=null}getTooltipInstance(){return this.getTooltipInstance}getTooltipContainer(){return this.tooltipContainer}getId(){return this.uuid}generateUID(){this.uuid="tooltip_"+dt()}createTooltip(r,e,o){var i;if(!((i=e.text)!=null&&i.length))return;this.generateUID();const a=`
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 0px;
|
|
4
|
+
left: 0px;
|
|
5
|
+
opacity: 0;
|
|
6
|
+
`;this.tooltipContainer=document.createElement("div"),this.tooltipContainer.setAttribute("style",a),document.body.appendChild(this.tooltipContainer),this.tooltipInstance=n.createApp(bn,{title:e.title,text:e.text,alwaysVisible:!0,for:this.uuid,class:this.getClassList(o)}),this.tooltipInstance.mount(this.tooltipContainer),setTimeout(()=>{var d;if((d=this.tooltipContainer)!=null&&d.firstChild){r.setAttribute("aria-describedby",this.uuid);const c=this.getPositionStyle(r,o);this.tooltipContainer.firstChild.setAttribute("style",c),this.tooltipContainer.setAttribute("style",{opacity:1})}},100)}destroyTooltip(r){var e,o;r==null||r.removeAttribute("aria-describedby"),this.uuid=null,(e=this.tooltipInstance)==null||e.unmount(),this.tooltipInstance=null,(o=this.tooltipContainer)==null||o.remove(),this.tooltipContainer=null}getPositionStyle(r,e){const{top:o,bottom:a,left:i,right:d,width:c,height:p}=r.getBoundingClientRect(),{width:s,height:h}=this.tooltipContainer.firstChild.getBoundingClientRect(),f=document.documentElement.scrollTop;let l=`
|
|
7
|
+
bottom: auto!important;
|
|
8
|
+
right: auto!important;
|
|
9
|
+
transform: none!important;
|
|
10
|
+
`;switch(e){case"bottomCenter":l=l+`left: ${i+c/2-s/2}px!important;
|
|
11
|
+
top: ${a+f+5}px!important;`;break;case"bottomLeft":l=l+`left: ${d-s-c/2+14}px!important;
|
|
12
|
+
top: ${a+f+5}px!important;`;break;case"bottomRight":l=l+`left: ${i+c/2-14}px!important;
|
|
13
|
+
top: ${a+f+5}px!important;`;break;case"topLeft":l=l+`left: ${d-s-c/2+14}px!important;
|
|
14
|
+
top: ${o-h+f-5}px!important;`;break;case"topRight":l=l+`left: ${i+c/2-14}px!important;
|
|
15
|
+
top: ${o-h+f-5}px!important;`;break;case"leftTop":l=l+`left: ${i-s-5}px!important;
|
|
16
|
+
top: ${a-h-p/2+f+12}px!important`;break;case"leftCenter":l=l+`left: ${i-s-5}px!important;
|
|
17
|
+
top: ${a+f-h/2-p/2}px!important;`;break;case"leftBottom":l=l+`left: ${i-s-5}px!important;
|
|
18
|
+
top: ${a+f-p/2-12}px!important;`;break;case"rightTop":l=l+`left: ${d+5}px!important;
|
|
19
|
+
top: ${a-h-p/2+f+12}px!important`;break;case"rightCenter":l=l+`left: ${d+5}px!important;
|
|
20
|
+
top: ${a+f-h/2-p/2}px!important;`;break;case"rightBottom":l=l+`left: ${d+5}px!important;
|
|
21
|
+
top: ${a+f-p/2-12}px!important`;break;default:l=l+`left: ${i+c/2-s/2}px!important;
|
|
22
|
+
top: ${o-h+f-5}px!important`;break}return l}getClassList(r){return r?Ri[r]:Ri.topCenter}}const Ct=new lo,so=(t,r)=>{var a;Ct.getTooltipContainer()&&Ct.destroyTooltip();const e=Object.keys(r.modifiers)[0]||r.arg,o={title:((a=r.value)==null?void 0:a.title)||"",text:typeof r.value=="object"?r.value.text:r.value};Ct.createTooltip(t,o,e)},Il=(t,r)=>{const e=Ct.getId();if(r.getAttribute("aria-describedby")!==e)return;const o=Ct.getTooltipContainer();if(t.type==="blur"){r.contains(t.relatedTarget)||Ct.destroyTooltip(r);return}const a=r!==t.target&&!r.contains(t.target),i=o!==t.target&&!(o!=null&&o.contains(t.target));a&&i&&Ct.destroyTooltip(r)},Bl=(t,r)=>{Ct.destroyTooltip(t),t.__tooltip_scroll_timeout&&clearTimeout(t.__tooltip_scroll_timeout),t.__tooltip_scroll_timeout=setTimeout(()=>{const e=t.getBoundingClientRect(),o=t.__tooltip_last_mouse_event;if(o){const{clientX:a,clientY:i}=o;a>=e.left&&a<=e.right&&i>=e.top&&i<=e.bottom&&so(t,r)}},250)},Pl=t=>r=>{t.__tooltip_last_mouse_event=r},co=(t,r)=>{t.__tooltip_create=()=>so(t,r),t.__tooltip_destroy=e=>Il(e,t),t.__tooltip_scroll=()=>Bl(t,r),t.__tooltip_track_mouse=Pl(t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy),document.addEventListener("mousemove",t.__tooltip_track_mouse),document.addEventListener("scroll",t.__tooltip_scroll,!0),t.addEventListener("focus",t.__tooltip_create),t.addEventListener("blur",t.__tooltip_destroy,!0)},uo=t=>{t.__tooltip_scroll_timeout&&clearTimeout(t.__tooltip_scroll_timeout),Ct.destroyTooltip(t),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy),document.removeEventListener("mousemove",t.__tooltip_track_mouse),document.removeEventListener("scroll",t.__tooltip_scroll,!0),t.removeEventListener("focus",t.__tooltip_create),t.removeEventListener("blur",t.__tooltip_destroy,!0),delete t.__tooltip_last_mouse_event,delete t.__tooltip_scroll_timeout},Et={mounted(t,r){co(t,r)},updated(t,r){uo(t),co(t,r)},beforeUnmount(t){uo(t)}},fo={[qt.primary]:qt.primary,[qt.tertiary]:qt.tertiary,[qt.ghost]:qt.ghost,white:"white"},ho={xs:"xs",s:"s",m:"m"},Ll={name:"IbIconButton",props:{kind:{type:String,default:fo.primary,validator:t=>Object.keys(fo).includes(t)},size:{type:String,default:ho.s,validator:t=>Object.keys(ho).includes(t)},rounded:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},href:{type:String,default:""},to:{type:[String,Object],default:""},helpText:{type:String,default:""},disabledFocus:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1}},data(){return{tooltipVisible:!1}},computed:{classes(){const t=["ib-icon-button"];return t.push(`ib-icon-btn-${this.kind}`),t.push(`ib-icon-btn-${this.size}`),this.rounded&&t.push("ib-icon-btn-rounded"),this.disabled&&t.push("ib-icon-btn-disabled"),t},attrs(){const t={...this.$attrs};return t.class=[...this.classes,t.class],this.disabledFocus&&(t.tabindex="-1"),t}},components:{IbButton:Li},directives:{Tooltip:Et},inheritAttrs:!1};function Rl(t,r,e,o,a,i){const d=n.resolveComponent("ib-button"),c=n.resolveDirective("tooltip");return n.withDirectives((n.openBlock(),n.createBlock(d,n.mergeProps(i.attrs,{href:e.href,to:e.to,kind:e.kind,disabled:e.disabled,"prevent-default":e.preventDefault}),{default:n.withCtx(()=>[n.renderSlot(t.$slots,"default")]),_:3},16,["href","to","kind","disabled","prevent-default"])),[[c,e.helpText]])}const Xe=be(Ll,[["render",Rl]]),er={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},jl={name:"IbAlert",props:{type:{type:String,default:er.alert,validator:t=>Object.keys(er).includes(t)},showIcon:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},title:{type:String,default:""},additionalTitleText:{type:String,default:""}},mounted(){this.checkHeight(),this.$refs.content&&(this.contentObserver=new ResizeObserver(()=>{this.checkHeight()}),this.contentObserver.observe(this.$refs.content)),window.addEventListener("resize",()=>this.checkHeight())},data(){return{contentObserver:null}},methods:{close(){this.$emit("close")},checkHeight(){var e;if(!this.$refs.content)return;const t=getComputedStyle(this.$refs.content),r=(e=this.$refs.content)==null?void 0:e.parentElement.offsetWidth;!r||!t||(parseInt(t.width)<=r&&this.$refs.content.classList.remove("large"),parseInt(t.height)>37&&this.showIcon&&(this.title.length?this.$refs.content.classList.add("large"):this.$refs.content.classList.add("medium")))}},computed:{classes(){const t=["ib-alert"];return t.push(`ib-alert-${this.type}`),this.title.length&&t.push("has-title"),this.showIcon&&t.push("has-icon"),this.showCloseButton&&t.push("has-close-button"),this.$slots.link&&t.push("has-link"),t},iconName(){return this.type===er.info?"information-circle-outline":this.type===er.success?"checkmark-circle-outline":"alert-circle-outline"}},beforeUnmount(){var t;(t=this.contentObserver)==null||t.disconnect(),window.removeEventListener("resize",()=>this.checkHeight())},components:{IbIcon:Le,IbIconButton:Xe}},Vl={ref:"content",class:"content"},Fl={class:"content-head"},ql={key:1,class:"ib-alert-title"},Hl={class:"text-content"},zl={class:"link"};function Ul(t,r,e,o,a,i){var p;const d=n.resolveComponent("ib-icon"),c=n.resolveComponent("ib-icon-button");return n.openBlock(),n.createElementBlock("div",{role:"alert",class:n.normalizeClass(i.classes)},[n.createElementVNode("div",Vl,[n.createElementVNode("span",Fl,[e.showIcon?(n.openBlock(),n.createBlock(d,{key:0,class:"ib-alert-icon",name:i.iconName},null,8,["name"])):n.createCommentVNode("",!0),(p=e.title)!=null&&p.length?(n.openBlock(),n.createElementBlock("b",ql,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),n.renderSlot(t.$slots,"title",{},void 0,!0)]),n.createElementVNode("span",Hl,[n.renderSlot(t.$slots,"default",{},void 0,!0)]),n.createElementVNode("div",zl,[n.renderSlot(t.$slots,"link",{},void 0,!0)])],512),e.showCloseButton?(n.openBlock(),n.createBlock(c,{key:0,class:"close-button",kind:"ghost","prevent-default":!0,onClick:i.close},{default:n.withCtx(()=>[n.createVNode(d,{class:"close-button-icon",name:"close-outline"})]),_:1},8,["onClick"])):n.createCommentVNode("",!0)],2)}const Rt=be(jl,[["render",Ul],["__scopeId","data-v-017f43e9"]]),Kl={M:"m"},Gl={CIRCLE:"circle"},Wl={name:"IbAvatar",props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:Kl.M},type:{type:String,default:Gl.CIRCLE}},computed:{classList(){return["avatar",`avatar-size-${this.size}`,`avatar-type-${this.type}`]},validateName(){var t,r;return((t=this.firstName)==null?void 0:t.trim().length)!==0&&((r=this.lastName)==null?void 0:r.trim().length)!==0},initials(){return this.firstName[0].toUpperCase()+this.lastName[0].toUpperCase()}},components:{IbIcon:Le}},Yl=["src","alt"];function Zl(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon");return e.src&&!e.userAvatar?(n.openBlock(),n.createElementBlock("img",{key:0,class:n.normalizeClass(i.classList),src:e.src,alt:e.firstName+""+e.lastName},null,10,Yl)):e.src&&e.userAvatar?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["user-avatar",i.classList]),style:n.normalizeStyle({backgroundImage:"url("+e.src+")"})},null,6)):i.validateName?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass([i.classList,"default-avatar"])},n.toDisplayString(i.initials),3)):(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(["empty-avatar",i.classList])},[n.createVNode(d,{name:"camera-outline"})],2))}const Jl=be(Wl,[["render",Zl],["__scopeId","data-v-1e3762d5"]]),Xl={name:"IbBadge",props:{content:{type:[String,Number],default:""}},computed:{classes(){const t=["ib-badge"];return this.content.toString().length&&t.push("ib-badge-large"),t},normalizeContent(){return this.content>99?"99+":this.content}}};function Ql(t,r,e,o,a,i){return n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(i.classes)},n.toDisplayString(i.normalizeContent),3)}const es=be(Xl,[["render",Ql],["__scopeId","data-v-5ac18f0d"]]),ts={name:"IbButtonGroup"},ns={class:"ib-button-group"};function rs(t,r,e,o,a,i){return n.openBlock(),n.createElementBlock("div",ns,[n.renderSlot(t.$slots,"default")])}const is=be(ts,[["render",rs]]),tn={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},os={props:{status:{type:String,default:tn.neutral,validator:t=>Object.keys(tn).includes(t)},icon:{type:String,default:""},showIcon:{type:Boolean,default:!1}},computed:{classes(){const t=["ib-tag-pill"];return t.push(`ib-tag-pill-${this.status}`),t},iconName(){if(this.icon)return this.icon;switch(this.status){case tn.success:return"checkmark-outline";case tn.neutral:return"time-outline";case tn.info:return"information-circle-outline";case tn.error:return"close-outline";default:return""}}},components:{IbIcon:Le}};function as(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(i.classes)},[e.showIcon&&i.iconName.length?(n.openBlock(),n.createBlock(d,{key:0,name:i.iconName},null,8,["name"])):n.createCommentVNode("",!0),n.createElementVNode("span",null,[n.renderSlot(t.$slots,"default",{},void 0,!0)])],2)}const ls=be(os,[["render",as],["__scopeId","data-v-ab3c0159"]]),ss={name:"IbTooltip",props:{position:{type:String,default:{topCenter:"top-center"}.topCenter},title:{type:String},isOpen:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this.parentNode=this.$el.parentNode,getComputedStyle(this.parentNode).position!=="absolute"&&(this.parentNode.style.position="relative")})},data(){return{isOpenedState:this.isOpen}},methods:{open(){this.isOpenedState=!0,this.$emit("open")},close(){this.isOpenedState=!1,this.$emit("close")}},computed:{classes(){const t=["ib-toggle-tip"];return t.push(`ib-${this.position}`),t}},watch:{isOpen(t){t?this.open():this.close()}},components:{IbIconButton:Xe,IbIcon:Le}},cs={class:"ib-toggle-tip-head"},ds={class:"ib-toggle-tip-content"},us={class:"ib-toggle-tip-button-set"};function fs(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon"),c=n.resolveComponent("ib-icon-button");return n.openBlock(),n.createBlock(n.Transition,null,{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(i.classes)},[n.createElementVNode("div",cs,[n.createElementVNode("p",null,n.toDisplayString(e.title),1),n.createVNode(c,{class:"close-button",kind:"ghost",onClick:n.withModifiers(i.close,["prevent"])},{default:n.withCtx(()=>[n.createVNode(d,{name:"close-outline"})]),_:1},8,["onClick"])]),n.createElementVNode("div",ds,[n.renderSlot(t.$slots,"default",{},void 0,!0)]),n.createElementVNode("div",us,[n.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[n.vShow,a.isOpenedState]])]),_:3})}const po=be(ss,[["render",fs],["__scopeId","data-v-16d5a7bd"]]),Ir=27,mo=32,hs=13,go=9,ps=38,ms=37,gs=39,yo=40,ys=8,bs="click",{performance:tr}=window,vs=typeof(tr==null?void 0:tr.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>tr.now():()=>Date.now(),vn=new Map;let _n=!1;const bo=t=>{vn.forEach(({bindTimeStamp:r,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=r))try{e(t)}catch(a){console.error(a)}})},_s=()=>{_n||(document.addEventListener("click",bo,{capture:!0}),_n=!0)},$s=()=>{_n&&(document.removeEventListener("click",bo),_n=!1)},nr={created:(t,{value:r,arg:e="click"})=>{if(typeof r!="function")throw new Error(`[OutsideDirective] Value must be a function; got ${typeof r}!`);if(e!=="click")throw new Error(`[OutsideDirective] Cannot bind ${e} events; only click events are currently supported!`);vn.has(t)||(_n||_s(),vn.set(t,{bindTimeStamp:vs(),callback:r}))},beforeUnmount:t=>{vn.delete(t),vn.size===0&&$s()}},$n={left:"left",right:"right"},rr={bottom:"bottom"},ws={name:"IbDropdown",directives:{Outside:nr},props:{vertical:{type:String,default:rr.bottom},horizontal:{type:String,default:$n.left},triggerClass:{default:""},isOpened:{type:Boolean,default:!1},showCloseIcon:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerType:{type:String,default:bs},destroyOnHide:{type:Boolean,default:!1}},watch:{isOpened(t){t?this.open():this.close()}},mounted(){this.$globalEvents.$on("dropdown:open",t=>{this.$el.contains(t.$el)||this.close()}),document.addEventListener("focus",this.closeOnEventOutside,!0),document.addEventListener("keyup",this.onKeyupDocument)},data(){return{isOpenedState:this.isOpened,timeout:null}},methods:{onKeydown(t){(t.keyCode===hs||t.keyCode===mo)&&(t.preventDefault(),this.toggle()),t.keyCode===yo&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===Ir&&(t.preventDefault(),this.close())},toggle(){this.isOpenedState?this.close():this.open()},open(){this.disabled||(this.isOpenedState=!0,this.$emit("open"),this.$globalEvents.$emit("dropdown:open",this))},close(){if(this.isOpenedState){if(this.disabled)return;this.isOpenedState=!1,this.$emit("close")}},debouncedOpen(){this.timeout=setTimeout(()=>{this.open()},300)},debouncedClose(){this.close(),clearTimeout(this.timeout)},closeOnClickIfRequired(){this.closeOnClick&&this.close()},closeOnEventOutside(t){this.$el.contains(t.target)||this.close()}},computed:{classes(){const t=this.vertical===rr.bottom?" dropdown-bottom":" dropdown-top",r=this.horizontal===$n.left?" dropdown-left":this.horizontal===$n.right?" dropdown-right":" dropdown-center",e=this.isOpenedState?" active":"";return t+r+e},triggerClasses(){let t=this.isOpenedState?"active":"";return this.disabled&&(t+=" dropdown-trigger-disabled"),this.triggerClass+t},hasTrigger(){return!!this.$slots.trigger}},beforeUnmount(){document.removeEventListener("focus",this.closeOnEventOutside,!0),document.removeEventListener("keypress",this.onKeydownDocument)}},ks={class:"ib-dropdown"},Cs={class:"footer-slot"};function Es(t,r,e,o,a,i){const d=n.resolveDirective("outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",ks,[i.hasTrigger&&e.triggerType==="click"?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(["dropdown-trigger",i.triggerClasses]),ref:"dropdown",onKeydown:r[0]||(r[0]=(...c)=>i.onKeydown&&i.onKeydown(...c)),onClick:r[1]||(r[1]=n.withModifiers((...c)=>i.toggle&&i.toggle(...c),["prevent","stop"]))},[n.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):n.createCommentVNode("",!0),i.hasTrigger&&e.triggerType==="hover"?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(["dropdown-trigger",i.triggerClasses]),onMouseenter:r[2]||(r[2]=(...c)=>i.debouncedOpen&&i.debouncedOpen(...c)),onMouseleave:r[3]||(r[3]=(...c)=>i.debouncedClose&&i.debouncedClose(...c))},[n.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):n.createCommentVNode("",!0),!e.destroyOnHide||a.isOpenedState?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:2,ref:"body",class:n.normalizeClass("ib-dropdown-menu "+i.classes)},[n.createElementVNode("div",{class:"dropdown-body",onClick:r[5]||(r[5]=(...c)=>i.closeOnClickIfRequired&&i.closeOnClickIfRequired(...c))},[n.renderSlot(t.$slots,"body",{isOpenedState:a.isOpenedState},void 0,!0),e.showCloseIcon?(n.openBlock(),n.createElementBlock("span",{key:0,class:"close",onClick:r[4]||(r[4]=(...c)=>i.close&&i.close(...c))},[n.renderSlot(t.$slots,"close",{},void 0,!0)])):n.createCommentVNode("",!0)]),n.createElementVNode("div",Cs,[n.renderSlot(t.$slots,"footer",{},void 0,!0)])],2)),[[n.vShow,a.isOpenedState]]):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"before",onClick:r[6]||(r[6]=(...c)=>i.close&&i.close(...c))},[n.renderSlot(t.$slots,"before",{},void 0,!0)])])),[[d,i.close]])}const ir=be(ws,[["render",Es],["__scopeId","data-v-609132e4"]]),Os={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var r,e,o,a,i;if(t.keyCode===yo){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const d=document.activeElement,c=d.querySelector(`.${this.rootClass}`);let p=d.nextElementSibling?d.nextElementSibling:(r=d.parentNode.nextElementSibling)==null?void 0:r.childNodes[0];if(c&&window.getComputedStyle(c).display!=="none"){c.querySelector('a, button, input, [tabindex="0"]').focus();return}if(p){p.focus();return}const s=(o=(e=d.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];s&&s.nodeName!=="#text"&&s.focus()}if(t.keyCode===ps){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const d=document.activeElement,c=d.previousElementSibling?d.previousElementSibling:(a=d.parentNode.previousElementSibling)==null?void 0:a.childNodes[0];if(!c){d.closest(`.${this.rootClass}`).parentNode.focus();return}if(c&&c.nodeName!=="#text"){const p=c==null?void 0:c.querySelector(`.${this.rootClass}`);if(p&&window.getComputedStyle(p).display!=="none"){const s=Array.from(p.childNodes).filter(h=>h.nodeName!=="#text");(i=s[s.length-1])==null||i.childNodes[0].focus();return}c.focus()}}}}};function Ss(t,r,e,o,a,i){return n.openBlock(),n.createElementBlock("ul",{class:n.normalizeClass(a.rootClass),onKeydown:r[0]||(r[0]=(...d)=>i.onKeydown&&i.onKeydown(...d))},[n.renderSlot(t.$slots,"default")],34)}const Br=be(Os,[["render",Ss]]),Ts={props:{vertical:{type:String,default:rr.bottom},horizontal:{type:String,default:$n.left},isOpened:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},class:{type:String,default:""}},methods:{proxyEvents(t){this.$emit(t.event,...t.args)}},data(){return{list:this.$refs.list}},computed:{hasTrigger(){return!!this.$slots.trigger}},components:{IbDropdown:ir,IbList:Br}};function xs(t,r,e,o,a,i){const d=n.resolveComponent("ib-list"),c=n.resolveComponent("ib-dropdown");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["dropdown-list-wrapper",e.class])},[n.createVNode(c,n.mergeProps({horizontal:e.horizontal,vertical:e.vertical,isOpened:e.isOpened,closeOnClick:e.closeOnClick,disabled:e.disabled},t.$attrs,{ref:"dropdown",onAll:i.proxyEvents}),n.createSlots({body:n.withCtx(({isOpened:p})=>[n.createVNode(d,{ref:"list",class:"list"},{default:n.withCtx(()=>[n.renderSlot(t.$slots,"body",{isOpenedState:p})]),_:2},1536)]),_:2},[i.hasTrigger?{name:"trigger",fn:n.withCtx(({isOpened:p})=>[n.renderSlot(t.$slots,"trigger",{isOpened:p})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])],2)}const wn=be(Ts,[["render",xs]]),Ns={props:{checked:{type:Boolean,default:!1},href:{type:String},to:{type:[String,Object]}},computed:{component(){return this.href?"a":this.to?"router-link":"div"},attrs(){const t={class:"ib-dropdown-item"};return this.href&&(t.href=this.href),this.to&&(t.to=this.to),t}}},As={class:"dropdown-item-wrapper"},Ds={class:"dropdown-item-icon"};function Ms(t,r,e,o,a,i){return n.openBlock(),n.createElementBlock("li",As,[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.component),n.mergeProps({class:e.checked?"active":""},i.attrs,{tabindex:"0"}),{default:n.withCtx(()=>[n.createElementVNode("p",null,[n.withDirectives(n.createElementVNode("div",Ds,[n.renderSlot(t.$slots,"icon",{},void 0,!0)],512),[[n.vShow,t.$slots.icon]]),n.renderSlot(t.$slots,"default",{ref:"slot"},void 0,!0)])]),_:3},16,["class"]))])}const Pr=be(Ns,[["render",Ms],["__scopeId","data-v-edcdcbaf"]]),Is={name:"IbSplitButton",props:{id:{type:String,default:()=>dt()},kind:{type:String,default:{common:"common"}.common},verticalPosition:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},saveSelected:{type:Boolean,default:!1}},mounted(){var t;if(this.childList=Array.from(this.$refs.list.children),(t=this.childList)==null||t.forEach((r,e)=>{r.addEventListener("click",()=>{this.childList[this.activeElemIdx].classList.remove("active"),this.saveSelected&&(this.activeElemIdx=e,localStorage.setItem(`split-button-${this.id}`,e))})}),this.saveSelected){const r=localStorage.getItem(`split-button-${this.id}`);r&&(this.activeElemIdx=r)}this.$nextTick(()=>{this.setActiveItem()}),this.listObserver=new MutationObserver(r=>{for(const e of r)if(e.type==="attributes"&&e.attributeName==="disabled"){this.mainButtonAttrs.disabled=e.target.disabled;break}}),this.listObserver.observe(this.$refs.list,{attributes:!0,subtree:!0})},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,isRouterLink:!1,childList:[],listObserver:null}},components:{IbIcon:Le,IbDropdownList:wn},methods:{setActiveItem(){const t=this.$slots.default()[this.activeElemIdx].props;this.mainButtonAttrs=t,this.mainButtonAttrs&&"href"in this.mainButtonAttrs?this.isLink=!0:this.isLink=!1,this.mainButtonAttrs&&"to"in this.mainButtonAttrs?this.isRouterLink=!0:this.isRouterLink=!1,this.childList[this.activeElemIdx].classList.add("active"),this.content=this.childList[this.activeElemIdx].textContent},onClickLink(t){if(this.disabled){t.preventDefault();return}}},computed:{classes(){const t=["split-button"];return t.push(`split-button-${this.kind}`),t}},watch:{activeElemIdx(){this.setActiveItem()}},beforeUnmount(){this.listObserver.disconnect(),this.listObserver=null}},Bs=["disabled"],Ps=["disabled"],Ls=["disabled"],Rs={ref:"list"};function js(t,r,e,o,a,i){const d=n.resolveComponent("router-link"),c=n.resolveComponent("ib-icon"),p=n.resolveComponent("ib-dropdown-list");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(i.classes)},[a.isRouterLink?(n.openBlock(),n.createBlock(d,n.mergeProps({key:0,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled,to:a.mainButtonAttrs.to},a.mainButtonAttrs,{onClick:i.onClickLink}),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(a.content),1)]),_:1},16,["class","disabled","to","onClick"])):a.isLink?(n.openBlock(),n.createElementBlock("a",n.mergeProps({key:1,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled},a.mainButtonAttrs,{onClick:r[0]||(r[0]=(...s)=>i.onClickLink&&i.onClickLink(...s))}),n.toDisplayString(a.content),17,Bs)):(n.openBlock(),n.createElementBlock("button",n.mergeProps({key:2,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),n.toDisplayString(a.content),17,Ps)),n.createVNode(p,{disabled:e.disabled,closeOnClick:!0,vertical:e.verticalPosition,horizontal:e.verticalPosition==="top"?"right":"left"},{trigger:n.withCtx(()=>[n.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[n.createVNode(c,{name:"chevron-down-outline"})],8,Ls)]),body:n.withCtx(()=>[n.createElementVNode("div",Rs,[n.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled","vertical","horizontal"])],2)}const Vs=be(Is,[["render",js]]),Fs={props:{href:{type:String,default:""},to:{type:[String,Object]}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),this.to&&(t.to=this.to),t},component(){return this.href.length?"a":this.to?"router-link":"button"}}};function qs(t,r,e,o,a,i){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.component),n.mergeProps(i.attrs,{class:"ib-dropdown-item"}),{default:n.withCtx(()=>[n.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16)}const Hs=be(Fs,[["render",qs],["__scopeId","data-v-66b7cfd1"]]),Ot={S:"s",M:"m",L:"l",XL:"xl"},zs={name:"IbModal",directives:{Outside:nr},emits:{open:null,close:null},props:{active:{type:Boolean,default:!1},classList:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},size:{type:String,default:Ot.S}},watch:{active(t){this.isActive=t,t?(this.$nextTick(()=>{this.setupFocusTrap()}),document.addEventListener("keydown",this.onKeydown),document.addEventListener("blur",this.setFocusOnModal,!0)):(this.cleanupFocusTrap(),document.removeEventListener("keydown",this.onKeydown),document.removeEventListener("blur",this.setFocusOnModal,!0))}},data(){return{isActive:this.active}},methods:{setupFocusTrap(){var e,o;if(this.focusableItems=((o=(e=this.$refs)==null?void 0:e.modal)==null?void 0:o.querySelectorAll("[tabindex], a, button, input, select, textarea"))||[],this.focusableItems.length===0)return;const t=this.focusableItems[0],r=this.focusableItems[this.focusableItems.length-1];this.firstFocusableHandler=a=>{a.keyCode===go&&a.shiftKey&&(a.preventDefault(),r.focus())},this.lastFocusableHandler=a=>{a.keyCode===go&&!a.shiftKey&&(a.preventDefault(),t.focus())},t.addEventListener("keydown",this.firstFocusableHandler),r.addEventListener("keydown",this.lastFocusableHandler),t.focus()},cleanupFocusTrap(){if(this.focusableItems.length===0)return;const t=this.focusableItems[0],r=this.focusableItems[this.focusableItems.length-1];this.firstFocusableHandler&&(t==null||t.removeEventListener("keydown",this.firstFocusableHandler)),this.lastFocusableHandler&&(r==null||r.removeEventListener("keydown",this.lastFocusableHandler)),this.firstFocusableHandler=null,this.lastFocusableHandler=null,this.focusableItems=[]},showModal(t){t?this.open():this.close()},onTriggerBlur(t){var r,e,o;!((r=this.$refs.modal)!=null&&r.contains(t.relatedTarget))&&this.isActive&&((o=(e=this.$refs.modal)==null?void 0:e.querySelector("a, button, [tabindex]"))==null||o.focus())},open(){this.isActive=!0,document.body.classList.add("modal-open"),this.$emit("open")},close(){var t,r;(r=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||r.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){if(!this.isActive)return;const e=Array.from(document.querySelectorAll(".modal.is-active")).sort((o,a)=>+(getComputedStyle(o).zIndex||0)-+(getComputedStyle(a).zIndex||0)).at(-1);if(e===this.$refs.modal&&!e.contains(t.target)&&!e.contains(t.relatedTarget)){const o=e.querySelector(`a[href], button:not([disabled]),
|
|
23
|
+
textarea, input:not([type="hidden"]),
|
|
24
|
+
select, [tabindex]:not([tabindex="-1"])`);o==null||o.focus()}},clickOutside(t){var r;this.stopPropagation||!((r=this.$refs.trigger)!=null&&r.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===Ir&&!this.stopPropagation&&this.isActive&&this.close()}},computed:{classes(){const t=["modal"];return this.classList.length&&t.push(this.classList),this.isActive&&t.push("is-active"),t},bodyStyles(){const t={};return this.size===Ot.S&&(t.width="380px",t.minHeight="160px",t.maxHeight="680px"),this.size===Ot.M&&(t.width="600px",t.minHeight="260px",t.maxHeight="680px"),this.size===Ot.L&&(t.width="850px",t.minHeight="400px",t.maxHeight="680px"),this.size===Ot.XL&&(t.width="80vw",t.maxWidth="1400px"),t},bodyClassList(){const t=["modal-body"];return this.size===Ot.S&&t.push("modal-body-s"),this.size===Ot.M&&t.push("modal-body-m"),this.size===Ot.L&&t.push("modal-body-l"),this.size===Ot.XL&&t.push("modal-body-xl"),t},hasTrigger(){return!!this.$slots.trigger},hasHeader(){return!!this.$slots.header},hasFooter(){return!!this.$slots.footer}},components:{IbIconButton:Xe,IbIcon:Le},beforeUnmount(){this.isActive&&this.close(),document.removeEventListener("keydown",this.onKeydown),document.removeEventListener("blur",this.setFocusOnModal,!0)}},Us={key:1,class:"modal-header"},Ks={key:2,class:"modal-footer"};function Gs(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon"),c=n.resolveComponent("ib-icon-button"),p=n.resolveDirective("outside");return n.openBlock(),n.createElementBlock(n.Fragment,null,[i.hasTrigger?(n.openBlock(),n.createElementBlock("div",{key:0,class:"modal-trigger",ref:"trigger",onBlurCapture:r[0]||(r[0]=(...s)=>i.onTriggerBlur&&i.onTriggerBlur(...s)),onClick:r[1]||(r[1]=(...s)=>i.open&&i.open(...s))},[n.renderSlot(t.$slots,"trigger",{},void 0,!0)],544)):n.createCommentVNode("",!0),a.isActive?(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:"body"},[n.createElementVNode("div",{class:n.normalizeClass(i.classes),ref:"modal"},[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(i.bodyClassList),style:n.normalizeStyle(i.bodyStyles)},[e.showCloseButton?(n.openBlock(),n.createBlock(c,{key:0,class:"modal-close-icon",kind:"ghost",onClick:i.close},{default:n.withCtx(()=>[n.createVNode(d,{name:"close-outline"})]),_:1},8,["onClick"])):n.createCommentVNode("",!0),i.hasHeader?(n.openBlock(),n.createElementBlock("p",Us,[n.renderSlot(t.$slots,"header",{showModal:i.showModal},void 0,!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["modal-content",{"without-title":!i.hasHeader}])},[n.renderSlot(t.$slots,"body",{showModal:i.showModal},void 0,!0)],2),i.hasFooter?(n.openBlock(),n.createElementBlock("div",Ks,[n.renderSlot(t.$slots,"footer",{showModal:i.showModal},void 0,!0)])):n.createCommentVNode("",!0)],6)),[[p,i.clickOutside]])],2)])):n.createCommentVNode("",!0)],64)}const Ws=be(zs,[["render",Gs],["__scopeId","data-v-1379c0fb"]]);function vo(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const Ys={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return vo(t)},selectTab(t){this.selectedTabByDropdown=t,this.$emit("select-tab",t)},setDisabledTab(){return this.tabs.tabs.every(t=>t.disabled)}},computed:{isActive(){for(let t of this.tabs.tabs)if(t.id===this.selectedTab)return!0;return!1}},components:{IbDropdownList:wn,IbDropdownItem:Pr,IbIcon:Le}},Zs={class:"wrapper-tab-link dropdown-tab"},Js=["tabindex"];function Xs(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon"),c=n.resolveComponent("ib-dropdown-item"),p=n.resolveComponent("ib-dropdown-list");return n.openBlock(),n.createElementBlock("div",Zs,[n.createVNode(p,{disabled:a.isDisabledDropdown,"close-on-click":!0},{trigger:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(["tab-link",{active:a.selectedTabByDropdown===e.selectedTab||i.isActive,disabled:a.isDisabledDropdown}]),tabindex:a.isDisabledDropdown?-1:0},[n.createTextVNode(n.toDisplayString(e.tabs.name)+" ",1),n.createVNode(d,{name:"chevron-down"})],10,Js)]),body:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs.tabs,(s,h)=>(n.openBlock(),n.createBlock(c,{key:h,checked:s.id===e.selectedTab,href:i.createHref(s.id),tabindex:s.disabled?-1:0,class:n.normalizeClass([{disabled:s.disabled},"dropdown-tab-item"]),target:"_self",onClick:f=>i.selectTab(s.id)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(s.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const _o=be(Ys,[["render",Xs]]),Qs={name:"IbTabs",props:{showTitle:{type:Boolean,default:!0},selectedTabId:{type:String,default:""},setHref:{type:Boolean,default:!1}},data(){return{tabs:[],selectedTab:this.selectTabId}},watch:{selectedTabId(t){this.selectTab(t)}},created(){const t=[];this.$slots.default().forEach(r=>r.type===Symbol.for("v-fgt")?t.push(...r.children):t.push(r)),t.forEach(r=>{if(!r.props.name)this.tabs.push(r.props);else{const e=this.tabs.findIndex(o=>o.name===r.props.name);if(e!==-1)this.tabs[e].tabs.push(r.props);else{const o={name:r.props.name,tabs:[r.props]};this.tabs.push(o)}}});for(let r of this.tabs)if(!r.disabled)if(r.tabs){for(let e of r.tabs)if(!e.disabled){this.selectTab(e.id);return}}else{this.selectTab(r.id);return}},methods:{createHref(t){return vo(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:_o,IbIcon:Le},emits:["changeTab"]},ec={class:"tabs"},tc={class:"tabs-list"},nc={key:0,class:"wrapper-tab-link"},rc={class:"tabs-content",ref:"tabHandler"};function ic(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon"),c=n.resolveComponent("ib-tab-dropdown");return n.openBlock(),n.createElementBlock("div",ec,[n.createElementVNode("ul",tc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.tabs,(p,s)=>(n.openBlock(),n.createElementBlock("li",{class:"tab-item",key:s},[p.name?(n.openBlock(),n.createBlock(c,{key:1,"selected-tab":a.selectedTab,tabs:p,onSelectTab:i.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(n.openBlock(),n.createElementBlock("div",nc,[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.setHref?"a":"div"),n.mergeProps(e.setHref?{href:i.createHref(p.id),target:"_self"}:{},{class:["tab-link",{active:a.selectedTab===p.id,disabled:p.disabled}],tabindex:p.disabled?-1:0,onClick:h=>i.selectTab(p.id)}),{default:n.withCtx(()=>[p.icon?(n.openBlock(),n.createBlock(d,{key:0,class:"tab-icon",name:p.icon},null,8,["name"])):n.createCommentVNode("",!0),e.showTitle?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(p.title),1)],64)):n.createCommentVNode("",!0)]),_:2},1040,["class","tabindex","onClick"]))]))]))),128))]),n.createElementVNode("div",rc,[n.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const oc=be(Qs,[["render",ic],["__scopeId","data-v-8512ce8a"]]),ac={name:"IbTab",props:{title:{type:String,required:!0},id:{type:String,required:!0},disabled:{type:Boolean,default:!1},icon:{type:String,required:!1},initialized:{type:Boolean,default:!1},name:{type:String,default:null}},computed:{isTabActive(){return this.$parent.selectedTab===this.id}}};function lc(t,r,e,o,a,i){return n.withDirectives((n.openBlock(),n.createElementBlock("div",null,[n.renderSlot(t.$slots,"default")],512)),[[n.vShow,i.isTabActive]])}const sc=be(ac,[["render",lc]]),cc={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},dc={TYPE_ASC:"asc",TYPE_DESC:"desc"},uc={name:"IbSorting",props:{tooltipTitle:{type:String,default:""},hideSortingButton:{type:Boolean,default:!1},tooltipText:{type:String},tooltipPosition:{type:String},tooltipIconPosition:{type:String},tooltipIconSorting:{type:String},toggleTipTitle:{type:String},title:{type:String,default:""},sort:{type:String,default:null},view:{type:String,required:!0},disable:{type:Boolean,default:!1},tableName:{type:String,required:!0}},mounted(){this.$globalEvents.$on(`sorting:update:${this.tableName}`,t=>{this.$el.contains(t.$el)||(this.currentTypeSort=null)})},data(){return{isOpenToggleTip:!1,sortingTypes:dc,sortingTypesView:cc,currentTypeSort:this.sort}},methods:{clickHandler(){this.currentTypeSort?this.currentTypeSort===this.sortingTypes.TYPE_ASC?this.currentTypeSort=this.sortingTypes.TYPE_DESC:this.currentTypeSort=null:this.currentTypeSort=this.sortingTypes.TYPE_ASC,this.updateTypeSorting()},updateTypeSorting(){this.$globalEvents.$emit(`sorting:update:${this.tableName}`,this),this.$emit("update-sorting",this.currentTypeSort)}},computed:{iconType(){return this.currentTypeSort===this.sortingTypes.TYPE_ASC?"arrow-up":this.currentTypeSort===this.sortingTypes.TYPE_DESC?"arrow-down":this.view!==this.sortingTypesView.GRID_VIEW?"swap-vertical":null},sortingTooltipPosition(){return this.hasToggleTip?"bottomCenter":this.tooltipPosition},sortingTooltipContent(){var t;return this.hasToggleTip?lang("click_to_view_details",(t=this.langComponents)==null?void 0:t.COMPONENT_SYSTEM):this.tooltipContent},tooltipIconText(){var t,r,e;return this.currentTypeSort===this.sortingTypes.TYPE_ASC?lang("sort_descending",(t=this.langComponents)==null?void 0:t.COMPONENT_SELECT):this.currentTypeSort===this.sortingTypes.TYPE_DESC?lang("reset_sorting",(r=this.langComponents)==null?void 0:r.COMPONENT_SELECT):this.view!==this.sortingTypesView.GRID_VIEW?lang("sort_ascending",(e=this.langComponents)==null?void 0:e.COMPONENT_SELECT):""},tooltipContent(){return this.tooltipTitle.length?{title:this.tooltipTitle,text:this.tooltipText}:this.tooltipText},hasToggleTip(){return this.toggleTipTitle&&this.$slots.toggleTipBody&&this.$slots.toggleTipButtons}},directives:{Tooltip:Et},components:{IbIcon:Le,IbIconButton:Xe,IbToggleTip:po}},fc={class:"sorting-wrapper"},hc=["name"],pc=["aria-label"];function mc(t,r,e,o,a,i){var h;const d=n.resolveComponent("ib-toggle-tip"),c=n.resolveComponent("ib-icon-button"),p=n.resolveComponent("ib-icon"),s=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("div",fc,[e.view===a.sortingTypesView.TABLE_VIEW?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[n.withDirectives((n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass(["sorting-label",{"sorting-label-active":a.isOpenToggleTip&&i.hasToggleTip,"has-action":((h=e.tooltipText)==null?void 0:h.length)||i.hasToggleTip}]),type:"button",onClick:r[0]||(r[0]=f=>a.isOpenToggleTip=!a.isOpenToggleTip)},[n.createTextVNode(n.toDisplayString(e.title),1)],2)),[[s,i.sortingTooltipContent,i.sortingTooltipPosition]]),i.hasToggleTip?(n.openBlock(),n.createBlock(d,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:r[1]||(r[1]=f=>a.isOpenToggleTip=!1)},{buttons:n.withCtx(()=>[n.renderSlot(t.$slots,"toggleTipButtons",{},void 0,!0)]),default:n.withCtx(()=>[n.renderSlot(t.$slots,"toggleTipBody",{},void 0,!0)]),_:3},8,["is-open","title"])):n.createCommentVNode("",!0),e.hideSortingButton?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(c,{key:1,kind:"white",size:"s",onClick:i.clickHandler},{default:n.withCtx(()=>[n.createElementVNode("ion-icon",{name:i.iconType},null,8,hc)]),_:1},8,["onClick"])),[[s,i.tooltipIconText,e.tooltipIconPosition]])],2)):n.withDirectives((n.openBlock(),n.createElementBlock("button",{key:1,class:n.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button",onClick:r[2]||(r[2]=(...f)=>i.clickHandler&&i.clickHandler(...f)),"aria-label":e.sort},[n.createTextVNode(n.toDisplayString(e.title)+" ",1),i.iconType?(n.openBlock(),n.createBlock(p,{key:0,name:i.iconType},null,8,["name"])):n.createCommentVNode("",!0)],10,pc)),[[s,e.tooltipText,e.tooltipPosition]])])}const gc=be(uc,[["render",mc],["__scopeId","data-v-c0bd6464"]]);function $o(t){return t.scrollHeight>t.clientHeight}const Lr=new lo,wo=(t,r)=>{if($o(t)){const e=Object.keys(r.modifiers)[0]||r.arg,o={title:r.value.title||"",text:typeof r.value=="object"?r.value.text:r.value};Lr.createTooltip(t,o,e)}},ko=()=>{Lr.destroyTooltip()},Co={mounted(t,r){t.addEventListener("mouseenter",()=>wo(t,r)),t.addEventListener("mouseleave",ko)},beforeUnmount(t,r){Lr.destroyTooltip(),t.removeEventListener("mouseenter",()=>wo(t,r)),t.removeEventListener("mouseleave",ko)}},yc={name:"IbBreadcrumbs",props:{items:{type:Array,default:()=>[]},tooltipTextContext:{type:String}},computed:{last(){return this.items.length?this.items.length-1:null},initContextMenu(){return this.items.length>4},setItemsContextMenu(){return this.items.slice(0,-3)}},components:{IbIcon:Le,IbIconButton:Xe,IbDropdownItem:Pr,IbDropdownList:wn,IbTooltip:bn},directives:{OverflowTooltip:Co}},bc={"aria-label":"breadcrumb"},vc={class:"breadcrumb"},_c=["href"],$c={key:1},wc=["href"];function kc(t,r,e,o,a,i){const d=n.resolveComponent("router-link"),c=n.resolveComponent("ib-icon"),p=n.resolveComponent("ib-tooltip"),s=n.resolveComponent("ib-icon-button"),h=n.resolveComponent("ib-dropdown-item"),f=n.resolveComponent("ib-dropdown-list"),l=n.resolveDirective("overflow-tooltip");return n.openBlock(),n.createElementBlock("nav",bc,[n.createElementVNode("ul",vc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.items,(u,_)=>(n.openBlock(),n.createElementBlock("li",{class:n.normalizeClass(["breadcrumb-item",_===i.last?"active":""]),"aria-current":"page",key:_},[_!==i.last&&_>e.items.length-4||_===0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[u.url?(n.openBlock(),n.createElementBlock("a",{key:0,class:"ib-link",href:u.url},n.toDisplayString(u.title),9,_c)):(n.openBlock(),n.createBlock(d,{key:1,class:"ib-link",to:u.to},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u.title),1)]),_:2},1032,["to"]))],64)):n.createCommentVNode("",!0),_===i.last&&u.title?n.withDirectives((n.openBlock(),n.createElementBlock("p",$c,[n.createTextVNode(n.toDisplayString(u.title),1)])),[[l,u.title,void 0,{bottomCenter:!0}]]):n.createCommentVNode("",!0),i.initContextMenu&&_===e.items.length-4?(n.openBlock(),n.createBlock(f,{key:2,horizontal:"center"},{trigger:n.withCtx(()=>[n.createVNode(s,{kind:"ghost"},{default:n.withCtx(()=>[n.createVNode(c,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(n.openBlock(),n.createBlock(p,{key:0,text:e.tooltipTextContext},null,8,["text"])):n.createCommentVNode("",!0)]),_:1})]),body:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.setItemsContextMenu,(g,$)=>(n.openBlock(),n.createBlock(h,{key:$},{default:n.withCtx(()=>[n.createElementVNode("a",{class:"context-breadcrums",href:g.url},n.toDisplayString(g.title),9,wc)]),_:2},1024))),128))]),_:2},1024)):n.createCommentVNode("",!0),_!==i.last&&_>e.items.length-5||_===0?(n.openBlock(),n.createBlock(c,{key:3,name:"chevron-forward-outline"})):n.createCommentVNode("",!0)],2))),128))])])}const Cc=be(yc,[["render",kc],["__scopeId","data-v-224b4a21"]]),Ec={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:[String,Object],default:""},tooltipPosition:{type:String},disabled:{type:Boolean,default:!1}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.idDisabled=t})},data(){return{idDisabled:this.disabled}},watch:{disabled(t){this.idDisabled=t}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.idDisabled&&t.push("label-disabled"),t}},components:{IbIconButton:Xe,IbIcon:Le},directives:{Tooltip:Et}},Oc=["for"],Sc={key:0,class:"required"};function Tc(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon"),c=n.resolveComponent("ib-icon-button"),p=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(i.classes),for:e.for},[e.required?(n.openBlock(),n.createElementBlock("span",Sc,"* ")):n.createCommentVNode("",!0),n.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length||Object.keys(e.infoText).length?n.withDirectives((n.openBlock(),n.createBlock(c,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:n.withCtx(()=>[n.createVNode(d,{name:"information-circle-outline"})]),_:1})),[[p,e.infoText,e.tooltipPosition]]):n.createCommentVNode("",!0)],10,Oc)}const kn=be(Ec,[["render",Tc],["__scopeId","data-v-d09af73c"]]);function nn(t,r,e){let o=e.initialDeps??[],a;function i(){var d,c,p,s;let h;e.key&&((d=e.debug)!=null&&d.call(e))&&(h=Date.now());const f=t();if(!(f.length!==o.length||f.some((_,g)=>o[g]!==_)))return a;o=f;let u;if(e.key&&((c=e.debug)!=null&&c.call(e))&&(u=Date.now()),a=r(...f),e.key&&((p=e.debug)!=null&&p.call(e))){const _=Math.round((Date.now()-h)*100)/100,g=Math.round((Date.now()-u)*100)/100,$=g/16,v=(b,y)=>{for(b=String(b);b.length<y;)b=" "+b;return b};console.info(`%c⏱ ${v(g,5)} /${v(_,5)} ms`,`
|
|
25
|
+
font-size: .6rem;
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
color: hsl(${Math.max(0,Math.min(120-120*$,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(s=e==null?void 0:e.onChange)==null||s.call(e,a),a}return i.updateDeps=d=>{o=d},i}function Eo(t,r){if(t===void 0)throw new Error("Unexpected undefined");return t}const xc=(t,r)=>Math.abs(t-r)<1.01,Nc=(t,r,e)=>{let o;return function(...a){t.clearTimeout(o),o=t.setTimeout(()=>r.apply(this,a),e)}},Oo=t=>{const{offsetWidth:r,offsetHeight:e}=t;return{width:r,height:e}},Ac=t=>t,Dc=t=>{const r=Math.max(t.startIndex-t.overscan,0),e=Math.min(t.endIndex+t.overscan,t.count-1),o=[];for(let a=r;a<=e;a++)o.push(a);return o},Mc=(t,r)=>{const e=t.scrollElement;if(!e)return;const o=t.targetWindow;if(!o)return;const a=d=>{const{width:c,height:p}=d;r({width:Math.round(c),height:Math.round(p)})};if(a(Oo(e)),!o.ResizeObserver)return()=>{};const i=new o.ResizeObserver(d=>{const c=()=>{const p=d[0];if(p!=null&&p.borderBoxSize){const s=p.borderBoxSize[0];if(s){a({width:s.inlineSize,height:s.blockSize});return}}a(Oo(e))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return i.observe(e,{box:"border-box"}),()=>{i.unobserve(e)}},So={passive:!0},To=typeof window>"u"?!0:"onscrollend"in window,Ic=(t,r)=>{const e=t.scrollElement;if(!e)return;const o=t.targetWindow;if(!o)return;let a=0;const i=t.options.useScrollendEvent&&To?()=>{}:Nc(o,()=>{r(a,!1)},t.options.isScrollingResetDelay),d=h=>()=>{const{horizontal:f,isRtl:l}=t.options;a=f?e.scrollLeft*(l&&-1||1):e.scrollTop,i(),r(a,h)},c=d(!0),p=d(!1);p(),e.addEventListener("scroll",c,So);const s=t.options.useScrollendEvent&&To;return s&&e.addEventListener("scrollend",p,So),()=>{e.removeEventListener("scroll",c),s&&e.removeEventListener("scrollend",p)}},Bc=(t,r,e)=>{if(r!=null&&r.borderBoxSize){const o=r.borderBoxSize[0];if(o)return Math.round(o[e.options.horizontal?"inlineSize":"blockSize"])}return t[e.options.horizontal?"offsetWidth":"offsetHeight"]},Pc=(t,{adjustments:r=0,behavior:e},o)=>{var a,i;const d=t+r;(i=(a=o.scrollElement)==null?void 0:a.scrollTo)==null||i.call(a,{[o.options.horizontal?"left":"top"]:d,behavior:e})};class Lc{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const o=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(a=>{a.forEach(i=>{const d=()=>{this._measureElement(i.target,i)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()})}));return{disconnect:()=>{var a;(a=o())==null||a.disconnect(),e=null},observe:a=>{var i;return(i=o())==null?void 0:i.observe(a,{box:"border-box"})},unobserve:a=>{var i;return(i=o())==null?void 0:i.unobserve(a)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([o,a])=>{typeof a>"u"&&delete e[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ac,rangeExtractor:Dc,onChange:()=>{},measureElement:Bc,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var o,a;(a=(o=this.options).onChange)==null||a.call(o,this,e)},this.maybeNotify=nn(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,o)=>{const a=new Map,i=new Map;for(let d=o-1;d>=0;d--){const c=e[d];if(a.has(c.lane))continue;const p=i.get(c.lane);if(p==null||c.end>p.end?i.set(c.lane,c):c.end<p.end&&a.set(c.lane,!0),a.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((d,c)=>d.end===c.end?d.index-c.index:d.end-c.end)[0]:void 0},this.getMeasurementOptions=nn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,o,a,i,d)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:o,scrollMargin:a,getItemKey:i,enabled:d}),{key:!1}),this.getMeasurements=nn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:o,scrollMargin:a,getItemKey:i,enabled:d},c)=>{if(!d)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const p=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const s=this.measurementsCache.slice(0,p);for(let h=p;h<e;h++){const f=i(h),l=this.options.lanes===1?s[h-1]:this.getFurthestMeasurement(s,h),u=l?l.end+this.options.gap:o+a,_=c.get(f),g=typeof _=="number"?_:this.options.estimateSize(h),$=u+g,v=l?l.lane:h%this.options.lanes;s[h]={index:h,start:u,size:g,end:$,key:f,lane:v}}return this.measurementsCache=s,s},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=nn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,o,a,i)=>this.range=e.length>0&&o>0?Rc({measurements:e,outerSize:o,scrollOffset:a,lanes:i}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=nn(()=>{let e=null,o=null;const a=this.calculateRange();return a&&(e=a.startIndex,o=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,o]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,o]},(e,o,a,i,d)=>i===null||d===null?[]:e({startIndex:i,endIndex:d,overscan:o,count:a}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=e=>{const o=this.options.indexAttribute,a=e.getAttribute(o);return a?parseInt(a,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(e,o)=>{const a=this.indexFromElement(e),i=this.measurementsCache[a];if(!i)return;const d=i.key,c=this.elementsCache.get(d);c!==e&&(c&&this.observer.unobserve(c),this.observer.observe(e),this.elementsCache.set(d,e)),e.isConnected&&this.resizeItem(a,this.options.measureElement(e,o,this))},this.resizeItem=(e,o)=>{const a=this.measurementsCache[e];if(!a)return;const i=this.itemSizeCache.get(a.key)??a.size,d=o-i;d!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,d,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",d),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=d,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,o)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((o,a)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(a))});return}this._measureElement(e,void 0)},this.getVirtualItems=nn(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,o)=>{const a=[];for(let i=0,d=e.length;i<d;i++){const c=e[i],p=o[c];a.push(p)}return a},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const o=this.getMeasurements();if(o.length!==0)return Eo(o[xo(0,o.length-1,a=>Eo(o[a]).start,e)])},this.getOffsetForAlignment=(e,o,a=0)=>{const i=this.getSize(),d=this.getScrollOffset();o==="auto"&&(o=e>=d+i?"end":"start"),o==="center"?e+=(a-i)/2:o==="end"&&(e-=i);const c=this.getTotalSize()+this.options.scrollMargin-i;return Math.max(Math.min(c,e),0)},this.getOffsetForIndex=(e,o="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const a=this.measurementsCache[e];if(!a)return;const i=this.getSize(),d=this.getScrollOffset();if(o==="auto")if(a.end>=d+i-this.options.scrollPaddingEnd)o="end";else if(a.start<=d+this.options.scrollPaddingStart)o="start";else return[d,o];const c=o==="end"?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,o,a.size),o]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:o="start",behavior:a}={})=>{a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,o),{adjustments:void 0,behavior:a})},this.scrollToIndex=(e,{align:o="auto",behavior:a}={})=>{a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let i=0;const d=10,c=s=>{if(!this.targetWindow)return;const h=this.getOffsetForIndex(e,s);if(!h){console.warn("Failed to get offset for index:",e);return}const[f,l]=h;this._scrollToOffset(f,{adjustments:void 0,behavior:a}),this.targetWindow.requestAnimationFrame(()=>{const u=this.getScrollOffset(),_=this.getOffsetForIndex(e,l);if(!_){console.warn("Failed to get offset for index:",e);return}xc(_[0],u)||p(l)})},p=s=>{this.targetWindow&&(i++,i<d?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",i,d),this.targetWindow.requestAnimationFrame(()=>c(s))):console.warn(`Failed to scroll to index ${e} after ${d} attempts.`))};c(o)},this.scrollBy=(e,{behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var e;const o=this.getMeasurements();let a;if(o.length===0)a=this.options.paddingStart;else if(this.options.lanes===1)a=((e=o[o.length-1])==null?void 0:e.end)??0;else{const i=Array(this.options.lanes).fill(null);let d=o.length-1;for(;d>=0&&i.some(c=>c===null);){const c=o[d];i[c.lane]===null&&(i[c.lane]=c.end),d--}a=Math.max(...i.filter(c=>c!==null))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:o,behavior:a})=>{this.options.scrollToFn(e,{behavior:a,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}}const xo=(t,r,e,o)=>{for(;t<=r;){const a=(t+r)/2|0,i=e(a);if(i<o)t=a+1;else if(i>o)r=a-1;else return a}return t>0?t-1:0};function Rc({measurements:t,outerSize:r,scrollOffset:e,lanes:o}){const a=t.length-1,i=p=>t[p].start;if(t.length<=o)return{startIndex:0,endIndex:a};let d=xo(0,a,i,e),c=d;if(o===1)for(;c<a&&t[c].end<e+r;)c++;else if(o>1){const p=Array(o).fill(0);for(;c<a&&p.some(h=>h<e+r);){const h=t[c];p[h.lane]=h.end,c++}const s=Array(o).fill(e+r);for(;d>=0&&s.some(h=>h>=e);){const h=t[d];s[h.lane]=h.start,d--}d=Math.max(0,d-d%o),c=Math.min(a,c+(o-1-c%o))}return{startIndex:d,endIndex:c}}function jc(t){const r=new Lc(n.unref(t)),e=n.shallowRef(r),o=r._didMount();return n.watch(()=>n.unref(t).getScrollElement(),a=>{a&&r._willUpdate()},{immediate:!0}),n.watch(()=>n.unref(t),a=>{r.setOptions({...a,onChange:(i,d)=>{var c;n.triggerRef(e),(c=a.onChange)==null||c.call(a,i,d)}}),r._willUpdate(),n.triggerRef(e)},{immediate:!0}),n.onScopeDispose(o),e}function Vc(t){return jc(n.computed(()=>({observeElementRect:Mc,observeElementOffset:Ic,scrollToFn:Pc,...n.unref(t)})))}const Rr={text:"text",password:"password",email:"email",number:"number"},Fc={name:"IbInput",props:{type:{type:String,default:Rr.text,validator:t=>Object.keys(Rr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return dt()}},debounce:{type:[Number,String]},showIcon:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0},clearButtonMessage:{type:String,default:""},settingsButtonMessage:{type:String,default:""},showPasswordMessage:{type:String,default:""},hidePasswordMessage:{type:String,default:""},value:{type:[String,Number],default:""},modelValue:{type:[String,Number]},settingsVerticalPosition:{type:String,default:rr.bottom},settingsHorizontalPosition:{type:String,default:$n.right},readonly:{type:Boolean,default:!1},autocomplete:{type:String},isSuccess:{type:Boolean,default:!1},hideNumberActions:{type:Boolean,default:!1},decrementButtonMessage:{type:String,default:"Decrement"},incrementButtonMessage:{type:String,default:"Increment"},step:{type:Number,default:1},min:{type:Number,default:0},max:{type:Number,default:1/0},toFixed:{type:Number,default:0}},data(){return{actualValue:this.modelValue||this.value,showPassword:!1}},mounted(){setTimeout(()=>{this.$globalEvents.$emit(`label:disabled:${this.id}`,this.disabled)},10)},methods:{toggleShowPassword(){this.showPassword=!this.showPassword},clearInput(){this.actualValue="",this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("clear")},onBlur(){this.$emit("blur",this.actualValue)},onFocus(){this.$emit("focus",this.actualValue)},onInput(){this.debounce?this.delayedInput(this.actualValue):(this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue))},decrement(){this.actualValue>this.min&&(this.actualValue=(+this.actualValue-+this.step).toFixed(this.toFixed)),this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("blur",this.actualValue)},increment(){this.actualValue<this.max&&(this.actualValue=(+this.actualValue+ +this.step).toFixed(this.toFixed)),this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("blur",this.actualValue)},delayedInput(t){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.$emit("update:modelValue",t),this.$emit("input",t)},this.debounce)},focus(){this.$refs.field.focus()}},computed:{hasSettings(){return!!this.$slots.settings},hasValue(){var t;return(t=this.actualValue)==null?void 0:t.toString().length},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Nr({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===Rr.password?this.showPassword?"text":"password":this.type,t},hasErrorState(){return this.error||this.errorMessage.length}},watch:{value(t){this.actualValue=t},modelValue(t){this.actualValue=t},disabled(t){this.$globalEvents.$emit(`label:disabled:${this.id}`,t)}},emits:["input","blur","focus","clear","update:modelValue","label:disabled:undefined"],components:{IbAlert:Rt,IbIconButton:Xe,IbIcon:Le,IbDropdown:ir},directives:{Tooltip:Et},inheritAttrs:!1},qc=["aria-invalid","readonly","disabled","id","autocomplete","min","max","step"],Hc={key:3,class:"number-button-group"},zc={class:"divider"},Uc={class:"settings-wrapper"};function Kc(t,r,e,o,a,i){const d=n.resolveComponent("ib-alert"),c=n.resolveComponent("ib-icon"),p=n.resolveComponent("ib-icon-button"),s=n.resolveComponent("ib-dropdown"),h=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("div",null,[e.errorMessage?(n.openBlock(),n.createBlock(d,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1})):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["ib-input-wrapper",{"has-settings":i.hasSettings,success:e.isSuccess,"numbers-type":e.type==="number"&&!e.hideNumberActions}])},[e.showIcon?(n.openBlock(),n.createBlock(c,{key:0,class:"icon-search",name:"search-outline"})):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("input",n.mergeProps(i.attrs,{"onUpdate:modelValue":r[0]||(r[0]=f=>a.actualValue=f),ref:"field","aria-invalid":!!i.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,autocomplete:e.autocomplete,class:i.classes,min:e.min,max:e.max,step:e.step,onInput:r[1]||(r[1]=f=>i.onInput(f)),onBlur:r[2]||(r[2]=f=>i.onBlur(f)),onFocus:r[3]||(r[3]=f=>i.onFocus(f))}),null,16,qc),[[n.vModelDynamic,a.actualValue,void 0,{trim:!0}]]),e.type!=="password"&&e.showClearButton?n.withDirectives((n.openBlock(),n.createBlock(p,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:i.clearInput,onKeypress:n.withKeys(i.clearInput,["enter"])},{default:n.withCtx(()=>[n.createVNode(c,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[n.vShow,i.hasValue]]):n.createCommentVNode("",!0),e.isSuccess?(n.openBlock(),n.createBlock(c,{key:2,class:"succes-checkmark",name:"checkmark-circle"})):n.createCommentVNode("",!0),e.type==="number"&&!e.hideNumberActions?(n.openBlock(),n.createElementBlock("div",Hc,[n.withDirectives(n.createElementVNode("div",zc,null,512),[[n.vShow,i.hasValue]]),n.withDirectives((n.openBlock(),n.createBlock(p,{kind:"ghost",class:"button-decrement",disabled:e.readonly||e.disabled,"prevent-default":"",type:"button","aria-label":"Decrement value",onBlur:i.onBlur,onClick:i.decrement,onKeypress:n.withKeys(i.decrement,["enter"])},{default:n.withCtx(()=>[n.createVNode(c,{name:"remove-outline"})]),_:1},8,["disabled","onBlur","onClick","onKeypress"])),[[h,e.decrementButtonMessage]]),n.withDirectives((n.openBlock(),n.createBlock(p,{kind:"ghost",class:"button-increment",disabled:e.readonly||e.disabled,"prevent-default":"",type:"button","aria-label":"Increment value",onBlur:i.onBlur,onClick:i.increment,onKeypress:n.withKeys(i.increment,["enter"])},{default:n.withCtx(()=>[n.createVNode(c,{name:"add-outline"})]),_:1},8,["disabled","onBlur","onClick","onKeypress"])),[[h,e.incrementButtonMessage]])])):n.createCommentVNode("",!0),e.type==="password"?n.withDirectives((n.openBlock(),n.createBlock(p,{key:4,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:n.withModifiers(i.toggleShowPassword,["prevent"])},{default:n.withCtx(()=>[n.createVNode(c,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[n.vShow,i.hasValue]]):n.createCommentVNode("",!0),i.hasSettings?(n.openBlock(),n.createBlock(s,{key:5,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:n.withCtx(()=>[n.createVNode(p,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:n.withCtx(()=>[n.createVNode(c,{name:"options"})]),_:1},8,["help-text"])]),body:n.withCtx(()=>[n.createElementVNode("div",Uc,[n.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):n.createCommentVNode("",!0)],2)])}const jr=be(Fc,[["render",Kc],["__scopeId","data-v-c59dbdf5"]]),Gc={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return dt()}},value:{type:[String,Number]},modelValue:{type:[Boolean,String]},isChecked:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},watch:{isChecked(t){this.checked=t},modelValue(t){this.$emit("update:modelValue",this.modelValue),this.checked=t==="0"?!1:!!t}},data(){return{checked:this.modelValue?this.modelValue==="0"?!1:!!this.modelValue:this.isChecked}},methods:{onChange(t){this.disabled||this.readonly||(this.checked=!this.checked,this.$emit("update:modelValue",this.checked),this.$emit("input",this.checked))}},computed:{classes(){return{"ib-checkbox":!0,"ib-has-error":this.error,"ib-checkbox-filled":this.checked,"ib-checkbox-disabled":this.disabled,"ib-checkbox-readonly":this.readonly,"ib-checkbox-indeterminate":this.indeterminate}},indeterminate(){return this.isChecked===null},attrs(){const t={...Nr({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},Wc=["for","tabindex","aria-checked"],Yc=["name","id","value","disabled","required"],Zc=["name","disabled","required"],Jc={class:"ib-checkbox-body"},Xc={key:0,class:"required"},Qc={class:"ib-checkbox-input"},ed={key:1,class:"ib-checkbox-label"},td={key:0,class:"required"};function nd(t,r,e,o,a,i){var c;const d=n.resolveComponent("ib-icon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ib-checkbox-wrapper",this.$attrs.class])},[n.createElementVNode("label",n.mergeProps(i.attrs,{role:"checkbox",for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,"aria-checked":!!a.checked,onClick:r[2]||(r[2]=n.withModifiers((...p)=>i.onChange&&i.onChange(...p),["prevent","stop"])),onKeypress:r[3]||(r[3]=n.withModifiers((...p)=>i.onChange&&i.onChange(...p),["prevent"]))}),[n.withDirectives(n.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value??1,disabled:e.disabled,required:e.required,"onUpdate:modelValue":r[0]||(r[0]=p=>a.checked=p),onClick:r[1]||(r[1]=(...p)=>i.onChange&&i.onChange(...p))},null,8,Yc),[[n.vModelCheckbox,a.checked]]),!e.value&&!a.checked?(n.openBlock(),n.createElementBlock("input",{key:0,value:"0",type:"hidden",name:e.name,disabled:e.disabled,required:e.required},null,8,Zc)):n.createCommentVNode("",!0),n.createElementVNode("div",Jc,[e.labelPosition==="left"&&e.label.length?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(n.openBlock(),n.createElementBlock("span",Xc,"*")):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(e.label),1)],2)):n.createCommentVNode("",!0),n.createElementVNode("span",Qc,[n.withDirectives(n.createVNode(d,{name:"checkmark-sharp"},null,512),[[n.vShow,a.checked&&!i.indeterminate]]),n.withDirectives(n.createVNode(d,{class:n.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[n.vShow,i.indeterminate]])]),e.labelPosition==="right"&&((c=e.label)!=null&&c.length)?(n.openBlock(),n.createElementBlock("span",ed,[e.required?(n.openBlock(),n.createElementBlock("span",td,"*")):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(e.label),1)])):n.createCommentVNode("",!0)])],16,Wc)],2)}const Vr=be(Gc,[["render",nd],["__scopeId","data-v-50848111"]]),rd={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>dt()},disabled:{type:Boolean,default:!1},name:{type:String,default:"active"},label:{type:String,default:""},error:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},helpMessage:{type:String,default:""},helpMessageOff:{type:String,default:""}},watch:{isChecked(t){this.checked=t}},data(){return{checked:this.isChecked}},methods:{onChange(){this.disabled||(this.checked=!this.checked,this.$emit("input",this.checked))}},computed:{classes(){return{"ib-toggle-container":!0,"has-error":this.error,"toggle-on":this.checked,"toggle-disabled":this.disabled,"label-position-left":this.labelPosition==="left"}}},components:{IbIcon:Le,IbTooltip:bn}},id=["aria-checked","tabindex"],od={class:"toggle-wrapper",ref:"wrapper"},ad={class:"toggle",ref:"toggle"},ld=["name","checked","id","disabled"],sd=n.createElementVNode("span",{class:"toggle-slider round"},null,-1),cd={key:0,class:"toggle-label"};function dd(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon"),c=n.resolveComponent("ib-tooltip");return n.openBlock(),n.createElementBlock("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:n.normalizeClass(i.classes),onKeypress:[r[2]||(r[2]=n.withKeys(n.withModifiers((...p)=>i.onChange&&i.onChange(...p),["prevent"]),["space"])),r[3]||(r[3]=n.withKeys(n.withModifiers((...p)=>i.onChange&&i.onChange(...p),["prevent"]),["enter"]))]},[n.createElementVNode("div",od,[n.createElementVNode("div",ad,[n.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:a.checked,id:e.id,disabled:e.disabled,onClick:r[0]||(r[0]=(...p)=>i.onChange&&i.onChange(...p)),onInput:r[1]||(r[1]=n.withModifiers(()=>{},["stop"]))},null,40,ld),sd,n.createVNode(d,{class:"checked-icon",name:"checkmark"}),n.createVNode(d,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(n.openBlock(),n.createElementBlock("span",cd,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0),e.helpMessage.length?(n.openBlock(),n.createBlock(c,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):n.createCommentVNode("",!0)],42,id)}const No=be(rd,[["render",dd]]),ud={name:"select-option",props:{option:{type:Object},name:String,parentAutoCheck:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},uid:{type:String,default:""},onlyEndNodes:{type:Boolean,default:!1},htmlTitle:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},isBookmarkable:{type:Boolean,default:!1},isBookmarked:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1},alphabeticStyle:{type:Boolean,default:!1}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent(),this.option.showTooltipByDefault&&(this.showTooltip=!0)},updated(){this.$nextTick(()=>{this.option.showTooltipByDefault?this.showTooltip=!0:$o(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1,generateUID:dt}},methods:{onKeydown(t){t.keyCode===mo&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===gs&&(this.option.isChildrenVisible=!0),t.keyCode===ms&&(this.option.isChildrenVisible=!1))},onChange(){var t,r;!this.isMultiple&&!this.isChecked(this.option)&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((r=this.$refs.component)==null||r.onChange())},toggle(t,r=!0){this.check(this.option,t,!0,r)},check(t,r,e,o){if(!this.isMultiple&&this.hasVisibleChildren){this.toggleChildrenVisibility();return}this.$emit("check",t,r,e),o&&t.children&&t.children.forEach(a=>{this.check(a,r,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,r,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,r,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,r=t>=this.option.children.length;(!this.option.checked&&r||this.option.checked&&!r)&&this.parentAutoCheck&&this.toggle(!this.option.checked,!1)},calculateChildren(t,r,e=!1){let o=0;return t.children&&t.children.forEach(a=>{(!r||r(a))&&o++,e&&(o+=this.calculateChildren(a,r,e))}),o},isChecked(t){if(this.hasChildren){const r=this.childrenSelectedCount;if(r>0&&this.countOfAllChildren>r||!r&&this.option.checked&&!this.parentAutoCheck||this.countOfAllChildren==r&&!this.option.checked&&!this.parentAutoCheck)return null}return t.checked?!0:t.isIndeterminate?null:!1}},computed:{component(){return this.isMultiple&&this.isToggle?No:Vr},hasChildren(){return!!(this.option.children&&this.option.children.length)},hasVisibleChildren(){return this.calculateChildren(this.option,t=>t.visible)},iconName(){return this.option.isChildrenVisible?"chevron-down":"chevron-forward"},id(){return this.uid+"_"+this.option.id},actualName(){return this.onlyEndNodes&&this.option.children&&this.option.children.length?"":this.name},childrenSelectedCount(){return this.calculateChildren(this.option,t=>t.checked,!0)},countOfAllChildren(){return this.calculateChildren(this.option,()=>!0,!0)}},components:{IbIcon:Le,List:Br,IbIconButton:Xe},directives:{Tooltip:Et}},fd=["aria-selected","aria-label","id"],hd={key:0,class:"bookmarkable-option-content"},pd={class:"option-label"},md={key:1,class:"option-label"},gd=["innerHTML"],yd=["innerHTML"],bd={key:2,class:"option-label"};function vd(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon"),c=n.resolveComponent("ib-icon-button"),p=n.resolveComponent("select-option"),s=n.resolveComponent("list"),h=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("li",null,[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["tree-select-option",{"tree-select-option-checked":e.option.checked,"tree-select-option-indeterminate":i.isChecked(e.option)===null,"tree-select-option-margin":i.hasVisibleChildren,active:e.option.isChildrenVisible,"is-multiple":e.isMultiple,"is-not-multiple":!e.isMultiple,"has-icon":e.option.icon,"tree-select-option-toggle":this.isToggle&&this.isMultiple,"alphabetic-option":e.alphabeticStyle}]),tabindex:"0",role:"option","aria-selected":i.isChecked(e.option),"aria-label":e.option.title,id:"option-"+i.id,onKeydown:r[3]||(r[3]=n.withModifiers((...f)=>i.onKeydown&&i.onKeydown(...f),["self"])),onFocus:r[4]||(r[4]=f=>t.$emit("onFocus",`option-${i.id}`))},[n.withDirectives(n.createVNode(c,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:n.withModifiers(i.toggleChildrenVisibility,["prevent"])},{default:n.withCtx(()=>[n.createVNode(d,{name:i.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[n.vShow,i.hasVisibleChildren]]),n.createElementVNode("div",{onClick:r[1]||(r[1]=n.withModifiers((...f)=>i.onChange&&i.onChange(...f),["prevent"])),class:n.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":i.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:i.actualName,value:e.option.id,id:"input"+i.id+a.generateUID(),"is-checked":i.isChecked(e.option),disabled:e.option.isDisabled,readonly:e.option.readonly,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:i.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","readonly","onInput"])),[[n.vShow,e.showInput]]),e.isBookmarkable?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[i.hasChildren?(n.openBlock(),n.createElementBlock("span",md,n.toDisplayString(e.option.title),1)):(n.openBlock(),n.createElementBlock("div",hd,[n.createElementVNode("span",pd,n.toDisplayString(e.option.title),1),n.withDirectives((n.openBlock(),n.createBlock(c,{onClick:r[0]||(r[0]=n.withModifiers(f=>t.$emit("toggle-bookmark",e.option),["stop","prevent"])),kind:"ghost"},{default:n.withCtx(()=>[n.createVNode(d,{name:e.isBookmarked?"star":"star-outline"},null,8,["name"])]),_:1})),[[h,t.lang(e.isBookmarked?"unpin":"pin_to_top","select")]])]))],2)):e.htmlTitle?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[i.hasChildren?(n.openBlock(),n.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,yd)):(n.openBlock(),n.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,gd))],64)):(n.openBlock(),n.createElementBlock("span",bd,[e.option.icon?(n.openBlock(),n.createBlock(d,{key:0,name:e.option.icon},null,8,["name"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(e.option.title),1)]))],2),i.hasChildren?n.withDirectives((n.openBlock(),n.createBlock(s,{key:0},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.option.children,f=>n.withDirectives((n.openBlock(),n.createBlock(p,{key:f.value,option:f,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:i.checkChildren,onToggleBookmark:r[2]||(r[2]=l=>t.$emit("toggle-bookmark",l)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[n.vShow,f.visible]])),128))]),_:1},512)),[[n.vShow,i.hasVisibleChildren&&e.option.isChildrenVisible]]):n.createCommentVNode("",!0)],42,fd)),[[h,a.showTooltip?e.option.isDisabled?e.option.disableTooltip:e.option.title:""]])])}const _d=be(ud,[["render",vd]]);var jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var or={exports:{}};/*!***************************************************
|
|
28
|
+
* mark.js v8.11.1
|
|
29
|
+
* https://markjs.io/
|
|
30
|
+
* Copyright (c) 2014–2018, Julian Kühnel
|
|
31
|
+
* Released under the MIT license https://git.io/vwTVl
|
|
32
|
+
*****************************************************/var $d=or.exports,Ao;function wd(){return Ao||(Ao=1,(function(t,r){(function(e,o){t.exports=o()})($d,function(){class e{constructor(i,d=!0,c=[],p=5e3){this.ctx=i,this.iframes=d,this.exclude=c,this.iframesTimeout=p}static matches(i,d){const c=typeof d=="string"?[d]:d,p=i.matches||i.matchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector;if(p){let s=!1;return c.every(h=>!p.call(i,h)||(s=!0,!1)),s}return!1}getContexts(){let i=[];return(this.ctx!==void 0&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx=="string"?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(d=>{const c=i.filter(p=>p.contains(d)).length>0;i.indexOf(d)!==-1||c||i.push(d)}),i}getIframeContents(i,d,c=(()=>{})){let p;try{const s=i.contentWindow;if(p=s.document,!s||!p)throw new Error("iframe inaccessible")}catch{c()}p&&d(p)}isIframeBlank(i){const d="about:blank",c=i.getAttribute("src").trim();return i.contentWindow.location.href===d&&c!==d&&c}observeIframeLoad(i,d,c){let p=!1,s=null;const h=()=>{if(!p){p=!0,clearTimeout(s);try{this.isIframeBlank(i)||(i.removeEventListener("load",h),this.getIframeContents(i,d,c))}catch{c()}}};i.addEventListener("load",h),s=setTimeout(h,this.iframesTimeout)}onIframeReady(i,d,c){try{i.contentWindow.document.readyState==="complete"?this.isIframeBlank(i)?this.observeIframeLoad(i,d,c):this.getIframeContents(i,d,c):this.observeIframeLoad(i,d,c)}catch{c()}}waitForIframes(i,d){let c=0;this.forEachIframe(i,()=>!0,p=>{c++,this.waitForIframes(p.querySelector("html"),()=>{--c||d()})},p=>{p||d()})}forEachIframe(i,d,c,p=(()=>{})){let s=i.querySelectorAll("iframe"),h=s.length,f=0;s=Array.prototype.slice.call(s);const l=()=>{--h<=0&&p(f)};h||l(),s.forEach(u=>{e.matches(u,this.exclude)?l():this.onIframeReady(u,_=>{d(u)&&(f++,c(_)),l()},l)})}createIterator(i,d,c){return document.createNodeIterator(i,d,c,!1)}createInstanceOnIframe(i){return new e(i.querySelector("html"),this.iframes)}compareNodeIframe(i,d,c){const p=i.compareDocumentPosition(c),s=Node.DOCUMENT_POSITION_PRECEDING;return!!(p&s&&(d===null||d.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING))}getIteratorNode(i){const d=i.previousNode();return{prevNode:d,node:(d===null||i.nextNode())&&i.nextNode()}}checkIframeFilter(i,d,c,p){let s=!1,h=!1;return p.forEach((f,l)=>{f.val===c&&(s=l,h=f.handled)}),this.compareNodeIframe(i,d,c)?(s!==!1||h?s===!1||h||(p[s].handled=!0):p.push({val:c,handled:!0}),!0):(s===!1&&p.push({val:c,handled:!1}),!1)}handleOpenIframes(i,d,c,p){i.forEach(s=>{s.handled||this.getIframeContents(s.val,h=>{this.createInstanceOnIframe(h).forEachNode(d,c,p)})})}iterateThroughNodes(i,d,c,p,s){const h=this.createIterator(d,i,p);let f,l,u=[],_=[],g=()=>({prevNode:l,node:f}=this.getIteratorNode(h),f);for(;g();)this.iframes&&this.forEachIframe(d,$=>this.checkIframeFilter(f,l,$,u),$=>{this.createInstanceOnIframe($).forEachNode(i,v=>_.push(v),p)}),_.push(f);_.forEach($=>{c($)}),this.iframes&&this.handleOpenIframes(u,i,c,p),s()}forEachNode(i,d,c,p=(()=>{})){const s=this.getContexts();let h=s.length;h||p(),s.forEach(f=>{const l=()=>{this.iterateThroughNodes(i,f,d,c,()=>{--h<=0&&p()})};this.iframes?this.waitForIframes(f,l):l()})}}class o{constructor(i){this.ctx=i,this.ie=!1;const d=window.navigator.userAgent;(d.indexOf("MSIE")>-1||d.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(i){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},i)}get opt(){return this._opt}get iterator(){return new e(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(i,d="debug"){const c=this.opt.log;this.opt.debug&&typeof c=="object"&&typeof c[d]=="function"&&c[d](`mark.js: ${i}`)}escapeStr(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(i){return this.opt.wildcards!=="disabled"&&(i=this.setupWildcardsRegExp(i)),i=this.escapeStr(i),Object.keys(this.opt.synonyms).length&&(i=this.createSynonymsRegExp(i)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(i=this.setupIgnoreJoinersRegExp(i)),this.opt.diacritics&&(i=this.createDiacriticsRegExp(i)),i=this.createMergedBlanksRegExp(i),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(i=this.createJoinersRegExp(i)),this.opt.wildcards!=="disabled"&&(i=this.createWildcardsRegExp(i)),i=this.createAccuracyRegExp(i)}createSynonymsRegExp(i){const d=this.opt.synonyms,c=this.opt.caseSensitive?"":"i",p=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let s in d)if(d.hasOwnProperty(s)){const h=d[s],f=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h);f!==""&&l!==""&&(i=i.replace(new RegExp(`(${this.escapeStr(f)}|${this.escapeStr(l)})`,`gm${c}`),p+`(${this.processSynomyms(f)}|${this.processSynomyms(l)})`+p))}return i}processSynomyms(i){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(i=this.setupIgnoreJoinersRegExp(i)),i}setupWildcardsRegExp(i){return(i=i.replace(/(?:\\)*\?/g,d=>d.charAt(0)==="\\"?"?":"")).replace(/(?:\\)*\*/g,d=>d.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(i){let d=this.opt.wildcards==="withSpaces";return i.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(i){return i.replace(/[^(|)\\]/g,(d,c,p)=>{let s=p.charAt(c+1);return/[(|)\\]/.test(s)||s===""?d:d+"\0"})}createJoinersRegExp(i){let d=[];const c=this.opt.ignorePunctuation;return Array.isArray(c)&&c.length&&d.push(this.escapeStr(c.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?i.split(/\u0000+/).join(`[${d.join("")}]*`):i}createDiacriticsRegExp(i){const d=this.opt.caseSensitive?"":"i",c=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let p=[];return i.split("").forEach(s=>{c.every(h=>{if(h.indexOf(s)!==-1){if(p.indexOf(h)>-1)return!1;i=i.replace(new RegExp(`[${h}]`,`gm${d}`),`[${h}]`),p.push(h)}return!0})}),i}createMergedBlanksRegExp(i){return i.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(i){const d="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let c=this.opt.accuracy,p=typeof c=="string"?c:c.value,s=typeof c=="string"?[]:c.limiters,h="";switch(s.forEach(f=>{h+=`|${this.escapeStr(f)}`}),p){case"partially":default:return`()(${i})`;case"complementary":return`()([^${h="\\s"+(h||this.escapeStr(d))}]*${i}[^${h}]*)`;case"exactly":return`(^|\\s${h})(${i})(?=$|\\s${h})`}}getSeparatedKeywords(i){let d=[];return i.forEach(c=>{this.opt.separateWordSearch?c.split(" ").forEach(p=>{p.trim()&&d.indexOf(p)===-1&&d.push(p)}):c.trim()&&d.indexOf(c)===-1&&d.push(c)}),{keywords:d.sort((c,p)=>p.length-c.length),length:d.length}}isNumeric(i){return Number(parseFloat(i))==i}checkRanges(i){if(!Array.isArray(i)||Object.prototype.toString.call(i[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(i),[];const d=[];let c=0;return i.sort((p,s)=>p.start-s.start).forEach(p=>{let{start:s,end:h,valid:f}=this.callNoMatchOnInvalidRanges(p,c);f&&(p.start=s,p.length=h-s,d.push(p),c=h)}),d}callNoMatchOnInvalidRanges(i,d){let c,p,s=!1;return i&&i.start!==void 0?(p=(c=parseInt(i.start,10))+parseInt(i.length,10),this.isNumeric(i.start)&&this.isNumeric(i.length)&&p-d>0&&p-c>0?s=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(i)}`),this.opt.noMatch(i))):(this.log(`Ignoring invalid range: ${JSON.stringify(i)}`),this.opt.noMatch(i)),{start:c,end:p,valid:s}}checkWhitespaceRanges(i,d,c){let p,s=!0,h=c.length,f=d-h,l=parseInt(i.start,10)-f;return(p=(l=l>h?h:l)+parseInt(i.length,10))>h&&(p=h,this.log(`End range automatically set to the max value of ${h}`)),l<0||p-l<0||l>h||p>h?(s=!1,this.log(`Invalid range: ${JSON.stringify(i)}`),this.opt.noMatch(i)):c.substring(l,p).replace(/\s+/g,"")===""&&(s=!1,this.log("Skipping whitespace only range: "+JSON.stringify(i)),this.opt.noMatch(i)),{start:l,end:p,valid:s}}getTextNodes(i){let d="",c=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,p=>{c.push({start:d.length,end:(d+=p.textContent).length,node:p})},p=>this.matchesExclude(p.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{i({value:d,nodes:c})})}matchesExclude(i){return e.matches(i,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(i,d,c){const p=this.opt.element?this.opt.element:"mark",s=i.splitText(d),h=s.splitText(c-d);let f=document.createElement(p);return f.setAttribute("data-markjs","true"),this.opt.className&&f.setAttribute("class",this.opt.className),f.textContent=s.textContent,s.parentNode.replaceChild(f,s),h}wrapRangeInMappedTextNode(i,d,c,p,s){i.nodes.every((h,f)=>{const l=i.nodes[f+1];if(l===void 0||l.start>d){if(!p(h.node))return!1;const u=d-h.start,_=(c>h.end?h.end:c)-h.start,g=i.value.substr(0,h.start),$=i.value.substr(_+h.start);if(h.node=this.wrapRangeInTextNode(h.node,u,_),i.value=g+$,i.nodes.forEach((v,b)=>{b>=f&&(i.nodes[b].start>0&&b!==f&&(i.nodes[b].start-=_),i.nodes[b].end-=_)}),c-=_,s(h.node.previousSibling,h.start),!(c>h.end))return!1;d=h.end}return!0})}wrapMatches(i,d,c,p,s){const h=d===0?0:d+1;this.getTextNodes(f=>{f.nodes.forEach(l=>{let u;for(l=l.node;(u=i.exec(l.textContent))!==null&&u[h]!=="";){if(!c(u[h],l))continue;let _=u.index;if(h!==0)for(let g=1;g<h;g++)_+=u[g].length;l=this.wrapRangeInTextNode(l,_,_+u[h].length),p(l.previousSibling),i.lastIndex=0}}),s()})}wrapMatchesAcrossElements(i,d,c,p,s){const h=d===0?0:d+1;this.getTextNodes(f=>{let l;for(;(l=i.exec(f.value))!==null&&l[h]!=="";){let u=l.index;if(h!==0)for(let g=1;g<h;g++)u+=l[g].length;const _=u+l[h].length;this.wrapRangeInMappedTextNode(f,u,_,g=>c(l[h],g),(g,$)=>{i.lastIndex=$,p(g)})}s()})}wrapRangeFromIndex(i,d,c,p){this.getTextNodes(s=>{const h=s.value.length;i.forEach((f,l)=>{let{start:u,end:_,valid:g}=this.checkWhitespaceRanges(f,h,s.value);g&&this.wrapRangeInMappedTextNode(s,u,_,$=>d($,f,s.value.substring(u,_),l),$=>{c($,f)})}),p()})}unwrapMatches(i){const d=i.parentNode;let c=document.createDocumentFragment();for(;i.firstChild;)c.appendChild(i.removeChild(i.firstChild));d.replaceChild(c,i),this.ie?this.normalizeTextNode(d):d.normalize()}normalizeTextNode(i){if(i){if(i.nodeType===3)for(;i.nextSibling&&i.nextSibling.nodeType===3;)i.nodeValue+=i.nextSibling.nodeValue,i.parentNode.removeChild(i.nextSibling);else this.normalizeTextNode(i.firstChild);this.normalizeTextNode(i.nextSibling)}}markRegExp(i,d){this.opt=d,this.log(`Searching with expression "${i}"`);let c=0,p="wrapMatches";const s=h=>{c++,this.opt.each(h)};this.opt.acrossElements&&(p="wrapMatchesAcrossElements"),this[p](i,this.opt.ignoreGroups,(h,f)=>this.opt.filter(f,h,c),s,()=>{c===0&&this.opt.noMatch(i),this.opt.done(c)})}mark(i,d){this.opt=d;let c=0,p="wrapMatches";const{keywords:s,length:h}=this.getSeparatedKeywords(typeof i=="string"?[i]:i),f=this.opt.caseSensitive?"":"i",l=u=>{let _=new RegExp(this.createRegExp(u),`gm${f}`),g=0;this.log(`Searching with expression "${_}"`),this[p](_,1,($,v)=>this.opt.filter(v,u,c,g),$=>{g++,c++,this.opt.each($)},()=>{g===0&&this.opt.noMatch(u),s[h-1]===u?this.opt.done(c):l(s[s.indexOf(u)+1])})};this.opt.acrossElements&&(p="wrapMatchesAcrossElements"),h===0?this.opt.done(c):l(s[0])}markRanges(i,d){this.opt=d;let c=0,p=this.checkRanges(i);p&&p.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(p)),this.wrapRangeFromIndex(p,(s,h,f,l)=>this.opt.filter(s,h,f,l),(s,h)=>{c++,this.opt.each(s,h)},()=>{this.opt.done(c)})):this.opt.done(c)}unmark(i){this.opt=i;let d=this.opt.element?this.opt.element:"*";d+="[data-markjs]",this.opt.className&&(d+=`.${this.opt.className}`),this.log(`Removal selector "${d}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,c=>{this.unwrapMatches(c)},c=>{const p=e.matches(c,d),s=this.matchesExclude(c);return!p||s?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}return function(a){const i=new o(a);return this.mark=((d,c)=>(i.mark(d,c),this)),this.markRegExp=((d,c)=>(i.markRegExp(d,c),this)),this.markRanges=((d,c)=>(i.markRanges(d,c),this)),this.unmark=(d=>(i.unmark(d),this)),this}})})(or)),or.exports}var kd=wd();const Cd=Cn(kd),Ed={props:{infiniteLoader:{type:Boolean,default:!0}},watch:{infiniteLoader(t){t||infiniteLoaderObserver.disconnect()}},data(){return{infiniteLoaderObserver:null}},mounted(){this.infiniteLoader&&(this.infiniteLoaderObserver=new IntersectionObserver(t=>{t.forEach(r=>{r.isIntersecting&&this.$emit("loadMoreOptions")})}),this.infiniteLoaderObserver.observe(this.$refs.infinityLoader))},beforeDestroy(){this.infiniteLoader&&(infiniteLoaderObserver==null||infiniteLoaderObserver.disconnect())},emits:["loadMoreOptions"]};function Od(t,r){let e=null;function o(...a){e&&clearTimeout(e),e=setTimeout(()=>{t.apply(this,a),e=null},r)}return o.cancel=function(){e&&(clearTimeout(e),e=null)},o}function Do(t){return JSON.parse(JSON.stringify(t))}const Sd={name:"IbTreeSelect",inject:["LANG_COMPONENTS"],mixins:[Ed],props:{classList:[String,Array],keywordHighlighter:{type:Boolean,default:!0},placeholder:{type:String,default:""},searchPlaceholderText:{type:String,default:""},clearButtonMessage:{type:String,default:""},showClearButton:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!1},menuSize:{type:[String,Number]},initialSize:{left:0,right:0},ariaLabel:{type:String,default:""},name:String,id:{type:String,default(){return dt()}},options:{type:[Array,Function],default(){return[]}},modelValue:{type:[Number,String,Array]},value:{type:[Number,String,Array],default(){return[]}},maxSelectedNames:{type:Number,default:2},isMultiple:{type:Boolean,default:!0},parentAutoCheck:{type:Boolean,default:null},strings:{type:Object,default(){return{}}},onlyEndNodes:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!0},htmlOptionTitle:{type:Boolean,default:!1},isBookmarkable:{type:Boolean,default:!1},initBookmarks:{type:Array,default:()=>[]},showInputs:{type:Boolean,default(t){return t.isMultiple}},dependency:{type:String},filterId:{type:String,default(){return dt()}},staticPlaceholder:{type:Boolean,default:!1},useSearch:{type:Boolean,default:!1},isWatching:{type:Boolean,default:!1},vertical:{type:String},emptyMessage:{type:String,default:""},errorMessage:{type:String,default:""},allOptions:{type:Boolean,default:!0},watchClearValue:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1},alphabetSort:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},searchDebounce:{type:Number,default:500},alphabeticStyle:{type:Boolean,default:!1}},emits:["close","input","blur","search","resize","submit","clearValue","toggle-bookmarked-option","update:modelValue"],watch:{value(t){this.val=t,(!Array.isArray(t)||t.join(",")!==Object.keys(this.selected).join(","))&&this.setPreparedValues(this.actualOptions,!1)},modelValue:{handler(t){if(this.isInternalChange)return;this.val=t,this.val=t,(!Array.isArray(t)||t.join(",")!==Object.keys(this.selected).join(","))&&this.setPreparedValues(this.actualOptions,!1);const r=new Set(Array.isArray(t)?t:[t].filter(Boolean));this.syncCheckedBySet(r)},deep:!0},val(t){this.watchClearValue&&(!t||Array.isArray(t)&&!t.length)&&this.setPreparedValues(this.actualOptions).then(()=>{const r=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:r,filter:this.filterId})})},options:{handler(t){this.initialOptions=typeof t=="function"?t:Do(t)},deep:!0},initialOptions(t){let r=!0;if(typeof t=="function")r=!1;else{const e=[],o=t;Array.prototype.forEach.call(o,a=>{a.id!==void 0&&e.push(a.id)}),r=JSON.stringify(e)===JSON.stringify(this.optionsIdsWatch),this.optionsIdsWatch=e}(this.isInitialized&&!r||this.isWatching)&&this.setPreparedValues().then(()=>{const e=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:e,filter:this.filterId})})},dependency(t,r){this.$nextTick(()=>{this.registerDependency(r)})},initBookmarks(){this.actualBookmarkedOptions={},this.setBookmarkedOptions(this.actualOptions)}},mounted(){this.marker=new Cd(this.$refs.list.$el),this.registerDependency(),this.$globalEvents.$on("select:refresh",()=>{this.setPreparedValues()}),document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.endResizing)},data(){var t,r,e,o,a,i,d,c;return this.defaultFilter=Od(p=>{var h;this.marker.unmark();const s=this.filterString.toLowerCase().trim();this.countVisibleChildren=this.filterFunc.call(this,p,s),s&&this.keywordHighlighter&&this.marker.mark(s),(h=this.virtualizer)==null||h.measure()},1e3),{virtualizer:null,initialOptions:typeof this.options=="function"?this.options:Do(this.options),val:this.modelValue?this.modelValue:this.value,size:{left:this.initialSize&&this.initialSize.left||0,right:this.initialSize&&this.initialSize.right||0},resizingProp:null,isInitialized:!1,isLoading:!1,isOpen:!1,optionsIdsWatch:[],actualName:this.isMultiple?this.name+"[]":this.name,parentAutoCheckVal:this.parentAutoCheck!==null?this.parentAutoCheck:this.isMultiple,filterString:"",actualOptions:[],actualBookmarkedOptions:{},selected:[],verticalVal:this.vertical??"bottom",allOptionsIsChecked:!0,hasTreeChildren:!1,uid:`f${(~~(Math.random()*1e8)).toString(16)}`,focusedOptionId:"",actualStrings:{searchPlaceholder:lang(this.searchPlaceholderText.length?this.searchPlaceholderText:"search_placeholder",(t=this.LANG_COMPONENTS)==null?void 0:t.COMPONENT_SELECT),emptyTitle:lang("empty_title",(r=this.LANG_COMPONENTS)==null?void 0:r.COMPONENT_SELECT),selectAllOptions:lang("all_options",(e=this.LANG_COMPONENTS)==null?void 0:e.COMPONENT_SELECT),allSelected:lang("all_selected",(o=this.LANG_COMPONENTS)==null?void 0:o.COMPONENT_SELECT),loading:lang("loading",(a=this.LANG_COMPONENTS)==null?void 0:a.COMPONENT_SELECT)+"...",selectedCount:lang("selected_count",(i=this.LANG_COMPONENTS)==null?void 0:i.COMPONENT_SELECT),buttonTitle:this.buttonTitle||lang("button_title",(d=this.LANG_COMPONENTS)==null?void 0:d.COMPONENT_SELECT),requiredDependencyNotFilled:this.requiredDependencyNotFilled||lang("required_dependency_are_not_filled",(c=this.LANG_COMPONENTS)==null?void 0:c.COMPONENT_SELECT),...this.strings},dependencyValue:null,isInternalChange:!1,nodeIndex:new Map}},methods:{toggleDuplicateOptionsFast(t,r){const e=this.nodeIndex.get(t);if(e)for(const o of e)o.checked=r},buildNodeIndex(){this.nodeIndex.clear(),this.traverseTree(this.actualOptions,t=>{this.nodeIndex.has(t.id)||this.nodeIndex.set(t.id,[]),this.nodeIndex.get(t.id).push(t)})},syncCheckedBySet(t){this.traverseTree(this.actualOptions,r=>{const e=t.has(r.id);r.checked!==e&&(r.checked=e)}),this.selected={},this.traverseTree(this.actualOptions,r=>{r.checked&&(!this.onlyEndNodes||!r.children)&&(this.selected[r.id]=r)}),this.allOptionsIsChecked=this.checkIfOptionsChecked(this.actualOptions)},onBlur(){setTimeout(()=>{this.isOpen||this.$emit("blur")},200)},inputKeyupDown(){this.focusOnFirstOptions()},comboboxKeyupDown(){if(this.showSearch){this.$refs.search.focus();return}this.focusOnFirstOptions()},focus(){this.$refs.combobox.focus()},focusOnFirstOptions(){this.$refs.list.$el.querySelector("[tabindex]:not(hidden)").focus()},startResizing(t){this.resizingProp=t},endResizing(){this.resizingProp&&(this.resizingProp=null,this.$emit("resize",this.size))},onResize(t){switch(this.resizingProp){case"left":this.size.left=Math.max(this.size.left-t.movementX,0);break;case"right":this.size.right=Math.max(this.size.right+t.movementX,0);break}},registerDependency(t){this.dependency?(this.$globalEvents.$on("select-"+this.dependency+":update",r=>{this.clear(),this.dependencyValue=r,this.dependencyValue&&this.dependencyValue.values&&(!Array.isArray(this.dependencyValue.values)||this.dependencyValue.values.length)&&this.setPreparedValues()}),this.isLoading=!1):(this.$globalEvents.$off("select-"+t+":update"),this.setPreparedValues().then(()=>{const r=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:r,filter:this.filterId})}))},filter(t,r){this.filterString=t,this.$emit("search",this.filterString),this.defaultFilter(r)},setPreparedValues(t){let r=t||this.initialOptions;return this.alphabetSort&&(r=r.sort((e,o)=>e.title.toLowerCase().localeCompare(o.title.toLowerCase()))),this.prepare(r).then(([e,o])=>{this.actualOptions=e,this.buildNodeIndex(),this.allOptionsIsChecked=this.checkIfOptionsChecked(e),this.isInitialized=!0,this.selected=o,this.setBookmarkedOptions(e)})},clear(){this.traverseTree(this.actualOptions,r=>r.checked=!1),this.selected=[],this.allOptionsIsChecked=!1,this.isInternalChange=!0;const t=this.isMultiple?[]:null;this.$emit("update:modelValue",t),this.$emit("input",t),this.$emit("clear-value",t),this.$nextTick(()=>this.isInternalChange=!1)},clearValue(){this.clear(),this.setPreparedValues()},prepare(t,r=!0){return new Promise(e=>{const o={},a=[];let i=Promise.resolve();typeof t=="function"?(this.isLoading=!0,this.dependency&&(t=t.bind(null,this.dependencyValue)),i=i.then(t)):i=i.then(()=>t),i.then(d=>(this.isLoading=!1,d.forEach(c=>{c.initiallyVisible=typeof c.visible>"u"?!0:c.visible,c.visible=c.initiallyVisible,c.readonly=!!c.readonly,c.checked=this.isMultiple?this.val!==null&&this.val.findIndex(p=>c.id==p)>-1:this.val!==null&&this.val==c.id,c.checked&&(!this.onlyEndNodes||!c.children)&&(o[c.id]=c),c.children&&(this.hasTreeChildren=!0,c.isChildrenVisible=!1),a.push(new Promise(p=>{c.children?this.prepare(c.children).then(([s,h])=>{c.children=s,this.parentAutoCheckVal&&(c.checked=this.checkIfOptionsChecked(c.children)),Object.assign(o,h),p(c)}):p(c)}))}),Promise.all(a).then(c=>{e([c,o])}))).catch(d=>{throw this.isLoading=!1,d})})},filterFunc(t,r){let e=0;return t.forEach(o=>{let a=o.initiallyVisible&&o.title&&o.title.toString().toLowerCase().includes(r)&&!this.actualBookmarkedOptions[o.id];if(o.children&&o.children.length){let i=this.filterFunc(o.children,r);e+=i,i&&(o.isChildrenVisible=r.length>0||!!Object.keys(this.actualBookmarkedOptions).length,o.isDisabled=i<o.children.length&&!this.isBookmarkable),a?i||(a=!1):a=!!i}o.visible=a,a&&e++}),e},submit(){this.change();const t=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":submit",{values:t,filter:this.filterId}),this.$emit("submit")},change(){const t=Object.keys(this.selected);this.isInternalChange=!0,this.isMultiple?(this.$emit("update:modelValue",t),this.$emit("input",t)):(this.$emit("update:modelValue",t[0]),this.$emit("input",t[0])),this.$nextTick(()=>this.isInternalChange=!1),this.$globalEvents.$emit("select-"+this.filterId+":update",{values:t,filter:this.filterId}),this.isMultiple||this.$refs.dropdown.close()},checkIfOptionsChecked(t){return t.every(r=>r.checked||r.readonly)},registerCheck(t,r,e){var o;if(r){if(t.checked=!0,this.isMultiple&&!(this.onlyEndNodes&&((o=t.children)!=null&&o.length)))this.selected[t.id]=t;else if(!this.isMultiple){const a=Object.keys(this.selected)[0];a&&(this.selected[a].checked=!1),this.selected={[t.id]:t},this.change();return}}else delete this.selected[t.id],t.checked=!1;if(this.toggleDuplicateOptionsFast(t.id,r),e&&(this.allOptionsIsChecked=this.checkIfOptionsChecked(this.actualOptions)),this.isMultiple){this.isInternalChange=!0;const a=Object.keys(this.selected);this.$emit("update:modelValue",a),this.$emit("input",a),this.$nextTick(()=>this.isInternalChange=!1)}},toggleDuplicateOptions(t,r,e){for(let o of t)o.id===r&&(o.checked=e),o.children&&this.toggleDuplicateOptions(o.children,r,e)},manageAll(){this.allOptionsIsChecked=!this.allOptionsIsChecked,this.traverseTree(this.actualOptions,t=>{t.readonly||this.registerCheck(t,this.allOptionsIsChecked,!1)})},traverseTree(t,r){t.forEach(e=>{r(e),e.children&&e.children.length&&this.traverseTree(e.children,r)})},getArrayOptions(t){let r=[];for(let e of t)r.push(e),e.children&&(r=r.concat(this.getArrayOptions(e.children)));return r},toggleBookmark(t){this.actualBookmarkedOptions[t.id]?delete this.actualBookmarkedOptions[t.id]:this.actualBookmarkedOptions[t.id]=t,this.$emit("toggle-bookmarked-option",t.id),this.filter(this.filterString,this.actualOptions)},setBookmarkedOptions(t){t.forEach(r=>{r.children&&r.children.length?this.setBookmarkedOptions(r.children):this.initBookmarks.includes(r.id)&&(this.actualBookmarkedOptions[r.id]=r)}),this.filter(this.filterString,t)},onClose(){this.isOpen=!1,this.filterString="",this.filterFunc(this.actualOptions,this.filterString),this.isMultiple?this.$emit("close",Object.keys(this.selected)):this.$emit("close",Object.keys(this.selected)[0]),this.virtualizer=null,this.$emit("blur"),this.verticalVal=this.vertical??"bottom"},onOpen(){var r;const t=document.documentElement.scrollHeight;this.isOpen=!0,this.virtualizer||(this.virtualizer=Vc({count:this.actualOptions.length,getScrollElement:()=>this.$refs.parentRef,estimateSize:()=>40,overscan:8})),(r=this.virtualizer)==null||r.measure(),this.vertical!=="bottom"&&this.$nextTick(()=>{document.documentElement.scrollHeight>t&&(this.verticalVal="top")})}},computed:{hasTrigger(){return!!this.$slots.trigger},hasTriggerContent(){return!!this.$slots.triggerContent},hasEmptyMessage(){return!!this.$slots.emptyMessage},treeDropPos(){return this.menuSize?{width:this.menuSize+"px",maxWidth:this.menuSize+"px",minWidth:this.menuSize+"px"}:{width:"auto",position:"absolute",left:-this.size.left+"px",right:-this.size.right+"px"}},hasHierarchy(){return this.actualOptions.some(t=>t.children)},selectedKeys(){return Object.keys(this.selected).filter(t=>{if(!this.onlyEndNodes||!this.selected[t].children)return!0})},selectStatus(){return this.staticPlaceholder?this.placeholder:this.isLoading?this.actualStrings.loading:this.selectedKeys.length?this.selectedKeys.length<this.maxSelectedNames?this.selectedKeys.map(t=>this.selected[t].title).join(","):this.allOptionsIsChecked?this.actualStrings.allSelected:this.actualStrings.selectedCount.replace("{selected}",this.selectedKeys.length).replace("{all}",this.optionsCount):this.emptyMessage},isEmpty(){return Array.isArray(this.value)?!this.value.length:!this.value},requiredDependencyNotFilled(){return this.dependency&&(!this.dependencyValue||!this.dependencyValue.values||!this.dependencyValue.values.length)},showSearch(){return this.useSearch||this.optionsCount>10&&!this.alphabeticStyle},arrayOfOptions(){return this.getArrayOptions(this.actualOptions)},optionsCount(){let t=[];for(let r of this.arrayOfOptions)(!this.onlyEndNodes||!r.children)&&!t.includes(r.id)&&t.push(r.id);return t.length},visibleOptionsCount(){let t=[];return this.traverseTree(this.actualOptions,r=>{(!this.onlyEndNodes||!r.children)&&!t.includes(r.id)&&r.visible&&t.push(r.id)}),t.length+(this.isBookmarkable?Object.keys(this.actualBookmarkedOptions).length:0)}},components:{IbAlert:Rt,IbIconButton:Xe,IbIcon:Le,IbDropdown:ir,IbInput:jr,List:Br,"select-option":_d},directives:{Tooltip:Et},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)},inheritAttrs:!1},Td={key:0,class:"tree-select-empty"},xd={key:1,class:"tree-select-default-empty tree-select-empty"},Nd={key:4,class:"scrollable-container"},Ad={ref:"parentRef"},Dd=["data-index"],Md={key:5,ref:"infinityLoader"};function Id(t,r,e,o,a,i){const d=n.resolveComponent("ib-alert"),c=n.resolveComponent("ib-icon"),p=n.resolveComponent("ib-icon-button"),s=n.resolveComponent("ib-input"),h=n.resolveComponent("select-option"),f=n.resolveComponent("list"),l=n.resolveComponent("ib-dropdown"),u=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.errorMessage?(n.openBlock(),n.createBlock(d,{key:0,class:"tree-select-error"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1})):n.createCommentVNode("",!0),n.createElementVNode("div",n.mergeProps(Object.fromEntries(Object.entries(t.$attrs).filter(([_])=>_.startsWith("data-"))),{class:["tree-select",{...e.classList,"tree-select-custom-trigger-content":i.hasTriggerContent,"disabled-parent-autocheck":e.parentAutoCheck===!1}]}),[n.createVNode(l,{disabled:a.isLoading||e.disable,"is-resizable":e.isResizable,vertical:a.verticalVal,class:n.normalizeClass({disable:e.disable}),ref:"dropdown",onClose:i.onClose,onOpen:i.onOpen},n.createSlots({body:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:n.normalizeStyle(i.treeDropPos),role:"listbox"},[e.isResizable?(n.openBlock(),n.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:r[6]||(r[6]=_=>i.startResizing("left"))},null,32)):n.createCommentVNode("",!0),e.isResizable?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:1,class:"ib-dropdown-resizer ib-dropdown-resizer-right",onMousedown:r[7]||(r[7]=_=>i.startResizing("right"))},null,544)),[[u,t.lang("resize_list","select"),void 0,{rightCenter:!0}]]):n.createCommentVNode("",!0),i.showSearch?(n.openBlock(),n.createBlock(s,{key:2,class:"tree-search",ref:"search",autocomplete:"new-password","show-icon":!0,value:a.filterString,debounce:e.searchDebounce,"aria-label":e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,placeholder:e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,onInput:r[8]||(r[8]=_=>i.filter(_,a.actualOptions)),onKeyup:n.withKeys(i.inputKeyupDown,["down"])},null,8,["value","debounce","aria-label","placeholder","onKeyup"])):n.createCommentVNode("",!0),n.createVNode(f,{ref:"list",role:"listbox",class:n.normalizeClass({"tree-select-list":!0,"has-hierarchy":i.hasHierarchy,"alphabetic-list":e.alphabeticStyle})},{default:n.withCtx(()=>{var _,g;return[!i.requiredDependencyNotFilled&&!i.visibleOptionsCount&&i.hasEmptyMessage?(n.openBlock(),n.createElementBlock("div",Td,[n.renderSlot(t.$slots,"emptyMessage")])):!i.requiredDependencyNotFilled&&!i.visibleOptionsCount?(n.openBlock(),n.createElementBlock("div",xd,n.toDisplayString(a.actualStrings.emptyTitle),1)):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",{class:"tree-select-empty"},n.toDisplayString(a.actualStrings.requiredDependencyNotFilled),513),[[n.vShow,i.requiredDependencyNotFilled]]),!e.isMultiple&&!e.isRequired&&a.actualOptions.length>0?(n.openBlock(),n.createBlock(h,{key:2,option:{title:t.lang("none","select"),id:null,checked:i.isEmpty},name:a.actualName,"parent-auto-check":a.parentAutoCheckVal,"is-multiple":e.isMultiple,role:"option",onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs},null,8,["option","name","parent-auto-check","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","show-input"])):n.createCommentVNode("",!0),Object.keys(a.actualBookmarkedOptions).length>0?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:3},n.renderList(a.actualBookmarkedOptions,$=>(n.openBlock(),n.createBlock(h,{key:"bookmark"+$.id,class:"bookmarked-option",option:$,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!0,"is-bookmarked":!0,role:"option",onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs},null,8,["option","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","html-title","show-input"]))),128)):n.createCommentVNode("",!0),i.requiredDependencyNotFilled?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Nd,[e.allOptions&&!e.alphabeticStyle&&e.isMultiple&&i.visibleOptionsCount&&!i.requiredDependencyNotFilled?(n.openBlock(),n.createBlock(h,{key:0,option:{title:a.actualStrings.selectAllOptions,initiallyVisible:!0,visible:!0,isDisabled:i.visibleOptionsCount<i.optionsCount,checked:a.allOptionsIsChecked,isIndeterminate:!!Object.keys(a.selected).length},"is-toggle":e.isToggle,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!1,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs,"alphabetic-style":e.alphabeticStyle,role:"option",onCheck:i.manageAll,onOnFocus:r[9]||(r[9]=$=>a.focusedOptionId=$)},null,8,["option","is-toggle","is-multiple","uid","only-end-nodes","show-input","alphabetic-style","onCheck"])):n.createCommentVNode("",!0),n.createElementVNode("div",Ad,[n.createElementVNode("div",{style:n.normalizeStyle({height:((_=a.virtualizer)==null?void 0:_.getTotalSize())+"px",position:"relative"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList((g=a.virtualizer)==null?void 0:g.getVirtualItems(),$=>(n.openBlock(),n.createElementBlock("div",{key:$.index,"data-index":$.index,ref_for:!0,ref:a.virtualizer.measureElement,style:n.normalizeStyle({position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${$.start}px)`})},[a.actualOptions[$.index]?n.withDirectives((n.openBlock(),n.createBlock(h,{key:0,option:a.actualOptions[$.index],"is-toggle":e.isToggle,name:a.actualName,role:"option","parent-auto-check":a.parentAutoCheckVal,"is-multiple":e.isMultiple,"is-bookmarkable":e.isBookmarkable,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs,"alphabetic-style":e.alphabeticStyle,onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,onOnFocus:r[10]||(r[10]=v=>a.focusedOptionId=v)},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","uid","only-end-nodes","html-title","show-input","alphabetic-style","onCheck","onToggleBookmark"])),[[n.vShow,a.actualOptions[$.index].visible&&!a.actualOptions[$.index].hidden]]):n.createCommentVNode("",!0)],12,Dd))),128))],4)],512)])),t.infiniteLoader?(n.openBlock(),n.createElementBlock("div",Md,null,512)):n.createCommentVNode("",!0)]}),_:3},8,["class"])],6)]),_:2},[i.hasTrigger?{name:"trigger",fn:n.withCtx(()=>[n.renderSlot(t.$slots,"trigger",{selectedCount:i.selectedKeys.length,isOpen:a.isOpen})]),key:"0"}:{name:"trigger",fn:n.withCtx(({isOpened:_})=>[n.createElementVNode("div",{role:"combobox",tabindex:"0",class:n.normalizeClass(["tree-choice",{"tree-choice-opened":_,"has-clear-button":e.showClearButton,"tree-choice-error":e.errorMessage}]),ref:"combobox","aria-expanded":_,onClick:r[2]||(r[2]=n.withModifiers(()=>{},["prevent"])),onBlur:r[3]||(r[3]=(...g)=>i.onBlur&&i.onBlur(...g)),onKeyup:[r[4]||(r[4]=n.withKeys((...g)=>i.comboboxKeyupDown&&i.comboboxKeyupDown(...g),["down"])),r[5]||(r[5]=n.withKeys((...g)=>i.comboboxKeyupDown&&i.comboboxKeyupDown(...g),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[i.hasTriggerContent?n.renderSlot(t.$slots,"triggerContent",{key:0,selectedCount:i.selectedKeys.length,isOpen:_}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.htmlOptionTitle?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass({placeholder:!i.selectStatus}),innerHTML:i.selectStatus||e.placeholder},null,10,["innerHTML"])):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass({placeholder:!i.selectStatus})},n.toDisplayString(i.selectStatus||e.placeholder),3))],64)),e.showClearButton?n.withDirectives((n.openBlock(),n.createBlock(p,{key:2,kind:"ghost",class:"button-clear","aria-label":"Clear selection",onClick:n.withModifiers(i.clearValue,["prevent"]),onKeypress:r[0]||(r[0]=n.withKeys(n.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeydown:r[1]||(r[1]=n.withKeys(n.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeyup:n.withKeys(n.withModifiers(i.clearValue,["prevent"]),["enter"]),"help-text":e.clearButtonMessage},{default:n.withCtx(()=>[n.createVNode(c,{name:"close-outline"})]),_:1},8,["onClick","onKeyup","help-text"])),[[n.vShow,Object.keys(a.selected).length]]):n.createCommentVNode("",!0),n.createVNode(c,{name:_?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.selectedKeys,g=>(n.openBlock(),n.createElementBlock("input",{type:"hidden",key:"hidden-"+g,name:a.actualName,value:g},null,8,["name","value"]))),128))],42,["aria-expanded","aria-label","aria-activedescendant"])]),key:"1"}]),1032,["disabled","is-resizable","vertical","class","onClose","onOpen"])],16)],64)}const Fr=be(Sd,[["render",Id]]),Bd={name:"IbLimitSelector",props:{labelSelect:{type:String,required:!0},value:{type:Number},vertical:{type:String},options:{type:Array,default:()=>[10,25,50,100]}},watch(t){this.selected=t},data(){return{selected:this.value}},methods:{selectItem(t){this.selected=t,this.onChange(t)},onChange(t){Number.isInteger(+t)&&this.$emit("select",+t)}},computed:{prepareOptions(){return this.options.map(t=>({id:t,title:t}))}},components:{IbLabel:kn,IbSelect:Fr}},Pd={class:"report-limit-selector"};function Ld(t,r,e,o,a,i){const d=n.resolveComponent("ib-label"),c=n.resolveComponent("ib-select");return n.openBlock(),n.createElementBlock("div",Pd,[n.createVNode(d,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.labelSelect),1)]),_:1}),n.createVNode(c,{classList:"report-limit-selector-select",value:e.value,vertical:e.vertical,options:i.prepareOptions,"is-multiple":!1,"show-clear-button":!1,"aria-label":"Pagination",onInput:i.selectItem},null,8,["value","vertical","options","onInput"])])}const Mo=be(Bd,[["render",Ld]]),Rd=475,jd={name:"IbPagination",props:{tooltipTextPrev:{type:String},tooltipTextNext:{type:String},labelInput:{type:String},labelSelect:{type:String,required:!0},countRows:{type:Number,required:!0},pageCount:{type:Number,default:null},current:{type:Number,default:1},limitSelector:{type:Number,default:10},showPaginationInput:{type:Boolean,default:!0},showLimitSelector:{type:Boolean,default:!0},vertical:{type:String}},data(){return{isShort:!1,resizeObserver:null,currentPage:this.current,indexSpaceLeft:null,indexSpaceRight:null,limitValue:this.limitSelector}},watch:{current(t){this.onSelect(t)},limitSelector(t){this.limitValue=t},limitValue(){this.currentPage=1}},mounted(){this.handleResize(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.$refs.paginationControl)},methods:{handleResize(){this.isShort=this.$refs.paginationControl.clientWidth<Rd},changeLimit(t){Number.isInteger(t)&&(this.limitValue=t,this.$emit("set-limit",t))},onInput(t){if(t<1){this.onSelect(1);return}if(t>this.countPagePagination){this.onSelect(this.countPagePagination);return}this.onSelect(Number(t))},onSelect(t){Number.isInteger(t)&&(this.currentPage=t,this.$emit("select",t))},showItem(t){if(this.countPagePagination<=5)return this.indexSpaceLeft=null,this.indexSpaceRight=null,!0;if(t===1||t===this.countPagePagination)return!0;if(this.countPagePagination>=7){if(this.currentPage<=3&&t<=5)return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=null,!0;if(this.currentPage>=this.countPagePagination-2&&t>=this.countPagePagination-4)return this.indexSpaceLeft=null,this.indexSpaceRight=1,!0;if(3<this.currentPage<this.countPagePagination-3&&(t===this.currentPage+1||t===this.currentPage-1||t===this.currentPage))return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=1,!0}else return!0;return!1}},computed:{setCountOfRows(){return this.currentPage===1||this.countPagePagination===1?"1 - "+(this.countPagePagination>1?this.limitValue:this.countRows):this.countPagePagination===this.currentPage?(this.currentPage-1)*this.limitValue+" - "+this.countRows:(this.currentPage-1)*this.limitValue+1+" - "+this.currentPage*this.limitValue},countPagePagination(){return Math.ceil(this.countRows/this.limitValue)}},beforeUnmount(){this.resizeObserver.disconnect(),this.resizeObserver=null},components:{IbIconButton:Xe,IbIcon:Le,IbInput:jr,IbLabel:kn,IbLimitSelector:Mo,IbTooltip:bn}},Vd={class:"repot-pagination"},Fd={class:"pagination-input"},qd={class:"row-count"},Hd={key:1,class:"pagination-text"},zd={key:2,class:"pagination-wrapper"},Ud=["onClick"];function Kd(t,r,e,o,a,i){const d=n.resolveComponent("ib-limit-selector"),c=n.resolveComponent("ib-label"),p=n.resolveComponent("ib-input"),s=n.resolveComponent("ib-icon"),h=n.resolveComponent("ib-tooltip"),f=n.resolveComponent("ib-icon-button");return n.openBlock(),n.createElementBlock("div",{ref:"paginationControl",class:n.normalizeClass(["report-controls",{"simple-pagination":!e.showLimitSelector}])},[e.showLimitSelector?(n.openBlock(),n.createBlock(d,{key:0,onSelect:i.changeLimit,value:a.limitValue,vertical:e.vertical,"label-select":e.labelSelect},null,8,["onSelect","value","vertical","label-select"])):n.createCommentVNode("",!0),n.createElementVNode("div",Vd,[e.showPaginationInput?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(c,{for:"goToPage"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.labelInput),1)]),_:1}),n.createElementVNode("div",Fd,[n.createVNode(p,{id:"goToPage",type:"number","hide-number-actions":"",debounce:500,onInput:i.onInput},null,8,["onInput"])])],64)):n.createCommentVNode("",!0),n.createElementVNode("div",qd,n.toDisplayString(i.setCountOfRows+" of "+e.countRows),1),n.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-prev",disabled:a.currentPage===1,onClick:r[0]||(r[0]=l=>i.onSelect(a.currentPage-1))},{default:n.withCtx(()=>[n.createVNode(s,{name:"chevron-back-outline"}),e.tooltipTextPrev?(n.openBlock(),n.createBlock(h,{key:0,text:e.tooltipTextPrev},null,8,["text"])):n.createCommentVNode("",!0)]),_:1},8,["disabled"]),a.isShort?(n.openBlock(),n.createElementBlock("p",Hd,n.toDisplayString(a.currentPage)+" Page ",1)):(n.openBlock(),n.createElementBlock("ul",zd,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.countPagePagination,(l,u)=>n.withDirectives((n.openBlock(),n.createElementBlock("li",{key:u,class:n.normalizeClass(["pagination-item",{active:u+1===a.currentPage,"dots-left":a.indexSpaceLeft===u+1,"dots-right":a.indexSpaceRight===u+1}]),onClick:_=>i.onSelect(u+1)},[n.createElementVNode("button",null,n.toDisplayString(u+1),1)],10,Ud)),[[n.vShow,i.showItem(u+1)]])),128))])),n.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-next",disabled:a.currentPage===i.countPagePagination,onClick:r[1]||(r[1]=l=>i.onSelect(a.currentPage+1))},{default:n.withCtx(()=>[n.createVNode(s,{name:"chevron-forward-outline"}),e.tooltipTextNext?(n.openBlock(),n.createBlock(h,{key:0,text:e.tooltipTextNext},null,8,["text"])):n.createCommentVNode("",!0)]),_:1},8,["disabled"])])],2)}const Gd=be(jd,[["render",Kd]]),En={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},Wd={props:{states:{type:String,default:En.PROGRESS},progress:{type:[String,Number],default:0},ariaLabel:{type:String,required:!0}},computed:{classes(){const t=["ib-progress-bar"];return t.push(`progress-bar-${this.states}`),t},iconName(){return this.states===En.SUCCESS?"checkmark-circle":this.states===En.FAILED||this.states===En.CANCELING||this.states===En.CANCELED?"close-circle":""}},components:{IbIcon:Le}},Io=t=>(n.pushScopeId("data-v-88a1a511"),t=t(),n.popScopeId(),t),Yd={class:"ib-progress-bar-wrapper"},Zd=["aria-label","aria-valuenow"],Jd=[Io(()=>n.createElementVNode("div",{class:"gradient"},null,-1))],Xd=Io(()=>n.createElementVNode("div",null,null,-1));function Qd(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon");return n.openBlock(),n.createElementBlock("div",Yd,[n.createElementVNode("div",{class:n.normalizeClass(i.classes)},[n.createElementVNode("div",{class:"progress",role:"meter","aria-label":e.ariaLabel,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress,style:n.normalizeStyle({width:e.progress+"%"})},Jd,12,Zd),Xd],2),n.withDirectives(n.createVNode(d,{class:"status-icon",name:i.iconName},null,8,["name"]),[[n.vShow,i.iconName.length]])])}const eu=be(Wd,[["render",Qd],["__scopeId","data-v-88a1a511"]]),tu={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
33
|
+
<circle id="Ellipse" cx="5.5" cy="5.5" r="5" fill="#0369E8"/>
|
|
34
|
+
</svg>
|
|
35
|
+
`,success:`
|
|
36
|
+
<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
37
|
+
<circle id="Ellipse" cx="5.5" cy="5.5" r="5" fill="#0D7F39"/>
|
|
38
|
+
</svg>
|
|
39
|
+
`,error:`
|
|
40
|
+
<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
41
|
+
<path id="Subtract" fill-rule="evenodd" clip-rule="evenodd" d="M9.1336 8.31393C9.68034 7.51234 10 6.5435 10 5.5C10 2.73858 7.76142 0.5 5 0.5C3.9565 0.5 2.98766 0.819661 2.18607 1.3664L9.1336 8.31393ZM0.866401 2.68607C0.319661 3.48766 0 4.4565 0 5.5C0 8.26142 2.23858 10.5 5 10.5C6.0435 10.5 7.01234 10.1803 7.81393 9.6336L0.866401 2.68607Z" fill="#C8182E"/>
|
|
42
|
+
</svg>
|
|
43
|
+
`,warning:`
|
|
44
|
+
<svg width="12" height="11" viewBox="0 0 12 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
45
|
+
<path d="M6 0.5L12 10.5H0L6 0.5Z" fill="#F1BC19"/>
|
|
46
|
+
</svg>
|
|
47
|
+
`,incomplete:`
|
|
48
|
+
<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
49
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 2.5C3.84315 2.5 2.5 3.84315 2.5 5.5C2.5 7.15685 3.84315 8.5 5.5 8.5C7.15685 8.5 8.5 7.15685 8.5 5.5C8.5 3.84315 7.15685 2.5 5.5 2.5ZM0.5 5.5C0.5 2.73858 2.73858 0.5 5.5 0.5C8.26142 0.5 10.5 2.73858 10.5 5.5C10.5 8.26142 8.26142 10.5 5.5 10.5C2.73858 10.5 0.5 8.26142 0.5 5.5Z" fill="#677788"/>
|
|
50
|
+
</svg>
|
|
51
|
+
`,inProgress:`
|
|
52
|
+
<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
53
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 0.5C2.73858 0.5 0.5 2.73858 0.5 5.5C0.5 8.26142 2.73858 10.5 5.5 10.5C8.26142 10.5 10.5 8.26142 10.5 5.5C10.5 2.73858 8.26142 0.5 5.5 0.5ZM2.5 5.5C2.5 3.84315 3.84315 2.5 5.5 2.5V5.5L7.62132 7.62132C7.07843 8.16421 6.32843 8.5 5.5 8.5C3.84315 8.5 2.5 7.15685 2.5 5.5Z" fill="#0060D6"/>
|
|
54
|
+
</svg>
|
|
55
|
+
`,loading:`
|
|
56
|
+
<svg width="10" height="11" viewBox="0 0 10 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
57
|
+
<path d="M5 2.5C3.34315 2.5 2 3.84315 2 5.5C2 7.15685 3.34315 8.5 5 8.5C6.65685 8.5 8 7.15685 8 5.5H10C10 8.26142 7.76142 10.5 5 10.5C2.23858 10.5 0 8.26142 0 5.5C0 2.73858 2.23858 0.5 5 0.5V2.5Z" fill="#0060D6"/>
|
|
58
|
+
</svg>
|
|
59
|
+
`,disconnect:`
|
|
60
|
+
<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
61
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.20658 2.79237C4.59822 2.60495 5.03685 2.5 5.5 2.5C7.15685 2.5 8.5 3.84315 8.5 5.5C8.5 5.96315 8.39505 6.40178 8.20763 6.79342L9.6716 8.25739C10.1951 7.46696 10.5 6.51908 10.5 5.5C10.5 2.73858 8.26142 0.5 5.5 0.5C4.48092 0.5 3.53304 0.804877 2.74261 1.3284L4.20658 2.79237ZM2.79237 4.20658L1.3284 2.74261C0.804877 3.53304 0.5 4.48092 0.5 5.5C0.5 8.26142 2.73858 10.5 5.5 10.5C6.51908 10.5 7.46696 10.1951 8.25739 9.6716L6.79342 8.20763C6.40178 8.39505 5.96315 8.5 5.5 8.5C3.84315 8.5 2.5 7.15685 2.5 5.5C2.5 5.03685 2.60495 4.59822 2.79237 4.20658Z" fill="#677788"/>
|
|
62
|
+
</svg>
|
|
63
|
+
`},nu={props:{type:{type:String,default:"success"}},data(){return{icons:tu}}},ru={class:"status-indicator"},iu=["innerHTML"];function ou(t,r,e,o,a,i){return n.openBlock(),n.createElementBlock("div",ru,[n.createElementVNode("div",{class:n.normalizeClass(["status-indicator-icon",e.type]),innerHTML:a.icons[e.type]},null,10,iu),n.renderSlot(t.$slots,"default",{},void 0,!0)])}const au=be(nu,[["render",ou],["__scopeId","data-v-38ce73f6"]]),lu={name:"IbPanel",mixins:[Pi],props:{showExpandButton:{type:Boolean,default:!1},expandButtonTooltip:{type:String,default:""},isOpen:{type:Boolean,default:!0},error:{type:Boolean,default:!1},hideHeaderDivider:{type:Boolean,default:!1}},watch:{isOpen(){this.isOpenVal=this.isOpen},isOpenVal(){this.$emit("update:isOpen",this.isOpenVal)}},data(){return{isOpenVal:this.isOpen}},components:{IconButton:Xe,Icon:Le},directives:{Tooltip:Et},emits:["update:isOpen"]},su={class:"panel-head"},cu={class:"head-title"},du={class:"divider"},uu={class:"head-content"},fu={class:"panel-body"};function hu(t,r,e,o,a,i){const d=n.resolveComponent("icon"),c=n.resolveComponent("icon-button"),p=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ib-panel",{"panel-error":e.error}])},[n.createElementVNode("div",su,[n.createElementVNode("div",cu,[n.renderSlot(t.$slots,"title",{},void 0,!0)]),n.withDirectives(n.createElementVNode("div",du,null,512),[[n.vShow,!e.hideHeaderDivider]]),n.createElementVNode("div",uu,[n.renderSlot(t.$slots,"head-content",{},void 0,!0)]),e.showExpandButton?n.withDirectives((n.openBlock(),n.createBlock(c,{key:0,class:n.normalizeClass({"toggle-visible-button":!0,active:a.isOpenVal}),kind:"ghost",type:"button",onClick:r[0]||(r[0]=s=>a.isOpenVal=!a.isOpenVal)},{default:n.withCtx(()=>[n.createVNode(d,{name:"chevron-down-outline"})]),_:1},8,["class"])),[[p,e.expandButtonTooltip]]):n.createCommentVNode("",!0)]),n.createVNode(n.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",fu,[n.renderSlot(t.$slots,"body",{},void 0,!0)],512),[[n.vShow,a.isOpenVal]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const pu=be(lu,[["render",hu],["__scopeId","data-v-5d452f83"]]),mu={props:{showCloseIcon:{type:Boolean,default:!1},active:{type:Boolean,default:!1},error:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{hasIcon(){var t;return(t=this.$slots)==null?void 0:t.icon}},components:{Icon:Le}},gu=["disabled"],yu={key:0,class:"ib-chips-icon-wrapper"},bu={key:1,class:"ib-chips-close-wrapper"};function vu(t,r,e,o,a,i){const d=n.resolveComponent("icon");return n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass({"ib-chips":!0,"ib-chips-active":e.active,"ib-chips-error":e.error,"ib-chips-disabled":e.disabled}),disabled:e.disabled},[i.hasIcon?(n.openBlock(),n.createElementBlock("span",yu,[n.renderSlot(t.$slots,"icon",{class:"ib-chips-icon"},void 0,!0)])):n.createCommentVNode("",!0),n.renderSlot(t.$slots,"default",{},void 0,!0),e.showCloseIcon?(n.openBlock(),n.createElementBlock("span",bu,[n.createVNode(d,{class:"ib-chips-icon",name:"close-outline"})])):n.createCommentVNode("",!0)],10,gu)}const _u=be(mu,[["render",vu],["__scopeId","data-v-0a159535"]]),$u={name:"IbInputGroup",props:{supportText:{type:String,default:""},disabled:{type:Boolean,default:!1}}},wu={key:0,class:"support-text"};function ku(t,r,e,o,a,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ib-form-group",{disabled:e.disabled}])},[n.renderSlot(t.$slots,"default"),e.supportText.length?(n.openBlock(),n.createElementBlock("p",wu,n.toDisplayString(e.supportText),1)):n.createCommentVNode("",!0)],2)}const Cu=be($u,[["render",ku]]),qr={name:"IbInputGroup",props:{labelText:{type:String,default:""},required:{type:Boolean,required:!1},horizontal:{type:Boolean,default:!1},errorMessage:{type:String,default:""},infoText:{type:String,default:""},height:{type:String,default:"290px"},tooltipPosition:{type:String}},components:{IbLabel:kn,IbAlert:Rt}},Bo=()=>{n.useCssVars(t=>({f99cce84:t.height}))},Po=qr.setup;qr.setup=Po?(t,r)=>(Bo(),Po(t,r)):Bo;const Eu={class:"ib-checkbox-group-content"};function Ou(t,r,e,o,a,i){const d=n.resolveComponent("ib-label"),c=n.resolveComponent("ib-alert");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ib-checkbox-group",{"ib-checkbox-group-horizontal":e.horizontal}])},[e.labelText.length?(n.openBlock(),n.createBlock(d,{key:0,class:"ib-checkbox-group-label",required:e.required,"info-text":e.infoText,"tooltip-position":e.tooltipPosition},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.labelText),1)]),_:1},8,["required","info-text","tooltip-position"])):n.createCommentVNode("",!0),e.errorMessage.length?(n.openBlock(),n.createBlock(c,{key:1,class:"ib-error-message"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1})):n.createCommentVNode("",!0),n.createElementVNode("div",Eu,[n.renderSlot(t.$slots,"default")])],2)}const Su=be(qr,[["render",Ou]]),Tu={name:"IbRadio",props:{modelValue:"",label:String,error:{type:Boolean,default:!1},name:{type:String},id:{type:String,default(){return dt()}},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{uid:dt()}},mounted(){this.checked=this.isChecked},methods:{checkHandler(){this.$emit("update:modelValue",this.value)}},computed:{classes(){return{"ib-radio":!0,"has-error":this.error,"radio-filled":this.isChecked,"radio-disabled":this.disabled}},isChecked(){return this.modelValue===this.value}}},xu=t=>(n.pushScopeId("data-v-48bfd634"),t=t(),n.popScopeId(),t),Nu=["for","aria-checked"],Au=["name","id","value","checked","disabled"],Du=xu(()=>n.createElementVNode("span",{class:"ib-radio-input"},null,-1)),Mu={key:0,class:"ib-radio-label"};function Iu(t,r,e,o,a,i){var d,c;return n.openBlock(),n.createElementBlock("label",{role:"radio",class:n.normalizeClass(i.classes),for:e.id,"aria-checked":i.isChecked},[n.createElementVNode("input",{type:"radio",name:e.name,id:e.id,value:e.value,checked:i.isChecked,disabled:e.disabled,ref:"radio",onChange:r[0]||(r[0]=(...p)=>i.checkHandler&&i.checkHandler(...p))},null,40,Au),n.createElementVNode("span",{class:n.normalizeClass(["ib-radio-body",{"without-text":!((d=e.label)!=null&&d.length)}])},[Du,(c=e.label)!=null&&c.length?(n.openBlock(),n.createElementBlock("span",Mu,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0)],2)],10,Nu)}const Bu=be(Tu,[["render",Iu],["__scopeId","data-v-48bfd634"]]),Pu={props:{characterLimit:{type:[String,Number],required:!0},characterLength:{type:[String,Number],required:!0}}},Lu={class:"character-count"},Ru={key:0,class:"val-limit"},ju={class:"val-length"},Vu={class:"val-limit"},Fu={key:2,class:"val-length error"};function qu(t,r,e,o,a,i){return n.openBlock(),n.createElementBlock("div",Lu,[e.characterLength?e.characterLimit>=e.characterLength?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("p",ju,n.toDisplayString(e.characterLength),1),n.createTextVNode(" / "),n.createElementVNode("p",Vu,n.toDisplayString(e.characterLimit),1)],64)):(n.openBlock(),n.createElementBlock("p",Fu,n.toDisplayString(e.characterLimit-e.characterLength),1)):(n.openBlock(),n.createElementBlock("p",Ru,"Max "+n.toDisplayString(e.characterLimit),1))])}const Hr=be(Pu,[["render",qu],["__scopeId","data-v-f7d02439"]]),Hu={name:"IbTextarea",props:{disabled:{type:Boolean,default:!1},id:{type:String,default(){return dt()}},error:{type:Boolean,default:!1},characterLimit:{type:Number,default:null},errorMessage:{type:String,default:""},characterLimitErrorMessage:{type:String,default:""},value:{type:String,default:""}},watch:{value(){this.val=this.value},val(){this.$emit("update:value",this.val)}},data(){return{val:this.value}},methods:{onInput(){this.$emit("input",this.val)},onFocusOut(t){this.$el.contains(t.relatedTarget)||this.$emit("blur",this.val)}},computed:{characterOverLimit(){return!!this.characterLimit&&this.val.length>this.characterLimit},classes(){const t=["ib-textarea"];return(this.error||this.errorMessage.length||this.characterOverLimit)&&t.push("error"),t}},components:{IbAlert:Rt,IbCharacterCount:Hr},emits:["input","blur","update:value"],inheritAttrs:!1},zu=["id","disabled"],Uu={class:"textarea-actions"};function Ku(t,r,e,o,a,i){const d=n.resolveComponent("ib-character-count"),c=n.resolveComponent("ib-alert");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["textarea-wrapper",{disabled:e.disabled,hasActins:t.$slots.actions}]),onFocusout:r[2]||(r[2]=(...p)=>i.onFocusOut&&i.onFocusOut(...p))},[e.characterLimit?(n.openBlock(),n.createBlock(d,{key:0,"character-limit":e.characterLimit,"character-length":a.val.length},null,8,["character-limit","character-length"])):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1},512),[[n.vShow,e.errorMessage.length]]),n.withDirectives(n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.characterLimitErrorMessage),1)]),_:1},512),[[n.vShow,e.characterLimitErrorMessage.length&&i.characterOverLimit]]),n.withDirectives(n.createElementVNode("textarea",n.mergeProps(t.$attrs,{"onUpdate:modelValue":r[0]||(r[0]=p=>a.val=p),id:e.id,onInput:r[1]||(r[1]=(...p)=>i.onInput&&i.onInput(...p)),class:["ib-textarea",i.classes],disabled:e.disabled}),null,16,zu),[[n.vModelText,a.val]]),n.createElementVNode("div",Uu,[n.renderSlot(t.$slots,"actions",{},void 0,!0)])],34)}const Gu=be(Hu,[["render",Ku],["__scopeId","data-v-cca370ff"]]);var zr=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],rn={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return typeof console<"u"&&console.warn(t)},getWeek:function(t){var r=new Date(t.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var e=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},On={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var r=t%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},ot=function(t,r){return r===void 0&&(r=2),("000"+t).slice(r*-1)},ft=function(t){return t===!0?1:0};function Lo(t,r){var e;return function(){var o=this,a=arguments;clearTimeout(e),e=setTimeout(function(){return t.apply(o,a)},r)}}var Ur=function(t){return t instanceof Array?t:[t]};function Qe(t,r,e){if(e===!0)return t.classList.add(r);t.classList.remove(r)}function De(t,r,e){var o=window.document.createElement(t);return r=r||"",e=e||"",o.className=r,e!==void 0&&(o.textContent=e),o}function ar(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Ro(t,r){if(r(t))return t;if(t.parentNode)return Ro(t.parentNode,r)}function lr(t,r){var e=De("div","numInputWrapper"),o=De("input","numInput "+t),a=De("span","arrowUp"),i=De("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?o.type="number":(o.type="text",o.pattern="\\d*"),r!==void 0)for(var d in r)o.setAttribute(d,r[d]);return e.appendChild(o),e.appendChild(a),e.appendChild(i),e}function st(t){try{if(typeof t.composedPath=="function"){var r=t.composedPath();return r[0]}return t.target}catch{return t.target}}var Kr=function(){},sr=function(t,r,e){return e.months[r?"shorthand":"longhand"][t]},Wu={D:Kr,F:function(t,r,e){t.setMonth(e.months.longhand.indexOf(r))},G:function(t,r){t.setHours((t.getHours()>=12?12:0)+parseFloat(r))},H:function(t,r){t.setHours(parseFloat(r))},J:function(t,r){t.setDate(parseFloat(r))},K:function(t,r,e){t.setHours(t.getHours()%12+12*ft(new RegExp(e.amPM[1],"i").test(r)))},M:function(t,r,e){t.setMonth(e.months.shorthand.indexOf(r))},S:function(t,r){t.setSeconds(parseFloat(r))},U:function(t,r){return new Date(parseFloat(r)*1e3)},W:function(t,r,e){var o=parseInt(r),a=new Date(t.getFullYear(),0,2+(o-1)*7,0,0,0,0);return a.setDate(a.getDate()-a.getDay()+e.firstDayOfWeek),a},Y:function(t,r){t.setFullYear(parseFloat(r))},Z:function(t,r){return new Date(r)},d:function(t,r){t.setDate(parseFloat(r))},h:function(t,r){t.setHours((t.getHours()>=12?12:0)+parseFloat(r))},i:function(t,r){t.setMinutes(parseFloat(r))},j:function(t,r){t.setDate(parseFloat(r))},l:Kr,m:function(t,r){t.setMonth(parseFloat(r)-1)},n:function(t,r){t.setMonth(parseFloat(r)-1)},s:function(t,r){t.setSeconds(parseFloat(r))},u:function(t,r){return new Date(parseFloat(r))},w:Kr,y:function(t,r){t.setFullYear(2e3+parseFloat(r))}},zt={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Sn={Z:function(t){return t.toISOString()},D:function(t,r,e){return r.weekdays.shorthand[Sn.w(t,r,e)]},F:function(t,r,e){return sr(Sn.n(t,r,e)-1,!1,r)},G:function(t,r,e){return ot(Sn.h(t,r,e))},H:function(t){return ot(t.getHours())},J:function(t,r){return r.ordinal!==void 0?t.getDate()+r.ordinal(t.getDate()):t.getDate()},K:function(t,r){return r.amPM[ft(t.getHours()>11)]},M:function(t,r){return sr(t.getMonth(),!0,r)},S:function(t){return ot(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,r,e){return e.getWeek(t)},Y:function(t){return ot(t.getFullYear(),4)},d:function(t){return ot(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return ot(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,r){return r.weekdays.longhand[t.getDay()]},m:function(t){return ot(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},jo=function(t){var r=t.config,e=r===void 0?rn:r,o=t.l10n,a=o===void 0?On:o,i=t.isMobile,d=i===void 0?!1:i;return function(c,p,s){var h=s||a;return e.formatDate!==void 0&&!d?e.formatDate(c,p,h):p.split("").map(function(f,l,u){return Sn[f]&&u[l-1]!=="\\"?Sn[f](c,h,e):f!=="\\"?f:""}).join("")}},Gr=function(t){var r=t.config,e=r===void 0?rn:r,o=t.l10n,a=o===void 0?On:o;return function(i,d,c,p){if(!(i!==0&&!i)){var s=p||a,h,f=i;if(i instanceof Date)h=new Date(i.getTime());else if(typeof i!="string"&&i.toFixed!==void 0)h=new Date(i);else if(typeof i=="string"){var l=d||(e||rn).dateFormat,u=String(i).trim();if(u==="today")h=new Date,c=!0;else if(e&&e.parseDate)h=e.parseDate(i,l);else if(/Z$/.test(u)||/GMT$/.test(u))h=new Date(i);else{for(var _=void 0,g=[],$=0,v=0,b="";$<l.length;$++){var y=l[$],m=y==="\\",w=l[$-1]==="\\"||m;if(zt[y]&&!w){b+=zt[y];var x=new RegExp(b).exec(i);x&&(_=!0)&&g[y!=="Y"?"push":"unshift"]({fn:Wu[y],val:x[++v]})}else m||(b+=".")}h=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),g.forEach(function(S){var T=S.fn,M=S.val;return h=T(h,M,s)||h}),h=_?h:void 0}}if(!(h instanceof Date&&!isNaN(h.getTime()))){e.errorHandler(new Error("Invalid date provided: "+f));return}return c===!0&&h.setHours(0,0,0,0),h}}};function ct(t,r,e){return e===void 0&&(e=!0),e!==!1?new Date(t.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):t.getTime()-r.getTime()}var Yu=function(t,r,e){return t>Math.min(r,e)&&t<Math.max(r,e)},Wr=function(t,r,e){return t*3600+r*60+e},Zu=function(t){var r=Math.floor(t/3600),e=(t-r*3600)/60;return[r,e,t-r*3600-e*60]},Ju={DAY:864e5};function Yr(t){var r=t.defaultHour,e=t.defaultMinute,o=t.defaultSeconds;if(t.minDate!==void 0){var a=t.minDate.getHours(),i=t.minDate.getMinutes(),d=t.minDate.getSeconds();r<a&&(r=a),r===a&&e<i&&(e=i),r===a&&e===i&&o<d&&(o=t.minDate.getSeconds())}if(t.maxDate!==void 0){var c=t.maxDate.getHours(),p=t.maxDate.getMinutes();r=Math.min(r,c),r===c&&(e=Math.min(p,e)),r===c&&e===p&&(o=t.maxDate.getSeconds())}return{hours:r,minutes:e,seconds:o}}typeof Object.assign!="function"&&(Object.assign=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var o=function(c){c&&Object.keys(c).forEach(function(p){return t[p]=c[p]})},a=0,i=r;a<i.length;a++){var d=i[a];o(d)}return t});var Ge=function(){return Ge=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++){r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ge.apply(this,arguments)},Vo=function(){for(var t=0,r=0,e=arguments.length;r<e;r++)t+=arguments[r].length;for(var o=Array(t),a=0,r=0;r<e;r++)for(var i=arguments[r],d=0,c=i.length;d<c;d++,a++)o[a]=i[d];return o},Xu=300;function Qu(t,r){var e={config:Ge(Ge({},rn),je.defaultConfig),l10n:On};e.parseDate=Gr({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=g,e._setHoursFromDate=l,e._positionCalendar=ne,e.changeMonth=D,e.changeYear=U,e.clear=A,e.close=I,e.onMouseOver=he,e._createElement=De,e.createDay=x,e.destroy=H,e.isEnabled=Z,e.jumpToDate=b,e.updateValue=rt,e.open=we,e.redraw=ie,e.set=He,e.setDate=Ne,e.toggle=Gt;function o(){e.utils={getDaysInMonth:function(R,V){return R===void 0&&(R=e.currentMonth),V===void 0&&(V=e.currentYear),R===1&&(V%4===0&&V%100!==0||V%400===0)?29:e.l10n.daysInMonth[R]}}}function a(){e.element=e.input=t,e.isOpen=!1,Re(),Q(),nt(),Se(),o(),e.isMobile||w(),v(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&l(e.config.noCalendar?e.latestSelectedDateObj:void 0),rt(!1)),c();var R=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&R&&ne(),Me("onReady")}function i(){var R;return((R=e.calendarContainer)===null||R===void 0?void 0:R.getRootNode()).activeElement||document.activeElement}function d(R){return R.bind(e)}function c(){var R=e.config;R.weekNumbers===!1&&R.showMonths===1||R.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){var V=(e.days.offsetWidth+1)*R.showMonths;e.daysContainer.style.width=V+"px",e.calendarContainer.style.width=V+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function p(R){if(e.selectedDates.length===0){var V=e.config.minDate===void 0||ct(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),Y=Yr(e.config);V.setHours(Y.hours,Y.minutes,Y.seconds,V.getMilliseconds()),e.selectedDates=[V],e.latestSelectedDateObj=V}R!==void 0&&R.type!=="blur"&&Wt(R);var X=e._input.value;f(),rt(),e._input.value!==X&&e._debouncedChange()}function s(R,V){return R%12+12*ft(V===e.l10n.amPM[1])}function h(R){switch(R%24){case 0:case 12:return 12;default:return R%12}}function f(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var R=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,V=(parseInt(e.minuteElement.value,10)||0)%60,Y=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(R=s(R,e.amPM.textContent));var X=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&ct(e.latestSelectedDateObj,e.config.minDate,!0)===0,oe=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&ct(e.latestSelectedDateObj,e.config.maxDate,!0)===0;if(e.config.maxTime!==void 0&&e.config.minTime!==void 0&&e.config.minTime>e.config.maxTime){var se=Wr(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),ye=Wr(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),ue=Wr(R,V,Y);if(ue>ye&&ue<se){var Ce=Zu(se);R=Ce[0],V=Ce[1],Y=Ce[2]}}else{if(oe){var de=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;R=Math.min(R,de.getHours()),R===de.getHours()&&(V=Math.min(V,de.getMinutes())),V===de.getMinutes()&&(Y=Math.min(Y,de.getSeconds()))}if(X){var ge=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;R=Math.max(R,ge.getHours()),R===ge.getHours()&&V<ge.getMinutes()&&(V=ge.getMinutes()),V===ge.getMinutes()&&(Y=Math.max(Y,ge.getSeconds()))}}u(R,V,Y)}}function l(R){var V=R||e.latestSelectedDateObj;V&&V instanceof Date&&u(V.getHours(),V.getMinutes(),V.getSeconds())}function u(R,V,Y){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(R%24,V,Y||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=ot(e.config.time_24hr?R:(12+R)%12+12*ft(R%12===0)),e.minuteElement.value=ot(V),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[ft(R>=12)]),e.secondElement!==void 0&&(e.secondElement.value=ot(Y)))}function _(R){var V=st(R),Y=parseInt(V.value)+(R.delta||0);(Y/1e3>1||R.key==="Enter"&&!/[^\d]/.test(Y.toString()))&&U(Y)}function g(R,V,Y,X){if(V instanceof Array)return V.forEach(function(oe){return g(R,oe,Y,X)});if(R instanceof Array)return R.forEach(function(oe){return g(oe,V,Y,X)});R.addEventListener(V,Y,X),e._handlers.push({remove:function(){return R.removeEventListener(V,Y,X)}})}function $(){Me("onChange")}function v(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(Y){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+Y+"]"),function(X){return g(X,"click",e[Y])})}),e.isMobile){Bn();return}var R=Lo(ve,50);if(e._debouncedChange=Lo($,Xu),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&g(e.daysContainer,"mouseover",function(Y){e.config.mode==="range"&&he(st(Y))}),g(e._input,"keydown",ce),e.calendarContainer!==void 0&&g(e.calendarContainer,"keydown",ce),!e.config.inline&&!e.config.static&&g(window,"resize",R),window.ontouchstart!==void 0?g(window.document,"touchstart",L):g(window.document,"mousedown",L),g(window.document,"focus",L,{capture:!0}),e.config.clickOpens===!0&&(g(e._input,"focus",e.open),g(e._input,"click",e.open)),e.daysContainer!==void 0&&(g(e.monthNav,"click",Nt),g(e.monthNav,["keyup","increment"],_),g(e.daysContainer,"click",me)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var V=function(Y){return st(Y).select()};g(e.timeContainer,["increment"],p),g(e.timeContainer,"blur",p,{capture:!0}),g(e.timeContainer,"click",y),g([e.hourElement,e.minuteElement],["focus","click"],V),e.secondElement!==void 0&&g(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&g(e.amPM,"click",function(Y){p(Y)})}e.config.allowInput&&g(e._input,"blur",re)}function b(R,V){var Y=R!==void 0?e.parseDate(R):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),X=e.currentYear,oe=e.currentMonth;try{Y!==void 0&&(e.currentYear=Y.getFullYear(),e.currentMonth=Y.getMonth())}catch(se){se.message="Invalid date supplied: "+Y,e.config.errorHandler(se)}V&&e.currentYear!==X&&(Me("onYearChange"),N()),V&&(e.currentYear!==X||e.currentMonth!==oe)&&Me("onMonthChange"),e.redraw()}function y(R){var V=st(R);~V.className.indexOf("arrow")&&m(R,V.classList.contains("arrowUp")?1:-1)}function m(R,V,Y){var X=R&&st(R),oe=Y||X&&X.parentNode&&X.parentNode.firstChild,se=Vt("increment");se.delta=V,oe&&oe.dispatchEvent(se)}function w(){var R=window.document.createDocumentFragment();if(e.calendarContainer=De("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(R.appendChild(G()),e.innerContainer=De("div","flatpickr-innerContainer"),e.config.weekNumbers){var V=j(),Y=V.weekWrapper,X=V.weekNumbers;e.innerContainer.appendChild(Y),e.weekNumbers=X,e.weekWrapper=Y}e.rContainer=De("div","flatpickr-rContainer"),e.rContainer.appendChild(te()),e.daysContainer||(e.daysContainer=De("div","flatpickr-days"),e.daysContainer.tabIndex=-1),O(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),R.appendChild(e.innerContainer)}e.config.enableTime&&R.appendChild(W()),Qe(e.calendarContainer,"rangeMode",e.config.mode==="range"),Qe(e.calendarContainer,"animate",e.config.animate===!0),Qe(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(R);var oe=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!oe&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){var se=De("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(se,e.element),se.appendChild(e.element),e.altInput&&se.appendChild(e.altInput),se.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function x(R,V,Y,X){var oe=Z(V,!0),se=De("span",R,V.getDate().toString());return se.dateObj=V,se.$i=X,se.setAttribute("aria-label",e.formatDate(V,e.config.ariaDateFormat)),R.indexOf("hidden")===-1&&ct(V,e.now)===0&&(e.todayDateElem=se,se.classList.add("today"),se.setAttribute("aria-current","date")),oe?(se.tabIndex=-1,yt(V)&&(se.classList.add("selected"),e.selectedDateElem=se,e.config.mode==="range"&&(Qe(se,"startRange",e.selectedDates[0]&&ct(V,e.selectedDates[0],!0)===0),Qe(se,"endRange",e.selectedDates[1]&&ct(V,e.selectedDates[1],!0)===0),R==="nextMonthDay"&&se.classList.add("inRange")))):se.classList.add("flatpickr-disabled"),e.config.mode==="range"&&xt(V)&&!yt(V)&&se.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&R!=="prevMonthDay"&&X%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(V)+"</span>"),Me("onDayCreate",se),se}function S(R){R.focus(),e.config.mode==="range"&&he(R)}function T(R){for(var V=R>0?0:e.config.showMonths-1,Y=R>0?e.config.showMonths:-1,X=V;X!=Y;X+=R)for(var oe=e.daysContainer.children[X],se=R>0?0:oe.children.length-1,ye=R>0?oe.children.length:-1,ue=se;ue!=ye;ue+=R){var Ce=oe.children[ue];if(Ce.className.indexOf("hidden")===-1&&Z(Ce.dateObj))return Ce}}function M(R,V){for(var Y=R.className.indexOf("Month")===-1?R.dateObj.getMonth():e.currentMonth,X=V>0?e.config.showMonths:-1,oe=V>0?1:-1,se=Y-e.currentMonth;se!=X;se+=oe)for(var ye=e.daysContainer.children[se],ue=Y-e.currentMonth===se?R.$i+V:V<0?ye.children.length-1:0,Ce=ye.children.length,de=ue;de>=0&&de<Ce&&de!=(V>0?Ce:-1);de+=oe){var ge=ye.children[de];if(ge.className.indexOf("hidden")===-1&&Z(ge.dateObj)&&Math.abs(R.$i-de)>=Math.abs(V))return S(ge)}e.changeMonth(oe),E(T(oe),0)}function E(R,V){var Y=i(),X=J(Y||document.body),oe=R!==void 0?R:X?Y:e.selectedDateElem!==void 0&&J(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&J(e.todayDateElem)?e.todayDateElem:T(V>0?1:-1);oe===void 0?e._input.focus():X?M(oe,V):S(oe)}function C(R,V){for(var Y=(new Date(R,V,1).getDay()-e.l10n.firstDayOfWeek+7)%7,X=e.utils.getDaysInMonth((V-1+12)%12,R),oe=e.utils.getDaysInMonth(V,R),se=window.document.createDocumentFragment(),ye=e.config.showMonths>1,ue=ye?"prevMonthDay hidden":"prevMonthDay",Ce=ye?"nextMonthDay hidden":"nextMonthDay",de=X+1-Y,ge=0;de<=X;de++,ge++)se.appendChild(x("flatpickr-day "+ue,new Date(R,V-1,de),de,ge));for(de=1;de<=oe;de++,ge++)se.appendChild(x("flatpickr-day",new Date(R,V,de),de,ge));for(var Te=oe+1;Te<=42-Y&&(e.config.showMonths===1||ge%7!==0);Te++,ge++)se.appendChild(x("flatpickr-day "+Ce,new Date(R,V+1,Te%oe),Te,ge));var Be=De("div","dayContainer");return Be.appendChild(se),Be}function O(){if(e.daysContainer!==void 0){ar(e.daysContainer),e.weekNumbers&&ar(e.weekNumbers);for(var R=document.createDocumentFragment(),V=0;V<e.config.showMonths;V++){var Y=new Date(e.currentYear,e.currentMonth,1);Y.setMonth(e.currentMonth+V),R.appendChild(C(Y.getFullYear(),Y.getMonth()))}e.daysContainer.appendChild(R),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&he()}}function N(){if(!(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")){var R=function(X){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&X<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&X>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var V=0;V<12;V++)if(R(V)){var Y=De("option","flatpickr-monthDropdown-month");Y.value=new Date(e.currentYear,V).getMonth().toString(),Y.textContent=sr(V,e.config.shorthandCurrentMonth,e.l10n),Y.tabIndex=-1,e.currentMonth===V&&(Y.selected=!0),e.monthsDropdownContainer.appendChild(Y)}}}function P(){var R=De("div","flatpickr-month"),V=window.document.createDocumentFragment(),Y;e.config.showMonths>1||e.config.monthSelectorType==="static"?Y=De("span","cur-month"):(e.monthsDropdownContainer=De("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),g(e.monthsDropdownContainer,"change",function(ye){var ue=st(ye),Ce=parseInt(ue.value,10);e.changeMonth(Ce-e.currentMonth),Me("onMonthChange")}),N(),Y=e.monthsDropdownContainer);var X=lr("cur-year",{tabindex:"-1"}),oe=X.getElementsByTagName("input")[0];oe.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&oe.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(oe.setAttribute("max",e.config.maxDate.getFullYear().toString()),oe.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var se=De("div","flatpickr-current-month");return se.appendChild(Y),se.appendChild(X),V.appendChild(se),R.appendChild(V),{container:R,yearElement:oe,monthElement:Y}}function F(){ar(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var R=e.config.showMonths;R--;){var V=P();e.yearElements.push(V.yearElement),e.monthElements.push(V.monthElement),e.monthNav.appendChild(V.container)}e.monthNav.appendChild(e.nextMonthNav)}function G(){return e.monthNav=De("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=De("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=De("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,F(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(R){e.__hidePrevMonthArrow!==R&&(Qe(e.prevMonthNav,"flatpickr-disabled",R),e.__hidePrevMonthArrow=R)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(R){e.__hideNextMonthArrow!==R&&(Qe(e.nextMonthNav,"flatpickr-disabled",R),e.__hideNextMonthArrow=R)}}),e.currentYearElement=e.yearElements[0],We(),e.monthNav}function W(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var R=Yr(e.config);e.timeContainer=De("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var V=De("span","flatpickr-time-separator",":"),Y=lr("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=Y.getElementsByTagName("input")[0];var X=lr("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=X.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=ot(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?R.hours:h(R.hours)),e.minuteElement.value=ot(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():R.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(Y),e.timeContainer.appendChild(V),e.timeContainer.appendChild(X),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var oe=lr("flatpickr-second");e.secondElement=oe.getElementsByTagName("input")[0],e.secondElement.value=ot(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():R.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(De("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(oe)}return e.config.time_24hr||(e.amPM=De("span","flatpickr-am-pm",e.l10n.amPM[ft((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function te(){e.weekdayContainer?ar(e.weekdayContainer):e.weekdayContainer=De("div","flatpickr-weekdays");for(var R=e.config.showMonths;R--;){var V=De("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(V)}return K(),e.weekdayContainer}function K(){if(e.weekdayContainer){var R=e.l10n.firstDayOfWeek,V=Vo(e.l10n.weekdays.shorthand);R>0&&R<V.length&&(V=Vo(V.splice(R,V.length),V.splice(0,R)));for(var Y=e.config.showMonths;Y--;)e.weekdayContainer.children[Y].innerHTML=`
|
|
64
|
+
<span class='flatpickr-weekday'>
|
|
65
|
+
`+V.join("</span><span class='flatpickr-weekday'>")+`
|
|
66
|
+
</span>
|
|
67
|
+
`}}function j(){e.calendarContainer.classList.add("hasWeeks");var R=De("div","flatpickr-weekwrapper");R.appendChild(De("span","flatpickr-weekday",e.l10n.weekAbbreviation));var V=De("div","flatpickr-weeks");return R.appendChild(V),{weekWrapper:R,weekNumbers:V}}function D(R,V){V===void 0&&(V=!0);var Y=V?R:R-e.currentMonth;Y<0&&e._hidePrevMonthArrow===!0||Y>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=Y,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,Me("onYearChange"),N()),O(),Me("onMonthChange"),We())}function A(R,V){if(R===void 0&&(R=!0),V===void 0&&(V=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,V===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var Y=Yr(e.config),X=Y.hours,oe=Y.minutes,se=Y.seconds;u(X,oe,se)}e.redraw(),R&&Me("onChange")}function I(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),Me("onClose")}function H(){e.config!==void 0&&Me("onDestroy");for(var R=e._handlers.length;R--;)e._handlers[R].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var V=e.calendarContainer.parentNode;if(V.lastChild&&V.removeChild(V.lastChild),V.parentNode){for(;V.firstChild;)V.parentNode.insertBefore(V.firstChild,V);V.parentNode.removeChild(V)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(Y){try{delete e[Y]}catch{}})}function q(R){return e.calendarContainer.contains(R)}function L(R){if(e.isOpen&&!e.config.inline){var V=st(R),Y=q(V),X=V===e.input||V===e.altInput||e.element.contains(V)||R.path&&R.path.indexOf&&(~R.path.indexOf(e.input)||~R.path.indexOf(e.altInput)),oe=!X&&!Y&&!q(R.relatedTarget),se=!e.config.ignoredFocusElements.some(function(ye){return ye.contains(V)});oe&&se&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&p(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function U(R){if(!(!R||e.config.minDate&&R<e.config.minDate.getFullYear()||e.config.maxDate&&R>e.config.maxDate.getFullYear())){var V=R,Y=e.currentYear!==V;e.currentYear=V||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),Y&&(e.redraw(),Me("onYearChange"),N())}}function Z(R,V){var Y;V===void 0&&(V=!0);var X=e.parseDate(R,void 0,V);if(e.config.minDate&&X&&ct(X,e.config.minDate,V!==void 0?V:!e.minDateHasTime)<0||e.config.maxDate&&X&&ct(X,e.config.maxDate,V!==void 0?V:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(X===void 0)return!1;for(var oe=!!e.config.enable,se=(Y=e.config.enable)!==null&&Y!==void 0?Y:e.config.disable,ye=0,ue=void 0;ye<se.length;ye++){if(ue=se[ye],typeof ue=="function"&&ue(X))return oe;if(ue instanceof Date&&X!==void 0&&ue.getTime()===X.getTime())return oe;if(typeof ue=="string"){var Ce=e.parseDate(ue,void 0,!0);return Ce&&Ce.getTime()===X.getTime()?oe:!oe}else if(typeof ue=="object"&&X!==void 0&&ue.from&&ue.to&&X.getTime()>=ue.from.getTime()&&X.getTime()<=ue.to.getTime())return oe}return!oe}function J(R){return e.daysContainer!==void 0?R.className.indexOf("hidden")===-1&&R.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(R):!1}function re(R){var V=R.target===e._input,Y=e._input.value.trimEnd()!==bt();V&&Y&&!(R.relatedTarget&&q(R.relatedTarget))&&e.setDate(e._input.value,!0,R.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function ce(R){var V=st(R),Y=e.config.wrap?t.contains(V):V===e._input,X=e.config.allowInput,oe=e.isOpen&&(!X||!Y),se=e.config.inline&&Y&&!X;if(R.keyCode===13&&Y){if(X)return e.setDate(e._input.value,!0,V===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),V.blur();e.open()}else if(q(V)||oe||se){var ye=!!e.timeContainer&&e.timeContainer.contains(V);switch(R.keyCode){case 13:ye?(R.preventDefault(),p(),$e()):me(R);break;case 27:R.preventDefault(),$e();break;case 8:case 46:Y&&!e.config.allowInput&&(R.preventDefault(),e.clear());break;case 37:case 39:if(!ye&&!Y){R.preventDefault();var ue=i();if(e.daysContainer!==void 0&&(X===!1||ue&&J(ue))){var Ce=R.keyCode===39?1:-1;R.ctrlKey?(R.stopPropagation(),D(Ce),E(T(1),0)):E(void 0,Ce)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:R.preventDefault();var de=R.keyCode===40?1:-1;e.daysContainer&&V.$i!==void 0||V===e.input||V===e.altInput?R.ctrlKey?(R.stopPropagation(),U(e.currentYear-de),E(T(1),0)):ye||E(void 0,de*7):V===e.currentYearElement?U(e.currentYear-de):e.config.enableTime&&(!ye&&e.hourElement&&e.hourElement.focus(),p(R),e._debouncedChange());break;case 9:if(ye){var ge=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(Ue){return Ue}),Te=ge.indexOf(V);if(Te!==-1){var Be=ge[Te+(R.shiftKey?-1:1)];R.preventDefault(),(Be||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(V)&&R.shiftKey&&(R.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&V===e.amPM)switch(R.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],f(),rt();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],f(),rt();break}(Y||q(V))&&Me("onKeyDown",R)}function he(R,V){if(V===void 0&&(V="flatpickr-day"),!(e.selectedDates.length!==1||R&&(!R.classList.contains(V)||R.classList.contains("flatpickr-disabled")))){for(var Y=R?R.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),X=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),oe=Math.min(Y,e.selectedDates[0].getTime()),se=Math.max(Y,e.selectedDates[0].getTime()),ye=!1,ue=0,Ce=0,de=oe;de<se;de+=Ju.DAY)Z(new Date(de),!0)||(ye=ye||de>oe&&de<se,de<X&&(!ue||de>ue)?ue=de:de>X&&(!Ce||de<Ce)&&(Ce=de));var ge=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+V));ge.forEach(function(Te){var Be=Te.dateObj,Ue=Be.getTime(),At=ue>0&&Ue<ue||Ce>0&&Ue>Ce;if(At){Te.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(vt){Te.classList.remove(vt)});return}else if(ye&&!At)return;["startRange","inRange","endRange","notAllowed"].forEach(function(vt){Te.classList.remove(vt)}),R!==void 0&&(R.classList.add(Y<=e.selectedDates[0].getTime()?"startRange":"endRange"),X<Y&&Ue===X?Te.classList.add("startRange"):X>Y&&Ue===X&&Te.classList.add("endRange"),Ue>=ue&&(Ce===0||Ue<=Ce)&&Yu(Ue,X,Y)&&Te.classList.add("inRange"))})}}function ve(){e.isOpen&&!e.config.static&&!e.config.inline&&ne()}function we(R,V){if(V===void 0&&(V=e._positionElement),e.isMobile===!0){if(R){R.preventDefault();var Y=st(R);Y&&Y.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),Me("onOpen");return}else if(e._input.disabled||e.config.inline)return;var X=e.isOpen;e.isOpen=!0,X||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),Me("onOpen"),ne(V)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(R===void 0||!e.timeContainer.contains(R.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function Ee(R){return function(V){var Y=e.config["_"+R+"Date"]=e.parseDate(V,e.config.dateFormat),X=e.config["_"+(R==="min"?"max":"min")+"Date"];Y!==void 0&&(e[R==="min"?"minDateHasTime":"maxDateHasTime"]=Y.getHours()>0||Y.getMinutes()>0||Y.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(oe){return Z(oe)}),!e.selectedDates.length&&R==="min"&&l(Y),rt()),e.daysContainer&&(ie(),Y!==void 0?e.currentYearElement[R]=Y.getFullYear().toString():e.currentYearElement.removeAttribute(R),e.currentYearElement.disabled=!!X&&Y!==void 0&&X.getFullYear()===Y.getFullYear())}}function Re(){var R=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],V=Ge(Ge({},JSON.parse(JSON.stringify(t.dataset||{}))),r),Y={};e.config.parseDate=V.parseDate,e.config.formatDate=V.formatDate,Object.defineProperty(e.config,"enable",{get:function(){return e.config._enable},set:function(ge){e.config._enable=gt(ge)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(ge){e.config._disable=gt(ge)}});var X=V.mode==="time";if(!V.dateFormat&&(V.enableTime||X)){var oe=je.defaultConfig.dateFormat||rn.dateFormat;Y.dateFormat=V.noCalendar||X?"H:i"+(V.enableSeconds?":S":""):oe+" H:i"+(V.enableSeconds?":S":"")}if(V.altInput&&(V.enableTime||X)&&!V.altFormat){var se=je.defaultConfig.altFormat||rn.altFormat;Y.altFormat=V.noCalendar||X?"h:i"+(V.enableSeconds?":S K":" K"):se+(" h:i"+(V.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:Ee("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:Ee("max")});var ye=function(ge){return function(Te){e.config[ge==="min"?"_minTime":"_maxTime"]=e.parseDate(Te,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:ye("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:ye("max")}),V.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,Y,V);for(var ue=0;ue<R.length;ue++)e.config[R[ue]]=e.config[R[ue]]===!0||e.config[R[ue]]==="true";zr.filter(function(ge){return e.config[ge]!==void 0}).forEach(function(ge){e.config[ge]=Ur(e.config[ge]||[]).map(d)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ue=0;ue<e.config.plugins.length;ue++){var Ce=e.config.plugins[ue](e)||{};for(var de in Ce)zr.indexOf(de)>-1?e.config[de]=Ur(Ce[de]).map(d).concat(e.config[de]):typeof V[de]>"u"&&(e.config[de]=Ce[de])}V.altInputClass||(e.config.altInputClass=Pe().className+" "+e.config.altInputClass),Me("onParseConfig")}function Pe(){return e.config.wrap?t.querySelector("[data-input]"):t}function Q(){typeof e.config.locale!="object"&&typeof je.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=Ge(Ge({},je.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?je.l10ns[e.config.locale]:void 0),zt.D="("+e.l10n.weekdays.shorthand.join("|")+")",zt.l="("+e.l10n.weekdays.longhand.join("|")+")",zt.M="("+e.l10n.months.shorthand.join("|")+")",zt.F="("+e.l10n.months.longhand.join("|")+")",zt.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var R=Ge(Ge({},r),JSON.parse(JSON.stringify(t.dataset||{})));R.time_24hr===void 0&&je.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=jo(e),e.parseDate=Gr({config:e.config,l10n:e.l10n})}function ne(R){if(typeof e.config.position=="function")return void e.config.position(e,R);if(e.calendarContainer!==void 0){Me("onPreCalendarPosition");var V=R||e._positionElement,Y=Array.prototype.reduce.call(e.calendarContainer.children,(function(Ye,qn){return Ye+qn.offsetHeight}),0),X=e.calendarContainer.offsetWidth,oe=e.config.position.split(" "),se=oe[0],ye=oe.length>1?oe[1]:null,ue=V.getBoundingClientRect(),Ce=window.innerHeight-ue.bottom,de=se==="above"||se!=="below"&&Ce<Y&&ue.top>Y,ge=window.pageYOffset+ue.top+(de?-Y-2:V.offsetHeight+2);if(Qe(e.calendarContainer,"arrowTop",!de),Qe(e.calendarContainer,"arrowBottom",de),!e.config.inline){var Te=window.pageXOffset+ue.left,Be=!1,Ue=!1;ye==="center"?(Te-=(X-ue.width)/2,Be=!0):ye==="right"&&(Te-=X-ue.width,Ue=!0),Qe(e.calendarContainer,"arrowLeft",!Be&&!Ue),Qe(e.calendarContainer,"arrowCenter",Be),Qe(e.calendarContainer,"arrowRight",Ue);var At=window.document.body.offsetWidth-(window.pageXOffset+ue.right),vt=Te+X>window.document.body.offsetWidth,Pn=At+X>window.document.body.offsetWidth;if(Qe(e.calendarContainer,"rightMost",vt),!e.config.static)if(e.calendarContainer.style.top=ge+"px",!vt)e.calendarContainer.style.left=Te+"px",e.calendarContainer.style.right="auto";else if(!Pn)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=At+"px";else{var Yt=ae();if(Yt===void 0)return;var ze=window.document.body.offsetWidth,Ln=Math.max(0,ze/2-X/2),Rn=".flatpickr-calendar.centerMost:before",jn=".flatpickr-calendar.centerMost:after",Vn=Yt.cssRules.length,Fn="{left:"+ue.left+"px;right:auto;}";Qe(e.calendarContainer,"rightMost",!1),Qe(e.calendarContainer,"centerMost",!0),Yt.insertRule(Rn+","+jn+Fn,Vn),e.calendarContainer.style.left=Ln+"px",e.calendarContainer.style.right="auto"}}}}function ae(){for(var R=null,V=0;V<document.styleSheets.length;V++){var Y=document.styleSheets[V];if(Y.cssRules){try{Y.cssRules}catch{continue}R=Y;break}}return R??le()}function le(){var R=document.createElement("style");return document.head.appendChild(R),R.sheet}function ie(){e.config.noCalendar||e.isMobile||(N(),We(),O())}function $e(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function me(R){R.preventDefault(),R.stopPropagation();var V=function(ge){return ge.classList&&ge.classList.contains("flatpickr-day")&&!ge.classList.contains("flatpickr-disabled")&&!ge.classList.contains("notAllowed")},Y=Ro(st(R),V);if(Y!==void 0){var X=Y,oe=e.latestSelectedDateObj=new Date(X.dateObj.getTime()),se=(oe.getMonth()<e.currentMonth||oe.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=X,e.config.mode==="single")e.selectedDates=[oe];else if(e.config.mode==="multiple"){var ye=yt(oe);ye?e.selectedDates.splice(parseInt(ye),1):e.selectedDates.push(oe)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=oe,e.selectedDates.push(oe),ct(oe,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(ge,Te){return ge.getTime()-Te.getTime()}));if(f(),se){var ue=e.currentYear!==oe.getFullYear();e.currentYear=oe.getFullYear(),e.currentMonth=oe.getMonth(),ue&&(Me("onYearChange"),N()),Me("onMonthChange")}if(We(),O(),rt(),!se&&e.config.mode!=="range"&&e.config.showMonths===1?S(X):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){var Ce=e.config.mode==="single"&&!e.config.enableTime,de=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(Ce||de)&&$e()}$()}}var _e={locale:[Q,K],showMonths:[F,c,te],minDate:[b],maxDate:[b],positionElement:[Kt],clickOpens:[function(){e.config.clickOpens===!0?(g(e._input,"focus",e.open),g(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function He(R,V){if(R!==null&&typeof R=="object"){Object.assign(e.config,R);for(var Y in R)_e[Y]!==void 0&&_e[Y].forEach(function(X){return X()})}else e.config[R]=V,_e[R]!==void 0?_e[R].forEach(function(X){return X()}):zr.indexOf(R)>-1&&(e.config[R]=Ur(V));e.redraw(),rt(!0)}function Ve(R,V){var Y=[];if(R instanceof Array)Y=R.map(function(X){return e.parseDate(X,V)});else if(R instanceof Date||typeof R=="number")Y=[e.parseDate(R,V)];else if(typeof R=="string")switch(e.config.mode){case"single":case"time":Y=[e.parseDate(R,V)];break;case"multiple":Y=R.split(e.config.conjunction).map(function(X){return e.parseDate(X,V)});break;case"range":Y=R.split(e.l10n.rangeSeparator).map(function(X){return e.parseDate(X,V)});break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(R)));e.selectedDates=e.config.allowInvalidPreload?Y:Y.filter(function(X){return X instanceof Date&&Z(X,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(X,oe){return X.getTime()-oe.getTime()})}function Ne(R,V,Y){if(V===void 0&&(V=!1),Y===void 0&&(Y=e.config.dateFormat),R!==0&&!R||R instanceof Array&&R.length===0)return e.clear(V);Ve(R,Y),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),b(void 0,V),l(),e.selectedDates.length===0&&e.clear(!1),rt(V),V&&Me("onChange")}function gt(R){return R.slice().map(function(V){return typeof V=="string"||typeof V=="number"||V instanceof Date?e.parseDate(V,void 0,!0):V&&typeof V=="object"&&V.from&&V.to?{from:e.parseDate(V.from,void 0),to:e.parseDate(V.to,void 0)}:V}).filter(function(V){return V})}function Se(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var R=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);R&&Ve(R,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function nt(){if(e.input=Pe(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=De(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),Kt()}function Kt(){e._positionElement=e.config.positionElement||e._input}function Bn(){var R=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=De("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=R,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=R==="datetime-local"?"Y-m-d\\TH:i:S":R==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}g(e.mobileInput,"change",function(V){e.setDate(st(V).value,!1,e.mobileFormatStr),Me("onChange"),Me("onClose")})}function Gt(R){if(e.isOpen===!0)return e.close();e.open(R)}function Me(R,V){if(e.config!==void 0){var Y=e.config[R];if(Y!==void 0&&Y.length>0)for(var X=0;Y[X]&&X<Y.length;X++)Y[X](e.selectedDates,e.input.value,e,V);R==="onChange"&&(e.input.dispatchEvent(Vt("change")),e.input.dispatchEvent(Vt("input")))}}function Vt(R){var V=document.createEvent("Event");return V.initEvent(R,!0,!0),V}function yt(R){for(var V=0;V<e.selectedDates.length;V++){var Y=e.selectedDates[V];if(Y instanceof Date&&ct(Y,R)===0)return""+V}return!1}function xt(R){return e.config.mode!=="range"||e.selectedDates.length<2?!1:ct(R,e.selectedDates[0])>=0&&ct(R,e.selectedDates[1])<=0}function We(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(R,V){var Y=new Date(e.currentYear,e.currentMonth,1);Y.setMonth(e.currentMonth+V),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[V].textContent=sr(Y.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=Y.getMonth().toString(),R.value=Y.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function bt(R){var V=R||(e.config.altInput?e.config.altFormat:e.config.dateFormat);return e.selectedDates.map(function(Y){return e.formatDate(Y,V)}).filter(function(Y,X,oe){return e.config.mode!=="range"||e.config.enableTime||oe.indexOf(Y)===X}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function rt(R){R===void 0&&(R=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=bt(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=bt(e.config.altFormat)),R!==!1&&Me("onValueUpdate")}function Nt(R){var V=st(R),Y=e.prevMonthNav.contains(V),X=e.nextMonthNav.contains(V);Y||X?D(Y?-1:1):e.yearElements.indexOf(V)>=0?V.select():V.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):V.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Wt(R){R.preventDefault();var V=R.type==="keydown",Y=st(R),X=Y;e.amPM!==void 0&&Y===e.amPM&&(e.amPM.textContent=e.l10n.amPM[ft(e.amPM.textContent===e.l10n.amPM[0])]);var oe=parseFloat(X.getAttribute("min")),se=parseFloat(X.getAttribute("max")),ye=parseFloat(X.getAttribute("step")),ue=parseInt(X.value,10),Ce=R.delta||(V?R.which===38?1:-1:0),de=ue+ye*Ce;if(typeof X.value<"u"&&X.value.length===2){var ge=X===e.hourElement,Te=X===e.minuteElement;de<oe?(de=se+de+ft(!ge)+(ft(ge)&&ft(!e.amPM)),Te&&m(void 0,-1,e.hourElement)):de>se&&(de=X===e.hourElement?de-se-ft(!e.amPM):oe,Te&&m(void 0,1,e.hourElement)),e.amPM&&ge&&(ye===1?de+ue===23:Math.abs(de-ue)>ye)&&(e.amPM.textContent=e.l10n.amPM[ft(e.amPM.textContent===e.l10n.amPM[0])]),X.value=ot(de)}}return a(),e}function on(t,r){for(var e=Array.prototype.slice.call(t).filter(function(d){return d instanceof HTMLElement}),o=[],a=0;a<e.length;a++){var i=e[a];try{if(i.getAttribute("data-fp-omit")!==null)continue;i._flatpickr!==void 0&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=Qu(i,r||{}),o.push(i._flatpickr)}catch(d){console.error(d)}}return o.length===1?o[0]:o}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return on(this,t)},HTMLElement.prototype.flatpickr=function(t){return on([this],t)});var je=function(t,r){return typeof t=="string"?on(window.document.querySelectorAll(t),r):t instanceof Node?on([t],r):on(t,r)};je.defaultConfig={},je.l10ns={en:Ge({},On),default:Ge({},On)},je.localize=function(t){je.l10ns.default=Ge(Ge({},je.l10ns.default),t)},je.setDefaults=function(t){je.defaultConfig=Ge(Ge({},je.defaultConfig),t)},je.parseDate=Gr({}),je.formatDate=jo({}),je.compareDates=ct,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(t){return on(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof t=="string"?parseInt(t,10):t))},typeof window<"u"&&(window.flatpickr=je);var cr={exports:{}},ef=cr.exports,Fo;function tf(){return Fo||(Fo=1,(function(t,r){(function(e,o){t.exports=o()})(ef,(function(){/*! *****************************************************************************
|
|
68
|
+
Copyright (c) Microsoft Corporation.
|
|
69
|
+
|
|
70
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
71
|
+
purpose with or without fee is hereby granted.
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
74
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
75
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
76
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
77
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
78
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
79
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
80
|
+
***************************************************************************** */function e(){for(var a=0,i=0,d=arguments.length;i<d;i++)a+=arguments[i].length;for(var c=Array(a),p=0,i=0;i<d;i++)for(var s=arguments[i],h=0,f=s.length;h<f;h++,p++)c[p]=s[h];return c}function o(a){return a===void 0&&(a={}),function(i){var d="",c,p,s,h=function(){if(a.input){if(c=a.input instanceof Element?a.input:window.document.querySelector(a.input),!c){i.config.errorHandler(new Error("Invalid input element specified"));return}i.config.wrap&&(c=c.querySelector("[data-input]"))}else c=i._input.cloneNode(),c.removeAttribute("id"),c._flatpickr=void 0;if(c.value){var l=i.parseDate(c.value);l&&i.selectedDates.push(l)}c.setAttribute("data-fp-omit",""),i.config.clickOpens&&(i._bind(c,["focus","click"],function(){i.selectedDates[1]&&(i.latestSelectedDateObj=i.selectedDates[1],i._setHoursFromDate(i.selectedDates[1]),i.jumpToDate(i.selectedDates[1])),p=!0,i.isOpen=!1,i.open(void 0,a.position==="left"?i._input:c)}),i._bind(i._input,["focus","click"],function(u){u.preventDefault(),i.isOpen=!1,i.open()})),i.config.allowInput&&i._bind(c,"keydown",function(u){u.key==="Enter"&&(i.setDate([i.selectedDates[0],c.value],!0,d),c.click())}),a.input||i._input.parentNode&&i._input.parentNode.insertBefore(c,i._input.nextSibling)},f={onParseConfig:function(){i.config.mode="range",d=i.config.altInput?i.config.altFormat:i.config.dateFormat},onReady:function(){h(),i.config.ignoredFocusElements.push(c),i.config.allowInput?(i._input.removeAttribute("readonly"),c.removeAttribute("readonly")):c.setAttribute("readonly","readonly"),i._bind(i._input,"focus",function(){i.latestSelectedDateObj=i.selectedDates[0],i._setHoursFromDate(i.selectedDates[0]),p=!1,i.jumpToDate(i.selectedDates[0])}),i.config.allowInput&&i._bind(i._input,"keydown",function(l){l.key==="Enter"&&i.setDate([i._input.value,i.selectedDates[1]],!0,d)}),i.setDate(i.selectedDates,!1),f.onValueUpdate(i.selectedDates),i.loadedPlugins.push("range")},onPreCalendarPosition:function(){p&&(i._positionElement=c,setTimeout(function(){i._positionElement=i._input},0))},onChange:function(){i.selectedDates.length||setTimeout(function(){i.selectedDates.length||(c.value="",s=[])},10),p&&setTimeout(function(){c.focus()},0)},onDestroy:function(){a.input||c.parentNode&&c.parentNode.removeChild(c)},onValueUpdate:function(l){var u,_,g;if(c){if(s=!s||l.length>=s.length?e(l):s,s.length>l.length){var $=l[0],v=p?[s[0],$]:[$,s[1]];v[0].getTime()>v[1].getTime()&&(p?v[0]=v[1]:v[1]=v[0]),i.setDate(v,!1),s=e(v)}u=i.selectedDates.map(function(b){return i.formatDate(b,d)}),_=u[0],i._input.value=_===void 0?"":_,g=u[1],c.value=g===void 0?"":g}}};return f}}return o}))})(cr)),cr.exports}var nf=tf();const rf=Cn(nf),of=`
|
|
81
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
82
|
+
<path d="M10.25 3.5L5.75 8L10.25 12.5" stroke="#1A1A1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
83
|
+
</svg>
|
|
84
|
+
`,af=`
|
|
85
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
86
|
+
<path d="M5.75 3.5L10.25 8L5.75 12.5" stroke="#1A1A1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
87
|
+
</svg>
|
|
88
|
+
`,lf="single",Zr="range",sf={props:{name:{type:String,default:"Date"},modelValue:[String,Array],value:[String,Array],placeholder:{type:String,default:""},endDatePlaceholder:{type:String,default:""},required:{type:Boolean,default:!1},config:{type:Object,default:()=>{}},mode:{type:String,default:lf},ariaLabel:{type:String,default:""},endDateAriaLabel:{type:String,default:""},label:{type:String,default:""},endDateLabel:{type:String,default:""},supportText:{type:String,default:""},endDateSupportText:{type:String,default:""},errorMessage:{type:String,default:""},disabled:{type:Boolean,default:!1}},mounted(){document.addEventListener("keyup",this.onDocumentKeyDown,!0),this.$refs.inputsWrapper.addEventListener("keyup",this.backspaceHandler),this.$nextTick(()=>{this.initFlatpickr()})},watch:{config(){this.initFlatpickr()},value(){this.initFlatpickr()},disabled(){this.$nextTick(()=>{this.initFlatpickr()})},modelValue(){var r;if(JSON.stringify(this.modelValue)===JSON.stringify(this.data))return;let t;Array.isArray(this.modelValue)?t=this.modelValue[0]&&this.modelValue[1]?this.modelValue:[]:t=this.modelValue,(r=this.flat)==null||r.setDate(t,!0)}},data(){return{pickerOptions:{},data:this.modelValue,flat:null,isOpen:!1,isOpenEndDate:!1}},methods:{initFlatpickr(){this.flat=new je(this.$refs.date,this.pickerConfigs())},pickerConfigs(){var o,a;const t=document.querySelectorAll(".calendar-icon");let r={dateFormat:"Y-m-d",altInput:!0,altFormat:"Y-m-d",position:"left",mode:this.mode,appendTo:this.$refs.dropdown,prevArrow:of,nextArrow:af,ignoredFocusElements:Array.from(t),locale:{weekdays:{shorthand:["S","M","T","W","T","F","S"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},onReady(i,d,c){c.setDate(d,!0)},onChange:(i,d)=>this.onChange(d),onClose:()=>this.onClose()};this.mode===Zr&&(r.plugins=[new rf({input:this.$refs.toDate})]),(this.value||this.modelValue)&&(this.mode===Zr?r.defaultDate=this.modelValue.length?[this.modelValue[0],this.modelValue[1]]:[(o=this.value)==null?void 0:o[0],(a=this.value)==null?void 0:a[1]]:r.defaultDate=this.modelValue?this.modelValue:this.value);const e=Object.assign({},r,this.config);return this.pickerOptions=e,e},onClose(){this.triggerChange(),this.$nextTick(()=>{this.isOpen=!1,this.isOpenEndDate=!1,this.$emit("blur")})},onChange(t){this.mode===Zr?this.data=t.split(" to "):this.data=t},onDocumentKeyDown(t){t.keyCode===Ir&&this.onClose()},onKeydownEndField(t){t.key==="ArrowDown"&&this.flat.selectedDateElem.focus()},backspaceHandler(t){t.keyCode===ys&&(this.$emit("input",""),this.$emit("update:modelValue",""))},triggerChange(){setTimeout(()=>{if(this.pickerOptions.mode==="range"){let t=this.data;t.length<2?(this.$emit("input",""),this.$emit("update:modelValue",this.data)):(this.$emit("input",[t[0],t[1]]),this.$emit("update:modelValue",this.data))}else this.data===""?(this.$emit("input",""),this.$emit("update:modelValue",this.data)):(this.$emit("input",this.data),this.$emit("update:modelValue",this.data)),this.$emit("blur")})},open(){this.isOpen||(this.isOpen=!0,this.isOpenEndDate=!1,this.flat.open())},openEndDate(){this.isOpen=!1,this.isOpenEndDate=!0,this.$refs.toDate.click()}},computed:{values(){var t;return this.data?(t=this.data)==null?void 0:t.split(" to "):[]}},beforeUnmount(){document.removeEventListener("keyup",this.onDocumentKeyDown),this.$refs.inputsWrapper.removeEventListener("keyup",this.backspaceHandler)},components:{IbIcon:Le,IbLabel:kn,IbAlert:Rt},emits:["input","update:modelValue"]},cf={ref:"inputsWrapper",class:"inputs-wrapper"},df={class:"input-group-wrapper"},uf=["aria-label"],ff=["placeholder","name","disabled"],hf={ref:"dropdown",class:"dropdown"},pf={key:1,class:"support-text"},mf={key:0,class:"input-group-wrapper"},gf=["aria-label"],yf=["placeholder"],bf={key:1,class:"support-text"};function vf(t,r,e,o,a,i){const d=n.resolveComponent("ib-alert"),c=n.resolveComponent("ib-label"),p=n.resolveComponent("ib-icon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ib-flatpickr-wrapper",{"has-labels":e.label.length||e.endDateLabel.length,"has-label":e.label.length,"has-error":e.errorMessage.length,"is-disabled":e.disabled,"is-range":e.mode==="range"}])},[e.errorMessage.length?(n.openBlock(),n.createBlock(d,{key:0,class:"error-message"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1})):n.createCommentVNode("",!0),n.createElementVNode("div",cf,[n.createElementVNode("div",df,[e.label.length?(n.openBlock(),n.createBlock(c,{key:0,class:"label",required:e.required},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.label),1)]),_:1},8,["required"])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["input-wrapper",{active:a.isOpen}]),onClick:r[0]||(r[0]=(...s)=>i.open&&i.open(...s))},[n.createElementVNode("label",{"aria-label":e.ariaLabel},[n.createElementVNode("input",{placeholder:e.placeholder,name:e.name,ref:"date",id:"date",disabled:e.disabled,class:"date-picker-input"},null,8,ff)],8,uf),n.createVNode(p,{name:"today-outline",class:"calendar-icon"})],2),n.createElementVNode("div",hf,null,512),e.supportText.length?(n.openBlock(),n.createElementBlock("p",pf,n.toDisplayString(e.supportText),1)):n.createCommentVNode("",!0)]),e.mode==="range"?(n.openBlock(),n.createElementBlock("div",mf,[e.endDateLabel.length?(n.openBlock(),n.createBlock(c,{key:0,class:"end-date-label label",required:e.required},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.endDateLabel),1)]),_:1},8,["required"])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["input-wrapper",{active:a.isOpenEndDate}]),onClick:r[2]||(r[2]=(...s)=>i.openEndDate&&i.openEndDate(...s))},[n.createElementVNode("label",{"aria-label":e.endDateAriaLabel},[n.createElementVNode("input",{class:"date-picker-input",placeholder:e.endDatePlaceholder,ref:"toDate",onKeydown:r[1]||(r[1]=(...s)=>i.onKeydownEndField&&i.onKeydownEndField(...s))},null,40,yf)],8,gf),n.createVNode(p,{name:"today-outline",class:"calendar-icon"})],2),e.endDateSupportText.length?(n.openBlock(),n.createElementBlock("p",bf,n.toDisplayString(e.endDateSupportText),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)],512)],2)}const _f=be(sf,[["render",vf]]),$f=[["Afghanistan (افغانستان)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (الجزائر)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (البحرين)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (جزر القمر)","km","269"],["Congo (DRC) (République démocratique du Congo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (مصر)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (ایران)","ir","98"],["Iraq (العراق)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (ישראל)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (الأردن)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (الكويت)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (لبنان)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (ليبيا)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (موريتانيا)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (المغرب)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["North Macedonia (Северна Македонија)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (عُمان)","om","968"],["Pakistan (پاکستان)","pk","92"],["Palau","pw","680"],["Palestine (فلسطين)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (قطر)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (المملكة العربية السعودية)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (جنوب السودان)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්රී ලංකාව)","lk","94"],["Sudan (السودان)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (سوريا)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (تونس)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (الإمارات العربية المتحدة)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (الصحراء الغربية)","eh","212",1,["5288","5289"]],["Yemen (اليمن)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],wf=$f.map(([t,r,e,o=0,a=null])=>({name:t,iso2:r.toUpperCase(),dialCode:e,priority:o,areaCodes:a}));function kf(){return fetch("https://ip2c.org/s").then(t=>t.text()).then(t=>{const r=(t||"").toString();if(!r||r[0]!=="1")throw new Error("unable to fetch the country");return r.substr(2,2)})}function Cf(t,r){if(t.setSelectionRange)t.focus(),t.setSelectionRange(r,r);else if("createTextRange"in t&&typeof t.createTextRange=="function"){const e=t.createTextRange();e.collapse(!0),e.moveEnd("character",r),e.moveStart("character",r),e.select()}}const Ef=[{name:"allCountries",type:Array,default:wf,description:"All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",inDemo:!1},{name:"autoFormat",type:Boolean,default:!0,description:"Auto update the input to the formatted phone number when it's valid",inDemo:!0},{name:"customValidate",type:[Boolean,RegExp],default:!1,description:"Custom validation RegExp for input",inDemo:!1},{name:"defaultCountry",default:"",type:[String,Number],description:"Default country (by iso2 or dialCode), will override the country fetched from IP address of user",inDemo:!1},{name:"disabled",default:!1,type:Boolean,description:"Disable <code>vue-tel-input</code>, including the input & flag dropdown",inDemo:!1},{name:"autoDefaultCountry",default:!0,type:Boolean,description:"To fetch default country based on IP address of user",inDemo:!1},{name:"dropdownOptions",type:Object,description:"Options for dropdown, see below",inDemo:!1},{name:"dropdownOptions.disabled",default:!1,type:Boolean,description:"Disable dropdown",inDemo:!1},{name:"dropdownOptions.showDialCodeInList",default:!0,type:Boolean,description:"Show dial code in the dropdown list",inDemo:!0},{name:"dropdownOptions.showDialCodeInSelection",default:!1,type:Boolean,description:"Show dial code in the dropdown selection",inDemo:!0},{name:"dropdownOptions.showFlags",default:!0,type:Boolean,description:"Show flags in the dropdown selection and list",inDemo:!0},{name:"dropdownOptions.showSearchBox",default:!1,type:Boolean,description:"Show country search box",inDemo:!0},{name:"dropdownOptions.searchBoxPlaceholder",default:"",type:String,description:"Placeholder for the search box",inDemo:!1},{name:"dropdownOptions.tabindex",default:0,type:Number,description:"Native dropdown <code>tabindex</code> attribute",inDemo:!1},{name:"ignoredCountries",default:[],type:Array,description:"List of countries will NOT be shown on the dropdown",inDemo:!1},{name:"inputOptions",type:Object,description:"Options for input, see below",inDemo:!1},{name:"inputOptions.autocomplete",type:String,default:"on",description:"Native input <code>autocomplete</code> attribute",inDemo:!1},{name:"inputOptions.autofocus",type:Boolean,default:!1,description:"Native input <code>autofocus</code> attribute",inDemo:!1},{name:"inputOptions.aria-describedby",default:"",type:String,description:"Native input <code>aria-describedby</code> attribute",inDemo:!1},{name:"inputOptions.id",default:"",type:String,description:"Native input <code>id</code> attribute",inDemo:!1},{name:"inputOptions.maxlength",default:25,type:Number,description:"Native input <code>maxlength</code> attribute",inDemo:!1},{name:"inputOptions.name",default:"telephone",type:String,description:"Native input <code>name</code> attribute",inDemo:!1},{name:"inputOptions.showDialCode",default:!1,type:Boolean,description:"Show dial code in input",inDemo:!1},{name:"inputOptions.placeholder",default:"Enter a phone number",type:String,description:"Placeholder for the input",inDemo:!1},{name:"inputOptions.readonly",default:!1,type:Boolean,description:"Native input <code>readonly</code> attribute",inDemo:!1},{name:"inputOptions.required",default:!1,type:Boolean,description:"Native input <code>required</code> attribute",inDemo:!1},{name:"inputOptions.tabindex",default:0,type:Number,description:"Native input <code>tabindex</code> attribute",inDemo:!1},{name:"inputOptions.type",default:"tel",type:String,description:"Native input <code>type</code> attribute",inDemo:!1},{name:"inputOptions.styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the <code>input</code>",inDemo:!1},{name:"invalidMsg",default:"",type:String,description:"",inDemo:!1},{name:"mode",default:"auto",type:String,description:"Allowed values: <code>'auto'</code> (Default set by phone), <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",inDemo:!0,options:["auto","national","international"]},{name:"onlyCountries",default:[],type:Array,description:"List of countries will be shown on the dropdown",inDemo:!1},{name:"preferredCountries",default:[],type:Array,description:"Preferred countries list, will be on top of the dropdown",inDemo:!1},{name:"styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the wrapper",inDemo:!1},{name:"validCharactersOnly",default:!1,type:Boolean,description:"Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",inDemo:!1}],Of=[...Ef].reduce((t,r)=>{if(r.name.includes(".")){const[e,o]=r.name.split(".");t[e]?Object.assign(t[e],{[o]:r.default}):Object.assign(t,{[e]:{[o]:r.default}})}else Object.assign(t,{[r.name]:r.default});return t},{}),qo={options:{...Of}};function et(t){const r=qo.options[t];return typeof r>"u"?qo.options[t]:r}function Tn(t){return t==null?void 0:t.toLowerCase()}function xn(t){return t==null?void 0:t.toUpperCase()}const Sf={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-2]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[047]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|62|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-8]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:5056(?:[0-35-9]\\d|4[468])|73020\\d)\\d{4}|(?:4722|505[2-57-9]|983[289])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Tf(t,r){var e=Array.prototype.slice.call(r);return e.push(Sf),t.apply(this,e)}function Jr(t){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jr(t)}function xf(t,r,e){return Object.defineProperty(t,"prototype",{writable:!1}),t}function Nf(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Af(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&Nn(t,r)}function Df(t){var r=zo();return function(){var e=An(t),o;if(r){var a=An(this).constructor;o=Reflect.construct(e,arguments,a)}else o=e.apply(this,arguments);return Mf(this,o)}}function Mf(t,r){if(r&&(Jr(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ho(t)}function Ho(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xr(t){var r=typeof Map=="function"?new Map:void 0;return Xr=function(e){if(e===null||!If(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(e))return r.get(e);r.set(e,o)}function o(){return dr(e,arguments,An(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Nn(o,e)},Xr(t)}function dr(t,r,e){return zo()?dr=Reflect.construct:dr=function(o,a,i){var d=[null];d.push.apply(d,a);var c=Function.bind.apply(o,d),p=new c;return i&&Nn(p,i.prototype),p},dr.apply(null,arguments)}function zo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function If(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Nn(t,r){return Nn=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},Nn(t,r)}function An(t){return An=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},An(t)}var St=(function(t){Af(e,t);var r=Df(e);function e(o){var a;return Nf(this,e),a=r.call(this,o),Object.setPrototypeOf(Ho(a),e.prototype),a.name=a.constructor.name,a}return xf(e)})(Xr(Error)),Qr=2,Bf=17,Pf=3,ht="0-90-9٠-٩۰-۹",Lf="-‐-―−ー-",Rf="//",jf="..",Vf=" ",Ff="()()[]\\[\\]",qf="~⁓∼~",ur="".concat(Lf).concat(Rf).concat(jf).concat(Vf).concat(Ff).concat(qf),ei="++";function Uo(t,r){t=t.split("-"),r=r.split("-");for(var e=t[0].split("."),o=r[0].split("."),a=0;a<3;a++){var i=Number(e[a]),d=Number(o[a]);if(i>d)return 1;if(d>i)return-1;if(!isNaN(i)&&isNaN(d))return 1;if(isNaN(i)&&!isNaN(d))return-1}return t[1]&&r[1]?t[1]>r[1]?1:t[1]<r[1]?-1:0:!t[1]&&r[1]?1:t[1]&&!r[1]?-1:0}var Hf={}.constructor;function fr(t){return t!=null&&t.constructor===Hf}function ti(t){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ti(t)}function hr(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function zf(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function pr(t,r,e){return r&&zf(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Uf="1.2.0",Kf="1.7.35",Ko=" ext. ",Gf=/^\d+$/,tt=(function(){function t(r){hr(this,t),Jf(r),this.metadata=r,Yo.call(this,r)}return pr(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(r){return r!=="001"})}},{key:"getCountryMetadata",value:function(r){return this.metadata.countries[r]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(r){return this.getCountryMetadata(r)!==void 0}},{key:"hasCallingCode",value:function(r){if(this.getCountryCodesForCallingCode(r))return!0;if(this.nonGeographic()){if(this.nonGeographic()[r])return!0}else{var e=this.countryCallingCodes()[r];if(e&&e.length===1&&e[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(r){return this.nonGeographic()?!!this.nonGeographic()[r]:!this.getCountryCodesForCallingCode(r)}},{key:"country",value:function(r){return this.selectNumberingPlan(r)}},{key:"selectNumberingPlan",value:function(r,e){if(r&&Gf.test(r)&&(e=r,r=null),r&&r!=="001"){if(!this.hasCountry(r))throw new Error("Unknown country: ".concat(r));this.numberingPlan=new Go(this.getCountryMetadata(r),this)}else if(e){if(!this.hasCallingCode(e))throw new Error("Unknown calling code: ".concat(e));this.numberingPlan=new Go(this.getNumberingPlanMetadata(e),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(r){var e=this.countryCallingCodes()[r];if(e)return e.length===1&&e[0].length===3?void 0:e}},{key:"getCountryCodeForCallingCode",value:function(r){var e=this.getCountryCodesForCallingCode(r);if(e)return e[0]}},{key:"getNumberingPlanMetadata",value:function(r){var e=this.getCountryCodeForCallingCode(r);if(e)return this.getCountryMetadata(e);if(this.nonGeographic()){var o=this.nonGeographic()[r];if(o)return o}else{var a=this.countryCallingCodes()[r];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(r){return this.numberingPlan.type(r)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(r){return this.selectNumberingPlan(r)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),t})(),Go=(function(){function t(r,e){hr(this,t),this.globalMetadataObject=e,this.metadata=r,Yo.call(this,e.metadata)}return pr(t,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(r){return r[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var r=this,e=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return e.map(function(o){return new Wf(o,r)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(r){return r[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(r){if(this.hasTypes()&&Wo(this.types(),r))return new Zf(Wo(this.types(),r),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ko:this.metadata[13]||Ko}}]),t})(),Wf=(function(){function t(r,e){hr(this,t),this._format=r,this.metadata=e}return pr(t,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!Yf.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t})(),Yf=/^\(?\$1\)?$/,Zf=(function(){function t(r,e){hr(this,t),this.type=r,this.metadata=e}return pr(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),t})();function Wo(t,r){switch(r){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function Jf(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!fr(t)||!fr(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(fr(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+Xf(t)+": "+t,"."))}var Xf=function(t){return ti(t)};function ni(t,r){if(r=new tt(r),r.hasCountry(t))return r.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function Qf(t,r){return r.countries.hasOwnProperty(t)}function Yo(t){var r=t.version;typeof r=="number"?(this.v1=r===1,this.v2=r===2,this.v3=r===3,this.v4=r===4):r?Uo(r,Uf)===-1?this.v2=!0:Uo(r,Kf)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var eh=";ext=",an=function(t){return"([".concat(ht,"]{1,").concat(t,"})")};function Zo(t){var r="20",e="15",o="9",a="6",i="[ \\t,]*",d="[:\\..]?[ \\t,-]*",c="#?",p="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",s="(?:[xx##~~]|int|int)",h="[- ]+",f="[ \\t]*",l="(?:,{2}|;)",u=eh+an(r),_=i+p+d+an(r)+c,g=i+s+d+an(o)+c,$=h+an(a)+"#",v=f+l+d+an(e)+c,b=f+"(?:,)+"+d+an(o)+c;return u+"|"+_+"|"+g+"|"+$+"|"+v+"|"+b}var th="["+ht+"]{"+Qr+"}",nh="["+ei+"]{0,1}(?:["+ur+"]*["+ht+"]){3,}["+ur+ht+"]*",rh=new RegExp("^["+ei+"]{0,1}(?:["+ur+"]*["+ht+"]){1,2}$","i"),ih=nh+"(?:"+Zo()+")?",oh=new RegExp("^"+th+"$|^"+ih+"$","i");function ah(t){return t.length>=Qr&&oh.test(t)}function lh(t){return rh.test(t)}var Jo=new RegExp("(?:"+Zo()+")$","i");function sh(t){var r=t.search(Jo);if(r<0)return{};for(var e=t.slice(0,r),o=t.match(Jo),a=1;a<o.length;){if(o[a])return{number:e,ext:o[a]};a++}}var ch={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function dh(t){return ch[t]}function uh(t,r){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=fh(t))||r){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
89
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fh(t,r){if(t){if(typeof t=="string")return Xo(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Xo(t,r)}}function Xo(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,o=new Array(r);e<r;e++)o[e]=t[e];return o}function Qo(t){for(var r="",e=uh(t.split("")),o;!(o=e()).done;){var a=o.value;r+=hh(a,r)||""}return r}function hh(t,r){return t==="+"?r?void 0:"+":dh(t)}function ri(t,r){return ph(t,void 0,r)}function ph(t,r,e){var o=e.type(r),a=o&&o.possibleLengths()||e.possibleLengths();if(!a)return"IS_POSSIBLE";var i=t.length,d=a[0];return d===i?"IS_POSSIBLE":d>i?"TOO_SHORT":a[a.length-1]<i?"TOO_LONG":a.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function mh(t,r,e){if(r===void 0&&(r={}),e=new tt(e),r.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");e.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!e.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));e.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");e.selectNumberingPlan(t.countryCallingCode)}}if(e.possibleLengths())return ea(t.phone||t.nationalNumber,e);if(t.countryCallingCode&&e.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function ea(t,r){switch(ri(t,r)){case"IS_POSSIBLE":return!0;default:return!1}}function Tt(t,r){return t=t||"",new RegExp("^(?:"+r+")$").test(t)}function gh(t,r){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=yh(t))||r){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
90
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yh(t,r){if(t){if(typeof t=="string")return ta(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ta(t,r)}}function ta(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,o=new Array(r);e<r;e++)o[e]=t[e];return o}var bh=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function ii(t,r,e){if(r=r||{},!(!t.country&&!t.countryCallingCode)){e=new tt(e),e.selectNumberingPlan(t.country,t.countryCallingCode);var o=r.v2?t.nationalNumber:t.phone;if(Tt(o,e.nationalNumberPattern())){if(oi(o,"FIXED_LINE",e))return e.type("MOBILE")&&e.type("MOBILE").pattern()===""||!e.type("MOBILE")||oi(o,"MOBILE",e)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=gh(bh),i;!(i=a()).done;){var d=i.value;if(oi(o,d,e))return d}}}}function oi(t,r,e){return r=e.type(r),!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(t.length)<0?!1:Tt(t,r.pattern())}function vh(t,r,e){if(r=r||{},e=new tt(e),e.selectNumberingPlan(t.country,t.countryCallingCode),e.hasTypes())return ii(t,r,e.metadata)!==void 0;var o=r.v2?t.nationalNumber:t.phone;return Tt(o,e.nationalNumberPattern())}function _h(t,r,e){var o=new tt(e),a=o.getCountryCodesForCallingCode(t);return a?a.filter(function(i){return $h(r,i,e)}):[]}function $h(t,r,e){var o=new tt(e);return o.selectNumberingPlan(r),o.numberingPlan.possibleLengths().indexOf(t.length)>=0}function wh(t){return t.replace(new RegExp("[".concat(ur,"]+"),"g")," ").trim()}var kh=/(\$\d)/;function Ch(t,r,e){var o=e.useInternationalFormat,a=e.withNationalPrefix,i=t.replace(new RegExp(r.pattern()),o?r.internationalFormat():a&&r.nationalPrefixFormattingRule()?r.format().replace(kh,r.nationalPrefixFormattingRule()):r.format());return o?wh(i):i}var Eh=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Oh(t,r,e){var o=new tt(e);if(o.selectNumberingPlan(t,r),o.defaultIDDPrefix())return o.defaultIDDPrefix();if(Eh.test(o.IDDPrefix()))return o.IDDPrefix()}function Sh(t){var r=t.number,e=t.ext;if(!r)return"";if(r[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(r).concat(e?";ext="+e:"")}function Th(t,r){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=xh(t))||r){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
91
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xh(t,r){if(t){if(typeof t=="string")return na(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return na(t,r)}}function na(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,o=new Array(r);e<r;e++)o[e]=t[e];return o}function ra(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function ia(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?ra(Object(e),!0).forEach(function(o){Nh(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ra(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function Nh(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var oa={formatExtension:function(t,r,e){return"".concat(t).concat(e.ext()).concat(r)}};function Ah(t,r,e,o){if(e?e=ia(ia({},oa),e):e=oa,o=new tt(o),t.country&&t.country!=="001"){if(!o.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));o.country(t.country)}else if(t.countryCallingCode)o.selectNumberingPlan(t.countryCallingCode);else return t.phone||"";var a=o.countryCallingCode(),i=e.v2?t.nationalNumber:t.phone,d;switch(r){case"NATIONAL":return i?(d=mr(i,t.carrierCode,"NATIONAL",o,e),ai(d,t.ext,o,e.formatExtension)):"";case"INTERNATIONAL":return i?(d=mr(i,null,"INTERNATIONAL",o,e),d="+".concat(a," ").concat(d),ai(d,t.ext,o,e.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return Sh({number:"+".concat(a).concat(i),ext:t.ext});case"IDD":if(!e.fromCountry)return;var c=Mh(i,t.carrierCode,a,e.fromCountry,o);return ai(c,t.ext,o,e.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(r,'"'))}}function mr(t,r,e,o,a){var i=Dh(o.formats(),t);return i?Ch(t,i,{useInternationalFormat:e==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1)}):t}function Dh(t,r){for(var e=Th(t),o;!(o=e()).done;){var a=o.value;if(a.leadingDigitsPatterns().length>0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(r.search(i)!==0)continue}if(Tt(r,a.pattern()))return a}}function ai(t,r,e,o){return r?o(t,r,e):t}function Mh(t,r,e,o,a){var i=ni(o,a.metadata);if(i===e){var d=mr(t,r,"NATIONAL",a);return e==="1"?e+" "+d:d}var c=Oh(o,void 0,a.metadata);if(c)return"".concat(c," ").concat(e," ").concat(mr(t,null,"INTERNATIONAL",a))}function aa(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function la(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?aa(Object(e),!0).forEach(function(o){Ih(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):aa(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function Ih(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Bh(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Ph(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Lh(t,r,e){return r&&Ph(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Rh=(function(){function t(r,e,o){if(Bh(this,t),!r)throw new TypeError("`country` or `countryCallingCode` not passed");if(!e)throw new TypeError("`nationalNumber` not passed");if(!o)throw new TypeError("`metadata` not passed");var a=Vh(r,o),i=a.country,d=a.countryCallingCode;this.country=i,this.countryCallingCode=d,this.nationalNumber=e,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return o}}return Lh(t,[{key:"setExt",value:function(r){this.ext=r}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:_h(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return mh(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return vh(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var r=new tt(this.getMetadata());return r.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(r){return this.number===r.number&&this.ext===r.ext}},{key:"getType",value:function(){return ii(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(r,e){return Ah(this,r,e?la(la({},e),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(r){return this.format("NATIONAL",r)}},{key:"formatInternational",value:function(r){return this.format("INTERNATIONAL",r)}},{key:"getURI",value:function(r){return this.format("RFC3966",r)}}]),t})(),jh=function(t){return/^[A-Z]{2}$/.test(t)};function Vh(t,r){var e,o,a=new tt(r);return jh(t)?(e=t,a.selectNumberingPlan(e),o=a.countryCallingCode()):o=t,{country:e,countryCallingCode:o}}var Fh=new RegExp("(["+ht+"])");function qh(t,r,e,o){if(r){var a=new tt(o);a.selectNumberingPlan(r,e);var i=new RegExp(a.IDDPrefix());if(t.search(i)===0){t=t.slice(t.match(i)[0].length);var d=t.match(Fh);if(!(d&&d[1]!=null&&d[1].length>0&&d[1]==="0"))return t}}}function Hh(t,r){if(t&&r.numberingPlan.nationalPrefixForParsing()){var e=new RegExp("^(?:"+r.numberingPlan.nationalPrefixForParsing()+")"),o=e.exec(t);if(o){var a,i,d=o.length-1,c=d>0&&o[d];if(r.nationalPrefixTransformRule()&&c)a=t.replace(e,r.nationalPrefixTransformRule()),d>1&&(i=o[1]);else{var p=o[0];a=t.slice(p.length),c&&(i=o[1])}var s;if(c){var h=t.indexOf(o[1]),f=t.slice(0,h);f===r.numberingPlan.nationalPrefix()&&(s=r.numberingPlan.nationalPrefix())}else s=o[0];return{nationalNumber:a,nationalPrefix:s,carrierCode:i}}}return{nationalNumber:t}}function li(t,r){var e=Hh(t,r),o=e.carrierCode,a=e.nationalNumber;if(a!==t){if(!zh(t,a,r))return{nationalNumber:t};if(r.possibleLengths()&&!Uh(a,r))return{nationalNumber:t}}return{nationalNumber:a,carrierCode:o}}function zh(t,r,e){return!(Tt(t,e.nationalNumberPattern())&&!Tt(r,e.nationalNumberPattern()))}function Uh(t,r){switch(ri(t,r)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Kh(t,r,e,o){var a=r?ni(r,o):e;if(t.indexOf(a)===0){o=new tt(o),o.selectNumberingPlan(r,e);var i=t.slice(a.length),d=li(i,o),c=d.nationalNumber,p=li(t,o),s=p.nationalNumber;if(!Tt(s,o.nationalNumberPattern())&&Tt(c,o.nationalNumberPattern())||ri(s,o)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:t}}function Gh(t,r,e,o){if(!t)return{};var a;if(t[0]!=="+"){var i=qh(t,r,e,o);if(i&&i!==t)a=!0,t="+"+i;else{if(r||e){var d=Kh(t,r,e,o),c=d.countryCallingCode,p=d.number;if(c)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:c,number:p}}return{number:t}}}if(t[1]==="0")return{};o=new tt(o);for(var s=2;s-1<=Pf&&s<=t.length;){var h=t.slice(1,s);if(o.hasCallingCode(h))return o.selectNumberingPlan(h),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:h,number:t.slice(s)};s++}return{}}function Wh(t,r){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=Yh(t))||r){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
92
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yh(t,r){if(t){if(typeof t=="string")return sa(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return sa(t,r)}}function sa(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,o=new Array(r);e<r;e++)o[e]=t[e];return o}function Zh(t,r){var e=r.countries,o=r.defaultCountry,a=r.metadata;a=new tt(a);for(var i=[],d=Wh(e),c;!(c=d()).done;){var p=c.value;if(a.country(p),a.leadingDigits()){if(t&&t.search(a.leadingDigits())===0)return p}else if(ii({phone:t,country:p},void 0,a.metadata))if(o){if(p===o)return p;i.push(p)}else return p}if(i.length>0)return i[0]}function Jh(t,r){var e=r.nationalNumber,o=r.defaultCountry,a=r.metadata,i=a.getCountryCodesForCallingCode(t);if(i)return i.length===1?i[0]:Zh(e,{countries:i,defaultCountry:o,metadata:a.metadata})}var ca="+",Xh="[\\-\\.\\(\\)]?",da="(["+ht+"]|"+Xh+")",Qh="^\\"+ca+da+"*["+ht+"]"+da+"*$",e1=new RegExp(Qh,"g"),si=ht,t1="["+si+"]+((\\-)*["+si+"])*",n1="a-zA-Z",r1="["+n1+"]+((\\-)*["+si+"])*",i1="^("+t1+"\\.)*"+r1+"\\.?$",o1=new RegExp(i1,"g"),ua="tel:",ci=";phone-context=",a1=";isub=";function l1(t){var r=t.indexOf(ci);if(r<0)return null;var e=r+ci.length;if(e>=t.length)return"";var o=t.indexOf(";",e);return o>=0?t.substring(e,o):t.substring(e)}function s1(t){return t===null?!0:t.length===0?!1:e1.test(t)||o1.test(t)}function c1(t,r){var e=r.extractFormattedPhoneNumber,o=l1(t);if(!s1(o))throw new St("NOT_A_NUMBER");var a;if(o===null)a=e(t)||"";else{a="",o.charAt(0)===ca&&(a+=o);var i=t.indexOf(ua),d;i>=0?d=i+ua.length:d=0;var c=t.indexOf(ci);a+=t.substring(d,c)}var p=a.indexOf(a1);if(p>0&&(a=a.substring(0,p)),a!=="")return a}var d1=250,u1=new RegExp("["+ei+ht+"]"),f1=new RegExp("[^"+ht+"#]+$");function h1(t,r,e){if(r=r||{},e=new tt(e),r.defaultCountry&&!e.hasCountry(r.defaultCountry))throw r.v2?new St("INVALID_COUNTRY"):new Error("Unknown country: ".concat(r.defaultCountry));var o=m1(t,r.v2,r.extract),a=o.number,i=o.ext,d=o.error;if(!a){if(r.v2)throw d==="TOO_SHORT"?new St("TOO_SHORT"):new St("NOT_A_NUMBER");return{}}var c=y1(a,r.defaultCountry,r.defaultCallingCode,e),p=c.country,s=c.nationalNumber,h=c.countryCallingCode,f=c.countryCallingCodeSource,l=c.carrierCode;if(!e.hasSelectedNumberingPlan()){if(r.v2)throw new St("INVALID_COUNTRY");return{}}if(!s||s.length<Qr){if(r.v2)throw new St("TOO_SHORT");return{}}if(s.length>Bf){if(r.v2)throw new St("TOO_LONG");return{}}if(r.v2){var u=new Rh(h,s,e.metadata);return p&&(u.country=p),l&&(u.carrierCode=l),i&&(u.ext=i),u.__countryCallingCodeSource=f,u}var _=(r.extended?e.hasSelectedNumberingPlan():p)?Tt(s,e.nationalNumberPattern()):!1;return r.extended?{country:p,countryCallingCode:h,carrierCode:l,valid:_,possible:_?!0:!!(r.extended===!0&&e.possibleLengths()&&ea(s,e)),phone:s,ext:i}:_?g1(p,s,i):{}}function p1(t,r,e){if(t){if(t.length>d1){if(e)throw new St("TOO_LONG");return}if(r===!1)return t;var o=t.search(u1);if(!(o<0))return t.slice(o).replace(f1,"")}}function m1(t,r,e){var o=c1(t,{extractFormattedPhoneNumber:function(i){return p1(i,e,r)}});if(!o)return{};if(!ah(o))return lh(o)?{error:"TOO_SHORT"}:{};var a=sh(o);return a.ext?a:{number:o}}function g1(t,r,e){var o={country:t,phone:r};return e&&(o.ext=e),o}function y1(t,r,e,o){var a=Gh(Qo(t),r,e,o.metadata),i=a.countryCallingCodeSource,d=a.countryCallingCode,c=a.number,p;if(d)o.selectNumberingPlan(d);else if(c&&(r||e))o.selectNumberingPlan(r,e),r&&(p=r),d=e||ni(r,o.metadata);else return{};if(!c)return{countryCallingCodeSource:i,countryCallingCode:d};var s=li(Qo(c),o),h=s.nationalNumber,f=s.carrierCode,l=Jh(d,{nationalNumber:h,defaultCountry:r,metadata:o});return l&&(p=l,l==="001"||o.country(p)),{country:p,countryCallingCode:d,countryCallingCodeSource:i,nationalNumber:h,carrierCode:f}}function fa(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function ha(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?fa(Object(e),!0).forEach(function(o){b1(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):fa(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function b1(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function v1(t,r,e){return h1(t,ha(ha({},r),{},{v2:!0}),e)}function pa(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function _1(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?pa(Object(e),!0).forEach(function(o){$1(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):pa(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function $1(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function w1(t,r){return O1(t)||E1(t,r)||C1(t,r)||k1()}function k1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
93
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C1(t,r){if(t){if(typeof t=="string")return ma(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ma(t,r)}}function ma(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,o=new Array(r);e<r;e++)o[e]=t[e];return o}function E1(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var o=[],a=!0,i=!1,d,c;try{for(e=e.call(t);!(a=(d=e.next()).done)&&(o.push(d.value),!(r&&o.length===r));a=!0);}catch(p){i=!0,c=p}finally{try{!a&&e.return!=null&&e.return()}finally{if(i)throw c}}return o}}function O1(t){if(Array.isArray(t))return t}function S1(t){var r=Array.prototype.slice.call(t),e=w1(r,4),o=e[0],a=e[1],i=e[2],d=e[3],c,p,s;if(typeof o=="string")c=o;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")d?(p=i,s=d):(p=void 0,s=i),a&&(p=_1({defaultCountry:a},p));else if(fr(a))i?(p=a,s=i):s=a;else throw new Error("Invalid second argument: ".concat(a));return{text:c,options:p,metadata:s}}function ga(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function ya(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?ga(Object(e),!0).forEach(function(o){T1(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ga(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function T1(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function x1(t,r,e){r&&r.defaultCountry&&!Qf(r.defaultCountry,e)&&(r=ya(ya({},r),{},{defaultCountry:void 0}));try{return v1(t,r,e)}catch(o){if(!(o instanceof St))throw o}}function N1(){var t=S1(arguments),r=t.text,e=t.options,o=t.metadata;return x1(r,e,o)}function di(){return Tf(N1,arguments)}const A1={beforeMount(t,r,e){if(typeof r.value!="function"){const o=e.context.name;let a=`[Vue-click-outside:] provided expression ${r.expression} is not a function, but has to be`;o&&(a+=`Found in component ${o}`),console.warn(a)}t.clickOutsideEvent=function(o){const a=o.composedPath?o.composedPath():o.path;t===o.target||t.contains(o.target)||a.includes(t)||r.value(o,t)},document.body.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.body.removeEventListener("click",t.clickOutsideEvent)}},D1=["aria-expanded","tabindex"],M1={class:"vti__selection"},I1={key:1,class:"vti__country-code"},B1={class:"vti__dropdown-arrow"},P1={key:0,class:"vti__search_box_container"},L1=["placeholder"],R1=["onClick","onMousemove","aria-selected"],j1={key:1},V1=["type","autocomplete","autofocus","disabled","id","maxlength","name","placeholder","readonly","required","tabindex","value","aria-describedby"],F1={directives:{Outside:nr},props:{modelValue:{type:String},value:String,inputName:{type:String,default:"phone"},autoDefaultCountry:{type:Boolean,default:!0},ignoredCountries:{type:Array,default:()=>[]},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},disabled:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0}},emits:["update:modelValue","onReady"],components:{VueTelInput:n.defineComponent({name:"VueTelInput",directives:{clickOutside:A1},__name:"vue-tel-input",props:n.mergeModels({allCountries:{type:Array,default:()=>et("allCountries")},autoFormat:{type:Boolean,default:()=>et("autoFormat")},customValidate:{type:[Boolean,RegExp],default:()=>et("customValidate")},defaultCountry:{type:[String,Number],default:()=>et("defaultCountry")},disabled:{type:Boolean,default:()=>et("disabled")},autoDefaultCountry:{type:Boolean,default:()=>et("autoDefaultCountry")},dropdownOptions:{type:Object,default:()=>et("dropdownOptions")},ignoredCountries:{type:Array,default:()=>et("ignoredCountries")},inputOptions:{type:Object,default:()=>et("inputOptions")},invalidMsg:{type:String,default:()=>et("invalidMsg")},mode:{type:String,default:()=>et("mode")},onlyCountries:{type:Array,default:()=>et("onlyCountries")},preferredCountries:{type:Array,default:()=>et("preferredCountries")},validCharactersOnly:{type:Boolean,default:()=>et("validCharactersOnly")},styleClasses:{type:[String,Array,Object],default:()=>et("styleClasses")}},{modelValue:{type:String},modelModifiers:{}}),emits:n.mergeModels(["blur","close","country-changed","enter","focus","on-input","open","space","validate"],["update:modelValue"]),setup(t,{expose:r,emit:e}){const o=n.shallowRef(),a=n.shallowRef(),i=n.shallowRef(),d=e,c=t,p=n.useModel(t,"modelValue");n.watch(p,(A,I)=>{S()?s.phone=A??"":n.nextTick(()=>{s.phone=I??"",M()})});const s=n.reactive({phone:"",activeCountryCode:void 0,open:!1,finishMounted:!1,selectedIndex:null,typeToFindInput:"",typeToFindTimer:void 0,dropdownOpenDirection:"below",parsedPlaceholder:c.inputOptions.placeholder,searchQuery:""});n.watch(()=>s.open,A=>{A?(D(),d("open")):d("close")});const h=n.computed(()=>c.onlyCountries.length?c.allCountries.filter(({iso2:A})=>c.onlyCountries.some(I=>xn(I)===A)):c.ignoredCountries.length?c.allCountries.filter(({iso2:A})=>!c.ignoredCountries.includes(xn(A))&&!c.ignoredCountries.includes(Tn(A))):c.allCountries),f=n.computed(()=>b(s.activeCountryCode));n.watch(f,(A,I)=>{if(!A&&I!=null&&I.iso2){s.activeCountryCode=I.iso2;return}A!=null&&A.iso2&&d("country-changed",A)});const l=n.computed(()=>{var A;const I=Tn(c.mode);return I==="auto"?(A=s.phone)!=null&&A.startsWith("+")?"international":"national":["national","international","e.164","rfc3966","idd"].includes(I)?I:(console.error('Invalid value of prop "mode"'),"international")}),u=n.computed(()=>{const A=[...v(c.preferredCountries).map(H=>({...H,preferred:!0})),...h.value];if(!c.dropdownOptions.showSearchBox)return A;const I=s.searchQuery.toLowerCase().replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]/g,"");return A.filter(H=>new RegExp(I,"i").test(H.name)||new RegExp(I,"i").test(H.iso2)||new RegExp(I,"i").test(H.dialCode))}),_=n.computed(()=>{var A;const I=s.phone.startsWith("+")?di(s.phone):di(s.phone,s.activeCountryCode),H={country:I==null?void 0:I.country,countryCode:I==null?void 0:I.country,formatted:s.phone,valid:I==null?void 0:I.isValid(),possible:(A=I==null?void 0:I.isPossible)==null?void 0:A.call(I),nationalNumber:I==null?void 0:I.nationalNumber};return H.valid&&(H.formatted=I==null?void 0:I.format(xn(l.value))),I!=null&&I.country&&(c.ignoredCountries.length||c.onlyCountries.length)&&!b(I.country)&&(H.valid=!1,H.possible=!1,I.country=null),I?{...H,...I}:H});n.watch(()=>_.value.countryCode,A=>{A&&(s.activeCountryCode=A)}),n.watch(()=>_.value.valid,()=>{d("validate",_.value)}),n.watch(()=>_.value.formatted,A=>{!c.autoFormat||c.customValidate||(E(A),n.nextTick(()=>{A&&!p.value&&(s.phone=A)}))}),n.watch(()=>c.inputOptions.placeholder,g),n.onMounted(()=>{p.value&&(s.phone=p.value.trim()),x(),$().then(()=>{var A;!s.phone&&(A=c.inputOptions)!=null&&A.showDialCode&&s.activeCountryCode&&(s.phone=`+${s.activeCountryCode}`),d("validate",_.value)}).catch(console.error).then(()=>{s.finishMounted=!0})});function g(){s.parsedPlaceholder=c.inputOptions.placeholder}function $(){return new Promise(A=>{var I;if(((I=s.phone)==null?void 0:I[0])==="+"){A();return}if(c.defaultCountry){if(typeof c.defaultCountry=="string"){w(c.defaultCountry),A();return}if(typeof c.defaultCountry=="number"){const q=y(c.defaultCountry);if(q){w(q.iso2),A();return}}}const H=c.preferredCountries[0]||h.value[0];c.autoDefaultCountry?kf().then(q=>{w(q||s.activeCountryCode)}).catch(q=>{console.warn(q),w(H)}).then(()=>{A()}):(w(H),A())})}function v(A=[]){return A.map(b).filter(Boolean)}function b(A=""){return h.value.find(I=>I.iso2===xn(A))}function y(A){return h.value.find(I=>Number(I.dialCode)===A)}function m(A,I){const H=s.selectedIndex===A,q=A===c.preferredCountries.length-1,L=c.preferredCountries.some(U=>xn(U)===I);return{highlighted:H,"last-preferred":q,preferred:L}}function w(A){var I,H,q;let L=A;if(typeof L=="string"&&(L=b(L)),!!L){if(((I=s.phone)==null?void 0:I[0])==="+"&&L.iso2&&_.value.nationalNumber){s.activeCountryCode=L.iso2,s.phone=((H=di(_.value.nationalNumber,L.iso2))==null?void 0:H.formatInternational())??"";return}if((q=c.inputOptions)!=null&&q.showDialCode&&L){s.phone=`+${L.dialCode}`,s.activeCountryCode=L.iso2;return}s.activeCountryCode=L.iso2,E(s.phone)}}function x(){const A=s.phone;if(c.validCharactersOnly){const I=s.phone.match(/[()\-+0-9\s]*/g);s.phone=I.join("")}if(c.customValidate&&c.customValidate instanceof RegExp){const I=s.phone.match(c.customValidate);s.phone=I.join("")}A!==s.phone&&E(s.phone)}function S(){return c.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(s.phone)?!1:c.customValidate?T():!0}function T(){return c.customValidate instanceof RegExp?c.customValidate.test(s.phone):!1}function M(){var A;(A=i.value)==null||A.setCustomValidity(_.value.valid?"":c.invalidMsg),E(s.phone)}function E(A){p.value=A,d("on-input",A,_.value,i.value)}function C(A){d("blur",A)}function O(A){Cf(i.value,s.phone.length),d("focus",A)}function N(A){d("enter",A)}function P(A){d("space",A)}function F(){var A;(A=i.value)==null||A.focus()}function G(){var A;(A=i.value)==null||A.blur()}function W(){c.disabled||c.dropdownOptions.disabled||(s.searchQuery="",s.open=!s.open)}function te(){s.open=!1}function K(A){if(A.keyCode===40){A.preventDefault(),s.open=!0,s.selectedIndex===null?s.selectedIndex=0:s.selectedIndex=Math.min(u.value.length-1,s.selectedIndex+1);const I=a.value.children[s.selectedIndex];I.focus(),I.offsetTop+I.clientHeight>a.value.scrollTop+a.value.clientHeight&&(a.value.scrollTop=I.offsetTop-a.value.clientHeight+I.clientHeight)}else if(A.keyCode===38){A.preventDefault(),s.open=!0,s.selectedIndex===null?s.selectedIndex=u.value.length-1:s.selectedIndex=Math.max(0,s.selectedIndex-1);const I=a.value.children[s.selectedIndex];I.focus(),I.offsetTop<a.value.scrollTop&&(a.value.scrollTop=I.offsetTop)}else if(A.keyCode===13)s.selectedIndex!==null&&w(u.value[s.selectedIndex]),s.open=!s.open;else if(s.open){s.typeToFindInput+=A.key,clearTimeout(s.typeToFindTimer),s.typeToFindTimer=setTimeout(()=>{s.typeToFindInput=""},700);const I=u.value.slice(c.preferredCountries.length).findIndex(H=>Tn(H.name).startsWith(s.typeToFindInput));if(I>=0){s.selectedIndex=c.preferredCountries.length+I;const H=a.value.children[s.selectedIndex],q=H.offsetTop<a.value.scrollTop,L=H.offsetTop+H.clientHeight>a.value.scrollTop+a.value.clientHeight;(q||L)&&(a.value.scrollTop=H.offsetTop-a.value.clientHeight/2)}}}function j(){s.selectedIndex=u.value.map(A=>A.iso2).indexOf(s.activeCountryCode),s.open=!1}function D(){window.innerHeight-o.value.getBoundingClientRect().bottom>200?s.dropdownOpenDirection="below":s.dropdownOpenDirection="above"}return r({focus:F,blur:G}),(A,I)=>{const H=n.resolveDirective("click-outside");return n.openBlock(),n.createElementBlock("div",{ref_key:"refRoot",ref:o,class:n.normalizeClass(["vue-tel-input",t.styleClasses,{disabled:t.disabled}])},[n.withDirectives((n.openBlock(),n.createElementBlock("div",{"aria-label":"Country Code Selector","aria-haspopup":"listbox","aria-expanded":s.open,role:"button",class:n.normalizeClass(["vti__dropdown",{open:s.open,disabled:t.dropdownOptions.disabled}]),tabindex:t.dropdownOptions.tabindex,onKeydown:[K,n.withKeys(W,["space"]),n.withKeys(j,["esc"]),n.withKeys(j,["tab"])],onClick:W},[n.createElementVNode("span",M1,[t.dropdownOptions.showFlags?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(["vti__flag",n.unref(Tn)(s.activeCountryCode)])},null,2)):n.createCommentVNode("",!0),t.dropdownOptions.showDialCodeInSelection?(n.openBlock(),n.createElementBlock("span",I1," +"+n.toDisplayString(f.value&&f.value.dialCode),1)):n.createCommentVNode("",!0),n.renderSlot(A.$slots,"arrow-icon",{open:s.open},()=>[n.createElementVNode("span",B1,n.toDisplayString(s.open?"▲":"▼"),1)])]),s.open?(n.openBlock(),n.createElementBlock("ul",{key:0,ref_key:"refList",ref:a,class:n.normalizeClass(["vti__dropdown-list",s.dropdownOpenDirection]),role:"listbox"},[t.dropdownOptions.showSearchBox?(n.openBlock(),n.createElementBlock("div",P1,[n.renderSlot(A.$slots,"search-icon"),n.withDirectives(n.createElementVNode("input",{class:n.normalizeClass(["vti__input","vti__search_box"]),"aria-label":"Search by country name or country code",placeholder:t.dropdownOptions.searchBoxPlaceholder||(u.value.length?u.value[0].name:""),type:"text","onUpdate:modelValue":I[0]||(I[0]=q=>s.searchQuery=q),onClick:I[1]||(I[1]=n.withModifiers(()=>{},["stop"]))},null,8,L1),[[n.vModelText,s.searchQuery]])])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.value,(q,L)=>(n.openBlock(),n.createElementBlock("li",{role:"option",class:n.normalizeClass(["vti__dropdown-item",m(L,q.iso2)]),key:q.iso2+(q.preferred?"-preferred":""),tabindex:"-1",onClick:U=>w(q),onMousemove:U=>s.selectedIndex=L,"aria-selected":s.activeCountryCode===q.iso2&&!q.preferred},[t.dropdownOptions.showFlags?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(["vti__flag",n.unref(Tn)(q.iso2)])},null,2)):n.createCommentVNode("",!0),n.createElementVNode("strong",null,n.toDisplayString(q.name),1),t.dropdownOptions.showDialCodeInList?(n.openBlock(),n.createElementBlock("span",j1," +"+n.toDisplayString(q.dialCode),1)):n.createCommentVNode("",!0)],42,R1))),128))],2)):n.createCommentVNode("",!0)],42,D1)),[[H,te]]),n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":I[2]||(I[2]=q=>s.phone=q),ref_key:"refInput",ref:i,type:t.inputOptions.type,autocomplete:t.inputOptions.autocomplete,autofocus:t.inputOptions.autofocus,class:n.normalizeClass(["vti__input","vti__phone",t.inputOptions.styleClasses]),disabled:t.disabled,id:t.inputOptions.id,maxlength:t.inputOptions.maxlength,name:t.inputOptions.name,placeholder:s.parsedPlaceholder,readonly:t.inputOptions.readonly,required:t.inputOptions.required,tabindex:t.inputOptions.tabindex,value:p.value,"aria-describedby":t.inputOptions["aria-describedby"],onBlur:C,onFocus:O,onInput:M,onKeyup:[n.withKeys(N,["enter"]),n.withKeys(P,["space"])]},null,42,V1),[[n.vModelDynamic,s.phone]]),n.renderSlot(A.$slots,"icon-right")],2)}}}),IbIconButton:Xe,IbAlert:Rt,IbIcon:Le},data(){return{vueTel:null,dialCode:"",defaultCountry:"US",allowChange:!1}},mounted(){this.vueTel=this.$refs.vueTel,this.$emit("onReady")},computed:{phone:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},methods:{countryChanged(t){this.$globalEvents.$on("countrySelectValue",r=>{this.vueTel.choose(r)}),!this.phone||this.phone.length-1<this.dialCode.length?this.phone="+"+t.dialCode:this.dialCode&&(this.phone=this.phone.replace(this.dialCode,t.dialCode)),this.dialCode=t.dialCode},clickOutside(){this.vueTel.open&&this.vueTel.clickedOutside()},clearPhone(){this.phone=""}}},q1={class:"ib-phone-wrapper"};function H1(t,r,e,o,a,i){const d=n.resolveComponent("ib-alert"),c=n.resolveComponent("ib-icon"),p=n.resolveComponent("ib-icon-button"),s=n.resolveComponent("vue-tel-input"),h=n.resolveDirective("outside");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.errorMessage.length?(n.openBlock(),n.createBlock(d,{key:0,class:"ib-phone-error-message"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1})):n.createCommentVNode("",!0),n.createElementVNode("div",q1,[n.withDirectives((n.openBlock(),n.createBlock(s,n.mergeProps({modelValue:i.phone,"onUpdate:modelValue":r[0]||(r[0]=f=>i.phone=f)},t.$attrs,{onCountryChanged:i.countryChanged,"input-options":{name:e.inputName,id:e.inputName,autocomplete:"tel"},"auto-default-country":e.autoDefaultCountry,"dropdown-options":{showSearchBox:!0,showFlags:!0,tabindex:0},defaultCountry:a.defaultCountry,ignoredCountries:e.ignoredCountries,class:{error:e.error||e.errorMessage.length,disabled:e.disabled},disabled:e.disabled,"style-classes":"ib-phone-input",ref:"vueTel"}),{"arrow-icon":n.withCtx(()=>[n.createVNode(c,{name:"chevron-down-outline"})]),"icon-right":n.withCtx(()=>[e.showClearButton?n.withDirectives((n.openBlock(),n.createBlock(p,{key:0,kind:"ghost",class:"ib-phone-clear-button",onClick:i.clearPhone},{default:n.withCtx(()=>[n.createVNode(c,{name:"close-outline"})]),_:1},8,["onClick"])),[[n.vShow,i.phone.length]]):n.createCommentVNode("",!0)]),_:1},16,["modelValue","onCountryChanged","input-options","auto-default-country","defaultCountry","ignoredCountries","class","disabled"])),[[h,i.clickOutside]])])],64)}const z1=be(F1,[["render",H1]]);var gr={exports:{}};/*!
|
|
94
|
+
* Quill Editor v1.3.7
|
|
95
|
+
* https://quilljs.com/
|
|
96
|
+
* Copyright (c) 2014, Jason Chen
|
|
97
|
+
* Copyright (c) 2013, salesforce.com
|
|
98
|
+
*/var U1=gr.exports,ba;function K1(){return ba||(ba=1,(function(t,r){(function(o,a){t.exports=a()})(typeof self<"u"?self:U1,function(){return(function(e){var o={};function a(i){if(o[i])return o[i].exports;var d=o[i]={i,l:!1,exports:{}};return e[i].call(d.exports,d,d.exports,a),d.l=!0,d.exports}return a.m=e,a.c=o,a.d=function(i,d,c){a.o(i,d)||Object.defineProperty(i,d,{configurable:!1,enumerable:!0,get:c})},a.n=function(i){var d=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(d,"a",d),d},a.o=function(i,d){return Object.prototype.hasOwnProperty.call(i,d)},a.p="",a(a.s=109)})([(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(17),d=a(18),c=a(19),p=a(45),s=a(46),h=a(47),f=a(48),l=a(49),u=a(12),_=a(32),g=a(33),$=a(31),v=a(1),b={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:i.default,Format:d.default,Leaf:c.default,Embed:f.default,Scroll:p.default,Block:h.default,Inline:s.default,Text:l.default,Attributor:{Attribute:u.default,Class:_.default,Style:g.default,Store:$.default}};o.default=b}),(function(e,o,a){var i=this&&this.__extends||(function(){var $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var y in b)b.hasOwnProperty(y)&&(v[y]=b[y])};return function(v,b){$(v,b);function y(){this.constructor=v}v.prototype=b===null?Object.create(b):(y.prototype=b.prototype,new y)}})();Object.defineProperty(o,"__esModule",{value:!0});var d=(function($){i(v,$);function v(b){var y=this;return b="[Parchment] "+b,y=$.call(this,b)||this,y.message=b,y.name=y.constructor.name,y}return v})(Error);o.ParchmentError=d;var c={},p={},s={},h={};o.DATA_KEY="__blot";var f;(function($){$[$.TYPE=3]="TYPE",$[$.LEVEL=12]="LEVEL",$[$.ATTRIBUTE=13]="ATTRIBUTE",$[$.BLOT=14]="BLOT",$[$.INLINE=7]="INLINE",$[$.BLOCK=11]="BLOCK",$[$.BLOCK_BLOT=10]="BLOCK_BLOT",$[$.INLINE_BLOT=6]="INLINE_BLOT",$[$.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",$[$.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",$[$.ANY=15]="ANY"})(f=o.Scope||(o.Scope={}));function l($,v){var b=_($);if(b==null)throw new d("Unable to create "+$+" blot");var y=b,m=$ instanceof Node||$.nodeType===Node.TEXT_NODE?$:y.create(v);return new y(m,v)}o.create=l;function u($,v){return v===void 0&&(v=!1),$==null?null:$[o.DATA_KEY]!=null?$[o.DATA_KEY].blot:v?u($.parentNode,v):null}o.find=u;function _($,v){v===void 0&&(v=f.ANY);var b;if(typeof $=="string")b=h[$]||c[$];else if($ instanceof Text||$.nodeType===Node.TEXT_NODE)b=h.text;else if(typeof $=="number")$&f.LEVEL&f.BLOCK?b=h.block:$&f.LEVEL&f.INLINE&&(b=h.inline);else if($ instanceof HTMLElement){var y=($.getAttribute("class")||"").split(/\s+/);for(var m in y)if(b=p[y[m]],b)break;b=b||s[$.tagName]}return b==null?null:v&f.LEVEL&b.scope&&v&f.TYPE&b.scope?b:null}o.query=_;function g(){for(var $=[],v=0;v<arguments.length;v++)$[v]=arguments[v];if($.length>1)return $.map(function(m){return g(m)});var b=$[0];if(typeof b.blotName!="string"&&typeof b.attrName!="string")throw new d("Invalid definition");if(b.blotName==="abstract")throw new d("Cannot register abstract class");if(h[b.blotName||b.attrName]=b,typeof b.keyName=="string")c[b.keyName]=b;else if(b.className!=null&&(p[b.className]=b),b.tagName!=null){Array.isArray(b.tagName)?b.tagName=b.tagName.map(function(m){return m.toUpperCase()}):b.tagName=b.tagName.toUpperCase();var y=Array.isArray(b.tagName)?b.tagName:[b.tagName];y.forEach(function(m){(s[m]==null||b.className==null)&&(s[m]=b)})}return b}o.register=g}),(function(e,o,a){var i=a(51),d=a(11),c=a(3),p=a(20),s="\0",h=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};h.prototype.insert=function(f,l){var u={};return f.length===0?this:(u.insert=f,l!=null&&typeof l=="object"&&Object.keys(l).length>0&&(u.attributes=l),this.push(u))},h.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},h.prototype.retain=function(f,l){if(f<=0)return this;var u={retain:f};return l!=null&&typeof l=="object"&&Object.keys(l).length>0&&(u.attributes=l),this.push(u)},h.prototype.push=function(f){var l=this.ops.length,u=this.ops[l-1];if(f=c(!0,{},f),typeof u=="object"){if(typeof f.delete=="number"&&typeof u.delete=="number")return this.ops[l-1]={delete:u.delete+f.delete},this;if(typeof u.delete=="number"&&f.insert!=null&&(l-=1,u=this.ops[l-1],typeof u!="object"))return this.ops.unshift(f),this;if(d(f.attributes,u.attributes)){if(typeof f.insert=="string"&&typeof u.insert=="string")return this.ops[l-1]={insert:u.insert+f.insert},typeof f.attributes=="object"&&(this.ops[l-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof u.retain=="number")return this.ops[l-1]={retain:u.retain+f.retain},typeof f.attributes=="object"&&(this.ops[l-1].attributes=f.attributes),this}}return l===this.ops.length?this.ops.push(f):this.ops.splice(l,0,f),this},h.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},h.prototype.filter=function(f){return this.ops.filter(f)},h.prototype.forEach=function(f){this.ops.forEach(f)},h.prototype.map=function(f){return this.ops.map(f)},h.prototype.partition=function(f){var l=[],u=[];return this.forEach(function(_){var g=f(_)?l:u;g.push(_)}),[l,u]},h.prototype.reduce=function(f,l){return this.ops.reduce(f,l)},h.prototype.changeLength=function(){return this.reduce(function(f,l){return l.insert?f+p.length(l):l.delete?f-l.delete:f},0)},h.prototype.length=function(){return this.reduce(function(f,l){return f+p.length(l)},0)},h.prototype.slice=function(f,l){f=f||0,typeof l!="number"&&(l=1/0);for(var u=[],_=p.iterator(this.ops),g=0;g<l&&_.hasNext();){var $;g<f?$=_.next(f-g):($=_.next(l-g),u.push($)),g+=p.length($)}return new h(u)},h.prototype.compose=function(f){var l=p.iterator(this.ops),u=p.iterator(f.ops),_=[],g=u.peek();if(g!=null&&typeof g.retain=="number"&&g.attributes==null){for(var $=g.retain;l.peekType()==="insert"&&l.peekLength()<=$;)$-=l.peekLength(),_.push(l.next());g.retain-$>0&&u.next(g.retain-$)}for(var v=new h(_);l.hasNext()||u.hasNext();)if(u.peekType()==="insert")v.push(u.next());else if(l.peekType()==="delete")v.push(l.next());else{var b=Math.min(l.peekLength(),u.peekLength()),y=l.next(b),m=u.next(b);if(typeof m.retain=="number"){var w={};typeof y.retain=="number"?w.retain=b:w.insert=y.insert;var x=p.attributes.compose(y.attributes,m.attributes,typeof y.retain=="number");if(x&&(w.attributes=x),v.push(w),!u.hasNext()&&d(v.ops[v.ops.length-1],w)){var S=new h(l.rest());return v.concat(S).chop()}}else typeof m.delete=="number"&&typeof y.retain=="number"&&v.push(m)}return v.chop()},h.prototype.concat=function(f){var l=new h(this.ops.slice());return f.ops.length>0&&(l.push(f.ops[0]),l.ops=l.ops.concat(f.ops.slice(1))),l},h.prototype.diff=function(f,l){if(this.ops===f.ops)return new h;var u=[this,f].map(function(b){return b.map(function(y){if(y.insert!=null)return typeof y.insert=="string"?y.insert:s;var m=b===f?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")}),_=new h,g=i(u[0],u[1],l),$=p.iterator(this.ops),v=p.iterator(f.ops);return g.forEach(function(b){for(var y=b[1].length;y>0;){var m=0;switch(b[0]){case i.INSERT:m=Math.min(v.peekLength(),y),_.push(v.next(m));break;case i.DELETE:m=Math.min(y,$.peekLength()),$.next(m),_.delete(m);break;case i.EQUAL:m=Math.min($.peekLength(),v.peekLength(),y);var w=$.next(m),x=v.next(m);d(w.insert,x.insert)?_.retain(m,p.attributes.diff(w.attributes,x.attributes)):_.push(x).delete(m);break}y-=m}}),_.chop()},h.prototype.eachLine=function(f,l){l=l||`
|
|
99
|
+
`;for(var u=p.iterator(this.ops),_=new h,g=0;u.hasNext();){if(u.peekType()!=="insert")return;var $=u.peek(),v=p.length($)-u.peekLength(),b=typeof $.insert=="string"?$.insert.indexOf(l,v)-v:-1;if(b<0)_.push(u.next());else if(b>0)_.push(u.next(b));else{if(f(_,u.next(1).attributes||{},g)===!1)return;g+=1,_=new h}}_.length()>0&&f(_,{},g)},h.prototype.transform=function(f,l){if(l=!!l,typeof f=="number")return this.transformPosition(f,l);for(var u=p.iterator(this.ops),_=p.iterator(f.ops),g=new h;u.hasNext()||_.hasNext();)if(u.peekType()==="insert"&&(l||_.peekType()!=="insert"))g.retain(p.length(u.next()));else if(_.peekType()==="insert")g.push(_.next());else{var $=Math.min(u.peekLength(),_.peekLength()),v=u.next($),b=_.next($);if(v.delete)continue;b.delete?g.push(b):g.retain($,p.attributes.transform(v.attributes,b.attributes,l))}return g.chop()},h.prototype.transformPosition=function(f,l){l=!!l;for(var u=p.iterator(this.ops),_=0;u.hasNext()&&_<=f;){var g=u.peekLength(),$=u.peekType();if(u.next(),$==="delete"){f-=Math.min(g,f-_);continue}else $==="insert"&&(_<f||!l)&&(f+=g);_+=g}return f},e.exports=h}),(function(e,o){var a=Object.prototype.hasOwnProperty,i=Object.prototype.toString,d=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=function(u){return typeof Array.isArray=="function"?Array.isArray(u):i.call(u)==="[object Array]"},s=function(u){if(!u||i.call(u)!=="[object Object]")return!1;var _=a.call(u,"constructor"),g=u.constructor&&u.constructor.prototype&&a.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!_&&!g)return!1;var $;for($ in u);return typeof $>"u"||a.call(u,$)},h=function(u,_){d&&_.name==="__proto__"?d(u,_.name,{enumerable:!0,configurable:!0,value:_.newValue,writable:!0}):u[_.name]=_.newValue},f=function(u,_){if(_==="__proto__")if(a.call(u,_)){if(c)return c(u,_).value}else return;return u[_]};e.exports=function l(){var u,_,g,$,v,b,y=arguments[0],m=1,w=arguments.length,x=!1;for(typeof y=="boolean"&&(x=y,y=arguments[1]||{},m=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});m<w;++m)if(u=arguments[m],u!=null)for(_ in u)g=f(y,_),$=f(u,_),y!==$&&(x&&$&&(s($)||(v=p($)))?(v?(v=!1,b=g&&p(g)?g:[]):b=g&&s(g)?g:{},h(y,{name:_,newValue:l(x,b,$)})):typeof $<"u"&&h(y,{name:_,newValue:$}));return y}}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BlockEmbed=o.bubbleFormats=void 0;var i=(function(){function C(O,N){for(var P=0;P<N.length;P++){var F=N[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(O,F.key,F)}}return function(O,N,P){return N&&C(O.prototype,N),P&&C(O,P),O}})(),d=function C(O,N,P){O===null&&(O=Function.prototype);var F=Object.getOwnPropertyDescriptor(O,N);if(F===void 0){var G=Object.getPrototypeOf(O);return G===null?void 0:C(G,N,P)}else{if("value"in F)return F.value;var W=F.get;return W===void 0?void 0:W.call(P)}},c=a(3),p=y(c),s=a(2),h=y(s),f=a(0),l=y(f),u=a(16),_=y(u),g=a(6),$=y(g),v=a(7),b=y(v);function y(C){return C&&C.__esModule?C:{default:C}}function m(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function w(C,O){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:C}function x(C,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);C.prototype=Object.create(O&&O.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(C,O):C.__proto__=O)}var S=1,T=(function(C){x(O,C);function O(){return m(this,O),w(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return i(O,[{key:"attach",value:function(){d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new h.default().insert(this.value(),(0,p.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(P,F){var G=l.default.query(P,l.default.Scope.BLOCK_ATTRIBUTE);G!=null&&this.attributes.attribute(G,F)}},{key:"formatAt",value:function(P,F,G,W){this.format(G,W)}},{key:"insertAt",value:function(P,F,G){if(typeof F=="string"&&F.endsWith(`
|
|
100
|
+
`)){var W=l.default.create(M.blotName);this.parent.insertBefore(W,P===0?this:this.next),W.insertAt(0,F.slice(0,-1))}else d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,P,F,G)}}]),O})(l.default.Embed);T.scope=l.default.Scope.BLOCK_BLOT;var M=(function(C){x(O,C);function O(N){m(this,O);var P=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N));return P.cache={},P}return i(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(l.default.Leaf).reduce(function(P,F){return F.length()===0?P:P.insert(F.value(),E(F))},new h.default).insert(`
|
|
101
|
+
`,E(this))),this.cache.delta}},{key:"deleteAt",value:function(P,F){d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,P,F),this.cache={}}},{key:"formatAt",value:function(P,F,G,W){F<=0||(l.default.query(G,l.default.Scope.BLOCK)?P+F===this.length()&&this.format(G,W):d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,P,Math.min(F,this.length()-P-1),G,W),this.cache={})}},{key:"insertAt",value:function(P,F,G){if(G!=null)return d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,P,F,G);if(F.length!==0){var W=F.split(`
|
|
102
|
+
`),te=W.shift();te.length>0&&(P<this.length()-1||this.children.tail==null?d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(P,this.length()-1),te):this.children.tail.insertAt(this.children.tail.length(),te),this.cache={});var K=this;W.reduce(function(j,D){return K=K.split(j,!0),K.insertAt(0,D),D.length},P+te.length)}}},{key:"insertBefore",value:function(P,F){var G=this.children.head;d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,P,F),G instanceof _.default&&G.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+S),this.cache.length}},{key:"moveChildren",value:function(P,F){d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,P,F),this.cache={}}},{key:"optimize",value:function(P){d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,P),this.cache={}}},{key:"path",value:function(P){return d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,P,!0)}},{key:"removeChild",value:function(P){d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,P),this.cache={}}},{key:"split",value:function(P){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(F&&(P===0||P>=this.length()-S)){var G=this.clone();return P===0?(this.parent.insertBefore(G,this),this):(this.parent.insertBefore(G,this.next),G)}else{var W=d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,P,F);return this.cache={},W}}}]),O})(l.default.Block);M.blotName="block",M.tagName="P",M.defaultChild="break",M.allowedChildren=[$.default,l.default.Embed,b.default];function E(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(O=(0,p.default)(O,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?O:E(C.parent,O)}o.bubbleFormats=E,o.BlockEmbed=T,o.default=M}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.overload=o.expandConfig=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},d=(function(){function K(j,D){var A=[],I=!0,H=!1,q=void 0;try{for(var L=j[Symbol.iterator](),U;!(I=(U=L.next()).done)&&(A.push(U.value),!(D&&A.length===D));I=!0);}catch(Z){H=!0,q=Z}finally{try{!I&&L.return&&L.return()}finally{if(H)throw q}}return A}return function(j,D){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return K(j,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function K(j,D){for(var A=0;A<D.length;A++){var I=D[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(j,I.key,I)}}return function(j,D,A){return D&&K(j.prototype,D),A&&K(j,A),j}})();a(50);var p=a(2),s=E(p),h=a(14),f=E(h),l=a(8),u=E(l),_=a(9),g=E(_),$=a(0),v=E($),b=a(15),y=E(b),m=a(3),w=E(m),x=a(10),S=E(x),T=a(34),M=E(T);function E(K){return K&&K.__esModule?K:{default:K}}function C(K,j,D){return j in K?Object.defineProperty(K,j,{value:D,enumerable:!0,configurable:!0,writable:!0}):K[j]=D,K}function O(K,j){if(!(K instanceof j))throw new TypeError("Cannot call a class as a function")}var N=(0,S.default)("quill"),P=(function(){c(K,null,[{key:"debug",value:function(D){D===!0&&(D="log"),S.default.level(D)}},{key:"find",value:function(D){return D.__quill||v.default.find(D)}},{key:"import",value:function(D){return this.imports[D]==null&&N.error("Cannot import "+D+". Are you sure it was registered?"),this.imports[D]}},{key:"register",value:function(D,A){var I=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof D!="string"){var q=D.attrName||D.blotName;typeof q=="string"?this.register("formats/"+q,D,A):Object.keys(D).forEach(function(L){I.register(L,D[L],A)})}else this.imports[D]!=null&&!H&&N.warn("Overwriting "+D+" with",A),this.imports[D]=A,(D.startsWith("blots/")||D.startsWith("formats/"))&&A.blotName!=="abstract"?v.default.register(A):D.startsWith("modules")&&typeof A.register=="function"&&A.register()}}]);function K(j){var D=this,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,K),this.options=F(j,A),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",j);this.options.debug&&K.debug(this.options.debug);var I=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=v.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,function(q){q===u.default.events.TEXT_CHANGE&&D.root.classList.toggle("ql-blank",D.editor.isBlank())}),this.emitter.on(u.default.events.SCROLL_UPDATE,function(q,L){var U=D.selection.lastRange,Z=U&&U.length===0?U.index:void 0;G.call(D,function(){return D.editor.update(null,L,Z)},q)});var H=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+I+"<p><br></p></div>");this.setContents(H),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return c(K,[{key:"addContainer",value:function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof D=="string"){var I=D;D=document.createElement("div"),D.classList.add(I)}return this.container.insertBefore(D,A),D}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(D,A,I){var H=this,q=W(D,A,I),L=d(q,4);return D=L[0],A=L[1],I=L[3],G.call(this,function(){return H.editor.deleteText(D,A)},I,D,-1*A)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(D),this.container.classList.toggle("ql-disabled",!D)}},{key:"focus",value:function(){var D=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=D,this.scrollIntoView()}},{key:"format",value:function(D,A){var I=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;return G.call(this,function(){var q=I.getSelection(!0),L=new s.default;if(q==null)return L;if(v.default.query(D,v.default.Scope.BLOCK))L=I.editor.formatLine(q.index,q.length,C({},D,A));else{if(q.length===0)return I.selection.format(D,A),L;L=I.editor.formatText(q.index,q.length,C({},D,A))}return I.setSelection(q,u.default.sources.SILENT),L},H)}},{key:"formatLine",value:function(D,A,I,H,q){var L=this,U=void 0,Z=W(D,A,I,H,q),J=d(Z,4);return D=J[0],A=J[1],U=J[2],q=J[3],G.call(this,function(){return L.editor.formatLine(D,A,U)},q,D,0)}},{key:"formatText",value:function(D,A,I,H,q){var L=this,U=void 0,Z=W(D,A,I,H,q),J=d(Z,4);return D=J[0],A=J[1],U=J[2],q=J[3],G.call(this,function(){return L.editor.formatText(D,A,U)},q,D,0)}},{key:"getBounds",value:function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=void 0;typeof D=="number"?I=this.selection.getBounds(D,A):I=this.selection.getBounds(D.index,D.length);var H=this.container.getBoundingClientRect();return{bottom:I.bottom-H.top,height:I.height,left:I.left-H.left,right:I.right-H.left,top:I.top-H.top,width:I.width}}},{key:"getContents",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,I=W(D,A),H=d(I,2);return D=H[0],A=H[1],this.editor.getContents(D,A)}},{key:"getFormat",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof D=="number"?this.editor.getFormat(D,A):this.editor.getFormat(D.index,D.length)}},{key:"getIndex",value:function(D){return D.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(D){return this.scroll.leaf(D)}},{key:"getLine",value:function(D){return this.scroll.line(D)}},{key:"getLines",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof D!="number"?this.scroll.lines(D.index,D.length):this.scroll.lines(D,A)}},{key:"getModule",value:function(D){return this.theme.modules[D]}},{key:"getSelection",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return D&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,I=W(D,A),H=d(I,2);return D=H[0],A=H[1],this.editor.getText(D,A)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(D,A,I){var H=this,q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:K.sources.API;return G.call(this,function(){return H.editor.insertEmbed(D,A,I)},q,D)}},{key:"insertText",value:function(D,A,I,H,q){var L=this,U=void 0,Z=W(D,0,I,H,q),J=d(Z,4);return D=J[0],U=J[2],q=J[3],G.call(this,function(){return L.editor.insertText(D,A,U)},q,D,A.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(D,A,I){this.clipboard.dangerouslyPasteHTML(D,A,I)}},{key:"removeFormat",value:function(D,A,I){var H=this,q=W(D,A,I),L=d(q,4);return D=L[0],A=L[1],I=L[3],G.call(this,function(){return H.editor.removeFormat(D,A)},I,D)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(D){var A=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API;return G.call(this,function(){D=new s.default(D);var H=A.getLength(),q=A.editor.deleteText(0,H),L=A.editor.applyDelta(D),U=L.ops[L.ops.length-1];U!=null&&typeof U.insert=="string"&&U.insert[U.insert.length-1]===`
|
|
103
|
+
`&&(A.editor.deleteText(A.getLength()-1,1),L.delete(1));var Z=q.compose(L);return Z},I)}},{key:"setSelection",value:function(D,A,I){if(D==null)this.selection.setRange(null,A||K.sources.API);else{var H=W(D,A,I),q=d(H,4);D=q[0],A=q[1],I=q[3],this.selection.setRange(new b.Range(D,A),I),I!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API,I=new s.default().insert(D);return this.setContents(I,A)}},{key:"update",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,A=this.scroll.update(D);return this.selection.update(D),A}},{key:"updateContents",value:function(D){var A=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API;return G.call(this,function(){return D=new s.default(D),A.editor.applyDelta(D,I)},I,!0)}}]),K})();P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=u.default.events,P.sources=u.default.sources,P.version="1.3.7",P.imports={delta:s.default,parchment:v.default,"core/module":g.default,"core/theme":M.default};function F(K,j){if(j=(0,w.default)(!0,{container:K,modules:{clipboard:!0,keyboard:!0,history:!0}},j),!j.theme||j.theme===P.DEFAULTS.theme)j.theme=M.default;else if(j.theme=P.import("themes/"+j.theme),j.theme==null)throw new Error("Invalid theme "+j.theme+". Did you register it?");var D=(0,w.default)(!0,{},j.theme.DEFAULTS);[D,j].forEach(function(H){H.modules=H.modules||{},Object.keys(H.modules).forEach(function(q){H.modules[q]===!0&&(H.modules[q]={})})});var A=Object.keys(D.modules).concat(Object.keys(j.modules)),I=A.reduce(function(H,q){var L=P.import("modules/"+q);return L==null?N.error("Cannot load "+q+" module. Are you sure you registered it?"):H[q]=L.DEFAULTS||{},H},{});return j.modules!=null&&j.modules.toolbar&&j.modules.toolbar.constructor!==Object&&(j.modules.toolbar={container:j.modules.toolbar}),j=(0,w.default)(!0,{},P.DEFAULTS,{modules:I},D,j),["bounds","container","scrollingContainer"].forEach(function(H){typeof j[H]=="string"&&(j[H]=document.querySelector(j[H]))}),j.modules=Object.keys(j.modules).reduce(function(H,q){return j.modules[q]&&(H[q]=j.modules[q]),H},{}),j}function G(K,j,D,A){if(this.options.strict&&!this.isEnabled()&&j===u.default.sources.USER)return new s.default;var I=D==null?null:this.getSelection(),H=this.editor.delta,q=K();if(I!=null&&(D===!0&&(D=I.index),A==null?I=te(I,q,j):A!==0&&(I=te(I,D,A,j)),this.setSelection(I,u.default.sources.SILENT)),q.length()>0){var L,U=[u.default.events.TEXT_CHANGE,q,H,j];if((L=this.emitter).emit.apply(L,[u.default.events.EDITOR_CHANGE].concat(U)),j!==u.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,U)}}return q}function W(K,j,D,A,I){var H={};return typeof K.index=="number"&&typeof K.length=="number"?typeof j!="number"?(I=A,A=D,D=j,j=K.length,K=K.index):(j=K.length,K=K.index):typeof j!="number"&&(I=A,A=D,D=j,j=0),(typeof D>"u"?"undefined":i(D))==="object"?(H=D,I=A):typeof D=="string"&&(A!=null?H[D]=A:I=D),I=I||u.default.sources.API,[K,j,H,I]}function te(K,j,D,A){if(K==null)return null;var I=void 0,H=void 0;if(j instanceof s.default){var q=[K.index,K.index+K.length].map(function(J){return j.transformPosition(J,A!==u.default.sources.USER)}),L=d(q,2);I=L[0],H=L[1]}else{var U=[K.index,K.index+K.length].map(function(J){return J<j||J===j&&A===u.default.sources.USER?J:D>=0?J+D:Math.max(j,J+D)}),Z=d(U,2);I=Z[0],H=Z[1]}return new b.Range(I,H-I)}o.expandConfig=F,o.overload=W,o.default=P}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function $(v,b){for(var y=0;y<b.length;y++){var m=b[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,b,y){return b&&$(v.prototype,b),y&&$(v,y),v}})(),d=function $(v,b,y){v===null&&(v=Function.prototype);var m=Object.getOwnPropertyDescriptor(v,b);if(m===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:$(w,b,y)}else{if("value"in m)return m.value;var x=m.get;return x===void 0?void 0:x.call(y)}},c=a(7),p=f(c),s=a(0),h=f(s);function f($){return $&&$.__esModule?$:{default:$}}function l($,v){if(!($ instanceof v))throw new TypeError("Cannot call a class as a function")}function u($,v){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:$}function _($,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);$.prototype=Object.create(v&&v.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf($,v):$.__proto__=v)}var g=(function($){_(v,$);function v(){return l(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,[{key:"formatAt",value:function(y,m,w,x){if(v.compare(this.statics.blotName,w)<0&&h.default.query(w,h.default.Scope.BLOT)){var S=this.isolate(y,m);x&&S.wrap(w,x)}else d(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,y,m,w,x)}},{key:"optimize",value:function(y){if(d(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,y),this.parent instanceof v&&v.compare(this.statics.blotName,this.parent.statics.blotName)>0){var m=this.parent.isolate(this.offset(),this.length());this.moveChildren(m),m.wrap(this)}}}],[{key:"compare",value:function(y,m){var w=v.order.indexOf(y),x=v.order.indexOf(m);return w>=0||x>=0?w-x:y===m?0:y<m?-1:1}}]),v})(h.default.Inline);g.allowedChildren=[g,h.default.Embed,p.default],g.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],o.default=g}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(0),d=c(i);function c(l){return l&&l.__esModule?l:{default:l}}function p(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function s(l,u){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:l}function h(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(l,u):l.__proto__=u)}var f=(function(l){h(u,l);function u(){return p(this,u),s(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u})(d.default.Text);o.default=f}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function b(y,m){for(var w=0;w<m.length;w++){var x=m[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,m,w){return m&&b(y.prototype,m),w&&b(y,w),y}})(),d=function b(y,m,w){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,m);if(x===void 0){var S=Object.getPrototypeOf(y);return S===null?void 0:b(S,m,w)}else{if("value"in x)return x.value;var T=x.get;return T===void 0?void 0:T.call(w)}},c=a(54),p=f(c),s=a(10),h=f(s);function f(b){return b&&b.__esModule?b:{default:b}}function l(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function u(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function _(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var g=(0,h.default)("quill:events"),$=["selectionchange","mousedown","mouseup","click"];$.forEach(function(b){document.addEventListener(b,function(){for(var y=arguments.length,m=Array(y),w=0;w<y;w++)m[w]=arguments[w];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(x){if(x.__quill&&x.__quill.emitter){var S;(S=x.__quill.emitter).handleDOM.apply(S,m)}})})});var v=(function(b){_(y,b);function y(){l(this,y);var m=u(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));return m.listeners={},m.on("error",g.error),m}return i(y,[{key:"emit",value:function(){g.log.apply(g,arguments),d(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(w){for(var x=arguments.length,S=Array(x>1?x-1:0),T=1;T<x;T++)S[T-1]=arguments[T];(this.listeners[w.type]||[]).forEach(function(M){var E=M.node,C=M.handler;(w.target===E||E.contains(w.target))&&C.apply(void 0,[w].concat(S))})}},{key:"listenDOM",value:function(w,x,S){this.listeners[w]||(this.listeners[w]=[]),this.listeners[w].push({node:x,handler:S})}}]),y})(p.default);v.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},v.sources={API:"api",SILENT:"silent",USER:"user"},o.default=v}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});function i(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}var d=function c(p){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,c),this.quill=p,this.options=s};d.DEFAULTS={},o.default=d}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=["error","warn","log","info"],d="warn";function c(s){if(i.indexOf(s)<=i.indexOf(d)){for(var h,f=arguments.length,l=Array(f>1?f-1:0),u=1;u<f;u++)l[u-1]=arguments[u];(h=console)[s].apply(h,l)}}function p(s){return i.reduce(function(h,f){return h[f]=c.bind(console,f,s),h},{})}c.level=p.level=function(s){d=s},o.default=p}),(function(e,o,a){var i=Array.prototype.slice,d=a(52),c=a(53),p=e.exports=function(l,u,_){return _||(_={}),l===u?!0:l instanceof Date&&u instanceof Date?l.getTime()===u.getTime():!l||!u||typeof l!="object"&&typeof u!="object"?_.strict?l===u:l==u:f(l,u,_)};function s(l){return l==null}function h(l){return!(!l||typeof l!="object"||typeof l.length!="number"||typeof l.copy!="function"||typeof l.slice!="function"||l.length>0&&typeof l[0]!="number")}function f(l,u,_){var g,$;if(s(l)||s(u)||l.prototype!==u.prototype)return!1;if(c(l))return c(u)?(l=i.call(l),u=i.call(u),p(l,u,_)):!1;if(h(l)){if(!h(u)||l.length!==u.length)return!1;for(g=0;g<l.length;g++)if(l[g]!==u[g])return!1;return!0}try{var v=d(l),b=d(u)}catch{return!1}if(v.length!=b.length)return!1;for(v.sort(),b.sort(),g=v.length-1;g>=0;g--)if(v[g]!=b[g])return!1;for(g=v.length-1;g>=0;g--)if($=v[g],!p(l[$],u[$],_))return!1;return typeof l==typeof u}}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(1),d=(function(){function c(p,s,h){h===void 0&&(h={}),this.attrName=p,this.keyName=s;var f=i.Scope.TYPE&i.Scope.ATTRIBUTE;h.scope!=null?this.scope=h.scope&i.Scope.LEVEL|f:this.scope=i.Scope.ATTRIBUTE,h.whitelist!=null&&(this.whitelist=h.whitelist)}return c.keys=function(p){return[].map.call(p.attributes,function(s){return s.name})},c.prototype.add=function(p,s){return this.canAdd(p,s)?(p.setAttribute(this.keyName,s),!0):!1},c.prototype.canAdd=function(p,s){var h=i.query(p,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return h==null?!1:this.whitelist==null?!0:typeof s=="string"?this.whitelist.indexOf(s.replace(/["']/g,""))>-1:this.whitelist.indexOf(s)>-1},c.prototype.remove=function(p){p.removeAttribute(this.keyName)},c.prototype.value=function(p){var s=p.getAttribute(this.keyName);return this.canAdd(p,s)&&s?s:""},c})();o.default=d}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.Code=void 0;var i=(function(){function T(M,E){var C=[],O=!0,N=!1,P=void 0;try{for(var F=M[Symbol.iterator](),G;!(O=(G=F.next()).done)&&(C.push(G.value),!(E&&C.length===E));O=!0);}catch(W){N=!0,P=W}finally{try{!O&&F.return&&F.return()}finally{if(N)throw P}}return C}return function(M,E){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return T(M,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),d=(function(){function T(M,E){for(var C=0;C<E.length;C++){var O=E[C];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(M,O.key,O)}}return function(M,E,C){return E&&T(M.prototype,E),C&&T(M,C),M}})(),c=function T(M,E,C){M===null&&(M=Function.prototype);var O=Object.getOwnPropertyDescriptor(M,E);if(O===void 0){var N=Object.getPrototypeOf(M);return N===null?void 0:T(N,E,C)}else{if("value"in O)return O.value;var P=O.get;return P===void 0?void 0:P.call(C)}},p=a(2),s=b(p),h=a(0),f=b(h),l=a(4),u=b(l),_=a(6),g=b(_),$=a(7),v=b($);function b(T){return T&&T.__esModule?T:{default:T}}function y(T,M){if(!(T instanceof M))throw new TypeError("Cannot call a class as a function")}function m(T,M){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:T}function w(T,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);T.prototype=Object.create(M&&M.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(T,M):T.__proto__=M)}var x=(function(T){w(M,T);function M(){return y(this,M),m(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return M})(g.default);x.blotName="code",x.tagName="CODE";var S=(function(T){w(M,T);function M(){return y(this,M),m(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return d(M,[{key:"delta",value:function(){var C=this,O=this.domNode.textContent;return O.endsWith(`
|
|
104
|
+
`)&&(O=O.slice(0,-1)),O.split(`
|
|
105
|
+
`).reduce(function(N,P){return N.insert(P).insert(`
|
|
106
|
+
`,C.formats())},new s.default)}},{key:"format",value:function(C,O){if(!(C===this.statics.blotName&&O)){var N=this.descendant(v.default,this.length()-1),P=i(N,1),F=P[0];F!=null&&F.deleteAt(F.length()-1,1),c(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"format",this).call(this,C,O)}}},{key:"formatAt",value:function(C,O,N,P){if(O!==0&&!(f.default.query(N,f.default.Scope.BLOCK)==null||N===this.statics.blotName&&P===this.statics.formats(this.domNode))){var F=this.newlineIndex(C);if(!(F<0||F>=C+O)){var G=this.newlineIndex(C,!0)+1,W=F-G+1,te=this.isolate(G,W),K=te.next;te.format(N,P),K instanceof M&&K.formatAt(0,C-G+O-W,N,P)}}}},{key:"insertAt",value:function(C,O,N){if(N==null){var P=this.descendant(v.default,C),F=i(P,2),G=F[0],W=F[1];G.insertAt(W,O)}}},{key:"length",value:function(){var C=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
107
|
+
`)?C:C+1}},{key:"newlineIndex",value:function(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O)return this.domNode.textContent.slice(0,C).lastIndexOf(`
|
|
108
|
+
`);var N=this.domNode.textContent.slice(C).indexOf(`
|
|
109
|
+
`);return N>-1?C+N:-1}},{key:"optimize",value:function(C){this.domNode.textContent.endsWith(`
|
|
110
|
+
`)||this.appendChild(f.default.create("text",`
|
|
111
|
+
`)),c(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,C);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(C),O.moveChildren(this),O.remove())}},{key:"replace",value:function(C){c(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var N=f.default.find(O);N==null?O.parentNode.removeChild(O):N instanceof f.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(C){var O=c(M.__proto__||Object.getPrototypeOf(M),"create",this).call(this,C);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),M})(u.default);S.blotName="code-block",S.tagName="PRE",S.TAB=" ",o.Code=x,o.default=S}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},d=(function(){function K(j,D){var A=[],I=!0,H=!1,q=void 0;try{for(var L=j[Symbol.iterator](),U;!(I=(U=L.next()).done)&&(A.push(U.value),!(D&&A.length===D));I=!0);}catch(Z){H=!0,q=Z}finally{try{!I&&L.return&&L.return()}finally{if(H)throw q}}return A}return function(j,D){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return K(j,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function K(j,D){for(var A=0;A<D.length;A++){var I=D[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(j,I.key,I)}}return function(j,D,A){return D&&K(j.prototype,D),A&&K(j,A),j}})(),p=a(2),s=O(p),h=a(20),f=O(h),l=a(0),u=O(l),_=a(13),g=O(_),$=a(24),v=O($),b=a(4),y=O(b),m=a(16),w=O(m),x=a(21),S=O(x),T=a(11),M=O(T),E=a(3),C=O(E);function O(K){return K&&K.__esModule?K:{default:K}}function N(K,j,D){return j in K?Object.defineProperty(K,j,{value:D,enumerable:!0,configurable:!0,writable:!0}):K[j]=D,K}function P(K,j){if(!(K instanceof j))throw new TypeError("Cannot call a class as a function")}var F=/^[ -~]*$/,G=(function(){function K(j){P(this,K),this.scroll=j,this.delta=this.getDelta()}return c(K,[{key:"applyDelta",value:function(D){var A=this,I=!1;this.scroll.update();var H=this.scroll.length();return this.scroll.batchStart(),D=te(D),D.reduce(function(q,L){var U=L.retain||L.delete||L.insert.length||1,Z=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var J=L.insert;J.endsWith(`
|
|
112
|
+
`)&&I&&(I=!1,J=J.slice(0,-1)),q>=H&&!J.endsWith(`
|
|
113
|
+
`)&&(I=!0),A.scroll.insertAt(q,J);var re=A.scroll.line(q),ce=d(re,2),he=ce[0],ve=ce[1],we=(0,C.default)({},(0,b.bubbleFormats)(he));if(he instanceof y.default){var Ee=he.descendant(u.default.Leaf,ve),Re=d(Ee,1),Pe=Re[0];we=(0,C.default)(we,(0,b.bubbleFormats)(Pe))}Z=f.default.attributes.diff(we,Z)||{}}else if(i(L.insert)==="object"){var Q=Object.keys(L.insert)[0];if(Q==null)return q;A.scroll.insertAt(q,Q,L.insert[Q])}H+=U}return Object.keys(Z).forEach(function(ne){A.scroll.formatAt(q,U,ne,Z[ne])}),q+U},0),D.reduce(function(q,L){return typeof L.delete=="number"?(A.scroll.deleteAt(q,L.delete),q):q+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(D)}},{key:"deleteText",value:function(D,A){return this.scroll.deleteAt(D,A),this.update(new s.default().retain(D).delete(A))}},{key:"formatLine",value:function(D,A){var I=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(H).forEach(function(q){if(!(I.scroll.whitelist!=null&&!I.scroll.whitelist[q])){var L=I.scroll.lines(D,Math.max(A,1)),U=A;L.forEach(function(Z){var J=Z.length();if(!(Z instanceof g.default))Z.format(q,H[q]);else{var re=D-Z.offset(I.scroll),ce=Z.newlineIndex(re+U)-re+1;Z.formatAt(re,ce,q,H[q])}U-=J})}}),this.scroll.optimize(),this.update(new s.default().retain(D).retain(A,(0,S.default)(H)))}},{key:"formatText",value:function(D,A){var I=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(H).forEach(function(q){I.scroll.formatAt(D,A,q,H[q])}),this.update(new s.default().retain(D).retain(A,(0,S.default)(H)))}},{key:"getContents",value:function(D,A){return this.delta.slice(D,D+A)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(D,A){return D.concat(A.delta())},new s.default)}},{key:"getFormat",value:function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=[],H=[];A===0?this.scroll.path(D).forEach(function(L){var U=d(L,1),Z=U[0];Z instanceof y.default?I.push(Z):Z instanceof u.default.Leaf&&H.push(Z)}):(I=this.scroll.lines(D,A),H=this.scroll.descendants(u.default.Leaf,D,A));var q=[I,H].map(function(L){if(L.length===0)return{};for(var U=(0,b.bubbleFormats)(L.shift());Object.keys(U).length>0;){var Z=L.shift();if(Z==null)return U;U=W((0,b.bubbleFormats)(Z),U)}return U});return C.default.apply(C.default,q)}},{key:"getText",value:function(D,A){return this.getContents(D,A).filter(function(I){return typeof I.insert=="string"}).map(function(I){return I.insert}).join("")}},{key:"insertEmbed",value:function(D,A,I){return this.scroll.insertAt(D,A,I),this.update(new s.default().retain(D).insert(N({},A,I)))}},{key:"insertText",value:function(D,A){var I=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return A=A.replace(/\r\n/g,`
|
|
114
|
+
`).replace(/\r/g,`
|
|
115
|
+
`),this.scroll.insertAt(D,A),Object.keys(H).forEach(function(q){I.scroll.formatAt(D,A.length,q,H[q])}),this.update(new s.default().retain(D).insert(A,(0,S.default)(H)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var D=this.scroll.children.head;return D.statics.blotName!==y.default.blotName||D.children.length>1?!1:D.children.head instanceof w.default}},{key:"removeFormat",value:function(D,A){var I=this.getText(D,A),H=this.scroll.line(D+A),q=d(H,2),L=q[0],U=q[1],Z=0,J=new s.default;L!=null&&(L instanceof g.default?Z=L.newlineIndex(U)-U+1:Z=L.length()-U,J=L.delta().slice(U,U+Z-1).insert(`
|
|
116
|
+
`));var re=this.getContents(D,A+Z),ce=re.diff(new s.default().insert(I).concat(J)),he=new s.default().retain(D).concat(ce);return this.applyDelta(he)}},{key:"update",value:function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,H=this.delta;if(A.length===1&&A[0].type==="characterData"&&A[0].target.data.match(F)&&u.default.find(A[0].target)){var q=u.default.find(A[0].target),L=(0,b.bubbleFormats)(q),U=q.offset(this.scroll),Z=A[0].oldValue.replace(v.default.CONTENTS,""),J=new s.default().insert(Z),re=new s.default().insert(q.value()),ce=new s.default().retain(U).concat(J.diff(re,I));D=ce.reduce(function(he,ve){return ve.insert?he.insert(ve.insert,L):he.push(ve)},new s.default),this.delta=H.compose(D)}else this.delta=this.getDelta(),(!D||!(0,M.default)(H.compose(D),this.delta))&&(D=H.diff(this.delta,I));return D}}]),K})();function W(K,j){return Object.keys(j).reduce(function(D,A){return K[A]==null||(j[A]===K[A]?D[A]=j[A]:Array.isArray(j[A])?j[A].indexOf(K[A])<0&&(D[A]=j[A].concat([K[A]])):D[A]=[j[A],K[A]]),D},{})}function te(K){return K.reduce(function(j,D){if(D.insert===1){var A=(0,S.default)(D.attributes);return delete A.image,j.insert({image:D.attributes.image},A)}if(D.attributes!=null&&(D.attributes.list===!0||D.attributes.bullet===!0)&&(D=(0,S.default)(D),D.attributes.list?D.attributes.list="ordered":(D.attributes.list="bullet",delete D.attributes.bullet)),typeof D.insert=="string"){var I=D.insert.replace(/\r\n/g,`
|
|
117
|
+
`).replace(/\r/g,`
|
|
118
|
+
`);return j.insert(I,D.attributes)}return j.push(D)},new s.default)}o.default=G}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.Range=void 0;var i=(function(){function T(M,E){var C=[],O=!0,N=!1,P=void 0;try{for(var F=M[Symbol.iterator](),G;!(O=(G=F.next()).done)&&(C.push(G.value),!(E&&C.length===E));O=!0);}catch(W){N=!0,P=W}finally{try{!O&&F.return&&F.return()}finally{if(N)throw P}}return C}return function(M,E){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return T(M,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),d=(function(){function T(M,E){for(var C=0;C<E.length;C++){var O=E[C];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(M,O.key,O)}}return function(M,E,C){return E&&T(M.prototype,E),C&&T(M,C),M}})(),c=a(0),p=v(c),s=a(21),h=v(s),f=a(11),l=v(f),u=a(8),_=v(u),g=a(10),$=v(g);function v(T){return T&&T.__esModule?T:{default:T}}function b(T){if(Array.isArray(T)){for(var M=0,E=Array(T.length);M<T.length;M++)E[M]=T[M];return E}else return Array.from(T)}function y(T,M){if(!(T instanceof M))throw new TypeError("Cannot call a class as a function")}var m=(0,$.default)("quill:selection"),w=function T(M){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;y(this,T),this.index=M,this.length=E},x=(function(){function T(M,E){var C=this;y(this,T),this.emitter=E,this.scroll=M,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=p.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,_.default.sources.USER),1)}),this.emitter.on(_.default.events.EDITOR_CHANGE,function(O,N){O===_.default.events.TEXT_CHANGE&&N.length()>0&&C.update(_.default.sources.SILENT)}),this.emitter.on(_.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var O=C.getNativeRange();O!=null&&O.start.node!==C.cursor.textNode&&C.emitter.once(_.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(_.default.events.SCROLL_OPTIMIZE,function(O,N){if(N.range){var P=N.range,F=P.startNode,G=P.startOffset,W=P.endNode,te=P.endOffset;C.setNativeRange(F,G,W,te)}}),this.update(_.default.sources.SILENT)}return d(T,[{key:"handleComposition",value:function(){var E=this;this.root.addEventListener("compositionstart",function(){E.composing=!0}),this.root.addEventListener("compositionend",function(){if(E.composing=!1,E.cursor.parent){var C=E.cursor.restore();if(!C)return;setTimeout(function(){E.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var E=this;this.emitter.listenDOM("mousedown",document.body,function(){E.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){E.mouseDown=!1,E.update(_.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(E,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[E])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||p.default.query(E,p.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var N=p.default.find(O.start.node,!1);if(N==null)return;if(N instanceof p.default.Leaf){var P=N.split(O.start.offset);N.parent.insertBefore(this.cursor,P)}else N.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(E,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();E=Math.min(E,O-1),C=Math.min(E+C,O-1)-E;var N=void 0,P=this.scroll.leaf(E),F=i(P,2),G=F[0],W=F[1];if(G==null)return null;var te=G.position(W,!0),K=i(te,2);N=K[0],W=K[1];var j=document.createRange();if(C>0){j.setStart(N,W);var D=this.scroll.leaf(E+C),A=i(D,2);if(G=A[0],W=A[1],G==null)return null;var I=G.position(W,!0),H=i(I,2);return N=H[0],W=H[1],j.setEnd(N,W),j.getBoundingClientRect()}else{var q="left",L=void 0;return N instanceof Text?(W<N.data.length?(j.setStart(N,W),j.setEnd(N,W+1)):(j.setStart(N,W-1),j.setEnd(N,W),q="right"),L=j.getBoundingClientRect()):(L=G.domNode.getBoundingClientRect(),W>0&&(q="right")),{bottom:L.top+L.height,height:L.height,left:L[q],right:L[q],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var E=document.getSelection();if(E==null||E.rangeCount<=0)return null;var C=E.getRangeAt(0);if(C==null)return null;var O=this.normalizeNative(C);return m.info("getNativeRange",O),O}},{key:"getRange",value:function(){var E=this.getNativeRange();if(E==null)return[null,null];var C=this.normalizedToRange(E);return[C,E]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(E){var C=this,O=[[E.start.node,E.start.offset]];E.native.collapsed||O.push([E.end.node,E.end.offset]);var N=O.map(function(G){var W=i(G,2),te=W[0],K=W[1],j=p.default.find(te,!0),D=j.offset(C.scroll);return K===0?D:j instanceof p.default.Container?D+j.length():D+j.index(te,K)}),P=Math.min(Math.max.apply(Math,b(N)),this.scroll.length()-1),F=Math.min.apply(Math,[P].concat(b(N)));return new w(F,P-F)}},{key:"normalizeNative",value:function(E){if(!S(this.root,E.startContainer)||!E.collapsed&&!S(this.root,E.endContainer))return null;var C={start:{node:E.startContainer,offset:E.startOffset},end:{node:E.endContainer,offset:E.endOffset},native:E};return[C.start,C.end].forEach(function(O){for(var N=O.node,P=O.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>P)N=N.childNodes[P],P=0;else if(N.childNodes.length===P)N=N.lastChild,P=N instanceof Text?N.data.length:N.childNodes.length+1;else break;O.node=N,O.offset=P}),C}},{key:"rangeToNative",value:function(E){var C=this,O=E.collapsed?[E.index]:[E.index,E.index+E.length],N=[],P=this.scroll.length();return O.forEach(function(F,G){F=Math.min(P-1,F);var W=void 0,te=C.scroll.leaf(F),K=i(te,2),j=K[0],D=K[1],A=j.position(D,G!==0),I=i(A,2);W=I[0],D=I[1],N.push(W,D)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(E){var C=this.lastRange;if(C!=null){var O=this.getBounds(C.index,C.length);if(O!=null){var N=this.scroll.length()-1,P=this.scroll.line(Math.min(C.index,N)),F=i(P,1),G=F[0],W=G;if(C.length>0){var te=this.scroll.line(Math.min(C.index+C.length,N)),K=i(te,1);W=K[0]}if(!(G==null||W==null)){var j=E.getBoundingClientRect();O.top<j.top?E.scrollTop-=j.top-O.top:O.bottom>j.bottom&&(E.scrollTop+=O.bottom-j.bottom)}}}}},{key:"setNativeRange",value:function(E,C){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:E,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(m.info("setNativeRange",E,C,O,N),!(E!=null&&(this.root.parentNode==null||E.parentNode==null||O.parentNode==null))){var F=document.getSelection();if(F!=null)if(E!=null){this.hasFocus()||this.root.focus();var G=(this.getNativeRange()||{}).native;if(G==null||P||E!==G.startContainer||C!==G.startOffset||O!==G.endContainer||N!==G.endOffset){E.tagName=="BR"&&(C=[].indexOf.call(E.parentNode.childNodes,E),E=E.parentNode),O.tagName=="BR"&&(N=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var W=document.createRange();W.setStart(E,C),W.setEnd(O,N),F.removeAllRanges(),F.addRange(W)}}else F.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.default.sources.API;if(typeof C=="string"&&(O=C,C=!1),m.info("setRange",E),E!=null){var N=this.rangeToNative(E);this.setNativeRange.apply(this,b(N).concat([C]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_.default.sources.USER,C=this.lastRange,O=this.getRange(),N=i(O,2),P=N[0],F=N[1];if(this.lastRange=P,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,l.default)(C,this.lastRange)){var G;!this.composing&&F!=null&&F.native.collapsed&&F.start.node!==this.cursor.textNode&&this.cursor.restore();var W=[_.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(C),E];if((G=this.emitter).emit.apply(G,[_.default.events.EDITOR_CHANGE].concat(W)),E!==_.default.sources.SILENT){var te;(te=this.emitter).emit.apply(te,W)}}}}]),T})();function S(T,M){try{M.parentNode}catch{return!1}return M instanceof Text&&(M=M.parentNode),T.contains(M)}o.Range=w,o.default=x}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function _(g,$){for(var v=0;v<$.length;v++){var b=$[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,$,v){return $&&_(g.prototype,$),v&&_(g,v),g}})(),d=function _(g,$,v){g===null&&(g=Function.prototype);var b=Object.getOwnPropertyDescriptor(g,$);if(b===void 0){var y=Object.getPrototypeOf(g);return y===null?void 0:_(y,$,v)}else{if("value"in b)return b.value;var m=b.get;return m===void 0?void 0:m.call(v)}},c=a(0),p=s(c);function s(_){return _&&_.__esModule?_:{default:_}}function h(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function f(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function l(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=(function(_){l(g,_);function g(){return h(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"insertInto",value:function(v,b){v.children.length===0?d(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertInto",this).call(this,v,b):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),g})(p.default.Embed);u.blotName="break",u.tagName="BR",o.default=u}),(function(e,o,a){var i=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var _ in u)u.hasOwnProperty(_)&&(l[_]=u[_])};return function(l,u){f(l,u);function _(){this.constructor=l}l.prototype=u===null?Object.create(u):(_.prototype=u.prototype,new _)}})();Object.defineProperty(o,"__esModule",{value:!0});var d=a(44),c=a(30),p=a(1),s=(function(f){i(l,f);function l(u){var _=f.call(this,u)||this;return _.build(),_}return l.prototype.appendChild=function(u){this.insertBefore(u)},l.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(u){u.attach()})},l.prototype.build=function(){var u=this;this.children=new d.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(_){try{var g=h(_);u.insertBefore(g,u.children.head||void 0)}catch($){if($ instanceof p.ParchmentError)return;throw $}})},l.prototype.deleteAt=function(u,_){if(u===0&&_===this.length())return this.remove();this.children.forEachAt(u,_,function(g,$,v){g.deleteAt($,v)})},l.prototype.descendant=function(u,_){var g=this.children.find(_),$=g[0],v=g[1];return u.blotName==null&&u($)||u.blotName!=null&&$ instanceof u?[$,v]:$ instanceof l?$.descendant(u,v):[null,-1]},l.prototype.descendants=function(u,_,g){_===void 0&&(_=0),g===void 0&&(g=Number.MAX_VALUE);var $=[],v=g;return this.children.forEachAt(_,g,function(b,y,m){(u.blotName==null&&u(b)||u.blotName!=null&&b instanceof u)&&$.push(b),b instanceof l&&($=$.concat(b.descendants(u,y,v))),v-=m}),$},l.prototype.detach=function(){this.children.forEach(function(u){u.detach()}),f.prototype.detach.call(this)},l.prototype.formatAt=function(u,_,g,$){this.children.forEachAt(u,_,function(v,b,y){v.formatAt(b,y,g,$)})},l.prototype.insertAt=function(u,_,g){var $=this.children.find(u),v=$[0],b=$[1];if(v)v.insertAt(b,_,g);else{var y=g==null?p.create("text",_):p.create(_,g);this.appendChild(y)}},l.prototype.insertBefore=function(u,_){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(g){return u instanceof g}))throw new p.ParchmentError("Cannot insert "+u.statics.blotName+" into "+this.statics.blotName);u.insertInto(this,_)},l.prototype.length=function(){return this.children.reduce(function(u,_){return u+_.length()},0)},l.prototype.moveChildren=function(u,_){this.children.forEach(function(g){u.insertBefore(g,_)})},l.prototype.optimize=function(u){if(f.prototype.optimize.call(this,u),this.children.length===0)if(this.statics.defaultChild!=null){var _=p.create(this.statics.defaultChild);this.appendChild(_),_.optimize(u)}else this.remove()},l.prototype.path=function(u,_){_===void 0&&(_=!1);var g=this.children.find(u,_),$=g[0],v=g[1],b=[[this,u]];return $ instanceof l?b.concat($.path(v,_)):($!=null&&b.push([$,v]),b)},l.prototype.removeChild=function(u){this.children.remove(u)},l.prototype.replace=function(u){u instanceof l&&u.moveChildren(this),f.prototype.replace.call(this,u)},l.prototype.split=function(u,_){if(_===void 0&&(_=!1),!_){if(u===0)return this;if(u===this.length())return this.next}var g=this.clone();return this.parent.insertBefore(g,this.next),this.children.forEachAt(u,this.length(),function($,v,b){$=$.split(v,_),g.appendChild($)}),g},l.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},l.prototype.update=function(u,_){var g=this,$=[],v=[];u.forEach(function(b){b.target===g.domNode&&b.type==="childList"&&($.push.apply($,b.addedNodes),v.push.apply(v,b.removedNodes))}),v.forEach(function(b){if(!(b.parentNode!=null&&b.tagName!=="IFRAME"&&document.body.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var y=p.find(b);y!=null&&(y.domNode.parentNode==null||y.domNode.parentNode===g.domNode)&&y.detach()}}),$.filter(function(b){return b.parentNode==g.domNode}).sort(function(b,y){return b===y?0:b.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(b){var y=null;b.nextSibling!=null&&(y=p.find(b.nextSibling));var m=h(b);(m.next!=y||m.next==null)&&(m.parent!=null&&m.parent.removeChild(g),g.insertBefore(m,y||void 0))})},l})(c.default);function h(f){var l=p.find(f);if(l==null)try{l=p.create(f)}catch{l=p.create(p.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(_){l.domNode.appendChild(_)}),f.parentNode&&f.parentNode.replaceChild(l.domNode,f),l.attach()}return l}o.default=s}),(function(e,o,a){var i=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var _ in u)u.hasOwnProperty(_)&&(l[_]=u[_])};return function(l,u){f(l,u);function _(){this.constructor=l}l.prototype=u===null?Object.create(u):(_.prototype=u.prototype,new _)}})();Object.defineProperty(o,"__esModule",{value:!0});var d=a(12),c=a(31),p=a(17),s=a(1),h=(function(f){i(l,f);function l(u){var _=f.call(this,u)||this;return _.attributes=new c.default(_.domNode),_}return l.formats=function(u){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return u.tagName.toLowerCase()},l.prototype.format=function(u,_){var g=s.query(u);g instanceof d.default?this.attributes.attribute(g,_):_&&g!=null&&(u!==this.statics.blotName||this.formats()[u]!==_)&&this.replaceWith(u,_)},l.prototype.formats=function(){var u=this.attributes.values(),_=this.statics.formats(this.domNode);return _!=null&&(u[this.statics.blotName]=_),u},l.prototype.replaceWith=function(u,_){var g=f.prototype.replaceWith.call(this,u,_);return this.attributes.copy(g),g},l.prototype.update=function(u,_){var g=this;f.prototype.update.call(this,u,_),u.some(function($){return $.target===g.domNode&&$.type==="attributes"})&&this.attributes.build()},l.prototype.wrap=function(u,_){var g=f.prototype.wrap.call(this,u,_);return g instanceof l&&g.statics.scope===this.statics.scope&&this.attributes.move(g),g},l})(p.default);o.default=h}),(function(e,o,a){var i=this&&this.__extends||(function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var l in f)f.hasOwnProperty(l)&&(h[l]=f[l])};return function(h,f){s(h,f);function l(){this.constructor=h}h.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}})();Object.defineProperty(o,"__esModule",{value:!0});var d=a(30),c=a(1),p=(function(s){i(h,s);function h(){return s!==null&&s.apply(this,arguments)||this}return h.value=function(f){return!0},h.prototype.index=function(f,l){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(l,1):-1},h.prototype.position=function(f,l){var u=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(u+=1),[this.parent.domNode,u]},h.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},h.scope=c.Scope.INLINE_BLOT,h})(d.default);o.default=p}),(function(e,o,a){var i=a(11),d=a(3),c={attributes:{compose:function(s,h,f){typeof s!="object"&&(s={}),typeof h!="object"&&(h={});var l=d(!0,{},h);f||(l=Object.keys(l).reduce(function(_,g){return l[g]!=null&&(_[g]=l[g]),_},{}));for(var u in s)s[u]!==void 0&&h[u]===void 0&&(l[u]=s[u]);return Object.keys(l).length>0?l:void 0},diff:function(s,h){typeof s!="object"&&(s={}),typeof h!="object"&&(h={});var f=Object.keys(s).concat(Object.keys(h)).reduce(function(l,u){return i(s[u],h[u])||(l[u]=h[u]===void 0?null:h[u]),l},{});return Object.keys(f).length>0?f:void 0},transform:function(s,h,f){if(typeof s!="object")return h;if(typeof h=="object"){if(!f)return h;var l=Object.keys(h).reduce(function(u,_){return s[_]===void 0&&(u[_]=h[_]),u},{});return Object.keys(l).length>0?l:void 0}}},iterator:function(s){return new p(s)},length:function(s){return typeof s.delete=="number"?s.delete:typeof s.retain=="number"?s.retain:typeof s.insert=="string"?s.insert.length:1}};function p(s){this.ops=s,this.index=0,this.offset=0}p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(s){s||(s=1/0);var h=this.ops[this.index];if(h){var f=this.offset,l=c.length(h);if(s>=l-f?(s=l-f,this.index+=1,this.offset=0):this.offset+=s,typeof h.delete=="number")return{delete:s};var u={};return h.attributes&&(u.attributes=h.attributes),typeof h.retain=="number"?u.retain=s:typeof h.insert=="string"?u.insert=h.insert.substr(f,s):u.insert=h.insert,u}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?c.length(this.ops[this.index])-this.offset:1/0},p.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},p.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var s=this.offset,h=this.index,f=this.next(),l=this.ops.slice(this.index);return this.offset=s,this.index=h,[f].concat(l)}else return[]},e.exports=c}),(function(e,o){var a=(function(){function i(g,$){return $!=null&&g instanceof $}var d;try{d=Map}catch{d=function(){}}var c;try{c=Set}catch{c=function(){}}var p;try{p=Promise}catch{p=function(){}}function s(g,$,v,b,y){typeof $=="object"&&(v=$.depth,b=$.prototype,y=$.includeNonEnumerable,$=$.circular);var m=[],w=[],x=typeof Buffer<"u";typeof $>"u"&&($=!0),typeof v>"u"&&(v=1/0);function S(T,M){if(T===null)return null;if(M===0)return T;var E,C;if(typeof T!="object")return T;if(i(T,d))E=new d;else if(i(T,c))E=new c;else if(i(T,p))E=new p(function(j,D){T.then(function(A){j(S(A,M-1))},function(A){D(S(A,M-1))})});else if(s.__isArray(T))E=[];else if(s.__isRegExp(T))E=new RegExp(T.source,_(T)),T.lastIndex&&(E.lastIndex=T.lastIndex);else if(s.__isDate(T))E=new Date(T.getTime());else{if(x&&Buffer.isBuffer(T))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(T.length):E=new Buffer(T.length),T.copy(E),E;i(T,Error)?E=Object.create(T):typeof b>"u"?(C=Object.getPrototypeOf(T),E=Object.create(C)):(E=Object.create(b),C=b)}if($){var O=m.indexOf(T);if(O!=-1)return w[O];m.push(T),w.push(E)}i(T,d)&&T.forEach(function(j,D){var A=S(D,M-1),I=S(j,M-1);E.set(A,I)}),i(T,c)&&T.forEach(function(j){var D=S(j,M-1);E.add(D)});for(var N in T){var P;C&&(P=Object.getOwnPropertyDescriptor(C,N)),!(P&&P.set==null)&&(E[N]=S(T[N],M-1))}if(Object.getOwnPropertySymbols)for(var F=Object.getOwnPropertySymbols(T),N=0;N<F.length;N++){var G=F[N],W=Object.getOwnPropertyDescriptor(T,G);W&&!W.enumerable&&!y||(E[G]=S(T[G],M-1),W.enumerable||Object.defineProperty(E,G,{enumerable:!1}))}if(y)for(var te=Object.getOwnPropertyNames(T),N=0;N<te.length;N++){var K=te[N],W=Object.getOwnPropertyDescriptor(T,K);W&&W.enumerable||(E[K]=S(T[K],M-1),Object.defineProperty(E,K,{enumerable:!1}))}return E}return S(g,v)}s.clonePrototype=function($){if($===null)return null;var v=function(){};return v.prototype=$,new v};function h(g){return Object.prototype.toString.call(g)}s.__objToStr=h;function f(g){return typeof g=="object"&&h(g)==="[object Date]"}s.__isDate=f;function l(g){return typeof g=="object"&&h(g)==="[object Array]"}s.__isArray=l;function u(g){return typeof g=="object"&&h(g)==="[object RegExp]"}s.__isRegExp=u;function _(g){var $="";return g.global&&($+="g"),g.ignoreCase&&($+="i"),g.multiline&&($+="m"),$}return s.__getRegExpFlags=_,s})();typeof e=="object"&&e.exports&&(e.exports=a)}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function E(C,O){var N=[],P=!0,F=!1,G=void 0;try{for(var W=C[Symbol.iterator](),te;!(P=(te=W.next()).done)&&(N.push(te.value),!(O&&N.length===O));P=!0);}catch(K){F=!0,G=K}finally{try{!P&&W.return&&W.return()}finally{if(F)throw G}}return N}return function(C,O){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return E(C,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),d=(function(){function E(C,O){for(var N=0;N<O.length;N++){var P=O[N];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(C,P.key,P)}}return function(C,O,N){return O&&E(C.prototype,O),N&&E(C,N),C}})(),c=function E(C,O,N){C===null&&(C=Function.prototype);var P=Object.getOwnPropertyDescriptor(C,O);if(P===void 0){var F=Object.getPrototypeOf(C);return F===null?void 0:E(F,O,N)}else{if("value"in P)return P.value;var G=P.get;return G===void 0?void 0:G.call(N)}},p=a(0),s=m(p),h=a(8),f=m(h),l=a(4),u=m(l),_=a(16),g=m(_),$=a(13),v=m($),b=a(25),y=m(b);function m(E){return E&&E.__esModule?E:{default:E}}function w(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function x(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function S(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}function T(E){return E instanceof u.default||E instanceof l.BlockEmbed}var M=(function(E){S(C,E);function C(O,N){w(this,C);var P=x(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O));return P.emitter=N.emitter,Array.isArray(N.whitelist)&&(P.whitelist=N.whitelist.reduce(function(F,G){return F[G]=!0,F},{})),P.domNode.addEventListener("DOMNodeInserted",function(){}),P.optimize(),P.enable(),P}return d(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,P){var F=this.line(N),G=i(F,2),W=G[0],te=G[1],K=this.line(N+P),j=i(K,1),D=j[0];if(c(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,N,P),D!=null&&W!==D&&te>0){if(W instanceof l.BlockEmbed||D instanceof l.BlockEmbed){this.optimize();return}if(W instanceof v.default){var A=W.newlineIndex(W.length(),!0);if(A>-1&&(W=W.split(A+1),W===D)){this.optimize();return}}else if(D instanceof v.default){var I=D.newlineIndex(0);I>-1&&D.split(I+1)}var H=D.children.head instanceof g.default?null:D.children.head;W.moveChildren(D,H),W.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,P,F,G){this.whitelist!=null&&!this.whitelist[F]||(c(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,N,P,F,G),this.optimize())}},{key:"insertAt",value:function(N,P,F){if(!(F!=null&&this.whitelist!=null&&!this.whitelist[P])){if(N>=this.length())if(F==null||s.default.query(P,s.default.Scope.BLOCK)==null){var G=s.default.create(this.statics.defaultChild);this.appendChild(G),F==null&&P.endsWith(`
|
|
119
|
+
`)&&(P=P.slice(0,-1)),G.insertAt(0,P,F)}else{var W=s.default.create(P,F);this.appendChild(W)}else c(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,N,P,F);this.optimize()}}},{key:"insertBefore",value:function(N,P){if(N.statics.scope===s.default.Scope.INLINE_BLOT){var F=s.default.create(this.statics.defaultChild);F.appendChild(N),N=F}c(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,N,P)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(T,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,F=function G(W,te,K){var j=[],D=K;return W.children.forEachAt(te,K,function(A,I,H){T(A)?j.push(A):A instanceof s.default.Container&&(j=j.concat(G(A,I,D))),D-=H}),j};return F(this,N,P)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(c(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,N,P),N.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,N,P))}},{key:"path",value:function(N){return c(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var P=f.default.sources.USER;typeof N=="string"&&(P=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,P,N),c(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,P,N)}}}]),C})(s.default.Scroll);M.blotName="scroll",M.className="ql-editor",M.tagName="DIV",M.defaultChild="block",M.allowedChildren=[u.default,l.BlockEmbed,y.default],o.default=M}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.SHORTKEY=o.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},d=(function(){function L(U,Z){var J=[],re=!0,ce=!1,he=void 0;try{for(var ve=U[Symbol.iterator](),we;!(re=(we=ve.next()).done)&&(J.push(we.value),!(Z&&J.length===Z));re=!0);}catch(Ee){ce=!0,he=Ee}finally{try{!re&&ve.return&&ve.return()}finally{if(ce)throw he}}return J}return function(U,Z){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return L(U,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function L(U,Z){for(var J=0;J<Z.length;J++){var re=Z[J];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(U,re.key,re)}}return function(U,Z,J){return Z&&L(U.prototype,Z),J&&L(U,J),U}})(),p=a(21),s=E(p),h=a(11),f=E(h),l=a(3),u=E(l),_=a(2),g=E(_),$=a(20),v=E($),b=a(0),y=E(b),m=a(5),w=E(m),x=a(10),S=E(x),T=a(9),M=E(T);function E(L){return L&&L.__esModule?L:{default:L}}function C(L,U,Z){return U in L?Object.defineProperty(L,U,{value:Z,enumerable:!0,configurable:!0,writable:!0}):L[U]=Z,L}function O(L,U){if(!(L instanceof U))throw new TypeError("Cannot call a class as a function")}function N(L,U){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:L}function P(L,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);L.prototype=Object.create(U&&U.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(L,U):L.__proto__=U)}var F=(0,S.default)("quill:keyboard"),G=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",W=(function(L){P(U,L),c(U,null,[{key:"match",value:function(J,re){return re=q(re),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ce){return!!re[ce]!==J[ce]&&re[ce]!==null})?!1:re.key===(J.which||J.keyCode)}}]);function U(Z,J){O(this,U);var re=N(this,(U.__proto__||Object.getPrototypeOf(U)).call(this,Z,J));return re.bindings={},Object.keys(re.options.bindings).forEach(function(ce){ce==="list autofill"&&Z.scroll.whitelist!=null&&!Z.scroll.whitelist.list||re.options.bindings[ce]&&re.addBinding(re.options.bindings[ce])}),re.addBinding({key:U.keys.ENTER,shiftKey:null},A),re.addBinding({key:U.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(re.addBinding({key:U.keys.BACKSPACE},{collapsed:!0},K),re.addBinding({key:U.keys.DELETE},{collapsed:!0},j)):(re.addBinding({key:U.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},K),re.addBinding({key:U.keys.DELETE},{collapsed:!0,suffix:/^.?$/},j)),re.addBinding({key:U.keys.BACKSPACE},{collapsed:!1},D),re.addBinding({key:U.keys.DELETE},{collapsed:!1},D),re.addBinding({key:U.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},K),re.listen(),re}return c(U,[{key:"addBinding",value:function(J){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=q(J);if(he==null||he.key==null)return F.warn("Attempted to add invalid keyboard binding",he);typeof re=="function"&&(re={handler:re}),typeof ce=="function"&&(ce={handler:ce}),he=(0,u.default)(he,re,ce),this.bindings[he.key]=this.bindings[he.key]||[],this.bindings[he.key].push(he)}},{key:"listen",value:function(){var J=this;this.quill.root.addEventListener("keydown",function(re){if(!re.defaultPrevented){var ce=re.which||re.keyCode,he=(J.bindings[ce]||[]).filter(function(Se){return U.match(re,Se)});if(he.length!==0){var ve=J.quill.getSelection();if(!(ve==null||!J.quill.hasFocus())){var we=J.quill.getLine(ve.index),Ee=d(we,2),Re=Ee[0],Pe=Ee[1],Q=J.quill.getLeaf(ve.index),ne=d(Q,2),ae=ne[0],le=ne[1],ie=ve.length===0?[ae,le]:J.quill.getLeaf(ve.index+ve.length),$e=d(ie,2),me=$e[0],_e=$e[1],He=ae instanceof y.default.Text?ae.value().slice(0,le):"",Ve=me instanceof y.default.Text?me.value().slice(_e):"",Ne={collapsed:ve.length===0,empty:ve.length===0&&Re.length()<=1,format:J.quill.getFormat(ve),offset:Pe,prefix:He,suffix:Ve},gt=he.some(function(Se){if(Se.collapsed!=null&&Se.collapsed!==Ne.collapsed||Se.empty!=null&&Se.empty!==Ne.empty||Se.offset!=null&&Se.offset!==Ne.offset)return!1;if(Array.isArray(Se.format)){if(Se.format.every(function(nt){return Ne.format[nt]==null}))return!1}else if(i(Se.format)==="object"&&!Object.keys(Se.format).every(function(nt){return Se.format[nt]===!0?Ne.format[nt]!=null:Se.format[nt]===!1?Ne.format[nt]==null:(0,f.default)(Se.format[nt],Ne.format[nt])}))return!1;return Se.prefix!=null&&!Se.prefix.test(Ne.prefix)||Se.suffix!=null&&!Se.suffix.test(Ne.suffix)?!1:Se.handler.call(J,ve,Ne)!==!0});gt&&re.preventDefault()}}}})}}]),U})(M.default);W.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},W.DEFAULTS={bindings:{bold:H("bold"),italic:H("italic"),underline:H("underline"),indent:{key:W.keys.TAB,format:["blockquote","indent","list"],handler:function(U,Z){if(Z.collapsed&&Z.offset!==0)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:W.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(U,Z){if(Z.collapsed&&Z.offset!==0)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:W.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(U,Z){Z.format.indent!=null?this.quill.format("indent","-1",w.default.sources.USER):Z.format.list!=null&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":I(!0),"outdent code-block":I(!1),"remove tab":{key:W.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(U){this.quill.deleteText(U.index-1,1,w.default.sources.USER)}},tab:{key:W.keys.TAB,handler:function(U){this.quill.history.cutoff();var Z=new g.default().retain(U.index).delete(U.length).insert(" ");this.quill.updateContents(Z,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(U.index+1,w.default.sources.SILENT)}},"list empty enter":{key:W.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(U,Z){this.quill.format("list",!1,w.default.sources.USER),Z.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:W.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(U){var Z=this.quill.getLine(U.index),J=d(Z,2),re=J[0],ce=J[1],he=(0,u.default)({},re.formats(),{list:"checked"}),ve=new g.default().retain(U.index).insert(`
|
|
120
|
+
`,he).retain(re.length()-ce-1).retain(1,{list:"unchecked"});this.quill.updateContents(ve,w.default.sources.USER),this.quill.setSelection(U.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:W.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(U,Z){var J=this.quill.getLine(U.index),re=d(J,2),ce=re[0],he=re[1],ve=new g.default().retain(U.index).insert(`
|
|
121
|
+
`,Z.format).retain(ce.length()-he-1).retain(1,{header:null});this.quill.updateContents(ve,w.default.sources.USER),this.quill.setSelection(U.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(U,Z){var J=Z.prefix.length,re=this.quill.getLine(U.index),ce=d(re,2),he=ce[0],ve=ce[1];if(ve>J)return!0;var we=void 0;switch(Z.prefix.trim()){case"[]":case"[ ]":we="unchecked";break;case"[x]":we="checked";break;case"-":case"*":we="bullet";break;default:we="ordered"}this.quill.insertText(U.index," ",w.default.sources.USER),this.quill.history.cutoff();var Ee=new g.default().retain(U.index-ve).delete(J+1).retain(he.length()-2-ve).retain(1,{list:we});this.quill.updateContents(Ee,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(U.index-J,w.default.sources.SILENT)}},"code exit":{key:W.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(U){var Z=this.quill.getLine(U.index),J=d(Z,2),re=J[0],ce=J[1],he=new g.default().retain(U.index+re.length()-ce-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(he,w.default.sources.USER)}},"embed left":te(W.keys.LEFT,!1),"embed left shift":te(W.keys.LEFT,!0),"embed right":te(W.keys.RIGHT,!1),"embed right shift":te(W.keys.RIGHT,!0)}};function te(L,U){var Z,J=L===W.keys.LEFT?"prefix":"suffix";return Z={key:L,shiftKey:U,altKey:null},C(Z,J,/^$/),C(Z,"handler",function(ce){var he=ce.index;L===W.keys.RIGHT&&(he+=ce.length+1);var ve=this.quill.getLeaf(he),we=d(ve,1),Ee=we[0];return Ee instanceof y.default.Embed?(L===W.keys.LEFT?U?this.quill.setSelection(ce.index-1,ce.length+1,w.default.sources.USER):this.quill.setSelection(ce.index-1,w.default.sources.USER):U?this.quill.setSelection(ce.index,ce.length+1,w.default.sources.USER):this.quill.setSelection(ce.index+ce.length+1,w.default.sources.USER),!1):!0}),Z}function K(L,U){if(!(L.index===0||this.quill.getLength()<=1)){var Z=this.quill.getLine(L.index),J=d(Z,1),re=J[0],ce={};if(U.offset===0){var he=this.quill.getLine(L.index-1),ve=d(he,1),we=ve[0];if(we!=null&&we.length()>1){var Ee=re.formats(),Re=this.quill.getFormat(L.index-1,1);ce=v.default.attributes.diff(Ee,Re)||{}}}var Pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(U.prefix)?2:1;this.quill.deleteText(L.index-Pe,Pe,w.default.sources.USER),Object.keys(ce).length>0&&this.quill.formatLine(L.index-Pe,Pe,ce,w.default.sources.USER),this.quill.focus()}}function j(L,U){var Z=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(U.suffix)?2:1;if(!(L.index>=this.quill.getLength()-Z)){var J={},re=0,ce=this.quill.getLine(L.index),he=d(ce,1),ve=he[0];if(U.offset>=ve.length()-1){var we=this.quill.getLine(L.index+1),Ee=d(we,1),Re=Ee[0];if(Re){var Pe=ve.formats(),Q=this.quill.getFormat(L.index,1);J=v.default.attributes.diff(Pe,Q)||{},re=Re.length()}}this.quill.deleteText(L.index,Z,w.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine(L.index+re-1,Z,J,w.default.sources.USER)}}function D(L){var U=this.quill.getLines(L),Z={};if(U.length>1){var J=U[0].formats(),re=U[U.length-1].formats();Z=v.default.attributes.diff(re,J)||{}}this.quill.deleteText(L,w.default.sources.USER),Object.keys(Z).length>0&&this.quill.formatLine(L.index,1,Z,w.default.sources.USER),this.quill.setSelection(L.index,w.default.sources.SILENT),this.quill.focus()}function A(L,U){var Z=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var J=Object.keys(U.format).reduce(function(re,ce){return y.default.query(ce,y.default.Scope.BLOCK)&&!Array.isArray(U.format[ce])&&(re[ce]=U.format[ce]),re},{});this.quill.insertText(L.index,`
|
|
122
|
+
`,J,w.default.sources.USER),this.quill.setSelection(L.index+1,w.default.sources.SILENT),this.quill.focus(),Object.keys(U.format).forEach(function(re){J[re]==null&&(Array.isArray(U.format[re])||re!=="link"&&Z.quill.format(re,U.format[re],w.default.sources.USER))})}function I(L){return{key:W.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(Z){var J=y.default.query("code-block"),re=Z.index,ce=Z.length,he=this.quill.scroll.descendant(J,re),ve=d(he,2),we=ve[0],Ee=ve[1];if(we!=null){var Re=this.quill.getIndex(we),Pe=we.newlineIndex(Ee,!0)+1,Q=we.newlineIndex(Re+Ee+ce),ne=we.domNode.textContent.slice(Pe,Q).split(`
|
|
123
|
+
`);Ee=0,ne.forEach(function(ae,le){L?(we.insertAt(Pe+Ee,J.TAB),Ee+=J.TAB.length,le===0?re+=J.TAB.length:ce+=J.TAB.length):ae.startsWith(J.TAB)&&(we.deleteAt(Pe+Ee,J.TAB.length),Ee-=J.TAB.length,le===0?re-=J.TAB.length:ce-=J.TAB.length),Ee+=ae.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(re,ce,w.default.sources.SILENT)}}}}function H(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(Z,J){this.quill.format(L,!J.format[L],w.default.sources.USER)}}}function q(L){if(typeof L=="string"||typeof L=="number")return q({key:L});if((typeof L>"u"?"undefined":i(L))==="object"&&(L=(0,s.default)(L,!1)),typeof L.key=="string")if(W.keys[L.key.toUpperCase()]!=null)L.key=W.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[G]=L.shortKey,delete L.shortKey),L}o.default=W,o.SHORTKEY=G}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function v(b,y){var m=[],w=!0,x=!1,S=void 0;try{for(var T=b[Symbol.iterator](),M;!(w=(M=T.next()).done)&&(m.push(M.value),!(y&&m.length===y));w=!0);}catch(E){x=!0,S=E}finally{try{!w&&T.return&&T.return()}finally{if(x)throw S}}return m}return function(b,y){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return v(b,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),d=function v(b,y,m){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,y);if(w===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,y,m)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(m)}},c=(function(){function v(b,y){for(var m=0;m<y.length;m++){var w=y[m];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,y,m){return y&&v(b.prototype,y),m&&v(b,m),b}})(),p=a(0),s=l(p),h=a(7),f=l(h);function l(v){return v&&v.__esModule?v:{default:v}}function u(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function _(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function g(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var $=(function(v){g(b,v),c(b,null,[{key:"value",value:function(){}}]);function b(y,m){u(this,b);var w=_(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,y));return w.selection=m,w.textNode=document.createTextNode(b.CONTENTS),w.domNode.appendChild(w.textNode),w._length=0,w}return c(b,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(m,w){if(this._length!==0)return d(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,m,w);for(var x=this,S=0;x!=null&&x.statics.scope!==s.default.Scope.BLOCK_BLOT;)S+=x.offset(x.parent),x=x.parent;x!=null&&(this._length=b.CONTENTS.length,x.optimize(),x.formatAt(S,b.CONTENTS.length,m,w),this._length=0)}},{key:"index",value:function(m,w){return m===this.textNode?0:d(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"index",this).call(this,m,w)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){d(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var m=this.textNode,w=this.selection.getNativeRange(),x=void 0,S=void 0,T=void 0;if(w!=null&&w.start.node===m&&w.end.node===m){var M=[m,w.start.offset,w.end.offset];x=M[0],S=M[1],T=M[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==b.CONTENTS){var E=this.textNode.data.split(b.CONTENTS).join("");this.next instanceof f.default?(x=this.next.domNode,this.next.insertAt(0,E),this.textNode.data=b.CONTENTS):(this.textNode.data=E,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(b.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),S!=null){var C=[S,T].map(function(N){return Math.max(0,Math.min(x.data.length,N-1))}),O=i(C,2);return S=O[0],T=O[1],{startNode:x,startOffset:S,endNode:x,endOffset:T}}}}},{key:"update",value:function(m,w){var x=this;if(m.some(function(T){return T.type==="characterData"&&T.target===x.textNode})){var S=this.restore();S&&(w.range=S)}}},{key:"value",value:function(){return""}}]),b})(s.default.Embed);$.blotName="cursor",$.className="ql-cursor",$.tagName="span",$.CONTENTS="\uFEFF",o.default=$}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(0),d=s(i),c=a(4),p=s(c);function s(_){return _&&_.__esModule?_:{default:_}}function h(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function f(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function l(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=(function(_){l(g,_);function g(){return h(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(d.default.Container);u.allowedChildren=[p.default,c.BlockEmbed,u],o.default=u}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.ColorStyle=o.ColorClass=o.ColorAttributor=void 0;var i=(function(){function $(v,b){for(var y=0;y<b.length;y++){var m=b[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,b,y){return b&&$(v.prototype,b),y&&$(v,y),v}})(),d=function $(v,b,y){v===null&&(v=Function.prototype);var m=Object.getOwnPropertyDescriptor(v,b);if(m===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:$(w,b,y)}else{if("value"in m)return m.value;var x=m.get;return x===void 0?void 0:x.call(y)}},c=a(0),p=s(c);function s($){return $&&$.__esModule?$:{default:$}}function h($,v){if(!($ instanceof v))throw new TypeError("Cannot call a class as a function")}function f($,v){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:$}function l($,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);$.prototype=Object.create(v&&v.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf($,v):$.__proto__=v)}var u=(function($){l(v,$);function v(){return h(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,[{key:"value",value:function(y){var m=d(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,y);return m.startsWith("rgb(")?(m=m.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+m.split(",").map(function(w){return("00"+parseInt(w).toString(16)).slice(-2)}).join("")):m}}]),v})(p.default.Attributor.Style),_=new p.default.Attributor.Class("color","ql-color",{scope:p.default.Scope.INLINE}),g=new u("color","color",{scope:p.default.Scope.INLINE});o.ColorAttributor=u,o.ColorClass=_,o.ColorStyle=g}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.sanitize=o.default=void 0;var i=(function(){function g($,v){for(var b=0;b<v.length;b++){var y=v[b];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty($,y.key,y)}}return function($,v,b){return v&&g($.prototype,v),b&&g($,b),$}})(),d=function g($,v,b){$===null&&($=Function.prototype);var y=Object.getOwnPropertyDescriptor($,v);if(y===void 0){var m=Object.getPrototypeOf($);return m===null?void 0:g(m,v,b)}else{if("value"in y)return y.value;var w=y.get;return w===void 0?void 0:w.call(b)}},c=a(6),p=s(c);function s(g){return g&&g.__esModule?g:{default:g}}function h(g,$){if(!(g instanceof $))throw new TypeError("Cannot call a class as a function")}function f(g,$){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:g}function l(g,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);g.prototype=Object.create($&&$.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(g,$):g.__proto__=$)}var u=(function(g){l($,g);function $(){return h(this,$),f(this,($.__proto__||Object.getPrototypeOf($)).apply(this,arguments))}return i($,[{key:"format",value:function(b,y){if(b!==this.statics.blotName||!y)return d($.prototype.__proto__||Object.getPrototypeOf($.prototype),"format",this).call(this,b,y);y=this.constructor.sanitize(y),this.domNode.setAttribute("href",y)}}],[{key:"create",value:function(b){var y=d($.__proto__||Object.getPrototypeOf($),"create",this).call(this,b);return b=this.sanitize(b),y.setAttribute("href",b),y.setAttribute("rel","noopener noreferrer"),y.setAttribute("target","_blank"),y}},{key:"formats",value:function(b){return b.getAttribute("href")}},{key:"sanitize",value:function(b){return _(b,this.PROTOCOL_WHITELIST)?b:this.SANITIZED_URL}}]),$})(p.default);u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function _(g,$){var v=document.createElement("a");v.href=g;var b=v.href.slice(0,v.href.indexOf(":"));return $.indexOf(b)>-1}o.default=u,o.sanitize=_}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},d=(function(){function $(v,b){for(var y=0;y<b.length;y++){var m=b[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,b,y){return b&&$(v.prototype,b),y&&$(v,y),v}})(),c=a(23),p=f(c),s=a(107),h=f(s);function f($){return $&&$.__esModule?$:{default:$}}function l($,v){if(!($ instanceof v))throw new TypeError("Cannot call a class as a function")}var u=0;function _($,v){$.setAttribute(v,$.getAttribute(v)!=="true")}var g=(function(){function $(v){var b=this;l(this,$),this.select=v,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){b.togglePicker()}),this.label.addEventListener("keydown",function(y){switch(y.keyCode){case p.default.keys.ENTER:b.togglePicker();break;case p.default.keys.ESCAPE:b.escape(),y.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return d($,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),_(this.label,"aria-expanded"),_(this.options,"aria-hidden")}},{key:"buildItem",value:function(b){var y=this,m=document.createElement("span");return m.tabIndex="0",m.setAttribute("role","button"),m.classList.add("ql-picker-item"),b.hasAttribute("value")&&m.setAttribute("data-value",b.getAttribute("value")),b.textContent&&m.setAttribute("data-label",b.textContent),m.addEventListener("click",function(){y.selectItem(m,!0)}),m.addEventListener("keydown",function(w){switch(w.keyCode){case p.default.keys.ENTER:y.selectItem(m,!0),w.preventDefault();break;case p.default.keys.ESCAPE:y.escape(),w.preventDefault();break}}),m}},{key:"buildLabel",value:function(){var b=document.createElement("span");return b.classList.add("ql-picker-label"),b.innerHTML=h.default,b.tabIndex="0",b.setAttribute("role","button"),b.setAttribute("aria-expanded","false"),this.container.appendChild(b),b}},{key:"buildOptions",value:function(){var b=this,y=document.createElement("span");y.classList.add("ql-picker-options"),y.setAttribute("aria-hidden","true"),y.tabIndex="-1",y.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",y.id),this.options=y,[].slice.call(this.select.options).forEach(function(m){var w=b.buildItem(m);y.appendChild(w),m.selected===!0&&b.selectItem(w)}),this.container.appendChild(y)}},{key:"buildPicker",value:function(){var b=this;[].slice.call(this.select.attributes).forEach(function(y){b.container.setAttribute(y.name,y.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var b=this;this.close(),setTimeout(function(){return b.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=this.container.querySelector(".ql-selected");if(b!==m&&(m!=null&&m.classList.remove("ql-selected"),b!=null&&(b.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(b.parentNode.children,b),b.hasAttribute("data-value")?this.label.setAttribute("data-value",b.getAttribute("data-value")):this.label.removeAttribute("data-value"),b.hasAttribute("data-label")?this.label.setAttribute("data-label",b.getAttribute("data-label")):this.label.removeAttribute("data-label"),y))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":i(Event))==="object"){var w=document.createEvent("Event");w.initEvent("change",!0,!0),this.select.dispatchEvent(w)}this.close()}}},{key:"update",value:function(){var b=void 0;if(this.select.selectedIndex>-1){var y=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];b=this.select.options[this.select.selectedIndex],this.selectItem(y)}else this.selectItem(null);var m=b!=null&&b!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",m)}}]),$})();o.default=g}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(0),d=F(i),c=a(5),p=F(c),s=a(4),h=F(s),f=a(16),l=F(f),u=a(25),_=F(u),g=a(24),$=F(g),v=a(35),b=F(v),y=a(6),m=F(y),w=a(22),x=F(w),S=a(7),T=F(S),M=a(55),E=F(M),C=a(42),O=F(C),N=a(23),P=F(N);function F(G){return G&&G.__esModule?G:{default:G}}p.default.register({"blots/block":h.default,"blots/block/embed":s.BlockEmbed,"blots/break":l.default,"blots/container":_.default,"blots/cursor":$.default,"blots/embed":b.default,"blots/inline":m.default,"blots/scroll":x.default,"blots/text":T.default,"modules/clipboard":E.default,"modules/history":O.default,"modules/keyboard":P.default}),d.default.register(h.default,l.default,$.default,m.default,x.default,T.default),o.default=p.default}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(1),d=(function(){function c(p){this.domNode=p,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(c.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),c.create=function(p){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var s;return Array.isArray(this.tagName)?(typeof p=="string"&&(p=p.toUpperCase(),parseInt(p).toString()===p&&(p=parseInt(p))),typeof p=="number"?s=document.createElement(this.tagName[p-1]):this.tagName.indexOf(p)>-1?s=document.createElement(p):s=document.createElement(this.tagName[0])):s=document.createElement(this.tagName),this.className&&s.classList.add(this.className),s},c.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},c.prototype.clone=function(){var p=this.domNode.cloneNode(!1);return i.create(p)},c.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},c.prototype.deleteAt=function(p,s){var h=this.isolate(p,s);h.remove()},c.prototype.formatAt=function(p,s,h,f){var l=this.isolate(p,s);if(i.query(h,i.Scope.BLOT)!=null&&f)l.wrap(h,f);else if(i.query(h,i.Scope.ATTRIBUTE)!=null){var u=i.create(this.statics.scope);l.wrap(u),u.format(h,f)}},c.prototype.insertAt=function(p,s,h){var f=h==null?i.create("text",s):i.create(s,h),l=this.split(p);this.parent.insertBefore(f,l)},c.prototype.insertInto=function(p,s){s===void 0&&(s=null),this.parent!=null&&this.parent.children.remove(this);var h=null;p.children.insertBefore(this,s),s!=null&&(h=s.domNode),(this.domNode.parentNode!=p.domNode||this.domNode.nextSibling!=h)&&p.domNode.insertBefore(this.domNode,h),this.parent=p,this.attach()},c.prototype.isolate=function(p,s){var h=this.split(p);return h.split(s),h},c.prototype.length=function(){return 1},c.prototype.offset=function(p){return p===void 0&&(p=this.parent),this.parent==null||this==p?0:this.parent.children.offset(this)+this.parent.offset(p)},c.prototype.optimize=function(p){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},c.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},c.prototype.replace=function(p){p.parent!=null&&(p.parent.insertBefore(this,p.next),p.remove())},c.prototype.replaceWith=function(p,s){var h=typeof p=="string"?i.create(p,s):p;return h.replace(this),h},c.prototype.split=function(p,s){return p===0?this:this.next},c.prototype.update=function(p,s){},c.prototype.wrap=function(p,s){var h=typeof p=="string"?i.create(p,s):p;return this.parent!=null&&this.parent.insertBefore(h,this.next),h.appendChild(this),h},c.blotName="abstract",c})();o.default=d}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(12),d=a(32),c=a(33),p=a(1),s=(function(){function h(f){this.attributes={},this.domNode=f,this.build()}return h.prototype.attribute=function(f,l){l?f.add(this.domNode,l)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},h.prototype.build=function(){var f=this;this.attributes={};var l=i.default.keys(this.domNode),u=d.default.keys(this.domNode),_=c.default.keys(this.domNode);l.concat(u).concat(_).forEach(function(g){var $=p.query(g,p.Scope.ATTRIBUTE);$ instanceof i.default&&(f.attributes[$.attrName]=$)})},h.prototype.copy=function(f){var l=this;Object.keys(this.attributes).forEach(function(u){var _=l.attributes[u].value(l.domNode);f.format(u,_)})},h.prototype.move=function(f){var l=this;this.copy(f),Object.keys(this.attributes).forEach(function(u){l.attributes[u].remove(l.domNode)}),this.attributes={}},h.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(l,u){return l[u]=f.attributes[u].value(f.domNode),l},{})},h})();o.default=s}),(function(e,o,a){var i=this&&this.__extends||(function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var l in f)f.hasOwnProperty(l)&&(h[l]=f[l])};return function(h,f){s(h,f);function l(){this.constructor=h}h.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}})();Object.defineProperty(o,"__esModule",{value:!0});var d=a(12);function c(s,h){var f=s.getAttribute("class")||"";return f.split(/\s+/).filter(function(l){return l.indexOf(h+"-")===0})}var p=(function(s){i(h,s);function h(){return s!==null&&s.apply(this,arguments)||this}return h.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(l){return l.split("-").slice(0,-1).join("-")})},h.prototype.add=function(f,l){return this.canAdd(f,l)?(this.remove(f),f.classList.add(this.keyName+"-"+l),!0):!1},h.prototype.remove=function(f){var l=c(f,this.keyName);l.forEach(function(u){f.classList.remove(u)}),f.classList.length===0&&f.removeAttribute("class")},h.prototype.value=function(f){var l=c(f,this.keyName)[0]||"",u=l.slice(this.keyName.length+1);return this.canAdd(f,u)?u:""},h})(d.default);o.default=p}),(function(e,o,a){var i=this&&this.__extends||(function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var l in f)f.hasOwnProperty(l)&&(h[l]=f[l])};return function(h,f){s(h,f);function l(){this.constructor=h}h.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}})();Object.defineProperty(o,"__esModule",{value:!0});var d=a(12);function c(s){var h=s.split("-"),f=h.slice(1).map(function(l){return l[0].toUpperCase()+l.slice(1)}).join("");return h[0]+f}var p=(function(s){i(h,s);function h(){return s!==null&&s.apply(this,arguments)||this}return h.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(l){var u=l.split(":");return u[0].trim()})},h.prototype.add=function(f,l){return this.canAdd(f,l)?(f.style[c(this.keyName)]=l,!0):!1},h.prototype.remove=function(f){f.style[c(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},h.prototype.value=function(f){var l=f.style[c(this.keyName)];return this.canAdd(f,l)?l:""},h})(d.default);o.default=p}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function p(s,h){for(var f=0;f<h.length;f++){var l=h[f];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,h,f){return h&&p(s.prototype,h),f&&p(s,f),s}})();function d(p,s){if(!(p instanceof s))throw new TypeError("Cannot call a class as a function")}var c=(function(){function p(s,h){d(this,p),this.quill=s,this.options=h,this.modules={}}return i(p,[{key:"init",value:function(){var h=this;Object.keys(this.options.modules).forEach(function(f){h.modules[f]==null&&h.addModule(f)})}},{key:"addModule",value:function(h){var f=this.quill.constructor.import("modules/"+h);return this.modules[h]=new f(this.quill,this.options.modules[h]||{}),this.modules[h]}}]),p})();c.DEFAULTS={modules:{}},c.themes={default:c},o.default=c}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function v(b,y){for(var m=0;m<y.length;m++){var w=y[m];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,y,m){return y&&v(b.prototype,y),m&&v(b,m),b}})(),d=function v(b,y,m){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,y);if(w===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,y,m)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(m)}},c=a(0),p=f(c),s=a(7),h=f(s);function f(v){return v&&v.__esModule?v:{default:v}}function l(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function u(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function _(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var g="\uFEFF",$=(function(v){_(b,v);function b(y){l(this,b);var m=u(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,y));return m.contentNode=document.createElement("span"),m.contentNode.setAttribute("contenteditable",!1),[].slice.call(m.domNode.childNodes).forEach(function(w){m.contentNode.appendChild(w)}),m.leftGuard=document.createTextNode(g),m.rightGuard=document.createTextNode(g),m.domNode.appendChild(m.leftGuard),m.domNode.appendChild(m.contentNode),m.domNode.appendChild(m.rightGuard),m}return i(b,[{key:"index",value:function(m,w){return m===this.leftGuard?0:m===this.rightGuard?1:d(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"index",this).call(this,m,w)}},{key:"restore",value:function(m){var w=void 0,x=void 0,S=m.data.split(g).join("");if(m===this.leftGuard)if(this.prev instanceof h.default){var T=this.prev.length();this.prev.insertAt(T,S),w={startNode:this.prev.domNode,startOffset:T+S.length}}else x=document.createTextNode(S),this.parent.insertBefore(p.default.create(x),this),w={startNode:x,startOffset:S.length};else m===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,S),w={startNode:this.next.domNode,startOffset:S.length}):(x=document.createTextNode(S),this.parent.insertBefore(p.default.create(x),this.next),w={startNode:x,startOffset:S.length}));return m.data=g,w}},{key:"update",value:function(m,w){var x=this;m.forEach(function(S){if(S.type==="characterData"&&(S.target===x.leftGuard||S.target===x.rightGuard)){var T=x.restore(S.target);T&&(w.range=T)}})}}]),b})(p.default.Embed);o.default=$}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.AlignStyle=o.AlignClass=o.AlignAttribute=void 0;var i=a(0),d=c(i);function c(l){return l&&l.__esModule?l:{default:l}}var p={scope:d.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new d.default.Attributor.Attribute("align","align",p),h=new d.default.Attributor.Class("align","ql-align",p),f=new d.default.Attributor.Style("align","text-align",p);o.AlignAttribute=s,o.AlignClass=h,o.AlignStyle=f}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.BackgroundStyle=o.BackgroundClass=void 0;var i=a(0),d=p(i),c=a(26);function p(f){return f&&f.__esModule?f:{default:f}}var s=new d.default.Attributor.Class("background","ql-bg",{scope:d.default.Scope.INLINE}),h=new c.ColorAttributor("background","background-color",{scope:d.default.Scope.INLINE});o.BackgroundClass=s,o.BackgroundStyle=h}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.DirectionStyle=o.DirectionClass=o.DirectionAttribute=void 0;var i=a(0),d=c(i);function c(l){return l&&l.__esModule?l:{default:l}}var p={scope:d.default.Scope.BLOCK,whitelist:["rtl"]},s=new d.default.Attributor.Attribute("direction","dir",p),h=new d.default.Attributor.Class("direction","ql-direction",p),f=new d.default.Attributor.Style("direction","direction",p);o.DirectionAttribute=s,o.DirectionClass=h,o.DirectionStyle=f}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.FontClass=o.FontStyle=void 0;var i=(function(){function v(b,y){for(var m=0;m<y.length;m++){var w=y[m];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,y,m){return y&&v(b.prototype,y),m&&v(b,m),b}})(),d=function v(b,y,m){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,y);if(w===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,y,m)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(m)}},c=a(0),p=s(c);function s(v){return v&&v.__esModule?v:{default:v}}function h(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function f(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function l(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var u={scope:p.default.Scope.INLINE,whitelist:["serif","monospace"]},_=new p.default.Attributor.Class("font","ql-font",u),g=(function(v){l(b,v);function b(){return h(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"value",value:function(m){return d(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,m).replace(/["']/g,"")}}]),b})(p.default.Attributor.Style),$=new g("font","font-family",u);o.FontStyle=$,o.FontClass=_}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.SizeStyle=o.SizeClass=void 0;var i=a(0),d=c(i);function c(h){return h&&h.__esModule?h:{default:h}}var p=new d.default.Attributor.Class("size","ql-size",{scope:d.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new d.default.Attributor.Style("size","font-size",{scope:d.default.Scope.INLINE,whitelist:["10px","18px","32px"]});o.SizeClass=p,o.SizeStyle=s}),(function(e,o,a){e.exports={align:{"":a(76),center:a(77),right:a(78),justify:a(79)},background:a(80),blockquote:a(81),bold:a(82),clean:a(83),code:a(58),"code-block":a(58),color:a(84),direction:{"":a(85),rtl:a(86)},float:{center:a(87),full:a(88),left:a(89),right:a(90)},formula:a(91),header:{1:a(92),2:a(93)},italic:a(94),image:a(95),indent:{"+1":a(96),"-1":a(97)},link:a(98),list:{ordered:a(99),bullet:a(100),check:a(101)},script:{sub:a(102),super:a(103)},strike:a(104),underline:a(105),video:a(106)}}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.getLastChangeIndex=o.default=void 0;var i=(function(){function y(m,w){for(var x=0;x<w.length;x++){var S=w[x];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(m,S.key,S)}}return function(m,w,x){return w&&y(m.prototype,w),x&&y(m,x),m}})(),d=a(0),c=l(d),p=a(5),s=l(p),h=a(9),f=l(h);function l(y){return y&&y.__esModule?y:{default:y}}function u(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function _(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function g(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var $=(function(y){g(m,y);function m(w,x){u(this,m);var S=_(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,w,x));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(s.default.events.EDITOR_CHANGE,function(T,M,E,C){T!==s.default.events.TEXT_CHANGE||S.ignoreChange||(!S.options.userOnly||C===s.default.sources.USER?S.record(M,E):S.transform(M))}),S.quill.keyboard.addBinding({key:"Z",shortKey:!0},S.undo.bind(S)),S.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},S.redo.bind(S)),/Win/i.test(navigator.platform)&&S.quill.keyboard.addBinding({key:"Y",shortKey:!0},S.redo.bind(S)),S}return i(m,[{key:"change",value:function(x,S){if(this.stack[x].length!==0){var T=this.stack[x].pop();this.stack[S].push(T),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(T[x],s.default.sources.USER),this.ignoreChange=!1;var M=b(T[x]);this.quill.setSelection(M)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(x,S){if(x.ops.length!==0){this.stack.redo=[];var T=this.quill.getContents().diff(S),M=Date.now();if(this.lastRecorded+this.options.delay>M&&this.stack.undo.length>0){var E=this.stack.undo.pop();T=T.compose(E.undo),x=E.redo.compose(x)}else this.lastRecorded=M;this.stack.undo.push({redo:x,undo:T}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(x){this.stack.undo.forEach(function(S){S.undo=x.transform(S.undo,!0),S.redo=x.transform(S.redo,!0)}),this.stack.redo.forEach(function(S){S.undo=x.transform(S.undo,!0),S.redo=x.transform(S.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),m})(f.default);$.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function v(y){var m=y.ops[y.ops.length-1];return m==null?!1:m.insert!=null?typeof m.insert=="string"&&m.insert.endsWith(`
|
|
124
|
+
`):m.attributes!=null?Object.keys(m.attributes).some(function(w){return c.default.query(w,c.default.Scope.BLOCK)!=null}):!1}function b(y){var m=y.reduce(function(x,S){return x+=S.delete||0,x},0),w=y.length()-m;return v(y)&&(w-=1),w}o.default=$,o.getLastChangeIndex=b}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BaseTooltip=void 0;var i=(function(){function A(I,H){for(var q=0;q<H.length;q++){var L=H[q];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(I,L.key,L)}}return function(I,H,q){return H&&A(I.prototype,H),q&&A(I,q),I}})(),d=function A(I,H,q){I===null&&(I=Function.prototype);var L=Object.getOwnPropertyDescriptor(I,H);if(L===void 0){var U=Object.getPrototypeOf(I);return U===null?void 0:A(U,H,q)}else{if("value"in L)return L.value;var Z=L.get;return Z===void 0?void 0:Z.call(q)}},c=a(3),p=M(c),s=a(2),h=M(s),f=a(8),l=M(f),u=a(23),_=M(u),g=a(34),$=M(g),v=a(59),b=M(v),y=a(60),m=M(y),w=a(28),x=M(w),S=a(61),T=M(S);function M(A){return A&&A.__esModule?A:{default:A}}function E(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function C(A,I){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:A}function O(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(A,I):A.__proto__=I)}var N=[!1,"center","right","justify"],P=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],F=[!1,"serif","monospace"],G=["1","2","3",!1],W=["small",!1,"large","huge"],te=(function(A){O(I,A);function I(H,q){E(this,I);var L=C(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,H,q)),U=function Z(J){if(!document.body.contains(H.root))return document.body.removeEventListener("click",Z);L.tooltip!=null&&!L.tooltip.root.contains(J.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(re){re.container.contains(J.target)||re.close()})};return H.emitter.listenDOM("click",document.body,U),L}return i(I,[{key:"addModule",value:function(q){var L=d(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"addModule",this).call(this,q);return q==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(q,L){q.forEach(function(U){var Z=U.getAttribute("class")||"";Z.split(/\s+/).forEach(function(J){if(J.startsWith("ql-")&&(J=J.slice(3),L[J]!=null))if(J==="direction")U.innerHTML=L[J][""]+L[J].rtl;else if(typeof L[J]=="string")U.innerHTML=L[J];else{var re=U.value||"";re!=null&&L[J][re]&&(U.innerHTML=L[J][re])}})})}},{key:"buildPickers",value:function(q,L){var U=this;this.pickers=q.map(function(J){if(J.classList.contains("ql-align"))return J.querySelector("option")==null&&D(J,N),new m.default(J,L.align);if(J.classList.contains("ql-background")||J.classList.contains("ql-color")){var re=J.classList.contains("ql-background")?"background":"color";return J.querySelector("option")==null&&D(J,P,re==="background"?"#ffffff":"#000000"),new b.default(J,L[re])}else return J.querySelector("option")==null&&(J.classList.contains("ql-font")?D(J,F):J.classList.contains("ql-header")?D(J,G):J.classList.contains("ql-size")&&D(J,W)),new x.default(J)});var Z=function(){U.pickers.forEach(function(re){re.update()})};this.quill.on(l.default.events.EDITOR_CHANGE,Z)}}]),I})($.default);te.DEFAULTS=(0,p.default)(!0,{},$.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var I=this,H=this.container.querySelector("input.ql-image[type=file]");H==null&&(H=document.createElement("input"),H.setAttribute("type","file"),H.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),H.classList.add("ql-image"),H.addEventListener("change",function(){if(H.files!=null&&H.files[0]!=null){var q=new FileReader;q.onload=function(L){var U=I.quill.getSelection(!0);I.quill.updateContents(new h.default().retain(U.index).delete(U.length).insert({image:L.target.result}),l.default.sources.USER),I.quill.setSelection(U.index+1,l.default.sources.SILENT),H.value=""},q.readAsDataURL(H.files[0])}}),this.container.appendChild(H)),H.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var K=(function(A){O(I,A);function I(H,q){E(this,I);var L=C(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,H,q));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return i(I,[{key:"listen",value:function(){var q=this;this.textbox.addEventListener("keydown",function(L){_.default.match(L,"enter")?(q.save(),L.preventDefault()):_.default.match(L,"escape")&&(q.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:q!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+q)||""),this.root.setAttribute("data-mode",q)}},{key:"restoreFocus",value:function(){var q=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=q}},{key:"save",value:function(){var q=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",q,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",q,l.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":q=j(q);case"formula":{if(!q)break;var U=this.quill.getSelection(!0);if(U!=null){var Z=U.index+U.length;this.quill.insertEmbed(Z,this.root.getAttribute("data-mode"),q,l.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Z+1," ",l.default.sources.USER),this.quill.setSelection(Z+2,l.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),I})(T.default);function j(A){var I=A.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||A.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return I?(I[1]||"https")+"://www.youtube.com/embed/"+I[2]+"?showinfo=0":(I=A.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(I[1]||"https")+"://player.vimeo.com/video/"+I[2]+"/":A}function D(A,I){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;I.forEach(function(q){var L=document.createElement("option");q===H?L.setAttribute("selected","selected"):L.setAttribute("value",q),A.appendChild(L)})}o.BaseTooltip=K,o.default=te}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function d(){this.head=this.tail=null,this.length=0}return d.prototype.append=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];this.insertBefore(c[0],null),c.length>1&&this.append.apply(this,c.slice(1))},d.prototype.contains=function(c){for(var p,s=this.iterator();p=s();)if(p===c)return!0;return!1},d.prototype.insertBefore=function(c,p){c&&(c.next=p,p!=null?(c.prev=p.prev,p.prev!=null&&(p.prev.next=c),p.prev=c,p===this.head&&(this.head=c)):this.tail!=null?(this.tail.next=c,c.prev=this.tail,this.tail=c):(c.prev=null,this.head=this.tail=c),this.length+=1)},d.prototype.offset=function(c){for(var p=0,s=this.head;s!=null;){if(s===c)return p;p+=s.length(),s=s.next}return-1},d.prototype.remove=function(c){this.contains(c)&&(c.prev!=null&&(c.prev.next=c.next),c.next!=null&&(c.next.prev=c.prev),c===this.head&&(this.head=c.next),c===this.tail&&(this.tail=c.prev),this.length-=1)},d.prototype.iterator=function(c){return c===void 0&&(c=this.head),function(){var p=c;return c!=null&&(c=c.next),p}},d.prototype.find=function(c,p){p===void 0&&(p=!1);for(var s,h=this.iterator();s=h();){var f=s.length();if(c<f||p&&c===f&&(s.next==null||s.next.length()!==0))return[s,c];c-=f}return[null,0]},d.prototype.forEach=function(c){for(var p,s=this.iterator();p=s();)c(p)},d.prototype.forEachAt=function(c,p,s){if(!(p<=0))for(var h=this.find(c),f=h[0],l=h[1],u,_=c-l,g=this.iterator(f);(u=g())&&_<c+p;){var $=u.length();c>_?s(u,c-_,Math.min(p,_+$-c)):s(u,0,Math.min($,c+p-_)),_+=$}},d.prototype.map=function(c){return this.reduce(function(p,s){return p.push(c(s)),p},[])},d.prototype.reduce=function(c,p){for(var s,h=this.iterator();s=h();)p=c(p,s);return p},d})();o.default=i}),(function(e,o,a){var i=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var _ in u)u.hasOwnProperty(_)&&(l[_]=u[_])};return function(l,u){f(l,u);function _(){this.constructor=l}l.prototype=u===null?Object.create(u):(_.prototype=u.prototype,new _)}})();Object.defineProperty(o,"__esModule",{value:!0});var d=a(17),c=a(1),p={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,h=(function(f){i(l,f);function l(u){var _=f.call(this,u)||this;return _.scroll=_,_.observer=new MutationObserver(function(g){_.update(g)}),_.observer.observe(_.domNode,p),_.attach(),_}return l.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},l.prototype.deleteAt=function(u,_){this.update(),u===0&&_===this.length()?this.children.forEach(function(g){g.remove()}):f.prototype.deleteAt.call(this,u,_)},l.prototype.formatAt=function(u,_,g,$){this.update(),f.prototype.formatAt.call(this,u,_,g,$)},l.prototype.insertAt=function(u,_,g){this.update(),f.prototype.insertAt.call(this,u,_,g)},l.prototype.optimize=function(u,_){var g=this;u===void 0&&(u=[]),_===void 0&&(_={}),f.prototype.optimize.call(this,_);for(var $=[].slice.call(this.observer.takeRecords());$.length>0;)u.push($.pop());for(var v=function(w,x){x===void 0&&(x=!0),!(w==null||w===g)&&w.domNode.parentNode!=null&&(w.domNode[c.DATA_KEY].mutations==null&&(w.domNode[c.DATA_KEY].mutations=[]),x&&v(w.parent))},b=function(w){w.domNode[c.DATA_KEY]==null||w.domNode[c.DATA_KEY].mutations==null||(w instanceof d.default&&w.children.forEach(b),w.optimize(_))},y=u,m=0;y.length>0;m+=1){if(m>=s)throw new Error("[Parchment] Maximum optimize iterations reached");for(y.forEach(function(w){var x=c.find(w.target,!0);x!=null&&(x.domNode===w.target&&(w.type==="childList"?(v(c.find(w.previousSibling,!1)),[].forEach.call(w.addedNodes,function(S){var T=c.find(S,!1);v(T,!1),T instanceof d.default&&T.children.forEach(function(M){v(M,!1)})})):w.type==="attributes"&&v(x.prev)),v(x))}),this.children.forEach(b),y=[].slice.call(this.observer.takeRecords()),$=y.slice();$.length>0;)u.push($.pop())}},l.prototype.update=function(u,_){var g=this;_===void 0&&(_={}),u=u||this.observer.takeRecords(),u.map(function($){var v=c.find($.target,!0);return v==null?null:v.domNode[c.DATA_KEY].mutations==null?(v.domNode[c.DATA_KEY].mutations=[$],v):(v.domNode[c.DATA_KEY].mutations.push($),null)}).forEach(function($){$==null||$===g||$.domNode[c.DATA_KEY]==null||$.update($.domNode[c.DATA_KEY].mutations||[],_)}),this.domNode[c.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[c.DATA_KEY].mutations,_),this.optimize(u,_)},l.blotName="scroll",l.defaultChild="block",l.scope=c.Scope.BLOCK_BLOT,l.tagName="DIV",l})(d.default);o.default=h}),(function(e,o,a){var i=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){h(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(o,"__esModule",{value:!0});var d=a(18),c=a(1);function p(h,f){if(Object.keys(h).length!==Object.keys(f).length)return!1;for(var l in h)if(h[l]!==f[l])return!1;return!0}var s=(function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.formats=function(l){if(l.tagName!==f.tagName)return h.formats.call(this,l)},f.prototype.format=function(l,u){var _=this;l===this.statics.blotName&&!u?(this.children.forEach(function(g){g instanceof d.default||(g=g.wrap(f.blotName,!0)),_.attributes.copy(g)}),this.unwrap()):h.prototype.format.call(this,l,u)},f.prototype.formatAt=function(l,u,_,g){if(this.formats()[_]!=null||c.query(_,c.Scope.ATTRIBUTE)){var $=this.isolate(l,u);$.format(_,g)}else h.prototype.formatAt.call(this,l,u,_,g)},f.prototype.optimize=function(l){h.prototype.optimize.call(this,l);var u=this.formats();if(Object.keys(u).length===0)return this.unwrap();var _=this.next;_ instanceof f&&_.prev===this&&p(u,_.formats())&&(_.moveChildren(this),_.remove())},f.blotName="inline",f.scope=c.Scope.INLINE_BLOT,f.tagName="SPAN",f})(d.default);o.default=s}),(function(e,o,a){var i=this&&this.__extends||(function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var l in f)f.hasOwnProperty(l)&&(h[l]=f[l])};return function(h,f){s(h,f);function l(){this.constructor=h}h.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}})();Object.defineProperty(o,"__esModule",{value:!0});var d=a(18),c=a(1),p=(function(s){i(h,s);function h(){return s!==null&&s.apply(this,arguments)||this}return h.formats=function(f){var l=c.query(h.blotName).tagName;if(f.tagName!==l)return s.formats.call(this,f)},h.prototype.format=function(f,l){c.query(f,c.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!l?this.replaceWith(h.blotName):s.prototype.format.call(this,f,l))},h.prototype.formatAt=function(f,l,u,_){c.query(u,c.Scope.BLOCK)!=null?this.format(u,_):s.prototype.formatAt.call(this,f,l,u,_)},h.prototype.insertAt=function(f,l,u){if(u==null||c.query(l,c.Scope.INLINE)!=null)s.prototype.insertAt.call(this,f,l,u);else{var _=this.split(f),g=c.create(l,u);_.parent.insertBefore(g,_)}},h.prototype.update=function(f,l){navigator.userAgent.match(/Trident/)?this.build():s.prototype.update.call(this,f,l)},h.blotName="block",h.scope=c.Scope.BLOCK_BLOT,h.tagName="P",h})(d.default);o.default=p}),(function(e,o,a){var i=this&&this.__extends||(function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,h){s.__proto__=h}||function(s,h){for(var f in h)h.hasOwnProperty(f)&&(s[f]=h[f])};return function(s,h){p(s,h);function f(){this.constructor=s}s.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}})();Object.defineProperty(o,"__esModule",{value:!0});var d=a(19),c=(function(p){i(s,p);function s(){return p!==null&&p.apply(this,arguments)||this}return s.formats=function(h){},s.prototype.format=function(h,f){p.prototype.formatAt.call(this,0,this.length(),h,f)},s.prototype.formatAt=function(h,f,l,u){h===0&&f===this.length()?this.format(l,u):p.prototype.formatAt.call(this,h,f,l,u)},s.prototype.formats=function(){return this.statics.formats(this.domNode)},s})(d.default);o.default=c}),(function(e,o,a){var i=this&&this.__extends||(function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var l in f)f.hasOwnProperty(l)&&(h[l]=f[l])};return function(h,f){s(h,f);function l(){this.constructor=h}h.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}})();Object.defineProperty(o,"__esModule",{value:!0});var d=a(19),c=a(1),p=(function(s){i(h,s);function h(f){var l=s.call(this,f)||this;return l.text=l.statics.value(l.domNode),l}return h.create=function(f){return document.createTextNode(f)},h.value=function(f){var l=f.data;return l.normalize&&(l=l.normalize()),l},h.prototype.deleteAt=function(f,l){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+l)},h.prototype.index=function(f,l){return this.domNode===f?l:-1},h.prototype.insertAt=function(f,l,u){u==null?(this.text=this.text.slice(0,f)+l+this.text.slice(f),this.domNode.data=this.text):s.prototype.insertAt.call(this,f,l,u)},h.prototype.length=function(){return this.text.length},h.prototype.optimize=function(f){s.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof h&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},h.prototype.position=function(f,l){return[this.domNode,f]},h.prototype.split=function(f,l){if(l===void 0&&(l=!1),!l){if(f===0)return this;if(f===this.length())return this.next}var u=c.create(this.domNode.splitText(f));return this.parent.insertBefore(u,this.next),this.text=this.statics.value(this.domNode),u},h.prototype.update=function(f,l){var u=this;f.some(function(_){return _.type==="characterData"&&_.target===u.domNode})&&(this.text=this.statics.value(this.domNode))},h.prototype.value=function(){return this.text},h.blotName="text",h.scope=c.Scope.INLINE_BLOT,h})(d.default);o.default=p}),(function(e,o,a){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var d=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(c,p){return arguments.length>1&&!this.contains(c)==!p?p:d.call(this,c)}}String.prototype.startsWith||(String.prototype.startsWith=function(c,p){return p=p||0,this.substr(p,c.length)===c}),String.prototype.endsWith||(String.prototype.endsWith=function(c,p){var s=this.toString();(typeof p!="number"||!isFinite(p)||Math.floor(p)!==p||p>s.length)&&(p=s.length),p-=c.length;var h=s.indexOf(c,p);return h!==-1&&h===p}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(p){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof p!="function")throw new TypeError("predicate must be a function");for(var s=Object(this),h=s.length>>>0,f=arguments[1],l,u=0;u<h;u++)if(l=s[u],p.call(f,l,u,s))return l}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(e,o){var a=-1,i=1,d=0;function c(m,w,x){if(m==w)return m?[[d,m]]:[];(x<0||m.length<x)&&(x=null);var S=f(m,w),T=m.substring(0,S);m=m.substring(S),w=w.substring(S),S=l(m,w);var M=m.substring(m.length-S);m=m.substring(0,m.length-S),w=w.substring(0,w.length-S);var E=p(m,w);return T&&E.unshift([d,T]),M&&E.push([d,M]),_(E),x!=null&&(E=v(E,x)),E=b(E),E}function p(m,w){var x;if(!m)return[[i,w]];if(!w)return[[a,m]];var S=m.length>w.length?m:w,T=m.length>w.length?w:m,M=S.indexOf(T);if(M!=-1)return x=[[i,S.substring(0,M)],[d,T],[i,S.substring(M+T.length)]],m.length>w.length&&(x[0][0]=x[2][0]=a),x;if(T.length==1)return[[a,m],[i,w]];var E=u(m,w);if(E){var C=E[0],O=E[1],N=E[2],P=E[3],F=E[4],G=c(C,N),W=c(O,P);return G.concat([[d,F]],W)}return s(m,w)}function s(m,w){for(var x=m.length,S=w.length,T=Math.ceil((x+S)/2),M=T,E=2*T,C=new Array(E),O=new Array(E),N=0;N<E;N++)C[N]=-1,O[N]=-1;C[M+1]=0,O[M+1]=0;for(var P=x-S,F=P%2!=0,G=0,W=0,te=0,K=0,j=0;j<T;j++){for(var D=-j+G;D<=j-W;D+=2){var A=M+D,I;D==-j||D!=j&&C[A-1]<C[A+1]?I=C[A+1]:I=C[A-1]+1;for(var H=I-D;I<x&&H<S&&m.charAt(I)==w.charAt(H);)I++,H++;if(C[A]=I,I>x)W+=2;else if(H>S)G+=2;else if(F){var q=M+P-D;if(q>=0&&q<E&&O[q]!=-1){var L=x-O[q];if(I>=L)return h(m,w,I,H)}}}for(var U=-j+te;U<=j-K;U+=2){var q=M+U,L;U==-j||U!=j&&O[q-1]<O[q+1]?L=O[q+1]:L=O[q-1]+1;for(var Z=L-U;L<x&&Z<S&&m.charAt(x-L-1)==w.charAt(S-Z-1);)L++,Z++;if(O[q]=L,L>x)K+=2;else if(Z>S)te+=2;else if(!F){var A=M+P-U;if(A>=0&&A<E&&C[A]!=-1){var I=C[A],H=M+I-A;if(L=x-L,I>=L)return h(m,w,I,H)}}}}return[[a,m],[i,w]]}function h(m,w,x,S){var T=m.substring(0,x),M=w.substring(0,S),E=m.substring(x),C=w.substring(S),O=c(T,M),N=c(E,C);return O.concat(N)}function f(m,w){if(!m||!w||m.charAt(0)!=w.charAt(0))return 0;for(var x=0,S=Math.min(m.length,w.length),T=S,M=0;x<T;)m.substring(M,T)==w.substring(M,T)?(x=T,M=x):S=T,T=Math.floor((S-x)/2+x);return T}function l(m,w){if(!m||!w||m.charAt(m.length-1)!=w.charAt(w.length-1))return 0;for(var x=0,S=Math.min(m.length,w.length),T=S,M=0;x<T;)m.substring(m.length-T,m.length-M)==w.substring(w.length-T,w.length-M)?(x=T,M=x):S=T,T=Math.floor((S-x)/2+x);return T}function u(m,w){var x=m.length>w.length?m:w,S=m.length>w.length?w:m;if(x.length<4||S.length*2<x.length)return null;function T(W,te,K){for(var j=W.substring(K,K+Math.floor(W.length/4)),D=-1,A="",I,H,q,L;(D=te.indexOf(j,D+1))!=-1;){var U=f(W.substring(K),te.substring(D)),Z=l(W.substring(0,K),te.substring(0,D));A.length<Z+U&&(A=te.substring(D-Z,D)+te.substring(D,D+U),I=W.substring(0,K-Z),H=W.substring(K+U),q=te.substring(0,D-Z),L=te.substring(D+U))}return A.length*2>=W.length?[I,H,q,L,A]:null}var M=T(x,S,Math.ceil(x.length/4)),E=T(x,S,Math.ceil(x.length/2)),C;if(!M&&!E)return null;E?M?C=M[4].length>E[4].length?M:E:C=E:C=M;var O,N,P,F;m.length>w.length?(O=C[0],N=C[1],P=C[2],F=C[3]):(P=C[0],F=C[1],O=C[2],N=C[3]);var G=C[4];return[O,N,P,F,G]}function _(m){m.push([d,""]);for(var w=0,x=0,S=0,T="",M="",E;w<m.length;)switch(m[w][0]){case i:S++,M+=m[w][1],w++;break;case a:x++,T+=m[w][1],w++;break;case d:x+S>1?(x!==0&&S!==0&&(E=f(M,T),E!==0&&(w-x-S>0&&m[w-x-S-1][0]==d?m[w-x-S-1][1]+=M.substring(0,E):(m.splice(0,0,[d,M.substring(0,E)]),w++),M=M.substring(E),T=T.substring(E)),E=l(M,T),E!==0&&(m[w][1]=M.substring(M.length-E)+m[w][1],M=M.substring(0,M.length-E),T=T.substring(0,T.length-E))),x===0?m.splice(w-S,x+S,[i,M]):S===0?m.splice(w-x,x+S,[a,T]):m.splice(w-x-S,x+S,[a,T],[i,M]),w=w-x-S+(x?1:0)+(S?1:0)+1):w!==0&&m[w-1][0]==d?(m[w-1][1]+=m[w][1],m.splice(w,1)):w++,S=0,x=0,T="",M="";break}m[m.length-1][1]===""&&m.pop();var C=!1;for(w=1;w<m.length-1;)m[w-1][0]==d&&m[w+1][0]==d&&(m[w][1].substring(m[w][1].length-m[w-1][1].length)==m[w-1][1]?(m[w][1]=m[w-1][1]+m[w][1].substring(0,m[w][1].length-m[w-1][1].length),m[w+1][1]=m[w-1][1]+m[w+1][1],m.splice(w-1,1),C=!0):m[w][1].substring(0,m[w+1][1].length)==m[w+1][1]&&(m[w-1][1]+=m[w+1][1],m[w][1]=m[w][1].substring(m[w+1][1].length)+m[w+1][1],m.splice(w+1,1),C=!0)),w++;C&&_(m)}var g=c;g.INSERT=i,g.DELETE=a,g.EQUAL=d,e.exports=g;function $(m,w){if(w===0)return[d,m];for(var x=0,S=0;S<m.length;S++){var T=m[S];if(T[0]===a||T[0]===d){var M=x+T[1].length;if(w===M)return[S+1,m];if(w<M){m=m.slice();var E=w-x,C=[T[0],T[1].slice(0,E)],O=[T[0],T[1].slice(E)];return m.splice(S,1,C,O),[S+1,m]}else x=M}}throw new Error("cursor_pos is out of bounds!")}function v(m,w){var x=$(m,w),S=x[1],T=x[0],M=S[T],E=S[T+1];if(M==null)return m;if(M[0]!==d)return m;if(E!=null&&M[1]+E[1]===E[1]+M[1])return S.splice(T,2,E,M),y(S,T,2);if(E!=null&&E[1].indexOf(M[1])===0){S.splice(T,2,[E[0],M[1]],[0,M[1]]);var C=E[1].slice(M[1].length);return C.length>0&&S.splice(T+2,0,[E[0],C]),y(S,T,3)}else return m}function b(m){for(var w=!1,x=function(E){return E.charCodeAt(0)>=56320&&E.charCodeAt(0)<=57343},S=function(E){return E.charCodeAt(E.length-1)>=55296&&E.charCodeAt(E.length-1)<=56319},T=2;T<m.length;T+=1)m[T-2][0]===d&&S(m[T-2][1])&&m[T-1][0]===a&&x(m[T-1][1])&&m[T][0]===i&&x(m[T][1])&&(w=!0,m[T-1][1]=m[T-2][1].slice(-1)+m[T-1][1],m[T][1]=m[T-2][1].slice(-1)+m[T][1],m[T-2][1]=m[T-2][1].slice(0,-1));if(!w)return m;for(var M=[],T=0;T<m.length;T+=1)m[T][1].length>0&&M.push(m[T]);return M}function y(m,w,x){for(var S=w+x-1;S>=0&&S>=w-1;S--)if(S+1<m.length){var T=m[S],M=m[S+1];T[0]===M[1]&&m.splice(S,2,[T[0],T[1]+M[1]])}return m}}),(function(e,o){o=e.exports=typeof Object.keys=="function"?Object.keys:a,o.shim=a;function a(i){var d=[];for(var c in i)d.push(c);return d}}),(function(e,o){var a=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";o=e.exports=a?i:d,o.supported=i;function i(c){return Object.prototype.toString.call(c)=="[object Arguments]"}o.unsupported=d;function d(c){return c&&typeof c=="object"&&typeof c.length=="number"&&Object.prototype.hasOwnProperty.call(c,"callee")&&!Object.prototype.propertyIsEnumerable.call(c,"callee")||!1}}),(function(e,o){var a=Object.prototype.hasOwnProperty,i="~";function d(){}Object.create&&(d.prototype=Object.create(null),new d().__proto__||(i=!1));function c(s,h,f){this.fn=s,this.context=h,this.once=f||!1}function p(){this._events=new d,this._eventsCount=0}p.prototype.eventNames=function(){var h=[],f,l;if(this._eventsCount===0)return h;for(l in f=this._events)a.call(f,l)&&h.push(i?l.slice(1):l);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(f)):h},p.prototype.listeners=function(h,f){var l=i?i+h:h,u=this._events[l];if(f)return!!u;if(!u)return[];if(u.fn)return[u.fn];for(var _=0,g=u.length,$=new Array(g);_<g;_++)$[_]=u[_].fn;return $},p.prototype.emit=function(h,f,l,u,_,g){var $=i?i+h:h;if(!this._events[$])return!1;var v=this._events[$],b=arguments.length,y,m;if(v.fn){switch(v.once&&this.removeListener(h,v.fn,void 0,!0),b){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,l),!0;case 4:return v.fn.call(v.context,f,l,u),!0;case 5:return v.fn.call(v.context,f,l,u,_),!0;case 6:return v.fn.call(v.context,f,l,u,_,g),!0}for(m=1,y=new Array(b-1);m<b;m++)y[m-1]=arguments[m];v.fn.apply(v.context,y)}else{var w=v.length,x;for(m=0;m<w;m++)switch(v[m].once&&this.removeListener(h,v[m].fn,void 0,!0),b){case 1:v[m].fn.call(v[m].context);break;case 2:v[m].fn.call(v[m].context,f);break;case 3:v[m].fn.call(v[m].context,f,l);break;case 4:v[m].fn.call(v[m].context,f,l,u);break;default:if(!y)for(x=1,y=new Array(b-1);x<b;x++)y[x-1]=arguments[x];v[m].fn.apply(v[m].context,y)}}return!0},p.prototype.on=function(h,f,l){var u=new c(f,l||this),_=i?i+h:h;return this._events[_]?this._events[_].fn?this._events[_]=[this._events[_],u]:this._events[_].push(u):(this._events[_]=u,this._eventsCount++),this},p.prototype.once=function(h,f,l){var u=new c(f,l||this,!0),_=i?i+h:h;return this._events[_]?this._events[_].fn?this._events[_]=[this._events[_],u]:this._events[_].push(u):(this._events[_]=u,this._eventsCount++),this},p.prototype.removeListener=function(h,f,l,u){var _=i?i+h:h;if(!this._events[_])return this;if(!f)return--this._eventsCount===0?this._events=new d:delete this._events[_],this;var g=this._events[_];if(g.fn)g.fn===f&&(!u||g.once)&&(!l||g.context===l)&&(--this._eventsCount===0?this._events=new d:delete this._events[_]);else{for(var $=0,v=[],b=g.length;$<b;$++)(g[$].fn!==f||u&&!g[$].once||l&&g[$].context!==l)&&v.push(g[$]);v.length?this._events[_]=v.length===1?v[0]:v:--this._eventsCount===0?this._events=new d:delete this._events[_]}return this},p.prototype.removeAllListeners=function(h){var f;return h?(f=i?i+h:h,this._events[f]&&(--this._eventsCount===0?this._events=new d:delete this._events[f])):(this._events=new d,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prototype.setMaxListeners=function(){return this},p.prefixed=i,p.EventEmitter=p,typeof e<"u"&&(e.exports=p)}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.matchText=o.matchSpacing=o.matchNewline=o.matchBlot=o.matchAttributor=o.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},d=(function(){function Q(ne,ae){var le=[],ie=!0,$e=!1,me=void 0;try{for(var _e=ne[Symbol.iterator](),He;!(ie=(He=_e.next()).done)&&(le.push(He.value),!(ae&&le.length===ae));ie=!0);}catch(Ve){$e=!0,me=Ve}finally{try{!ie&&_e.return&&_e.return()}finally{if($e)throw me}}return le}return function(ne,ae){if(Array.isArray(ne))return ne;if(Symbol.iterator in Object(ne))return Q(ne,ae);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function Q(ne,ae){for(var le=0;le<ae.length;le++){var ie=ae[le];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(ne,ie.key,ie)}}return function(ne,ae,le){return ae&&Q(ne.prototype,ae),le&&Q(ne,le),ne}})(),p=a(3),s=O(p),h=a(2),f=O(h),l=a(0),u=O(l),_=a(5),g=O(_),$=a(10),v=O($),b=a(9),y=O(b),m=a(36),w=a(37),x=a(13),S=O(x),T=a(26),M=a(38),E=a(39),C=a(40);function O(Q){return Q&&Q.__esModule?Q:{default:Q}}function N(Q,ne,ae){return ne in Q?Object.defineProperty(Q,ne,{value:ae,enumerable:!0,configurable:!0,writable:!0}):Q[ne]=ae,Q}function P(Q,ne){if(!(Q instanceof ne))throw new TypeError("Cannot call a class as a function")}function F(Q,ne){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne&&(typeof ne=="object"||typeof ne=="function")?ne:Q}function G(Q,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ne);Q.prototype=Object.create(ne&&ne.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),ne&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,ne):Q.__proto__=ne)}var W=(0,v.default)("quill:clipboard"),te="__ql-matcher",K=[[Node.TEXT_NODE,Pe],[Node.TEXT_NODE,we],["br",ce],[Node.ELEMENT_NODE,we],[Node.ELEMENT_NODE,re],[Node.ELEMENT_NODE,Ee],[Node.ELEMENT_NODE,J],[Node.ELEMENT_NODE,Re],["li",ve],["b",Z.bind(Z,"bold")],["i",Z.bind(Z,"italic")],["style",he]],j=[m.AlignAttribute,M.DirectionAttribute].reduce(function(Q,ne){return Q[ne.keyName]=ne,Q},{}),D=[m.AlignStyle,w.BackgroundStyle,T.ColorStyle,M.DirectionStyle,E.FontStyle,C.SizeStyle].reduce(function(Q,ne){return Q[ne.keyName]=ne,Q},{}),A=(function(Q){G(ne,Q);function ne(ae,le){P(this,ne);var ie=F(this,(ne.__proto__||Object.getPrototypeOf(ne)).call(this,ae,le));return ie.quill.root.addEventListener("paste",ie.onPaste.bind(ie)),ie.container=ie.quill.addContainer("ql-clipboard"),ie.container.setAttribute("contenteditable",!0),ie.container.setAttribute("tabindex",-1),ie.matchers=[],K.concat(ie.options.matchers).forEach(function($e){var me=d($e,2),_e=me[0],He=me[1];!le.matchVisual&&He===Ee||ie.addMatcher(_e,He)}),ie}return c(ne,[{key:"addMatcher",value:function(le,ie){this.matchers.push([le,ie])}},{key:"convert",value:function(le){if(typeof le=="string")return this.container.innerHTML=le.replace(/\>\r?\n +\</g,"><"),this.convert();var ie=this.quill.getFormat(this.quill.selection.savedRange.index);if(ie[S.default.blotName]){var $e=this.container.innerText;return this.container.innerHTML="",new f.default().insert($e,N({},S.default.blotName,ie[S.default.blotName]))}var me=this.prepareMatching(),_e=d(me,2),He=_e[0],Ve=_e[1],Ne=U(this.container,He,Ve);return q(Ne,`
|
|
125
|
+
`)&&Ne.ops[Ne.ops.length-1].attributes==null&&(Ne=Ne.compose(new f.default().retain(Ne.length()-1).delete(1))),W.log("convert",this.container.innerHTML,Ne),this.container.innerHTML="",Ne}},{key:"dangerouslyPasteHTML",value:function(le,ie){var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;if(typeof le=="string")this.quill.setContents(this.convert(le),ie),this.quill.setSelection(0,g.default.sources.SILENT);else{var me=this.convert(ie);this.quill.updateContents(new f.default().retain(le).concat(me),$e),this.quill.setSelection(le+me.length(),g.default.sources.SILENT)}}},{key:"onPaste",value:function(le){var ie=this;if(!(le.defaultPrevented||!this.quill.isEnabled())){var $e=this.quill.getSelection(),me=new f.default().retain($e.index),_e=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(g.default.sources.SILENT),setTimeout(function(){me=me.concat(ie.convert()).delete($e.length),ie.quill.updateContents(me,g.default.sources.USER),ie.quill.setSelection(me.length()-$e.length,g.default.sources.SILENT),ie.quill.scrollingContainer.scrollTop=_e,ie.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var le=this,ie=[],$e=[];return this.matchers.forEach(function(me){var _e=d(me,2),He=_e[0],Ve=_e[1];switch(He){case Node.TEXT_NODE:$e.push(Ve);break;case Node.ELEMENT_NODE:ie.push(Ve);break;default:[].forEach.call(le.container.querySelectorAll(He),function(Ne){Ne[te]=Ne[te]||[],Ne[te].push(Ve)});break}}),[ie,$e]}}]),ne})(y.default);A.DEFAULTS={matchers:[],matchVisual:!0};function I(Q,ne,ae){return(typeof ne>"u"?"undefined":i(ne))==="object"?Object.keys(ne).reduce(function(le,ie){return I(le,ie,ne[ie])},Q):Q.reduce(function(le,ie){return ie.attributes&&ie.attributes[ne]?le.push(ie):le.insert(ie.insert,(0,s.default)({},N({},ne,ae),ie.attributes))},new f.default)}function H(Q){if(Q.nodeType!==Node.ELEMENT_NODE)return{};var ne="__ql-computed-style";return Q[ne]||(Q[ne]=window.getComputedStyle(Q))}function q(Q,ne){for(var ae="",le=Q.ops.length-1;le>=0&&ae.length<ne.length;--le){var ie=Q.ops[le];if(typeof ie.insert!="string")break;ae=ie.insert+ae}return ae.slice(-1*ne.length)===ne}function L(Q){if(Q.childNodes.length===0)return!1;var ne=H(Q);return["block","list-item"].indexOf(ne.display)>-1}function U(Q,ne,ae){return Q.nodeType===Q.TEXT_NODE?ae.reduce(function(le,ie){return ie(Q,le)},new f.default):Q.nodeType===Q.ELEMENT_NODE?[].reduce.call(Q.childNodes||[],function(le,ie){var $e=U(ie,ne,ae);return ie.nodeType===Q.ELEMENT_NODE&&($e=ne.reduce(function(me,_e){return _e(ie,me)},$e),$e=(ie[te]||[]).reduce(function(me,_e){return _e(ie,me)},$e)),le.concat($e)},new f.default):new f.default}function Z(Q,ne,ae){return I(ae,Q,!0)}function J(Q,ne){var ae=u.default.Attributor.Attribute.keys(Q),le=u.default.Attributor.Class.keys(Q),ie=u.default.Attributor.Style.keys(Q),$e={};return ae.concat(le).concat(ie).forEach(function(me){var _e=u.default.query(me,u.default.Scope.ATTRIBUTE);_e!=null&&($e[_e.attrName]=_e.value(Q),$e[_e.attrName])||(_e=j[me],_e!=null&&(_e.attrName===me||_e.keyName===me)&&($e[_e.attrName]=_e.value(Q)||void 0),_e=D[me],_e!=null&&(_e.attrName===me||_e.keyName===me)&&(_e=D[me],$e[_e.attrName]=_e.value(Q)||void 0))}),Object.keys($e).length>0&&(ne=I(ne,$e)),ne}function re(Q,ne){var ae=u.default.query(Q);if(ae==null)return ne;if(ae.prototype instanceof u.default.Embed){var le={},ie=ae.value(Q);ie!=null&&(le[ae.blotName]=ie,ne=new f.default().insert(le,ae.formats(Q)))}else typeof ae.formats=="function"&&(ne=I(ne,ae.blotName,ae.formats(Q)));return ne}function ce(Q,ne){return q(ne,`
|
|
126
|
+
`)||ne.insert(`
|
|
127
|
+
`),ne}function he(){return new f.default}function ve(Q,ne){var ae=u.default.query(Q);if(ae==null||ae.blotName!=="list-item"||!q(ne,`
|
|
128
|
+
`))return ne;for(var le=-1,ie=Q.parentNode;!ie.classList.contains("ql-clipboard");)(u.default.query(ie)||{}).blotName==="list"&&(le+=1),ie=ie.parentNode;return le<=0?ne:ne.compose(new f.default().retain(ne.length()-1).retain(1,{indent:le}))}function we(Q,ne){return q(ne,`
|
|
129
|
+
`)||(L(Q)||ne.length()>0&&Q.nextSibling&&L(Q.nextSibling))&&ne.insert(`
|
|
130
|
+
`),ne}function Ee(Q,ne){if(L(Q)&&Q.nextElementSibling!=null&&!q(ne,`
|
|
131
|
+
|
|
132
|
+
`)){var ae=Q.offsetHeight+parseFloat(H(Q).marginTop)+parseFloat(H(Q).marginBottom);Q.nextElementSibling.offsetTop>Q.offsetTop+ae*1.5&&ne.insert(`
|
|
133
|
+
`)}return ne}function Re(Q,ne){var ae={},le=Q.style||{};return le.fontStyle&&H(Q).fontStyle==="italic"&&(ae.italic=!0),le.fontWeight&&(H(Q).fontWeight.startsWith("bold")||parseInt(H(Q).fontWeight)>=700)&&(ae.bold=!0),Object.keys(ae).length>0&&(ne=I(ne,ae)),parseFloat(le.textIndent||0)>0&&(ne=new f.default().insert(" ").concat(ne)),ne}function Pe(Q,ne){var ae=Q.data;if(Q.parentNode.tagName==="O:P")return ne.insert(ae.trim());if(ae.trim().length===0&&Q.parentNode.classList.contains("ql-clipboard"))return ne;if(!H(Q.parentNode).whiteSpace.startsWith("pre")){var le=function($e,me){return me=me.replace(/[^\u00a0]/g,""),me.length<1&&$e?" ":me};ae=ae.replace(/\r\n/g," ").replace(/\n/g," "),ae=ae.replace(/\s\s+/g,le.bind(le,!0)),(Q.previousSibling==null&&L(Q.parentNode)||Q.previousSibling!=null&&L(Q.previousSibling))&&(ae=ae.replace(/^\s+/,le.bind(le,!1))),(Q.nextSibling==null&&L(Q.parentNode)||Q.nextSibling!=null&&L(Q.nextSibling))&&(ae=ae.replace(/\s+$/,le.bind(le,!1)))}return ne.insert(ae)}o.default=A,o.matchAttributor=J,o.matchBlot=re,o.matchNewline=we,o.matchSpacing=Ee,o.matchText=Pe}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function _(g,$){for(var v=0;v<$.length;v++){var b=$[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,$,v){return $&&_(g.prototype,$),v&&_(g,v),g}})(),d=function _(g,$,v){g===null&&(g=Function.prototype);var b=Object.getOwnPropertyDescriptor(g,$);if(b===void 0){var y=Object.getPrototypeOf(g);return y===null?void 0:_(y,$,v)}else{if("value"in b)return b.value;var m=b.get;return m===void 0?void 0:m.call(v)}},c=a(6),p=s(c);function s(_){return _&&_.__esModule?_:{default:_}}function h(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function f(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function l(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=(function(_){l(g,_);function g(){return h(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"optimize",value:function(v){d(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,v),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return d(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),g})(p.default);u.blotName="bold",u.tagName=["STRONG","B"],o.default=u}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.addControls=o.default=void 0;var i=(function(){function C(O,N){var P=[],F=!0,G=!1,W=void 0;try{for(var te=O[Symbol.iterator](),K;!(F=(K=te.next()).done)&&(P.push(K.value),!(N&&P.length===N));F=!0);}catch(j){G=!0,W=j}finally{try{!F&&te.return&&te.return()}finally{if(G)throw W}}return P}return function(O,N){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return C(O,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),d=(function(){function C(O,N){for(var P=0;P<N.length;P++){var F=N[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(O,F.key,F)}}return function(O,N,P){return N&&C(O.prototype,N),P&&C(O,P),O}})(),c=a(2),p=v(c),s=a(0),h=v(s),f=a(5),l=v(f),u=a(10),_=v(u),g=a(9),$=v(g);function v(C){return C&&C.__esModule?C:{default:C}}function b(C,O,N){return O in C?Object.defineProperty(C,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):C[O]=N,C}function y(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function m(C,O){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:C}function w(C,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);C.prototype=Object.create(O&&O.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(C,O):C.__proto__=O)}var x=(0,_.default)("quill:toolbar"),S=(function(C){w(O,C);function O(N,P){y(this,O);var F=m(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,P));if(Array.isArray(F.options.container)){var G=document.createElement("div");M(G,F.options.container),N.container.parentNode.insertBefore(G,N.container),F.container=G}else typeof F.options.container=="string"?F.container=document.querySelector(F.options.container):F.container=F.options.container;if(!(F.container instanceof HTMLElement)){var W;return W=x.error("Container required for toolbar",F.options),m(F,W)}return F.container.classList.add("ql-toolbar"),F.controls=[],F.handlers={},Object.keys(F.options.handlers).forEach(function(te){F.addHandler(te,F.options.handlers[te])}),[].forEach.call(F.container.querySelectorAll("button, select"),function(te){F.attach(te)}),F.quill.on(l.default.events.EDITOR_CHANGE,function(te,K){te===l.default.events.SELECTION_CHANGE&&F.update(K)}),F.quill.on(l.default.events.SCROLL_OPTIMIZE,function(){var te=F.quill.selection.getRange(),K=i(te,1),j=K[0];F.update(j)}),F}return d(O,[{key:"addHandler",value:function(P,F){this.handlers[P]=F}},{key:"attach",value:function(P){var F=this,G=[].find.call(P.classList,function(te){return te.indexOf("ql-")===0});if(G){if(G=G.slice(3),P.tagName==="BUTTON"&&P.setAttribute("type","button"),this.handlers[G]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[G]==null){x.warn("ignoring attaching to disabled format",G,P);return}if(h.default.query(G)==null){x.warn("ignoring attaching to nonexistent format",G,P);return}}var W=P.tagName==="SELECT"?"change":"click";P.addEventListener(W,function(te){var K=void 0;if(P.tagName==="SELECT"){if(P.selectedIndex<0)return;var j=P.options[P.selectedIndex];j.hasAttribute("selected")?K=!1:K=j.value||!1}else P.classList.contains("ql-active")?K=!1:K=P.value||!P.hasAttribute("value"),te.preventDefault();F.quill.focus();var D=F.quill.selection.getRange(),A=i(D,1),I=A[0];if(F.handlers[G]!=null)F.handlers[G].call(F,K);else if(h.default.query(G).prototype instanceof h.default.Embed){if(K=prompt("Enter "+G),!K)return;F.quill.updateContents(new p.default().retain(I.index).delete(I.length).insert(b({},G,K)),l.default.sources.USER)}else F.quill.format(G,K,l.default.sources.USER);F.update(I)}),this.controls.push([G,P])}}},{key:"update",value:function(P){var F=P==null?{}:this.quill.getFormat(P);this.controls.forEach(function(G){var W=i(G,2),te=W[0],K=W[1];if(K.tagName==="SELECT"){var j=void 0;if(P==null)j=null;else if(F[te]==null)j=K.querySelector("option[selected]");else if(!Array.isArray(F[te])){var D=F[te];typeof D=="string"&&(D=D.replace(/\"/g,'\\"')),j=K.querySelector('option[value="'+D+'"]')}j==null?(K.value="",K.selectedIndex=-1):j.selected=!0}else if(P==null)K.classList.remove("ql-active");else if(K.hasAttribute("value")){var A=F[te]===K.getAttribute("value")||F[te]!=null&&F[te].toString()===K.getAttribute("value")||F[te]==null&&!K.getAttribute("value");K.classList.toggle("ql-active",A)}else K.classList.toggle("ql-active",F[te]!=null)})}}]),O})($.default);S.DEFAULTS={};function T(C,O,N){var P=document.createElement("button");P.setAttribute("type","button"),P.classList.add("ql-"+O),N!=null&&(P.value=N),C.appendChild(P)}function M(C,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(N){var P=document.createElement("span");P.classList.add("ql-formats"),N.forEach(function(F){if(typeof F=="string")T(P,F);else{var G=Object.keys(F)[0],W=F[G];Array.isArray(W)?E(P,G,W):T(P,G,W)}}),C.appendChild(P)})}function E(C,O,N){var P=document.createElement("select");P.classList.add("ql-"+O),N.forEach(function(F){var G=document.createElement("option");F!==!1?G.setAttribute("value",F):G.setAttribute("selected","selected"),P.appendChild(G)}),C.appendChild(P)}S.DEFAULTS={container:null,handlers:{clean:function(){var O=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var P=this.quill.getFormat();Object.keys(P).forEach(function(F){h.default.query(F,h.default.Scope.INLINE)!=null&&O.quill.format(F,!1)})}else this.quill.removeFormat(N,l.default.sources.USER)},direction:function(O){var N=this.quill.getFormat().align;O==="rtl"&&N==null?this.quill.format("align","right",l.default.sources.USER):!O&&N==="right"&&this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",O,l.default.sources.USER)},indent:function(O){var N=this.quill.getSelection(),P=this.quill.getFormat(N),F=parseInt(P.indent||0);if(O==="+1"||O==="-1"){var G=O==="+1"?1:-1;P.direction==="rtl"&&(G*=-1),this.quill.format("indent",F+G,l.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,l.default.sources.USER)},list:function(O){var N=this.quill.getSelection(),P=this.quill.getFormat(N);O==="check"?P.list==="checked"||P.list==="unchecked"?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",O,l.default.sources.USER)}}},o.default=S,o.addControls=M}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function _(g,$){for(var v=0;v<$.length;v++){var b=$[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,$,v){return $&&_(g.prototype,$),v&&_(g,v),g}})(),d=function _(g,$,v){g===null&&(g=Function.prototype);var b=Object.getOwnPropertyDescriptor(g,$);if(b===void 0){var y=Object.getPrototypeOf(g);return y===null?void 0:_(y,$,v)}else{if("value"in b)return b.value;var m=b.get;return m===void 0?void 0:m.call(v)}},c=a(28),p=s(c);function s(_){return _&&_.__esModule?_:{default:_}}function h(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function f(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function l(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=(function(_){l(g,_);function g($,v){h(this,g);var b=f(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,$));return b.label.innerHTML=v,b.container.classList.add("ql-color-picker"),[].slice.call(b.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(y){y.classList.add("ql-primary")}),b}return i(g,[{key:"buildItem",value:function(v){var b=d(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"buildItem",this).call(this,v);return b.style.backgroundColor=v.getAttribute("value")||"",b}},{key:"selectItem",value:function(v,b){d(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,v,b);var y=this.label.querySelector(".ql-color-label"),m=v&&v.getAttribute("data-value")||"";y&&(y.tagName==="line"?y.style.stroke=m:y.style.fill=m)}}]),g})(p.default);o.default=u}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function _(g,$){for(var v=0;v<$.length;v++){var b=$[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,$,v){return $&&_(g.prototype,$),v&&_(g,v),g}})(),d=function _(g,$,v){g===null&&(g=Function.prototype);var b=Object.getOwnPropertyDescriptor(g,$);if(b===void 0){var y=Object.getPrototypeOf(g);return y===null?void 0:_(y,$,v)}else{if("value"in b)return b.value;var m=b.get;return m===void 0?void 0:m.call(v)}},c=a(28),p=s(c);function s(_){return _&&_.__esModule?_:{default:_}}function h(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function f(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function l(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=(function(_){l(g,_);function g($,v){h(this,g);var b=f(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,$));return b.container.classList.add("ql-icon-picker"),[].forEach.call(b.container.querySelectorAll(".ql-picker-item"),function(y){y.innerHTML=v[y.getAttribute("data-value")||""]}),b.defaultItem=b.container.querySelector(".ql-selected"),b.selectItem(b.defaultItem),b}return i(g,[{key:"selectItem",value:function(v,b){d(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,v,b),v=v||this.defaultItem,this.label.innerHTML=v.innerHTML}}]),g})(p.default);o.default=u}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function p(s,h){for(var f=0;f<h.length;f++){var l=h[f];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,h,f){return h&&p(s.prototype,h),f&&p(s,f),s}})();function d(p,s){if(!(p instanceof s))throw new TypeError("Cannot call a class as a function")}var c=(function(){function p(s,h){var f=this;d(this,p),this.quill=s,this.boundsContainer=h||document.body,this.root=s.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return i(p,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(h){var f=h.left+h.width/2-this.root.offsetWidth/2,l=h.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=l+"px",this.root.classList.remove("ql-flip");var u=this.boundsContainer.getBoundingClientRect(),_=this.root.getBoundingClientRect(),g=0;if(_.right>u.right&&(g=u.right-_.right,this.root.style.left=f+g+"px"),_.left<u.left&&(g=u.left-_.left,this.root.style.left=f+g+"px"),_.bottom>u.bottom){var $=_.bottom-_.top,v=h.bottom-h.top+$;this.root.style.top=l-v+"px",this.root.classList.add("ql-flip")}return g}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),p})();o.default=c}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function E(C,O){var N=[],P=!0,F=!1,G=void 0;try{for(var W=C[Symbol.iterator](),te;!(P=(te=W.next()).done)&&(N.push(te.value),!(O&&N.length===O));P=!0);}catch(K){F=!0,G=K}finally{try{!P&&W.return&&W.return()}finally{if(F)throw G}}return N}return function(C,O){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return E(C,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),d=function E(C,O,N){C===null&&(C=Function.prototype);var P=Object.getOwnPropertyDescriptor(C,O);if(P===void 0){var F=Object.getPrototypeOf(C);return F===null?void 0:E(F,O,N)}else{if("value"in P)return P.value;var G=P.get;return G===void 0?void 0:G.call(N)}},c=(function(){function E(C,O){for(var N=0;N<O.length;N++){var P=O[N];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(C,P.key,P)}}return function(C,O,N){return O&&E(C.prototype,O),N&&E(C,N),C}})(),p=a(3),s=y(p),h=a(8),f=y(h),l=a(43),u=y(l),_=a(27),g=y(_),$=a(15),v=a(41),b=y(v);function y(E){return E&&E.__esModule?E:{default:E}}function m(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function w(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function x(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],T=(function(E){x(C,E);function C(O,N){m(this,C),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=S);var P=w(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,N));return P.quill.container.classList.add("ql-snow"),P}return c(C,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),b.default),this.tooltip=new M(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(P,F){N.handlers.link.call(N,!F.format.link)})}}]),C})(u.default);T.DEFAULTS=(0,s.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var O=this.quill.getSelection();if(O==null||O.length==0)return;var N=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var P=this.quill.theme.tooltip;P.edit("link",N)}else this.quill.format("link",!1)}}}}});var M=(function(E){x(C,E);function C(O,N){m(this,C);var P=w(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,N));return P.preview=P.root.querySelector("a.ql-preview"),P}return c(C,[{key:"listen",value:function(){var N=this;d(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(P){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),P.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(P){if(N.linkRange!=null){var F=N.linkRange;N.restoreFocus(),N.quill.formatText(F,"link",!1,f.default.sources.USER),delete N.linkRange}P.preventDefault(),N.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(P,F,G){if(P!=null){if(P.length===0&&G===f.default.sources.USER){var W=N.quill.scroll.descendant(g.default,P.index),te=i(W,2),K=te[0],j=te[1];if(K!=null){N.linkRange=new $.Range(P.index-j,K.length());var D=g.default.formats(K.domNode);N.preview.textContent=D,N.preview.setAttribute("href",D),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){d(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C})(l.BaseTooltip);M.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),o.default=T}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(29),d=ie(i),c=a(36),p=a(38),s=a(64),h=a(65),f=ie(h),l=a(66),u=ie(l),_=a(67),g=ie(_),$=a(37),v=a(26),b=a(39),y=a(40),m=a(56),w=ie(m),x=a(68),S=ie(x),T=a(27),M=ie(T),E=a(69),C=ie(E),O=a(70),N=ie(O),P=a(71),F=ie(P),G=a(72),W=ie(G),te=a(73),K=ie(te),j=a(13),D=ie(j),A=a(74),I=ie(A),H=a(75),q=ie(H),L=a(57),U=ie(L),Z=a(41),J=ie(Z),re=a(28),ce=ie(re),he=a(59),ve=ie(he),we=a(60),Ee=ie(we),Re=a(61),Pe=ie(Re),Q=a(108),ne=ie(Q),ae=a(62),le=ie(ae);function ie($e){return $e&&$e.__esModule?$e:{default:$e}}d.default.register({"attributors/attribute/direction":p.DirectionAttribute,"attributors/class/align":c.AlignClass,"attributors/class/background":$.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":p.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":y.SizeClass,"attributors/style/align":c.AlignStyle,"attributors/style/background":$.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":p.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":y.SizeStyle},!0),d.default.register({"formats/align":c.AlignClass,"formats/direction":p.DirectionClass,"formats/indent":s.IndentClass,"formats/background":$.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":b.FontClass,"formats/size":y.SizeClass,"formats/blockquote":f.default,"formats/code-block":D.default,"formats/header":u.default,"formats/list":g.default,"formats/bold":w.default,"formats/code":j.Code,"formats/italic":S.default,"formats/link":M.default,"formats/script":C.default,"formats/strike":N.default,"formats/underline":F.default,"formats/image":W.default,"formats/video":K.default,"formats/list/item":_.ListItem,"modules/formula":I.default,"modules/syntax":q.default,"modules/toolbar":U.default,"themes/bubble":ne.default,"themes/snow":le.default,"ui/icons":J.default,"ui/picker":ce.default,"ui/icon-picker":Ee.default,"ui/color-picker":ve.default,"ui/tooltip":Pe.default},!0),o.default=d.default}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.IndentClass=void 0;var i=(function(){function g($,v){for(var b=0;b<v.length;b++){var y=v[b];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty($,y.key,y)}}return function($,v,b){return v&&g($.prototype,v),b&&g($,b),$}})(),d=function g($,v,b){$===null&&($=Function.prototype);var y=Object.getOwnPropertyDescriptor($,v);if(y===void 0){var m=Object.getPrototypeOf($);return m===null?void 0:g(m,v,b)}else{if("value"in y)return y.value;var w=y.get;return w===void 0?void 0:w.call(b)}},c=a(0),p=s(c);function s(g){return g&&g.__esModule?g:{default:g}}function h(g,$){if(!(g instanceof $))throw new TypeError("Cannot call a class as a function")}function f(g,$){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:g}function l(g,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);g.prototype=Object.create($&&$.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(g,$):g.__proto__=$)}var u=(function(g){l($,g);function $(){return h(this,$),f(this,($.__proto__||Object.getPrototypeOf($)).apply(this,arguments))}return i($,[{key:"add",value:function(b,y){if(y==="+1"||y==="-1"){var m=this.value(b)||0;y=y==="+1"?m+1:m-1}return y===0?(this.remove(b),!0):d($.prototype.__proto__||Object.getPrototypeOf($.prototype),"add",this).call(this,b,y)}},{key:"canAdd",value:function(b,y){return d($.prototype.__proto__||Object.getPrototypeOf($.prototype),"canAdd",this).call(this,b,y)||d($.prototype.__proto__||Object.getPrototypeOf($.prototype),"canAdd",this).call(this,b,parseInt(y))}},{key:"value",value:function(b){return parseInt(d($.prototype.__proto__||Object.getPrototypeOf($.prototype),"value",this).call(this,b))||void 0}}]),$})(p.default.Attributor.Class),_=new u("indent","ql-indent",{scope:p.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});o.IndentClass=_}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(4),d=c(i);function c(l){return l&&l.__esModule?l:{default:l}}function p(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function s(l,u){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:l}function h(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(l,u):l.__proto__=u)}var f=(function(l){h(u,l);function u(){return p(this,u),s(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u})(d.default);f.blotName="blockquote",f.tagName="blockquote",o.default=f}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function u(_,g){for(var $=0;$<g.length;$++){var v=g[$];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(_,v.key,v)}}return function(_,g,$){return g&&u(_.prototype,g),$&&u(_,$),_}})(),d=a(4),c=p(d);function p(u){return u&&u.__esModule?u:{default:u}}function s(u,_){if(!(u instanceof _))throw new TypeError("Cannot call a class as a function")}function h(u,_){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:u}function f(u,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);u.prototype=Object.create(_&&_.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(u,_):u.__proto__=_)}var l=(function(u){f(_,u);function _(){return s(this,_),h(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return i(_,null,[{key:"formats",value:function($){return this.tagName.indexOf($.tagName)+1}}]),_})(c.default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],o.default=l}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.ListItem=void 0;var i=(function(){function m(w,x){for(var S=0;S<x.length;S++){var T=x[S];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(w,T.key,T)}}return function(w,x,S){return x&&m(w.prototype,x),S&&m(w,S),w}})(),d=function m(w,x,S){w===null&&(w=Function.prototype);var T=Object.getOwnPropertyDescriptor(w,x);if(T===void 0){var M=Object.getPrototypeOf(w);return M===null?void 0:m(M,x,S)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(S)}},c=a(0),p=u(c),s=a(4),h=u(s),f=a(25),l=u(f);function u(m){return m&&m.__esModule?m:{default:m}}function _(m,w,x){return w in m?Object.defineProperty(m,w,{value:x,enumerable:!0,configurable:!0,writable:!0}):m[w]=x,m}function g(m,w){if(!(m instanceof w))throw new TypeError("Cannot call a class as a function")}function $(m,w){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:m}function v(m,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);m.prototype=Object.create(w&&w.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(m,w):m.__proto__=w)}var b=(function(m){v(w,m);function w(){return g(this,w),$(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return i(w,[{key:"format",value:function(S,T){S===y.blotName&&!T?this.replaceWith(p.default.create(this.statics.scope)):d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,S,T)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,T){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,T),this):(this.parent.unwrap(),d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,S,T))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:d(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,S)}}]),w})(h.default);b.blotName="list-item",b.tagName="LI";var y=(function(m){v(w,m),i(w,null,[{key:"create",value:function(S){var T=S==="ordered"?"OL":"UL",M=d(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,T);return(S==="checked"||S==="unchecked")&&M.setAttribute("data-checked",S==="checked"),M}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function w(x){g(this,w);var S=$(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,x)),T=function(E){if(E.target.parentNode===x){var C=S.statics.formats(x),O=p.default.find(E.target);C==="checked"?O.format("list","unchecked"):C==="unchecked"&&O.format("list","checked")}};return x.addEventListener("touchstart",T),x.addEventListener("mousedown",T),S}return i(w,[{key:"format",value:function(S,T){this.children.length>0&&this.children.tail.format(S,T)}},{key:"formats",value:function(){return _({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,T){if(S instanceof b)d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,S,T);else{var M=T==null?this.length():T.offset(this),E=this.split(M);E.parent.insertBefore(S,E)}}},{key:"optimize",value:function(S){d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,S);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&T.domNode.tagName===this.domNode.tagName&&T.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(T.moveChildren(this),T.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var T=p.default.create(this.statics.defaultChild);S.moveChildren(T),this.appendChild(T)}d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,S)}}]),w})(l.default);y.blotName="list",y.scope=p.default.Scope.BLOCK_BLOT,y.tagName=["OL","UL"],y.defaultChild="list-item",y.allowedChildren=[b],o.ListItem=b,o.default=y}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(56),d=c(i);function c(l){return l&&l.__esModule?l:{default:l}}function p(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function s(l,u){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:l}function h(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(l,u):l.__proto__=u)}var f=(function(l){h(u,l);function u(){return p(this,u),s(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u})(d.default);f.blotName="italic",f.tagName=["EM","I"],o.default=f}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function _(g,$){for(var v=0;v<$.length;v++){var b=$[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,$,v){return $&&_(g.prototype,$),v&&_(g,v),g}})(),d=function _(g,$,v){g===null&&(g=Function.prototype);var b=Object.getOwnPropertyDescriptor(g,$);if(b===void 0){var y=Object.getPrototypeOf(g);return y===null?void 0:_(y,$,v)}else{if("value"in b)return b.value;var m=b.get;return m===void 0?void 0:m.call(v)}},c=a(6),p=s(c);function s(_){return _&&_.__esModule?_:{default:_}}function h(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function f(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function l(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=(function(_){l(g,_);function g(){return h(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,null,[{key:"create",value:function(v){return v==="super"?document.createElement("sup"):v==="sub"?document.createElement("sub"):d(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,v)}},{key:"formats",value:function(v){if(v.tagName==="SUB")return"sub";if(v.tagName==="SUP")return"super"}}]),g})(p.default);u.blotName="script",u.tagName=["SUB","SUP"],o.default=u}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(6),d=c(i);function c(l){return l&&l.__esModule?l:{default:l}}function p(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function s(l,u){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:l}function h(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(l,u):l.__proto__=u)}var f=(function(l){h(u,l);function u(){return p(this,u),s(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u})(d.default);f.blotName="strike",f.tagName="S",o.default=f}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(6),d=c(i);function c(l){return l&&l.__esModule?l:{default:l}}function p(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function s(l,u){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:l}function h(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(l,u):l.__proto__=u)}var f=(function(l){h(u,l);function u(){return p(this,u),s(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u})(d.default);f.blotName="underline",f.tagName="U",o.default=f}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function $(v,b){for(var y=0;y<b.length;y++){var m=b[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,b,y){return b&&$(v.prototype,b),y&&$(v,y),v}})(),d=function $(v,b,y){v===null&&(v=Function.prototype);var m=Object.getOwnPropertyDescriptor(v,b);if(m===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:$(w,b,y)}else{if("value"in m)return m.value;var x=m.get;return x===void 0?void 0:x.call(y)}},c=a(0),p=h(c),s=a(27);function h($){return $&&$.__esModule?$:{default:$}}function f($,v){if(!($ instanceof v))throw new TypeError("Cannot call a class as a function")}function l($,v){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:$}function u($,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);$.prototype=Object.create(v&&v.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf($,v):$.__proto__=v)}var _=["alt","height","width"],g=(function($){u(v,$);function v(){return f(this,v),l(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,[{key:"format",value:function(y,m){_.indexOf(y)>-1?m?this.domNode.setAttribute(y,m):this.domNode.removeAttribute(y):d(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,y,m)}}],[{key:"create",value:function(y){var m=d(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,y);return typeof y=="string"&&m.setAttribute("src",this.sanitize(y)),m}},{key:"formats",value:function(y){return _.reduce(function(m,w){return y.hasAttribute(w)&&(m[w]=y.getAttribute(w)),m},{})}},{key:"match",value:function(y){return/\.(jpe?g|gif|png)$/.test(y)||/^data:image\/.+;base64/.test(y)}},{key:"sanitize",value:function(y){return(0,s.sanitize)(y,["http","https","data"])?y:"//:0"}},{key:"value",value:function(y){return y.getAttribute("src")}}]),v})(p.default.Embed);g.blotName="image",g.tagName="IMG",o.default=g}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=(function(){function $(v,b){for(var y=0;y<b.length;y++){var m=b[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,b,y){return b&&$(v.prototype,b),y&&$(v,y),v}})(),d=function $(v,b,y){v===null&&(v=Function.prototype);var m=Object.getOwnPropertyDescriptor(v,b);if(m===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:$(w,b,y)}else{if("value"in m)return m.value;var x=m.get;return x===void 0?void 0:x.call(y)}},c=a(4),p=a(27),s=h(p);function h($){return $&&$.__esModule?$:{default:$}}function f($,v){if(!($ instanceof v))throw new TypeError("Cannot call a class as a function")}function l($,v){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:$}function u($,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);$.prototype=Object.create(v&&v.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf($,v):$.__proto__=v)}var _=["height","width"],g=(function($){u(v,$);function v(){return f(this,v),l(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,[{key:"format",value:function(y,m){_.indexOf(y)>-1?m?this.domNode.setAttribute(y,m):this.domNode.removeAttribute(y):d(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,y,m)}}],[{key:"create",value:function(y){var m=d(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,y);return m.setAttribute("frameborder","0"),m.setAttribute("allowfullscreen",!0),m.setAttribute("src",this.sanitize(y)),m}},{key:"formats",value:function(y){return _.reduce(function(m,w){return y.hasAttribute(w)&&(m[w]=y.getAttribute(w)),m},{})}},{key:"sanitize",value:function(y){return s.default.sanitize(y)}},{key:"value",value:function(y){return y.getAttribute("src")}}]),v})(c.BlockEmbed);g.blotName="video",g.className="ql-video",g.tagName="IFRAME",o.default=g}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.FormulaBlot=void 0;var i=(function(){function y(m,w){for(var x=0;x<w.length;x++){var S=w[x];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(m,S.key,S)}}return function(m,w,x){return w&&y(m.prototype,w),x&&y(m,x),m}})(),d=function y(m,w,x){m===null&&(m=Function.prototype);var S=Object.getOwnPropertyDescriptor(m,w);if(S===void 0){var T=Object.getPrototypeOf(m);return T===null?void 0:y(T,w,x)}else{if("value"in S)return S.value;var M=S.get;return M===void 0?void 0:M.call(x)}},c=a(35),p=u(c),s=a(5),h=u(s),f=a(9),l=u(f);function u(y){return y&&y.__esModule?y:{default:y}}function _(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function g(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function $(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=(function(y){$(m,y);function m(){return _(this,m),g(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,null,[{key:"create",value:function(x){var S=d(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,x);return typeof x=="string"&&(window.katex.render(x,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",x)),S}},{key:"value",value:function(x){return x.getAttribute("data-value")}}]),m})(p.default);v.blotName="formula",v.className="ql-formula",v.tagName="SPAN";var b=(function(y){$(m,y),i(m,null,[{key:"register",value:function(){h.default.register(v,!0)}}]);function m(){_(this,m);var w=g(this,(m.__proto__||Object.getPrototypeOf(m)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return w}return m})(l.default);o.FormulaBlot=v,o.default=b}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.CodeToken=o.CodeBlock=void 0;var i=(function(){function x(S,T){for(var M=0;M<T.length;M++){var E=T[M];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(S,E.key,E)}}return function(S,T,M){return T&&x(S.prototype,T),M&&x(S,M),S}})(),d=function x(S,T,M){S===null&&(S=Function.prototype);var E=Object.getOwnPropertyDescriptor(S,T);if(E===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:x(C,T,M)}else{if("value"in E)return E.value;var O=E.get;return O===void 0?void 0:O.call(M)}},c=a(0),p=g(c),s=a(5),h=g(s),f=a(9),l=g(f),u=a(13),_=g(u);function g(x){return x&&x.__esModule?x:{default:x}}function $(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function v(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:x}function b(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}var y=(function(x){b(S,x);function S(){return $(this,S),v(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return i(S,[{key:"replaceWith",value:function(M){this.domNode.textContent=this.domNode.textContent,this.attach(),d(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,M)}},{key:"highlight",value:function(M){var E=this.domNode.textContent;this.cachedText!==E&&((E.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=M(E),this.domNode.normalize(),this.attach()),this.cachedText=E)}}]),S})(_.default);y.className="ql-syntax";var m=new p.default.Attributor.Class("token","hljs",{scope:p.default.Scope.INLINE}),w=(function(x){b(S,x),i(S,null,[{key:"register",value:function(){h.default.register(m,!0),h.default.register(y,!0)}}]);function S(T,M){$(this,S);var E=v(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,T,M));if(typeof E.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return E.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){E.highlight(),C=null},E.options.interval)}),E.highlight(),E}return i(S,[{key:"highlight",value:function(){var M=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var E=this.quill.getSelection();this.quill.scroll.descendants(y).forEach(function(C){C.highlight(M.options.highlight)}),this.quill.update(h.default.sources.SILENT),E!=null&&this.quill.setSelection(E,h.default.sources.SILENT)}}}]),S})(l.default);w.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(x){var S=window.hljs.highlightAuto(x);return S.value}})(),interval:1e3},o.CodeBlock=y,o.CodeToken=m,o.default=w}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(e,o){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(e,o){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(e,o){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(e,o){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BubbleTooltip=void 0;var i=function S(T,M,E){T===null&&(T=Function.prototype);var C=Object.getOwnPropertyDescriptor(T,M);if(C===void 0){var O=Object.getPrototypeOf(T);return O===null?void 0:S(O,M,E)}else{if("value"in C)return C.value;var N=C.get;return N===void 0?void 0:N.call(E)}},d=(function(){function S(T,M){for(var E=0;E<M.length;E++){var C=M[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(T,C.key,C)}}return function(T,M,E){return M&&S(T.prototype,M),E&&S(T,E),T}})(),c=a(3),p=$(c),s=a(8),h=$(s),f=a(43),l=$(f),u=a(15),_=a(41),g=$(_);function $(S){return S&&S.__esModule?S:{default:S}}function v(S,T){if(!(S instanceof T))throw new TypeError("Cannot call a class as a function")}function b(S,T){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:S}function y(S,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);S.prototype=Object.create(T&&T.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(S,T):S.__proto__=T)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],w=(function(S){y(T,S);function T(M,E){v(this,T),E.modules.toolbar!=null&&E.modules.toolbar.container==null&&(E.modules.toolbar.container=m);var C=b(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,M,E));return C.quill.container.classList.add("ql-bubble"),C}return d(T,[{key:"extendToolbar",value:function(E){this.tooltip=new x(this.quill,this.options.bounds),this.tooltip.root.appendChild(E.container),this.buildButtons([].slice.call(E.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(E.container.querySelectorAll("select")),g.default)}}]),T})(l.default);w.DEFAULTS=(0,p.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(T){T?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var x=(function(S){y(T,S);function T(M,E){v(this,T);var C=b(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,M,E));return C.quill.on(h.default.events.EDITOR_CHANGE,function(O,N,P,F){if(O===h.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&F===h.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var G=C.quill.getLines(N.index,N.length);if(G.length===1)C.position(C.quill.getBounds(N));else{var W=G[G.length-1],te=C.quill.getIndex(W),K=Math.min(W.length()-1,N.index+N.length-te),j=C.quill.getBounds(new u.Range(te,K));C.position(j)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return d(T,[{key:"listen",value:function(){var E=this;i(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){E.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!E.root.classList.contains("ql-hidden")){var C=E.quill.getSelection();C!=null&&E.position(E.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(E){var C=i(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"position",this).call(this,E),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",C===0)return C;O.style.marginLeft=-1*C-O.offsetWidth/2+"px"}}]),T})(f.BaseTooltip);x.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),o.BubbleTooltip=x,o.default=w}),(function(e,o,a){e.exports=a(63)})]).default})})(gr)),gr.exports}var G1=K1();const Oe=Cn(G1);var ui,va;function W1(){if(va)return ui;va=1;var t=-1,r=1,e=0;function o(y,m,w,x){if(y===m)return y?[[e,y]]:[];if(w!=null){var S=v(y,m,w);if(S)return S}var T=c(y,m),M=y.substring(0,T);y=y.substring(T),m=m.substring(T),T=p(y,m);var E=y.substring(y.length-T);y=y.substring(0,y.length-T),m=m.substring(0,m.length-T);var C=a(y,m);return M&&C.unshift([e,M]),E&&C.push([e,E]),h(C,x),C}function a(y,m){var w;if(!y)return[[r,m]];if(!m)return[[t,y]];var x=y.length>m.length?y:m,S=y.length>m.length?m:y,T=x.indexOf(S);if(T!==-1)return w=[[r,x.substring(0,T)],[e,S],[r,x.substring(T+S.length)]],y.length>m.length&&(w[0][0]=w[2][0]=t),w;if(S.length===1)return[[t,y],[r,m]];var M=s(y,m);if(M){var E=M[0],C=M[1],O=M[2],N=M[3],P=M[4],F=o(E,O),G=o(C,N);return F.concat([[e,P]],G)}return i(y,m)}function i(y,m){for(var w=y.length,x=m.length,S=Math.ceil((w+x)/2),T=S,M=2*S,E=new Array(M),C=new Array(M),O=0;O<M;O++)E[O]=-1,C[O]=-1;E[T+1]=0,C[T+1]=0;for(var N=w-x,P=N%2!==0,F=0,G=0,W=0,te=0,K=0;K<S;K++){for(var j=-K+F;j<=K-G;j+=2){var D=T+j,A;j===-K||j!==K&&E[D-1]<E[D+1]?A=E[D+1]:A=E[D-1]+1;for(var I=A-j;A<w&&I<x&&y.charAt(A)===m.charAt(I);)A++,I++;if(E[D]=A,A>w)G+=2;else if(I>x)F+=2;else if(P){var H=T+N-j;if(H>=0&&H<M&&C[H]!==-1){var q=w-C[H];if(A>=q)return d(y,m,A,I)}}}for(var L=-K+W;L<=K-te;L+=2){var H=T+L,q;L===-K||L!==K&&C[H-1]<C[H+1]?q=C[H+1]:q=C[H-1]+1;for(var U=q-L;q<w&&U<x&&y.charAt(w-q-1)===m.charAt(x-U-1);)q++,U++;if(C[H]=q,q>w)te+=2;else if(U>x)W+=2;else if(!P){var D=T+N-L;if(D>=0&&D<M&&E[D]!==-1){var A=E[D],I=T+A-D;if(q=w-q,A>=q)return d(y,m,A,I)}}}}return[[t,y],[r,m]]}function d(y,m,w,x){var S=y.substring(0,w),T=m.substring(0,x),M=y.substring(w),E=m.substring(x),C=o(S,T),O=o(M,E);return C.concat(O)}function c(y,m){if(!y||!m||y.charAt(0)!==m.charAt(0))return 0;for(var w=0,x=Math.min(y.length,m.length),S=x,T=0;w<S;)y.substring(T,S)==m.substring(T,S)?(w=S,T=w):x=S,S=Math.floor((x-w)/2+w);return f(y.charCodeAt(S-1))&&S--,S}function p(y,m){if(!y||!m||y.slice(-1)!==m.slice(-1))return 0;for(var w=0,x=Math.min(y.length,m.length),S=x,T=0;w<S;)y.substring(y.length-S,y.length-T)==m.substring(m.length-S,m.length-T)?(w=S,T=w):x=S,S=Math.floor((x-w)/2+w);return l(y.charCodeAt(y.length-S))&&S--,S}function s(y,m){var w=y.length>m.length?y:m,x=y.length>m.length?m:y;if(w.length<4||x.length*2<w.length)return null;function S(G,W,te){for(var K=G.substring(te,te+Math.floor(G.length/4)),j=-1,D="",A,I,H,q;(j=W.indexOf(K,j+1))!==-1;){var L=c(G.substring(te),W.substring(j)),U=p(G.substring(0,te),W.substring(0,j));D.length<U+L&&(D=W.substring(j-U,j)+W.substring(j,j+L),A=G.substring(0,te-U),I=G.substring(te+L),H=W.substring(0,j-U),q=W.substring(j+L))}return D.length*2>=G.length?[A,I,H,q,D]:null}var T=S(w,x,Math.ceil(w.length/4)),M=S(w,x,Math.ceil(w.length/2)),E;if(!T&&!M)return null;M?T?E=T[4].length>M[4].length?T:M:E=M:E=T;var C,O,N,P;y.length>m.length?(C=E[0],O=E[1],N=E[2],P=E[3]):(N=E[0],P=E[1],C=E[2],O=E[3]);var F=E[4];return[C,O,N,P,F]}function h(y,m){y.push([e,""]);for(var w=0,x=0,S=0,T="",M="",E;w<y.length;){if(w<y.length-1&&!y[w][1]){y.splice(w,1);continue}switch(y[w][0]){case r:S++,M+=y[w][1],w++;break;case t:x++,T+=y[w][1],w++;break;case e:var C=w-S-x-1;if(m){if(C>=0&&_(y[C][1])){var O=y[C][1].slice(-1);if(y[C][1]=y[C][1].slice(0,-1),T=O+T,M=O+M,!y[C][1]){y.splice(C,1),w--;var N=C-1;y[N]&&y[N][0]===r&&(S++,M=y[N][1]+M,N--),y[N]&&y[N][0]===t&&(x++,T=y[N][1]+T,N--),C=N}}if(u(y[w][1])){var O=y[w][1].charAt(0);y[w][1]=y[w][1].slice(1),T+=O,M+=O}}if(w<y.length-1&&!y[w][1]){y.splice(w,1);break}if(T.length>0||M.length>0){T.length>0&&M.length>0&&(E=c(M,T),E!==0&&(C>=0?y[C][1]+=M.substring(0,E):(y.splice(0,0,[e,M.substring(0,E)]),w++),M=M.substring(E),T=T.substring(E)),E=p(M,T),E!==0&&(y[w][1]=M.substring(M.length-E)+y[w][1],M=M.substring(0,M.length-E),T=T.substring(0,T.length-E)));var P=S+x;T.length===0&&M.length===0?(y.splice(w-P,P),w=w-P):T.length===0?(y.splice(w-P,P,[r,M]),w=w-P+1):M.length===0?(y.splice(w-P,P,[t,T]),w=w-P+1):(y.splice(w-P,P,[t,T],[r,M]),w=w-P+2)}w!==0&&y[w-1][0]===e?(y[w-1][1]+=y[w][1],y.splice(w,1)):w++,S=0,x=0,T="",M="";break}}y[y.length-1][1]===""&&y.pop();var F=!1;for(w=1;w<y.length-1;)y[w-1][0]===e&&y[w+1][0]===e&&(y[w][1].substring(y[w][1].length-y[w-1][1].length)===y[w-1][1]?(y[w][1]=y[w-1][1]+y[w][1].substring(0,y[w][1].length-y[w-1][1].length),y[w+1][1]=y[w-1][1]+y[w+1][1],y.splice(w-1,1),F=!0):y[w][1].substring(0,y[w+1][1].length)==y[w+1][1]&&(y[w-1][1]+=y[w+1][1],y[w][1]=y[w][1].substring(y[w+1][1].length)+y[w+1][1],y.splice(w+1,1),F=!0)),w++;F&&h(y,m)}function f(y){return y>=55296&&y<=56319}function l(y){return y>=56320&&y<=57343}function u(y){return l(y.charCodeAt(0))}function _(y){return f(y.charCodeAt(y.length-1))}function g(y){for(var m=[],w=0;w<y.length;w++)y[w][1].length>0&&m.push(y[w]);return m}function $(y,m,w,x){return _(y)||u(x)?null:g([[e,y],[t,m],[r,w],[e,x]])}function v(y,m,w){var x=typeof w=="number"?{index:w,length:0}:w.oldRange,S=typeof w=="number"?null:w.newRange,T=y.length,M=m.length;if(x.length===0&&(S===null||S.length===0)){var E=x.index,C=y.slice(0,E),O=y.slice(E),N=S?S.index:null;e:{var P=E+M-T;if(N!==null&&N!==P||P<0||P>M)break e;var F=m.slice(0,P),G=m.slice(P);if(G!==O)break e;var W=Math.min(E,P),te=C.slice(0,W),K=F.slice(0,W);if(te!==K)break e;var j=C.slice(W),D=F.slice(W);return $(te,j,D,O)}e:{if(N!==null&&N!==E)break e;var A=E,F=m.slice(0,A),G=m.slice(A);if(F!==C)break e;var I=Math.min(T-A,M-A),H=O.slice(O.length-I),q=G.slice(G.length-I);if(H!==q)break e;var j=O.slice(0,O.length-I),D=G.slice(0,G.length-I);return $(C,j,D,H)}}if(x.length>0&&S&&S.length===0)e:{var te=y.slice(0,x.index),H=y.slice(x.index+x.length),W=te.length,I=H.length;if(M<W+I)break e;var K=m.slice(0,W),q=m.slice(M-I);if(te!==K||H!==q)break e;var j=y.slice(W,T-I),D=m.slice(W,M-I);return $(te,j,D,H)}return null}function b(y,m,w){return o(y,m,w,!0)}return b.INSERT=r,b.DELETE=t,b.EQUAL=e,ui=b,ui}var Dn={exports:{}};Dn.exports;var _a;function $a(){return _a||(_a=1,(function(t,r){var e=200,o="__lodash_hash_undefined__",a=9007199254740991,i="[object Arguments]",d="[object Array]",c="[object Boolean]",p="[object Date]",s="[object Error]",h="[object Function]",f="[object GeneratorFunction]",l="[object Map]",u="[object Number]",_="[object Object]",g="[object Promise]",$="[object RegExp]",v="[object Set]",b="[object String]",y="[object Symbol]",m="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",S="[object Float32Array]",T="[object Float64Array]",M="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",O="[object Uint8Array]",N="[object Uint8ClampedArray]",P="[object Uint16Array]",F="[object Uint32Array]",G=/[\\^$.*+?()[\]{}|]/g,W=/\w*$/,te=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,j={};j[i]=j[d]=j[w]=j[x]=j[c]=j[p]=j[S]=j[T]=j[M]=j[E]=j[C]=j[l]=j[u]=j[_]=j[$]=j[v]=j[b]=j[y]=j[O]=j[N]=j[P]=j[F]=!0,j[s]=j[h]=j[m]=!1;var D=typeof jt=="object"&&jt&&jt.Object===Object&&jt,A=typeof self=="object"&&self&&self.Object===Object&&self,I=D||A||Function("return this")(),H=r&&!r.nodeType&&r,q=H&&!0&&t&&!t.nodeType&&t,L=q&&q.exports===H;function U(k,B){return k.set(B[0],B[1]),k}function Z(k,B){return k.add(B),k}function J(k,B){for(var z=-1,ee=k?k.length:0;++z<ee&&B(k[z],z,k)!==!1;);return k}function re(k,B){for(var z=-1,ee=B.length,ke=k.length;++z<ee;)k[ke+z]=B[z];return k}function ce(k,B,z,ee){for(var ke=-1,pe=k?k.length:0;++ke<pe;)z=B(z,k[ke],ke,k);return z}function he(k,B){for(var z=-1,ee=Array(k);++z<k;)ee[z]=B(z);return ee}function ve(k,B){return k==null?void 0:k[B]}function we(k){var B=!1;if(k!=null&&typeof k.toString!="function")try{B=!!(k+"")}catch{}return B}function Ee(k){var B=-1,z=Array(k.size);return k.forEach(function(ee,ke){z[++B]=[ke,ee]}),z}function Re(k,B){return function(z){return k(B(z))}}function Pe(k){var B=-1,z=Array(k.size);return k.forEach(function(ee){z[++B]=ee}),z}var Q=Array.prototype,ne=Function.prototype,ae=Object.prototype,le=I["__core-js_shared__"],ie=(function(){var k=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return k?"Symbol(src)_1."+k:""})(),$e=ne.toString,me=ae.hasOwnProperty,_e=ae.toString,He=RegExp("^"+$e.call(me).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=L?I.Buffer:void 0,Ne=I.Symbol,gt=I.Uint8Array,Se=Re(Object.getPrototypeOf,Object),nt=Object.create,Kt=ae.propertyIsEnumerable,Bn=Q.splice,Gt=Object.getOwnPropertySymbols,Me=Ve?Ve.isBuffer:void 0,Vt=Re(Object.keys,Object),yt=pt(I,"DataView"),xt=pt(I,"Map"),We=pt(I,"Promise"),bt=pt(I,"Set"),rt=pt(I,"WeakMap"),Nt=pt(Object,"create"),Wt=it(yt),R=it(xt),V=it(We),Y=it(bt),X=it(rt),oe=Ne?Ne.prototype:void 0,se=oe?oe.valueOf:void 0;function ye(k){var B=-1,z=k?k.length:0;for(this.clear();++B<z;){var ee=k[B];this.set(ee[0],ee[1])}}function ue(){this.__data__=Nt?Nt(null):{}}function Ce(k){return this.has(k)&&delete this.__data__[k]}function de(k){var B=this.__data__;if(Nt){var z=B[k];return z===o?void 0:z}return me.call(B,k)?B[k]:void 0}function ge(k){var B=this.__data__;return Nt?B[k]!==void 0:me.call(B,k)}function Te(k,B){var z=this.__data__;return z[k]=Nt&&B===void 0?o:B,this}ye.prototype.clear=ue,ye.prototype.delete=Ce,ye.prototype.get=de,ye.prototype.has=ge,ye.prototype.set=Te;function Be(k){var B=-1,z=k?k.length:0;for(this.clear();++B<z;){var ee=k[B];this.set(ee[0],ee[1])}}function Ue(){this.__data__=[]}function At(k){var B=this.__data__,z=un(B,k);if(z<0)return!1;var ee=B.length-1;return z==ee?B.pop():Bn.call(B,z,1),!0}function vt(k){var B=this.__data__,z=un(B,k);return z<0?void 0:B[z][1]}function Pn(k){return un(this.__data__,k)>-1}function Yt(k,B){var z=this.__data__,ee=un(z,k);return ee<0?z.push([k,B]):z[ee][1]=B,this}Be.prototype.clear=Ue,Be.prototype.delete=At,Be.prototype.get=vt,Be.prototype.has=Pn,Be.prototype.set=Yt;function ze(k){var B=-1,z=k?k.length:0;for(this.clear();++B<z;){var ee=k[B];this.set(ee[0],ee[1])}}function Ln(){this.__data__={hash:new ye,map:new(xt||Be),string:new ye}}function Rn(k){return Jt(this,k).delete(k)}function jn(k){return Jt(this,k).get(k)}function Vn(k){return Jt(this,k).has(k)}function Fn(k,B){return Jt(this,k).set(k,B),this}ze.prototype.clear=Ln,ze.prototype.delete=Rn,ze.prototype.get=jn,ze.prototype.has=Vn,ze.prototype.set=Fn;function Ye(k){this.__data__=new Be(k)}function qn(){this.__data__=new Be}function hi(k){return this.__data__.delete(k)}function pi(k){return this.__data__.get(k)}function mi(k){return this.__data__.has(k)}function gi(k,B){var z=this.__data__;if(z instanceof Be){var ee=z.__data__;if(!xt||ee.length<e-1)return ee.push([k,B]),this;z=this.__data__=new ze(ee)}return z.set(k,B),this}Ye.prototype.clear=qn,Ye.prototype.delete=hi,Ye.prototype.get=pi,Ye.prototype.has=mi,Ye.prototype.set=gi;function dn(k,B){var z=Kn(k)||hn(k)?he(k.length,String):[],ee=z.length,ke=!!ee;for(var pe in k)me.call(k,pe)&&!(ke&&(pe=="length"||Ni(pe,ee)))&&z.push(pe);return z}function vr(k,B,z){var ee=k[B];(!(me.call(k,B)&&Cr(ee,z))||z===void 0&&!(B in k))&&(k[B]=z)}function un(k,B){for(var z=k.length;z--;)if(Cr(k[z][0],B))return z;return-1}function _t(k,B){return k&&Un(B,Wn(B),k)}function Hn(k,B,z,ee,ke,pe,Ae){var xe;if(ee&&(xe=pe?ee(k,ke,pe,Ae):ee(k)),xe!==void 0)return xe;if(!wt(k))return k;var Fe=Kn(k);if(Fe){if(xe=Ti(k),!B)return Ei(k,xe)}else{var Ie=Mt(k),Ze=Ie==h||Ie==f;if(Er(k))return fn(k,B);if(Ie==_||Ie==i||Ze&&!pe){if(we(k))return pe?k:{};if(xe=$t(Ze?{}:k),!B)return Oi(k,_t(xe,k))}else{if(!j[Ie])return pe?k:{};xe=xi(k,Ie,Hn,B)}}Ae||(Ae=new Ye);var at=Ae.get(k);if(at)return at;if(Ae.set(k,xe),!Fe)var qe=z?Si(k):Wn(k);return J(qe||k,function(Je,Ke){qe&&(Ke=Je,Je=k[Ke]),vr(xe,Ke,Hn(Je,B,z,ee,Ke,k,Ae))}),xe}function yi(k){return wt(k)?nt(k):{}}function bi(k,B,z){var ee=B(k);return Kn(k)?ee:re(ee,z(k))}function vi(k){return _e.call(k)}function _i(k){if(!wt(k)||Di(k))return!1;var B=Gn(k)||we(k)?He:te;return B.test(it(k))}function $i(k){if(!wr(k))return Vt(k);var B=[];for(var z in Object(k))me.call(k,z)&&z!="constructor"&&B.push(z);return B}function fn(k,B){if(B)return k.slice();var z=new k.constructor(k.length);return k.copy(z),z}function zn(k){var B=new k.constructor(k.byteLength);return new gt(B).set(new gt(k)),B}function Zt(k,B){var z=B?zn(k.buffer):k.buffer;return new k.constructor(z,k.byteOffset,k.byteLength)}function _r(k,B,z){var ee=B?z(Ee(k),!0):Ee(k);return ce(ee,U,new k.constructor)}function $r(k){var B=new k.constructor(k.source,W.exec(k));return B.lastIndex=k.lastIndex,B}function wi(k,B,z){var ee=B?z(Pe(k),!0):Pe(k);return ce(ee,Z,new k.constructor)}function ki(k){return se?Object(se.call(k)):{}}function Ci(k,B){var z=B?zn(k.buffer):k.buffer;return new k.constructor(z,k.byteOffset,k.length)}function Ei(k,B){var z=-1,ee=k.length;for(B||(B=Array(ee));++z<ee;)B[z]=k[z];return B}function Un(k,B,z,ee){z||(z={});for(var ke=-1,pe=B.length;++ke<pe;){var Ae=B[ke],xe=void 0;vr(z,Ae,xe===void 0?k[Ae]:xe)}return z}function Oi(k,B){return Un(k,Dt(k),B)}function Si(k){return bi(k,Wn,Dt)}function Jt(k,B){var z=k.__data__;return Ai(B)?z[typeof B=="string"?"string":"hash"]:z.map}function pt(k,B){var z=ve(k,B);return _i(z)?z:void 0}var Dt=Gt?Re(Gt,Object):Ii,Mt=vi;(yt&&Mt(new yt(new ArrayBuffer(1)))!=x||xt&&Mt(new xt)!=l||We&&Mt(We.resolve())!=g||bt&&Mt(new bt)!=v||rt&&Mt(new rt)!=m)&&(Mt=function(k){var B=_e.call(k),z=B==_?k.constructor:void 0,ee=z?it(z):void 0;if(ee)switch(ee){case Wt:return x;case R:return l;case V:return g;case Y:return v;case X:return m}return B});function Ti(k){var B=k.length,z=k.constructor(B);return B&&typeof k[0]=="string"&&me.call(k,"index")&&(z.index=k.index,z.input=k.input),z}function $t(k){return typeof k.constructor=="function"&&!wr(k)?yi(Se(k)):{}}function xi(k,B,z,ee){var ke=k.constructor;switch(B){case w:return zn(k);case c:case p:return new ke(+k);case x:return Zt(k,ee);case S:case T:case M:case E:case C:case O:case N:case P:case F:return Ci(k,ee);case l:return _r(k,ee,z);case u:case b:return new ke(k);case $:return $r(k);case v:return wi(k,ee,z);case y:return ki(k)}}function Ni(k,B){return B=B??a,!!B&&(typeof k=="number"||K.test(k))&&k>-1&&k%1==0&&k<B}function Ai(k){var B=typeof k;return B=="string"||B=="number"||B=="symbol"||B=="boolean"?k!=="__proto__":k===null}function Di(k){return!!ie&&ie in k}function wr(k){var B=k&&k.constructor,z=typeof B=="function"&&B.prototype||ae;return k===z}function it(k){if(k!=null){try{return $e.call(k)}catch{}try{return k+""}catch{}}return""}function kr(k){return Hn(k,!0,!0)}function Cr(k,B){return k===B||k!==k&&B!==B}function hn(k){return Mi(k)&&me.call(k,"callee")&&(!Kt.call(k,"callee")||_e.call(k)==i)}var Kn=Array.isArray;function pn(k){return k!=null&&Or(k.length)&&!Gn(k)}function Mi(k){return Sr(k)&&pn(k)}var Er=Me||Bi;function Gn(k){var B=wt(k)?_e.call(k):"";return B==h||B==f}function Or(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=a}function wt(k){var B=typeof k;return!!k&&(B=="object"||B=="function")}function Sr(k){return!!k&&typeof k=="object"}function Wn(k){return pn(k)?dn(k):$i(k)}function Ii(){return[]}function Bi(){return!1}t.exports=kr})(Dn,Dn.exports)),Dn.exports}var Mn={exports:{}};Mn.exports;var wa;function ka(){return wa||(wa=1,(function(t,r){var e=200,o="__lodash_hash_undefined__",a=1,i=2,d=9007199254740991,c="[object Arguments]",p="[object Array]",s="[object AsyncFunction]",h="[object Boolean]",f="[object Date]",l="[object Error]",u="[object Function]",_="[object GeneratorFunction]",g="[object Map]",$="[object Number]",v="[object Null]",b="[object Object]",y="[object Promise]",m="[object Proxy]",w="[object RegExp]",x="[object Set]",S="[object String]",T="[object Symbol]",M="[object Undefined]",E="[object WeakMap]",C="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",P="[object Float64Array]",F="[object Int8Array]",G="[object Int16Array]",W="[object Int32Array]",te="[object Uint8Array]",K="[object Uint8ClampedArray]",j="[object Uint16Array]",D="[object Uint32Array]",A=/[\\^$.*+?()[\]{}|]/g,I=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,q={};q[N]=q[P]=q[F]=q[G]=q[W]=q[te]=q[K]=q[j]=q[D]=!0,q[c]=q[p]=q[C]=q[h]=q[O]=q[f]=q[l]=q[u]=q[g]=q[$]=q[b]=q[w]=q[x]=q[S]=q[E]=!1;var L=typeof jt=="object"&&jt&&jt.Object===Object&&jt,U=typeof self=="object"&&self&&self.Object===Object&&self,Z=L||U||Function("return this")(),J=r&&!r.nodeType&&r,re=J&&!0&&t&&!t.nodeType&&t,ce=re&&re.exports===J,he=ce&&L.process,ve=(function(){try{return he&&he.binding&&he.binding("util")}catch{}})(),we=ve&&ve.isTypedArray;function Ee(k,B){for(var z=-1,ee=k==null?0:k.length,ke=0,pe=[];++z<ee;){var Ae=k[z];B(Ae,z,k)&&(pe[ke++]=Ae)}return pe}function Re(k,B){for(var z=-1,ee=B.length,ke=k.length;++z<ee;)k[ke+z]=B[z];return k}function Pe(k,B){for(var z=-1,ee=k==null?0:k.length;++z<ee;)if(B(k[z],z,k))return!0;return!1}function Q(k,B){for(var z=-1,ee=Array(k);++z<k;)ee[z]=B(z);return ee}function ne(k){return function(B){return k(B)}}function ae(k,B){return k.has(B)}function le(k,B){return k==null?void 0:k[B]}function ie(k){var B=-1,z=Array(k.size);return k.forEach(function(ee,ke){z[++B]=[ke,ee]}),z}function $e(k,B){return function(z){return k(B(z))}}function me(k){var B=-1,z=Array(k.size);return k.forEach(function(ee){z[++B]=ee}),z}var _e=Array.prototype,He=Function.prototype,Ve=Object.prototype,Ne=Z["__core-js_shared__"],gt=He.toString,Se=Ve.hasOwnProperty,nt=(function(){var k=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return k?"Symbol(src)_1."+k:""})(),Kt=Ve.toString,Bn=RegExp("^"+gt.call(Se).replace(A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gt=ce?Z.Buffer:void 0,Me=Z.Symbol,Vt=Z.Uint8Array,yt=Ve.propertyIsEnumerable,xt=_e.splice,We=Me?Me.toStringTag:void 0,bt=Object.getOwnPropertySymbols,rt=Gt?Gt.isBuffer:void 0,Nt=$e(Object.keys,Object),Wt=Dt(Z,"DataView"),R=Dt(Z,"Map"),V=Dt(Z,"Promise"),Y=Dt(Z,"Set"),X=Dt(Z,"WeakMap"),oe=Dt(Object,"create"),se=it(Wt),ye=it(R),ue=it(V),Ce=it(Y),de=it(X),ge=Me?Me.prototype:void 0,Te=ge?ge.valueOf:void 0;function Be(k){var B=-1,z=k==null?0:k.length;for(this.clear();++B<z;){var ee=k[B];this.set(ee[0],ee[1])}}function Ue(){this.__data__=oe?oe(null):{},this.size=0}function At(k){var B=this.has(k)&&delete this.__data__[k];return this.size-=B?1:0,B}function vt(k){var B=this.__data__;if(oe){var z=B[k];return z===o?void 0:z}return Se.call(B,k)?B[k]:void 0}function Pn(k){var B=this.__data__;return oe?B[k]!==void 0:Se.call(B,k)}function Yt(k,B){var z=this.__data__;return this.size+=this.has(k)?0:1,z[k]=oe&&B===void 0?o:B,this}Be.prototype.clear=Ue,Be.prototype.delete=At,Be.prototype.get=vt,Be.prototype.has=Pn,Be.prototype.set=Yt;function ze(k){var B=-1,z=k==null?0:k.length;for(this.clear();++B<z;){var ee=k[B];this.set(ee[0],ee[1])}}function Ln(){this.__data__=[],this.size=0}function Rn(k){var B=this.__data__,z=fn(B,k);if(z<0)return!1;var ee=B.length-1;return z==ee?B.pop():xt.call(B,z,1),--this.size,!0}function jn(k){var B=this.__data__,z=fn(B,k);return z<0?void 0:B[z][1]}function Vn(k){return fn(this.__data__,k)>-1}function Fn(k,B){var z=this.__data__,ee=fn(z,k);return ee<0?(++this.size,z.push([k,B])):z[ee][1]=B,this}ze.prototype.clear=Ln,ze.prototype.delete=Rn,ze.prototype.get=jn,ze.prototype.has=Vn,ze.prototype.set=Fn;function Ye(k){var B=-1,z=k==null?0:k.length;for(this.clear();++B<z;){var ee=k[B];this.set(ee[0],ee[1])}}function qn(){this.size=0,this.__data__={hash:new Be,map:new(R||ze),string:new Be}}function hi(k){var B=pt(this,k).delete(k);return this.size-=B?1:0,B}function pi(k){return pt(this,k).get(k)}function mi(k){return pt(this,k).has(k)}function gi(k,B){var z=pt(this,k),ee=z.size;return z.set(k,B),this.size+=z.size==ee?0:1,this}Ye.prototype.clear=qn,Ye.prototype.delete=hi,Ye.prototype.get=pi,Ye.prototype.has=mi,Ye.prototype.set=gi;function dn(k){var B=-1,z=k==null?0:k.length;for(this.__data__=new Ye;++B<z;)this.add(k[B])}function vr(k){return this.__data__.set(k,o),this}function un(k){return this.__data__.has(k)}dn.prototype.add=dn.prototype.push=vr,dn.prototype.has=un;function _t(k){var B=this.__data__=new ze(k);this.size=B.size}function Hn(){this.__data__=new ze,this.size=0}function yi(k){var B=this.__data__,z=B.delete(k);return this.size=B.size,z}function bi(k){return this.__data__.get(k)}function vi(k){return this.__data__.has(k)}function _i(k,B){var z=this.__data__;if(z instanceof ze){var ee=z.__data__;if(!R||ee.length<e-1)return ee.push([k,B]),this.size=++z.size,this;z=this.__data__=new Ye(ee)}return z.set(k,B),this.size=z.size,this}_t.prototype.clear=Hn,_t.prototype.delete=yi,_t.prototype.get=bi,_t.prototype.has=vi,_t.prototype.set=_i;function $i(k,B){var z=hn(k),ee=!z&&Cr(k),ke=!z&&!ee&&pn(k),pe=!z&&!ee&&!ke&&Sr(k),Ae=z||ee||ke||pe,xe=Ae?Q(k.length,String):[],Fe=xe.length;for(var Ie in k)Se.call(k,Ie)&&!(Ae&&(Ie=="length"||ke&&(Ie=="offset"||Ie=="parent")||pe&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||xi(Ie,Fe)))&&xe.push(Ie);return xe}function fn(k,B){for(var z=k.length;z--;)if(kr(k[z][0],B))return z;return-1}function zn(k,B,z){var ee=B(k);return hn(k)?ee:Re(ee,z(k))}function Zt(k){return k==null?k===void 0?M:v:We&&We in Object(k)?Mt(k):wr(k)}function _r(k){return wt(k)&&Zt(k)==c}function $r(k,B,z,ee,ke){return k===B?!0:k==null||B==null||!wt(k)&&!wt(B)?k!==k&&B!==B:wi(k,B,z,ee,$r,ke)}function wi(k,B,z,ee,ke,pe){var Ae=hn(k),xe=hn(B),Fe=Ae?p:$t(k),Ie=xe?p:$t(B);Fe=Fe==c?b:Fe,Ie=Ie==c?b:Ie;var Ze=Fe==b,at=Ie==b,qe=Fe==Ie;if(qe&&pn(k)){if(!pn(B))return!1;Ae=!0,Ze=!1}if(qe&&!Ze)return pe||(pe=new _t),Ae||Sr(k)?Un(k,B,z,ee,ke,pe):Oi(k,B,Fe,z,ee,ke,pe);if(!(z&a)){var Je=Ze&&Se.call(k,"__wrapped__"),Ke=at&&Se.call(B,"__wrapped__");if(Je||Ke){var Ft=Je?k.value():k,It=Ke?B.value():B;return pe||(pe=new _t),ke(Ft,It,z,ee,pe)}}return qe?(pe||(pe=new _t),Si(k,B,z,ee,ke,pe)):!1}function ki(k){if(!Or(k)||Ai(k))return!1;var B=Er(k)?Bn:I;return B.test(it(k))}function Ci(k){return wt(k)&&Gn(k.length)&&!!q[Zt(k)]}function Ei(k){if(!Di(k))return Nt(k);var B=[];for(var z in Object(k))Se.call(k,z)&&z!="constructor"&&B.push(z);return B}function Un(k,B,z,ee,ke,pe){var Ae=z&a,xe=k.length,Fe=B.length;if(xe!=Fe&&!(Ae&&Fe>xe))return!1;var Ie=pe.get(k);if(Ie&&pe.get(B))return Ie==B;var Ze=-1,at=!0,qe=z&i?new dn:void 0;for(pe.set(k,B),pe.set(B,k);++Ze<xe;){var Je=k[Ze],Ke=B[Ze];if(ee)var Ft=Ae?ee(Ke,Je,Ze,B,k,pe):ee(Je,Ke,Ze,k,B,pe);if(Ft!==void 0){if(Ft)continue;at=!1;break}if(qe){if(!Pe(B,function(It,Xt){if(!ae(qe,Xt)&&(Je===It||ke(Je,It,z,ee,pe)))return qe.push(Xt)})){at=!1;break}}else if(!(Je===Ke||ke(Je,Ke,z,ee,pe))){at=!1;break}}return pe.delete(k),pe.delete(B),at}function Oi(k,B,z,ee,ke,pe,Ae){switch(z){case O:if(k.byteLength!=B.byteLength||k.byteOffset!=B.byteOffset)return!1;k=k.buffer,B=B.buffer;case C:return!(k.byteLength!=B.byteLength||!pe(new Vt(k),new Vt(B)));case h:case f:case $:return kr(+k,+B);case l:return k.name==B.name&&k.message==B.message;case w:case S:return k==B+"";case g:var xe=ie;case x:var Fe=ee&a;if(xe||(xe=me),k.size!=B.size&&!Fe)return!1;var Ie=Ae.get(k);if(Ie)return Ie==B;ee|=i,Ae.set(k,B);var Ze=Un(xe(k),xe(B),ee,ke,pe,Ae);return Ae.delete(k),Ze;case T:if(Te)return Te.call(k)==Te.call(B)}return!1}function Si(k,B,z,ee,ke,pe){var Ae=z&a,xe=Jt(k),Fe=xe.length,Ie=Jt(B),Ze=Ie.length;if(Fe!=Ze&&!Ae)return!1;for(var at=Fe;at--;){var qe=xe[at];if(!(Ae?qe in B:Se.call(B,qe)))return!1}var Je=pe.get(k);if(Je&&pe.get(B))return Je==B;var Ke=!0;pe.set(k,B),pe.set(B,k);for(var Ft=Ae;++at<Fe;){qe=xe[at];var It=k[qe],Xt=B[qe];if(ee)var Pa=Ae?ee(Xt,It,qe,B,k,pe):ee(It,Xt,qe,k,B,pe);if(!(Pa===void 0?It===Xt||ke(It,Xt,z,ee,pe):Pa)){Ke=!1;break}Ft||(Ft=qe=="constructor")}if(Ke&&!Ft){var Tr=k.constructor,xr=B.constructor;Tr!=xr&&"constructor"in k&&"constructor"in B&&!(typeof Tr=="function"&&Tr instanceof Tr&&typeof xr=="function"&&xr instanceof xr)&&(Ke=!1)}return pe.delete(k),pe.delete(B),Ke}function Jt(k){return zn(k,Wn,Ti)}function pt(k,B){var z=k.__data__;return Ni(B)?z[typeof B=="string"?"string":"hash"]:z.map}function Dt(k,B){var z=le(k,B);return ki(z)?z:void 0}function Mt(k){var B=Se.call(k,We),z=k[We];try{k[We]=void 0;var ee=!0}catch{}var ke=Kt.call(k);return ee&&(B?k[We]=z:delete k[We]),ke}var Ti=bt?function(k){return k==null?[]:(k=Object(k),Ee(bt(k),function(B){return yt.call(k,B)}))}:Ii,$t=Zt;(Wt&&$t(new Wt(new ArrayBuffer(1)))!=O||R&&$t(new R)!=g||V&&$t(V.resolve())!=y||Y&&$t(new Y)!=x||X&&$t(new X)!=E)&&($t=function(k){var B=Zt(k),z=B==b?k.constructor:void 0,ee=z?it(z):"";if(ee)switch(ee){case se:return O;case ye:return g;case ue:return y;case Ce:return x;case de:return E}return B});function xi(k,B){return B=B??d,!!B&&(typeof k=="number"||H.test(k))&&k>-1&&k%1==0&&k<B}function Ni(k){var B=typeof k;return B=="string"||B=="number"||B=="symbol"||B=="boolean"?k!=="__proto__":k===null}function Ai(k){return!!nt&&nt in k}function Di(k){var B=k&&k.constructor,z=typeof B=="function"&&B.prototype||Ve;return k===z}function wr(k){return Kt.call(k)}function it(k){if(k!=null){try{return gt.call(k)}catch{}try{return k+""}catch{}}return""}function kr(k,B){return k===B||k!==k&&B!==B}var Cr=_r((function(){return arguments})())?_r:function(k){return wt(k)&&Se.call(k,"callee")&&!yt.call(k,"callee")},hn=Array.isArray;function Kn(k){return k!=null&&Gn(k.length)&&!Er(k)}var pn=rt||Bi;function Mi(k,B){return $r(k,B)}function Er(k){if(!Or(k))return!1;var B=Zt(k);return B==u||B==_||B==s||B==m}function Gn(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=d}function Or(k){var B=typeof k;return k!=null&&(B=="object"||B=="function")}function wt(k){return k!=null&&typeof k=="object"}var Sr=we?ne(we):Ci;function Wn(k){return Kn(k)?$i(k):Ei(k)}function Ii(){return[]}function Bi(){return!1}t.exports=Mi})(Mn,Mn.exports)),Mn.exports}var ln={},Ca;function Y1(){if(Ca)return ln;Ca=1;var t=ln&&ln.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(ln,"__esModule",{value:!0});var r=t($a()),e=t(ka()),o;return(function(a){function i(s,h,f){s===void 0&&(s={}),h===void 0&&(h={}),typeof s!="object"&&(s={}),typeof h!="object"&&(h={});var l=r.default(h);f||(l=Object.keys(l).reduce(function(_,g){return l[g]!=null&&(_[g]=l[g]),_},{}));for(var u in s)s[u]!==void 0&&h[u]===void 0&&(l[u]=s[u]);return Object.keys(l).length>0?l:void 0}a.compose=i;function d(s,h){s===void 0&&(s={}),h===void 0&&(h={}),typeof s!="object"&&(s={}),typeof h!="object"&&(h={});var f=Object.keys(s).concat(Object.keys(h)).reduce(function(l,u){return e.default(s[u],h[u])||(l[u]=h[u]===void 0?null:h[u]),l},{});return Object.keys(f).length>0?f:void 0}a.diff=d;function c(s,h){s===void 0&&(s={}),h===void 0&&(h={}),s=s||{};var f=Object.keys(h).reduce(function(l,u){return h[u]!==s[u]&&s[u]!==void 0&&(l[u]=h[u]),l},{});return Object.keys(s).reduce(function(l,u){return s[u]!==h[u]&&h[u]===void 0&&(l[u]=null),l},f)}a.invert=c;function p(s,h,f){if(f===void 0&&(f=!1),typeof s!="object")return h;if(typeof h=="object"){if(!f)return h;var l=Object.keys(h).reduce(function(u,_){return s[_]===void 0&&(u[_]=h[_]),u},{});return Object.keys(l).length>0?l:void 0}}a.transform=p})(o||(o={})),ln.default=o,ln}var sn={},cn={},Ea;function Z1(){if(Ea)return cn;Ea=1;var t=cn&&cn.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(cn,"__esModule",{value:!0});var r=t(Sa()),e=(function(){function o(a){this.ops=a,this.index=0,this.offset=0}return o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(a){a||(a=1/0);var i=this.ops[this.index];if(i){var d=this.offset,c=r.default.length(i);if(a>=c-d?(a=c-d,this.index+=1,this.offset=0):this.offset+=a,typeof i.delete=="number")return{delete:a};var p={};return i.attributes&&(p.attributes=i.attributes),typeof i.retain=="number"?p.retain=a:typeof i.insert=="string"?p.insert=i.insert.substr(d,a):p.insert=i.insert,p}else return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},o.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var a=this.offset,i=this.index,d=this.next(),c=this.ops.slice(this.index);return this.offset=a,this.index=i,[d].concat(c)}else return[]},o})();return cn.default=e,cn}var Oa;function Sa(){if(Oa)return sn;Oa=1;var t=sn&&sn.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(sn,"__esModule",{value:!0});var r=t(Z1()),e;return(function(o){function a(d){return new r.default(d)}o.iterator=a;function i(d){return typeof d.delete=="number"?d.delete:typeof d.retain=="number"?d.retain:typeof d.insert=="string"?d.insert.length:1}o.length=i})(e||(e={})),sn.default=e,sn}var In,Ta;function J1(){if(Ta)return In;Ta=1;var t=In&&In.__importDefault||function(p){return p&&p.__esModule?p:{default:p}},r=t(W1()),e=t($a()),o=t(ka()),a=t(Y1()),i=t(Sa()),d="\0",c=(function(){function p(s){Array.isArray(s)?this.ops=s:s!=null&&Array.isArray(s.ops)?this.ops=s.ops:this.ops=[]}return p.prototype.insert=function(s,h){var f={};return typeof s=="string"&&s.length===0?this:(f.insert=s,h!=null&&typeof h=="object"&&Object.keys(h).length>0&&(f.attributes=h),this.push(f))},p.prototype.delete=function(s){return s<=0?this:this.push({delete:s})},p.prototype.retain=function(s,h){if(s<=0)return this;var f={retain:s};return h!=null&&typeof h=="object"&&Object.keys(h).length>0&&(f.attributes=h),this.push(f)},p.prototype.push=function(s){var h=this.ops.length,f=this.ops[h-1];if(s=e.default(s),typeof f=="object"){if(typeof s.delete=="number"&&typeof f.delete=="number")return this.ops[h-1]={delete:f.delete+s.delete},this;if(typeof f.delete=="number"&&s.insert!=null&&(h-=1,f=this.ops[h-1],typeof f!="object"))return this.ops.unshift(s),this;if(o.default(s.attributes,f.attributes)){if(typeof s.insert=="string"&&typeof f.insert=="string")return this.ops[h-1]={insert:f.insert+s.insert},typeof s.attributes=="object"&&(this.ops[h-1].attributes=s.attributes),this;if(typeof s.retain=="number"&&typeof f.retain=="number")return this.ops[h-1]={retain:f.retain+s.retain},typeof s.attributes=="object"&&(this.ops[h-1].attributes=s.attributes),this}}return h===this.ops.length?this.ops.push(s):this.ops.splice(h,0,s),this},p.prototype.chop=function(){var s=this.ops[this.ops.length-1];return s&&s.retain&&!s.attributes&&this.ops.pop(),this},p.prototype.filter=function(s){return this.ops.filter(s)},p.prototype.forEach=function(s){this.ops.forEach(s)},p.prototype.map=function(s){return this.ops.map(s)},p.prototype.partition=function(s){var h=[],f=[];return this.forEach(function(l){var u=s(l)?h:f;u.push(l)}),[h,f]},p.prototype.reduce=function(s,h){return this.ops.reduce(s,h)},p.prototype.changeLength=function(){return this.reduce(function(s,h){return h.insert?s+i.default.length(h):h.delete?s-h.delete:s},0)},p.prototype.length=function(){return this.reduce(function(s,h){return s+i.default.length(h)},0)},p.prototype.slice=function(s,h){s===void 0&&(s=0),h===void 0&&(h=1/0);for(var f=[],l=i.default.iterator(this.ops),u=0;u<h&&l.hasNext();){var _=void 0;u<s?_=l.next(s-u):(_=l.next(h-u),f.push(_)),u+=i.default.length(_)}return new p(f)},p.prototype.compose=function(s){var h=i.default.iterator(this.ops),f=i.default.iterator(s.ops),l=[],u=f.peek();if(u!=null&&typeof u.retain=="number"&&u.attributes==null){for(var _=u.retain;h.peekType()==="insert"&&h.peekLength()<=_;)_-=h.peekLength(),l.push(h.next());u.retain-_>0&&f.next(u.retain-_)}for(var g=new p(l);h.hasNext()||f.hasNext();)if(f.peekType()==="insert")g.push(f.next());else if(h.peekType()==="delete")g.push(h.next());else{var $=Math.min(h.peekLength(),f.peekLength()),v=h.next($),b=f.next($);if(typeof b.retain=="number"){var y={};typeof v.retain=="number"?y.retain=$:y.insert=v.insert;var m=a.default.compose(v.attributes,b.attributes,typeof v.retain=="number");if(m&&(y.attributes=m),g.push(y),!f.hasNext()&&o.default(g.ops[g.ops.length-1],y)){var w=new p(h.rest());return g.concat(w).chop()}}else typeof b.delete=="number"&&typeof v.retain=="number"&&g.push(b)}return g.chop()},p.prototype.concat=function(s){var h=new p(this.ops.slice());return s.ops.length>0&&(h.push(s.ops[0]),h.ops=h.ops.concat(s.ops.slice(1))),h},p.prototype.diff=function(s,h){if(this.ops===s.ops)return new p;var f=[this,s].map(function($){return $.map(function(v){if(v.insert!=null)return typeof v.insert=="string"?v.insert:d;var b=$===s?"on":"with";throw new Error("diff() called "+b+" non-document")}).join("")}),l=new p,u=r.default(f[0],f[1],h),_=i.default.iterator(this.ops),g=i.default.iterator(s.ops);return u.forEach(function($){for(var v=$[1].length;v>0;){var b=0;switch($[0]){case r.default.INSERT:b=Math.min(g.peekLength(),v),l.push(g.next(b));break;case r.default.DELETE:b=Math.min(v,_.peekLength()),_.next(b),l.delete(b);break;case r.default.EQUAL:b=Math.min(_.peekLength(),g.peekLength(),v);var y=_.next(b),m=g.next(b);o.default(y.insert,m.insert)?l.retain(b,a.default.diff(y.attributes,m.attributes)):l.push(m).delete(b);break}v-=b}}),l.chop()},p.prototype.eachLine=function(s,h){h===void 0&&(h=`
|
|
134
|
+
`);for(var f=i.default.iterator(this.ops),l=new p,u=0;f.hasNext();){if(f.peekType()!=="insert")return;var _=f.peek(),g=i.default.length(_)-f.peekLength(),$=typeof _.insert=="string"?_.insert.indexOf(h,g)-g:-1;if($<0)l.push(f.next());else if($>0)l.push(f.next($));else{if(s(l,f.next(1).attributes||{},u)===!1)return;u+=1,l=new p}}l.length()>0&&s(l,{},u)},p.prototype.invert=function(s){var h=new p;return this.reduce(function(f,l){if(l.insert)h.delete(i.default.length(l));else{if(l.retain&&l.attributes==null)return h.retain(l.retain),f+l.retain;if(l.delete||l.retain&&l.attributes){var u=l.delete||l.retain,_=s.slice(f,f+u);return _.forEach(function(g){l.delete?h.push(g):l.retain&&l.attributes&&h.retain(i.default.length(g),a.default.invert(l.attributes,g.attributes))}),f+u}}return f},0),h.chop()},p.prototype.transform=function(s,h){if(h===void 0&&(h=!1),h=!!h,typeof s=="number")return this.transformPosition(s,h);for(var f=s,l=i.default.iterator(this.ops),u=i.default.iterator(f.ops),_=new p;l.hasNext()||u.hasNext();)if(l.peekType()==="insert"&&(h||u.peekType()!=="insert"))_.retain(i.default.length(l.next()));else if(u.peekType()==="insert")_.push(u.next());else{var g=Math.min(l.peekLength(),u.peekLength()),$=l.next(g),v=u.next(g);if($.delete)continue;v.delete?_.push(v):_.retain(g,a.default.transform($.attributes,v.attributes,h))}return _.chop()},p.prototype.transformPosition=function(s,h){h===void 0&&(h=!1),h=!!h;for(var f=i.default.iterator(this.ops),l=0;f.hasNext()&&l<=s;){var u=f.peekLength(),_=f.peekType();if(f.next(),_==="delete"){s-=Math.min(u,s-l);continue}else _==="insert"&&(l<s||!h)&&(s+=u);l+=u}return s},p.Op=i.default,p.AttributeMap=a.default,p})();return In=c,In}var X1=J1();const Q1=Cn(X1);/*!
|
|
135
|
+
* VueQuill @vueup/vue-quill v1.2.0
|
|
136
|
+
* https://vueup.github.io/vue-quill/
|
|
137
|
+
*
|
|
138
|
+
* Includes quill v1.3.7
|
|
139
|
+
* https://quilljs.com/
|
|
140
|
+
*
|
|
141
|
+
* Copyright (c) 2023 Ahmad Luthfi Masruri
|
|
142
|
+
* Released under the MIT license
|
|
143
|
+
* Date: 2023-05-12T08:44:03.742Z
|
|
144
|
+
*/const xa={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},ep=n.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:t=>["delta","html","text"].includes(t)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:t=>["snow","bubble",""].includes(t)},toolbar:{type:[String,Array,Object],required:!1,validator:t=>typeof t=="string"&&t!==""?t.charAt(0)==="#"?!0:Object.keys(xa).indexOf(t)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(t,r)=>{n.onMounted(()=>{i()}),n.onBeforeUnmount(()=>{e=null});let e,o;const a=n.ref(),i=()=>{var C;if(a.value){if(o=d(),t.modules)if(Array.isArray(t.modules))for(const O of t.modules)Oe.register(`modules/${O.name}`,O.module);else Oe.register(`modules/${t.modules.name}`,t.modules.module);e=new Oe(a.value,o),y(t.content),e.on("text-change",f),e.on("selection-change",u),e.on("editor-change",_),t.theme!=="bubble"&&a.value.classList.remove("ql-bubble"),t.theme!=="snow"&&a.value.classList.remove("ql-snow"),(C=e.getModule("toolbar"))===null||C===void 0||C.container.addEventListener("mousedown",O=>{O.preventDefault()}),r.emit("ready",e)}},d=()=>{const C={};if(t.theme!==""&&(C.theme=t.theme),t.readOnly&&(C.readOnly=t.readOnly),t.placeholder&&(C.placeholder=t.placeholder),t.toolbar&&t.toolbar!==""&&(C.modules={toolbar:(()=>{if(typeof t.toolbar=="object")return t.toolbar;if(typeof t.toolbar=="string")return t.toolbar.charAt(0)==="#"?t.toolbar:xa[t.toolbar]})()}),t.modules){const O=(()=>{var N,P;const F={};if(Array.isArray(t.modules))for(const G of t.modules)F[G.name]=(N=G.options)!==null&&N!==void 0?N:{};else F[t.modules.name]=(P=t.modules.options)!==null&&P!==void 0?P:{};return F})();C.modules=Object.assign({},C.modules,O)}return Object.assign({},t.globalOptions,t.options,C)},c=C=>typeof C=="object"&&C?C.slice():C,p=C=>Object.values(C.ops).some(O=>!O.retain||Object.keys(O).length!==1);let s;const h=C=>{if(typeof s==typeof C){if(C===s)return!0;if(typeof C=="object"&&C&&typeof s=="object"&&s)return!p(s.diff(C))}return!1},f=(C,O,N)=>{s=c(b()),h(t.content)||r.emit("update:content",s),r.emit("textChange",{delta:C,oldContents:O,source:N})},l=n.ref(),u=(C,O,N)=>{l.value=!!(e!=null&&e.hasFocus()),r.emit("selectionChange",{range:C,oldRange:O,source:N})};n.watch(l,C=>{C?r.emit("focus",a):r.emit("blur",a)});const _=(...C)=>{C[0]==="text-change"&&r.emit("editorChange",{name:C[0],delta:C[1],oldContents:C[2],source:C[3]}),C[0]==="selection-change"&&r.emit("editorChange",{name:C[0],range:C[1],oldRange:C[2],source:C[3]})},g=()=>a.value,$=()=>{var C;return(C=e==null?void 0:e.getModule("toolbar"))===null||C===void 0?void 0:C.container},v=()=>{if(e)return e;throw`The quill editor hasn't been instantiated yet,
|
|
145
|
+
make sure to call this method when the editor ready
|
|
146
|
+
or use v-on:ready="onReady(quill)" event instead.`},b=(C,O)=>t.contentType==="html"?x():t.contentType==="text"?m(C,O):e==null?void 0:e.getContents(C,O),y=(C,O="api")=>{const N=C||(t.contentType==="delta"?new Q1:"");t.contentType==="html"?S(N):t.contentType==="text"?w(N,O):e==null||e.setContents(N,O),s=c(N)},m=(C,O)=>{var N;return(N=e==null?void 0:e.getText(C,O))!==null&&N!==void 0?N:""},w=(C,O="api")=>{e==null||e.setText(C,O)},x=()=>{var C;return(C=e==null?void 0:e.root.innerHTML)!==null&&C!==void 0?C:""},S=C=>{e&&(e.root.innerHTML=C)},T=(C,O="api")=>{const N=e==null?void 0:e.clipboard.convert(C);N&&(e==null||e.setContents(N,O))},M=()=>{e==null||e.focus()},E=()=>{n.nextTick(()=>{var C;!r.slots.toolbar&&e&&((C=e.getModule("toolbar"))===null||C===void 0||C.container.remove()),i()})};return n.watch(()=>t.content,C=>{if(!e||!C||h(C))return;const O=e.getSelection();O&&n.nextTick(()=>e==null?void 0:e.setSelection(O)),y(C)},{deep:!0}),n.watch(()=>t.enable,C=>{e&&e.enable(C)}),{editor:a,getEditor:g,getToolbar:$,getQuill:v,getContents:b,setContents:y,getHTML:x,setHTML:S,pasteHTML:T,focus:M,getText:m,setText:w,reinit:E}},render(){var t,r;return[(r=(t=this.$slots).toolbar)===null||r===void 0?void 0:r.call(t),n.h("div",{ref:"editor",...this.$attrs})]}}),tp={props:{placeholders:{type:Array,default:[]},uid:{type:String,default:""},hiddenElements:{type:Array,default:()=>[]}},mounted(){this.$nextTick(()=>{var t;(t=this.$refs.toolbar)==null||t.classList.remove("ql-toolbar")})},methods:{isElementHidden(t){return this.hiddenElements.includes(t)}},components:{IbIconButton:Xe,IbIcon:Le,IbDropdownList:wn},directives:{Tooltip:Et}},np={class:"ib-toolbar toolbar",ref:"toolbar"},rp={class:"toolbar-group header-toolbar-group"},ip=n.createElementVNode("label",{class:"toolbar-group__label",for:"placeholders"},"Placeholder Selector",-1),op={id:"placeholders",class:"ql-placeholder"},ap=n.createElementVNode("option",{selected:"",value:"default",class:"disabled"},null,-1),lp=["value"],sp={key:0,class:"toolbar-group header-toolbar-group"},cp=["for"],dp=["id"],up=[n.createStaticVNode('<option value="1"></option><option value="2"></option><option value="3"></option><option value="4"></option><option value="5"></option><option value="6"></option><option selected></option>',7)],fp={key:1,class:"toolbar-group header-toolbar-group"},hp=["for"],pp=["id"],mp=[n.createStaticVNode('<option value="12px">12 px</option><option value="14px">14 px</option><option value="16px">16 px</option><option value="20px">20 px</option><option value="24px">24 px</option><option value="36px">36 px</option><option value="48px">48 px</option>',7)],gp={class:"toolbar-group"},yp={class:"toolbar-group"},bp=["for"],vp=["id"],_p=["for"],$p=["id"],wp={class:"toolbar-group"},kp={class:"toolbar-group"},Cp={class:"toolbar-group"},Ep={key:2,class:"toolbar-group"};function Op(t,r,e,o,a,i){const d=n.resolveComponent("ib-icon-button"),c=n.resolveComponent("ib-icon"),p=n.resolveComponent("ib-dropdown-list"),s=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("div",np,[n.withDirectives(n.createElementVNode("div",rp,[ip,n.createElementVNode("select",op,[ap,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.placeholders,h=>(n.openBlock(),n.createElementBlock("option",{key:h.id,value:h.id},n.toDisplayString(h.label),9,lp))),128))])],512),[[n.vShow,e.placeholders.length]]),i.isElementHidden("header")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createElementBlock("div",sp,[n.createElementVNode("label",{class:"toolbar-group__label",for:"header-selector"+e.uid},"Header Selector",8,cp),n.createElementVNode("select",{id:"header-selector"+e.uid,class:"ql-header"},up,8,dp)])),[[s,t.lang("text_style",t.langComponents.COMPONENT_SYSTEM)]]),i.isElementHidden("font-size")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createElementBlock("div",fp,[n.createElementVNode("label",{class:"toolbar-group__label",for:"font-size-selector"+e.uid},"Font Size Selector",8,hp),n.createElementVNode("select",{id:"font-size-selector"+e.uid,class:"ql-size ql-header"},mp,8,pp)])),[[s,t.lang("font_size",t.langComponents.COMPONENT_SYSTEM)]]),n.createElementVNode("div",gp,[i.isElementHidden("bold")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:0,"aria-label":"button-bold",class:"toolbar-item ql-bold",kind:"ghost"},null,512)),[[s,t.lang("bold",t.langComponents.COMPONENT_SYSTEM)]]),i.isElementHidden("italic")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:1,"aria-label":"button-italic",class:"toolbar-item ql-italic",kind:"ghost"},null,512)),[[s,t.lang("italic",t.langComponents.COMPONENT_SYSTEM)]]),i.isElementHidden("underline")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:2,"aria-label":"button-underline",class:"toolbar-item ql-underline",kind:"ghost"},null,512)),[[s,t.lang("underline",t.langComponents.COMPONENT_SYSTEM)]]),i.isElementHidden("strike")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:3,"aria-label":"button-strike",class:"toolbar-item ql-strike",kind:"ghost"},null,512)),[[s,t.lang("strikethrough",t.langComponents.COMPONENT_SYSTEM)]])]),n.createElementVNode("div",yp,[n.withDirectives((n.openBlock(),n.createElementBlock("div",null,[n.withDirectives((n.openBlock(),n.createElementBlock("label",{class:"toolbar-group__label",for:"background-selector"+e.uid},[n.createTextVNode(" Background Selector ")],8,bp)),[[s,t.lang("highlight_color",t.langComponents.COMPONENT_SYSTEM)]]),n.withDirectives(n.createElementVNode("select",{id:"background-selector"+e.uid,class:"ql-background"},null,8,vp),[[s,t.lang("highlight_color",t.langComponents.COMPONENT_SYSTEM)]])])),[[s,t.lang("highlight_color",t.langComponents.COMPONENT_SYSTEM)]]),n.withDirectives((n.openBlock(),n.createElementBlock("div",null,[n.withDirectives((n.openBlock(),n.createElementBlock("label",{class:"toolbar-group__label",for:"color-selector"+e.uid},[n.createTextVNode("Background Color Selector")],8,_p)),[[s,t.lang("text_color",t.langComponents.COMPONENT_SYSTEM)]]),n.createElementVNode("select",{id:"color-selector"+e.uid,class:"ql-color"},null,8,$p)])),[[s,t.lang("text_color",t.langComponents.COMPONENT_SYSTEM)]])]),n.createElementVNode("div",wp,[i.isElementHidden("code")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:0,"aria-label":"button-code-block",class:"toolbar-item ql-code-block",kind:"ghost"},null,512)),[[s,t.lang("code_snippet",t.langComponents.COMPONENT_SYSTEM)]]),i.isElementHidden("image")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:1,"aria-label":"button-image",class:"toolbar-item ql-image",kind:"ghost"},null,512)),[[s,t.lang("insert_image",t.langComponents.COMPONENT_SYSTEM)]]),i.isElementHidden("link")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:2,"aria-label":"button-link",class:"toolbar-item ql-link",kind:"ghost"},null,512)),[[s,t.lang("insert_link",t.langComponents.COMPONENT_SYSTEM)]])]),n.createElementVNode("div",kp,[i.isElementHidden("align")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:0,"aria-label":"button-align",class:"toolbar-item ql-align",kind:"ghost"},null,512)),[[s,t.lang("align_left",t.langComponents.COMPONENT_SYSTEM)]]),i.isElementHidden("align-center")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:1,"aria-label":"button-align-center",class:"ql-align toolbar-item",value:"center",kind:"ghost"},null,512)),[[s,t.lang("align_center",t.langComponents.COMPONENT_SYSTEM)]]),i.isElementHidden("align-right")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:2,"aria-label":"button-align-right",class:"ql-align toolbar-item",value:"right",kind:"ghost"},null,512)),[[s,t.lang("align_right",t.langComponents.COMPONENT_SYSTEM)]]),i.isElementHidden("align-justify")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:3,"aria-label":"button-align-justify",class:"ql-align toolbar-item",value:"justify",kind:"ghost"},null,512)),[[s,t.lang("justify",t.langComponents.COMPONENT_SYSTEM)]])]),n.createElementVNode("div",Cp,[i.isElementHidden("ordered-list")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:0,"aria-label":"button-ordered-list",class:"ql-list toolbar-item",value:"ordered",kind:"ghost"},null,512)),[[s,t.lang("number_list",t.langComponents.COMPONENT_SYSTEM)]]),i.isElementHidden("bullet-list")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:1,"aria-label":"button-bullet-list",class:"ql-list toolbar-item",value:"bullet",kind:"ghost"},null,512)),[[s,t.lang("bullet_list",t.langComponents.COMPONENT_SYSTEM)]]),i.isElementHidden("alphabet-list")?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(d,{key:2,"aria-label":"button-alphabet-list",class:"ql-alphabet-list alphabet-list toolbar-item",kind:"ghost"},null,512)),[[s,t.lang("alphabet_list",t.langComponents.COMPONENT_SYSTEM)]])]),t.$slots.actions?(n.openBlock(),n.createElementBlock("div",Ep,[n.createVNode(p,null,{trigger:n.withCtx(()=>[n.withDirectives((n.openBlock(),n.createBlock(d,{kind:"ghost"},{default:n.withCtx(()=>[n.createVNode(c,{name:"ellipsis-horizontal-sharp"})]),_:1})),[[s,t.lang("actions",t.langComponents.COMPONENT_SYSTEM)]])]),body:n.withCtx(()=>[n.renderSlot(t.$slots,"actions")]),_:3})])):n.createCommentVNode("",!0)],512)}const Na=be(tp,[["render",Op]]);function Sp(t){return new DOMParser().parseFromString(t,"text/html").body.textContent||""}var yr={exports:{}},Tp=yr.exports,Aa;function xp(){return Aa||(Aa=1,(function(t,r){(function(o,a){t.exports=a()})(typeof self<"u"?self:Tp,function(){return(function(e){var o={};function a(i){if(o[i])return o[i].exports;var d=o[i]={i,l:!1,exports:{}};return e[i].call(d.exports,d,d.exports,a),d.l=!0,d.exports}return a.m=e,a.c=o,a.d=function(i,d,c){a.o(i,d)||Object.defineProperty(i,d,{configurable:!1,enumerable:!0,get:c})},a.n=function(i){var d=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(d,"a",d),d},a.o=function(i,d){return Object.prototype.hasOwnProperty.call(i,d)},a.p="",a(a.s=0)})([(function(e,o,a){function i(p,s){if(!(p instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(o,"__esModule",{value:!0});var d=a(1);function c(p,s){var h=p.import("parchment"),f=d.default(p);f.className=s&&s.className||"ql-placeholder-content",p.register(f);var l=function u(_,g){var $=this;i(this,u),this.quill=_,this.onTextChange=function(v,b,y){if(y===p.sources.USER){var m=$.quill.getContents(),w=m.diff(b),x=w.ops.filter(function(S){return S.insert&&S.insert.placeholder&&S.insert.placeholder.required}).length;x&&$.quill.updateContents(w,p.sources.SILENT)}},this.onClick=function(v){var b=h.find(v.target.parentNode);if(b instanceof f){var y=$.quill.getIndex(b);$.quill.setSelection(y,b.length(),p.sources.USER)}},this.toolbarHandler=function(v){var b=$.quill.getSelection(),y=$.placeholders.filter(function(m){return m.id===v})[0];if(!y)throw new Error("Missing placeholder for "+v);$.quill.deleteText(b.index,b.length),$.quill.insertEmbed(b.index,"placeholder",y,p.sources.USER),$.quill.setSelection(b.index+1,0)},this.placeholders=g.placeholders,f.delimiters=g.delimiters||["{","}"],this.quill.getModule("toolbar").addHandler("placeholder",this.toolbarHandler),this.quill.root.addEventListener("click",this.onClick),this.quill.on("text-change",this.onTextChange)};return l}o.default=c}),(function(e,o,a){var i=(function(){function f(l,u){for(var _=0;_<u.length;_++){var g=u[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(l,g.key,g)}}return function(l,u,_){return u&&f(l.prototype,u),_&&f(l,_),l}})(),d=function f(l,u,_){l===null&&(l=Function.prototype);var g=Object.getOwnPropertyDescriptor(l,u);if(g===void 0){var $=Object.getPrototypeOf(l);return $===null?void 0:f($,u,_)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(_)}};function c(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function p(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:f}function s(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}Object.defineProperty(o,"__esModule",{value:!0});function h(f){var l=f.import("blots/embed"),u=(function(_){s(g,_);function g(){return c(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"length",value:function(){return 1}},{key:"deleteAt",value:function(v,b){this.domNode.dataset.required||d(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"deleteAt",this).call(this,v,b)}}],[{key:"create",value:function(v){var b=d(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,v);v.required&&b.setAttribute("data-required","true"),b.setAttribute("data-id",v.id),b.setAttribute("data-label",v.label),b.setAttribute("spellcheck","false");var y=g.delimiters,m=typeof y=="string"?""+y+v.label+y:""+y[0]+v.label+(y[1]||y[0]),w=document.createTextNode(m);if(f.version<"1.3"){var x=document.createElement("span");x.setAttribute("contenteditable","false"),x.appendChild(w),b.appendChild(x)}else b.appendChild(w);return b}},{key:"value",value:function(v){return v.dataset}}]),g})(l);return u.blotName="placeholder",u.tagName="span",u}o.default=h})])})})(yr)),yr.exports}var Np=xp();const Ap=Cn(Np),Dp=Oe.import("formats/list"),Mp=Oe.import("formats/list/item"),Ip=Oe.import("parchment");class br extends Mp{format(r,e){r===Ut.blotName&&!e?this.replaceWith(Ip.create(this.statics.scope)):super.format(r,e)}clone(){const r=super.clone();return r.domNode.classList.remove("checked"),r}}br.blotName="alphabet-list-item",br.tagName="LI";class Ut extends Dp{static create(){const r=super.create("bullet");return r.setAttribute("type","a"),r}static formats(){return"bullet"}}Ut.blotName="alphabet-list",Ut.tagName="OL",Ut.className="alphabet-list",Ut.defaultChild="alphabet-list-item",Ut.allowedChildren=[br];const Bp=Oe.import("formats/image");class fi extends Bp{static create(r){const e=super.create(r);return e.setAttribute("data-supernova-id",r),e.setAttribute("src","#"),e}static value(r){return r.getAttribute("data-supernova-id")}}fi.blotName="custom-image",fi.tagName="img";const Pp=`
|
|
147
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
148
|
+
<path d="M6.31836 14.9023V5.09961H9.88672C10.9805 5.09961 11.8213 5.30013 12.4092 5.70117C12.9971 6.10221 13.291 6.66732 13.291 7.39648C13.291 7.92513 13.111 8.3877 12.751 8.78418C12.3955 9.18066 11.9398 9.45638 11.3838 9.61133V9.63867C12.0811 9.72526 12.637 9.98275 13.0518 10.4111C13.471 10.8395 13.6807 11.3613 13.6807 11.9766C13.6807 12.8743 13.3594 13.5876 12.7168 14.1162C12.0742 14.6403 11.1969 14.9023 10.085 14.9023H6.31836ZM8.52637 6.72656V9.05078H9.49707C9.9528 9.05078 10.3105 8.94141 10.5703 8.72266C10.8346 8.49935 10.9668 8.19401 10.9668 7.80664C10.9668 7.08659 10.429 6.72656 9.35352 6.72656H8.52637ZM8.52637 10.6914V13.2754H9.72266C10.2331 13.2754 10.6318 13.1569 10.9189 12.9199C11.2106 12.6829 11.3564 12.3594 11.3564 11.9492C11.3564 11.5573 11.2129 11.2497 10.9258 11.0264C10.6432 10.8031 10.2467 10.6914 9.73633 10.6914H8.52637Z" class="fill" fill="#1A1A1A"/>
|
|
149
|
+
</svg>
|
|
150
|
+
`,Lp=`
|
|
151
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
152
|
+
<path d="M9.54492 14.9023H8.36914L10.4404 5.09961H11.6299L9.54492 14.9023Z" class="fill" fill="#1A1A1A"/>
|
|
153
|
+
</svg>
|
|
154
|
+
`,Rp=`
|
|
155
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
156
|
+
<path d="M13.6475 10.7197C13.6475 13.4723 12.4056 14.8486 9.92188 14.8486C7.54297 14.8486 6.35352 13.5247 6.35352 10.877V4.88184H7.50195V10.8018C7.50195 12.8115 8.34961 13.8164 10.0449 13.8164C11.681 13.8164 12.499 12.8457 12.499 10.9043V4.88184H13.6475V10.7197Z" class="fill" fill="#1A1A1A"/>
|
|
157
|
+
<path d="M5.19141 16.3047H14.8096V17.1182H5.19141V16.3047Z" class="fill" fill="#1A1A1A"/>
|
|
158
|
+
</svg>
|
|
159
|
+
`,jp=`
|
|
160
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
161
|
+
<path d="M14.6668 9.99805L5.33594 9.99805" class="stroke" stroke="#1A1A1A" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
162
|
+
<path d="M12.9158 5.33398H8.83776C8.25237 5.33398 6.03696 5.3923 6.50351 7.9583" class="stroke" stroke="#1A1A1A" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
163
|
+
<path d="M6.43941 14.6624H10.5174C11.1028 14.6624 14.0882 14.953 12.3364 10.2886" class="stroke" stroke="#1A1A1A" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
164
|
+
</svg>
|
|
165
|
+
`,Vp=`
|
|
166
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
167
|
+
<path d="M6.5 11H4.5C3.70435 11 2.94129 10.6839 2.37868 10.1213C1.81607 9.55871 1.5 8.79565 1.5 8C1.5 7.20435 1.81607 6.44129 2.37868 5.87868C2.94129 5.31607 3.70435 5 4.5 5H6.5M9.5 5H11.5C12.2956 5 13.0587 5.31607 13.6213 5.87868C14.1839 6.44129 14.5 7.20435 14.5 8C14.5 8.79565 14.1839 9.55871 13.6213 10.1213C13.0587 10.6839 12.2956 11 11.5 11H9.5M5.10281 8H10.9597" class="stroke" stroke="#1A1A1A" stroke-width="1.125" stroke-linecap="round" stroke-linejoin="round"/>
|
|
168
|
+
</svg>
|
|
169
|
+
|
|
170
|
+
`,Fp=`
|
|
171
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
172
|
+
<path d="M5 11.5L1 8L5 4.5M11 11.5L15 8L11 4.5M9.5 3L6.5 13" class="stroke" stroke="#1A1A1A" stroke-linecap="round" stroke-linejoin="round"/>
|
|
173
|
+
</svg>
|
|
174
|
+
|
|
175
|
+
`,qp=`
|
|
176
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
177
|
+
<rect x="3" y="3" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
178
|
+
<rect x="3" y="7" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
179
|
+
<rect x="3" y="11" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
180
|
+
<rect x="3" y="15" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
181
|
+
</svg>
|
|
182
|
+
|
|
183
|
+
`,Hp=`
|
|
184
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
185
|
+
<rect x="3" y="3" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
186
|
+
<rect x="5" y="7" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
187
|
+
<rect x="3" y="11" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
188
|
+
<rect x="5" y="15" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
189
|
+
</svg>
|
|
190
|
+
`,zp=`
|
|
191
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
192
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 3)" class="fill" fill="#1A1A1A"/>
|
|
193
|
+
<rect width="10" height="2" rx="1" transform="matrix(-1 0 0 1 17 7)" class="fill" fill="#1A1A1A"/>
|
|
194
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 11)" class="fill" fill="#1A1A1A"/>
|
|
195
|
+
<rect width="10" height="2" rx="1" transform="matrix(-1 0 0 1 17 15)" class="fill" fill="#1A1A1A"/>
|
|
196
|
+
</svg>
|
|
197
|
+
|
|
198
|
+
`,Up=`
|
|
199
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
200
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 3)" class="fill" fill="#1A1A1A"/>
|
|
201
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 7)" class="fill" fill="#1A1A1A"/>
|
|
202
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 11)" class="fill" fill="#1A1A1A"/>
|
|
203
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 15)" class="fill" fill="#1A1A1A"/>
|
|
204
|
+
</svg>
|
|
205
|
+
`,Kp=`
|
|
206
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
207
|
+
<path d="M3.625 3.63672V6.5H3.00977V4.33203C2.97591 4.36198 2.93555 4.39062 2.88867 4.41797C2.8431 4.44401 2.79427 4.4681 2.74219 4.49023C2.6901 4.51107 2.63607 4.5293 2.58008 4.54492C2.52409 4.55924 2.46875 4.56966 2.41406 4.57617V4.05664C2.57422 4.00977 2.72526 3.94987 2.86719 3.87695C3.00911 3.80404 3.13737 3.72396 3.25195 3.63672H3.625Z" class="fill" fill="#1A1A1A"/>
|
|
208
|
+
<path d="M2.83789 10.9883H4.02539V11.5H2.16211V11.2891C2.16211 11.1458 2.1862 11.0176 2.23438 10.9043C2.28255 10.7897 2.3431 10.6875 2.41602 10.5977C2.48893 10.5065 2.56836 10.4264 2.6543 10.3574C2.74154 10.2871 2.82422 10.224 2.90234 10.168C2.98438 10.1094 3.05599 10.0534 3.11719 10C3.17969 9.94661 3.23177 9.89388 3.27344 9.8418C3.31641 9.78841 3.34831 9.73503 3.36914 9.68164C3.38997 9.62695 3.40039 9.56901 3.40039 9.50781C3.40039 9.38802 3.36654 9.29753 3.29883 9.23633C3.23112 9.17513 3.1276 9.14453 2.98828 9.14453C2.7474 9.14453 2.51693 9.24023 2.29688 9.43164V8.88867C2.54036 8.73112 2.8151 8.65234 3.12109 8.65234C3.26302 8.65234 3.38997 8.67122 3.50195 8.70898C3.61523 8.74544 3.71094 8.79818 3.78906 8.86719C3.86719 8.9362 3.92643 9.02018 3.9668 9.11914C4.00846 9.2168 4.0293 9.32617 4.0293 9.44727C4.0293 9.57617 4.00911 9.69076 3.96875 9.79102C3.92969 9.89128 3.87695 9.98242 3.81055 10.0645C3.74544 10.1465 3.66992 10.222 3.58398 10.291C3.49805 10.3587 3.40885 10.4245 3.31641 10.4883C3.25391 10.5326 3.19336 10.5768 3.13477 10.6211C3.07747 10.6641 3.02669 10.707 2.98242 10.75C2.93815 10.7917 2.90299 10.8327 2.87695 10.873C2.85091 10.9134 2.83789 10.9518 2.83789 10.9883Z" class="fill" fill="#1A1A1A"/>
|
|
209
|
+
<path d="M2.22852 16.4082V15.8711C2.41602 16.0078 2.63477 16.0762 2.88477 16.0762C3.04232 16.0762 3.16471 16.0423 3.25195 15.9746C3.34049 15.9069 3.38477 15.8125 3.38477 15.6914C3.38477 15.5664 3.33008 15.4701 3.2207 15.4023C3.11263 15.3346 2.96354 15.3008 2.77344 15.3008H2.51367V14.8281H2.75391C3.11849 14.8281 3.30078 14.707 3.30078 14.4648C3.30078 14.237 3.16081 14.123 2.88086 14.123C2.69336 14.123 2.51107 14.1836 2.33398 14.3047V13.8008C2.5306 13.7018 2.75977 13.6523 3.02148 13.6523C3.30794 13.6523 3.5306 13.7168 3.68945 13.8457C3.84961 13.9746 3.92969 14.1419 3.92969 14.3477C3.92969 14.7135 3.74414 14.9427 3.37305 15.0352V15.0449C3.57096 15.0697 3.72721 15.1419 3.8418 15.2617C3.95638 15.3802 4.01367 15.526 4.01367 15.6992C4.01367 15.9609 3.91797 16.168 3.72656 16.3203C3.53516 16.4727 3.27083 16.5488 2.93359 16.5488C2.64453 16.5488 2.40951 16.502 2.22852 16.4082Z" class="fill" fill="#1A1A1A"/>
|
|
210
|
+
<rect x="7" y="4.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
211
|
+
<rect x="7" y="9.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
212
|
+
<rect x="7" y="14.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
213
|
+
</svg>
|
|
214
|
+
`,Gp=`
|
|
215
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
216
|
+
<rect x="6.5" y="4" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
217
|
+
<rect x="6.5" y="9" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
218
|
+
<rect x="6.5" y="14" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
219
|
+
<circle cx="3.5" cy="15" r="1" class="fill" fill="#1A1A1A"/>
|
|
220
|
+
<circle cx="3.5" cy="10" r="1" class="fill" fill="#1A1A1A"/>
|
|
221
|
+
<circle cx="3.5" cy="5" r="1" class="fill" fill="#1A1A1A"/>
|
|
222
|
+
</svg>
|
|
223
|
+
`,Wp=`
|
|
224
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
225
|
+
<path d="M3.92383 6.5H3.33984V6.21289H3.33203C3.19792 6.43685 2.99935 6.54883 2.73633 6.54883C2.54232 6.54883 2.38932 6.49414 2.27734 6.38477C2.16667 6.27409 2.11133 6.12695 2.11133 5.94336C2.11133 5.55534 2.34115 5.33138 2.80078 5.27148L3.34375 5.19922C3.34375 4.98047 3.22526 4.87109 2.98828 4.87109C2.75 4.87109 2.52344 4.94206 2.30859 5.08398V4.61914C2.39453 4.57487 2.51172 4.53581 2.66016 4.50195C2.8099 4.4681 2.94596 4.45117 3.06836 4.45117C3.63867 4.45117 3.92383 4.73568 3.92383 5.30469V6.5ZM3.34375 5.6875V5.55273L2.98047 5.59961C2.77995 5.62565 2.67969 5.71615 2.67969 5.87109C2.67969 5.94141 2.70378 5.99935 2.75195 6.04492C2.80143 6.08919 2.86784 6.11133 2.95117 6.11133C3.06706 6.11133 3.16146 6.07161 3.23438 5.99219C3.30729 5.91146 3.34375 5.8099 3.34375 5.6875Z" class="fill" fill="#1A1A1A"/>
|
|
226
|
+
<path d="M2.88477 11.2676H2.87695V11.5H2.25977V8.53906H2.87695V9.80078H2.88477C3.03711 9.56771 3.25391 9.45117 3.53516 9.45117C3.79297 9.45117 3.99154 9.53971 4.13086 9.7168C4.27018 9.89388 4.33984 10.1361 4.33984 10.4434C4.33984 10.7767 4.25846 11.0443 4.0957 11.2461C3.93294 11.4479 3.71549 11.5488 3.44336 11.5488C3.19727 11.5488 3.01107 11.4551 2.88477 11.2676ZM2.86719 10.4238V10.6289C2.86719 10.7578 2.9043 10.8646 2.97852 10.9492C3.05273 11.0339 3.14779 11.0762 3.26367 11.0762C3.4043 11.0762 3.51302 11.0221 3.58984 10.9141C3.66797 10.8047 3.70703 10.6504 3.70703 10.4512C3.70703 10.2858 3.67122 10.1569 3.59961 10.0645C3.5293 9.9707 3.42839 9.92383 3.29688 9.92383C3.17318 9.92383 3.07031 9.97005 2.98828 10.0625C2.90755 10.1549 2.86719 10.2754 2.86719 10.4238Z" class="fill" fill="#1A1A1A"/>
|
|
227
|
+
<path d="M3.77539 16.4277C3.63607 16.5085 3.4349 16.5488 3.17188 16.5488C2.86458 16.5488 2.61589 16.4557 2.42578 16.2695C2.23568 16.0833 2.14062 15.8431 2.14062 15.5488C2.14062 15.209 2.24219 14.9414 2.44531 14.7461C2.64974 14.5495 2.92253 14.4512 3.26367 14.4512C3.49935 14.4512 3.66992 14.4824 3.77539 14.5449V15.0684C3.64648 14.972 3.5026 14.9238 3.34375 14.9238C3.16667 14.9238 3.02604 14.9759 2.92188 15.0801C2.81901 15.1829 2.76758 15.3255 2.76758 15.5078C2.76758 15.6849 2.81706 15.8242 2.91602 15.9258C3.01497 16.026 3.15104 16.0762 3.32422 16.0762C3.47786 16.0762 3.62826 16.028 3.77539 15.9316V16.4277Z" class="fill" fill="#1A1A1A"/>
|
|
228
|
+
<rect x="7" y="4.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
229
|
+
<rect x="7" y="9.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
230
|
+
<rect x="7" y="14.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
231
|
+
</svg>
|
|
232
|
+
`,Yp=`
|
|
233
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
234
|
+
<path d="M16.25 3.125H3.75C2.71447 3.125 1.875 3.96447 1.875 5V15C1.875 16.0355 2.71447 16.875 3.75 16.875H16.25C17.2855 16.875 18.125 16.0355 18.125 15V5C18.125 3.96447 17.2855 3.125 16.25 3.125Z" stroke="#1A1A1A" stroke-width="1.25" stroke-linejoin="round"/>
|
|
235
|
+
<path d="M13.125 8.125C13.8154 8.125 14.375 7.56536 14.375 6.875C14.375 6.18464 13.8154 5.625 13.125 5.625C12.4346 5.625 11.875 6.18464 11.875 6.875C11.875 7.56536 12.4346 8.125 13.125 8.125Z" stroke="#1A1A1A" stroke-width="1.25" stroke-miterlimit="10"/>
|
|
236
|
+
<path d="M8.75 16.8741L13.568 12.0561C13.7883 11.8353 14.0832 11.7049 14.3948 11.6904C14.7064 11.676 15.0121 11.7785 15.252 11.978L18.125 14.3741M11.875 13.1159L8.33359 9.58111C8.10824 9.35581 7.80535 9.22508 7.48684 9.21564C7.16832 9.2062 6.85822 9.31876 6.61992 9.53032L1.875 13.7491L11.875 13.1159Z" stroke="#1A1A1A" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
237
|
+
</svg>
|
|
238
|
+
`,Da=Oe.import("attributors/class/size");Da.whitelist=["12px","14px","16px","20px","24px","36px","48px"];const Ma=Oe.import("attributors/style/size");Ma.whitelist=["12px","14px","16px","20px","24px","36px","48px"];function Ia(){Oe.register(Oe.import("attributors/attribute/direction"),!0),Oe.register(Oe.import("attributors/class/align"),!0),Oe.register(Oe.import("attributors/class/direction"),!0),Oe.register(Oe.import("attributors/class/font"),!0),Oe.register(Da,!0),Oe.register(Oe.import("attributors/style/align"),!0),Oe.register(Oe.import("attributors/style/background"),!0),Oe.register(Oe.import("attributors/style/color"),!0),Oe.register(Oe.import("attributors/style/direction"),!0),Oe.register(Oe.import("attributors/style/font"),!0),Oe.register(Ma,!0),Zp(),Jp()}function Zp(){const t=Oe.import("ui/icons");t.bold=Pp,t.italic=Lp,t.underline=Rp,t.strike=jp,t["code-block"]=Fp,t.link=Vp,t.align[""]=qp,t.align.center=Hp,t.align.right=zp,t.align.justify=Up,t.list.ordered=Kp,t.list.bullet=Gp,t["alphabet-list"]=Wp,t.image=Yp,Oe.register(t)}function Jp(){Oe.register({"formats/alphabet-list":Ut,"formats/alphabet-list/item":br,"formats/custom-image":fi})}Oe.register("modules/placeholder",Ap(Oe,{className:"ql-placeholder-content"})),Oe.debug("error"),Ia();const Xp={name:"IbTextEditor",props:{name:{type:String,required:!0},placeholder:{type:String,default:""},placeholders:{type:Array,default:()=>[]},modelValue:{type:String},content:{type:String,default:""},readOnly:{type:Boolean,default:!1},enable:{type:Boolean,default:!0},modules:{type:[Object,Array],default:()=>{}},options:{type:Object,default:()=>{}},characterLimit:{type:[String,Number],default:null},error:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},errorMessage:{type:String,default:""},characterLimitErrorMessage:{type:String,default:""},hiddenElements:{type:Array,default:()=>["font-size","image"]}},emits:["onOverLimitHandler","update:modelValue","change","blur"],mounted(){const t=this.$refs.wrapper.querySelector("input[data-link]");t.dataset.link="Enter Link",this.updateCharacterLength()},data(){return{data:this.modelValue?this.modelValue:this.content,characterLength:0,isFocus:!1}},watch:{content(t){this.data=t},data(t){const r=this.cleanPlaceholderSpans(t);this.$emit("update:modelValue",r)},characterOverLimit(t){this.$emit("onOverLimitHandler",t)}},methods:{onChange(){let t=this.cleanPlaceholderSpans(this.data);this.data=this.patchListStylePosition(t),this.updateCharacterLength(),this.$emit("change",this.data)},onBlur(t){this.$emit("blur",this.cleanPlaceholderSpans(this.data),t),this.isFocus=!1},onFocus(){this.isFocus=!0},updateCharacterLength(){this.characterLength=Sp(this.data).length},cleanPlaceholderSpans(t){if(!t)return t;let r;do r=t,t=t.replace(/<span contenteditable="false">([\s\S]*?)<\/span>/g,(e,o)=>o.replace(/[\u200B-\u200F\uFEFF]/g,""));while(r!==t);return t},patchListStylePosition(t){const r=document.createElement("div");return r.innerHTML=t,r.querySelectorAll('ul[style*="text-align"], ol[style*="text-align"], li[style*="text-align"]').forEach(e=>{const o=e.getAttribute("style")??"";if(!/list-style-position\s*:\s*inside/i.test(o)){const a=(o.trim().endsWith(";")||o.trim()===""?o:o+";")+" list-style-position: inside;";e.setAttribute("style",a)}}),r.innerHTML}},computed:{config(){const t={placeholder:this.data.length?"":this.placeholder,readOnly:this.readOnly?this.readOnly:this.disable,enable:this.enable,modules:{toolbar:{container:"#toolbar",handlers:{image:this.imageButtonClickHandler}},placeholder:{delimiters:["{{","}}"],placeholders:this.placeholders}}};return Object.assign(t,this.options)},characterOverLimit(){return!!this.characterLimit&&this.characterLength>this.characterLimit},uid(){return Math.random().toString(36).substr(2,9)}},components:{QuillEditor:ep,IbIconButton:Xe,IbAlert:Rt,IbCharacterCount:Hr,Toolbar:Na}},Qp=["name","disabled","value"],e0={class:"ib-text-editor",ref:"wrapper"};function t0(t,r,e,o,a,i){const d=n.resolveComponent("ib-character-count"),c=n.resolveComponent("ib-alert"),p=n.resolveComponent("QuillEditor"),s=n.resolveComponent("Toolbar");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["textarea-wrapper",{error:i.characterOverLimit||e.error||e.errorMessage.length,focus:a.isFocus,disable:e.disable}])},[e.characterLimit?(n.openBlock(),n.createBlock(d,{key:0,"character-limit":e.characterLimit,"character-length":a.characterLength},null,8,["character-limit","character-length"])):n.createCommentVNode("",!0),e.errorMessage.length?(n.openBlock(),n.createBlock(c,{key:1,class:"error-message"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(c,{class:"error-message"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.characterLimitErrorMessage),1)]),_:1},512),[[n.vShow,e.characterLimitErrorMessage.length&&i.characterOverLimit]]),n.createElementVNode("input",{name:e.name,type:"hidden",disabled:e.disable,value:a.data},null,8,Qp),n.createElementVNode("div",{class:n.normalizeClass(["ib-text-editor-wrapper",{disable:e.disable}])},[n.createElementVNode("div",e0,[n.createVNode(p,{"aria-label":"text-editor",onTextChange:i.onChange,onBlur:i.onBlur,onFocus:i.onFocus,ref:"quill",content:a.data,"onUpdate:content":r[0]||(r[0]=h=>a.data=h),contentType:"html",options:i.config,modules:e.modules},null,8,["onTextChange","onBlur","onFocus","content","options","modules"])],512),n.createVNode(s,{id:"toolbar",class:"toolbar",ref:"toolbar",placeholders:e.placeholders,uid:i.uid,"hidden-elements":e.hiddenElements},null,8,["placeholders","uid","hidden-elements"])],2)],2)}const n0=be(Xp,[["render",t0],["__scopeId","data-v-6f456437"]]),r0={name:"IbTable",computed:{hasThead(){return!!this.$slots.thead}}},i0={class:"ib-table-wrapper"},o0={class:"ib-table"};function a0(t,r,e,o,a,i){return n.openBlock(),n.createElementBlock("div",i0,[n.createElementVNode("table",o0,[i.hasThead?n.renderSlot(t.$slots,"thead",{key:0},void 0,!0):n.createCommentVNode("",!0),n.createElementVNode("tbody",null,[n.renderSlot(t.$slots,"tbody",{},void 0,!0)])])])}const l0=be(r0,[["render",a0],["__scopeId","data-v-5dceb760"]]),s0={name:"IbRow"},c0={class:"ib-tr"};function d0(t,r,e,o,a,i){return n.openBlock(),n.createElementBlock("tr",c0,[n.renderSlot(t.$slots,"default",{ref:"row"})])}const u0=be(s0,[["render",d0]]),f0={name:"IbCell",props:{fixed:{type:Boolean,default:!1}},data(){return{attr:{}}},mounted(){this.fixed&&this.freezeCol()},methods:{freezeCol(){const t=this.$el.getBoundingClientRect(),r=this.$el.closest("tr").getBoundingClientRect();this.attr.style||(this.attr.style={}),this.attr.style.minWidth=`${t.width}px`,this.attr.style.left=`${t.left-r.left}px`,this.attr.class+=" fixed"}}},h0={class:"cell"};function p0(t,r,e,o,a,i){return n.openBlock(),n.createElementBlock("td",n.mergeProps({onResize:r[0]||(r[0]=(...d)=>i.freezeCol&&i.freezeCol(...d)),class:"ib-cell"},this.attr),[n.createElementVNode("div",h0,[n.renderSlot(t.$slots,"default",{},void 0,!0)])],16)}const Ba=be(f0,[["render",p0],["__scopeId","data-v-e4ce74a7"]]),m0={name:"IbCheckboxCell",props:{isChecked:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1}},components:{IbCell:Ba,IbCheckbox:Vr}};function g0(t,r,e,o,a,i){const d=n.resolveComponent("ib-checkbox"),c=n.resolveComponent("ib-cell");return n.openBlock(),n.createBlock(c,{fixed:e.fixed,class:"ib-checkbox-cell"},{default:n.withCtx(()=>[n.createVNode(d,{"is-checked":e.isChecked},null,8,["is-checked"])]),_:1},8,["fixed"])}const y0=be(m0,[["render",g0]]);fe.IbAccordion=Ua,fe.IbAlert=Rt,fe.IbAvatar=Jl,fe.IbBadge=es,fe.IbBreadcrumbs=Cc,fe.IbButton=Li,fe.IbButtonGroup=is,fe.IbCell=Ba,fe.IbCharactersCount=Hr,fe.IbCheckbox=Vr,fe.IbCheckboxCell=y0,fe.IbCheckboxGroup=Su,fe.IbChips=_u,fe.IbDatePicker=_f,fe.IbDropdown=ir,fe.IbDropdownItem=Pr,fe.IbDropdownList=wn,fe.IbFormGroup=Cu,fe.IbIcon=Le,fe.IbIconButton=Xe,fe.IbInput=jr,fe.IbLabel=kn,fe.IbLimitSelector=Mo,fe.IbModal=Ws,fe.IbPagination=Gd,fe.IbPanel=pu,fe.IbPhoneInput=z1,fe.IbPopover=ao,fe.IbProgressBar=eu,fe.IbRadio=Bu,fe.IbRow=u0,fe.IbSelect=Fr,fe.IbSorting=gc,fe.IbSplitButton=Vs,fe.IbSplitButtonItem=Hs,fe.IbStatusIndicator=au,fe.IbTab=sc,fe.IbTabDropdown=_o,fe.IbTable=l0,fe.IbTabs=oc,fe.IbTagPill=ls,fe.IbTextEditor=n0,fe.IbTextEditorToolbar=Na,fe.IbTextarea=Gu,fe.IbToggle=No,fe.IbToggleTip=po,fe.IbTooltip=bn,fe.IbTreeSelect=Fr,fe.OutsideDirective=nr,fe.TextOverflowTooltipDirective=Co,fe.TooltipDirective=Et,fe.setupTextEditor=Ia,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})}));
|