halleyx-ui-framework 11.7.48 → 11.7.49
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/dist/cjs/index.css +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/index.css +1 -1
- package/dist/es/index.js +1 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.js +1 -1
- package/dist/umd/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/umd/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("vue-draggable-next"),require("vue3-apexcharts"),require("vue3-country-flag-icon"),require("vue3-country-flag-icon/dist/CountryFlag.css"),require("chart.js"),require("chartjs-chart-geo")):"function"==typeof define&&define.amd?define(["exports","vue","vue-draggable-next","vue3-apexcharts","vue3-country-flag-icon","vue3-country-flag-icon/dist/CountryFlag.css","chart.js","chartjs-chart-geo"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["halleyx-ui-framework"]={},e.Vue,e.vueDraggableNext,e.VueApexCharts,e.CountryFlag,null,e.chart_js,e.ChartGeo)}(this,function(e,t,o,a,i,n,l,r){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}}),t.default=e,Object.freeze(t)}var m=s(a),d=s(i),u=c(r),f={name:"HlxAccordion",props:{accordionData:{type:Array,default:()=>[]},direction:{type:String,default:"right"},multiple:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},headerBorder:{type:Boolean,default:!1}},emits:["accordionopen","accordionclose"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5)}),mounted(){this.expand&&document.querySelectorAll(".accordion-item")?.forEach(e=>{e?.children[0]?.children[1]?.children[0]?.classList?.remove("icon-angle-right-regular"),e?.children[0]?.children[1]?.children[0]?.classList?.add("icon-angle-down-regular"),e.children[1].style.display="flex",this.$emit("accordionopen")})},methods:{toggleView(e,t,o){0==o?"right icon-angle-right-regular"===document.querySelector("#arrow-"+t).className?(0==this.headerBorder&&(document.querySelectorAll(".accordion-header").forEach(e=>{e.classList.remove("noo-border")}),document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border")),document.querySelectorAll(".icon-angle-down-regular").forEach(e=>{"right icon-angle-down-regular"==e.className&&(document.querySelectorAll(".accordion-content").forEach(e=>{e.style.display="none"}),e.classList.remove("icon-angle-down-regular"),e.classList.add("icon-angle-right-regular"))}),document.querySelector("#arrow-"+t).classList.remove("icon-angle-right-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-down-regular"),document.querySelector("#content-"+t).style.display="flex",this.$emit("accordionopen")):"right icon-angle-down-regular"===document.querySelector("#arrow-"+t).className&&(0==this.headerBorder&&(document.querySelectorAll(".accordion-header").forEach(e=>{e.classList.remove("noo-border")}),document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border")),document.querySelector("#arrow-"+t).classList.remove("icon-angle-down-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-right-regular"),document.querySelector("#content-"+t).style.display="none",this.$emit("accordionclose")):"right icon-angle-right-regular"===document.querySelector("#arrow-"+t).className?(0==this.headerBorder&&document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border"),document.querySelector("#arrow-"+t).classList.remove("icon-angle-right-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-down-regular"),document.querySelector("#content-"+t).style.display="flex",this.$emit("accordionopen")):"right icon-angle-down-regular"===document.querySelector("#arrow-"+t).className&&(document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.remove("noo-border"),document.querySelector("#arrow-"+t).classList.remove("icon-angle-down-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-right-regular"),document.querySelector("#content-"+t).style.display="none",this.$emit("accordionclose"))}}};const p=["id","multiple"],h=["id"],g={key:0,style:{display:"flex"}},y=["id"],v={style:{width:"100%"}},b={key:1,style:{display:"flex"}},k=["id"],_=["id"];f.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(' <div class="accordion-container"> '),(t.openBlock(),t.createElementBlock("div",{id:["item-"+n.unique],key:n.unique,class:"accordion-item",multiple:a.multiple},[t.createElementVNode("div",{id:["header-"+n.unique],class:"accordion-header",onClick:o[0]||(o[0]=e=>l.toggleView(e,n.unique,a.multiple))},["left"==a.direction?(t.openBlock(),t.createElementBlock("div",g,[t.createElementVNode("i",{id:["arrow-"+n.unique],class:"right icon-angle-right-regular"},null,8,y)])):t.createCommentVNode("v-if",!0),t.createElementVNode("header",v,[t.renderSlot(e.$slots,"item-title")]),"right"==a.direction?(t.openBlock(),t.createElementBlock("div",b,[t.createElementVNode("i",{id:["arrow-"+n.unique],class:"right icon-angle-right-regular"},null,8,k)])):t.createCommentVNode("v-if",!0)],8,h),t.createElementVNode("div",{id:["content-"+n.unique],class:"accordion-content"},[t.renderSlot(e.$slots,"item-body")],8,_)],8,p)),t.createCommentVNode(" </div> ")],2112)},f.__file="src/components/AccordionComponent.vue";var w={name:"HlxAlertNotification",props:{notify:{type:Object,default:()=>({})},autoClose:{type:Boolean,default:()=>!0},delay:{type:Number,default:e=>e>3e3?e:2e3,validator:e=>e>3e3?e:2e3}},data:()=>({notifications:[],alertStatus:!1,typeData:""}),computed:{computedAlert(){return this.alertStatus}},watch:{notify:{handler(e){const t=(new Date).toISOString().replace(/[.\:-]/g,"")+crypto.randomUUID().toString(16).substring(1);Object.keys(e).length>0&&this.push({...e,id:t})},immediate:!0,deep:!0}},methods:{getClass:e=>e?.type?"alert-"+e?.type.toLowerCase():"alert-success",closeAlert(e){this.$refs["hlx-alert-"+e][0]?.classList.add("close"),setTimeout(()=>{this.notifications=this.notifications.filter(t=>t.id&&t.id!=e)},1e3)},push(e){this.notifications.push({...e}),this.autoClose&&setTimeout(()=>{this.$refs["hlx-alert-"+e.id][0]?.classList.add("close"),setTimeout(()=>{this.notifications.shift()},1e3)},this.delay+1e3*this.notifications.length)},icon(e){if(e)switch(e.toLowerCase()){case"danger":case"warning":return"icon-exclamation-circle-regular";case"primary":return"icon-info-circle-regular";default:return"icon-check-circle-regular"}return"tick-bg"}}};const C={key:0,class:"hlx-alert-wrapper"},S=["id"],E={class:"icon"},N={class:"text"},x={class:"alert-description"},B=["onClick"];w.render=function(e,o,a,i,n,l){return t.openBlock(),t.createBlock(t.Teleport,{to:"body",class:"alert-not"},[n.notifications.length>0?(t.openBlock(),t.createElementBlock("section",C,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.notifications,e=>(t.openBlock(),t.createElementBlock("div",{id:"alert"+e.id,ref_for:!0,ref:"hlx-alert-"+e.id,key:e,class:t.normalizeClass(["hlx alert",l.getClass(e)])},[t.createElementVNode("span",E,[t.createElementVNode("i",{class:t.normalizeClass(l.icon(e.type))},null,2)]),t.createElementVNode("div",N,[t.createElementVNode("p",x,t.toDisplayString(e.message),1)]),t.createElementVNode("button",{class:"close","aria-label":"close",onClick:t=>l.closeAlert(e.id)},[...o[0]||(o[0]=[t.createElementVNode("i",{class:"icon-times-filled"},null,-1)])],8,B)],10,S))),128))])):t.createCommentVNode("v-if",!0)])},w.__file="src/components/AlertComponent.vue";var V={name:"HlxBadge",props:{icon:{type:String,default:""},count:{type:Number,default:0}}};const A=["aria-label"],R={class:"icon-button__badge",style:{"font-size":"10px"}};V.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("button",{id:"badge",type:"button",class:"icon-button","aria-label":a.icon},[t.createElementVNode("span",{class:t.normalizeClass(a.icon)},null,2),t.createElementVNode("span",R,t.toDisplayString(a.count),1)],8,A)},V.__file="src/components/BadgeComponent.vue";var M={name:"HlxBreadcrumb",props:{labelValue:{type:String,default:"Back"},autoRoute:{type:Boolean,default:!1},type:{type:String,default:"back-breadcrumb"},items:{type:Array,required:!0},separator:{type:[String,Object],default:"/"}},emits:["path"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5)}),computed:{isIconSeparator(){return"object"==typeof this.separator}},methods:{current(e){!0===this.autoRoute&&this.$router.back(),this.$emit("path",e)},tooltipover(e,t){let o=e,a=t;this.ellipsis(o,a)},tooltipleave(e,t){let o=e,a=t;this.ellipses(o,a)},ellipsis(e,t){console.log(e,t),this.$nextTick(()=>{const o=document.querySelector("#"+e);if(null!=o){if(o.clientWidth<o.scrollWidth)if("ellipsis"===(o.currentStyle||window.getComputedStyle(o)).textOverflow){const e=document.querySelector("."+t);console.log(o.getBoundingClientRect().top);let a=o.getBoundingClientRect().top,i=o.getBoundingClientRect().left+77;return e.style.display="block",e.style.top=a+"px",e.style.left=i+"px",!0}return!1}})},ellipses(e,t){this.$nextTick(()=>{const o=document.querySelector("#"+e);if(null!=o){if(o.clientWidth<o.scrollWidth)if("ellipsis"===(o.currentStyle||window.getComputedStyle(o)).textOverflow){return document.querySelector("."+t).style.display="none",!0}return!1}})}}};const I={class:"breadcrumb","aria-label":"Breadcrumb"},T={key:0},$=["onClick"],D=["id","onMouseover","onMouseleave"],z=["id","onMouseover","onMouseleave"],O={key:3,class:"breadcrumb-separator"},q={key:1};M.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("nav",I,["Pathway-breadcrumb"===a.type?(t.openBlock(),t.createElementBlock("ul",T,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.items,(e,o)=>(t.openBlock(),t.createElementBlock("li",{key:o,onClick:t=>l.current(e)},[null!=e.icon?(t.openBlock(),t.createElementBlock("i",{key:0,"aria-hidden":"true",class:t.normalizeClass(e.icon)},null,2)):t.createCommentVNode("v-if",!0),o===a.items.length-1?(t.openBlock(),t.createElementBlock("a",{key:1,id:"breadcrumb"+o+n.unique,style:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","min-width":"45px",width:"auto","max-width":"80px",display:"inline-block"},onMouseover:e=>l.tooltipover("breadcrumb"+o+n.unique,"tooltip-textbreadcrumb"+o+n.unique),onMouseleave:e=>l.tooltipleave("breadcrumb"+o+n.unique,"tooltip-textbreadcrumb"+o+n.unique)},[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.createElementVNode("p",{id:"tooltip-text1",class:t.normalizeClass("tooltip-textbreadcrumb"+o+n.unique)},t.toDisplayString(e.label),3)],40,D)):(t.openBlock(),t.createElementBlock("a",{key:2,id:"breadcrumb"+n.unique+o,class:"show-breadcrumb",style:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","min-width":"45px",width:"auto","max-width":"80px",display:"inline-block"},onMouseover:e=>l.tooltipover("breadcrumb"+n.unique+o,"tooltip-textbreadcrumb"+n.unique+o),onMouseleave:e=>l.tooltipleave("breadcrumb"+n.unique+o,"tooltip-textbreadcrumb"+n.unique+o)},[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.createElementVNode("p",{id:"tooltip-text1",class:t.normalizeClass("tooltip-textbreadcrumb"+n.unique+o)},t.toDisplayString(e.label),3)],40,z)),t.createCommentVNode(' <router-link :to="item.link" :class="{ disabled: index === items.length - 1 } " >{{ item.label }}</router-link> '),o<a.items.length-1?(t.openBlock(),t.createElementBlock("span",O,[l.isIconSeparator?(t.openBlock(),t.createElementBlock("i",{key:0,"aria-hidden":"true",class:t.normalizeClass(a.separator.icon)},null,2)):(t.openBlock(),t.createElementBlock("span",q,t.toDisplayString(a.separator),1))])):t.createCommentVNode("v-if",!0)],8,$))),128))])):t.createCommentVNode("v-if",!0),"back-breadcrumb"===a.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:"back-breadcrumb",style:{display:"flex",cursor:"pointer","align-items":"center",gap:"8px","max-width":"100px"},onClick:o[0]||(o[0]=e=>l.current("back"))},[o[1]||(o[1]=t.createElementVNode("i",{style:{"font-weight":"800"},class:"icon-arrow-left-regular"},null,-1)),t.createElementVNode("p",null,t.toDisplayString(a.labelValue),1)])):t.createCommentVNode("v-if",!0)])},M.__file="src/components/BreadcrumbComponent.vue";var P={name:"HlxButton",props:{value:{type:String,default:"Hlx click :)"},type:{type:String,default:"button"},name:{type:String,default:"hlx-button"},target:{type:String,default:"_blank"},href:{type:String,default:void 0},disabled:{type:Boolean,default:!1},label:{type:String,default:"Button"}},computed:{primaryClass(){return this.disabled?"disabled-button":""}},watch:{disabled:{handler(e){e&&this.primaryClass},immediate:!0}},methods:{clicked(){this.href&&this.$refs["link-ele"].click()}}};const L=["value","type","name","aria-label"],j=["aria-label","href","target"];P.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("button",{id:"hlx-button-0009",ref:"hlx-button",value:a.value,type:a.type,name:a.name,class:t.normalizeClass([l.primaryClass,"hlx-button"]),"aria-label":a.label,onClick:o[0]||(o[0]=(...e)=>l.clicked&&l.clicked(...e))},[t.renderSlot(e.$slots,"default"),null!=a.href?(t.openBlock(),t.createElementBlock("a",{key:0,ref:"link-ele","aria-label":a.label,href:a.href,target:a.target},null,8,j)):t.createCommentVNode("v-if",!0)],10,L)},P.__file="src/components/ButtonComponent.vue";var F={name:"HlxCalendar",props:{disableWeekend:{type:Boolean,default:!1},dateFormatLanguage:{type:String,default:"en"},event:{type:[Array,PointerEvent],default:()=>[]},preValue:{type:[Date,String],default:""},startYear:{type:Number,default:1950},endYear:{type:Number,default:2050},holidayList:{type:Array,default:()=>[]}},emits:["selectedDate","formattedDate"],data:()=>({selectedMonth:"",selectedYear:"",selectedDay:"",formattedDate:"",staticDataDays:localStorage.getItem("dayDataShort")?JSON.parse(localStorage.getItem("dayDataShort")):{sun:"SUN",mon:"MON",tue:"TUE",wed:"WED",thu:"THU",fri:"FRI",sat:"SAT"},monthNames:localStorage.getItem("monthDataLong")?JSON.parse(localStorage.getItem("monthDataLong")):["January","February","March","April","May","June","July","August","September","October","November","December"]}),async mounted(){console.log("days111:::",JSON.parse(localStorage.getItem("dayDataShort"))),console.log("monthLong111:::",JSON.parse(localStorage.getItem("monthDataLong"))),console.log(this.event,"cal eve",this.dateFormatLanguage);const e=document.querySelector(".calendar"),t=document.querySelector(".light");e.clientY=this.event.clientY,t.right=this.event.clientX+"px";const o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=[];let i=this.startYear;const n=this.endYear;for(;i<=n;)a.push(i++);const l=e.querySelector(".month-list");a.forEach((e,t)=>{const o=document.createElement("div");o.innerHTML=`<div data-month="${t}" id="year${t}" class="idd${e}">${e}</div>`;let a=(new Date).getFullYear();a+=1,e===a&&(document.getElementById("year"+(t-1)).classList.add("theme-background"),document.getElementById("year"+(t-1)).style.color="white"),o.querySelector("div").onclick=()=>{l.classList.remove("show"),c.value=e,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value)},l.appendChild(o)});e.querySelector("#year").onclick=()=>{l.classList.add("show"),document.querySelector(".selected-curr-year")?.classList?.remove("selected-curr-year");let e=document.querySelector(".idd"+this.selectedYear);e.classList.add("selected-curr-year"),e.scrollIntoView({behavior:"smooth",block:"start"})};let r="";if(""===this.preValue)r=new Date;else{const e=this.preValue.split("-");r=new Date(e[2],e[1]-1,e[0])}const s={value:r.getMonth()},c={value:r.getFullYear()};this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value);const m=document.querySelector(".calendar");340===m.offsetHeight||(m.style.marginTop="0px"),document.querySelector("#prev-year").onclick=()=>{"January"===o[s.value]?(s.value=11,--c.value):--s.value,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value);const e=document.querySelector(".calendar");340===e.offsetHeight||(e.style.marginTop="0")},document.querySelector("#next-year").onclick=()=>{const e=document.querySelector(".calendar");"December"===o[s.value]?(s.value=0,++c.value):++s.value,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value),340===e.offsetHeight||(e.style.marginTop="0")};document.querySelectorAll(".disable-weekend").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault()})})},methods:{async translateStaticDataDays(e,t){const o=Object.keys(e).map(t=>e[t]),a=await this.languageTransferArray(o,t),i=Object.keys(e).reduce((e,t,o)=>(e[t]=a[o],e),{});return console.log("poiuytrewq:",i),i},log(e){try{console.log(e?.target?.innerHTML??null,"inner html"),""!==e.target.innerHTML&&e.target.innerHTML.length<=2&&(e.target.innerHTML.length<2?this.selectedDay=0+e.target.innerHTML:this.selectedDay=e.target.innerHTML,this.selectedDate=this.selectedDay+"-"+(this.selectedMonth+1<10?"0"+String(this.selectedMonth+1):this.selectedMonth+1)+"-"+this.selectedYear,this.$emit("selectedDate",this.selectedDate))}catch(e){console.error("ui kit calendar:: ",e),this.$emit("selectedDate",null)}},isLeapYear:e=>e%4==0&&e%100!=0&&e%400!=0||e%100==0&&e%400==0,getFebDays(e){return this.isLeapYear(e)?29:28},generateCalendar(e,t){console.log(e,t,"jui");const o=document.querySelector(".calendar"),a=o.querySelector(".calendar-days"),i=o.querySelector("#year"),n=[31,this.getFebDays(t),31,30,31,30,31,31,30,31,30,31];a.innerHTML="";let l="";if(""===this.preValue)l=new Date;else{const e=this.preValue.split("-");l=new Date(e[2],e[1]-1,e[0])}t||(t=l.getFullYear());const r=`${this.monthNames[e]}`;o.querySelector("#month-picker").innerHTML=r,i.innerHTML=t;const s=new Date(t,e,1);for(let o=0;o<=n[e]+s.getDay()-1;o++){const i=document.createElement("div");if(o>=s.getDay()){i.classList.add("calendar-day-hover");const a=o-s.getDay()+1;if(a>0&&a<=n[e]){const o=`${a}-${e+1}-${t}`;i.classList.add(o),console.log("fkoko",o),i.id="calender-day",this.holidayList.includes(o)&&(i.classList.remove("calendar-day-hover"),i.classList.add("disable-weekend")),i.innerHTML=a,a===l.getDate()&&t===l.getFullYear()&&e===l.getMonth()&&i.classList.add("curr-date")}}a.appendChild(i)}if(!0===this.disableWeekend){const e=document.querySelector(".calendar-days").children,t=[0,6,7,13,14,20,21,27,28,34,35];for(const o in t)e[t[o]]&&""!==e[t[o]].innerHTML&&(e[t[o]].classList.remove("calendar-day-hover"),e[t[o]].classList.add("disable-weekend"))}}}};const U={class:"light"},K={class:"calendar"},G={class:"calendar-body"},H={class:"calendar-week-day"};F.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("div",U,[t.createElementVNode("div",K,[o[1]||(o[1]=t.createStaticVNode('<div class="calendar-header"><div class="year-picker"><span id="prev-year" class="year-change"><p style="margin:0px;"><i class="icon-angle-left-regular"></i></p></span><span><span id="month-picker" class="month-picker">February</span><span id="year">2021</span></span><span id="next-year" class="year-change"><p style="margin:0px;"><i class="icon-angle-right-regular"></i></p></span></div></div>',1)),t.createElementVNode("div",G,[t.createElementVNode("div",H,[t.createElementVNode("div",null,[t.createCommentVNode(" SUN "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.sun),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" MON "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.mon),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" TUE "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.tue),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" WED "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.wed),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" THU "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.thu),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" FRI "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.fri),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" SAT "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.sat),1)])]),t.createElementVNode("div",{class:"calendar-days",onClick:o[0]||(o[0]=(...e)=>l.log&&l.log(...e))})]),t.createCommentVNode(' <div class="calendar-footer">\r\n\r\n </div> '),o[2]||(o[2]=t.createElementVNode("div",{class:"month-list"},null,-1))])])},F.__file="src/components/CalendarComponent.vue";var W={name:"HlxCard",components:{},props:{cardTitle:{type:Boolean,default:!1},cardFooter:{type:Boolean,default:!1},width:{type:Number,default:null},hover:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},padding:{type:Boolean,default:!1},active:{type:Boolean,default:!1},height:{type:Number,default:null}},computed:{headerHeight(){return this.cardTitle?60:0},footerHeight(){return this.cardFooter?60:0}},mounted(){}};const J={key:0,class:"card-title"},Z={key:1,class:"card-footer"};W.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["card",{cardhover:a.hover,cardshadow:a.shadow,padding:a.padding,cardActive:a.active}]),style:t.normalizeStyle("width:"+a.width+"px; height:"+a.height+"px;")},[1==a.cardTitle?(t.openBlock(),t.createElementBlock("div",J,[t.createElementVNode("header",null,[t.renderSlot(e.$slots,"card-title",{},()=>[o[0]||(o[0]=t.createTextVNode("Card title",-1))])])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{class:"card-body",style:t.normalizeStyle(a.cardTitle&&a.cardFooter?{height:a.height-l.headerHeight-l.footerHeight+"px"}:{height:"100%"})},[t.createCommentVNode(" {{this.card_body}} "),t.createElementVNode("main",null,[t.renderSlot(e.$slots,"card-body",{},()=>[o[1]||(o[1]=t.createTextVNode("Card body",-1))])])],4),1==a.cardFooter?(t.openBlock(),t.createElementBlock("div",Z,[t.createCommentVNode(" {{this.cardFooter}} "),t.createElementVNode("footer",null,[t.renderSlot(e.$slots,"card-footer",{},()=>[o[2]||(o[2]=t.createTextVNode("Card footer",-1))])])])):t.createCommentVNode("v-if",!0)],6)},W.__file="src/components/CardsComponent.vue";var Y={name:"HlxOverlay",props:{show:{type:Boolean,default:!1},height:{type:Number,default:0},top:{type:Number,default:0},width:{type:Number,default:0},left:{type:Number,default:0},conditionvalue:{type:Number,default:0},conditionup:{type:Number,default:0},conditiondown:{type:Number,default:0},search:{type:String,default:""}},emits:["close-overlay"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5),containertop:0,containerwidth:0,containerleft:0,containerheight:0}),watch:{search:{handler(e){1==this.show?this.$nextTick(()=>{this.containerheight=document.querySelector("#container-overlay"+this.unique).offsetHeight,this.containertop=this.top,this.containerleft=this.left,this.containerwidth=this.width,window.innerHeight-this.containertop<this.conditionvalue?this.containertop=this.containertop-(this.containerheight+this.conditionup):this.containertop=this.containertop+this.conditiondown}):(this.containertop=0,this.containerleft=0,this.containerwidth=0,this.containerheight=0)}},show:{handler(e){1==e?this.$nextTick(()=>{this.containerheight=document.querySelector("#container-overlay"+this.unique).offsetHeight,this.containertop=this.top,this.containerleft=this.left,this.containerwidth=this.width,window.innerHeight-this.containertop<this.conditionvalue?this.containertop=this.containertop-(this.containerheight+this.conditionup):this.containertop=this.containertop+this.conditiondown}):(this.containertop=0,this.containerleft=0,this.containerwidth=0,this.containerheight=0)}},top:{handler(e){this.containertop=e,1==this.show?this.$nextTick(()=>{this.containerheight=document.querySelector("#container-overlay"+this.unique).offsetHeight,this.containertop=this.top,this.containerleft=this.left,this.containerwidth=this.width,window.innerHeight-this.containertop<this.conditionvalue?this.containertop=this.containertop-(this.containerheight+this.conditionup):this.containertop=this.containertop+this.conditiondown}):(this.containertop=0,this.containerleft=0,this.containerwidth=0,this.containerheight=0)},immediate:!0,deep:!0},left:{handler(e){this.containerleft=e},immediate:!0,deep:!0},width:{handler(e){this.containerwidth=e},immediate:!0,deep:!0}},methods:{emitfunction(e){console.log(e),this.$emit("close-overlay",e)}}};const X=["id"];Y.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("div",{class:"outer-overlay",onClick:o[0]||(o[0]=(...e)=>l.emitfunction&&l.emitfunction(...e))},[t.createElementVNode("div",{id:"container-overlay"+n.unique,class:"container-overlay",style:t.normalizeStyle([{position:"fixed"},["width:"+a.width+"px","top:"+n.containertop+"px","left:"+a.left+"px"]])},[t.renderSlot(e.$slots,"overlay")],12,X)])},Y.__file="src/components/OverlayComponent.vue";var Q={name:"HlxColorPalette",components:{hlxOverlay:Y},props:{preValue:{type:String,default:"#000000"},highlightColor:{type:Boolean,default:!1}},emits:["customChange"],data:()=>({containerleft:0,containertop:0,unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5),colorcontainer:!1,fill_color:!0,colorvalue:"#000000",recent:!1,recentvalue:"",recentcolor:[],colordata:[{"#ffffff":["#f2f2f2","#d9d9d9","#bfbfbf","#a6a6a6","#808080"]},{"#000000":["#808080","#595959","#404040","#262626","#0d0d0d"]},{"#e7e6e6":["#d0cece","#aeaaaa","#757171","#3a3838","#161616"]},{"#44546a":["#d6dce4","#acb9ca","#8497b0","#333f4f","#222b35"]},{"#4472c4":["#d9e1f2","#b4c6e7","#8ea9db","#305496","#203764"]},{"#ed7d31":["#fce4d6","#f8cbad","#f4b084","#c65911","#833c0c"]},{"#a5a5a5":["#ededed","#dbdbdb","#c9c9c9","#7b7b7b","#525252"]},{"#ffc000":["#fff2cc","#ffe699","#ffd966","#bf8f00","#806000"]},{"#5b9bd5":["#ddebf7","#bdd7ee","#9bc2e6","#2f75b5","#1f4e78"]},{"#70ad47":["#e2efda","#c6e0b4","#a9d08e","#548235","#375623"]}],standardcolor:["#c00000","#ff0000","#ffc000","#ffff00","#92d050","#00b050","#00b0f0","#0070c0","#002060","#7030a0"],colorpick:""}),watch:{preValue:{handler(e){""!=e&&(this.colorvalue=e,this.$emit("customChange",this.colorvalue))},immediate:!0,deep:!0}},mounted(){!0===this.highlightColor?this.fill_color=!1:this.fill_color=!0;for(let e=0;e<this.colordata.length;e++)for(let t=0;t<Object.values(this.colordata[e])[0].length;t++);document.addEventListener("click",e=>{"color-container"!=e.target.className&&"color-container-title"!=e.target.className&&"color-container-specific-color-checkbox-border"!=e.target.className&&"color-container-specific-color-checkbox-border-fill-color"!=e.target.className&&"color-container-specific-color"!=e.target.className&&"color-container-specific-color1"!=e.target.className&&"color-container-specific-color2"!=e.target.className&&"color-container-specific-color1-container"!=e.target.className&&"color-container2323"!=e.target.className&&"favcolor"!=e.target.className&&"color-palette-container"!=e.target.className&&"color-palette-icon"!=e.target.className&&"icon-color-fill"!=e.target.className&&"color-icon-border"!=e.target.className&&"color-palette-open-icon"!=e.target.className&&"icon-angle-down-regular"!=e.target.className&&(this.colorcontainer=!1)})},methods:{getcolorvalue(e){this.recent=!0,this.colorvalue=e.target.value,this.$emit("customChange",this.colorvalue),1!=this.recentcolor.includes(this.colorvalue)&&(document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),this.recentvalue=this.colorvalue,this.recentcolor.push(this.colorvalue))},getcolor(e){document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),"color-container-specific-color-checkbox-border-fill-color"===e.target.className?(this.colorvalue=e.target.style.background,this.$emit("customChange",this.colorvalue),e.target.parentElement.classList.add("add-border"),this.colorcontainer=!1):"color-container-specific-color-checkbox-border"===e.target.className&&(this.colorvalue=e.target.children[0].style.background,this.$emit("customChange",this.colorvalue),e.target.classList.add("add-border"),this.colorcontainer=!1),this.recent=!0,1!=this.recentcolor.includes(this.colorvalue)&&(document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),this.recentvalue=this.colorvalue,this.recentcolor.push(this.colorvalue))},colorpalette(){this.$nextTick(()=>{this.containerleft=document.getElementById("color-palette-open-icon"+this.unique).getBoundingClientRect().left+5,this.containertop=document.getElementById("color-palette-open-icon"+this.unique).getBoundingClientRect().top+50}),console.log(this.containerleft,"left",this.containertop,"top"),!1===this.colorcontainer?this.colorcontainer=!0:!0===this.colorcontainer&&(this.colorcontainer=!1)},colorpicker(){this.colorpick=!0}}};const ee={class:"color-palette-container"},te={class:"color-palette-icon"},oe={key:0,class:"icon-palette-regular"},ae={key:1,class:"highlight-container"},ie={key:0,class:"highlight-icon"},ne=["id"],le=["id"],re={class:"color-container-specific-color"},se={class:"color-container-specific-color1"},ce={class:"color-container-specific-color"},me={class:"color-container2323"},de=["value"],ue={key:0,class:"color-container-title"},fe={class:"color-container-specific-color2"};Q.render=function(e,o,a,i,n,l){const r=t.resolveComponent("hlx-overlay");return t.openBlock(),t.createElementBlock("div",ee,[t.createElementVNode("div",te,[1==n.fill_color?(t.openBlock(),t.createElementBlock("i",oe)):t.createCommentVNode("v-if",!0),!0===a.highlightColor?(t.openBlock(),t.createElementBlock("div",ae,[!0===a.highlightColor?(t.openBlock(),t.createElementBlock("p",ie,"A")):t.createCommentVNode("v-if",!0),t.createCommentVNode(' <div class="higlight-icon-border" v-if="this.highlightColor === true"></div> ')])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{class:"color-icon-border",style:t.normalizeStyle({background:n.colorvalue})},null,4)]),t.createElementVNode("button",{id:"color-palette-open-icon"+n.unique,"aria-dis":"",class:"color-palette-open-icon",onClick:o[0]||(o[0]=(...e)=>l.colorpalette&&l.colorpalette(...e))},[...o[7]||(o[7]=[t.createElementVNode("i",{class:"icon-angle-down-regular"},null,-1)])],8,ne),n.colorcontainer?(t.openBlock(),t.createBlock(r,{key:0,show:n.colorcontainer,top:n.containertop,left:n.containerleft,width:100,conditionvalue:150,conditionup:55,onCloseOverlay:e.onClose},{overlay:t.withCtx(()=>[t.createElementVNode("button",{id:"color-container"+n.unique,class:"color-container"},[o[8]||(o[8]=t.createElementVNode("p",{class:"color-container-title"},"Theme Colors",-1)),t.createElementVNode("button",re,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.colordata,(e,a)=>(t.openBlock(),t.createElementBlock("button",{key:a,class:"color-container-specific-color-checkbox-border",onClick:o[1]||(o[1]=(...e)=>l.getcolor&&l.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:Object.keys(n.colordata[a])[0]})},null,4)]))),128))]),t.createElementVNode("button",se,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.colordata,(e,a)=>(t.openBlock(),t.createElementBlock("button",{key:a,class:"color-container-specific-color1-container",onClick:o[2]||(o[2]=(...e)=>l.getcolor&&l.getcolor(...e))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.values(n.colordata[a])[0].length,(e,o)=>(t.openBlock(),t.createElementBlock("button",{key:o,class:"color-container-specific-color-checkbox-border"},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:Object.values(n.colordata[a])[0][o]})},null,4)]))),128))]))),128))]),o[9]||(o[9]=t.createElementVNode("p",{class:"color-container-title"},"Standard Colors",-1)),t.createElementVNode("button",ce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.standardcolor,(e,a)=>(t.openBlock(),t.createElementBlock("button",{key:a,class:"color-container-specific-color-checkbox-border",onClick:o[3]||(o[3]=(...e)=>l.getcolor&&l.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:n.standardcolor[a]})},null,4)]))),128))]),t.createElementVNode("button",me,[t.createElementVNode("input",{id:"favcolor",type:"color",name:"favcolor",value:n.recentvalue,class:"favcolor",onChange:o[4]||(o[4]=(...e)=>l.getcolorvalue&&l.getcolorvalue(...e))},null,40,de),t.createElementVNode("p",{class:"color-container-title",onClick:o[5]||(o[5]=(...e)=>l.colorpicker&&l.colorpicker(...e))}," More Colors ")]),!0===n.recent?(t.openBlock(),t.createElementBlock("p",ue," Recent color ")):t.createCommentVNode("v-if",!0),t.createElementVNode("button",fe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.recentcolor,(e,a)=>(t.openBlock(),t.createElementBlock("button",{key:a,class:"color-container-specific-color-checkbox-border",onClick:o[6]||(o[6]=(...e)=>l.getcolor&&l.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:n.recentcolor[a]})},null,4)]))),128))])],8,le)]),_:1},8,["show","top","left","onCloseOverlay"])):t.createCommentVNode("v-if",!0)])},Q.__file="src/components/ColorpaletteComponent.vue";var pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function he(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ge={exports:{}};!function(e){var t,o,a;t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],o="undefined"!=typeof window,a=o&&null!=window.mozInnerScreenX,e.exports=function(e,i,n){if(!o)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var l=n&&n.debug||!1;if(l){var r=document.querySelector("#input-textarea-caret-position-mirror-div");r&&r.parentNode.removeChild(r)}var s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);var c=s.style,m=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,d="INPUT"===e.nodeName;c.whiteSpace="pre-wrap",d||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),t.forEach(function(e){d&&"lineHeight"===e?c.lineHeight=m.height:c[e]=m[e]}),a?e.scrollHeight>parseInt(m.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,i),d&&(s.textContent=s.textContent.replace(/\s/g," "));var u=document.createElement("span");u.textContent=e.value.substring(i)||".",s.appendChild(u);var f={top:u.offsetTop+parseInt(m.borderTopWidth),left:u.offsetLeft+parseInt(m.borderLeftWidth),height:parseInt(m.lineHeight)};return l?u.style.backgroundColor="#aaa":document.body.removeChild(s),f}}(ge);var ye=he(ge.exports);function ve(){return ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},ve.apply(this,arguments)}var be,ke="undefined"!=typeof window&&navigator&&/Win/i.test(navigator.platform),_e="undefined"!=typeof window&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),we=t.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(e){this.codeData=e||""}},content:{immediate:!0,handler:function(){var e=this;this.lineNumbers&&this.$nextTick(function(){e.setLineNumbersHeight()})}},lineNumbers:function(){var e=this;this.$nextTick(function(){e.styleLineNumbers(),e.setLineNumbersHeight()})}},computed:{isEmpty:function(){return 0===this.codeData.length},content:function(){return this.highlight(this.codeData)+"<br />"},lineNumbersCount:function(){return this.codeData.split(/\r\n|\n/).length}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(this.lineNumbers&&this.autoStyleLineNumbers){var e=this.$refs.pre,t=this.$el.querySelector(".prism-editor__line-numbers"),o=window.getComputedStyle(e);this.$nextTick(function(){var a="border-top-left-radius",i="border-bottom-left-radius";if(t){t.style[a]=o[a],t.style[i]=o[i],e.style[a]="0",e.style[i]="0";["background-color","margin-top","padding-top","font-family","font-size","line-height"].forEach(function(e){t.style[e]=o[e]}),t.style["margin-bottom"]="-"+o["padding-top"]}})}},_recordCurrentState:function(){var e=this.$refs.textarea;if(e){var t=e.value,o=e.selectionStart,a=e.selectionEnd;this._recordChange({value:t,selectionStart:o,selectionEnd:a})}},_getLines:function(e,t){return e.substring(0,t).split("\n")},_applyEdits:function(e){var t=this.$refs.textarea,o=this.history.stack[this.history.offset];o&&t&&(this.history.stack[this.history.offset]=ve({},o,{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})),this._recordChange(e),this._updateInput(e)},_recordChange:function(e,t){void 0===t&&(t=!1);var o=this.history,a=o.stack,i=o.offset;if(a.length&&i>-1){this.history.stack=a.slice(0,i+1);var n=this.history.stack.length;if(n>100){var l=n-100;this.history.stack=a.slice(l,n),this.history.offset=Math.max(this.history.offset-l,0)}}var r=Date.now();if(t){var s=this.history.stack[this.history.offset];if(s&&r-s.timestamp<3e3){var c,m,d=/[^a-z0-9]([a-z0-9]+)$/i,u=null===(c=this._getLines(s.value,s.selectionStart).pop())||void 0===c?void 0:c.match(d),f=null===(m=this._getLines(e.value,e.selectionStart).pop())||void 0===m?void 0:m.match(d);if(u&&f&&f[1].startsWith(u[1]))return void(this.history.stack[this.history.offset]=ve({},e,{timestamp:r}))}}this.history.stack.push(ve({},e,{timestamp:r})),this.history.offset++},_updateInput:function(e){var t=this.$refs.textarea;t&&(t.value=e.value,t.selectionStart=e.selectionStart,t.selectionEnd=e.selectionEnd,this.$emit("update:modelValue",e.value))},handleChange:function(e){var t=e.target,o=t.value,a=t.selectionStart,i=t.selectionEnd;this._recordChange({value:o,selectionStart:a,selectionEnd:i},!0),this.$emit("update:modelValue",o)},_undoEdit:function(){var e=this.history,t=e.stack,o=e.offset,a=t[o-1];a&&(this._updateInput(a),this.history.offset=Math.max(o-1,0))},_redoEdit:function(){var e=this.history,t=e.stack,o=e.offset,a=t[o+1];a&&(this._updateInput(a),this.history.offset=Math.min(o+1,t.length-1))},handleKeyDown:function(e){var t=this.tabSize,o=this.insertSpaces,a=this.ignoreTabKey;if(this.$emit("keydown",e),!e.defaultPrevented){27===e.keyCode&&(e.target.blur(),this.$emit("blur",e));var i=e.target,n=i.value,l=i.selectionStart,r=i.selectionEnd,s=(o?" ":"\t").repeat(t);if(9===e.keyCode&&!a&&this.capture)if(e.preventDefault(),e.shiftKey){var c=this._getLines(n,l),m=c.length-1,d=this._getLines(n,r).length-1,u=n.split("\n").map(function(e,t){return t>=m&&t<=d&&e.startsWith(s)?e.substring(s.length):e}).join("\n");if(n!==u){var f=c[m];this._applyEdits({value:u,selectionStart:f.startsWith(s)?l-s.length:l,selectionEnd:r-(n.length-u.length)})}}else if(l!==r){var p=this._getLines(n,l),h=p.length-1,g=this._getLines(n,r).length-1,y=p[h];this._applyEdits({value:n.split("\n").map(function(e,t){return t>=h&&t<=g?s+e:e}).join("\n"),selectionStart:/\S/.test(y)?l+s.length:l,selectionEnd:r+s.length*(g-h+1)})}else{var v=l+s.length;this._applyEdits({value:n.substring(0,l)+s+n.substring(r),selectionStart:v,selectionEnd:v})}else if(8===e.keyCode){var b=l!==r;if(n.substring(0,l).endsWith(s)&&!b){e.preventDefault();var k=l-s.length;this._applyEdits({value:n.substring(0,l-s.length)+n.substring(r),selectionStart:k,selectionEnd:k})}}else if(13===e.keyCode){if(l===r){var _=this._getLines(n,l).pop(),w=null==_?void 0:_.match(/^\s+/);if(w&&w[0]){e.preventDefault();var C="\n"+w[0],S=l+C.length;this._applyEdits({value:n.substring(0,l)+C+n.substring(r),selectionStart:S,selectionEnd:S})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),l!==r&&E&&(e.preventDefault(),this._applyEdits({value:n.substring(0,l)+E[0]+n.substring(l,r)+E[1]+n.substring(r),selectionStart:l,selectionEnd:r+2}))}else!(_e?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(_e?e.metaKey&&90===e.keyCode&&e.shiftKey:ke?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),this._redoEdit()):77!==e.keyCode||!e.ctrlKey||_e&&!e.shiftKey||(e.preventDefault(),this.capture=!this.capture):(e.preventDefault(),this._undoEdit())}}},render:function(){var e=this,o=t.h("div",{class:"prism-editor__line-width-calc",style:"height: 0px; visibility: hidden; pointer-events: none;"},"999"),a=t.h("div",{class:"prism-editor__line-numbers",style:{"min-height":this.lineNumbersHeight},"aria-hidden":"true"},[o,Array.from(Array(this.lineNumbersCount).keys()).map(function(e,o){return t.h("div",{class:"prism-editor__line-number token comment"},""+ ++o)})]),i=t.h("textarea",{ref:"textarea",onInput:this.handleChange,onKeydown:this.handleKeyDown,onClick:function(t){e.$emit("click",t)},onKeyup:function(t){e.$emit("keyup",t)},onFocus:function(t){e.$emit("focus",t)},onBlur:function(t){e.$emit("blur",t)},class:{"prism-editor__textarea":!0,"prism-editor__textarea--empty":this.isEmpty},spellCheck:"false",autocapitalize:"off",autocomplete:"off",autocorrect:"off","data-gramm":"false",placeholder:this.placeholder,"data-testid":"textarea",readonly:this.readonly,value:this.codeData}),n=t.h("pre",{ref:"pre",class:"prism-editor__editor","data-testid":"preview",innerHTML:this.content}),l=t.h("div",{class:"prism-editor__container"},[i,n]);return t.h("div",{class:"prism-editor-wrapper"},[this.lineNumbers&&a,l])}}),Ce={exports:{}},Se={},Ee={exports:{}},Ne={},xe={};function Be(){if(be)return xe;function e(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function t(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function o(o,a){this.__indent_cache=new t(o,a),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return be=1,e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},e.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},e.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},e.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},t.prototype.get_indent_size=function(e,t){var o=this.__base_string_length;return t=t||0,e<0&&(o=0),o+=e*this.__indent_size,o+=t},t.prototype.get_indent_string=function(e,t){var o=this.__base_string;return t=t||0,e<0&&(e=0,o=""),t+=e*this.__indent_size,this.__ensure_cache(t),o+=this.__cache[t]},t.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var e=this.__cache.length,t=0,o="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,o=new Array(t+1).join(this.__indent_string)),e&&(o+=new Array(e+1).join(" ")),this.__cache.push(o)},o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},o.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join("\n");return"\n"!==e&&(o=o.replace(/[\n]/g,e)),o},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},o.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},o.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},o.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},o.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(t,o){for(var a=this.__lines.length-2;a>=0;){var i=this.__lines[a];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==o){this.__lines.splice(a+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}a--}},xe.Output=o,xe}var Ve,Ae={};function Re(){if(Ve)return Ae;return Ve=1,Ae.Token=function(e,t,o,a){this.type=e,this.text=t,this.comments_before=null,this.newlines=o||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null},Ae}var Me,Ie={};function Te(){return Me||(Me=1,function(e){var t="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",i="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",n="(?:"+i+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+o+"])",l="(?:"+i+"|["+t+o+a+"])*";e.identifier=new RegExp(n+l,"g"),e.identifierStart=new RegExp(n),e.identifierMatch=new RegExp("(?:"+i+"|["+t+o+a+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(Ie)),Ie}var $e,De,ze={},Oe={};function qe(){if($e)return Oe;function e(e,o){this.raw_options=t(e,o),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function t(e,t){var a,i={};for(a in e=o(e))a!==t&&(i[a]=e[a]);if(t&&e[t])for(a in e[t])i[a]=e[t][a];return i}function o(e){var t,o={};for(t in e){o[t.replace(/-/g,"_")]=e[t]}return o}return $e=1,e.prototype._get_array=function(e,t){var o=this.raw_options[e],a=t||[];return"object"==typeof o?null!==o&&"function"==typeof o.concat&&(a=o.concat()):"string"==typeof o&&(a=o.split(/[^a-zA-Z0-9_\/\-]+/)),a},e.prototype._get_boolean=function(e,t){var o=this.raw_options[e];return void 0===o?!!t:!!o},e.prototype._get_characters=function(e,t){var o=this.raw_options[e],a=t||"";return"string"==typeof o&&(a=o.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),a},e.prototype._get_number=function(e,t){var o=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var a=parseInt(o,10);return isNaN(a)&&(a=t),a},e.prototype._get_selection=function(e,t,o){var a=this._get_selection_list(e,t,o);if(1!==a.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return a[0]},e.prototype._get_selection_list=function(e,t,o){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(o=o||[t[0]],!this._is_valid_selection(o,t))throw new Error("Invalid Default Value!");var a=this._get_array(e,o);if(!this._is_valid_selection(a,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return a},e.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return-1===t.indexOf(e)})},Oe.Options=e,Oe.normalizeOpts=o,Oe.mergeOpts=t,Oe}function Pe(){if(De)return ze;De=1;var e=qe().Options,t=["before-newline","after-newline","preserve-newline"];function o(o){e.call(this,o,"js");var a=this.raw_options.brace_style||null;"expand-strict"===a?this.raw_options.brace_style="expand":"collapse-preserve-inline"===a?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var n=0;n<i.length;n++)"preserve-inline"===i[n]?this.brace_preserve_inline=!0:this.brace_style=i[n];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return o.prototype=new e,ze.Options=o,ze}var Le,je={},Fe={};function Ue(){if(Le)return Fe;Le=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},t.prototype.__match=function(t,o){t.lastIndex=o;var a=t.exec(this.__input);return!a||e&&t.sticky||a.index!==o&&(a=null),a},t.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},t.prototype.testChar=function(e,t){var o=this.peek(t);return e.lastIndex=0,null!==o&&e.test(o)},t.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},t.prototype.read=function(e,t,o){var a,i="";return e&&(a=this.match(e))&&(i+=a[0]),!t||!a&&e||(i+=this.readUntil(t,o)),i},t.prototype.readUntil=function(e,t){var o,a=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(a=i.index,t&&(a+=i[0].length)):a=this.__input_length,o=this.__input.substring(this.__position,a),this.__position=a,o},t.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},t.prototype.get_regexp=function(t,o){var a=null,i="g";return o&&e&&(i="y"),"string"==typeof t&&""!==t?a=new RegExp(t,i):t&&(a=new RegExp(t.source,i)),a},t.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(e){var t=this.__position,o=this.readUntilAfter(e);return this.__position=t,o},t.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},Fe.InputScanner=t,Fe}var Ke,Ge={},He={};var We,Je,Ze,Ye={},Xe={};function Qe(){if(We)return Xe;function e(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}return We=1,e.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},Xe.Pattern=e,Xe}function et(){if(Ze)return Ge;Ze=1;var e=Ue().InputScanner,t=Re().Token,o=function(){if(Ke)return He;function e(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return Ke=1,e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},e.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},e.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},He.TokenStream=e,He}().TokenStream,a=function(){if(Je)return Ye;Je=1;var e=Qe().Pattern;function t(t,o){e.call(this,t,o),o?this._line_regexp=this._input.get_regexp(o._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return t.prototype=new e,t.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},t.prototype.matching=function(e,t){var o=this._create();return o.__set_whitespace_patterns(e,t),o._update(),o},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(e,t){e.lastIndex=0;for(var o=0,a=[],i=e.exec(t);i;)a.push(t.substring(o,i.index)),o=i.index+i[0].length,i=e.exec(t);return o<t.length?a.push(t.substring(o,t.length)):a.push(""),a},Ye.WhitespacePattern=t,Ye}().WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},n=function(t,o){this._input=new e(t),this._options=o||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};return n.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new o,this._reset();for(var a=new t(i.START,""),n=null,l=[],r=new o;a.type!==i.EOF;){for(e=this._get_next_token(a,n);this._is_comment(e);)r.add(e),e=this._get_next_token(a,n);r.isEmpty()||(e.comments_before=r,r=new o),e.parent=n,this._is_opening(e)?(l.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=l.pop(),e.parent=n),e.previous=a,a.next=e,this.__tokens.add(e),a=e}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(e,t){this._readWhitespace();var o=this._input.read(/.+/g);return o?this._create_token(i.RAW,o):this._create_token(i.EOF,"")},n.prototype._is_comment=function(e){return!1},n.prototype._is_opening=function(e){return!1},n.prototype._is_closing=function(e,t){return!1},n.prototype._create_token=function(e,o){return new t(e,o,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Ge.Tokenizer=n,Ge.TOKEN=i,Ge}var tt,ot={};function at(){if(tt)return ot;function e(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}return tt=1,e.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(e);o;)t[o[1]]=o[2],o=this.__directive_pattern.exec(e);return t},e.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},ot.Directives=e,ot}var it,nt,lt,rt,st={};function ct(){if(it)return st;it=1;var e=Qe().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function o(o,a){e.call(this,o,a),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),a&&(this.__template_pattern=this._input.get_regexp(a.__template_pattern),this._excluded=Object.assign(this._excluded,a._excluded),this._disabled=Object.assign(this._disabled,a._disabled));var i=new e(o);this.__patterns={handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:i.starting_with(/{{{/).until_after(/}}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),php:i.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/),smarty:i.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:i.starting_with(/{\*/).until_after(/\*}/),smarty_literal:i.starting_with(/{literal}/).until_after(/{\/literal}/)}}return o.prototype=new e,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},o.prototype.read_options=function(e){var o=this._create();for(var a in t)o._disabled[a]=-1===e.templating.indexOf(a);return o._update(),o},o.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},o.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},o.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},o.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var o=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==o||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==o||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},st.TemplatablePattern=o,st}function mt(){if(nt)return je;nt=1;var e=Ue().InputScanner,t=et().Tokenizer,o=et().TOKEN,a=at().Directives,i=Te(),n=Qe().Pattern,l=ct().TemplatablePattern;function r(e,t){return-1!==t.indexOf(e)}var s={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},c=new a(/\/\*/,/\*\//),m=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,d=/[0-9]/,u=/[^\d\.]/,f=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),p=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";p=(p="\\?\\.(?!\\d) "+(p=p.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var h,g=new RegExp(p),y="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),v=y.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),b=new RegExp("^(?:"+v.join("|")+")$"),k=function(e,o){t.call(this,e,o),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var a=new n(this._input),r=new l(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(i.identifier).matching(i.identifierMatch),number:a.matching(m),punct:a.matching(g),comment:a.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:a.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:a.matching(/<!--/),html_comment_end:a.matching(/-->/),include:a.starting_with(/#include/).until_after(i.lineBreak),shebang:a.starting_with(/#!/).until_after(i.lineBreak),xml:a.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}};return(k.prototype=new t)._is_comment=function(e){return e.type===s.COMMENT||e.type===s.BLOCK_COMMENT||e.type===s.UNKNOWN},k.prototype._is_opening=function(e){return e.type===s.START_BLOCK||e.type===s.START_EXPR},k.prototype._is_closing=function(e,t){return(e.type===s.END_BLOCK||e.type===s.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},k.prototype._reset=function(){h=!1},k.prototype._get_next_token=function(e,t){var o=null;this._readWhitespace();var a=this._input.peek();return null===a?this._create_token(s.EOF,""):o=(o=(o=(o=(o=(o=(o=(o=(o=(o=o||this._read_non_javascript(a))||this._read_string(a))||this._read_pair(a,this._input.peek(1)))||this._read_word(e))||this._read_singles(a))||this._read_comment(a))||this._read_regexp(a,e))||this._read_xml(a,e))||this._read_punctuation())||this._create_token(s.UNKNOWN,this._input.next())},k.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(i.allLineBreaks,"\n"),e.type!==s.DOT&&(e.type!==s.RESERVED||"set"!==e.text&&"get"!==e.text)&&b.test(t)?"in"!==t&&"of"!==t||e.type!==s.WORD&&e.type!==s.STRING?this._create_token(s.RESERVED,t):this._create_token(s.OPERATOR,t):this._create_token(s.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(s.WORD,t):void 0},k.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(s.START_EXPR,e):")"===e||"]"===e?t=this._create_token(s.END_EXPR,e):"{"===e?t=this._create_token(s.START_BLOCK,e):"}"===e?t=this._create_token(s.END_BLOCK,e):";"===e?t=this._create_token(s.SEMICOLON,e):"."===e&&u.test(this._input.peek(1))?t=this._create_token(s.DOT,e):","===e&&(t=this._create_token(s.COMMA,e)),t&&this._input.next(),t},k.prototype._read_pair=function(e,t){var o=null;return"#"===e&&"{"===t&&(o=this._create_token(s.START_BLOCK,e+t)),o&&(this._input.next(),this._input.next()),o},k.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(s.EQUALS,e):"?."===e?this._create_token(s.DOT,e):this._create_token(s.OPERATOR,e)},k.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read()))return this._create_token(s.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read())return this._create_token(s.UNKNOWN,t.trim()+"\n");e=this._input.next();var o="#";if(this._input.hasNext()&&this._input.testChar(d)){do{o+=e=this._input.next()}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(o+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(o+="{}",this._input.next(),this._input.next())),this._create_token(s.WORD,o)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)t+=this._input.next();return h=!0,this._create_token(s.COMMENT,t)}}else if(h&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return h=!1,this._create_token(s.COMMENT,t);return null},k.prototype._read_comment=function(e){var t=null;if("/"===e){var o="";if("*"===this._input.peek(1)){o=this.__patterns.block_comment.read();var a=c.get_directives(o);a&&"start"===a.ignore&&(o+=c.readIgnored(this._input)),o=o.replace(i.allLineBreaks,"\n"),(t=this._create_token(s.BLOCK_COMMENT,o)).directives=a}else"/"===this._input.peek(1)&&(o=this.__patterns.comment.read(),t=this._create_token(s.COMMENT,o))}return t},k.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var o=this._input.next();return this.has_char_escapes=!1,o+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(o=function(t){var o="",a=0,i=new e(t),n=null;for(;i.hasNext();)if((n=i.match(/([\s]|[^\\]|\\\\)+/g))&&(o+=n[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())n=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){o+="\\",i.hasNext()&&(o+=i.next());continue}(n=i.match(/u([0-9A-Fa-f]{4})/g))||(n=i.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!n)return t;if((a=parseInt(n[1],16))>126&&a<=255&&0===n[0].indexOf("x"))return t;o+=a>=0&&a<32||a>1114111?"\\"+n[0]:34===a||39===a||92===a?"\\"+String.fromCharCode(a):String.fromCharCode(a)}return o}(o)),this._input.peek()===t&&(o+=this._input.next()),o=o.replace(i.allLineBreaks,"\n"),this._create_token(s.STRING,o)}return null},k.prototype._allow_regexp_or_xml=function(e){return e.type===s.RESERVED&&r(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===s.END_EXPR&&")"===e.text&&e.opened.previous.type===s.RESERVED&&r(e.opened.previous.text,["if","while","for"])||r(e.type,[s.COMMENT,s.START_EXPR,s.START_BLOCK,s.START,s.END_BLOCK,s.OPERATOR,s.EQUALS,s.EOF,s.SEMICOLON,s.COMMA])},k.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var o=this._input.next(),a=!1,n=!1;this._input.hasNext()&&(a||n||this._input.peek()!==e)&&!this._input.testChar(i.newline);)o+=this._input.peek(),a?a=!1:(a="\\"===this._input.peek(),"["===this._input.peek()?n=!0:"]"===this._input.peek()&&(n=!1)),this._input.next();return this._input.peek()===e&&(o+=this._input.next(),o+=this._input.read(i.identifier)),this._create_token(s.STRING,o)}return null},k.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var o="",a=this.__patterns.xml.read_match();if(a){for(var n=a[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),l=0===n.indexOf("{"),r=0;a;){var c=!!a[1],m=a[2];if(!(!!a[a.length-1]||"![CDATA["===m.slice(0,8))&&(m===n||l&&m.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(c?--r:++r),o+=a[0],r<=0)break;a=this.__patterns.xml.read_match()}return a||(o+=this._input.match(/[\s\S]*/g)[0]),o=o.replace(i.allLineBreaks,"\n"),this._create_token(s.STRING,o)}}return null},k.prototype._read_string_recursive=function(e,t,o){var a,n;"'"===e?n=this.__patterns.single_quote:'"'===e?n=this.__patterns.double_quote:"`"===e?n=this.__patterns.template_text:"}"===e&&(n=this.__patterns.template_expression);for(var l=n.read(),r="";this._input.hasNext();){if((r=this._input.next())===e||!t&&i.newline.test(r)){this._input.back();break}"\\"===r&&this._input.hasNext()?("x"===(a=this._input.peek())||"u"===a?this.has_char_escapes=!0:"\r"===a&&"\n"===this._input.peek(1)&&this._input.next(),r+=this._input.next()):o&&("${"===o&&"$"===r&&"{"===this._input.peek()&&(r+=this._input.next()),o===r&&(r+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(r+=this._input.next()))),l+=r+=n.read()}return l},je.Tokenizer=k,je.TOKEN=s,je.positionable_operators=f.slice(),je.line_starters=y.slice(),je}function dt(){if(lt)return Ne;lt=1;var e=Be().Output,t=Re().Token,o=Te(),a=Pe().Options,i=mt().Tokenizer,n=mt().line_starters,l=mt().positionable_operators,r=mt().TOKEN;function s(e,t){return-1!==t.indexOf(e)}function c(e){return e.replace(/^\s+/g,"")}function m(e,t){return e&&e.type===r.RESERVED&&e.text===t}function d(e,t){return e&&e.type===r.RESERVED&&s(e.text,t)}var u=["case","return","do","if","throw","else","await","break","continue","async"],f=function(e){for(var t={},o=0;o<e.length;o++)t[e[o].replace(/-/g,"_")]=e[o];return t}(["before-newline","after-newline","preserve-newline"]),p=[f.before_newline,f.preserve_newline],h="BlockStatement",g="Statement",y="ObjectLiteral",v="ArrayLiteral",b="ForInitializer",k="Conditional",_="Expression";function w(e,t){t.multiline_frame||t.mode===b||t.mode===k||e.remove_indent(t.start_line_index)}function C(e){return e===v}function S(e){return s(e,[_,b,k])}function E(e,t){t=t||{},this._source_text=e||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new a(t)}E.prototype.create_flags=function(e,o){var a=0;return e&&(a=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>a&&(a=e.line_indent_level)),{mode:o,parent:e,last_token:e?e.last_token:new t(r.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:a,alignment:0,line_indent_level:e?e.line_indent_level:a,start_line_index:this._output.get_line_number(),ternary_depth:0}},E.prototype._reset=function(t){var o=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,o),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(h);var a=new i(t,this._options);return this._tokens=a.tokenize(),t},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._reset(this._source_text),t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&o.lineBreak.test(e||"")&&(t=e.match(o.lineBreak)[0]));for(var a=this._tokens.next();a;)this.handle_token(a),this._last_last_text=this._flags.last_token.text,this._flags.last_token=a,a=this._tokens.next();return this._output.get_code(t)},E.prototype.handle_token=function(e,t){e.type===r.START_EXPR?this.handle_start_expr(e):e.type===r.END_EXPR?this.handle_end_expr(e):e.type===r.START_BLOCK?this.handle_start_block(e):e.type===r.END_BLOCK?this.handle_end_block(e):e.type===r.WORD||e.type===r.RESERVED?this.handle_word(e):e.type===r.SEMICOLON?this.handle_semicolon(e):e.type===r.STRING?this.handle_string(e):e.type===r.EQUALS?this.handle_equals(e):e.type===r.OPERATOR?this.handle_operator(e):e.type===r.COMMA?this.handle_comma(e):e.type===r.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===r.COMMENT?this.handle_comment(e,t):e.type===r.DOT?this.handle_dot(e):e.type===r.EOF?this.handle_eof(e):(e.type,r.UNKNOWN,this.handle_unknown(e,t))},E.prototype.handle_whitespace_and_comments=function(e,t){var o=e.newlines,a=this._options.keep_array_indentation&&C(this._flags.mode);if(e.comments_before)for(var i=e.comments_before.next();i;)this.handle_whitespace_and_comments(i,t),this.handle_token(i,t),i=e.comments_before.next();if(a)for(var n=0;n<o;n+=1)this.print_newline(n>0,t);else if(this._options.max_preserve_newlines&&o>this._options.max_preserve_newlines&&(o=this._options.max_preserve_newlines),this._options.preserve_newlines&&o>1){this.print_newline(!1,t);for(var l=1;l<o;l+=1)this.print_newline(!0,t)}};var N=["async","break","continue","return","throw","yield"];return E.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var o=this._options.preserve_newlines&&e.newlines||t;if(s(this._flags.last_token.text,l)||s(e.text,l)){var a=s(this._flags.last_token.text,l)&&s(this._options.operator_position,p)||s(e.text,l);o=o&&a}if(o)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(d(this._flags.last_token,N))return;this._output.set_wrap_point()}}},E.prototype.print_newline=function(e,t){if(!t&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==r.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var o=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&m(o,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},E.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||C(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},E.prototype.print_token=function(e){if(this._output.raw)this._output.add_raw_token(e);else{if(this._options.comma_first&&e.previous&&e.previous.type===r.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},E.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===g&&w(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.start_of_object_property=function(){return this._flags.parent.mode===y&&this._flags.mode===g&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"]))},E.prototype.start_of_statement=function(e){var t=!1;return!!(t=(t=(t=(t=(t=(t=(t=t||d(this._flags.last_token,["var","let","const"])&&e.type===r.WORD)||m(this._flags.last_token,"do"))||!(this._flags.parent.mode===y&&this._flags.mode===g)&&d(this._flags.last_token,N)&&!e.newlines)||m(this._flags.last_token,"else")&&!(m(e,"if")&&!e.comments_before))||this._flags.last_token.type===r.END_EXPR&&(this._previous_flags.mode===b||this._previous_flags.mode===k))||this._flags.last_token.type===r.WORD&&this._flags.mode===h&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==r.WORD&&e.type!==r.RESERVED)||this._flags.mode===y&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"])))&&(this.set_mode(g),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,d(e,["do","for","if","while"])),!0)},E.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=_;if("["===e.text){if(this._flags.last_token.type===r.WORD||")"===this._flags.last_token.text)return d(this._flags.last_token,n)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=v,C(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),s(this._flags.last_token.type,[r.START_EXPR,r.END_EXPR,r.WORD,r.OPERATOR,r.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===r.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=b):s(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=k):s(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(s(this._flags.last_token.text,n)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===r.WORD){this._output.space_before_token=!1;var o=this._tokens.peek(-3);if(this._options.space_after_named_function&&o){var a=this._tokens.peek(-4);d(o,["async","function"])||"*"===o.text&&d(a,["async","function"])?this._output.space_before_token=!0:this._flags.mode===y?"{"!==o.text&&","!==o.text&&("*"!==o.text||"{"!==a.text&&","!==a.text)||(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===r.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(s(this._last_last_text,["function","yield"])||this._flags.mode===y&&s(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===r.START_BLOCK?this.print_newline():this._flags.last_token.type!==r.END_EXPR&&this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==r.COMMA||this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},E.prototype.handle_end_expr=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&C(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==r.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),w(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===k&&(this._previous_flags.mode=_,this._flags.do_block=!1,this._flags.do_while=!1)},E.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),o=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===r.END_EXPR?(this.set_mode(h),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(h):o&&(s(o.text,[":",","])&&s(t.type,[r.STRING,r.WORD,r.RESERVED])||s(t.text,["get","set","..."])&&s(o.type,[r.WORD,r.RESERVED]))?s(this._last_last_text,["class","interface"])&&!s(o.text,[":",","])?this.set_mode(h):this.set_mode(y):this._flags.last_token.type===r.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(h):s(this._flags.last_token.type,[r.EQUALS,r.START_EXPR,r.COMMA,r.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"])?this.set_mode(y):this.set_mode(h),this._flags.last_token&&d(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var a=!t.comments_before&&"}"===t.text,i=a&&"function"===this._flags.last_word&&this._flags.last_token.type===r.END_EXPR;if(this._options.brace_preserve_inline){var n=0,l=null;this._flags.inline_frame=!0;do{if(n+=1,(l=this._tokens.peek(n-1)).newlines){this._flags.inline_frame=!1;break}}while(l.type!==r.EOF&&(l.type!==r.END_BLOCK||l.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==r.OPERATOR&&(i||this._flags.last_token.type===r.EQUALS||d(this._flags.last_token,u)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!C(this._previous_flags.mode)||this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.COMMA||((this._flags.last_token.type===r.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==r.OPERATOR&&this._flags.last_token.type!==r.START_EXPR&&(s(this._flags.last_token.type,[r.START_BLOCK,r.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),a||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},E.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===g;)this.restore_mode();var t=this._flags.last_token.type===r.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(C(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)},E.prototype.handle_word=function(e){if(e.type===r.RESERVED)if(s(e.text,["set","get"])&&this._flags.mode!==y)e.type=r.WORD;else if("import"===e.text&&s(this._tokens.peek().text,["(","."]))e.type=r.WORD;else if(s(e.text,["as","from"])&&!this._flags.import_block)e.type=r.WORD;else if(this._flags.mode===y){":"===this._tokens.peek().text&&(e.type=r.WORD)}if(this.start_of_statement(e)?d(this._flags.last_token,["var","let","const"])&&e.type===r.WORD&&(this._flags.declaration_statement=!0):!e.newlines||S(this._flags.mode)||this._flags.last_token.type===r.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===r.EQUALS||!this._options.preserve_newlines&&d(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(m(e,"while"))return this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&m(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===g;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&d(e,["case","default"]))return this.print_newline(),this._flags.case_block||!this._flags.case_body&&!this._options.jslint_happy||this.deindent(),this._flags.case_body=!1,this.print_token(e),void(this._flags.in_case=!0);if(this._flags.last_token.type!==r.COMMA&&this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.EQUALS&&this._flags.last_token.type!==r.OPERATOR||this.start_of_object_property()||s(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===y||this.allow_wrap_or_preserved_newline(e),m(e,"function"))return(s(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!s(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==r.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,N)||m(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===r.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!S(this._flags.mode)&&!C(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var t="NONE";(this._flags.last_token.type===r.END_BLOCK?this._previous_flags.inline_frame?t="SPACE":d(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?t="NEWLINE":(t="SPACE",this._output.space_before_token=!0):t="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&this._flags.mode===h?t="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&S(this._flags.mode)?t="SPACE":this._flags.last_token.type===r.STRING?t="NEWLINE":this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||"*"===this._flags.last_token.text&&(s(this._last_last_text,["function","yield"])||this._flags.mode===y&&s(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===r.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===r.END_EXPR&&(this._output.space_before_token=!0,t="NEWLINE"),d(e,n)&&")"!==this._flags.last_token.text&&(t=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),d(e,["else","catch","finally"]))?(this._flags.last_token.type!==r.END_BLOCK||this._previous_flags.mode!==h||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===t?d(this._flags.last_token,u)||"declare"===this._flags.last_token.text&&d(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==r.END_EXPR?this._flags.last_token.type===r.START_EXPR&&d(e,["var","let","const"])||":"===this._flags.last_token.text||(m(e,"if")&&m(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(e,n)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&C(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===t&&(this._output.space_before_token=!0);!e.previous||e.previous.type!==r.WORD&&e.previous.type!==r.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===r.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&m(e,"from")&&(this._flags.import_block=!1))},E.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&m(t,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},E.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==r.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==r.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},E.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},E.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(S(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===y||this._flags.mode===g&&this._flags.parent.mode===y?(this._flags.mode===g&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},E.prototype.handle_operator=function(e){var t="*"===e.text&&(d(this._flags.last_token,["function","yield"])||s(this._flags.last_token.type,[r.START_BLOCK,r.COMMA,r.END_BLOCK,r.SEMICOLON])),o=s(e.text,["-","+"])&&(s(this._flags.last_token.type,[r.START_BLOCK,r.START_EXPR,r.EQUALS,r.OPERATOR])||s(this._flags.last_token.text,n)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var a=!t;this.handle_whitespace_and_comments(e,a)}if("*"!==e.text||this._flags.last_token.type!==r.DOT)if("::"!==e.text)if(s(e.text,["-","+"])&&this.start_of_object_property())this.print_token(e);else{if(this._flags.last_token.type===r.OPERATOR&&s(this._options.operator_position,p)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==r.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var i=!0,c=!0,m=!1;if(":"===e.text?0===this._flags.ternary_depth?i=!1:(this._flags.ternary_depth-=1,m=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!o&&!t&&this._options.preserve_newlines&&s(e.text,l)){var y=":"===e.text,v=y&&m,b=y&&!m;switch(this._options.operator_position){case f.before_newline:return this._output.space_before_token=!b,this.print_token(e),y&&!v||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case f.after_newline:return this._output.space_before_token=!0,!y||v?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case f.preserve_newline:return b||this.allow_wrap_or_preserved_newline(e),i=!(this._output.just_added_newline()||b),this._output.space_before_token=i,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),i=!1;var k=this._tokens.peek();c=k&&s(k.type,[r.WORD,r.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),i=this._flags.last_token.type===r.START_BLOCK,c=!1;else if(s(e.text,["--","++","!","~"])||o){if(this._flags.last_token.type!==r.COMMA&&this._flags.last_token.type!==r.START_EXPR||this.allow_wrap_or_preserved_newline(e),i=!1,c=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var _=d(this._flags.last_token,u)&&e.newlines;_&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(_,!0)}";"===this._flags.last_token.text&&S(this._flags.mode)&&(i=!0),this._flags.last_token.type===r.RESERVED?i=!0:this._flags.last_token.type===r.END_EXPR?i=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===r.OPERATOR&&(i=s(e.text,["--","-","++","+"])&&s(this._flags.last_token.text,["--","-","++","+"]),s(e.text,["+","-"])&&s(this._flags.last_token.text,["--","++"])&&(c=!0)),(this._flags.mode!==h||this._flags.inline_frame)&&this._flags.mode!==g||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||i,this.print_token(e),this._output.space_before_token=c}else this.print_token(e);else this.print_token(e)},E.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):o.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},E.prototype.print_block_commment=function(e,t){var a,i=function(e){for(var t=[],a=(e=e.replace(o.allLineBreaks,"\n")).indexOf("\n");-1!==a;)t.push(e.substring(0,a)),a=(e=e.substring(a+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),n=!1,l=!1,r=e.whitespace_before,s=r.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(i[0]),this.print_newline(!1,t),i.length>1){for(n=function(e,t){for(var o=0;o<e.length;o++)if(e[o].trim().charAt(0)!==t)return!1;return!0}(i=i.slice(1),"*"),l=function(e,t){for(var o,a=0,i=e.length;a<i;a++)if((o=e[a])&&0!==o.indexOf(t))return!1;return!0}(i,r),n&&(this._flags.alignment=1),a=0;a<i.length;a++)n?(this.print_token_line_indentation(e),this._output.add_token(c(i[a]))):l&&i[a]?(this.print_token_line_indentation(e),this._output.add_token(i[a].substring(s))):(this._output.current_line.set_indent(-1),this._output.add_token(i[a])),this.print_newline(!1,t);this._flags.alignment=0}},E.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)},E.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),d(this._flags.last_token,u)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(e)},E.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},E.prototype.handle_eof=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e)},Ne.Beautifier=E,Ne}var ut,ft,pt,ht={exports:{}},gt={},yt={};function vt(){if(ut)return yt;ut=1;var e=qe().Options;function t(t){e.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var o=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||o;var a=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var i=0;i<a.length;i++)"expand"!==a[i]?this.brace_style="collapse":this.brace_style=a[i]}return t.prototype=new e,yt.Options=t,yt}function bt(){if(pt)return ht.exports;pt=1;var e=function(){if(ft)return gt;ft=1;var e=vt().Options,t=Be().Output,o=Ue().InputScanner,a=new(0,at().Directives)(/\/\*/,/\*\//),i=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,l=/\s/,r=/(?:\s|\n)+/g,s=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function m(t,o){this._source_text=t||"",this._options=new e(o),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return m.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},m.prototype.eatWhitespace=function(e){for(var t=l.test(this._input.peek()),o=0;l.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===o||o<this._options.max_preserve_newlines)&&(o++,this._output.add_new_line(!0));return t},m.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,o=this._input.peek(t);o;){if("{"===o)return!0;if("("===o)e+=1;else if(")"===o){if(0===e)return!1;e-=1}else if(";"===o||"}"===o)return!1;t++,o=this._input.peek(t)}return!1},m.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},m.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},m.prototype.indent=function(){this._indentLevel++},m.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,m=this._options.eol;"auto"===m&&(m="\n",e&&i.test(e||"")&&(m=e.match(i)[0]));var d=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0];this._output=new t(this._options,d),this._input=new o(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var u,f,p=0,h=!1,g=!1,y=!1,v=!1,b=!1,k=this._ch,_=!1;u=""!==this._input.read(r),f=k,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),k=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(s),C=a.get_directives(w);C&&"start"===C.ignore&&(w+=a.readIgnored(this._input)),this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(u),this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===p&&-1!==S.indexOf(":")&&(g=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(u),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var E=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);E.match(/[ :]$/)&&(E=this.eatString(": ").replace(/\s+$/,""),this.print_string(E),this._output.space_before_token=!0),0===p&&-1!==E.indexOf(":")?(g=!0,this.indent()):E in this.NESTED_AT_RULE?(this._nestedLevel+=1,E in this.CONDITIONAL_GROUP_RULE&&(y=!0)):0!==p||g||(v=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(u),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),v=!1,y?(y=!1,h=this._indentLevel>=this._nestedLevel):h=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&h&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===f?this._output.space_before_token=!1:","!==f&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===f&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),h=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var N=0;N<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;N++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[N])){_=!0;break}!h&&!y||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||v||0!==p?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var x='"'===f||"'"===f;this.preserveSingleSpace(x||u),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)_=!1,0===p?(g&&(this.outdent(),g=!1),v=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),p++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),p&&(p--,this.outdent()));else{var B=!1;this._input.lookBack("with")&&(B=!0),this.preserveSingleSpace(u||B),this.print_string(this._ch),g&&"$"===f&&this._options.selector_separator_newline?(this._output.add_new_line(),b=!0):(this.eatWhitespace(),p++,this.indent())}else if(")"===this._ch)p&&(p--,this.outdent()),b&&";"===this._input.peek()&&this._options.selector_separator_newline&&(b=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g&&!b||0!==p||v?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==p)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(u),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),l.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var V='"'===f||"'"===f;this.preserveSingleSpace(V||u),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&_&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&l.test(this._ch)&&(this._ch=""));return this._output.get_code(m)},gt.Beautifier=m,gt}().Beautifier,t=vt().Options;return ht.exports=function(t,o){return new e(t,o).beautify()},ht.exports.defaultOptions=function(){return new t},ht.exports}var kt,_t={exports:{}},wt={},Ct={};function St(){if(kt)return Ct;kt=1;var e=qe().Options;function t(t){e.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return t.prototype=new e,Ct.Options=t,Ct}var Et,Nt,xt,Bt,Vt={};function At(){if(Et)return Vt;Et=1;var e=et().Tokenizer,t=et().TOKEN,o=at().Directives,a=ct().TemplatablePattern,i=Qe().Pattern,n={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},l=new o(/<\!--/,/-->/),r=function(t,o){e.call(this,t,o),this._current_tag_name="";var n=new a(this._input).read_options(this._options),l=new i(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:l.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:l.starting_with(/{{!--/).until_after(/--}}/),handlebars:l.starting_with(/{{/).until_after(/}}/),handlebars_open:l.until(/[\n\r\t }]/),handlebars_raw_close:l.until(/}}/),comment:l.starting_with(/<!--/).until_after(/-->/),cdata:l.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:l.starting_with(/<!\[/).until_after(/]>/),processing:l.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var r=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=l.matching(r).until_after(r)}};return(r.prototype=new e)._is_comment=function(e){return!1},r.prototype._is_opening=function(e){return e.type===n.TAG_OPEN||e.type===n.CONTROL_FLOW_OPEN},r.prototype._is_closing=function(e,t){return e.type===n.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===n.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},r.prototype._reset=function(){this._current_tag_name=""},r.prototype._get_next_token=function(e,t){var o=null;this._readWhitespace();var a=this._input.peek();return null===a?this._create_token(n.EOF,""):o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=o||this._read_open_handlebars(a,t))||this._read_attribute(a,e,t))||this._read_close(a,t))||this._read_script_and_style(a,e))||this._read_control_flows(a,t))||this._read_raw_content(a,e,t))||this._read_content_word(a,t))||this._read_comment_or_cdata(a))||this._read_processing(a))||this._read_open(a,t))||this._create_token(n.UNKNOWN,this._input.next())},r.prototype._read_comment_or_cdata=function(e){var t=null,o=null,a=null;"<"===e&&("!"===this._input.peek(1)&&((o=this.__patterns.comment.read())?(a=l.get_directives(o))&&"start"===a.ignore&&(o+=l.readIgnored(this._input)):o=this.__patterns.cdata.read()),o&&((t=this._create_token(n.COMMENT,o)).directives=a));return t},r.prototype._read_processing=function(e){var t=null,o=null;if("<"===e){var a=this._input.peek(1);"!"!==a&&"?"!==a||(o=(o=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),o&&((t=this._create_token(n.COMMENT,o)).directives=null)}return t},r.prototype._read_open=function(e,t){var o=null,a=null;return t&&t.type!==n.CONTROL_FLOW_OPEN||"<"===e&&(o=this._input.next(),"/"===this._input.peek()&&(o+=this._input.next()),o+=this.__patterns.element_name.read(),a=this._create_token(n.TAG_OPEN,o)),a},r.prototype._read_open_handlebars=function(e,t){var o=null,a=null;return t&&t.type!==n.CONTROL_FLOW_OPEN||(this._options.templating.includes("angular")||this._options.indent_handlebars)&&"{"===e&&"{"===this._input.peek(1)&&(this._options.indent_handlebars&&"!"===this._input.peek(2)?(o=(o=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),a=this._create_token(n.COMMENT,o)):(o=this.__patterns.handlebars_open.read(),a=this._create_token(n.TAG_OPEN,o))),a},r.prototype._read_control_flows=function(e,t){var o="",a=null;if(!this._options.templating.includes("angular"))return a;if("@"===e){if(""===(o=this.__patterns.angular_control_flow_start.read()))return a;for(var i=o.endsWith("(")?1:0,l=0;!o.endsWith("{")||i!==l;){var r=this._input.next();if(null===r)break;"("===r?i++:")"===r&&l++,o+=r}a=this._create_token(n.CONTROL_FLOW_OPEN,o)}else"}"===e&&t&&t.type===n.CONTROL_FLOW_OPEN&&(o=this._input.next(),a=this._create_token(n.CONTROL_FLOW_CLOSE,o));return a},r.prototype._read_close=function(e,t){var o=null,a=null;return t&&t.type===n.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(o=this._input.next(),"/"===e&&(o+=this._input.next()),a=this._create_token(n.TAG_CLOSE,o)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),a=this._create_token(n.TAG_CLOSE,"}}"))),a},r.prototype._read_attribute=function(e,t,o){var a=null,i="";if(o&&"<"===o.text[0])if("="===e)a=this._create_token(n.EQUALS,this._input.next());else if('"'===e||"'"===e){var l=this._input.next();l+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),a=this._create_token(n.VALUE,l)}else(i=this.__patterns.attribute.read())&&(a=t.type===n.EQUALS?this._create_token(n.VALUE,i):this._create_token(n.ATTRIBUTE,i));return a},r.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},r.prototype._read_raw_content=function(e,t,o){var a="";if(o&&"{"===o.text[0])a=this.__patterns.handlebars_raw_close.read();else if(t.type===n.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var i=t.opened.text.substr(1).toLowerCase();this._is_content_unformatted(i)&&(a=this._input.readUntil(new RegExp("</"+i+"[\\n\\r\\t ]*?>","ig")))}return a?this._create_token(n.TEXT,a):null},r.prototype._read_script_and_style=function(e,t){if(t.type===n.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var o=t.opened.text.substr(1).toLowerCase();if("script"===o||"style"===o){var a=this._read_comment_or_cdata(e);if(a)return a.type=n.TEXT,a;var i=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig"));if(i)return this._create_token(n.TEXT,i)}}return null},r.prototype._read_content_word=function(e,t){var o="";return this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(o=this.__patterns.unformatted_content_delimiter.read()),o||(o=t&&t.type===n.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),o?this._create_token(n.TEXT,o):null},Vt.Tokenizer=r,Vt.TOKEN=n,Vt}function Rt(){if(Nt)return wt;Nt=1;var e=St().Options,t=Be().Output,o=At().Tokenizer,a=At().TOKEN,i=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,l=function(e,o){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new t(e,o)};l.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},l.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},l.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},l.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},l.prototype.print_preserved_newlines=function(e){var t=0;e.type!==a.TEXT&&e.previous.type!==a.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var o=0;o<t;o++)this.print_newline(o>0);return 0!==t},l.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},l.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},l.prototype.print_newline=function(e){this._output.add_new_line(e)},l.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},l.prototype.indent=function(){this.indent_level++},l.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},l.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var r=function(e,t){var o=null,i=null;return t.closed?("script"===e?o="text/javascript":"style"===e&&(o="text/css"),o=function(e){for(var t=null,o=e.next;o.type!==a.EOF&&e.closed!==o;){if(o.type===a.ATTRIBUTE&&"type"===o.text){o.next&&o.next.type===a.EQUALS&&o.next.next&&o.next.next.type===a.VALUE&&(t=o.next.next.text);break}o=o.next}return t}(t)||o,o.search("text/css")>-1?i="css":o.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":o.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":o.search(/test\/null/)>-1&&(i="null"),i):null};function s(e,t){return-1!==t.indexOf(e)}function c(e,t,o){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=o||0,this.parser_token=t||null}function m(e){this._printer=e,this._current_frame=null}function d(t,o,a,i){this._source_text=t||"",o=o||{},this._js_beautify=a,this._css_beautify=i,this._tag_stack=null;var n=new e(o,"html");this._options=n,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}m.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},m.prototype.record_tag=function(e){var t=new c(this._current_frame,e,this._printer.indent_level);this._current_frame=t},m.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},m.prototype._get_frame=function(e,t){for(var o=this._current_frame;o&&-1===e.indexOf(o.tag);){if(t&&-1!==t.indexOf(o.tag)){o=null;break}o=o.parent}return o},m.prototype.try_pop=function(e,t){var o=this._get_frame([e],t);return this._try_pop_frame(o)},m.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&i.test(e)&&(t=e.match(i)[0]));var r=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0],s={text:"",type:""},c=new u(this._options),d=new l(this._options,r),f=new o(e,this._options).tokenize();this._tag_stack=new m(d);for(var p=null,h=f.next();h.type!==a.EOF;)h.type===a.TAG_OPEN||h.type===a.COMMENT?c=p=this._handle_tag_open(d,h,c,s,f):h.type===a.ATTRIBUTE||h.type===a.EQUALS||h.type===a.VALUE||h.type===a.TEXT&&!c.tag_complete?p=this._handle_inside_tag(d,h,c,s):h.type===a.TAG_CLOSE?p=this._handle_tag_close(d,h,c):h.type===a.TEXT?p=this._handle_text(d,h,c):h.type===a.CONTROL_FLOW_OPEN?p=this._handle_control_flow_open(d,h):h.type===a.CONTROL_FLOW_CLOSE?p=this._handle_control_flow_close(d,h):d.add_raw_token(h),s=p,h=f.next();return d._output.get_code(t)},d.prototype._handle_control_flow_open=function(e,t){var o={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),o},d.prototype._handle_control_flow_close=function(e,t){var o={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),o},d.prototype._handle_tag_close=function(e,t,o){var a={text:t.text,type:t.type};return e.alignment_size=0,o.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),o.is_unformatted?e.add_raw_token(t):("<"===o.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&o.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!o.indent_content||o.is_unformatted||o.is_content_unformatted||(e.indent(),o.indent_content=!1),o.is_inline_element||o.is_unformatted||o.is_content_unformatted||e.set_wrap_point(),a},d.prototype._handle_inside_tag=function(e,t,o,i){var n=o.has_wrapped_attrs,l={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),o.is_unformatted?e.add_raw_token(t):"{"===o.tag_start_char&&t.type===a.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===a.ATTRIBUTE?e.set_space_before_token(!0):(t.type===a.EQUALS||t.type===a.VALUE&&t.previous.type===a.EQUALS)&&e.set_space_before_token(!1),t.type===a.ATTRIBUTE&&"<"===o.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),n=n||0!==t.newlines),this._is_wrap_attributes_force&&o.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==a.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),n=!0)),e.print_token(t),n=n||e.previous_token_wrapped(),o.has_wrapped_attrs=n),l},d.prototype._handle_text=function(e,t,o){var a={text:t.text,type:"TK_CONTENT"};return o.custom_beautifier_name?this._print_custom_beatifier_text(e,t,o):o.is_unformatted||o.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),a},d.prototype._print_custom_beatifier_text=function(e,t,o){var a=this;if(""!==t.text){var i,n=t.text,l=1,r="",s="";"javascript"===o.custom_beautifier_name&&"function"==typeof this._js_beautify?i=this._js_beautify:"css"===o.custom_beautifier_name&&"function"==typeof this._css_beautify?i=this._css_beautify:"html"===o.custom_beautifier_name&&(i=function(e,t){return new d(e,t,a._js_beautify,a._css_beautify).beautify()}),"keep"===this._options.indent_scripts?l=0:"separate"===this._options.indent_scripts&&(l=-e.indent_level);var c=e.get_full_indent(l);if(n=n.replace(/\n[ \t]*$/,""),"html"!==o.custom_beautifier_name&&"<"===n[0]&&n.match(/^(<!--|<!\[CDATA\[)/)){var m=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(n);if(!m)return void e.add_raw_token(t);r=c+m[1]+"\n",n=m[4],m[5]&&(s=c+m[5]),n=n.replace(/\n[ \t]*$/,""),(m[2]||-1!==m[3].indexOf("\n"))&&(m=m[3].match(/[ \t]+$/))&&(t.whitespace_before=m[0])}if(n)if(i){var u=function(){this.eol="\n"};u.prototype=this._options.raw_options,n=i(c+n,new u)}else{var f=t.whitespace_before;f&&(n=n.replace(new RegExp("\n("+f+")?","g"),"\n")),n=c+n.replace(/\n/g,"\n"+c)}r&&(n=n?r+n+"\n"+s:r+s),e.print_newline(!1),n&&(t.text=n,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},d.prototype._handle_tag_open=function(e,t,o,i,n){var l=this._get_tag_open_token(t);if(!o.is_unformatted&&!o.is_content_unformatted||o.is_empty_element||t.type!==a.TAG_OPEN||l.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,l,o,i),l.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),l.start_tag_token=this._tag_stack.try_pop(l.tag_name)),l.is_start_tag&&this._is_wrap_attributes_force){var r,s=0;do{(r=n.peek(s)).type===a.ATTRIBUTE&&(l.attr_count+=1),s+=1}while(r.type!==a.EOF&&r.type!==a.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(l.alignment_size=t.text.length+1),l.tag_complete||l.is_unformatted||(e.alignment_size=l.alignment_size),l};var u=function(e,t,o){if(this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",o){var i;this.tag_start_char=o.text[0],this.text=o.text,"<"===this.tag_start_char?(i=o.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=o.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"",(o.text.startsWith("{{#>")||o.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==o.next?this.tag_check=o.next.text.split(" ")[0]:this.tag_check=o.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),o.type===a.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||o.closed&&"/>"===o.closed.text;var n=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(n=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!e.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(n)))}else this.tag_complete=!0};d.prototype._get_tag_open_token=function(e){var t=new u(this._options,this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||s(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&s(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&s(t.tag_check,this._options.content_unformatted),t.is_inline_element=s(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},d.prototype._set_tag_position=function(e,t,o,i,n){if(o.is_empty_element||(o.is_end_tag?o.start_tag_token=this._tag_stack.try_pop(o.tag_name):(this._do_optional_end_element(o)&&(o.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(o),"script"!==o.tag_name&&"style"!==o.tag_name||o.is_unformatted||o.is_content_unformatted||(o.custom_beautifier_name=r(o.tag_check,t)))),s(o.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),o.is_empty_element){if("{"===o.tag_start_char&&"else"===o.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),o.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===o.tag_name&&n.type===a.TAG_CLOSE&&i.is_end_tag&&-1===o.text.indexOf("\n")||(o.is_inline_element||o.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,o))}else if(o.is_end_tag){var l=!1;l=(l=o.start_tag_token&&o.start_tag_token.multiline_content)||!o.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(n.type===a.TAG_CLOSE&&o.start_tag_token===i)&&"TK_CONTENT"!==n.type,(o.is_content_unformatted||o.is_unformatted)&&(l=!1),l&&e.print_newline(!1)}else o.indent_content=!o.custom_beautifier_name,"<"===o.tag_start_char&&("html"===o.tag_name?o.indent_content=this._options.indent_inner_html:"head"===o.tag_name?o.indent_content=this._options.indent_head_inner_html:"body"===o.tag_name&&(o.indent_content=this._options.indent_body_inner_html)),o.is_inline_element||o.is_unformatted||"TK_CONTENT"===n.type&&!o.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,o)},d.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var f=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],p=["a","audio","del","ins","map","noscript","video"];return d.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==f.indexOf(e.tag_name)){var o=e.parent.parent;o&&-1!==p.indexOf(o.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},wt.Beautifier=d,wt}function Mt(){if(Bt)return Se;Bt=1;var e=function(){if(rt)return Ee.exports;rt=1;var e=dt().Beautifier,t=Pe().Options;return Ee.exports=function(t,o){return new e(t,o).beautify()},Ee.exports.defaultOptions=function(){return new t},Ee.exports}(),t=bt(),o=function(){if(xt)return _t.exports;xt=1;var e=Rt().Beautifier,t=St().Options;return _t.exports=function(t,o,a,i){return new e(t,o,a,i).beautify()},_t.exports.defaultOptions=function(){return new t},_t.exports}();function a(a,i,n,l){return o(a,i,n=n||e,l=l||t)}return a.defaultOptions=o.defaultOptions,Se.js=e,Se.css=t,Se.html=a,Se}!function(e){!function(e){var t=Mt();t.js_beautify=t.js,t.css_beautify=t.css,t.html_beautify=t.html,e.exports=function(e,t,o){var a=function(t,o){return e.js_beautify(t,o)};return a.js=e.js_beautify,a.css=t.css_beautify,a.html=o.html_beautify,a.js_beautify=e.js_beautify,a.css_beautify=t.css_beautify,a.html_beautify=o.html_beautify,a}(t,t,t)}(e)}(Ce);var It=he(Ce.exports),Tt={exports:{}};!function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof n?new n(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++o}),e.__id},clone:function e(t,o){var a,n;switch(o=o||{},i.util.type(t)){case"Object":if(n=i.util.objId(t),o[n])return o[n];for(var l in a={},o[n]=a,t)t.hasOwnProperty(l)&&(a[l]=e(t[l],o));return a;case"Array":return n=i.util.objId(t),o[n]?o[n]:(a=[],o[n]=a,t.forEach(function(t,i){a[i]=e(t,o)}),a);default:return t}},getLanguage:function(e){for(;e;){var o=t.exec(e.className);if(o)return o[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,o){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+o)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var o in t)if(t[o].src==e)return t[o]}return null}},isActive:function(e,t,o){for(var a="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(a))return!1;e=e.parentElement}return!!o}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var o=i.util.clone(i.languages[e]);for(var a in t)o[a]=t[a];return o},insertBefore:function(e,t,o,a){var n=(a=a||i.languages)[e],l={};for(var r in n)if(n.hasOwnProperty(r)){if(r==t)for(var s in o)o.hasOwnProperty(s)&&(l[s]=o[s]);o.hasOwnProperty(r)||(l[r]=n[r])}var c=a[e];return a[e]=l,i.languages.DFS(i.languages,function(t,o){o===c&&t!=e&&(this[t]=l)}),l},DFS:function e(t,o,a,n){n=n||{};var l=i.util.objId;for(var r in t)if(t.hasOwnProperty(r)){o.call(t,r,t[r],a||r);var s=t[r],c=i.util.type(s);"Object"!==c||n[l(s)]?"Array"!==c||n[l(s)]||(n[l(s)]=!0,e(s,o,r,n)):(n[l(s)]=!0,e(s,o,null,n))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,o){var a={callback:o,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),i.hooks.run("before-all-elements-highlight",a);for(var n,l=0;n=a.elements[l++];)i.highlightElement(n,!0===t,a.callback)},highlightElement:function(t,o,a){var n=i.util.getLanguage(t),l=i.languages[n];i.util.setLanguage(t,n);var r=t.parentElement;r&&"pre"===r.nodeName.toLowerCase()&&i.util.setLanguage(r,n);var s={element:t,language:n,grammar:l,code:t.textContent};function c(e){s.highlightedCode=e,i.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,i.hooks.run("after-highlight",s),i.hooks.run("complete",s),a&&a.call(s.element)}if(i.hooks.run("before-sanity-check",s),(r=s.element.parentElement)&&"pre"===r.nodeName.toLowerCase()&&!r.hasAttribute("tabindex")&&r.setAttribute("tabindex","0"),!s.code)return i.hooks.run("complete",s),void(a&&a.call(s.element));if(i.hooks.run("before-highlight",s),s.grammar)if(o&&e.Worker){var m=new Worker(i.filename);m.onmessage=function(e){c(e.data)},m.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(i.highlight(s.code,s.grammar,s.language));else c(i.util.encode(s.code))},highlight:function(e,t,o){var a={code:e,grammar:t,language:o};if(i.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=i.tokenize(a.code,a.grammar),i.hooks.run("after-tokenize",a),n.stringify(i.util.encode(a.tokens),a.language)},tokenize:function(e,t){var o=t.rest;if(o){for(var a in o)t[a]=o[a];delete t.rest}var i=new s;return c(i,i.head,e),r(e,i,t,i.head,0),function(e){var t=[],o=e.head.next;for(;o!==e.tail;)t.push(o.value),o=o.next;return t}(i)},hooks:{all:{},add:function(e,t){var o=i.hooks.all;o[e]=o[e]||[],o[e].push(t)},run:function(e,t){var o=i.hooks.all[e];if(o&&o.length)for(var a,n=0;a=o[n++];)a(t)}},Token:n};function n(e,t,o,a){this.type=e,this.content=t,this.alias=o,this.length=0|(a||"").length}function l(e,t,o,a){e.lastIndex=t;var i=e.exec(o);if(i&&a&&i[1]){var n=i[1].length;i.index+=n,i[0]=i[0].slice(n)}return i}function r(e,t,o,a,s,d){for(var u in o)if(o.hasOwnProperty(u)&&o[u]){var f=o[u];f=Array.isArray(f)?f:[f];for(var p=0;p<f.length;++p){if(d&&d.cause==u+","+p)return;var h=f[p],g=h.inside,y=!!h.lookbehind,v=!!h.greedy,b=h.alias;if(v&&!h.pattern.global){var k=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,k+"g")}for(var _=h.pattern||h,w=a.next,C=s;w!==t.tail&&!(d&&C>=d.reach);C+=w.value.length,w=w.next){var S=w.value;if(t.length>e.length)return;if(!(S instanceof n)){var E,N=1;if(v){if(!(E=l(_,C,e,y))||E.index>=e.length)break;var x=E.index,B=E.index+E[0].length,V=C;for(V+=w.value.length;x>=V;)V+=(w=w.next).value.length;if(C=V-=w.value.length,w.value instanceof n)continue;for(var A=w;A!==t.tail&&(V<B||"string"==typeof A.value);A=A.next)N++,V+=A.value.length;N--,S=e.slice(C,V),E.index-=C}else if(!(E=l(_,0,S,y)))continue;x=E.index;var R=E[0],M=S.slice(0,x),I=S.slice(x+R.length),T=C+S.length;d&&T>d.reach&&(d.reach=T);var $=w.prev;if(M&&($=c(t,$,M),C+=M.length),m(t,$,N),w=c(t,$,new n(u,g?i.tokenize(R,g):R,b,R)),I&&c(t,w,I),N>1){var D={cause:u+","+p,reach:T};r(e,t,o,w.prev,C,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,o){var a=t.next,i={value:o,prev:t,next:a};return t.next=i,a.prev=i,e.length++,i}function m(e,t,o){for(var a=t.next,i=0;i<o&&a!==e.tail;i++)a=a.next;t.next=a,a.prev=t,e.length-=i}if(e.Prism=i,n.stringify=function e(t,o){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach(function(t){a+=e(t,o)}),a}var n={type:t.type,content:e(t.content,o),tag:"span",classes:["token",t.type],attributes:{},language:o},l=t.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(n.classes,l):n.classes.push(l)),i.hooks.run("wrap",n);var r="";for(var s in n.attributes)r+=" "+s+'="'+(n.attributes[s]||"").replace(/"/g,""")+'"';return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+r+">"+n.content+"</"+n.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",function(t){var o=JSON.parse(t.data),a=o.language,n=o.code,l=o.immediateClose;e.postMessage(i.highlight(n,i.languages[a],a)),l&&e.close()},!1),i):i;var d=i.util.currentScript();function u(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("vue-draggable-next"),require("vue3-apexcharts"),require("vue3-country-flag-icon"),require("vue3-country-flag-icon/dist/CountryFlag.css"),require("chart.js"),require("chartjs-chart-geo")):"function"==typeof define&&define.amd?define(["exports","vue","vue-draggable-next","vue3-apexcharts","vue3-country-flag-icon","vue3-country-flag-icon/dist/CountryFlag.css","chart.js","chartjs-chart-geo"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["halleyx-ui-framework"]={},e.Vue,e.vueDraggableNext,e.VueApexCharts,e.CountryFlag,null,e.chart_js,e.ChartGeo)}(this,function(e,t,o,a,i,n,l,r){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}}),t.default=e,Object.freeze(t)}var m=s(a),d=s(i),u=c(r),f={name:"HlxAccordion",props:{accordionData:{type:Array,default:()=>[]},direction:{type:String,default:"right"},multiple:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},headerBorder:{type:Boolean,default:!1}},emits:["accordionopen","accordionclose"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5)}),mounted(){this.expand&&document.querySelectorAll(".accordion-item")?.forEach(e=>{e?.children[0]?.children[1]?.children[0]?.classList?.remove("icon-angle-right-regular"),e?.children[0]?.children[1]?.children[0]?.classList?.add("icon-angle-down-regular"),e.children[1].style.display="flex",this.$emit("accordionopen")})},methods:{toggleView(e,t,o){0==o?"right icon-angle-right-regular"===document.querySelector("#arrow-"+t).className?(0==this.headerBorder&&(document.querySelectorAll(".accordion-header").forEach(e=>{e.classList.remove("noo-border")}),document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border")),document.querySelectorAll(".icon-angle-down-regular").forEach(e=>{"right icon-angle-down-regular"==e.className&&(document.querySelectorAll(".accordion-content").forEach(e=>{e.style.display="none"}),e.classList.remove("icon-angle-down-regular"),e.classList.add("icon-angle-right-regular"))}),document.querySelector("#arrow-"+t).classList.remove("icon-angle-right-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-down-regular"),document.querySelector("#content-"+t).style.display="flex",this.$emit("accordionopen")):"right icon-angle-down-regular"===document.querySelector("#arrow-"+t).className&&(0==this.headerBorder&&(document.querySelectorAll(".accordion-header").forEach(e=>{e.classList.remove("noo-border")}),document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border")),document.querySelector("#arrow-"+t).classList.remove("icon-angle-down-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-right-regular"),document.querySelector("#content-"+t).style.display="none",this.$emit("accordionclose")):"right icon-angle-right-regular"===document.querySelector("#arrow-"+t).className?(0==this.headerBorder&&document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border"),document.querySelector("#arrow-"+t).classList.remove("icon-angle-right-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-down-regular"),document.querySelector("#content-"+t).style.display="flex",this.$emit("accordionopen")):"right icon-angle-down-regular"===document.querySelector("#arrow-"+t).className&&(document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.remove("noo-border"),document.querySelector("#arrow-"+t).classList.remove("icon-angle-down-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-right-regular"),document.querySelector("#content-"+t).style.display="none",this.$emit("accordionclose"))}}};const p=["id","multiple"],h=["id"],g={key:0,style:{display:"flex"}},y=["id"],v={style:{width:"100%"}},b={key:1,style:{display:"flex"}},k=["id"],_=["id"];f.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(' <div class="accordion-container"> '),(t.openBlock(),t.createElementBlock("div",{id:["item-"+n.unique],key:n.unique,class:"accordion-item",multiple:a.multiple},[t.createElementVNode("div",{id:["header-"+n.unique],class:"accordion-header",onClick:o[0]||(o[0]=e=>l.toggleView(e,n.unique,a.multiple))},["left"==a.direction?(t.openBlock(),t.createElementBlock("div",g,[t.createElementVNode("i",{id:["arrow-"+n.unique],class:"right icon-angle-right-regular"},null,8,y)])):t.createCommentVNode("v-if",!0),t.createElementVNode("header",v,[t.renderSlot(e.$slots,"item-title")]),"right"==a.direction?(t.openBlock(),t.createElementBlock("div",b,[t.createElementVNode("i",{id:["arrow-"+n.unique],class:"right icon-angle-right-regular"},null,8,k)])):t.createCommentVNode("v-if",!0)],8,h),t.createElementVNode("div",{id:["content-"+n.unique],class:"accordion-content"},[t.renderSlot(e.$slots,"item-body")],8,_)],8,p)),t.createCommentVNode(" </div> ")],2112)},f.__file="src/components/AccordionComponent.vue";var w={name:"HlxAlertNotification",props:{notify:{type:Object,default:()=>({})},autoClose:{type:Boolean,default:()=>!0},delay:{type:Number,default:e=>e>3e3?e:2e3,validator:e=>e>3e3?e:2e3}},data:()=>({notifications:[],alertStatus:!1,typeData:""}),computed:{computedAlert(){return this.alertStatus}},watch:{notify:{handler(e){const t=(new Date).toISOString().replace(/[.\:-]/g,"")+crypto.randomUUID().toString(16).substring(1);Object.keys(e).length>0&&this.push({...e,id:t})},immediate:!0,deep:!0}},methods:{getClass:e=>e?.type?"alert-"+e?.type.toLowerCase():"alert-success",closeAlert(e){this.$refs["hlx-alert-"+e][0]?.classList.add("close"),setTimeout(()=>{this.notifications=this.notifications.filter(t=>t.id&&t.id!=e)},1e3)},push(e){this.notifications.push({...e}),this.autoClose&&setTimeout(()=>{this.$refs["hlx-alert-"+e.id][0]?.classList.add("close"),setTimeout(()=>{this.notifications.shift()},1e3)},this.delay+1e3*this.notifications.length)},icon(e){if(e)switch(e.toLowerCase()){case"danger":case"warning":return"icon-exclamation-circle-regular";case"primary":return"icon-info-circle-regular";default:return"icon-check-circle-regular"}return"tick-bg"}}};const C={key:0,class:"hlx-alert-wrapper"},S=["id"],E={class:"icon"},N={class:"text"},x={class:"alert-description"},B=["onClick"];w.render=function(e,o,a,i,n,l){return t.openBlock(),t.createBlock(t.Teleport,{to:"body",class:"alert-not"},[n.notifications.length>0?(t.openBlock(),t.createElementBlock("section",C,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.notifications,e=>(t.openBlock(),t.createElementBlock("div",{id:"alert"+e.id,ref_for:!0,ref:"hlx-alert-"+e.id,key:e,class:t.normalizeClass(["hlx alert",l.getClass(e)])},[t.createElementVNode("span",E,[t.createElementVNode("i",{class:t.normalizeClass(l.icon(e.type))},null,2)]),t.createElementVNode("div",N,[t.createElementVNode("p",x,t.toDisplayString(e.message),1)]),t.createElementVNode("button",{class:"close","aria-label":"close",onClick:t=>l.closeAlert(e.id)},[...o[0]||(o[0]=[t.createElementVNode("i",{class:"icon-times-filled"},null,-1)])],8,B)],10,S))),128))])):t.createCommentVNode("v-if",!0)])},w.__file="src/components/AlertComponent.vue";var V={name:"HlxBadge",props:{icon:{type:String,default:""},count:{type:Number,default:0}}};const A=["aria-label"],R={class:"icon-button__badge",style:{"font-size":"10px"}};V.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("button",{id:"badge",type:"button",class:"icon-button","aria-label":a.icon},[t.createElementVNode("span",{class:t.normalizeClass(a.icon)},null,2),t.createElementVNode("span",R,t.toDisplayString(a.count),1)],8,A)},V.__file="src/components/BadgeComponent.vue";var M={name:"HlxBreadcrumb",props:{labelValue:{type:String,default:"Back"},autoRoute:{type:Boolean,default:!1},type:{type:String,default:"back-breadcrumb"},items:{type:Array,required:!0},separator:{type:[String,Object],default:"/"}},emits:["path"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5)}),computed:{isIconSeparator(){return"object"==typeof this.separator}},methods:{current(e){!0===this.autoRoute&&this.$router.back(),this.$emit("path",e)},tooltipover(e,t){let o=e,a=t;this.ellipsis(o,a)},tooltipleave(e,t){let o=e,a=t;this.ellipses(o,a)},ellipsis(e,t){console.log(e,t),this.$nextTick(()=>{const o=document.querySelector("#"+e);if(null!=o){if(o.clientWidth<o.scrollWidth)if("ellipsis"===(o.currentStyle||window.getComputedStyle(o)).textOverflow){const e=document.querySelector("."+t);console.log(o.getBoundingClientRect().top);let a=o.getBoundingClientRect().top,i=o.getBoundingClientRect().left+77;return e.style.display="block",e.style.top=a+"px",e.style.left=i+"px",!0}return!1}})},ellipses(e,t){this.$nextTick(()=>{const o=document.querySelector("#"+e);if(null!=o){if(o.clientWidth<o.scrollWidth)if("ellipsis"===(o.currentStyle||window.getComputedStyle(o)).textOverflow){return document.querySelector("."+t).style.display="none",!0}return!1}})}}};const I={class:"breadcrumb","aria-label":"Breadcrumb"},T={key:0},$=["onClick"],D=["id","onMouseover","onMouseleave"],z=["id","onMouseover","onMouseleave"],O={key:3,class:"breadcrumb-separator"},q={key:1};M.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("nav",I,["Pathway-breadcrumb"===a.type?(t.openBlock(),t.createElementBlock("ul",T,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.items,(e,o)=>(t.openBlock(),t.createElementBlock("li",{key:o,onClick:t=>l.current(e)},[null!=e.icon?(t.openBlock(),t.createElementBlock("i",{key:0,"aria-hidden":"true",class:t.normalizeClass(e.icon)},null,2)):t.createCommentVNode("v-if",!0),o===a.items.length-1?(t.openBlock(),t.createElementBlock("a",{key:1,id:"breadcrumb"+o+n.unique,style:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","min-width":"45px",width:"auto","max-width":"80px",display:"inline-block"},onMouseover:e=>l.tooltipover("breadcrumb"+o+n.unique,"tooltip-textbreadcrumb"+o+n.unique),onMouseleave:e=>l.tooltipleave("breadcrumb"+o+n.unique,"tooltip-textbreadcrumb"+o+n.unique)},[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.createElementVNode("p",{id:"tooltip-text1",class:t.normalizeClass("tooltip-textbreadcrumb"+o+n.unique)},t.toDisplayString(e.label),3)],40,D)):(t.openBlock(),t.createElementBlock("a",{key:2,id:"breadcrumb"+n.unique+o,class:"show-breadcrumb",style:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","min-width":"45px",width:"auto","max-width":"80px",display:"inline-block"},onMouseover:e=>l.tooltipover("breadcrumb"+n.unique+o,"tooltip-textbreadcrumb"+n.unique+o),onMouseleave:e=>l.tooltipleave("breadcrumb"+n.unique+o,"tooltip-textbreadcrumb"+n.unique+o)},[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.createElementVNode("p",{id:"tooltip-text1",class:t.normalizeClass("tooltip-textbreadcrumb"+n.unique+o)},t.toDisplayString(e.label),3)],40,z)),t.createCommentVNode(' <router-link :to="item.link" :class="{ disabled: index === items.length - 1 } " >{{ item.label }}</router-link> '),o<a.items.length-1?(t.openBlock(),t.createElementBlock("span",O,[l.isIconSeparator?(t.openBlock(),t.createElementBlock("i",{key:0,"aria-hidden":"true",class:t.normalizeClass(a.separator.icon)},null,2)):(t.openBlock(),t.createElementBlock("span",q,t.toDisplayString(a.separator),1))])):t.createCommentVNode("v-if",!0)],8,$))),128))])):t.createCommentVNode("v-if",!0),"back-breadcrumb"===a.type?(t.openBlock(),t.createElementBlock("div",{key:1,class:"back-breadcrumb",style:{display:"flex",cursor:"pointer","align-items":"center",gap:"8px","max-width":"100px"},onClick:o[0]||(o[0]=e=>l.current("back"))},[o[1]||(o[1]=t.createElementVNode("i",{style:{"font-weight":"800"},class:"icon-arrow-left-regular"},null,-1)),t.createElementVNode("p",null,t.toDisplayString(a.labelValue),1)])):t.createCommentVNode("v-if",!0)])},M.__file="src/components/BreadcrumbComponent.vue";var P={name:"HlxButton",props:{value:{type:String,default:"Hlx click :)"},type:{type:String,default:"button"},name:{type:String,default:"hlx-button"},target:{type:String,default:"_blank"},href:{type:String,default:void 0},disabled:{type:Boolean,default:!1},label:{type:String,default:"Button"}},computed:{primaryClass(){return this.disabled?"disabled-button":""}},watch:{disabled:{handler(e){e&&this.primaryClass},immediate:!0}},methods:{clicked(){this.href&&this.$refs["link-ele"].click()}}};const L=["value","type","name","aria-label"],j=["aria-label","href","target"];P.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("button",{id:"hlx-button-0009",ref:"hlx-button",value:a.value,type:a.type,name:a.name,class:t.normalizeClass([l.primaryClass,"hlx-button"]),"aria-label":a.label,onClick:o[0]||(o[0]=(...e)=>l.clicked&&l.clicked(...e))},[t.renderSlot(e.$slots,"default"),null!=a.href?(t.openBlock(),t.createElementBlock("a",{key:0,ref:"link-ele","aria-label":a.label,href:a.href,target:a.target},null,8,j)):t.createCommentVNode("v-if",!0)],10,L)},P.__file="src/components/ButtonComponent.vue";var F={name:"HlxCalendar",props:{disableWeekend:{type:Boolean,default:!1},dateFormatLanguage:{type:String,default:"en"},event:{type:[Array,PointerEvent],default:()=>[]},preValue:{type:[Date,String],default:""},startYear:{type:Number,default:1950},endYear:{type:Number,default:2050},holidayList:{type:Array,default:()=>[]}},emits:["selectedDate","formattedDate"],data:()=>({selectedMonth:"",selectedYear:"",selectedDay:"",formattedDate:"",staticDataDays:localStorage.getItem("dayDataShort")?JSON.parse(localStorage.getItem("dayDataShort")):{sun:"SUN",mon:"MON",tue:"TUE",wed:"WED",thu:"THU",fri:"FRI",sat:"SAT"},monthNames:localStorage.getItem("monthDataLong")?JSON.parse(localStorage.getItem("monthDataLong")):["January","February","March","April","May","June","July","August","September","October","November","December"]}),async mounted(){console.log("days111:::",JSON.parse(localStorage.getItem("dayDataShort"))),console.log("monthLong111:::",JSON.parse(localStorage.getItem("monthDataLong"))),console.log(this.event,"cal eve",this.dateFormatLanguage);const e=document.querySelector(".calendar"),t=document.querySelector(".light");e.clientY=this.event.clientY,t.right=this.event.clientX+"px";const o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=[];let i=this.startYear;const n=this.endYear;for(;i<=n;)a.push(i++);const l=e.querySelector(".month-list");a.forEach((e,t)=>{const o=document.createElement("div");o.innerHTML=`<div data-month="${t}" id="year${t}" class="idd${e}">${e}</div>`;let a=(new Date).getFullYear();a+=1,e===a&&(document.getElementById("year"+(t-1)).classList.add("theme-background"),document.getElementById("year"+(t-1)).style.color="white"),o.querySelector("div").onclick=()=>{l.classList.remove("show"),c.value=e,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value)},l.appendChild(o)});e.querySelector("#year").onclick=()=>{l.classList.add("show"),document.querySelector(".selected-curr-year")?.classList?.remove("selected-curr-year");let e=document.querySelector(".idd"+this.selectedYear);e.classList.add("selected-curr-year"),e.scrollIntoView({behavior:"smooth",block:"start"})};let r="";if(""===this.preValue)r=new Date;else{const e=this.preValue.split("-");r=new Date(e[2],e[1]-1,e[0])}const s={value:r.getMonth()},c={value:r.getFullYear()};this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value);const m=document.querySelector(".calendar");340===m.offsetHeight||(m.style.marginTop="0px"),document.querySelector("#prev-year").onclick=()=>{"January"===o[s.value]?(s.value=11,--c.value):--s.value,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value);const e=document.querySelector(".calendar");340===e.offsetHeight||(e.style.marginTop="0")},document.querySelector("#next-year").onclick=()=>{const e=document.querySelector(".calendar");"December"===o[s.value]?(s.value=0,++c.value):++s.value,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value),340===e.offsetHeight||(e.style.marginTop="0")};document.querySelectorAll(".disable-weekend").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault()})})},methods:{async translateStaticDataDays(e,t){const o=Object.keys(e).map(t=>e[t]),a=await this.languageTransferArray(o,t),i=Object.keys(e).reduce((e,t,o)=>(e[t]=a[o],e),{});return console.log("poiuytrewq:",i),i},logCalender(e){try{console.log(e?.target?.innerHTML??null,"inner html"),""!==e.target.innerHTML&&e.target.innerHTML.length<=2&&(e.target.innerHTML.length<2?this.selectedDay=0+e.target.innerHTML:this.selectedDay=e.target.innerHTML,this.selectedDate=this.selectedDay+"-"+(this.selectedMonth+1<10?"0"+String(this.selectedMonth+1):this.selectedMonth+1)+"-"+this.selectedYear,this.$emit("selectedDate",this.selectedDate))}catch(e){console.error("ui kit calendar:: ",e),this.$emit("selectedDate",null)}},isLeapYear:e=>e%4==0&&e%100!=0&&e%400!=0||e%100==0&&e%400==0,getFebDays(e){return this.isLeapYear(e)?29:28},generateCalendar(e,t){console.log(e,t,"jui");const o=document.querySelector(".calendar"),a=o.querySelector(".calendar-days"),i=o.querySelector("#year"),n=[31,this.getFebDays(t),31,30,31,30,31,31,30,31,30,31];a.innerHTML="";let l="";if(""===this.preValue)l=new Date;else{const e=this.preValue.split("-");l=new Date(e[2],e[1]-1,e[0])}t||(t=l.getFullYear());const r=`${this.monthNames[e]}`;o.querySelector("#month-picker").innerHTML=r,i.innerHTML=t;const s=new Date(t,e,1);for(let o=0;o<=n[e]+s.getDay()-1;o++){const i=document.createElement("div");if(o>=s.getDay()){i.classList.add("calendar-day-hover");const a=o-s.getDay()+1;if(a>0&&a<=n[e]){const o=`${a}-${e+1}-${t}`;i.classList.add(o),console.log("fkoko",o),i.id="calender-day",this.holidayList.includes(o)&&(i.classList.remove("calendar-day-hover"),i.classList.add("disable-weekend")),i.innerHTML=a,a===l.getDate()&&t===l.getFullYear()&&e===l.getMonth()&&i.classList.add("curr-date")}}a.appendChild(i)}if(!0===this.disableWeekend){const e=document.querySelector(".calendar-days").children,t=[0,6,7,13,14,20,21,27,28,34,35];for(const o in t)e[t[o]]&&""!==e[t[o]].innerHTML&&(e[t[o]].classList.remove("calendar-day-hover"),e[t[o]].classList.add("disable-weekend"))}}}};const U={class:"light"},K={class:"calendar"},G={class:"calendar-body"},H={class:"calendar-week-day"};F.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("div",U,[t.createElementVNode("div",K,[o[1]||(o[1]=t.createStaticVNode('<div class="calendar-header"><div class="year-picker"><span id="prev-year" class="year-change"><p style="margin:0px;"><i class="icon-angle-left-regular"></i></p></span><span><span id="month-picker" class="month-picker">February</span><span id="year">2021</span></span><span id="next-year" class="year-change"><p style="margin:0px;"><i class="icon-angle-right-regular"></i></p></span></div></div>',1)),t.createElementVNode("div",G,[t.createElementVNode("div",H,[t.createElementVNode("div",null,[t.createCommentVNode(" SUN "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.sun),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" MON "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.mon),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" TUE "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.tue),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" WED "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.wed),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" THU "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.thu),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" FRI "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.fri),1)]),t.createElementVNode("div",null,[t.createCommentVNode(" SAT "),t.createTextVNode(" "+t.toDisplayString(n.staticDataDays?.sat),1)])]),t.createElementVNode("div",{class:"calendar-days",onClick:o[0]||(o[0]=(...e)=>l.logCalender&&l.logCalender(...e))})]),t.createCommentVNode(' <div class="calendar-footer">\r\n\r\n </div> '),o[2]||(o[2]=t.createElementVNode("div",{class:"month-list"},null,-1))])])},F.__file="src/components/CalendarComponent.vue";var W={name:"HlxCard",components:{},props:{cardTitle:{type:Boolean,default:!1},cardFooter:{type:Boolean,default:!1},width:{type:Number,default:null},hover:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},padding:{type:Boolean,default:!1},active:{type:Boolean,default:!1},height:{type:Number,default:null}},computed:{headerHeight(){return this.cardTitle?60:0},footerHeight(){return this.cardFooter?60:0}},mounted(){}};const J={key:0,class:"card-title"},Z={key:1,class:"card-footer"};W.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["card",{cardhover:a.hover,cardshadow:a.shadow,padding:a.padding,cardActive:a.active}]),style:t.normalizeStyle("width:"+a.width+"px; height:"+a.height+"px;")},[1==a.cardTitle?(t.openBlock(),t.createElementBlock("div",J,[t.createElementVNode("header",null,[t.renderSlot(e.$slots,"card-title",{},()=>[o[0]||(o[0]=t.createTextVNode("Card title",-1))])])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{class:"card-body",style:t.normalizeStyle(a.cardTitle&&a.cardFooter?{height:a.height-l.headerHeight-l.footerHeight+"px"}:{height:"100%"})},[t.createCommentVNode(" {{this.card_body}} "),t.createElementVNode("main",null,[t.renderSlot(e.$slots,"card-body",{},()=>[o[1]||(o[1]=t.createTextVNode("Card body",-1))])])],4),1==a.cardFooter?(t.openBlock(),t.createElementBlock("div",Z,[t.createCommentVNode(" {{this.cardFooter}} "),t.createElementVNode("footer",null,[t.renderSlot(e.$slots,"card-footer",{},()=>[o[2]||(o[2]=t.createTextVNode("Card footer",-1))])])])):t.createCommentVNode("v-if",!0)],6)},W.__file="src/components/CardsComponent.vue";var Y={name:"HlxOverlay",props:{show:{type:Boolean,default:!1},height:{type:Number,default:0},top:{type:Number,default:0},width:{type:Number,default:0},left:{type:Number,default:0},conditionvalue:{type:Number,default:0},conditionup:{type:Number,default:0},conditiondown:{type:Number,default:0},search:{type:String,default:""}},emits:["close-overlay"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5),containertop:0,containerwidth:0,containerleft:0,containerheight:0}),watch:{search:{handler(e){1==this.show?this.$nextTick(()=>{this.containerheight=document.querySelector("#container-overlay"+this.unique).offsetHeight,this.containertop=this.top,this.containerleft=this.left,this.containerwidth=this.width,window.innerHeight-this.containertop<this.conditionvalue?this.containertop=this.containertop-(this.containerheight+this.conditionup):this.containertop=this.containertop+this.conditiondown}):(this.containertop=0,this.containerleft=0,this.containerwidth=0,this.containerheight=0)}},show:{handler(e){1==e?this.$nextTick(()=>{this.containerheight=document.querySelector("#container-overlay"+this.unique).offsetHeight,this.containertop=this.top,this.containerleft=this.left,this.containerwidth=this.width,window.innerHeight-this.containertop<this.conditionvalue?this.containertop=this.containertop-(this.containerheight+this.conditionup):this.containertop=this.containertop+this.conditiondown}):(this.containertop=0,this.containerleft=0,this.containerwidth=0,this.containerheight=0)}},top:{handler(e){this.containertop=e,1==this.show?this.$nextTick(()=>{this.containerheight=document.querySelector("#container-overlay"+this.unique).offsetHeight,this.containertop=this.top,this.containerleft=this.left,this.containerwidth=this.width,window.innerHeight-this.containertop<this.conditionvalue?this.containertop=this.containertop-(this.containerheight+this.conditionup):this.containertop=this.containertop+this.conditiondown}):(this.containertop=0,this.containerleft=0,this.containerwidth=0,this.containerheight=0)},immediate:!0,deep:!0},left:{handler(e){this.containerleft=e},immediate:!0,deep:!0},width:{handler(e){this.containerwidth=e},immediate:!0,deep:!0}},methods:{emitfunction(e){console.log(e),this.$emit("close-overlay",e)}}};const X=["id"];Y.render=function(e,o,a,i,n,l){return t.openBlock(),t.createElementBlock("div",{class:"outer-overlay",onClick:o[0]||(o[0]=(...e)=>l.emitfunction&&l.emitfunction(...e))},[t.createElementVNode("div",{id:"container-overlay"+n.unique,class:"container-overlay",style:t.normalizeStyle([{position:"fixed"},["width:"+a.width+"px","top:"+n.containertop+"px","left:"+a.left+"px"]])},[t.renderSlot(e.$slots,"overlay")],12,X)])},Y.__file="src/components/OverlayComponent.vue";var Q={name:"HlxColorPalette",components:{hlxOverlay:Y},props:{preValue:{type:String,default:"#000000"},highlightColor:{type:Boolean,default:!1}},emits:["customChange"],data:()=>({containerleft:0,containertop:0,unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5),colorcontainer:!1,fill_color:!0,colorvalue:"#000000",recent:!1,recentvalue:"",recentcolor:[],colordata:[{"#ffffff":["#f2f2f2","#d9d9d9","#bfbfbf","#a6a6a6","#808080"]},{"#000000":["#808080","#595959","#404040","#262626","#0d0d0d"]},{"#e7e6e6":["#d0cece","#aeaaaa","#757171","#3a3838","#161616"]},{"#44546a":["#d6dce4","#acb9ca","#8497b0","#333f4f","#222b35"]},{"#4472c4":["#d9e1f2","#b4c6e7","#8ea9db","#305496","#203764"]},{"#ed7d31":["#fce4d6","#f8cbad","#f4b084","#c65911","#833c0c"]},{"#a5a5a5":["#ededed","#dbdbdb","#c9c9c9","#7b7b7b","#525252"]},{"#ffc000":["#fff2cc","#ffe699","#ffd966","#bf8f00","#806000"]},{"#5b9bd5":["#ddebf7","#bdd7ee","#9bc2e6","#2f75b5","#1f4e78"]},{"#70ad47":["#e2efda","#c6e0b4","#a9d08e","#548235","#375623"]}],standardcolor:["#c00000","#ff0000","#ffc000","#ffff00","#92d050","#00b050","#00b0f0","#0070c0","#002060","#7030a0"],colorpick:""}),watch:{preValue:{handler(e){""!=e&&(this.colorvalue=e,this.$emit("customChange",this.colorvalue))},immediate:!0,deep:!0}},mounted(){!0===this.highlightColor?this.fill_color=!1:this.fill_color=!0;for(let e=0;e<this.colordata.length;e++)for(let t=0;t<Object.values(this.colordata[e])[0].length;t++);document.addEventListener("click",e=>{"color-container"!=e.target.className&&"color-container-title"!=e.target.className&&"color-container-specific-color-checkbox-border"!=e.target.className&&"color-container-specific-color-checkbox-border-fill-color"!=e.target.className&&"color-container-specific-color"!=e.target.className&&"color-container-specific-color1"!=e.target.className&&"color-container-specific-color2"!=e.target.className&&"color-container-specific-color1-container"!=e.target.className&&"color-container2323"!=e.target.className&&"favcolor"!=e.target.className&&"color-palette-container"!=e.target.className&&"color-palette-icon"!=e.target.className&&"icon-color-fill"!=e.target.className&&"color-icon-border"!=e.target.className&&"color-palette-open-icon"!=e.target.className&&"icon-angle-down-regular"!=e.target.className&&(this.colorcontainer=!1)})},methods:{getcolorvalue(e){this.recent=!0,this.colorvalue=e.target.value,this.$emit("customChange",this.colorvalue),1!=this.recentcolor.includes(this.colorvalue)&&(document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),this.recentvalue=this.colorvalue,this.recentcolor.push(this.colorvalue))},getcolor(e){document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),"color-container-specific-color-checkbox-border-fill-color"===e.target.className?(this.colorvalue=e.target.style.background,this.$emit("customChange",this.colorvalue),e.target.parentElement.classList.add("add-border"),this.colorcontainer=!1):"color-container-specific-color-checkbox-border"===e.target.className&&(this.colorvalue=e.target.children[0].style.background,this.$emit("customChange",this.colorvalue),e.target.classList.add("add-border"),this.colorcontainer=!1),this.recent=!0,1!=this.recentcolor.includes(this.colorvalue)&&(document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),this.recentvalue=this.colorvalue,this.recentcolor.push(this.colorvalue))},colorpalette(){this.$nextTick(()=>{this.containerleft=document.getElementById("color-palette-open-icon"+this.unique).getBoundingClientRect().left+5,this.containertop=document.getElementById("color-palette-open-icon"+this.unique).getBoundingClientRect().top+50}),console.log(this.containerleft,"left",this.containertop,"top"),!1===this.colorcontainer?this.colorcontainer=!0:!0===this.colorcontainer&&(this.colorcontainer=!1)},colorpicker(){this.colorpick=!0}}};const ee={class:"color-palette-container"},te={class:"color-palette-icon"},oe={key:0,class:"icon-palette-regular"},ae={key:1,class:"highlight-container"},ie={key:0,class:"highlight-icon"},ne=["id"],le=["id"],re={class:"color-container-specific-color"},se={class:"color-container-specific-color1"},ce={class:"color-container-specific-color"},me={class:"color-container2323"},de=["value"],ue={key:0,class:"color-container-title"},fe={class:"color-container-specific-color2"};Q.render=function(e,o,a,i,n,l){const r=t.resolveComponent("hlx-overlay");return t.openBlock(),t.createElementBlock("div",ee,[t.createElementVNode("div",te,[1==n.fill_color?(t.openBlock(),t.createElementBlock("i",oe)):t.createCommentVNode("v-if",!0),!0===a.highlightColor?(t.openBlock(),t.createElementBlock("div",ae,[!0===a.highlightColor?(t.openBlock(),t.createElementBlock("p",ie,"A")):t.createCommentVNode("v-if",!0),t.createCommentVNode(' <div class="higlight-icon-border" v-if="this.highlightColor === true"></div> ')])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{class:"color-icon-border",style:t.normalizeStyle({background:n.colorvalue})},null,4)]),t.createElementVNode("button",{id:"color-palette-open-icon"+n.unique,"aria-dis":"",class:"color-palette-open-icon",onClick:o[0]||(o[0]=(...e)=>l.colorpalette&&l.colorpalette(...e))},[...o[7]||(o[7]=[t.createElementVNode("i",{class:"icon-angle-down-regular"},null,-1)])],8,ne),n.colorcontainer?(t.openBlock(),t.createBlock(r,{key:0,show:n.colorcontainer,top:n.containertop,left:n.containerleft,width:100,conditionvalue:150,conditionup:55,onCloseOverlay:e.onClose},{overlay:t.withCtx(()=>[t.createElementVNode("button",{id:"color-container"+n.unique,class:"color-container"},[o[8]||(o[8]=t.createElementVNode("p",{class:"color-container-title"},"Theme Colors",-1)),t.createElementVNode("button",re,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.colordata,(e,a)=>(t.openBlock(),t.createElementBlock("button",{key:a,class:"color-container-specific-color-checkbox-border",onClick:o[1]||(o[1]=(...e)=>l.getcolor&&l.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:Object.keys(n.colordata[a])[0]})},null,4)]))),128))]),t.createElementVNode("button",se,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.colordata,(e,a)=>(t.openBlock(),t.createElementBlock("button",{key:a,class:"color-container-specific-color1-container",onClick:o[2]||(o[2]=(...e)=>l.getcolor&&l.getcolor(...e))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.values(n.colordata[a])[0].length,(e,o)=>(t.openBlock(),t.createElementBlock("button",{key:o,class:"color-container-specific-color-checkbox-border"},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:Object.values(n.colordata[a])[0][o]})},null,4)]))),128))]))),128))]),o[9]||(o[9]=t.createElementVNode("p",{class:"color-container-title"},"Standard Colors",-1)),t.createElementVNode("button",ce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.standardcolor,(e,a)=>(t.openBlock(),t.createElementBlock("button",{key:a,class:"color-container-specific-color-checkbox-border",onClick:o[3]||(o[3]=(...e)=>l.getcolor&&l.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:n.standardcolor[a]})},null,4)]))),128))]),t.createElementVNode("button",me,[t.createElementVNode("input",{id:"favcolor",type:"color",name:"favcolor",value:n.recentvalue,class:"favcolor",onChange:o[4]||(o[4]=(...e)=>l.getcolorvalue&&l.getcolorvalue(...e))},null,40,de),t.createElementVNode("p",{class:"color-container-title",onClick:o[5]||(o[5]=(...e)=>l.colorpicker&&l.colorpicker(...e))}," More Colors ")]),!0===n.recent?(t.openBlock(),t.createElementBlock("p",ue," Recent color ")):t.createCommentVNode("v-if",!0),t.createElementVNode("button",fe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.recentcolor,(e,a)=>(t.openBlock(),t.createElementBlock("button",{key:a,class:"color-container-specific-color-checkbox-border",onClick:o[6]||(o[6]=(...e)=>l.getcolor&&l.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:n.recentcolor[a]})},null,4)]))),128))])],8,le)]),_:1},8,["show","top","left","onCloseOverlay"])):t.createCommentVNode("v-if",!0)])},Q.__file="src/components/ColorpaletteComponent.vue";var pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function he(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ge={exports:{}};!function(e){var t,o,a;t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],o="undefined"!=typeof window,a=o&&null!=window.mozInnerScreenX,e.exports=function(e,i,n){if(!o)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var l=n&&n.debug||!1;if(l){var r=document.querySelector("#input-textarea-caret-position-mirror-div");r&&r.parentNode.removeChild(r)}var s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);var c=s.style,m=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,d="INPUT"===e.nodeName;c.whiteSpace="pre-wrap",d||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),t.forEach(function(e){d&&"lineHeight"===e?c.lineHeight=m.height:c[e]=m[e]}),a?e.scrollHeight>parseInt(m.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,i),d&&(s.textContent=s.textContent.replace(/\s/g," "));var u=document.createElement("span");u.textContent=e.value.substring(i)||".",s.appendChild(u);var f={top:u.offsetTop+parseInt(m.borderTopWidth),left:u.offsetLeft+parseInt(m.borderLeftWidth),height:parseInt(m.lineHeight)};return l?u.style.backgroundColor="#aaa":document.body.removeChild(s),f}}(ge);var ye=he(ge.exports);function ve(){return ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},ve.apply(this,arguments)}var be,ke="undefined"!=typeof window&&navigator&&/Win/i.test(navigator.platform),_e="undefined"!=typeof window&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),we=t.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(e){this.codeData=e||""}},content:{immediate:!0,handler:function(){var e=this;this.lineNumbers&&this.$nextTick(function(){e.setLineNumbersHeight()})}},lineNumbers:function(){var e=this;this.$nextTick(function(){e.styleLineNumbers(),e.setLineNumbersHeight()})}},computed:{isEmpty:function(){return 0===this.codeData.length},content:function(){return this.highlight(this.codeData)+"<br />"},lineNumbersCount:function(){return this.codeData.split(/\r\n|\n/).length}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(this.lineNumbers&&this.autoStyleLineNumbers){var e=this.$refs.pre,t=this.$el.querySelector(".prism-editor__line-numbers"),o=window.getComputedStyle(e);this.$nextTick(function(){var a="border-top-left-radius",i="border-bottom-left-radius";if(t){t.style[a]=o[a],t.style[i]=o[i],e.style[a]="0",e.style[i]="0";["background-color","margin-top","padding-top","font-family","font-size","line-height"].forEach(function(e){t.style[e]=o[e]}),t.style["margin-bottom"]="-"+o["padding-top"]}})}},_recordCurrentState:function(){var e=this.$refs.textarea;if(e){var t=e.value,o=e.selectionStart,a=e.selectionEnd;this._recordChange({value:t,selectionStart:o,selectionEnd:a})}},_getLines:function(e,t){return e.substring(0,t).split("\n")},_applyEdits:function(e){var t=this.$refs.textarea,o=this.history.stack[this.history.offset];o&&t&&(this.history.stack[this.history.offset]=ve({},o,{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})),this._recordChange(e),this._updateInput(e)},_recordChange:function(e,t){void 0===t&&(t=!1);var o=this.history,a=o.stack,i=o.offset;if(a.length&&i>-1){this.history.stack=a.slice(0,i+1);var n=this.history.stack.length;if(n>100){var l=n-100;this.history.stack=a.slice(l,n),this.history.offset=Math.max(this.history.offset-l,0)}}var r=Date.now();if(t){var s=this.history.stack[this.history.offset];if(s&&r-s.timestamp<3e3){var c,m,d=/[^a-z0-9]([a-z0-9]+)$/i,u=null===(c=this._getLines(s.value,s.selectionStart).pop())||void 0===c?void 0:c.match(d),f=null===(m=this._getLines(e.value,e.selectionStart).pop())||void 0===m?void 0:m.match(d);if(u&&f&&f[1].startsWith(u[1]))return void(this.history.stack[this.history.offset]=ve({},e,{timestamp:r}))}}this.history.stack.push(ve({},e,{timestamp:r})),this.history.offset++},_updateInput:function(e){var t=this.$refs.textarea;t&&(t.value=e.value,t.selectionStart=e.selectionStart,t.selectionEnd=e.selectionEnd,this.$emit("update:modelValue",e.value))},handleChange:function(e){var t=e.target,o=t.value,a=t.selectionStart,i=t.selectionEnd;this._recordChange({value:o,selectionStart:a,selectionEnd:i},!0),this.$emit("update:modelValue",o)},_undoEdit:function(){var e=this.history,t=e.stack,o=e.offset,a=t[o-1];a&&(this._updateInput(a),this.history.offset=Math.max(o-1,0))},_redoEdit:function(){var e=this.history,t=e.stack,o=e.offset,a=t[o+1];a&&(this._updateInput(a),this.history.offset=Math.min(o+1,t.length-1))},handleKeyDown:function(e){var t=this.tabSize,o=this.insertSpaces,a=this.ignoreTabKey;if(this.$emit("keydown",e),!e.defaultPrevented){27===e.keyCode&&(e.target.blur(),this.$emit("blur",e));var i=e.target,n=i.value,l=i.selectionStart,r=i.selectionEnd,s=(o?" ":"\t").repeat(t);if(9===e.keyCode&&!a&&this.capture)if(e.preventDefault(),e.shiftKey){var c=this._getLines(n,l),m=c.length-1,d=this._getLines(n,r).length-1,u=n.split("\n").map(function(e,t){return t>=m&&t<=d&&e.startsWith(s)?e.substring(s.length):e}).join("\n");if(n!==u){var f=c[m];this._applyEdits({value:u,selectionStart:f.startsWith(s)?l-s.length:l,selectionEnd:r-(n.length-u.length)})}}else if(l!==r){var p=this._getLines(n,l),h=p.length-1,g=this._getLines(n,r).length-1,y=p[h];this._applyEdits({value:n.split("\n").map(function(e,t){return t>=h&&t<=g?s+e:e}).join("\n"),selectionStart:/\S/.test(y)?l+s.length:l,selectionEnd:r+s.length*(g-h+1)})}else{var v=l+s.length;this._applyEdits({value:n.substring(0,l)+s+n.substring(r),selectionStart:v,selectionEnd:v})}else if(8===e.keyCode){var b=l!==r;if(n.substring(0,l).endsWith(s)&&!b){e.preventDefault();var k=l-s.length;this._applyEdits({value:n.substring(0,l-s.length)+n.substring(r),selectionStart:k,selectionEnd:k})}}else if(13===e.keyCode){if(l===r){var _=this._getLines(n,l).pop(),w=null==_?void 0:_.match(/^\s+/);if(w&&w[0]){e.preventDefault();var C="\n"+w[0],S=l+C.length;this._applyEdits({value:n.substring(0,l)+C+n.substring(r),selectionStart:S,selectionEnd:S})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),l!==r&&E&&(e.preventDefault(),this._applyEdits({value:n.substring(0,l)+E[0]+n.substring(l,r)+E[1]+n.substring(r),selectionStart:l,selectionEnd:r+2}))}else!(_e?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(_e?e.metaKey&&90===e.keyCode&&e.shiftKey:ke?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),this._redoEdit()):77!==e.keyCode||!e.ctrlKey||_e&&!e.shiftKey||(e.preventDefault(),this.capture=!this.capture):(e.preventDefault(),this._undoEdit())}}},render:function(){var e=this,o=t.h("div",{class:"prism-editor__line-width-calc",style:"height: 0px; visibility: hidden; pointer-events: none;"},"999"),a=t.h("div",{class:"prism-editor__line-numbers",style:{"min-height":this.lineNumbersHeight},"aria-hidden":"true"},[o,Array.from(Array(this.lineNumbersCount).keys()).map(function(e,o){return t.h("div",{class:"prism-editor__line-number token comment"},""+ ++o)})]),i=t.h("textarea",{ref:"textarea",onInput:this.handleChange,onKeydown:this.handleKeyDown,onClick:function(t){e.$emit("click",t)},onKeyup:function(t){e.$emit("keyup",t)},onFocus:function(t){e.$emit("focus",t)},onBlur:function(t){e.$emit("blur",t)},class:{"prism-editor__textarea":!0,"prism-editor__textarea--empty":this.isEmpty},spellCheck:"false",autocapitalize:"off",autocomplete:"off",autocorrect:"off","data-gramm":"false",placeholder:this.placeholder,"data-testid":"textarea",readonly:this.readonly,value:this.codeData}),n=t.h("pre",{ref:"pre",class:"prism-editor__editor","data-testid":"preview",innerHTML:this.content}),l=t.h("div",{class:"prism-editor__container"},[i,n]);return t.h("div",{class:"prism-editor-wrapper"},[this.lineNumbers&&a,l])}}),Ce={exports:{}},Se={},Ee={exports:{}},Ne={},xe={};function Be(){if(be)return xe;function e(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function t(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function o(o,a){this.__indent_cache=new t(o,a),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return be=1,e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},e.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},e.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},e.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},t.prototype.get_indent_size=function(e,t){var o=this.__base_string_length;return t=t||0,e<0&&(o=0),o+=e*this.__indent_size,o+=t},t.prototype.get_indent_string=function(e,t){var o=this.__base_string;return t=t||0,e<0&&(e=0,o=""),t+=e*this.__indent_size,this.__ensure_cache(t),o+=this.__cache[t]},t.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var e=this.__cache.length,t=0,o="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,o=new Array(t+1).join(this.__indent_string)),e&&(o+=new Array(e+1).join(" ")),this.__cache.push(o)},o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},o.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join("\n");return"\n"!==e&&(o=o.replace(/[\n]/g,e)),o},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},o.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},o.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},o.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},o.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(t,o){for(var a=this.__lines.length-2;a>=0;){var i=this.__lines[a];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==o){this.__lines.splice(a+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}a--}},xe.Output=o,xe}var Ve,Ae={};function Re(){if(Ve)return Ae;return Ve=1,Ae.Token=function(e,t,o,a){this.type=e,this.text=t,this.comments_before=null,this.newlines=o||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null},Ae}var Me,Ie={};function Te(){return Me||(Me=1,function(e){var t="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",i="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",n="(?:"+i+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+o+"])",l="(?:"+i+"|["+t+o+a+"])*";e.identifier=new RegExp(n+l,"g"),e.identifierStart=new RegExp(n),e.identifierMatch=new RegExp("(?:"+i+"|["+t+o+a+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(Ie)),Ie}var $e,De,ze={},Oe={};function qe(){if($e)return Oe;function e(e,o){this.raw_options=t(e,o),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function t(e,t){var a,i={};for(a in e=o(e))a!==t&&(i[a]=e[a]);if(t&&e[t])for(a in e[t])i[a]=e[t][a];return i}function o(e){var t,o={};for(t in e){o[t.replace(/-/g,"_")]=e[t]}return o}return $e=1,e.prototype._get_array=function(e,t){var o=this.raw_options[e],a=t||[];return"object"==typeof o?null!==o&&"function"==typeof o.concat&&(a=o.concat()):"string"==typeof o&&(a=o.split(/[^a-zA-Z0-9_\/\-]+/)),a},e.prototype._get_boolean=function(e,t){var o=this.raw_options[e];return void 0===o?!!t:!!o},e.prototype._get_characters=function(e,t){var o=this.raw_options[e],a=t||"";return"string"==typeof o&&(a=o.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),a},e.prototype._get_number=function(e,t){var o=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var a=parseInt(o,10);return isNaN(a)&&(a=t),a},e.prototype._get_selection=function(e,t,o){var a=this._get_selection_list(e,t,o);if(1!==a.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return a[0]},e.prototype._get_selection_list=function(e,t,o){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(o=o||[t[0]],!this._is_valid_selection(o,t))throw new Error("Invalid Default Value!");var a=this._get_array(e,o);if(!this._is_valid_selection(a,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return a},e.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return-1===t.indexOf(e)})},Oe.Options=e,Oe.normalizeOpts=o,Oe.mergeOpts=t,Oe}function Pe(){if(De)return ze;De=1;var e=qe().Options,t=["before-newline","after-newline","preserve-newline"];function o(o){e.call(this,o,"js");var a=this.raw_options.brace_style||null;"expand-strict"===a?this.raw_options.brace_style="expand":"collapse-preserve-inline"===a?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var n=0;n<i.length;n++)"preserve-inline"===i[n]?this.brace_preserve_inline=!0:this.brace_style=i[n];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return o.prototype=new e,ze.Options=o,ze}var Le,je={},Fe={};function Ue(){if(Le)return Fe;Le=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},t.prototype.__match=function(t,o){t.lastIndex=o;var a=t.exec(this.__input);return!a||e&&t.sticky||a.index!==o&&(a=null),a},t.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},t.prototype.testChar=function(e,t){var o=this.peek(t);return e.lastIndex=0,null!==o&&e.test(o)},t.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},t.prototype.read=function(e,t,o){var a,i="";return e&&(a=this.match(e))&&(i+=a[0]),!t||!a&&e||(i+=this.readUntil(t,o)),i},t.prototype.readUntil=function(e,t){var o,a=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(a=i.index,t&&(a+=i[0].length)):a=this.__input_length,o=this.__input.substring(this.__position,a),this.__position=a,o},t.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},t.prototype.get_regexp=function(t,o){var a=null,i="g";return o&&e&&(i="y"),"string"==typeof t&&""!==t?a=new RegExp(t,i):t&&(a=new RegExp(t.source,i)),a},t.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(e){var t=this.__position,o=this.readUntilAfter(e);return this.__position=t,o},t.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},Fe.InputScanner=t,Fe}var Ke,Ge={},He={};var We,Je,Ze,Ye={},Xe={};function Qe(){if(We)return Xe;function e(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}return We=1,e.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},Xe.Pattern=e,Xe}function et(){if(Ze)return Ge;Ze=1;var e=Ue().InputScanner,t=Re().Token,o=function(){if(Ke)return He;function e(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return Ke=1,e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},e.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},e.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},He.TokenStream=e,He}().TokenStream,a=function(){if(Je)return Ye;Je=1;var e=Qe().Pattern;function t(t,o){e.call(this,t,o),o?this._line_regexp=this._input.get_regexp(o._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return t.prototype=new e,t.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},t.prototype.matching=function(e,t){var o=this._create();return o.__set_whitespace_patterns(e,t),o._update(),o},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(e,t){e.lastIndex=0;for(var o=0,a=[],i=e.exec(t);i;)a.push(t.substring(o,i.index)),o=i.index+i[0].length,i=e.exec(t);return o<t.length?a.push(t.substring(o,t.length)):a.push(""),a},Ye.WhitespacePattern=t,Ye}().WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},n=function(t,o){this._input=new e(t),this._options=o||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};return n.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new o,this._reset();for(var a=new t(i.START,""),n=null,l=[],r=new o;a.type!==i.EOF;){for(e=this._get_next_token(a,n);this._is_comment(e);)r.add(e),e=this._get_next_token(a,n);r.isEmpty()||(e.comments_before=r,r=new o),e.parent=n,this._is_opening(e)?(l.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=l.pop(),e.parent=n),e.previous=a,a.next=e,this.__tokens.add(e),a=e}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(e,t){this._readWhitespace();var o=this._input.read(/.+/g);return o?this._create_token(i.RAW,o):this._create_token(i.EOF,"")},n.prototype._is_comment=function(e){return!1},n.prototype._is_opening=function(e){return!1},n.prototype._is_closing=function(e,t){return!1},n.prototype._create_token=function(e,o){return new t(e,o,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Ge.Tokenizer=n,Ge.TOKEN=i,Ge}var tt,ot={};function at(){if(tt)return ot;function e(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}return tt=1,e.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(e);o;)t[o[1]]=o[2],o=this.__directive_pattern.exec(e);return t},e.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},ot.Directives=e,ot}var it,nt,lt,rt,st={};function ct(){if(it)return st;it=1;var e=Qe().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function o(o,a){e.call(this,o,a),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),a&&(this.__template_pattern=this._input.get_regexp(a.__template_pattern),this._excluded=Object.assign(this._excluded,a._excluded),this._disabled=Object.assign(this._disabled,a._disabled));var i=new e(o);this.__patterns={handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:i.starting_with(/{{{/).until_after(/}}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),php:i.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/),smarty:i.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:i.starting_with(/{\*/).until_after(/\*}/),smarty_literal:i.starting_with(/{literal}/).until_after(/{\/literal}/)}}return o.prototype=new e,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},o.prototype.read_options=function(e){var o=this._create();for(var a in t)o._disabled[a]=-1===e.templating.indexOf(a);return o._update(),o},o.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},o.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},o.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},o.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var o=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==o||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==o||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},st.TemplatablePattern=o,st}function mt(){if(nt)return je;nt=1;var e=Ue().InputScanner,t=et().Tokenizer,o=et().TOKEN,a=at().Directives,i=Te(),n=Qe().Pattern,l=ct().TemplatablePattern;function r(e,t){return-1!==t.indexOf(e)}var s={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},c=new a(/\/\*/,/\*\//),m=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,d=/[0-9]/,u=/[^\d\.]/,f=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),p=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";p=(p="\\?\\.(?!\\d) "+(p=p.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var h,g=new RegExp(p),y="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),v=y.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),b=new RegExp("^(?:"+v.join("|")+")$"),k=function(e,o){t.call(this,e,o),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var a=new n(this._input),r=new l(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(i.identifier).matching(i.identifierMatch),number:a.matching(m),punct:a.matching(g),comment:a.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:a.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:a.matching(/<!--/),html_comment_end:a.matching(/-->/),include:a.starting_with(/#include/).until_after(i.lineBreak),shebang:a.starting_with(/#!/).until_after(i.lineBreak),xml:a.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}};return(k.prototype=new t)._is_comment=function(e){return e.type===s.COMMENT||e.type===s.BLOCK_COMMENT||e.type===s.UNKNOWN},k.prototype._is_opening=function(e){return e.type===s.START_BLOCK||e.type===s.START_EXPR},k.prototype._is_closing=function(e,t){return(e.type===s.END_BLOCK||e.type===s.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},k.prototype._reset=function(){h=!1},k.prototype._get_next_token=function(e,t){var o=null;this._readWhitespace();var a=this._input.peek();return null===a?this._create_token(s.EOF,""):o=(o=(o=(o=(o=(o=(o=(o=(o=(o=o||this._read_non_javascript(a))||this._read_string(a))||this._read_pair(a,this._input.peek(1)))||this._read_word(e))||this._read_singles(a))||this._read_comment(a))||this._read_regexp(a,e))||this._read_xml(a,e))||this._read_punctuation())||this._create_token(s.UNKNOWN,this._input.next())},k.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(i.allLineBreaks,"\n"),e.type!==s.DOT&&(e.type!==s.RESERVED||"set"!==e.text&&"get"!==e.text)&&b.test(t)?"in"!==t&&"of"!==t||e.type!==s.WORD&&e.type!==s.STRING?this._create_token(s.RESERVED,t):this._create_token(s.OPERATOR,t):this._create_token(s.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(s.WORD,t):void 0},k.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(s.START_EXPR,e):")"===e||"]"===e?t=this._create_token(s.END_EXPR,e):"{"===e?t=this._create_token(s.START_BLOCK,e):"}"===e?t=this._create_token(s.END_BLOCK,e):";"===e?t=this._create_token(s.SEMICOLON,e):"."===e&&u.test(this._input.peek(1))?t=this._create_token(s.DOT,e):","===e&&(t=this._create_token(s.COMMA,e)),t&&this._input.next(),t},k.prototype._read_pair=function(e,t){var o=null;return"#"===e&&"{"===t&&(o=this._create_token(s.START_BLOCK,e+t)),o&&(this._input.next(),this._input.next()),o},k.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(s.EQUALS,e):"?."===e?this._create_token(s.DOT,e):this._create_token(s.OPERATOR,e)},k.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read()))return this._create_token(s.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read())return this._create_token(s.UNKNOWN,t.trim()+"\n");e=this._input.next();var o="#";if(this._input.hasNext()&&this._input.testChar(d)){do{o+=e=this._input.next()}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(o+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(o+="{}",this._input.next(),this._input.next())),this._create_token(s.WORD,o)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)t+=this._input.next();return h=!0,this._create_token(s.COMMENT,t)}}else if(h&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return h=!1,this._create_token(s.COMMENT,t);return null},k.prototype._read_comment=function(e){var t=null;if("/"===e){var o="";if("*"===this._input.peek(1)){o=this.__patterns.block_comment.read();var a=c.get_directives(o);a&&"start"===a.ignore&&(o+=c.readIgnored(this._input)),o=o.replace(i.allLineBreaks,"\n"),(t=this._create_token(s.BLOCK_COMMENT,o)).directives=a}else"/"===this._input.peek(1)&&(o=this.__patterns.comment.read(),t=this._create_token(s.COMMENT,o))}return t},k.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var o=this._input.next();return this.has_char_escapes=!1,o+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(o=function(t){var o="",a=0,i=new e(t),n=null;for(;i.hasNext();)if((n=i.match(/([\s]|[^\\]|\\\\)+/g))&&(o+=n[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())n=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){o+="\\",i.hasNext()&&(o+=i.next());continue}(n=i.match(/u([0-9A-Fa-f]{4})/g))||(n=i.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!n)return t;if((a=parseInt(n[1],16))>126&&a<=255&&0===n[0].indexOf("x"))return t;o+=a>=0&&a<32||a>1114111?"\\"+n[0]:34===a||39===a||92===a?"\\"+String.fromCharCode(a):String.fromCharCode(a)}return o}(o)),this._input.peek()===t&&(o+=this._input.next()),o=o.replace(i.allLineBreaks,"\n"),this._create_token(s.STRING,o)}return null},k.prototype._allow_regexp_or_xml=function(e){return e.type===s.RESERVED&&r(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===s.END_EXPR&&")"===e.text&&e.opened.previous.type===s.RESERVED&&r(e.opened.previous.text,["if","while","for"])||r(e.type,[s.COMMENT,s.START_EXPR,s.START_BLOCK,s.START,s.END_BLOCK,s.OPERATOR,s.EQUALS,s.EOF,s.SEMICOLON,s.COMMA])},k.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var o=this._input.next(),a=!1,n=!1;this._input.hasNext()&&(a||n||this._input.peek()!==e)&&!this._input.testChar(i.newline);)o+=this._input.peek(),a?a=!1:(a="\\"===this._input.peek(),"["===this._input.peek()?n=!0:"]"===this._input.peek()&&(n=!1)),this._input.next();return this._input.peek()===e&&(o+=this._input.next(),o+=this._input.read(i.identifier)),this._create_token(s.STRING,o)}return null},k.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var o="",a=this.__patterns.xml.read_match();if(a){for(var n=a[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),l=0===n.indexOf("{"),r=0;a;){var c=!!a[1],m=a[2];if(!(!!a[a.length-1]||"![CDATA["===m.slice(0,8))&&(m===n||l&&m.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(c?--r:++r),o+=a[0],r<=0)break;a=this.__patterns.xml.read_match()}return a||(o+=this._input.match(/[\s\S]*/g)[0]),o=o.replace(i.allLineBreaks,"\n"),this._create_token(s.STRING,o)}}return null},k.prototype._read_string_recursive=function(e,t,o){var a,n;"'"===e?n=this.__patterns.single_quote:'"'===e?n=this.__patterns.double_quote:"`"===e?n=this.__patterns.template_text:"}"===e&&(n=this.__patterns.template_expression);for(var l=n.read(),r="";this._input.hasNext();){if((r=this._input.next())===e||!t&&i.newline.test(r)){this._input.back();break}"\\"===r&&this._input.hasNext()?("x"===(a=this._input.peek())||"u"===a?this.has_char_escapes=!0:"\r"===a&&"\n"===this._input.peek(1)&&this._input.next(),r+=this._input.next()):o&&("${"===o&&"$"===r&&"{"===this._input.peek()&&(r+=this._input.next()),o===r&&(r+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(r+=this._input.next()))),l+=r+=n.read()}return l},je.Tokenizer=k,je.TOKEN=s,je.positionable_operators=f.slice(),je.line_starters=y.slice(),je}function dt(){if(lt)return Ne;lt=1;var e=Be().Output,t=Re().Token,o=Te(),a=Pe().Options,i=mt().Tokenizer,n=mt().line_starters,l=mt().positionable_operators,r=mt().TOKEN;function s(e,t){return-1!==t.indexOf(e)}function c(e){return e.replace(/^\s+/g,"")}function m(e,t){return e&&e.type===r.RESERVED&&e.text===t}function d(e,t){return e&&e.type===r.RESERVED&&s(e.text,t)}var u=["case","return","do","if","throw","else","await","break","continue","async"],f=function(e){for(var t={},o=0;o<e.length;o++)t[e[o].replace(/-/g,"_")]=e[o];return t}(["before-newline","after-newline","preserve-newline"]),p=[f.before_newline,f.preserve_newline],h="BlockStatement",g="Statement",y="ObjectLiteral",v="ArrayLiteral",b="ForInitializer",k="Conditional",_="Expression";function w(e,t){t.multiline_frame||t.mode===b||t.mode===k||e.remove_indent(t.start_line_index)}function C(e){return e===v}function S(e){return s(e,[_,b,k])}function E(e,t){t=t||{},this._source_text=e||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new a(t)}E.prototype.create_flags=function(e,o){var a=0;return e&&(a=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>a&&(a=e.line_indent_level)),{mode:o,parent:e,last_token:e?e.last_token:new t(r.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:a,alignment:0,line_indent_level:e?e.line_indent_level:a,start_line_index:this._output.get_line_number(),ternary_depth:0}},E.prototype._reset=function(t){var o=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,o),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(h);var a=new i(t,this._options);return this._tokens=a.tokenize(),t},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._reset(this._source_text),t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&o.lineBreak.test(e||"")&&(t=e.match(o.lineBreak)[0]));for(var a=this._tokens.next();a;)this.handle_token(a),this._last_last_text=this._flags.last_token.text,this._flags.last_token=a,a=this._tokens.next();return this._output.get_code(t)},E.prototype.handle_token=function(e,t){e.type===r.START_EXPR?this.handle_start_expr(e):e.type===r.END_EXPR?this.handle_end_expr(e):e.type===r.START_BLOCK?this.handle_start_block(e):e.type===r.END_BLOCK?this.handle_end_block(e):e.type===r.WORD||e.type===r.RESERVED?this.handle_word(e):e.type===r.SEMICOLON?this.handle_semicolon(e):e.type===r.STRING?this.handle_string(e):e.type===r.EQUALS?this.handle_equals(e):e.type===r.OPERATOR?this.handle_operator(e):e.type===r.COMMA?this.handle_comma(e):e.type===r.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===r.COMMENT?this.handle_comment(e,t):e.type===r.DOT?this.handle_dot(e):e.type===r.EOF?this.handle_eof(e):(e.type,r.UNKNOWN,this.handle_unknown(e,t))},E.prototype.handle_whitespace_and_comments=function(e,t){var o=e.newlines,a=this._options.keep_array_indentation&&C(this._flags.mode);if(e.comments_before)for(var i=e.comments_before.next();i;)this.handle_whitespace_and_comments(i,t),this.handle_token(i,t),i=e.comments_before.next();if(a)for(var n=0;n<o;n+=1)this.print_newline(n>0,t);else if(this._options.max_preserve_newlines&&o>this._options.max_preserve_newlines&&(o=this._options.max_preserve_newlines),this._options.preserve_newlines&&o>1){this.print_newline(!1,t);for(var l=1;l<o;l+=1)this.print_newline(!0,t)}};var N=["async","break","continue","return","throw","yield"];return E.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var o=this._options.preserve_newlines&&e.newlines||t;if(s(this._flags.last_token.text,l)||s(e.text,l)){var a=s(this._flags.last_token.text,l)&&s(this._options.operator_position,p)||s(e.text,l);o=o&&a}if(o)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(d(this._flags.last_token,N))return;this._output.set_wrap_point()}}},E.prototype.print_newline=function(e,t){if(!t&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==r.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var o=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&m(o,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},E.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||C(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},E.prototype.print_token=function(e){if(this._output.raw)this._output.add_raw_token(e);else{if(this._options.comma_first&&e.previous&&e.previous.type===r.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},E.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===g&&w(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.start_of_object_property=function(){return this._flags.parent.mode===y&&this._flags.mode===g&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"]))},E.prototype.start_of_statement=function(e){var t=!1;return!!(t=(t=(t=(t=(t=(t=(t=t||d(this._flags.last_token,["var","let","const"])&&e.type===r.WORD)||m(this._flags.last_token,"do"))||!(this._flags.parent.mode===y&&this._flags.mode===g)&&d(this._flags.last_token,N)&&!e.newlines)||m(this._flags.last_token,"else")&&!(m(e,"if")&&!e.comments_before))||this._flags.last_token.type===r.END_EXPR&&(this._previous_flags.mode===b||this._previous_flags.mode===k))||this._flags.last_token.type===r.WORD&&this._flags.mode===h&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==r.WORD&&e.type!==r.RESERVED)||this._flags.mode===y&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"])))&&(this.set_mode(g),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,d(e,["do","for","if","while"])),!0)},E.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=_;if("["===e.text){if(this._flags.last_token.type===r.WORD||")"===this._flags.last_token.text)return d(this._flags.last_token,n)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=v,C(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),s(this._flags.last_token.type,[r.START_EXPR,r.END_EXPR,r.WORD,r.OPERATOR,r.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===r.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=b):s(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=k):s(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(s(this._flags.last_token.text,n)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===r.WORD){this._output.space_before_token=!1;var o=this._tokens.peek(-3);if(this._options.space_after_named_function&&o){var a=this._tokens.peek(-4);d(o,["async","function"])||"*"===o.text&&d(a,["async","function"])?this._output.space_before_token=!0:this._flags.mode===y?"{"!==o.text&&","!==o.text&&("*"!==o.text||"{"!==a.text&&","!==a.text)||(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===r.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(s(this._last_last_text,["function","yield"])||this._flags.mode===y&&s(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===r.START_BLOCK?this.print_newline():this._flags.last_token.type!==r.END_EXPR&&this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==r.COMMA||this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},E.prototype.handle_end_expr=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&C(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==r.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),w(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===k&&(this._previous_flags.mode=_,this._flags.do_block=!1,this._flags.do_while=!1)},E.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),o=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===r.END_EXPR?(this.set_mode(h),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(h):o&&(s(o.text,[":",","])&&s(t.type,[r.STRING,r.WORD,r.RESERVED])||s(t.text,["get","set","..."])&&s(o.type,[r.WORD,r.RESERVED]))?s(this._last_last_text,["class","interface"])&&!s(o.text,[":",","])?this.set_mode(h):this.set_mode(y):this._flags.last_token.type===r.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(h):s(this._flags.last_token.type,[r.EQUALS,r.START_EXPR,r.COMMA,r.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"])?this.set_mode(y):this.set_mode(h),this._flags.last_token&&d(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var a=!t.comments_before&&"}"===t.text,i=a&&"function"===this._flags.last_word&&this._flags.last_token.type===r.END_EXPR;if(this._options.brace_preserve_inline){var n=0,l=null;this._flags.inline_frame=!0;do{if(n+=1,(l=this._tokens.peek(n-1)).newlines){this._flags.inline_frame=!1;break}}while(l.type!==r.EOF&&(l.type!==r.END_BLOCK||l.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==r.OPERATOR&&(i||this._flags.last_token.type===r.EQUALS||d(this._flags.last_token,u)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!C(this._previous_flags.mode)||this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.COMMA||((this._flags.last_token.type===r.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==r.OPERATOR&&this._flags.last_token.type!==r.START_EXPR&&(s(this._flags.last_token.type,[r.START_BLOCK,r.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),a||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},E.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===g;)this.restore_mode();var t=this._flags.last_token.type===r.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(C(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)},E.prototype.handle_word=function(e){if(e.type===r.RESERVED)if(s(e.text,["set","get"])&&this._flags.mode!==y)e.type=r.WORD;else if("import"===e.text&&s(this._tokens.peek().text,["(","."]))e.type=r.WORD;else if(s(e.text,["as","from"])&&!this._flags.import_block)e.type=r.WORD;else if(this._flags.mode===y){":"===this._tokens.peek().text&&(e.type=r.WORD)}if(this.start_of_statement(e)?d(this._flags.last_token,["var","let","const"])&&e.type===r.WORD&&(this._flags.declaration_statement=!0):!e.newlines||S(this._flags.mode)||this._flags.last_token.type===r.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===r.EQUALS||!this._options.preserve_newlines&&d(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(m(e,"while"))return this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&m(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===g;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&d(e,["case","default"]))return this.print_newline(),this._flags.case_block||!this._flags.case_body&&!this._options.jslint_happy||this.deindent(),this._flags.case_body=!1,this.print_token(e),void(this._flags.in_case=!0);if(this._flags.last_token.type!==r.COMMA&&this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.EQUALS&&this._flags.last_token.type!==r.OPERATOR||this.start_of_object_property()||s(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===y||this.allow_wrap_or_preserved_newline(e),m(e,"function"))return(s(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!s(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==r.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,N)||m(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===r.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!S(this._flags.mode)&&!C(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var t="NONE";(this._flags.last_token.type===r.END_BLOCK?this._previous_flags.inline_frame?t="SPACE":d(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?t="NEWLINE":(t="SPACE",this._output.space_before_token=!0):t="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&this._flags.mode===h?t="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&S(this._flags.mode)?t="SPACE":this._flags.last_token.type===r.STRING?t="NEWLINE":this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||"*"===this._flags.last_token.text&&(s(this._last_last_text,["function","yield"])||this._flags.mode===y&&s(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===r.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===r.END_EXPR&&(this._output.space_before_token=!0,t="NEWLINE"),d(e,n)&&")"!==this._flags.last_token.text&&(t=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),d(e,["else","catch","finally"]))?(this._flags.last_token.type!==r.END_BLOCK||this._previous_flags.mode!==h||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===t?d(this._flags.last_token,u)||"declare"===this._flags.last_token.text&&d(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==r.END_EXPR?this._flags.last_token.type===r.START_EXPR&&d(e,["var","let","const"])||":"===this._flags.last_token.text||(m(e,"if")&&m(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(e,n)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&C(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===t&&(this._output.space_before_token=!0);!e.previous||e.previous.type!==r.WORD&&e.previous.type!==r.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===r.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&m(e,"from")&&(this._flags.import_block=!1))},E.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&m(t,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},E.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==r.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==r.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},E.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},E.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(S(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===y||this._flags.mode===g&&this._flags.parent.mode===y?(this._flags.mode===g&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},E.prototype.handle_operator=function(e){var t="*"===e.text&&(d(this._flags.last_token,["function","yield"])||s(this._flags.last_token.type,[r.START_BLOCK,r.COMMA,r.END_BLOCK,r.SEMICOLON])),o=s(e.text,["-","+"])&&(s(this._flags.last_token.type,[r.START_BLOCK,r.START_EXPR,r.EQUALS,r.OPERATOR])||s(this._flags.last_token.text,n)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var a=!t;this.handle_whitespace_and_comments(e,a)}if("*"!==e.text||this._flags.last_token.type!==r.DOT)if("::"!==e.text)if(s(e.text,["-","+"])&&this.start_of_object_property())this.print_token(e);else{if(this._flags.last_token.type===r.OPERATOR&&s(this._options.operator_position,p)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==r.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var i=!0,c=!0,m=!1;if(":"===e.text?0===this._flags.ternary_depth?i=!1:(this._flags.ternary_depth-=1,m=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!o&&!t&&this._options.preserve_newlines&&s(e.text,l)){var y=":"===e.text,v=y&&m,b=y&&!m;switch(this._options.operator_position){case f.before_newline:return this._output.space_before_token=!b,this.print_token(e),y&&!v||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case f.after_newline:return this._output.space_before_token=!0,!y||v?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case f.preserve_newline:return b||this.allow_wrap_or_preserved_newline(e),i=!(this._output.just_added_newline()||b),this._output.space_before_token=i,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),i=!1;var k=this._tokens.peek();c=k&&s(k.type,[r.WORD,r.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),i=this._flags.last_token.type===r.START_BLOCK,c=!1;else if(s(e.text,["--","++","!","~"])||o){if(this._flags.last_token.type!==r.COMMA&&this._flags.last_token.type!==r.START_EXPR||this.allow_wrap_or_preserved_newline(e),i=!1,c=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var _=d(this._flags.last_token,u)&&e.newlines;_&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(_,!0)}";"===this._flags.last_token.text&&S(this._flags.mode)&&(i=!0),this._flags.last_token.type===r.RESERVED?i=!0:this._flags.last_token.type===r.END_EXPR?i=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===r.OPERATOR&&(i=s(e.text,["--","-","++","+"])&&s(this._flags.last_token.text,["--","-","++","+"]),s(e.text,["+","-"])&&s(this._flags.last_token.text,["--","++"])&&(c=!0)),(this._flags.mode!==h||this._flags.inline_frame)&&this._flags.mode!==g||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||i,this.print_token(e),this._output.space_before_token=c}else this.print_token(e);else this.print_token(e)},E.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):o.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},E.prototype.print_block_commment=function(e,t){var a,i=function(e){for(var t=[],a=(e=e.replace(o.allLineBreaks,"\n")).indexOf("\n");-1!==a;)t.push(e.substring(0,a)),a=(e=e.substring(a+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),n=!1,l=!1,r=e.whitespace_before,s=r.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(i[0]),this.print_newline(!1,t),i.length>1){for(n=function(e,t){for(var o=0;o<e.length;o++)if(e[o].trim().charAt(0)!==t)return!1;return!0}(i=i.slice(1),"*"),l=function(e,t){for(var o,a=0,i=e.length;a<i;a++)if((o=e[a])&&0!==o.indexOf(t))return!1;return!0}(i,r),n&&(this._flags.alignment=1),a=0;a<i.length;a++)n?(this.print_token_line_indentation(e),this._output.add_token(c(i[a]))):l&&i[a]?(this.print_token_line_indentation(e),this._output.add_token(i[a].substring(s))):(this._output.current_line.set_indent(-1),this._output.add_token(i[a])),this.print_newline(!1,t);this._flags.alignment=0}},E.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)},E.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),d(this._flags.last_token,u)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(e)},E.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},E.prototype.handle_eof=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e)},Ne.Beautifier=E,Ne}var ut,ft,pt,ht={exports:{}},gt={},yt={};function vt(){if(ut)return yt;ut=1;var e=qe().Options;function t(t){e.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var o=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||o;var a=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var i=0;i<a.length;i++)"expand"!==a[i]?this.brace_style="collapse":this.brace_style=a[i]}return t.prototype=new e,yt.Options=t,yt}function bt(){if(pt)return ht.exports;pt=1;var e=function(){if(ft)return gt;ft=1;var e=vt().Options,t=Be().Output,o=Ue().InputScanner,a=new(0,at().Directives)(/\/\*/,/\*\//),i=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,l=/\s/,r=/(?:\s|\n)+/g,s=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function m(t,o){this._source_text=t||"",this._options=new e(o),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return m.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},m.prototype.eatWhitespace=function(e){for(var t=l.test(this._input.peek()),o=0;l.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===o||o<this._options.max_preserve_newlines)&&(o++,this._output.add_new_line(!0));return t},m.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,o=this._input.peek(t);o;){if("{"===o)return!0;if("("===o)e+=1;else if(")"===o){if(0===e)return!1;e-=1}else if(";"===o||"}"===o)return!1;t++,o=this._input.peek(t)}return!1},m.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},m.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},m.prototype.indent=function(){this._indentLevel++},m.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,m=this._options.eol;"auto"===m&&(m="\n",e&&i.test(e||"")&&(m=e.match(i)[0]));var d=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0];this._output=new t(this._options,d),this._input=new o(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var u,f,p=0,h=!1,g=!1,y=!1,v=!1,b=!1,k=this._ch,_=!1;u=""!==this._input.read(r),f=k,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),k=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(s),C=a.get_directives(w);C&&"start"===C.ignore&&(w+=a.readIgnored(this._input)),this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(u),this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===p&&-1!==S.indexOf(":")&&(g=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(u),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var E=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);E.match(/[ :]$/)&&(E=this.eatString(": ").replace(/\s+$/,""),this.print_string(E),this._output.space_before_token=!0),0===p&&-1!==E.indexOf(":")?(g=!0,this.indent()):E in this.NESTED_AT_RULE?(this._nestedLevel+=1,E in this.CONDITIONAL_GROUP_RULE&&(y=!0)):0!==p||g||(v=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(u),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),v=!1,y?(y=!1,h=this._indentLevel>=this._nestedLevel):h=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&h&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===f?this._output.space_before_token=!1:","!==f&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===f&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),h=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var N=0;N<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;N++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[N])){_=!0;break}!h&&!y||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||v||0!==p?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var x='"'===f||"'"===f;this.preserveSingleSpace(x||u),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)_=!1,0===p?(g&&(this.outdent(),g=!1),v=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),p++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),p&&(p--,this.outdent()));else{var B=!1;this._input.lookBack("with")&&(B=!0),this.preserveSingleSpace(u||B),this.print_string(this._ch),g&&"$"===f&&this._options.selector_separator_newline?(this._output.add_new_line(),b=!0):(this.eatWhitespace(),p++,this.indent())}else if(")"===this._ch)p&&(p--,this.outdent()),b&&";"===this._input.peek()&&this._options.selector_separator_newline&&(b=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g&&!b||0!==p||v?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==p)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(u),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),l.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var V='"'===f||"'"===f;this.preserveSingleSpace(V||u),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&_&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&l.test(this._ch)&&(this._ch=""));return this._output.get_code(m)},gt.Beautifier=m,gt}().Beautifier,t=vt().Options;return ht.exports=function(t,o){return new e(t,o).beautify()},ht.exports.defaultOptions=function(){return new t},ht.exports}var kt,_t={exports:{}},wt={},Ct={};function St(){if(kt)return Ct;kt=1;var e=qe().Options;function t(t){e.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return t.prototype=new e,Ct.Options=t,Ct}var Et,Nt,xt,Bt,Vt={};function At(){if(Et)return Vt;Et=1;var e=et().Tokenizer,t=et().TOKEN,o=at().Directives,a=ct().TemplatablePattern,i=Qe().Pattern,n={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},l=new o(/<\!--/,/-->/),r=function(t,o){e.call(this,t,o),this._current_tag_name="";var n=new a(this._input).read_options(this._options),l=new i(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:l.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:l.starting_with(/{{!--/).until_after(/--}}/),handlebars:l.starting_with(/{{/).until_after(/}}/),handlebars_open:l.until(/[\n\r\t }]/),handlebars_raw_close:l.until(/}}/),comment:l.starting_with(/<!--/).until_after(/-->/),cdata:l.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:l.starting_with(/<!\[/).until_after(/]>/),processing:l.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var r=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=l.matching(r).until_after(r)}};return(r.prototype=new e)._is_comment=function(e){return!1},r.prototype._is_opening=function(e){return e.type===n.TAG_OPEN||e.type===n.CONTROL_FLOW_OPEN},r.prototype._is_closing=function(e,t){return e.type===n.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===n.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},r.prototype._reset=function(){this._current_tag_name=""},r.prototype._get_next_token=function(e,t){var o=null;this._readWhitespace();var a=this._input.peek();return null===a?this._create_token(n.EOF,""):o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=o||this._read_open_handlebars(a,t))||this._read_attribute(a,e,t))||this._read_close(a,t))||this._read_script_and_style(a,e))||this._read_control_flows(a,t))||this._read_raw_content(a,e,t))||this._read_content_word(a,t))||this._read_comment_or_cdata(a))||this._read_processing(a))||this._read_open(a,t))||this._create_token(n.UNKNOWN,this._input.next())},r.prototype._read_comment_or_cdata=function(e){var t=null,o=null,a=null;"<"===e&&("!"===this._input.peek(1)&&((o=this.__patterns.comment.read())?(a=l.get_directives(o))&&"start"===a.ignore&&(o+=l.readIgnored(this._input)):o=this.__patterns.cdata.read()),o&&((t=this._create_token(n.COMMENT,o)).directives=a));return t},r.prototype._read_processing=function(e){var t=null,o=null;if("<"===e){var a=this._input.peek(1);"!"!==a&&"?"!==a||(o=(o=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),o&&((t=this._create_token(n.COMMENT,o)).directives=null)}return t},r.prototype._read_open=function(e,t){var o=null,a=null;return t&&t.type!==n.CONTROL_FLOW_OPEN||"<"===e&&(o=this._input.next(),"/"===this._input.peek()&&(o+=this._input.next()),o+=this.__patterns.element_name.read(),a=this._create_token(n.TAG_OPEN,o)),a},r.prototype._read_open_handlebars=function(e,t){var o=null,a=null;return t&&t.type!==n.CONTROL_FLOW_OPEN||(this._options.templating.includes("angular")||this._options.indent_handlebars)&&"{"===e&&"{"===this._input.peek(1)&&(this._options.indent_handlebars&&"!"===this._input.peek(2)?(o=(o=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),a=this._create_token(n.COMMENT,o)):(o=this.__patterns.handlebars_open.read(),a=this._create_token(n.TAG_OPEN,o))),a},r.prototype._read_control_flows=function(e,t){var o="",a=null;if(!this._options.templating.includes("angular"))return a;if("@"===e){if(""===(o=this.__patterns.angular_control_flow_start.read()))return a;for(var i=o.endsWith("(")?1:0,l=0;!o.endsWith("{")||i!==l;){var r=this._input.next();if(null===r)break;"("===r?i++:")"===r&&l++,o+=r}a=this._create_token(n.CONTROL_FLOW_OPEN,o)}else"}"===e&&t&&t.type===n.CONTROL_FLOW_OPEN&&(o=this._input.next(),a=this._create_token(n.CONTROL_FLOW_CLOSE,o));return a},r.prototype._read_close=function(e,t){var o=null,a=null;return t&&t.type===n.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(o=this._input.next(),"/"===e&&(o+=this._input.next()),a=this._create_token(n.TAG_CLOSE,o)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),a=this._create_token(n.TAG_CLOSE,"}}"))),a},r.prototype._read_attribute=function(e,t,o){var a=null,i="";if(o&&"<"===o.text[0])if("="===e)a=this._create_token(n.EQUALS,this._input.next());else if('"'===e||"'"===e){var l=this._input.next();l+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),a=this._create_token(n.VALUE,l)}else(i=this.__patterns.attribute.read())&&(a=t.type===n.EQUALS?this._create_token(n.VALUE,i):this._create_token(n.ATTRIBUTE,i));return a},r.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},r.prototype._read_raw_content=function(e,t,o){var a="";if(o&&"{"===o.text[0])a=this.__patterns.handlebars_raw_close.read();else if(t.type===n.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var i=t.opened.text.substr(1).toLowerCase();this._is_content_unformatted(i)&&(a=this._input.readUntil(new RegExp("</"+i+"[\\n\\r\\t ]*?>","ig")))}return a?this._create_token(n.TEXT,a):null},r.prototype._read_script_and_style=function(e,t){if(t.type===n.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var o=t.opened.text.substr(1).toLowerCase();if("script"===o||"style"===o){var a=this._read_comment_or_cdata(e);if(a)return a.type=n.TEXT,a;var i=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig"));if(i)return this._create_token(n.TEXT,i)}}return null},r.prototype._read_content_word=function(e,t){var o="";return this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(o=this.__patterns.unformatted_content_delimiter.read()),o||(o=t&&t.type===n.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),o?this._create_token(n.TEXT,o):null},Vt.Tokenizer=r,Vt.TOKEN=n,Vt}function Rt(){if(Nt)return wt;Nt=1;var e=St().Options,t=Be().Output,o=At().Tokenizer,a=At().TOKEN,i=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,l=function(e,o){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new t(e,o)};l.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},l.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},l.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},l.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},l.prototype.print_preserved_newlines=function(e){var t=0;e.type!==a.TEXT&&e.previous.type!==a.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var o=0;o<t;o++)this.print_newline(o>0);return 0!==t},l.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},l.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},l.prototype.print_newline=function(e){this._output.add_new_line(e)},l.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},l.prototype.indent=function(){this.indent_level++},l.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},l.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var r=function(e,t){var o=null,i=null;return t.closed?("script"===e?o="text/javascript":"style"===e&&(o="text/css"),o=function(e){for(var t=null,o=e.next;o.type!==a.EOF&&e.closed!==o;){if(o.type===a.ATTRIBUTE&&"type"===o.text){o.next&&o.next.type===a.EQUALS&&o.next.next&&o.next.next.type===a.VALUE&&(t=o.next.next.text);break}o=o.next}return t}(t)||o,o.search("text/css")>-1?i="css":o.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":o.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":o.search(/test\/null/)>-1&&(i="null"),i):null};function s(e,t){return-1!==t.indexOf(e)}function c(e,t,o){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=o||0,this.parser_token=t||null}function m(e){this._printer=e,this._current_frame=null}function d(t,o,a,i){this._source_text=t||"",o=o||{},this._js_beautify=a,this._css_beautify=i,this._tag_stack=null;var n=new e(o,"html");this._options=n,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}m.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},m.prototype.record_tag=function(e){var t=new c(this._current_frame,e,this._printer.indent_level);this._current_frame=t},m.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},m.prototype._get_frame=function(e,t){for(var o=this._current_frame;o&&-1===e.indexOf(o.tag);){if(t&&-1!==t.indexOf(o.tag)){o=null;break}o=o.parent}return o},m.prototype.try_pop=function(e,t){var o=this._get_frame([e],t);return this._try_pop_frame(o)},m.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&i.test(e)&&(t=e.match(i)[0]));var r=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0],s={text:"",type:""},c=new u(this._options),d=new l(this._options,r),f=new o(e,this._options).tokenize();this._tag_stack=new m(d);for(var p=null,h=f.next();h.type!==a.EOF;)h.type===a.TAG_OPEN||h.type===a.COMMENT?c=p=this._handle_tag_open(d,h,c,s,f):h.type===a.ATTRIBUTE||h.type===a.EQUALS||h.type===a.VALUE||h.type===a.TEXT&&!c.tag_complete?p=this._handle_inside_tag(d,h,c,s):h.type===a.TAG_CLOSE?p=this._handle_tag_close(d,h,c):h.type===a.TEXT?p=this._handle_text(d,h,c):h.type===a.CONTROL_FLOW_OPEN?p=this._handle_control_flow_open(d,h):h.type===a.CONTROL_FLOW_CLOSE?p=this._handle_control_flow_close(d,h):d.add_raw_token(h),s=p,h=f.next();return d._output.get_code(t)},d.prototype._handle_control_flow_open=function(e,t){var o={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),o},d.prototype._handle_control_flow_close=function(e,t){var o={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),o},d.prototype._handle_tag_close=function(e,t,o){var a={text:t.text,type:t.type};return e.alignment_size=0,o.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),o.is_unformatted?e.add_raw_token(t):("<"===o.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&o.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!o.indent_content||o.is_unformatted||o.is_content_unformatted||(e.indent(),o.indent_content=!1),o.is_inline_element||o.is_unformatted||o.is_content_unformatted||e.set_wrap_point(),a},d.prototype._handle_inside_tag=function(e,t,o,i){var n=o.has_wrapped_attrs,l={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),o.is_unformatted?e.add_raw_token(t):"{"===o.tag_start_char&&t.type===a.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===a.ATTRIBUTE?e.set_space_before_token(!0):(t.type===a.EQUALS||t.type===a.VALUE&&t.previous.type===a.EQUALS)&&e.set_space_before_token(!1),t.type===a.ATTRIBUTE&&"<"===o.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),n=n||0!==t.newlines),this._is_wrap_attributes_force&&o.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==a.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),n=!0)),e.print_token(t),n=n||e.previous_token_wrapped(),o.has_wrapped_attrs=n),l},d.prototype._handle_text=function(e,t,o){var a={text:t.text,type:"TK_CONTENT"};return o.custom_beautifier_name?this._print_custom_beatifier_text(e,t,o):o.is_unformatted||o.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),a},d.prototype._print_custom_beatifier_text=function(e,t,o){var a=this;if(""!==t.text){var i,n=t.text,l=1,r="",s="";"javascript"===o.custom_beautifier_name&&"function"==typeof this._js_beautify?i=this._js_beautify:"css"===o.custom_beautifier_name&&"function"==typeof this._css_beautify?i=this._css_beautify:"html"===o.custom_beautifier_name&&(i=function(e,t){return new d(e,t,a._js_beautify,a._css_beautify).beautify()}),"keep"===this._options.indent_scripts?l=0:"separate"===this._options.indent_scripts&&(l=-e.indent_level);var c=e.get_full_indent(l);if(n=n.replace(/\n[ \t]*$/,""),"html"!==o.custom_beautifier_name&&"<"===n[0]&&n.match(/^(<!--|<!\[CDATA\[)/)){var m=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(n);if(!m)return void e.add_raw_token(t);r=c+m[1]+"\n",n=m[4],m[5]&&(s=c+m[5]),n=n.replace(/\n[ \t]*$/,""),(m[2]||-1!==m[3].indexOf("\n"))&&(m=m[3].match(/[ \t]+$/))&&(t.whitespace_before=m[0])}if(n)if(i){var u=function(){this.eol="\n"};u.prototype=this._options.raw_options,n=i(c+n,new u)}else{var f=t.whitespace_before;f&&(n=n.replace(new RegExp("\n("+f+")?","g"),"\n")),n=c+n.replace(/\n/g,"\n"+c)}r&&(n=n?r+n+"\n"+s:r+s),e.print_newline(!1),n&&(t.text=n,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},d.prototype._handle_tag_open=function(e,t,o,i,n){var l=this._get_tag_open_token(t);if(!o.is_unformatted&&!o.is_content_unformatted||o.is_empty_element||t.type!==a.TAG_OPEN||l.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,l,o,i),l.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),l.start_tag_token=this._tag_stack.try_pop(l.tag_name)),l.is_start_tag&&this._is_wrap_attributes_force){var r,s=0;do{(r=n.peek(s)).type===a.ATTRIBUTE&&(l.attr_count+=1),s+=1}while(r.type!==a.EOF&&r.type!==a.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(l.alignment_size=t.text.length+1),l.tag_complete||l.is_unformatted||(e.alignment_size=l.alignment_size),l};var u=function(e,t,o){if(this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",o){var i;this.tag_start_char=o.text[0],this.text=o.text,"<"===this.tag_start_char?(i=o.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=o.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"",(o.text.startsWith("{{#>")||o.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==o.next?this.tag_check=o.next.text.split(" ")[0]:this.tag_check=o.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),o.type===a.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||o.closed&&"/>"===o.closed.text;var n=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(n=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!e.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(n)))}else this.tag_complete=!0};d.prototype._get_tag_open_token=function(e){var t=new u(this._options,this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||s(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&s(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&s(t.tag_check,this._options.content_unformatted),t.is_inline_element=s(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},d.prototype._set_tag_position=function(e,t,o,i,n){if(o.is_empty_element||(o.is_end_tag?o.start_tag_token=this._tag_stack.try_pop(o.tag_name):(this._do_optional_end_element(o)&&(o.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(o),"script"!==o.tag_name&&"style"!==o.tag_name||o.is_unformatted||o.is_content_unformatted||(o.custom_beautifier_name=r(o.tag_check,t)))),s(o.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),o.is_empty_element){if("{"===o.tag_start_char&&"else"===o.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),o.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===o.tag_name&&n.type===a.TAG_CLOSE&&i.is_end_tag&&-1===o.text.indexOf("\n")||(o.is_inline_element||o.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,o))}else if(o.is_end_tag){var l=!1;l=(l=o.start_tag_token&&o.start_tag_token.multiline_content)||!o.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(n.type===a.TAG_CLOSE&&o.start_tag_token===i)&&"TK_CONTENT"!==n.type,(o.is_content_unformatted||o.is_unformatted)&&(l=!1),l&&e.print_newline(!1)}else o.indent_content=!o.custom_beautifier_name,"<"===o.tag_start_char&&("html"===o.tag_name?o.indent_content=this._options.indent_inner_html:"head"===o.tag_name?o.indent_content=this._options.indent_head_inner_html:"body"===o.tag_name&&(o.indent_content=this._options.indent_body_inner_html)),o.is_inline_element||o.is_unformatted||"TK_CONTENT"===n.type&&!o.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,o)},d.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var f=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],p=["a","audio","del","ins","map","noscript","video"];return d.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==f.indexOf(e.tag_name)){var o=e.parent.parent;o&&-1!==p.indexOf(o.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},wt.Beautifier=d,wt}function Mt(){if(Bt)return Se;Bt=1;var e=function(){if(rt)return Ee.exports;rt=1;var e=dt().Beautifier,t=Pe().Options;return Ee.exports=function(t,o){return new e(t,o).beautify()},Ee.exports.defaultOptions=function(){return new t},Ee.exports}(),t=bt(),o=function(){if(xt)return _t.exports;xt=1;var e=Rt().Beautifier,t=St().Options;return _t.exports=function(t,o,a,i){return new e(t,o,a,i).beautify()},_t.exports.defaultOptions=function(){return new t},_t.exports}();function a(a,i,n,l){return o(a,i,n=n||e,l=l||t)}return a.defaultOptions=o.defaultOptions,Se.js=e,Se.css=t,Se.html=a,Se}!function(e){!function(e){var t=Mt();t.js_beautify=t.js,t.css_beautify=t.css,t.html_beautify=t.html,e.exports=function(e,t,o){var a=function(t,o){return e.js_beautify(t,o)};return a.js=e.js_beautify,a.css=t.css_beautify,a.html=o.html_beautify,a.js_beautify=e.js_beautify,a.css_beautify=t.css_beautify,a.html_beautify=o.html_beautify,a}(t,t,t)}(e)}(Ce);var It=he(Ce.exports),Tt={exports:{}};!function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof n?new n(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++o}),e.__id},clone:function e(t,o){var a,n;switch(o=o||{},i.util.type(t)){case"Object":if(n=i.util.objId(t),o[n])return o[n];for(var l in a={},o[n]=a,t)t.hasOwnProperty(l)&&(a[l]=e(t[l],o));return a;case"Array":return n=i.util.objId(t),o[n]?o[n]:(a=[],o[n]=a,t.forEach(function(t,i){a[i]=e(t,o)}),a);default:return t}},getLanguage:function(e){for(;e;){var o=t.exec(e.className);if(o)return o[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,o){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+o)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var o in t)if(t[o].src==e)return t[o]}return null}},isActive:function(e,t,o){for(var a="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(a))return!1;e=e.parentElement}return!!o}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var o=i.util.clone(i.languages[e]);for(var a in t)o[a]=t[a];return o},insertBefore:function(e,t,o,a){var n=(a=a||i.languages)[e],l={};for(var r in n)if(n.hasOwnProperty(r)){if(r==t)for(var s in o)o.hasOwnProperty(s)&&(l[s]=o[s]);o.hasOwnProperty(r)||(l[r]=n[r])}var c=a[e];return a[e]=l,i.languages.DFS(i.languages,function(t,o){o===c&&t!=e&&(this[t]=l)}),l},DFS:function e(t,o,a,n){n=n||{};var l=i.util.objId;for(var r in t)if(t.hasOwnProperty(r)){o.call(t,r,t[r],a||r);var s=t[r],c=i.util.type(s);"Object"!==c||n[l(s)]?"Array"!==c||n[l(s)]||(n[l(s)]=!0,e(s,o,r,n)):(n[l(s)]=!0,e(s,o,null,n))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,o){var a={callback:o,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),i.hooks.run("before-all-elements-highlight",a);for(var n,l=0;n=a.elements[l++];)i.highlightElement(n,!0===t,a.callback)},highlightElement:function(t,o,a){var n=i.util.getLanguage(t),l=i.languages[n];i.util.setLanguage(t,n);var r=t.parentElement;r&&"pre"===r.nodeName.toLowerCase()&&i.util.setLanguage(r,n);var s={element:t,language:n,grammar:l,code:t.textContent};function c(e){s.highlightedCode=e,i.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,i.hooks.run("after-highlight",s),i.hooks.run("complete",s),a&&a.call(s.element)}if(i.hooks.run("before-sanity-check",s),(r=s.element.parentElement)&&"pre"===r.nodeName.toLowerCase()&&!r.hasAttribute("tabindex")&&r.setAttribute("tabindex","0"),!s.code)return i.hooks.run("complete",s),void(a&&a.call(s.element));if(i.hooks.run("before-highlight",s),s.grammar)if(o&&e.Worker){var m=new Worker(i.filename);m.onmessage=function(e){c(e.data)},m.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(i.highlight(s.code,s.grammar,s.language));else c(i.util.encode(s.code))},highlight:function(e,t,o){var a={code:e,grammar:t,language:o};if(i.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=i.tokenize(a.code,a.grammar),i.hooks.run("after-tokenize",a),n.stringify(i.util.encode(a.tokens),a.language)},tokenize:function(e,t){var o=t.rest;if(o){for(var a in o)t[a]=o[a];delete t.rest}var i=new s;return c(i,i.head,e),r(e,i,t,i.head,0),function(e){var t=[],o=e.head.next;for(;o!==e.tail;)t.push(o.value),o=o.next;return t}(i)},hooks:{all:{},add:function(e,t){var o=i.hooks.all;o[e]=o[e]||[],o[e].push(t)},run:function(e,t){var o=i.hooks.all[e];if(o&&o.length)for(var a,n=0;a=o[n++];)a(t)}},Token:n};function n(e,t,o,a){this.type=e,this.content=t,this.alias=o,this.length=0|(a||"").length}function l(e,t,o,a){e.lastIndex=t;var i=e.exec(o);if(i&&a&&i[1]){var n=i[1].length;i.index+=n,i[0]=i[0].slice(n)}return i}function r(e,t,o,a,s,d){for(var u in o)if(o.hasOwnProperty(u)&&o[u]){var f=o[u];f=Array.isArray(f)?f:[f];for(var p=0;p<f.length;++p){if(d&&d.cause==u+","+p)return;var h=f[p],g=h.inside,y=!!h.lookbehind,v=!!h.greedy,b=h.alias;if(v&&!h.pattern.global){var k=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,k+"g")}for(var _=h.pattern||h,w=a.next,C=s;w!==t.tail&&!(d&&C>=d.reach);C+=w.value.length,w=w.next){var S=w.value;if(t.length>e.length)return;if(!(S instanceof n)){var E,N=1;if(v){if(!(E=l(_,C,e,y))||E.index>=e.length)break;var x=E.index,B=E.index+E[0].length,V=C;for(V+=w.value.length;x>=V;)V+=(w=w.next).value.length;if(C=V-=w.value.length,w.value instanceof n)continue;for(var A=w;A!==t.tail&&(V<B||"string"==typeof A.value);A=A.next)N++,V+=A.value.length;N--,S=e.slice(C,V),E.index-=C}else if(!(E=l(_,0,S,y)))continue;x=E.index;var R=E[0],M=S.slice(0,x),I=S.slice(x+R.length),T=C+S.length;d&&T>d.reach&&(d.reach=T);var $=w.prev;if(M&&($=c(t,$,M),C+=M.length),m(t,$,N),w=c(t,$,new n(u,g?i.tokenize(R,g):R,b,R)),I&&c(t,w,I),N>1){var D={cause:u+","+p,reach:T};r(e,t,o,w.prev,C,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,o){var a=t.next,i={value:o,prev:t,next:a};return t.next=i,a.prev=i,e.length++,i}function m(e,t,o){for(var a=t.next,i=0;i<o&&a!==e.tail;i++)a=a.next;t.next=a,a.prev=t,e.length-=i}if(e.Prism=i,n.stringify=function e(t,o){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach(function(t){a+=e(t,o)}),a}var n={type:t.type,content:e(t.content,o),tag:"span",classes:["token",t.type],attributes:{},language:o},l=t.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(n.classes,l):n.classes.push(l)),i.hooks.run("wrap",n);var r="";for(var s in n.attributes)r+=" "+s+'="'+(n.attributes[s]||"").replace(/"/g,""")+'"';return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+r+">"+n.content+"</"+n.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",function(t){var o=JSON.parse(t.data),a=o.language,n=o.code,l=o.immediateClose;e.postMessage(i.highlight(n,i.languages[a],a)),l&&e.close()},!1),i):i;var d=i.util.currentScript();function u(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
2
2
|
/**
|
|
3
3
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
4
4
|
*
|