halleyx-ui-framework 4.8.9 → 4.9.0
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/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,l,i,o,n,a,s){"use strict";function r(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(l){if("default"!==l){var i=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,i.get?i:{enumerable:!0,get:function(){return e[l]}})}})),t.default=e,Object.freeze(t)}var d=r(i),u=r(o),h=c(s),p={name:"HlxAccordion",props:{accordionData:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1}},data:()=>({unique:Math.floor(1e3*Math.random()+1)}),methods:{toggleView(e,t,l){0==l?"right icon-angle-right-regular"===document.querySelector("#arrow-"+t).className?(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"):"right icon-angle-down-regular"===document.querySelector("#arrow-"+t).className&&(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"):"right icon-angle-right-regular"===document.querySelector("#arrow-"+t).className?(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"):"right icon-angle-down-regular"===document.querySelector("#arrow-"+t).className&&(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")}}};const m=["id","multiple"],g=["id"],A={style:{width:"100%"}},b={style:{display:"flex"}},f=["id"],y=["id"];p.render=function(e,l,i,o,n,a){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:i.multiple},[t.createElementVNode("div",{id:["header-"+n.unique],class:"accordion-header",onClick:l[0]||(l[0]=e=>a.toggleView(e,n.unique,i.multiple))},[t.createElementVNode("header",A,[t.renderSlot(e.$slots,"item-title")]),t.createElementVNode("div",b,[t.createElementVNode("i",{id:["arrow-"+n.unique],class:"right icon-angle-right-regular"},null,8,f)])],8,g),t.createElementVNode("div",{id:["content-"+n.unique],class:"accordion-content"},[t.renderSlot(e.$slots,"item-body")],8,y)],8,m)),t.createCommentVNode(" </div> ")],2112)},p.__file="src/components/AccordionComponent.vue";var v={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=Math.floor(65536*(1+Math.random())).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 k={key:0,class:"hlx-alert-wrapper"},C=["id"],E={class:"icon"},V={class:"text"},B={class:"alert-description"},x=["onClick"],w=[t.createElementVNode("i",{class:"icon-times-filled"},null,-1)];v.render=function(e,l,i,o,n,a){return t.openBlock(),t.createBlock(t.Teleport,{to:"body",class:"alert-not"},[n.notifications.length>0?(t.openBlock(),t.createElementBlock("section",k,[(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",a.getClass(e)])},[t.createElementVNode("span",E,[t.createElementVNode("i",{class:t.normalizeClass(a.icon(e.type))},null,2)]),t.createElementVNode("div",V,[t.createElementVNode("p",B,t.toDisplayString(e.message),1)]),t.createElementVNode("button",{class:"close","aria-label":"close",onClick:t=>a.closeAlert(e.id)},w,8,x)],10,C)))),128))])):t.createCommentVNode("v-if",!0)])},v.__file="src/components/AlertComponent.vue";var N={name:"HlxBadge",props:{icon:{type:String,default:""},count:{type:Number,default:0}}};const S=["aria-label"],_={class:"icon-button__badge",style:{"font-size":"10px"}};N.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("button",{id:"badge",type:"button",class:"icon-button","aria-label":i.icon},[t.createElementVNode("span",{class:t.normalizeClass(i.icon)},null,2),t.createElementVNode("span",_,t.toDisplayString(i.count),1)],8,S)},N.__file="src/components/BadgeComponent.vue";var I={name:"HlxBreadcrumb",props:{items:{type:Array,required:!0},separator:{type:[String,Object],default:"/"}},emits:["path"],computed:{isIconSeparator(){return"object"==typeof this.separator}},methods:{current(e){this.$emit("path",e)}}};const q={class:"breadcrumb","aria-label":"Breadcrumb"},D=["onClick"],T=["aria-current"],U={key:2},R={key:3,class:"breadcrumb-separator"},F={key:1};I.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("nav",q,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.items,((e,l)=>(t.openBlock(),t.createElementBlock("li",{key:l,onClick:t=>a.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),l===i.items.length-1?(t.openBlock(),t.createElementBlock("a",{key:1,"aria-current":e.label,class:t.normalizeClass({disabledd:l===i.items.length-1})},t.toDisplayString(e.label),11,T)):(t.openBlock(),t.createElementBlock("a",U,t.toDisplayString(e.label),1)),t.createCommentVNode(' <router-link :to="item.link" :class="{ disabled: index === items.length - 1 } " >{{ item.label }}</router-link> '),l<i.items.length-1?(t.openBlock(),t.createElementBlock("span",R,[a.isIconSeparator?(t.openBlock(),t.createElementBlock("i",{key:0,"aria-hidden":"true",class:t.normalizeClass(i.separator.icon)},null,2)):(t.openBlock(),t.createElementBlock("span",F,t.toDisplayString(i.separator),1))])):t.createCommentVNode("v-if",!0)],8,D)))),128))])])},I.__file="src/components/BreadcrumbComponent.vue";var H={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"],O=["aria-label","href","target"];H.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("button",{id:"hlx-button-0009",ref:"hlx-button",value:i.value,type:i.type,name:i.name,class:t.normalizeClass([a.primaryClass,"hlx-button"]),"aria-label":i.label,onClick:l[0]||(l[0]=(...e)=>a.clicked&&a.clicked(...e))},[t.renderSlot(e.$slots,"default"),null!=i.href?(t.openBlock(),t.createElementBlock("a",{key:0,ref:"link-ele","aria-label":i.label,href:i.href,target:i.target},null,8,O)):t.createCommentVNode("v-if",!0)],10,L)},H.__file="src/components/ButtonComponent.vue";var M={name:"HlxCalendar",props:{disableWeekend:{type:Boolean,default:!1},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"],data:()=>({selectedMonth:"",selectedYear:"",selectedDay:""}),mounted(){const e=document.querySelector(".calendar"),t=document.querySelector(".light");e.clientY=this.event.clientY,t.right=this.event.clientX+"px";const l=["January","February","March","April","May","June","July","August","September","October","November","December"],i=[];let o=this.startYear;const n=this.endYear;for(;o<=n;)i.push(o++);const a=e.querySelector(".month-list");i.forEach(((e,t)=>{const l=document.createElement("div");l.innerHTML=`<div data-month="${t}" id="year${t}">${e}</div>`;let i=(new Date).getFullYear();i+=1,e===i&&(document.getElementById("year"+(t-1)).classList.add("theme-background"),document.getElementById("year"+(t-1)).style.color="white"),l.querySelector("div").onclick=()=>{a.classList.remove("show"),c.value=e,this.selectedMonth=r.value,this.selectedYear=c.value,this.generateCalendar(r.value,c.value)},a.appendChild(l)}));e.querySelector("#year").onclick=()=>{a.classList.add("show"),localStorage.setItem("calendarScroll",680),a.scrollTo(0,localStorage.getItem("calendarScroll"))};let s="";if(""===this.preValue)s=new Date;else{const e=this.preValue.split("-");s=new Date(e[2],e[1]-1,e[0])}const r={value:s.getMonth()},c={value:s.getFullYear()};this.selectedMonth=r.value,this.selectedYear=c.value,this.generateCalendar(r.value,c.value);const d=document.querySelector(".calendar");340===d.offsetHeight?d.style.marginTop="-35px":d.style.marginTop="0px",document.querySelector("#prev-year").onclick=()=>{"January"===l[r.value]?(r.value=11,--c.value):--r.value,this.selectedMonth=r.value,this.selectedYear=c.value,this.generateCalendar(r.value,c.value);const e=document.querySelector(".calendar");340===e.offsetHeight?e.style.marginTop="-35px":e.style.marginTop="0"},document.querySelector("#next-year").onclick=()=>{const e=document.querySelector(".calendar");"December"===l[r.value]?(r.value=0,++c.value):++r.value,this.selectedMonth=r.value,this.selectedYear=c.value,this.generateCalendar(r.value,c.value),340===e.offsetHeight?e.style.marginTop="-35px":e.style.marginTop="0"}},methods:{log(e){""!==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))},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){const l=document.querySelector(".calendar"),i=l.querySelector(".calendar-days"),o=l.querySelector("#year"),n=[31,this.getFebDays(t),31,30,31,30,31,31,30,31,30,31];i.innerHTML="";let a="";if(""===this.preValue)a=new Date;else{const e=this.preValue.split("-");a=new Date(e[2],e[1]-1,e[0])}t||(t=a.getFullYear());const s=`${["January","February","March","April","May","June","July","August","September","October","November","December"][e]}`;l.querySelector("#month-picker").innerHTML=s,o.innerHTML=t;const r=new Date(t,e,1);for(let l=0;l<=n[e]+r.getDay()-1;l++){const o=document.createElement("div");if(l>=r.getDay()){o.classList.add("calendar-day-hover");const i=new Date(t,e,l),n=l-r.getDay()+1+"-"+String(Number(i.getMonth())+1)+"-"+i.getFullYear();o.classList.add(n),this.holidayList.length>0&&this.holidayList.forEach((e=>{e===n&&(o.classList.remove("calendar-day-hover"),o.classList.add("disable-weekend"))})),o.innerHTML=l-r.getDay()+1,o.innerHTML+="",l-r.getDay()+1===a.getDate()&&t===a.getFullYear()&&e===a.getMonth()&&o.classList.add("curr-date")}i.appendChild(o)}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 l in t)e[t[l]]&&""!==e[t[l]].innerHTML&&(e[t[l]].classList.remove("calendar-day-hover"),e[t[l]].classList.add("disable-weekend"))}}}};const Q={class:"light"},K={class:"calendar"},j=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),P={class:"calendar-body"},z=t.createElementVNode("div",{class:"calendar-week-day"},[t.createElementVNode("div",null,"SUN"),t.createElementVNode("div",null,"MON"),t.createElementVNode("div",null,"TUE"),t.createElementVNode("div",null,"WED"),t.createElementVNode("div",null,"THU"),t.createElementVNode("div",null,"FRI"),t.createElementVNode("div",null,"SAT")],-1),X=t.createElementVNode("div",{class:"month-list"},null,-1);M.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("div",Q,[t.createElementVNode("div",K,[j,t.createElementVNode("div",P,[z,t.createElementVNode("div",{class:"calendar-days",onClick:l[0]||(l[0]=(...e)=>a.log&&a.log(...e))})]),t.createCommentVNode(' <div class="calendar-footer">\r\n\r\n </div> '),X])])},M.__file="src/components/CalendarComponent.vue";var J={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 W={key:0,class:"card-title"},Y=t.createTextVNode("Card title"),G=t.createTextVNode("Card body"),Z={key:1,class:"card-footer"},$=t.createTextVNode("Card footer");J.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["card",{cardhover:i.hover,cardshadow:i.shadow,padding:i.padding,cardActive:i.active}]),style:t.normalizeStyle("width:"+i.width+"px; height:"+i.height+"px;")},[1==i.cardTitle?(t.openBlock(),t.createElementBlock("div",W,[t.createElementVNode("header",null,[t.renderSlot(e.$slots,"card-title",{},(()=>[Y]))])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{class:"card-body",style:t.normalizeStyle(i.cardTitle&&i.cardFooter?{height:i.height-a.headerHeight-a.footerHeight+"px"}:{height:"100%"})},[t.createCommentVNode(" {{this.card_body}} "),t.createElementVNode("main",null,[t.renderSlot(e.$slots,"card-body",{},(()=>[G]))])],4),1==i.cardFooter?(t.openBlock(),t.createElementBlock("div",Z,[t.createCommentVNode(" {{this.cardFooter}} "),t.createElementVNode("footer",null,[t.renderSlot(e.$slots,"card-footer",{},(()=>[$]))])])):t.createCommentVNode("v-if",!0)],6)},J.__file="src/components/CardsComponent.vue";var ee={name:"HlxColorPalette",props:{highlightColor:{type:Boolean,default:!1}},emits:["customChange"],data:()=>({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:""}),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(){!1===this.colorcontainer?this.colorcontainer=!0:!0===this.colorcontainer&&(this.colorcontainer=!1)},colorpicker(){this.colorpick=!0}}};const te={class:"color-palette-container"},le={class:"color-palette-icon"},ie={key:0,class:"icon-palette-regular"},oe={key:1,class:"highlight-container"},ne={key:0,class:"highlight-icon"},ae=[t.createElementVNode("i",{class:"icon-angle-down-regular"},null,-1)],se={key:0,class:"color-container"},re=t.createElementVNode("p",{class:"color-container-title"},"Theme Colors",-1),ce={class:"color-container-specific-color"},de={class:"color-container-specific-color1"},ue=t.createElementVNode("p",{class:"color-container-title"},"Standard Colors",-1),he={class:"color-container-specific-color"},pe={class:"color-container2323"},me=["value"],ge={key:0,class:"color-container-title"},Ae={class:"color-container-specific-color2"};ee.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("div",te,[t.createElementVNode("div",le,[1==n.fill_color?(t.openBlock(),t.createElementBlock("i",ie)):t.createCommentVNode("v-if",!0),!0===i.highlightColor?(t.openBlock(),t.createElementBlock("div",oe,[!0===i.highlightColor?(t.openBlock(),t.createElementBlock("p",ne,"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",{"aria-dis":"",class:"color-palette-open-icon",onClick:l[0]||(l[0]=(...e)=>a.colorpalette&&a.colorpalette(...e))},ae),!0===n.colorcontainer?(t.openBlock(),t.createElementBlock("button",se,[re,t.createElementVNode("button",ce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.colordata,((e,i)=>(t.openBlock(),t.createElementBlock("button",{key:i,class:"color-container-specific-color-checkbox-border",onClick:l[1]||(l[1]=(...e)=>a.getcolor&&a.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:Object.keys(n.colordata[i])[0]})},null,4)])))),128))]),t.createElementVNode("button",de,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.colordata,((e,i)=>(t.openBlock(),t.createElementBlock("button",{key:i,class:"color-container-specific-color1-container",onClick:l[2]||(l[2]=(...e)=>a.getcolor&&a.getcolor(...e))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.values(n.colordata[i])[0].length,((e,l)=>(t.openBlock(),t.createElementBlock("button",{key:l,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[i])[0][l]})},null,4)])))),128))])))),128))]),ue,t.createElementVNode("button",he,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.standardcolor,((e,i)=>(t.openBlock(),t.createElementBlock("button",{key:i,class:"color-container-specific-color-checkbox-border",onClick:l[3]||(l[3]=(...e)=>a.getcolor&&a.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:n.standardcolor[i]})},null,4)])))),128))]),t.createElementVNode("button",pe,[t.createElementVNode("input",{id:"favcolor",type:"color",name:"favcolor",value:n.recentvalue,class:"favcolor",onChange:l[4]||(l[4]=(...e)=>a.getcolorvalue&&a.getcolorvalue(...e))},null,40,me),t.createElementVNode("p",{class:"color-container-title",onClick:l[5]||(l[5]=(...e)=>a.colorpicker&&a.colorpicker(...e))},"More Colors")]),!0===n.recent?(t.openBlock(),t.createElementBlock("p",ge,"Recent color")):t.createCommentVNode("v-if",!0),t.createElementVNode("button",Ae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.recentcolor,((e,i)=>(t.openBlock(),t.createElementBlock("button",{key:i,class:"color-container-specific-color-checkbox-border",onClick:l[6]||(l[6]=(...e)=>a.getcolor&&a.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:n.recentcolor[i]})},null,4)])))),128))])])):t.createCommentVNode("v-if",!0)])},ee.__file="src/components/ColorpaletteComponent.vue";var be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ye={exports:{}};!function(e){var t,l,i;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"],l="undefined"!=typeof window,i=l&&null!=window.mozInnerScreenX,e.exports=function(e,o,n){if(!l)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var a=n&&n.debug||!1;if(a){var s=document.querySelector("#input-textarea-caret-position-mirror-div");s&&s.parentNode.removeChild(s)}var r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);var c=r.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,u="INPUT"===e.nodeName;c.whiteSpace="pre-wrap",u||(c.wordWrap="break-word"),c.position="absolute",a||(c.visibility="hidden"),t.forEach((function(e){u&&"lineHeight"===e?c.lineHeight=d.height:c[e]=d[e]})),i?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",r.textContent=e.value.substring(0,o),u&&(r.textContent=r.textContent.replace(/\s/g," "));var h=document.createElement("span");h.textContent=e.value.substring(o)||".",r.appendChild(h);var p={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),height:parseInt(d.lineHeight)};return a?h.style.backgroundColor="#aaa":document.body.removeChild(r),p}}(ye);var ve=fe(ye.exports);function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i])}return e},ke.apply(this,arguments)}var Ce,Ee="undefined"!=typeof window&&navigator&&/Win/i.test(navigator.platform),Ve="undefined"!=typeof window&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Be=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"),l=window.getComputedStyle(e);this.$nextTick((function(){var i="border-top-left-radius",o="border-bottom-left-radius";if(t){t.style[i]=l[i],t.style[o]=l[o],e.style[i]="0",e.style[o]="0";["background-color","margin-top","padding-top","font-family","font-size","line-height"].forEach((function(e){t.style[e]=l[e]})),t.style["margin-bottom"]="-"+l["padding-top"]}}))}},_recordCurrentState:function(){var e=this.$refs.textarea;if(e){var t=e.value,l=e.selectionStart,i=e.selectionEnd;this._recordChange({value:t,selectionStart:l,selectionEnd:i})}},_getLines:function(e,t){return e.substring(0,t).split("\n")},_applyEdits:function(e){var t=this.$refs.textarea,l=this.history.stack[this.history.offset];l&&t&&(this.history.stack[this.history.offset]=ke({},l,{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})),this._recordChange(e),this._updateInput(e)},_recordChange:function(e,t){void 0===t&&(t=!1);var l=this.history,i=l.stack,o=l.offset;if(i.length&&o>-1){this.history.stack=i.slice(0,o+1);var n=this.history.stack.length;if(n>100){var a=n-100;this.history.stack=i.slice(a,n),this.history.offset=Math.max(this.history.offset-a,0)}}var s=Date.now();if(t){var r=this.history.stack[this.history.offset];if(r&&s-r.timestamp<3e3){var c,d,u=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(c=this._getLines(r.value,r.selectionStart).pop())||void 0===c?void 0:c.match(u),p=null===(d=this._getLines(e.value,e.selectionStart).pop())||void 0===d?void 0:d.match(u);if(h&&p&&p[1].startsWith(h[1]))return void(this.history.stack[this.history.offset]=ke({},e,{timestamp:s}))}}this.history.stack.push(ke({},e,{timestamp:s})),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,l=t.value,i=t.selectionStart,o=t.selectionEnd;this._recordChange({value:l,selectionStart:i,selectionEnd:o},!0),this.$emit("update:modelValue",l)},_undoEdit:function(){var e=this.history,t=e.stack,l=e.offset,i=t[l-1];i&&(this._updateInput(i),this.history.offset=Math.max(l-1,0))},_redoEdit:function(){var e=this.history,t=e.stack,l=e.offset,i=t[l+1];i&&(this._updateInput(i),this.history.offset=Math.min(l+1,t.length-1))},handleKeyDown:function(e){var t=this.tabSize,l=this.insertSpaces,i=this.ignoreTabKey;if(this.$emit("keydown",e),!e.defaultPrevented){27===e.keyCode&&(e.target.blur(),this.$emit("blur",e));var o=e.target,n=o.value,a=o.selectionStart,s=o.selectionEnd,r=(l?" ":"\t").repeat(t);if(9===e.keyCode&&!i&&this.capture)if(e.preventDefault(),e.shiftKey){var c=this._getLines(n,a),d=c.length-1,u=this._getLines(n,s).length-1,h=n.split("\n").map((function(e,t){return t>=d&&t<=u&&e.startsWith(r)?e.substring(r.length):e})).join("\n");if(n!==h){var p=c[d];this._applyEdits({value:h,selectionStart:p.startsWith(r)?a-r.length:a,selectionEnd:s-(n.length-h.length)})}}else if(a!==s){var m=this._getLines(n,a),g=m.length-1,A=this._getLines(n,s).length-1,b=m[g];this._applyEdits({value:n.split("\n").map((function(e,t){return t>=g&&t<=A?r+e:e})).join("\n"),selectionStart:/\S/.test(b)?a+r.length:a,selectionEnd:s+r.length*(A-g+1)})}else{var f=a+r.length;this._applyEdits({value:n.substring(0,a)+r+n.substring(s),selectionStart:f,selectionEnd:f})}else if(8===e.keyCode){var y=a!==s;if(n.substring(0,a).endsWith(r)&&!y){e.preventDefault();var v=a-r.length;this._applyEdits({value:n.substring(0,a-r.length)+n.substring(s),selectionStart:v,selectionEnd:v})}}else if(13===e.keyCode){if(a===s){var k=this._getLines(n,a).pop(),C=null==k?void 0:k.match(/^\s+/);if(C&&C[0]){e.preventDefault();var E="\n"+C[0],V=a+E.length;this._applyEdits({value:n.substring(0,a)+E+n.substring(s),selectionStart:V,selectionEnd:V})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var B;57===e.keyCode&&e.shiftKey?B=["(",")"]:219===e.keyCode?B=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?B=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(B=["`","`"]),a!==s&&B&&(e.preventDefault(),this._applyEdits({value:n.substring(0,a)+B[0]+n.substring(a,s)+B[1]+n.substring(s),selectionStart:a,selectionEnd:s+2}))}else!(Ve?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(Ve?e.metaKey&&90===e.keyCode&&e.shiftKey:Ee?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),this._redoEdit()):77!==e.keyCode||!e.ctrlKey||Ve&&!e.shiftKey||(e.preventDefault(),this.capture=!this.capture):(e.preventDefault(),this._undoEdit())}}},render:function(){var e=this,l=t.h("div",{class:"prism-editor__line-width-calc",style:"height: 0px; visibility: hidden; pointer-events: none;"},"999"),i=t.h("div",{class:"prism-editor__line-numbers",style:{"min-height":this.lineNumbersHeight},"aria-hidden":"true"},[l,Array.from(Array(this.lineNumbersCount).keys()).map((function(e,l){return t.h("div",{class:"prism-editor__line-number token comment"},""+ ++l)}))]),o=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}),a=t.h("div",{class:"prism-editor__container"},[o,n]);return t.h("div",{class:"prism-editor-wrapper"},[this.lineNumbers&&i,a])}}),xe={exports:{}},we={},Ne={exports:{}},Se={},_e={};function Ie(){if(Ce)return _e;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 l(l,i){this.__indent_cache=new t(l,i),this.raw=!1,this._end_with_newline=l.end_with_newline,this.indent_size=l.indent_size,this.wrap_line_length=l.wrap_line_length,this.indent_empty_lines=l.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 Ce=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 l=this.__base_string_length;return t=t||0,e<0&&(l=0),l+=e*this.__indent_size,l+=t},t.prototype.get_indent_string=function(e,t){var l=this.__base_string;return t=t||0,e<0&&(e=0,l=""),t+=e*this.__indent_size,this.__ensure_cache(t),l+=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,l="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,l=new Array(t+1).join(this.__indent_string)),e&&(l+=new Array(e+1).join(" ")),this.__cache.push(l)},l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},l.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},l.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 l=this.__lines.join("\n");return"\n"!==e&&(l=l.replace(/[\n]/g,e)),l},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.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)},l.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},l.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()},l.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(" "))},l.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()},l.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},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(t,l){for(var i=this.__lines.length-2;i>=0;){var o=this.__lines[i];if(o.is_empty())break;if(0!==o.item(0).indexOf(t)&&o.item(-1)!==l){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},_e.Output=l,_e}var qe,De={};function Te(){if(qe)return De;return qe=1,De.Token=function(e,t,l,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=l||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null},De}var Ue,Re={};function Fe(){return Ue||(Ue=1,function(e){var t="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",l="\\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",i="\\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",o="(?:\\\\u[0-9a-fA-F]{4}|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+l+"])";e.identifier=new RegExp(o+"(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a\\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\\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])*","g"),e.identifierStart=new RegExp(o),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+t+l+i+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(Re)),Re}var He,Le,Oe={},Me={};function Qe(){if(He)return Me;function e(e,l){this.raw_options=t(e,l),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","django","erb","handlebars","php","smarty"],["auto"])}function t(e,t){var i,o={};for(i in e=l(e))i!==t&&(o[i]=e[i]);if(t&&e[t])for(i in e[t])o[i]=e[t][i];return o}function l(e){var t,l={};for(t in e){l[t.replace(/-/g,"_")]=e[t]}return l}return He=1,e.prototype._get_array=function(e,t){var l=this.raw_options[e],i=t||[];return"object"==typeof l?null!==l&&"function"==typeof l.concat&&(i=l.concat()):"string"==typeof l&&(i=l.split(/[^a-zA-Z0-9_\/\-]+/)),i},e.prototype._get_boolean=function(e,t){var l=this.raw_options[e];return void 0===l?!!t:!!l},e.prototype._get_characters=function(e,t){var l=this.raw_options[e],i=t||"";return"string"==typeof l&&(i=l.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},e.prototype._get_number=function(e,t){var l=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(l,10);return isNaN(i)&&(i=t),i},e.prototype._get_selection=function(e,t,l){var i=this._get_selection_list(e,t,l);if(1!==i.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 i[0]},e.prototype._get_selection_list=function(e,t,l){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(l=l||[t[0]],!this._is_valid_selection(l,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,l);if(!this._is_valid_selection(i,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 i},e.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},Me.Options=e,Me.normalizeOpts=l,Me.mergeOpts=t,Me}function Ke(){if(Le)return Oe;Le=1;var e=Qe().Options,t=["before-newline","after-newline","preserve-newline"];function l(l){e.call(this,l,"js");var i=this.raw_options.brace_style||null;"expand-strict"===i?this.raw_options.brace_style="expand":"collapse-preserve-inline"===i?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 o=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<o.length;n++)"preserve-inline"===o[n]?this.brace_preserve_inline=!0:this.brace_style=o[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 l.prototype=new e,Oe.Options=l,Oe}var je,Pe={},ze={};function Xe(){if(je)return ze;je=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,l){t.lastIndex=l;var i=t.exec(this.__input);return!i||e&&t.sticky||i.index!==l&&(i=null),i},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 l=this.peek(t);return e.lastIndex=0,null!==l&&e.test(l)},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,l){var i,o="";return e&&(i=this.match(e))&&(o+=i[0]),!t||!i&&e||(o+=this.readUntil(t,l)),o},t.prototype.readUntil=function(e,t){var l,i=this.__position;e.lastIndex=this.__position;var o=e.exec(this.__input);return o?(i=o.index,t&&(i+=o[0].length)):i=this.__input_length,l=this.__input.substring(this.__position,i),this.__position=i,l},t.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},t.prototype.get_regexp=function(t,l){var i=null,o="g";return l&&e&&(o="y"),"string"==typeof t&&""!==t?i=new RegExp(t,o):t&&(i=new RegExp(t.source,o)),i},t.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(e){var t=this.__position,l=this.readUntilAfter(e);return this.__position=t,l},t.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},ze.InputScanner=t,ze}var Je,We={},Ye={};var Ge,Ze,$e,et={},tt={};function lt(){if(Ge)return tt;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 Ge=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(){},tt.Pattern=e,tt}function it(){if($e)return We;$e=1;var e=Xe().InputScanner,t=Te().Token,l=function(){if(Je)return Ye;function e(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return Je=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},Ye.TokenStream=e,Ye}().TokenStream,i=function(){if(Ze)return et;Ze=1;var e=lt().Pattern;function t(t,l){e.call(this,t,l),l?this._line_regexp=this._input.get_regexp(l._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 l=this._create();return l.__set_whitespace_patterns(e,t),l._update(),l},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(e,t){e.lastIndex=0;for(var l=0,i=[],o=e.exec(t);o;)i.push(t.substring(l,o.index)),l=o.index+o[0].length,o=e.exec(t);return l<t.length?i.push(t.substring(l,t.length)):i.push(""),i},et.WhitespacePattern=t,et}().WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},n=function(t,l){this._input=new e(t),this._options=l||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};return n.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new l,this._reset();for(var i=new t(o.START,""),n=null,a=[],s=new l;i.type!==o.EOF;){for(e=this._get_next_token(i,n);this._is_comment(e);)s.add(e),e=this._get_next_token(i,n);s.isEmpty()||(e.comments_before=s,s=new l),e.parent=n,this._is_opening(e)?(a.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=a.pop(),e.parent=n),e.previous=i,i.next=e,this.__tokens.add(e),i=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 l=this._input.read(/.+/g);return l?this._create_token(o.RAW,l):this._create_token(o.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,l){return new t(e,l,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},We.Tokenizer=n,We.TOKEN=o,We}var ot,nt={};function at(){if(ot)return nt;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 ot=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 l=this.__directive_pattern.exec(e);l;)t[l[1]]=l[2],l=this.__directive_pattern.exec(e);return t},e.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},nt.Directives=e,nt}var st,rt,ct,dt,ut={};function ht(){if(st)return ut;st=1;var e=lt().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function l(l,i){e.call(this,l,i),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var o=new e(l);this.__patterns={handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:o.starting_with(/{{{/).until_after(/}}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),php:o.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}return l.prototype=new e,l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){this.__set_templated_pattern()},l.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},l.prototype.read_options=function(e){var l=this._create();for(var i in t)l._disabled[i]=-1===e.templating.indexOf(i);return l._update(),l},l.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},l.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},l.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.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("|")+")")},l.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var l=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==l||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==l||(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},ut.TemplatablePattern=l,ut}function pt(){if(rt)return Pe;rt=1;var e=Xe().InputScanner,t=it().Tokenizer,l=it().TOKEN,i=at().Directives,o=Fe(),n=lt().Pattern,a=ht().TemplatablePattern;function s(e,t){return-1!==t.indexOf(e)}var r={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:l.START,RAW:l.RAW,EOF:l.EOF},c=new i(/\/\*/,/\*\//),d=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,u=/[0-9]/,h=/[^\d\.]/,p=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),m=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";m=(m="\\?\\.(?!\\d) "+(m=m.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var g,A=new RegExp(m),b="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),f=b.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),y=new RegExp("^(?:"+f.join("|")+")$"),v=function(e,l){t.call(this,e,l),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var i=new n(this._input),s=new a(this._input).read_options(this._options);this.__patterns={template:s,identifier:s.starting_with(o.identifier).matching(o.identifierMatch),number:i.matching(d),punct:i.matching(A),comment:i.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:i.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:i.matching(/<!--/),html_comment_end:i.matching(/-->/),include:i.starting_with(/#include/).until_after(o.lineBreak),shebang:i.starting_with(/#!/).until_after(o.lineBreak),xml:i.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:s.until(/['\\\n\r\u2028\u2029]/),double_quote:s.until(/["\\\n\r\u2028\u2029]/),template_text:s.until(/[`\\$]/),template_expression:s.until(/[`}\\]/)}};return(v.prototype=new t)._is_comment=function(e){return e.type===r.COMMENT||e.type===r.BLOCK_COMMENT||e.type===r.UNKNOWN},v.prototype._is_opening=function(e){return e.type===r.START_BLOCK||e.type===r.START_EXPR},v.prototype._is_closing=function(e,t){return(e.type===r.END_BLOCK||e.type===r.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},v.prototype._reset=function(){g=!1},v.prototype._get_next_token=function(e,t){var l=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(r.EOF,""):l=(l=(l=(l=(l=(l=(l=(l=(l=l||this._read_non_javascript(i))||this._read_string(i))||this._read_word(e))||this._read_singles(i))||this._read_comment(i))||this._read_regexp(i,e))||this._read_xml(i,e))||this._read_punctuation())||this._create_token(r.UNKNOWN,this._input.next())},v.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(o.allLineBreaks,"\n"),e.type!==r.DOT&&(e.type!==r.RESERVED||"set"!==e.text&&"get"!==e.text)&&y.test(t)?"in"!==t&&"of"!==t||e.type!==r.WORD&&e.type!==r.STRING?this._create_token(r.RESERVED,t):this._create_token(r.OPERATOR,t):this._create_token(r.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(r.WORD,t):void 0},v.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(r.START_EXPR,e):")"===e||"]"===e?t=this._create_token(r.END_EXPR,e):"{"===e?t=this._create_token(r.START_BLOCK,e):"}"===e?t=this._create_token(r.END_BLOCK,e):";"===e?t=this._create_token(r.SEMICOLON,e):"."===e&&h.test(this._input.peek(1))?t=this._create_token(r.DOT,e):","===e&&(t=this._create_token(r.COMMA,e)),t&&this._input.next(),t},v.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(r.EQUALS,e):"?."===e?this._create_token(r.DOT,e):this._create_token(r.OPERATOR,e)},v.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read()))return this._create_token(r.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read())return this._create_token(r.UNKNOWN,t.trim()+"\n");e=this._input.next();var l="#";if(this._input.hasNext()&&this._input.testChar(u)){do{l+=e=this._input.next()}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(l+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(l+="{}",this._input.next(),this._input.next())),this._create_token(r.WORD,l)}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(o.newline);)t+=this._input.next();return g=!0,this._create_token(r.COMMENT,t)}}else if(g&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return g=!1,this._create_token(r.COMMENT,t);return null},v.prototype._read_comment=function(e){var t=null;if("/"===e){var l="";if("*"===this._input.peek(1)){l=this.__patterns.block_comment.read();var i=c.get_directives(l);i&&"start"===i.ignore&&(l+=c.readIgnored(this._input)),l=l.replace(o.allLineBreaks,"\n"),(t=this._create_token(r.BLOCK_COMMENT,l)).directives=i}else"/"===this._input.peek(1)&&(l=this.__patterns.comment.read(),t=this._create_token(r.COMMENT,l))}return t},v.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var l=this._input.next();return this.has_char_escapes=!1,l+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(l=function(t){var l="",i=0,o=new e(t),n=null;for(;o.hasNext();)if((n=o.match(/([\s]|[^\\]|\\\\)+/g))&&(l+=n[0]),"\\"===o.peek()){if(o.next(),"x"===o.peek())n=o.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==o.peek()){l+="\\",o.hasNext()&&(l+=o.next());continue}n=o.match(/u([0-9A-Fa-f]{4})/g)}if(!n)return t;if((i=parseInt(n[1],16))>126&&i<=255&&0===n[0].indexOf("x"))return t;if(i>=0&&i<32){l+="\\"+n[0];continue}l+=34===i||39===i||92===i?"\\"+String.fromCharCode(i):String.fromCharCode(i)}return l}(l)),this._input.peek()===t&&(l+=this._input.next()),l=l.replace(o.allLineBreaks,"\n"),this._create_token(r.STRING,l)}return null},v.prototype._allow_regexp_or_xml=function(e){return e.type===r.RESERVED&&s(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===r.END_EXPR&&")"===e.text&&e.opened.previous.type===r.RESERVED&&s(e.opened.previous.text,["if","while","for"])||s(e.type,[r.COMMENT,r.START_EXPR,r.START_BLOCK,r.START,r.END_BLOCK,r.OPERATOR,r.EQUALS,r.EOF,r.SEMICOLON,r.COMMA])},v.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var l=this._input.next(),i=!1,n=!1;this._input.hasNext()&&(i||n||this._input.peek()!==e)&&!this._input.testChar(o.newline);)l+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?n=!0:"]"===this._input.peek()&&(n=!1)),this._input.next();return this._input.peek()===e&&(l+=this._input.next(),l+=this._input.read(o.identifier)),this._create_token(r.STRING,l)}return null},v.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var l="",i=this.__patterns.xml.read_match();if(i){for(var n=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),a=0===n.indexOf("{"),s=0;i;){var c=!!i[1],d=i[2];if(!(!!i[i.length-1]||"![CDATA["===d.slice(0,8))&&(d===n||a&&d.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(c?--s:++s),l+=i[0],s<=0)break;i=this.__patterns.xml.read_match()}return i||(l+=this._input.match(/[\s\S]*/g)[0]),l=l.replace(o.allLineBreaks,"\n"),this._create_token(r.STRING,l)}}return null},v.prototype._read_string_recursive=function(e,t,l){var i,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 a=n.read(),s="";this._input.hasNext();){if((s=this._input.next())===e||!t&&o.newline.test(s)){this._input.back();break}"\\"===s&&this._input.hasNext()?("x"===(i=this._input.peek())||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),s+=this._input.next()):l&&("${"===l&&"$"===s&&"{"===this._input.peek()&&(s+=this._input.next()),l===s&&(s+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(s+=this._input.next()))),a+=s+=n.read()}return a},Pe.Tokenizer=v,Pe.TOKEN=r,Pe.positionable_operators=p.slice(),Pe.line_starters=b.slice(),Pe}function mt(){if(ct)return Se;ct=1;var e=Ie().Output,t=Te().Token,l=Fe(),i=Ke().Options,o=pt().Tokenizer,n=pt().line_starters,a=pt().positionable_operators,s=pt().TOKEN;function r(e,t){return-1!==t.indexOf(e)}function c(e,t){return e&&e.type===s.RESERVED&&e.text===t}function d(e,t){return e&&e.type===s.RESERVED&&r(e.text,t)}var u=["case","return","do","if","throw","else","await","break","continue","async"],h=function(e){for(var t={},l=0;l<e.length;l++)t[e[l].replace(/-/g,"_")]=e[l];return t}(["before-newline","after-newline","preserve-newline"]),p=[h.before_newline,h.preserve_newline],m="BlockStatement",g="Statement",A="ObjectLiteral",b="ArrayLiteral",f="ForInitializer",y="Conditional",v="Expression";function k(e,t){t.multiline_frame||t.mode===f||t.mode===y||e.remove_indent(t.start_line_index)}function C(e){return e===b}function E(e){return r(e,[v,f,y])}function V(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 i(t)}V.prototype.create_flags=function(e,l){var i=0;return e&&(i=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>i&&(i=e.line_indent_level)),{mode:l,parent:e,last_token:e?e.last_token:new t(s.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:i,alignment:0,line_indent_level:e?e.line_indent_level:i,start_line_index:this._output.get_line_number(),ternary_depth:0}},V.prototype._reset=function(t){var l=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,l),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(m);var i=new o(t,this._options);return this._tokens=i.tokenize(),t},V.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&&l.lineBreak.test(e||"")&&(t=e.match(l.lineBreak)[0]));for(var i=this._tokens.next();i;)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return this._output.get_code(t)},V.prototype.handle_token=function(e,t){e.type===s.START_EXPR?this.handle_start_expr(e):e.type===s.END_EXPR?this.handle_end_expr(e):e.type===s.START_BLOCK?this.handle_start_block(e):e.type===s.END_BLOCK?this.handle_end_block(e):e.type===s.WORD||e.type===s.RESERVED?this.handle_word(e):e.type===s.SEMICOLON?this.handle_semicolon(e):e.type===s.STRING?this.handle_string(e):e.type===s.EQUALS?this.handle_equals(e):e.type===s.OPERATOR?this.handle_operator(e):e.type===s.COMMA?this.handle_comma(e):e.type===s.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===s.COMMENT?this.handle_comment(e,t):e.type===s.DOT?this.handle_dot(e):e.type===s.EOF?this.handle_eof(e):(e.type,s.UNKNOWN,this.handle_unknown(e,t))},V.prototype.handle_whitespace_and_comments=function(e,t){var l=e.newlines,i=this._options.keep_array_indentation&&C(this._flags.mode);if(e.comments_before)for(var o=e.comments_before.next();o;)this.handle_whitespace_and_comments(o,t),this.handle_token(o,t),o=e.comments_before.next();if(i)for(var n=0;n<l;n+=1)this.print_newline(n>0,t);else if(this._options.max_preserve_newlines&&l>this._options.max_preserve_newlines&&(l=this._options.max_preserve_newlines),this._options.preserve_newlines&&l>1){this.print_newline(!1,t);for(var a=1;a<l;a+=1)this.print_newline(!0,t)}};var B=["async","break","continue","return","throw","yield"];return V.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var l=this._options.preserve_newlines&&e.newlines||t;if(r(this._flags.last_token.text,a)||r(e.text,a)){var i=r(this._flags.last_token.text,a)&&r(this._options.operator_position,p)||r(e.text,a);l=l&&i}if(l)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(d(this._flags.last_token,B))return;this._output.set_wrap_point()}}},V.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!==s.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var l=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&c(l,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},V.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))},V.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===s.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)}},V.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},V.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))},V.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)},V.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&&k(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},V.prototype.start_of_object_property=function(){return this._flags.parent.mode===A&&this._flags.mode===g&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"]))},V.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===s.WORD)||c(this._flags.last_token,"do"))||!(this._flags.parent.mode===A&&this._flags.mode===g)&&d(this._flags.last_token,B)&&!e.newlines)||c(this._flags.last_token,"else")&&!(c(e,"if")&&!e.comments_before))||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===f||this._previous_flags.mode===y))||this._flags.last_token.type===s.WORD&&this._flags.mode===m&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==s.WORD&&e.type!==s.RESERVED)||this._flags.mode===A&&(":"===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)},V.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=v;if("["===e.text){if(this._flags.last_token.type===s.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=b,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()),r(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=f):r(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=y):r(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:(r(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===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var l=this._tokens.peek(-3);if(this._options.space_after_named_function&&l){var i=this._tokens.peek(-4);d(l,["async","function"])||"*"===l.text&&d(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===A?"{"!==l.text&&","!==l.text&&("*"!==l.text||"{"!==i.text&&","!==i.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===s.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(r(this._last_last_text,["function","yield"])||this._flags.mode===A&&r(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===s.START_BLOCK?this.print_newline():this._flags.last_token.type!==s.END_EXPR&&this._flags.last_token.type!==s.START_EXPR&&this._flags.last_token.type!==s.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==s.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()},V.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!==s.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(),k(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===y&&(this._previous_flags.mode=v,this._flags.do_block=!1,this._flags.do_while=!1)},V.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),l=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(m),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(m):l&&(r(l.text,[":",","])&&r(t.type,[s.STRING,s.WORD,s.RESERVED])||r(t.text,["get","set","..."])&&r(l.type,[s.WORD,s.RESERVED]))?r(this._last_last_text,["class","interface"])&&!r(l.text,[":",","])?this.set_mode(m):this.set_mode(A):this._flags.last_token.type===s.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(m):r(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"])?this.set_mode(A):this.set_mode(m),this._flags.last_token&&d(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var i=!t.comments_before&&"}"===t.text,o=i&&"function"===this._flags.last_word&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var n=0,a=null;this._flags.inline_frame=!0;do{if(n+=1,(a=this._tokens.peek(n-1)).newlines){this._flags.inline_frame=!1;break}}while(a.type!==s.EOF&&(a.type!==s.END_BLOCK||a.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(o||this._flags.last_token.type===s.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!==s.START_EXPR&&this._flags.last_token.type!==s.COMMA||((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.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!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(this._flags.last_token.type!==s.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(e),this.indent(),i||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},V.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===s.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)},V.prototype.handle_word=function(e){if(e.type===s.RESERVED)if(r(e.text,["set","get"])&&this._flags.mode!==A)e.type=s.WORD;else if("import"===e.text&&r(this._tokens.peek().text,["(","."]))e.type=s.WORD;else if(r(e.text,["as","from"])&&!this._flags.import_block)e.type=s.WORD;else if(this._flags.mode===A){":"===this._tokens.peek().text&&(e.type=s.WORD)}if(this.start_of_statement(e)?d(this._flags.last_token,["var","let","const"])&&e.type===s.WORD&&(this._flags.declaration_statement=!0):!e.newlines||E(this._flags.mode)||this._flags.last_token.type===s.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===s.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(c(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&&c(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!==s.COMMA&&this._flags.last_token.type!==s.START_EXPR&&this._flags.last_token.type!==s.EQUALS&&this._flags.last_token.type!==s.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e),c(e,"function"))return(r(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!r(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==s.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,B)||c(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===s.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!E(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===s.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===s.SEMICOLON&&this._flags.mode===m?t="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&E(this._flags.mode)?t="SPACE":this._flags.last_token.type===s.STRING?t="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||"*"===this._flags.last_token.text&&(r(this._last_last_text,["function","yield"])||this._flags.mode===A&&r(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===s.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===s.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!==s.END_BLOCK||this._previous_flags.mode!==m||"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!==s.END_EXPR?this._flags.last_token.type===s.START_EXPR&&d(e,["var","let","const"])||":"===this._flags.last_token.text||(c(e,"if")&&c(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!==s.WORD&&e.previous.type!==s.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===s.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&&c(e,"from")&&(this._flags.import_block=!1))},V.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&&c(t,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},V.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==s.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==s.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},V.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},V.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?(E(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===A||this._flags.mode===g&&this._flags.parent.mode===A?(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)},V.prototype.handle_operator=function(e){var t="*"===e.text&&(d(this._flags.last_token,["function","yield"])||r(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),l=r(e.text,["-","+"])&&(r(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||r(this._flags.last_token.text,n)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var i=!t;this.handle_whitespace_and_comments(e,i)}if("*"!==e.text||this._flags.last_token.type!==s.DOT)if("::"!==e.text){if(this._flags.last_token.type===s.OPERATOR&&r(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!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var o=!0,c=!0,A=!1;if(":"===e.text?0===this._flags.ternary_depth?o=!1:(this._flags.ternary_depth-=1,A=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!l&&!t&&this._options.preserve_newlines&&r(e.text,a)){var b=":"===e.text,f=b&&A,y=b&&!A;switch(this._options.operator_position){case h.before_newline:return this._output.space_before_token=!y,this.print_token(e),b&&!f||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case h.after_newline:return this._output.space_before_token=!0,!b||f?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 h.preserve_newline:return y||this.allow_wrap_or_preserved_newline(e),o=!(this._output.just_added_newline()||y),this._output.space_before_token=o,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),o=!1;var v=this._tokens.peek();c=v&&r(v.type,[s.WORD,s.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),o=this._flags.last_token.type===s.START_BLOCK,c=!1;else if(r(e.text,["--","++","!","~"])||l){if(this._flags.last_token.type!==s.COMMA&&this._flags.last_token.type!==s.START_EXPR||this.allow_wrap_or_preserved_newline(e),o=!1,c=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var k=d(this._flags.last_token,u)&&e.newlines;k&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(k,!0)}";"===this._flags.last_token.text&&E(this._flags.mode)&&(o=!0),this._flags.last_token.type===s.RESERVED?o=!0:this._flags.last_token.type===s.END_EXPR?o=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===s.OPERATOR&&(o=r(e.text,["--","-","++","+"])&&r(this._flags.last_token.text,["--","-","++","+"]),r(e.text,["+","-"])&&r(this._flags.last_token.text,["--","++"])&&(c=!0)),(this._flags.mode!==m||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||o,this.print_token(e),this._output.space_before_token=c}else this.print_token(e);else this.print_token(e)},V.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)):l.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))},V.prototype.print_block_commment=function(e,t){var i,o=function(e){for(var t=[],i=(e=e.replace(l.allLineBreaks,"\n")).indexOf("\n");-1!==i;)t.push(e.substring(0,i)),i=(e=e.substring(i+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),n=!1,a=!1,s=e.whitespace_before,r=s.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(o[0]),this.print_newline(!1,t),o.length>1){for(n=function(e,t){for(var l=0;l<e.length;l++)if(e[l].trim().charAt(0)!==t)return!1;return!0}(o=o.slice(1),"*"),a=function(e,t){for(var l,i=0,o=e.length;i<o;i++)if((l=e[i])&&0!==l.indexOf(t))return!1;return!0}(o,s),n&&(this._flags.alignment=1),i=0;i<o.length;i++)n?(this.print_token_line_indentation(e),this._output.add_token(o[i].replace(/^\s+/g,""))):a&&o[i]?(this.print_token_line_indentation(e),this._output.add_token(o[i].substring(r))):(this._output.current_line.set_indent(-1),this._output.add_token(o[i])),this.print_newline(!1,t);this._flags.alignment=0}},V.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)},V.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)},V.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},V.prototype.handle_eof=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e)},Se.Beautifier=V,Se}var gt,At,bt,ft={exports:{}},yt={},vt={};function kt(){if(gt)return vt;gt=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 l=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||l;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o<i.length;o++)"expand"!==i[o]?this.brace_style="collapse":this.brace_style=i[o]}return t.prototype=new e,vt.Options=t,vt}function Ct(){if(bt)return ft.exports;bt=1;var e=function(){if(At)return yt;At=1;var e=kt().Options,t=Ie().Output,l=Xe().InputScanner,i=new(0,at().Directives)(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,a=/\s/,s=/(?:\s|\n)+/g,r=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(t,l){this._source_text=t||"",this._options=new e(l),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 d.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},d.prototype.eatWhitespace=function(e){for(var t=a.test(this._input.peek()),l=0;a.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===l||l<this._options.max_preserve_newlines)&&(l++,this._output.add_new_line(!0));return t},d.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,l=this._input.peek(t);l;){if("{"===l)return!0;if("("===l)e+=1;else if(")"===l){if(0===e)return!1;e-=1}else if(";"===l||"}"===l)return!1;t++,l=this._input.peek(t)}return!1},d.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},d.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},d.prototype.indent=function(){this._indentLevel++},d.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,d=this._options.eol;"auto"===d&&(d="\n",e&&o.test(e||"")&&(d=e.match(o)[0]));var u=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0];this._output=new t(this._options,u),this._input=new l(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var h,p,m=0,g=!1,A=!1,b=!1,f=!1,y=!1,v=!1,k=this._ch,C=!1;h=""!==this._input.read(s),p=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 E=this._input.read(r),V=i.get_directives(E);V&&"start"===V.ignore&&(E+=i.readIgnored(this._input)),this.print_string(E),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._ch)if(this.preserveSingleSpace(h),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var B=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);B.match(/[ :]$/)&&(B=this.eatString(": ").replace(/\s$/,""),this.print_string(B),this._output.space_before_token=!0),"extend"===(B=B.replace(/\s$/,""))?f=!0:"import"===B&&(y=!0),B in this.NESTED_AT_RULE?(this._nestedLevel+=1,B in this.CONDITIONAL_GROUP_RULE&&(b=!0)):g||0!==m||-1===B.indexOf(":")||(A=!0,this.indent())}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(h),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)A&&(A=!1,this.outdent()),b?(b=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&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)):("("===p?this._output.space_before_token=!1:","!==p&&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(),"{"===p&&this._output.trim(!0),y=!1,f=!1,A&&(this.outdent(),A=!1),this.print_string(this._ch),g=!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 x=0;x<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;x++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[x])){C=!0;break}!g&&!b||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||f||0!==m?(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(":"),A||(A=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var w='"'===p||"'"===p;this.preserveSingleSpace(w||h),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)C=!1,0===m?(A&&(this.outdent(),A=!1),f=!1,y=!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(),m++,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(")")),m&&(m--,this.outdent()));else{var N=!1;this._input.lookBack("with")&&(N=!0),this.preserveSingleSpace(h||N),this.print_string(this._ch),A&&"$"===p&&this._options.selector_separator_newline?(this._output.add_new_line(),v=!0):(this.eatWhitespace(),m++,this.indent())}else if(")"===this._ch)m&&(m--,this.outdent()),v&&";"===this._input.peek()&&this._options.selector_separator_newline&&(v=!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||A&&!v||0!==m||y||f?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||A||0!==m)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(h),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),a.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var S='"'===p||"'"===p;this.preserveSingleSpace(S||h),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&C&&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&&a.test(this._ch)&&(this._ch=""));return this._output.get_code(d)},yt.Beautifier=d,yt}().Beautifier,t=kt().Options;return ft.exports=function(t,l){return new e(t,l).beautify()},ft.exports.defaultOptions=function(){return new t},ft.exports}var Et,Vt={exports:{}},Bt={},xt={};function wt(){if(Et)return xt;Et=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_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.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,xt.Options=t,xt}var Nt,St,_t,It,qt={};function Dt(){if(Nt)return qt;Nt=1;var e=it().Tokenizer,t=it().TOKEN,l=at().Directives,i=ht().TemplatablePattern,o=lt().Pattern,n={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_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},a=new l(/<\!--/,/-->/),s=function(t,l){e.call(this,t,l),this._current_tag_name="";var n=new i(this._input).read_options(this._options),a=new o(this._input);if(this.__patterns={word: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 >\/]/),handlebars_comment:a.starting_with(/{{!--/).until_after(/--}}/),handlebars:a.starting_with(/{{/).until_after(/}}/),handlebars_open:a.until(/[\n\r\t }]/),handlebars_raw_close:a.until(/}}/),comment:a.starting_with(/<!--/).until_after(/-->/),cdata:a.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:a.starting_with(/<!\[/).until_after(/]>/),processing:a.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var s=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=a.matching(s).until_after(s)}};return(s.prototype=new e)._is_comment=function(e){return!1},s.prototype._is_opening=function(e){return e.type===n.TAG_OPEN},s.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])},s.prototype._reset=function(){this._current_tag_name=""},s.prototype._get_next_token=function(e,t){var l=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(n.EOF,""):l=(l=(l=(l=(l=(l=(l=(l=(l=l||this._read_open_handlebars(i,t))||this._read_attribute(i,e,t))||this._read_close(i,t))||this._read_raw_content(i,e,t))||this._read_content_word(i))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,t))||this._create_token(n.UNKNOWN,this._input.next())},s.prototype._read_comment_or_cdata=function(e){var t=null,l=null,i=null;"<"===e&&("!"===this._input.peek(1)&&((l=this.__patterns.comment.read())?(i=a.get_directives(l))&&"start"===i.ignore&&(l+=a.readIgnored(this._input)):l=this.__patterns.cdata.read()),l&&((t=this._create_token(n.COMMENT,l)).directives=i));return t},s.prototype._read_processing=function(e){var t=null,l=null;if("<"===e){var i=this._input.peek(1);"!"!==i&&"?"!==i||(l=(l=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),l&&((t=this._create_token(n.COMMENT,l)).directives=null)}return t},s.prototype._read_open=function(e,t){var l=null,i=null;return t||"<"===e&&(l=this._input.next(),"/"===this._input.peek()&&(l+=this._input.next()),l+=this.__patterns.element_name.read(),i=this._create_token(n.TAG_OPEN,l)),i},s.prototype._read_open_handlebars=function(e,t){var l=null,i=null;return t||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(l=(l=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(n.COMMENT,l)):(l=this.__patterns.handlebars_open.read(),i=this._create_token(n.TAG_OPEN,l))),i},s.prototype._read_close=function(e,t){var l=null,i=null;return t&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(l=this._input.next(),"/"===e&&(l+=this._input.next()),i=this._create_token(n.TAG_CLOSE,l)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(n.TAG_CLOSE,"}}"))),i},s.prototype._read_attribute=function(e,t,l){var i=null,o="";if(l&&"<"===l.text[0])if("="===e)i=this._create_token(n.EQUALS,this._input.next());else if('"'===e||"'"===e){var a=this._input.next();a+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(n.VALUE,a)}else(o=this.__patterns.attribute.read())&&(i=t.type===n.EQUALS?this._create_token(n.VALUE,o):this._create_token(n.ATTRIBUTE,o));return i},s.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))},s.prototype._read_raw_content=function(e,t,l){var i="";if(l&&"{"===l.text[0])i=this.__patterns.handlebars_raw_close.read();else 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;i=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(o)&&(i=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig")))}return i?this._create_token(n.TEXT,i):null},s.prototype._read_content_word=function(e){var t="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(t=this.__patterns.unformatted_content_delimiter.read()),t||(t=this.__patterns.word.read()),t)return this._create_token(n.TEXT,t)},qt.Tokenizer=s,qt.TOKEN=n,qt}function Tt(){if(St)return Bt;St=1;var e=wt().Options,t=Ie().Output,l=Dt().Tokenizer,i=Dt().TOKEN,o=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,a=function(e,l){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,l)};a.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},a.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},a.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},a.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},a.prototype.print_preserved_newlines=function(e){var t=0;e.type!==i.TEXT&&e.previous.type!==i.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 l=0;l<t;l++)this.print_newline(l>0);return 0!==t},a.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},a.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},a.prototype.print_newline=function(e){this._output.add_new_line(e)},a.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},a.prototype.indent=function(){this.indent_level++},a.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var s=function(e,t){var l=null,o=null;return t.closed?("script"===e?l="text/javascript":"style"===e&&(l="text/css"),l=function(e){for(var t=null,l=e.next;l.type!==i.EOF&&e.closed!==l;){if(l.type===i.ATTRIBUTE&&"type"===l.text){l.next&&l.next.type===i.EQUALS&&l.next.next&&l.next.next.type===i.VALUE&&(t=l.next.next.text);break}l=l.next}return t}(t)||l,l.search("text/css")>-1?o="css":l.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?o="javascript":l.search(/(text|application|dojo)\/(x-)?(html)/)>-1?o="html":l.search(/test\/null/)>-1&&(o="null"),o):null};function r(e,t){return-1!==t.indexOf(e)}function c(e,t,l){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=l||0,this.parser_token=t||null}function d(e){this._printer=e,this._current_frame=null}function u(t,l,i,o){this._source_text=t||"",l=l||{},this._js_beautify=i,this._css_beautify=o,this._tag_stack=null;var n=new e(l,"html");this._options=n,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),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,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(e){var t=new c(this._current_frame,e,this._printer.indent_level);this._current_frame=t},d.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},d.prototype._get_frame=function(e,t){for(var l=this._current_frame;l&&-1===e.indexOf(l.tag);){if(t&&-1!==t.indexOf(l.tag)){l=null;break}l=l.parent}return l},d.prototype.try_pop=function(e,t){var l=this._get_frame([e],t);return this._try_pop_frame(l)},d.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},u.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&&o.test(e)&&(t=e.match(o)[0]));var s=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0],r={text:"",type:""},c=new h,u=new a(this._options,s),p=new l(e,this._options).tokenize();this._tag_stack=new d(u);for(var m=null,g=p.next();g.type!==i.EOF;)g.type===i.TAG_OPEN||g.type===i.COMMENT?c=m=this._handle_tag_open(u,g,c,r):g.type===i.ATTRIBUTE||g.type===i.EQUALS||g.type===i.VALUE||g.type===i.TEXT&&!c.tag_complete?m=this._handle_inside_tag(u,g,c,p):g.type===i.TAG_CLOSE?m=this._handle_tag_close(u,g,c):g.type===i.TEXT?m=this._handle_text(u,g,c):u.add_raw_token(g),r=m,g=p.next();return u._output.get_code(t)},u.prototype._handle_tag_close=function(e,t,l){var i={text:t.text,type:t.type};return e.alignment_size=0,l.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),l.is_unformatted?e.add_raw_token(t):("<"===l.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&l.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!l.indent_content||l.is_unformatted||l.is_content_unformatted||(e.indent(),l.indent_content=!1),l.is_inline_element||l.is_unformatted||l.is_content_unformatted||e.set_wrap_point(),i},u.prototype._handle_inside_tag=function(e,t,l,o){var n=l.has_wrapped_attrs,a={text:t.text,type:t.type};if(e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),l.is_unformatted)e.add_raw_token(t);else if("{"===l.tag_start_char&&t.type===i.TEXT)e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t);else{if(t.type===i.ATTRIBUTE?(e.set_space_before_token(!0),l.attr_count+=1):(t.type===i.EQUALS||t.type===i.VALUE&&t.previous.type===i.EQUALS)&&e.set_space_before_token(!1),t.type===i.ATTRIBUTE&&"<"===l.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)){var s=l.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===l.attr_count){var r,c=!0,d=0;do{if((r=o.peek(d)).type===i.ATTRIBUTE){c=!1;break}d+=1}while(d<4&&r.type!==i.EOF&&r.type!==i.TAG_CLOSE);s=!c}s&&(e.print_newline(!1),n=!0)}e.print_token(t),n=n||e.previous_token_wrapped(),l.has_wrapped_attrs=n}return a},u.prototype._handle_text=function(e,t,l){var i={text:t.text,type:"TK_CONTENT"};return l.custom_beautifier_name?this._print_custom_beatifier_text(e,t,l):l.is_unformatted||l.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),i},u.prototype._print_custom_beatifier_text=function(e,t,l){var i=this;if(""!==t.text){var o,n=t.text,a=1,s="",r="";"javascript"===l.custom_beautifier_name&&"function"==typeof this._js_beautify?o=this._js_beautify:"css"===l.custom_beautifier_name&&"function"==typeof this._css_beautify?o=this._css_beautify:"html"===l.custom_beautifier_name&&(o=function(e,t){return new u(e,t,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-e.indent_level);var c=e.get_full_indent(a);if(n=n.replace(/\n[ \t]*$/,""),"html"!==l.custom_beautifier_name&&"<"===n[0]&&n.match(/^(<!--|<!\[CDATA\[)/)){var d=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(n);if(!d)return void e.add_raw_token(t);s=c+d[1]+"\n",n=d[4],d[5]&&(r=c+d[5]),n=n.replace(/\n[ \t]*$/,""),(d[2]||-1!==d[3].indexOf("\n"))&&(d=d[3].match(/[ \t]+$/))&&(t.whitespace_before=d[0])}if(n)if(o){var h=function(){this.eol="\n"};h.prototype=this._options.raw_options,n=o(c+n,new h)}else{var p=t.whitespace_before;p&&(n=n.replace(new RegExp("\n("+p+")?","g"),"\n")),n=c+n.replace(/\n/g,"\n"+c)}s&&(n=n?s+n+"\n"+r:s+r),e.print_newline(!1),n&&(t.text=n,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},u.prototype._handle_tag_open=function(e,t,l,o){var n=this._get_tag_open_token(t);return!l.is_unformatted&&!l.is_content_unformatted||l.is_empty_element||t.type!==i.TAG_OPEN||0!==t.text.indexOf("</")?(e.traverse_whitespace(t),this._set_tag_position(e,t,n,l,o),n.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),n.start_tag_token=this._tag_stack.try_pop(n.tag_name)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(n.alignment_size=t.text.length+1),n.tag_complete||n.is_unformatted||(e.alignment_size=n.alignment_size),n};var h=function(e,t){if(this.parent=e||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="",t){var l;this.tag_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(l=t.text.match(/^<([^\s>]*)/),this.tag_check=l?l[1]:""):(l=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=l?l[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==t.next?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===i.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||t.closed&&"/>"===t.closed.text;var o=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(o=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(o)))}else this.tag_complete=!0};u.prototype._get_tag_open_token=function(e){var t=new h(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||r(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&&r(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&r(t.tag_check,this._options.content_unformatted),t.is_inline_element=r(t.tag_name,this._options.inline)||t.tag_name.includes("-")||"{"===t.tag_start_char,t},u.prototype._set_tag_position=function(e,t,l,o,n){if(l.is_empty_element||(l.is_end_tag?l.start_tag_token=this._tag_stack.try_pop(l.tag_name):(this._do_optional_end_element(l)&&(l.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(l),"script"!==l.tag_name&&"style"!==l.tag_name||l.is_unformatted||l.is_content_unformatted||(l.custom_beautifier_name=s(l.tag_check,t)))),r(l.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),l.is_empty_element){if("{"===l.tag_start_char&&"else"===l.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),l.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===l.tag_name&&n.type===i.TAG_CLOSE&&o.is_end_tag&&-1===l.text.indexOf("\n")||(l.is_inline_element||l.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,l))}else if(l.is_end_tag){var a=!1;a=(a=l.start_tag_token&&l.start_tag_token.multiline_content)||!l.is_inline_element&&!(o.is_inline_element||o.is_unformatted)&&!(n.type===i.TAG_CLOSE&&l.start_tag_token===o)&&"TK_CONTENT"!==n.type,(l.is_content_unformatted||l.is_unformatted)&&(a=!1),a&&e.print_newline(!1)}else l.indent_content=!l.custom_beautifier_name,"<"===l.tag_start_char&&("html"===l.tag_name?l.indent_content=this._options.indent_inner_html:"head"===l.tag_name?l.indent_content=this._options.indent_head_inner_html:"body"===l.tag_name&&(l.indent_content=this._options.indent_body_inner_html)),l.is_inline_element||l.is_unformatted||"TK_CONTENT"===n.type&&!l.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,l)},u.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 p=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],m=["a","audio","del","ins","map","noscript","video"];return u.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"]);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!==p.indexOf(e.tag_name)){var l=e.parent.parent;l&&-1!==m.indexOf(l.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}},Bt.Beautifier=u,Bt}function Ut(){if(It)return we;It=1;var e=function(){if(dt)return Ne.exports;dt=1;var e=mt().Beautifier,t=Ke().Options;return Ne.exports=function(t,l){return new e(t,l).beautify()},Ne.exports.defaultOptions=function(){return new t},Ne.exports}(),t=Ct(),l=function(){if(_t)return Vt.exports;_t=1;var e=Tt().Beautifier,t=wt().Options;return Vt.exports=function(t,l,i,o){return new e(t,l,i,o).beautify()},Vt.exports.defaultOptions=function(){return new t},Vt.exports}();function i(i,o,n,a){return l(i,o,n=n||e,a=a||t)}return i.defaultOptions=l.defaultOptions,we.js=e,we.css=t,we.html=i,we}!function(e){!function(e){var t=Ut();t.js_beautify=t.js,t.css_beautify=t.css,t.html_beautify=t.html,e.exports=function(e,t,l){var i=function(t,l){return e.js_beautify(t,l)};return i.js=e.js_beautify,i.css=t.css_beautify,i.html=l.html_beautify,i.js_beautify=e.js_beautify,i.css_beautify=t.css_beautify,i.html_beautify=l.html_beautify,i}(t,t,t)}(e)}(xe);var Rt=fe(xe.exports),Ft={exports:{}};!function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,l=0,i={},o={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:++l}),e.__id},clone:function e(t,l){var i,n;switch(l=l||{},o.util.type(t)){case"Object":if(n=o.util.objId(t),l[n])return l[n];for(var a in i={},l[n]=i,t)t.hasOwnProperty(a)&&(i[a]=e(t[a],l));return i;case"Array":return n=o.util.objId(t),l[n]?l[n]:(i=[],l[n]=i,t.forEach((function(t,o){i[o]=e(t,l)})),i);default:return t}},getLanguage:function(e){for(;e;){var l=t.exec(e.className);if(l)return l[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,l){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+l)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(i){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var l in t)if(t[l].src==e)return t[l]}return null}},isActive:function(e,t,l){for(var i="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(i))return!1;e=e.parentElement}return!!l}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(e,t){var l=o.util.clone(o.languages[e]);for(var i in t)l[i]=t[i];return l},insertBefore:function(e,t,l,i){var n=(i=i||o.languages)[e],a={};for(var s in n)if(n.hasOwnProperty(s)){if(s==t)for(var r in l)l.hasOwnProperty(r)&&(a[r]=l[r]);l.hasOwnProperty(s)||(a[s]=n[s])}var c=i[e];return i[e]=a,o.languages.DFS(o.languages,(function(t,l){l===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,l,i,n){n=n||{};var a=o.util.objId;for(var s in t)if(t.hasOwnProperty(s)){l.call(t,s,t[s],i||s);var r=t[s],c=o.util.type(r);"Object"!==c||n[a(r)]?"Array"!==c||n[a(r)]||(n[a(r)]=!0,e(r,l,s,n)):(n[a(r)]=!0,e(r,l,null,n))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,l){var i={callback:l,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),o.hooks.run("before-all-elements-highlight",i);for(var n,a=0;n=i.elements[a++];)o.highlightElement(n,!0===t,i.callback)},highlightElement:function(t,l,i){var n=o.util.getLanguage(t),a=o.languages[n];o.util.setLanguage(t,n);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&o.util.setLanguage(s,n);var r={element:t,language:n,grammar:a,code:t.textContent};function c(e){r.highlightedCode=e,o.hooks.run("before-insert",r),r.element.innerHTML=r.highlightedCode,o.hooks.run("after-highlight",r),o.hooks.run("complete",r),i&&i.call(r.element)}if(o.hooks.run("before-sanity-check",r),(s=r.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!r.code)return o.hooks.run("complete",r),void(i&&i.call(r.element));if(o.hooks.run("before-highlight",r),r.grammar)if(l&&e.Worker){var d=new Worker(o.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:r.language,code:r.code,immediateClose:!0}))}else c(o.highlight(r.code,r.grammar,r.language));else c(o.util.encode(r.code))},highlight:function(e,t,l){var i={code:e,grammar:t,language:l};if(o.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=o.tokenize(i.code,i.grammar),o.hooks.run("after-tokenize",i),n.stringify(o.util.encode(i.tokens),i.language)},tokenize:function(e,t){var l=t.rest;if(l){for(var i in l)t[i]=l[i];delete t.rest}var o=new r;return c(o,o.head,e),s(e,o,t,o.head,0),function(e){var t=[],l=e.head.next;for(;l!==e.tail;)t.push(l.value),l=l.next;return t}(o)},hooks:{all:{},add:function(e,t){var l=o.hooks.all;l[e]=l[e]||[],l[e].push(t)},run:function(e,t){var l=o.hooks.all[e];if(l&&l.length)for(var i,n=0;i=l[n++];)i(t)}},Token:n};function n(e,t,l,i){this.type=e,this.content=t,this.alias=l,this.length=0|(i||"").length}function a(e,t,l,i){e.lastIndex=t;var o=e.exec(l);if(o&&i&&o[1]){var n=o[1].length;o.index+=n,o[0]=o[0].slice(n)}return o}function s(e,t,l,i,r,u){for(var h in l)if(l.hasOwnProperty(h)&&l[h]){var p=l[h];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(u&&u.cause==h+","+m)return;var g=p[m],A=g.inside,b=!!g.lookbehind,f=!!g.greedy,y=g.alias;if(f&&!g.pattern.global){var v=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,v+"g")}for(var k=g.pattern||g,C=i.next,E=r;C!==t.tail&&!(u&&E>=u.reach);E+=C.value.length,C=C.next){var V=C.value;if(t.length>e.length)return;if(!(V instanceof n)){var B,x=1;if(f){if(!(B=a(k,E,e,b))||B.index>=e.length)break;var w=B.index,N=B.index+B[0].length,S=E;for(S+=C.value.length;w>=S;)S+=(C=C.next).value.length;if(E=S-=C.value.length,C.value instanceof n)continue;for(var _=C;_!==t.tail&&(S<N||"string"==typeof _.value);_=_.next)x++,S+=_.value.length;x--,V=e.slice(E,S),B.index-=E}else if(!(B=a(k,0,V,b)))continue;w=B.index;var I=B[0],q=V.slice(0,w),D=V.slice(w+I.length),T=E+V.length;u&&T>u.reach&&(u.reach=T);var U=C.prev;if(q&&(U=c(t,U,q),E+=q.length),d(t,U,x),C=c(t,U,new n(h,A?o.tokenize(I,A):I,y,I)),D&&c(t,C,D),x>1){var R={cause:h+","+m,reach:T};s(e,t,l,C.prev,E,R),u&&R.reach>u.reach&&(u.reach=R.reach)}}}}}}function r(){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,l){var i=t.next,o={value:l,prev:t,next:i};return t.next=o,i.prev=o,e.length++,o}function d(e,t,l){for(var i=t.next,o=0;o<l&&i!==e.tail;o++)i=i.next;t.next=i,i.prev=t,e.length-=o}if(e.Prism=o,n.stringify=function e(t,l){if("string"==typeof t)return t;if(Array.isArray(t)){var i="";return t.forEach((function(t){i+=e(t,l)})),i}var n={type:t.type,content:e(t.content,l),tag:"span",classes:["token",t.type],attributes:{},language:l},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(n.classes,a):n.classes.push(a)),o.hooks.run("wrap",n);var s="";for(var r in n.attributes)s+=" "+r+'="'+(n.attributes[r]||"").replace(/"/g,""")+'"';return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+s+">"+n.content+"</"+n.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var l=JSON.parse(t.data),i=l.language,n=l.code,a=l.immediateClose;e.postMessage(o.highlight(n,o.languages[i],i)),a&&e.close()}),!1),o):o;var u=o.util.currentScript();function h(){o.manual||o.highlightAll()}if(u&&(o.filename=u.src,u.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&u&&u.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return o}("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,l,i,o,n,a,s){"use strict";function r(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(l){if("default"!==l){var i=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,i.get?i:{enumerable:!0,get:function(){return e[l]}})}})),t.default=e,Object.freeze(t)}var d=r(i),u=r(o),h=c(s),p={name:"HlxAccordion",props:{accordionData:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},headerBorder:{type:Boolean,default:!1}},data:()=>({unique:Math.floor(1e3*Math.random()+1)}),methods:{toggleView(e,t,l){0==l?"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"):"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"):(console.log("kii"),"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"):"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"))}}};const m=["id","multiple"],g=["id"],A={style:{width:"100%"}},b={style:{display:"flex"}},f=["id"],y=["id"];p.render=function(e,l,i,o,n,a){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:i.multiple},[t.createElementVNode("div",{id:["header-"+n.unique],class:"accordion-header",onClick:l[0]||(l[0]=e=>a.toggleView(e,n.unique,i.multiple))},[t.createElementVNode("header",A,[t.renderSlot(e.$slots,"item-title")]),t.createElementVNode("div",b,[t.createElementVNode("i",{id:["arrow-"+n.unique],class:"right icon-angle-right-regular"},null,8,f)])],8,g),t.createElementVNode("div",{id:["content-"+n.unique],class:"accordion-content"},[t.renderSlot(e.$slots,"item-body")],8,y)],8,m)),t.createCommentVNode(" </div> ")],2112)},p.__file="src/components/AccordionComponent.vue";var v={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=Math.floor(65536*(1+Math.random())).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 k={key:0,class:"hlx-alert-wrapper"},C=["id"],E={class:"icon"},V={class:"text"},B={class:"alert-description"},x=["onClick"],w=[t.createElementVNode("i",{class:"icon-times-filled"},null,-1)];v.render=function(e,l,i,o,n,a){return t.openBlock(),t.createBlock(t.Teleport,{to:"body",class:"alert-not"},[n.notifications.length>0?(t.openBlock(),t.createElementBlock("section",k,[(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",a.getClass(e)])},[t.createElementVNode("span",E,[t.createElementVNode("i",{class:t.normalizeClass(a.icon(e.type))},null,2)]),t.createElementVNode("div",V,[t.createElementVNode("p",B,t.toDisplayString(e.message),1)]),t.createElementVNode("button",{class:"close","aria-label":"close",onClick:t=>a.closeAlert(e.id)},w,8,x)],10,C)))),128))])):t.createCommentVNode("v-if",!0)])},v.__file="src/components/AlertComponent.vue";var N={name:"HlxBadge",props:{icon:{type:String,default:""},count:{type:Number,default:0}}};const S=["aria-label"],_={class:"icon-button__badge",style:{"font-size":"10px"}};N.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("button",{id:"badge",type:"button",class:"icon-button","aria-label":i.icon},[t.createElementVNode("span",{class:t.normalizeClass(i.icon)},null,2),t.createElementVNode("span",_,t.toDisplayString(i.count),1)],8,S)},N.__file="src/components/BadgeComponent.vue";var I={name:"HlxBreadcrumb",props:{items:{type:Array,required:!0},separator:{type:[String,Object],default:"/"}},emits:["path"],computed:{isIconSeparator(){return"object"==typeof this.separator}},methods:{current(e){this.$emit("path",e)}}};const q={class:"breadcrumb","aria-label":"Breadcrumb"},D=["onClick"],T=["aria-current"],U={key:2},R={key:3,class:"breadcrumb-separator"},F={key:1};I.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("nav",q,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.items,((e,l)=>(t.openBlock(),t.createElementBlock("li",{key:l,onClick:t=>a.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),l===i.items.length-1?(t.openBlock(),t.createElementBlock("a",{key:1,"aria-current":e.label,class:t.normalizeClass({disabledd:l===i.items.length-1})},t.toDisplayString(e.label),11,T)):(t.openBlock(),t.createElementBlock("a",U,t.toDisplayString(e.label),1)),t.createCommentVNode(' <router-link :to="item.link" :class="{ disabled: index === items.length - 1 } " >{{ item.label }}</router-link> '),l<i.items.length-1?(t.openBlock(),t.createElementBlock("span",R,[a.isIconSeparator?(t.openBlock(),t.createElementBlock("i",{key:0,"aria-hidden":"true",class:t.normalizeClass(i.separator.icon)},null,2)):(t.openBlock(),t.createElementBlock("span",F,t.toDisplayString(i.separator),1))])):t.createCommentVNode("v-if",!0)],8,D)))),128))])])},I.__file="src/components/BreadcrumbComponent.vue";var H={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"],O=["aria-label","href","target"];H.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("button",{id:"hlx-button-0009",ref:"hlx-button",value:i.value,type:i.type,name:i.name,class:t.normalizeClass([a.primaryClass,"hlx-button"]),"aria-label":i.label,onClick:l[0]||(l[0]=(...e)=>a.clicked&&a.clicked(...e))},[t.renderSlot(e.$slots,"default"),null!=i.href?(t.openBlock(),t.createElementBlock("a",{key:0,ref:"link-ele","aria-label":i.label,href:i.href,target:i.target},null,8,O)):t.createCommentVNode("v-if",!0)],10,L)},H.__file="src/components/ButtonComponent.vue";var M={name:"HlxCalendar",props:{disableWeekend:{type:Boolean,default:!1},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"],data:()=>({selectedMonth:"",selectedYear:"",selectedDay:""}),mounted(){const e=document.querySelector(".calendar"),t=document.querySelector(".light");e.clientY=this.event.clientY,t.right=this.event.clientX+"px";const l=["January","February","March","April","May","June","July","August","September","October","November","December"],i=[];let o=this.startYear;const n=this.endYear;for(;o<=n;)i.push(o++);const a=e.querySelector(".month-list");i.forEach(((e,t)=>{const l=document.createElement("div");l.innerHTML=`<div data-month="${t}" id="year${t}">${e}</div>`;let i=(new Date).getFullYear();i+=1,e===i&&(document.getElementById("year"+(t-1)).classList.add("theme-background"),document.getElementById("year"+(t-1)).style.color="white"),l.querySelector("div").onclick=()=>{a.classList.remove("show"),c.value=e,this.selectedMonth=r.value,this.selectedYear=c.value,this.generateCalendar(r.value,c.value)},a.appendChild(l)}));e.querySelector("#year").onclick=()=>{a.classList.add("show"),localStorage.setItem("calendarScroll",680),a.scrollTo(0,localStorage.getItem("calendarScroll"))};let s="";if(""===this.preValue)s=new Date;else{const e=this.preValue.split("-");s=new Date(e[2],e[1]-1,e[0])}const r={value:s.getMonth()},c={value:s.getFullYear()};this.selectedMonth=r.value,this.selectedYear=c.value,this.generateCalendar(r.value,c.value);const d=document.querySelector(".calendar");340===d.offsetHeight?d.style.marginTop="-35px":d.style.marginTop="0px",document.querySelector("#prev-year").onclick=()=>{"January"===l[r.value]?(r.value=11,--c.value):--r.value,this.selectedMonth=r.value,this.selectedYear=c.value,this.generateCalendar(r.value,c.value);const e=document.querySelector(".calendar");340===e.offsetHeight?e.style.marginTop="-35px":e.style.marginTop="0"},document.querySelector("#next-year").onclick=()=>{const e=document.querySelector(".calendar");"December"===l[r.value]?(r.value=0,++c.value):++r.value,this.selectedMonth=r.value,this.selectedYear=c.value,this.generateCalendar(r.value,c.value),340===e.offsetHeight?e.style.marginTop="-35px":e.style.marginTop="0"}},methods:{log(e){""!==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))},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){const l=document.querySelector(".calendar"),i=l.querySelector(".calendar-days"),o=l.querySelector("#year"),n=[31,this.getFebDays(t),31,30,31,30,31,31,30,31,30,31];i.innerHTML="";let a="";if(""===this.preValue)a=new Date;else{const e=this.preValue.split("-");a=new Date(e[2],e[1]-1,e[0])}t||(t=a.getFullYear());const s=`${["January","February","March","April","May","June","July","August","September","October","November","December"][e]}`;l.querySelector("#month-picker").innerHTML=s,o.innerHTML=t;const r=new Date(t,e,1);for(let l=0;l<=n[e]+r.getDay()-1;l++){const o=document.createElement("div");if(l>=r.getDay()){o.classList.add("calendar-day-hover");const i=new Date(t,e,l),n=l-r.getDay()+1+"-"+String(Number(i.getMonth())+1)+"-"+i.getFullYear();o.classList.add(n),this.holidayList.length>0&&this.holidayList.forEach((e=>{e===n&&(o.classList.remove("calendar-day-hover"),o.classList.add("disable-weekend"))})),o.innerHTML=l-r.getDay()+1,o.innerHTML+="",l-r.getDay()+1===a.getDate()&&t===a.getFullYear()&&e===a.getMonth()&&o.classList.add("curr-date")}i.appendChild(o)}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 l in t)e[t[l]]&&""!==e[t[l]].innerHTML&&(e[t[l]].classList.remove("calendar-day-hover"),e[t[l]].classList.add("disable-weekend"))}}}};const Q={class:"light"},K={class:"calendar"},j=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),P={class:"calendar-body"},z=t.createElementVNode("div",{class:"calendar-week-day"},[t.createElementVNode("div",null,"SUN"),t.createElementVNode("div",null,"MON"),t.createElementVNode("div",null,"TUE"),t.createElementVNode("div",null,"WED"),t.createElementVNode("div",null,"THU"),t.createElementVNode("div",null,"FRI"),t.createElementVNode("div",null,"SAT")],-1),X=t.createElementVNode("div",{class:"month-list"},null,-1);M.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("div",Q,[t.createElementVNode("div",K,[j,t.createElementVNode("div",P,[z,t.createElementVNode("div",{class:"calendar-days",onClick:l[0]||(l[0]=(...e)=>a.log&&a.log(...e))})]),t.createCommentVNode(' <div class="calendar-footer">\r\n\r\n </div> '),X])])},M.__file="src/components/CalendarComponent.vue";var J={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 W={key:0,class:"card-title"},Y=t.createTextVNode("Card title"),G=t.createTextVNode("Card body"),Z={key:1,class:"card-footer"},$=t.createTextVNode("Card footer");J.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["card",{cardhover:i.hover,cardshadow:i.shadow,padding:i.padding,cardActive:i.active}]),style:t.normalizeStyle("width:"+i.width+"px; height:"+i.height+"px;")},[1==i.cardTitle?(t.openBlock(),t.createElementBlock("div",W,[t.createElementVNode("header",null,[t.renderSlot(e.$slots,"card-title",{},(()=>[Y]))])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{class:"card-body",style:t.normalizeStyle(i.cardTitle&&i.cardFooter?{height:i.height-a.headerHeight-a.footerHeight+"px"}:{height:"100%"})},[t.createCommentVNode(" {{this.card_body}} "),t.createElementVNode("main",null,[t.renderSlot(e.$slots,"card-body",{},(()=>[G]))])],4),1==i.cardFooter?(t.openBlock(),t.createElementBlock("div",Z,[t.createCommentVNode(" {{this.cardFooter}} "),t.createElementVNode("footer",null,[t.renderSlot(e.$slots,"card-footer",{},(()=>[$]))])])):t.createCommentVNode("v-if",!0)],6)},J.__file="src/components/CardsComponent.vue";var ee={name:"HlxColorPalette",props:{highlightColor:{type:Boolean,default:!1}},emits:["customChange"],data:()=>({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:""}),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(){!1===this.colorcontainer?this.colorcontainer=!0:!0===this.colorcontainer&&(this.colorcontainer=!1)},colorpicker(){this.colorpick=!0}}};const te={class:"color-palette-container"},le={class:"color-palette-icon"},ie={key:0,class:"icon-palette-regular"},oe={key:1,class:"highlight-container"},ne={key:0,class:"highlight-icon"},ae=[t.createElementVNode("i",{class:"icon-angle-down-regular"},null,-1)],se={key:0,class:"color-container"},re=t.createElementVNode("p",{class:"color-container-title"},"Theme Colors",-1),ce={class:"color-container-specific-color"},de={class:"color-container-specific-color1"},ue=t.createElementVNode("p",{class:"color-container-title"},"Standard Colors",-1),he={class:"color-container-specific-color"},pe={class:"color-container2323"},me=["value"],ge={key:0,class:"color-container-title"},Ae={class:"color-container-specific-color2"};ee.render=function(e,l,i,o,n,a){return t.openBlock(),t.createElementBlock("div",te,[t.createElementVNode("div",le,[1==n.fill_color?(t.openBlock(),t.createElementBlock("i",ie)):t.createCommentVNode("v-if",!0),!0===i.highlightColor?(t.openBlock(),t.createElementBlock("div",oe,[!0===i.highlightColor?(t.openBlock(),t.createElementBlock("p",ne,"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",{"aria-dis":"",class:"color-palette-open-icon",onClick:l[0]||(l[0]=(...e)=>a.colorpalette&&a.colorpalette(...e))},ae),!0===n.colorcontainer?(t.openBlock(),t.createElementBlock("button",se,[re,t.createElementVNode("button",ce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.colordata,((e,i)=>(t.openBlock(),t.createElementBlock("button",{key:i,class:"color-container-specific-color-checkbox-border",onClick:l[1]||(l[1]=(...e)=>a.getcolor&&a.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:Object.keys(n.colordata[i])[0]})},null,4)])))),128))]),t.createElementVNode("button",de,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.colordata,((e,i)=>(t.openBlock(),t.createElementBlock("button",{key:i,class:"color-container-specific-color1-container",onClick:l[2]||(l[2]=(...e)=>a.getcolor&&a.getcolor(...e))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.values(n.colordata[i])[0].length,((e,l)=>(t.openBlock(),t.createElementBlock("button",{key:l,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[i])[0][l]})},null,4)])))),128))])))),128))]),ue,t.createElementVNode("button",he,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.standardcolor,((e,i)=>(t.openBlock(),t.createElementBlock("button",{key:i,class:"color-container-specific-color-checkbox-border",onClick:l[3]||(l[3]=(...e)=>a.getcolor&&a.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:n.standardcolor[i]})},null,4)])))),128))]),t.createElementVNode("button",pe,[t.createElementVNode("input",{id:"favcolor",type:"color",name:"favcolor",value:n.recentvalue,class:"favcolor",onChange:l[4]||(l[4]=(...e)=>a.getcolorvalue&&a.getcolorvalue(...e))},null,40,me),t.createElementVNode("p",{class:"color-container-title",onClick:l[5]||(l[5]=(...e)=>a.colorpicker&&a.colorpicker(...e))},"More Colors")]),!0===n.recent?(t.openBlock(),t.createElementBlock("p",ge,"Recent color")):t.createCommentVNode("v-if",!0),t.createElementVNode("button",Ae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.recentcolor,((e,i)=>(t.openBlock(),t.createElementBlock("button",{key:i,class:"color-container-specific-color-checkbox-border",onClick:l[6]||(l[6]=(...e)=>a.getcolor&&a.getcolor(...e))},[t.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:t.normalizeStyle({background:n.recentcolor[i]})},null,4)])))),128))])])):t.createCommentVNode("v-if",!0)])},ee.__file="src/components/ColorpaletteComponent.vue";var be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ye={exports:{}};!function(e){var t,l,i;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"],l="undefined"!=typeof window,i=l&&null!=window.mozInnerScreenX,e.exports=function(e,o,n){if(!l)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var a=n&&n.debug||!1;if(a){var s=document.querySelector("#input-textarea-caret-position-mirror-div");s&&s.parentNode.removeChild(s)}var r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);var c=r.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,u="INPUT"===e.nodeName;c.whiteSpace="pre-wrap",u||(c.wordWrap="break-word"),c.position="absolute",a||(c.visibility="hidden"),t.forEach((function(e){u&&"lineHeight"===e?c.lineHeight=d.height:c[e]=d[e]})),i?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",r.textContent=e.value.substring(0,o),u&&(r.textContent=r.textContent.replace(/\s/g," "));var h=document.createElement("span");h.textContent=e.value.substring(o)||".",r.appendChild(h);var p={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),height:parseInt(d.lineHeight)};return a?h.style.backgroundColor="#aaa":document.body.removeChild(r),p}}(ye);var ve=fe(ye.exports);function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i])}return e},ke.apply(this,arguments)}var Ce,Ee="undefined"!=typeof window&&navigator&&/Win/i.test(navigator.platform),Ve="undefined"!=typeof window&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Be=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"),l=window.getComputedStyle(e);this.$nextTick((function(){var i="border-top-left-radius",o="border-bottom-left-radius";if(t){t.style[i]=l[i],t.style[o]=l[o],e.style[i]="0",e.style[o]="0";["background-color","margin-top","padding-top","font-family","font-size","line-height"].forEach((function(e){t.style[e]=l[e]})),t.style["margin-bottom"]="-"+l["padding-top"]}}))}},_recordCurrentState:function(){var e=this.$refs.textarea;if(e){var t=e.value,l=e.selectionStart,i=e.selectionEnd;this._recordChange({value:t,selectionStart:l,selectionEnd:i})}},_getLines:function(e,t){return e.substring(0,t).split("\n")},_applyEdits:function(e){var t=this.$refs.textarea,l=this.history.stack[this.history.offset];l&&t&&(this.history.stack[this.history.offset]=ke({},l,{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})),this._recordChange(e),this._updateInput(e)},_recordChange:function(e,t){void 0===t&&(t=!1);var l=this.history,i=l.stack,o=l.offset;if(i.length&&o>-1){this.history.stack=i.slice(0,o+1);var n=this.history.stack.length;if(n>100){var a=n-100;this.history.stack=i.slice(a,n),this.history.offset=Math.max(this.history.offset-a,0)}}var s=Date.now();if(t){var r=this.history.stack[this.history.offset];if(r&&s-r.timestamp<3e3){var c,d,u=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(c=this._getLines(r.value,r.selectionStart).pop())||void 0===c?void 0:c.match(u),p=null===(d=this._getLines(e.value,e.selectionStart).pop())||void 0===d?void 0:d.match(u);if(h&&p&&p[1].startsWith(h[1]))return void(this.history.stack[this.history.offset]=ke({},e,{timestamp:s}))}}this.history.stack.push(ke({},e,{timestamp:s})),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,l=t.value,i=t.selectionStart,o=t.selectionEnd;this._recordChange({value:l,selectionStart:i,selectionEnd:o},!0),this.$emit("update:modelValue",l)},_undoEdit:function(){var e=this.history,t=e.stack,l=e.offset,i=t[l-1];i&&(this._updateInput(i),this.history.offset=Math.max(l-1,0))},_redoEdit:function(){var e=this.history,t=e.stack,l=e.offset,i=t[l+1];i&&(this._updateInput(i),this.history.offset=Math.min(l+1,t.length-1))},handleKeyDown:function(e){var t=this.tabSize,l=this.insertSpaces,i=this.ignoreTabKey;if(this.$emit("keydown",e),!e.defaultPrevented){27===e.keyCode&&(e.target.blur(),this.$emit("blur",e));var o=e.target,n=o.value,a=o.selectionStart,s=o.selectionEnd,r=(l?" ":"\t").repeat(t);if(9===e.keyCode&&!i&&this.capture)if(e.preventDefault(),e.shiftKey){var c=this._getLines(n,a),d=c.length-1,u=this._getLines(n,s).length-1,h=n.split("\n").map((function(e,t){return t>=d&&t<=u&&e.startsWith(r)?e.substring(r.length):e})).join("\n");if(n!==h){var p=c[d];this._applyEdits({value:h,selectionStart:p.startsWith(r)?a-r.length:a,selectionEnd:s-(n.length-h.length)})}}else if(a!==s){var m=this._getLines(n,a),g=m.length-1,A=this._getLines(n,s).length-1,b=m[g];this._applyEdits({value:n.split("\n").map((function(e,t){return t>=g&&t<=A?r+e:e})).join("\n"),selectionStart:/\S/.test(b)?a+r.length:a,selectionEnd:s+r.length*(A-g+1)})}else{var f=a+r.length;this._applyEdits({value:n.substring(0,a)+r+n.substring(s),selectionStart:f,selectionEnd:f})}else if(8===e.keyCode){var y=a!==s;if(n.substring(0,a).endsWith(r)&&!y){e.preventDefault();var v=a-r.length;this._applyEdits({value:n.substring(0,a-r.length)+n.substring(s),selectionStart:v,selectionEnd:v})}}else if(13===e.keyCode){if(a===s){var k=this._getLines(n,a).pop(),C=null==k?void 0:k.match(/^\s+/);if(C&&C[0]){e.preventDefault();var E="\n"+C[0],V=a+E.length;this._applyEdits({value:n.substring(0,a)+E+n.substring(s),selectionStart:V,selectionEnd:V})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var B;57===e.keyCode&&e.shiftKey?B=["(",")"]:219===e.keyCode?B=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?B=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(B=["`","`"]),a!==s&&B&&(e.preventDefault(),this._applyEdits({value:n.substring(0,a)+B[0]+n.substring(a,s)+B[1]+n.substring(s),selectionStart:a,selectionEnd:s+2}))}else!(Ve?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(Ve?e.metaKey&&90===e.keyCode&&e.shiftKey:Ee?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),this._redoEdit()):77!==e.keyCode||!e.ctrlKey||Ve&&!e.shiftKey||(e.preventDefault(),this.capture=!this.capture):(e.preventDefault(),this._undoEdit())}}},render:function(){var e=this,l=t.h("div",{class:"prism-editor__line-width-calc",style:"height: 0px; visibility: hidden; pointer-events: none;"},"999"),i=t.h("div",{class:"prism-editor__line-numbers",style:{"min-height":this.lineNumbersHeight},"aria-hidden":"true"},[l,Array.from(Array(this.lineNumbersCount).keys()).map((function(e,l){return t.h("div",{class:"prism-editor__line-number token comment"},""+ ++l)}))]),o=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}),a=t.h("div",{class:"prism-editor__container"},[o,n]);return t.h("div",{class:"prism-editor-wrapper"},[this.lineNumbers&&i,a])}}),xe={exports:{}},we={},Ne={exports:{}},Se={},_e={};function Ie(){if(Ce)return _e;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 l(l,i){this.__indent_cache=new t(l,i),this.raw=!1,this._end_with_newline=l.end_with_newline,this.indent_size=l.indent_size,this.wrap_line_length=l.wrap_line_length,this.indent_empty_lines=l.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 Ce=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 l=this.__base_string_length;return t=t||0,e<0&&(l=0),l+=e*this.__indent_size,l+=t},t.prototype.get_indent_string=function(e,t){var l=this.__base_string;return t=t||0,e<0&&(e=0,l=""),t+=e*this.__indent_size,this.__ensure_cache(t),l+=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,l="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,l=new Array(t+1).join(this.__indent_string)),e&&(l+=new Array(e+1).join(" ")),this.__cache.push(l)},l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},l.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},l.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 l=this.__lines.join("\n");return"\n"!==e&&(l=l.replace(/[\n]/g,e)),l},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.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)},l.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},l.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()},l.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(" "))},l.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()},l.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},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(t,l){for(var i=this.__lines.length-2;i>=0;){var o=this.__lines[i];if(o.is_empty())break;if(0!==o.item(0).indexOf(t)&&o.item(-1)!==l){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},_e.Output=l,_e}var qe,De={};function Te(){if(qe)return De;return qe=1,De.Token=function(e,t,l,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=l||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null},De}var Ue,Re={};function Fe(){return Ue||(Ue=1,function(e){var t="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",l="\\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",i="\\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",o="(?:\\\\u[0-9a-fA-F]{4}|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+l+"])";e.identifier=new RegExp(o+"(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a\\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\\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])*","g"),e.identifierStart=new RegExp(o),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+t+l+i+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(Re)),Re}var He,Le,Oe={},Me={};function Qe(){if(He)return Me;function e(e,l){this.raw_options=t(e,l),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","django","erb","handlebars","php","smarty"],["auto"])}function t(e,t){var i,o={};for(i in e=l(e))i!==t&&(o[i]=e[i]);if(t&&e[t])for(i in e[t])o[i]=e[t][i];return o}function l(e){var t,l={};for(t in e){l[t.replace(/-/g,"_")]=e[t]}return l}return He=1,e.prototype._get_array=function(e,t){var l=this.raw_options[e],i=t||[];return"object"==typeof l?null!==l&&"function"==typeof l.concat&&(i=l.concat()):"string"==typeof l&&(i=l.split(/[^a-zA-Z0-9_\/\-]+/)),i},e.prototype._get_boolean=function(e,t){var l=this.raw_options[e];return void 0===l?!!t:!!l},e.prototype._get_characters=function(e,t){var l=this.raw_options[e],i=t||"";return"string"==typeof l&&(i=l.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},e.prototype._get_number=function(e,t){var l=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(l,10);return isNaN(i)&&(i=t),i},e.prototype._get_selection=function(e,t,l){var i=this._get_selection_list(e,t,l);if(1!==i.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 i[0]},e.prototype._get_selection_list=function(e,t,l){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(l=l||[t[0]],!this._is_valid_selection(l,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,l);if(!this._is_valid_selection(i,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 i},e.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},Me.Options=e,Me.normalizeOpts=l,Me.mergeOpts=t,Me}function Ke(){if(Le)return Oe;Le=1;var e=Qe().Options,t=["before-newline","after-newline","preserve-newline"];function l(l){e.call(this,l,"js");var i=this.raw_options.brace_style||null;"expand-strict"===i?this.raw_options.brace_style="expand":"collapse-preserve-inline"===i?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 o=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<o.length;n++)"preserve-inline"===o[n]?this.brace_preserve_inline=!0:this.brace_style=o[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 l.prototype=new e,Oe.Options=l,Oe}var je,Pe={},ze={};function Xe(){if(je)return ze;je=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,l){t.lastIndex=l;var i=t.exec(this.__input);return!i||e&&t.sticky||i.index!==l&&(i=null),i},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 l=this.peek(t);return e.lastIndex=0,null!==l&&e.test(l)},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,l){var i,o="";return e&&(i=this.match(e))&&(o+=i[0]),!t||!i&&e||(o+=this.readUntil(t,l)),o},t.prototype.readUntil=function(e,t){var l,i=this.__position;e.lastIndex=this.__position;var o=e.exec(this.__input);return o?(i=o.index,t&&(i+=o[0].length)):i=this.__input_length,l=this.__input.substring(this.__position,i),this.__position=i,l},t.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},t.prototype.get_regexp=function(t,l){var i=null,o="g";return l&&e&&(o="y"),"string"==typeof t&&""!==t?i=new RegExp(t,o):t&&(i=new RegExp(t.source,o)),i},t.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(e){var t=this.__position,l=this.readUntilAfter(e);return this.__position=t,l},t.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},ze.InputScanner=t,ze}var Je,We={},Ye={};var Ge,Ze,$e,et={},tt={};function lt(){if(Ge)return tt;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 Ge=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(){},tt.Pattern=e,tt}function it(){if($e)return We;$e=1;var e=Xe().InputScanner,t=Te().Token,l=function(){if(Je)return Ye;function e(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return Je=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},Ye.TokenStream=e,Ye}().TokenStream,i=function(){if(Ze)return et;Ze=1;var e=lt().Pattern;function t(t,l){e.call(this,t,l),l?this._line_regexp=this._input.get_regexp(l._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 l=this._create();return l.__set_whitespace_patterns(e,t),l._update(),l},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(e,t){e.lastIndex=0;for(var l=0,i=[],o=e.exec(t);o;)i.push(t.substring(l,o.index)),l=o.index+o[0].length,o=e.exec(t);return l<t.length?i.push(t.substring(l,t.length)):i.push(""),i},et.WhitespacePattern=t,et}().WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},n=function(t,l){this._input=new e(t),this._options=l||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};return n.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new l,this._reset();for(var i=new t(o.START,""),n=null,a=[],s=new l;i.type!==o.EOF;){for(e=this._get_next_token(i,n);this._is_comment(e);)s.add(e),e=this._get_next_token(i,n);s.isEmpty()||(e.comments_before=s,s=new l),e.parent=n,this._is_opening(e)?(a.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=a.pop(),e.parent=n),e.previous=i,i.next=e,this.__tokens.add(e),i=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 l=this._input.read(/.+/g);return l?this._create_token(o.RAW,l):this._create_token(o.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,l){return new t(e,l,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},We.Tokenizer=n,We.TOKEN=o,We}var ot,nt={};function at(){if(ot)return nt;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 ot=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 l=this.__directive_pattern.exec(e);l;)t[l[1]]=l[2],l=this.__directive_pattern.exec(e);return t},e.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},nt.Directives=e,nt}var st,rt,ct,dt,ut={};function ht(){if(st)return ut;st=1;var e=lt().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function l(l,i){e.call(this,l,i),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var o=new e(l);this.__patterns={handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:o.starting_with(/{{{/).until_after(/}}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),php:o.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}return l.prototype=new e,l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){this.__set_templated_pattern()},l.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},l.prototype.read_options=function(e){var l=this._create();for(var i in t)l._disabled[i]=-1===e.templating.indexOf(i);return l._update(),l},l.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},l.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},l.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.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("|")+")")},l.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var l=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==l||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==l||(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},ut.TemplatablePattern=l,ut}function pt(){if(rt)return Pe;rt=1;var e=Xe().InputScanner,t=it().Tokenizer,l=it().TOKEN,i=at().Directives,o=Fe(),n=lt().Pattern,a=ht().TemplatablePattern;function s(e,t){return-1!==t.indexOf(e)}var r={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:l.START,RAW:l.RAW,EOF:l.EOF},c=new i(/\/\*/,/\*\//),d=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,u=/[0-9]/,h=/[^\d\.]/,p=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),m=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";m=(m="\\?\\.(?!\\d) "+(m=m.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var g,A=new RegExp(m),b="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),f=b.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),y=new RegExp("^(?:"+f.join("|")+")$"),v=function(e,l){t.call(this,e,l),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var i=new n(this._input),s=new a(this._input).read_options(this._options);this.__patterns={template:s,identifier:s.starting_with(o.identifier).matching(o.identifierMatch),number:i.matching(d),punct:i.matching(A),comment:i.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:i.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:i.matching(/<!--/),html_comment_end:i.matching(/-->/),include:i.starting_with(/#include/).until_after(o.lineBreak),shebang:i.starting_with(/#!/).until_after(o.lineBreak),xml:i.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:s.until(/['\\\n\r\u2028\u2029]/),double_quote:s.until(/["\\\n\r\u2028\u2029]/),template_text:s.until(/[`\\$]/),template_expression:s.until(/[`}\\]/)}};return(v.prototype=new t)._is_comment=function(e){return e.type===r.COMMENT||e.type===r.BLOCK_COMMENT||e.type===r.UNKNOWN},v.prototype._is_opening=function(e){return e.type===r.START_BLOCK||e.type===r.START_EXPR},v.prototype._is_closing=function(e,t){return(e.type===r.END_BLOCK||e.type===r.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},v.prototype._reset=function(){g=!1},v.prototype._get_next_token=function(e,t){var l=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(r.EOF,""):l=(l=(l=(l=(l=(l=(l=(l=(l=l||this._read_non_javascript(i))||this._read_string(i))||this._read_word(e))||this._read_singles(i))||this._read_comment(i))||this._read_regexp(i,e))||this._read_xml(i,e))||this._read_punctuation())||this._create_token(r.UNKNOWN,this._input.next())},v.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(o.allLineBreaks,"\n"),e.type!==r.DOT&&(e.type!==r.RESERVED||"set"!==e.text&&"get"!==e.text)&&y.test(t)?"in"!==t&&"of"!==t||e.type!==r.WORD&&e.type!==r.STRING?this._create_token(r.RESERVED,t):this._create_token(r.OPERATOR,t):this._create_token(r.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(r.WORD,t):void 0},v.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(r.START_EXPR,e):")"===e||"]"===e?t=this._create_token(r.END_EXPR,e):"{"===e?t=this._create_token(r.START_BLOCK,e):"}"===e?t=this._create_token(r.END_BLOCK,e):";"===e?t=this._create_token(r.SEMICOLON,e):"."===e&&h.test(this._input.peek(1))?t=this._create_token(r.DOT,e):","===e&&(t=this._create_token(r.COMMA,e)),t&&this._input.next(),t},v.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(r.EQUALS,e):"?."===e?this._create_token(r.DOT,e):this._create_token(r.OPERATOR,e)},v.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read()))return this._create_token(r.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read())return this._create_token(r.UNKNOWN,t.trim()+"\n");e=this._input.next();var l="#";if(this._input.hasNext()&&this._input.testChar(u)){do{l+=e=this._input.next()}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(l+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(l+="{}",this._input.next(),this._input.next())),this._create_token(r.WORD,l)}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(o.newline);)t+=this._input.next();return g=!0,this._create_token(r.COMMENT,t)}}else if(g&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return g=!1,this._create_token(r.COMMENT,t);return null},v.prototype._read_comment=function(e){var t=null;if("/"===e){var l="";if("*"===this._input.peek(1)){l=this.__patterns.block_comment.read();var i=c.get_directives(l);i&&"start"===i.ignore&&(l+=c.readIgnored(this._input)),l=l.replace(o.allLineBreaks,"\n"),(t=this._create_token(r.BLOCK_COMMENT,l)).directives=i}else"/"===this._input.peek(1)&&(l=this.__patterns.comment.read(),t=this._create_token(r.COMMENT,l))}return t},v.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var l=this._input.next();return this.has_char_escapes=!1,l+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(l=function(t){var l="",i=0,o=new e(t),n=null;for(;o.hasNext();)if((n=o.match(/([\s]|[^\\]|\\\\)+/g))&&(l+=n[0]),"\\"===o.peek()){if(o.next(),"x"===o.peek())n=o.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==o.peek()){l+="\\",o.hasNext()&&(l+=o.next());continue}n=o.match(/u([0-9A-Fa-f]{4})/g)}if(!n)return t;if((i=parseInt(n[1],16))>126&&i<=255&&0===n[0].indexOf("x"))return t;if(i>=0&&i<32){l+="\\"+n[0];continue}l+=34===i||39===i||92===i?"\\"+String.fromCharCode(i):String.fromCharCode(i)}return l}(l)),this._input.peek()===t&&(l+=this._input.next()),l=l.replace(o.allLineBreaks,"\n"),this._create_token(r.STRING,l)}return null},v.prototype._allow_regexp_or_xml=function(e){return e.type===r.RESERVED&&s(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===r.END_EXPR&&")"===e.text&&e.opened.previous.type===r.RESERVED&&s(e.opened.previous.text,["if","while","for"])||s(e.type,[r.COMMENT,r.START_EXPR,r.START_BLOCK,r.START,r.END_BLOCK,r.OPERATOR,r.EQUALS,r.EOF,r.SEMICOLON,r.COMMA])},v.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var l=this._input.next(),i=!1,n=!1;this._input.hasNext()&&(i||n||this._input.peek()!==e)&&!this._input.testChar(o.newline);)l+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?n=!0:"]"===this._input.peek()&&(n=!1)),this._input.next();return this._input.peek()===e&&(l+=this._input.next(),l+=this._input.read(o.identifier)),this._create_token(r.STRING,l)}return null},v.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var l="",i=this.__patterns.xml.read_match();if(i){for(var n=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),a=0===n.indexOf("{"),s=0;i;){var c=!!i[1],d=i[2];if(!(!!i[i.length-1]||"![CDATA["===d.slice(0,8))&&(d===n||a&&d.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(c?--s:++s),l+=i[0],s<=0)break;i=this.__patterns.xml.read_match()}return i||(l+=this._input.match(/[\s\S]*/g)[0]),l=l.replace(o.allLineBreaks,"\n"),this._create_token(r.STRING,l)}}return null},v.prototype._read_string_recursive=function(e,t,l){var i,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 a=n.read(),s="";this._input.hasNext();){if((s=this._input.next())===e||!t&&o.newline.test(s)){this._input.back();break}"\\"===s&&this._input.hasNext()?("x"===(i=this._input.peek())||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),s+=this._input.next()):l&&("${"===l&&"$"===s&&"{"===this._input.peek()&&(s+=this._input.next()),l===s&&(s+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(s+=this._input.next()))),a+=s+=n.read()}return a},Pe.Tokenizer=v,Pe.TOKEN=r,Pe.positionable_operators=p.slice(),Pe.line_starters=b.slice(),Pe}function mt(){if(ct)return Se;ct=1;var e=Ie().Output,t=Te().Token,l=Fe(),i=Ke().Options,o=pt().Tokenizer,n=pt().line_starters,a=pt().positionable_operators,s=pt().TOKEN;function r(e,t){return-1!==t.indexOf(e)}function c(e,t){return e&&e.type===s.RESERVED&&e.text===t}function d(e,t){return e&&e.type===s.RESERVED&&r(e.text,t)}var u=["case","return","do","if","throw","else","await","break","continue","async"],h=function(e){for(var t={},l=0;l<e.length;l++)t[e[l].replace(/-/g,"_")]=e[l];return t}(["before-newline","after-newline","preserve-newline"]),p=[h.before_newline,h.preserve_newline],m="BlockStatement",g="Statement",A="ObjectLiteral",b="ArrayLiteral",f="ForInitializer",y="Conditional",v="Expression";function k(e,t){t.multiline_frame||t.mode===f||t.mode===y||e.remove_indent(t.start_line_index)}function C(e){return e===b}function E(e){return r(e,[v,f,y])}function V(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 i(t)}V.prototype.create_flags=function(e,l){var i=0;return e&&(i=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>i&&(i=e.line_indent_level)),{mode:l,parent:e,last_token:e?e.last_token:new t(s.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:i,alignment:0,line_indent_level:e?e.line_indent_level:i,start_line_index:this._output.get_line_number(),ternary_depth:0}},V.prototype._reset=function(t){var l=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,l),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(m);var i=new o(t,this._options);return this._tokens=i.tokenize(),t},V.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&&l.lineBreak.test(e||"")&&(t=e.match(l.lineBreak)[0]));for(var i=this._tokens.next();i;)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return this._output.get_code(t)},V.prototype.handle_token=function(e,t){e.type===s.START_EXPR?this.handle_start_expr(e):e.type===s.END_EXPR?this.handle_end_expr(e):e.type===s.START_BLOCK?this.handle_start_block(e):e.type===s.END_BLOCK?this.handle_end_block(e):e.type===s.WORD||e.type===s.RESERVED?this.handle_word(e):e.type===s.SEMICOLON?this.handle_semicolon(e):e.type===s.STRING?this.handle_string(e):e.type===s.EQUALS?this.handle_equals(e):e.type===s.OPERATOR?this.handle_operator(e):e.type===s.COMMA?this.handle_comma(e):e.type===s.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===s.COMMENT?this.handle_comment(e,t):e.type===s.DOT?this.handle_dot(e):e.type===s.EOF?this.handle_eof(e):(e.type,s.UNKNOWN,this.handle_unknown(e,t))},V.prototype.handle_whitespace_and_comments=function(e,t){var l=e.newlines,i=this._options.keep_array_indentation&&C(this._flags.mode);if(e.comments_before)for(var o=e.comments_before.next();o;)this.handle_whitespace_and_comments(o,t),this.handle_token(o,t),o=e.comments_before.next();if(i)for(var n=0;n<l;n+=1)this.print_newline(n>0,t);else if(this._options.max_preserve_newlines&&l>this._options.max_preserve_newlines&&(l=this._options.max_preserve_newlines),this._options.preserve_newlines&&l>1){this.print_newline(!1,t);for(var a=1;a<l;a+=1)this.print_newline(!0,t)}};var B=["async","break","continue","return","throw","yield"];return V.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var l=this._options.preserve_newlines&&e.newlines||t;if(r(this._flags.last_token.text,a)||r(e.text,a)){var i=r(this._flags.last_token.text,a)&&r(this._options.operator_position,p)||r(e.text,a);l=l&&i}if(l)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(d(this._flags.last_token,B))return;this._output.set_wrap_point()}}},V.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!==s.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var l=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&c(l,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},V.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))},V.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===s.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)}},V.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},V.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))},V.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)},V.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&&k(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},V.prototype.start_of_object_property=function(){return this._flags.parent.mode===A&&this._flags.mode===g&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"]))},V.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===s.WORD)||c(this._flags.last_token,"do"))||!(this._flags.parent.mode===A&&this._flags.mode===g)&&d(this._flags.last_token,B)&&!e.newlines)||c(this._flags.last_token,"else")&&!(c(e,"if")&&!e.comments_before))||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===f||this._previous_flags.mode===y))||this._flags.last_token.type===s.WORD&&this._flags.mode===m&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==s.WORD&&e.type!==s.RESERVED)||this._flags.mode===A&&(":"===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)},V.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=v;if("["===e.text){if(this._flags.last_token.type===s.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=b,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()),r(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=f):r(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=y):r(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:(r(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===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var l=this._tokens.peek(-3);if(this._options.space_after_named_function&&l){var i=this._tokens.peek(-4);d(l,["async","function"])||"*"===l.text&&d(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===A?"{"!==l.text&&","!==l.text&&("*"!==l.text||"{"!==i.text&&","!==i.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===s.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(r(this._last_last_text,["function","yield"])||this._flags.mode===A&&r(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===s.START_BLOCK?this.print_newline():this._flags.last_token.type!==s.END_EXPR&&this._flags.last_token.type!==s.START_EXPR&&this._flags.last_token.type!==s.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==s.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()},V.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!==s.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(),k(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===y&&(this._previous_flags.mode=v,this._flags.do_block=!1,this._flags.do_while=!1)},V.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),l=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(m),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(m):l&&(r(l.text,[":",","])&&r(t.type,[s.STRING,s.WORD,s.RESERVED])||r(t.text,["get","set","..."])&&r(l.type,[s.WORD,s.RESERVED]))?r(this._last_last_text,["class","interface"])&&!r(l.text,[":",","])?this.set_mode(m):this.set_mode(A):this._flags.last_token.type===s.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(m):r(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"])?this.set_mode(A):this.set_mode(m),this._flags.last_token&&d(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var i=!t.comments_before&&"}"===t.text,o=i&&"function"===this._flags.last_word&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var n=0,a=null;this._flags.inline_frame=!0;do{if(n+=1,(a=this._tokens.peek(n-1)).newlines){this._flags.inline_frame=!1;break}}while(a.type!==s.EOF&&(a.type!==s.END_BLOCK||a.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(o||this._flags.last_token.type===s.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!==s.START_EXPR&&this._flags.last_token.type!==s.COMMA||((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.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!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(this._flags.last_token.type!==s.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(e),this.indent(),i||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},V.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===s.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)},V.prototype.handle_word=function(e){if(e.type===s.RESERVED)if(r(e.text,["set","get"])&&this._flags.mode!==A)e.type=s.WORD;else if("import"===e.text&&r(this._tokens.peek().text,["(","."]))e.type=s.WORD;else if(r(e.text,["as","from"])&&!this._flags.import_block)e.type=s.WORD;else if(this._flags.mode===A){":"===this._tokens.peek().text&&(e.type=s.WORD)}if(this.start_of_statement(e)?d(this._flags.last_token,["var","let","const"])&&e.type===s.WORD&&(this._flags.declaration_statement=!0):!e.newlines||E(this._flags.mode)||this._flags.last_token.type===s.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===s.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(c(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&&c(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!==s.COMMA&&this._flags.last_token.type!==s.START_EXPR&&this._flags.last_token.type!==s.EQUALS&&this._flags.last_token.type!==s.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e),c(e,"function"))return(r(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!r(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==s.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,B)||c(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===s.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!E(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===s.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===s.SEMICOLON&&this._flags.mode===m?t="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&E(this._flags.mode)?t="SPACE":this._flags.last_token.type===s.STRING?t="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||"*"===this._flags.last_token.text&&(r(this._last_last_text,["function","yield"])||this._flags.mode===A&&r(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===s.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===s.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!==s.END_BLOCK||this._previous_flags.mode!==m||"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!==s.END_EXPR?this._flags.last_token.type===s.START_EXPR&&d(e,["var","let","const"])||":"===this._flags.last_token.text||(c(e,"if")&&c(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!==s.WORD&&e.previous.type!==s.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===s.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&&c(e,"from")&&(this._flags.import_block=!1))},V.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&&c(t,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},V.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==s.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==s.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},V.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},V.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?(E(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===A||this._flags.mode===g&&this._flags.parent.mode===A?(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)},V.prototype.handle_operator=function(e){var t="*"===e.text&&(d(this._flags.last_token,["function","yield"])||r(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),l=r(e.text,["-","+"])&&(r(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||r(this._flags.last_token.text,n)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var i=!t;this.handle_whitespace_and_comments(e,i)}if("*"!==e.text||this._flags.last_token.type!==s.DOT)if("::"!==e.text){if(this._flags.last_token.type===s.OPERATOR&&r(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!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var o=!0,c=!0,A=!1;if(":"===e.text?0===this._flags.ternary_depth?o=!1:(this._flags.ternary_depth-=1,A=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!l&&!t&&this._options.preserve_newlines&&r(e.text,a)){var b=":"===e.text,f=b&&A,y=b&&!A;switch(this._options.operator_position){case h.before_newline:return this._output.space_before_token=!y,this.print_token(e),b&&!f||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case h.after_newline:return this._output.space_before_token=!0,!b||f?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 h.preserve_newline:return y||this.allow_wrap_or_preserved_newline(e),o=!(this._output.just_added_newline()||y),this._output.space_before_token=o,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),o=!1;var v=this._tokens.peek();c=v&&r(v.type,[s.WORD,s.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),o=this._flags.last_token.type===s.START_BLOCK,c=!1;else if(r(e.text,["--","++","!","~"])||l){if(this._flags.last_token.type!==s.COMMA&&this._flags.last_token.type!==s.START_EXPR||this.allow_wrap_or_preserved_newline(e),o=!1,c=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var k=d(this._flags.last_token,u)&&e.newlines;k&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(k,!0)}";"===this._flags.last_token.text&&E(this._flags.mode)&&(o=!0),this._flags.last_token.type===s.RESERVED?o=!0:this._flags.last_token.type===s.END_EXPR?o=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===s.OPERATOR&&(o=r(e.text,["--","-","++","+"])&&r(this._flags.last_token.text,["--","-","++","+"]),r(e.text,["+","-"])&&r(this._flags.last_token.text,["--","++"])&&(c=!0)),(this._flags.mode!==m||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||o,this.print_token(e),this._output.space_before_token=c}else this.print_token(e);else this.print_token(e)},V.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)):l.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))},V.prototype.print_block_commment=function(e,t){var i,o=function(e){for(var t=[],i=(e=e.replace(l.allLineBreaks,"\n")).indexOf("\n");-1!==i;)t.push(e.substring(0,i)),i=(e=e.substring(i+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),n=!1,a=!1,s=e.whitespace_before,r=s.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(o[0]),this.print_newline(!1,t),o.length>1){for(n=function(e,t){for(var l=0;l<e.length;l++)if(e[l].trim().charAt(0)!==t)return!1;return!0}(o=o.slice(1),"*"),a=function(e,t){for(var l,i=0,o=e.length;i<o;i++)if((l=e[i])&&0!==l.indexOf(t))return!1;return!0}(o,s),n&&(this._flags.alignment=1),i=0;i<o.length;i++)n?(this.print_token_line_indentation(e),this._output.add_token(o[i].replace(/^\s+/g,""))):a&&o[i]?(this.print_token_line_indentation(e),this._output.add_token(o[i].substring(r))):(this._output.current_line.set_indent(-1),this._output.add_token(o[i])),this.print_newline(!1,t);this._flags.alignment=0}},V.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)},V.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)},V.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},V.prototype.handle_eof=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e)},Se.Beautifier=V,Se}var gt,At,bt,ft={exports:{}},yt={},vt={};function kt(){if(gt)return vt;gt=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 l=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||l;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o<i.length;o++)"expand"!==i[o]?this.brace_style="collapse":this.brace_style=i[o]}return t.prototype=new e,vt.Options=t,vt}function Ct(){if(bt)return ft.exports;bt=1;var e=function(){if(At)return yt;At=1;var e=kt().Options,t=Ie().Output,l=Xe().InputScanner,i=new(0,at().Directives)(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,a=/\s/,s=/(?:\s|\n)+/g,r=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(t,l){this._source_text=t||"",this._options=new e(l),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 d.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},d.prototype.eatWhitespace=function(e){for(var t=a.test(this._input.peek()),l=0;a.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===l||l<this._options.max_preserve_newlines)&&(l++,this._output.add_new_line(!0));return t},d.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,l=this._input.peek(t);l;){if("{"===l)return!0;if("("===l)e+=1;else if(")"===l){if(0===e)return!1;e-=1}else if(";"===l||"}"===l)return!1;t++,l=this._input.peek(t)}return!1},d.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},d.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},d.prototype.indent=function(){this._indentLevel++},d.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,d=this._options.eol;"auto"===d&&(d="\n",e&&o.test(e||"")&&(d=e.match(o)[0]));var u=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0];this._output=new t(this._options,u),this._input=new l(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var h,p,m=0,g=!1,A=!1,b=!1,f=!1,y=!1,v=!1,k=this._ch,C=!1;h=""!==this._input.read(s),p=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 E=this._input.read(r),V=i.get_directives(E);V&&"start"===V.ignore&&(E+=i.readIgnored(this._input)),this.print_string(E),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._ch)if(this.preserveSingleSpace(h),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var B=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);B.match(/[ :]$/)&&(B=this.eatString(": ").replace(/\s$/,""),this.print_string(B),this._output.space_before_token=!0),"extend"===(B=B.replace(/\s$/,""))?f=!0:"import"===B&&(y=!0),B in this.NESTED_AT_RULE?(this._nestedLevel+=1,B in this.CONDITIONAL_GROUP_RULE&&(b=!0)):g||0!==m||-1===B.indexOf(":")||(A=!0,this.indent())}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(h),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)A&&(A=!1,this.outdent()),b?(b=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&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)):("("===p?this._output.space_before_token=!1:","!==p&&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(),"{"===p&&this._output.trim(!0),y=!1,f=!1,A&&(this.outdent(),A=!1),this.print_string(this._ch),g=!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 x=0;x<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;x++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[x])){C=!0;break}!g&&!b||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||f||0!==m?(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(":"),A||(A=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var w='"'===p||"'"===p;this.preserveSingleSpace(w||h),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)C=!1,0===m?(A&&(this.outdent(),A=!1),f=!1,y=!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(),m++,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(")")),m&&(m--,this.outdent()));else{var N=!1;this._input.lookBack("with")&&(N=!0),this.preserveSingleSpace(h||N),this.print_string(this._ch),A&&"$"===p&&this._options.selector_separator_newline?(this._output.add_new_line(),v=!0):(this.eatWhitespace(),m++,this.indent())}else if(")"===this._ch)m&&(m--,this.outdent()),v&&";"===this._input.peek()&&this._options.selector_separator_newline&&(v=!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||A&&!v||0!==m||y||f?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||A||0!==m)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(h),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),a.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var S='"'===p||"'"===p;this.preserveSingleSpace(S||h),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&C&&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&&a.test(this._ch)&&(this._ch=""));return this._output.get_code(d)},yt.Beautifier=d,yt}().Beautifier,t=kt().Options;return ft.exports=function(t,l){return new e(t,l).beautify()},ft.exports.defaultOptions=function(){return new t},ft.exports}var Et,Vt={exports:{}},Bt={},xt={};function wt(){if(Et)return xt;Et=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_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.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,xt.Options=t,xt}var Nt,St,_t,It,qt={};function Dt(){if(Nt)return qt;Nt=1;var e=it().Tokenizer,t=it().TOKEN,l=at().Directives,i=ht().TemplatablePattern,o=lt().Pattern,n={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_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},a=new l(/<\!--/,/-->/),s=function(t,l){e.call(this,t,l),this._current_tag_name="";var n=new i(this._input).read_options(this._options),a=new o(this._input);if(this.__patterns={word: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 >\/]/),handlebars_comment:a.starting_with(/{{!--/).until_after(/--}}/),handlebars:a.starting_with(/{{/).until_after(/}}/),handlebars_open:a.until(/[\n\r\t }]/),handlebars_raw_close:a.until(/}}/),comment:a.starting_with(/<!--/).until_after(/-->/),cdata:a.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:a.starting_with(/<!\[/).until_after(/]>/),processing:a.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var s=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=a.matching(s).until_after(s)}};return(s.prototype=new e)._is_comment=function(e){return!1},s.prototype._is_opening=function(e){return e.type===n.TAG_OPEN},s.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])},s.prototype._reset=function(){this._current_tag_name=""},s.prototype._get_next_token=function(e,t){var l=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(n.EOF,""):l=(l=(l=(l=(l=(l=(l=(l=(l=l||this._read_open_handlebars(i,t))||this._read_attribute(i,e,t))||this._read_close(i,t))||this._read_raw_content(i,e,t))||this._read_content_word(i))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,t))||this._create_token(n.UNKNOWN,this._input.next())},s.prototype._read_comment_or_cdata=function(e){var t=null,l=null,i=null;"<"===e&&("!"===this._input.peek(1)&&((l=this.__patterns.comment.read())?(i=a.get_directives(l))&&"start"===i.ignore&&(l+=a.readIgnored(this._input)):l=this.__patterns.cdata.read()),l&&((t=this._create_token(n.COMMENT,l)).directives=i));return t},s.prototype._read_processing=function(e){var t=null,l=null;if("<"===e){var i=this._input.peek(1);"!"!==i&&"?"!==i||(l=(l=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),l&&((t=this._create_token(n.COMMENT,l)).directives=null)}return t},s.prototype._read_open=function(e,t){var l=null,i=null;return t||"<"===e&&(l=this._input.next(),"/"===this._input.peek()&&(l+=this._input.next()),l+=this.__patterns.element_name.read(),i=this._create_token(n.TAG_OPEN,l)),i},s.prototype._read_open_handlebars=function(e,t){var l=null,i=null;return t||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(l=(l=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(n.COMMENT,l)):(l=this.__patterns.handlebars_open.read(),i=this._create_token(n.TAG_OPEN,l))),i},s.prototype._read_close=function(e,t){var l=null,i=null;return t&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(l=this._input.next(),"/"===e&&(l+=this._input.next()),i=this._create_token(n.TAG_CLOSE,l)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(n.TAG_CLOSE,"}}"))),i},s.prototype._read_attribute=function(e,t,l){var i=null,o="";if(l&&"<"===l.text[0])if("="===e)i=this._create_token(n.EQUALS,this._input.next());else if('"'===e||"'"===e){var a=this._input.next();a+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(n.VALUE,a)}else(o=this.__patterns.attribute.read())&&(i=t.type===n.EQUALS?this._create_token(n.VALUE,o):this._create_token(n.ATTRIBUTE,o));return i},s.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))},s.prototype._read_raw_content=function(e,t,l){var i="";if(l&&"{"===l.text[0])i=this.__patterns.handlebars_raw_close.read();else 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;i=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(o)&&(i=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig")))}return i?this._create_token(n.TEXT,i):null},s.prototype._read_content_word=function(e){var t="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(t=this.__patterns.unformatted_content_delimiter.read()),t||(t=this.__patterns.word.read()),t)return this._create_token(n.TEXT,t)},qt.Tokenizer=s,qt.TOKEN=n,qt}function Tt(){if(St)return Bt;St=1;var e=wt().Options,t=Ie().Output,l=Dt().Tokenizer,i=Dt().TOKEN,o=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,a=function(e,l){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,l)};a.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},a.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},a.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},a.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},a.prototype.print_preserved_newlines=function(e){var t=0;e.type!==i.TEXT&&e.previous.type!==i.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 l=0;l<t;l++)this.print_newline(l>0);return 0!==t},a.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},a.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},a.prototype.print_newline=function(e){this._output.add_new_line(e)},a.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},a.prototype.indent=function(){this.indent_level++},a.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var s=function(e,t){var l=null,o=null;return t.closed?("script"===e?l="text/javascript":"style"===e&&(l="text/css"),l=function(e){for(var t=null,l=e.next;l.type!==i.EOF&&e.closed!==l;){if(l.type===i.ATTRIBUTE&&"type"===l.text){l.next&&l.next.type===i.EQUALS&&l.next.next&&l.next.next.type===i.VALUE&&(t=l.next.next.text);break}l=l.next}return t}(t)||l,l.search("text/css")>-1?o="css":l.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?o="javascript":l.search(/(text|application|dojo)\/(x-)?(html)/)>-1?o="html":l.search(/test\/null/)>-1&&(o="null"),o):null};function r(e,t){return-1!==t.indexOf(e)}function c(e,t,l){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=l||0,this.parser_token=t||null}function d(e){this._printer=e,this._current_frame=null}function u(t,l,i,o){this._source_text=t||"",l=l||{},this._js_beautify=i,this._css_beautify=o,this._tag_stack=null;var n=new e(l,"html");this._options=n,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),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,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(e){var t=new c(this._current_frame,e,this._printer.indent_level);this._current_frame=t},d.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},d.prototype._get_frame=function(e,t){for(var l=this._current_frame;l&&-1===e.indexOf(l.tag);){if(t&&-1!==t.indexOf(l.tag)){l=null;break}l=l.parent}return l},d.prototype.try_pop=function(e,t){var l=this._get_frame([e],t);return this._try_pop_frame(l)},d.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},u.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&&o.test(e)&&(t=e.match(o)[0]));var s=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0],r={text:"",type:""},c=new h,u=new a(this._options,s),p=new l(e,this._options).tokenize();this._tag_stack=new d(u);for(var m=null,g=p.next();g.type!==i.EOF;)g.type===i.TAG_OPEN||g.type===i.COMMENT?c=m=this._handle_tag_open(u,g,c,r):g.type===i.ATTRIBUTE||g.type===i.EQUALS||g.type===i.VALUE||g.type===i.TEXT&&!c.tag_complete?m=this._handle_inside_tag(u,g,c,p):g.type===i.TAG_CLOSE?m=this._handle_tag_close(u,g,c):g.type===i.TEXT?m=this._handle_text(u,g,c):u.add_raw_token(g),r=m,g=p.next();return u._output.get_code(t)},u.prototype._handle_tag_close=function(e,t,l){var i={text:t.text,type:t.type};return e.alignment_size=0,l.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),l.is_unformatted?e.add_raw_token(t):("<"===l.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&l.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!l.indent_content||l.is_unformatted||l.is_content_unformatted||(e.indent(),l.indent_content=!1),l.is_inline_element||l.is_unformatted||l.is_content_unformatted||e.set_wrap_point(),i},u.prototype._handle_inside_tag=function(e,t,l,o){var n=l.has_wrapped_attrs,a={text:t.text,type:t.type};if(e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),l.is_unformatted)e.add_raw_token(t);else if("{"===l.tag_start_char&&t.type===i.TEXT)e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t);else{if(t.type===i.ATTRIBUTE?(e.set_space_before_token(!0),l.attr_count+=1):(t.type===i.EQUALS||t.type===i.VALUE&&t.previous.type===i.EQUALS)&&e.set_space_before_token(!1),t.type===i.ATTRIBUTE&&"<"===l.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)){var s=l.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===l.attr_count){var r,c=!0,d=0;do{if((r=o.peek(d)).type===i.ATTRIBUTE){c=!1;break}d+=1}while(d<4&&r.type!==i.EOF&&r.type!==i.TAG_CLOSE);s=!c}s&&(e.print_newline(!1),n=!0)}e.print_token(t),n=n||e.previous_token_wrapped(),l.has_wrapped_attrs=n}return a},u.prototype._handle_text=function(e,t,l){var i={text:t.text,type:"TK_CONTENT"};return l.custom_beautifier_name?this._print_custom_beatifier_text(e,t,l):l.is_unformatted||l.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),i},u.prototype._print_custom_beatifier_text=function(e,t,l){var i=this;if(""!==t.text){var o,n=t.text,a=1,s="",r="";"javascript"===l.custom_beautifier_name&&"function"==typeof this._js_beautify?o=this._js_beautify:"css"===l.custom_beautifier_name&&"function"==typeof this._css_beautify?o=this._css_beautify:"html"===l.custom_beautifier_name&&(o=function(e,t){return new u(e,t,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-e.indent_level);var c=e.get_full_indent(a);if(n=n.replace(/\n[ \t]*$/,""),"html"!==l.custom_beautifier_name&&"<"===n[0]&&n.match(/^(<!--|<!\[CDATA\[)/)){var d=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(n);if(!d)return void e.add_raw_token(t);s=c+d[1]+"\n",n=d[4],d[5]&&(r=c+d[5]),n=n.replace(/\n[ \t]*$/,""),(d[2]||-1!==d[3].indexOf("\n"))&&(d=d[3].match(/[ \t]+$/))&&(t.whitespace_before=d[0])}if(n)if(o){var h=function(){this.eol="\n"};h.prototype=this._options.raw_options,n=o(c+n,new h)}else{var p=t.whitespace_before;p&&(n=n.replace(new RegExp("\n("+p+")?","g"),"\n")),n=c+n.replace(/\n/g,"\n"+c)}s&&(n=n?s+n+"\n"+r:s+r),e.print_newline(!1),n&&(t.text=n,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},u.prototype._handle_tag_open=function(e,t,l,o){var n=this._get_tag_open_token(t);return!l.is_unformatted&&!l.is_content_unformatted||l.is_empty_element||t.type!==i.TAG_OPEN||0!==t.text.indexOf("</")?(e.traverse_whitespace(t),this._set_tag_position(e,t,n,l,o),n.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),n.start_tag_token=this._tag_stack.try_pop(n.tag_name)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(n.alignment_size=t.text.length+1),n.tag_complete||n.is_unformatted||(e.alignment_size=n.alignment_size),n};var h=function(e,t){if(this.parent=e||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="",t){var l;this.tag_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(l=t.text.match(/^<([^\s>]*)/),this.tag_check=l?l[1]:""):(l=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=l?l[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==t.next?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===i.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||t.closed&&"/>"===t.closed.text;var o=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(o=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(o)))}else this.tag_complete=!0};u.prototype._get_tag_open_token=function(e){var t=new h(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||r(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&&r(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&r(t.tag_check,this._options.content_unformatted),t.is_inline_element=r(t.tag_name,this._options.inline)||t.tag_name.includes("-")||"{"===t.tag_start_char,t},u.prototype._set_tag_position=function(e,t,l,o,n){if(l.is_empty_element||(l.is_end_tag?l.start_tag_token=this._tag_stack.try_pop(l.tag_name):(this._do_optional_end_element(l)&&(l.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(l),"script"!==l.tag_name&&"style"!==l.tag_name||l.is_unformatted||l.is_content_unformatted||(l.custom_beautifier_name=s(l.tag_check,t)))),r(l.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),l.is_empty_element){if("{"===l.tag_start_char&&"else"===l.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),l.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===l.tag_name&&n.type===i.TAG_CLOSE&&o.is_end_tag&&-1===l.text.indexOf("\n")||(l.is_inline_element||l.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,l))}else if(l.is_end_tag){var a=!1;a=(a=l.start_tag_token&&l.start_tag_token.multiline_content)||!l.is_inline_element&&!(o.is_inline_element||o.is_unformatted)&&!(n.type===i.TAG_CLOSE&&l.start_tag_token===o)&&"TK_CONTENT"!==n.type,(l.is_content_unformatted||l.is_unformatted)&&(a=!1),a&&e.print_newline(!1)}else l.indent_content=!l.custom_beautifier_name,"<"===l.tag_start_char&&("html"===l.tag_name?l.indent_content=this._options.indent_inner_html:"head"===l.tag_name?l.indent_content=this._options.indent_head_inner_html:"body"===l.tag_name&&(l.indent_content=this._options.indent_body_inner_html)),l.is_inline_element||l.is_unformatted||"TK_CONTENT"===n.type&&!l.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,l)},u.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 p=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],m=["a","audio","del","ins","map","noscript","video"];return u.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"]);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!==p.indexOf(e.tag_name)){var l=e.parent.parent;l&&-1!==m.indexOf(l.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}},Bt.Beautifier=u,Bt}function Ut(){if(It)return we;It=1;var e=function(){if(dt)return Ne.exports;dt=1;var e=mt().Beautifier,t=Ke().Options;return Ne.exports=function(t,l){return new e(t,l).beautify()},Ne.exports.defaultOptions=function(){return new t},Ne.exports}(),t=Ct(),l=function(){if(_t)return Vt.exports;_t=1;var e=Tt().Beautifier,t=wt().Options;return Vt.exports=function(t,l,i,o){return new e(t,l,i,o).beautify()},Vt.exports.defaultOptions=function(){return new t},Vt.exports}();function i(i,o,n,a){return l(i,o,n=n||e,a=a||t)}return i.defaultOptions=l.defaultOptions,we.js=e,we.css=t,we.html=i,we}!function(e){!function(e){var t=Ut();t.js_beautify=t.js,t.css_beautify=t.css,t.html_beautify=t.html,e.exports=function(e,t,l){var i=function(t,l){return e.js_beautify(t,l)};return i.js=e.js_beautify,i.css=t.css_beautify,i.html=l.html_beautify,i.js_beautify=e.js_beautify,i.css_beautify=t.css_beautify,i.html_beautify=l.html_beautify,i}(t,t,t)}(e)}(xe);var Rt=fe(xe.exports),Ft={exports:{}};!function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,l=0,i={},o={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:++l}),e.__id},clone:function e(t,l){var i,n;switch(l=l||{},o.util.type(t)){case"Object":if(n=o.util.objId(t),l[n])return l[n];for(var a in i={},l[n]=i,t)t.hasOwnProperty(a)&&(i[a]=e(t[a],l));return i;case"Array":return n=o.util.objId(t),l[n]?l[n]:(i=[],l[n]=i,t.forEach((function(t,o){i[o]=e(t,l)})),i);default:return t}},getLanguage:function(e){for(;e;){var l=t.exec(e.className);if(l)return l[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,l){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+l)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(i){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var l in t)if(t[l].src==e)return t[l]}return null}},isActive:function(e,t,l){for(var i="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(i))return!1;e=e.parentElement}return!!l}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(e,t){var l=o.util.clone(o.languages[e]);for(var i in t)l[i]=t[i];return l},insertBefore:function(e,t,l,i){var n=(i=i||o.languages)[e],a={};for(var s in n)if(n.hasOwnProperty(s)){if(s==t)for(var r in l)l.hasOwnProperty(r)&&(a[r]=l[r]);l.hasOwnProperty(s)||(a[s]=n[s])}var c=i[e];return i[e]=a,o.languages.DFS(o.languages,(function(t,l){l===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,l,i,n){n=n||{};var a=o.util.objId;for(var s in t)if(t.hasOwnProperty(s)){l.call(t,s,t[s],i||s);var r=t[s],c=o.util.type(r);"Object"!==c||n[a(r)]?"Array"!==c||n[a(r)]||(n[a(r)]=!0,e(r,l,s,n)):(n[a(r)]=!0,e(r,l,null,n))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,l){var i={callback:l,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),o.hooks.run("before-all-elements-highlight",i);for(var n,a=0;n=i.elements[a++];)o.highlightElement(n,!0===t,i.callback)},highlightElement:function(t,l,i){var n=o.util.getLanguage(t),a=o.languages[n];o.util.setLanguage(t,n);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&o.util.setLanguage(s,n);var r={element:t,language:n,grammar:a,code:t.textContent};function c(e){r.highlightedCode=e,o.hooks.run("before-insert",r),r.element.innerHTML=r.highlightedCode,o.hooks.run("after-highlight",r),o.hooks.run("complete",r),i&&i.call(r.element)}if(o.hooks.run("before-sanity-check",r),(s=r.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!r.code)return o.hooks.run("complete",r),void(i&&i.call(r.element));if(o.hooks.run("before-highlight",r),r.grammar)if(l&&e.Worker){var d=new Worker(o.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:r.language,code:r.code,immediateClose:!0}))}else c(o.highlight(r.code,r.grammar,r.language));else c(o.util.encode(r.code))},highlight:function(e,t,l){var i={code:e,grammar:t,language:l};if(o.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=o.tokenize(i.code,i.grammar),o.hooks.run("after-tokenize",i),n.stringify(o.util.encode(i.tokens),i.language)},tokenize:function(e,t){var l=t.rest;if(l){for(var i in l)t[i]=l[i];delete t.rest}var o=new r;return c(o,o.head,e),s(e,o,t,o.head,0),function(e){var t=[],l=e.head.next;for(;l!==e.tail;)t.push(l.value),l=l.next;return t}(o)},hooks:{all:{},add:function(e,t){var l=o.hooks.all;l[e]=l[e]||[],l[e].push(t)},run:function(e,t){var l=o.hooks.all[e];if(l&&l.length)for(var i,n=0;i=l[n++];)i(t)}},Token:n};function n(e,t,l,i){this.type=e,this.content=t,this.alias=l,this.length=0|(i||"").length}function a(e,t,l,i){e.lastIndex=t;var o=e.exec(l);if(o&&i&&o[1]){var n=o[1].length;o.index+=n,o[0]=o[0].slice(n)}return o}function s(e,t,l,i,r,u){for(var h in l)if(l.hasOwnProperty(h)&&l[h]){var p=l[h];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(u&&u.cause==h+","+m)return;var g=p[m],A=g.inside,b=!!g.lookbehind,f=!!g.greedy,y=g.alias;if(f&&!g.pattern.global){var v=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,v+"g")}for(var k=g.pattern||g,C=i.next,E=r;C!==t.tail&&!(u&&E>=u.reach);E+=C.value.length,C=C.next){var V=C.value;if(t.length>e.length)return;if(!(V instanceof n)){var B,x=1;if(f){if(!(B=a(k,E,e,b))||B.index>=e.length)break;var w=B.index,N=B.index+B[0].length,S=E;for(S+=C.value.length;w>=S;)S+=(C=C.next).value.length;if(E=S-=C.value.length,C.value instanceof n)continue;for(var _=C;_!==t.tail&&(S<N||"string"==typeof _.value);_=_.next)x++,S+=_.value.length;x--,V=e.slice(E,S),B.index-=E}else if(!(B=a(k,0,V,b)))continue;w=B.index;var I=B[0],q=V.slice(0,w),D=V.slice(w+I.length),T=E+V.length;u&&T>u.reach&&(u.reach=T);var U=C.prev;if(q&&(U=c(t,U,q),E+=q.length),d(t,U,x),C=c(t,U,new n(h,A?o.tokenize(I,A):I,y,I)),D&&c(t,C,D),x>1){var R={cause:h+","+m,reach:T};s(e,t,l,C.prev,E,R),u&&R.reach>u.reach&&(u.reach=R.reach)}}}}}}function r(){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,l){var i=t.next,o={value:l,prev:t,next:i};return t.next=o,i.prev=o,e.length++,o}function d(e,t,l){for(var i=t.next,o=0;o<l&&i!==e.tail;o++)i=i.next;t.next=i,i.prev=t,e.length-=o}if(e.Prism=o,n.stringify=function e(t,l){if("string"==typeof t)return t;if(Array.isArray(t)){var i="";return t.forEach((function(t){i+=e(t,l)})),i}var n={type:t.type,content:e(t.content,l),tag:"span",classes:["token",t.type],attributes:{},language:l},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(n.classes,a):n.classes.push(a)),o.hooks.run("wrap",n);var s="";for(var r in n.attributes)s+=" "+r+'="'+(n.attributes[r]||"").replace(/"/g,""")+'"';return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+s+">"+n.content+"</"+n.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var l=JSON.parse(t.data),i=l.language,n=l.code,a=l.immediateClose;e.postMessage(o.highlight(n,o.languages[i],i)),a&&e.close()}),!1),o):o;var u=o.util.currentScript();function h(){o.manual||o.highlightAll()}if(u&&(o.filename=u.src,u.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&u&&u.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
2
2
|
/**
|
|
3
3
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
4
4
|
*
|