2 lines
2.1 MiB
2 lines
2.1 MiB
/*! For license information please see main.js.LICENSE.txt */
|
||
(()=>{var t={426:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>o});var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};const o=function(t,e){void 0===e&&(e={}),function(t,e){var r=t.BlockManager,o=e.category,i=e.blocks,a=e.stylePrefix,s=e.flexGrid,l=e.rowHeight,c=e.addBasicStyle,u="".concat(a,"row"),p="".concat(a,"cell"),f=s?"\n .".concat(u," {\n display: flex;\n justify-content: flex-start;\n align-items: stretch;\n flex-wrap: nowrap;\n padding: 10px;\n }\n @media (max-width: 768px) {\n .").concat(u," {\n flex-wrap: wrap;\n }\n }"):"\n .".concat(u," {\n display: table;\n padding: 10px;\n width: 100%;\n }\n @media (max-width: 768px) {\n .").concat(a,"cell, .").concat(a,"cell30, .").concat(a,"cell70 {\n width: 100%;\n display: block;\n }\n }"),d=s?"\n .".concat(p," {\n min-height: ").concat(l,"px;\n flex-grow: 1;\n flex-basis: 100%;\n }"):"\n .".concat(p," {\n width: 8%;\n display: table-cell;\n height: ").concat(l,"px;\n }"),h="\n .".concat(a,"cell30 {\n width: 30%;\n }"),g="\n .".concat(a,"cell70 {\n width: 70%;\n }"),m={tl:0,tc:0,tr:0,cl:0,cr:0,bl:0,br:0,minDim:1},v=n(n({},m),{cr:1,bc:0,currentUnit:1,minDim:1,step:.2});s&&(v.keyWidth="flex-basis");var y={class:u,"data-gjs-droppable":".".concat(p),"data-gjs-resizable":m,"data-gjs-name":"Row"},b={class:p,"data-gjs-draggable":".".concat(u),"data-gjs-resizable":v,"data-gjs-name":"Cell"};s&&(b["data-gjs-unstylable"]=["width"],b["data-gjs-stylable-require"]=["flex-basis"]);var _=[".".concat(u),".".concat(p)];t.on("selector:add",(function(t){return _.indexOf(t.getFullName())>=0&&t.set("private",1)}));var w=function(t){var e=[];for(var n in t){var r=t[n];r=r instanceof Array||r instanceof Object?JSON.stringify(r):r,e.push("".concat(n,"=").concat("'".concat(r,"'")))}return e.length?" ".concat(e.join(" ")):""},E=function(t){return i.indexOf(t)>=0},x=w(y),T=w(b),C={category:o,select:!0};E("column1")&&r.add("column1",n(n({},C),{label:e.labelColumn1,media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M2 20h20V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1Z"/>\n </svg>',content:"<div ".concat(x,">\n <div ").concat(T,"></div>\n </div>\n ").concat(c?"<style>\n ".concat(f,"\n ").concat(d,"\n </style>"):"")})),E("column2")&&r.add("column2",n(n({},C),{label:e.labelColumn2,media:'<svg viewBox="0 0 23 24">\n <path fill="currentColor" d="M2 20h8V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM13 20h8V4h-8v16Zm-1 0V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1Z"/>\n </svg>',content:"<div ".concat(x,">\n <div ").concat(T,"></div>\n <div ").concat(T,"></div>\n </div>\n ").concat(c?"<style>\n ".concat(f,"\n ").concat(d,"\n </style>"):"")})),E("column3")&&r.add("column3",n(n({},C),{label:e.labelColumn3,media:'<svg viewBox="0 0 23 24">\n <path fill="currentColor" d="M2 20h4V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM17 20h4V4h-4v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1ZM9.5 20h4V4h-4v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1Z"/>\n </svg>',content:"<div ".concat(x,">\n <div ").concat(T,"></div>\n <div ").concat(T,"></div>\n <div ").concat(T,"></div>\n </div>\n ").concat(c?"<style>\n ".concat(f,"\n ").concat(d,"\n </style>"):"")})),E("column3-7")&&r.add("column3-7",n(n({},C),{label:e.labelColumn37,media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M2 20h5V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM10 20h12V4H10v16Zm-1 0V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1Z"/>\n </svg>',content:"<div ".concat(x,">\n <div ").concat(T," style='").concat(s?"flex-basis":"width",": 30%;'></div>\n <div ").concat(T," style='").concat(s?"flex-basis":"width",": 70%;'></div>\n </div>\n ").concat(c?"<style>\n ".concat(f,"\n ").concat(d,"\n ").concat(h,"\n ").concat(g,"\n </style>"):"")})),E("text")&&r.add("text",n(n({},C),{activate:!0,label:e.labelText,media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z" />\n </svg>',content:{type:"text",content:"Insert your text here",style:{padding:"10px"}}})),E("link")&&r.add("link",n(n({},C),{label:e.labelLink,media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z" />\n </svg>',content:{type:"link",content:"Link",style:{color:"#d983a6"}}})),E("image")&&r.add("image",n(n({},C),{activate:!0,label:e.labelImage,media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M21,3H3C2,3 1,4 1,5V19A2,2 0 0,0 3,21H21C22,21 23,20 23,19V5C23,4 22,3 21,3M5,17L8.5,12.5L11,15.5L14.5,11L19,17H5Z" />\n </svg>',content:{style:{color:"black"},type:"image"}})),E("video")&&r.add("video",n(n({},C),{label:e.labelVideo,media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M10,15L15.19,12L10,9V15M21.56,7.17C21.69,7.64 21.78,8.27 21.84,9.07C21.91,9.87 21.94,10.56 21.94,11.16L22,12C22,14.19 21.84,15.8 21.56,16.83C21.31,17.73 20.73,18.31 19.83,18.56C19.36,18.69 18.5,18.78 17.18,18.84C15.88,18.91 14.69,18.94 13.59,18.94L12,19C7.81,19 5.2,18.84 4.17,18.56C3.27,18.31 2.69,17.73 2.44,16.83C2.31,16.36 2.22,15.73 2.16,14.93C2.09,14.13 2.06,13.44 2.06,12.84L2,12C2,9.81 2.16,8.2 2.44,7.17C2.69,6.27 3.27,5.69 4.17,5.44C4.64,5.31 5.5,5.22 6.82,5.16C8.12,5.09 9.31,5.06 10.41,5.06L12,5C16.19,5 18.8,5.16 19.83,5.44C20.73,5.69 21.31,6.27 21.56,7.17Z" />\n </svg>',content:{type:"video",src:"img/video2.webm",style:{height:"350px",width:"615px"}}})),E("map")&&r.add("map",n(n({},C),{label:e.labelMap,media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M20.5,3L20.34,3.03L15,5.1L9,3L3.36,4.9C3.15,4.97 3,5.15 3,5.38V20.5A0.5,0.5 0 0,0 3.5,21L3.66,20.97L9,18.9L15,21L20.64,19.1C20.85,19.03 21,18.85 21,18.62V3.5A0.5,0.5 0 0,0 20.5,3M10,5.47L14,6.87V18.53L10,17.13V5.47M5,6.46L8,5.45V17.15L5,18.31V6.46M19,17.54L16,18.55V6.86L19,5.7V17.54Z" />\n </svg>',content:{type:"map",style:{height:"350px"}}}))}(t,r({blocks:["column1","column2","column3","column3-7","text","link","image","video","map"],flexGrid:!1,stylePrefix:"gjs-",addBasicStyle:!0,category:"Basic",labelColumn1:"1 Column",labelColumn2:"2 Columns",labelColumn3:"3 Columns",labelColumn37:"2 Columns 3/7",labelText:"Text",labelLink:"Link",labelImage:"Image",labelVideo:"Video",labelMap:"Map",rowHeight:75},e))};return e})(),t.exports=e()},185:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{var t={480:t=>{var e;window,e=function(){return e=[function(t,e,n){"use strict";var r;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);return function(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,e?(n=u(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}n.d(e,"f",(function(){return m})),n.d(e,"a",(function(){return v})),n.d(e,"e",(function(){return y})),n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return E})),n.d(e,"m",(function(){return x})),n.d(e,"i",(function(){return T})),n.d(e,"n",(function(){return C})),n.d(e,"j",(function(){return A})),n.d(e,"k",(function(){return O})),n.d(e,"l",(function(){return S})),n.d(e,"h",(function(){return k})),n.d(e,"g",(function(){return P})),n.d(e,"c",(function(){return D})),(e=r=r||{}).Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype",r.Root,r.Text,r.Directive,r.Comment,r.Script,r.Style,r.Tag,r.CDATA,r.Doctype;var h=function(){function t(){p(this,t),this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return d(t,[{key:"parentNode",get:function(){return this.parent},set:function(t){this.parent=t}},{key:"previousSibling",get:function(){return this.prev},set:function(t){this.prev=t}},{key:"nextSibling",get:function(){return this.next},set:function(t){this.next=t}},{key:"cloneNode",value:function(){return P(this,0<arguments.length&&void 0!==arguments[0]&&arguments[0])}}]),t}(),g=function(){s(e,h);var t=c(e);function e(n){var r;return p(this,e),(r=t.call(this)).data=n,r}return d(e,[{key:"nodeValue",get:function(){return this.data},set:function(t){this.data=t}}]),e}(),m=function(){s(e,g);var t=c(e);function e(){var n;return p(this,e),(n=t.apply(this,arguments)).type=r.Text,n}return d(e,[{key:"nodeType",get:function(){return 3}}]),e}(),v=function(){s(e,g);var t=c(e);function e(){var n;return p(this,e),(n=t.apply(this,arguments)).type=r.Comment,n}return d(e,[{key:"nodeType",get:function(){return 8}}]),e}(),y=function(){s(e,g);var t=c(e);function e(n,o){return p(this,e),(o=t.call(this,o)).name=n,o.type=r.Directive,o}return d(e,[{key:"nodeType",get:function(){return 1}}]),e}(),b=function(){s(e,h);var t=c(e);function e(n){var r;return p(this,e),(r=t.call(this)).children=n,r}return d(e,[{key:"firstChild",get:function(){var t;return null!==(t=this.children[0])&&void 0!==t?t:null}},{key:"lastChild",get:function(){return 0<this.children.length?this.children[this.children.length-1]:null}},{key:"childNodes",get:function(){return this.children},set:function(t){this.children=t}}]),e}(),_=function(){s(e,b);var t=c(e);function e(){var n;return p(this,e),(n=t.apply(this,arguments)).type=r.CDATA,n}return d(e,[{key:"nodeType",get:function(){return 4}}]),e}(),w=function(){s(e,b);var t=c(e);function e(){var n;return p(this,e),(n=t.apply(this,arguments)).type=r.Root,n}return d(e,[{key:"nodeType",get:function(){return 9}}]),e}(),E=function(){s(e,b);var t=c(e);function e(n,o){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"script"===n?r.Script:"style"===n?r.Style:r.Tag;return p(this,e),(i=t.call(this,i)).name=n,i.attribs=o,i.type=a,i}return d(e,[{key:"nodeType",get:function(){return 1}},{key:"tagName",get:function(){return this.name},set:function(t){this.name=t}},{key:"attributes",get:function(){var t=this;return Object.keys(this.attribs).map((function(e){var n;return{name:e,value:t.attribs[e],namespace:null===(n=t["x-attribsNamespace"])||void 0===n?void 0:n[e],prefix:null===(n=t["x-attribsPrefix"])||void 0===n?void 0:n[e]}}))}}]),e}();function x(t){return function(t){return t.type===r.Tag||t.type===r.Script||t.type===r.Style}(t)}function T(t){return t.type===r.CDATA}function C(t){return t.type===r.Text}function A(t){return t.type===r.Comment}function O(t){return t.type===r.Directive}function S(t){return t.type===r.Root}function k(t){return Object.prototype.hasOwnProperty.call(t,"children")}function P(t){var e,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(C(t))e=new m(t.data);else if(A(t))e=new v(t.data);else if(x(t)){var r=n?j(t.children):[],o=new E(t.name,a({},t.attribs),r);r.forEach((function(t){return t.parent=o})),null!=t.namespace&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=a({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=a({},t["x-attribsPrefix"])),e=o}else if(T(t)){r=n?j(t.children):[];var i=new _(r);r.forEach((function(t){return t.parent=i})),e=i}else if(S(t)){var s=n?j(t.children):[],l=new w(s);s.forEach((function(t){return t.parent=l})),t["x-mode"]&&(l["x-mode"]=t["x-mode"]),e=l}else{if(!O(t))throw new Error("Not implemented yet: ".concat(t.type));s=new y(t.name,t.data),null!=t["x-name"]&&(s["x-name"]=t["x-name"],s["x-publicId"]=t["x-publicId"],s["x-systemId"]=t["x-systemId"]),e=s}return e.startIndex=t.startIndex,e.endIndex=t.endIndex,null!=t.sourceCodeLocation&&(e.sourceCodeLocation=t.sourceCodeLocation),e}function j(t){for(var e=t.map((function(t){return P(t,!0)})),n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var L={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},D=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.dom=[],this.root=new w(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof n&&(r=n,n=L),"object"===N(e)&&(n=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=n?n:L,this.elementCB=null!=r?r:null}return function(t,e,n){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"onparserinit",value:function(t){this.parser=t}},{key:"onreset",value:function(){this.dom=[],this.root=new w(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}},{key:"onend",value:function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}},{key:"onerror",value:function(t){this.handleCallback(t)}},{key:"onclosetag",value:function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}},{key:"onopentag",value:function(t,e){var n=this.options.xmlMode?r.Tag:void 0;n=new E(t,e,void 0,n),this.addNode(n),this.tagStack.push(n)}},{key:"ontext",value:function(t){var e=this.lastNode;e&&e.type===r.Text?(e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex)):(t=new m(t),this.addNode(t),this.lastNode=t)}},{key:"oncomment",value:function(t){this.lastNode&&this.lastNode.type===r.Comment?this.lastNode.data+=t:(t=new v(t),this.addNode(t),this.lastNode=t)}},{key:"oncommentend",value:function(){this.lastNode=null}},{key:"oncdatastart",value:function(){var t=new m(""),e=new _([t]);this.addNode(e),t.parent=e,this.lastNode=t}},{key:"oncdataend",value:function(){this.lastNode=null}},{key:"onprocessinginstruction",value:function(t,e){e=new y(t,e),this.addNode(e)}},{key:"handleCallback",value:function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t}},{key:"addNode",value:function(t){var e=this.tagStack[this.tagStack.length-1],n=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),n&&((t.prev=n).next=t),t.parent=e,this.lastNode=null}}]),t}()},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(93);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(146),o=n(147),i=n(235);t.exports=function(t){var e=o();return function(){var n,o=r(t);return o=e?(n=r(this).constructor,Reflect.construct(o,arguments,n)):o.apply(this,arguments),i(this,o)}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e),n.d(e,"getOuterHTML",(function(){return a})),n.d(e,"getInnerHTML",(function(){return s})),n.d(e,"getText",(function(){return l})),n.d(e,"textContent",(function(){return c})),n.d(e,"innerText",(function(){return u})),n.d(e,"getChildren",(function(){return p})),n.d(e,"getParent",(function(){return f})),n.d(e,"getSiblings",(function(){return d})),n.d(e,"getAttributeValue",(function(){return h})),n.d(e,"hasAttrib",(function(){return g})),n.d(e,"getName",(function(){return m})),n.d(e,"nextElementSibling",(function(){return v})),n.d(e,"prevElementSibling",(function(){return y})),n.d(e,"removeElement",(function(){return b})),n.d(e,"replaceElement",(function(){return _})),n.d(e,"appendChild",(function(){return w})),n.d(e,"append",(function(){return E})),n.d(e,"prependChild",(function(){return x})),n.d(e,"prepend",(function(){return T})),n.d(e,"filter",(function(){return S})),n.d(e,"find",(function(){return k})),n.d(e,"findOneChild",(function(){return P})),n.d(e,"findOne",(function(){return j})),n.d(e,"existsOne",(function(){return N})),n.d(e,"findAll",(function(){return L})),n.d(e,"testElement",(function(){return F})),n.d(e,"getElements",(function(){return U})),n.d(e,"getElementById",(function(){return H})),n.d(e,"getElementsByTagName",(function(){return V})),n.d(e,"getElementsByTagType",(function(){return q})),n.d(e,"removeSubsets",(function(){return z})),n.d(e,"DocumentPosition",(function(){return D})),n.d(e,"compareDocumentPosition",(function(){return G})),n.d(e,"uniqueSort",(function(){return W})),n.d(e,"getFeed",(function(){return $})),n.d(e,"isTag",(function(){return o.m})),n.d(e,"isCDATA",(function(){return o.i})),n.d(e,"isText",(function(){return o.n})),n.d(e,"isComment",(function(){return o.j})),n.d(e,"isDocument",(function(){return o.l})),n.d(e,"hasChildren",(function(){return o.h}));var r,o=n(0),i=n(92);function a(t,e){return Object(i.a)(t,e)}function s(t,e){return Object(o.h)(t)?t.children.map((function(t){return a(t,e)})).join(""):""}function l(t){return Array.isArray(t)?t.map(l).join(""):Object(o.m)(t)?"br"===t.name?"\n":l(t.children):Object(o.i)(t)?l(t.children):Object(o.n)(t)?t.data:""}function c(t){return Array.isArray(t)?t.map(c).join(""):Object(o.h)(t)&&!Object(o.j)(t)?c(t.children):Object(o.n)(t)?t.data:""}function u(t){return Array.isArray(t)?t.map(u).join(""):Object(o.h)(t)&&(t.type===r.Tag||Object(o.i)(t))?u(t.children):Object(o.n)(t)?t.data:""}function p(t){return Object(o.h)(t)?t.children:[]}function f(t){return t.parent||null}function d(t){var e=f(t);if(null!=e)return p(e);for(var n=[t],r=t.prev,o=t.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=o;)n.push(o),o=o.next;return n}function h(t,e){return null===(t=t.attribs)||void 0===t?void 0:t[e]}function g(t,e){return null!=t.attribs&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&null!=t.attribs[e]}function m(t){return t.name}function v(t){for(var e=t.next;null!==e&&!Object(o.m)(e);)e=e.next;return e}function y(t){for(var e=t.prev;null!==e&&!Object(o.m)(e);)e=e.prev;return e}function b(t){var e;t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent&&(e=t.parent.children).splice(e.lastIndexOf(t),1)}function _(t,e){var n=e.prev=t.prev;n&&(n.next=e),(n=e.next=t.next)&&(n.prev=e),(n=e.parent=t.parent)&&((n=n.children)[n.lastIndexOf(t)]=e,t.parent=null)}function w(t,e){b(e),e.next=null,1<(e.parent=t).children.push(e)?((t=t.children[t.children.length-2]).next=e).prev=t:e.prev=null}function E(t,e){b(e);var n=t.parent,r=t.next;e.next=r,((e.prev=t).next=e).parent=n,r?(r.prev=e,n&&(t=n.children).splice(t.lastIndexOf(r),0,e)):n&&n.children.push(e)}function x(t,e){b(e),e.parent=t,e.prev=null,1!==t.children.unshift(e)?((t=t.children[1]).prev=e).next=t:e.next=null}function T(t,e){b(e);var n,r=t.parent;r&&(n=r.children).splice(n.indexOf(t),0,e),t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,(e.next=t).prev=e}function C(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||A(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){if(t){if("string"==typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1/0;return k(t,e=Array.isArray(e)?e:[e],n,r)}function k(t,e,n,r){var i,a=[],s=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=A(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}(e);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(t(l)&&(a.push(l),--r<=0))break;if(n&&Object(o.h)(l)&&0<l.children.length){var c=k(t,l.children,n,r);if(a.push.apply(a,C(c)),(r-=c.length)<=0)break}}}catch(t){s.e(t)}finally{s.f()}return a}function P(t,e){return e.find(t)}function j(t,e){for(var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=null,i=0;i<e.length&&!r;i++){var a=e[i];Object(o.m)(a)&&(t(a)?r=a:n&&0<a.children.length&&(r=j(t,a.children,!0)))}return r}function N(t,e){return e.some((function(e){return Object(o.m)(e)&&(t(e)||0<e.children.length&&N(t,e.children))}))}function L(t,e){for(var n,r=[],i=e.filter(o.m);n=i.shift();){var a=null===(a=n.children)||void 0===a?void 0:a.filter(o.m);a&&0<a.length&&i.unshift.apply(i,C(a)),t(n)&&r.push(n)}return r}(n=r=r||{}).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",r.Root,r.Text,r.Directive,r.Comment,r.Script,r.Style,r.Tag,r.CDATA,r.Doctype;var D,I={tag_name:function(t){return"function"==typeof t?function(e){return Object(o.m)(e)&&t(e.name)}:"*"===t?o.m:function(e){return Object(o.m)(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return Object(o.n)(e)&&t(e.data)}:function(e){return Object(o.n)(e)&&e.data===t}}};function R(t,e){return"function"==typeof e?function(n){return Object(o.m)(n)&&e(n.attribs[t])}:function(n){return Object(o.m)(n)&&n.attribs[t]===e}}function M(t,e){return function(n){return t(n)||e(n)}}function B(t){var e=Object.keys(t).map((function(e){var n=t[e];return Object.prototype.hasOwnProperty.call(I,e)?I[e](n):R(e,n)}));return 0===e.length?null:e.reduce(M)}function F(t,e){return!(t=B(t))||t(e)}function U(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1/0;return(t=B(t))?S(t,e,n,r):[]}function H(t,e){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];return Array.isArray(e)||(e=[e]),j(R("id",t),e,n)}function V(t,e){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1/0;return S(I.tag_name(t),e,n,r)}function q(t,e){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1/0;return S(I.tag_type(t),e,n,r)}function z(t){for(var e=t.length;0<=--e;){var n=t[e];if(0<e&&0<=t.lastIndexOf(n,e-1))t.splice(e,1);else for(var r=n.parent;r;r=r.parent)if(t.includes(r)){t.splice(e,1);break}}return t}function G(t,e){var n=[],r=[];if(t===e)return 0;for(var i=Object(o.h)(t)?t:t.parent;i;)n.unshift(i),i=i.parent;for(i=Object(o.h)(e)?e:e.parent;i;)r.unshift(i),i=i.parent;for(var a=Math.min(n.length,r.length),s=0;s<a&&n[s]===r[s];)s++;if(0===s)return D.DISCONNECTED;var l=n[s-1],c=l.children,u=n[s],p=r[s];return c.indexOf(u)>c.indexOf(p)?l===e?D.FOLLOWING|D.CONTAINED_BY:D.FOLLOWING:l===t?D.PRECEDING|D.CONTAINS:D.PRECEDING}function W(t){return(t=t.filter((function(t,e,n){return!n.includes(t,e+1)}))).sort((function(t,e){return(e=G(t,e))&D.PRECEDING?-1:e&D.FOLLOWING?1:0})),t}function Y(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $(t){return(t=J(nt,t))?("feed"===t.name?function(t){var e=t.children,n={type:"atom",items:V("entry",e).map((function(t){var e=t.children,n={media:Z(e)};return et(n,"id","id",e),et(n,"title","title",e),(t=null===(t=J("link",e))||void 0===t?void 0:t.attribs.href)&&(n.link=t),(t=tt("summary",e)||tt("content",e))&&(n.description=t),(e=tt("updated",e))&&(n.pubDate=new Date(e)),n}))};return et(n,"id","id",e),et(n,"title","title",e),(t=null===(t=J("link",e))||void 0===t?void 0:t.attribs.href)&&(n.link=t),et(n,"description","subtitle",e),(t=tt("updated",e))&&(n.updated=new Date(t)),et(n,"author","email",e,!0),n}:function(t){var e=null!==(n=null===(e=J("channel",t.children))||void 0===e?void 0:e.children)&&void 0!==n?n:[],n={type:t.name.substr(0,3),id:"",items:V("item",t.children).map((function(t){var e=t.children;return et(t={media:Z(e)},"id","guid",e),et(t,"title","title",e),et(t,"link","link",e),et(t,"description","description",e),(e=tt("pubDate",e))&&(t.pubDate=new Date(e)),t}))};return et(n,"title","title",e),et(n,"link","link",e),et(n,"description","description",e),(t=tt("lastBuildDate",e))&&(n.updated=new Date(t)),et(n,"author","managingEditor",e,!0),n})(t):null}(n=D=D||{})[n.DISCONNECTED=1]="DISCONNECTED",n[n.PRECEDING=2]="PRECEDING",n[n.FOLLOWING=4]="FOLLOWING",n[n.CONTAINS=8]="CONTAINS",n[n.CONTAINED_BY=16]="CONTAINED_BY";var X=["url","type","lang"],Q=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Z(t){return V("media:content",t).map((function(t){var e,n=t.attribs,r={medium:n.medium,isDefault:!!n.isDefault},o=Y(X);try{for(o.s();!(e=o.n()).done;){var i=e.value;n[i]&&(r[i]=n[i])}}catch(t){o.e(t)}finally{o.f()}var a,s=Y(Q);try{for(s.s();!(a=s.n()).done;){var l=a.value;n[l]&&(r[l]=parseInt(n[l],10))}}catch(t){s.e(t)}finally{s.f()}return n.expression&&(r.expression=n.expression),r}))}function J(t,e){return V(t,e,!0,1)[0]}function tt(t,e,n){return c(V(t,e,2<arguments.length&&void 0!==n&&n,1)).trim()}function et(t,e,n,r,o){(o=tt(n,r,4<arguments.length&&void 0!==o&&o))&&(t[e]=o)}function nt(t){return"rss"===t||"feed"===t||"rdf:RDF"===t}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";(function(t){function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=n(36).default,c=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a="",l=[];H&&"string"==typeof i.skeleton&&(i.skeleton=n(535)("."===i.skeleton.charAt(0)?T.default.resolve(t.cwd(),i.skeleton):i.skeleton));var c={},u={},p={},f=[],d=null,D=null;(H&&i.useMjmlConfigOptions||i.mjmlConfigPath)&&(c=(K=(W=(0,U.readMjmlConfig)(i.mjmlConfigPath)).mjmlConfig).packages,u=K.options,f=K.preprocessors,D=W.componentRootPath,d=W.error,i.useMjmlConfigOptions&&(p=u)),H&&!d&&i.mjmlConfigPath&&(0,U.handleMjmlConfigComponents)(c,D,L.registerComponent);var I,q=void 0!==(Y=(X=s(s(s({},p),i),{},{preprocessors:i.preprocessors?[].concat(r(f),r(i.preprocessors)):f})).beautify)&&Y,z=void 0===($=X.fonts)?{"Open Sans":"https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,700","Droid Sans":"https://fonts.googleapis.com/css?family=Droid+Sans:300,400,500,700",Lato:"https://fonts.googleapis.com/css?family=Lato:300,400,500,700",Roboto:"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700",Ubuntu:"https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700"}:$,G=X.keepComments,W=void 0!==(K=X.minify)&&K,Y=(d=void 0===(u=X.minifyOptions)?{}:u,D=void 0!==(c=X.ignoreIncludes)&&c,i=void 0===(p=X.juiceOptions)?{}:p,void 0===(f=X.juicePreserveTags)?null:f),K=void 0===($=X.skeleton)?B.default:$,$=(c=void 0===(u=X.validationLevel)?"soft":u,f=void 0===(p=X.filePath)?".":p,u=void 0===($=X.actualPath)?".":$,void 0!==(p=X.noMigrateWarn)&&p),X=(p=X.preprocessors,void 0===(X=X.presets)?[]:X),Q=s({},L.default),Z=(0,P.assignDependencies)({},P.dependencies),J=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(X);try{for(J.s();!(I=J.n()).done;){var tt=I.value;(0,L.assignComponents)(Q,tt.components),(0,P.assignDependencies)(Z,tt.dependencies)}}catch(e){J.e(e)}finally{J.f()}"string"==typeof e&&(e=(0,k.default)(e,{keepComments:G,components:Q,filePath:f,actualPath:u,preprocessors:p,ignoreIncludes:D})),e=(0,j.handleMjml3)(e,{noMigrateWarn:$});var et,nt,rt={backgroundColor:"",beforeDoctype:"",breakpoint:"480px",classes:{},classesDefault:{},defaultAttributes:{},htmlAttributes:{},fonts:z,inlineStyle:[],headStyle:{},componentsHeadStyle:[],headRaw:[],mediaQueries:{},preview:"",style:[],title:"",forceOWADesktop:"desktop"===(0,w.default)(e,"attributes.owa","mobile"),lang:(0,w.default)(e,"attributes.lang"),dir:(0,w.default)(e,"attributes.dir")},ot={components:Q,dependencies:Z,initializeType:F.initializeType};switch(c){case"skip":break;case"strict":if(0<(l=(0,P.default)(e,ot)).length)throw new V("ValidationError: \n ".concat(l.map((function(t){return t.formattedMessage})).join("\n")),l);break;default:l=(0,P.default)(e,ot)}function it(t,e,n){if(n=2<arguments.length&&void 0!==n?n:_.default,t)return null!==(e=(0,N.initComponent)({name:t.tagName,initialDatas:s(s({},n(t)),{},{context:e})}))?"handler"in e?e.handler():"render"in e?e.render():void 0:void 0}function at(t){return function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=e.attributes,o=e.tagName,i=e.children,a=(0,w.default)(e.attributes,"mj-class","").split(" "),l=(0,v.default)(a,(function(t,e){var n=rt.classes[e];return e={},t["css-class"]&&(0,w.default)(n,"css-class")&&(e={"css-class":"".concat(t["css-class"]," ").concat(n["css-class"])}),s(s(s({},t),n),e)}),{}),c=(a=(0,v.default)(n.split(" "),(function(t,e){return s(s({},t),(0,w.default)(rt.classesDefault,"".concat(e,".").concat(o)))}),{}),(0,w.default)(r,"mj-class",n));return s(s({},e),{},{attributes:s(s(s(s({},rt.defaultAttributes[o]),l),a),(0,y.default)(r,["mj-class"])),globalAttributes:s({},rt.defaultAttributes["mj-all"]),children:(0,b.default)(i,(function(e){return t(e,c)}))})}(t)}if(p=(0,x.default)(e.children,{tagName:"mj-body"}),D=(0,x.default)(e.children,{tagName:"mj-head"}),$=(0,E.default)(e.children,{tagName:"mj-raw"}),z={components:Q,globalData:rt,addMediaQuery:function(t,e){var n=e.parsedWidth;e=e.unit,rt.mediaQueries[t]="{ width:".concat(n).concat(e," !important; max-width: ").concat(n).concat(e,"; }")},addHeadStyle:function(t,e){rt.headStyle[t]=e},addComponentHeadSyle:function(t){rt.componentsHeadStyle.push(t)},setBackgroundColor:function(t){rt.backgroundColor=t},processing:function(t,e){return it(t,e,at)}},c={components:Q,globalData:rt,add:function(t){for(var e,n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(Array.isArray(rt[t]))(e=rt[t]).push.apply(e,r);else{if(!Object.prototype.hasOwnProperty.call(rt,t))throw Error("An mj-head element add an unkown head attribute : ".concat(t," with params ").concat(Array.isArray(r)?r.join(""):r));1<r.length?(0,m.default)(rt[t][r[0]])?rt[t][r[0]]=s(s({},rt[t][r[0]]),r[1]):rt[t][r[0]]=r[1]:rt[t]=r[0]}}},rt.headRaw=it(D,c),!(a=it(p,z,at)))throw new Error("Malformed MJML. Check that your structure is correct and enclosed in <mjml> tags.");return a=(0,M.default)(a),$.length&&(et=$.filter((function(t){return t.attributes.position&&"file-start"===t.attributes.position}))).length&&(rt.beforeDoctype=et.map((function(t){return t.content})).join("\n")),(0,h.default)(rt.htmlAttributes)||(nt=(0,S.load)(a,{xmlMode:!0,decodeEntities:!1}),(0,g.default)(rt.htmlAttributes,(function(t,e){(0,g.default)(t,(function(t,n){nt(e).each((function(){nt(this).attr(n,t||"")}))}))})),a=nt.root().html()),a=K(s({content:a},rt)),0<rt.inlineStyle.length&&(Y&&(0,g.default)(Y,(function(t,e){C.default.codeBlocks[e]=t})),a=(0,C.default)(a,s({applyStyleTags:!1,extraCss:rt.inlineStyle.join(""),insertPreservedExtraCss:!1,removeStyleTags:!1},i))),a=(0,R.default)(a),q&&(console.warn('"beautify" option is deprecated in mjml-core and only available in mjml cli.'),a=(0,A.html)(a,{indent_size:2,wrap_attributes_indent_size:2,max_preserve_newline:0,preserve_newlines:!1})),W&&(console.warn('"minify" option is deprecated in mjml-core and only available in mjml cli.'),a=(0,O.minify)(a,s({collapseWhitespace:!0,minifyCSS:!1,caseSensitive:!0,removeEmptyAttributes:!0},d))),{html:a,json:e,errors:l}},Object.defineProperty(e,"initComponent",{enumerable:!0,get:function(){return N.initComponent}}),Object.defineProperty(e,"BodyComponent",{enumerable:!0,get:function(){return N.BodyComponent}}),Object.defineProperty(e,"HeadComponent",{enumerable:!0,get:function(){return N.HeadComponent}}),Object.defineProperty(e,"components",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"registerComponent",{enumerable:!0,get:function(){return L.registerComponent}}),Object.defineProperty(e,"assignComponents",{enumerable:!0,get:function(){return L.assignComponents}}),Object.defineProperty(e,"makeLowerBreakpoint",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"suffixCssClasses",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"initializeType",{enumerable:!0,get:function(){return F.initializeType}}),Object.defineProperty(e,"handleMjmlConfig",{enumerable:!0,get:function(){return U.default}});var u=c(n(3)),p=c(n(4)),f=c(n(5)),d=c(n(236)),h=c(n(148)),g=c(n(153)),m=c(n(18)),v=c(n(41)),y=c(n(168)),b=c(n(46)),_=c(n(24)),w=c(n(42)),E=c(n(114)),x=c(n(47)),T=c(n(21)),C=c(n(337)),A=n(179),O=n(352),S=n(232),k=c(n(132)),P=l(n(141)),j=n(497),N=n(499),L=l(n(224)),D=c(n(525)),I=c(n(526)),R=c(n(527)),M=c(n(528)),B=c(n(529)),F=n(27),U=l(n(533)),H=n(534),V=function(t){(0,p.default)(n,t);var e=(0,f.default)(n);function n(t,r){return(0,u.default)(this,n),(t=e.call(this,t)).errors=r,t}return n}((0,d.default)(Error));H&&(0,U.default)(t.cwd(),L.registerComponent)}).call(this,n(14))},function(t,e){t.exports={AT_RULE:"at-rule",AT_RULE_BLOCK:"at-rule-block",AT_RULE_BLOCK_SCOPE:"at-rule-block-scope",COMMENT:"comment",NESTED_BLOCK:"nested-block",NESTED_BLOCK_SCOPE:"nested-block-scope",PROPERTY:"property",PROPERTY_BLOCK:"property-block",PROPERTY_NAME:"property-name",PROPERTY_VALUE:"property-value",RAW:"raw",RULE:"rule",RULE_SCOPE:"rule-scope"}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var o=r(n(341));e.htmlDecodeTree=o.default;var i=r(n(342));e.xmlDecodeTree=i.default;var a=r(n(177));e.decodeCodePoint=a.default;var s,l,c=n(177);function u(t){return function(e,n){for(var r="",o=0,i=0;0<=(i=e.indexOf("&",i));)if(r+=e.slice(o,i),o=i,e.charCodeAt(i+=1)!==s.NUM){for(var c=0,u=1,f=0,d=t[f];i<e.length&&!((f=p(t,d,f+1,e.charCodeAt(i)))<0);i++,u++){var h,g=(d=t[f])&l.VALUE_LENGTH;if(g){if(n&&e.charCodeAt(i)!==s.SEMI||(c=f,u=0),0==(h=(g>>14)-1))break;f+=h}}0!==c&&(r+=1==(h=(t[c]&l.VALUE_LENGTH)>>14)?String.fromCharCode(t[c]&~l.VALUE_LENGTH):2===h?String.fromCharCode(t[c+1]):String.fromCharCode(t[c+1],t[c+2]),o=i-u+1)}else{var m,v=i+1,y=10;for(((m=e.charCodeAt(v))|s.To_LOWER_BIT)===s.LOWER_X&&(y=16,i+=1,v+=1);(m=e.charCodeAt(++i))>=s.ZERO&&m<=s.NINE||16===y&&(m|s.To_LOWER_BIT)>=s.LOWER_A&&(m|s.To_LOWER_BIT)<=s.LOWER_F;);if(v!==i){if(v=e.substring(v,i),v=parseInt(v,y),e.charCodeAt(i)===s.SEMI)i+=1;else if(n)continue;r+=(0,a.default)(v),o=i}}return r+e.slice(o)}}function p(t,e,n,r){var o=(e&l.BRANCH_LENGTH)>>7;if(e&=l.JUMP_TABLE,0==o)return 0!=e&&r===e?n:-1;if(e)return(e=r-e)<0||o<=e?-1:t[n+e]-1;for(var i=n,a=i+o-1;i<=a;){var s=i+a>>>1,c=t[s];if(c<r)i=1+s;else{if(!(r<c))return t[s+o];a=s-1}}return-1}Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}}),(n=s=s||{})[n.NUM=35]="NUM",n[n.SEMI=59]="SEMI",n[n.ZERO=48]="ZERO",n[n.NINE=57]="NINE",n[n.LOWER_A=97]="LOWER_A",n[n.LOWER_F=102]="LOWER_F",n[n.LOWER_X=120]="LOWER_X",n[n.To_LOWER_BIT=32]="To_LOWER_BIT",(n=l=e.BinTrieFlags||(e.BinTrieFlags={}))[n.VALUE_LENGTH=49152]="VALUE_LENGTH",n[n.BRANCH_LENGTH=16256]="BRANCH_LENGTH",n[n.JUMP_TABLE=127]="JUMP_TABLE",e.determineBranch=p;var f=u(o.default),d=u(i.default);e.decodeHTML=function(t){return f(t,!1)},e.decodeHTMLStrict=function(t){return f(t,!0)},e.decodeXML=function(t){return d(t,!0)}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(124);function o(t,e){t.output.push("string"==typeof e?e:e[1])}function i(){return{output:[],store:o}}t.exports={all:function(t){var e=i();return r.all(e,t),e.output.join("")},body:function(t){var e=i();return r.body(e,t),e.output.join("")},property:function(t,e){var n=i();return r.property(n,t,e,!0),n.output.join("")},rules:function(t){var e=i();return r.rules(e,t),e.output.join("")},value:function(t){var e=i();return r.value(e,t),e.output.join("")}}},function(t,e){var n,r;function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}t=t.exports={},function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var s,l=[],c=!1,u=-1;function p(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&f())}function f(){if(!c){var t=a(p);c=!0;for(var e=l.length;e;){for(s=l,l=[];++u<e;)s&&s[u].run();u=-1,e=l.length}s=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function h(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new d(t,e)),1!==l.length||c||a(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e){t.exports={ASTERISK:"*",AT:"@",BACK_SLASH:"\\",CARRIAGE_RETURN:"\r",CLOSE_CURLY_BRACKET:"}",CLOSE_ROUND_BRACKET:")",CLOSE_SQUARE_BRACKET:"]",COLON:":",COMMA:",",DOUBLE_QUOTE:'"',EXCLAMATION:"!",FORWARD_SLASH:"/",INTERNAL:"-clean-css-",NEW_LINE_NIX:"\n",OPEN_CURLY_BRACKET:"{",OPEN_ROUND_BRACKET:"(",OPEN_SQUARE_BRACKET:"[",SEMICOLON:";",SINGLE_QUOTE:"'",SPACE:" ",TAB:"\t",UNDERSCORE:"_"}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(150);n="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,n=o||n||Function("return this")(),t.exports=n},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}t.exports=r},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=n(t);return null!=t&&("object"==e||"function"==e)}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!=t&&"object"==n(t)}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(257),i=n(291),a=n(24),s=n(12),l=n(298);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==r(t)?s(t)?i(t[0],t[1]):o(t):l(t)}},function(t,e){function n(){return console.warn("fs should not be used in browser build"),null}t.exports={parse:n,resolve:n,join:n,dirname:n,isAbsolute:n}},function(t,e,n){"use strict";(function(t){var r=n(339),o=n(340),i=n(176);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(t=null===t?new l(e):t).length=e,t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"!=typeof t)return c(this,t,e,n);if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}function c(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=f(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if(!l.isEncoding(n="string"!=typeof n||""===n?"utf8":n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(e,n);return(n=(t=s(t,r)).write(e,n))!==r?t.slice(0,n):t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|d(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?s(t,0):f(t,e);if("Buffer"===e.type&&i(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function p(t,e){if(u(e),t=s(t,e<0?0:0|d(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function h(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var n=(t="string"!=typeof t?""+t:t).length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return k(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return P(t).length;default:if(r)return k(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,(n=(n=isNaN(n)?o?0:t.length-1:n)<0?t.length+n:n)>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,o);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,n):v(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,o){var i=1,a=t.length,s=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a/=i=2,s/=2,n/=2}function l(t,e){return 1===i?t[e]:t.readUInt16BE(e*i)}if(o)for(var c=-1,u=n;u<a;u++)if(l(t,u)===l(e,-1===c?0:u-c)){if(u-(c=-1===c?u:c)+1===s)return c*i}else-1!==c&&(u-=u-c),c=-1;else for(u=n=a<n+s?a-s:n;0<=u;u--){for(var p=!0,f=0;f<s;f++)if(l(t,u+f)!==l(e,f)){p=!1;break}if(p)return u}return-1}function y(t,e,n,r){return j(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function b(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i,a,s,l,c=t[o],u=null,p=239<c?4:223<c?3:191<c?2:1;if(o+p<=n)switch(p){case 1:c<128&&(u=c);break;case 2:128==(192&(i=t[o+1]))&&127<(l=(31&c)<<6|63&i)&&(u=l);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&2047<(l=(15&c)<<12|(63&i)<<6|63&a)&&(l<55296||57343<l)&&(u=l);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)&&l<1114112&&(u=l)}null===u?(u=65533,p=1):65535<u&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=p}return function(t){var e=t.length;if(e<=_)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=_));return n}(r)}e.Buffer=l,e.SlowBuffer=function(t){return l.alloc(+(t=+t!=t?0:t))},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return c(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,r){return u(e),e<=0||void 0===n?s(t,e):"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n)}(null,t,e,n)},l.allocUnsafe=function(t){return p(null,t)},l.allocUnsafeSlow=function(t){return p(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);if(void 0===e)for(o=e=0;o<t.length;++o)e+=t[o].length;for(var n=l.allocUnsafe(e),r=0,o=0;o<t.length;++o){var a=t[o];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0==t?"":0===arguments.length?b(this,0,t):function(t,e,n){var o=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,e,n){var r=t.length;(!n||n<0||r<n)&&(n=r);for(var o="",i=e=!e||e<0?0:e;i<n;++i)o+=function(t){return t<16?"0"+t.toString(16):t.toString(16)}(t[i]);return o}(this,e,n);case"utf8":case"utf-8":return b(this,e,n);case"ascii":return function(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}(this,e,n);case"latin1":case"binary":return function(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}(this,e,n);case"base64":return function(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(this,e,n);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,r,o){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),(e=void 0===e?0:e)<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(o<=r&&n<=e)return 0;if(o<=r)return-1;if(n<=e)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=t.slice(e,n),p=0;p<s;++p)if(c[p]!==u[p]){i=c[p],a=u[p];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},l.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||o<n)&&(n=o),0<t.length&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var i=!1;;)switch(r){case"hex":return function(t,e,n,r){n=Number(n)||0;var o=t.length-n;if((!r||o<(r=Number(r)))&&(r=o),(o=e.length)%2!=0)throw new TypeError("Invalid hex string");o/2<r&&(r=o/2);for(var i=0;i<r;++i){var a=parseInt(e.substr(2*i,2),16);if(isNaN(a))return i;t[n+i]=a}return i}(this,t,e,n);case"utf8":case"utf-8":return function(t,e,n,r){return j(k(e,t.length-n),t,n,r)}(this,t,e,n);case"ascii":case"latin1":case"binary":return y(this,t,e,n);case"base64":return function(t,e,n,r){return j(P(e),t,n,r)}(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,n,r){return j(function(t,e){for(var n,r,o=[],i=0;i<t.length&&!((e-=2)<0);++i)n=(r=t.charCodeAt(i))>>8,o.push(r%=256),o.push(n);return o}(e,t.length-n),t,n,r)}(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function w(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(n<t+e)throw new RangeError("Trying to access beyond buffer length")}function E(t,e,n,r,o,i){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<e||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function x(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function T(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function C(t,e,n,r){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function A(t,e,n,r,i){return i||C(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function O(t,e,n,r,i){return i||C(t,0,n,8),o.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(o=this.subarray(t,e)).__proto__=l.prototype;else for(var r=e-t,o=new l(r,void 0),i=0;i<r;++i)o[i]=this[i+t];return o},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=this[t+--e],o=1;0<e&&(o*=256);)r+=this[t+--e]*o;return r},l.prototype.readUInt8=function(t,e){return e||w(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||w(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||w(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||w(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return(o*=128)<=r&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=e,o=1,i=this[t+--r];0<r&&(o*=256);)i+=this[t+--r]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*e)),i},l.prototype.readInt8=function(t,e){return e||w(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){return e||w(t,2,this.length),32768&(t=this[t]|this[t+1]<<8)?4294901760|t:t},l.prototype.readInt16BE=function(t,e){return e||w(t,2,this.length),32768&(t=this[t+1]|this[t]<<8)?4294901760|t:t},l.prototype.readInt32LE=function(t,e){return e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||w(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||w(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||w(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||w(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||E(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||E(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[e+o]=255&t;0<=--o&&(i*=256);)this[e+o]=t/i&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):T(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):T(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,r){t=+t,e|=0,r||E(this,t,e,n,(r=Math.pow(2,8*n-1))-1,-r);var o=0,i=1,a=0;for(this[e]=255&t;++o<n&&(i*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/i>>0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){t=+t,e|=0,r||E(this,t,e,n,(r=Math.pow(2,8*n-1))-1,-r);var o=n-1,i=1,a=0;for(this[e+o]=255&t;0<=--o&&(i*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/i>>0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):T(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):T(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return A(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return A(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return O(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return O(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n=n||0,r||0===r||(r=this.length),e>=t.length&&(e=t.length),(r=0<r&&r<n?n:r)===n)return 0;if(0===t.length||0===this.length)return 0;if((e=e||0)<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var o,i=(r=t.length-e<r-n?t.length-e+n:r)-n;if(this===t&&n<e&&e<r)for(o=i-1;0<=o;--o)t[o+e]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},l.prototype.fill=function(t,e,n,r){if("string"==typeof t){var o;if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1!==t.length||(o=t.charCodeAt(0))<256&&(t=o),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;if(e>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(t=t||0))for(s=e;s<n;++s)this[s]=t;else for(var i=l.isBuffer(t)?t:k(new l(t,r).toString()),a=i.length,s=0;s<n-e;++s)this[s+e]=i[s%a];return this};var S=/[^+\/0-9A-Za-z-_]/g;function k(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],a=0;a<r;++a){if(55295<(n=t.charCodeAt(a))&&n<57344){if(!o){if(56319<n){-1<(e-=3)&&i.push(239,191,189);continue}if(a+1===r){-1<(e-=3)&&i.push(239,191,189);continue}o=n;continue}if(n<56320){-1<(e-=3)&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&-1<(e-=3)&&i.push(239,191,189);if(o=null,n<128){if(--e<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function P(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(S,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function j(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}}).call(this,n(17))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var r=n(6),o=n(0);function i(e){return function(n,r,i,s){return"string"==typeof(n=void 0!==t&&t.isBuffer(n)?n.toString():n)?e(n,r,i,s):(s=n,!Array.isArray(s)&&Object(o.l)(s)?s:(a(s,n=new o.b([])),n))}}function a(t,e){var n=Array.isArray(t)?t:[t];e?e.children=n:e=null;for(var o=0;o<n.length;o++){var i=n[o];i.parent&&i.parent.children!==n&&Object(r.removeElement)(i),e?(i.prev=n[o-1]||null,i.next=n[o+1]||null):i.prev=i.next=null,i.parent=e}return e}}).call(this,n(22).Buffer)},function(t,e){t.exports=function(t){return t}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(181).roundingPrecisionFrom,i=n(48),a={Zero:"0",One:"1",Two:"2"},s={};s[a.Zero]={},s[a.One]={cleanupCharsets:!0,normalizeUrls:!0,optimizeBackground:!0,optimizeBorderRadius:!0,optimizeFilter:!0,optimizeFontWeight:!0,optimizeOutline:!0,removeEmpty:!0,removeNegativePaddings:!0,removeQuotes:!0,removeWhitespace:!0,replaceMultipleZeros:!0,replaceTimeUnits:!0,replaceZeroUnits:!0,roundingPrecision:o(void 0),selectorsSortingMethod:"standard",specialComments:"all",tidyAtRules:!0,tidyBlockScopes:!0,tidySelectors:!0,transform:function(){}},s[a.Two]={mergeAdjacentRules:!0,mergeIntoShorthands:!0,mergeMedia:!0,mergeNonAdjacentRules:!0,mergeSemantically:!1,overrideProperties:!0,removeEmpty:!0,reduceNonAdjacentRules:!0,removeDuplicateFontRules:!0,removeDuplicateMediaBlocks:!0,removeDuplicateRules:!0,removeUnusedAtRules:!1,restructureRules:!1,skipProperties:[]};var l="all";function c(t,e){var n,r=i(s[t],{});for(n in r)"boolean"==typeof r[n]&&(r[n]=e);return r}function u(t){switch(t){case"false":case"off":return!1;case"true":case"on":return!0;default:return t}}t.exports={OptimizationLevel:a,optimizationLevelFrom:function(t){var e=i(s,{}),n=a.Zero,p=a.One,f=a.Two;return void 0===t?delete e[f]:"number"==typeof(t="string"==typeof t?parseInt(t):t)&&t===parseInt(f)||("number"==typeof t&&t===parseInt(p)?delete e[f]:"number"==typeof t&&t===parseInt(n)?(delete e[f],delete e[p]):(p in(t="object"==r(t)?function(t){for(var e,n=i(t,{}),r=0;r<=2;r++)(e=""+r)in n&&(void 0===n[e]||!1===n[e])&&delete n[e],e in n&&!0===n[e]&&(n[e]={}),e in n&&"string"==typeof n[e]&&(n[e]=function(t,e){return t.split(";").reduce((function(t,n){n=(r=n.split(":"))[0];var r=u(r[1]);return"*"==n||l==n?t=i(t,c(e,r)):t[n]=r,t}),{})}(n[e],e));return n}(t):t)&&"roundingPrecision"in t[p]&&(t[p].roundingPrecision=o(t[p].roundingPrecision)),f in t&&"skipProperties"in t[f]&&"string"==typeof t[f].skipProperties&&(t[f].skipProperties=t[f].skipProperties.split(",")),(n in t||p in t||f in t)&&(e[n]=i(e[n],t[n])),p in t&&"*"in t[p]&&(e[p]=i(e[p],c(p,u(t[p]["*"]))),delete t[p]["*"]),p in t&&l in t[p]&&(e[p]=i(e[p],c(p,u(t[p].all))),delete t[p].all),p in t||f in t?e[p]=i(e[p],t[p]):delete e[p],f in t&&"*"in t[f]&&(e[f]=i(e[f],c(f,u(t[f]["*"]))),delete t[f]["*"]),f in t&&l in t[f]&&(e[f]=i(e[f],c(f,u(t[f].all))),delete t[f].all),f in t?e[f]=i(e[f],t[f]):delete e[f])),e}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(404),i=n(405);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return(t=i.isString(t)?b(t):t)instanceof a?t.format():a.prototype.format.call(t)},e.Url=a;var s=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=(e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),["'"].concat(e)),p=["%","/","?",";","#"].concat(u),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(406);function b(t,e,n){if(t&&i.isObject(t)&&t instanceof a)return t;var r=new a;return r.parse(t,e,n),r}a.prototype.parse=function(t,e,n){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+r(t));var a=t.indexOf("?"),l=-1!==a&&a<t.indexOf("#")?"?":"#";(a=t.split(l))[0]=a[0].replace(/\\/g,"/");var b,_,w,E=(E=t=a.join(l)).trim();if(!n&&1===t.split("#").length&&(_=c.exec(E)))return this.path=E,this.href=E,this.pathname=_[1],_[2]?(this.search=_[2],this.query=e?y.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this;if((_=s.exec(E))&&(w=(_=_[0]).toLowerCase(),this.protocol=w,E=E.substr(_.length)),(n||_||E.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(b="//"===E.substr(0,2))||_&&m[_]||(E=E.substr(2),this.slashes=!0)),!m[_]&&(b||_&&!v[_])){for(var x=-1,T=0;T<f.length;T++)-1!==(C=E.indexOf(f[T]))&&(-1===x||C<x)&&(x=C);var C,A;for(-1!==(R=-1===x?E.lastIndexOf("@"):E.lastIndexOf("@",x))&&(M=E.slice(0,R),E=E.slice(R+1),this.auth=decodeURIComponent(M)),x=-1,T=0;T<p.length;T++)-1!==(C=E.indexOf(p[T]))&&(-1===x||C<x)&&(x=C);if(-1===x&&(x=E.length),this.host=E.slice(0,x),E=E.slice(x),this.parseHost(),this.hostname=this.hostname||"",!(A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1]))for(var O=this.hostname.split(/\./),S=(T=0,O.length);T<S;T++){var k=O[T];if(k&&!k.match(d)){for(var P="",j=0,N=k.length;j<N;j++)127<k.charCodeAt(j)?P+="x":P+=k[j];if(!P.match(d)){var L=O.slice(0,T),D=O.slice(T+1),I=k.match(h);I&&(L.push(I[1]),D.unshift(I[2])),D.length&&(E="/"+D.join(".")+E),this.hostname=L.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=o.toASCII(this.hostname));var R=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+R,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==E[0]&&(E="/"+E))}if(!g[w])for(T=0,S=u.length;T<S;T++){var B,F=u[T];-1!==E.indexOf(F)&&((B=encodeURIComponent(F))===F&&(B=escape(F)),E=E.split(F).join(B))}return-1!==(A=E.indexOf("#"))&&(this.hash=E.substr(A),E=E.slice(0,A)),-1!==(A=E.indexOf("?"))?(this.search=E.substr(A),this.query=E.substr(A+1),e&&(this.query=y.parse(this.query)),E=E.slice(0,A)):e&&(this.search="",this.query={}),E&&(this.pathname=E),v[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(R=this.pathname||"",w=this.search||"",this.path=R+w),this.href=this.format(),this},a.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";return this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query)),a=this.search||a&&"?"+a||"",e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o=o||"",r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),e+o+(n=n.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(a=a.replace("#","%23"))+r},a.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},a.prototype.resolveObject=function(t){i.isString(t)&&((E=new a).parse(t,!1,!0),t=E);for(var e=new a,n=Object.keys(this),r=0;r<n.length;r++){var o=n[r];e[o]=this[o]}if(e.hash=t.hash,""===t.href)return e.href=e.format(),e;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),l=0;l<s.length;l++){var c=s[l];"protocol"!==c&&(e[c]=t[c])}return v[e.protocol]&&e.hostname&&!e.pathname&&(e.path=e.pathname="/"),e.href=e.format(),e}if(t.protocol&&t.protocol!==e.protocol){if(!v[t.protocol]){for(var u=Object.keys(t),p=0;p<u.length;p++){var f=u[p];e[f]=t[f]}return e.href=e.format(),e}if(e.protocol=t.protocol,t.host||m[t.protocol])e.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),e.pathname=d.join("/")}return e.search=t.search,e.query=t.query,e.host=t.host||"",e.auth=t.auth,e.hostname=t.hostname||t.host,e.port=t.port,(e.pathname||e.search)&&(y=e.pathname||"",b=e.search||"",e.path=y+b),e.slashes=e.slashes||t.slashes,e.href=e.format(),e}var h,g=e.pathname&&"/"===e.pathname.charAt(0),y=(E=t.host||t.pathname&&"/"===t.pathname.charAt(0))||g||e.host&&t.pathname,b=y,_=e.pathname&&e.pathname.split("/")||[];if(d=t.pathname&&t.pathname.split("/")||[],(g=e.protocol&&!v[e.protocol])&&(e.hostname="",e.port=null,e.host&&(""===_[0]?_[0]=e.host:_.unshift(e.host)),e.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),y=y&&(""===d[0]||""===_[0])),E)e.host=(t.host||""===t.host?t:e).host,e.hostname=(t.hostname||""===t.hostname?t:e).hostname,e.search=t.search,e.query=t.query,_=d;else if(d.length)(_=_||[]).pop(),_=_.concat(d),e.search=t.search,e.query=t.query;else if(!i.isNullOrUndefined(t.search))return g&&(e.hostname=e.host=_.shift(),(h=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=h.shift(),e.host=e.hostname=h.shift())),e.search=t.search,e.query=t.query,i.isNull(e.pathname)&&i.isNull(e.search)||(e.path=(e.pathname||"")+(e.search||"")),e.href=e.format(),e;if(!_.length)return e.pathname=null,e.search?e.path="/"+e.search:e.path=null,e.href=e.format(),e;for(var w=_.slice(-1)[0],E=(e.host||t.host||1<_.length)&&("."===w||".."===w)||""===w,x=0,T=_.length;0<=T;T--)"."===(w=_[T])?_.splice(T,1):".."===w?(_.splice(T,1),x++):x&&(_.splice(T,1),x--);if(!y&&!b)for(;x--;)_.unshift("..");return!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push(""),E=""===_[0]||_[0]&&"/"===_[0].charAt(0),g&&(e.hostname=e.host=!E&&_.length?_.shift():"",(h=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=h.shift(),e.host=e.hostname=h.shift())),(y=y||e.host&&_.length)&&!E&&_.unshift(""),_.length?e.pathname=_.join("/"):(e.pathname=null,e.path=null),i.isNull(e.pathname)&&i.isNull(e.search)||(e.path=(e.pathname||"")+(e.search||"")),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes,e.href=e.format(),e},a.prototype.parseHost=function(){var t=this.host,e=l.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.initializeType=e.types=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(47)),s=r(n(514)),l=r(n(516)),c={};e.types=c,n=function(t){if(c[t])return c[t];var e=((0,a.default)(l.default,(function(e){return!!t.match(e.matcher)}))||{}).typeConstructor;if(!e)throw new Error("No type found for ".concat(t));return c[t]=e(t),c[t]},e.initializeType=n,e.default=function(){function t(e){(0,o.default)(this,t),this.value=e}return(0,i.default)(t,[{key:"isValid",value:function(){var t=this;return(0,s.default)(this.matchers,(function(e){return"".concat(t.value).match(e)}))}},{key:"getErrorMessage",value:function(){if(!this.isValid())return(this.constructor.errorMessage||"has invalid value: ".concat(this.value," for type ").concat(this.constructor.name," ")).replace(/\$value/g,this.value)}},{key:"getValue",value:function(){return this.value}}],[{key:"check",value:function(t){return!!t.match(this.constructor.typeChecker)}}]),t}()},function(t,e,n){var r=n(241),o=n(246);t.exports=function(t,e){return e=o(t,e),r(e)?e:void 0}},function(t,e,n){var r=n(39),o=n(242),i=n(243),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(a&&a in Object(t)?o:i)(t)}},function(t,e,n){var r=n(68),o=n(96);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){var r=n(155),o=n(94),i=n(30);t.exports=function(t){return(i(t)?r:o)(t)}},function(t,e,n){var r=n(44);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var r,o=n(367),i=n(368),a=n(370),s=n(48),l={animation:{canOverride:i.generic.components([i.generic.time,i.generic.timingFunction,i.generic.time,i.property.animationIterationCount,i.property.animationDirection,i.property.animationFillMode,i.property.animationPlayState,i.property.animationName]),components:["animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name"],breakUp:o.multiplex(o.animation),defaultValue:"none",restore:a.multiplex(a.withoutDefaults),shorthand:!0,vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-delay":{canOverride:i.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-direction":{canOverride:i.property.animationDirection,componentOf:["animation"],defaultValue:"normal",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-duration":{canOverride:i.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",keepUnlessDefault:"animation-delay",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-fill-mode":{canOverride:i.property.animationFillMode,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-iteration-count":{canOverride:i.property.animationIterationCount,componentOf:["animation"],defaultValue:"1",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-name":{canOverride:i.property.animationName,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-play-state":{canOverride:i.property.animationPlayState,componentOf:["animation"],defaultValue:"running",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-timing-function":{canOverride:i.generic.timingFunction,componentOf:["animation"],defaultValue:"ease",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},background:{canOverride:i.generic.components([i.generic.image,i.property.backgroundPosition,i.property.backgroundSize,i.property.backgroundRepeat,i.property.backgroundAttachment,i.property.backgroundOrigin,i.property.backgroundClip,i.generic.color]),components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:o.multiplex(o.background),defaultValue:"0 0",restore:a.multiplex(a.background),shortestValue:"0",shorthand:!0},"background-attachment":{canOverride:i.property.backgroundAttachment,componentOf:["background"],defaultValue:"scroll",intoMultiplexMode:"real"},"background-clip":{canOverride:i.property.backgroundClip,componentOf:["background"],defaultValue:"border-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-color":{canOverride:i.generic.color,componentOf:["background"],defaultValue:"transparent",intoMultiplexMode:"real",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:i.generic.image,componentOf:["background"],defaultValue:"none",intoMultiplexMode:"default"},"background-origin":{canOverride:i.property.backgroundOrigin,componentOf:["background"],defaultValue:"padding-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-position":{canOverride:i.property.backgroundPosition,componentOf:["background"],defaultValue:["0","0"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0"},"background-repeat":{canOverride:i.property.backgroundRepeat,componentOf:["background"],defaultValue:["repeat"],doubleValues:!0,intoMultiplexMode:"real"},"background-size":{canOverride:i.property.backgroundSize,componentOf:["background"],defaultValue:["auto"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0 0"},bottom:{canOverride:i.property.bottom,defaultValue:"auto"},border:{breakUp:o.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-width","border-style","border-color"],defaultValue:"none",overridesShorthands:["border-bottom","border-left","border-right","border-top"],restore:a.withoutDefaults,shorthand:!0,shorthandComponents:!0},"border-bottom":{breakUp:o.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-bottom-width","border-bottom-style","border-bottom-color"],defaultValue:"none",restore:a.withoutDefaults,shorthand:!0},"border-bottom-color":{canOverride:i.generic.color,componentOf:["border-bottom","border-color"],defaultValue:"none"},"border-bottom-left-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-right-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-style":{canOverride:i.property.borderStyle,componentOf:["border-bottom","border-style"],defaultValue:"none"},"border-bottom-width":{canOverride:i.generic.unit,componentOf:["border-bottom","border-width"],defaultValue:"medium",oppositeTo:"border-top-width",shortestValue:"0"},"border-collapse":{canOverride:i.property.borderCollapse,defaultValue:"separate"},"border-color":{breakUp:o.fourValues,canOverride:i.generic.components([i.generic.color,i.generic.color,i.generic.color,i.generic.color]),componentOf:["border"],components:["border-top-color","border-right-color","border-bottom-color","border-left-color"],defaultValue:"none",restore:a.fourValues,shortestValue:"red",shorthand:!0},"border-left":{breakUp:o.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-left-width","border-left-style","border-left-color"],defaultValue:"none",restore:a.withoutDefaults,shorthand:!0},"border-left-color":{canOverride:i.generic.color,componentOf:["border-color","border-left"],defaultValue:"none"},"border-left-style":{canOverride:i.property.borderStyle,componentOf:["border-left","border-style"],defaultValue:"none"},"border-left-width":{canOverride:i.generic.unit,componentOf:["border-left","border-width"],defaultValue:"medium",oppositeTo:"border-right-width",shortestValue:"0"},"border-radius":{breakUp:o.borderRadius,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],defaultValue:"0",restore:a.borderRadius,shorthand:!0,vendorPrefixes:["-moz-","-o-"]},"border-right":{breakUp:o.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-right-width","border-right-style","border-right-color"],defaultValue:"none",restore:a.withoutDefaults,shorthand:!0},"border-right-color":{canOverride:i.generic.color,componentOf:["border-color","border-right"],defaultValue:"none"},"border-right-style":{canOverride:i.property.borderStyle,componentOf:["border-right","border-style"],defaultValue:"none"},"border-right-width":{canOverride:i.generic.unit,componentOf:["border-right","border-width"],defaultValue:"medium",oppositeTo:"border-left-width",shortestValue:"0"},"border-style":{breakUp:o.fourValues,canOverride:i.generic.components([i.property.borderStyle,i.property.borderStyle,i.property.borderStyle,i.property.borderStyle]),componentOf:["border"],components:["border-top-style","border-right-style","border-bottom-style","border-left-style"],defaultValue:"none",restore:a.fourValues,shorthand:!0},"border-top":{breakUp:o.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-top-width","border-top-style","border-top-color"],defaultValue:"none",restore:a.withoutDefaults,shorthand:!0},"border-top-color":{canOverride:i.generic.color,componentOf:["border-color","border-top"],defaultValue:"none"},"border-top-left-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-right-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-style":{canOverride:i.property.borderStyle,componentOf:["border-style","border-top"],defaultValue:"none"},"border-top-width":{canOverride:i.generic.unit,componentOf:["border-top","border-width"],defaultValue:"medium",oppositeTo:"border-bottom-width",shortestValue:"0"},"border-width":{breakUp:o.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),componentOf:["border"],components:["border-top-width","border-right-width","border-bottom-width","border-left-width"],defaultValue:"medium",restore:a.fourValues,shortestValue:"0",shorthand:!0},clear:{canOverride:i.property.clear,defaultValue:"none"},color:{canOverride:i.generic.color,defaultValue:"transparent",shortestValue:"red"},cursor:{canOverride:i.property.cursor,defaultValue:"auto"},display:{canOverride:i.property.display},float:{canOverride:i.property.float,defaultValue:"none"},font:{breakUp:o.font,canOverride:i.generic.components([i.property.fontStyle,i.property.fontVariant,i.property.fontWeight,i.property.fontStretch,i.generic.unit,i.generic.unit,i.property.fontFamily]),components:["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],restore:a.font,shorthand:!0},"font-family":{canOverride:i.property.fontFamily,defaultValue:"user|agent|specific"},"font-size":{canOverride:i.generic.unit,defaultValue:"medium",shortestValue:"0"},"font-stretch":{canOverride:i.property.fontStretch,defaultValue:"normal"},"font-style":{canOverride:i.property.fontStyle,defaultValue:"normal"},"font-variant":{canOverride:i.property.fontVariant,defaultValue:"normal"},"font-weight":{canOverride:i.property.fontWeight,defaultValue:"normal",shortestValue:"400"},height:{canOverride:i.generic.unit,defaultValue:"auto",shortestValue:"0"},left:{canOverride:i.property.left,defaultValue:"auto"},"line-height":{canOverride:i.generic.unitOrNumber,defaultValue:"normal",shortestValue:"0"},"list-style":{canOverride:i.generic.components([i.property.listStyleType,i.property.listStylePosition,i.property.listStyleImage]),components:["list-style-type","list-style-position","list-style-image"],breakUp:o.listStyle,restore:a.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-image":{canOverride:i.generic.image,componentOf:["list-style"],defaultValue:"none"},"list-style-position":{canOverride:i.property.listStylePosition,componentOf:["list-style"],defaultValue:"outside",shortestValue:"inside"},"list-style-type":{canOverride:i.property.listStyleType,componentOf:["list-style"],defaultValue:"decimal|disc",shortestValue:"none"},margin:{breakUp:o.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["margin-top","margin-right","margin-bottom","margin-left"],defaultValue:"0",restore:a.fourValues,shorthand:!0},"margin-bottom":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-top"},"margin-left":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-right"},"margin-right":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-left"},"margin-top":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-bottom"},outline:{canOverride:i.generic.components([i.generic.color,i.property.outlineStyle,i.generic.unit]),components:["outline-color","outline-style","outline-width"],breakUp:o.outline,restore:a.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:i.generic.color,componentOf:["outline"],defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:i.property.outlineStyle,componentOf:["outline"],defaultValue:"none"},"outline-width":{canOverride:i.generic.unit,componentOf:["outline"],defaultValue:"medium",shortestValue:"0"},overflow:{canOverride:i.property.overflow,defaultValue:"visible"},"overflow-x":{canOverride:i.property.overflow,defaultValue:"visible"},"overflow-y":{canOverride:i.property.overflow,defaultValue:"visible"},padding:{breakUp:o.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["padding-top","padding-right","padding-bottom","padding-left"],defaultValue:"0",restore:a.fourValues,shorthand:!0},"padding-bottom":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-top"},"padding-left":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-right"},"padding-right":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-left"},"padding-top":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-bottom"},position:{canOverride:i.property.position,defaultValue:"static"},right:{canOverride:i.property.right,defaultValue:"auto"},"text-align":{canOverride:i.property.textAlign,defaultValue:"left|right"},"text-decoration":{canOverride:i.property.textDecoration,defaultValue:"none"},"text-overflow":{canOverride:i.property.textOverflow,defaultValue:"none"},"text-shadow":{canOverride:i.property.textShadow,defaultValue:"none"},top:{canOverride:i.property.top,defaultValue:"auto"},transform:{canOverride:i.property.transform,vendorPrefixes:["-moz-","-ms-","-webkit-"]},transition:{breakUp:o.multiplex(o.transition),canOverride:i.generic.components([i.property.transitionProperty,i.generic.time,i.generic.timingFunction,i.generic.time]),components:["transition-property","transition-duration","transition-timing-function","transition-delay"],defaultValue:"none",restore:a.multiplex(a.withoutDefaults),shorthand:!0,vendorPrefixes:["-moz-","-o-","-webkit-"]},"transition-delay":{canOverride:i.generic.time,componentOf:["transition"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"transition-duration":{canOverride:i.generic.time,componentOf:["transition"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"transition-property":{canOverride:i.generic.propertyName,componentOf:["transition"],defaultValue:"all",intoMultiplexMode:"placeholder",placeholderValue:"_",vendorPrefixes:["-moz-","-o-","-webkit-"]},"transition-timing-function":{canOverride:i.generic.timingFunction,componentOf:["transition"],defaultValue:"ease",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"vertical-align":{canOverride:i.property.verticalAlign,defaultValue:"baseline"},visibility:{canOverride:i.property.visibility,defaultValue:"visible"},"white-space":{canOverride:i.property.whiteSpace,defaultValue:"normal"},width:{canOverride:i.generic.unit,defaultValue:"auto",shortestValue:"0"},"z-index":{canOverride:i.property.zIndex,defaultValue:"auto"}},c={};for(r in l){var u=l[r];if("vendorPrefixes"in u){for(var p=0;p<u.vendorPrefixes.length;p++){var f=u.vendorPrefixes[p],d=function(t,e){return"componentOf"in(t=s(l[t],{}))&&(t.componentOf=t.componentOf.map((function(t){return e+t}))),"components"in t&&(t.components=t.components.map((function(t){return e+t}))),"keepUnlessDefault"in t&&(t.keepUnlessDefault=e+t.keepUnlessDefault),t}(r,f);delete d.vendorPrefixes,c[f+r]=d}delete u.vendorPrefixes}}t.exports=s(l,c)},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){var n;e&&(t.super_=e,(n=function(){}).prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=void 0===(n=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).parseFloatToInt)||n,n=r.exec(t.toString())[1];return{parsedWidth:((e={default:parseInt,px:parseInt,"%":e?parseInt:parseFloat})[n]||e.default)(t),unit:n||"px"}};var r=/[\d.,]*(\D*)$/;t.exports=e.default},function(t,e,n){var r=n(145).default;function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}t.exports=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};if((e=o(e))&&e.has(t))return e.get(t);var n,i,a={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&((i=s?Object.getOwnPropertyDescriptor(t,n):null)&&(i.get||i.set)?Object.defineProperty(a,n,i):a[n]=t[n]);return a.default=t,e&&e.set(t,a),a},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(240),o=n(95),i=n(247),a=n(248),s=n(152),l=n(29),c=n(151),u="[object Map]",p="[object Promise]",f="[object Set]",d="[object WeakMap]",h="[object DataView]",g=c(r),m=c(o),v=c(i),y=c(a),b=c(s);n=l,(r&&n(new r(new ArrayBuffer(1)))!=h||o&&n(new o)!=u||i&&n(i.resolve())!=p||a&&n(new a)!=f||s&&n(new s)!=d)&&(n=function(t){var e=l(t);if(t=(t="[object Object]"==e?t.constructor:void 0)?c(t):"")switch(t){case g:return h;case m:return u;case v:return p;case y:return f;case b:return d}return e}),t.exports=n},function(t,e,n){n=n(16).Symbol,t.exports=n},function(t,e,n){var r=n(71),o=n(55),i=n(256),a=n(12);t.exports=function(t,e){return(a(t)?r:o)(t,i(e))}},function(t,e,n){var r=n(156),o=n(55),i=n(20),a=n(301),s=n(12);t.exports=function(t,e,n){var l=s(t)?r:a,c=arguments.length<3;return l(t,i(e,4),n,c,o)}},function(t,e,n){var r=n(77);t.exports=function(t,e,n){return void 0===(e=null==t?void 0:r(t,e))?n:e}},function(t,e,n){var r=n(12),o=n(104),i=n(167),a=n(45);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(29),i=n(19);t.exports=function(t){return"symbol"==r(t)||i(t)&&"[object Symbol]"==o(t)}},function(t,e,n){var r=n(294);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(57),o=n(20),i=n(330),a=n(12);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},function(t,e,n){n=n(332)(n(333)),t.exports=n},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function t(e,r){var o,i,a,s={};for(o in e)a=e[o],Array.isArray(a)?s[o]=a.slice(0):"object"==n(a)&&null!==a?s[o]=t(a,{}):s[o]=a;for(i in r)a=r[i],i in s&&Array.isArray(a)?s[i]=a.slice(0):i in s&&"object"==n(a)&&null!==a?s[i]=t(s[i],a):s[i]=a;return s}},function(t,e,n){var r=n(122),o=n(15),i=n(10),a={ASTERISK:"*",BACKSLASH:"\\",BANG:"!",BANG_SUFFIX_PATTERN:/!\w+$/,IMPORTANT_TOKEN:"!important",IMPORTANT_TOKEN_PATTERN:new RegExp("!important$","i"),IMPORTANT_WORD:"important",IMPORTANT_WORD_PATTERN:new RegExp("important$","i"),SUFFIX_BANG_PATTERN:/!$/,UNDERSCORE:"_",VARIABLE_REFERENCE_PATTERN:/var\(--.+\)$/};function s(t){var e=function(t){if(t.length<3)return!1;var e=t[t.length-1];return!!a.IMPORTANT_TOKEN_PATTERN.test(e[1])||!(!a.IMPORTANT_WORD_PATTERN.test(e[1])||!a.SUFFIX_BANG_PATTERN.test(t[t.length-2][1]))}(t);e&&function(t){var e=t[t.length-1],n=t[t.length-2];a.IMPORTANT_TOKEN_PATTERN.test(e[1])?e[1]=e[1].replace(a.IMPORTANT_TOKEN_PATTERN,""):(e[1]=e[1].replace(a.IMPORTANT_WORD_PATTERN,""),n[1]=n[1].replace(a.SUFFIX_BANG_PATTERN,"")),0===e[1].length&&t.pop(),0===n[1].length&&t.pop()}(t);var n=function(t){var e=!1,n=t[1][1];return t=t[t.length-1],n[0]==a.UNDERSCORE?e=[r.UNDERSCORE]:n[0]==a.ASTERISK?e=[r.ASTERISK]:t[1][0]==a.BANG&&!t[1].match(a.IMPORTANT_WORD_PATTERN)||0<t[1].indexOf(a.BANG)&&!t[1].match(a.IMPORTANT_WORD_PATTERN)&&a.BANG_SUFFIX_PATTERN.test(t[1])?e=[r.BANG]:0<t[1].indexOf(a.BACKSLASH)&&t[1].indexOf(a.BACKSLASH)==t[1].length-a.BACKSLASH.length-1?e=[r.BACKSLASH,t[1].substring(t[1].indexOf(a.BACKSLASH)+1)]:0===t[1].indexOf(a.BACKSLASH)&&2==t[1].length&&(e=[r.BACKSLASH,t[1].substring(1)]),e}(t);return n[0]==r.ASTERISK||n[0]==r.UNDERSCORE?function(t){t[1][1]=t[1][1].substring(1)}(t):n[0]!=r.BACKSLASH&&n[0]!=r.BANG||function(t,e){var n=t[t.length-1];n[1]=n[1].substring(0,n[1].indexOf(e[0]==r.BACKSLASH?a.BACKSLASH:a.BANG)).trim(),0===n[1].length&&t.pop()}(t,n),{block:t[2]&&t[2][0]==i.PROPERTY_BLOCK,components:[],dirty:!1,hack:n,important:e,name:t[1][1],multiplex:3<t.length&&function(t){for(var e,n=3,r=t.length;n<r;n++)if((e=t[n])[0]==i.PROPERTY_VALUE&&(e[1]==o.COMMA||e[1]==o.FORWARD_SLASH))return!0;return!1}(t),position:0,shorthand:!1,unused:!1,value:t.slice(2)}}t.exports={all:function(t,e,n){for(var r,o=[],l=t.length-1;0<=l;l--)(r=t[l])[0]==i.PROPERTY&&(!e&&function(t){for(var e,n=2,r=t.length;n<r;n++)if((e=t[n])[0]==i.PROPERTY_VALUE&&function(t){return a.VARIABLE_REFERENCE_PATTERN.test(t)}(e[1]))return 1}(r)||n&&-1<n.indexOf(r[1][1])||((r=s(r)).all=t,r.position=l,o.unshift(r)));return o},single:s}},function(t,e,n){"use strict";var r=n(86),o=Object.keys||function(t){var e,n=[];for(e in t)n.push(e);return n};t.exports=u,(t=Object.create(n(61))).inherits=n(34);var i=n(192),a=n(196);t.inherits(u,i);for(var s=o(a.prototype),l=0;l<s.length;l++){var c=s[l];u.prototype[c]||(u.prototype[c]=a.prototype[c])}function u(t){if(!(this instanceof u))return new u(t);i.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),u.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},function(t,e){t.exports={}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.line,r=e.tagName,o=e.absoluteFilePath;return{line:n,message:t,tagName:r,formattedMessage:"Line ".concat(n," of ").concat(o).concat(function(t){return(t=t.includedIn)&&t.length?(t=t.slice().reverse().map((function(t){var e=t.line;return t=t.file,"line ".concat(e," of file ").concat(t)})).join(", itself included at "),", included at ".concat(t)):""}(e)," (").concat(r,") — ").concat(t)}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return"\n ".concat(e?a:r,"\n ").concat(t,"\n ").concat(e?l:i,"\n ")},e.msoConditionalTag=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return"\n ".concat(e?s:o,"\n ").concat(t,"\n ").concat(e?l:i,"\n ")},e.endNegationConditionalTag=e.startMsoNegationConditionalTag=e.startNegationConditionalTag=e.endConditionalTag=e.startMsoConditionalTag=e.startConditionalTag=void 0;var r="\x3c!--[if mso | IE]>";e.startConditionalTag=r;var o="\x3c!--[if mso]>";e.startMsoConditionalTag=o;var i="<![endif]--\x3e";e.endConditionalTag=i;var a="\x3c!--[if !mso | IE]>\x3c!--\x3e";e.startNegationConditionalTag=a;var s="\x3c!--[if !mso>\x3c!--\x3e";e.startMsoNegationConditionalTag=s;var l="\x3c!--<![endif]--\x3e";e.endNegationConditionalTag=l},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(154);r=n(255)(r),t.exports=r},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=n(t);return!!(e=null==e?9007199254740991:e)&&("number"==o||"symbol"!=o&&r.test(t))&&-1<t&&t%1==0&&t<e}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){var r=n(106),o=n(107);t.exports=function(t,e,n,i){var a=!n;n=n||{};for(var s=-1,l=e.length;++s<l;){var c=e[s],u=i?i(n[c],t[c],c,n,t):void 0;void 0===u&&(u=t[c]),(a?o:r)(n,c,u)}return n}},function(t,e,n){var r=n(175);t.exports=function(t){var e=r(t);return t=e%1,e==e?t?e-t:e:0}},function(t,e,n){var r=n(122),o=n(15);t.exports=function(t,e){for(var n,i,a,s=t.length-1;0<=s;s--)(n=t[s]).unused||(n.dirty||n.important||n.hack)&&(e?(i=e(n),n.value=i):i=n.value,n.important&&function(t){t.value[t.value.length-1][1]+="!important"}(n),n.hack&&function(t){t.hack[0]==r.UNDERSCORE?t.name="_"+t.name:t.hack[0]==r.ASTERISK?t.name="*"+t.name:t.hack[0]==r.BACKSLASH?t.value[t.value.length-1][1]+="\\"+t.hack[1]:t.hack[0]==r.BANG&&(t.value[t.value.length-1][1]+=o.SPACE+"!ie")}(n),"all"in n&&((a=n.all[n.position])[1][1]=n.name,a.splice(2,a.length-1),Array.prototype.push.apply(a,i)))}},function(t,e,n){(function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"===n(t)},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===r(t)},e.isObject=function(t){return"object"===n(t)&&null!==t},e.isDate=function(t){return"[object Date]"===r(t)},e.isError=function(t){return"[object Error]"===r(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===n(t)||void 0===t},e.isBuffer=t.isBuffer}).call(this,n(22).Buffer)},function(t,e){e.getArg=function(t,e,n){if(e in t)return t[e];if(3===arguments.length)return n;throw new Error('"'+e+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(t){return(t=t.match(n))?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}function a(t){var n=t,r=o(t);if(r){if(!r.path)return t;n=r.path}t=e.isAbsolute(n);for(var a,s=n.split(/\/+/),l=0,c=s.length-1;0<=c;c--)"."===(a=s[c])?s.splice(c,1):".."===a?l++:0<l&&(""===a?(s.splice(c+1,l),l=0):(s.splice(c,2),l--));return""===(n=s.join("/"))&&(n=t?"/":"."),r?(r.path=n,i(r)):n}function s(t,e){""===t&&(t=".");var n=o(e=""===e?".":e),s=o(t);return s&&(t=s.path||"/"),n&&!n.scheme?(s&&(n.scheme=s.scheme),i(n)):n||e.match(r)?e:!s||s.host||s.path?(e="/"===e.charAt(0)?e:a(t.replace(/\/+$/,"")+"/"+e),s?(s.path=e,i(s)):e):(s.host=e,i(s))}e.urlParse=o,e.urlGenerate=i,e.normalize=a,e.join=s,e.isAbsolute=function(t){return"/"===t.charAt(0)||n.test(t)},e.relative=function(t,e){t=(t=""===t?".":t).replace(/\/$/,"");for(var n=0;0!==e.indexOf(t+"/");){var r=t.lastIndexOf("/");if(r<0)return e;if((t=t.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return e;++n}return Array(n+1).join("../")+e.substr(t.length+1)};var l=!("__proto__"in Object.create(null));function c(t){return t}function u(t){if(t){var e=t.length;if(!(e<9)&&95===t.charCodeAt(e-1)&&95===t.charCodeAt(e-2)&&111===t.charCodeAt(e-3)&&116===t.charCodeAt(e-4)&&111===t.charCodeAt(e-5)&&114===t.charCodeAt(e-6)&&112===t.charCodeAt(e-7)&&95===t.charCodeAt(e-8)&&95===t.charCodeAt(e-9)){for(var n=e-10;0<=n;n--)if(36!==t.charCodeAt(n))return;return 1}}}function p(t,e){return t===e?0:null===t||null!==e&&e<t?1:-1}e.toSetString=l?c:function(t){return u(t)?"$"+t:t},e.fromSetString=l?c:function(t){return u(t)?t.slice(1):t},e.compareByOriginalPositions=function(t,e,n){var r=p(t.source,e.source);return 0!==r||0!=(r=t.originalLine-e.originalLine)||0!=(r=t.originalColumn-e.originalColumn)||n||0!=(r=t.generatedColumn-e.generatedColumn)||0!=(r=t.generatedLine-e.generatedLine)?r:p(t.name,e.name)},e.compareByGeneratedPositionsDeflated=function(t,e,n){var r=t.generatedLine-e.generatedLine;return 0!==r||0!=(r=t.generatedColumn-e.generatedColumn)||n||0!==(r=p(t.source,e.source))||0!=(r=t.originalLine-e.originalLine)||0!=(r=t.originalColumn-e.originalColumn)?r:p(t.name,e.name)},e.compareByGeneratedPositionsInflated=function(t,e){var n=t.generatedLine-e.generatedLine;return 0!==n||0!=(n=t.generatedColumn-e.generatedColumn)||0!==(n=p(t.source,e.source))||0!=(n=t.originalLine-e.originalLine)||0!=(n=t.originalColumn-e.originalColumn)?n:p(t.name,e.name)},e.parseSourceMapInput=function(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(t,e,n){if(e=e||"",t&&("/"!==t[t.length-1]&&"/"!==e[0]&&(t+="/"),e=t+e),n){if(!(t=o(n)))throw new Error("sourceMapURL could not be parsed");!t.path||0<=(n=t.path.lastIndexOf("/"))&&(t.path=t.path.substring(0,n+1)),e=s(i(t),e)}return a(e)}},function(t,e){t.exports={readFileSync:function(){return console.warn("fs should not be used in browser build"),null}}},function(t,e){var n=/^(\w+:\/\/|\/\/)/;t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(453),o=n(455);t.exports=function(t,e,n){return r(o,t,e,n)}},,function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(29),o=n(18);t.exports=function(t){return!!o(t)&&("[object Function]"==(t=r(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}},function(t,e,n){var r=n(249),o=n(19),i=(n=Object.prototype).hasOwnProperty,a=n.propertyIsEnumerable;r=r(function(){return arguments}())?r:function(t){return o(t)&&i.call(t,"callee")&&!a.call(t,"callee")},t.exports=r},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(16),i=n(250),a="object"==r(e)&&e&&!e.nodeType&&e,s=a&&"object"==r(t)&&t&&!t.nodeType&&t;o=(o=s&&s.exports===a?o.Buffer:void 0)?o.isBuffer:void 0,t.exports=o||i}).call(this,n(54)(t))},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(259),o=n(260),i=n(261),a=n(262);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}n=n(263),s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=n,t.exports=s},function(t,e,n){var r=n(74);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){n=n(28)(Object,"create"),t.exports=n},function(t,e,n){var r=n(277);t.exports=function(t,e){return t=t.__data__,r(e)?t["string"==typeof e?"string":"hash"]:t.map}},function(t,e,n){var r=n(43),o=n(32);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e=e||Array(r);++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(18),o=Object.create;function i(){}t.exports=function(t){return r(t)?o?o(t):(i.prototype=t,t=new i,i.prototype=void 0,t):{}}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(361).EOL,i=n(48),a={AfterAtRule:"afterAtRule",AfterBlockBegins:"afterBlockBegins",AfterBlockEnds:"afterBlockEnds",AfterComment:"afterComment",AfterProperty:"afterProperty",AfterRuleBegins:"afterRuleBegins",AfterRuleEnds:"afterRuleEnds",BeforeBlockEnds:"beforeBlockEnds",BetweenSelectors:"betweenSelectors"},s={CarriageReturnLineFeed:"\r\n",LineFeed:"\n",System:o},l={AroundSelectorRelation:"aroundSelectorRelation",BeforeBlockBegins:"beforeBlockBegins",BeforeValue:"beforeValue"},c={breaks:u(!1),breakWith:s.System,indentBy:0,indentWith:" ",spaces:p(!1),wrapAt:!1,semicolonAfterLastProperty:!1};function u(t){var e={};return e[a.AfterAtRule]=t,e[a.AfterBlockBegins]=t,e[a.AfterBlockEnds]=t,e[a.AfterComment]=t,e[a.AfterProperty]=t,e[a.AfterRuleBegins]=t,e[a.AfterRuleEnds]=t,e[a.BeforeBlockEnds]=t,e[a.BetweenSelectors]=t,e}function p(t){var e={};return e[l.AroundSelectorRelation]=t,e[l.BeforeBlockBegins]=t,e[l.BeforeValue]=t,e}function f(t){switch(t){case"windows":case"crlf":case s.CarriageReturnLineFeed:return s.CarriageReturnLineFeed;case"unix":case"lf":case s.LineFeed:return s.LineFeed;default:return o}}function d(t){switch(t){case"space":return" ";case"tab":return"\t";default:return t}}t.exports={Breaks:a,Spaces:l,formatFrom:function(t){return void 0!==t&&!1!==t&&("object"==r(t)&&"breakWith"in t&&(t=i(t,{breakWith:f(t.breakWith)})),"object"==r(t)&&"indentBy"in t&&(t=i(t,{indentBy:parseInt(t.indentBy)})),"object"==r(t)&&"indentWith"in t&&(t=i(t,{indentWith:d(t.indentWith)})),"object"==r(t)||"object"==r(t)?i(c,t):"string"==typeof t&&"beautify"==t?i(c,{breaks:u(!0),indentBy:2,spaces:p(!0)}):"string"==typeof t&&"keep-breaks"==t?i(c,{breaks:{afterAtRule:!0,afterBlockBegins:!0,afterBlockEnds:!0,afterComment:!0,afterRuleEnds:!0,beforeBlockEnds:!0}}):"string"==typeof t?i(c,function(t){return t.split(";").reduce((function(t,e){e=(n=e.split(":"))[0];var n=n[1];return"breaks"==e||"spaces"==e?t[e]=function(t){return t.split(",").reduce((function(t,e){e=(n=e.split("="))[0];var n=n[1];return t[e]=function(t){switch(t){case"false":case"off":return!1;case"true":case"on":return!0;default:return t}}(n),t}),{})}(n):"indentBy"==e||"wrapAt"==e?t[e]=parseInt(n):"indentWith"==e?t[e]=d(n):"breakWith"==e&&(t[e]=f(n)),t}),{})}(t)):c)}}},function(t,e){t.exports=function(t){var e=t[0],n=t[1];return(t=t[2])?t+":"+e+":"+n:e+":"+n}},function(t,e,n){var r=n(15),o=n(123),i=/\/deep\//,a=/^::/,s=[":dir",":lang",":not",":nth-child",":nth-last-child",":nth-last-of-type",":nth-of-type"],l=/[>\+~]/,c=[":after",":before",":first-letter",":first-line",":lang"],u=["::after","::before","::first-letter","::first-line"],p="double-quote",f="single-quote",d="root";t.exports=function(t,e,n,h){for(var g,m=o(t,r.COMMA),v=0,y=m.length;v<y;v++)if(0===(g=m[v]).length||function(t){return i.test(t)}(g)||-1<g.indexOf(r.COLON)&&!function(t,e,n,o,i){return function(t,e,n){for(var o,i=0,a=t.length;i<a;i++)if(o=-1<(o=t[i]).indexOf(r.OPEN_ROUND_BRACKET)?o.substring(0,o.indexOf(r.OPEN_ROUND_BRACKET)):o,-1===e.indexOf(o)&&-1===n.indexOf(o))return;return 1}(e,n,o)&&function(t){for(var e,n,o,i=0,a=t.length;i<a;i++){if(e=(o=-1<(n=(e=t[i]).indexOf(r.OPEN_ROUND_BRACKET)))?e.substring(0,n):e,o&&-1==s.indexOf(e))return;if(!o&&-1<s.indexOf(e))return}return 1}(e)&&(e.length<2||!function(t,e){for(var n,o,i,a,s=0,l=0,c=e.length;l<c&&(n=e[l],o=e[l+1]);l++)if(i=t.indexOf(n,s),a=t.indexOf(n,i+1),i+n.length==(s=a)&&(i=-1<n.indexOf(r.OPEN_ROUND_BRACKET)?n.substring(0,n.indexOf(r.OPEN_ROUND_BRACKET)):n,a=-1<o.indexOf(r.OPEN_ROUND_BRACKET)?o.substring(0,o.indexOf(r.OPEN_ROUND_BRACKET)):o,":not"!=i||":not"!=a))return 1}(t,e))&&(e.length<2||i&&function(t){for(var e,n=0,r=0,o=t.length;r<o;r++)if(function(t){return a.test(t)}(e=t[r])?n+=-1<u.indexOf(e)?1:0:n+=-1<c.indexOf(e)?1:0,1<n)return;return 1}(e))}(g,function(t){for(var e,n,o,i,a=[],s=[],c=d,u=0,h=!1,g=!1,m=0,v=t.length;m<v;m++)e=t[m],i=!o&&l.test(e),n=c==p||c==f,o?s.push(e):e==r.DOUBLE_QUOTE&&c==d?(s.push(e),c=p):e==r.DOUBLE_QUOTE&&c==p?(s.push(e),c=d):e==r.SINGLE_QUOTE&&c==d?(s.push(e),c=f):e==r.SINGLE_QUOTE&&c==f?(s.push(e),c=d):n?s.push(e):e==r.OPEN_ROUND_BRACKET?(s.push(e),u++):e==r.CLOSE_ROUND_BRACKET&&1==u&&h?(s.push(e),a.push(s.join("")),u--,h=!(s=[])):e==r.CLOSE_ROUND_BRACKET?(s.push(e),u--):e==r.COLON&&0===u&&h&&!g?(a.push(s.join("")),(s=[]).push(e)):e!=r.COLON||0!==u||g?e==r.SPACE&&0===u&&h||i&&0===u&&h?(a.push(s.join("")),h=!(s=[])):s.push(e):((s=[]).push(e),h=!0),o=e==r.BACK_SLASH,g=e==r.COLON;return 0<s.length&&h&&a.push(s.join("")),a}(g),e,n,h))return!1;return!0}},function(t,e,n){var r=n(366),o=n(371),i=n(125),a=n(126),s=n(49).all,l=n(180),c=n(60),u=n(25).OptimizationLevel;t.exports=function t(e,n,p,f){var d,h,g,m=f.options.level[u.Two],v=s(e,!1,m.skipProperties);for(i(v,f.validator,f.warnings),h=0,g=v.length;h<g;h++)(d=v[h]).block&&t(d.value[0][1],n,p,f);p&&m.mergeIntoShorthands&&r(v,f.validator),n&&m.overrideProperties&&o(v,p,f.options.compatibility,f.validator),c(v,a),l(v)}},function(t,e,n){var r=n(49).single,o=n(10);function i(t){var e=r([o.PROPERTY,[o.PROPERTY_NAME,t.name]]);return e.important=t.important,e.hack=t.hack,e.unused=!1,e}t.exports={deep:function(t){for(var e=i(t),n=t.components.length-1;0<=n;n--){var r=i(t.components[n]);r.value=t.components[n].value.slice(0),e.components.unshift(r)}return e.dirty=!0,e.value=t.value.slice(0),e},shallow:i}},function(t,e,n){var r=n(186),o=n(377),i=/align\-items|box\-align|box\-pack|flex|justify/,a=/^border\-(top|right|bottom|left|color|style|width|radius)/;function s(t,e,n){var s=t[0],h=t[1],g=t[2],m=t[5],v=t[6],y=e[0],b=e[1],_=e[2];return t=e[5],e=e[6],!("font"==s&&"line-height"==y||"font"==y&&"line-height"==s||i.test(s)&&i.test(y)||g==_&&c(s)==c(y)&&l(s)^l(y)||"border"==g&&a.test(_)&&("border"==s||s==_||h!=b&&u(s,y))||"border"==_&&a.test(g)&&("border"==y||y==g||h!=b&&u(s,y))||"border"==g&&"border"==_&&s!=y&&(p(s)&&f(y)||f(s)&&p(y))||!(g!=_||s==y&&g==_&&(h==b||function(t,e){return l(t)&&l(e)&&t.split("-")[1]!=e.split("-")[2]}(h,b))||s!=y&&g==_&&s!=g&&y!=_||s!=y&&g==_&&h==b)&&(!e||!v||d(g)||d(_)||r(t,m,!1))&&o(m,t,n))}function l(t){return/^\-(?:moz|webkit|ms|o)\-/.test(t)}function c(t){return t.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function u(t,e){return t.split("-").pop()==e.split("-").pop()}function p(t){return"border-top"==t||"border-right"==t||"border-bottom"==t||"border-left"==t}function f(t){return"border-color"==t||"border-style"==t||"border-width"==t}function d(t){return"font"==t||"line-height"==t||"list-style"==t}t.exports={canReorder:function(t,e,n){for(var r=e.length-1;0<=r;r--)for(var o=t.length-1;0<=o;o--)if(!s(t[o],e[r],n))return!1;return!0},canReorderSingle:s}},function(t,e,n){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,o)}));default:for(i=new Array(s-1),a=0;a<i.length;)i[a++]=arguments[a];return e.nextTick((function(){t.apply(null,i)}))}}}:t.exports=e}).call(this,n(14))},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){var n=/^\/\//;t.exports=function(t){return!n.test(t)}},function(t,e,n){var r=n(79),o=n(18);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=r(t.prototype),i=t.apply(n,e);return o(i)?i:n}}},function(t,e){t.exports=function(t){return null==t}},function(t,e){function n(t){throw(t=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},(t.exports=n.resolve=n).id=91},function(t,e,n){"use strict";(r=d={}).Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype";var r,o=d.Root,i=d.Text,a=d.Directive,s=d.Comment,l=d.Script,c=d.Style,u=d.Tag,p=d.CDATA,f=d.Doctype,d=(new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(t){return t.charCodeAt(0)}))),new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(t){return t.charCodeAt(0)}))));function h(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),r=String.fromCodePoint,(r={})[r.NUM=35]="NUM",r[r.SEMI=59]="SEMI",r[r.ZERO=48]="ZERO",r[r.NINE=57]="NINE",r[r.LOWER_A=97]="LOWER_A",r[r.LOWER_F=102]="LOWER_F",r[r.LOWER_X=120]="LOWER_X",r[r.To_LOWER_BIT=32]="To_LOWER_BIT",(r={})[r.VALUE_LENGTH=49152]="VALUE_LENGTH",r[r.BRANCH_LENGTH=16256]="BRANCH_LENGTH",r[r.JUMP_TABLE=127]="JUMP_TABLE",new Map(h([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(h([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(h([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(h([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var g=/["&'<>$\x80-\uFFFF]/g,m=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),v=null!=String.prototype.codePointAt?function(t,e){return t.codePointAt(e)}:function(t,e){return 55296==(64512&t.charCodeAt(e))?1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e)};function y(t){for(var e="",n=0;null!==(i=g.exec(t));){var r=i.index,o=t.charCodeAt(r),i=m.get(o);n=void 0!==i?(e+=t.substring(n,r)+i,r+1):(e+="".concat(t.substring(n,r),"&#x").concat(v(t,r).toString(16),";"),g.lastIndex+=Number(55296==(64512&o)))}return e+t.substr(n)}function b(t,e){return function(n){for(var r,o=0,i="";r=t.exec(n);)o!==r.index&&(i+=n.substring(o,r.index)),i+=e.get(r[0].charCodeAt(0)),o=r.index+1;return i+n.substring(o)}}b(/[&<>'"]/g,m);var _=b(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),w=b(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));(d={})[d.XML=0]="XML",d[d.HTML=1]="HTML",(d={})[d.Legacy=0]="Legacy",d[d.Strict=1]="Strict",(d={})[d.UTF8=0]="UTF8",d[d.ASCII=1]="ASCII",d[d.Extensive=2]="Extensive",d[d.Attribute=3]="Attribute",d[d.Text=4]="Text";var E=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(t){return[t.toLowerCase(),t]}))),x=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(t){return[t.toLowerCase(),t]})));function T(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var A=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function O(t){return t.replace(/"/g,""")}var S=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);e.a=function t(e){for(var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=("length"in e?e:[e]),d="",h=0;h<r.length;h++)d+=function(e,n){switch(e.type){case o:return t(e.children,n);case f:case a:return function(t){return"<".concat(t.data,">")}(e);case s:return function(t){return"\x3c!--".concat(t.data,"--\x3e")}(e);case p:return function(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}(e);case l:case c:case u:return function(e,n){"foreign"===n.xmlMode&&(e.name=null!==(o=E.get(e.name))&&void 0!==o?o:e.name,e.parent&&k.has(e.parent.name)&&(n=C(C({},n),{},{xmlMode:!1}))),!n.xmlMode&&P.has(e.name)&&(n=C(C({},n),{},{xmlMode:"foreign"}));var r="<".concat(e.name),o=function(t,e){var n;if(t){var r=!1===(null!==(n=e.encodeEntities)&&void 0!==n?n:e.decodeEntities)?O:e.xmlMode||"utf8"!==e.encodeEntities?y:_;return Object.keys(t).map((function(n){var o,i=null!==(o=t[n])&&void 0!==o?o:"";return"foreign"===e.xmlMode&&(n=null!==(o=x.get(n))&&void 0!==o?o:n),e.emptyAttrs||e.xmlMode||""!==i?"".concat(n,'="').concat(r(i),'"'):n})).join(" ")}}(e.attribs,n);return o&&(r+=" ".concat(o)),0===e.children.length&&(n.xmlMode?!1!==n.selfClosingTags:n.selfClosingTags&&S.has(e.name))?(n.xmlMode||(r+=" "),r+="/>"):(r+=">",0<e.children.length&&(r+=t(e.children,n)),!n.xmlMode&&S.has(e.name)||(r+="</".concat(e.name,">"))),r}(e,n);case i:return function(t,e){var n,r=t.data||"";return!1===(null!==(n=e.encodeEntities)&&void 0!==n?n:e.decodeEntities)||!e.xmlMode&&t.parent&&A.has(t.parent.name)?r:(e.xmlMode||"utf8"!==e.encodeEntities?y:w)(r)}(e,n)}}(r[h],n);return d};var k=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),P=new Set(["svg","math"])},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,n(e,r)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(67),o=n(239),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e,n=[];for(e in Object(t))i.call(t,e)&&"constructor"!=e&&n.push(e);return n}},function(t,e,n){n=n(28)(n(16),"Map"),t.exports=n},function(t,e){t.exports=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(251),o=n(98);r=(n=(n=n(99))&&n.isTypedArray)?o(n):r,t.exports=r},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(150),i="object"==r(e)&&e&&!e.nodeType&&e,a=i&&"object"==r(t)&&t&&!t.nodeType&&t,s=a&&a.exports===i&&o.process;o=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}(),t.exports=o}).call(this,n(54)(t))},function(t,e,n){var r=n(72),o=n(264),i=n(265),a=n(266),s=n(267);function l(t){t=this.__data__=new r(t),this.size=t.size}n=n(268),l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=n,t.exports=l},function(t,e,n){var r=n(269),o=n(276),i=n(278),a=n(279);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}n=n(280),s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=n,t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(163),o=(n=n(164),Object.prototype.propertyIsEnumerable),i=Object.getOwnPropertySymbols;n=i?function(t){return null==t?[]:(t=Object(t),r(i(t),(function(e){return o.call(t,e)})))}:n,t.exports=n},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(12),i=n(44),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(o(t))return!1;var n=r(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||s.test(t)||!a.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(100),o=n(71),i=n(106),a=n(170),s=n(302),l=n(305),c=n(78),u=n(306),p=n(307),f=n(161),d=n(110),h=n(38),g=n(308),m=n(309),v=n(314),y=n(12),b=n(70),_=n(315),w=n(18),E=n(317),x=n(31),T=n(108),C="[object Arguments]",A="[object Function]",O="[object Object]",S={};S[C]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S[O]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S[A]=S["[object WeakMap]"]=!1,t.exports=function t(e,n,k,P,j,N){var L,D=1&n,I=2&n,R=4&n;if(void 0!==(L=k?j?k(e,P,j,N):k(e):L))return L;if(!w(e))return e;var M=y(e);if(M){if(L=g(e),!D)return c(e,L)}else{var B=h(e);if(P=B==A||"[object GeneratorFunction]"==B,b(e))return l(e,D);if(B==O||B==C||P&&!j){if(L=I||P?{}:v(e),!D)return I?p(e,s(L,e)):u(e,a(L,e))}else{if(!S[B])return j?e:{};L=m(e,B,D)}}if(D=(N=N||new r).get(e))return D;N.set(e,L),E(e)?e.forEach((function(r){L.add(t(r,n,k,r,e,N))})):_(e)&&e.forEach((function(r,o){L.set(o,t(r,n,k,o,e,N))}));var F=M?void 0:(R?I?d:f:I?T:x)(e);return o(F||e,(function(r,o){F&&(r=e[o=r]),i(L,o,t(r,n,k,o,e,N))})),L}},function(t,e,n){var r=n(107),o=n(74),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(169);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(155),o=n(303),i=n(30);t.exports=function(t){return i(t)?r(t,!0):o(t)}},function(t,e,n){n=n(149)(Object.getPrototypeOf,Object),t.exports=n},function(t,e,n){var r=n(162),o=n(171),i=n(108);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(160);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(324),o=n(327),i=n(173);t.exports=function(t){return i(o(t,void 0,r),t+"")}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(163),o=n(331),i=n(20),a=n(12);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},function(t,e){t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e,n){"use strict";var r=n(343),o=n(346);n=n(348),e.Selector=o,e.Property=n,e.extract=function(t){for(var e=0,n=[],r="",o=0,i=t.length;o<i;o++){var a=t.charAt(o);e?("]"!==a&&")"!==a||e--,r+=a):","===a?(n.push(r),r=""):("["!==a&&"("!==a||e++,(r.length||","!==a&&"\n"!==a&&" "!==a)&&(r+=a))}return r.length&&n.push(r),n},e.parseCSS=function(t){for(var e=void 0!==(t=r.parse(t,{position:!0,comments:!0})).stylesheet&&t.stylesheet.rules?t.stylesheet.rules:[],n=[],o=0,i=e.length;o<i;o++)if("rule"==e[o].type)for(var a=e[o],s=a.selectors,l=0,c=s.length;l<c;l++)n.push([s[l],a.declarations]);return n},e.getPreservedText=function(t,e,n){for(var o=void 0!==(t=r.parse(t,{position:!0,comments:!0})).stylesheet&&t.stylesheet.rules?t.stylesheet.rules:[],i=[],a=o.length-1;0<=a;a--)(e.fontFaces&&"font-face"===o[a].type||e.mediaQueries&&"media"===o[a].type||e.keyFrames&&"keyframes"===o[a].type||e.pseudos&&o[a].selectors&&this.matchesPseudo(o[a].selectors[0],n))&&i.unshift(r.stringify({stylesheet:{rules:[o[a]]}},{comments:!1,indentation:" "})),o[a].position.start;return 0!==i.length&&"\n"+i.join("\n")+"\n"},e.normalizeLineEndings=function(t){return t.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n")},e.matchesPseudo=function(t,e){return e.find((function(e){return-1<t.indexOf(e)}))},e.compareFunc=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return t.length-e.length},e.compare=function(t,n){return 1==e.compareFunc(t,n)?t:n},e.getDefaultOptions=function(t){return(t=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},t)).webResources=t.webResources||{},t}},function(t,e,n){(function(e){t.exports=function(t){return function(t){var n=[].slice.call(arguments,1);n.unshift("["+t+"]"),e.stderr.write(n.join(" ")+"\n")}.bind(null,t)}}).call(this,n(14))},function(t,e,n){var r;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var n;!function(){"use strict";var t=[function(t,e,n){var r=n(1).Beautifier,o=n(5).Options;t.exports=function(t,e){return new r(t,e).beautify()},t.exports.defaultOptions=function(){return new o}},function(t,e,n){var r=n(2).Output,o=n(3).Token,i=n(4),a=n(5).Options,s=n(7).Tokenizer,l=n(7).line_starters,c=n(7).positionable_operators,u=n(7).TOKEN;function p(t,e){return-1!==e.indexOf(t)}function f(t,e){return t&&t.type===u.RESERVED&&t.text===e}function d(t,e){return t&&t.type===u.RESERVED&&p(t.text,e)}var h=["case","return","do","if","throw","else","await","break","continue","async"],g=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].replace(/-/g,"_")]=t[n];return e}(["before-newline","after-newline","preserve-newline"]),m=[g.before_newline,g.preserve_newline];function v(t,e){e.multiline_frame||"ForInitializer"===e.mode||"Conditional"===e.mode||t.remove_indent(e.start_line_index)}function y(t){return"ArrayLiteral"===t}function b(t){return p(t,["Expression","ForInitializer","Conditional"])}function _(t,e){e=e||{},this._source_text=t||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new a(e)}_.prototype.create_flags=function(t,e){var n=0;return t&&(n=t.indentation_level,!this._output.just_added_newline()&&t.line_indent_level>n&&(n=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new o(u.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,alignment:0,line_indent_level:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},_.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];return this._last_last_text="",this._output=new r(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode("BlockStatement"),e=new s(t,this._options),this._tokens=e.tokenize(),t},_.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._reset(this._source_text),e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&i.lineBreak.test(t||"")&&(e=t.match(i.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(e)},_.prototype.handle_token=function(t,e){t.type===u.START_EXPR?this.handle_start_expr(t):t.type===u.END_EXPR?this.handle_end_expr(t):t.type===u.START_BLOCK?this.handle_start_block(t):t.type===u.END_BLOCK?this.handle_end_block(t):t.type===u.WORD||t.type===u.RESERVED?this.handle_word(t):t.type===u.SEMICOLON?this.handle_semicolon(t):t.type===u.STRING?this.handle_string(t):t.type===u.EQUALS?this.handle_equals(t):t.type===u.OPERATOR?this.handle_operator(t):t.type===u.COMMA?this.handle_comma(t):t.type===u.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===u.COMMENT?this.handle_comment(t,e):t.type===u.DOT?this.handle_dot(t):t.type===u.EOF?this.handle_eof(t):(t.type,u.UNKNOWN,this.handle_unknown(t,e))},_.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,r=this._options.keep_array_indentation&&y(this._flags.mode);if(t.comments_before)for(var o=t.comments_before.next();o;)this.handle_whitespace_and_comments(o,e),this.handle_token(o,e),o=t.comments_before.next();if(r)for(var i=0;i<n;i+=1)this.print_newline(0<i,e);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&1<n){this.print_newline(!1,e);for(var a=1;a<n;a+=1)this.print_newline(!0,e)}};var w=["async","break","continue","return","throw","yield"];_.prototype.allow_wrap_or_preserved_newline=function(t,e){e=void 0!==e&&e,this._output.just_added_newline()||(e=this._options.preserve_newlines&&t.newlines||e,(p(this._flags.last_token.text,c)||p(t.text,c))&&(t=p(this._flags.last_token.text,c)&&p(this._options.operator_position,m)||p(t.text,c),e=e&&t),e?this.print_newline(!1,!0):this._options.wrap_line_length&&(d(this._flags.last_token,w)||this._output.set_wrap_point()))},_.prototype.print_newline=function(t,e){if(!e&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==u.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var n=this._tokens.peek();!("Statement"!==this._flags.mode||this._flags.if_block&&f(n,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(t)&&(this._flags.multiline_frame=!0)},_.prototype.print_token_line_indentation=function(t){this._output.just_added_newline()&&(this._options.keep_array_indentation&&t.newlines&&("["===t.text||y(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(t.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))},_.prototype.print_token=function(t){var e;this._output.raw?this._output.add_raw_token(t):(this._options.comma_first&&t.previous&&t.previous.type===u.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()&&(e=this._output.previous_line.pop(),this._output.previous_line.is_empty()&&(this._output.previous_line.push(e),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(t),this._output.add_token(","),this._output.space_before_token=!0),this.print_token_line_indentation(t),this._output.non_breaking_space=!0,this._output.add_token(t.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0))},_.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},_.prototype.deindent=function(){0<this._flags.indentation_level&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(--this._flags.indentation_level,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},_.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},_.prototype.restore_mode=function(){0<this._flag_store.length&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),"Statement"===this._previous_flags.mode&&v(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},_.prototype.start_of_object_property=function(){return"ObjectLiteral"===this._flags.parent.mode&&"Statement"===this._flags.mode&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"]))},_.prototype.start_of_statement=function(t){return!!(d(this._flags.last_token,["var","let","const"])&&t.type===u.WORD||f(this._flags.last_token,"do")||("ObjectLiteral"!==this._flags.parent.mode||"Statement"!==this._flags.mode)&&d(this._flags.last_token,w)&&!t.newlines||f(this._flags.last_token,"else")&&(!f(t,"if")||t.comments_before)||this._flags.last_token.type===u.END_EXPR&&("ForInitializer"===this._previous_flags.mode||"Conditional"===this._previous_flags.mode)||this._flags.last_token.type===u.WORD&&"BlockStatement"===this._flags.mode&&!this._flags.in_case&&"--"!==t.text&&"++"!==t.text&&"function"!==this._last_last_text&&t.type!==u.WORD&&t.type!==u.RESERVED||"ObjectLiteral"===this._flags.mode&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"])))&&(this.set_mode("Statement"),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,d(t,["do","for","if","while"])),!0)},_.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e,n,r="Expression";if("["===t.text){if(this._flags.last_token.type===u.WORD||")"===this._flags.last_token.text)return d(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(r),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));r="ArrayLiteral",y(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()),p(this._flags.last_token.type,[u.START_EXPR,u.END_EXPR,u.WORD,u.OPERATOR,u.DOT])||(this._output.space_before_token=!0)}else this._flags.last_token.type===u.RESERVED?"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,r="ForInitializer"):p(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,r="Conditional"):p(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:!p(this._flags.last_token.text,l)&&"catch"!==this._flags.last_token.text||(this._output.space_before_token=!0):this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):this._flags.last_token.type===u.WORD?(this._output.space_before_token=!1,e=this._tokens.peek(-3),this._options.space_after_named_function&&e&&(n=this._tokens.peek(-4),d(e,["async","function"])||"*"===e.text&&d(n,["async","function"])?this._output.space_before_token=!0:"ObjectLiteral"===this._flags.mode&&("{"!==e.text&&","!==e.text&&("*"!==e.text||"{"!==n.text&&","!==n.text)||(this._output.space_before_token=!0)))):this.allow_wrap_or_preserved_newline(t),(this._flags.last_token.type===u.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(p(this._last_last_text,["function","yield"])||"ObjectLiteral"===this._flags.mode&&p(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===u.START_BLOCK?this.print_newline():this._flags.last_token.type!==u.END_EXPR&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==u.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(r),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},_.prototype.handle_end_expr=function(t){for(;"Statement"===this._flags.mode;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&y(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==u.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(t),this.restore_mode(),v(this._output,this._previous_flags),this._flags.do_while&&"Conditional"===this._previous_flags.mode&&(this._previous_flags.mode="Expression",this._flags.do_block=!1,this._flags.do_while=!1)},_.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),n=this._tokens.peek(1);if("switch"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR?(this.set_mode("BlockStatement"),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode("BlockStatement"):n&&(p(n.text,[":",","])&&p(e.type,[u.STRING,u.WORD,u.RESERVED])||p(e.text,["get","set","..."])&&p(n.type,[u.WORD,u.RESERVED]))?p(this._last_last_text,["class","interface"])?this.set_mode("BlockStatement"):this.set_mode("ObjectLiteral"):this._flags.last_token.type===u.OPERATOR&&"=>"===this._flags.last_token.text||!p(this._flags.last_token.type,[u.EQUALS,u.START_EXPR,u.COMMA,u.OPERATOR])&&!d(this._flags.last_token,["return","throw","import","default"])?this.set_mode("BlockStatement"):this.set_mode("ObjectLiteral"),e=(n=!e.comments_before&&"}"===e.text)&&"function"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR,this._options.brace_preserve_inline){var r=0,o=null;this._flags.inline_frame=!0;do{if((o=this._tokens.peek((r+=1)-1)).newlines){this._flags.inline_frame=!1;break}}while(o.type!==u.EOF&&(o.type!==u.END_BLOCK||o.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==u.OPERATOR&&(e||this._flags.last_token.type===u.EQUALS||d(this._flags.last_token,h)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!y(this._previous_flags.mode)||this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.COMMA||(this._flags.last_token.type!==u.COMMA&&!this._options.space_in_paren||(this._output.space_before_token=!0),(this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==u.OPERATOR&&this._flags.last_token.type!==u.START_EXPR&&(this._flags.last_token.type!==u.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),n||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},_.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);"Statement"===this._flags.mode;)this.restore_mode();var e=this._flags.last_token.type===u.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(y(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(t)},_.prototype.handle_word=function(t){if(t.type===u.RESERVED&&(p(t.text,["set","get"])&&"ObjectLiteral"!==this._flags.mode||"import"===t.text&&"("===this._tokens.peek().text||p(t.text,["as","from"])&&!this._flags.import_block||"ObjectLiteral"===this._flags.mode&&":"===this._tokens.peek().text)&&(t.type=u.WORD),this.start_of_statement(t)?d(this._flags.last_token,["var","let","const"])&&t.type===u.WORD&&(this._flags.declaration_statement=!0):!t.newlines||b(this._flags.mode)||this._flags.last_token.type===u.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===u.EQUALS||!this._options.preserve_newlines&&d(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(f(t,"while"))return this._output.space_before_token=!0,this.print_token(t),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&&f(t,"else"))this._flags.else_block=!0;else{for(;"Statement"===this._flags.mode;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&d(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==u.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.EQUALS&&this._flags.last_token.type!==u.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),f(t,"function"))return(p(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!p(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==u.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,w)||f(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===u.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:!this._flags.multiline_frame&&(b(this._flags.mode)||y(this._flags.mode))||this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var e="NONE";this._flags.last_token.type===u.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":!d(t,["else","catch","finally","from"])||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?e="NEWLINE":(e="SPACE",this._output.space_before_token=!0):this._flags.last_token.type===u.SEMICOLON&&"BlockStatement"===this._flags.mode?e="NEWLINE":this._flags.last_token.type===u.SEMICOLON&&b(this._flags.mode)?e="SPACE":this._flags.last_token.type===u.STRING?e="NEWLINE":this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||"*"===this._flags.last_token.text&&(p(this._last_last_text,["function","yield"])||"ObjectLiteral"===this._flags.mode&&p(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===u.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===u.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),d(t,l)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),d(t,["else","catch","finally"])?(this._flags.last_token.type!==u.END_BLOCK||"BlockStatement"!==this._previous_flags.mode||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.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"===e?d(this._flags.last_token,h)||"declare"===this._flags.last_token.text&&d(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==u.END_EXPR?this._flags.last_token.type===u.START_EXPR&&d(t,["var","let","const"])||":"===this._flags.last_token.text||(f(t,"if")&&f(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(t,l)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&y(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===e&&(this._output.space_before_token=!0),!t.previous||t.previous.type!==u.WORD&&t.previous.type!==u.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===u.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&f(t,"from")&&(this._flags.import_block=!1))},_.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);for(var e=this._tokens.peek();!("Statement"!==this._flags.mode||this._flags.if_block&&f(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},_.prototype.handle_string=function(t){t.text.startsWith("`")&&0===t.newlines&&""===t.whitespace_before&&(")"===t.previous.text||this._flags.last_token.type===u.WORD)||(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR||this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):!t.text.startsWith("`")||this._flags.last_token.type!==u.END_EXPR||"]"!==t.previous.text&&")"!==t.previous.text||0!==t.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(t)},_.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},_.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(b(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(t)):"ObjectLiteral"===this._flags.mode||"Statement"===this._flags.mode&&"ObjectLiteral"===this._flags.parent.mode?("Statement"===this._flags.mode&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},_.prototype.handle_operator=function(t){var e="*"===t.text&&(d(this._flags.last_token,["function","yield"])||p(this._flags.last_token.type,[u.START_BLOCK,u.COMMA,u.END_BLOCK,u.SEMICOLON])),n=p(t.text,["-","+"])&&(p(this._flags.last_token.type,[u.START_BLOCK,u.START_EXPR,u.EQUALS,u.OPERATOR])||p(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(t)||this.handle_whitespace_and_comments(t,!e),d(this._flags.last_token,h))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==u.DOT)if("::"!==t.text){if(this._flags.last_token.type===u.OPERATOR&&p(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==u.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var r=!0,o=!0,i=!1;if(":"===t.text?0===this._flags.ternary_depth?r=!1:(--this._flags.ternary_depth,i=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&p(t.text,c)){var a=":"===t.text,s=a&&i,f=a&&!i;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!f,this.print_token(t),a&&!s||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case g.after_newline:return this._output.space_before_token=!0,!a||s?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case g.preserve_newline:return f||this.allow_wrap_or_preserved_newline(t),r=!(this._output.just_added_newline()||f),this._output.space_before_token=r,this.print_token(t),void(this._output.space_before_token=!0)}}e?(this.allow_wrap_or_preserved_newline(t),r=!1,o=(e=this._tokens.peek())&&p(e.type,[u.WORD,u.RESERVED])):"..."===t.text?(this.allow_wrap_or_preserved_newline(t),r=this._flags.last_token.type===u.START_BLOCK,o=!1):(p(t.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR||this.allow_wrap_or_preserved_newline(t),o=r=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&b(this._flags.mode)&&(r=!0),this._flags.last_token.type===u.RESERVED?r=!0:this._flags.last_token.type===u.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===u.OPERATOR&&(r=p(t.text,["--","-","++","+"])&&p(this._flags.last_token.text,["--","-","++","+"]),p(t.text,["+","-"])&&p(this._flags.last_token.text,["--","++"])&&(o=!0)),("BlockStatement"!==this._flags.mode||this._flags.inline_frame)&&"Statement"!==this._flags.mode||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()),this._output.space_before_token=this._output.space_before_token||r,this.print_token(t),this._output.space_before_token=o}else this.print_token(t);else this.print_token(t)},_.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):void(i.newline.test(t.text)||t.newlines?this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0))},_.prototype.print_block_commment=function(t,e){var n,r,o,a=function(t){for(var e=[],n=(t=t.replace(i.allLineBreaks,"\n")).indexOf("\n");-1!==n;)e.push(t.substring(0,n)),n=(t=t.substring(n+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),s=t.whitespace_before,l=s.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(a[0]),this.print_newline(!1,e),1<a.length){for(r=function(t,e){for(var n=0;n<t.length;n++)if("*"!==t[n].trim().charAt(0))return!1;return!0}(a=a.slice(1)),o=function(t,e){for(var n,r=0,o=t.length;r<o;r++)if((n=t[r])&&0!==n.indexOf(e))return!1;return!0}(a,s),r&&(this._flags.alignment=1),n=0;n<a.length;n++)r?(this.print_token_line_indentation(t),this._output.add_token(function(t){return t.replace(/^\s+/g,"")}(a[n]))):o&&a[n]?(this.print_token_line_indentation(t),this._output.add_token(a[n].substring(l))):(this._output.current_line.set_indent(-1),this._output.add_token(a[n])),this.print_newline(!1,e);this._flags.alignment=0}},_.prototype.handle_comment=function(t,e){t.newlines?this.print_newline(!1,e):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(t),this.print_newline(!1,e)},_.prototype.handle_dot=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t,!0),d(this._flags.last_token,h)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(t,")"===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(t)},_.prototype.handle_unknown=function(t,e){this.print_token(t),"\n"===t.text[t.text.length-1]&&this.print_newline(!1,e)},_.prototype.handle_eof=function(t){for(;"Statement"===this._flags.mode;)this.restore_mode();this.handle_whitespace_and_comments(t)},t.exports.Beautifier=_},function(t){function e(t){this.__parent=t,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 n(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",0<t.indent_level&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function r(t,r){this.__indent_cache=new n(t,r),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.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()}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(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;0<=e;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||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 t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),--t.__character_count),!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(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){0<this.__indent_count&&(--this.__indent_count,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){0<this.__wrap_point_indent_count&&--this.__wrap_point_indent_count},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),--this.__character_count},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return t<0&&(n=0),(n+=t*this.__indent_size)+(e||0)},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t,e=this.__cache.length,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},r.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},r.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();return e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline(),e=this.__lines.join("\n"),"\n"!==t?e.replace(/[\n]/g,t):e},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(t,e){return this.next_line.set_indent(t=t||0,e=e||0),1<this.__lines.length?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.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(" "))},r.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&1<this.__lines.length&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=1<this.__lines.length?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(t,n){for(var r=this.__lines.length-2;0<=r;){var o=this.__lines[r];if(o.is_empty())break;if(0!==o.item(0).indexOf(t)&&o.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},t.exports.Output=r},function(t){t.exports.Token=function(t,e,n,r){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},function(t,e){var n="\\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",r="(?:\\\\u[0-9a-fA-F]{4}|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+n+"])";e.identifier=new RegExp(r+"(?:\\\\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(r),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a"+n+"\\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])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(t,e,n){var r=n(6).Options,o=["before-newline","after-newline","preserve-newline"];function i(t){r.call(this,t,"js"),"expand-strict"===(t=this.raw_options.brace_style||null)?this.raw_options.brace_style="expand":"collapse-preserve-inline"===t?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 e=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<e.length;n++)"preserve-inline"===e[n]?this.brace_preserve_inline=!0:this.brace_style=e[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",o),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}i.prototype=new r,t.exports.Options=i},function(t){function e(t,e){this.raw_options=n(t,e),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 n(t,e){var n,o={};for(n in t=r(t))n!==e&&(o[n]=t[n]);if(e&&t[e])for(n in t[e])o[n]=t[e][n];return o}function r(t){var e,n={};for(e in t)n[e.replace(/-/g,"_")]=t[e];return n}e.prototype._get_array=function(t,e){return e=e||[],"object"===o(t=this.raw_options[t])?null!==t&&"function"==typeof t.concat&&(e=t.concat()):"string"==typeof t&&(e=t.split(/[^a-zA-Z0-9_\/\-]+/)),e},e.prototype._get_boolean=function(t,e){return void 0===(t=this.raw_options[t])?!!e:!!t},e.prototype._get_characters=function(t,e){return e=e||"","string"==typeof(t=this.raw_options[t])?t.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t"):e},e.prototype._get_number=function(t,e){return t=this.raw_options[t],e=parseInt(e,10),isNaN(e)&&(e=0),t=parseInt(t,10),isNaN(t)?e:t},e.prototype._get_selection=function(t,e,n){if(1!==(n=this._get_selection_list(t,e,n)).length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");if(n=this._get_array(t,n),!this._is_valid_selection(n,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=r,t.exports.mergeOpts=n},function(t,e,n){var r=n(8).InputScanner,o=n(9).Tokenizer,i=n(9).TOKEN,a=n(13).Directives,s=n(4),l=n(12).Pattern,c=n(14).TemplatablePattern;function u(t,e){return-1!==e.indexOf(t)}var p={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:i.START,RAW:i.RAW,EOF:i.EOF},f=new a(/\/\*/,/\*\//),d=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,h=/[0-9]/,g=/[^\d\.]/;n=">>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),i=(i="\\?\\.(?!\\d) "+(i=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |").replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")).replace(/ /g,"|");var m,v=new RegExp(i),y=(i=(a="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",")).concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),new RegExp("^(?:"+i.join("|")+")$"));((i=function(t,e){o.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source),t=new l(this._input),e=new c(this._input).read_options(this._options),this.__patterns={template:e,identifier:e.starting_with(s.identifier).matching(s.identifierMatch),number:t.matching(d),punct:t.matching(v),comment:t.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:t.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:t.matching(/<!--/),html_comment_end:t.matching(/-->/),include:t.starting_with(/#include/).until_after(s.lineBreak),shebang:t.starting_with(/#!/).until_after(s.lineBreak),xml:t.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\]|)(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:e.until(/['\\\n\r\u2028\u2029]/),double_quote:e.until(/["\\\n\r\u2028\u2029]/),template_text:e.until(/[`\\$]/),template_expression:e.until(/[`}\\]/)}}).prototype=new o)._is_comment=function(t){return t.type===p.COMMENT||t.type===p.BLOCK_COMMENT||t.type===p.UNKNOWN},i.prototype._is_opening=function(t){return t.type===p.START_BLOCK||t.type===p.START_EXPR},i.prototype._is_closing=function(t,e){return(t.type===p.END_BLOCK||t.type===p.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},i.prototype._reset=function(){m=!1},i.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(p.EOF,""):this._read_non_javascript(n)||this._read_string(n)||this._read_word(t)||this._read_singles(n)||this._read_comment(n)||this._read_regexp(n,t)||this._read_xml(n,t)||this._read_punctuation()||this._create_token(p.UNKNOWN,this._input.next())},i.prototype._read_word=function(t){var e=this.__patterns.identifier.read();return""!==e?(e=e.replace(s.allLineBreaks,"\n"),t.type!==p.DOT&&(t.type!==p.RESERVED||"set"!==t.text&&"get"!==t.text)&&y.test(e)?"in"===e||"of"===e?this._create_token(p.OPERATOR,e):this._create_token(p.RESERVED,e):this._create_token(p.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(p.WORD,e):void 0},i.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(p.START_EXPR,t):")"===t||"]"===t?e=this._create_token(p.END_EXPR,t):"{"===t?e=this._create_token(p.START_BLOCK,t):"}"===t?e=this._create_token(p.END_BLOCK,t):";"===t?e=this._create_token(p.SEMICOLON,t):"."===t&&g.test(this._input.peek(1))?e=this._create_token(p.DOT,t):","===t&&(e=this._create_token(p.COMMA,t)),e&&this._input.next(),e},i.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(p.EQUALS,t):"?."===t?this._create_token(p.DOT,t):this._create_token(p.OPERATOR,t)},i.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(p.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(p.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(h)){for(;n+=t=this._input.next(),this._input.hasNext()&&"#"!==t&&"="!==t;);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(p.WORD,n)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(s.newline);)e+=this._input.next();return m=!0,this._create_token(p.COMMENT,e)}}else if(m&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return m=!1,this._create_token(p.COMMENT,e);return null},i.prototype._read_comment=function(t){var e,n=null;return"/"===t&&(e="","*"===this._input.peek(1)?(e=this.__patterns.block_comment.read(),(t=f.get_directives(e))&&"start"===t.ignore&&(e+=f.readIgnored(this._input)),e=e.replace(s.allLineBreaks,"\n"),(n=this._create_token(p.BLOCK_COMMENT,e)).directives=t):"/"===this._input.peek(1)&&(e=this.__patterns.comment.read(),n=this._create_token(p.COMMENT,e))),n},i.prototype._read_string=function(t){if("`"!==t&&"'"!==t&&'"'!==t)return null;var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=function(t){for(var e,n="",o=new r(t),i=null;o.hasNext();)if((i=o.match(/([\s]|[^\\]|\\\\)+/g))&&(n+=i[0]),"\\"===o.peek()){if(o.next(),"x"===o.peek())i=o.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==o.peek()){n+="\\",o.hasNext()&&(n+=o.next());continue}i=o.match(/u([0-9A-Fa-f]{4})/g)}if(!i)return t;if(126<(e=parseInt(i[1],16))&&e<=255&&0===i[0].indexOf("x"))return t;n+=0<=e&&e<32?"\\"+i[0]:34===e||39===e||92===e?"\\"+String.fromCharCode(e):String.fromCharCode(e)}return n}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(s.allLineBreaks,"\n"),this._create_token(p.STRING,e)},i.prototype._allow_regexp_or_xml=function(t){return t.type===p.RESERVED&&u(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===p.END_EXPR&&")"===t.text&&t.opened.previous.type===p.RESERVED&&u(t.opened.previous.text,["if","while","for"])||u(t.type,[p.COMMENT,p.START_EXPR,p.START_BLOCK,p.START,p.END_BLOCK,p.OPERATOR,p.EQUALS,p.EOF,p.SEMICOLON,p.COMMA])},i.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var n=this._input.next(),r=!1,o=!1;this._input.hasNext()&&(r||o||this._input.peek()!==t)&&!this._input.testChar(s.newline);)n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?o=!0:"]"===this._input.peek()&&(o=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(s.identifier)),this._create_token(p.STRING,n)}return null},i.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n="",r=this.__patterns.xml.read_match();if(r){for(var o=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),i=0===o.indexOf("{"),a=0;r;){var l=!!r[1],c=r[2];if(!r[r.length-1]&&"![CDATA["!==c.slice(0,8)&&(c===o||i&&c.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--a:++a),n+=r[0],a<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(s.allLineBreaks,"\n"),this._create_token(p.STRING,n)}}return null},i.prototype._read_string_recursive=function(t,e,n){var r,o;"'"===t?o=this.__patterns.single_quote:'"'===t?o=this.__patterns.double_quote:"`"===t?o=this.__patterns.template_text:"}"===t&&(o=this.__patterns.template_expression);for(var i=o.read(),a="";this._input.hasNext();){if((a=this._input.next())===t||!e&&s.newline.test(a)){this._input.back();break}"\\"===a&&this._input.hasNext()?("x"===(r=this._input.peek())||"u"===r?this.has_char_escapes=!0:"\r"===r&&"\n"===this._input.peek(1)&&this._input.next(),a+=this._input.next()):n&&("${"===n&&"$"===a&&"{"===this._input.peek()&&(a+=this._input.next()),n===a&&(a+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(a+=this._input.next()))),i+=a+=o.read()}return i},t.exports.Tokenizer=i,t.exports.TOKEN=p,t.exports.positionable_operators=n.slice(),t.exports.line_starters=a.slice()},function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){0<this.__position&&--this.__position},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},n.prototype.peek=function(t){return t=t||0,0<=(t+=this.__position)&&t<this.__input_length?this.__input.charAt(t):null},n.prototype.__match=function(t,n){t.lastIndex=n;var r=t.exec(this.__input);return!r||e&&t.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(t,e){return e=e||0,0<=(e+=this.__position)&&e<this.__input_length&&!!this.__match(t,e)},n.prototype.testChar=function(t,e){return e=this.peek(e),t.lastIndex=0,null!==e&&t.test(e)},n.prototype.match=function(t){return(t=this.__match(t,this.__position))?this.__position+=t[0].length:t=null,t},n.prototype.read=function(t,e,n){var r,o="";return t&&(r=this.match(t))&&(o+=r[0]),!e||!r&&t||(o+=this.readUntil(e,n)),o},n.prototype.readUntil=function(t,e){var n=this.__position;return t.lastIndex=this.__position,(t=t.exec(this.__input))?(n=t.index,e&&(n+=t[0].length)):n=this.__input_length,t=this.__input.substring(this.__position,n),this.__position=n,t},n.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},n.prototype.get_regexp=function(t,n){var r=null;return n=n&&e?"y":"g","string"==typeof t&&""!==t?r=new RegExp(t,n):t&&(r=new RegExp(t.source,n)),r},n.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(t){var e=this.__position;return t=this.readUntilAfter(t),this.__position=e,t},n.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var r=n(8).InputScanner,o=n(3).Token,i=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"};(n=function(t,e){this._input=new r(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)}).prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new i,this._reset();for(var e=new o(s.START,""),n=null,r=[],a=new i;e.type!==s.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new i),t.parent=n,this._is_opening(t)?(r.push(n),n=t):n&&this._is_closing(t,n)&&((t.opened=n).closed=t,n=r.pop(),t.parent=n),(t.previous=e).next=t,this.__tokens.add(t),e=t}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},n.prototype._is_comment=function(t){return!1},n.prototype._is_opening=function(t){return!1},n.prototype._is_closing=function(t,e){return!1},n.prototype._create_token=function(t,e){return new o(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=n,t.exports.TOKEN=s},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}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 t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){return t=t||0,0<=(t+=this.__position)&&t<this.__tokens_length?this.__tokens[t]:null},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},t.exports.TokenStream=e},function(t,e,n){var r=n(12).Pattern;function o(t,e){r.call(this,t,e),e?this._line_regexp=this._input.get_regexp(e._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}(o.prototype=new r).__set_whitespace_patterns=function(t,e){this._match_pattern=this._input.get_regexp("["+(t+="\\t ")+(e+="\\n\\r")+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var t,e=this._input.read(this._match_pattern);return" "===e?this.whitespace_before_token=" ":e&&(t=this.__split(this._newline_regexp,e),this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]),e},o.prototype.matching=function(t,e){var n=this._create();return n.__set_whitespace_patterns(t,e),n._update(),n},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(t,e){for(var n=t.lastIndex=0,r=[],o=t.exec(e);o;)r.push(e.substring(n,o.index)),n=o.index+o[0].length,o=t.exec(e);return n<e.length?r.push(e.substring(n,e.length)):r.push(""),r},t.exports.WhitespacePattern=o},function(t){function e(t,e){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,e&&(this._starting_pattern=this._input.get_regexp(e._starting_pattern,!0),this._match_pattern=this._input.get_regexp(e._match_pattern,!0),this._until_pattern=this._input.get_regexp(e._until_pattern),this._until_after=e._until_after)}e.prototype.read=function(){var t=this._input.read(this._starting_pattern);return this._starting_pattern&&!t||(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(t){var e=this._create();return e._until_after=!0,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.until=function(t){var e=this._create();return e._until_after=!1,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.starting_with=function(t){var e=this._create();return e._starting_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype.matching=function(t){var e=this._create();return e._match_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},t.exports.Pattern=e},function(t){function e(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},function(t,e,n){var r=n(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(t,e){r.call(this,t,e),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),e&&(this.__template_pattern=this._input.get_regexp(e.__template_pattern),this._excluded=Object.assign(this._excluded,e._excluded),this._disabled=Object.assign(this._disabled,e._disabled)),t=new r(t),this.__patterns={handlebars_comment:t.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:t.starting_with(/{{{/).until_after(/}}}/),handlebars:t.starting_with(/{{/).until_after(/}}/),php:t.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:t.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:t.starting_with(/{%/).until_after(/%}/),django_value:t.starting_with(/{{/).until_after(/}}/),django_comment:t.starting_with(/{#/).until_after(/#}/),smarty:t.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:t.starting_with(/{\*/).until_after(/\*}/),smarty_literal:t.starting_with(/{literal}/).until_after(/{\/literal}/)}}(i.prototype=new r)._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},i.prototype.read_options=function(t){var e,n=this._create();for(e in o)n._disabled[e]=-1===t.templating.indexOf(e);return n._update(),n},i.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},i.prototype.read=function(){for(var t="",e=(t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern),this._read_template());e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},i.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},i.prototype._read_template=function(){var t,e="",n=this._input.peek();return"<"===n?(t=this._input.peek(1),this._disabled.php||this._excluded.php||"?"!==t||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==t||(e=e||this.__patterns.erb.read())):"{"===n&&(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())),e},t.exports.TemplatablePattern=i}],e={},r=function n(r){var o=e[r];return void 0!==o||(o=e[r]={exports:{}},t[r](o,o.exports,n)),o.exports}(0);n=r}();var i=n;void 0===(r=function(){return{js_beautify:i}}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){var r;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var n;!function(){"use strict";var t=[,,function(t){function e(t){this.__parent=t,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 n(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",0<t.indent_level&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function r(t,r){this.__indent_cache=new n(t,r),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.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()}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(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;0<=e;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||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 t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),--t.__character_count),!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(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){0<this.__indent_count&&(--this.__indent_count,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){0<this.__wrap_point_indent_count&&--this.__wrap_point_indent_count},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),--this.__character_count},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return t<0&&(n=0),(n+=t*this.__indent_size)+(e||0)},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t,e=this.__cache.length,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},r.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},r.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();return e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline(),e=this.__lines.join("\n"),"\n"!==t?e.replace(/[\n]/g,t):e},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(t,e){return this.next_line.set_indent(t=t||0,e=e||0),1<this.__lines.length?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.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(" "))},r.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&1<this.__lines.length&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=1<this.__lines.length?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(t,n){for(var r=this.__lines.length-2;0<=r;){var o=this.__lines[r];if(o.is_empty())break;if(0!==o.item(0).indexOf(t)&&o.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},t.exports.Output=r},,,,function(t){function e(t,e){this.raw_options=n(t,e),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 n(t,e){var n,o={};for(n in t=r(t))n!==e&&(o[n]=t[n]);if(e&&t[e])for(n in t[e])o[n]=t[e][n];return o}function r(t){var e,n={};for(e in t)n[e.replace(/-/g,"_")]=t[e];return n}e.prototype._get_array=function(t,e){return e=e||[],"object"===o(t=this.raw_options[t])?null!==t&&"function"==typeof t.concat&&(e=t.concat()):"string"==typeof t&&(e=t.split(/[^a-zA-Z0-9_\/\-]+/)),e},e.prototype._get_boolean=function(t,e){return void 0===(t=this.raw_options[t])?!!e:!!t},e.prototype._get_characters=function(t,e){return e=e||"","string"==typeof(t=this.raw_options[t])?t.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t"):e},e.prototype._get_number=function(t,e){return t=this.raw_options[t],e=parseInt(e,10),isNaN(e)&&(e=0),t=parseInt(t,10),isNaN(t)?e:t},e.prototype._get_selection=function(t,e,n){if(1!==(n=this._get_selection_list(t,e,n)).length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");if(n=this._get_array(t,n),!this._is_valid_selection(n,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=r,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){0<this.__position&&--this.__position},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},n.prototype.peek=function(t){return t=t||0,0<=(t+=this.__position)&&t<this.__input_length?this.__input.charAt(t):null},n.prototype.__match=function(t,n){t.lastIndex=n;var r=t.exec(this.__input);return!r||e&&t.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(t,e){return e=e||0,0<=(e+=this.__position)&&e<this.__input_length&&!!this.__match(t,e)},n.prototype.testChar=function(t,e){return e=this.peek(e),t.lastIndex=0,null!==e&&t.test(e)},n.prototype.match=function(t){return(t=this.__match(t,this.__position))?this.__position+=t[0].length:t=null,t},n.prototype.read=function(t,e,n){var r,o="";return t&&(r=this.match(t))&&(o+=r[0]),!e||!r&&t||(o+=this.readUntil(e,n)),o},n.prototype.readUntil=function(t,e){var n=this.__position;return t.lastIndex=this.__position,(t=t.exec(this.__input))?(n=t.index,e&&(n+=t[0].length)):n=this.__input_length,t=this.__input.substring(this.__position,n),this.__position=n,t},n.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},n.prototype.get_regexp=function(t,n){var r=null;return n=n&&e?"y":"g","string"==typeof t&&""!==t?r=new RegExp(t,n):t&&(r=new RegExp(t.source,n)),r},n.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(t){var e=this.__position;return t=this.readUntilAfter(t),this.__position=e,t},n.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},,,,,function(t){function e(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},,function(t,e,n){var r=n(16).Beautifier,o=n(17).Options;t.exports=function(t,e){return new r(t,e).beautify()},t.exports.defaultOptions=function(){return new o}},function(t,e,n){var r=n(17).Options,o=n(2).Output,i=n(8).InputScanner,a=new(n(13).Directives)(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=/\s/,u=/(?:\s|\n)+/g,p=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,f=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(t,e){this._source_text=t||"",this._options=new r(e),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}}d.prototype.eatString=function(t){var e="";for(this._ch=this._input.next();this._ch;){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},d.prototype.eatWhitespace=function(t){for(var e=c.test(this._input.peek()),n=0;c.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return e},d.prototype.foundNestedPseudoClass=function(){for(var t=0,e=1,n=this._input.peek(e);n;){if("{"===n)return!0;if("("===n)t+=1;else if(")"===n){if(0===t)return!1;--t}else if(";"===n||"}"===n)return!1;e++,n=this._input.peek(e)}return!1},d.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},d.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},d.prototype.indent=function(){this._indentLevel++},d.prototype.outdent=function(){0<this._indentLevel&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&s.test(t||"")&&(e=t.match(s)[0]));var n=(t=t.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new o(this._options,n),this._input=new i(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var r,d,h,g,m=0,v=!1,y=!1,b=!1,_=!1,w=!1,E=this._ch;r=""!==this._input.read(u),d=E,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),E=this._ch,this._ch;)"/"===this._ch&&"*"===this._input.peek()?(this._output.add_new_line(),this._input.back(),g=this._input.read(p),(h=a.get_directives(g))&&"start"===h.ignore&&(g+=a.readIgnored(this._input)),this.print_string(g),this.eatWhitespace(!0),this._output.add_new_line()):"/"===this._ch&&"/"===this._input.peek()?(this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(f)),this.eatWhitespace(!0)):"@"===this._ch?(this.preserveSingleSpace(r),"{"===this._input.peek()?this.print_string(this._ch+this.eatString("}")):(this.print_string(this._ch),(g=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g)).match(/[ :]$/)&&(g=this.eatString(": ").replace(/\s$/,""),this.print_string(g),this._output.space_before_token=!0),"extend"===(g=g.replace(/\s$/,""))?_=!0:"import"===g&&(w=!0),g in this.NESTED_AT_RULE?(this._nestedLevel+=1,g in this.CONDITIONAL_GROUP_RULE&&(b=!0)):v||0!==m||-1===g.indexOf(":")||(y=!0,this.indent()))):"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(y&&(y=!1,this.outdent()),v=b?(b=!1,this._indentLevel>=this._nestedLevel):this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&v&&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)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===d&&this._output.trim(!0),_=w=!1,y&&(this.outdent(),y=!1),this.print_string(this._ch),v=!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._ch?!v&&!b||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||_||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(":"),y||(this._output.space_before_token=y=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===m?(y&&(this.outdent(),y=!1),w=_=!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):"("===this._ch?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()))):(this.preserveSingleSpace(r),this.print_string(this._ch),this.eatWhitespace(),m++,this.indent()):")"===this._ch?(m&&(m--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||y||0!==m||w||_?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||y||0!==m?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="")):("!"!==this._ch||this._input.lookBack("\\")?this.preserveSingleSpace(r):this.print_string(" "),this.print_string(this._ch)):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&&c.test(this._ch)&&(this._ch=""));return this._output.get_code(e)},t.exports.Beautifier=d},function(t,e,n){var r=n(6).Options;function o(t){r.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),t=this._get_boolean("space_around_selector_separator"),this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var e=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var n=0;n<e.length;n++)"expand"!==e[n]?this.brace_style="collapse":this.brace_style=e[n]}o.prototype=new r,t.exports.Options=o}],e={},r=function n(r){var o=e[r];return void 0!==o||(o=e[r]={exports:{}},t[r](o,o.exports,n)),o.exports}(15);n=r}();var i=n;void 0===(r=function(){return{css_beautify:i}}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){var r=n(360);function o(t,e){return r(t[1],e[1])}function i(t,e){return t[1]>e[1]?1:-1}t.exports=function(t,e){switch(e){case"natural":return t.sort(o);case"standard":return t.sort(i);case"none":case!1:return t}}},function(t,e,n){var r=n(80).Spaces,o=n(15),i=n(81),a=/[\s"'][iI]\s*\]/,s=/([\d\w])([iI])\]/g,l=/="([a-zA-Z][a-zA-Z\d\-_]+)"([iI])/g,c=/="([a-zA-Z][a-zA-Z\d\-_]+)"(\s|\])/g,u=/^(?:(?:<!--|-->)\s*)+/,p=/='([a-zA-Z][a-zA-Z\d\-_]+)'([iI])/g,f=/='([a-zA-Z][a-zA-Z\d\-_]+)'(\s|\])/g,d=/[>\+~]/,h=/\s/;t.exports=function(t,e,n,g,m){var v=[],y=[];function b(t,e){return m.push("HTML comment '"+e+"' at "+i(t[2][0])+". Removing."),""}for(var _=0,w=t.length;_<w;_++){var E=t[_],x=E[1];!function(t){for(var e,n,r=!1,i=!1,a=0,s=t.length;a<s;a++){if(n=t[a],!e)if(n==o.SINGLE_QUOTE||n==o.DOUBLE_QUOTE)i=!i;else{if(!(i||n!=o.CLOSE_CURLY_BRACKET&&n!=o.EXCLAMATION&&"<"!=n&&n!=o.SEMICOLON)){r=!0;break}if(!i&&0===a&&d.test(n)){r=!0;break}}e=n==o.BACK_SLASH}return r}(x=x.replace(u,b.bind(null,E)))?(x=function(t){return-1==t.indexOf("'")&&-1==t.indexOf('"')?t:t.replace(p,"=$1 $2").replace(f,"=$1$2").replace(l,"=$1 $2").replace(c,"=$1$2")}(x=function(t,e){for(var n,i,l,c,u,p,f,g,m,v,y,b=[],_=0,w=!1,E=!1,x=a.test(t),T=e&&e.spaces[r.AroundSelectorRelation],C=0,A=t.length;C<A;C++){if(i=(n=t[C])==o.NEW_LINE_NIX,l=n==o.NEW_LINE_NIX&&t[C-1]==o.CARRIAGE_RETURN,p=f||g,v=!m&&!c&&0===_&&d.test(n),y=h.test(n),u&&p&&l)b.pop(),b.pop();else if(c&&p&&i)b.pop();else if(c)b.push(n);else if(n!=o.OPEN_SQUARE_BRACKET||p)if(n!=o.CLOSE_SQUARE_BRACKET||p)if(n!=o.OPEN_ROUND_BRACKET||p)if(n!=o.CLOSE_ROUND_BRACKET||p)if(n!=o.SINGLE_QUOTE||p)if(n!=o.DOUBLE_QUOTE||p)if(n==o.SINGLE_QUOTE&&p)b.push(n),f=!1;else if(n==o.DOUBLE_QUOTE&&p)b.push(n),g=!1;else{if(y&&w&&!T)continue;!y&&w&&T?(b.push(o.SPACE),b.push(n)):y&&(m||0<_)&&!p||y&&E&&!p||(l||i)&&(m||0<_)&&p||(v&&E&&!T?(b.pop(),b.push(n)):v&&!E&&T?(b.push(o.SPACE),b.push(n)):y?b.push(o.SPACE):b.push(n))}else b.push(n),g=!0;else b.push(n),f=!0;else b.push(n),_--;else b.push(n),_++;else b.push(n),m=!1;else b.push(n),m=!0;u=c,c=n==o.BACK_SLASH,w=v,E=y}return x?b.join("").replace(s,"$1 $2]"):b.join("")}(x,g)),n&&0<x.indexOf("nav")&&(x=x.replace(/\+nav(\S|$)/,"+ nav$1")),e&&-1<x.indexOf("*+html ")||e&&-1<x.indexOf("*:first-child+html ")||(-1<x.indexOf("*")&&(x=x.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),-1<y.indexOf(x)||(E[1]=x,y.push(x),v.push(E)))):m.push("Invalid selector '"+E[1]+"' at "+i(E[2][0])+". Ignoring.")}return 1==v.length&&0===v[0][1].length&&(m.push("Empty selector '"+v[0][1]+"' at "+i(v[0][2][0])+". Ignoring."),v=[]),v}},function(t,e){t.exports={ASTERISK:"asterisk",BANG:"bang",BACKSLASH:"backslash",UNDERSCORE:"underscore"}},function(t,e,n){var r=n(15);t.exports=function(t,e){var n,o=r.OPEN_ROUND_BRACKET,i=r.CLOSE_ROUND_BRACKET,a=0,s=0,l=0,c=t.length,u=[];if(-1==t.indexOf(e))return[t];if(-1==t.indexOf(o))return t.split(e);for(;s<c;)t[s]==o?a++:t[s]==i&&a--,0===a&&0<s&&s+1<c&&t[s]==e&&(u.push(t.substring(l,s)),l=s+1),s++;return l<s+1&&((n=t.substring(l))[n.length-1]==e&&(n=n.substring(0,n.length-1)),u.push(n)),u}},function(t,e,n){var r="",o=n(80).Breaks,i=n(80).Spaces,a=n(15),s=n(10);function l(t,e){for(var n=t.store,i=0,s=e.length;i<s;i++)n(t,e[i]),i<s-1&&n(t,function(t){return t.format?a.COMMA+(f(t,o.BetweenSelectors)?t.format.breakWith:r)+t.indentWith:a.COMMA}(t))}function c(t,e){for(var n=function(t){for(var e=t.length-1;0<=e&&t[e][0]==s.COMMENT;e--);return e}(e),r=0,o=e.length;r<o;r++)u(t,e,r,n)}function u(t,e,n,u){var f=t.store,v=e[n],y=v[2],b=(e=y&&y[0]===s.PROPERTY_BLOCK,t.format?!(!t.format.semicolonAfterLastProperty&&!e)||n<u:n<u||e),_=n===u;switch(v[0]){case s.AT_RULE:f(t,v),f(t,m(t,o.AfterProperty,!1));break;case s.AT_RULE_BLOCK:l(t,v[1]),f(t,h(t,o.AfterRuleBegins,!0)),c(t,v[2]),f(t,g(t,o.AfterRuleEnds,!1,_));break;case s.COMMENT:f(t,v);break;case s.PROPERTY:f(t,v[1]),f(t,function(t){return t.format?a.COLON+(d(t,i.BeforeValue)?a.SPACE:r):a.COLON}(t)),y&&p(t,v),f(t,b?m(t,o.AfterProperty,_):r);break;case s.RAW:f(t,v)}}function p(t,e){var n,r,i=t.store;if(e[2][0]==s.PROPERTY_BLOCK)i(t,h(t,o.AfterBlockBegins,!1)),c(t,e[2][1]),i(t,g(t,o.AfterBlockEnds,!1,!0));else for(n=2,r=e.length;n<r;n++)i(t,e[n]),n<r-1&&(function(t){return"filter"==t[1][1]||"-ms-filter"==t[1][1]}(e)||!function(t,e,n){return!t.spaceAfterClosingBrace&&function(t){return"background"==t[1][1]||"transform"==t[1][1]||"src"==t[1][1]}(e)&&function(t,e){return t[e][1][t[e][1].length-1]==a.CLOSE_ROUND_BRACKET}(e,n)||function(t,e){return t[e+1]&&t[e+1][1]==a.FORWARD_SLASH}(e,n)||function(t,e){return t[e][1]==a.FORWARD_SLASH}(e,n)||function(t,e){return t[e+1]&&t[e+1][1]==a.COMMA}(e,n)||function(t,e){return t[e][1]==a.COMMA}(e,n)}(t,e,n))&&i(t,a.SPACE)}function f(t,e){return t.format&&t.format.breaks[e]}function d(t,e){return t.format&&t.format.spaces[e]}function h(t,e,n){return t.format?(t.indentBy+=t.format.indentBy,t.indentWith=t.format.indentWith.repeat(t.indentBy),(n&&d(t,i.BeforeBlockBegins)?a.SPACE:r)+a.OPEN_CURLY_BRACKET+(f(t,e)?t.format.breakWith:r)+t.indentWith):a.OPEN_CURLY_BRACKET}function g(t,e,n,i){return t.format?(t.indentBy-=t.format.indentBy,t.indentWith=t.format.indentWith.repeat(t.indentBy),(f(t,o.AfterProperty)||n&&f(t,o.BeforeBlockEnds)?t.format.breakWith:r)+t.indentWith+a.CLOSE_CURLY_BRACKET+(i?r:(f(t,e)?t.format.breakWith:r)+t.indentWith)):a.CLOSE_CURLY_BRACKET}function m(t,e,n){return t.format?a.SEMICOLON+(n||!f(t,e)?r:t.format.breakWith+t.indentWith):a.SEMICOLON}t.exports={all:function t(e,n){for(var i,a,u=e.store,p=0,d=n.length;p<d;p++)switch(a=p==d-1,(i=n[p])[0]){case s.AT_RULE:u(e,i),u(e,m(e,o.AfterAtRule,a));break;case s.AT_RULE_BLOCK:l(e,i[1]),u(e,h(e,o.AfterRuleBegins,!0)),c(e,i[2]),u(e,g(e,o.AfterRuleEnds,!1,a));break;case s.NESTED_BLOCK:l(e,i[1]),u(e,h(e,o.AfterBlockBegins,!0)),t(e,i[2]),u(e,g(e,o.AfterBlockEnds,!0,a));break;case s.COMMENT:u(e,i),u(e,f(e,o.AfterComment)?e.format.breakWith:r);break;case s.RAW:u(e,i);break;case s.RULE:l(e,i[1]),u(e,h(e,o.AfterRuleBegins,!0)),c(e,i[2]),u(e,g(e,o.AfterRuleEnds,!1,a))}},body:c,property:u,rules:l,value:p}},function(t,e,n){var r=n(33),o=n(184);t.exports=function(t,e,n){for(var i,a,s,l=t.length-1;0<=l;l--){var c=t[l],u=r[c.name];if(u&&u.shorthand){c.shorthand=!0,c.dirty=!0;try{if(c.components=u.breakUp(c,r,e),u.shorthandComponents)for(a=0,s=c.components.length;a<s;a++)(i=c.components[a]).components=r[i.name].breakUp(i,r,e)}catch(t){if(!(t instanceof o))throw t;c.components=[],n.push(t.message)}0<c.components.length?c.multiplex=c.components[0].multiplex:c.unused=!0}}}},function(t,e,n){var r=n(33);t.exports=function(t){var e=r[t.name];return e&&e.shorthand?e.restore(t,r):t.value}},function(t,e,n){var r=n(10),o=n(13).rules,i=n(13).value;t.exports=function t(e){var n,a,s,l,c,u=[];if(e[0]==r.RULE)for(n=!/[\.\+>~]/.test(o(e[1])),l=0,c=e[2].length;l<c;l++)(s=e[2][l])[0]==r.PROPERTY&&0!==(a=s[1][1]).length&&0!==a.indexOf("--")&&(s=i(s,l),u.push([a,s,function(t){return"list-style"==t?t:0<t.indexOf("-radius")?"border-radius":"border-collapse"==t||"border-spacing"==t||"border-image"==t?t:0===t.indexOf("border-")&&/^border\-\w+\-\w+$/.test(t)?t.match(/border\-\w+/)[0]:0===t.indexOf("border-")&&/^border\-\w+$/.test(t)?"border":0===t.indexOf("text-")||"-chrome-"==t?t:t.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}(a),e[2][l],a+":"+s,e[1],n]));else if(e[0]==r.NESTED_BLOCK)for(l=0,c=e[2].length;l<c;l++)u=u.concat(t(e[2][l]));return u}},function(t,e,n){var r=n(22),o=r.Buffer;function i(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=a),i(o,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=o(t),void 0!==e?"string"==typeof n?t.fill(e,n):t.fill(e):t.fill(0),t},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){var r=n(21),o=n(26),i=n(64),a=n(88),s="http:";function l(t){return i(t)||o.parse(s+"//"+t).host==t}t.exports=function t(e,n,i){var c,u,p,f,d,h,g=!n;if(0===i.length)return!1;for(n&&!a(e)&&(e=s+e),c=n?o.parse(e).host:e,u=n?e:r.resolve(e),h=0;h<i.length;h++)f="!"==(p=i[h])[0],d=p.substring(1),g=f&&n&&l(d)?g&&!t(e,!0,[d]):!f||n||l(d)?f?g&&!0:"all"==p||(n&&"local"==p?g||!1:!(!n||"remote"!=p)||!(!n&&"remote"==p)&&(!n&&"local"==p||p===c||p===e||!(!n||0!==u.indexOf(p))||!n&&0===u.indexOf(r.resolve(p))||n!=l(d)&&g&&!0)):g&&!t(e,!1,[d]);return g}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports={clone:function t(e){if(e instanceof Object){var n,r=e instanceof Array?[]:{};for(n in e)e.hasOwnProperty(n)&&(r[n]=t(e[n]));return r}return e},isPlainObject:function(t){return!!t&&"object"===r(t)&&t.constructor===Object},shallowMerge:function(t,e){if(t instanceof Object&&e instanceof Object)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}}},function(t,e,n){"use strict";t.exports={join:function(t){return 0<t.length?t.join("/")+"/":""},resolveDotSegments:function(t){var e=[];return t.forEach((function(t){".."!==t?"."!==t&&e.push(t):0<e.length&&e.splice(e.length-1,1)})),e}}},function(t,e,n){"use strict";(function(r){function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],a=void 0===(k=n.addEmptyAttributes)||k,l=void 0===(A=n.components)?{}:A,T=void 0===(k=n.convertBooleans)||k,C=void 0===(A=n.keepComments)||A,A=void 0===(k=n.filePath)?".":k,O=void 0===(k=n.actualPath)?".":k,S=void 0!==(k=n.ignoreIncludes)&&k,k=void 0===(k=n.preprocessors)?[]:k,P=(0,c.default)((0,p.default)((function(t){return t.endingTag})),(0,u.default)((function(t){return t.getTagName()})))(s({},l)),j=r.cwd();if(w&&A)try{j=v.default.lstatSync(A).isDirectory()?A:m.default.dirname(A)}catch(a){throw new Error("Specified filePath does not exist")}var N=null,L=null;function D(t,e){return(0,f.default)(e.children,{tagName:t})}i.length;var I=0,R=[],M={startIndex:0,endIndex:0},B=E(e),F=new g.Parser({onopentag:function(e,r){var a=-1!==P.indexOf(e);if(0<I)a&&(I+=1);else{if(a&&1===(I+=1)&&(M.startIndex=F.startIndex,M.endIndex=F.endIndex),a=(0,d.default)(B,(function(t){return t<=F.startIndex}))+1,"mj-include"===e)return S||!w?void 0:"css"===r.type||"html"===r.type?void function(t,e,n){var r,o=m.default.resolve(j,t);try{r=v.default.readFileSync(o,"utf8")}catch(e){return o={line:n,file:t,absoluteFilePath:m.default.resolve(j,O),parent:L,tagName:"mj-raw",content:"\x3c!-- mj-include fails to read file : ".concat(t," at ").concat(o," --\x3e"),children:[],errors:[{type:"include",params:{file:t,partialPath:o}}]},void L.children.push(o)}"html"!==e.type?(e="inline"===e["css-inline"]?{inline:"inline"}:{},e={line:n,file:t,absoluteFilePath:m.default.resolve(j,O),tagName:"mj-style",content:r,children:[],attributes:e},R.push(e)):(r={line:n,file:t,absoluteFilePath:m.default.resolve(j,O),parent:L,tagName:"mj-raw",content:r},L.children.push(r))}(decodeURIComponent(r.path),r,a):void function(e,r){var i=m.default.resolve(j,e),a=L;if((0,f.default)(L.includedIn,{file:i}))throw new Error("Circular inclusion detected on file : ".concat(i));try{c=v.default.readFileSync(i,"utf8")}catch(a){return e={line:r,file:e,absoluteFilePath:m.default.resolve(j,O),parent:L,tagName:"mj-raw",content:"\x3c!-- mj-include fails to read file : ".concat(e," at ").concat(i," --\x3e"),children:[],errors:[{type:"include",params:{file:e,partialPath:i}}]},void L.children.push(e)}var l,c=-1===c.indexOf("<mjml>")?"<mjml><mj-body>".concat(c,"</mj-body></mjml>"):c;c=t(c,s(s({},n),{},{filePath:i,actualPath:i}),[].concat(o(L.includedIn),[{file:L.absoluteFilePath,line:r}])),i=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:L;return t.map((function(t){return s(s({},t),{},{parent:e})}))},"mjml"===c.tagName&&(r=D("mj-body",c),c=D("mj-head",c),r&&(l=i(r.children),L.children=[].concat(o(L.children),o(l))),c&&((l=D("mj-head",N))||(N.children.push({file:O,absoluteFilePath:m.default.resolve(j,O),parent:N,tagName:"mj-head",children:[],includedIn:[]}),l=D("mj-head",N)),c=i(c.children,l),l.children=[].concat(o(l.children),o(c))),L=a)}(decodeURIComponent(r.path),a);T&&(r=(0,b.default)(r)),r={file:O,absoluteFilePath:w?m.default.resolve(j,O):O,line:a,includedIn:i,parent:L,tagName:e,attributes:r,children:[]},L?L.children.push(r):N=r,L=r}},onclosetag:function(t){var n;-1!==P.indexOf(t)&&(--I||x(M,F)||(n=(n=e.substring(M.endIndex+1,F.endIndex).trim()).substring(0,n.lastIndexOf("</".concat(t))))&&(L.content=n.trim())),0<I||"mj-include"!==t&&(L=L&&L.parent||null)},ontext:function(t){0<I||t&&t.trim()&&L&&(L.content="".concat(L&&L.content||"").concat(t.trim()).trim())},oncomment:function(t){0<I||L&&C&&L.children.push({line:(0,d.default)(B,(function(t){return t<=F.startIndex}))+1,tagName:"mj-raw",content:"\x3c!-- ".concat(t.trim()," --\x3e"),includedIn:i})}},{recognizeCDATA:!0,decodeEntities:!1,recognizeSelfClosing:!0,lowerCaseAttributeNames:!1});if(e=(0,c.default)(k)(e),F.write(e),F.end(),!(0,h.default)(N))throw new Error("Parsing failed. Check your mjml.");return(0,y.default)(N),a&&(0,_.default)(N),R.length&&((a=(0,f.default)(N.children,{tagName:"mj-head"}))?a.children?a.children=[].concat(o(a.children),R):a.children=R:N.children.push({file:A,line:0,tagName:"mj-head",children:R})),N};var c=l(n(133)),u=l(n(483)),p=l(n(140)),f=l(n(47)),d=l(n(484)),h=l(n(18)),g=n(143),m=l(n(21)),v=l(n(63)),y=l(n(485)),b=l(n(486)),_=l(n(488)),w=n(489),E=function(t){for(var e=/\n/gi,n=[0];e.exec(t);)n.push(e.lastIndex);return n},x=function(t,e){return t.startIndex===e.startIndex&&t.endIndex===e.endIndex};t.exports=e.default}).call(this,n(14))},function(t,e,n){var r=n(65)("flow",n(481));r.placeholder=n(51),t.exports=r},function(t,e,n){var r=n(210),o=n(457),i=n(458),a=n(212),s=n(472),l=n(137),c=n(473),u=n(218),p=n(219),f=n(59),d=Math.max;t.exports=function(t,e,n,h,g,m,v,y){var b=2&e;if(!b&&"function"!=typeof t)throw new TypeError("Expected a function");var _,w,E=h?h.length:0;E||(e&=-97,h=g=void 0),v=void 0===v?v:d(f(v),0),y=void 0===y?y:f(y),E-=g?g.length:0,64&e&&(_=h,w=g,h=g=void 0);var x=b?void 0:l(t);return v=[t,e,n,h,g,_,w,m,v,y],x&&c(v,x),t=v[0],e=v[1],n=v[2],h=v[3],g=v[4],!(y=v[9]=void 0===v[9]?b?0:t.length:d(v[9]-E,0))&&24&e&&(e&=-25),n=e&&1!=e?8==e||16==e?i(t,e,y):32!=e&&33!=e||g.length?a.apply(void 0,v):s(t,e,n,h):o(t,e,n),p((x?r:u)(n,v),t,e)}},function(t,e,n){var r=n(79);function o(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}n=n(136),o.prototype=r(n.prototype),t.exports=o.prototype.constructor=o},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(211);n=n(460),t.exports=r?function(t){return r.get(t)}:n},function(t,e,n){var r=n(79);function o(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}n=n(136),o.prototype=r(n.prototype),t.exports=o.prototype.constructor=o},function(t,e){var n="__lodash_placeholder__";t.exports=function(t,e){for(var r=-1,o=t.length,i=0,a=[];++r<o;){var s=t[r];s!==e&&s!==n||(t[r]=n,a[i++]=r)}return a}},function(t,e,n){var r=n(65)("filter",n(114));r.placeholder=n(51),t.exports=r},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=n(36).default,c=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=e.children,a=e.tagName,l=[],c=n.skipElements||f;if(null==n.dependencies&&console.warn('"dependencies" option should be provided to mjml validator'),!c.includes(a))for(var d=0,h=Object.values(u.default);d<h.length;d++){var g=(0,h[d])(e,s({dependencies:p.default,skipElements:c},n));Array.isArray(g)?l.push.apply(l,r(g)):g&&l.push(g)}if(i&&0<i.length){var m,v=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(i);try{for(v.s();!(m=v.n()).done;){var y=m.value;l.push.apply(l,r(t(y,n)))}}catch(e){v.e(e)}finally{v.f()}}return l},Object.defineProperty(e,"rulesCollection",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"registerRule",{enumerable:!0,get:function(){return u.registerRule}}),Object.defineProperty(e,"dependencies",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"registerDependencies",{enumerable:!0,get:function(){return p.registerDependencies}}),Object.defineProperty(e,"assignDependencies",{enumerable:!0,get:function(){return p.assignDependencies}}),e.formatValidationError=void 0,c=c(n(52));var u=l(n(490)),p=l(n(496)),f=["mjml"];c=c.default,e.formatValidationError=c},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(74),i=n(30),a=n(56),s=n(18);t.exports=function(t,e,n){if(!s(n))return!1;var l=r(e);return!!("number"==l?i(n)&&a(e,n.length):"string"==l&&e in n)&&o(n[e],t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"Parser",(function(){return x})),n.d(e,"DomHandler",(function(){return T.c})),n.d(e,"parseDocument",(function(){return R})),n.d(e,"parseDOM",(function(){return M})),n.d(e,"createDomStream",(function(){return B})),n.d(e,"Tokenizer",(function(){return f})),n.d(e,"ElementType",(function(){return r})),n.d(e,"getFeed",(function(){return I.getFeed})),n.d(e,"parseFeed",(function(){return F})),n.d(e,"DomUtils",(function(){return I})),n.d(e,"DefaultHandler",(function(){return T.c}));var r={};n.r(r),n.d(r,"ElementType",(function(){return d})),n.d(r,"isTag",(function(){return C})),n.d(r,"Root",(function(){return A})),n.d(r,"Text",(function(){return O})),n.d(r,"Directive",(function(){return S})),n.d(r,"Comment",(function(){return k})),n.d(r,"Script",(function(){return P})),n.d(r,"Style",(function(){return j})),n.d(r,"Tag",(function(){return N})),n.d(r,"CDATA",(function(){return L})),n.d(r,"Doctype",(function(){return D}));var o,i,a,s=n(11);function l(t){return t===o.Space||t===o.NewLine||t===o.Tab||t===o.FormFeed||t===o.CarriageReturn}function c(t){return t===o.Slash||t===o.Gt||l(t)}function u(t){return t>=o.Zero&&t<=o.Nine}(g=o=o||{})[g.Tab=9]="Tab",g[g.NewLine=10]="NewLine",g[g.FormFeed=12]="FormFeed",g[g.CarriageReturn=13]="CarriageReturn",g[g.Space=32]="Space",g[g.ExclamationMark=33]="ExclamationMark",g[g.Num=35]="Num",g[g.Amp=38]="Amp",g[g.SingleQuote=39]="SingleQuote",g[g.DoubleQuote=34]="DoubleQuote",g[g.Dash=45]="Dash",g[g.Slash=47]="Slash",g[g.Zero=48]="Zero",g[g.Nine=57]="Nine",g[g.Semi=59]="Semi",g[g.Lt=60]="Lt",g[g.Eq=61]="Eq",g[g.Gt=62]="Gt",g[g.Questionmark=63]="Questionmark",g[g.UpperA=65]="UpperA",g[g.LowerA=97]="LowerA",g[g.UpperF=70]="UpperF",g[g.LowerF=102]="LowerF",g[g.UpperZ=90]="UpperZ",g[g.LowerZ=122]="LowerZ",g[g.LowerX=120]="LowerX",g[g.OpeningSquareBracket=91]="OpeningSquareBracket",(m=i=i||{})[m.Text=1]="Text",m[m.BeforeTagName=2]="BeforeTagName",m[m.InTagName=3]="InTagName",m[m.InSelfClosingTag=4]="InSelfClosingTag",m[m.BeforeClosingTagName=5]="BeforeClosingTagName",m[m.InClosingTagName=6]="InClosingTagName",m[m.AfterClosingTagName=7]="AfterClosingTagName",m[m.BeforeAttributeName=8]="BeforeAttributeName",m[m.InAttributeName=9]="InAttributeName",m[m.AfterAttributeName=10]="AfterAttributeName",m[m.BeforeAttributeValue=11]="BeforeAttributeValue",m[m.InAttributeValueDq=12]="InAttributeValueDq",m[m.InAttributeValueSq=13]="InAttributeValueSq",m[m.InAttributeValueNq=14]="InAttributeValueNq",m[m.BeforeDeclaration=15]="BeforeDeclaration",m[m.InDeclaration=16]="InDeclaration",m[m.InProcessingInstruction=17]="InProcessingInstruction",m[m.BeforeComment=18]="BeforeComment",m[m.CDATASequence=19]="CDATASequence",m[m.InSpecialComment=20]="InSpecialComment",m[m.InCommentLike=21]="InCommentLike",m[m.BeforeSpecialS=22]="BeforeSpecialS",m[m.SpecialStartSequence=23]="SpecialStartSequence",m[m.InSpecialTag=24]="InSpecialTag",m[m.BeforeEntity=25]="BeforeEntity",m[m.BeforeNumericEntity=26]="BeforeNumericEntity",m[m.InNamedEntity=27]="InNamedEntity",m[m.InNumericEntity=28]="InNumericEntity",m[m.InHexEntity=29]="InHexEntity",(v=a={})[v.NoValue=0]="NoValue",v[v.Unquoted=1]="Unquoted",v[v.Single=2]="Single",v[v.Double=3]="Double";var p={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},f=function(){function t(e,n){var r=void 0!==(r=e.xmlMode)&&r;e=void 0===(e=e.decodeEntities)||e,function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.cbs=n,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=r,this.decodeEntities=e,this.entityTrie=r?s.xmlDecodeTree:s.htmlDecodeTree}return function(t,e,n){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"reset",value:function(){this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}},{key:"write",value:function(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}},{key:"end",value:function(){this.running&&this.finish()}},{key:"pause",value:function(){this.running=!1}},{key:"resume",value:function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}},{key:"getIndex",value:function(){return this.index}},{key:"getSectionStart",value:function(){return this.sectionStart}},{key:"stateText",value:function(t){t===o.Lt||!this.decodeEntities&&this.fastForwardTo(o.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===o.Amp&&(this.state=i.BeforeEntity)}},{key:"stateSpecialStartSequence",value:function(t){var e=this.sequenceIndex===this.currentSequence.length;if(e?c(t):(32|t)===this.currentSequence[this.sequenceIndex]){if(!e)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(t)}},{key:"stateInSpecialTag",value:function(t){if(this.sequenceIndex===this.currentSequence.length){if(t===o.Gt||l(t)){var e,n=this.index-this.currentSequence.length;return this.sectionStart<n&&(e=this.index,this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=e),this.isSpecial=!1,this.sectionStart=2+n,void this.stateInClosingTagName(t)}this.sequenceIndex=0}(32|t)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===p.TitleEnd?this.decodeEntities&&t===o.Amp&&(this.state=i.BeforeEntity):this.fastForwardTo(o.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(t===o.Lt)}},{key:"stateCDATASequence",value:function(t){t===p.Cdata[this.sequenceIndex]?++this.sequenceIndex===p.Cdata.length&&(this.state=i.InCommentLike,this.currentSequence=p.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=i.InDeclaration,this.stateInDeclaration(t))}},{key:"fastForwardTo",value:function(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}},{key:"stateInCommentLike",value:function(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===p.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=i.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}},{key:"isTagStartChar",value:function(t){return this.xmlMode?!c(t):function(t){return t>=o.LowerA&&t<=o.LowerZ||t>=o.UpperA&&t<=o.UpperZ}(t)}},{key:"startSpecial",value:function(t,e){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=e,this.state=i.SpecialStartSequence}},{key:"stateBeforeTagName",value:function(t){var e;t===o.ExclamationMark?(this.state=i.BeforeDeclaration,this.sectionStart=this.index+1):t===o.Questionmark?(this.state=i.InProcessingInstruction,this.sectionStart=this.index+1):this.isTagStartChar(t)?(e=32|t,this.sectionStart=this.index,this.xmlMode||e!==p.TitleEnd[2]?this.state=this.xmlMode||e!==p.ScriptEnd[2]?i.InTagName:i.BeforeSpecialS:this.startSpecial(p.TitleEnd,3)):t===o.Slash?this.state=i.BeforeClosingTagName:(this.state=i.Text,this.stateText(t))}},{key:"stateInTagName",value:function(t){c(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(t))}},{key:"stateBeforeClosingTagName",value:function(t){l(t)||(t===o.Gt?this.state=i.Text:(this.state=this.isTagStartChar(t)?i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))}},{key:"stateInClosingTagName",value:function(t){t!==o.Gt&&!l(t)||(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(t))}},{key:"stateAfterClosingTagName",value:function(t){t!==o.Gt&&!this.fastForwardTo(o.Gt)||(this.state=i.Text,this.sectionStart=this.index+1)}},{key:"stateBeforeAttributeName",value:function(t){t===o.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===o.Slash?this.state=i.InSelfClosingTag:l(t)||(this.state=i.InAttributeName,this.sectionStart=this.index)}},{key:"stateInSelfClosingTag",value:function(t){t===o.Gt?(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1,this.isSpecial=!1):l(t)||(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(t))}},{key:"stateInAttributeName",value:function(t){t!==o.Eq&&!c(t)||(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterAttributeName,this.stateAfterAttributeName(t))}},{key:"stateAfterAttributeName",value:function(t){t===o.Eq?this.state=i.BeforeAttributeValue:t===o.Slash||t===o.Gt?(this.cbs.onattribend(a.NoValue,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(t)):l(t)||(this.cbs.onattribend(a.NoValue,this.index),this.state=i.InAttributeName,this.sectionStart=this.index)}},{key:"stateBeforeAttributeValue",value:function(t){t===o.DoubleQuote?(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):t===o.SingleQuote?(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):l(t)||(this.sectionStart=this.index,this.state=i.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}},{key:"handleInAttributeValue",value:function(t,e){t===e||!this.decodeEntities&&this.fastForwardTo(e)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(e===o.DoubleQuote?a.Double:a.Single,this.index),this.state=i.BeforeAttributeName):this.decodeEntities&&t===o.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)}},{key:"stateInAttributeValueDoubleQuotes",value:function(t){this.handleInAttributeValue(t,o.DoubleQuote)}},{key:"stateInAttributeValueSingleQuotes",value:function(t){this.handleInAttributeValue(t,o.SingleQuote)}},{key:"stateInAttributeValueNoQuotes",value:function(t){l(t)||t===o.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(a.Unquoted,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===o.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)}},{key:"stateBeforeDeclaration",value:function(t){t===o.OpeningSquareBracket?(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=t===o.Dash?i.BeforeComment:i.InDeclaration}},{key:"stateInDeclaration",value:function(t){t!==o.Gt&&!this.fastForwardTo(o.Gt)||(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)}},{key:"stateInProcessingInstruction",value:function(t){t!==o.Gt&&!this.fastForwardTo(o.Gt)||(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)}},{key:"stateBeforeComment",value:function(t){t===o.Dash?(this.state=i.InCommentLike,this.currentSequence=p.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=i.InDeclaration}},{key:"stateInSpecialComment",value:function(t){t!==o.Gt&&!this.fastForwardTo(o.Gt)||(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=i.Text,this.sectionStart=this.index+1)}},{key:"stateBeforeSpecialS",value:function(t){var e=32|t;e===p.ScriptEnd[3]?this.startSpecial(p.ScriptEnd,4):e===p.StyleEnd[3]?this.startSpecial(p.StyleEnd,4):(this.state=i.InTagName,this.stateInTagName(t))}},{key:"stateBeforeEntity",value:function(t){this.entityExcess=1,this.entityResult=0,t===o.Num?this.state=i.BeforeNumericEntity:t===o.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=i.InNamedEntity,this.stateInNamedEntity(t))}},{key:"stateInNamedEntity",value:function(t){if(this.entityExcess+=1,this.trieIndex=Object(s.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var e=this.trieCurrent&s.BinTrieFlags.VALUE_LENGTH;e&&(e=(e>>14)-1,this.allowLegacyEntity()||t===o.Semi?((t=this.index-this.entityExcess+1)>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.entityResult=this.trieIndex,this.trieIndex+=e,this.entityExcess=0,this.sectionStart=this.index+1,0==e&&this.emitNamedEntity()):this.trieIndex+=e)}},{key:"emitNamedEntity",value:function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&s.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~s.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},{key:"stateBeforeNumericEntity",value:function(t){(32|t)===o.LowerX?(this.entityExcess++,this.state=i.InHexEntity):(this.state=i.InNumericEntity,this.stateInNumericEntity(t))}},{key:"emitNumericEntity",value:function(t){var e=this.index-this.entityExcess-1;2+e+Number(this.state===i.InHexEntity)!==this.index&&(e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.sectionStart=this.index+Number(t),this.emitCodePoint(Object(s.replaceCodePoint)(this.entityResult))),this.state=this.baseState}},{key:"stateInNumericEntity",value:function(t){t===o.Semi?this.emitNumericEntity(!0):u(t)?(this.entityResult=10*this.entityResult+(t-o.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}},{key:"stateInHexEntity",value:function(t){t===o.Semi?this.emitNumericEntity(!0):u(t)?(this.entityResult=16*this.entityResult+(t-o.Zero),this.entityExcess++):function(t){return t>=o.UpperA&&t<=o.UpperF||t>=o.LowerA&&t<=o.LowerF}(t)?(this.entityResult=16*this.entityResult+((32|t)-o.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}},{key:"allowLegacyEntity",value:function(){return!this.xmlMode&&(this.baseState===i.Text||this.baseState===i.InSpecialTag)}},{key:"cleanup",value:function(){this.running&&this.sectionStart!==this.index&&(this.state===i.Text||this.state===i.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==i.InAttributeValueDq&&this.state!==i.InAttributeValueSq&&this.state!==i.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}},{key:"shouldContinue",value:function(){return this.index<this.buffer.length+this.offset&&this.running}},{key:"parse",value:function(){for(;this.shouldContinue();){var t=this.buffer.charCodeAt(this.index-this.offset);this.state===i.Text?this.stateText(t):this.state===i.SpecialStartSequence?this.stateSpecialStartSequence(t):this.state===i.InSpecialTag?this.stateInSpecialTag(t):this.state===i.CDATASequence?this.stateCDATASequence(t):this.state===i.InAttributeValueDq?this.stateInAttributeValueDoubleQuotes(t):this.state===i.InAttributeName?this.stateInAttributeName(t):this.state===i.InCommentLike?this.stateInCommentLike(t):this.state===i.InSpecialComment?this.stateInSpecialComment(t):this.state===i.BeforeAttributeName?this.stateBeforeAttributeName(t):this.state===i.InTagName?this.stateInTagName(t):this.state===i.InClosingTagName?this.stateInClosingTagName(t):this.state===i.BeforeTagName?this.stateBeforeTagName(t):this.state===i.AfterAttributeName?this.stateAfterAttributeName(t):this.state===i.InAttributeValueSq?this.stateInAttributeValueSingleQuotes(t):this.state===i.BeforeAttributeValue?this.stateBeforeAttributeValue(t):this.state===i.BeforeClosingTagName?this.stateBeforeClosingTagName(t):this.state===i.AfterClosingTagName?this.stateAfterClosingTagName(t):this.state===i.BeforeSpecialS?this.stateBeforeSpecialS(t):this.state===i.InAttributeValueNq?this.stateInAttributeValueNoQuotes(t):this.state===i.InSelfClosingTag?this.stateInSelfClosingTag(t):this.state===i.InDeclaration?this.stateInDeclaration(t):this.state===i.BeforeDeclaration?this.stateBeforeDeclaration(t):this.state===i.BeforeComment?this.stateBeforeComment(t):this.state===i.InProcessingInstruction?this.stateInProcessingInstruction(t):this.state===i.InNamedEntity?this.stateInNamedEntity(t):this.state===i.BeforeEntity?this.stateBeforeEntity(t):this.state===i.InHexEntity?this.stateInHexEntity(t):this.state===i.InNumericEntity?this.stateInNumericEntity(t):this.stateBeforeNumericEntity(t),this.index++}this.cleanup()}},{key:"finish",value:function(){this.state===i.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}},{key:"handleTrailingData",value:function(){var t=this.buffer.length+this.offset;this.state===i.InCommentLike?this.currentSequence===p.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===i.InNumericEntity&&this.allowLegacyEntity()||this.state===i.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===i.InTagName||this.state===i.BeforeAttributeName||this.state===i.BeforeAttributeValue||this.state===i.AfterAttributeName||this.state===i.InAttributeName||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueDq||this.state===i.InAttributeValueNq||this.state===i.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}},{key:"emitPartial",value:function(t,e){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribdata(t,e):this.cbs.ontext(t,e)}},{key:"emitCodePoint",value:function(t){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}}]),t}();var d,h=new Set(["input","option","optgroup","select","button","datalist","textarea"]),g=(e=new Set(["p"]),new Set(["thead","tbody"])),m=new Set(["dd","dt"]),v=new Set(["rt","rp"]),y=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",e],["h1",e],["h2",e],["h3",e],["h4",e],["h5",e],["h6",e],["select",h],["input",h],["output",h],["button",h],["datalist",h],["textarea",h],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",m],["dt",m],["address",e],["article",e],["aside",e],["blockquote",e],["details",e],["div",e],["dl",e],["fieldset",e],["figcaption",e],["figure",e],["footer",e],["form",e],["header",e],["hr",e],["main",e],["nav",e],["ol",e],["pre",e],["section",e],["table",e],["ul",e],["rt",v],["rp",v],["tbody",g],["tfoot",g]]),b=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),_=new Set(["math","svg"]),w=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),E=/\s|\//,x=function(){function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(e=n.lowerCaseTags)&&void 0!==e?e:!n.xmlMode,this.lowerCaseAttributeNames=null!==(e=n.lowerCaseAttributeNames)&&void 0!==e?e:!n.xmlMode,this.tokenizer=new(null!==(e=n.Tokenizer)&&void 0!==e?e:f)(this.options,this),null!==(e=(n=this.cbs).onparserinit)&&void 0!==e&&e.call(n,this)}return function(t,e,n){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"ontext",value:function(t,e){var n,r=this.getSlice(t,e);this.endIndex=e-1,null!==(t=(n=this.cbs).ontext)&&void 0!==t&&t.call(n,r),this.startIndex=e}},{key:"ontextentity",value:function(t){var e,n,r=this.tokenizer.getSectionStart();this.endIndex=r-1,null!==(n=(e=this.cbs).ontext)&&void 0!==n&&n.call(e,Object(s.fromCodePoint)(t)),this.startIndex=r}},{key:"isVoidElement",value:function(t){return!this.options.xmlMode&&b.has(t)}},{key:"onopentagname",value:function(t,e){this.endIndex=e,e=this.getSlice(t,e),this.lowerCaseTagNames&&(e=e.toLowerCase()),this.emitOpenTag(e)}},{key:"emitOpenTag",value:function(t){var e,n,r,o;this.openTagStart=this.startIndex,this.tagname=t;var i=!this.options.xmlMode&&y.get(t);if(i)for(;0<this.stack.length&&i.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null!==(n=(e=this.cbs).onclosetag)&&void 0!==n&&n.call(e,a,!0)}this.isVoidElement(t)||(this.stack.push(t),_.has(t)?this.foreignContext.push(!0):w.has(t)&&this.foreignContext.push(!1)),null!==(o=(r=this.cbs).onopentagname)&&void 0!==o&&o.call(r,t),this.cbs.onopentag&&(this.attribs={})}},{key:"endOpenTag",value:function(t){var e,n;this.startIndex=this.openTagStart,this.attribs&&(null!==(n=(e=this.cbs).onopentag)&&void 0!==n&&n.call(e,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}},{key:"onopentagend",value:function(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}},{key:"onclosetag",value:function(t,e){this.endIndex=e;var n=this.getSlice(t,e);if(this.lowerCaseTagNames&&(n=n.toLowerCase()),(_.has(n)||w.has(n))&&this.foreignContext.pop(),this.isVoidElement(n))this.options.xmlMode||"br"!==n||(null!==(t=(r=this.cbs).onopentagname)&&void 0!==t&&t.call(r,"br"),null!==(r=(t=this.cbs).onopentag)&&void 0!==r&&r.call(t,"br",{},!0),null!==(t=(r=this.cbs).onclosetag)&&void 0!==t&&t.call(r,"br",!1));else{var r=this.stack.lastIndexOf(n);if(-1!==r)if(this.cbs.onclosetag)for(var o=this.stack.length-r;o--;)this.cbs.onclosetag(this.stack.pop(),0!==o);else this.stack.length=r;else this.options.xmlMode||"p"!==n||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=e+1}},{key:"onselfclosingtag",value:function(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}},{key:"closeCurrentTag",value:function(t){var e,n,r=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===r&&(null!==(n=(e=this.cbs).onclosetag)&&void 0!==n&&n.call(e,r,!t),this.stack.pop())}},{key:"onattribname",value:function(t,e){this.startIndex=t,e=this.getSlice(t,e),this.attribname=this.lowerCaseAttributeNames?e.toLowerCase():e}},{key:"onattribdata",value:function(t,e){this.attribvalue+=this.getSlice(t,e)}},{key:"onattribentity",value:function(t){this.attribvalue+=Object(s.fromCodePoint)(t)}},{key:"onattribend",value:function(t,e){var n;this.endIndex=e,null!==(e=(n=this.cbs).onattribute)&&void 0!==e&&e.call(n,this.attribname,this.attribvalue,t===a.Double?'"':t===a.Single?"'":t===a.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}},{key:"getInstructionName",value:function(t){var e=(e=t.search(E))<0?t:t.substr(0,e);return this.lowerCaseTagNames?e.toLowerCase():e}},{key:"ondeclaration",value:function(t,e){this.endIndex=e;var n=this.getSlice(t,e);this.cbs.onprocessinginstruction&&(t=this.getInstructionName(n),this.cbs.onprocessinginstruction("!".concat(t),"!".concat(n))),this.startIndex=e+1}},{key:"onprocessinginstruction",value:function(t,e){this.endIndex=e;var n=this.getSlice(t,e);this.cbs.onprocessinginstruction&&(t=this.getInstructionName(n),this.cbs.onprocessinginstruction("?".concat(t),"?".concat(n))),this.startIndex=e+1}},{key:"oncomment",value:function(t,e,n){var r,o;this.endIndex=e,null!==(o=(r=this.cbs).oncomment)&&void 0!==o&&o.call(r,this.getSlice(t,e-n)),null!==(n=(t=this.cbs).oncommentend)&&void 0!==n&&n.call(t),this.startIndex=e+1}},{key:"oncdata",value:function(t,e,n){var r,o;this.endIndex=e,n=this.getSlice(t,e-n),this.options.xmlMode||this.options.recognizeCDATA?(null!==(o=(r=this.cbs).oncdatastart)&&void 0!==o&&o.call(r),null!==(r=(o=this.cbs).ontext)&&void 0!==r&&r.call(o,n),null!==(o=(r=this.cbs).oncdataend)&&void 0!==o&&o.call(r)):(null!==(r=(o=this.cbs).oncomment)&&void 0!==r&&r.call(o,"[CDATA[".concat(n,"]]")),null!==(n=(o=this.cbs).oncommentend)&&void 0!==n&&n.call(o)),this.startIndex=e+1}},{key:"onend",value:function(){var t,e;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;0<n;this.cbs.onclosetag(this.stack[--n],!0));}null!==(e=(t=this.cbs).onend)&&void 0!==e&&e.call(t)}},{key:"reset",value:function(){var t,e;null!==(t=(e=this.cbs).onreset)&&void 0!==t&&t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null!==(e=(t=this.cbs).onparserinit)&&void 0!==e&&e.call(t,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}},{key:"parseComplete",value:function(t){this.reset(),this.end(t)}},{key:"getSlice",value:function(t,e){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(t-this.bufferOffset,e-this.bufferOffset);e-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,e-this.bufferOffset);return n}},{key:"shiftBuffer",value:function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}},{key:"write",value:function(t){var e,n;this.ended?null!==(n=(e=this.cbs).onerror)&&void 0!==n&&n.call(e,new Error(".write() after done!")):(this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++))}},{key:"end",value:function(t){var e,n;this.ended?null!==(n=(e=this.cbs).onerror)&&void 0!==n&&n.call(e,Error(".end() after done!")):(t&&this.write(t),this.ended=!0,this.tokenizer.end())}},{key:"pause",value:function(){this.tokenizer.pause()}},{key:"resume",value:function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}},{key:"parseChunk",value:function(t){this.write(t)}},{key:"done",value:function(t){this.end(t)}}]),t}(),T=n(0);function C(t){return t.type===d.Tag||t.type===d.Script||t.type===d.Style}(g=d=d||{}).Root="root",g.Text="text",g.Directive="directive",g.Comment="comment",g.Script="script",g.Style="style",g.Tag="tag",g.CDATA="cdata",g.Doctype="doctype";var A=d.Root,O=d.Text,S=d.Directive,k=d.Comment,P=d.Script,j=d.Style,N=d.Tag,L=d.CDATA,D=d.Doctype,I=n(6);function R(t,e){var n=new T.c(void 0,e);return new x(n,e).end(t),n.root}function M(t,e){return R(t,e).children}function B(t,e,n){return n=new T.c(t,e,n),new x(n,e)}function F(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{xmlMode:!0};return Object(I.getFeed)(M(t,e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.getCodePoint=e.xmlReplacer=void 0,e.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function o(t){for(var n="",o=0;null!==(s=e.xmlReplacer.exec(t));){var i=s.index,a=t.charCodeAt(i),s=r.get(a);o=void 0!==s?(n+=t.substring(o,i)+s,i+1):(n+="".concat(t.substring(o,i),"&#x").concat((0,e.getCodePoint)(t,i).toString(16),";"),e.xmlReplacer.lastIndex+=Number(55296==(64512&a)))}return n+t.substr(o)}function i(t,e){return function(n){for(var r,o=0,i="";r=t.exec(n);)o!==r.index&&(i+=n.substring(o,r.index)),i+=e.get(r[0].charCodeAt(0)),o=r.index+1;return i+n.substring(o)}}e.getCodePoint=null!=String.prototype.codePointAt?function(t,e){return t.codePointAt(e)}:function(t,e){return 55296==(64512&t.charCodeAt(e))?1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e)},e.encodeXML=o,e.escape=o,e.escapeUTF8=i(/[&<>'"]/g,r),e.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(94),o=n(38),i=n(69),a=n(12),s=n(30),l=n(70),c=n(67),u=n(97),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||i(t)))return!t.length;var e,n=o(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(c(t))return!r(t).length;for(e in t)if(p.call(t,e))return!1;return!0}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){(function(e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e="object"==(void 0===e?"undefined":n(e))&&e&&e.Object===Object&&e,t.exports=e}).call(this,n(17))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){n=n(28)(n(16),"WeakMap"),t.exports=n},function(t,e,n){t.exports=n(40)},function(t,e,n){var r=n(252),o=n(31);t.exports=function(t,e){return t&&r(t,e,o)}},function(t,e,n){var r=n(254),o=n(69),i=n(12),a=n(70),s=n(56),l=n(97),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n,u=i(t),p=!u&&o(t),f=!u&&!p&&a(t),d=!u&&!p&&!f&&l(t),h=u||p||f||d,g=h?r(t.length,String):[],m=g.length;for(n in t)!e&&!c.call(t,n)||h&&("length"==n||f&&("offset"==n||"parent"==n)||d&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||s(n,m))||g.push(n);return g}},function(t,e){t.exports=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},function(t,e,n){var r=n(281),o=n(19);t.exports=function t(e,n,i,a,s){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,s))}},function(t,e,n){var r=n(282),o=n(159),i=n(285);t.exports=function(t,e,n,a,s,l){var c=1&n,u=t.length;if(u!=(f=e.length)&&!(c&&u<f))return!1;var p=l.get(t),f=l.get(e);if(p&&f)return p==e&&f==t;var d=-1,h=!0,g=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++d<u;){var m,v=t[d],y=e[d];if(void 0!==(m=a?c?a(y,v,d,e,t,l):a(v,y,d,t,e,l):m)){if(m)continue;h=!1;break}if(g){if(!o(e,(function(t,e){if(!i(g,e)&&(v===t||s(v,t,n,a,l)))return g.push(e)}))){h=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){h=!1;break}}return l.delete(t),l.delete(e),h}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){n=n(16).Uint8Array,t.exports=n},function(t,e,n){var r=n(162),o=n(103),i=n(31);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(102),o=n(12);t.exports=function(t,e,n){return e=e(t),o(t)?e:r(e,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(18);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){n=n(292);var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;n=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e})),t.exports=n},function(t,e,n){var r=n(57),o=n(105),i=n(319),a=n(43),s=n(58),l=n(323),c=n(112),u=n(110);c=c((function(t,e){var n={};if(null==t)return n;var c=!1;e=r(e,(function(e){return e=a(e,t),c=c||1<e.length,e})),s(t,u(t),n),c&&(n=o(n,7,l));for(var p=e.length;p--;)i(n,e[p]);return n})),t.exports=c},function(t,e,n){var r=n(28);n=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),t.exports=n},function(t,e,n){var r=n(58),o=n(31);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(102),o=n(109),i=n(103);n=n(164),n=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:n,t.exports=n},function(t,e,n){var r=n(29),o=n(109),i=n(19),a=Function.prototype,s=(n=Object.prototype,a.toString),l=n.hasOwnProperty,c=s.call(Object);t.exports=function(t){return!(!i(t)||"[object Object]"!=r(t))&&(null===(t=o(t))||"function"==typeof(t=l.call(t,"constructor")&&t.constructor)&&t instanceof t&&s.call(t)==c)}},function(t,e,n){var r=n(328);r=n(174)(r),t.exports=r},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,0<i){if(800<=++e)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(334);t.exports=function(t){return t?(t=r(t))!==1/0&&t!==-1/0?t==t?t:0:17976931348623157e292*(t<0?-1:1):0===t?t:0}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var o=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(t){var e;return 55296<=t&&t<=57343||1114111<t?65533:null!==(e=o.get(t))&&void 0!==e?e:t}e.fromCodePoint=null!==(r=String.fromCodePoint)&&void 0!==r?r:function(t){var e="";return 65535<t&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+String.fromCharCode(t)},e.replaceCodePoint=i,e.default=function(t){return(0,e.fromCodePoint)(i(t))}},function(t,e,n){n(117)("lex"),t.exports=function(t){var e,n,r,o,i="",a=0,s=-1,l=0,c=1,u="before-selector",p=[u],f={},d=[],h=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function g(t){return t?p[p.length-1-t]:u}function m(e){return t[s+(e||1)]}function v(){var t=p.pop();return u=p[p.length-1],t}function y(t){return u=t,p.push(u),p.length}function b(t){var e=u;return p[p.length-1]=u=t,e}function _(e){var n;1==(e||1)?("\n"==t[s]?(c++,a=1):a++,s++):(1<(n=t.slice(s,s+e).split("\n")).length&&(c+=n.length-1,a=1),a+=n[n.length-1].length,s+=e)}function w(){f.end={line:c,col:a},d.push(f),i="",f={}}function E(t){f={type:t,start:{line:c,col:a}}}for(;_(),e=t[s];)switch(e){case" ":switch(g()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":i+=e}break;case"\n":case"\t":case"\r":case"\f":switch(g()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":i+=e;break;case"at-value":"\n"===e&&(f.value=i.trim(),w(),v())}break;case":":switch(g()){case"name":f.name=i.trim(),i="",b("before-value");break;case"before-selector":i+=e,E("selector"),y("selector");break;case"before-value":b("value"),i+=e;break;default:i+=e}break;case";":switch(g()){case"name":case"before-value":case"value":0<i.trim().length&&(f.value=i.trim(),w()),b("before-name");break;case"value-paren":default:i+=e;break;case"at-value":f.value=i.trim(),w(),v();case"before-name":}break;case"{":switch(g()){case"selector":if("\\"===m(-1)){i+=e;break}f.text=i.trim(),w(),b("before-name"),l+=1;break;case"at-group":switch(f.name=i.trim(),f.type){case"font-face":case"viewport":case"page":y("before-name");break;default:y("before-selector")}w(),l+=1;break;case"name":case"at-rule":f.name=i.trim(),w(),y("before-name"),l+=1;break;case"comment":case"double-string":case"single-string":i+=e;break;case"before-value":b("value"),i+=e}break;case"}":switch(g()){case"before-name":case"name":case"before-value":case"value":i&&(f.value=i.trim()),f.name&&f.value&&w(),E("end"),w(),v(),"at-group"===g()&&(E("at-group-end"),w(),v()),0<l&&--l;break;case"at-group":case"before-selector":case"selector":if("\\"===m(-1)){i+=e;break}0<l&&"at-group"===g(1)&&(E("at-group-end"),w()),1<l&&v(),0<l&&--l;break;case"double-string":case"single-string":case"comment":i+=e}break;case'"':case"'":switch(g()){case"double-string":'"'===e&&"\\"!==m(-1)&&v();break;case"single-string":"'"===e&&"\\"!==m(-1)&&v();break;case"before-at-value":b("at-value"),y('"'===e?"double-string":"single-string");break;case"before-value":b("value"),y('"'===e?"double-string":"single-string");break;case"comment":break;default:"\\"!==m(-1)&&y('"'===e?"double-string":"single-string")}i+=e;break;case"/":switch(g()){case"comment":case"double-string":case"single-string":i+=e;break;case"before-value":case"selector":case"name":case"value":"*"===m(1)?(o=function(e){return 0<(e=t.slice(s).indexOf(e))&&e}("*/"))&&_(o+1):("before-value"==g()&&b("value"),i+=e);break;default:"*"===m(1)?(E("comment"),y("comment"),_()):i+=e}break;case"*":switch(g()){case"comment":"/"===m(1)?(f.text=i,_(),w(),v()):i+=e;break;case"before-selector":i+=e,E("selector"),y("selector");break;case"before-value":b("value"),i+=e;break;default:i+=e}break;case"@":switch(g()){case"comment":case"double-string":case"single-string":i+=e;break;case"before-value":b("value"),i+=e;break;default:for(var x=!1,T=0,C=h.length;!x&&T<C;++T)!function(e){var n=s+1;return e===t.slice(n,n+e.length)}(n=(r=h[T]).name||r)||(x=!0,E(n),y(r.state||"at-group"),_(n.length),r.prefix&&(f.prefix=r.prefix),r.type&&(f.type=r.type));x||(i+=e)}break;case"(":switch(g()){case"value":y("value-paren");break;case"before-value":b("value")}i+=e;break;case")":switch(g()){case"value-paren":v();break;case"before-value":b("value")}i+=e;break;default:switch(g()){case"before-selector":E("selector"),y("selector");break;case"before-name":E("property"),b("name");break;case"before-value":b("value");break;case"before-at-value":b("at-value")}i+=e}return d}},function(t,e,n){"use strict";n=[n(118),n(119),n(351)],void 0===(n=function(t,e,n){function r(e,n){return t.js_beautify(e,n)}return r.js=t.js_beautify,r.css=e.css_beautify,r.html=n.html_beautify,r.js_beautify=t.js_beautify,r.css_beautify=e.css_beautify,r.html_beautify=n.html_beautify,r}.apply(e,n))||(t.exports=n)},function(t,e){t.exports=function(t){for(var e=t.length-1;0<=e;e--){var n=t[e];n.unused&&n.all.splice(n.position,1)}}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(48),i=/^\d+$/,a=["*","all"],s="off";function l(t){return{ch:t,cm:t,em:t,ex:t,in:t,mm:t,pc:t,pt:t,px:t,q:t,rem:t,vh:t,vmax:t,vmin:t,vw:t,"%":t}}t.exports={DEFAULT:s,roundingPrecisionFrom:function(t){return o(l(s),function(t){return null==t||"boolean"==typeof t?{}:"number"==typeof t&&-1==t?l(s):"number"==typeof t?l(t):"string"==typeof t&&i.test(t)?l(parseInt(t)):"string"!=typeof t||t!=s?"object"!=r(t)?t.split(",").reduce((function(t,e){e=(n=e.split("="))[0];var n=parseInt(n[1]);return!isNaN(n)&&-1!=n||(n=s),-1<a.indexOf(e)?t=o(t,l(n)):t[e]=n,t}),{}):t:l(s)}(t))}}},function(t,e,n){var r=n(15);t.exports=function(t,e,n){for(var o,i,a=e.value.length,s=n.value.length,l=Math.max(a,s),c=Math.min(a,s)-1,u=0;u<l;u++)if(o=e.value[u]&&e.value[u][1]||o,i=n.value[u]&&n.value[u][1]||i,o!=r.COMMA&&i!=r.COMMA&&!t(o,i,u,u<=c))return!1;return!0}},function(t,e){t.exports=function(t){for(var e=t.value.length-1;0<=e;e--)if("inherit"==t.value[e][1])return!0;return!1}},function(t,e){function n(t){this.name="InvalidPropertyError",this.message=t,this.stack=(new Error).stack}n.prototype=Object.create(Error.prototype),t.exports=n.prototype.constructor=n},function(t,e){var n=/(?:^|\W)(\-\w+\-)/g;function r(t){for(var e,r=[];null!==(e=n.exec(t));)-1==r.indexOf(e[0])&&r.push(e[0]);return r}t.exports={unique:r,same:function(t,e){return r(t).sort().join(",")==r(e).sort().join(",")}}},function(t,e){var n=/\-\-.+$/;function r(t){return t.replace(n,"")}t.exports=function(t,e,n){for(var o,i,a,s,l=0,c=t.length;l<c;l++)for(o=t[l][1],a=0,s=e.length;a<s;a++){if(o==(i=e[a][1]))return!0;if(n&&r(o)==r(i))return!0}return!1}},function(t,e){t.exports=function t(e){for(var n=e.slice(0),r=0,o=n.length;r<o;r++)Array.isArray(n[r])&&(n[r]=t(n[r]));return n}},function(t,e,n){(function(t){var r=n(392),o=n(190),i=n(402),a=n(403),s=n(26),l=e;l.request=function(e,n){e="string"==typeof e?s.parse(e):i(e);var o=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||o,l=e.hostname||e.host,c=e.port;return o=e.path||"/",l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?a+"//"+l:"")+(c?":"+c:"")+o,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{},e=new r(e),n&&e.on("response",n),e},l.get=function(t,e){return(e=l.request(t,e)).end(),e},l.ClientRequest=r,l.IncomingMessage=o.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=a,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(17))},function(t,e,n){(function(t){e.fetch=s(t.fetch)&&s(t.ReadableStream),e.writableStream=s(t.WritableStream),e.abortController=s(t.AbortController),e.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),e.blobConstructor=!0}catch(t){}var n;function r(){if(void 0!==n)return n;if(t.XMLHttpRequest){n=new t.XMLHttpRequest;try{n.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){n=null}}else n=null;return n}function o(t){var e=r();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}var i=void 0!==t.ArrayBuffer,a=i&&s(t.ArrayBuffer.prototype.slice);function s(t){return"function"==typeof t}e.arraybuffer=e.fetch||i&&o("arraybuffer"),e.msstream=!e.fetch&&a&&o("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&i&&o("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!r()&&s(r().overrideMimeType),e.vbArray=s(t.VBArray),n=null}).call(this,n(17))},function(t,e,n){(function(t,r,o){var i=n(189),a=n(34),s=n(191),l=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=e.IncomingMessage=function(e,n,a,l){var c=this;if(s.Readable.call(c),c._mode=a,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){t.nextTick((function(){c.emit("close")}))})),"fetch"===a){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach((function(t,e){c.headers[e.toLowerCase()]=t,c.rawHeaders.push(e,t)})),i.writableStream){a=new WritableStream({write:function(t){return new Promise((function(e,n){c._destroyed?n():c.push(new o(t))?e():c._resumeFetch=e}))},close:function(){r.clearTimeout(l),c._destroyed||c.push(null)},abort:function(t){c._destroyed||c.emit("error",t)}});try{return void n.body.pipeTo(a).catch((function(t){r.clearTimeout(l),c._destroyed||c.emit("error",t)}))}catch(e){}}var u=n.body.getReader();!function t(){u.read().then((function(e){if(!c._destroyed){if(e.done)return r.clearTimeout(l),void c.push(null);c.push(new o(e.value)),t()}})).catch((function(t){r.clearTimeout(l),c._destroyed||c.emit("error",t)}))}()}else c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);e&&("set-cookie"===(t=e[1].toLowerCase())?(void 0===c.headers[t]&&(c.headers[t]=[]),c.headers[t].push(e[2])):void 0!==c.headers[t]?c.headers[t]+=", "+e[2]:c.headers[t]=e[2],c.rawHeaders.push(e[1],e[2]))})),c._charset="x-user-defined",i.overrideMimeType||(!(e=c.rawHeaders["mime-type"])||(e=e.match(/;\s*charset=([^;])(;|$)/))&&(c._charset=e[1].toLowerCase()),c._charset||(c._charset="utf-8"))};a(c,s.Readable),c.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},c.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==l.DONE)break;try{n=new r.VBArray(e.responseBody).toArray()}catch(e){}if(null!==n){t.push(new o(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var i=n.substr(t._pos);if("x-user-defined"===t._charset){for(var a=new o(i.length),s=0;s<i.length;s++)a[s]=255&i.charCodeAt(s);t.push(a)}else t.push(i,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==l.DONE||!e.response)break;n=e.response,t.push(new o(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==l.LOADING||!n)break;t.push(new o(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==l.LOADING)break;var c=new r.MSStreamReader;c.onprogress=function(){c.result.byteLength>t._pos&&(t.push(new o(new Uint8Array(c.result.slice(t._pos)))),t._pos=c.result.byteLength)},c.onload=function(){t.push(null)},c.readAsArrayBuffer(n)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,n(14),n(17),n(22).Buffer)},function(t,e,n){(((e=t.exports=n(192)).Stream=e).Readable=e).Writable=n(196),e.Duplex=n(50),e.Transform=n(198),e.PassThrough=n(400)},function(t,e,n){"use strict";(function(e,r){var o=n(86);t.exports=v;var i,a=n(176);function s(t,e){return t.listeners(e).length}v.ReadableState=m,n(193).EventEmitter;var l=n(194),c=n(128).Buffer,u=e.Uint8Array||function(){},p=Object.create(n(61));p.inherits=n(34),e=n(393);var f,d=void 0,h=(d=e&&e.debuglog?e.debuglog("stream"):function(){},n(394));e=n(195),p.inherits(v,l);var g=["error","close","destroy","pause","resume"];function m(t,e){var r=e instanceof(i=i||n(50));this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,a=t.readableHighWaterMark;e=this.objectMode?16:16384,this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:e,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f=f||n(197).StringDecoder,this.decoder=new f(t.encoding),this.encoding=t.encoding)}function v(t){if(i=i||n(50),!(this instanceof v))return new v(t);this._readableState=new m(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function y(t,e,n,r,o){var i,a=t._readableState;return null===e?(a.reading=!1,function(t,e){var n;e.ended||(!e.decoder||(n=e.decoder.end())&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length),e.ended=!0,w(t))}(t,a)):(i=o?i:function(t,e){return function(t){return c.isBuffer(t)||t instanceof u}(e)||"string"==typeof e||void 0===e||t.objectMode?void 0:new TypeError("Invalid non-string/buffer chunk")}(a,e))?t.emit("error",i):a.objectMode||e&&0<e.length?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):b(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?b(t,a,e,!1):x(t,a)):b(t,a,e,!1))):r||(a.reading=!1),function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function b(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&w(t)),x(t,e)}function _(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?(e.flowing&&e.length?e.buffer.head.data:e).length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return 8388608<=t?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function w(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?o.nextTick(E,t):E(t))}function E(t){d("emit readable"),t.emit("readable"),O(t)}function x(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(T,t,e))}function T(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function C(t){d("readable nexttick read 0"),t.read(0)}function A(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),O(t),e.flowing&&!e.reading&&t.read(0)}function O(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function S(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():(n?function(t,e){var n=e.head,r=1,o=n.data;for(t-=o.length;n=n.next;){var i=n.data,a=t>i.length?i.length:t;if(a===i.length?o+=i:o+=i.slice(0,t),0==(t-=a)){a===i.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n).data=i.slice(a);break}++r}return e.length-=r,o}:function(t,e){var n=c.allocUnsafe(t),r=e.head,o=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var i=r.data,a=t>i.length?i.length:t;if(i.copy(n,n.length-t,0,a),0==(t-=a)){a===i.length?(++o,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=i.slice(a);break}++o}return e.length-=o,n})(t,e),r}(t,e.buffer,e.decoder),n);var n}function k(t){var e=t._readableState;if(0<e.length)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,o.nextTick(P,e,t))}function P(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function j(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=e.destroy,v.prototype._undestroy=e.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=c.from(t,e),e=""),n=!0),y(this,t,e,!1,n)},v.prototype.unshift=function(t){return y(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return f=f||n(197).StringDecoder,this._readableState.decoder=new f(t),this._readableState.encoding=t,this},v.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),(0===e.length&&e.ended?k:w)(this),null;if(0===(t=_(t,e))&&e.ended)return 0===e.length&&k(this),null;var r=e.needReadable;return d("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",r=!0),e.ended||e.reading?d("reading or ended",r=!1):r&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=_(n,e))),null===(r=0<t?S(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&k(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}function l(){d("onend"),t.end()}i.pipesCount+=1,d("pipe count=%d opts=%j",i.pipesCount,e),e=e&&!1===e.end||t===r.stdout||t===r.stderr?v:l,i.endEmitted?o.nextTick(e):n.once("end",e),t.on("unpipe",(function e(r,o){d("onunpipe"),r===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,d("cleanup"),t.removeListener("close",g),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",h),t.removeListener("unpipe",e),n.removeListener("end",l),n.removeListener("end",v),n.removeListener("data",f),u=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}));var c=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,O(t))}}(n);t.on("drain",c);var u=!1,p=!1;function f(e){d("ondata"),(p=!1)!==t.write(e)||p||((1===i.pipesCount&&i.pipes===t||1<i.pipesCount&&-1!==j(i.pipes,t))&&!u&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function h(e){d("onerror",e),v(),t.removeListener("error",h),0===s(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",m),v()}function m(){d("onfinish"),t.removeListener("close",g),v()}function v(){d("unpipe"),n.unpipe(t)}return n.on("data",f),function(t,e,n){"function"==typeof t.prependListener?t.prependListener(e,n):t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",h),t.once("close",g),t.once("finish",m),t.emit("pipe",n),i.flowing||(d("pipe resume"),n.resume()),t},v.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t=t||e.pipes,e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,n);return this}var a=j(e.pipes,t);return-1===a||(e.pipes.splice(a,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},v.prototype.addListener=v.prototype.on=function(t,e){return e=l.prototype.on.call(this,t,e),"data"===t?!1!==this._readableState.flowing&&this.resume():"readable"===t&&((t=this._readableState).endEmitted||t.readableListening||(t.readableListening=t.needReadable=!0,t.emittedReadable=!1,t.reading?t.length&&w(this):o.nextTick(C,this))),e},v.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(A,t,e))}(this,t)),this},v.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(t){var e,n=this,r=this._readableState,o=!1;for(e in t.on("end",(function(){var t;d("wrapped end"),!r.decoder||r.ended||(t=r.decoder.end())&&t.length&&n.push(t),n.push(null)})),t.on("data",(function(e){d("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e||(r.objectMode||e&&e.length)&&(n.push(e)||(o=!0,t.pause()))})),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var i=0;i<g.length;i++)t.on(g[i],this.emit.bind(this,g[i]));return this._read=function(e){d("wrapped _read",e),o&&(o=!1,t.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=S}).call(this,n(17),n(14))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)},a=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},s=Number.isNaN||function(t){return t!=t};function l(){l.init.call(this)}t.exports=l,t.exports.once=function(t,e){return new Promise((function(n,r){function o(n){t.removeListener(e,i),r(n)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",o),n([].slice.call(arguments))}v(t,e,i,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&v(t,"error",e,{once:!0})}(t,o)}))},(l.EventEmitter=l).prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t))}function p(t){return void 0===t._maxListeners?l.defaultMaxListeners:t._maxListeners}function f(t,e,n,r){var o,i;return u(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener||n),o=t._events),i=o[e]),void 0===i?(i=o[e]=n,++t._eventsCount):("function"==typeof i?i=o[e]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),0<(n=p(t))&&i.length>n&&!i.warned&&(i.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=t,n.type=e,n.count=i.length,function(t){console&&console.warn&&console.warn(t)}(n))),t}function d(t,e,n){return(e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t={fired:!1,wrapFn:void 0,target:t,type:e,listener:n})).listener=n,t.wrapFn=e}function h(t,e,n){return void 0===(t=t._events)||void 0===(e=t[e])?[]:"function"==typeof e?n?[e.listener||e]:[e]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(e):m(e,e.length)}function g(t){var e=this._events;if(void 0!==e){if("function"==typeof(t=e[t]))return 1;if(void 0!==t)return t.length}return 0}function m(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function v(t,e,n,o){if("function"==typeof t.on)o.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+r(t));t.addEventListener(e,(function r(i){o.once&&t.removeEventListener(e,r),n(i)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},l.prototype.getMaxListeners=function(){return p(this)},l.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r,o="error"===t,a=this._events;if(void 0!==a)o=o&&void 0===a.error;else if(!o)return!1;if(o){if((r=0<e.length?e[0]:r)instanceof Error)throw r;throw(o=new Error("Unhandled error."+(r?" ("+r.message+")":""))).context=r,o}if(void 0===(t=a[t]))return!1;if("function"==typeof t)i(t,this,e);else{var s=t.length,l=m(t,s);for(n=0;n<s;++n)i(l[n],this,e)}return!0},l.prototype.addListener=function(t,e){return f(this,t,e,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(t,e){return f(this,t,e,!0)},l.prototype.once=function(t,e){return u(e),this.on(t,d(this,t,e)),this},l.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,d(this,t,e)),this},l.prototype.removeListener=function(t,e){var n,r,o,i,a;if(u(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;0<=i;i--)if(n[i]===e||n[i].listener===e){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(t){var e,n=this._events;if(void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){for(var r,o=Object.keys(n),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;0<=i;i--)this.removeListener(t,e[i]);return this},l.prototype.listeners=function(t){return h(this,t,!0)},l.prototype.rawListeners=function(t){return h(this,t,!1)},l.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return 0<this._eventsCount?a(this._events):[]}},function(t,e,n){t.exports=n(193).EventEmitter},function(t,e,n){"use strict";var r=n(86);function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(r.nextTick(o,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}))),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,n){"use strict";(function(e,r,o){var i=n(86);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;for(t.entry=null;r;){var o=r.callback;e.pendingcb--,o(void 0),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=m;var s,l=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?r:i.nextTick;m.WritableState=g,(r=Object.create(n(61))).inherits=n(34);var c,u={deprecate:n(398)},p=n(194),f=n(128).Buffer,d=o.Uint8Array||function(){};function h(){}function g(t,e){s=s||n(50);var r=e instanceof s;this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,c=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,u=(this.destroyed=!1)===t.decodeStrings,this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,o=n.writecb;(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0})(n),e?function(t,e,n,r,o){--e.pendingcb,n?(i.nextTick(o,r),i.nextTick(E,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(o(r),t._writableState.errorEmitted=!0,t.emit("error",r),E(t,e))}(t,n,r,e,o):((e=_(n))||n.corked||n.bufferProcessing||!n.bufferedRequest||b(t,n),r?l(y,t,n,e,o):y(t,n,e,o))}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function m(t){if(s=s||n(50),!(c.call(m,this)||this instanceof s))return new m(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),p.call(this)}function v(t,e,n,r,o,i,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function y(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),E(t,e)}function b(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r);(r=e.corkedRequestsFree).entry=n;for(var i=0,s=!0;n;)(o[i]=n).isBuf||(s=!1),n=n.next,i+=1;o.allBuffers=s,v(t,e,!0,e.length,o,"",r.finish),e.pendingcb++,e.lastBufferedRequest=null,r.next?(e.corkedRequestsFree=r.next,r.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,u=n.callback;if(v(t,e,!1,e.objectMode?1:l.length,l,c,u),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function _(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),E(t,e)}))}function E(t,e){var n=_(e);return n&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(w,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}o=n(195),r.inherits(m,p),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===m&&t&&t._writableState instanceof g}})):c=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,n){var r=this._writableState,o=!1,a=!r.objectMode&&function(t){return f.isBuffer(t)||t instanceof d}(t);return a&&!f.isBuffer(t)&&(t=function(t){return f.from(t)}(t)),"function"==typeof e&&(n=e,e=null),e=a?"buffer":e||r.defaultEncoding,"function"!=typeof n&&(n=h),r.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),i.nextTick(e,n)}(this,n):(a||function(t,e,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),i.nextTick(r,a),o=!1),o}(this,r,t,n))&&(r.pendingcb++,o=function(t,e,n,r,o,i){n||r!==(s=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e?e:f.from(e,n)}(e,r,o))&&(n=!0,o="buffer",r=s);var a=e.objectMode?1:r.length;e.length+=a;var s,l=e.length<e.highWaterMark;return l||(e.needDrain=!0),e.writing||e.corked?(s=e.lastBufferedRequest,e.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1):v(t,e,!1,a,r,o,i),l}(this,r,a,t,e,n)),o},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||b(this,t))},m.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,e=t=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,E(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=o.destroy,m.prototype._undestroy=o.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(14),n(396).setImmediate,n(17))},function(t,e,n){"use strict";var r=n(399).Buffer,o=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=u,this.end=p,e=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e){return 128!=(192&e[0])?(t.lastNeed=0,"<22>"):1<t.lastNeed&&1<e.length?128!=(192&e[1])?(t.lastNeed=1,"<22>"):2<t.lastNeed&&2<e.length&&128!=(192&e[2])?(t.lastNeed=2,"<22>"):void 0:void 0}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1);var n=t.toString("utf16le",e);return n&&55296<=(e=n.charCodeAt(n.length-1))&&e<=56319?(this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)):n}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function u(t,e){var n=(t.length-e)%3;return 0==n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1==n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function p(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}(e.StringDecoder=i).prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},i.prototype.end=function(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+"<22>":t},i.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var o=a(e[r]);return 0<=o?(0<o&&(t.lastNeed=o-1),o):--r<n||-2===o?0:0<=(o=a(e[r]))?(0<o&&(t.lastNeed=o-2),o):!(--r<n||-2===o)&&0<=(o=a(e[r]))?(0<o&&(2===o?o=0:t.lastNeed=o-3),o):0}(this,t,e);return this.lastNeed?(this.lastTotal=n,n=t.length-(n-this.lastNeed),t.copy(this.lastChar,0,n),t.toString("utf8",e,n)):t.toString("utf8",e)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";t.exports=o;var r=n(50);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t),this._transformState={afterTransform:function(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,(n.writecb=null)!=e&&this.push(e),r(t),(t=this._readableState).reading=!1,(t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",i)}function i(){var t=this;"function"==typeof this._flush?this._flush((function(e,n){a(t,e,n)})):a(this,null,null)}function a(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}(t=Object.create(n(61))).inherits=n(34),t.inherits(o,r),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,n){var r=this._transformState;r.writecb=n,r.writechunk=t,r.writeencoding=e,r.transforming||(e=this._readableState,(r.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark))},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},function(t,e,n){e.SourceMapGenerator=n(200).SourceMapGenerator,e.SourceMapConsumer=n(420).SourceMapConsumer,e.SourceNode=n(423).SourceNode},function(t,e,n){var r=n(201),o=n(62),i=n(202).ArraySet,a=n(419).MappingList;function s(t){this._file=o.getArg(t=t||{},"file",null),this._sourceRoot=o.getArg(t,"sourceRoot",null),this._skipValidation=o.getArg(t,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(t){var e=t.sourceRoot,n=new s({file:t.file,sourceRoot:e});return t.eachMapping((function(t){var r={generated:{line:t.generatedLine,column:t.generatedColumn}};null!=t.source&&(r.source=t.source,null!=e&&(r.source=o.relative(e,r.source)),r.original={line:t.originalLine,column:t.originalColumn},null!=t.name&&(r.name=t.name)),n.addMapping(r)})),t.sources.forEach((function(r){var i=r;null!==e&&(i=o.relative(e,r)),n._sources.has(i)||n._sources.add(i),null!=(i=t.sourceContentFor(r))&&n.setSourceContent(r,i)})),n},s.prototype.addMapping=function(t){var e=o.getArg(t,"generated"),n=o.getArg(t,"original",null),r=o.getArg(t,"source",null);t=o.getArg(t,"name",null),this._skipValidation||this._validateMapping(e,n,r,t),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=t&&(t=String(t),this._names.has(t)||this._names.add(t)),this._mappings.add({generatedLine:e.line,generatedColumn:e.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:t})},s.prototype.setSourceContent=function(t,e){null!=this._sourceRoot&&(t=o.relative(this._sourceRoot,t)),null!=e?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(t)]=e):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(t)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(t,e,n){var r=e;if(null==e){if(null==t.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=t.file}var a=this._sourceRoot;null!=a&&(r=o.relative(a,r));var s=new i,l=new i;this._mappings.unsortedForEach((function(e){e.source!==r||null==e.originalLine||null!=(i=t.originalPositionFor({line:e.originalLine,column:e.originalColumn})).source&&(e.source=i.source,null!=n&&(e.source=o.join(n,e.source)),null!=a&&(e.source=o.relative(a,e.source)),e.originalLine=i.line,e.originalColumn=i.column,null!=i.name&&(e.name=i.name));var i=e.source;null==i||s.has(i)||s.add(i),null==(e=e.name)||l.has(e)||l.add(e)}),this),this._sources=s,this._names=l,t.sources.forEach((function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=o.join(n,e)),null!=a&&(e=o.relative(a,e)),this.setSourceContent(e,r))}),this)},s.prototype._validateMapping=function(t,e,n,r){if(e&&"number"!=typeof e.line&&"number"!=typeof e.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(t&&"line"in t&&"column"in t&&0<t.line&&0<=t.column)||e||n||r)&&!(t&&"line"in t&&"column"in t&&e&&"line"in e&&"column"in e&&0<t.line&&0<=t.column&&0<e.line&&0<=e.column&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:e,name:r}))},s.prototype._serializeMappings=function(){for(var t,e,n,i=0,a=1,s=0,l=0,c=0,u=0,p="",f=this._mappings.toArray(),d=0,h=f.length;d<h;d++){if(t="",(e=f[d]).generatedLine!==a)for(i=0;e.generatedLine!==a;)t+=";",a++;else if(0<d){if(!o.compareByGeneratedPositionsInflated(e,f[d-1]))continue;t+=","}t+=r.encode(e.generatedColumn-i),i=e.generatedColumn,null!=e.source&&(n=this._sources.indexOf(e.source),t+=r.encode(n-u),u=n,t+=r.encode(e.originalLine-1-l),l=e.originalLine-1,t+=r.encode(e.originalColumn-s),s=e.originalColumn,null!=e.name&&(n=this._names.indexOf(e.name),t+=r.encode(n-c),c=n)),p+=t}return p},s.prototype._generateSourcesContent=function(t,e){return t.map((function(t){return this._sourcesContents?(null!=e&&(t=o.relative(e,t)),t=o.toSetString(t),Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null):null}),this)},s.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(t.file=this._file),null!=this._sourceRoot&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=s},function(t,e,n){var r=n(418);e.encode=function(t){for(var e,n="",o=function(t){return t<0?1+(-t<<1):t<<1}(t);e=31&o,0<(o>>>=5)&&(e|=32),n+=r.encode(e),0<o;);return n},e.decode=function(t,e,n){var o,i,a=t.length,s=0,l=0;do{if(a<=e)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=r.decode(t.charCodeAt(e++))))throw new Error("Invalid base64 digit: "+t.charAt(e-1))}while(o=!!(32&i),s+=(i&=31)<<l,l+=5,o);n.value=function(t){var e=t>>1;return 1==(1&t)?-e:e}(s),n.rest=e}},function(t,e,n){var r=n(62),o=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function a(){this._array=[],this._set=i?new Map:Object.create(null)}a.fromArray=function(t,e){for(var n=new a,r=0,o=t.length;r<o;r++)n.add(t[r],e);return n},a.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(t,e){var n=i?t:r.toSetString(t),a=i?this.has(t):o.call(this._set,n),s=this._array.length;a&&!e||this._array.push(t),a||(i?this._set.set(t,s):this._set[n]=s)},a.prototype.has=function(t){return i?this._set.has(t):(t=r.toSetString(t),o.call(this._set,t))},a.prototype.indexOf=function(t){if(i){var e=this._set.get(t);if(0<=e)return e}else if(e=r.toSetString(t),o.call(this._set,e))return this._set[e];throw new Error('"'+t+'" is not in the set.')},a.prototype.at=function(t){if(0<=t&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},a.prototype.toArray=function(){return this._array.slice()},e.ArraySet=a},function(t,e,n){var r=n(21);t.exports=function(t,e,n){var o=r.resolve(""),i=(e=r.resolve(o,e),r.dirname(e));return t.sources=t.sources.map((function(t){return r.relative(n,r.resolve(i,t))})),t}},function(t,e,n){var r=n(21),o=n(26);t.exports=function(t,e){var n=r.dirname(e);return t.sources=t.sources.map((function(t){return o.resolve(n,t)})),t}},function(t,e,n){var r=n(123),o=/^\(/,i=/\)$/,a=/^@import/i,s=/['"]\s*/,l=/\s*['"]/,c=/^url\(\s*/i,u=/\s*\)/i;t.exports=function(t){return t=t.replace(a,"").trim().replace(c,"(").replace(u,")").replace(s,"").replace(l,""),[(t=r(t," "))[0].replace(o,"").replace(i,""),t.slice(1).join(" ")]}},function(t,e){t.exports=function(t,e){return("@import "+t+" "+e).trim()}},function(t,e){var n=/^@import/i;t.exports=function(t){return n.test(t)}},function(t,e,n){"use strict";function r(t,e){var n={};return t.forEach((function(t){n[t]=1})),e?function(t){return 1===n[t.toLowerCase()]}:function(t){return 1===n[t]}}e.createMap=r,e.createMapFromString=function(t,e){return r(t.split(/,/),e)}},function(t,e,n){"use strict";t.exports={ABSOLUTE:"absolute",PATH_RELATIVE:"pathRelative",ROOT_RELATIVE:"rootRelative",SHORTEST:"shortest"}},function(t,e,n){var r=n(24),o=n(211);t.exports=o?function(t,e){return o.set(t,e),t}:r},function(t,e,n){n=(n=n(152))&&new n,t.exports=n},function(t,e,n){var r=n(213),o=n(214),i=n(459),a=n(89),s=n(215),l=n(220),c=n(471),u=n(139),p=n(16);t.exports=function t(e,n,f,d,h,g,m,v,y,b){var _=128&n,w=1&n,E=2&n,x=24&n,T=512&n,C=E?void 0:a(e);return function A(){for(var O,S=arguments.length,k=Array(S),P=S;P--;)k[P]=arguments[P];if(x&&(N=l(A),O=i(k,N)),d&&(k=r(k,d,h,x)),g&&(k=o(k,g,m,x)),S-=O,x&&S<b){var j=u(k,N);return s(e,n,t,A.placeholder,f,k,j,v,y,b-S)}var N=w?f:this;return j=E?N[e]:e,S=k.length,v?k=c(k,v):T&&1<S&&k.reverse(),_&&y<S&&(k.length=y),(j=this&&this!==p&&this instanceof A?C||a(j):j).apply(N,k)}}},function(t,e){var n=Math.max;t.exports=function(t,e,r,o){for(var i=-1,a=t.length,s=r.length,l=-1,c=e.length,u=n(a-s,0),p=Array(c+u),f=!o;++l<c;)p[l]=e[l];for(;++i<s;)(f||i<a)&&(p[r[i]]=t[i]);for(;u--;)p[l++]=t[i++];return p}},function(t,e){var n=Math.max;t.exports=function(t,e,r,o){for(var i=-1,a=t.length,s=-1,l=r.length,c=-1,u=e.length,p=n(a-l,0),f=Array(p+u),d=!o;++i<p;)f[i]=t[i];for(var h=i;++c<u;)f[h+c]=e[c];for(;++s<l;)(d||i<a)&&(f[h+r[s]]=t[i++]);return f}},function(t,e,n){var r=n(216),o=n(218),i=n(219);t.exports=function(t,e,n,a,s,l,c,u,p,f){var d=8&e;return e|=d?32:64,4&(e&=~(d?64:32))||(e&=-4),n=n.apply(void 0,f=[t,e,s,d?l:void 0,d?c:void 0,d?void 0:l,d?void 0:c,u,p,f]),r(t)&&o(n,f),n.placeholder=a,i(n,t,e)}},function(t,e,n){var r=n(135),o=n(137),i=n(217),a=n(462);t.exports=function(t){var e=i(t),n=a[e];return"function"==typeof n&&e in r.prototype&&(t===n||!!(n=o(n))&&t===n[0])}},function(t,e,n){var r=n(461),o=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",n=r[e],i=o.call(r,e)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==t)return a.name}return e}},function(t,e,n){var r=n(210);r=n(174)(r),t.exports=r},function(t,e,n){var r=n(464),o=n(465),i=n(173),a=n(466);t.exports=function(t,e,n){return i(t,o(e+="",a(r(e),n)))}},function(t,e){t.exports=function(t){return t.placeholder}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},function(t,e,n){n=n(504)((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),t.exports=n},function(t,e,n){var r=n(45),o=/[\\^$.*+?()[\]{}|]/g,i=RegExp(o.source);t.exports=function(t){return(t=r(t))&&i.test(t)?t.replace(o,"\\$&"):t}},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.assignComponents=s,e.registerComponent=function(t){s(a,[t])},e.default=void 0;var i=o(n(222)),a={};function s(t,e){var n,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0;return{s:e=function(){},n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;t[a.componentName||(0,i.default)(a.name)]=a}}catch(t){o.e(t)}finally{o.f()}}e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e="",n=0;n<t;n+=1)e+=Math.floor(16*Math.random()).toString(16);return e},t.exports=e.default},function(t,e,n){var r=n(545),o=n(546),i=n(24);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{td:{background:this.getAttribute("background-color"),"font-size":this.getAttribute("font-size"),"font-family":this.getAttribute("font-family"),"font-weight":this.getAttribute("font-weight"),"letter-spacing":this.getAttribute("letter-spacing"),"line-height":this.getAttribute("line-height"),color:this.getAttribute("color"),"padding-bottom":this.getAttribute("padding-bottom"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-top":this.getAttribute("padding-top"),padding:this.getAttribute("padding")},table:{width:"100%","border-bottom":this.getAttribute("border")}}}},{key:"renderContent",value:function(){return"\n <td\n ".concat(this.htmlAttributes({class:this.getAttribute("css-class"),style:"td"}),"\n >\n ").concat(this.getContent(),"\n </td>\n ")}},{key:"render",value:function(){return"\n <div\n ".concat(this.htmlAttributes({class:"mj-accordion-content"}),"\n >\n <table\n ").concat(this.htmlAttributes({cellspacing:"0",cellpadding:"0",style:"table"}),"\n >\n <tbody>\n <tr>\n ").concat(this.renderContent(),"\n </tr>\n </tbody>\n </table>\n </div>\n ")}}]),n}(n(9).BodyComponent),e.default=n,(0,r.default)(n,"componentName","mj-accordion-text"),(0,r.default)(n,"endingTag",!0),(0,r.default)(n,"allowedAttributes",{"background-color":"color","font-size":"unit(px)","font-family":"string","font-weight":"string","letter-spacing":"unitWithNegative(px,em)","line-height":"unit(px,%,)",color:"color","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}"}),(0,r.default)(n,"defaultAttributes",{"font-size":"13px","line-height":"1",padding:"16px"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=n(9),u=r(n(53));c=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{td:{width:"100%","background-color":this.getAttribute("background-color"),color:this.getAttribute("color"),"font-size":this.getAttribute("font-size"),"font-family":this.getAttribute("font-family"),"padding-bottom":this.getAttribute("padding-bottom"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-top":this.getAttribute("padding-top"),padding:this.getAttribute("padding")},table:{width:"100%","border-bottom":this.getAttribute("border")},td2:{padding:"16px",background:this.getAttribute("background-color"),"vertical-align":this.getAttribute("icon-align")},img:{display:"none",width:this.getAttribute("icon-width"),height:this.getAttribute("icon-height")}}}},{key:"renderTitle",value:function(){return"\n <td\n ".concat(this.htmlAttributes({class:this.getAttribute("css-class"),style:"td"}),"\n >\n ").concat(this.getContent(),"\n </td>\n ")}},{key:"renderIcons",value:function(){return(0,u.default)("\n <td\n ".concat(this.htmlAttributes({class:"mj-accordion-ico",style:"td2"}),"\n >\n <img\n ").concat(this.htmlAttributes({src:this.getAttribute("icon-wrapped-url"),alt:this.getAttribute("icon-wrapped-alt"),class:"mj-accordion-more",style:"img"}),"\n />\n <img\n ").concat(this.htmlAttributes({src:this.getAttribute("icon-unwrapped-url"),alt:this.getAttribute("icon-unwrapped-alt"),class:"mj-accordion-less",style:"img"}),"\n />\n </td>\n "),!0)}},{key:"render",value:function(){var t=[this.renderTitle(),this.renderIcons()];return t=("right"===this.getAttribute("icon-position")?t:t.reverse()).join("\n"),"\n <div ".concat(this.htmlAttributes({class:"mj-accordion-title"}),">\n <table\n ").concat(this.htmlAttributes({cellspacing:"0",cellpadding:"0",style:"table"}),"\n >\n <tbody>\n <tr>\n ").concat(t,"\n </tr>\n </tbody>\n </table>\n </div>\n ")}}]),n}(c.BodyComponent),e.default=c,(0,l.default)(c,"componentName","mj-accordion-title"),(0,l.default)(c,"endingTag",!0),(0,l.default)(c,"allowedAttributes",{"background-color":"color",color:"color","font-size":"unit(px)","font-family":"string","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}"}),(0,l.default)(c,"defaultAttributes",{"font-size":"13px",padding:"16px"}),t.exports=e.default},function(t,e,n){var r=n(65)("join",n(566));r.placeholder=n(51),t.exports=r},function(t,e,n){var r=n(65)("identity",n(24),n(567));r.placeholder=n(51),t.exports=r},function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=l(n(3)),u=l(n(7)),p=l(n(4)),f=l(n(5)),d=l(n(8)),h=l(n(140)),g=l(n(229)),m=l(n(230)),v=(l=l(n(133)),n(9)),y=(0,l.default)((0,h.default)(m.default),(0,g.default)(" "));g=function(t){(0,p.default)(n,t);var e=(0,f.default)(n);function n(){return(0,c.default)(this,n),e.apply(this,arguments)}return(0,u.default)(n,[{key:"getChildContext",value:function(){var t=this.getBoxWidths().box;return s(s({},this.context),{},{containerWidth:"".concat(t,"px")})}},{key:"getStyles",value:function(){var t=this.context.containerWidth,e=this.isFullWidth(),n=this.getAttribute("background-url")?{background:this.getBackground(),"background-position":this.getBackgroundString(),"background-repeat":this.getAttribute("background-repeat"),"background-size":this.getAttribute("background-size")}:{background:this.getAttribute("background-color"),"background-color":this.getAttribute("background-color")};return{tableFullwidth:s(s({},e?n:{}),{},{width:"100%","border-radius":this.getAttribute("border-radius")}),table:s(s({},e?{}:n),{},{width:"100%","border-radius":this.getAttribute("border-radius")}),td:{border:this.getAttribute("border"),"border-bottom":this.getAttribute("border-bottom"),"border-left":this.getAttribute("border-left"),"border-right":this.getAttribute("border-right"),"border-top":this.getAttribute("border-top"),direction:this.getAttribute("direction"),"font-size":"0px",padding:this.getAttribute("padding"),"padding-bottom":this.getAttribute("padding-bottom"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-top":this.getAttribute("padding-top"),"text-align":this.getAttribute("text-align")},div:s(s({},e?{}:n),{},{margin:"0px auto","border-radius":this.getAttribute("border-radius"),"max-width":t}),innerDiv:{"line-height":"0","font-size":"0"}}}},{key:"getBackground",value:function(){return y([this.getAttribute("background-color")].concat(function(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.hasBackground()?["url('".concat(this.getAttribute("background-url"),"')"),this.getBackgroundString(),"/ ".concat(this.getAttribute("background-size")),this.getAttribute("background-repeat")]:[])))}},{key:"getBackgroundString",value:function(){var t=(e=this.getBackgroundPosition()).posX,e=e.posY;return"".concat(t," ").concat(e)}},{key:"getBackgroundPosition",value:function(){var t=(e=this.parseBackgroundPosition()).x,e=e.y;return{posX:this.getAttribute("background-position-x")||t,posY:this.getAttribute("background-position-y")||e}}},{key:"parseBackgroundPosition",value:function(){var t=this.getAttribute("background-position").split(" ");if(1!==t.length)return 2!==t.length?{x:"center",y:"top"}:(e=t[0],t=t[1],["top","bottom"].includes(e)||"center"===e&&["left","right"].includes(t)?{x:t,y:e}:{x:e,y:t});var e=t[0];return["top","bottom"].includes(e)?{x:"center",y:e}:{x:e,y:"center"}}},{key:"hasBackground",value:function(){return null!=this.getAttribute("background-url")}},{key:"isFullWidth",value:function(){return"full-width"===this.getAttribute("full-width")}},{key:"renderBefore",value:function(){var t=this.context.containerWidth,e=this.getAttribute("background-color")?{bgcolor:this.getAttribute("background-color")}:{};return"\n \x3c!--[if mso | IE]>\n <table\n ".concat(this.htmlAttributes(s({align:"center",border:"0",cellpadding:"0",cellspacing:"0",class:(0,v.suffixCssClasses)(this.getAttribute("css-class"),"outlook"),role:"presentation",style:{width:"".concat(t)},width:parseInt(t,10)},e)),'\n >\n <tr>\n <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">\n <![endif]--\x3e\n ')}},{key:"renderAfter",value:function(){return"\n \x3c!--[if mso | IE]>\n </td>\n </tr>\n </table>\n <![endif]--\x3e\n "}},{key:"renderWrappedChildren",value:function(){var t=this.props.children;return"\n \x3c!--[if mso | IE]>\n <tr>\n <![endif]--\x3e\n ".concat(this.renderChildren(t,{renderer:function(t){return t.constructor.isRawElement()?t.render():"\n \x3c!--[if mso | IE]>\n <td\n ".concat(t.htmlAttributes({align:t.getAttribute("align"),class:(0,v.suffixCssClasses)(t.getAttribute("css-class"),"outlook"),style:"tdOutlook"}),"\n >\n <![endif]--\x3e\n ").concat(t.render(),"\n \x3c!--[if mso | IE]>\n </td>\n <![endif]--\x3e\n ")}}),"\n\n \x3c!--[if mso | IE]>\n </tr>\n <![endif]--\x3e\n ")}},{key:"renderWithBackground",value:function(t){function e(t){return/^\d+(\.\d+)?%$/.test(t)}var n=this,o=this.isFullWidth(),i=this.context.containerWidth,a={},l=(f=this.getBackgroundPosition()).posX,c=f.posY;switch(l){case"left":l="0%";break;case"center":l="50%";break;case"right":l="100%";break;default:e(l)||(l="50%")}switch(c){case"top":c="0%";break;case"center":c="50%";break;case"bottom":c="100%";break;default:e(c)||(c="0%")}var u=r(["x","y"].map((function(t){var r="x"===t,o="repeat"===n.getAttribute("background-repeat"),i=r?l:c,a=r?l:c;return e(i)?(t=i.match(/^(\d+(\.\d+)?)%$/)[1],t=parseInt(t,10)/100,a=i=o?t:(100*t-50)/100):i=a=o?r?"0.5":"0":r?"0":"-0.5",[a,i]}),this),2),p=(d=r(u[0],2))[0],f=d[1],d=(u=(d=r(u[1],2))[0],d[1]);"cover"===this.getAttribute("background-size")||"contain"===this.getAttribute("background-size")?a={size:"1,1",aspect:"cover"===this.getAttribute("background-size")?"atleast":"atmost"}:"auto"!==this.getAttribute("background-size")&&(a=1===(h=this.getAttribute("background-size").split(" ")).length?{size:this.getAttribute("background-size"),aspect:"atmost"}:{size:h.join(",")});var h="no-repeat"===this.getAttribute("background-repeat")?"frame":"tile";return"auto"===this.getAttribute("background-size")&&(h="tile",f=p=.5,d=u=0),"\n \x3c!--[if mso | IE]>\n <v:rect ".concat(this.htmlAttributes({style:o?{"mso-width-percent":"1000"}:{width:i},"xmlns:v":"urn:schemas-microsoft-com:vml",fill:"true",stroke:"false"}),">\n <v:fill ").concat(this.htmlAttributes(s({origin:"".concat(p,", ").concat(u),position:"".concat(f,", ").concat(d),src:this.getAttribute("background-url"),color:this.getAttribute("background-color"),type:h},a)),' />\n <v:textbox style="mso-fit-shape-to-text:true" inset="0,0,0,0">\n <![endif]--\x3e\n ').concat(t,"\n \x3c!--[if mso | IE]>\n </v:textbox>\n </v:rect>\n <![endif]--\x3e\n ")}},{key:"renderSection",value:function(){var t=this.hasBackground();return"\n <div ".concat(this.htmlAttributes({class:this.isFullWidth()?null:this.getAttribute("css-class"),style:"div"}),">\n ").concat(t?"<div ".concat(this.htmlAttributes({style:"innerDiv"}),">"):"","\n <table\n ").concat(this.htmlAttributes({align:"center",background:this.isFullWidth()?null:this.getAttribute("background-url"),border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table"}),"\n >\n <tbody>\n <tr>\n <td\n ").concat(this.htmlAttributes({style:"td"}),'\n >\n \x3c!--[if mso | IE]>\n <table role="presentation" border="0" cellpadding="0" cellspacing="0">\n <![endif]--\x3e\n ').concat(this.renderWrappedChildren(),"\n \x3c!--[if mso | IE]>\n </table>\n <![endif]--\x3e\n </td>\n </tr>\n </tbody>\n </table>\n ").concat(t?"</div>":"","\n </div>\n ")}},{key:"renderFullWidth",value:function(){var t=this.hasBackground()?this.renderWithBackground("\n ".concat(this.renderBefore(),"\n ").concat(this.renderSection(),"\n ").concat(this.renderAfter(),"\n ")):"\n ".concat(this.renderBefore(),"\n ").concat(this.renderSection(),"\n ").concat(this.renderAfter(),"\n ");return"\n <table\n ".concat(this.htmlAttributes({align:"center",class:this.getAttribute("css-class"),background:this.getAttribute("background-url"),border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"tableFullwidth"}),"\n >\n <tbody>\n <tr>\n <td>\n ").concat(t,"\n </td>\n </tr>\n </tbody>\n </table>\n ")}},{key:"renderSimple",value:function(){var t=this.renderSection();return"\n ".concat(this.renderBefore(),"\n ").concat(this.hasBackground()?this.renderWithBackground(t):t,"\n ").concat(this.renderAfter(),"\n ")}},{key:"render",value:function(){return this.isFullWidth()?this.renderFullWidth():this.renderSimple()}}]),n}(v.BodyComponent),e.default=g,(0,d.default)(g,"componentName","mj-section"),(0,d.default)(g,"allowedAttributes",{"background-color":"color","background-url":"string","background-repeat":"enum(repeat,no-repeat)","background-size":"string","background-position":"string","background-position-x":"string","background-position-y":"string",border:"string","border-bottom":"string","border-left":"string","border-radius":"string","border-right":"string","border-top":"string",direction:"enum(ltr,rtl)","full-width":"enum(full-width,false,)",padding:"unit(px,%){1,4}","padding-top":"unit(px,%)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","text-align":"enum(left,center,right)","text-padding":"unit(px,%){1,4}"}),(0,d.default)(g,"defaultAttributes",{"background-repeat":"repeat","background-size":"auto","background-position":"top center",direction:"ltr",padding:"20px 0","text-align":"center","text-padding":"4px 4px 4px 0"}),t.exports=e.default},function(t,e,n){"use strict";n.r(e),n.d(e,"load",(function(){return Ui})),n.d(e,"html",(function(){return _})),n.d(e,"xml",(function(){return w})),n.d(e,"text",(function(){return E})),n.d(e,"contains",(function(){return Hi})),n.d(e,"merge",(function(){return Vi})),n.d(e,"parseHTML",(function(){return qi})),n.d(e,"root",(function(){return zi}));var r={};n.r(r),n.d(r,"html",(function(){return _})),n.d(r,"xml",(function(){return w})),n.d(r,"text",(function(){return E})),n.d(r,"parseHTML",(function(){return x})),n.d(r,"root",(function(){return T})),n.d(r,"contains",(function(){return C})),n.d(r,"merge",(function(){return A}));var o={};n.r(o),n.d(o,"attr",(function(){return G})),n.d(o,"prop",(function(){return K})),n.d(o,"data",(function(){return Q})),n.d(o,"val",(function(){return Z})),n.d(o,"removeAttr",(function(){return et})),n.d(o,"hasClass",(function(){return nt})),n.d(o,"addClass",(function(){return rt})),n.d(o,"removeClass",(function(){return ot})),n.d(o,"toggleClass",(function(){return it}));var i={};n.r(i),n.d(i,"find",(function(){return Be})),n.d(i,"parent",(function(){return qe})),n.d(i,"parents",(function(){return ze})),n.d(i,"parentsUntil",(function(){return Ge})),n.d(i,"closest",(function(){return We})),n.d(i,"next",(function(){return Ye})),n.d(i,"nextAll",(function(){return Ke})),n.d(i,"nextUntil",(function(){return $e})),n.d(i,"prev",(function(){return Xe})),n.d(i,"prevAll",(function(){return Qe})),n.d(i,"prevUntil",(function(){return Ze})),n.d(i,"siblings",(function(){return Je})),n.d(i,"children",(function(){return tn})),n.d(i,"contents",(function(){return en})),n.d(i,"each",(function(){return nn})),n.d(i,"map",(function(){return rn})),n.d(i,"filter",(function(){return an})),n.d(i,"filterArray",(function(){return sn})),n.d(i,"is",(function(){return ln})),n.d(i,"not",(function(){return cn})),n.d(i,"has",(function(){return un})),n.d(i,"first",(function(){return pn})),n.d(i,"last",(function(){return fn})),n.d(i,"eq",(function(){return dn})),n.d(i,"get",(function(){return hn})),n.d(i,"toArray",(function(){return gn})),n.d(i,"index",(function(){return mn})),n.d(i,"slice",(function(){return vn})),n.d(i,"end",(function(){return yn})),n.d(i,"add",(function(){return bn})),n.d(i,"addBack",(function(){return _n}));var a={};n.r(a),n.d(a,"_makeDomArray",(function(){return Cn})),n.d(a,"appendTo",(function(){return Sn})),n.d(a,"prependTo",(function(){return kn})),n.d(a,"append",(function(){return Pn})),n.d(a,"prepend",(function(){return jn})),n.d(a,"wrap",(function(){return Ln})),n.d(a,"wrapInner",(function(){return Dn})),n.d(a,"unwrap",(function(){return In})),n.d(a,"wrapAll",(function(){return Rn})),n.d(a,"after",(function(){return Mn})),n.d(a,"insertAfter",(function(){return Bn})),n.d(a,"before",(function(){return Fn})),n.d(a,"insertBefore",(function(){return Un})),n.d(a,"remove",(function(){return Hn})),n.d(a,"replaceWith",(function(){return Vn})),n.d(a,"empty",(function(){return qn})),n.d(a,"html",(function(){return zn})),n.d(a,"toString",(function(){return Gn})),n.d(a,"text",(function(){return Wn})),n.d(a,"clone",(function(){return Yn}));var s={};n.r(s),n.d(s,"css",(function(){return Xn}));var l={};n.r(l),n.d(l,"serialize",(function(){return er})),n.d(l,"serializeArray",(function(){return nr}));var c={};function u(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n.r(c),n.d(c,"NS",(function(){return yr})),n.d(c,"ATTRS",(function(){return br})),n.d(c,"DOCUMENT_MODE",(function(){return _r})),n.d(c,"TAG_NAMES",(function(){return wr})),n.d(c,"TAG_ID",(function(){return Er})),n.d(c,"getTagID",(function(){return Ar})),n.d(c,"SPECIAL_ELEMENTS",(function(){return Sr})),n.d(c,"isNumberedHeader",(function(){return kr})),n.d(c,"hasUnescapedText",(function(){return jr}));var f={xml:!1,decodeEntities:!0},d={_useHtmlParser2:!0,xmlMode:!0};function h(t){return null!=t&&t.xml?"boolean"==typeof t.xml?d:p(p({},d),t.xml):null!=t?t:void 0}var g=n(6);function m(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e,n){return t?t(null!=e?e:t._root.children,null,void 0,n).toString():""}function _(t,e){return b(this,function(t,e){return!("object"!==y(t)||null==t||"length"in t||"type"in t)}(t)?void(e=t):t,v(v(v({},f),null==this?void 0:this._options),h(null!=e?e:{})))}function w(t){return b(this,t,v(v({},this._options),{},{xmlMode:!0}))}function E(t){for(var e=t||(this?this.root():[]),n="",r=0;r<e.length;r++)n+=Object(g.textContent)(e[r]);return n}function x(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"boolean"==typeof e&&e;return t&&"string"==typeof t?("boolean"==typeof e&&(n=e),t=this.load(t,f,!1),n||t("script").remove(),t.root()[0].children.slice()):null}function T(){return this(this._root)}function C(t,e){if(e===t)return!1;for(var n=e;n&&n!==n.parent;)if((n=n.parent)===t)return!0;return!1}function A(t,e){if(O(t)&&O(e)){for(var n=t.length,r=+e.length,o=0;o<r;o++)t[n++]=e[o];return t.length=n,t}}function O(t){if(Array.isArray(t))return 1;if("object"===y(t)&&Object.prototype.hasOwnProperty.call(t,"length")&&"number"==typeof t.length&&!(t.length<0)){for(var e=0;e<t.length;e++)if(!(e in t))return;return 1}}var S,k=n(0);function P(t){return null!=t.cheerio}function j(t,e){for(var n=t.length,r=0;r<n;r++)e(t[r],r);return t}function N(t){t="length"in t?Array.prototype.map.call(t,(function(t){return Object(k.g)(t,!0)})):[Object(k.g)(t,!0)];var e=new k.b(t);return t.forEach((function(t){t.parent=e})),t}function L(t){var e=t.indexOf("<");if(!(e<0||e>t.length-3)){var n=t.charCodeAt(e+1);return(n>=S.LowerA&&n<=S.LowerZ||n>=S.UpperA&&n<=S.UpperZ||n===S.Exclamation)&&t.includes(">",e+2)}}function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}(de=S=S||{})[de.LowerA=97]="LowerA",de[de.LowerZ=122]="LowerZ",de[de.UpperA=65]="UpperA",de[de.UpperZ=90]="UpperZ",de[de.Exclamation=33]="Exclamation";var I,R,M=Object.prototype.hasOwnProperty,B=/\s+/,F="data-",U={null:null,true:!0,false:!1},H=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,V=/^{[^]*}$|^\[[^]*]$/;function q(t,e,n){var r;if(t&&Object(k.m)(t))return null!==(r=t.attribs)&&void 0!==r||(t.attribs={}),e?M.call(t.attribs,e)?!n&&H.test(e)?e:t.attribs[e]:"option"===t.name&&"value"===e?E(t.children):"input"!==t.name||"radio"!==t.attribs.type&&"checkbox"!==t.attribs.type||"value"!==e?void 0:"on":t.attribs}function z(t,e,n){null===n?J(t,e):t.attribs[e]="".concat(n)}function G(t,e){if("object"!==D(t)&&void 0===e)return 1<arguments.length?this:q(this[0],t,this.options.xmlMode);if("function"!=typeof e)return j(this,(function(n){Object(k.m)(n)&&("object"===D(t)?Object.keys(t).forEach((function(e){var r=t[e];z(n,e,r)})):z(n,t,e))}));if("string"!=typeof t)throw new Error("Bad combination of arguments.");return j(this,(function(n,r){Object(k.m)(n)&&z(n,t,e.call(n,r,n.attribs[t]))}))}function W(t,e,n){return e in t?t[e]:!n&&H.test(e)?void 0!==q(t,e,!1):q(t,e,n)}function Y(t,e,n,r){e in t?t[e]=n:z(t,e,!r&&H.test(e)?n?"":null:"".concat(n))}function K(t,e){var n=this;if("string"==typeof t&&void 0===e){var r=this[0];if(!r||!Object(k.m)(r))return;switch(t){case"style":var o=this.css(),i=Object.keys(o);return i.forEach((function(t,e){o[e]=t})),o.length=i.length,o;case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":return i=null===(i=r.attribs)||void 0===i?void 0:i[t],"undefined"==typeof URL||("href"!==t||"a"!==r.tagName&&"link"!==r.name)&&("src"!==t||"img"!==r.tagName&&"iframe"!==r.tagName&&"audio"!==r.tagName&&"video"!==r.tagName&&"source"!==r.tagName)||void 0===i||!this.options.baseURI?i:new URL(i,this.options.baseURI).href;case"innerText":return Object(g.innerText)(r);case"textContent":return Object(g.textContent)(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return W(r,t,this.options.xmlMode)}}if("object"===D(t)||void 0!==e){if("function"!=typeof e)return j(this,(function(r){Object(k.m)(r)&&("object"===D(t)?Object.keys(t).forEach((function(e){var o=t[e];Y(r,e,o,n.options.xmlMode)})):Y(r,t,e,n.options.xmlMode))}));if("object"===D(t))throw new Error("Bad combination of arguments.");return j(this,(function(r,o){Object(k.m)(r)&&Y(r,t,e.call(r,o,W(r,t,n.options.xmlMode)),n.options.xmlMode)}))}}function $(t,e,n){var r=t;null!==(t=r.data)&&void 0!==t||(r.data={}),"object"===D(e)?Object.assign(r.data,e):"string"==typeof e&&void 0!==n&&(r.data[e]=n)}function X(t,e){for(var n,r,o=null==e?(n=Object.keys(t.attribs).filter((function(t){return t.startsWith(F)}))).map((function(t){return function(t){return t.replace(/[_.-](\w|$)/g,(function(t,e){return e.toUpperCase()}))}(t.slice(F.length))})):(n=[F+function(t){return t.replace(/[A-Z]/g,"-$&").toLowerCase()}(e)],[e]),i=0;i<n.length;++i){var a=n[i],s=o[i];if(M.call(t.attribs,a)&&!M.call(t.data,s)){if(r=t.attribs[a],M.call(U,r))r=U[r];else if(r===String(Number(r)))r=Number(r);else if(V.test(r))try{r=JSON.parse(r)}catch(t){}t.data[s]=r}}return null==e?t.data:r}function Q(t,e){var n=this[0];if(n&&Object(k.m)(n)){var r=n;return null!==(n=r.data)&&void 0!==n||(r.data={}),t?"object"===D(t)||void 0!==e?(j(this,(function(n){Object(k.m)(n)&&("object"===D(t)?$(n,t):$(n,t,e))})),this):M.call(r.data,t)?r.data[t]:X(r,t):X(r)}}function Z(t){var e=0===arguments.length,n=this[0];if(!n||!Object(k.m)(n))return e?void 0:this;switch(n.name){case"textarea":return this.text(t);case"select":var r=this.find("option:selected");if(e)return this.attr("multiple")?r.toArray().map((function(t){return E(t.children)})):r.attr("value");if(null==this.attr("multiple")&&"object"===D(t))return this;this.find("option").removeAttr("selected");for(var o="object"!==D(t)?[t]:t,i=0;i<o.length;i++)this.find('option[value="'.concat(o[i],'"]')).attr("selected","");return this;case"input":case"option":return e?this.attr("value"):this.attr("value",t)}}function J(t,e){t.attribs&&M.call(t.attribs,e)&&delete t.attribs[e]}function tt(t){return t?t.trim().split(B):[]}function et(t){for(var e=this,n=tt(t),r=function(t){j(e,(function(e){Object(k.m)(e)&&J(e,n[t])}))},o=0;o<n.length;o++)r(o);return this}function nt(t){return this.toArray().some((function(e){var n=Object(k.m)(e)&&e.attribs.class,r=-1;if(n&&t.length)for(;-1<(r=n.indexOf(t,r+1));){var o=r+t.length;if((0===r||B.test(n[r-1]))&&(o===n.length||B.test(n[o])))return!0}return!1}))}function rt(t){if("function"==typeof t)return j(this,(function(e,n){var r;Object(k.m)(e)&&(r=e.attribs.class||"",rt.call([e],t.call(e,n,r)))}));if(!t||"string"!=typeof t)return this;for(var e=t.split(B),n=this.length,r=0;r<n;r++){var o=this[r];if(Object(k.m)(o)){var i=q(o,"class",!1);if(i){for(var a=" ".concat(i," "),s=0;s<e.length;s++){var l="".concat(e[s]," ");a.includes(" ".concat(l))||(a+=l)}z(o,"class",a.trim())}else z(o,"class",e.join(" ").trim())}}return this}function ot(t){if("function"==typeof t)return j(this,(function(e,n){Object(k.m)(e)&&ot.call([e],t.call(e,n,e.attribs.class||""))}));var e=tt(t),n=e.length,r=0===arguments.length;return j(this,(function(t){if(Object(k.m)(t))if(r)t.attribs.class="";else{for(var o=tt(t.attribs.class),i=!1,a=0;a<n;a++){var s=o.indexOf(e[a]);0<=s&&(o.splice(s,1),i=!0,a--)}i&&(t.attribs.class=o.join(" "))}}))}function it(t,e){if("function"==typeof t)return j(this,(function(n,r){Object(k.m)(n)&&it.call([n],t.call(n,r,n.attribs.class||"",e),e)}));if(!t||"string"!=typeof t)return this;for(var n=t.split(B),r=n.length,o="boolean"==typeof e?e?1:-1:0,i=this.length,a=0;a<i;a++){var s=this[a];if(Object(k.m)(s)){for(var l=tt(s.attribs.class),c=0;c<r;c++){var u=l.indexOf(n[c]);0<=o&&u<0?l.push(n[c]):o<=0&&0<=u&&l.splice(u,1)}s.attribs.class=l.join(" ")}}return this}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}(Ve=I=I||{}).Attribute="attribute",Ve.Pseudo="pseudo",Ve.PseudoElement="pseudo-element",Ve.Tag="tag",Ve.Universal="universal",Ve.Adjacent="adjacent",Ve.Child="child",Ve.Descendant="descendant",Ve.Parent="parent",Ve.Sibling="sibling",Ve.ColumnCombinator="column-combinator",(de=R=R||{}).Any="any",de.Element="element",de.End="end",de.Equals="equals",de.Exists="exists",de.Hyphen="hyphen",de.Not="not",de.Start="start";var st=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,lt=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,ct=new Map([[126,R.Element],[94,R.Start],[36,R.End],[42,R.Any],[33,R.Not],[124,R.Hyphen]]),ut=new Set(["has","not","matches","is","where","host","host-context"]);function pt(t){switch(t.type){case I.Adjacent:case I.Child:case I.Descendant:case I.Parent:case I.Sibling:case I.ColumnCombinator:return!0;default:return!1}}var ft=new Set(["contains","icontains"]);function dt(t,e,n){var r=parseInt(e,16)-65536;return r!=r||n?e:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function ht(t){return t.replace(lt,dt)}function gt(t){return 39===t||34===t}function mt(t){return 32===t||9===t||10===t||12===t||13===t}function vt(t){var e=[],n=function t(e,n,r){var o=[];function i(t){if(!(e=n.slice(r+t).match(st)))throw new Error("Expected name, found ".concat(n.slice(r)));var e=(e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),1!==i.length);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return at(t,1);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,1):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e))[0];return r+=t+e.length,ht(e)}function a(t){for(r+=t;r<n.length&&mt(n.charCodeAt(r));)r++}function s(){for(var t=r+=1,e=1;0<e&&r<n.length;r++)40!==n.charCodeAt(r)||l(r)?41!==n.charCodeAt(r)||l(r)||e--:e++;if(e)throw new Error("Parenthesis not matched");return ht(n.slice(t,r-1))}function l(t){for(var e=0;92===n.charCodeAt(--t);)e++;return 1==(1&e)}function c(){if(0<o.length&&pt(o[o.length-1]))throw new Error("Did not expect successive traversals.")}function u(t){0<o.length&&o[o.length-1].type===I.Descendant?o[o.length-1].type=t:(c(),o.push({type:t}))}function p(t,e){o.push({type:I.Attribute,name:t,action:e,value:i(1),namespace:null,ignoreCase:"quirks"})}function f(){if(o.length&&o[o.length-1].type===I.Descendant&&o.pop(),0===o.length)throw new Error("Empty sub-selector");e.push(o)}if(a(0),n.length===r)return r;t:for(;r<n.length;){var d=n.charCodeAt(r);switch(d){case 32:case 9:case 10:case 12:case 13:0!==o.length&&o[0].type===I.Descendant||(c(),o.push({type:I.Descendant})),a(1);break;case 62:u(I.Child),a(1);break;case 60:u(I.Parent),a(1);break;case 126:u(I.Sibling),a(1);break;case 43:u(I.Adjacent),a(1);break;case 46:p("class",R.Element);break;case 35:p("id",R.Equals);break;case 91:a(1);var h=void 0,g=null;124===n.charCodeAt(r)?h=i(1):n.startsWith("*|",r)?(g="*",h=i(2)):(h=i(0),124===n.charCodeAt(r)&&61!==n.charCodeAt(r+1)&&(g=h,h=i(1))),a(0);var m=R.Exists;if(y=ct.get(n.charCodeAt(r))){if(m=y,61!==n.charCodeAt(r+1))throw new Error("Expected `=`");a(2)}else 61===n.charCodeAt(r)&&(m=R.Equals,a(1));var v="",y=null;if("exists"!==m){if(gt(n.charCodeAt(r))){for(var b=n.charCodeAt(r),_=r+1;_<n.length&&(n.charCodeAt(_)!==b||l(_));)_+=1;if(n.charCodeAt(_)!==b)throw new Error("Attribute value didn't end");v=ht(n.slice(r+1,_)),r=_+1}else{for(var w=r;r<n.length&&(!mt(n.charCodeAt(r))&&93!==n.charCodeAt(r)||l(r));)r+=1;v=ht(n.slice(w,r))}a(0),115==(w=32|n.charCodeAt(r))?(y=!1,a(1)):105==w&&(y=!0,a(1))}if(93!==n.charCodeAt(r))throw new Error("Attribute selector didn't terminate");r+=1,g={type:I.Attribute,name:h,action:m,value:v,namespace:g,ignoreCase:y},o.push(g);break;case 58:if(58===n.charCodeAt(r+1)){o.push({type:I.PseudoElement,name:i(2).toLowerCase(),data:40===n.charCodeAt(r)?s():null});continue}y=i(1).toLowerCase();var E=null;if(40===n.charCodeAt(r))if(ut.has(y)){if(gt(n.charCodeAt(r+1)))throw new Error("Pseudo-selector ".concat(y," cannot be quoted"));if(r=t(E=[],n,r+1),41!==n.charCodeAt(r))throw new Error("Missing closing parenthesis in :".concat(y," (").concat(n,")"));r+=1}else E=s(),!ft.has(y)||(g=E.charCodeAt(0))===E.charCodeAt(E.length-1)&>(g)&&(E=E.slice(1,-1)),E=ht(E);o.push({type:I.Pseudo,name:y,data:E});break;case 44:f(),o=[],a(1);break;default:if(n.startsWith("/*",r)){if((E=n.indexOf("*/",r+2))<0)throw new Error("Comment was not terminated");r=E+2,0===o.length&&a(0);break}var x=null,T=void 0;if(42===d)r+=1,T="*";else if(124===d){if(T="",124===n.charCodeAt(r+1)){u(I.ColumnCombinator),a(2);break}}else{if(!st.test(n.slice(r)))break t;T=i(0)}124===n.charCodeAt(r)&&124!==n.charCodeAt(r+1)&&(x=T,42===n.charCodeAt(r+1)?(T="*",r+=2):T=i(1)),o.push("*"===T?{type:I.Universal,namespace:x}:{type:I.Tag,name:T,namespace:x})}}return f(),r}(e,"".concat(t),0);if(n<t.length)throw new Error("Unmatched selector: ".concat(t.slice(n)));return e}var yt=n(2),bt=n.n(yt);function _t(t){return function(t){if(Array.isArray(t))return wt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return wt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Et=new Map([[I.Universal,50],[I.Tag,30],[I.Attribute,1],[I.Pseudo,0]]);function xt(t){return!Et.has(t.type)}var Tt=new Map([[R.Exists,10],[R.Equals,8],[R.Not,7],[R.Start,6],[R.End,6],[R.Any,5]]);function Ct(t){for(var e=t.map(At),n=1;n<t.length;n++){var r=e[n];if(!(r<0))for(var o=n-1;0<=o&&r<e[o];o--){var i=t[o+1];t[o+1]=t[o],t[o]=i,e[o+1]=e[o],e[o]=r}}}function At(t){var e,n=null!==(e=Et.get(t.type))&&void 0!==e?e:-1;return t.type===I.Attribute?(n=null!==(e=Tt.get(t.action))&&void 0!==e?e:4,t.action===R.Equals&&"id"===t.name&&(n=9),t.ignoreCase&&(n>>=1)):t.type===I.Pseudo&&(t.data?"has"===t.name||"contains"===t.name?n=0:Array.isArray(t.data)?(n=Math.min.apply(Math,_t(t.data.map((function(t){return Math.min.apply(Math,_t(t.map(At)))})))))<0&&(n=0):n=2:n=3),n}var Ot=/[-[\]{}()*+?.,\\^$|#\s]/g;function St(t){return t.replace(Ot,"\\$&")}var kt=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Pt(t,e){return"boolean"==typeof t.ignoreCase?t.ignoreCase:"quirks"===t.ignoreCase?e.quirksMode:!e.xmlMode&&kt.has(t.name)}var jt={equals:function(t,e,n){var r=n.adapter,o=e.name,i=e.value;return Pt(e,n)?(i=i.toLowerCase(),function(e){var n=r.getAttributeValue(e,o);return null!=n&&n.length===i.length&&n.toLowerCase()===i&&t(e)}):function(e){return r.getAttributeValue(e,o)===i&&t(e)}},hyphen:function(t,e,n){var r=n.adapter,o=e.name,i=e.value,a=i.length;return Pt(e,n)?(i=i.toLowerCase(),function(e){var n=r.getAttributeValue(e,o);return null!=n&&(n.length===a||"-"===n.charAt(a))&&n.substr(0,a).toLowerCase()===i&&t(e)}):function(e){var n=r.getAttributeValue(e,o);return null!=n&&(n.length===a||"-"===n.charAt(a))&&n.substr(0,a)===i&&t(e)}},element:function(t,e,n){var r=n.adapter,o=e.name,i=e.value;if(/\s/.test(i))return bt.a.falseFunc;var a=new RegExp("(?:^|\\s)".concat(St(i),"(?:$|\\s)"),Pt(e,n)?"i":"");return function(e){var n=r.getAttributeValue(e,o);return null!=n&&n.length>=i.length&&a.test(n)&&t(e)}},exists:function(t,e,n){var r=e.name,o=n.adapter;return function(e){return o.hasAttrib(e,r)&&t(e)}},start:function(t,e,n){var r=n.adapter,o=e.name,i=e.value,a=i.length;return 0===a?bt.a.falseFunc:Pt(e,n)?(i=i.toLowerCase(),function(e){var n=r.getAttributeValue(e,o);return null!=n&&n.length>=a&&n.substr(0,a).toLowerCase()===i&&t(e)}):function(e){var n;return!(null===(n=r.getAttributeValue(e,o))||void 0===n||!n.startsWith(i))&&t(e)}},end:function(t,e,n){var r=n.adapter,o=e.name,i=e.value,a=-i.length;return 0==a?bt.a.falseFunc:Pt(e,n)?(i=i.toLowerCase(),function(e){var n;return(null===(n=r.getAttributeValue(e,o))||void 0===n?void 0:n.substr(a).toLowerCase())===i&&t(e)}):function(e){var n;return!(null===(n=r.getAttributeValue(e,o))||void 0===n||!n.endsWith(i))&&t(e)}},any:function(t,e,n){var r=n.adapter,o=e.name,i=e.value;if(""===i)return bt.a.falseFunc;if(Pt(e,n)){var a=new RegExp(St(i),"i");return function(e){var n=r.getAttributeValue(e,o);return null!=n&&n.length>=i.length&&a.test(n)&&t(e)}}return function(e){var n;return!(null===(n=r.getAttributeValue(e,o))||void 0===n||!n.includes(i))&&t(e)}},not:function(t,e,n){var r=n.adapter,o=e.name,i=e.value;return""===i?function(e){return!!r.getAttributeValue(e,o)&&t(e)}:Pt(e,n)?(i=i.toLowerCase(),function(e){var n=r.getAttributeValue(e,o);return(null==n||n.length!==i.length||n.toLowerCase()!==i)&&t(e)}):function(e){return r.getAttributeValue(e,o)!==i&&t(e)}}},Nt=new Set([9,10,12,13,32]),Lt="0".charCodeAt(0),Dt="9".charCodeAt(0);function It(t){return function(t){var e=t[0],n=t[1]-1;if(n<0&&e<=0)return bt.a.falseFunc;if(-1===e)return function(t){return t<=n};if(0===e)return function(t){return t===n};if(1===e)return n<0?bt.a.trueFunc:function(t){return n<=t};var r=Math.abs(e),o=(n%r+r)%r;return 1<e?function(t){return n<=t&&t%r==o}:function(t){return t<=n&&t%r==o}}(function(t){if("even"===(t=t.trim().toLowerCase()))return[2,0];if("odd"===t)return[2,1];var e=0,n=0,r=i(),o=a();if(e<t.length&&"n"===t.charAt(e)&&(e++,n=r*(null!=o?o:1),s(),e<t.length?(r=i(),s(),o=a()):r=o=0),null===o||e<t.length)throw new Error("n-th rule couldn't be parsed ('".concat(t,"')"));return[n,r*o];function i(){return"-"===t.charAt(e)?(e++,-1):("+"===t.charAt(e)&&e++,1)}function a(){for(var n=e,r=0;e<t.length&&t.charCodeAt(e)>=Lt&&t.charCodeAt(e)<=Dt;)r=10*r+(t.charCodeAt(e)-Lt),e++;return e===n?null:r}function s(){for(;e<t.length&&Nt.has(t.charCodeAt(e));)e++}}(t))}function Rt(t,e){return function(n){var r=e.getParent(n);return null!=r&&e.isTag(r)&&t(n)}}var Mt={contains:function(t,e,n){var r=n.adapter;return function(n){return t(n)&&r.getText(n).includes(e)}},icontains:function(t,e,n){var r=n.adapter,o=e.toLowerCase();return function(e){return t(e)&&r.getText(e).toLowerCase().includes(o)}},"nth-child":function(t,e,n){var r=n.adapter,o=n.equals,i=It(e);return i===bt.a.falseFunc?bt.a.falseFunc:i===bt.a.trueFunc?Rt(t,r):function(e){for(var n=r.getSiblings(e),a=0,s=0;s<n.length&&!o(e,n[s]);s++)r.isTag(n[s])&&a++;return i(a)&&t(e)}},"nth-last-child":function(t,e,n){var r=n.adapter,o=n.equals,i=It(e);return i===bt.a.falseFunc?bt.a.falseFunc:i===bt.a.trueFunc?Rt(t,r):function(e){for(var n=r.getSiblings(e),a=0,s=n.length-1;0<=s&&!o(e,n[s]);s--)r.isTag(n[s])&&a++;return i(a)&&t(e)}},"nth-of-type":function(t,e,n){var r=n.adapter,o=n.equals,i=It(e);return i===bt.a.falseFunc?bt.a.falseFunc:i===bt.a.trueFunc?Rt(t,r):function(e){for(var n=r.getSiblings(e),a=0,s=0;s<n.length;s++){var l=n[s];if(o(e,l))break;r.isTag(l)&&r.getName(l)===r.getName(e)&&a++}return i(a)&&t(e)}},"nth-last-of-type":function(t,e,n){var r=n.adapter,o=n.equals,i=It(e);return i===bt.a.falseFunc?bt.a.falseFunc:i===bt.a.trueFunc?Rt(t,r):function(e){for(var n=r.getSiblings(e),a=0,s=n.length-1;0<=s;s--){var l=n[s];if(o(e,l))break;r.isTag(l)&&r.getName(l)===r.getName(e)&&a++}return i(a)&&t(e)}},root:function(t,e,n){var r=n.adapter;return function(e){var n=r.getParent(e);return(null==n||!r.isTag(n))&&t(e)}},scope:function(t,e,n,r){var o=n.equals;return r&&0!==r.length?1===r.length?function(e){return o(r[0],e)&&t(e)}:function(e){return r.includes(e)&&t(e)}:Mt.root(t,e,n)},hover:Bt("isHovered"),visited:Bt("isVisited"),active:Bt("isActive")};function Bt(t){return function(e,n,r){var o=r.adapter[t];return"function"!=typeof o?bt.a.falseFunc:function(t){return o(t)&&e(t)}}}var Ft={empty:function(t,e){var n=e.adapter;return!n.getChildren(t).some((function(t){return n.isTag(t)||""!==n.getText(t)}))},"first-child":function(t,e){var n,r=e.adapter;return e=e.equals,r.prevElementSibling?null==r.prevElementSibling(t):null!=(n=r.getSiblings(t).find((function(t){return r.isTag(t)})))&&e(t,n)},"last-child":function(t,e){for(var n=e.adapter,r=e.equals,o=n.getSiblings(t),i=o.length-1;0<=i;i--){if(r(t,o[i]))return!0;if(n.isTag(o[i]))break}return!1},"first-of-type":function(t,e){for(var n=e.adapter,r=e.equals,o=n.getSiblings(t),i=n.getName(t),a=0;a<o.length;a++){var s=o[a];if(r(t,s))return!0;if(n.isTag(s)&&n.getName(s)===i)break}return!1},"last-of-type":function(t,e){for(var n=e.adapter,r=e.equals,o=n.getSiblings(t),i=n.getName(t),a=o.length-1;0<=a;a--){var s=o[a];if(r(t,s))return!0;if(n.isTag(s)&&n.getName(s)===i)break}return!1},"only-of-type":function(t,e){var n=e.adapter,r=e.equals,o=n.getName(t);return n.getSiblings(t).every((function(e){return r(t,e)||!n.isTag(e)||n.getName(e)!==o}))},"only-child":function(t,e){var n=e.adapter,r=e.equals;return n.getSiblings(t).every((function(e){return r(t,e)||!n.isTag(e)}))}};function Ut(t,e,n,r){if(null===n){if(t.length>r)throw new Error("Pseudo-class :".concat(e," requires an argument"))}else if(t.length===r)throw new Error("Pseudo-class :".concat(e," doesn't have any arguments"))}var Ht={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};function Vt(t){return function(t){if(Array.isArray(t))return qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return qt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var zt={};function Gt(t,e){return t===bt.a.falseFunc?bt.a.falseFunc:function(n){return e.isTag(n)&&t(n)}}function Wt(t,e){var n=e.getSiblings(t);return n.length<=1||(t=n.indexOf(t))<0||t===n.length-1?[]:n.slice(t+1).filter(e.isTag)}function Yt(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Kt={is:Ve=function(t,e,n,r,o){var i=o(e,Yt(n),r);return i===bt.a.trueFunc?t:i===bt.a.falseFunc?bt.a.falseFunc:function(e){return i(e)&&t(e)}},matches:Ve,where:Ve,not:function(t,e,n,r,o){var i=o(e,Yt(n),r);return i===bt.a.falseFunc?t:i===bt.a.trueFunc?bt.a.falseFunc:function(e){return!i(e)&&t(e)}},has:function(t,e,n,r,o){var i=n.adapter;(n=Yt(n)).relativeSelector=!0;var a=e.some((function(t){return t.some(xt)}))?[zt]:void 0;if((n=o(e,n,a))===bt.a.falseFunc)return bt.a.falseFunc;var s=Gt(n,i);if(a&&n!==bt.a.trueFunc){var l=void 0!==(n=n.shouldTestNextSiblings)&&n;return function(e){if(!t(e))return!1;a[0]=e;var n=i.getChildren(e);return n=l?[].concat(Vt(n),Vt(Wt(e,i))):n,i.existsOne(s,n)}}return function(e){return t(e)&&i.existsOne(s,i.getChildren(e))}}};function $t(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function Xt(t,e){if(t){if("string"==typeof t)return Qt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qt(t,e):void 0}}function Qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zt(t,e,n){return re("string"==typeof t?vt(t):t,e,n)}function Jt(t){return t.type===I.Pseudo&&("scope"===t.name||Array.isArray(t.data)&&t.data.some((function(t){return t.some(Jt)})))}var te={type:I.Descendant},ee={type:"_flexibleDescendant"},ne={type:I.Pseudo,name:"scope",data:null};function re(t,e,n){var r;t.forEach(Ct),n=null!==(r=e.context)&&void 0!==r?r:n;var o=Array.isArray(n),i=n&&(Array.isArray(n)?n:[n]);if(!1!==e.relativeSelector)!function(t,e,n){var r,o=e.adapter,i=!(null==n||!n.every((function(t){var e=o.isTag(t)&&o.getParent(t);return t===zt||e&&o.isTag(e)}))),a=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Xt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(!(0<s.length&&xt(s[0])&&s[0].type!==I.Descendant)){if(!i||s.some(Jt))continue;s.unshift(te)}s.unshift(ne)}}catch(t){a.e(t)}finally{a.f()}}(t,e,i);else if(t.some((function(t){return 0<t.length&&xt(t[0])})))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");var a=!1;return(t=t.map((function(t){var n,r;return 2<=t.length&&(n=(r=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t)||Xt(t,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t))[0],r=r[1],n.type!==I.Pseudo||"scope"!==n.name||(o&&r.type===I.Descendant?t[1]=ee:r.type!==I.Adjacent&&r.type!==I.Sibling||(a=!0))),function(t,e,n){return t.reduce((function(t,r){return t===bt.a.falseFunc?bt.a.falseFunc:function(t,e,n,r,o){var i=n.adapter,a=n.equals;switch(e.type){case I.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case I.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case I.Attribute:if(null!=e.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),jt[e.action](t,e,n);case I.Pseudo:return function(t,e,n,r,o){var i=e.name,a=e.data;if(Array.isArray(a)){if(!(i in Kt))throw new Error("Unknown pseudo-class :".concat(i,"(").concat(a,")"));return Kt[i](t,a,n,r,o)}var s=null===(e=n.pseudos)||void 0===e?void 0:e[i];if("string"==typeof(e="string"==typeof s?s:Ht[i])){if(null!=a)throw new Error("Pseudo ".concat(i," doesn't have any arguments"));return e=vt(e),Kt.is(t,e,n,r,o)}if("function"==typeof s)return Ut(s,i,a,1),function(e){return s(e,a)&&t(e)};if(i in Mt)return Mt[i](t,a,n,r);if(i in Ft){var l=Ft[i];return Ut(l,i,a,2),function(e){return l(e,n,a)&&t(e)}}throw new Error("Unknown pseudo-class :".concat(i))}(t,e,n,r,o);case I.Tag:if(null!=e.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");var s=e.name;return n.xmlMode&&!n.lowerCaseTags||(s=s.toLowerCase()),function(e){return i.getName(e)===s&&t(e)};case I.Descendant:if(!1===n.cacheResults||"undefined"==typeof WeakSet)return function(e){for(var n=e;n=$t(n,i);)if(t(n))return!0;return!1};var l=new WeakSet;return function(e){for(var n=e;n=$t(n,i);)if(!l.has(n)){if(i.isTag(n)&&t(n))return!0;l.add(n)}return!1};case"_flexibleDescendant":return function(e){var n=e;do{if(t(n))return!0}while(n=$t(n,i));return!1};case I.Parent:return function(e){return i.getChildren(e).some((function(e){return i.isTag(e)&&t(e)}))};case I.Child:return function(e){return null!=(e=i.getParent(e))&&i.isTag(e)&&t(e)};case I.Sibling:return function(e){for(var n=i.getSiblings(e),r=0;r<n.length;r++){var o=n[r];if(a(e,o))break;if(i.isTag(o)&&t(o))return!0}return!1};case I.Adjacent:return i.prevElementSibling?function(e){return null!=(e=i.prevElementSibling(e))&&t(e)}:function(e){for(var n,r=i.getSiblings(e),o=0;o<r.length;o++){var s=r[o];if(a(e,s))break;i.isTag(s)&&(n=s)}return!!n&&t(n)};case I.Universal:if(null!=e.namespace&&"*"!==e.namespace)throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}(t,r,e,n,re)}),null!==(t=e.rootFunc)&&void 0!==t?t:bt.a.trueFunc)}(t,e,i)})).reduce(oe,bt.a.falseFunc)).shouldTestNextSiblings=a,t}function oe(t,e){return e===bt.a.falseFunc||t===bt.a.trueFunc?t:t===bt.a.falseFunc||e===bt.a.trueFunc?e:function(n){return t(n)||e(n)}}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ae=function(t,e){return t===e},se={adapter:g,equals:ae};function le(t){var e=null!=t?t:se;return null!==(t=e.adapter)&&void 0!==t||(e.adapter=g),null!==(t=e.equals)&&void 0!==t||(e.equals=null!==(t=null===(t=e.adapter)||void 0===t?void 0:t.equals)&&void 0!==t?t:ae),e}function ce(t){return function(e,n,r){return n=le(n),t(e,n,r)}}ce((function(t,e,n){return Gt(Zt(t,e,n),e.adapter)})),ce(Zt);var ue=ce(re);function pe(t){return function(e,n,r){return r=le(r),"function"!=typeof e&&(e=Zt(e,r,n)),n=fe(n,r.adapter,e.shouldTestNextSiblings),t(e,n,r)}}function fe(t,e,n){return 2<arguments.length&&void 0!==n&&n&&(t=function(t,e){for(var n=Array.isArray(t)?t.slice(0):[t],r=n.length,o=0;o<r;o++){var i=Wt(n[o],e);n.push.apply(n,function(t){return function(t){if(Array.isArray(t))return ie(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i))}return n}(t,e)),Array.isArray(t)?e.removeSubsets(t):e.getChildren(t)}var de=pe((function(t,e,n){return t!==bt.a.falseFunc&&e&&0!==e.length?n.adapter.findAll(t,e):[]}));pe((function(t,e,n){return t!==bt.a.falseFunc&&e&&0!==e.length?n.adapter.findOne(t,e):null}));var he=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function ge(t){return"pseudo"===t.type&&(!!he.has(t.name)||!("not"!==t.name||!Array.isArray(t.data))&&t.data.some((function(t){return t.some(ge)})))}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ve(t){var e,n=[],r=[],o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return me(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}(t);try{for(o.s();!(e=o.n()).done;){var i=e.value;(i.some(ge)?n:r).push(i)}}catch(t){o.e(t)}finally{o.f()}return[r,n]}function ye(t){return function(t){if(Array.isArray(t))return xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ee(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function _e(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function we(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||Ee(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(t,e){if(t){if("string"==typeof t)return xe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(t,e):void 0}}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Te={type:I.Universal,namespace:null},Ce={type:I.Pseudo,name:"scope",data:null};function Ae(t,e,n){return Oe([t],e,2<arguments.length&&void 0!==n?n:{})}function Oe(t,e,n){var r=2<arguments.length&&void 0!==n?n:{};return"function"==typeof e?t.some(e):(e=(n=we(ve(vt(e)),2))[0],n=n[1],0<e.length&&t.some(ue(e,r))||n.some((function(e){return 0<Pe(e,t,r).length})))}function Se(t,e,n){return n=2<arguments.length&&void 0!==n?n:{},ke(vt(t),e,n)}function ke(t,e,n){if(0===e.length)return[];var r,o=we(ve(t),2),i=(t=o[0],o[1]);if(t.length){if(t=De(e,t,n),0===i.length)return t;t.length&&(r=new Set(t))}for(var a=0;a<i.length&&(null==r?void 0:r.size)!==e.length;a++){var s=i[a];if(0===(r?e.filter((function(t){return g.isTag(t)&&!r.has(t)})):e).length)break;if((s=Pe(s,e,n)).length)if(r)s.forEach((function(t){return r.add(t)}));else{if(a===i.length-1)return s;r=new Set(s)}}return void 0!==r?r.size===e.length?e:e.filter((function(t){return r.has(t)})):[]}function Pe(t,e,n){if(t.some(pt)){var r=null!==(o=n.root)&&void 0!==o?o:function(t){for(;t.parent;)t=t.parent;return t}(e[0]),o=_e(_e({},n),{},{context:e,relativeSelector:!1});return t.push(Ce),je(r,t,o,!0,e.length)}return je(e,t,n,!1,e.length)}function je(t,e,n,r,o){var i=e.findIndex(ge),a=e.slice(0,i),s=e[i],l=e.length-1===i?o:1/0;if(0===(l=function(t,e,n){var r=null!=e?parseInt(e,10):NaN;switch(t){case"first":return 1;case"nth":case"eq":return isFinite(r)?0<=r?r+1:1/0:0;case"lt":return isFinite(r)?0<=r?Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}(s.name,s.data,l)))return[];l=(0!==a.length||Array.isArray(t)?0===a.length?(Array.isArray(t)?t:[t]).filter(g.isTag):r||a.some(pt)?Ne(t,[a],n,l):De(t,[a],n):g.getChildren(t).filter(g.isTag)).slice(0,l);var c=function(t,e,n,r){var o="string"==typeof n?parseInt(n,10):NaN;switch(t){case"first":case"lt":return e;case"last":return 0<e.length?[e[e.length-1]]:e;case"nth":case"eq":return isFinite(o)&&Math.abs(o)<e.length?[o<0?e[e.length+o]:e[o]]:[];case"gt":return isFinite(o)?e.slice(o+1):[];case"even":return e.filter((function(t,e){return e%2==0}));case"odd":return e.filter((function(t,e){return e%2==1}));case"not":var i=new Set(ke(n,e,r));return e.filter((function(t){return!i.has(t)}))}}(s.name,l,s.data,n);return 0===c.length||e.length===i+1?c:((e=(s=e.slice(i+1)).some(pt))?(pt(s[0])&&((i=s[0].type)!==I.Sibling&&i!==I.Adjacent||(c=fe(c,g,!0)),s.unshift(Te)),n=_e(_e({},n),{},{relativeSelector:!1,rootFunc:function(t){return c.includes(t)}})):n.rootFunc&&n.rootFunc!==yt.trueFunc&&(n=_e(_e({},n),{},{rootFunc:yt.trueFunc})),s.some(ge)?je(c,s,n,!1,o):e?Ne(c,[s],n,o):De(c,[s],n))}function Ne(t,e,n,r){return Le(t,ue(e,n,t),r)}function Le(t,e,n){return n=2<arguments.length&&void 0!==n?n:1/0,t=fe(t,g,e.shouldTestNextSiblings),g.find((function(t){return g.isTag(t)&&e(t)}),t,!0,n)}function De(t,e,n){return 0===(t=(Array.isArray(t)?t:[t]).filter(g.isTag)).length||(n=ue(e,n))===yt.trueFunc?t:t.filter(n)}function Ie(t){return function(t){if(Array.isArray(t))return Re(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Re(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Me=/^\s*[~+]/;function Be(t){if(!t)return this._make([]);var e=this.toArray();if("string"!=typeof t){var n=P(t)?t.toArray():[t];return this._make(n.filter((function(t){return e.some((function(e){return C(e,t)}))})))}var r=Me.test(t)?e:this.children().toArray();return n={context:e,root:null===(n=this._root)||void 0===n?void 0:n[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode},this._make(function(t,e,n,r){var o=2<arguments.length&&void 0!==n?n:{},i=3<arguments.length&&void 0!==r?r:1/0;return"function"==typeof t?Le(e,t):(t=(r=we(ve(vt(t)),2))[0],r=r[1].map((function(t){return je(e,t,o,!0,i)})),t.length&&r.push(Ne(e,t,o,i)),0===r.length?[]:1===r.length?r[0]:g.uniqueSort(r.reduce((function(t,e){return[].concat(ye(t),ye(e))}))))}(t,r,n))}function Fe(t){return function(e){for(var n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return function(n){var o=t(e,this);return n&&(o=sn(o,n,this.options.xmlMode,null===(n=this._root)||void 0===n?void 0:n[0])),this._make(1<this.length&&1<o.length?r.reduce((function(t,e){return e(t)}),o):o)}}}function Ue(t){for(var e=null,n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Fe((function(t,n){var r=[];return j(n,(function(n){for(var o;(o=t(n))&&(null==e||!e(o,r.length));n=o)r.push(o)})),r})).apply(void 0,[t].concat(r));return function(t,n){var r=this;return e="string"==typeof t?function(e){return Ae(e,t,r.options)}:t?on(t):null,n=i.call(this,n),e=null,n}}function He(t){return Array.from(new Set(t))}var Ve=Fe((function(t,e){for(var n,r=[],o=0;o<e.length;o++){var i=t(e[o]);r.push(i)}return(n=new Array).concat.apply(n,r)})),qe=(de=Fe((function(t,e){for(var n=[],r=0;r<e.length;r++){var o=t(e[r]);null!==o&&n.push(o)}return n})))((function(t){return(t=t.parent)&&!Object(k.l)(t)?t:null}),He),ze=Ve((function(t){for(var e=[];t.parent&&!Object(k.l)(t.parent);)e.push(t.parent),t=t.parent;return e}),g.uniqueSort,(function(t){return t.reverse()})),Ge=Ue((function(t){return(t=t.parent)&&!Object(k.l)(t)?t:null}),g.uniqueSort,(function(t){return t.reverse()}));function We(t){var e,n=[];if(!t)return this._make(n);var r={xmlMode:this.options.xmlMode,root:null===(e=this._root)||void 0===e?void 0:e[0]},o="string"==typeof t?function(e){return Ae(e,t,r)}:on(t);return j(this,(function(t){for(;t&&Object(k.m)(t);){if(o(t,0)){n.includes(t)||n.push(t);break}t=t.parent}})),this._make(n)}var Ye=de((function(t){return Object(g.nextElementSibling)(t)})),Ke=Ve((function(t){for(var e=[];t.next;)t=t.next,Object(k.m)(t)&&e.push(t);return e}),He),$e=Ue((function(t){return Object(g.nextElementSibling)(t)}),He),Xe=de((function(t){return Object(g.prevElementSibling)(t)})),Qe=Ve((function(t){for(var e=[];t.prev;)t=t.prev,Object(k.m)(t)&&e.push(t);return e}),He),Ze=Ue((function(t){return Object(g.prevElementSibling)(t)}),He),Je=Ve((function(t){return Object(g.getSiblings)(t).filter((function(e){return Object(k.m)(e)&&e!==t}))}),g.uniqueSort),tn=Ve((function(t){return Object(g.getChildren)(t).filter(k.m)}),He);function en(){var t=this.toArray().reduce((function(t,e){return Object(k.h)(e)?t.concat(e.children):t}),[]);return this._make(t)}function nn(t){for(var e=0,n=this.length;e<n&&!1!==t.call(this[e],e,this[e]);)++e;return this}function rn(t){for(var e=[],n=0;n<this.length;n++){var r=this[n];null!=(r=t.call(r,n,r))&&(e=e.concat(r))}return this._make(e)}function on(t){return"function"==typeof t?function(e,n){return t.call(e,n,e)}:P(t)?function(e){return Array.prototype.includes.call(t,e)}:function(e){return t===e}}function an(t){return this._make(sn(this.toArray(),t,this.options.xmlMode,null===(t=this._root)||void 0===t?void 0:t[0]))}function sn(t,e,n,r){return"string"==typeof e?Se(e,t,{xmlMode:n,root:r}):t.filter(on(e))}function ln(t){var e=this.toArray();return"string"==typeof t?Oe(e.filter(k.m),t,this.options):!!t&&e.some(on(t))}function cn(t){var e,n,r=this.toArray();return r="string"==typeof t?(e=new Set(Se(t,r,this.options)),r.filter((function(t){return!e.has(t)}))):(n=on(t),r.filter((function(t,e){return!n(t,e)}))),this._make(r)}function un(t){var e=this;return this.filter("string"==typeof t?":has(".concat(t,")"):function(n,r){return 0<e._make(r).find(t).length})}function pn(){return 1<this.length?this._make(this[0]):this}function fn(){return 0<this.length?this._make(this[this.length-1]):this}function dn(t){return 0==(t=+t)&&this.length<=1?this:(t<0&&(t=this.length+t),this._make(null!==(t=this[t])&&void 0!==t?t:[]))}function hn(t){return null==t?this.toArray():this[t<0?this.length+t:t]}function gn(){return Array.prototype.slice.call(this)}function mn(t){var e;return t=null==t?(e=this.parent().children(),this[0]):"string"==typeof t?(e=this._make(t),this[0]):(e=this,P(t)?t[0]:t),Array.prototype.indexOf.call(e,t)}function vn(t,e){return this._make(Array.prototype.slice.call(this,t,e))}function yn(){var t;return null!==(t=this.prevObject)&&void 0!==t?t:this._make([])}function bn(t,e){return e=this._make(t,e),e=Object(g.uniqueSort)([].concat(Ie(this.get()),Ie(e.get()))),this._make(e)}function _n(t){return this.prevObject?this.add(t?this.prevObject.filter(t):this.prevObject):this}var wn=n(23);function En(t){return function(t){if(Array.isArray(t))return Tn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||xn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(t,e){if(t){if("string"==typeof t)return Tn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tn(t,e):void 0}}function Tn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Cn(t,e){var n=this;return null==t?[]:P(t)?e?N(t.get()):t.get():Array.isArray(t)?t.reduce((function(t,r){return t.concat(n._makeDomArray(r,e))}),[]):"string"==typeof t?this._parse(t,this.options,!1,null).children:e?N([t]):[t]}function An(t){return function(){for(var e=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=this.length-1;return j(this,(function(n,o){var a;Object(k.h)(n)&&(a="function"==typeof r[0]?r[0].call(n,o,e._render(n.children)):r,o=e._makeDomArray(a,o<i),t(o,n.children,n))}))}}function On(t,e,n,r,o){for(var i,a=[e,n].concat(En(r)),s=0===e?null:t[e-1],l=e+n>=t.length?null:t[e+n],c=0;c<r.length;++c){var u,p=r[c],f=p.parent;!f||-1<(u=f.children.indexOf(p))&&(f.children.splice(u,1),o===f&&u<e&&a[0]--),p.parent=o,p.prev&&(p.prev.next=null!==(i=p.next)&&void 0!==i?i:null),p.next&&(p.next.prev=null!==(i=p.prev)&&void 0!==i?i:null),p.prev=0===c?s:r[c-1],p.next=c===r.length-1?l:r[c+1]}return s&&(s.next=r[0]),l&&(l.prev=r[r.length-1]),t.splice.apply(t,En(a))}function Sn(t){return(P(t)?t:this._make(t)).append(this),this}function kn(t){return(P(t)?t:this._make(t)).prepend(this),this}var Pn=An((function(t,e,n){On(e,e.length,0,t,n)})),jn=An((function(t,e,n){On(e,0,0,t,n)}));function Nn(t){return function(e){for(var n=this.length-1,r=this.parents().last(),o=0;o<this.length;o++){var i=this[o],a="function"==typeof e?e.call(i,o,i):"string"!=typeof e||L(e)?e:r.find(e).clone();if((a=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),1!==i.length);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t)||xn(t,1)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this._makeDomArray(a,o<n))[0])&&Object(k.h)(a)){for(var s=a,l=0;l<s.children.length;){var c=s.children[l];Object(k.m)(c)?(s=c,l=0):l++}t(i,s,[a])}}return this}}var Ln=Nn((function(t,e,n){var r,o,i=t.parent;i&&(o=(r=i.children).indexOf(t),Object(wn.b)([t],e),On(r,o,0,n,i))})),Dn=Nn((function(t,e,n){Object(k.h)(t)&&(Object(wn.b)(t.children,e),Object(wn.b)(n,t))}));function In(t){var e=this;return this.parent(t).not("body").each((function(t,n){e._make(n).replaceWith(n.children)})),this}function Rn(t){var e=this[0];if(e){for(var n,r=this._make("function"==typeof t?t.call(e,0,e):t).insertBefore(e),o=0;o<r.length;o++)"tag"===r[o].type&&(n=r[o]);for(var i=0;n&&i<n.children.length;){var a=n.children[i];"tag"===a.type?(n=a,i=0):i++}n&&this._make(n).append(this)}return this}function Mn(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=this.length-1;return j(this,(function(e,r){var i,a,s=e.parent;Object(k.h)(e)&&s&&((a=(i=s.children).indexOf(e))<0||(e="function"==typeof n[0]?n[0].call(e,r,t._render(e.children)):n,On(i,a+1,0,t._makeDomArray(e,r<o),s)))}))}function Bn(t){var e=this;"string"==typeof t&&(t=this._make(t)),this.remove();var n=[];return this._makeDomArray(t).forEach((function(t){var r,o=e.clone().toArray(),i=t.parent;i&&((t=(r=i.children).indexOf(t))<0||(On(r,t+1,0,o,i),n.push.apply(n,En(o))))})),this._make(n)}function Fn(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=this.length-1;return j(this,(function(e,r){var i,a,s=e.parent;Object(k.h)(e)&&s&&((a=(i=s.children).indexOf(e))<0||(e="function"==typeof n[0]?n[0].call(e,r,t._render(e.children)):n,On(i,a,0,t._makeDomArray(e,r<o),s)))}))}function Un(t){var e=this;t=this._make(t),this.remove();var n=[];return j(t,(function(t){var r,o=e.clone().toArray(),i=t.parent;i&&((t=(r=i.children).indexOf(t))<0||(On(r,t,0,o,i),n.push.apply(n,En(o))))})),this._make(n)}function Hn(t){return j(t?this.filter(t):this,(function(t){Object(g.removeElement)(t),t.prev=t.next=t.parent=null})),this}function Vn(t){var e=this;return j(this,(function(n,r){var o,i,a=n.parent;a&&(o=a.children,i="function"==typeof t?t.call(n,r,n):t,r=e._makeDomArray(i),Object(wn.b)(r,null),i=o.indexOf(n),On(o,i,1,r,a),r.includes(n)||(n.parent=n.prev=n.next=null))}))}function qn(){return j(this,(function(t){Object(k.h)(t)&&(t.children.forEach((function(t){t.next=t.prev=t.parent=null})),t.children.length=0)}))}function zn(t){var e=this;if(void 0!==t)return j(this,(function(n){var r;Object(k.h)(n)&&(n.children.forEach((function(t){t.next=t.prev=t.parent=null})),r=P(t)?t.toArray():e._parse("".concat(t),e.options,!1,n).children,Object(wn.b)(r,n))}));var n=this[0];return n&&Object(k.h)(n)?this._render(n.children):null}function Gn(){return this._render(this)}function Wn(t){var e=this;return void 0===t?E(this):j(this,"function"==typeof t?function(n,r){return e._make(n).text(t.call(n,r,E([n])))}:function(e){var n;Object(k.h)(e)&&(e.children.forEach((function(t){t.next=t.prev=t.parent=null})),n=new k.f("".concat(t)),Object(wn.b)(n,e))})}function Yn(){return this._make(N(this.get()))}function Kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $n(t){return($n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xn(t,e){return null!=t&&null!=e||"object"===$n(t)&&!Array.isArray(t)?j(this,(function(n,r){Object(k.m)(n)&&function t(e,n,r,o){var i;"string"==typeof n?(i=Qn(e),""===(r="function"==typeof r?r.call(e,o,i[n]):r)?delete i[n]:null!=r&&(i[n]=r),e.attribs.style=function(t){return Object.keys(t).reduce((function(e,n){return"".concat(e).concat(e?" ":"").concat(n,": ").concat(t[n],";")}),"")}(i)):"object"===$n(n)&&Object.keys(n).forEach((function(r,o){t(e,r,n[r],o)}))}(n,t,e,r)})):0!==this.length?Qn(this[0],t):void 0}function Qn(t,e){if(t&&Object(k.m)(t)){var n=function(t){if(!(t=(t||"").trim()))return{};var e,n,r={},o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Kn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}(t.split(";"));try{for(o.s();!(n=o.n()).done;){var i,a=n.value,s=a.indexOf(":");s<1||s===a.length-1?0<(i=a.trimEnd()).length&&void 0!==e&&(r[e]+=";".concat(i)):r[e=a.slice(0,s).trim()]=a.slice(s+1).trim()}}catch(t){o.e(t)}finally{o.f()}return r}(t.attribs.style);if("string"==typeof e)return n[e];if(Array.isArray(e)){var r={};return e.forEach((function(t){null!=n[t]&&(r[t]=n[t])})),r}return n}}var Zn="input,select,textarea,keygen",Jn=/%20/g,tr=/\r?\n/g;function er(){return this.serializeArray().map((function(t){return"".concat(encodeURIComponent(t.name),"=").concat(encodeURIComponent(t.value))})).join("&").replace(Jn,"+")}function nr(){var t=this;return this.map((function(e,n){var r=t._make(n);return(Object(k.m)(n)&&"form"===n.name?r.find(Zn):r.filter(Zn)).toArray()})).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((function(e,n){var r=(n=t._make(n)).attr("name");return n=null!==(n=n.val())&&void 0!==n?n:"",Array.isArray(n)?n.map((function(t){return{name:r,value:t.replace(tr,"\r\n")}})):{name:r,value:n.replace(tr,"\r\n")}})).toArray()}function rr(t,e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,rr),this.length=0,this.options=n,this._root=e,t){for(var r=0;r<t.length;r++)this[r]=t[r];this.length=t.length}}function or(t){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ir(t,e){return(ir=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ar(t){return(ar=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function sr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function lr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sr(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}rr.prototype.cheerio="[cheerio object]",rr.prototype.splice=Array.prototype.splice,rr.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(rr.prototype,o,i,a,s,l);var cr,ur,pr=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);function fr(t){return 55296<=t&&t<=57343}function dr(t){return 32!==t&&10!==t&&13!==t&&9!==t&&12!==t&&1<=t&&t<=31||127<=t&&t<=159}function hr(t){return 64976<=t&&t<=65007||pr.has(t)}(l=cr=cr||{})[l.EOF=-1]="EOF",l[l.NULL=0]="NULL",l[l.TABULATION=9]="TABULATION",l[l.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",l[l.LINE_FEED=10]="LINE_FEED",l[l.FORM_FEED=12]="FORM_FEED",l[l.SPACE=32]="SPACE",l[l.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",l[l.QUOTATION_MARK=34]="QUOTATION_MARK",l[l.NUMBER_SIGN=35]="NUMBER_SIGN",l[l.AMPERSAND=38]="AMPERSAND",l[l.APOSTROPHE=39]="APOSTROPHE",l[l.HYPHEN_MINUS=45]="HYPHEN_MINUS",l[l.SOLIDUS=47]="SOLIDUS",l[l.DIGIT_0=48]="DIGIT_0",l[l.DIGIT_9=57]="DIGIT_9",l[l.SEMICOLON=59]="SEMICOLON",l[l.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",l[l.EQUALS_SIGN=61]="EQUALS_SIGN",l[l.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",l[l.QUESTION_MARK=63]="QUESTION_MARK",l[l.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",l[l.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",l[l.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",l[l.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",l[l.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",l[l.GRAVE_ACCENT=96]="GRAVE_ACCENT",l[l.LATIN_SMALL_A=97]="LATIN_SMALL_A",l[l.LATIN_SMALL_F=102]="LATIN_SMALL_F",l[l.LATIN_SMALL_X=120]="LATIN_SMALL_X",l[l.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",l[l.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER",(l=ur=ur||{}).controlCharacterInInputStream="control-character-in-input-stream",l.noncharacterInInputStream="noncharacter-in-input-stream",l.surrogateInInputStream="surrogate-in-input-stream",l.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",l.endTagWithAttributes="end-tag-with-attributes",l.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",l.unexpectedSolidusInTag="unexpected-solidus-in-tag",l.unexpectedNullCharacter="unexpected-null-character",l.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",l.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",l.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",l.missingEndTagName="missing-end-tag-name",l.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",l.unknownNamedCharacterReference="unknown-named-character-reference",l.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",l.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",l.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",l.eofBeforeTagName="eof-before-tag-name",l.eofInTag="eof-in-tag",l.missingAttributeValue="missing-attribute-value",l.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",l.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",l.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",l.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",l.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",l.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",l.missingDoctypePublicIdentifier="missing-doctype-public-identifier",l.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",l.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",l.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",l.cdataInHtmlContent="cdata-in-html-content",l.incorrectlyOpenedComment="incorrectly-opened-comment",l.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",l.eofInDoctype="eof-in-doctype",l.nestedComment="nested-comment",l.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",l.eofInComment="eof-in-comment",l.incorrectlyClosedComment="incorrectly-closed-comment",l.eofInCdata="eof-in-cdata",l.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",l.nullCharacterReference="null-character-reference",l.surrogateCharacterReference="surrogate-character-reference",l.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",l.controlCharacterReference="control-character-reference",l.noncharacterCharacterReference="noncharacter-character-reference",l.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",l.missingDoctypeName="missing-doctype-name",l.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",l.duplicateAttribute="duplicate-attribute",l.nonConformingDoctype="non-conforming-doctype",l.missingDoctype="missing-doctype",l.misplacedDoctype="misplaced-doctype",l.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",l.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",l.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",l.openElementsLeftAfterEof="open-elements-left-after-eof",l.abandonedHeadElementChild="abandoned-head-element-child",l.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",l.nestedNoscriptInHead="nested-noscript-in-head",l.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";var gr,mr=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}return function(t,e,n){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"col",get:function(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}},{key:"offset",get:function(){return this.droppedBufferSize+this.pos}},{key:"getError",value:function(t){var e=this.line,n=this.col,r=this.offset;return{code:t,startLine:e,endLine:e,startCol:n,endCol:n,startOffset:r,endOffset:r}}},{key:"_err",value:function(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}},{key:"_addGap",value:function(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}},{key:"_processSurrogate",value:function(t){if(this.pos!==this.html.length-1){var e=this.html.charCodeAt(this.pos+1);if(function(t){return 56320<=t&&t<=57343}(e))return this.pos++,this._addGap(),function(t,e){return 1024*(t-55296)+9216+e}(t,e)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,cr.EOF;return this._err(ur.surrogateInInputStream),t}},{key:"willDropParsedChunk",value:function(){return this.pos>this.bufferWaterline}},{key:"dropParsedChunk",value:function(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}},{key:"write",value:function(t,e){0<this.html.length?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=e}},{key:"insertHtmlAtCurrentPos",value:function(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}},{key:"startsWith",value:function(t,e){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(e)return this.html.startsWith(t,this.pos);for(var n=0;n<t.length;n++)if((32|this.html.charCodeAt(this.pos+n))!==t.charCodeAt(n))return!1;return!0}},{key:"peek",value:function(t){return(t=this.pos+t)>=this.html.length?(this.endOfChunkHit=!this.lastChunkWritten,cr.EOF):(t=this.html.charCodeAt(t))===cr.CARRIAGE_RETURN?cr.LINE_FEED:t}},{key:"advance",value:function(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,cr.EOF;var t=this.html.charCodeAt(this.pos);return t===cr.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,cr.LINE_FEED):t===cr.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,fr(t)&&(t=this._processSurrogate(t)),null===this.handler.onParseError||31<t&&t<127||t===cr.LINE_FEED||t===cr.CARRIAGE_RETURN||159<t&&t<64976||this._checkForProblematicCharacters(t),t)}},{key:"_checkForProblematicCharacters",value:function(t){dr(t)?this._err(ur.controlCharacterInInputStream):hr(t)&&this._err(ur.noncharacterInInputStream)}},{key:"retreat",value:function(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}]),t}();function vr(t,e){for(var n=t.attrs.length-1;0<=n;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null}(l=gr=gr||{})[l.CHARACTER=0]="CHARACTER",l[l.NULL_CHARACTER=1]="NULL_CHARACTER",l[l.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",l[l.START_TAG=3]="START_TAG",l[l.END_TAG=4]="END_TAG",l[l.COMMENT=5]="COMMENT",l[l.DOCTYPE=6]="DOCTYPE",l[l.EOF=7]="EOF",l[l.HIBERNATION=8]="HIBERNATION";var yr,br,_r,wr,Er,xr=n(11);function Tr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}(l=yr=yr||{}).HTML="http://www.w3.org/1999/xhtml",l.MATHML="http://www.w3.org/1998/Math/MathML",l.SVG="http://www.w3.org/2000/svg",l.XLINK="http://www.w3.org/1999/xlink",l.XML="http://www.w3.org/XML/1998/namespace",l.XMLNS="http://www.w3.org/2000/xmlns/",(l=br=br||{}).TYPE="type",l.ACTION="action",l.ENCODING="encoding",l.PROMPT="prompt",l.NAME="name",l.COLOR="color",l.FACE="face",l.SIZE="size",(l=_r=_r||{}).NO_QUIRKS="no-quirks",l.QUIRKS="quirks",l.LIMITED_QUIRKS="limited-quirks",(l=wr=wr||{}).A="a",l.ADDRESS="address",l.ANNOTATION_XML="annotation-xml",l.APPLET="applet",l.AREA="area",l.ARTICLE="article",l.ASIDE="aside",l.B="b",l.BASE="base",l.BASEFONT="basefont",l.BGSOUND="bgsound",l.BIG="big",l.BLOCKQUOTE="blockquote",l.BODY="body",l.BR="br",l.BUTTON="button",l.CAPTION="caption",l.CENTER="center",l.CODE="code",l.COL="col",l.COLGROUP="colgroup",l.DD="dd",l.DESC="desc",l.DETAILS="details",l.DIALOG="dialog",l.DIR="dir",l.DIV="div",l.DL="dl",l.DT="dt",l.EM="em",l.EMBED="embed",l.FIELDSET="fieldset",l.FIGCAPTION="figcaption",l.FIGURE="figure",l.FONT="font",l.FOOTER="footer",l.FOREIGN_OBJECT="foreignObject",l.FORM="form",l.FRAME="frame",l.FRAMESET="frameset",l.H1="h1",l.H2="h2",l.H3="h3",l.H4="h4",l.H5="h5",l.H6="h6",l.HEAD="head",l.HEADER="header",l.HGROUP="hgroup",l.HR="hr",l.HTML="html",l.I="i",l.IMG="img",l.IMAGE="image",l.INPUT="input",l.IFRAME="iframe",l.KEYGEN="keygen",l.LABEL="label",l.LI="li",l.LINK="link",l.LISTING="listing",l.MAIN="main",l.MALIGNMARK="malignmark",l.MARQUEE="marquee",l.MATH="math",l.MENU="menu",l.META="meta",l.MGLYPH="mglyph",l.MI="mi",l.MO="mo",l.MN="mn",l.MS="ms",l.MTEXT="mtext",l.NAV="nav",l.NOBR="nobr",l.NOFRAMES="noframes",l.NOEMBED="noembed",l.NOSCRIPT="noscript",l.OBJECT="object",l.OL="ol",l.OPTGROUP="optgroup",l.OPTION="option",l.P="p",l.PARAM="param",l.PLAINTEXT="plaintext",l.PRE="pre",l.RB="rb",l.RP="rp",l.RT="rt",l.RTC="rtc",l.RUBY="ruby",l.S="s",l.SCRIPT="script",l.SECTION="section",l.SELECT="select",l.SOURCE="source",l.SMALL="small",l.SPAN="span",l.STRIKE="strike",l.STRONG="strong",l.STYLE="style",l.SUB="sub",l.SUMMARY="summary",l.SUP="sup",l.TABLE="table",l.TBODY="tbody",l.TEMPLATE="template",l.TEXTAREA="textarea",l.TFOOT="tfoot",l.TD="td",l.TH="th",l.THEAD="thead",l.TITLE="title",l.TR="tr",l.TRACK="track",l.TT="tt",l.U="u",l.UL="ul",l.SVG="svg",l.VAR="var",l.WBR="wbr",l.XMP="xmp",(l=Er=Er||{})[l.UNKNOWN=0]="UNKNOWN",l[l.A=1]="A",l[l.ADDRESS=2]="ADDRESS",l[l.ANNOTATION_XML=3]="ANNOTATION_XML",l[l.APPLET=4]="APPLET",l[l.AREA=5]="AREA",l[l.ARTICLE=6]="ARTICLE",l[l.ASIDE=7]="ASIDE",l[l.B=8]="B",l[l.BASE=9]="BASE",l[l.BASEFONT=10]="BASEFONT",l[l.BGSOUND=11]="BGSOUND",l[l.BIG=12]="BIG",l[l.BLOCKQUOTE=13]="BLOCKQUOTE",l[l.BODY=14]="BODY",l[l.BR=15]="BR",l[l.BUTTON=16]="BUTTON",l[l.CAPTION=17]="CAPTION",l[l.CENTER=18]="CENTER",l[l.CODE=19]="CODE",l[l.COL=20]="COL",l[l.COLGROUP=21]="COLGROUP",l[l.DD=22]="DD",l[l.DESC=23]="DESC",l[l.DETAILS=24]="DETAILS",l[l.DIALOG=25]="DIALOG",l[l.DIR=26]="DIR",l[l.DIV=27]="DIV",l[l.DL=28]="DL",l[l.DT=29]="DT",l[l.EM=30]="EM",l[l.EMBED=31]="EMBED",l[l.FIELDSET=32]="FIELDSET",l[l.FIGCAPTION=33]="FIGCAPTION",l[l.FIGURE=34]="FIGURE",l[l.FONT=35]="FONT",l[l.FOOTER=36]="FOOTER",l[l.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",l[l.FORM=38]="FORM",l[l.FRAME=39]="FRAME",l[l.FRAMESET=40]="FRAMESET",l[l.H1=41]="H1",l[l.H2=42]="H2",l[l.H3=43]="H3",l[l.H4=44]="H4",l[l.H5=45]="H5",l[l.H6=46]="H6",l[l.HEAD=47]="HEAD",l[l.HEADER=48]="HEADER",l[l.HGROUP=49]="HGROUP",l[l.HR=50]="HR",l[l.HTML=51]="HTML",l[l.I=52]="I",l[l.IMG=53]="IMG",l[l.IMAGE=54]="IMAGE",l[l.INPUT=55]="INPUT",l[l.IFRAME=56]="IFRAME",l[l.KEYGEN=57]="KEYGEN",l[l.LABEL=58]="LABEL",l[l.LI=59]="LI",l[l.LINK=60]="LINK",l[l.LISTING=61]="LISTING",l[l.MAIN=62]="MAIN",l[l.MALIGNMARK=63]="MALIGNMARK",l[l.MARQUEE=64]="MARQUEE",l[l.MATH=65]="MATH",l[l.MENU=66]="MENU",l[l.META=67]="META",l[l.MGLYPH=68]="MGLYPH",l[l.MI=69]="MI",l[l.MO=70]="MO",l[l.MN=71]="MN",l[l.MS=72]="MS",l[l.MTEXT=73]="MTEXT",l[l.NAV=74]="NAV",l[l.NOBR=75]="NOBR",l[l.NOFRAMES=76]="NOFRAMES",l[l.NOEMBED=77]="NOEMBED",l[l.NOSCRIPT=78]="NOSCRIPT",l[l.OBJECT=79]="OBJECT",l[l.OL=80]="OL",l[l.OPTGROUP=81]="OPTGROUP",l[l.OPTION=82]="OPTION",l[l.P=83]="P",l[l.PARAM=84]="PARAM",l[l.PLAINTEXT=85]="PLAINTEXT",l[l.PRE=86]="PRE",l[l.RB=87]="RB",l[l.RP=88]="RP",l[l.RT=89]="RT",l[l.RTC=90]="RTC",l[l.RUBY=91]="RUBY",l[l.S=92]="S",l[l.SCRIPT=93]="SCRIPT",l[l.SECTION=94]="SECTION",l[l.SELECT=95]="SELECT",l[l.SOURCE=96]="SOURCE",l[l.SMALL=97]="SMALL",l[l.SPAN=98]="SPAN",l[l.STRIKE=99]="STRIKE",l[l.STRONG=100]="STRONG",l[l.STYLE=101]="STYLE",l[l.SUB=102]="SUB",l[l.SUMMARY=103]="SUMMARY",l[l.SUP=104]="SUP",l[l.TABLE=105]="TABLE",l[l.TBODY=106]="TBODY",l[l.TEMPLATE=107]="TEMPLATE",l[l.TEXTAREA=108]="TEXTAREA",l[l.TFOOT=109]="TFOOT",l[l.TD=110]="TD",l[l.TH=111]="TH",l[l.THEAD=112]="THEAD",l[l.TITLE=113]="TITLE",l[l.TR=114]="TR",l[l.TRACK=115]="TRACK",l[l.TT=116]="TT",l[l.U=117]="U",l[l.UL=118]="UL",l[l.SVG=119]="SVG",l[l.VAR=120]="VAR",l[l.WBR=121]="WBR",l[l.XMP=122]="XMP";var Cr=new Map([[wr.A,Er.A],[wr.ADDRESS,Er.ADDRESS],[wr.ANNOTATION_XML,Er.ANNOTATION_XML],[wr.APPLET,Er.APPLET],[wr.AREA,Er.AREA],[wr.ARTICLE,Er.ARTICLE],[wr.ASIDE,Er.ASIDE],[wr.B,Er.B],[wr.BASE,Er.BASE],[wr.BASEFONT,Er.BASEFONT],[wr.BGSOUND,Er.BGSOUND],[wr.BIG,Er.BIG],[wr.BLOCKQUOTE,Er.BLOCKQUOTE],[wr.BODY,Er.BODY],[wr.BR,Er.BR],[wr.BUTTON,Er.BUTTON],[wr.CAPTION,Er.CAPTION],[wr.CENTER,Er.CENTER],[wr.CODE,Er.CODE],[wr.COL,Er.COL],[wr.COLGROUP,Er.COLGROUP],[wr.DD,Er.DD],[wr.DESC,Er.DESC],[wr.DETAILS,Er.DETAILS],[wr.DIALOG,Er.DIALOG],[wr.DIR,Er.DIR],[wr.DIV,Er.DIV],[wr.DL,Er.DL],[wr.DT,Er.DT],[wr.EM,Er.EM],[wr.EMBED,Er.EMBED],[wr.FIELDSET,Er.FIELDSET],[wr.FIGCAPTION,Er.FIGCAPTION],[wr.FIGURE,Er.FIGURE],[wr.FONT,Er.FONT],[wr.FOOTER,Er.FOOTER],[wr.FOREIGN_OBJECT,Er.FOREIGN_OBJECT],[wr.FORM,Er.FORM],[wr.FRAME,Er.FRAME],[wr.FRAMESET,Er.FRAMESET],[wr.H1,Er.H1],[wr.H2,Er.H2],[wr.H3,Er.H3],[wr.H4,Er.H4],[wr.H5,Er.H5],[wr.H6,Er.H6],[wr.HEAD,Er.HEAD],[wr.HEADER,Er.HEADER],[wr.HGROUP,Er.HGROUP],[wr.HR,Er.HR],[wr.HTML,Er.HTML],[wr.I,Er.I],[wr.IMG,Er.IMG],[wr.IMAGE,Er.IMAGE],[wr.INPUT,Er.INPUT],[wr.IFRAME,Er.IFRAME],[wr.KEYGEN,Er.KEYGEN],[wr.LABEL,Er.LABEL],[wr.LI,Er.LI],[wr.LINK,Er.LINK],[wr.LISTING,Er.LISTING],[wr.MAIN,Er.MAIN],[wr.MALIGNMARK,Er.MALIGNMARK],[wr.MARQUEE,Er.MARQUEE],[wr.MATH,Er.MATH],[wr.MENU,Er.MENU],[wr.META,Er.META],[wr.MGLYPH,Er.MGLYPH],[wr.MI,Er.MI],[wr.MO,Er.MO],[wr.MN,Er.MN],[wr.MS,Er.MS],[wr.MTEXT,Er.MTEXT],[wr.NAV,Er.NAV],[wr.NOBR,Er.NOBR],[wr.NOFRAMES,Er.NOFRAMES],[wr.NOEMBED,Er.NOEMBED],[wr.NOSCRIPT,Er.NOSCRIPT],[wr.OBJECT,Er.OBJECT],[wr.OL,Er.OL],[wr.OPTGROUP,Er.OPTGROUP],[wr.OPTION,Er.OPTION],[wr.P,Er.P],[wr.PARAM,Er.PARAM],[wr.PLAINTEXT,Er.PLAINTEXT],[wr.PRE,Er.PRE],[wr.RB,Er.RB],[wr.RP,Er.RP],[wr.RT,Er.RT],[wr.RTC,Er.RTC],[wr.RUBY,Er.RUBY],[wr.S,Er.S],[wr.SCRIPT,Er.SCRIPT],[wr.SECTION,Er.SECTION],[wr.SELECT,Er.SELECT],[wr.SOURCE,Er.SOURCE],[wr.SMALL,Er.SMALL],[wr.SPAN,Er.SPAN],[wr.STRIKE,Er.STRIKE],[wr.STRONG,Er.STRONG],[wr.STYLE,Er.STYLE],[wr.SUB,Er.SUB],[wr.SUMMARY,Er.SUMMARY],[wr.SUP,Er.SUP],[wr.TABLE,Er.TABLE],[wr.TBODY,Er.TBODY],[wr.TEMPLATE,Er.TEMPLATE],[wr.TEXTAREA,Er.TEXTAREA],[wr.TFOOT,Er.TFOOT],[wr.TD,Er.TD],[wr.TH,Er.TH],[wr.THEAD,Er.THEAD],[wr.TITLE,Er.TITLE],[wr.TR,Er.TR],[wr.TRACK,Er.TRACK],[wr.TT,Er.TT],[wr.U,Er.U],[wr.UL,Er.UL],[wr.SVG,Er.SVG],[wr.VAR,Er.VAR],[wr.WBR,Er.WBR],[wr.XMP,Er.XMP]]);function Ar(t){return null!==(t=Cr.get(t))&&void 0!==t?t:Er.UNKNOWN}var Or=Er,Sr=(Tr(l={},yr.HTML,new Set([Or.ADDRESS,Or.APPLET,Or.AREA,Or.ARTICLE,Or.ASIDE,Or.BASE,Or.BASEFONT,Or.BGSOUND,Or.BLOCKQUOTE,Or.BODY,Or.BR,Or.BUTTON,Or.CAPTION,Or.CENTER,Or.COL,Or.COLGROUP,Or.DD,Or.DETAILS,Or.DIR,Or.DIV,Or.DL,Or.DT,Or.EMBED,Or.FIELDSET,Or.FIGCAPTION,Or.FIGURE,Or.FOOTER,Or.FORM,Or.FRAME,Or.FRAMESET,Or.H1,Or.H2,Or.H3,Or.H4,Or.H5,Or.H6,Or.HEAD,Or.HEADER,Or.HGROUP,Or.HR,Or.HTML,Or.IFRAME,Or.IMG,Or.INPUT,Or.LI,Or.LINK,Or.LISTING,Or.MAIN,Or.MARQUEE,Or.MENU,Or.META,Or.NAV,Or.NOEMBED,Or.NOFRAMES,Or.NOSCRIPT,Or.OBJECT,Or.OL,Or.P,Or.PARAM,Or.PLAINTEXT,Or.PRE,Or.SCRIPT,Or.SECTION,Or.SELECT,Or.SOURCE,Or.STYLE,Or.SUMMARY,Or.TABLE,Or.TBODY,Or.TD,Or.TEMPLATE,Or.TEXTAREA,Or.TFOOT,Or.TH,Or.THEAD,Or.TITLE,Or.TR,Or.TRACK,Or.UL,Or.WBR,Or.XMP])),Tr(l,yr.MATHML,new Set([Or.MI,Or.MO,Or.MN,Or.MS,Or.MTEXT,Or.ANNOTATION_XML])),Tr(l,yr.SVG,new Set([Or.TITLE,Or.FOREIGN_OBJECT,Or.DESC])),Tr(l,yr.XLINK,new Set),Tr(l,yr.XML,new Set),Tr(l,yr.XMLNS,new Set),l);function kr(t){return t===Or.H1||t===Or.H2||t===Or.H3||t===Or.H4||t===Or.H5||t===Or.H6}var Pr=new Set([wr.STYLE,wr.SCRIPT,wr.XMP,wr.IFRAME,wr.NOEMBED,wr.NOFRAMES,wr.PLAINTEXT]);function jr(t,e){return Pr.has(t)||e&&t===wr.NOSCRIPT}var Nr,Lr=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);(l=Nr=Nr||{})[l.DATA=0]="DATA",l[l.RCDATA=1]="RCDATA",l[l.RAWTEXT=2]="RAWTEXT",l[l.SCRIPT_DATA=3]="SCRIPT_DATA",l[l.PLAINTEXT=4]="PLAINTEXT",l[l.TAG_OPEN=5]="TAG_OPEN",l[l.END_TAG_OPEN=6]="END_TAG_OPEN",l[l.TAG_NAME=7]="TAG_NAME",l[l.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",l[l.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",l[l.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",l[l.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",l[l.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",l[l.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",l[l.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",l[l.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",l[l.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",l[l.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",l[l.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",l[l.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",l[l.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",l[l.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",l[l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",l[l.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",l[l.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",l[l.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",l[l.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",l[l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",l[l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",l[l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",l[l.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",l[l.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",l[l.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",l[l.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",l[l.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",l[l.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",l[l.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",l[l.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",l[l.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",l[l.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",l[l.BOGUS_COMMENT=40]="BOGUS_COMMENT",l[l.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",l[l.COMMENT_START=42]="COMMENT_START",l[l.COMMENT_START_DASH=43]="COMMENT_START_DASH",l[l.COMMENT=44]="COMMENT",l[l.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",l[l.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",l[l.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",l[l.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",l[l.COMMENT_END_DASH=49]="COMMENT_END_DASH",l[l.COMMENT_END=50]="COMMENT_END",l[l.COMMENT_END_BANG=51]="COMMENT_END_BANG",l[l.DOCTYPE=52]="DOCTYPE",l[l.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",l[l.DOCTYPE_NAME=54]="DOCTYPE_NAME",l[l.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",l[l.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",l[l.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",l[l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",l[l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",l[l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",l[l.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",l[l.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",l[l.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",l[l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",l[l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",l[l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",l[l.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",l[l.CDATA_SECTION=68]="CDATA_SECTION",l[l.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",l[l.CDATA_SECTION_END=70]="CDATA_SECTION_END",l[l.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",l[l.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",l[l.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",l[l.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",l[l.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",l[l.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",l[l.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",l[l.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END";var Dr={DATA:Nr.DATA,RCDATA:Nr.RCDATA,RAWTEXT:Nr.RAWTEXT,SCRIPT_DATA:Nr.SCRIPT_DATA,PLAINTEXT:Nr.PLAINTEXT,CDATA_SECTION:Nr.CDATA_SECTION};function Ir(t){return t>=cr.DIGIT_0&&t<=cr.DIGIT_9}function Rr(t){return t>=cr.LATIN_CAPITAL_A&&t<=cr.LATIN_CAPITAL_Z}function Mr(t){return function(t){return t>=cr.LATIN_SMALL_A&&t<=cr.LATIN_SMALL_Z}(t)||Rr(t)}function Br(t){return Mr(t)||Ir(t)}function Fr(t){return t>=cr.LATIN_CAPITAL_A&&t<=cr.LATIN_CAPITAL_F}function Ur(t){return t>=cr.LATIN_SMALL_A&&t<=cr.LATIN_SMALL_F}function Hr(t){return t===cr.SPACE||t===cr.LINE_FEED||t===cr.TABULATION||t===cr.FORM_FEED}function Vr(t){return Hr(t)||t===cr.SOLIDUS||t===cr.GREATER_THAN_SIGN}var qr=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Nr.DATA,this.returnState=Nr.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new mr(n),this.currentLocation=this.getCurrentLocation(-1)}return function(t,e,n){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"_err",value:function(t){var e,n;null!==(n=(e=this.handler).onParseError)&&void 0!==n&&n.call(e,this.preprocessor.getError(t))}},{key:"getCurrentLocation",value:function(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}},{key:"_runParsingLoop",value:function(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;var t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null!=t&&t())}},{key:"write",value:function(t,e,n){this.active=!0,this.preprocessor.write(t,e),this._runParsingLoop(),this.paused||null!=n&&n()}},{key:"insertHtmlAtCurrentPos",value:function(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}},{key:"_ensureHibernation",value:function(){return!(!this.preprocessor.endOfChunkHit||(this._unconsume(this.consumedAfterSnapshot),this.active=!1))}},{key:"_consume",value:function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}},{key:"_unconsume",value:function(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}},{key:"_reconsumeInState",value:function(t,e){this.state=t,this._callState(e)}},{key:"_advanceBy",value:function(t){this.consumedAfterSnapshot+=t;for(var e=0;e<t;e++)this.preprocessor.advance()}},{key:"_consumeSequenceIfMatch",value:function(t,e){return!!this.preprocessor.startsWith(t,e)&&(this._advanceBy(t.length-1),!0)}},{key:"_createStartTagToken",value:function(){this.currentToken={type:gr.START_TAG,tagName:"",tagID:Er.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}},{key:"_createEndTagToken",value:function(){this.currentToken={type:gr.END_TAG,tagName:"",tagID:Er.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}},{key:"_createCommentToken",value:function(t){this.currentToken={type:gr.COMMENT,data:"",location:this.getCurrentLocation(t)}}},{key:"_createDoctypeToken",value:function(t){this.currentToken={type:gr.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}},{key:"_createCharacterToken",value:function(t,e){this.currentCharacterToken={type:t,chars:e,location:this.currentLocation}}},{key:"_createAttr",value:function(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}},{key:"_leaveAttrName",value:function(){var t,e=this.currentToken;null===vr(e,this.currentAttr.name)?(e.attrs.push(this.currentAttr),e.location&&this.currentLocation&&((null!==(e=(t=e.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(ur.duplicateAttribute)}},{key:"_leaveAttrValue",value:function(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}},{key:"prepareToken",value:function(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}},{key:"emitCurrentTagToken",value:function(){var t=this.currentToken;this.prepareToken(t),t.tagID=Ar(t.tagName),t.type===gr.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(0<t.attrs.length&&this._err(ur.endTagWithAttributes),t.selfClosing&&this._err(ur.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}},{key:"emitCurrentComment",value:function(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}},{key:"emitCurrentDoctype",value:function(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}},{key:"_emitCurrentCharacterToken",value:function(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case gr.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case gr.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case gr.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}},{key:"_emitEOFToken",value:function(){var t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:gr.EOF,location:t}),this.active=!1}},{key:"_appendCharToCurrentCharacterToken",value:function(t,e){if(this.currentCharacterToken){if(this.currentCharacterToken.type===t)return void(this.currentCharacterToken.chars+=e);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(t,e)}},{key:"_emitCodePoint",value:function(t){var e=Hr(t)?gr.WHITESPACE_CHARACTER:t===cr.NULL?gr.NULL_CHARACTER:gr.CHARACTER;this._appendCharToCurrentCharacterToken(e,String.fromCodePoint(t))}},{key:"_emitChars",value:function(t){this._appendCharToCurrentCharacterToken(gr.CHARACTER,t)}},{key:"_matchNamedCharacterReference",value:function(t){for(var e=null,n=0,r=!1,o=0,i=xr.htmlDecodeTree[0];0<=o&&!((o=Object(xr.determineBranch)(xr.htmlDecodeTree,i,o+1,t))<0);t=this._consume()){n+=1;var a=(i=xr.htmlDecodeTree[o])&xr.BinTrieFlags.VALUE_LENGTH;if(a&&(a=(a>>14)-1,t!==cr.SEMICOLON&&this._isCharacterReferenceInAttribute()&&function(t){return t===cr.EQUALS_SIGN||Br(t)}(this.preprocessor.peek(1))?(e=[cr.AMPERSAND],o+=a):(e=0==a?[xr.htmlDecodeTree[o]&~xr.BinTrieFlags.VALUE_LENGTH]:1==a?[xr.htmlDecodeTree[++o]]:[xr.htmlDecodeTree[++o],xr.htmlDecodeTree[++o]],n=0,r=t!==cr.SEMICOLON),0==a)){this._consume();break}}return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(ur.missingSemicolonAfterCharacterReference),this._unconsume(1),e}},{key:"_isCharacterReferenceInAttribute",value:function(){return this.returnState===Nr.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Nr.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Nr.ATTRIBUTE_VALUE_UNQUOTED}},{key:"_flushCodePointConsumedAsCharacterReference",value:function(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}},{key:"_callState",value:function(t){switch(this.state){case Nr.DATA:this._stateData(t);break;case Nr.RCDATA:this._stateRcdata(t);break;case Nr.RAWTEXT:this._stateRawtext(t);break;case Nr.SCRIPT_DATA:this._stateScriptData(t);break;case Nr.PLAINTEXT:this._statePlaintext(t);break;case Nr.TAG_OPEN:this._stateTagOpen(t);break;case Nr.END_TAG_OPEN:this._stateEndTagOpen(t);break;case Nr.TAG_NAME:this._stateTagName(t);break;case Nr.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(t);break;case Nr.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(t);break;case Nr.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(t);break;case Nr.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(t);break;case Nr.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(t);break;case Nr.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(t);break;case Nr.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(t);break;case Nr.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(t);break;case Nr.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(t);break;case Nr.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(t);break;case Nr.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(t);break;case Nr.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(t);break;case Nr.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(t);break;case Nr.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(t);break;case Nr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(t);break;case Nr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(t);break;case Nr.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(t);break;case Nr.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(t);break;case Nr.ATTRIBUTE_NAME:this._stateAttributeName(t);break;case Nr.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(t);break;case Nr.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(t);break;case Nr.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(t);break;case Nr.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(t);break;case Nr.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(t);break;case Nr.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(t);break;case Nr.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(t);break;case Nr.BOGUS_COMMENT:this._stateBogusComment(t);break;case Nr.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(t);break;case Nr.COMMENT_START:this._stateCommentStart(t);break;case Nr.COMMENT_START_DASH:this._stateCommentStartDash(t);break;case Nr.COMMENT:this._stateComment(t);break;case Nr.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(t);break;case Nr.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(t);break;case Nr.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(t);break;case Nr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(t);break;case Nr.COMMENT_END_DASH:this._stateCommentEndDash(t);break;case Nr.COMMENT_END:this._stateCommentEnd(t);break;case Nr.COMMENT_END_BANG:this._stateCommentEndBang(t);break;case Nr.DOCTYPE:this._stateDoctype(t);break;case Nr.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(t);break;case Nr.DOCTYPE_NAME:this._stateDoctypeName(t);break;case Nr.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(t);break;case Nr.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(t);break;case Nr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(t);break;case Nr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(t);break;case Nr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(t);break;case Nr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(t);break;case Nr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break;case Nr.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(t);break;case Nr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(t);break;case Nr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(t);break;case Nr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(t);break;case Nr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(t);break;case Nr.BOGUS_DOCTYPE:this._stateBogusDoctype(t);break;case Nr.CDATA_SECTION:this._stateCdataSection(t);break;case Nr.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(t);break;case Nr.CDATA_SECTION_END:this._stateCdataSectionEnd(t);break;case Nr.CHARACTER_REFERENCE:this._stateCharacterReference(t);break;case Nr.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(t);break;case Nr.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(t);break;case Nr.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(t);break;case Nr.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(t);break;case Nr.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(t);break;case Nr.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(t);break;case Nr.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(t);break;default:throw new Error("Unknown state")}}},{key:"_stateData",value:function(t){switch(t){case cr.LESS_THAN_SIGN:this.state=Nr.TAG_OPEN;break;case cr.AMPERSAND:this.returnState=Nr.DATA,this.state=Nr.CHARACTER_REFERENCE;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitCodePoint(t);break;case cr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateRcdata",value:function(t){switch(t){case cr.AMPERSAND:this.returnState=Nr.RCDATA,this.state=Nr.CHARACTER_REFERENCE;break;case cr.LESS_THAN_SIGN:this.state=Nr.RCDATA_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("<22>");break;case cr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateRawtext",value:function(t){switch(t){case cr.LESS_THAN_SIGN:this.state=Nr.RAWTEXT_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("<22>");break;case cr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateScriptData",value:function(t){switch(t){case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("<22>");break;case cr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_statePlaintext",value:function(t){switch(t){case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("<22>");break;case cr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateTagOpen",value:function(t){if(Mr(t))this._createStartTagToken(),this.state=Nr.TAG_NAME,this._stateTagName(t);else switch(t){case cr.EXCLAMATION_MARK:this.state=Nr.MARKUP_DECLARATION_OPEN;break;case cr.SOLIDUS:this.state=Nr.END_TAG_OPEN;break;case cr.QUESTION_MARK:this._err(ur.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Nr.BOGUS_COMMENT,this._stateBogusComment(t);break;case cr.EOF:this._err(ur.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(ur.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Nr.DATA,this._stateData(t)}}},{key:"_stateEndTagOpen",value:function(t){if(Mr(t))this._createEndTagToken(),this.state=Nr.TAG_NAME,this._stateTagName(t);else switch(t){case cr.GREATER_THAN_SIGN:this._err(ur.missingEndTagName),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(ur.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Nr.BOGUS_COMMENT,this._stateBogusComment(t)}}},{key:"_stateTagName",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.BEFORE_ATTRIBUTE_NAME;break;case cr.SOLIDUS:this.state=Nr.SELF_CLOSING_START_TAG;break;case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentTagToken();break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.tagName+="<22>";break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:e.tagName+=String.fromCodePoint(Rr(t)?t+32:t)}}},{key:"_stateRcdataLessThanSign",value:function(t){t===cr.SOLIDUS?this.state=Nr.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Nr.RCDATA,this._stateRcdata(t))}},{key:"_stateRcdataEndTagOpen",value:function(t){Mr(t)?(this.state=Nr.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=Nr.RCDATA,this._stateRcdata(t))}},{key:"handleSpecialEndTag",value:function(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Nr.BEFORE_ATTRIBUTE_NAME,!1;case cr.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Nr.SELF_CLOSING_START_TAG,!1;case cr.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Nr.DATA,!1;default:return!this._ensureHibernation()}}},{key:"_stateRcdataEndTagName",value:function(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Nr.RCDATA,this._stateRcdata(t))}},{key:"_stateRawtextLessThanSign",value:function(t){t===cr.SOLIDUS?this.state=Nr.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Nr.RAWTEXT,this._stateRawtext(t))}},{key:"_stateRawtextEndTagOpen",value:function(t){Mr(t)?(this.state=Nr.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=Nr.RAWTEXT,this._stateRawtext(t))}},{key:"_stateRawtextEndTagName",value:function(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Nr.RAWTEXT,this._stateRawtext(t))}},{key:"_stateScriptDataLessThanSign",value:function(t){switch(t){case cr.SOLIDUS:this.state=Nr.SCRIPT_DATA_END_TAG_OPEN;break;case cr.EXCLAMATION_MARK:this.state=Nr.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=Nr.SCRIPT_DATA,this._stateScriptData(t)}}},{key:"_stateScriptDataEndTagOpen",value:function(t){Mr(t)?(this.state=Nr.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=Nr.SCRIPT_DATA,this._stateScriptData(t))}},{key:"_stateScriptDataEndTagName",value:function(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Nr.SCRIPT_DATA,this._stateScriptData(t))}},{key:"_stateScriptDataEscapeStart",value:function(t){t===cr.HYPHEN_MINUS?(this.state=Nr.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Nr.SCRIPT_DATA,this._stateScriptData(t))}},{key:"_stateScriptDataEscapeStartDash",value:function(t){t===cr.HYPHEN_MINUS?(this.state=Nr.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Nr.SCRIPT_DATA,this._stateScriptData(t))}},{key:"_stateScriptDataEscaped",value:function(t){switch(t){case cr.HYPHEN_MINUS:this.state=Nr.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("<22>");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateScriptDataEscapedDash",value:function(t){switch(t){case cr.HYPHEN_MINUS:this.state=Nr.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.state=Nr.SCRIPT_DATA_ESCAPED,this._emitChars("<22>");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nr.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}},{key:"_stateScriptDataEscapedDashDash",value:function(t){switch(t){case cr.HYPHEN_MINUS:this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case cr.GREATER_THAN_SIGN:this.state=Nr.SCRIPT_DATA,this._emitChars(">");break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.state=Nr.SCRIPT_DATA_ESCAPED,this._emitChars("<22>");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nr.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}},{key:"_stateScriptDataEscapedLessThanSign",value:function(t){t===cr.SOLIDUS?this.state=Nr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Mr(t)?(this._emitChars("<"),this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=Nr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}},{key:"_stateScriptDataEscapedEndTagOpen",value:function(t){Mr(t)?(this.state=Nr.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=Nr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}},{key:"_stateScriptDataEscapedEndTagName",value:function(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Nr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}},{key:"_stateScriptDataDoubleEscapeStart",value:function(t){if(this.preprocessor.startsWith("script",!1)&&Vr(this.preprocessor.peek(6))){this._emitCodePoint(t);for(var e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Nr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}},{key:"_stateScriptDataDoubleEscaped",value:function(t){switch(t){case cr.HYPHEN_MINUS:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("<22>");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateScriptDataDoubleEscapedDash",value:function(t){switch(t){case cr.HYPHEN_MINUS:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("<22>");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}},{key:"_stateScriptDataDoubleEscapedDashDash",value:function(t){switch(t){case cr.HYPHEN_MINUS:this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case cr.GREATER_THAN_SIGN:this.state=Nr.SCRIPT_DATA,this._emitChars(">");break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("<22>");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}},{key:"_stateScriptDataDoubleEscapedLessThanSign",value:function(t){t===cr.SOLIDUS?(this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}},{key:"_stateScriptDataDoubleEscapeEnd",value:function(t){if(this.preprocessor.startsWith("script",!1)&&Vr(this.preprocessor.peek(6))){this._emitCodePoint(t);for(var e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Nr.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}},{key:"_stateBeforeAttributeName",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.SOLIDUS:case cr.GREATER_THAN_SIGN:case cr.EOF:this.state=Nr.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break;case cr.EQUALS_SIGN:this._err(ur.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Nr.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=Nr.ATTRIBUTE_NAME,this._stateAttributeName(t)}}},{key:"_stateAttributeName",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:case cr.SOLIDUS:case cr.GREATER_THAN_SIGN:case cr.EOF:this._leaveAttrName(),this.state=Nr.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break;case cr.EQUALS_SIGN:this._leaveAttrName(),this.state=Nr.BEFORE_ATTRIBUTE_VALUE;break;case cr.QUOTATION_MARK:case cr.APOSTROPHE:case cr.LESS_THAN_SIGN:this._err(ur.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.currentAttr.name+="<22>";break;default:this.currentAttr.name+=String.fromCodePoint(Rr(t)?t+32:t)}}},{key:"_stateAfterAttributeName",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.SOLIDUS:this.state=Nr.SELF_CLOSING_START_TAG;break;case cr.EQUALS_SIGN:this.state=Nr.BEFORE_ATTRIBUTE_VALUE;break;case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentTagToken();break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=Nr.ATTRIBUTE_NAME,this._stateAttributeName(t)}}},{key:"_stateBeforeAttributeValue",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.QUOTATION_MARK:this.state=Nr.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case cr.APOSTROPHE:this.state=Nr.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingAttributeValue),this.state=Nr.DATA,this.emitCurrentTagToken();break;default:this.state=Nr.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}},{key:"_stateAttributeValueDoubleQuoted",value:function(t){switch(t){case cr.QUOTATION_MARK:this.state=Nr.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case cr.AMPERSAND:this.returnState=Nr.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=Nr.CHARACTER_REFERENCE;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}},{key:"_stateAttributeValueSingleQuoted",value:function(t){switch(t){case cr.APOSTROPHE:this.state=Nr.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case cr.AMPERSAND:this.returnState=Nr.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=Nr.CHARACTER_REFERENCE;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}},{key:"_stateAttributeValueUnquoted",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this._leaveAttrValue(),this.state=Nr.BEFORE_ATTRIBUTE_NAME;break;case cr.AMPERSAND:this.returnState=Nr.ATTRIBUTE_VALUE_UNQUOTED,this.state=Nr.CHARACTER_REFERENCE;break;case cr.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Nr.DATA,this.emitCurrentTagToken();break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case cr.QUOTATION_MARK:case cr.APOSTROPHE:case cr.LESS_THAN_SIGN:case cr.EQUALS_SIGN:case cr.GRAVE_ACCENT:this._err(ur.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}},{key:"_stateAfterAttributeValueQuoted",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this._leaveAttrValue(),this.state=Nr.BEFORE_ATTRIBUTE_NAME;break;case cr.SOLIDUS:this._leaveAttrValue(),this.state=Nr.SELF_CLOSING_START_TAG;break;case cr.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Nr.DATA,this.emitCurrentTagToken();break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this._err(ur.missingWhitespaceBetweenAttributes),this.state=Nr.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}},{key:"_stateSelfClosingStartTag",value:function(t){switch(t){case cr.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=Nr.DATA,this.emitCurrentTagToken();break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this._err(ur.unexpectedSolidusInTag),this.state=Nr.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}},{key:"_stateBogusComment",value:function(t){var e=this.currentToken;switch(t){case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentComment(e);break;case cr.EOF:this.emitCurrentComment(e),this._emitEOFToken();break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.data+="<22>";break;default:e.data+=String.fromCodePoint(t)}}},{key:"_stateMarkupDeclarationOpen",value:function(t){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=Nr.COMMENT_START):this._consumeSequenceIfMatch("doctype",!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=Nr.DOCTYPE):this._consumeSequenceIfMatch("[CDATA[",!0)?this.inForeignNode?this.state=Nr.CDATA_SECTION:(this._err(ur.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=Nr.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ur.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Nr.BOGUS_COMMENT,this._stateBogusComment(t))}},{key:"_stateCommentStart",value:function(t){switch(t){case cr.HYPHEN_MINUS:this.state=Nr.COMMENT_START_DASH;break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptClosingOfEmptyComment),this.state=Nr.DATA;var e=this.currentToken;this.emitCurrentComment(e);break;default:this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateCommentStartDash",value:function(t){var e=this.currentToken;switch(t){case cr.HYPHEN_MINUS:this.state=Nr.COMMENT_END;break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptClosingOfEmptyComment),this.state=Nr.DATA,this.emitCurrentComment(e);break;case cr.EOF:this._err(ur.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="-",this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateComment",value:function(t){var e=this.currentToken;switch(t){case cr.HYPHEN_MINUS:this.state=Nr.COMMENT_END_DASH;break;case cr.LESS_THAN_SIGN:e.data+="<",this.state=Nr.COMMENT_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.data+="<22>";break;case cr.EOF:this._err(ur.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+=String.fromCodePoint(t)}}},{key:"_stateCommentLessThanSign",value:function(t){var e=this.currentToken;switch(t){case cr.EXCLAMATION_MARK:e.data+="!",this.state=Nr.COMMENT_LESS_THAN_SIGN_BANG;break;case cr.LESS_THAN_SIGN:e.data+="<";break;default:this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateCommentLessThanSignBang",value:function(t){t===cr.HYPHEN_MINUS?this.state=Nr.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Nr.COMMENT,this._stateComment(t))}},{key:"_stateCommentLessThanSignBangDash",value:function(t){t===cr.HYPHEN_MINUS?this.state=Nr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Nr.COMMENT_END_DASH,this._stateCommentEndDash(t))}},{key:"_stateCommentLessThanSignBangDashDash",value:function(t){t!==cr.GREATER_THAN_SIGN&&t!==cr.EOF&&this._err(ur.nestedComment),this.state=Nr.COMMENT_END,this._stateCommentEnd(t)}},{key:"_stateCommentEndDash",value:function(t){var e=this.currentToken;switch(t){case cr.HYPHEN_MINUS:this.state=Nr.COMMENT_END;break;case cr.EOF:this._err(ur.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="-",this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateCommentEnd",value:function(t){var e=this.currentToken;switch(t){case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentComment(e);break;case cr.EXCLAMATION_MARK:this.state=Nr.COMMENT_END_BANG;break;case cr.HYPHEN_MINUS:e.data+="-";break;case cr.EOF:this._err(ur.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="--",this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateCommentEndBang",value:function(t){var e=this.currentToken;switch(t){case cr.HYPHEN_MINUS:e.data+="--!",this.state=Nr.COMMENT_END_DASH;break;case cr.GREATER_THAN_SIGN:this._err(ur.incorrectlyClosedComment),this.state=Nr.DATA,this.emitCurrentComment(e);break;case cr.EOF:this._err(ur.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="--!",this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateDoctype",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.BEFORE_DOCTYPE_NAME;break;case cr.GREATER_THAN_SIGN:this.state=Nr.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break;case cr.EOF:this._err(ur.eofInDoctype),this._createDoctypeToken(null);var e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingWhitespaceBeforeDoctypeName),this.state=Nr.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}},{key:"_stateBeforeDoctypeName",value:function(t){if(Rr(t))this._createDoctypeToken(String.fromCharCode(t+32)),this.state=Nr.DOCTYPE_NAME;else switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._createDoctypeToken("<22>"),this.state=Nr.DOCTYPE_NAME;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingDoctypeName),this._createDoctypeToken(null);var e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),this._createDoctypeToken(null),(e=this.currentToken).forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=Nr.DOCTYPE_NAME}}},{key:"_stateDoctypeName",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.AFTER_DOCTYPE_NAME;break;case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.name+="<22>";break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.name+=String.fromCodePoint(Rr(t)?t+32:t)}}},{key:"_stateAfterDoctypeName",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=Nr.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=Nr.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ur.invalidCharacterSequenceAfterDoctypeName),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}},{key:"_stateAfterDoctypePublicKeyword",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case cr.QUOTATION_MARK:this._err(ur.missingWhitespaceAfterDoctypePublicKeyword),e.publicId="",this.state=Nr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:this._err(ur.missingWhitespaceAfterDoctypePublicKeyword),e.publicId="",this.state=Nr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingDoctypePublicIdentifier),e.forceQuirks=!0,this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypePublicIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateBeforeDoctypePublicIdentifier",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.QUOTATION_MARK:e.publicId="",this.state=Nr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:e.publicId="",this.state=Nr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingDoctypePublicIdentifier),e.forceQuirks=!0,this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypePublicIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateDoctypePublicIdentifierDoubleQuoted",value:function(t){var e=this.currentToken;switch(t){case cr.QUOTATION_MARK:this.state=Nr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.publicId+="<22>";break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptDoctypePublicIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.publicId+=String.fromCodePoint(t)}}},{key:"_stateDoctypePublicIdentifierSingleQuoted",value:function(t){var e=this.currentToken;switch(t){case cr.APOSTROPHE:this.state=Nr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.publicId+="<22>";break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptDoctypePublicIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.publicId+=String.fromCodePoint(t)}}},{key:"_stateAfterDoctypePublicIdentifier",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.QUOTATION_MARK:this._err(ur.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:this._err(ur.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateBetweenDoctypePublicAndSystemIdentifiers",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.QUOTATION_MARK:e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateAfterDoctypeSystemKeyword",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case cr.QUOTATION_MARK:this._err(ur.missingWhitespaceAfterDoctypeSystemKeyword),e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:this._err(ur.missingWhitespaceAfterDoctypeSystemKeyword),e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateBeforeDoctypeSystemIdentifier",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.QUOTATION_MARK:e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateDoctypeSystemIdentifierDoubleQuoted",value:function(t){var e=this.currentToken;switch(t){case cr.QUOTATION_MARK:this.state=Nr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.systemId+="<22>";break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptDoctypeSystemIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.systemId+=String.fromCodePoint(t)}}},{key:"_stateDoctypeSystemIdentifierSingleQuoted",value:function(t){var e=this.currentToken;switch(t){case cr.APOSTROPHE:this.state=Nr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.systemId+="<22>";break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptDoctypeSystemIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.systemId+=String.fromCodePoint(t)}}},{key:"_stateAfterDoctypeSystemIdentifier",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateBogusDoctype",value:function(t){var e=this.currentToken;switch(t){case cr.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.NULL:this._err(ur.unexpectedNullCharacter);break;case cr.EOF:this.emitCurrentDoctype(e),this._emitEOFToken()}}},{key:"_stateCdataSection",value:function(t){switch(t){case cr.RIGHT_SQUARE_BRACKET:this.state=Nr.CDATA_SECTION_BRACKET;break;case cr.EOF:this._err(ur.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateCdataSectionBracket",value:function(t){t===cr.RIGHT_SQUARE_BRACKET?this.state=Nr.CDATA_SECTION_END:(this._emitChars("]"),this.state=Nr.CDATA_SECTION,this._stateCdataSection(t))}},{key:"_stateCdataSectionEnd",value:function(t){switch(t){case cr.GREATER_THAN_SIGN:this.state=Nr.DATA;break;case cr.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=Nr.CDATA_SECTION,this._stateCdataSection(t)}}},{key:"_stateCharacterReference",value:function(t){t===cr.NUMBER_SIGN?this.state=Nr.NUMERIC_CHARACTER_REFERENCE:Br(t)?(this.state=Nr.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(cr.AMPERSAND),this._reconsumeInState(this.returnState,t))}},{key:"_stateNamedCharacterReference",value:function(t){var e=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(e){for(var n=0;n<e.length;n++)this._flushCodePointConsumedAsCharacterReference(e[n]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(cr.AMPERSAND),this.state=Nr.AMBIGUOUS_AMPERSAND}},{key:"_stateAmbiguousAmpersand",value:function(t){Br(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===cr.SEMICOLON&&this._err(ur.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}},{key:"_stateNumericCharacterReference",value:function(t){this.charRefCode=0,t===cr.LATIN_SMALL_X||t===cr.LATIN_CAPITAL_X?this.state=Nr.HEXADEMICAL_CHARACTER_REFERENCE_START:Ir(t)?(this.state=Nr.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(ur.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(cr.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(cr.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}},{key:"_stateHexademicalCharacterReferenceStart",value:function(t){!function(t){return Ir(t)||Fr(t)||Ur(t)}(t)?(this._err(ur.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(cr.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(cr.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState):(this.state=Nr.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t))}},{key:"_stateHexademicalCharacterReference",value:function(t){Fr(t)?this.charRefCode=16*this.charRefCode+t-55:Ur(t)?this.charRefCode=16*this.charRefCode+t-87:Ir(t)?this.charRefCode=16*this.charRefCode+t-48:t===cr.SEMICOLON?this.state=Nr.NUMERIC_CHARACTER_REFERENCE_END:(this._err(ur.missingSemicolonAfterCharacterReference),this.state=Nr.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}},{key:"_stateDecimalCharacterReference",value:function(t){Ir(t)?this.charRefCode=10*this.charRefCode+t-48:t===cr.SEMICOLON?this.state=Nr.NUMERIC_CHARACTER_REFERENCE_END:(this._err(ur.missingSemicolonAfterCharacterReference),this.state=Nr.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}},{key:"_stateNumericCharacterReferenceEnd",value:function(t){var e;this.charRefCode===cr.NULL?(this._err(ur.nullCharacterReference),this.charRefCode=cr.REPLACEMENT_CHARACTER):1114111<this.charRefCode?(this._err(ur.characterReferenceOutsideUnicodeRange),this.charRefCode=cr.REPLACEMENT_CHARACTER):fr(this.charRefCode)?(this._err(ur.surrogateCharacterReference),this.charRefCode=cr.REPLACEMENT_CHARACTER):hr(this.charRefCode)?this._err(ur.noncharacterCharacterReference):!dr(this.charRefCode)&&this.charRefCode!==cr.CARRIAGE_RETURN||(this._err(ur.controlCharacterReference),void 0!==(e=Lr.get(this.charRefCode))&&(this.charRefCode=e)),this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}]),t}();function zr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Gr,Wr=new Set([Er.DD,Er.DT,Er.LI,Er.OPTGROUP,Er.OPTION,Er.P,Er.RB,Er.RP,Er.RT,Er.RTC]),Yr=new Set([].concat(function(t){return function(t){if(Array.isArray(t))return zr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return zr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zr(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Wr),[Er.CAPTION,Er.COLGROUP,Er.TBODY,Er.TD,Er.TFOOT,Er.TH,Er.THEAD,Er.TR])),Kr=new Map([[Er.APPLET,yr.HTML],[Er.CAPTION,yr.HTML],[Er.HTML,yr.HTML],[Er.MARQUEE,yr.HTML],[Er.OBJECT,yr.HTML],[Er.TABLE,yr.HTML],[Er.TD,yr.HTML],[Er.TEMPLATE,yr.HTML],[Er.TH,yr.HTML],[Er.ANNOTATION_XML,yr.MATHML],[Er.MI,yr.MATHML],[Er.MN,yr.MATHML],[Er.MO,yr.MATHML],[Er.MS,yr.MATHML],[Er.MTEXT,yr.MATHML],[Er.DESC,yr.SVG],[Er.FOREIGN_OBJECT,yr.SVG],[Er.TITLE,yr.SVG]]),$r=[Er.H1,Er.H2,Er.H3,Er.H4,Er.H5,Er.H6],Xr=[Er.TR,Er.TEMPLATE,Er.HTML],Qr=[Er.TBODY,Er.TFOOT,Er.THEAD,Er.TEMPLATE,Er.HTML],Zr=[Er.TABLE,Er.TEMPLATE,Er.HTML],Jr=[Er.TD,Er.TH],to=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Er.UNKNOWN,this.current=e}return function(t,e,n){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"currentTmplContentOrNode",get:function(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}},{key:"_indexOf",value:function(t){return this.items.lastIndexOf(t,this.stackTop)}},{key:"_isInTemplate",value:function(){return this.currentTagId===Er.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===yr.HTML}},{key:"_updateCurrentElement",value:function(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}},{key:"push",value:function(t,e){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=e,this.currentTagId=e,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,e,!0)}},{key:"pop",value:function(){var t=this.current;0<this.tmplCount&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}},{key:"replace",value:function(t,e){t=this._indexOf(t),this.items[t]=e,t===this.stackTop&&(this.current=e)}},{key:"insertAfter",value:function(t,e,n){t=this._indexOf(t)+1,this.items.splice(t,0,e),this.tagIDs.splice(t,0,n),this.stackTop++,t===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,t===this.stackTop)}},{key:"popUntilTagNamePopped",value:function(t){for(var e=this.stackTop+1;0<(e=this.tagIDs.lastIndexOf(t,e-1))&&this.treeAdapter.getNamespaceURI(this.items[e])!==yr.HTML;);this.shortenToLength(e<0?0:e)}},{key:"shortenToLength",value:function(t){for(;this.stackTop>=t;){var e=this.current;0<this.tmplCount&&this._isInTemplate()&&--this.tmplCount,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,this.stackTop<t)}}},{key:"popUntilElementPopped",value:function(t){t=this._indexOf(t),this.shortenToLength(t<0?0:t)}},{key:"popUntilPopped",value:function(t,e){e=this._indexOfTagNames(t,e),this.shortenToLength(e<0?0:e)}},{key:"popUntilNumberedHeaderPopped",value:function(){this.popUntilPopped($r,yr.HTML)}},{key:"popUntilTableCellPopped",value:function(){this.popUntilPopped(Jr,yr.HTML)}},{key:"popAllUpToHtmlElement",value:function(){this.tmplCount=0,this.shortenToLength(1)}},{key:"_indexOfTagNames",value:function(t,e){for(var n=this.stackTop;0<=n;n--)if(t.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===e)return n;return-1}},{key:"clearBackTo",value:function(t,e){e=this._indexOfTagNames(t,e),this.shortenToLength(e+1)}},{key:"clearBackToTableContext",value:function(){this.clearBackTo(Zr,yr.HTML)}},{key:"clearBackToTableBodyContext",value:function(){this.clearBackTo(Qr,yr.HTML)}},{key:"clearBackToTableRowContext",value:function(){this.clearBackTo(Xr,yr.HTML)}},{key:"remove",value:function(t){var e=this._indexOf(t);0<=e&&(e===this.stackTop?this.pop():(this.items.splice(e,1),this.tagIDs.splice(e,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}},{key:"tryPeekProperlyNestedBodyElement",value:function(){return 1<=this.stackTop&&this.tagIDs[1]===Er.BODY?this.items[1]:null}},{key:"contains",value:function(t){return-1<this._indexOf(t)}},{key:"getCommonAncestor",value:function(t){return 0<=(t=this._indexOf(t)-1)?this.items[t]:null}},{key:"isRootHtmlElementCurrent",value:function(){return 0===this.stackTop&&this.tagIDs[0]===Er.HTML}},{key:"hasInScope",value:function(t){for(var e=this.stackTop;0<=e;e--){var n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===yr.HTML)return!0;if(Kr.get(n)===r)return!1}return!0}},{key:"hasNumberedHeaderInScope",value:function(){for(var t=this.stackTop;0<=t;t--){var e=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(kr(e)&&n===yr.HTML)return!0;if(Kr.get(e)===n)return!1}return!0}},{key:"hasInListItemScope",value:function(t){for(var e=this.stackTop;0<=e;e--){var n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===yr.HTML)return!0;if((n===Er.UL||n===Er.OL)&&r===yr.HTML||Kr.get(n)===r)return!1}return!0}},{key:"hasInButtonScope",value:function(t){for(var e=this.stackTop;0<=e;e--){var n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===yr.HTML)return!0;if(n===Er.BUTTON&&r===yr.HTML||Kr.get(n)===r)return!1}return!0}},{key:"hasInTableScope",value:function(t){for(var e=this.stackTop;0<=e;e--){var n=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===yr.HTML){if(n===t)return!0;if(n===Er.TABLE||n===Er.TEMPLATE||n===Er.HTML)return!1}}return!0}},{key:"hasTableBodyContextInTableScope",value:function(){for(var t=this.stackTop;0<=t;t--){var e=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===yr.HTML){if(e===Er.TBODY||e===Er.THEAD||e===Er.TFOOT)return!0;if(e===Er.TABLE||e===Er.HTML)return!1}}return!0}},{key:"hasInSelectScope",value:function(t){for(var e=this.stackTop;0<=e;e--){var n=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===yr.HTML){if(n===t)return!0;if(n!==Er.OPTION&&n!==Er.OPTGROUP)return!1}}return!0}},{key:"generateImpliedEndTags",value:function(){for(;Wr.has(this.currentTagId);)this.pop()}},{key:"generateImpliedEndTagsThoroughly",value:function(){for(;Yr.has(this.currentTagId);)this.pop()}},{key:"generateImpliedEndTagsWithExclusion",value:function(t){for(;this.currentTagId!==t&&Yr.has(this.currentTagId);)this.pop()}}]),t}();(l=Gr={})[l.Marker=0]="Marker",l[l.Element=1]="Element";var eo={type:Gr.Marker},no=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.treeAdapter=e,this.entries=[],this.bookmark=null}return function(t,e,n){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"_getNoahArkConditionCandidates",value:function(t,e){for(var n=[],r=e.length,o=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),a=0;a<this.entries.length;a++){var s=this.entries[a];if(s.type===Gr.Marker)break;s=s.element,this.treeAdapter.getTagName(s)!==o||this.treeAdapter.getNamespaceURI(s)!==i||(s=this.treeAdapter.getAttrList(s)).length===r&&n.push({idx:a,attrs:s})}return n}},{key:"_ensureNoahArkCondition",value:function(t){if(!(this.entries.length<3)){var e=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,e);if(!(n.length<3))for(var r=new Map(e.map((function(t){return[t.name,t.value]}))),o=0,i=0;i<n.length;i++){var a=n[i];a.attrs.every((function(t){return r.get(t.name)===t.value}))&&3<=(o+=1)&&this.entries.splice(a.idx,1)}}}},{key:"insertMarker",value:function(){this.entries.unshift(eo)}},{key:"pushElement",value:function(t,e){this._ensureNoahArkCondition(t),this.entries.unshift({type:Gr.Element,element:t,token:e})}},{key:"insertElementAfterBookmark",value:function(t,e){var n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Gr.Element,element:t,token:e})}},{key:"removeEntry",value:function(t){0<=(t=this.entries.indexOf(t))&&this.entries.splice(t,1)}},{key:"clearToLastMarker",value:function(){var t=this.entries.indexOf(eo);0<=t?this.entries.splice(0,t+1):this.entries.length=0}},{key:"getElementEntryInScopeWithTagName",value:function(t){var e=this,n=this.entries.find((function(n){return n.type===Gr.Marker||e.treeAdapter.getTagName(n.element)===t}));return n&&n.type===Gr.Element?n:null}},{key:"getElementEntry",value:function(t){return this.entries.find((function(e){return e.type===Gr.Element&&e.element===t}))}}]),t}();function ro(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function oo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ro(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function io(t){return{nodeName:"#text",value:t,parentNode:null}}var ao={createDocument:function(){return{nodeName:"#document",mode:_r.NO_QUIRKS,childNodes:[]}},createDocumentFragment:function(){return{nodeName:"#document-fragment",childNodes:[]}},createElement:function(t,e,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode:function(t){return{nodeName:"#comment",data:t,parentNode:null}},appendChild:function(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore:function(t,e,n){n=t.childNodes.indexOf(n),t.childNodes.splice(n,0,e),e.parentNode=t},setTemplateContent:function(t,e){t.content=e},getTemplateContent:function(t){return t.content},setDocumentType:function(t,e,n,r){var o=t.childNodes.find((function(t){return"#documentType"===t.nodeName}));o?(o.name=e,o.publicId=n,o.systemId=r):ao.appendChild(t,{nodeName:"#documentType",name:e,publicId:n,systemId:r,parentNode:null})},setDocumentMode:function(t,e){t.mode=e},getDocumentMode:function(t){return t.mode},detachNode:function(t){var e;t.parentNode&&(e=t.parentNode.childNodes.indexOf(t),t.parentNode.childNodes.splice(e,1),t.parentNode=null)},insertText:function(t,e){if(0<t.childNodes.length){var n=t.childNodes[t.childNodes.length-1];if(ao.isTextNode(n))return void(n.value+=e)}ao.appendChild(t,io(e))},insertTextBefore:function(t,e,n){var r=t.childNodes[t.childNodes.indexOf(n)-1];r&&ao.isTextNode(r)?r.value+=e:ao.insertBefore(t,io(e),n)},adoptAttributes:function(t,e){for(var n=new Set(t.attrs.map((function(t){return t.name}))),r=0;r<e.length;r++)n.has(e[r].name)||t.attrs.push(e[r])},getFirstChild:function(t){return t.childNodes[0]},getChildNodes:function(t){return t.childNodes},getParentNode:function(t){return t.parentNode},getAttrList:function(t){return t.attrs},getTagName:function(t){return t.tagName},getNamespaceURI:function(t){return t.namespaceURI},getTextNodeContent:function(t){return t.value},getCommentNodeContent:function(t){return t.data},getDocumentTypeNodeName:function(t){return t.name},getDocumentTypeNodePublicId:function(t){return t.publicId},getDocumentTypeNodeSystemId:function(t){return t.systemId},isTextNode:function(t){return"#text"===t.nodeName},isCommentNode:function(t){return"#comment"===t.nodeName},isDocumentTypeNode:function(t){return"#documentType"===t.nodeName},isElementNode:function(t){return Object.prototype.hasOwnProperty.call(t,"tagName")},setNodeSourceCodeLocation:function(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation:function(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation:function(t,e){t.sourceCodeLocation=oo(oo({},t.sourceCodeLocation),e)}},so=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],lo=[].concat(so,["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),co=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),uo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],po=[].concat(uo,["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function fo(t,e){return e.some((function(e){return t.startsWith(e)}))}var ho="definitionurl",go="definitionURL",mo=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(t){return[t.toLowerCase(),t]}))),vo=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:yr.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:yr.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:yr.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:yr.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:yr.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:yr.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:yr.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:yr.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:yr.XML}],["xml:space",{prefix:"xml",name:"space",namespace:yr.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:yr.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:yr.XMLNS}]]),yo=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(t){return[t.toLowerCase(),t]}))),bo=new Set([Er.B,Er.BIG,Er.BLOCKQUOTE,Er.BODY,Er.BR,Er.CENTER,Er.CODE,Er.DD,Er.DIV,Er.DL,Er.DT,Er.EM,Er.EMBED,Er.H1,Er.H2,Er.H3,Er.H4,Er.H5,Er.H6,Er.HEAD,Er.HR,Er.I,Er.IMG,Er.LI,Er.LISTING,Er.MENU,Er.META,Er.NOBR,Er.OL,Er.P,Er.PRE,Er.RUBY,Er.S,Er.SMALL,Er.SPAN,Er.STRONG,Er.STRIKE,Er.SUB,Er.SUP,Er.TABLE,Er.TT,Er.U,Er.UL,Er.VAR]);function _o(t){for(var e=0;e<t.attrs.length;e++)if(t.attrs[e].name===ho){t.attrs[e].name=go;break}}function wo(t){for(var e=0;e<t.attrs.length;e++){var n=mo.get(t.attrs[e].name);null!=n&&(t.attrs[e].name=n)}}function Eo(t){for(var e=0;e<t.attrs.length;e++){var n=vo.get(t.attrs[e].name);n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}}function xo(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function To(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xo(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Co(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ao,Oo="hidden",So=8,ko=3;(l=Ao=Ao||{})[l.INITIAL=0]="INITIAL",l[l.BEFORE_HTML=1]="BEFORE_HTML",l[l.BEFORE_HEAD=2]="BEFORE_HEAD",l[l.IN_HEAD=3]="IN_HEAD",l[l.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",l[l.AFTER_HEAD=5]="AFTER_HEAD",l[l.IN_BODY=6]="IN_BODY",l[l.TEXT=7]="TEXT",l[l.IN_TABLE=8]="IN_TABLE",l[l.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",l[l.IN_CAPTION=10]="IN_CAPTION",l[l.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",l[l.IN_TABLE_BODY=12]="IN_TABLE_BODY",l[l.IN_ROW=13]="IN_ROW",l[l.IN_CELL=14]="IN_CELL",l[l.IN_SELECT=15]="IN_SELECT",l[l.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",l[l.IN_TEMPLATE=17]="IN_TEMPLATE",l[l.AFTER_BODY=18]="AFTER_BODY",l[l.IN_FRAMESET=19]="IN_FRAMESET",l[l.AFTER_FRAMESET=20]="AFTER_FRAMESET",l[l.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",l[l.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";var Po={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},jo=new Set([Er.TABLE,Er.TBODY,Er.TFOOT,Er.THEAD,Er.TR]),No={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ao,onParseError:null},Lo=function(){function t(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=Ao.INITIAL,this.originalInsertionMode=Ao.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=To(To({},No),e),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=n?n:this.treeAdapter.createDocument(),this.tokenizer=new qr(this.options,this),this.activeFormattingElements=new no(this.treeAdapter),this.fragmentContextID=r?Ar(this.treeAdapter.getTagName(r)):Er.UNKNOWN,this._setContextModes(null!=r?r:this.document,this.fragmentContextID),this.openElements=new to(this.document,this.treeAdapter,this)}return function(t,e,n){e&&Co(t.prototype,e),n&&Co(t,n)}(t,[{key:"getFragment",value:function(){var t=this.treeAdapter.getFirstChild(this.document),e=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,e),e}},{key:"_err",value:function(t,e,n){this.onParseError&&(t={code:e,startLine:(t=null!==(t=t.location)&&void 0!==t?t:Po).startLine,startCol:t.startCol,startOffset:t.startOffset,endLine:n?t.startLine:t.endLine,endCol:n?t.startCol:t.endCol,endOffset:n?t.startOffset:t.endOffset},this.onParseError(t))}},{key:"onItemPush",value:function(t,e,n){var r,o;null!==(o=(r=this.treeAdapter).onItemPush)&&void 0!==o&&o.call(r,t),n&&0<this.openElements.stackTop&&this._setContextModes(t,e)}},{key:"onItemPop",value:function(t,e){var n,r,o,i;this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),null!==(r=(n=this.treeAdapter).onItemPop)&&void 0!==r&&r.call(n,t,this.openElements.current),e&&(i=0===this.openElements.stackTop&&this.fragmentContext?(o=this.fragmentContext,this.fragmentContextID):(o=(i=this.openElements).current,i.currentTagId),this._setContextModes(o,i))}},{key:"_setContextModes",value:function(t,e){var n=t===this.document||this.treeAdapter.getNamespaceURI(t)===yr.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(e,t)}},{key:"_switchToTextParsing",value:function(t,e){this._insertElement(t,yr.HTML),this.tokenizer.state=e,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ao.TEXT}},{key:"switchToPlaintextParsing",value:function(){this.insertionMode=Ao.TEXT,this.originalInsertionMode=Ao.IN_BODY,this.tokenizer.state=Dr.PLAINTEXT}},{key:"_getAdjustedCurrentElement",value:function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}},{key:"_findFormInFragmentContext",value:function(){for(var t=this.fragmentContext;t;){if(this.treeAdapter.getTagName(t)===wr.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}},{key:"_initTokenizerForFragmentParsing",value:function(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===yr.HTML)switch(this.fragmentContextID){case Er.TITLE:case Er.TEXTAREA:this.tokenizer.state=Dr.RCDATA;break;case Er.STYLE:case Er.XMP:case Er.IFRAME:case Er.NOEMBED:case Er.NOFRAMES:case Er.NOSCRIPT:this.tokenizer.state=Dr.RAWTEXT;break;case Er.SCRIPT:this.tokenizer.state=Dr.SCRIPT_DATA;break;case Er.PLAINTEXT:this.tokenizer.state=Dr.PLAINTEXT}}},{key:"_setDocumentType",value:function(t){var e=this,n=t.name||"",r=t.publicId||"",o=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,o),!t.location||(o=this.treeAdapter.getChildNodes(this.document).find((function(t){return e.treeAdapter.isDocumentTypeNode(t)})))&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}},{key:"_attachElementToTree",value:function(t,e){var n;this.options.sourceCodeLocationInfo&&(n=e&&To(To({},e),{},{startTag:e}),this.treeAdapter.setNodeSourceCodeLocation(t,n)),this._shouldFosterParentOnInsertion()?this._fosterParentElement(t):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.appendChild(n,t))}},{key:"_appendElement",value:function(t,e){e=this.treeAdapter.createElement(t.tagName,e,t.attrs),this._attachElementToTree(e,t.location)}},{key:"_insertElement",value:function(t,e){e=this.treeAdapter.createElement(t.tagName,e,t.attrs),this._attachElementToTree(e,t.location),this.openElements.push(e,t.tagID)}},{key:"_insertFakeElement",value:function(t,e){t=this.treeAdapter.createElement(t,yr.HTML,[]),this._attachElementToTree(t,null),this.openElements.push(t,e)}},{key:"_insertTemplate",value:function(t){var e=this.treeAdapter.createElement(t.tagName,yr.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(e,n),this._attachElementToTree(e,t.location),this.openElements.push(e,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}},{key:"_insertFakeRootElement",value:function(){var t=this.treeAdapter.createElement(wr.HTML,yr.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,Er.HTML)}},{key:"_appendCommentNode",value:function(t,e){var n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(e,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}},{key:"_insertCharacters",value:function(t){var e,n,r,o;this._shouldFosterParentOnInsertion()?(e=(r=this._findFosterParentingLocation()).parent,(o=r.beforeElement)?this.treeAdapter.insertTextBefore(e,t.chars,o):this.treeAdapter.insertText(e,t.chars)):(e=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(e,t.chars)),t.location&&(n=this.treeAdapter.getChildNodes(e),r=o?n.lastIndexOf(o):n.length,e=n[r-1],this.treeAdapter.getNodeSourceCodeLocation(e)?(n=(o=t.location).endLine,r=o.endCol,o=o.endOffset,this.treeAdapter.updateNodeSourceCodeLocation(e,{endLine:n,endCol:r,endOffset:o})):this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,t.location))}},{key:"_adoptNodes",value:function(t,e){for(var n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(e,n)}},{key:"_setEndLocation",value:function(t,e){var n,r;this.treeAdapter.getNodeSourceCodeLocation(t)&&e.location&&(r=e.location,n=this.treeAdapter.getTagName(t),r=e.type===gr.END_TAG&&n===e.tagName?{endTag:To({},r),endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset},this.treeAdapter.updateNodeSourceCodeLocation(t,r))}},{key:"shouldProcessStartTagTokenInForeignContent",value:function(t){return!!this.currentNotInHTML&&(n=0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,this.fragmentContextID):(e=(n=this.openElements).current,n.currentTagId),(t.tagID!==Er.SVG||this.treeAdapter.getTagName(e)!==wr.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(e)!==yr.MATHML)&&(this.tokenizer.inForeignNode||(t.tagID===Er.MGLYPH||t.tagID===Er.MALIGNMARK)&&!this._isIntegrationPoint(n,e,yr.HTML)));var e,n}},{key:"_processToken",value:function(t){switch(t.type){case gr.CHARACTER:this.onCharacter(t);break;case gr.NULL_CHARACTER:this.onNullCharacter(t);break;case gr.COMMENT:this.onComment(t);break;case gr.DOCTYPE:this.onDoctype(t);break;case gr.START_TAG:this._processStartTag(t);break;case gr.END_TAG:this.onEndTag(t);break;case gr.EOF:this.onEof(t);break;case gr.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(t)}}},{key:"_isIntegrationPoint",value:function(t,e,n){return function(t,e,n,r){return(!r||r===yr.HTML)&&function(t,e,n){if(e===yr.MATHML&&t===Er.ANNOTATION_XML)for(var r=0;r<n.length;r++)if(n[r].name===br.ENCODING){var o=n[r].value.toLowerCase();return"text/html"===o||"application/xhtml+xml"===o}return e===yr.SVG&&(t===Er.FOREIGN_OBJECT||t===Er.DESC||t===Er.TITLE)}(t,e,n)||(!r||r===yr.MATHML)&&function(t,e){return e===yr.MATHML&&(t===Er.MI||t===Er.MO||t===Er.MN||t===Er.MS||t===Er.MTEXT)}(t,e)}(t,this.treeAdapter.getNamespaceURI(e),this.treeAdapter.getAttrList(e),n)}},{key:"_reconstructActiveFormattingElements",value:function(){var t=this,e=this.activeFormattingElements.entries.length;if(e)for(var n=this.activeFormattingElements.entries.findIndex((function(e){return e.type===Gr.Marker||t.openElements.contains(e.element)})),r=n<0?e-1:n-1;0<=r;r--){var o=this.activeFormattingElements.entries[r];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}},{key:"_closeTableCell",value:function(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ao.IN_ROW}},{key:"_closePElement",value:function(){this.openElements.generateImpliedEndTagsWithExclusion(Er.P),this.openElements.popUntilTagNamePopped(Er.P)}},{key:"_resetInsertionMode",value:function(){for(var t=this.openElements.stackTop;0<=t;t--)switch(0===t&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case Er.TR:return void(this.insertionMode=Ao.IN_ROW);case Er.TBODY:case Er.THEAD:case Er.TFOOT:return void(this.insertionMode=Ao.IN_TABLE_BODY);case Er.CAPTION:return void(this.insertionMode=Ao.IN_CAPTION);case Er.COLGROUP:return void(this.insertionMode=Ao.IN_COLUMN_GROUP);case Er.TABLE:return void(this.insertionMode=Ao.IN_TABLE);case Er.BODY:return void(this.insertionMode=Ao.IN_BODY);case Er.FRAMESET:return void(this.insertionMode=Ao.IN_FRAMESET);case Er.SELECT:return void this._resetInsertionModeForSelect(t);case Er.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Er.HTML:return void(this.insertionMode=this.headElement?Ao.AFTER_HEAD:Ao.BEFORE_HEAD);case Er.TD:case Er.TH:if(0<t)return void(this.insertionMode=Ao.IN_CELL);break;case Er.HEAD:if(0<t)return void(this.insertionMode=Ao.IN_HEAD)}this.insertionMode=Ao.IN_BODY}},{key:"_resetInsertionModeForSelect",value:function(t){if(0<t)for(var e=t-1;0<e;e--){var n=this.openElements.tagIDs[e];if(n===Er.TEMPLATE)break;if(n===Er.TABLE)return void(this.insertionMode=Ao.IN_SELECT_IN_TABLE)}this.insertionMode=Ao.IN_SELECT}},{key:"_isElementCausesFosterParenting",value:function(t){return jo.has(t)}},{key:"_shouldFosterParentOnInsertion",value:function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}},{key:"_findFosterParentingLocation",value:function(){for(var t=this.openElements.stackTop;0<=t;t--){var e=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case Er.TEMPLATE:if(this.treeAdapter.getNamespaceURI(e)===yr.HTML)return{parent:this.treeAdapter.getTemplateContent(e),beforeElement:null};break;case Er.TABLE:var n=this.treeAdapter.getParentNode(e);return n?{parent:n,beforeElement:e}:{parent:this.openElements.items[t-1],beforeElement:null}}}return{parent:this.openElements.items[0],beforeElement:null}}},{key:"_fosterParentElement",value:function(t){var e=this._findFosterParentingLocation();e.beforeElement?this.treeAdapter.insertBefore(e.parent,t,e.beforeElement):this.treeAdapter.appendChild(e.parent,t)}},{key:"_isSpecialElement",value:function(t,e){return t=this.treeAdapter.getNamespaceURI(t),Sr[t].has(e)}},{key:"onCharacter",value:function(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(t,e){t._insertCharacters(e),t.framesetOk=!1}(this,t);else switch(this.insertionMode){case Ao.INITIAL:Mo(this,t);break;case Ao.BEFORE_HTML:Bo(this,t);break;case Ao.BEFORE_HEAD:Fo(this,t);break;case Ao.IN_HEAD:Vo(this,t);break;case Ao.IN_HEAD_NO_SCRIPT:qo(this,t);break;case Ao.AFTER_HEAD:zo(this,t);break;case Ao.IN_BODY:case Ao.IN_CAPTION:case Ao.IN_CELL:case Ao.IN_TEMPLATE:Yo(this,t);break;case Ao.TEXT:case Ao.IN_SELECT:case Ao.IN_SELECT_IN_TABLE:this._insertCharacters(t);break;case Ao.IN_TABLE:case Ao.IN_TABLE_BODY:case Ao.IN_ROW:ni(this,t);break;case Ao.IN_TABLE_TEXT:si(this,t);break;case Ao.IN_COLUMN_GROUP:pi(this,t);break;case Ao.AFTER_BODY:_i(this,t);break;case Ao.AFTER_AFTER_BODY:wi(this,t)}}},{key:"onNullCharacter",value:function(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(t,e){e.chars="<22>",t._insertCharacters(e)}(this,t);else switch(this.insertionMode){case Ao.INITIAL:Mo(this,t);break;case Ao.BEFORE_HTML:Bo(this,t);break;case Ao.BEFORE_HEAD:Fo(this,t);break;case Ao.IN_HEAD:Vo(this,t);break;case Ao.IN_HEAD_NO_SCRIPT:qo(this,t);break;case Ao.AFTER_HEAD:zo(this,t);break;case Ao.TEXT:this._insertCharacters(t);break;case Ao.IN_TABLE:case Ao.IN_TABLE_BODY:case Ao.IN_ROW:ni(this,t);break;case Ao.IN_COLUMN_GROUP:pi(this,t);break;case Ao.AFTER_BODY:_i(this,t);break;case Ao.AFTER_AFTER_BODY:wi(this,t)}}},{key:"onComment",value:function(t){if(this.skipNextNewLine=!1,this.currentNotInHTML)Io(this,t);else switch(this.insertionMode){case Ao.INITIAL:case Ao.BEFORE_HTML:case Ao.BEFORE_HEAD:case Ao.IN_HEAD:case Ao.IN_HEAD_NO_SCRIPT:case Ao.AFTER_HEAD:case Ao.IN_BODY:case Ao.IN_TABLE:case Ao.IN_CAPTION:case Ao.IN_COLUMN_GROUP:case Ao.IN_TABLE_BODY:case Ao.IN_ROW:case Ao.IN_CELL:case Ao.IN_SELECT:case Ao.IN_SELECT_IN_TABLE:case Ao.IN_TEMPLATE:case Ao.IN_FRAMESET:case Ao.AFTER_FRAMESET:Io(this,t);break;case Ao.IN_TABLE_TEXT:li(this,t);break;case Ao.AFTER_BODY:!function(t,e){t._appendCommentNode(e,t.openElements.items[0])}(this,t);break;case Ao.AFTER_AFTER_BODY:case Ao.AFTER_AFTER_FRAMESET:!function(t,e){t._appendCommentNode(e,t.document)}(this,t)}}},{key:"onDoctype",value:function(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Ao.INITIAL:!function(t,e){t._setDocumentType(e);var n=e.forceQuirks?_r.QUIRKS:function(t){if("html"!==t.name)return _r.QUIRKS;var e=t.systemId;if(e&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===e.toLowerCase())return _r.QUIRKS;if(null!==(t=t.publicId)){if(t=t.toLowerCase(),co.has(t))return _r.QUIRKS;if(fo(t,null===e?lo:so))return _r.QUIRKS;if(fo(t,null===e?uo:po))return _r.LIMITED_QUIRKS}return _r.NO_QUIRKS}(e);!function(t){return"html"===t.name&&null===t.publicId&&(null===t.systemId||"about:legacy-compat"===t.systemId)}(e)&&t._err(e,ur.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=Ao.BEFORE_HTML}(this,t);break;case Ao.BEFORE_HEAD:case Ao.IN_HEAD:case Ao.IN_HEAD_NO_SCRIPT:case Ao.AFTER_HEAD:this._err(t,ur.misplacedDoctype);break;case Ao.IN_TABLE_TEXT:li(this,t)}}},{key:"onStartTag",value:function(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ur.nonVoidHtmlElementStartTagWithTrailingSolidus)}},{key:"_processStartTag",value:function(t){this.shouldProcessStartTagTokenInForeignContent(t)?function(t,e){var n;!function(t){var e=t.tagID;return e===Er.FONT&&t.attrs.some((function(t){return(t=t.name)===br.COLOR||t===br.SIZE||t===br.FACE}))||bo.has(e)}(e)?(n=t._getAdjustedCurrentElement(),(n=t.treeAdapter.getNamespaceURI(n))===yr.MATHML?_o(e):n===yr.SVG&&(function(t){var e=yo.get(t.tagName);null!=e&&(t.tagName=e,t.tagID=Ar(t.tagName))}(e),wo(e)),Eo(e),e.selfClosing?t._appendElement(e,n):t._insertElement(e,n),e.ackSelfClosing=!0):(Ei(t),t._startTagOutsideForeignContent(e))}(this,t):this._startTagOutsideForeignContent(t)}},{key:"_startTagOutsideForeignContent",value:function(t){switch(this.insertionMode){case Ao.INITIAL:Mo(this,t);break;case Ao.BEFORE_HTML:!function(t,e){e.tagID===Er.HTML?(t._insertElement(e,yr.HTML),t.insertionMode=Ao.BEFORE_HEAD):Bo(t,e)}(this,t);break;case Ao.BEFORE_HEAD:!function(t,e){switch(e.tagID){case Er.HTML:Zo(t,e);break;case Er.HEAD:t._insertElement(e,yr.HTML),t.headElement=t.openElements.current,t.insertionMode=Ao.IN_HEAD;break;default:Fo(t,e)}}(this,t);break;case Ao.IN_HEAD:Uo(this,t);break;case Ao.IN_HEAD_NO_SCRIPT:!function(t,e){switch(e.tagID){case Er.HTML:Zo(t,e);break;case Er.BASEFONT:case Er.BGSOUND:case Er.HEAD:case Er.LINK:case Er.META:case Er.NOFRAMES:case Er.STYLE:Uo(t,e);break;case Er.NOSCRIPT:t._err(e,ur.nestedNoscriptInHead);break;default:qo(t,e)}}(this,t);break;case Ao.AFTER_HEAD:!function(t,e){switch(e.tagID){case Er.HTML:Zo(t,e);break;case Er.BODY:t._insertElement(e,yr.HTML),t.framesetOk=!1,t.insertionMode=Ao.IN_BODY;break;case Er.FRAMESET:t._insertElement(e,yr.HTML),t.insertionMode=Ao.IN_FRAMESET;break;case Er.BASE:case Er.BASEFONT:case Er.BGSOUND:case Er.LINK:case Er.META:case Er.NOFRAMES:case Er.SCRIPT:case Er.STYLE:case Er.TEMPLATE:case Er.TITLE:t._err(e,ur.abandonedHeadElementChild),t.openElements.push(t.headElement,Er.HEAD),Uo(t,e),t.openElements.remove(t.headElement);break;case Er.HEAD:t._err(e,ur.misplacedStartTagForHeadElement);break;default:zo(t,e)}}(this,t);break;case Ao.IN_BODY:Zo(this,t);break;case Ao.IN_TABLE:ri(this,t);break;case Ao.IN_TABLE_TEXT:li(this,t);break;case Ao.IN_CAPTION:!function(t,e){var n=e.tagID;ci.has(n)?t.openElements.hasInTableScope(Er.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Er.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=Ao.IN_TABLE,ri(t,e)):Zo(t,e)}(this,t);break;case Ao.IN_COLUMN_GROUP:ui(this,t);break;case Ao.IN_TABLE_BODY:fi(this,t);break;case Ao.IN_ROW:hi(this,t);break;case Ao.IN_CELL:!function(t,e){var n=e.tagID;ci.has(n)?(t.openElements.hasInTableScope(Er.TD)||t.openElements.hasInTableScope(Er.TH))&&(t._closeTableCell(),hi(t,e)):Zo(t,e)}(this,t);break;case Ao.IN_SELECT:mi(this,t);break;case Ao.IN_SELECT_IN_TABLE:!function(t,e){var n=e.tagID;n===Er.CAPTION||n===Er.TABLE||n===Er.TBODY||n===Er.TFOOT||n===Er.THEAD||n===Er.TR||n===Er.TD||n===Er.TH?(t.openElements.popUntilTagNamePopped(Er.SELECT),t._resetInsertionMode(),t._processStartTag(e)):mi(t,e)}(this,t);break;case Ao.IN_TEMPLATE:!function(t,e){switch(e.tagID){case Er.BASE:case Er.BASEFONT:case Er.BGSOUND:case Er.LINK:case Er.META:case Er.NOFRAMES:case Er.SCRIPT:case Er.STYLE:case Er.TEMPLATE:case Er.TITLE:Uo(t,e);break;case Er.CAPTION:case Er.COLGROUP:case Er.TBODY:case Er.TFOOT:case Er.THEAD:t.tmplInsertionModeStack[0]=Ao.IN_TABLE,t.insertionMode=Ao.IN_TABLE,ri(t,e);break;case Er.COL:t.tmplInsertionModeStack[0]=Ao.IN_COLUMN_GROUP,t.insertionMode=Ao.IN_COLUMN_GROUP,ui(t,e);break;case Er.TR:t.tmplInsertionModeStack[0]=Ao.IN_TABLE_BODY,t.insertionMode=Ao.IN_TABLE_BODY,fi(t,e);break;case Er.TD:case Er.TH:t.tmplInsertionModeStack[0]=Ao.IN_ROW,t.insertionMode=Ao.IN_ROW,hi(t,e);break;default:t.tmplInsertionModeStack[0]=Ao.IN_BODY,t.insertionMode=Ao.IN_BODY,Zo(t,e)}}(this,t);break;case Ao.AFTER_BODY:!function(t,e){(e.tagID===Er.HTML?Zo:_i)(t,e)}(this,t);break;case Ao.IN_FRAMESET:!function(t,e){switch(e.tagID){case Er.HTML:Zo(t,e);break;case Er.FRAMESET:t._insertElement(e,yr.HTML);break;case Er.FRAME:t._appendElement(e,yr.HTML),e.ackSelfClosing=!0;break;case Er.NOFRAMES:Uo(t,e)}}(this,t);break;case Ao.AFTER_FRAMESET:!function(t,e){switch(e.tagID){case Er.HTML:Zo(t,e);break;case Er.NOFRAMES:Uo(t,e)}}(this,t);break;case Ao.AFTER_AFTER_BODY:!function(t,e){(e.tagID===Er.HTML?Zo:wi)(t,e)}(this,t);break;case Ao.AFTER_AFTER_FRAMESET:!function(t,e){switch(e.tagID){case Er.HTML:Zo(t,e);break;case Er.NOFRAMES:Uo(t,e)}}(this,t)}}},{key:"onEndTag",value:function(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?function(t,e){if(e.tagID!==Er.P&&e.tagID!==Er.BR)for(var n=t.openElements.stackTop;0<n;n--){var r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===yr.HTML){t._endTagOutsideForeignContent(e);break}if((r=t.treeAdapter.getTagName(r)).toLowerCase()===e.tagName){e.tagName=r,t.openElements.shortenToLength(n);break}}else Ei(t),t._endTagOutsideForeignContent(e)}(this,t):this._endTagOutsideForeignContent(t)}},{key:"_endTagOutsideForeignContent",value:function(t){switch(this.insertionMode){case Ao.INITIAL:Mo(this,t);break;case Ao.BEFORE_HTML:!function(t,e){var n=e.tagID;n!==Er.HTML&&n!==Er.HEAD&&n!==Er.BODY&&n!==Er.BR||Bo(t,e)}(this,t);break;case Ao.BEFORE_HEAD:!function(t,e){var n=e.tagID;n===Er.HEAD||n===Er.BODY||n===Er.HTML||n===Er.BR?Fo(t,e):t._err(e,ur.endTagWithoutMatchingOpenElement)}(this,t);break;case Ao.IN_HEAD:!function(t,e){switch(e.tagID){case Er.HEAD:t.openElements.pop(),t.insertionMode=Ao.AFTER_HEAD;break;case Er.BODY:case Er.BR:case Er.HTML:Vo(t,e);break;case Er.TEMPLATE:Ho(t,e);break;default:t._err(e,ur.endTagWithoutMatchingOpenElement)}}(this,t);break;case Ao.IN_HEAD_NO_SCRIPT:!function(t,e){switch(e.tagID){case Er.NOSCRIPT:t.openElements.pop(),t.insertionMode=Ao.IN_HEAD;break;case Er.BR:qo(t,e);break;default:t._err(e,ur.endTagWithoutMatchingOpenElement)}}(this,t);break;case Ao.AFTER_HEAD:!function(t,e){switch(e.tagID){case Er.BODY:case Er.HTML:case Er.BR:zo(t,e);break;case Er.TEMPLATE:Ho(t,e);break;default:t._err(e,ur.endTagWithoutMatchingOpenElement)}}(this,t);break;case Ao.IN_BODY:ti(this,t);break;case Ao.TEXT:!function(t,e){var n;e.tagID===Er.SCRIPT&&null!==(n=t.scriptHandler)&&void 0!==n&&n.call(t,t.openElements.current),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}(this,t);break;case Ao.IN_TABLE:oi(this,t);break;case Ao.IN_TABLE_TEXT:li(this,t);break;case Ao.IN_CAPTION:!function(t,e){var n=e.tagID;switch(n){case Er.CAPTION:case Er.TABLE:t.openElements.hasInTableScope(Er.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Er.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=Ao.IN_TABLE,n===Er.TABLE&&oi(t,e));break;case Er.BODY:case Er.COL:case Er.COLGROUP:case Er.HTML:case Er.TBODY:case Er.TD:case Er.TFOOT:case Er.TH:case Er.THEAD:case Er.TR:break;default:ti(t,e)}}(this,t);break;case Ao.IN_COLUMN_GROUP:!function(t,e){switch(e.tagID){case Er.COLGROUP:t.openElements.currentTagId===Er.COLGROUP&&(t.openElements.pop(),t.insertionMode=Ao.IN_TABLE);break;case Er.TEMPLATE:Ho(t,e);break;case Er.COL:break;default:pi(t,e)}}(this,t);break;case Ao.IN_TABLE_BODY:di(this,t);break;case Ao.IN_ROW:gi(this,t);break;case Ao.IN_CELL:!function(t,e){var n=e.tagID;switch(n){case Er.TD:case Er.TH:t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=Ao.IN_ROW);break;case Er.TABLE:case Er.TBODY:case Er.TFOOT:case Er.THEAD:case Er.TR:t.openElements.hasInTableScope(n)&&(t._closeTableCell(),gi(t,e));break;case Er.BODY:case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.HTML:break;default:ti(t,e)}}(this,t);break;case Ao.IN_SELECT:vi(this,t);break;case Ao.IN_SELECT_IN_TABLE:!function(t,e){var n=e.tagID;n===Er.CAPTION||n===Er.TABLE||n===Er.TBODY||n===Er.TFOOT||n===Er.THEAD||n===Er.TR||n===Er.TD||n===Er.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(Er.SELECT),t._resetInsertionMode(),t.onEndTag(e)):vi(t,e)}(this,t);break;case Ao.IN_TEMPLATE:!function(t,e){e.tagID===Er.TEMPLATE&&Ho(t,e)}(this,t);break;case Ao.AFTER_BODY:bi(this,t);break;case Ao.IN_FRAMESET:!function(t,e){e.tagID!==Er.FRAMESET||t.openElements.isRootHtmlElementCurrent()||(t.openElements.pop(),t.fragmentContext||t.openElements.currentTagId===Er.FRAMESET||(t.insertionMode=Ao.AFTER_FRAMESET))}(this,t);break;case Ao.AFTER_FRAMESET:!function(t,e){e.tagID===Er.HTML&&(t.insertionMode=Ao.AFTER_AFTER_FRAMESET)}(this,t);break;case Ao.AFTER_AFTER_BODY:wi(this,t)}}},{key:"onEof",value:function(t){switch(this.insertionMode){case Ao.INITIAL:Mo(this,t);break;case Ao.BEFORE_HTML:Bo(this,t);break;case Ao.BEFORE_HEAD:Fo(this,t);break;case Ao.IN_HEAD:Vo(this,t);break;case Ao.IN_HEAD_NO_SCRIPT:qo(this,t);break;case Ao.AFTER_HEAD:zo(this,t);break;case Ao.IN_BODY:case Ao.IN_TABLE:case Ao.IN_CAPTION:case Ao.IN_COLUMN_GROUP:case Ao.IN_TABLE_BODY:case Ao.IN_ROW:case Ao.IN_CELL:case Ao.IN_SELECT:case Ao.IN_SELECT_IN_TABLE:ei(this,t);break;case Ao.TEXT:!function(t,e){t._err(e,ur.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}(this,t);break;case Ao.IN_TABLE_TEXT:li(this,t);break;case Ao.IN_TEMPLATE:yi(this,t);break;case Ao.AFTER_BODY:case Ao.IN_FRAMESET:case Ao.AFTER_FRAMESET:case Ao.AFTER_AFTER_BODY:case Ao.AFTER_AFTER_FRAMESET:Ro(this,t)}}},{key:"onWhitespaceCharacter",value:function(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===cr.LINE_FEED)){if(1===t.chars.length)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(t);else switch(this.insertionMode){case Ao.IN_HEAD:case Ao.IN_HEAD_NO_SCRIPT:case Ao.AFTER_HEAD:case Ao.TEXT:case Ao.IN_COLUMN_GROUP:case Ao.IN_SELECT:case Ao.IN_SELECT_IN_TABLE:case Ao.IN_FRAMESET:case Ao.AFTER_FRAMESET:this._insertCharacters(t);break;case Ao.IN_BODY:case Ao.IN_CAPTION:case Ao.IN_CELL:case Ao.IN_TEMPLATE:case Ao.AFTER_BODY:case Ao.AFTER_AFTER_BODY:case Ao.AFTER_AFTER_FRAMESET:Wo(this,t);break;case Ao.IN_TABLE:case Ao.IN_TABLE_BODY:case Ao.IN_ROW:ni(this,t);break;case Ao.IN_TABLE_TEXT:ai(this,t)}}}],[{key:"parse",value:function(t,e){return(e=new this(e)).tokenizer.write(t,!0),e.document}},{key:"getFragmentParser",value:function(t,e){var n=To(To({},No),e);return null!=t||(t=n.treeAdapter.createElement(wr.TEMPLATE,yr.HTML,[])),e=n.treeAdapter.createElement("documentmock",yr.HTML,[]),(t=new this(n,e,t)).fragmentContextID===Er.TEMPLATE&&t.tmplInsertionModeStack.unshift(Ao.IN_TEMPLATE),t._initTokenizerForFragmentParsing(),t._insertFakeRootElement(),t._resetInsertionMode(),t._findFormInFragmentContext(),t}}]),t}();function Do(t,e){for(var n=0;n<So;n++){var r=function(t,e){var n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagID)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):Jo(t,e),n}(t,e);if(!r)break;var o=function(t,e){for(var n=null,r=t.openElements.stackTop;0<=r;r--){var o=t.openElements.items[r];if(o===e.element)break;t._isSpecialElement(o,t.openElements.tagIDs[r])&&(n=o)}return n||(t.openElements.shortenToLength(r<0?0:r),t.activeFormattingElements.removeEntry(e)),n}(t,r);if(!o)break;t.activeFormattingElements.bookmark=r;var i=function(t,e,n){for(var r=e,o=0,i=t.openElements.getCommonAncestor(e);i!==n;o++,i=a){var a=t.openElements.getCommonAncestor(i),s=t.activeFormattingElements.getElementEntry(i),l=s&&ko<=o;!s||l?(l&&t.activeFormattingElements.removeEntry(s),t.openElements.remove(i)):(i=function(t,e){var n=t.treeAdapter.getNamespaceURI(e.element);return n=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs),t.openElements.replace(e.element,n),e.element=n}(t,s),r===e&&(t.activeFormattingElements.bookmark=s),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(i,r),r=i)}return r}(t,o,r.element),a=t.openElements.getCommonAncestor(r.element);t.treeAdapter.detachNode(i),a&&function(t,e,n){var r,o=Ar(t.treeAdapter.getTagName(e));t._isElementCausesFosterParenting(o)?t._fosterParentElement(n):(r=t.treeAdapter.getNamespaceURI(e),o===Er.TEMPLATE&&r===yr.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n))}(t,a,i),function(t,e,n){var r=t.treeAdapter.getNamespaceURI(n.element),o=n.token;r=t.treeAdapter.createElement(o.tagName,r,o.attrs),t._adoptNodes(e,r),t.treeAdapter.appendChild(e,r),t.activeFormattingElements.insertElementAfterBookmark(r,o),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,r,o.tagID)}(t,o,r)}}function Io(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function Ro(t,e){if(t.stopped=!0,e.location){for(var n,r,o=t.fragmentContext?0:2,i=t.openElements.stackTop;o<=i;i--)t._setEndLocation(t.openElements.items[i],e);!t.fragmentContext&&0<=t.openElements.stackTop&&(r=t.openElements.items[0],(n=t.treeAdapter.getNodeSourceCodeLocation(r))&&!n.endTag&&(t._setEndLocation(r,e),1<=t.openElements.stackTop&&(n=t.openElements.items[1],(r=t.treeAdapter.getNodeSourceCodeLocation(n))&&!r.endTag&&t._setEndLocation(n,e))))}}function Mo(t,e){t._err(e,ur.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,_r.QUIRKS),t.insertionMode=Ao.BEFORE_HTML,t._processToken(e)}function Bo(t,e){t._insertFakeRootElement(),t.insertionMode=Ao.BEFORE_HEAD,t._processToken(e)}function Fo(t,e){t._insertFakeElement(wr.HEAD,Er.HEAD),t.headElement=t.openElements.current,t.insertionMode=Ao.IN_HEAD,t._processToken(e)}function Uo(t,e){switch(e.tagID){case Er.HTML:Zo(t,e);break;case Er.BASE:case Er.BASEFONT:case Er.BGSOUND:case Er.LINK:case Er.META:t._appendElement(e,yr.HTML),e.ackSelfClosing=!0;break;case Er.TITLE:t._switchToTextParsing(e,Dr.RCDATA);break;case Er.NOSCRIPT:t.options.scriptingEnabled?t._switchToTextParsing(e,Dr.RAWTEXT):(t._insertElement(e,yr.HTML),t.insertionMode=Ao.IN_HEAD_NO_SCRIPT);break;case Er.NOFRAMES:case Er.STYLE:t._switchToTextParsing(e,Dr.RAWTEXT);break;case Er.SCRIPT:t._switchToTextParsing(e,Dr.SCRIPT_DATA);break;case Er.TEMPLATE:t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=Ao.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(Ao.IN_TEMPLATE);break;case Er.HEAD:t._err(e,ur.misplacedStartTagForHeadElement);break;default:Vo(t,e)}}function Ho(t,e){0<t.openElements.tmplCount?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==Er.TEMPLATE&&t._err(e,ur.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(Er.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,ur.endTagWithoutMatchingOpenElement)}function Vo(t,e){t.openElements.pop(),t.insertionMode=Ao.AFTER_HEAD,t._processToken(e)}function qo(t,e){var n=e.type===gr.EOF?ur.openElementsLeftAfterEof:ur.disallowedContentInNoscriptInHead;t._err(e,n),t.openElements.pop(),t.insertionMode=Ao.IN_HEAD,t._processToken(e)}function zo(t,e){t._insertFakeElement(wr.BODY,Er.BODY),t.insertionMode=Ao.IN_BODY,Go(t,e)}function Go(t,e){switch(e.type){case gr.CHARACTER:Yo(t,e);break;case gr.WHITESPACE_CHARACTER:Wo(t,e);break;case gr.COMMENT:Io(t,e);break;case gr.START_TAG:Zo(t,e);break;case gr.END_TAG:ti(t,e);break;case gr.EOF:ei(t,e)}}function Wo(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function Yo(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function Ko(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,yr.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function $o(t){return null!=(t=vr(t,br.TYPE))&&t.toLowerCase()===Oo}function Xo(t,e){t._switchToTextParsing(e,Dr.RAWTEXT)}function Qo(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML)}function Zo(t,e){switch(e.tagID){case Er.I:case Er.S:case Er.B:case Er.U:case Er.EM:case Er.TT:case Er.BIG:case Er.CODE:case Er.FONT:case Er.SMALL:case Er.STRIKE:case Er.STRONG:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case Er.A:!function(t,e){var n=t.activeFormattingElements.getElementEntryInScopeWithTagName(wr.A);n&&(Do(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case Er.H1:case Er.H2:case Er.H3:case Er.H4:case Er.H5:case Er.H6:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),kr(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,yr.HTML)}(t,e);break;case Er.P:case Er.DL:case Er.OL:case Er.UL:case Er.DIV:case Er.DIR:case Er.NAV:case Er.MAIN:case Er.MENU:case Er.ASIDE:case Er.CENTER:case Er.FIGURE:case Er.FOOTER:case Er.HEADER:case Er.HGROUP:case Er.DIALOG:case Er.DETAILS:case Er.ADDRESS:case Er.ARTICLE:case Er.SECTION:case Er.SUMMARY:case Er.FIELDSET:case Er.BLOCKQUOTE:case Er.FIGCAPTION:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML)}(t,e);break;case Er.LI:case Er.DD:case Er.DT:!function(t,e){t.framesetOk=!1;for(var n=e.tagID,r=t.openElements.stackTop;0<=r;r--){var o=t.openElements.tagIDs[r];if(n===Er.LI&&o===Er.LI||(n===Er.DD||n===Er.DT)&&(o===Er.DD||o===Er.DT)){t.openElements.generateImpliedEndTagsWithExclusion(o),t.openElements.popUntilTagNamePopped(o);break}if(o!==Er.ADDRESS&&o!==Er.DIV&&o!==Er.P&&t._isSpecialElement(t.openElements.items[r],o))break}t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML)}(t,e);break;case Er.BR:case Er.IMG:case Er.WBR:case Er.AREA:case Er.EMBED:case Er.KEYGEN:Ko(t,e);break;case Er.HR:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._appendElement(e,yr.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}(t,e);break;case Er.RB:case Er.RTC:!function(t,e){t.openElements.hasInScope(Er.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,yr.HTML)}(t,e);break;case Er.RT:case Er.RP:!function(t,e){t.openElements.hasInScope(Er.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(Er.RTC),t._insertElement(e,yr.HTML)}(t,e);break;case Er.PRE:case Er.LISTING:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}(t,e);break;case Er.XMP:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,Dr.RAWTEXT)}(t,e);break;case Er.SVG:!function(t,e){t._reconstructActiveFormattingElements(),wo(e),Eo(e),e.selfClosing?t._appendElement(e,yr.SVG):t._insertElement(e,yr.SVG),e.ackSelfClosing=!0}(t,e);break;case Er.HTML:!function(t,e){0===t.openElements.tmplCount&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}(t,e);break;case Er.BASE:case Er.LINK:case Er.META:case Er.STYLE:case Er.TITLE:case Er.SCRIPT:case Er.BGSOUND:case Er.BASEFONT:case Er.TEMPLATE:Uo(t,e);break;case Er.BODY:!function(t,e){var n=t.openElements.tryPeekProperlyNestedBodyElement();n&&0===t.openElements.tmplCount&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}(t,e);break;case Er.FORM:!function(t,e){var n=0<t.openElements.tmplCount;t.formElement&&!n||(t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML),n||(t.formElement=t.openElements.current))}(t,e);break;case Er.NOBR:!function(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(Er.NOBR)&&(Do(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,yr.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case Er.MATH:!function(t,e){t._reconstructActiveFormattingElements(),_o(e),Eo(e),e.selfClosing?t._appendElement(e,yr.MATHML):t._insertElement(e,yr.MATHML),e.ackSelfClosing=!0}(t,e);break;case Er.TABLE:!function(t,e){t.treeAdapter.getDocumentMode(t.document)!==_r.QUIRKS&&t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML),t.framesetOk=!1,t.insertionMode=Ao.IN_TABLE}(t,e);break;case Er.INPUT:!function(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,yr.HTML),$o(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}(t,e);break;case Er.PARAM:case Er.TRACK:case Er.SOURCE:!function(t,e){t._appendElement(e,yr.HTML),e.ackSelfClosing=!0}(t,e);break;case Er.IMAGE:!function(t,e){e.tagName=wr.IMG,e.tagID=Er.IMG,Ko(t,e)}(t,e);break;case Er.BUTTON:!function(t,e){t.openElements.hasInScope(Er.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Er.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML),t.framesetOk=!1}(t,e);break;case Er.APPLET:case Er.OBJECT:case Er.MARQUEE:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}(t,e);break;case Er.IFRAME:!function(t,e){t.framesetOk=!1,t._switchToTextParsing(e,Dr.RAWTEXT)}(t,e);break;case Er.SELECT:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===Ao.IN_TABLE||t.insertionMode===Ao.IN_CAPTION||t.insertionMode===Ao.IN_TABLE_BODY||t.insertionMode===Ao.IN_ROW||t.insertionMode===Ao.IN_CELL?Ao.IN_SELECT_IN_TABLE:Ao.IN_SELECT}(t,e);break;case Er.OPTION:case Er.OPTGROUP:!function(t,e){t.openElements.currentTagId===Er.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML)}(t,e);break;case Er.NOEMBED:Xo(t,e);break;case Er.FRAMESET:!function(t,e){var n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,yr.HTML),t.insertionMode=Ao.IN_FRAMESET)}(t,e);break;case Er.TEXTAREA:!function(t,e){t._insertElement(e,yr.HTML),t.skipNextNewLine=!0,t.tokenizer.state=Dr.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=Ao.TEXT}(t,e);break;case Er.NOSCRIPT:(t.options.scriptingEnabled?Xo:Qo)(t,e);break;case Er.PLAINTEXT:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML),t.tokenizer.state=Dr.PLAINTEXT}(t,e);break;case Er.COL:case Er.TH:case Er.TD:case Er.TR:case Er.HEAD:case Er.FRAME:case Er.TBODY:case Er.TFOOT:case Er.THEAD:case Er.CAPTION:case Er.COLGROUP:break;default:Qo(t,e)}}function Jo(t,e){for(var n=e.tagName,r=e.tagID,o=t.openElements.stackTop;0<o;o--){var i=t.openElements.items[o],a=t.openElements.tagIDs[o];if(r===a&&(r!==Er.UNKNOWN||t.treeAdapter.getTagName(i)===n)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.stackTop>=o&&t.openElements.shortenToLength(o);break}if(t._isSpecialElement(i,a))break}}function ti(t,e){switch(e.tagID){case Er.A:case Er.B:case Er.I:case Er.S:case Er.U:case Er.EM:case Er.TT:case Er.BIG:case Er.CODE:case Er.FONT:case Er.NOBR:case Er.SMALL:case Er.STRIKE:case Er.STRONG:Do(t,e);break;case Er.P:!function(t){t.openElements.hasInButtonScope(Er.P)||t._insertFakeElement(wr.P,Er.P),t._closePElement()}(t);break;case Er.DL:case Er.UL:case Er.OL:case Er.DIR:case Er.DIV:case Er.NAV:case Er.PRE:case Er.MAIN:case Er.MENU:case Er.ASIDE:case Er.BUTTON:case Er.CENTER:case Er.FIGURE:case Er.FOOTER:case Er.HEADER:case Er.HGROUP:case Er.DIALOG:case Er.ADDRESS:case Er.ARTICLE:case Er.DETAILS:case Er.SECTION:case Er.SUMMARY:case Er.LISTING:case Er.FIELDSET:case Er.BLOCKQUOTE:case Er.FIGCAPTION:!function(t,e){e=e.tagID,t.openElements.hasInScope(e)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(e))}(t,e);break;case Er.LI:!function(t){t.openElements.hasInListItemScope(Er.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(Er.LI),t.openElements.popUntilTagNamePopped(Er.LI))}(t);break;case Er.DD:case Er.DT:!function(t,e){e=e.tagID,t.openElements.hasInScope(e)&&(t.openElements.generateImpliedEndTagsWithExclusion(e),t.openElements.popUntilTagNamePopped(e))}(t,e);break;case Er.H1:case Er.H2:case Er.H3:case Er.H4:case Er.H5:case Er.H6:!function(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}(t);break;case Er.BR:!function(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(wr.BR,Er.BR),t.openElements.pop(),t.framesetOk=!1}(t);break;case Er.BODY:!function(t,e){var n;t.openElements.hasInScope(Er.BODY)&&(t.insertionMode=Ao.AFTER_BODY,!t.options.sourceCodeLocationInfo||(n=t.openElements.tryPeekProperlyNestedBodyElement())&&t._setEndLocation(n,e))}(t,e);break;case Er.HTML:!function(t,e){t.openElements.hasInScope(Er.BODY)&&(t.insertionMode=Ao.AFTER_BODY,bi(t,e))}(t,e);break;case Er.FORM:!function(t){var e=0<t.openElements.tmplCount,n=t.formElement;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(Er.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(Er.FORM):n&&t.openElements.remove(n))}(t);break;case Er.APPLET:case Er.OBJECT:case Er.MARQUEE:!function(t,e){e=e.tagID,t.openElements.hasInScope(e)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(e),t.activeFormattingElements.clearToLastMarker())}(t,e);break;case Er.TEMPLATE:Ho(t,e);break;default:Jo(t,e)}}function ei(t,e){(0<t.tmplInsertionModeStack.length?yi:Ro)(t,e)}function ni(t,e){if(jo.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=Ao.IN_TABLE_TEXT,e.type){case gr.CHARACTER:si(t,e);break;case gr.WHITESPACE_CHARACTER:ai(t,e)}else ii(t,e)}function ri(t,e){switch(e.tagID){case Er.TD:case Er.TH:case Er.TR:!function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(wr.TBODY,Er.TBODY),t.insertionMode=Ao.IN_TABLE_BODY,fi(t,e)}(t,e);break;case Er.STYLE:case Er.SCRIPT:case Er.TEMPLATE:Uo(t,e);break;case Er.COL:!function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(wr.COLGROUP,Er.COLGROUP),t.insertionMode=Ao.IN_COLUMN_GROUP,ui(t,e)}(t,e);break;case Er.FORM:!function(t,e){t.formElement||0!==t.openElements.tmplCount||(t._insertElement(e,yr.HTML),t.formElement=t.openElements.current,t.openElements.pop())}(t,e);break;case Er.TABLE:!function(t,e){t.openElements.hasInTableScope(Er.TABLE)&&(t.openElements.popUntilTagNamePopped(Er.TABLE),t._resetInsertionMode(),t._processStartTag(e))}(t,e);break;case Er.TBODY:case Er.TFOOT:case Er.THEAD:!function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,yr.HTML),t.insertionMode=Ao.IN_TABLE_BODY}(t,e);break;case Er.INPUT:!function(t,e){$o(e)?t._appendElement(e,yr.HTML):ii(t,e),e.ackSelfClosing=!0}(t,e);break;case Er.CAPTION:!function(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,yr.HTML),t.insertionMode=Ao.IN_CAPTION}(t,e);break;case Er.COLGROUP:!function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,yr.HTML),t.insertionMode=Ao.IN_COLUMN_GROUP}(t,e);break;default:ii(t,e)}}function oi(t,e){switch(e.tagID){case Er.TABLE:t.openElements.hasInTableScope(Er.TABLE)&&(t.openElements.popUntilTagNamePopped(Er.TABLE),t._resetInsertionMode());break;case Er.TEMPLATE:Ho(t,e);break;case Er.BODY:case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.HTML:case Er.TBODY:case Er.TD:case Er.TFOOT:case Er.TH:case Er.THEAD:case Er.TR:break;default:ii(t,e)}}function ii(t,e){var n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,Go(t,e),t.fosterParentingEnabled=n}function ai(t,e){t.pendingCharacterTokens.push(e)}function si(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function li(t,e){var n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)ii(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}var ci=new Set([Er.CAPTION,Er.COL,Er.COLGROUP,Er.TBODY,Er.TD,Er.TFOOT,Er.TH,Er.THEAD,Er.TR]);function ui(t,e){switch(e.tagID){case Er.HTML:Zo(t,e);break;case Er.COL:t._appendElement(e,yr.HTML),e.ackSelfClosing=!0;break;case Er.TEMPLATE:Uo(t,e);break;default:pi(t,e)}}function pi(t,e){t.openElements.currentTagId===Er.COLGROUP&&(t.openElements.pop(),t.insertionMode=Ao.IN_TABLE,t._processToken(e))}function fi(t,e){switch(e.tagID){case Er.TR:t.openElements.clearBackToTableBodyContext(),t._insertElement(e,yr.HTML),t.insertionMode=Ao.IN_ROW;break;case Er.TH:case Er.TD:t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(wr.TR,Er.TR),t.insertionMode=Ao.IN_ROW,hi(t,e);break;case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.TBODY:case Er.TFOOT:case Er.THEAD:t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=Ao.IN_TABLE,ri(t,e));break;default:ri(t,e)}}function di(t,e){var n=e.tagID;switch(e.tagID){case Er.TBODY:case Er.TFOOT:case Er.THEAD:t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=Ao.IN_TABLE);break;case Er.TABLE:t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=Ao.IN_TABLE,oi(t,e));break;case Er.BODY:case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.HTML:case Er.TD:case Er.TH:case Er.TR:break;default:oi(t,e)}}function hi(t,e){switch(e.tagID){case Er.TH:case Er.TD:t.openElements.clearBackToTableRowContext(),t._insertElement(e,yr.HTML),t.insertionMode=Ao.IN_CELL,t.activeFormattingElements.insertMarker();break;case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.TBODY:case Er.TFOOT:case Er.THEAD:case Er.TR:t.openElements.hasInTableScope(Er.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=Ao.IN_TABLE_BODY,fi(t,e));break;default:ri(t,e)}}function gi(t,e){switch(e.tagID){case Er.TR:t.openElements.hasInTableScope(Er.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=Ao.IN_TABLE_BODY);break;case Er.TABLE:t.openElements.hasInTableScope(Er.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=Ao.IN_TABLE_BODY,di(t,e));break;case Er.TBODY:case Er.TFOOT:case Er.THEAD:(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(Er.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=Ao.IN_TABLE_BODY,di(t,e));break;case Er.BODY:case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.HTML:case Er.TD:case Er.TH:break;default:oi(t,e)}}function mi(t,e){switch(e.tagID){case Er.HTML:Zo(t,e);break;case Er.OPTION:t.openElements.currentTagId===Er.OPTION&&t.openElements.pop(),t._insertElement(e,yr.HTML);break;case Er.OPTGROUP:t.openElements.currentTagId===Er.OPTION&&t.openElements.pop(),t.openElements.currentTagId===Er.OPTGROUP&&t.openElements.pop(),t._insertElement(e,yr.HTML);break;case Er.INPUT:case Er.KEYGEN:case Er.TEXTAREA:case Er.SELECT:t.openElements.hasInSelectScope(Er.SELECT)&&(t.openElements.popUntilTagNamePopped(Er.SELECT),t._resetInsertionMode(),e.tagID!==Er.SELECT&&t._processStartTag(e));break;case Er.SCRIPT:case Er.TEMPLATE:Uo(t,e)}}function vi(t,e){switch(e.tagID){case Er.OPTGROUP:0<t.openElements.stackTop&&t.openElements.currentTagId===Er.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===Er.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===Er.OPTGROUP&&t.openElements.pop();break;case Er.OPTION:t.openElements.currentTagId===Er.OPTION&&t.openElements.pop();break;case Er.SELECT:t.openElements.hasInSelectScope(Er.SELECT)&&(t.openElements.popUntilTagNamePopped(Er.SELECT),t._resetInsertionMode());break;case Er.TEMPLATE:Ho(t,e)}}function yi(t,e){0<t.openElements.tmplCount?(t.openElements.popUntilTagNamePopped(Er.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):Ro(t,e)}function bi(t,e){var n,r;e.tagID===Er.HTML?(t.fragmentContext||(t.insertionMode=Ao.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===Er.HTML&&(t._setEndLocation(t.openElements.items[0],e),!(r=t.openElements.items[1])||null!==(n=t.treeAdapter.getNodeSourceCodeLocation(r))&&void 0!==n&&n.endTag||t._setEndLocation(r,e))):_i(t,e)}function _i(t,e){t.insertionMode=Ao.IN_BODY,Go(t,e)}function wi(t,e){t.insertionMode=Ao.IN_BODY,Go(t,e)}function Ei(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==yr.HTML&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}var xi=n(144);function Ti(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ci(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ci(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}function Ci(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ai(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function Oi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ai(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Si=new Set([wr.AREA,wr.BASE,wr.BASEFONT,wr.BGSOUND,wr.BR,wr.COL,wr.EMBED,wr.FRAME,wr.HR,wr.IMG,wr.INPUT,wr.KEYGEN,wr.LINK,wr.META,wr.PARAM,wr.SOURCE,wr.TRACK,wr.WBR]),ki={treeAdapter:ao,scriptingEnabled:!0};function Pi(t,e){return e.treeAdapter.isElementNode(t)?function(t,e){var n=e.treeAdapter.getTagName(t);return"<".concat(n).concat(function(t,e){var n,r="",o=Ti((e=e.treeAdapter).getAttrList(t));try{for(o.s();!(n=o.n()).done;){var i=n.value;if(r+=" ",i.namespace)switch(i.namespace){case yr.XML:r+="xml:".concat(i.name);break;case yr.XMLNS:"xmlns"!==i.name&&(r+="xmlns:"),r+=i.name;break;case yr.XLINK:r+="xlink:".concat(i.name);break;default:r+="".concat(i.prefix,":").concat(i.name)}else r+=i.name;r+='="'.concat(Object(xi.escapeAttribute)(i.value),'"')}}catch(t){o.e(t)}finally{o.f()}return r}(t,e),">").concat(function(t,e){return e.treeAdapter.isElementNode(t)&&e.treeAdapter.getNamespaceURI(t)===yr.HTML&&Si.has(e.treeAdapter.getTagName(t))}(t,e)?"":"".concat(function(t,e){var n="";if(t=e.treeAdapter.isElementNode(t)&&e.treeAdapter.getTagName(t)===wr.TEMPLATE&&e.treeAdapter.getNamespaceURI(t)===yr.HTML?e.treeAdapter.getTemplateContent(t):t,t=e.treeAdapter.getChildNodes(t)){var r,o=Ti(t);try{for(o.s();!(r=o.n()).done;)n+=Pi(r.value,e)}catch(t){o.e(t)}finally{o.f()}}return n}(t,e),"</").concat(n,">"))}(t,e):e.treeAdapter.isTextNode(t)?function(t,e){var n=e.treeAdapter,r=n.getTextNodeContent(t),o=n.getParentNode(t);return(t=o&&n.isElementNode(o)&&n.getTagName(o))&&n.getNamespaceURI(o)===yr.HTML&&jr(t,e.scriptingEnabled)?r:Object(xi.escapeText)(r)}(t,e):e.treeAdapter.isCommentNode(t)?function(t,e){return e=e.treeAdapter,"\x3c!--".concat(e.getCommentNodeContent(t),"--\x3e")}(t,e):e.treeAdapter.isDocumentTypeNode(t)?function(t,e){return e=e.treeAdapter,"<!DOCTYPE ".concat(e.getDocumentTypeNodeName(t),">")}(t,e):""}function ji(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function Ni(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ji(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Li(t){return new k.f(t)}function Di(t){var e=t.includes('"')?"'":'"';return e+t+e}var Ii={isCommentNode:k.j,isElementNode:k.m,isTextNode:k.n,createDocument:function(){var t=new k.b([]);return t["x-mode"]=c.DOCUMENT_MODE.NO_QUIRKS,t},createDocumentFragment:function(){return new k.b([])},createElement:function(t,e,n){for(var r=Object.create(null),o=Object.create(null),i=Object.create(null),a=0;a<n.length;a++){var s=n[a].name;r[s]=n[a].value,o[s]=n[a].namespace,i[s]=n[a].prefix}return(t=new k.d(t,r,[])).namespace=e,t["x-attribsNamespace"]=o,t["x-attribsPrefix"]=i,t},createCommentNode:function(t){return new k.a(t)},appendChild:function(t,e){var n=t.children[t.children.length-1];n&&((n.next=e).prev=n),t.children.push(e),e.parent=t},insertBefore:function(t,e,n){var r=t.children.indexOf(n),o=n.prev;o&&((o.next=e).prev=o),(n.prev=e).next=n,t.children.splice(r,0,e),e.parent=t},setTemplateContent:function(t,e){Ii.appendChild(t,e)},getTemplateContent:function(t){return t.children[0]},setDocumentType:function(t,e,n,r){var o=function(t,e,n){var r="!DOCTYPE ";return t&&(r+=t),e?r+=" PUBLIC ".concat(Di(e)):n&&(r+=" SYSTEM"),n&&(r+=" ".concat(Di(n))),r}(e,n,r),i=t.children.find((function(t){return Object(k.k)(t)&&"!doctype"===t.name}));i?i.data=null!=o?o:null:(i=new k.e("!doctype",o),Ii.appendChild(t,i)),i["x-name"]=null!=e?e:void 0,i["x-publicId"]=null!=n?n:void 0,i["x-systemId"]=null!=r?r:void 0},setDocumentMode:function(t,e){t["x-mode"]=e},getDocumentMode:function(t){return t["x-mode"]},detachNode:function(t){var e,n,r;t.parent&&(e=t.parent.children.indexOf(t),n=t.prev,r=t.next,t.prev=null,t.next=null,n&&(n.next=r),r&&(r.prev=n),t.parent.children.splice(e,1),t.parent=null)},insertText:function(t,e){var n=t.children[t.children.length-1];n&&Object(k.n)(n)?n.data+=e:Ii.appendChild(t,Li(e))},insertTextBefore:function(t,e,n){var r=t.children[t.children.indexOf(n)-1];r&&Object(k.n)(r)?r.data+=e:Ii.insertBefore(t,Li(e),n)},adoptAttributes:function(t,e){for(var n=0;n<e.length;n++){var r=e[n].name;void 0===t.attribs[r]&&(t.attribs[r]=e[n].value,t["x-attribsNamespace"][r]=e[n].namespace,t["x-attribsPrefix"][r]=e[n].prefix)}},getFirstChild:function(t){return t.children[0]},getChildNodes:function(t){return t.children},getParentNode:function(t){return t.parent},getAttrList:function(t){return t.attributes},getTagName:function(t){return t.name},getNamespaceURI:function(t){return t.namespace},getTextNodeContent:function(t){return t.data},getCommentNodeContent:function(t){return t.data},getDocumentTypeNodeName:function(t){return null!==(t=t["x-name"])&&void 0!==t?t:""},getDocumentTypeNodePublicId:function(t){return null!==(t=t["x-publicId"])&&void 0!==t?t:""},getDocumentTypeNodeSystemId:function(t){return null!==(t=t["x-systemId"])&&void 0!==t?t:""},isDocumentTypeNode:function(t){return Object(k.k)(t)&&"!doctype"===t.name},setNodeSourceCodeLocation:function(t,e){e&&(t.startIndex=e.startOffset,t.endIndex=e.endOffset),t.sourceCodeLocation=e},getNodeSourceCodeLocation:function(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation:function(t,e){null!=e.endOffset&&(t.endIndex=e.endOffset),t.sourceCodeLocation=Ni(Ni({},t.sourceCodeLocation),e)}};function Ri(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Mi={treeAdapter:Ii},Bi=n(92),Fi=n(143),Ui=function(t,e){return function e(n,o){var i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];if(null==n)throw new Error("cheerio.load() expects a string");var a=lr(lr({},f),h(o)),s=t(n,a,i,null),l=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ir(t,e)}(n,rr);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ar(t);return function(t,e){return!e||"object"!==or(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,e?(n=ar(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}(n);function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),e.apply(this,arguments)}return function(t,e,n){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(n,[{key:"_make",value:function(t,e){return(e=c(t,e)).prevObject=this,e}},{key:"_parse",value:function(e,n,r,o){return t(e,n,r,o)}},{key:"_render",value:function(t){return function(t,e){return e.xmlMode||e._useHtmlParser2?Object(Bi.a)(t,e):function(t){for(var e=("length"in t?t:[t]),n=0;n<e.length;n+=1){var r,o=e[n];Object(k.l)(o)&&(r=Array.prototype.splice).call.apply(r,[e,n,1].concat(function(t){return function(t){if(Array.isArray(t))return Ri(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ri(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ri(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o.children)))}for(var i="",a=0;a<e.length;a+=1)i+=function(t,e){return Pi(t,Oi(Oi({},ki),e))}(e[a],Mi);return i}(t)}(t,this.options)}}]),n}();function c(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:s,o=3<arguments.length?arguments[3]:void 0;if(e&&P(e))return e;var i=lr(lr({},a),h(o)),c="string"==typeof r?[t(r,i,!1,null)]:"length"in r?r:[r];if((o=P(c)?c:new l(c,null,i))._root=o,!e)return new l(void 0,o,i);if(r="string"==typeof e&&L(e)?t(e,i,!1,null).children:function(t){return t.name||"root"===t.type||"text"===t.type||"comment"===t.type}(e)?[e]:Array.isArray(e)?e:void 0,c=new l(r,o,i),r)return c;if("string"!=typeof e)throw new Error("Unexpected type of selector");return(o=n?"string"==typeof n?L(n)?new l([t(n,i,!1,null)],o,i):(e="".concat(n," ").concat(e),o):P(n)?n:new l(Array.isArray(n)?n:[n],o,i):o)?o.find(e):c}return Object.assign(c,r,{load:e,_root:s,_options:a,fn:l.prototype,prototype:l.prototype}),c}}(Object(wn.a)((function(t,e,n,r){return e.xmlMode||e._useHtmlParser2?Object(Fi.parseDocument)(t,e):function(t,e,n,r){return e={scriptingEnabled:"boolean"!=typeof e.scriptingEnabled||e.scriptingEnabled,treeAdapter:Ii,sourceCodeLocationInfo:e.sourceCodeLocationInfo},n?function(t,e){return Lo.parse(t,e)}(t,e):function(t,e,n){return"string"==typeof t&&(n=e,e=t,t=null),(n=Lo.getFragmentParser(t,n)).tokenizer.write(e,!0),n.getFragment()}(r,t,e)}(t,e,n,r)}))),Hi=(e.default=Ui([]),C),Vi=A,qi=x,zi=T},function(t,e,n){t.exports=n(234)},function(t,e,n){"use strict";var r=n(1).default,o=n(36).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(9));o=n(141),n=r(n(536)),(0,i.assignComponents)(i.components,n.default.components),(0,o.assignDependencies)(o.dependencies,n.default.dependencies),i=i.default,e.default=i,t.exports=e.default},function(t,e,n){var r=n(145).default,o=n(37);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(146),o=n(93),i=n(237),a=n(238);function s(e){var n="function"==typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!i(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return a(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)},t.exports.default=t.exports,t.exports.__esModule=!0,s(e)}t.exports=s,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(93),o=n(147);function i(e,n,a){return o()?t.exports=i=Reflect.construct:t.exports=i=function(t,e,n){var o=[null];return o.push.apply(o,e),o=new(Function.bind.apply(t,o)),n&&r(o,n.prototype),o},t.exports.default=t.exports,t.exports.__esModule=!0,i.apply(null,arguments)}t.exports=i,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n=n(149)(Object.keys,Object),t.exports=n},function(t,e,n){n=n(28)(n(16),"DataView"),t.exports=n},function(t,e,n){var r=n(68),o=n(244),i=n(18),a=n(151),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=(n=Object.prototype,l=l.toString,n=n.hasOwnProperty,RegExp("^"+l.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"));t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?c:s).test(a(t))}},function(t,e,n){var r=n(39),o=(n=Object.prototype).hasOwnProperty,i=n.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{var r=!(t[a]=void 0)}catch(t){}var s=i.call(t);return r&&(e?t[a]=n:delete t[a]),s}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){n=n(245);var r=(n=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!r&&r in t}},function(t,e,n){n=n(16)["__core-js_shared__"],t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){n=n(28)(n(16),"Promise"),t.exports=n},function(t,e,n){n=n(28)(n(16),"Set"),t.exports=n},function(t,e,n){var r=n(29),o=n(19);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(29),o=n(96),i=n(19),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e,n){n=n(253)(),t.exports=n},function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++o];if(!1===n(i[l],l,i))break}return e}}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(30);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,s=Object(n);(e?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(t,e,n){var r=n(24);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(258),o=n(290),i=n(166);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(100),o=n(157);t.exports=function(t,e,n,i){var a=n.length,s=a,l=!i;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=n[a])[0],p=t[u],f=c[1];if(l&&c[2]){if(void 0===p&&!(u in t))return!1}else{var d,h=new r;if(!(void 0===(d=i?i(p,f,u,t,e,h):d)?o(f,p,3,i,h):d))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(73),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__;return!((t=r(e,t))<0||(t==e.length-1?e.pop():o.call(e,t,1),--this.size,0))}},function(t,e,n){var r=n(73);t.exports=function(t){var e=this.__data__;return(t=r(e,t))<0?void 0:e[t][1]}},function(t,e,n){var r=n(73);t.exports=function(t){return-1<r(this.__data__,t)}},function(t,e,n){var r=n(73);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(72);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__;return t=e.delete(t),this.size=e.size,t}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(72),o=n(95),i=n(101);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(270),o=n(72),i=n(95);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(271),o=n(272),i=n(273),a=n(274);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}n=n(275),s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=n,t.exports=s},function(t,e,n){var r=n(75);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t}},function(t,e,n){var r=n(75),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(75),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(75);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(76);t.exports=function(t){return t=r(this,t).delete(t),this.size-=t?1:0,t}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=n(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(76);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(76);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(76);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(100),o=n(158),i=n(286),a=n(289),s=n(38),l=n(12),c=n(70),u=n(97),p="[object Arguments]",f="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,m,v){var y=l(t),b=l(e),_=y?f:s(t),w=b?f:s(e),E=(_=_==p?d:_)==d;if(b=(w=w==p?d:w)==d,(w=_==w)&&c(t)){if(!c(e))return!1;E=!(y=!0)}return w&&!E?(v=v||new r,y||u(t)?o(t,e,n,g,m,v):i(t,e,_,n,g,m,v)):1&n||(E=E&&h.call(t,"__wrapped__"),b=b&&h.call(e,"__wrapped__"),!E&&!b)?!!w&&(v=v||new r,a(t,e,n,g,m,v)):m(E?t.value():t,b?e.value():e,n,g,v=v||new r)}},function(t,e,n){var r=n(101),o=n(283);function i(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}n=n(284),i.prototype.add=i.prototype.push=o,i.prototype.has=n,t.exports=i},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(39),o=n(160),i=n(74),a=n(158),s=n(287),l=n(288),c=(r=r?r.prototype:void 0)?r.valueOf:void 0;t.exports=function(t,e,n,r,u,p,f){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=s;case"[object Set]":if(d=d||l,t.size!=e.size&&!(1&r))return!1;var h=f.get(t);return h?h==e:(r|=2,f.set(t,e),d=a(d(t),d(e),r,u,p,f),f.delete(t),d);case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(161),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,s){var l=1&n,c=r(t),u=c.length;if(u!=r(e).length&&!l)return!1;for(var p=u;p--;){var f=c[p];if(!(l?f in e:o.call(e,f)))return!1}var d=s.get(t),h=s.get(e);if(d&&h)return d==e&&h==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=l;++p<u;){var v,y=t[f=c[p]],b=e[f];if(!(void 0===(v=i?l?i(b,y,f,e,t,s):i(y,b,f,t,e,s):v)?y===b||a(y,b,n,i,s):v)){g=!1;break}m=m||"constructor"==f}return!g||m||(d=t.constructor)!=(h=e.constructor)&&"constructor"in t&&"constructor"in e&&!("function"==typeof d&&d instanceof d&&"function"==typeof h&&h instanceof h)&&(g=!1),s.delete(t),s.delete(e),g}},function(t,e,n){var r=n(165),o=n(31);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},function(t,e,n){var r=n(157),o=n(42),i=n(295),a=n(104),s=n(165),l=n(166),c=n(32);t.exports=function(t,e){return a(t)&&s(e)?l(c(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},function(t,e,n){var r=n(293);t.exports=function(t){var e=(t=r(t,(function(t){return 500===e.size&&e.clear(),t}))).cache;return t}},function(t,e,n){var r=n(101);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");function n(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;return i.has(o)?i.get(o):(r=t.apply(this,r),n.cache=i.set(o,r)||i,r)}return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},function(t,e,n){var r=n(39),o=n(57),i=n(12),a=n(44),s=(r=r?r.prototype:void 0)?r.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return s?s.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(296),o=n(297);t.exports=function(t,e){return null!=t&&o(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(43),o=n(69),i=n(12),a=n(56),s=n(96),l=n(32);t.exports=function(t,e,n){for(var c=-1,u=(e=r(e,t)).length,p=!1;++c<u;){var f=l(e[c]);if(!(p=null!=t&&n(t,f)))break;t=t[f]}return p||++c!=u?p:!!(u=null==t?0:t.length)&&s(u)&&a(f,u)&&(i(t)||o(t))}},function(t,e,n){var r=n(299),o=n(300),i=n(104),a=n(32);t.exports=function(t){return i(t)?r(a(t)):o(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(77);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e){t.exports=function(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}},function(t,e,n){var r=n(58),o=n(108);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(18),o=n(67),i=n(304),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e,n=o(t),s=[];for(e in t)("constructor"!=e||!n&&a.call(t,e))&&s.push(e);return s}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(16),i="object"==r(e)&&e&&!e.nodeType&&e,a=i&&"object"==r(t)&&t&&!t.nodeType&&t,s=(o=a&&a.exports===i?o.Buffer:void 0)?o.allocUnsafe:void 0;t.exports=function(t,e){return e?t.slice():(e=t.length,e=s?s(e):new t.constructor(e),t.copy(e),e)}}).call(this,n(54)(t))},function(t,e,n){var r=n(58),o=n(103);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){var r=n(58),o=n(171);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(111),o=n(310),i=n(311),a=n(312),s=n(313);t.exports=function(t,e,n){var l=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new l(+t);case"[object DataView]":return o(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(t);case"[object RegExp]":return i(t);case"[object Symbol]":return a(t)}}},function(t,e,n){var r=n(111);t.exports=function(t,e){return e=e?r(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=(n=(n=n(39))?n.prototype:void 0)?n.valueOf:void 0;t.exports=function(t){return r?Object(r.call(t)):{}}},function(t,e,n){var r=n(111);t.exports=function(t,e){return e=e?r(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.length)}},function(t,e,n){var r=n(79),o=n(109),i=n(67);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){var r=n(316),o=n(98);r=(n=(n=n(99))&&n.isMap)?o(n):r,t.exports=r},function(t,e,n){var r=n(38),o=n(19);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},function(t,e,n){var r=n(318),o=n(98);r=(n=(n=n(99))&&n.isSet)?o(n):r,t.exports=r},function(t,e,n){var r=n(38),o=n(19);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},function(t,e,n){var r=n(43),o=n(320),i=n(321),a=n(32);t.exports=function(t,e){return e=r(e,t),null==(t=i(t,e))||delete t[a(o(e))]}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(77),o=n(322);t.exports=function(t,e){return e.length<2?t:r(t,o(e,0,-1))}},function(t,e){t.exports=function(t,e,n){var r=-1,o=t.length;(n=o<n?o:n)<0&&(n+=o),o=n<(e=e<0?o<-e?0:o+e:e)?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}},function(t,e,n){var r=n(172);t.exports=function(t){return r(t)?void 0:t}},function(t,e,n){var r=n(325);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},function(t,e,n){var r=n(102),o=n(326);t.exports=function t(e,n,i,a,s){var l=-1,c=e.length;for(i=i||o,s=s||[];++l<c;){var u=e[l];0<n&&i(u)?1<n?t(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},function(t,e,n){var r=n(39),o=n(69),i=n(12),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e,n){var r=n(113),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=o(i.length-e,0),l=Array(s);++a<s;)l[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=n(l),r(t,this,c)}}},function(t,e,n){var r=n(329),o=n(169);n=n(24),t.exports=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:n},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var r=n(55),o=n(30);t.exports=function(t,e){var n=-1,i=o(t)?Array(t.length):[];return r(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}},function(t,e,n){var r=n(55);t.exports=function(t,e){var n=[];return r(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}},function(t,e,n){var r=n(20),o=n(30),i=n(31);t.exports=function(t){return function(e,n,a){var s,l=Object(e);return o(e)||(s=r(n,3),e=i(e),n=function(t){return s(l[t],t,l)}),-1<(a=t(e,n,a))?l[s?e[a]:a]:void 0}}},function(t,e,n){var r=n(115),o=n(20),i=n(59),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;return s?((n=null==n?0:i(n))<0&&(n=a(s+n,0)),r(t,o(e,3),n)):-1}},function(t,e,n){var r=n(335),o=n(18),i=n(44),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)&&(e="function"==typeof t.valueOf?t.valueOf():t,t=o(e)?e+"":e),"string"!=typeof t)return 0===t?t:+t;t=r(t);var e=s.test(t);return e||l.test(t)?c(t.slice(2),e?2:8):a.test(t)?NaN:+t}},function(t,e,n){var r=n(336),o=/^\s+/;t.exports=function(t){return t&&t.slice(0,r(t)+1).replace(o,"")}},function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},function(t,e,n){"use strict";var r=n(338),o=n(349)((function(t,e){return r(t,{xmlMode:e&&e.xmlMode},i,[e])})),i=function(t,e){return o.juiceDocument(t,e)};o.inlineContent=function(t,e,n){return r(t,{xmlMode:n&&n.xmlMode},o.inlineDocument,[e,n])},o.codeBlocks=r.codeBlocks,t.exports=o},function(t,e,n){"use strict";var r=n(232);n(116),t.exports=function(e,n,o,i){var a=function(){var e=[];return{encodeEntities:function(n){var r=t.exports.codeBlocks;return Object.keys(r).forEach((function(t){t=new RegExp(r[t].start+"([\\S\\s]*?)"+r[t].end,"g"),n=n.replace(t,(function(t,n){return e.push(t),"JUICE_CODE_BLOCK_"+(e.length-1)+"_"}))})),n},decodeEntities:function(t){for(var n=0;n<e.length;n++){var r=new RegExp("JUICE_CODE_BLOCK_"+n+'_(="")?',"gi");t=t.replace(r,(function(){return e[n]}))}return t}}}(),s=function(t,e,n){return e=Object.assign({decodeEntities:!1,_useHtmlParser2:!0},e),t=n(t),r.load(t,e)}(e,n,a.encodeEntities);return(e=[s]).push.apply(e,i),s=o.apply(void 0,e)||s,n&&n.xmlMode?a.decodeEntities(s.xml()):a.decodeEntities(s.html())},t.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t);return 3*((t=e[0])+(e=e[1]))/4-e},e.toByteArray=function(t){for(var e,n=(r=l(t))[0],r=r[1],a=new i(function(t,e,n){return 3*(e+n)/4-n}(0,n,r)),s=0,c=0<r?n-4:n,u=0;u<c;u+=4)e=o[t.charCodeAt(u)]<<18|o[t.charCodeAt(u+1)]<<12|o[t.charCodeAt(u+2)]<<6|o[t.charCodeAt(u+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=255&e;return 2===r&&(e=o[t.charCodeAt(u)]<<2|o[t.charCodeAt(u+1)]>>4,a[s++]=255&e),1===r&&(e=o[t.charCodeAt(u)]<<10|o[t.charCodeAt(u+1)]<<4|o[t.charCodeAt(u+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e),a},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(function(t,e,n){for(var o,i=[],a=e;a<n;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),i.push(function(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}(o));return i.join("")}(t,a,s<a+16383?s:a+16383));return 1==o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2==o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");return[t=-1===(t=t.indexOf("="))?e:t,t===e?0:4-t%4]}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,p=n?o-1:0,f=n?-1:1;for(n=t[e+p],p+=f,i=n&(1<<-u)-1,n>>=-u,u+=s;0<u;i=256*i+t[e+p],p+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;0<u;a=256*a+t[e+p],p+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(n?-1:1);a+=Math.pow(2,r),i-=c}return(n?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,l=8*i-o-1,c=(1<<l)-1,u=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,d=r?1:-1;for(i=e<0||0===e&&1/e<0?1:0,e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-a))<1&&(a--,r*=2),2<=(e+=1<=a+u?p/r:p*Math.pow(2,1-u))*r&&(a++,r/=2),c<=a+u?(s=0,a=c):1<=a+u?(s=(e*r-1)*Math.pow(2,o),a+=u):(s=e*Math.pow(2,u-1)*Math.pow(2,o),a=0));8<=o;t[n+f]=255&s,f+=d,s/=256,o-=8);for(a=a<<o|s,l+=o;0<l;t[n+f]=255&a,f+=d,a/=256,l-=8);t[n+f-d]|=128*i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(t){return t.charCodeAt(0)})))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(t){return t.charCodeAt(0)})))},function(t,e,n){t.exports={lex:n(178),parse:n(344),stringify:n(345)}},function(t,e,n){var r,o,i,a,s=!1,l=n(117)("parse"),c=n(178);function u(t,e){var n;e=e||{};for(var r=["type","name","value"],o={},a=0;a<r.length;++a)t[n=r[a]]&&(o[n]=e[n]||t[n]);for(r=Object.keys(e),a=0;a<r.length;++a)o[n=r[a]]||(o[n]=e[n]);return i&&(o.position={start:t.start,end:t.end}),s&&l("astNode:",JSON.stringify(o,null,2)),o}function p(){var t=a.shift();return s&&l("next:",JSON.stringify(t,null,2)),t}function f(t){switch(t.type){case"property":case"charset":case"import":case"namespace":return function(t){return u(t)}(t);case"selector":return function(t){return u(t,{type:"rule",selectors:t.text.split(",").map((function(t){return t.trim()})),declarations:h()})}(t);case"at-group-end":return void--o;case"media":case"keyframes":case"font-face":case"supports":case"viewport":case"document":case"page":return function(t){o+=1;var e={};switch(t.type){case"font-face":case"viewport":e.declarations=h();break;case"page":e.prefix=t.prefix,e.declarations=h();break;default:e.prefix=t.prefix,e.rules=d((function(){return o}))}return u(t,e)}(t);case"comment":if(r)return function(t){return u(t,{text:t.text})}(t)}s&&l("parseToken: unexpected token:",JSON.stringify(t))}function d(t){for(var e,n,r=[];(n=p())&&t&&t(n);)(e=f(n))&&r.push(e);return n&&"end"!==n.type&&a.unshift(n),r}function h(){return d((function(t){return"property"===t.type||"comment"===t.type}))}t.exports=function(t,e){r=!!(e=e||{}).comments,i=!!e.position,o=0,a=Array.isArray(t)?t.slice():c(t);for(var n,s=[];n=p();)(n=f(n))&&s.push(n);return{type:"stylesheet",stylesheet:{rules:s}}}},function(t,e,n){var r,o,i,a,s,l,c=!1,u=n(117)("stringify");function p(t){if(!t)return o?"":Array(a).join(i||"");a+=t}function f(t){return r?"/*"+(t.text||"")+"*/"+s:""}function d(t){var e;return t.selectors?e=t.selectors.join(","+s):(e="@"+t.type,e+=t.name?" "+t.name:""),p()+e+l+g(t)+s}function h(t,e){return t.reduce((function(t,n){return(n=("comment"===n.type?f:e)(n))&&t.push(n),t}),[])}function g(t,e){var n=t.declarations,r=m;return t.rules&&(n=t.rules,r=d),"{"+(n=(n=function(t,e){return t?(p(1),e=h(t,e),p(-1),e.length?e.join(s):""):""}(n,r))&&s+n+(e?"":s))+p()+"}"}function m(t){if("property"===t.type)return function(t){var e=t.name?t.name+":"+l:"";return p()+e+t.value+";"}(t);c&&u("stringifyDeclaration: unexpected node:",JSON.stringify(t))}function v(t){switch(t.type){case"rule":return d(t);case"media":case"keyframes":case"font-face":case"supports":case"viewport":case"document":case"page":return function(t){var e="",n=t.prefix||"";t.name&&(e=" "+t.name);var r="page"!==t.type;return"@"+n+t.type+e+l+g(t,r)+s}(t);case"comment":return f(t);case"import":case"charset":case"namespace":return function(t){return"@"+t.type+" "+t.value+";"+s}(t)}c&&u("stringifyNode: unexpected node: "+JSON.stringify(t))}t.exports=function(t,e){return i=(e=e||{}).indentation||"",o=!!e.compress,r=!!e.comments,a=1,o?s=l="":(s="\n",l=" "),h(t.stylesheet.rules,v).join("\n").trim()}},function(t,e,n){"use strict";var r=n(347);function o(t,e){this.text=t,this.spec=void 0,this.styleAttribute=e||!1}function i(t){try{return r(t)[0]}catch(t){return[]}}(t.exports=o).prototype.parsed=function(){return this.tokens||(this.tokens=i(this.text)),this.tokens},o.prototype.specificity=function(){var t=this.styleAttribute;return this.spec||(this.spec=function e(n,r){for(var o=r||i(n),a=[t?1:0,0,0,0],s=[],l=0;l<o.length;l++){var c=o[l],u=c.pseudos;if(c.id&&a[1]++,c.attributes&&(a[2]+=c.attributes.length),c.classList&&(a[2]+=c.classList.length),c.tag&&"*"!==c.tag&&a[3]++,u){a[3]+=u.length;for(var p=0;p<u.length;p++)"not"===u[p].name&&(s.push(u[p].value),a[3]--)}}for(var f=s.length;f--;)for(var d=e(s[f]),h=4;h--;)a[h]+=d[h];return a}(this.text,this.parsed())),this.spec}},function(t,e,n){"use strict";function r(t){return(t+"").replace(a,"\\$1")}function o(t){return(t+"").replace(s,"")}function i(t){this.combinator=t||" ",this.tag="*"}var a=/([-.*+?^${}()|[\]\/\\])/g,s=/\\/g,l=RegExp("^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(/<combinator>/,"["+r(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])"));function c(){this.length=0}function u(t,e,n,a,s,l,u,p,f,d,h,g,m,v,y,b){var _,w;return(e||!this.length)&&(_=this[this.length++]=new c,e)||(_=_||this[this.length-1],w=(w=n||a||!_.length?_[_.length++]=new i(n):w)||_[_.length-1],s?w.tag=o(s):l?w.id=o(l):u?(s=o(u),(l=w.classes||(w.classes={}))[s]||(l[s]=r(u),(u=w.classList||(w.classList=[])).push(s),u.sort())):m?(b=b||y,(w.pseudos||(w.pseudos=[])).push({type:1==g.length?"class":"element",name:o(m),escapedName:r(m),value:b?o(b):null,escapedValue:b?r(b):null})):p&&(h=h?r(h):null,(w.attributes||(w.attributes=[])).push({operator:f,name:o(p),escapedName:r(p),value:h?o(h):null,escapedValue:h?r(h):null}))),""}function p(t){this.length=0;for(var e,n=this,r=t;t;){if((e=t.replace(l,(function(){return u.apply(n,arguments)})))===t)throw new Error(r+" is an invalid expression");t=e}}i.prototype.toString=function(){if(!this.raw){var t,e,n="";if(n+=this.tag||"*",this.id&&(n+="#"+this.id),this.classes&&(n+="."+this.classList.join(".")),this.attributes)for(t=0;e=this.attributes[t++];)n+="["+e.name+(e.operator?e.operator+'"'+e.value+'"':"")+"]";if(this.pseudos)for(t=0;e=this.pseudos[t++];)n+=":"+e.name,e.value&&(n+="("+e.value+")");this.raw=n}return this.raw},c.prototype.toString=function(){if(!this.raw){for(var t,e="",n=0;t=this[n++];)1!==n&&(e+=" ")," "!==t.combinator&&(e+=t.combinator+" "),e+=t;this.raw=e}return this.raw},p.prototype.toString=function(){if(!this.raw){for(var t,e=[],n=0;t=this[n++];)e.push(t);this.raw=e.join(", ")}return this.raw};var f={};t.exports=function(t){return null==t?null:(t=(""+t).replace(/^\s+|\s+$/g,""),f[t]||(f[t]=new p(t)))}},function(t,e,n){"use strict";t.exports=o;var r=n(116);function o(t,e,n,r,o){this.prop=t,this.value=e,this.selector=n,this.priority=r||0,this.additionalPriority=o||[]}o.prototype.compareFunc=function(t){var e=[];e.push.apply(e,this.selector.specificity()),e.push.apply(e,this.additionalPriority),e[0]+=this.priority;var n=[];return n.push.apply(n,t.selector.specificity()),n.push.apply(n,t.additionalPriority),n[0]+=t.priority,r.compareFunc(e,n)},o.prototype.compare=function(t){return 1===this.compareFunc(t)?this:t},o.prototype.toString=function(){return this.prop+": "+this.value.replace(/['"]+/g,"")+";"}},function(t,e,n){"use strict";var r=n(116),o=n(350);t.exports=function(t){function e(e,a,s){s=s||{};var l=r.parseCSS(a),c=[],u="style",p={};function f(r,o){if(r.name){var i=r.name.toUpperCase();if(-1<t[o+"Elements"].indexOf(i))for(var a in r.styleProps)if(r.styleProps[a].prop===o){var l=r.styleProps[a].value;if((l=s.preserveImportant?n(l):l).match(/(px|auto)/))return a=l.replace("px",""),e(r).attr(o,a),0;if(-1<t.tableElements.indexOf(i)&&l.match(/\%/))return e(r).attr(o,l),0}}}s.styleAttributeName&&(u=s.styleAttributeName),l.forEach((function(o){var a=o[0],l=o[1],f=new r.Selector(a),d=f.parsed();if(d){for(var h,g,m=function(t){if(0!==t.length){var e=t[t.length-1].pseudos;if(e)for(var n=0;n<e.length;n++)if(i(e[n]))return e[n].name}}(d),v=0;v<d.length;++v){var y=d[v];if(y.pseudos)for(var b=0;b<y.pseudos.length;++b){var _=y.pseudos[b];if(0<=t.ignoredPseudos.indexOf(_.name))return}}m&&(o=(h=d[d.length-1]).pseudos,h.pseudos=function(t){return t.filter((function(t){return!i(t)}))}(h.pseudos),a=d.toString(),h.pseudos=o);try{g=e(a)}catch(o){return}g.each((function(){var o,i,a=this;function d(e,o){for(var i,l,c,u,f=0,d=e.length;f<d;f++)"property"==e[f].type&&(i=e[f].name,l=e[f].value,"counter-reset"===i&&function(t,e){for(var n=e.split(/\s+/),r=0;r<n.length;r++){var o=n[r],i=parseInt(n[r+1],10);isNaN(i)?t.counterProps[o]=p[o]=0:t.counterProps[o]=p[n[r++]]=i}}(a,l),"counter-increment"===i&&function(t,e){for(var n=e.split(/\s+/),r=0;r<n.length;r++){var o,i=n[r];void 0!==t.counterProps[i]&&(o=parseInt(n[r+1],10),isNaN(o)?t.counterProps[i]=p[i]+=1:t.counterProps[i]=p[n[r++]]+=o)}}(a,l),(c=null!==l.match(/!important$/))&&!s.preserveImportant&&(l=n(l)),u=[e[f].position.start.line,e[f].position.start.col],c=new r.Property(i,l,o,c?2:0,u),u=a.styleProps[i],t.excludedProperties.indexOf(i)<0&&(u&&u.compare(c)===c||!u)&&(u&&u.selector!==o?delete a.styleProps[i]:u&&(c.nextProp=u),a.styleProps[i]=c))}a.name&&0<=t.nonVisualElements.indexOf(a.name.toUpperCase())||(m&&((i=a[o="pseudo"+m])||((i=a[o]=e("<span />").get(0)).pseudoElementType=m,i.pseudoElementParent=a,i.counterProps=a.counterProps,a[o]=i),a=i),a.styleProps||(a.styleProps={},e(a).attr(u)&&(i="* { "+e(a).attr(u)+" } ",d(r.parseCSS(i)[0][1],new r.Selector("<style>",!0))),c.push(a)),a.counterProps||(a.counterProps=a.parent&&a.parent.counterProps?Object.create(a.parent.counterProps):{}),d(l,f))}))}})),c.forEach((function(t){Object.keys(t.styleProps).length;var n=[];Object.keys(t.styleProps).forEach((function(e){for(var r=t.styleProps[e];void 0!==r;)n.push(r),r=r.nextProp})),n.sort((function(t,e){return t.compareFunc(e)}));var r=n.filter((function(t){return"content"!==t.prop})).map((function(t){return t.prop+": "+t.value.replace(/["]/g,"'")+";"})).join(" ");r&&e(t).attr(u,r)})),s.inlinePseudoElements&&c.forEach((function(t){var n;t.pseudoElementType&&t.styleProps.content&&((n=function(t){var e=t.styleProps.content.value;if("none"===e||"normal"===e)return"";var n=e.match(/^\s*url\s*\(\s*(.*?)\s*\)\s*$/i);if(n)return{img:n[1].replace(/^['"]|['"]$/g,"")};for(var r,i,a=[],s=e.split(/['"]/),l=0;l<s.length;l++)""!==s[l]&&((i=s[l].match(/var\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i))?(r=function(t,e){for(;t;){if(e in t.styleProps)return t.styleProps[e].value;t=t.pseudoElementParent||t.parent}}(t,i[1])||i[2],a.push(r.replace(/^['"]|['"]$/g,""))):(i=s[l].match(/counter\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i))&&i[1]in t.counterProps?(r=t.counterProps[i[1]],a.push(function(t,e){switch(e){case"lower-roman":return o.romanize(t).toLowerCase();case"upper-roman":return o.romanize(t);case"lower-latin":case"lower-alpha":return o.alphanumeric(t).toLowerCase();case"upper-latin":case"upper-alpha":return o.alphanumeric(t);default:return t.toString()}}(r,i[3]))):(i=s[l].match(/attr\s*\(\s*(.*?)\s*\)/i))?(i=i[1],a.push((t.pseudoElementParent||t).attribs[i])):a.push(s[l]));return(e=a.join("")).replace(/\\/g,"")}(t)).img?(t.name="img",e(t).attr("src",n.img)):e(t).text(n),n=t.pseudoElementParent,"before"===t.pseudoElementType?e(n).prepend(t):e(n).append(t))})),s.applyWidthAttributes&&c.forEach((function(t){f(t,"width")})),s.applyHeightAttributes&&c.forEach((function(t){f(t,"height")})),s.applyAttributesTableElements&&c.forEach((function(r){if(r.name){var o,i=r.name.toUpperCase(),a=Object.keys(t.styleToAttribute);if(-1<t.tableElements.indexOf(i))for(var l in r.styleProps)-1<a.indexOf(r.styleProps[l].prop)&&(o=t.styleToAttribute[r.styleProps[l].prop],l=r.styleProps[l].value,s.preserveImportant&&(l=n(l)),"background"===o&&(l=function(t){return 0!==t.indexOf("url(")?t:t.replace(/^url\((["'])?([^"']+)\1\)$/,"$2")}(l)),/(linear|radial)-gradient\(/i.test(l)||e(r).attr(o,l))}})),s.insertPreservedExtraCss&&s.extraCss&&(a=r.getPreservedText(s.extraCss,{mediaQueries:s.preserveMediaQueries,fontFaces:s.preserveFontFaces,keyFrames:s.preserveKeyFrames}))&&(!(l=null)!==s.insertPreservedExtraCss?l=e(s.insertPreservedExtraCss):(l=(l=e("head")).length?l:e("body")).length||(l=e.root()),l.first().append("<style>"+a+"</style>"))}function n(t){return t.replace(/\s*!important$/,"")}function i(t){return"before"===t.name||"after"===t.name}return t.ignoredPseudos=["hover","active","focus","visited","link"],t.widthElements=["TABLE","TD","TH","IMG"],t.heightElements=["TABLE","TD","TH","IMG"],t.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],t.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],t.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},t.excludedProperties=[],t.juiceDocument=function(n,o){var i=function(e,n){return function(e,n){var o,i,a=[];return e("style").each((function(){var s,l=!!(i=this).childNodes;1===(o=l?i.childNodes:i.children).length?(o=o[0].data,n.applyStyleTags&&void 0===e(i).attr("data-embed")&&a.push(o),n.removeStyleTags&&void 0===e(i).attr("data-embed")&&(s=l?i.childNodes[0].nodeValue:i.children[0].data,(s=r.getPreservedText(s,{mediaQueries:n.preserveMediaQueries,fontFaces:n.preserveFontFaces,keyFrames:n.preserveKeyFrames,pseudos:n.preservePseudos},t.ignoredPseudos))?l?i.childNodes[0].nodeValue=s:i.children[0].data=s:e(i).remove()),e(i).removeAttr("data-embed")):n.removeStyleTags&&e(i).remove()})),a}(e,n).join("\n")}(n,o=r.getDefaultOptions(o));return e(n,i+="\n"+o.extraCss,o),n},t.inlineDocument=e,t}},function(t,e,n){"use strict";e.romanize=function(t){if(isNaN(t))return NaN;for(var e=String(+t).split(""),n=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],r="",o=3;o--;)r=(n[+e.pop()+10*o]||"")+r;return Array(+e.join("")+1).join("M")+r},e.alphanumeric=function(t){for(var e,n="";0<t;)e=(t-1)%26,n=String.fromCharCode(65+e)+n,t=(t-e)/26|0;return n||void 0}},function(t,e,n){var r;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var i;!function(){"use strict";var t=[,,function(t){function e(t){this.__parent=t,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 n(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",0<t.indent_level&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function r(t,r){this.__indent_cache=new n(t,r),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.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()}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(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;0<=e;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||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 t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),--t.__character_count),!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(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){0<this.__indent_count&&(--this.__indent_count,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){0<this.__wrap_point_indent_count&&--this.__wrap_point_indent_count},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),--this.__character_count},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return t<0&&(n=0),(n+=t*this.__indent_size)+(e||0)},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t,e=this.__cache.length,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},r.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},r.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();return e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline(),e=this.__lines.join("\n"),"\n"!==t?e.replace(/[\n]/g,t):e},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(t,e){return this.next_line.set_indent(t=t||0,e=e||0),1<this.__lines.length?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.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(" "))},r.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&1<this.__lines.length&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=1<this.__lines.length?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(t,n){for(var r=this.__lines.length-2;0<=r;){var o=this.__lines[r];if(o.is_empty())break;if(0!==o.item(0).indexOf(t)&&o.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},t.exports.Output=r},function(t){t.exports.Token=function(t,e,n,r){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(t){function e(t,e){this.raw_options=n(t,e),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 n(t,e){var n,o={};for(n in t=r(t))n!==e&&(o[n]=t[n]);if(e&&t[e])for(n in t[e])o[n]=t[e][n];return o}function r(t){var e,n={};for(e in t)n[e.replace(/-/g,"_")]=t[e];return n}e.prototype._get_array=function(t,e){return e=e||[],"object"===o(t=this.raw_options[t])?null!==t&&"function"==typeof t.concat&&(e=t.concat()):"string"==typeof t&&(e=t.split(/[^a-zA-Z0-9_\/\-]+/)),e},e.prototype._get_boolean=function(t,e){return void 0===(t=this.raw_options[t])?!!e:!!t},e.prototype._get_characters=function(t,e){return e=e||"","string"==typeof(t=this.raw_options[t])?t.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t"):e},e.prototype._get_number=function(t,e){return t=this.raw_options[t],e=parseInt(e,10),isNaN(e)&&(e=0),t=parseInt(t,10),isNaN(t)?e:t},e.prototype._get_selection=function(t,e,n){if(1!==(n=this._get_selection_list(t,e,n)).length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");if(n=this._get_array(t,n),!this._is_valid_selection(n,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=r,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){0<this.__position&&--this.__position},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},n.prototype.peek=function(t){return t=t||0,0<=(t+=this.__position)&&t<this.__input_length?this.__input.charAt(t):null},n.prototype.__match=function(t,n){t.lastIndex=n;var r=t.exec(this.__input);return!r||e&&t.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(t,e){return e=e||0,0<=(e+=this.__position)&&e<this.__input_length&&!!this.__match(t,e)},n.prototype.testChar=function(t,e){return e=this.peek(e),t.lastIndex=0,null!==e&&t.test(e)},n.prototype.match=function(t){return(t=this.__match(t,this.__position))?this.__position+=t[0].length:t=null,t},n.prototype.read=function(t,e,n){var r,o="";return t&&(r=this.match(t))&&(o+=r[0]),!e||!r&&t||(o+=this.readUntil(e,n)),o},n.prototype.readUntil=function(t,e){var n=this.__position;return t.lastIndex=this.__position,(t=t.exec(this.__input))?(n=t.index,e&&(n+=t[0].length)):n=this.__input_length,t=this.__input.substring(this.__position,n),this.__position=n,t},n.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},n.prototype.get_regexp=function(t,n){var r=null;return n=n&&e?"y":"g","string"==typeof t&&""!==t?r=new RegExp(t,n):t&&(r=new RegExp(t.source,n)),r},n.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(t){var e=this.__position;return t=this.readUntilAfter(t),this.__position=e,t},n.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var r=n(8).InputScanner,o=n(3).Token,i=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"};(n=function(t,e){this._input=new r(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)}).prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new i,this._reset();for(var e=new o(s.START,""),n=null,r=[],a=new i;e.type!==s.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new i),t.parent=n,this._is_opening(t)?(r.push(n),n=t):n&&this._is_closing(t,n)&&((t.opened=n).closed=t,n=r.pop(),t.parent=n),(t.previous=e).next=t,this.__tokens.add(t),e=t}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},n.prototype._is_comment=function(t){return!1},n.prototype._is_opening=function(t){return!1},n.prototype._is_closing=function(t,e){return!1},n.prototype._create_token=function(t,e){return new o(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=n,t.exports.TOKEN=s},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}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 t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){return t=t||0,0<=(t+=this.__position)&&t<this.__tokens_length?this.__tokens[t]:null},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},t.exports.TokenStream=e},function(t,e,n){var r=n(12).Pattern;function o(t,e){r.call(this,t,e),e?this._line_regexp=this._input.get_regexp(e._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}(o.prototype=new r).__set_whitespace_patterns=function(t,e){this._match_pattern=this._input.get_regexp("["+(t+="\\t ")+(e+="\\n\\r")+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var t,e=this._input.read(this._match_pattern);return" "===e?this.whitespace_before_token=" ":e&&(t=this.__split(this._newline_regexp,e),this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]),e},o.prototype.matching=function(t,e){var n=this._create();return n.__set_whitespace_patterns(t,e),n._update(),n},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(t,e){for(var n=t.lastIndex=0,r=[],o=t.exec(e);o;)r.push(e.substring(n,o.index)),n=o.index+o[0].length,o=t.exec(e);return n<e.length?r.push(e.substring(n,e.length)):r.push(""),r},t.exports.WhitespacePattern=o},function(t){function e(t,e){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,e&&(this._starting_pattern=this._input.get_regexp(e._starting_pattern,!0),this._match_pattern=this._input.get_regexp(e._match_pattern,!0),this._until_pattern=this._input.get_regexp(e._until_pattern),this._until_after=e._until_after)}e.prototype.read=function(){var t=this._input.read(this._starting_pattern);return this._starting_pattern&&!t||(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(t){var e=this._create();return e._until_after=!0,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.until=function(t){var e=this._create();return e._until_after=!1,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.starting_with=function(t){var e=this._create();return e._starting_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype.matching=function(t){var e=this._create();return e._match_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},t.exports.Pattern=e},function(t){function e(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},function(t,e,n){var r=n(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(t,e){r.call(this,t,e),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),e&&(this.__template_pattern=this._input.get_regexp(e.__template_pattern),this._excluded=Object.assign(this._excluded,e._excluded),this._disabled=Object.assign(this._disabled,e._disabled)),t=new r(t),this.__patterns={handlebars_comment:t.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:t.starting_with(/{{{/).until_after(/}}}/),handlebars:t.starting_with(/{{/).until_after(/}}/),php:t.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:t.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:t.starting_with(/{%/).until_after(/%}/),django_value:t.starting_with(/{{/).until_after(/}}/),django_comment:t.starting_with(/{#/).until_after(/#}/),smarty:t.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:t.starting_with(/{\*/).until_after(/\*}/),smarty_literal:t.starting_with(/{literal}/).until_after(/{\/literal}/)}}(i.prototype=new r)._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},i.prototype.read_options=function(t){var e,n=this._create();for(e in o)n._disabled[e]=-1===t.templating.indexOf(e);return n._update(),n},i.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},i.prototype.read=function(){for(var t="",e=(t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern),this._read_template());e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},i.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},i.prototype._read_template=function(){var t,e="",n=this._input.peek();return"<"===n?(t=this._input.peek(1),this._disabled.php||this._excluded.php||"?"!==t||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==t||(e=e||this.__patterns.erb.read())):"{"===n&&(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())),e},t.exports.TemplatablePattern=i},,,,function(t,e,n){var r=n(19).Beautifier,o=n(20).Options;t.exports=function(t,e,n,o){return new r(t,e,n,o).beautify()},t.exports.defaultOptions=function(){return new o}},function(t,e,n){function r(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new i(t,e)}var o=n(20).Options,i=n(2).Output,a=n(21).Tokenizer,s=n(21).TOKEN,l=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g;function u(t,e){return-1!==e.indexOf(t)}function p(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function f(t){this._printer=t,this._current_frame=null}function d(t,e,n,r){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null,e=new o(e,"html"),this._options=e,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}r.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},r.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},r.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},r.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},r.prototype.print_preserved_newlines=function(t){var e=0;t.type!==s.TEXT&&t.previous.type!==s.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines<this.max_preserve_newlines+1?t.newlines:this.max_preserve_newlines+1);for(var n=0;n<e;n++)this.print_newline(0<n);return 0!==e},r.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines||(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),0))},r.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},r.prototype.print_newline=function(t){this._output.add_new_line(t)},r.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},r.prototype.indent=function(){this.indent_level++},r.prototype.get_full_indent=function(t){return(t=this.indent_level+(t||0))<1?"":this._output.get_indent_string(t)},f.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},f.prototype.record_tag=function(t){t=new p(this._current_frame,t,this._printer.indent_level),this._current_frame=t},f.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},f.prototype._get_frame=function(t,e){for(var n=this._current_frame;n&&-1===t.indexOf(n.tag);){if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},f.prototype.try_pop=function(t,e){return e=this._get_frame([t],e),this._try_pop_frame(e)},f.prototype.indent_to_tag=function(t){(t=this._get_frame(t))&&(this._printer.indent_level=t.indent_level)},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&l.test(t)&&(e=t.match(l)[0]));var n=(t=t.replace(c,"\n")).match(/^[\t ]*/)[0],o={text:"",type:""},i=new h,u=new r(this._options,n),p=new a(t,this._options).tokenize();this._tag_stack=new f(u);for(var d=null,g=p.next();g.type!==s.EOF;)g.type===s.TAG_OPEN||g.type===s.COMMENT?i=d=this._handle_tag_open(u,g,i,o):g.type===s.ATTRIBUTE||g.type===s.EQUALS||g.type===s.VALUE||g.type===s.TEXT&&!i.tag_complete?d=this._handle_inside_tag(u,g,i,p):g.type===s.TAG_CLOSE?d=this._handle_tag_close(u,g,i):g.type===s.TEXT?d=this._handle_text(u,g,i):u.add_raw_token(g),o=d,g=p.next();return u._output.get_code(e)},d.prototype._handle_tag_close=function(t,e,n){var r={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):("<"===n.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),r},d.prototype._handle_inside_tag=function(t,e,n,r){var o=n.has_wrapped_attrs,i={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted)t.add_raw_token(e);else if("{"===n.tag_start_char&&e.type===s.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===s.ATTRIBUTE?(t.set_space_before_token(!0),n.attr_count+=1):(e.type===s.EQUALS||e.type===s.VALUE&&e.previous.type===s.EQUALS)&&t.set_space_before_token(!1),e.type===s.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),o=o||0!==e.newlines),this._is_wrap_attributes_force)){var a=1<n.attr_count;if(this._is_wrap_attributes_force_expand_multiline&&1===n.attr_count){var l,c=!0,u=0;do{if((l=r.peek(u)).type===s.ATTRIBUTE){c=!1;break}}while((u+=1)<4&&l.type!==s.EOF&&l.type!==s.TAG_CLOSE);a=!c}a&&(t.print_newline(!1),o=!0)}t.print_token(e),o=o||t.previous_token_wrapped(),n.has_wrapped_attrs=o}return i},d.prototype._handle_text=function(t,e,n){var r={text:e.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),r},d.prototype._print_custom_beatifier_text=function(t,e,n){var r=this;if(""!==e.text){var o,i,a=e.text,s=1,l="",c="";if("javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?o=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?o=this._css_beautify:"html"===n.custom_beautifier_name&&(o=function(t,e){return new d(t,e,r._js_beautify,r._css_beautify).beautify()}),"keep"===this._options.indent_scripts?s=0:"separate"===this._options.indent_scripts&&(s=-t.indent_level),s=t.get_full_indent(s),a=a.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===a[0]&&a.match(/^(<!--|<!\[CDATA\[)/)){if(!(n=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(a)))return void t.add_raw_token(e);l=s+n[1]+"\n",a=n[4],n[5]&&(c=s+n[5]),a=a.replace(/\n[ \t]*$/,""),(n[2]||-1!==n[3].indexOf("\n"))&&(n=n[3].match(/[ \t]+$/))&&(e.whitespace_before=n[0])}a=a&&(o?((i=function(){this.eol="\n"}).prototype=this._options.raw_options,o(s+a,new i)):s+(a=(i=e.whitespace_before)?a.replace(new RegExp("\n("+i+")?","g"),"\n"):a).replace(/\n/g,"\n"+s)),l&&(a=a?l+a+"\n"+c:l+c),t.print_newline(!1),a&&(e.text=a,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},d.prototype._handle_tag_open=function(t,e,n,r){var o=this._get_tag_open_token(e);return!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||e.type!==s.TAG_OPEN||0!==e.text.indexOf("</")?(t.traverse_whitespace(e),this._set_tag_position(t,e,o,n,r),o.is_inline_element||t.set_wrap_point(),t.print_token(e)):(t.add_raw_token(e),o.start_tag_token=this._tag_stack.try_pop(o.tag_name)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(o.alignment_size=e.text.length+1),o.tag_complete||o.is_unformatted||(t.alignment_size=o.alignment_size),o};var h=function(t,e){var n;this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",e?(this.tag_start_char=e.text[0],this.text=e.text,"<"===this.tag_start_char?(n=e.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=e.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"","{{#>"===e.text&&">"===this.tag_check&&null!==e.next&&(this.tag_check=e.next.text)),this.tag_check=this.tag_check.toLowerCase(),e.type===s.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||e.closed&&"/>"===e.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};d.prototype._get_tag_open_token=function(t){return(t=new h(this._tag_stack.get_parser_token(),t)).alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||u(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&&u(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&u(t.tag_check,this._options.content_unformatted),t.is_inline_element=u(t.tag_name,this._options.inline)||"{"===t.tag_start_char,t},d.prototype._set_tag_position=function(t,e,n,r,o){n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=function(t,e){var n=null,r=null;return e.closed?("script"===t?n="text/javascript":"style"===t&&(n="text/css"),-1<(n=function(t){for(var e=null,n=t.next;n.type!==s.EOF&&t.closed!==n;){if(n.type===s.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===s.EQUALS&&n.next.next&&n.next.next.type===s.VALUE&&(e=n.next.next.text);break}n=n.next}return e}(e)||n).search("text/css")?r="css":-1<n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)?r="javascript":-1<n.search(/(text|application|dojo)\/(x-)?(html)/)?r="html":-1<n.search(/test\/null/)&&(r="null"),r):null}(n.tag_check,e)))),u(n.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),n.is_empty_element?("{"===n.tag_start_char&&"else"===n.tag_check&&(this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,t.current_line_has_match(/{{#if/)||t.print_newline(!1)),"!--"===n.tag_name&&o.type===s.TAG_CLOSE&&r.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n))):n.is_end_tag?(e=!1,e=(e=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(r.is_inline_element||r.is_unformatted)&&!(o.type===s.TAG_CLOSE&&n.start_tag_token===r)&&"TK_CONTENT"!==o.type,(e=!n.is_content_unformatted&&!n.is_unformatted&&e)&&t.print_newline(!1)):(n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===o.type&&!n.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n))},d.prototype._calcluate_parent_multiline=function(t,e){!e.parent||!t._output.just_added_newline()||(e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element||(e.parent.multiline_content=!0)};var g=["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"];d.prototype._do_optional_end_element=function(t){var e,n=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent)return"body"===t.tag_name?n=n||this._tag_stack.try_pop("head"):"li"===t.tag_name?n=n||this._tag_stack.try_pop("li",["ol","ul"]):"dd"===t.tag_name||"dt"===t.tag_name?n=(n=n||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]):"p"===t.parent.tag_name&&-1!==g.indexOf(t.tag_name)?(e=t.parent.parent)&&-1!==m.indexOf(e.tag_name)||(n=n||this._tag_stack.try_pop("p")):"rp"===t.tag_name||"rt"===t.tag_name?n=(n=n||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===t.tag_name?n=n||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?n=n||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?n=n||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?n=(n=n||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===t.tag_name||"tfoot"===t.tag_name?n=(n=(n=(n=n||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"===t.tag_name?n=(n=(n=n||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"!==t.tag_name&&"td"!==t.tag_name||(n=(n=n||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"])),t.parent=this._tag_stack.get_parser_token(),n},t.exports.Beautifier=d},function(t,e,n){var r=n(6).Options;function o(t){r.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"])}o.prototype=new r,t.exports.Options=o},function(t,e,n){var r=n(9).Tokenizer,o=n(9).TOKEN,i=n(13).Directives,a=n(14).TemplatablePattern,s=n(12).Pattern,l={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:o.START,RAW:o.RAW,EOF:o.EOF},c=new i(/<\!--/,/-->/);((i=function(t,e){r.call(this,t,e),this._current_tag_name="",t=new a(this._input).read_options(this._options),e=new s(this._input),this.__patterns={word:t.until(/[\n\r\t <]/),single_quote:t.until_after(/'/),double_quote:t.until_after(/"/),attribute:t.until(/[\n\r\t =>]|\/>/),element_name:t.until(/[\n\r\t >\/]/),handlebars_comment:e.starting_with(/{{!--/).until_after(/--}}/),handlebars:e.starting_with(/{{/).until_after(/}}/),handlebars_open:e.until(/[\n\r\t }]/),handlebars_raw_close:e.until(/}}/),comment:e.starting_with(/<!--/).until_after(/-->/),cdata:e.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:e.starting_with(/<!\[/).until_after(/]>/),processing:e.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&&(t=this._input.get_literal_regexp(this._options.unformatted_content_delimiter),this.__patterns.unformatted_content_delimiter=e.matching(t).until_after(t))}).prototype=new r)._is_comment=function(t){return!1},i.prototype._is_opening=function(t){return t.type===l.TAG_OPEN},i.prototype._is_closing=function(t,e){return t.type===l.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},i.prototype._reset=function(){this._current_tag_name=""},i.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(l.EOF,""):this._read_open_handlebars(n,e)||this._read_attribute(n,t,e)||this._read_close(n,e)||this._read_raw_content(n,t,e)||this._read_content_word(n)||this._read_comment_or_cdata(n)||this._read_processing(n)||this._read_open(n,e)||this._create_token(l.UNKNOWN,this._input.next())},i.prototype._read_comment_or_cdata=function(t){var e=null,n=null,r=null;return"<"===t&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(r=c.get_directives(n))&&"start"===r.ignore&&(n+=c.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((e=this._create_token(l.COMMENT,n)).directives=r)),e},i.prototype._read_processing=function(t){var e=null,n=null;return"<"!==t||(n="!"===(t=this._input.peek(1))||"?"===t?(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read():n)&&((e=this._create_token(l.COMMENT,n)).directives=null),e},i.prototype._read_open=function(t,e){var n=null,r=null;return e||"<"===t&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),r=this._create_token(l.TAG_OPEN,n)),r},i.prototype._read_open_handlebars=function(t,e){var n=null,r=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&(r="!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),this._create_token(l.TAG_OPEN,n))),r},i.prototype._read_close=function(t,e){var n=null,r=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(n=this._input.next(),"/"===t&&(n+=this._input.next()),r=this._create_token(l.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),r=this._create_token(l.TAG_CLOSE,"}}"))),r},i.prototype._read_attribute=function(t,e,n){var r=null;return n&&"<"===n.text[0]&&("="===t?r=this._create_token(l.EQUALS,this._input.next()):'"'===t||"'"===t?(n=this._input.next(),n+=('"'===t?this.__patterns.double_quote:this.__patterns.single_quote).read(),r=this._create_token(l.VALUE,n)):(n=this.__patterns.attribute.read())&&(r=e.type===l.EQUALS?this._create_token(l.VALUE,n):this._create_token(l.ATTRIBUTE,n))),r},i.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},i.prototype._read_raw_content=function(t,e,n){var r="";if(n&&"{"===n.text[0])r=this.__patterns.handlebars_raw_close.read();else if(e.type===l.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0])if("script"===(e=e.opened.text.substr(1).toLowerCase())||"style"===e){if(t=this._read_comment_or_cdata(t))return t.type=l.TEXT,t;r=this._input.readUntil(new RegExp("</"+e+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(e)&&(r=this._input.readUntil(new RegExp("</"+e+"[\\n\\r\\t ]*?>","ig")));return r?this._create_token(l.TEXT,r):null},i.prototype._read_content_word=function(t){var e="";if(e=(e=this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]?this.__patterns.unformatted_content_delimiter.read():e)||this.__patterns.word.read())return this._create_token(l.TEXT,e)},t.exports.Tokenizer=i,t.exports.TOKEN=l}],e={},n=function n(r){var o=e[r];return void 0!==o||(o=e[r]={exports:{}},t[r](o,o.exports,n)),o.exports}(18);i=n}();var a=i;r=[n,n(118),n(119)],void 0===(r=function(t){var e=n(118),r=n(119);return{html_beautify:function(t,n){return a(t,n,e.js_beautify,r.css_beautify)}}}.apply(e,r))||(t.exports=r)}()},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(353),i=n(435).decode,a=n(436).HTMLParser,s=n(437),l=n(451),c=n(452),u=n(208);function p(t){return t&&t.replace(/^[ \n\r\t\f]+/,"").replace(/[ \n\r\t\f]+$/,"")}function f(t){return t&&t.replace(/[ \n\r\t\f\xA0]+/g,(function(t){return"\t"===t?"\t":t.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")}))}function d(t,e,n,r,o){var i="",a="";return e.preserveLineBreaks&&(t=t.replace(/^[ \n\r\t\f]*?[\n\r][ \n\r\t\f]*/,(function(){return i="\n",""})).replace(/[ \n\r\t\f]*?[\n\r][ \n\r\t\f]*$/,(function(){return a="\n",""}))),n&&(t=t.replace(/^[ \n\r\t\f\xA0]+/,(function(t){var n=!i&&e.conservativeCollapse;return n&&"\t"===t?"\t":t.replace(/^[^\xA0]+/,"").replace(/(\xA0+)[^\xA0]+/g,"$1 ")||(n?" ":"")}))),r&&(t=t.replace(/[ \n\r\t\f\xA0]+$/,(function(t){var n=!a&&e.conservativeCollapse;return n&&"\t"===t?"\t":t.replace(/[^\xA0]+(\xA0+)/g," $1").replace(/[^\xA0]+$/,"")||(n?" ":"")}))),o&&(t=f(t)),i+t+a}var h=(n=u.createMapFromString)("a,abbr,acronym,b,bdi,bdo,big,button,cite,code,del,dfn,em,font,i,ins,kbd,label,mark,math,nobr,object,q,rp,rt,rtc,ruby,s,samp,select,small,span,strike,strong,sub,sup,svg,textarea,time,tt,u,var"),g=n("a,abbr,acronym,b,big,del,em,font,i,ins,kbd,mark,nobr,rp,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"),m=n("comment,img,input,wbr");function v(t,e,n,r){var o=e&&!m(e);o&&!r.collapseInlineTagWhitespace&&(o="/"===e.charAt(0)?!h(e.slice(1)):!g(e));var i=n&&!m(n);return d(t,r,o,i=i&&!r.collapseInlineTagWhitespace?"/"===n.charAt(0)?!g(n.slice(1)):!h(n):i,e&&n)}function y(t,e){for(var n=t.length;n--;)if(t[n].name.toLowerCase()===e)return 1}var b=u.createMap(["text/javascript","text/ecmascript","text/jscript","application/javascript","application/x-javascript","application/ecmascript"]);function _(t){return""===(t=p(t.split(/;/,2)[0]).toLowerCase())||b(t)}function w(t){return""===(t=p(t).toLowerCase())||"text/css"===t}function E(t,e){if("style"===t){for(var n=0,r=e.length;n<r;n++)if("type"===e[n].name.toLowerCase())return w(e[n].value);return 1}}var x=n("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),T=n("true,false");function C(t,e,n){if("link"===t)for(var r=0,o=e.length;r<o;r++)if("rel"===e[r].name&&e[r].value===n)return 1}var A=n("img,source");function O(t){return"/* clean-css ignore:start */"+t+"/* clean-css ignore:end */"}function S(t,e){switch(e){case"inline":return"*{"+t+"}";case"media":return"@media "+t+"{a{top:0}}";default:return t}}var k=n("html,head,body,colgroup,tbody"),P=n("html,head,body,li,dt,dd,p,rb,rt,rtc,rp,optgroup,option,colgroup,caption,thead,tbody,tfoot,tr,td,th"),j=n("meta,link,script,style,template,noscript"),N=n("dt,dd"),L=n("address,article,aside,blockquote,details,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,main,menu,nav,ol,p,pre,section,table,ul"),D=n("a,audio,del,ins,map,noscript,video"),I=n("rb,rt,rtc,rp"),R=n("rb,rtc,rp"),M=n("option,optgroup"),B=n("tbody,tfoot"),F=n("thead,tbody,tfoot"),U=n("td,th"),H=n("html,head,body"),V=n("html,body"),q=n("head,colgroup,caption"),z=n("dt,thead"),G=n("a,abbr,acronym,address,applet,area,article,aside,audio,b,base,basefont,bdi,bdo,bgsound,big,blink,blockquote,body,br,button,canvas,caption,center,cite,code,col,colgroup,command,content,data,datalist,dd,del,details,dfn,dialog,dir,div,dl,dt,element,em,embed,fieldset,figcaption,figure,font,footer,form,frame,frameset,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,image,img,input,ins,isindex,kbd,keygen,label,legend,li,link,listing,main,map,mark,marquee,menu,menuitem,meta,meter,multicol,nav,nobr,noembed,noframes,noscript,object,ol,optgroup,option,output,p,param,picture,plaintext,pre,progress,q,rb,rp,rt,rtc,ruby,s,samp,script,section,select,shadow,small,source,spacer,span,strike,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,tt,u,ul,var,video,wbr,xmp"),W=new RegExp("^(?:class|id|style|title|lang|dir|on(?:focus|blur|change|click|dblclick|mouse(?:down|up|over|move|out)|key(?:press|down|up)))$");function Y(t,e){for(var n=e.length-1;0<=n;n--)if(e[n].name===t)return 1}function K(t){return!/^(?:script|style|pre|textarea)$/.test(t)}function $(t){return!/^(?:pre|textarea)$/.test(t)}function X(t,e,n,r){var o=r.name(t.name),a=t.value;if(r.decodeEntities&&a&&(a=i(a,{isAttributeValue:!0})),!(r.removeRedundantAttributes&&function(t,e,n,r){return n=n?p(n.toLowerCase()):"","script"===t&&"language"===e&&"javascript"===n||"form"===t&&"method"===e&&"get"===n||"input"===t&&"type"===e&&"text"===n||"script"===t&&"charset"===e&&!y(r,"src")||"a"===t&&"name"===e&&y(r,"id")||"area"===t&&"shape"===e&&"rect"===n}(n,o,a,e)||r.removeScriptTypeAttributes&&"script"===n&&"type"===o&&_(a)||r.removeStyleLinkTypeAttributes&&("style"===n||"link"===n)&&"type"===o&&w(a)||(a=a&&function(t,e,n,r,o){if(function(t,e){var n=e.customEventAttributes;if(!n)return/^on[a-z]{3,}$/.test(t);for(var r=n.length;r--;)if(n[r].test(t))return 1}(e,r))return n=p(n).replace(/^javascript:\s*/i,""),r.minifyJS(n,!0);if("class"===e)return n=p(n),r.sortClassName?r.sortClassName(n):f(n);if(function(t,e){return/^(?:a|area|link|base)$/.test(e)&&"href"===t||"img"===e&&/^(?:src|longdesc|usemap)$/.test(t)||"object"===e&&/^(?:classid|codebase|data|usemap)$/.test(t)||"q"===e&&"cite"===t||"blockquote"===e&&"cite"===t||("ins"===e||"del"===e)&&"cite"===t||"form"===e&&"action"===t||"input"===e&&("src"===t||"usemap"===t)||"head"===e&&"profile"===t||"script"===e&&("src"===t||"for"===t)}(e,t))return n=p(n),C(t,o,"canonical")?n:r.minifyURLs(n);if(function(t,e){return/^(?:a|area|object|button)$/.test(e)&&"tabindex"===t||"input"===e&&("maxlength"===t||"tabindex"===t)||"select"===e&&("size"===t||"tabindex"===t)||"textarea"===e&&/^(?:rows|cols|tabindex)$/.test(t)||"colgroup"===e&&"span"===t||"col"===e&&"span"===t||("th"===e||"td"===e)&&("rowspan"===t||"colspan"===t)}(e,t))return p(n);if("style"===e)return(n=p(n))&&(/;$/.test(n)&&!/&#?[0-9a-zA-Z]+;$/.test(n)&&(n=n.replace(/\s*;$/,";")),n=r.minifyCSS(n,"inline")),n;if(function(t,e){return"srcset"===t&&A(e)}(e,t))n=p(n).split(/\s+,\s*|\s*,\s+/).map((function(t){var e=t,n="",o=t.match(/\s+([1-9][0-9]*w|[0-9]+(?:\.[0-9]+)?x)$/);return o&&(e=e.slice(0,-o[0].length),t=+o[1].slice(0,-1),o=o[1].slice(-1),1==t&&"x"===o||(n=" "+t+o)),r.minifyURLs(e)+n})).join(", ");else if(function(t,e){if("meta"===t)for(var n=0,r=e.length;n<r;n++)if("name"===e[n].name&&"viewport"===e[n].value)return 1}(t,o)&&"content"===e)n=n.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,(function(t){return(+t).toString()}));else{if(function(t,e){if("meta"===t)for(var n=0,r=e.length;n<r;n++)if("http-equiv"===e[n].name.toLowerCase()&&"content-security-policy"===e[n].value.toLowerCase())return 1}(t,o)&&"content"===e.toLowerCase())return f(n);if(r.customAttrCollapse&&r.customAttrCollapse.test(e))n=n.replace(/\n+|\r+|\s{2,}/g,"");else if("script"===t&&"type"===e)n=p(n.replace(/\s*;\s*/g,";"));else if(function(t,e,n){return"media"===n&&(C(t,e,"stylesheet")||E(t,e))}(t,o,e))return n=p(n),r.minifyCSS(n,"media")}return n}(n,o,a,r,e),r.removeEmptyAttributes&&function(t,e,n,r){return(!n||/^\s*$/.test(n))&&("function"==typeof r.removeEmptyAttributes?r.removeEmptyAttributes(e,t):"input"===t&&"value"===e||W.test(e))}(n,o,a,r))))return{attr:t,name:o,value:a=r.decodeEntities&&a?a.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1"):a}}function Q(t){return t}function Z(t){for(var e;e=Math.random().toString(36).replace(/^0\.[0-9]*/,""),~t.indexOf(e););return e}var J=n("script,style");function tt(t,e,n){e.collapseWhitespace&&(t=d(t,e,!0,!0));var r,s,c,u,m,y=[],b="",w="",C=[],A=[],W=[],et="",nt="",rt=[],ot=[];t=t.replace(/<!-- htmlmin:ignore -->([\s\S]*?)<!-- htmlmin:ignore -->/g,(function(n,r){c||(c=Z(t),o=new RegExp("^"+c+"([0-9]+)$"),e.ignoreCustomComments?e.ignoreCustomComments=e.ignoreCustomComments.slice():e.ignoreCustomComments=[],e.ignoreCustomComments.push(o));var o="\x3c!--"+c+rt.length+"--\x3e";return rt.push(r),o}));var it=e.ignoreCustomFragments.map((function(t){return t.source}));function at(t,n){return e.canTrimWhitespace(t,n,$)}function st(){for(var t=y.length-1;0<t&&!/^<[^/!]/.test(y[t]);)t--;y.length=Math.max(0,t)}function lt(){for(var t=y.length-1;0<t&&!/^<\//.test(y[t]);)t--;y.length=Math.max(0,t)}function ct(t,n){for(var r=null;0<=t&&at(r);t--){var o=y[t],i=o.match(/^<\/([\w:-]+)>$/);if(i)r=i[1];else if(/>$/.test(o)||(y[t]=v(o,null,n,e)))break}}function ut(t){var e,n=y.length-1;1<y.length&&(e=y[y.length-1],/^(?:<!|$)/.test(e)&&-1===e.indexOf(c)&&n--),ct(n,t)}return it.length&&(it=new RegExp("\\s*(?:"+it.join("|")+")+\\s*","g"),t=t.replace(it,(function(n){var r,i;u||(u=Z(t),m=new RegExp("(\\s*)"+u+"([0-9]+)"+u+"(\\s*)","g"),e.minifyCSS&&(e.minifyCSS=(i=e.minifyCSS,function(t,e){t=t.replace(m,(function(t,e,n){var r=ot[+n];return r[1]+u+n+u+r[2]}));var n=[];return(new o).minify(S(t,e)).warnings.forEach((function(e){(e=m.exec(e))&&(e=u+e[2]+u,t=t.replace(e,O(e)),n.push(e))})),t=i(t,e),n.forEach((function(e){t=t.replace(O(e),e)})),t})),e.minifyJS&&(e.minifyJS=(r=e.minifyJS,function(t,e){return r(t.replace(m,(function(t,e,n){var r=ot[+n];return r[1]+u+n+u+r[2]})),e)})));var a=u+ot.length+u;return ot.push(/^(\s*)[\s\S]*?(\s*)$/.exec(n)),"\t"+a+"\t"}))),(e.sortAttributes&&"function"!=typeof e.sortAttributes||e.sortClassName&&"function"!=typeof e.sortClassName)&&function(t,e,n,r){var o=e.sortAttributes&&Object.create(null),i=e.sortClassName&&new l;function s(t){return t.map((function(t){return e.name(t.name)}))}function c(t,e){return!e||-1===t.indexOf(e)}function u(t){return c(t,n)&&c(t,r)}var f,d=e.log;if(e.log=Q,e.sortAttributes=!1,e.sortClassName=!1,function t(n){var r,c;new a(n,{start:function(t,n){o&&(o[t]||(o[t]=new l),o[t].add(s(n).filter(u)));for(var a=0,f=n.length;a<f;a++){var d=n[a];i&&d.value&&"class"===e.name(d.name)?i.add(p(d.value).split(/[ \t\n\f\r]+/).filter(u)):e.processScripts&&"type"===d.name.toLowerCase()&&(r=t,c=d.value)}},end:function(){r=""},chars:function(n){e.processScripts&&J(r)&&-1<e.processScripts.indexOf(c)&&t(n)}})}(tt(t,e)),e.log=d,o){var h,g=Object.create(null);for(h in o)g[h]=o[h].createSorter();e.sortAttributes=function(t,e){var n,r=g[t];r&&(n=Object.create(null),(t=s(e)).forEach((function(t,r){(n[t]||(n[t]=[])).push(e[r])})),r.sort(t).forEach((function(t,r){e[r]=n[t].shift()})))}}i&&(f=i.createSorter(),e.sortClassName=function(t){return f.sort(t.split(/[ \n\f\r]+/)).join(" ")})}(t,e,c,u),new a(t,{partialMarkup:n,continueOnParseError:e.continueOnParseError,customAttrAssign:e.customAttrAssign,customAttrSurround:e.customAttrSurround,html5:e.html5,start:function(t,n,o,i,a){"svg"===t.toLowerCase()&&((e=Object.create(e)).caseSensitive=!0,e.keepClosingSlash=!0,e.name=Q),t=e.name(t),g(r=w=t)||(b=""),s=!1,C=n;var l,c=e.removeOptionalTags;c&&((l=G(t))&&function(t,e){switch(t){case"html":case"head":return 1;case"body":return!j(e);case"colgroup":return"col"===e;case"tbody":return"tr"===e}}(et,t)&&st(),et="",l&&function(t,e){switch(t){case"html":case"head":case"body":case"colgroup":case"caption":return 1;case"li":case"optgroup":case"tr":return e===t;case"dt":case"dd":return N(e);case"p":return L(e);case"rb":case"rt":case"rp":return I(e);case"rtc":return R(e);case"option":return M(e);case"thead":case"tbody":return B(e);case"tfoot":return"tbody"===e;case"td":case"th":return U(e)}}(nt,t)&&(lt(),c=!function(t,e){switch(e){case"colgroup":return"colgroup"===t;case"tbody":return F(t)}}(nt,t)),nt=""),e.collapseWhitespace&&(A.length||ut(t),o||(at(t,n)&&!A.length||A.push(t),function(t,n){return e.canCollapseWhitespace(t,n,K)}(t,n)&&!W.length||W.push(t)));var p=i&&e.keepClosingSlash;y.push("<"+t),e.sortAttributes&&e.sortAttributes(t,n);for(var f=[],d=n.length,h=!0;0<=--d;){var m=X(n[d],n,t,e);m&&(f.unshift(function(t,e,n,r,o){var i,a,s=t.name,l=t.value,c=t.attr;return t=c.quote,void 0===l||n.removeAttributeQuotes&&!~l.indexOf(o)&&function(t){return/^[^ \t\n\f\r"'`=<>]+$/.test(t)}(l)?a=!r||e||/\/$/.test(l)?l+" ":l:(n.preventAttributesEscaping||(l='"'==(t=void 0===n.quoteCharacter?(l.match(/'/g)||[]).length<(l.match(/"/g)||[]).length?"'":'"':"'"===n.quoteCharacter?"'":'"')?l.replace(/"/g,"""):l.replace(/'/g,"'")),a=t+l+t,r||n.removeTagWhitespace||(a+=" ")),void 0===l||n.collapseBooleanAttributes&&function(t,e){return x(t)||"draggable"===t&&!T(e)}(s.toLowerCase(),l.toLowerCase())?(i=s,r||(i+=" ")):i=s+c.customAssign+a,c.customOpen+i+c.customClose}(m,p,e,h,u)),h=!1)}0<f.length?(y.push(" "),y.push.apply(y,f)):c&&k(t)&&(et=t),y.push(y.pop()+(p?"/":"")+">"),a&&!e.includeAutoGeneratedTags&&(st(),et="")},end:function(t,n,o){t=(e="svg"===t.toLowerCase()?Object.getPrototypeOf(e):e).name(t),e.collapseWhitespace&&(A.length?t===A[A.length-1]&&A.pop():ut("/"+t),W.length&&t===W[W.length-1]&&W.pop());var i=!1;t===w&&(w="",i=!s),e.removeOptionalTags&&(i&&H(et)&&st(),et="",!G(t)||!nt||z(nt)||"p"===nt&&D(t)||lt(),nt=P(t)?t:""),e.removeEmptyElements&&i&&function(t,e){switch(t){case"textarea":return;case"audio":case"script":case"video":if(Y("src",e))return;break;case"iframe":if(Y("src",e)||Y("srcdoc",e))return;break;case"object":if(Y("data",e))return;break;case"applet":if(Y("code",e))return}return 1}(t,n)?(st(),nt=et=""):(o&&!e.includeAutoGeneratedTags?nt="":y.push("</"+t+">"),r="/"+t,h(t)?i&&(b+="|"):b="")},chars:function(t,n,o){if(n=""===n?"comment":n,o=""===o?"comment":o,e.decodeEntities&&t&&!J(w)&&(t=i(t)),e.collapseWhitespace){if(!A.length){var a;if("comment"!==n||-1===(a=y[y.length-1]).indexOf(c)&&(a||(n=r),1<y.length&&(!a||!e.conservativeCollapse&&/ $/.test(b))&&(a=y.length-2,y[a]=y[a].replace(/\s+$/,(function(e){return t=e+t,""})))),n)if("/nobr"===n||"wbr"===n){if(/^\s/.test(t)){for(var l=y.length-1;0<l&&0!==y[l].lastIndexOf("<"+n);)l--;ct(l-1,"br")}}else g("/"===n.charAt(0)?n.slice(1):n)&&(t=d(t,e,/(?:^|\s)$/.test(b)));!(t=n||o?v(t,n,o,e):d(t,e,!0,!0))&&/\s$/.test(b)&&n&&"/"===n.charAt(0)&&ct(y.length-1,o)}W.length||"html"===o||n&&o||(t=d(t,e,!1,!1,!0))}e.processScripts&&J(w)&&(t=function(t,e,n){for(var r=0,o=n.length;r<o;r++)if("type"===n[r].name.toLowerCase()&&-1<e.processScripts.indexOf(n[r].value))return tt(t,e);return t}(t,e,C)),function(t,e){if("script"===t){for(var n=0,r=e.length;n<r;n++)if("type"===e[n].name.toLowerCase())return _(e[n].value);return 1}}(w,C)&&(t=e.minifyJS(t)),E(w,C)&&(t=e.minifyCSS(t)),e.removeOptionalTags&&t&&("html"!==et&&("body"!==et||/^\s/.test(t))||st(),et="",(V(nt)||q(nt)&&!/^\s/.test(t))&<(),nt=""),r=/^\s*$/.test(t)?n:"comment",e.decodeEntities&&t&&!J(w)&&(t=t.replace(/&((?:Iacute|aacute|uacute|plusmn|Otilde|otilde|agrave|Agrave|Yacute|yacute|Oslash|oslash|atilde|Atilde|brvbar|ccedil|Ccedil|Ograve|curren|divide|eacute|Eacute|ograve|Oacute|egrave|Egrave|Ugrave|frac12|frac14|frac34|ugrave|oacute|iacute|Ntilde|ntilde|Uacute|middot|igrave|Igrave|iquest|Aacute|cedil|laquo|micro|iexcl|Icirc|icirc|acirc|Ucirc|Ecirc|ocirc|Ocirc|ecirc|ucirc|Aring|aring|AElig|aelig|acute|pound|raquo|Acirc|times|THORN|szlig|thorn|COPY|auml|ordf|ordm|Uuml|macr|uuml|Auml|ouml|Ouml|para|nbsp|euml|quot|QUOT|Euml|yuml|cent|sect|copy|sup1|sup2|sup3|iuml|Iuml|ETH|shy|reg|not|yen|amp|AMP|REG|uml|eth|deg|gt|GT|LT|lt)(?!;)|(?:#?[0-9a-zA-Z]+;))/g,"&$1").replace(/</g,"<")),m&&e.collapseWhitespace&&A.length&&(t=t.replace(m,(function(t,e,n){return ot[+n][0]}))),b+=t,t&&(s=!0),y.push(t)},comment:function(t,n){var r=n?"<!":"\x3c!--";n=n?">":"--\x3e",t=function(t){return/^\[if\s[^\]]+]|\[endif]$/.test(t)}(t)?r+function(t,e){return e.processConditionalComments?t.replace(/^(\[if\s[^\]]+]>)([\s\S]*?)(<!\[endif])$/,(function(t,n,r,o){return n+tt(r,e,!0)+o})):t}(t,e)+n:e.removeComments?function(t,e){for(var n=0,r=e.ignoreCustomComments.length;n<r;n++)if(e.ignoreCustomComments[n].test(t))return 1}(t,e)?"\x3c!--"+t+"--\x3e":"":r+t+n,e.removeOptionalTags&&t&&(nt=et=""),y.push(t)},doctype:function(t){y.push(e.useShortDoctype?"<!doctype"+(e.removeTagWhitespace?"":" ")+"html>":f(t))}}),e.removeOptionalTags&&(H(et)&&st(),nt&&!z(nt)&<()),e.collapseWhitespace&&ut("br"),function(t,e,n,r){var o,i=e.maxLineLength;if(i){for(var a="",s=[];t.length;){var l=a.length,c=t[0].indexOf("\n");c<0?a+=r(n(t.shift())):(a+=r(n(t[0].slice(0,c))),t[0]=t[0].slice(c+1)),0<l&&a.length>i?(s.push(a.slice(0,l)),a=a.slice(l)):0<=c&&(s.push(a),a="")}a&&s.push(a),o=s.join("\n")}else o=r(n(t.join("")));return e.collapseWhitespace?d(o,e,!0,!0):o}(y,e,m?function(t){return t.replace(m,(function(t,n,r,o){return r=ot[+r][0],e.collapseWhitespace?("\t"!==n&&(r=n+r),"\t"!==o&&(r+=o),d(r,{preserveLineBreaks:e.preserveLineBreaks,conservativeCollapse:!e.trimCustomFragments},/^[ \n\r\t\f]/.test(r),/[ \n\r\t\f]$/.test(r))):r}))}:Q,c?function(t){return t.replace(new RegExp("\x3c!--"+c+"([0-9]+)--\x3e","g"),(function(t,e){return rt[+e]}))}:Q)}e.minify=function(t,e){var n=Date.now();return t=tt(t,e=function(t){var e={name:function(t){return t.toLowerCase()},canCollapseWhitespace:K,canTrimWhitespace:$,html5:!0,ignoreCustomComments:[/^!/],ignoreCustomFragments:[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/],includeAutoGeneratedTags:!0,log:Q,minifyCSS:Q,minifyJS:Q,minifyURLs:Q};return Object.keys(t).forEach((function(n){var i=t[n];"caseSensitive"===n?i&&(e.name=Q):"log"===n?"function"==typeof i&&(e.log=i):"minifyCSS"===n&&"function"!=typeof i?i&&("object"!==r(i)&&(i={}),e.minifyCSS=function(t,n){t=t.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,(function(t,n,r,o,i){return n+r+e.minifyURLs(o)+r+i}));var r=new o(i).minify(S(t,n));return 0<r.errors.length?(r.errors.forEach(e.log),t):function(t,e){var n;switch(e){case"inline":n=t.match(/^\*\{([\s\S]*)\}$/);break;case"media":n=t.match(/^@media ([\s\S]*?)\s*{[\s\S]*}$/)}return n?n[1]:t}(r.styles,n)}):"minifyJS"===n&&"function"!=typeof i?i&&(((i="object"!==r(i)?{}:i).parse||(i.parse={})).bare_returns=!1,e.minifyJS=function(t,n){var r=(r=t.match(/^\s*<!--.*/))?t.slice(r[0].length).replace(/\n\s*-->\s*$/,""):t;return i.parse.bare_returns=n,(r=c.minify(r,i)).error?(e.log(r.error),t):r.code.replace(/;$/,"")}):"minifyURLs"===n&&"function"!=typeof i?i&&("string"==typeof i?i={site:i}:"object"!==r(i)&&(i={}),e.minifyURLs=function(t){try{return s.relate(t,i)}catch(n){return e.log(n),t}}):e[n]=i})),e}(e||{})),e.log("minified in: "+(Date.now()-n)+"ms"),t}},function(t,e,n){t.exports=n(354)},function(t,e,n){(function(e){var r=n(355),o=n(356),i=n(364),a=n(388),s=n(389),l=n(390),c=n(80).formatFrom,u=n(412),p=n(413),f=n(414),d=n(25).OptimizationLevel,h=n(25).optimizationLevelFrom,g=n(415),m=n(416),v=n(417),y=n(424),b=n(433),_=n(434),w=t.exports=function(t){this.options={compatibility:s((t=t||{}).compatibility),fetch:l(t.fetch),format:c(t.format),inline:u(t.inline),inlineRequest:p(t.inlineRequest),inlineTimeout:f(t.inlineTimeout),level:h(t.level),rebase:g(t.rebase),rebaseTo:m(t.rebaseTo),returnPromise:!!t.returnPromise,sourceMap:!!t.sourceMap,sourceMapInlineSources:!!t.sourceMapInlineSources}};function E(t,n,s,l){var c="function"!=typeof s?s:null,u="function"==typeof l?l:"function"==typeof s?s:null,p={stats:{efficiency:0,minifiedSize:0,originalSize:0,startedAt:Date.now(),timeSpent:0},cache:{specificity:{}},errors:[],inlinedStylesheets:[],inputSourceMapTracker:v(),localOnly:!u,options:n,source:null,sourcesContent:{},validator:a(n.compatibility),warnings:[]};return c&&p.inputSourceMapTracker.track(void 0,c),function(t){return t?function(t){return t()}:e.nextTick}(p.localOnly)((function(){return y(t,p,(function(t){return t=function(t,e){return t.stats=function(t,e){var n=Date.now()-e.stats.startedAt;return delete e.stats.startedAt,e.stats.timeSpent=n,e.stats.efficiency=1-t.length/e.stats.originalSize,e.stats.minifiedSize=t.length,e.stats}(t.styles,e),t.errors=e.errors,t.inlinedStylesheets=e.inlinedStylesheets,t.warnings=e.warnings,t}((p.options.sourceMap?_:b)(function(t,e){var n=r(t,e);return n=d.One in e.options.level?o(t,e):t,d.Two in e.options.level?i(t,e,!0):n}(t,p),p),p),u?u(0<p.errors.length?p.errors:null,t):t}))}))}w.process=function(t,e){var n=e.to;return delete e.to,new w(Object.assign({returnPromise:!0,rebaseTo:n},e)).minify(t).then((function(t){return{css:t.styles}}))},w.prototype.minify=function(t,e,n){var r=this.options;return r.returnPromise?new Promise((function(n,o){E(t,r,e,(function(t,e){return t?o(t):n(e)}))})):E(t,r,e,n)}}).call(this,n(14))},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(357),o=n(358),i=n(359),a=n(120),s=n(121),l=n(362),c=n(363),u=n(122),p=n(180),f=n(60),d=n(49).all,h=n(25).OptimizationLevel,g=n(10),m=n(15),v=n(81),y=n(123),b=n(13).rules,_="ignore-property",w="@charset",E=new RegExp("^"+w,"i"),x=n(181).DEFAULT,T=/(?:^|\s|\()(-?\d+)px/,C=/^(\-?[\d\.]+)(m?s)$/,A=/[0-9a-f]/i,O=/^(?:\-chrome\-|\-[\w\-]+\w|\w[\w\-]+\w|\-\-\S+)$/,S=/^@import/i,k=/^('.*'|".*")$/,P=/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/,j=/^url\(/i,N=/^local\(/i,L=/^--\S+$/;function D(t){return t&&"-"==t[1][0]&&parseFloat(t[1])<0}function I(t,e,n){var a,s,l,c,w,E,x=n.options,S=x.level[h.One],M=d(e,!0);t:for(var B=0,F=M.length;B<F;B++)if(s=(a=M[B]).name,O.test(s)||(E=a.all[a.position],n.warnings.push("Invalid property name '"+s+"' at "+v(E[1][2][0])+". Ignoring."),a.unused=!0),0===a.value.length&&(E=a.all[a.position],n.warnings.push("Empty property '"+s+"' at "+v(E[1][2][0])+". Ignoring."),a.unused=!0),a.hack&&((a.hack[0]==u.ASTERISK||a.hack[0]==u.UNDERSCORE)&&!x.compatibility.properties.iePrefixHack||a.hack[0]==u.BACKSLASH&&!x.compatibility.properties.ieSuffixHack||a.hack[0]==u.BANG&&!x.compatibility.properties.ieBangHack)&&(a.unused=!0),S.removeNegativePaddings&&0===s.indexOf("padding")&&(D(a.value[0])||D(a.value[1])||D(a.value[2])||D(a.value[3]))&&(a.unused=!0),!x.compatibility.properties.ieFilters&&function(t){return("filter"==t.name||"-ms-filter"==t.name)&&(-1<(t=t.value[0][1]).indexOf("progid")||0===t.indexOf("alpha")||0===t.indexOf("chroma"))}(a)&&(a.unused=!0),!a.unused)if(a.block)I(t,a.value[0][1],n);else if(!L.test(s)){for(var U=0,H=a.value.length;U<H;U++){if(l=a.value[U][0],w=function(t){return j.test(t)}(c=a.value[U][1]),l==g.PROPERTY_BLOCK){a.unused=!0,n.warnings.push("Invalid value token at "+v(c[0][1][2][0])+". Ignoring.");break}if(w&&!n.validator.isUrl(c)){a.unused=!0,n.warnings.push("Broken URL '"+c+"' at "+v(a.value[U][2][0])+". Ignoring.");break}if(w?(c=S.normalizeUrls?function(t){return t.replace(j,"url(").replace(/\\?\n|\\?\r\n/g,"")}(c):c,c=x.compatibility.properties.urlQuotes?c:function(t){return!/^url\(['"].+['"]\)$/.test(t)||/^url\(['"].*[\*\s\(\)'"].*['"]\)$/.test(t)||/^url\(['"]data:[^;]+;charset/.test(t)?t:t.replace(/["']/g,"")}(c)):function(t){return k.test(t)}(c)||function(t){return N.test(t)}(c)?c=S.removeQuotes?function(t,e){return"content"==t||-1<t.indexOf("font-variation-settings")||-1<t.indexOf("font-feature-settings")||"grid"==t||-1<t.indexOf("grid-")||!P.test(e)?e:e.substring(1,e.length-1)}(s,c):c:(c=function(t,e,n){return T.test(e)?e.replace(T,(function(t,e){var r,o=parseInt(e);return 0===o?t:(n.properties.shorterLengthUnits&&n.units.pt&&3*o%4==0&&(r=3*o/4+"pt"),n.properties.shorterLengthUnits&&n.units.pc&&o%16==0&&(r=o/16+"pc"),(r=(r=n.properties.shorterLengthUnits&&n.units.in&&o%96==0?o/96+"in":r)&&t.substring(0,t.indexOf(e))+r)&&r.length<t.length?r:t)})):e}(0,c=function(t,e,n){return n.enabled&&-1!==e.indexOf(".")?e.replace(n.decimalPointMatcher,"$1$2$3").replace(n.zeroMatcher,(function(t,e,r,o){var i=n.units[o].multiplier;return e=parseInt(e),e=isNaN(e)?0:e,r=parseFloat(r),Math.round((e+r)*i)/i+o})):e}(0,c=S.removeWhitespace?function(t,e){return-1<t.indexOf("filter")||-1==e.indexOf(" ")||0===e.indexOf("expression")||-1<e.indexOf(m.SINGLE_QUOTE)||-1<e.indexOf(m.DOUBLE_QUOTE)?e:(e=-1<(e=e.replace(/\s+/g," ")).indexOf("calc")?e.replace(/\) ?\/ ?/g,")/ "):e).replace(/(\(;?)\s+/g,"$1").replace(/\s+(;?\))/g,"$1").replace(/, /g,",")}(s,c):c,x.precision),x.compatibility),c=S.replaceTimeUnits?function(t,e){return C.test(e)?e.replace(C,(function(t,e,n){var r;return"ms"==n?r=parseInt(e)/1e3+"s":"s"==n&&(r=1e3*parseFloat(e)+"ms"),r.length<t.length?r:t})):e}(0,c):c,c=S.replaceZeroUnits?function(t,e){return-1==e.indexOf("0")?e:(e=-1<e.indexOf("-")?e.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2"):e).replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,(function(t,e,n){return(0<e.length?".":"")+e+n})).replace(/(^|\D)0\.(\d)/g,"$1.$2")}(0,c):c,x.compatibility.properties.zeroUnits&&(c=function(t,e,n){return/^(?:\-moz\-calc|\-webkit\-calc|calc|rgb|hsl|rgba|hsla)\(/.test(e)||"flex"==t||"-ms-flex"==t||"-webkit-flex"==t||"flex-basis"==t||"-webkit-flex-basis"==t||0<e.indexOf("%")&&("height"==t||"max-height"==t||"width"==t||"max-width"==t)?e:e.replace(n,"$10$2").replace(n,"$10$2")}(s,c=function(t,e){return-1==e.indexOf("0deg")?e:e.replace(/\(0deg\)/g,"(0)")}(0,c),x.unitsRegexp)),x.compatibility.properties.colors&&(c=function(t,e,n){return e.match(/#|rgb|hsl/gi)&&(e=e.replace(/(rgb|hsl)a?\((\-?\d+),(\-?\d+\%?),(\-?\d+\%?),(0*[1-9]+[0-9]*(\.?\d*)?)\)/gi,(function(t,e,n,r,o,i){return 1<=parseInt(i,10)?e+"("+[n,r,o].join(",")+")":t})).replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/gi,(function(t,e,n,r){return i(e,n,r)})).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/gi,(function(t,e,n,r){return o(e,n,r)})).replace(/(^|[^='"])#([0-9a-f]{6})/gi,(function(t,e,n,r,o){return(r=o[r+t.length])&&A.test(r)?t:(n[0]==n[1]&&n[2]==n[3]&&n[4]==n[5]?e+"#"+n[0]+n[2]+n[4]:e+"#"+n).toLowerCase()})).replace(/(^|[^='"])#([0-9a-f]{3})/gi,(function(t,e,n){return e+"#"+n.toLowerCase()})).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/gi,(function(t,e,n){var r=n.split(","),o=e&&e.toLowerCase();return"hsl"==o&&3==r.length||"hsla"==o&&4==r.length||"rgb"==o&&3===r.length&&0<n.indexOf("%")||"rgba"==o&&4==r.length&&0<n.indexOf("%")?(-1==r[1].indexOf("%")&&(r[1]+="%"),-1==r[2].indexOf("%")&&(r[2]+="%"),e+"("+r.join(",")+")"):t})),n.colors.opacity&&-1==t.indexOf("background")&&(e=e.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,(function(t){return-1<y(e,",").pop().indexOf("gradient(")?t:"transparent"})))),r(e)}(s,c,x.compatibility))),(c=function(t,e,n,r){return void 0===(n=r(t,e,b(n)))?e:!1===n?_:n}(s,c,t,S.transform))===_){a.unused=!0;continue t}a.value[U][1]=c}S.replaceMultipleZeros&&function(t){var e,n=t.value;(e=4==n.length&&"0"===n[0][1]&&"0"===n[1][1]&&"0"===n[2][1]&&"0"===n[3][1]?-1<t.name.indexOf("box-shadow")?2:1:e)&&(t.value.splice(e),t.dirty=!0)}(a),"background"==s&&S.optimizeBackground?function(t){1==(t=t.value).length&&"none"==t[0][1]&&(t[0][1]="0 0"),1==t.length&&"transparent"==t[0][1]&&(t[0][1]="0 0")}(a):0===s.indexOf("border")&&0<s.indexOf("radius")&&S.optimizeBorderRadius?function(t){var e,n=t.value;3==n.length&&"/"==n[1][1]&&n[0][1]==n[2][1]?e=1:5==n.length&&"/"==n[2][1]&&n[0][1]==n[3][1]&&n[1][1]==n[4][1]?e=2:7==n.length&&"/"==n[3][1]&&n[0][1]==n[4][1]&&n[1][1]==n[5][1]&&n[2][1]==n[6][1]?e=3:9==n.length&&"/"==n[4][1]&&n[0][1]==n[5][1]&&n[1][1]==n[6][1]&&n[2][1]==n[7][1]&&n[3][1]==n[8][1]&&(e=4),e&&(t.value.splice(e),t.dirty=!0)}(a):"filter"==s&&S.optimizeFilter&&x.compatibility.properties.ieFilters?function(t){1==t.value.length&&(t.value[0][1]=t.value[0][1].replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,(function(t,e,n){return e.toLowerCase()+n}))),t.value[0][1]=t.value[0][1].replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")}(a):"font-weight"==s&&S.optimizeFontWeight?function(t,e){var n=t.value[0][1];"normal"==n?n="400":"bold"==n&&(n="700"),t.value[0][1]=n}(a):"outline"==s&&S.optimizeOutline&&function(t){1==(t=t.value).length&&"none"==t[0][1]&&(t[0][1]="0")}(a)}f(M),p(M),function(t,e){for(var n,r=0;r<t.length;r++)(n=t[r])[0]==g.COMMENT&&(R(n,e),0===n[1].length&&(t.splice(r,1),r--))}(e,x)}function R(t,e){t[1][2]==m.EXCLAMATION&&("all"==e.level[h.One].specialComments||e.commentsKept<e.level[h.One].specialComments)?e.commentsKept++:t[1]=[]}t.exports=function t(e,n){var r=n.options,o=r.level[h.One],i=r.compatibility.selectors.ie7Hack,u=r.compatibility.selectors.adjacentSpace,p=r.compatibility.properties.spaceAfterClosingBrace,f=r.format,d=!1,m=!1;r.unitsRegexp=r.unitsRegexp||function(t){var e=["px","em","ex","cm","mm","in","pt","pc","%"];return["ch","rem","vh","vm","vmax","vmin","vw"].forEach((function(n){t.compatibility.units[n]&&e.push(n)})),new RegExp("(^|\\s|\\(|,)0(?:"+e.join("|")+")(\\W|$)","g")}(r),r.precision=r.precision||function(t){var e,n,r={matcher:null,units:{}},o=[];for(e in t)(n=t[e])!=x&&(r.units[e]={},r.units[e].value=n,r.units[e].multiplier=Math.pow(10,n),o.push(e));return 0<o.length&&(r.enabled=!0,r.decimalPointMatcher=new RegExp("(\\d)\\.($|"+o.join("|")+")($|W)","g"),r.zeroMatcher=new RegExp("(\\d*)(\\.\\d+)("+o.join("|")+")","g")),r}(o.roundingPrecision),r.commentsKept=r.commentsKept||0;for(var v=0,y=e.length;v<y;v++){var b=e[v];switch(b[0]){case g.AT_RULE:b[1]=function(t){return S.test(t[1])}(b)&&m?"":b[1],b[1]=o.tidyAtRules?c(b[1]):b[1],d=!0;break;case g.AT_RULE_BLOCK:I(b[1],b[2],n),m=!0;break;case g.NESTED_BLOCK:b[1]=o.tidyBlockScopes?l(b[1],p):b[1],t(b[2],n),m=!0;break;case g.COMMENT:R(b,r);break;case g.RULE:b[1]=o.tidySelectors?s(b[1],!i,u,f,n.warnings):b[1],b[1]=1<b[1].length?a(b[1],o.selectorsSortingMethod):b[1],I(b[1],b[2],n),m=!0}(b[0]==g.COMMENT&&0===b[1].length||o.removeEmpty&&(0===b[1].length||b[2]&&0===b[2].length))&&(e.splice(v,1),v--,y--)}return o.cleanupCharsets&&d&&function(t){for(var e=!1,n=0,r=t.length;n<r;n++){var o=t[n];o[0]==g.AT_RULE&&E.test(o[1])&&(e||-1==o[1].indexOf(w)?(t.splice(n,1),n--,r--):(e=!0,t.splice(n,1),t.unshift([g.AT_RULE,o[1].replace(E,w)])))}}(e),e}},function(t,e){var n,r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},o={},i={};for(n in r){var a=r[n];n.length<a.length?i[a]=n:o[n]=a}var s=new RegExp("(^| |,|\\))("+Object.keys(o).join("|")+")( |,|\\)|$)","ig"),l=new RegExp("("+Object.keys(i).join("|")+")([^a-f0-9]|$)","ig");function c(t,e,n,r){return e+o[n.toLowerCase()]+r}function u(t,e,n){return i[e.toLowerCase()]+n}t.exports=function(t){var e=-1<t.indexOf("#"),n=t.replace(s,c);return n!=t&&(n=n.replace(s,c)),e?n.replace(l,u):n}},function(t,e){function n(t,e,n){return n<0&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}t.exports=function(t,e,r){return e=(t=function(t,e,r){var o,i,a;return(t%=360)<0&&(t+=360),t=~~t/360,e<0?e=0:100<e&&(e=100),r<0?r=0:100<r&&(r=100),r=~~r/100,0==(e=~~e/100)?o=i=a=r:(o=n(e=2*r-(r=r<.5?r*(1+e):r+e-r*e),r,t+1/3),i=n(e,r,t),a=n(e,r,t-1/3)),[~~(255*o),~~(255*i),~~(255*a)]}(t,e,r))[0].toString(16),r=t[1].toString(16),t=t[2].toString(16),"#"+(1==e.length?"0":"")+e+(1==r.length?"0":"")+r+(1==t.length?"0":"")+t}},function(t,e){t.exports=function(t,e,n){return"#"+("00000"+(Math.max(0,Math.min(parseInt(t),255))<<16|Math.max(0,Math.min(parseInt(e),255))<<8|Math.max(0,Math.min(parseInt(n),255))).toString(16)).slice(-6)}},function(t,e){var n=/([0-9]+)/;function r(t){return""+parseInt(t)==t?parseInt(t):t}t.exports=function(t,e){for(var o,i,a=(""+t).split(n).map(r),s=(""+e).split(n).map(r),l=0,c=Math.min(a.length,s.length);l<c;l++)if((o=a[l])!=(i=s[l]))return i<o?1:-1;return a.length>s.length?1:a.length==s.length?0:-1}},function(t,e){e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!=typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n",e.homedir=function(){return"/"}},function(t,e){var n=/^@media\W/;t.exports=function(t,e){for(var r,o=t.length-1;0<=o;o--)r=!e&&n.test(t[o][1]),t[o][1]=t[o][1].replace(/\n|\r\n/g," ").replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ \)/g,")").replace(/'([a-zA-Z][a-zA-Z\d\-_]+)'/,"$1").replace(/"([a-zA-Z][a-zA-Z\d\-_]+)"/,"$1").replace(r?/\) /g:null,")");return t}},function(t,e){t.exports=function(t){return t.replace(/\s+/g," ").replace(/url\(\s+/g,"url(").replace(/\s+\)/g,")").trim()}},function(t,e,n){var r=n(365),o=n(376),i=n(379),a=n(380),s=n(381),l=n(382),c=n(383),u=n(384),p=n(385),f=n(386),d=n(83),h=n(25).OptimizationLevel,g=n(10);t.exports=function t(e,n,m){var v,y,b=n.options.level[h.Two];if(function(e,n){for(var r=0,o=e.length;r<o;r++){var i,a=e[r];a[0]==g.NESTED_BLOCK&&(i=/@(-moz-|-o-|-webkit-)?keyframes/.test(a[1][0][1]),t(a[2],n,!i))}}(e,n),function t(e,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];switch(i[0]){case g.RULE:d(i[2],!0,!0,n);break;case g.NESTED_BLOCK:t(i[2],n)}}}(e,n),b.removeDuplicateRules&&u(e,n),b.mergeAdjacentRules&&r(e,n),b.reduceNonAdjacentRules&&s(e,n),b.mergeNonAdjacentRules&&"body"!=b.mergeNonAdjacentRules&&a(e,n),b.mergeNonAdjacentRules&&"selector"!=b.mergeNonAdjacentRules&&i(e,n),b.restructureRules&&b.mergeAdjacentRules&&m&&(f(e,n),r(e,n)),b.restructureRules&&!b.mergeAdjacentRules&&m&&f(e,n),b.removeDuplicateFontRules&&l(e,n),b.removeDuplicateMediaBlocks&&c(e,n),b.removeUnusedAtRules&&p(e,n),b.mergeMedia)for(y=(v=o(e,n)).length-1;0<=y;y--)t(v[y][2],n,!1);return b.removeEmpty&&function t(e){for(var n=0,r=e.length;n<r;n++){var o=e[n],i=!1;switch(o[0]){case g.RULE:i=0===o[1].length||0===o[2].length;break;case g.NESTED_BLOCK:t(o[2]),i=0===o[2].length;break;case g.AT_RULE:i=0===o[1].length;break;case g.AT_RULE_BLOCK:i=0===o[2].length}i&&(e.splice(n,1),n--,r--)}}(e),e}},function(t,e,n){var r=n(82),o=n(83),i=n(120),a=n(121),s=n(25).OptimizationLevel,l=n(13).body,c=n(13).rules,u=n(10);t.exports=function(t,e){for(var n=[null,[],[]],p=e.options,f=p.compatibility.selectors.adjacentSpace,d=p.level[s.One].selectorsSortingMethod,h=p.compatibility.selectors.mergeablePseudoClasses,g=p.compatibility.selectors.mergeablePseudoElements,m=p.compatibility.selectors.mergeLimit,v=p.compatibility.selectors.multiplePseudoMerging,y=0,b=t.length;y<b;y++){var _=t[y];_[0]==u.RULE?n[0]==u.RULE&&c(_[1])==c(n[1])?(Array.prototype.push.apply(n[2],_[2]),o(n[2],!0,!0,e),_[2]=[]):n[0]==u.RULE&&l(_[2])==l(n[2])&&r(c(_[1]),h,g,v)&&r(c(n[1]),h,g,v)&&n[1].length<m?(n[1]=a(n[1].concat(_[1]),!1,f,!1,e.warnings),n[1]=1<n.length?i(n[1],d):n[1],_[2]=[]):n=_:n=[null,[],[]]}}},function(t,e,n){var r=n(182),o=n(183),i=n(125),a=n(33),s=n(84).deep,l=n(126),c=n(60),u=n(49).single,p=n(13).body,f=n(10);function d(t,e,n,d){var g,m,v,y=t[e];for(g in n)void 0!==y&&g==y.name||(m=a[g],v=n[g],y&&function(t,e,n){var r,o=a[e],i=a[n.name];if("overridesShorthands"in o&&-1<o.overridesShorthands.indexOf(n.name))return 1;if(i&&"componentOf"in i)for(r in t[e])if(-1<i.componentOf.indexOf(r))return 1}(n,g,y)?delete n[g]:m.components.length>Object.keys(v).length||!function(t){var e,n;for(n in t){if(void 0!==e&&t[n].important!=e)return 1;e=t[n].important}}(v)&&function(t,e,n){var o,s,l,c,p=a[e],d=(e=[f.PROPERTY,[f.PROPERTY_NAME,e],[f.PROPERTY_VALUE,p.defaultValue]],u(e));for(i([d],n,[]),l=0,c=p.components.length;l<c;l++)if(o=t[p.components[l]],s=a[o.name].canOverride,!r(s.bind(null,n),d.components[l],o))return;return 1}(v,g,d)&&function(t){var e,n,r,o=null;for(e in t)if(r=t[e],"restore"in(n=a[e])){if(c([r.all[r.position]],l),r=n.restore(r,a).length,null!==o&&r!==o)return;o=r}return 1}(v)&&(function(t){var e,n,r=null;for(e in t){if(n=o(t[e]),null!==r&&r!==n)return 1;r=n}}(v)?function(t,e,n,r){var d,g,m,v=function(t,e,n){var r,p,d,g,m=[],v={},y={},b=a[e],_=(e=[f.PROPERTY,[f.PROPERTY_NAME,e],[f.PROPERTY_VALUE,b.defaultValue]],u(e));for(i([_],n,[]),d=0,g=b.components.length;d<g;d++)r=t[b.components[d]],o(r)?(p=r.all[r.position].slice(0,2),Array.prototype.push.apply(p,r.value),m.push(p),(p=s(r)).value=function(t,e){return"oppositeTo"in(e=a[e])?t[e.oppositeTo].value:[[f.PROPERTY_VALUE,e.defaultValue]]}(t,p.name),_.components[d]=p,v[r.name]=s(r)):((p=s(r)).all=r.all,_.components[d]=p,y[r.name]=r);return n=h(y,1),e[1].push(n),c([_],l),e=e.slice(0,2),Array.prototype.push.apply(e,_.value),m.unshift(e),[m,_,v]}(e,n,r),y=function(t,e,n){var r,l,c,p,d=[],g={},m={},v=a[e],y=[f.PROPERTY,[f.PROPERTY_NAME,e],[f.PROPERTY_VALUE,"inherit"]];for(e=u(y),i([e],n,[]),c=0,p=v.components.length;c<p;c++)r=t[v.components[c]],o(r)?g[r.name]=r:(l=r.all[r.position].slice(0,2),Array.prototype.push.apply(l,r.value),d.push(l),m[r.name]=s(r));return n=h(g,1),y[1].push(n),n=h(g,2),y[2].push(n),d.unshift(y),[d,e,m]}(e,n,r),b=v[0],_=(n=y[0],(r=p(b).length<p(n).length)?b:n),w=(n=(r?v:y)[1],(r?v:y)[2]),E=e[Object.keys(e)[0]].all;for(d in n.position=E.length,n.shorthand=!0,n.dirty=!0,n.all=E,n.all.push(_[0]),t.push(n),e)(m=e[d]).unused=!0,m.name in w&&(g=w[m.name],m=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n][1][1]==e)return t[n]}(_,d),g.position=E.length,g.all=E,g.all.push(m),t.push(g))}:function(t,e,n,r){var o,l=a[n],c=(n=[f.PROPERTY,[f.PROPERTY_NAME,n],[f.PROPERTY_VALUE,l.defaultValue]],u(n));c.shorthand=!0,c.dirty=!0,i([c],r,[]);for(var p,d=0,g=l.components.length;d<g;d++){var m=e[l.components[d]];c.components[d]=s(m),c.important=m.important,o=m.all}for(p in e)e[p].unused=!0;r=h(e,1),n[1].push(r),r=h(e,2),n[2].push(r),c.position=o.length,c.all=o,c.all.push(n),t.push(c)})(t,v,g,d))}function h(t,e){var n,r,o=[];for(r in t)n=(n=(n=t[r]).all[n.position])[e][n[e].length-1],Array.prototype.push.apply(o,n);return o.sort(g)}function g(t,e){var n=t[0],r=e[0];return t=t[1],e=e[1],n<r||n===r&&t<e?-1:1}t.exports=function(t,e){var n,r,o,i,s,l,c,u={};if(!(t.length<3)){for(i=0,s=t.length;i<s;i++)if(o=t[i],n=a[o.name],!o.unused&&!o.hack&&!o.block&&(d(t,i,u,e),n&&n.componentOf))for(l=0,c=n.componentOf.length;l<c;l++)u[r=n.componentOf[l]]=u[r]||{},u[r][o.name]=o;d(t,i,u,e)}}},function(t,e,n){var r=n(184),o=n(49).single,i=n(10),a=n(15),s=n(81);function l(t){for(var e=0,n=t.length;e<n;e++)if("inherit"==t[e][1])return 1}function c(t,e,n){return(n=n[t]).doubleValues&&2==n.defaultValue.length?o([i.PROPERTY,[i.PROPERTY_NAME,t],[i.PROPERTY_VALUE,n.defaultValue[0]],[i.PROPERTY_VALUE,n.defaultValue[1]]]):n.doubleValues&&1==n.defaultValue.length?o([i.PROPERTY,[i.PROPERTY_NAME,t],[i.PROPERTY_VALUE,n.defaultValue[0]]]):o([i.PROPERTY,[i.PROPERTY_NAME,t],[i.PROPERTY_VALUE,n.defaultValue]])}function u(t,e){var n=e[t.name].components,r=[],a=t.value;if(a.length<1)return[];a.length<2&&(a[1]=a[0].slice(0)),a.length<3&&(a[2]=a[0].slice(0)),a.length<4&&(a[3]=a[1].slice(0));for(var s=n.length-1;0<=s;s--){var l=o([i.PROPERTY,[i.PROPERTY_NAME,n[s]]]);l.value=[a[s]],r.unshift(l)}return r}function p(t,e,n){for(var r,o,i,a,s=e[t.name],l=[c(s.components[0],0,e),c(s.components[1],0,e),c(s.components[2],0,e)],u=0;u<3;u++){var p=l[u];0<p.name.indexOf("color")?r=p:0<p.name.indexOf("style")?o=p:i=p}return 1==t.value.length&&"inherit"==t.value[0][1]||3==t.value.length&&"inherit"==t.value[0][1]&&"inherit"==t.value[1][1]&&"inherit"==t.value[2][1]?r.value=o.value=i.value=[t.value[0]]:(0<(t=t.value.slice(0)).length&&(a=1<(a=t.filter(function(t){return function(e){return"inherit"!=e[1]&&(t.isWidth(e[1])||t.isUnit(e[1])&&!t.isDynamicUnit(e[1]))&&!t.isStyleKeyword(e[1])&&!t.isColorFunction(e[1])}}(n))).length&&("none"==a[0][1]||"auto"==a[0][1])?a[1]:a[0])&&(i.value=[a],t.splice(t.indexOf(a),1)),0<t.length&&(a=t.filter(function(t){return function(e){return"inherit"!=e[1]&&t.isStyleKeyword(e[1])&&!t.isColorFunction(e[1])}}(n))[0])&&(o.value=[a],t.splice(t.indexOf(a),1)),0<t.length&&(a=t.filter(function(t){return function(e){return"invert"==e[1]||t.isColor(e[1])||t.isPrefixed(e[1])}}(n))[0])&&(r.value=[a],t.splice(t.indexOf(a),1))),l}t.exports={animation:function(t,e,n){var o,i,a,u=c(t.name+"-duration",0,e),p=c(t.name+"-timing-function",0,e),f=c(t.name+"-delay",0,e),d=c(t.name+"-iteration-count",0,e),h=c(t.name+"-direction",0,e),g=c(t.name+"-fill-mode",0,e),m=c(t.name+"-play-state",0,e),v=c(t.name+"-name",0,e),y=(e=[u,p,f,d,h,g,m,v],t.value),b=!1,_=!1,w=!1,E=!1,x=!1,T=!1,C=!1,A=!1;if(1==t.value.length&&"inherit"==t.value[0][1])return u.value=p.value=f.value=d.value=h.value=g.value=m.value=v.value=t.value,e;if(1<y.length&&l(y))throw new r("Invalid animation values at "+s(y[0][2][0])+". Ignoring.");for(i=0,a=y.length;i<a;i++)if(o=y[i],n.isTime(o[1])&&!b)u.value=[o],b=!0;else if(n.isTime(o[1])&&!w)f.value=[o],w=!0;else if(!n.isGlobal(o[1])&&!n.isTimingFunction(o[1])||_)if(!n.isAnimationIterationCountKeyword(o[1])&&!n.isPositiveNumber(o[1])||E)if(n.isAnimationDirectionKeyword(o[1])&&!x)h.value=[o],x=!0;else if(n.isAnimationFillModeKeyword(o[1])&&!T)g.value=[o],T=!0;else if(n.isAnimationPlayStateKeyword(o[1])&&!C)m.value=[o],C=!0;else{if(!n.isAnimationNameKeyword(o[1])&&!n.isIdentifier(o[1])||A)throw new r("Invalid animation value at "+s(o[2][0])+". Ignoring.");v.value=[o],A=!0}else d.value=[o],E=!0;else p.value=[o],_=!0;return e},background:function(t,e,n){var o=c("background-image",0,e),i=c("background-position",0,e),l=c("background-size",0,e),u=c("background-repeat",0,e),p=c("background-attachment",0,e),f=c("background-origin",0,e),d=c("background-clip",0,e),h=c("background-color",0,e),g=[o,i,l,u,p,f,d,h],m=t.value,v=!1,y=!1,b=!1,_=!1,w=!1;if(1==t.value.length&&"inherit"==t.value[0][1])return h.value=o.value=u.value=i.value=l.value=f.value=d.value=t.value,g;if(1==t.value.length&&"0 0"==t.value[0][1])return g;for(var E=m.length-1;0<=E;E--){var x,T=m[E];n.isBackgroundAttachmentKeyword(T[1])?(p.value=[T],w=!0):n.isBackgroundClipKeyword(T[1])||n.isBackgroundOriginKeyword(T[1])?(y?(f.value=[T],b=!0):(d.value=[T],y=!0),w=!0):n.isBackgroundRepeatKeyword(T[1])?(_?u.value.unshift(T):(u.value=[T],_=!0),w=!0):n.isBackgroundPositionKeyword(T[1])||n.isBackgroundSizeKeyword(T[1])||n.isUnit(T[1])||n.isDynamicUnit(T[1])?(0<E?(x=m[E-1])[1]==a.FORWARD_SLASH?l.value=[T]:1<E&&m[E-2][1]==a.FORWARD_SLASH?(l.value=[x,T],E-=2):(v||(i.value=[]),i.value.unshift(T),v=!0):(v||(i.value=[]),i.value.unshift(T),v=!0),w=!0):h.value[0][1]!=e[h.name].defaultValue&&"none"!=h.value[0][1]||!n.isColor(T[1])&&!n.isPrefixed(T[1])?(n.isUrl(T[1])||n.isFunction(T[1]))&&(o.value=[T],w=!0):(h.value=[T],w=!0)}if(y&&!b&&(f.value=d.value.slice(0)),!w)throw new r("Invalid background value at "+s(m[0][2][0])+". Ignoring.");return g},border:p,borderRadius:function(t,e){for(var n=t.value,o=-1,i=0,l=n.length;i<l;i++)if(n[i][1]==a.FORWARD_SLASH){o=i;break}if(0===o||o===n.length-1)throw new r("Invalid border-radius value at "+s(n[0][2][0])+". Ignoring.");var p=c(t.name,0,e);p.value=-1<o?n.slice(0,o):n.slice(0),p.components=u(p,e);var f=c(t.name,0,e);f.value=-1<o?n.slice(o+1):n.slice(0),f.components=u(f,e);for(var d=0;d<4;d++)p.components[d].multiplex=!0,p.components[d].value=p.components[d].value.concat(f.components[d].value);return p.components},font:function(t,e,n){var o,i,u,p,f=c("font-style",0,e),d=c("font-variant",0,e),h=c("font-weight",0,e),g=c("font-stretch",0,e),m=c("font-size",0,e),v=c("line-height",0,e),y=c("font-family",0,e),b=[f,d,h,g,m,v,y],_=t.value,w=0,E=!1,x=!1,T=!1,C=!1,A=(e=!1,!1);if(!_[w])throw new r("Missing font values at "+s(t.all[t.position][1][2][0])+". Ignoring.");if(1==_.length&&"inherit"==_[0][1])return f.value=d.value=h.value=g.value=m.value=v.value=y.value=_,b;if(1==_.length&&(n.isFontKeyword(_[0][1])||n.isGlobal(_[0][1])||n.isPrefixed(_[0][1])))return _[0][1]=a.INTERNAL+_[0][1],f.value=d.value=h.value=g.value=m.value=v.value=y.value=_,b;if(_.length<2||!function(t,e){for(var n,r=0,o=t.length;r<o;r++)if(n=t[r],e.isFontSizeKeyword(n[1])||e.isUnit(n[1])&&!e.isDynamicUnit(n[1])||e.isFunction(n[1]))return 1}(_,n)||!function(t,e){for(var n,r=0,o=t.length;r<o;r++)if(n=t[r],e.isIdentifier(n[1]))return 1}(_,n))throw new r("Invalid font values at "+s(t.all[t.position][1][2][0])+". Ignoring.");if(1<_.length&&l(_))throw new r("Invalid font values at "+s(_[0][2][0])+". Ignoring.");for(;w<4;){if(o=n.isFontStretchKeyword(_[w][1])||n.isGlobal(_[w][1]),i=n.isFontStyleKeyword(_[w][1])||n.isGlobal(_[w][1]),u=n.isFontVariantKeyword(_[w][1])||n.isGlobal(_[w][1]),p=n.isFontWeightKeyword(_[w][1])||n.isGlobal(_[w][1]),i&&!x)f.value=[_[w]],x=!0;else if(u&&!T)d.value=[_[w]],T=!0;else if(p&&!C)h.value=[_[w]],C=!0;else{if(!o||E){if(i&&x||u&&T||p&&C||o&&E)throw new r("Invalid font style / variant / weight / stretch value at "+s(_[0][2][0])+". Ignoring.");break}g.value=[_[w]],E=!0}w++}if(!(n.isFontSizeKeyword(_[w][1])||n.isUnit(_[w][1])&&!n.isDynamicUnit(_[w][1])))throw new r("Missing font size at "+s(_[0][2][0])+". Ignoring.");if(m.value=[_[w]],e=!0,!_[++w])throw new r("Missing font family at "+s(_[0][2][0])+". Ignoring.");for(e&&_[w]&&_[w][1]==a.FORWARD_SLASH&&_[w+1]&&(n.isLineHeightKeyword(_[w+1][1])||n.isUnit(_[w+1][1])||n.isNumber(_[w+1][1]))&&(v.value=[_[w+1]],w++,w++),y.value=[];_[w];)A=_[w][1]!=a.COMMA&&(A?y.value[y.value.length-1][1]+=a.SPACE+_[w][1]:y.value.push(_[w]),!0),w++;if(0===y.value.length)throw new r("Missing font family at "+s(_[0][2][0])+". Ignoring.");return b},fourValues:u,listStyle:function(t,e,n){var r=c("list-style-type",0,e),o=c("list-style-position",0,e),i=c("list-style-image",0,e);if(e=[r,o,i],1==t.value.length&&"inherit"==t.value[0][1])return r.value=o.value=i.value=[t.value[0]],e;var a=t.value.slice(0),s=a.length,l=0;for(l=0,s=a.length;l<s;l++)if(n.isUrl(a[l][1])||"0"==a[l][1]){i.value=[a[l]],a.splice(l,1);break}for(l=0,s=a.length;l<s;l++)if(n.isListStylePositionKeyword(a[l][1])){o.value=[a[l]],a.splice(l,1);break}return 0<a.length&&(n.isListStyleTypeKeyword(a[0][1])||n.isIdentifier(a[0][1]))&&(r.value=[a[0]]),e},multiplex:function(t){return function(e,n,r){for(var o,s,l=[],u=e.value,p=0,f=u.length;p<f;p++)","==u[p][1]&&l.push(p);if(0===l.length)return t(e,n,r);var d=[];for(p=0,f=l.length;p<=f;p++){var h=0===p?0:l[p-1]+1,g=p<f?l[p]:u.length,m=c(e.name,0,n);m.value=u.slice(h,g),d.push(t(m,n,r))}var v=d[0];for(p=0,f=v.length;p<f;p++)for(v[p].multiplex=!0,o=1,s=d.length;o<s;o++)v[p].value.push([i.PROPERTY_VALUE,a.COMMA]),Array.prototype.push.apply(v[p].value,d[o][p].value);return v}},outline:p,transition:function(t,e,n){var o,i,a,u=c(t.name+"-property",0,e),p=c(t.name+"-duration",0,e),f=c(t.name+"-timing-function",0,e),d=c(t.name+"-delay",0,e),h=(e=[u,p,f,d],t.value),g=!1,m=!1,v=!1,y=!1;if(1==t.value.length&&"inherit"==t.value[0][1])return u.value=p.value=f.value=d.value=t.value,e;if(1<h.length&&l(h))throw new r("Invalid animation values at "+s(h[0][2][0])+". Ignoring.");for(i=0,a=h.length;i<a;i++)if(o=h[i],n.isTime(o[1])&&!g)p.value=[o],g=!0;else if(n.isTime(o[1])&&!m)d.value=[o],m=!0;else if(!n.isGlobal(o[1])&&!n.isTimingFunction(o[1])||y){if(!n.isIdentifier(o[1])||v)throw new r("Invalid animation value at "+s(o[2][0])+". Ignoring.");u.value=[o],v=!0}else f.value=[o],y=!0;return e}}},function(t,e,n){var r=n(369);function o(t){return function(e,n,o){return!(!r(e,n,o,0,!0)&&!e.isKeyword(t)(o))&&(!(!e.isVariable(n)||!e.isVariable(o))||e.isKeyword(t)(o))}}function i(t){return function(e,n,o){return!!(r(e,n,o,0,!0)||e.isKeyword(t)(o)||e.isGlobal(o))&&(!(!e.isVariable(n)||!e.isVariable(o))||e.isKeyword(t)(o)||e.isGlobal(o))}}function a(t,e,n){return!!function(t,e,n){return t.isFunction(e)&&t.isFunction(n)&&e.substring(0,e.indexOf("("))===n.substring(0,n.indexOf("("))}(t,e,n)||e===n}function s(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isUnit(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!(t.isUnit(e)&&!t.isUnit(n))&&(!!t.isUnit(n)||!t.isUnit(e)&&(!(!t.isFunction(e)||t.isPrefixed(e)||!t.isFunction(n)||t.isPrefixed(n))||a(t,e,n))))}function l(t){var e=i(t);return function(t,n,r){return s(t,n,r)||e(t,n,r)}}t.exports={generic:{color:function(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isColor(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!(!t.colorOpacity&&(t.isRgbColor(e)||t.isHslColor(e)))&&!(!t.colorOpacity&&(t.isRgbColor(n)||t.isHslColor(n)))&&(!(!t.isColor(e)||!t.isColor(n))||a(t,e,n)))},components:function(t){return function(e,n,r,o){return t[o](e,n,r)}},image:function(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isImage(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!!t.isImage(n)||!t.isImage(e)&&a(t,e,n))},propertyName:function(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isIdentifier(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isIdentifier(n))},time:function(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isTime(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!(t.isTime(e)&&!t.isTime(n))&&(!!t.isTime(n)||!t.isTime(e)&&(!(!t.isFunction(e)||t.isPrefixed(e)||!t.isFunction(n)||t.isPrefixed(n))||a(t,e,n))))},timingFunction:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isTimingFunction(n)||t.isGlobal(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isTimingFunction(n)||t.isGlobal(n))},unit:s,unitOrNumber:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isUnit(n)||t.isNumber(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!((t.isUnit(e)||t.isNumber(e))&&!t.isUnit(n)&&!t.isNumber(n))&&(!(!t.isUnit(n)&&!t.isNumber(n))||!t.isUnit(e)&&!t.isNumber(e)&&(!(!t.isFunction(e)||t.isPrefixed(e)||!t.isFunction(n)||t.isPrefixed(n))||a(t,e,n))))}},property:{animationDirection:i("animation-direction"),animationFillMode:o("animation-fill-mode"),animationIterationCount:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isAnimationIterationCountKeyword(n)||t.isPositiveNumber(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isAnimationIterationCountKeyword(n)||t.isPositiveNumber(n))},animationName:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isAnimationNameKeyword(n)||t.isIdentifier(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isAnimationNameKeyword(n)||t.isIdentifier(n))},animationPlayState:i("animation-play-state"),backgroundAttachment:o("background-attachment"),backgroundClip:i("background-clip"),backgroundOrigin:o("background-origin"),backgroundPosition:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isBackgroundPositionKeyword(n)||t.isGlobal(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!(!t.isBackgroundPositionKeyword(n)&&!t.isGlobal(n))||s(t,e,n))},backgroundRepeat:o("background-repeat"),backgroundSize:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isBackgroundSizeKeyword(n)||t.isGlobal(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!(!t.isBackgroundSizeKeyword(n)&&!t.isGlobal(n))||s(t,e,n))},bottom:l("bottom"),borderCollapse:o("border-collapse"),borderStyle:i("*-style"),clear:i("clear"),cursor:i("cursor"),display:i("display"),float:i("float"),left:l("left"),fontFamily:function(t,e,n){return r(t,e,n,0,!0)},fontStretch:i("font-stretch"),fontStyle:i("font-style"),fontVariant:i("font-variant"),fontWeight:i("font-weight"),listStyleType:i("list-style-type"),listStylePosition:i("list-style-position"),outlineStyle:i("*-style"),overflow:i("overflow"),position:i("position"),right:l("right"),textAlign:i("text-align"),textDecoration:i("text-decoration"),textOverflow:i("text-overflow"),textShadow:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isUnit(n)||t.isColor(n)||t.isGlobal(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isUnit(n)||t.isColor(n)||t.isGlobal(n))},top:l("top"),transform:a,verticalAlign:l("vertical-align"),visibility:i("visibility"),whiteSpace:i("white-space"),zIndex:function(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isZIndex(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isZIndex(n))}}}},function(t,e,n){var r=n(185).same;t.exports=function(t,e,n,o,i){return!(!r(e,n)||i&&t.isVariable(e)!==t.isVariable(n))}},function(t,e,n){var r=n(84).shallow,o=n(10),i=n(15);function a(t){for(var e=0,n=t.length;e<n;e++){var r=t[e][1];if("inherit"!=r&&r!=i.COMMA&&r!=i.FORWARD_SLASH)return}return 1}function s(t){var e=(r=t.components)[0].value[0],n=r[1].value[0],r=(t=r[2].value[0],r[3].value[0]);return e[1]==n[1]&&e[1]==t[1]&&e[1]==r[1]?[e]:e[1]==t[1]&&n[1]==r[1]?[e,n]:n[1]==r[1]?[e,n,t]:[e,n,t,r]}t.exports={background:function(t,e,n){var r=t.components,s=[];function l(t){Array.prototype.unshift.apply(s,t.value)}function c(t){var n=e[t.name];return n.doubleValues&&1==n.defaultValue.length?t.value[0][1]==n.defaultValue[0]&&(!t.value[1]||t.value[1][1]==n.defaultValue[0]):n.doubleValues&&1!=n.defaultValue.length?t.value[0][1]==n.defaultValue[0]&&(t.value[1]||t.value[0])[1]==n.defaultValue[1]:t.value[0][1]==n.defaultValue}for(var u=r.length-1;0<=u;u--){var p,f,d,h,g=r[u],m=c(g);"background-clip"==g.name?(d=c(h=r[u-1]),f=!(p=g.value[0][1]==h.value[0][1])&&(d&&!m||!d&&!m||!d&&m&&g.value[0][1]!=h.value[0][1]),p?l(h):f&&(l(g),l(h)),u--):"background-size"==g.name?(f=!(p=!(h=c(d=r[u-1]))&&m)&&(h&&!m||!h&&!m),p?l(d):f?(l(g),s.unshift([o.PROPERTY_VALUE,i.FORWARD_SLASH]),l(d)):1==d.value.length&&l(d),u--):m||e[g.name].multiplexLastOnly&&!n||l(g)}return 0===s.length&&1==t.value.length&&"0"==t.value[0][1]&&s.push(t.value[0]),0===s.length&&s.push([o.PROPERTY_VALUE,e[t.name].defaultValue]),a(s)?[s[0]]:s},borderRadius:function(t,e){if(t.multiplex){for(var n=r(t),a=r(t),l=0;l<4;l++){var c=t.components[l],u=r(t);u.value=[c.value[0]],n.components.push(u),(u=r(t)).value=[c.value[1]||c.value[0]],a.components.push(u)}var p=s(n),f=s(a);return p.length!=f.length||p[0][1]!=f[0][1]||1<p.length&&p[1][1]!=f[1][1]||2<p.length&&p[2][1]!=f[2][1]||3<p.length&&p[3][1]!=f[3][1]?p.concat([[o.PROPERTY_VALUE,i.FORWARD_SLASH]]).concat(f):p}return s(t)},font:function(t,e){var n,r=t.components,s=[],l=0,c=0;if(0===t.value[0][1].indexOf(i.INTERNAL))return t.value[0][1]=t.value[0][1].substring(i.INTERNAL.length),t.value;for(;l<4;)(n=r[l]).value[0][1]!=e[n.name].defaultValue&&Array.prototype.push.apply(s,n.value),l++;for(Array.prototype.push.apply(s,r[l].value),r[++l].value[0][1]!=e[r[l].name].defaultValue&&(Array.prototype.push.apply(s,[[o.PROPERTY_VALUE,i.FORWARD_SLASH]]),Array.prototype.push.apply(s,r[l].value)),l++;r[l].value[c];)s.push(r[l].value[c]),r[l].value[c+1]&&s.push([o.PROPERTY_VALUE,i.COMMA]),c++;return a(s)?[s[0]]:s},fourValues:s,multiplex:function(t){return function(e,n){if(!e.multiplex)return t(e,n,!0);for(var a=0,s=[],l={},c=0,u=e.components[0].value.length;c<u;c++)e.components[0].value[c][1]==i.COMMA&&a++;for(c=0;c<=a;c++){for(var p=r(e),f=0,d=e.components.length;f<d;f++){var h=e.components[f],g=r(h);p.components.push(g);for(var m=l[g.name]||0,v=h.value.length;m<v;m++){if(h.value[m][1]==i.COMMA){l[g.name]=m+1;break}g.value.push(h.value[m])}}var y=t(p,n,c==a);Array.prototype.push.apply(s,y),c<a&&s.push([o.PROPERTY_VALUE,i.COMMA])}return s}},withoutDefaults:function(t,e){for(var n=t.components,r=[],i=n.length-1;0<=i;i--){var s=n[i],l=e[s.name];(s.value[0][1]!=l.defaultValue||"keepUnlessDefault"in l&&!function(t,e,n){for(var r,o=0,i=t.length;o<i;o++)if((r=t[o]).name==n&&r.value[0][1]==e[n].defaultValue)return 1}(n,e,l.keepUnlessDefault))&&r.unshift(s.value[0])}return 0===r.length&&r.push([o.PROPERTY_VALUE,e[t.name].defaultValue]),a(r)?[r[0]]:r}}},function(t,e,n){var r=n(183),o=n(182),i=n(372),a=n(373),s=n(374),l=n(375),c=n(185).same,u=n(33),p=n(84).deep,f=n(126),d=n(84).shallow,h=n(60),g=n(10),m=n(15),v=n(13).property;function y(t,e){e.unused=!0,w(e,x(t)),t.value=e.value}function b(t,e){e.unused=!0,t.multiplex=!0,t.value=e.value}function _(t,e){(e.multiplex?b:t.multiplex?y:function(t,e){e.unused=!0,t.value=e.value})(t,e)}function w(t,e){t.multiplex=!0,(u[t.name].shorthand?function(t,e){for(var n,r=0,o=t.components.length;r<o;r++)(n=t.components[r]).multiplex||E(n,e)}:E)(t,e)}function E(t,e){for(var n,r=u[t.name],o="real"==r.intoMultiplexMode,i="real"==r.intoMultiplexMode?t.value.slice(0):"placeholder"==r.intoMultiplexMode?r.placeholderValue:r.defaultValue,a=x(t),s=i.length;a<e;a++)if(t.value.push([g.PROPERTY_VALUE,m.COMMA]),Array.isArray(i))for(n=0;n<s;n++)t.value.push(o?i[n]:[g.PROPERTY_VALUE,i[n]]);else t.value.push(o?i:[g.PROPERTY_VALUE,i])}function x(t){for(var e=0,n=0,r=t.value.length;n<r;n++)t.value[n][1]==m.COMMA&&e++;return e+1}function T(t){return t=[g.PROPERTY,[g.PROPERTY_NAME,t.name]].concat(t.value),v([t],0).length}function C(t,e){for(var n=0,r=t.components.length;n<r;n++)if(!A(e.isUrl,t.components[n])&&A(e.isFunction,t.components[n]))return 1}function A(t,e){for(var n=0,r=e.value.length;n<r;n++)if(e.value[n][1]!=m.COMMA&&t(e.value[n][1]))return 1}function O(t){return t.name in u}t.exports=function(t,e,n,v){var E,S,k,P,j,N,L,D,I,R,M,B;t:for(L=t.length-1;0<=L;L--)if(O(E=t[L])&&!E.block){H=u[E.name].canOverride;e:for(D=L-1;0<=D;D--)if(O(S=t[D])&&!S.block&&!S.unused&&!E.unused&&(!S.hack||E.hack||E.important)&&(S.hack||S.important||!E.hack)&&(S.important!=E.important||S.hack[0]==E.hack[0])&&!(S.important==E.important&&(S.hack[0]!=E.hack[0]||S.hack[1]&&S.hack[1]!=E.hack[1])||r(E)||function(t,e){return!t.multiplex&&("background"==t.name||"background-image"==t.name)&&e.multiplex&&("background"==e.name||"background-image"==e.name)&&function(t){for(var e=function(t){for(var e=[],n=0,r=[],o=t.length;n<o;n++){var i=t[n];i[1]==m.COMMA?(e.push(r),r=[]):r.push(i)}return e.push(r),e}(t),n=0,r=e.length;n<r;n++)if(1==e[n].length&&"none"==e[n][0][1])return 1}(e.value)}(S,E)))if(E.shorthand&&a(E,S))!E.important&&S.important||c([S],E.components)&&(!A(v.isFunction,S)&&C(E,v)||(s(E)?(B=i(E,S),H=u[S.name].canOverride,o(H.bind(null,v),S,B)&&(S.unused=!0)):S.unused=!0));else if(E.shorthand&&l(E,S)){if((E.important||!S.important)&&c([S],E.components)&&(A(v.isFunction,S)||!C(E,v))){for(I=(k=S.shorthand?S.components:[S]).length-1;0<=I;I--)if(P=k[I],j=i(E,P),H=u[P.name].canOverride,!o(H.bind(null,v),S,j))continue e;S.unused=!0}}else if(e&&S.shorthand&&!E.shorthand&&a(S,E,!0))E.important&&!S.important||(E.important||!S.important?function(t,e,n){for(var r=0,o=e;0<=o&&(t[o].name!=n||t[o].unused||r++,!(1<r));o--);return 1<r}(t,L-1,S.name)||C(S,v)||s(S)&&(B=i(S,E),o(H.bind(null,v),B,E)&&(R=!n.properties.backgroundClipMerging&&-1<B.name.indexOf("background-clip")||!n.properties.backgroundOriginMerging&&-1<B.name.indexOf("background-origin")||!n.properties.backgroundSizeMerging&&-1<B.name.indexOf("background-size"),M=u[E.name].nonMergeableValue===E.value[0][1],R||M||!n.properties.merging&&function(t,e){for(var n=0;n<t.components.length;n++){var r=t.components[n],i=u[r.name],a=i&&i.canOverride||a.sameValue,s=d(r);if(s.value=[[g.PROPERTY_VALUE,i.defaultValue]],!o(a.bind(null,e),s,r))return 1}}(S,v)||B.value[0][1]!=E.value[0][1]&&(r(S)||r(E))||function(t,e){if(!(!t.multiplex&&!e.multiplex||t.multiplex&&e.multiplex)){var n,r=t.multiplex?t:e,o=t.multiplex?e:t;return e=p(r),h([e],f),r=p(o),h([r],f),o=T(e)+1+T(r),t.multiplex?y(n=i(e,r),r):(n=i(r,e),w(r,x(e)),b(n,e)),h([r],f),o<=T(r)}}(S,E)||(!S.multiplex&&E.multiplex&&w(S,x(E)),_(B,E),S.dirty=!0))):E.unused=!0);else if(e&&S.shorthand&&E.shorthand&&S.name==E.name){if(S.multiplex||!E.multiplex){if(!E.important&&S.important){E.unused=!0;continue t}if(!E.important||S.important)if(s(E)){for(I=S.components.length-1;0<=I;I--){var F=S.components[I],U=E.components[I],H=u[F.name].canOverride;if(!o(H.bind(null,v),F,U))continue t}!function(t,e){e.unused=!0;for(var n=0,r=t.components.length;n<r;n++)_(t.components[n],e.components[n],t.multiplex)}(S,E),S.dirty=!0}else S.unused=!0;else S.unused=!0}}else if(e&&S.shorthand&&E.shorthand&&a(S,E))!S.important&&E.important||(B=i(S,E),H=u[E.name].canOverride,o(H.bind(null,v),B,E)&&(!S.important||E.important?1<u[E.name].restore(E,u).length||(_(B=i(S,E),E),E.dirty=!0):E.unused=!0));else if(S.name==E.name){if(N=!0,E.shorthand)for(I=E.components.length-1;0<=I&&N;I--)P=S.components[I],j=E.components[I],H=u[j.name].canOverride,N=N&&o(H.bind(null,v),P,j);else H=u[E.name].canOverride,N=o(H.bind(null,v),S,E);S.important&&!E.important&&N?E.unused=!0:(!S.important&&E.important&&N||N)&&(S.unused=!0)}}}},function(t,e,n){var r=n(33);function o(t,e){return t.components.filter(e)[0]}t.exports=function(t,e){return o(t,e=function(t){return function(e){return t.name===e.name}}(e))||function(t,e){var n,i,a;if(r[t.name].shorthandComponents)for(i=0,a=t.components.length;i<a;i++)if(n=o(t.components[i],e))return n}(t,e)}},function(t,e,n){var r=n(33);function o(t,e){return"components"in(t=r[t.name])&&-1<t.components.indexOf(e.name)}t.exports=function(t,e,n){return o(t,e)||!n&&!!r[t.name].shorthandComponents&&function(t,e){return t.components.some((function(t){return o(t,e)}))}(t,e)}},function(t,e,n){var r=n(15);t.exports=function(t){return"font"!=t.name||-1==t.value[0][1].indexOf(r.INTERNAL)}},function(t,e,n){var r=n(33);t.exports=function(t,e){return t.name in r&&"overridesShorthands"in r[t.name]&&-1<r[t.name].overridesShorthands.indexOf(e.name)}},function(t,e,n){var r=n(85).canReorder,o=n(85).canReorderSingle,i=n(127),a=n(186),s=n(13).rules,l=n(25).OptimizationLevel,c=n(10);t.exports=function(t,e){for(var n,u=e.options.level[l.Two].mergeSemantically,p=e.cache.specificity,f={},d=[],h=t.length-1;0<=h;h--){var g,m=t[h];m[0]==c.NESTED_BLOCK&&((m=f[g=s(m[1])])||(f[g]=m=[]),m.push(h))}for(n in f){var v=f[n];t:for(var y=v.length-1;0<y;y--){var b=v[y],_=t[b],w=v[y-1],E=t[w];e:for(var x=1;-1<=x;x-=2){for(var T=1==x,C=T?b+1:w-1,A=T?w:b,O=T?1:-1,S=T?_:E,k=T?E:_,P=i(S);C!=A;){var j=i(t[C]);if(C+=O,!(u&&function(t,e,n){for(var r,i,s,l,c,u,p=0,f=t.length;p<f;p++)for(i=(r=t[p])[5],c=0,u=e.length;c<u;c++)if(l=(s=e[c])[5],a(i,l,!0)&&!o(r,s,n))return;return 1}(P,j,p)||r(P,j,p)))continue e}k[2]=T?S[2].concat(k[2]):k[2].concat(S[2]),S[2]=[],d.push(k);continue t}}}return d}},function(t,e,n){var r=n(378);function o(t,e){var n;return t in e||(e[t]=n=r(t)),n||e[t]}t.exports=function(t,e,n){for(var r,i,a,s,l=0,c=t.length;l<c;l++)for(r=o(t[l][1],n),a=0,s=e.length;a<s;a++)if(i=o(e[a][1],n),r[0]===i[0]&&r[1]===i[1]&&r[2]===i[2])return!0;return!1}},function(t,e,n){var r=n(15),o=/[a-zA-Z]/,i=/[\s,\(>~\+]/;t.exports=function(t){for(var e,n,a,s,l,c=[0,0,0],u=0,p=!1,f=!1,d=0,h=t.length;d<h;d++){if(e=t[d],!n)if(e!=r.SINGLE_QUOTE||s||a)if(e==r.SINGLE_QUOTE&&!s&&a)a=!1;else if(e!=r.DOUBLE_QUOTE||s||a)if(e==r.DOUBLE_QUOTE&&s&&!a)s=!1;else{if(a||s)continue;0<u&&!p||(e==r.OPEN_ROUND_BRACKET?u++:e==r.CLOSE_ROUND_BRACKET&&1==u?(u--,p=!1):e==r.CLOSE_ROUND_BRACKET?u--:"#"==e?c[0]++:"."==e||e==r.OPEN_SQUARE_BRACKET?c[1]++:":"!=e||f||function(t,e){return t.indexOf(":not(",e)===e}(t,d)?":"==e?p=!0:(0===d||l)&&o.test(e)&&c[2]++:(c[1]++,p=!1))}else s=!0;else a=!0;f=":"==e,l=!(n=e==r.BACK_SLASH)&&i.test(e)}return c}},function(t,e,n){var r=n(82),o=n(120),i=n(121),a=n(25).OptimizationLevel,s=n(13).body,l=n(13).rules,c=n(10);function u(t){return t.replace(/--[^ ,>\+~:]+/g,"")}t.exports=function(t,e){for(var n=e.options,p=n.level[a.Two].mergeSemantically,f=n.compatibility.selectors.adjacentSpace,d=n.level[a.One].selectorsSortingMethod,h=n.compatibility.selectors.mergeablePseudoClasses,g=n.compatibility.selectors.mergeablePseudoElements,m=n.compatibility.selectors.multiplePseudoMerging,v={},y=t.length-1;0<=y;y--){var b,_,w=t[y];w[0]==c.RULE&&(0<w[2].length&&!p&&function(t){return/\.|\*| :/.test(t)}(l(w[1]))&&(v={}),0<w[2].length&&p&&function(t){return-1<(t=l(t[1])).indexOf("__")||-1<t.indexOf("--")}(w)&&function(t,e){var n,r=u(l(t[1]));for(n in e){var o=e[n];(-1<(o=u(l(o[1]))).indexOf(r)||-1<r.indexOf(o))&&delete e[n]}}(w,v),(_=v[b=s(w[2])])&&r(l(w[1]),h,g,m)&&r(l(_[1]),h,g,m)&&(0<w[2].length?(w[1]=i(_[1].concat(w[1]),!1,f,!1,e.warnings),w[1]=1<w[1].length?o(w[1],d):w[1]):w[1]=_[1].concat(w[1]),_[2]=[],v[b]=null),v[s(w[2])]=w)}}},function(t,e,n){var r=n(85).canReorder,o=n(127),i=n(83),a=n(13).rules,s=n(10);t.exports=function(t,e){for(var n,l=e.cache.specificity,c={},u=[],p=t.length-1;0<=p;p--)t[p][0]==s.RULE&&0!==t[p][2].length&&(c[n=a(t[p][1])]=[p].concat(c[n]||[]),2==c[n].length&&u.push(n));for(p=u.length-1;0<=p;p--){var f=c[u[p]];t:for(var d=f.length-1;0<d;d--){var h=f[d-1],g=t[h],m=f[d],v=t[m];e:for(var y=1;-1<=y;y-=2){for(var b=1==y,_=b?h+1:m-1,w=b?m:h,E=b?1:-1,x=b?g:v,T=b?v:g,C=o(x);_!=w;){var A=o(t[_]);if(_+=E,!(A=b?r(C,A,l):r(A,C,l))&&!b)continue t;if(!A&&b)continue e}b?(Array.prototype.push.apply(x[2],T[2]),T[2]=x[2]):Array.prototype.push.apply(T[2],x[2]),i(T[2],!0,!0,e),x[2]=[]}}}}},function(t,e,n){var r=n(82),o=n(83),i=n(187),a=n(10),s=n(13).body,l=n(13).rules;function c(t,e,n,r,a){for(var s,l,c=[],u=[],p=[],f=e.length-1;0<=f;f--)n.filterOut(f,c)||(l=t[s=e[f].where],l=i(l[2]),c=c.concat(l),u.push(l),p.push(s));o(c,!0,!1,a);for(var d,h=p.length,g=c.length-1,m=h-1;0<=m;)(0===m||c[g]&&-1<u[m].indexOf(c[g]))&&-1<g?g--:(d=c.splice(g+1),n.callback(t[p[m]],d,h,m),m--)}t.exports=function(t,e){for(var n=e.options,o=n.compatibility.selectors.mergeablePseudoClasses,i=n.compatibility.selectors.mergeablePseudoElements,u=n.compatibility.selectors.multiplePseudoMerging,p={},f=[],d=t.length-1;0<=d;d--){var h=t[d];if(h[0]==a.RULE&&0!==h[2].length)for(var g=l(h[1]),m=1<h[1].length&&r(g,o,i,u),v=function(t){for(var e=[],n=0;n<t.length;n++)e.push([t[n][1]]);return e}(h[1]),y=m?[g].concat(v):[g],b=0,_=y.length;b<_;b++){var w=y[b];p[w]?f.push(w):p[w]=[],p[w].push({where:d,list:v,isPartial:m&&0<b,isComplex:m&&0===b})}}!function(t,e,n,r,o){function i(t,e){return u[t].isPartial&&0===e.length}function a(t,e,n,r){u[n-r-1].isPartial||(t[2]=e)}for(var s=0,l=e.length;s<l;s++){var u=n[e[s]];c(t,u,{filterOut:i,callback:a},0,o)}}(t,f,p,0,e),function(t,e,n,o){var i=n.compatibility.selectors.mergeablePseudoClasses,a=n.compatibility.selectors.mergeablePseudoElements,l=n.compatibility.selectors.multiplePseudoMerging,u={};function p(t){return u.data[t].where<u.intoPosition}function f(t,e,n,r){0===r&&u.reducedBodies.push(e)}t:for(var d in e){var h=e[d];if(h[0].isComplex){var g=h[h.length-1].where,m=t[g],v=[],y=r(d,i,a,l)?h[0].list:[d];u.intoPosition=g,u.reducedBodies=v;for(var b,_=0,w=y.length;_<w;_++){if((b=e[b=y[_]]).length<2)continue t;if(c(t,u.data=b,{filterOut:p,callback:f},0,o),s(v[v.length-1])!=s(v[0]))continue t}m[2]=v[0]}}}(t,p,n,e)}},function(t,e,n){var r=n(10),o=n(13).all;t.exports=function(t){for(var e,n,i=[],a=0,s=t.length;a<s;a++)(e=t[a])[0]!=r.AT_RULE_BLOCK&&"@font-face"!=e[1][0][1]||(n=o([e]),-1<i.indexOf(n)?e[2]=[]:i.push(n))}},function(t,e,n){var r=n(10),o=n(13).all,i=n(13).rules;t.exports=function(t){for(var e,n,a,s={},l=0,c=t.length;l<c;l++)(n=t[l])[0]==r.NESTED_BLOCK&&((e=s[a=i(n[1])+"%"+o(n[2])])&&(e[2]=[]),s[a]=n)}},function(t,e,n){var r=n(10),o=n(13).body,i=n(13).rules;t.exports=function(t){for(var e,n,a={},s=[],l=0,c=t.length;l<c;l++)(e=t[l])[0]==r.RULE&&(a[u=i(e[1])]&&1==a[u].length?s.push(u):a[u]=a[u]||[],a[u].push(l));for(l=0,c=s.length;l<c;l++)for(var u,p=[],f=a[u=s[l]].length-1;0<=f;f--)e=t[a[u][f]],n=o(e[2]),-1<p.indexOf(n)?e[2]=[]:p.push(n)}},function(t,e,n){var r=n(125),o=n(49).single,i=n(60),a=n(10),s=/^(\-moz\-|\-o\-|\-webkit\-)?animation-name$/,l=/^(\-moz\-|\-o\-|\-webkit\-)?animation$/,c=/^@(\-moz\-|\-o\-|\-webkit\-)?keyframes /,u=/\s{0,31}!important$/,p=/^(['"]?)(.*)\1$/;function f(t){return t.replace(p,"$2").replace(u,"")}function d(t,e,n,r){for(var o,i,s,l={},c=0,u=t.length;c<u;c++)e(t[c],l);if(0!==Object.keys(l).length)for(o in function t(e,n,r,o){for(var i=n(r),s=0,l=e.length;s<l;s++)switch(e[s][0]){case a.RULE:i(e[s],o);break;case a.NESTED_BLOCK:t(e[s][2],n,r,o)}}(t,n,l,r),l)for(c=0,u=(i=l[o]).length;c<u;c++)(s=i[c])[s[0]==a.AT_RULE?1:2]=[]}function h(t,e){var n;t[0]==a.AT_RULE_BLOCK&&0===t[1][0][1].indexOf("@counter-style")&&(e[n=t[1][0][1].split(" ")[1]]=e[n]||[],e[n].push(t))}function g(t){return function(e,n){for(var a,s,l=0,c=e[2].length;l<c;l++)"list-style"==(a=e[2][l])[1][1]&&(s=o(a),r([s],n.validator,n.warnings),s.components[0].value[0][1]in t&&delete t[a[2][1]],i([s])),"list-style-type"==a[1][1]&&a[2][1]in t&&delete t[a[2][1]]}}function m(t,e){var n,r,o;if(t[0]==a.AT_RULE_BLOCK&&"@font-face"==t[1][0][1])for(r=0,o=t[2].length;r<o;r++)if("font-family"==(n=t[2][r])[1][1]){e[n=f(n[2][1].toLowerCase())]=e[n]||[],e[n].push(t);break}}function v(t){return function(e,n){for(var a,s,l,c,u,p,d=0,h=e[2].length;d<h;d++){if("font"==(a=e[2][d])[1][1]){for(s=o(a),r([s],n.validator,n.warnings),u=0,p=(l=s.components[6]).value.length;u<p;u++)(c=f(l.value[u][1].toLowerCase()))in t&&delete t[c];i([s])}if("font-family"==a[1][1])for(u=2,p=a.length;u<p;u++)(c=f(a[u][1].toLowerCase()))in t&&delete t[c]}}}function y(t,e){var n;t[0]==a.NESTED_BLOCK&&c.test(t[1][0][1])&&(e[n=t[1][0][1].split(" ")[1]]=e[n]||[],e[n].push(t))}function b(t){return function(e,n){for(var a,c,u,p,f,d=0,h=e[2].length;d<h;d++){if(a=e[2][d],l.test(a[1][1])){for(c=o(a),r([c],n.validator,n.warnings),p=0,f=(u=c.components[7]).value.length;p<f;p++)u.value[p][1]in t&&delete t[u.value[p][1]];i([c])}if(s.test(a[1][1]))for(p=2,f=a.length;p<f;p++)a[p][1]in t&&delete t[a[p][1]]}}}function _(t,e){var n;t[0]==a.AT_RULE&&0===t[1].indexOf("@namespace")&&(e[n=t[1].split(" ")[1]]=e[n]||[],e[n].push(t))}function w(t){var e=new RegExp(Object.keys(t).join("\\||")+"\\|","g");return function(n){for(var r,o,i,a,s=0,l=n[1].length;s<l;s++)for(i=0,a=(r=n[1][s][1].match(e)).length;i<a;i++)(o=r[i].substring(0,r[i].length-1))in t&&delete t[o]}}t.exports=function(t,e){d(t,h,g,e),d(t,m,v,e),d(t,y,b,e),d(t,_,w,e)}},function(t,e,n){var r=n(85).canReorderSingle,o=n(127),i=n(82),a=n(387),s=n(10),l=n(187),c=n(13).body,u=n(13).rules;function p(t,e){return e<t?1:-1}t.exports=function(t,e){var n=e.options,f=n.compatibility.selectors.mergeablePseudoClasses,d=n.compatibility.selectors.mergeablePseudoElements,h=n.compatibility.selectors.mergeLimit,g=n.compatibility.selectors.multiplePseudoMerging,m=e.cache.specificity,v={},y=[],b={},_=[],w=2;function E(t){for(var e=[],n=[],r=t.length-1;0<=r;r--)i(u(t[r][1]),f,d,g)&&(n.unshift(t[r]),0<t[r][2].length&&-1==e.indexOf(t[r])&&e.push(t[r]));return 1<e.length?n:[]}function x(t,e){return t[1]>e[1]?1:t[1]==e[1]?0:-1}function T(t,e,n){return function t(e,n,r,o){var i=[[e,function(t,e,n){for(var r=0,o=t.length-1;0<=o;o--)r+=t[o][2].length>n?u(t[o][1]).length:-1;return r-(t.length-1)*e+1}(e,n,r)]];if(2<e.length&&0<o)for(var a=e.length-1;0<=a;a--){var s=Array.prototype.slice.call(e,0);s.splice(a,1),i=i.concat(t(s,n,r,o-1))}return i}(t,e,n,w-1).sort(x)}function C(e,n,r,o){for(var i=[],a=o.length-1;0<=a;a--)for(var l=o[a],u=l[2].length-1;0<=u;u--)for(var p=l[2][u],f=0,d=n.length;f<d;f++){var h=n[f],g=p[1][1],m=h[0];if(h=h[4],g==m&&c([p])==h){l[2].splice(u,1);break}}for(a=n.length-1;0<=a;a--)i.unshift(n[a][3]);r=[s.RULE,r,i],t.splice(e,0,r)}function A(t,e){var n=e[4];(n=v[n])&&1<n.length&&!function(t,e){var n,r=[],o=[],i=(e=e[4],E(v[e]));if(!(i.length<2)){t:for(var a in v){for(var s=v[a],l=i.length-1;0<=l;l--)if(-1==s.indexOf(i[l]))continue t;r.push(a)}if(!(r.length<2)){for(l=r.length-1;0<=l;l--)for(n=y.length-1;0<=n;n--)if(y[n][4]==r[l]){o.unshift([y[n],i]);break}return O(t,o)}}}(t,e)&&function(t,e){var n=e[0],r=e[1],o=e[4],i=(r=n.length+r.length+1,[]),s=[];if(!((o=E(v[o])).length<2)){var l=(r=T(o,r,1))[0];if(0<l[1])return function(t,e,n){for(var r=n.length-1;0<=r;r--){var o=function(t,e){var n=function(t){for(var e=[],n=0,r=t.length;n<r;n++)e.push(u(t[n][1]));return e.join("%")}(e);return b[n]=b[n]||[],b[n].push([t,e]),n}(e,n[r][0]);if(1<b[o].length&&O(t,b[o])){!function(t){var e,n=t.split("%"),r=[];for(e in b)for(var o=e.split("%"),i=o.length-1;0<=i;i--)if(-1<n.indexOf(o[i])){r.push(e);break}for(i=r.length-1;0<=i;i--)delete b[r[i]]}(o);break}}}(t,e,r);for(var c=l[0].length-1;0<=c;c--)i=l[0][c][1].concat(i),s.unshift(l[0][c]);C(t,[e],i=a(i),s)}}(t,e)}function O(t,e){for(var n=0,r=[],o=e.length-1;0<=o;o--)n+=(c=e[o][0])[4].length+(0<o?1:0),r.push(c);var i=T(e[0][1],n,r.length)[0];if(0<i[1])return!1;var s=[],l=[];for(o=i[0].length-1;0<=o;o--)s=i[0][o][1].concat(s),l.unshift(i[0][o]);for(C(t,r,s=a(s),l),o=r.length-1;0<=o;o--){var c=r[o],u=y.indexOf(c);delete v[c[4]],-1<u&&-1==_.indexOf(u)&&_.push(u)}return!0}for(var S=t.length-1;0<=S;S--){var k,P,j,N=t[S];if(N[0]==s.RULE)k=!0;else{if(N[0]!=s.NESTED_BLOCK)continue;k=!1}for(var L=y.length,D=o(N),I=(_=[],[]),R=D.length-1;0<=R;R--)for(U=R-1;0<=U;U--)if(!r(D[R],D[U],m)){I.push(R);break}for(R=D.length-1;0<=R;R--){for(var M,B=D[R],F=!1,U=0;U<L;U++){var H=y[U];-1==_.indexOf(U)&&(!r(B,H,m)&&!function(t,e,n){return t[0]==e[0]&&(e=e[4],(e=v[e])&&-1<e.indexOf(n))}(B,H,N)||v[H[4]]&&v[H[4]].length===h)&&(A(S+1,H),-1==_.indexOf(U)&&(_.push(U),delete v[H[4]])),F||(F=B[0]==H[0]&&B[1]==H[1])&&(j=U)}!k||-1<I.indexOf(R)||(M=B[4],F&&y[j][5].length+B[5].length>h?(A(S+1,y[j]),y.splice(j,1),F=!(v[M]=[N])):(v[M]=v[M]||[],v[M].push(N)),F?y[j]=function(t,e){return(t=l(t))[5]=t[5].concat(e[5]),t}(y[j],B):y.push(B))}for(R=0,P=(_=_.sort(p)).length;R<P;R++){var V=_[R]-R;y.splice(V,1)}}for(var q=t[0]&&t[0][0]==s.AT_RULE&&0===t[0][1].indexOf("@charset")?1:0;q<t.length-1;q++){var z=t[q][0]===s.AT_RULE&&0===t[q][1].indexOf("@import"),G=t[q][0]===s.COMMENT;if(!z&&!G)break}for(S=0;S<y.length;S++)A(q,y[S])}},function(t,e){function n(t,e){return t[1]>e[1]?1:-1}t.exports=function(t){for(var e=[],r=[],o=0,i=t.length;o<i;o++){var a=t[o];-1==r.indexOf(a[1])&&(r.push(a[1]),e.push(a))}return e.sort(n)}},function(t,e){var n=new RegExp("^(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)$","i"),r=/[0-9]/,o=new RegExp("^(var\\(\\-\\-[^\\)]+\\)|[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)|\\-(\\-|[A-Z]|[0-9])+\\(.*?\\))$","i"),i=/^hsl\(\s{0,31}[\-\.]?\d+\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+%\s{0,31}\)|hsla\(\s{0,31}[\-\.]?\d+\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+\s{0,31}\)$/i,a=/^(\-[a-z0-9_][a-z0-9\-_]*|[a-z][a-z0-9\-_]*)$/i,s=/^[a-z]+$/i,l=/^-([a-z0-9]|-)*$/i,c=/^rgb\(\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31}\)|rgba\(\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\.\d]+\s{0,31}\)$/i,u=/^(cubic\-bezier|steps)\([^\)]+\)$/,p=["ms","s"],f=/^url\([\s\S]+\)$/i,d=new RegExp("^var\\(\\-\\-[^\\)]+\\)$","i"),h=/^#[0-9a-f]{8}$/i,g=/^#[0-9a-f]{4}$/i,m=/^#[0-9a-f]{6}$/i,v=/^#[0-9a-f]{3}$/i,y=".",b="-",_="+",w={"^":["inherit","initial","unset"],"*-style":["auto","dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"],"*-timing-function":["ease","ease-in","ease-in-out","ease-out","linear","step-end","step-start"],"animation-direction":["alternate","alternate-reverse","normal","reverse"],"animation-fill-mode":["backwards","both","forwards","none"],"animation-iteration-count":["infinite"],"animation-name":["none"],"animation-play-state":["paused","running"],"background-attachment":["fixed","inherit","local","scroll"],"background-clip":["border-box","content-box","inherit","padding-box","text"],"background-origin":["border-box","content-box","inherit","padding-box"],"background-position":["bottom","center","left","right","top"],"background-repeat":["no-repeat","inherit","repeat","repeat-x","repeat-y","round","space"],"background-size":["auto","cover","contain"],"border-collapse":["collapse","inherit","separate"],bottom:["auto"],clear:["both","left","none","right"],color:["transparent"],cursor:["all-scroll","auto","col-resize","crosshair","default","e-resize","help","move","n-resize","ne-resize","no-drop","not-allowed","nw-resize","pointer","progress","row-resize","s-resize","se-resize","sw-resize","text","vertical-text","w-resize","wait"],display:["block","inline","inline-block","inline-table","list-item","none","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group"],float:["left","none","right"],left:["auto"],font:["caption","icon","menu","message-box","small-caption","status-bar","unset"],"font-size":["large","larger","medium","small","smaller","x-large","x-small","xx-large","xx-small"],"font-stretch":["condensed","expanded","extra-condensed","extra-expanded","normal","semi-condensed","semi-expanded","ultra-condensed","ultra-expanded"],"font-style":["italic","normal","oblique"],"font-variant":["normal","small-caps"],"font-weight":["100","200","300","400","500","600","700","800","900","bold","bolder","lighter","normal"],"line-height":["normal"],"list-style-position":["inside","outside"],"list-style-type":["armenian","circle","decimal","decimal-leading-zero","disc","decimal|disc","georgian","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],overflow:["auto","hidden","scroll","visible"],position:["absolute","fixed","relative","static"],right:["auto"],"text-align":["center","justify","left","left|right","right"],"text-decoration":["line-through","none","overline","underline"],"text-overflow":["clip","ellipsis"],top:["auto"],"vertical-align":["baseline","bottom","middle","sub","super","text-bottom","text-top","top"],visibility:["collapse","hidden","visible"],"white-space":["normal","nowrap","pre"],width:["inherit","initial","medium","thick","thin"]},E=["%","ch","cm","em","ex","in","mm","pc","pt","px","rem","vh","vm","vmax","vmin","vw"];function x(t){return"auto"!=t&&(P("color")(t)||function(t){return v.test(t)||g.test(t)||m.test(t)||h.test(t)}(t)||T(t)||function(t){return s.test(t)}(t))}function T(t){return N(t)||O(t)}function C(t){return n.test(t)}function A(t){return o.test(t)}function O(t){return i.test(t)}function S(t){return a.test(t)}function k(t){return"none"==t||"inherit"==t||M(t)}function P(t){return function(e){return-1<w[t].indexOf(e)}}function j(t){return F(t)==t.length}function N(t){return c.test(t)}function L(t){return l.test(t)}function D(t){return j(t)&&0<=parseFloat(t)}function I(t){return d.test(t)}function R(t){var e=F(t);return e==t.length&&0===parseInt(t)||-1<e&&-1<p.indexOf(t.slice(e+1))}function M(t){return f.test(t)}function B(t){return"auto"==t||j(t)||P("^")(t)}function F(t){for(var e,n=!1,o=!1,i=0,a=t.length;i<a;i++)if(e=t[i],0!==i||e!=_&&e!=b){if(0<i&&o&&(e==_||e==b))return i-1;if(e!=y||n){if(e==y&&n)return i-1;if(!r.test(e))return i-1}else n=!0}else o=!0;return i}t.exports=function(t){var e=E.slice(0).filter((function(e){return!(e in t.units)||!0===t.units[e]}));return{colorOpacity:t.colors.opacity,isAnimationDirectionKeyword:P("animation-direction"),isAnimationFillModeKeyword:P("animation-fill-mode"),isAnimationIterationCountKeyword:P("animation-iteration-count"),isAnimationNameKeyword:P("animation-name"),isAnimationPlayStateKeyword:P("animation-play-state"),isTimingFunction:function(){var t=P("*-timing-function");return function(e){return t(e)||u.test(e)}}(),isBackgroundAttachmentKeyword:P("background-attachment"),isBackgroundClipKeyword:P("background-clip"),isBackgroundOriginKeyword:P("background-origin"),isBackgroundPositionKeyword:P("background-position"),isBackgroundRepeatKeyword:P("background-repeat"),isBackgroundSizeKeyword:P("background-size"),isColor:x,isColorFunction:T,isDynamicUnit:C,isFontKeyword:P("font"),isFontSizeKeyword:P("font-size"),isFontStretchKeyword:P("font-stretch"),isFontStyleKeyword:P("font-style"),isFontVariantKeyword:P("font-variant"),isFontWeightKeyword:P("font-weight"),isFunction:A,isGlobal:P("^"),isHslColor:O,isIdentifier:S,isImage:k,isKeyword:P,isLineHeightKeyword:P("line-height"),isListStylePositionKeyword:P("list-style-position"),isListStyleTypeKeyword:P("list-style-type"),isNumber:j,isPrefixed:L,isPositiveNumber:D,isRgbColor:N,isStyleKeyword:P("*-style"),isTime:R,isUnit:function(t,e){var n=F(e);return n==e.length&&0===parseInt(e)||-1<n&&-1<t.indexOf(e.slice(n+1))||"auto"==e||"inherit"==e}.bind(null,e),isUrl:M,isVariable:I,isWidth:P("width"),isZIndex:B}}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r={"*":{colors:{opacity:!0},properties:{backgroundClipMerging:!0,backgroundOriginMerging:!0,backgroundSizeMerging:!0,colors:!0,ieBangHack:!1,ieFilters:!1,iePrefixHack:!1,ieSuffixHack:!1,merging:!0,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,mergeablePseudoClasses:[":active",":after",":before",":empty",":checked",":disabled",":empty",":enabled",":first-child",":first-letter",":first-line",":first-of-type",":focus",":hover",":lang",":last-child",":last-of-type",":link",":not",":nth-child",":nth-last-child",":nth-last-of-type",":nth-of-type",":only-child",":only-of-type",":root",":target",":visited"],mergeablePseudoElements:["::after","::before","::first-letter","::first-line"],mergeLimit:8191,multiplePseudoMerging:!0},units:{ch:!0,in:!0,pc:!0,pt:!0,rem:!0,vh:!0,vm:!0,vmax:!0,vmin:!0,vw:!0}}};function o(t,e){for(var r in t){var i=t[r];"object"!==n(i)||Array.isArray(i)?e[r]=r in e?e[r]:i:e[r]=o(i,e[r]||{})}return e}r.ie11=r["*"],r.ie10=r["*"],r.ie9=o(r["*"],{properties:{ieFilters:!0,ieSuffixHack:!0}}),r.ie8=o(r.ie9,{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,iePrefixHack:!0,merging:!1},selectors:{mergeablePseudoClasses:[":after",":before",":first-child",":first-letter",":focus",":hover",":visited"],mergeablePseudoElements:[]},units:{ch:!1,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}}),r.ie7=o(r.ie8,{properties:{ieBangHack:!0},selectors:{ie7Hack:!0,mergeablePseudoClasses:[":first-child",":first-letter",":hover",":visited"]}}),t.exports=function(t){return o(r["*"],function(t){if("object"==n(t))return t;if(!/[,\+\-]/.test(t))return r[t]||r["*"];var e=t.split(","),i=e[0]in r?r[e.shift()]:r["*"];return t={},e.forEach((function(e){var n="+"==e[0],r=(e=(r=e.substring(1).split("."))[0],r[1]);t[e]=t[e]||{},t[e][r]=n})),o(i,t)}(t))}},function(t,e,n){var r=n(391);t.exports=function(t){return t||r}},function(t,e,n){var r=n(188),o=n(409),i=n(26),a=n(410),s=n(411),l=n(48);t.exports=function t(e,n,c,u){var p=n.protocol||n.hostname,f=!1,d=l(i.parse(e),n||{});void 0!==n.hostname&&(d.protocol=n.protocol||"http:",d.path=d.href),(0,(p&&!s(p)||a(e)?r:o).get)(d,(function(r){var o=[];if(!f)return r.statusCode<200||399<r.statusCode?u(r.statusCode,null):299<r.statusCode?t(i.resolve(e,r.headers.location),n,c,u):(r.on("data",(function(t){o.push(t.toString())})),void r.on("end",(function(){var t=o.join("");u(null,t)})))})).on("error",(function(t){f||(f=!0,u(t.message,null))})).on("timeout",(function(){f||(f=!0,u("timeout",null))})).setTimeout(c)}},function(t,e,n){(function(e,r,o){var i=n(189),a=n(34),s=n(190),l=n(191),c=n(401),u=s.IncomingMessage,p=s.readyStates;a(s=t.exports=function(t){var n,r=this;l.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+new e(t.auth).toString("base64")),Object.keys(t.headers).forEach((function(e){r.setHeader(e,t.headers[e])}));var o=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!i.abortController)n=!(o=!1);else if("prefer-streaming"===t.mode)n=!1;else if("allow-wrong-content-type"===t.mode)n=!i.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(t,e){return i.fetch&&e?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&t?"arraybuffer":i.vbArray&&t?"text:vbarray":"text"}(n,o),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))},l.Writable),s.prototype.setHeader=function(t,e){var n=t.toLowerCase();-1===f.indexOf(n)&&(this._headers[n]={name:t,value:e})},s.prototype.getHeader=function(t){return(t=this._headers[t.toLowerCase()])?t.value:null},s.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},s.prototype._onFinish=function(){var t=this;if(!t._destroyed){var n=t._opts,a=t._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=i.arraybuffer?c(e.concat(t._body)):i.blobConstructor?new r.Blob(t._body.map((function(t){return c(t)})),{type:(a["content-type"]||{}).value||""}):e.concat(t._body).toString());var l=[];if(Object.keys(a).forEach((function(t){var e=a[t].name;t=a[t].value,Array.isArray(t)?t.forEach((function(t){l.push([e,t])})):l.push([e,t])})),"fetch"===t._mode){var u,f=null;i.abortController&&(f=(u=new AbortController).signal,t._fetchAbortController=u,"requestTimeout"in n&&0!==n.requestTimeout&&(t._fetchTimer=r.setTimeout((function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()}),n.requestTimeout))),r.fetch(t._opts.url,{method:t._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:f}).then((function(e){t._fetchResponse=e,t._connect()}),(function(e){r.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)}))}else{var d=t._xhr=new r.XMLHttpRequest;try{d.open(t._opts.method,t._opts.url,!0)}catch(n){return void o.nextTick((function(){t.emit("error",n)}))}"responseType"in d&&(d.responseType=t._mode.split(":")[0]),"withCredentials"in d&&(d.withCredentials=!!n.withCredentials),"text"===t._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(d.timeout=n.requestTimeout,d.ontimeout=function(){t.emit("requestTimeout")}),l.forEach((function(t){d.setRequestHeader(t[0],t[1])})),t._response=null,d.onreadystatechange=function(){switch(d.readyState){case p.LOADING:case p.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(d.onprogress=function(){t._onXHRProgress()}),d.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{d.send(s)}catch(n){return void o.nextTick((function(){t.emit("error",n)}))}}}},s.prototype._onXHRProgress=function(){!function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return}}(this._xhr)||this._destroyed||(this._response||this._connect(),this._response._onXHRProgress())},s.prototype._connect=function(){var t=this;t._destroyed||(t._response=new u(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",(function(e){t.emit("error",e)})),t.emit("response",t._response))},s.prototype._write=function(t,e,n){this._body.push(t),n()},s.prototype.abort=s.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},s.prototype.end=function(t,e,n){"function"==typeof t&&(n=t,t=void 0),l.Writable.prototype.end.call(this,t,e,n)},s.prototype.flushHeaders=function(){},s.prototype.setTimeout=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(22).Buffer,n(17),n(14))},function(t,e){},function(t,e,n){"use strict";var r=n(128).Buffer,o=n(395);function i(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),this.head=null,this.tail=null,this.length=0}t.exports=(i.prototype.push=function(t){t={data:t,next:null},0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},i.prototype.unshift=function(t){t={data:t,next:this.head},0===this.length&&(this.tail=t),this.head=t,++this.length},i.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},i.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e=r.allocUnsafe(t>>>0),n=this.head,o=0;n;)!function(t,e,n){t.copy(e,n)}(n.data,e,o),o+=n.data.length,n=n.next;return e},i),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(397),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(17))},function(t,e,n){(function(t,e){!function(t,n){"use strict";var r,o,i,a,s,l;function c(t){delete o[t]}function u(t){if(i)setTimeout(u,0,t);else{var e=o[t];if(e){i=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{c(t),i=!1}}}}t.setImmediate||(r=1,i=!(o={}),a=t.document,l=(l=Object.getPrototypeOf&&Object.getPrototypeOf(t))&&l.setTimeout?l:t,("[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick((function(){u(t)}))}}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){function e(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(n)&&u(+e.data.slice(n.length))}var n="setImmediate$"+Math.random()+"$";t.addEventListener?t.addEventListener("message",e,!1):t.attachEvent("onmessage",e),s=function(e){t.postMessage(n+e,"*")}}:t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){u(t.data)},s=function(e){t.port2.postMessage(e)}}:a&&"onreadystatechange"in a.createElement("script")?function(){var t=a.documentElement;s=function(e){var n=a.createElement("script");n.onreadystatechange=function(){u(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}:function(){s=function(t){setTimeout(u,0,t)}})(),l.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];return o[r]={callback:t,args:e},s(r),r++},l.clearImmediate=c)}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(17),n(14))},function(t,e,n){(function(e){function n(t){try{if(!e.localStorage)return}catch(t){return}return null!=(t=e.localStorage[t])&&"true"===String(t).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,n(17))},function(t,e,n){var r=n(22),o=r.Buffer;function i(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=o(t),void 0!==e?"string"==typeof n?t.fill(e,n):t.fill(e):t.fill(0),t},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){"use strict";t.exports=o;var r=n(198);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}(t=Object.create(n(61))).inherits=n(34),t.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){var r=n(22).Buffer;t.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(r.isBuffer(t)){for(var e=new Uint8Array(t.length),n=t.length,o=0;o<n;o++)e[o]=t[o];return e.buffer}throw new Error("Argument must be a Buffer")}},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r,o=arguments[e];for(r in o)n.call(o,r)&&(t[r]=o[r])}return t};var n=Object.prototype.hasOwnProperty},function(t,e){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(t,e,n){(function(t,r){var o;function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(a){var s="object"==i(e)&&e&&!e.nodeType&&e,l="object"==i(t)&&t&&!t.nodeType&&t,c="object"==(void 0===r?"undefined":i(r))&&r;c.global!==c&&c.window!==c&&c.self!==c||(a=c);var u,p,f=2147483647,d=36,h=26,g=38,m=700,v=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=d-1,E=Math.floor,x=String.fromCharCode;function T(t){throw new RangeError(_[t])}function C(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function A(t,e){var n=t.split("@"),r="";return 1<n.length&&(r=n[0]+"@",t=n[1]),r+C((t=t.replace(b,".")).split("."),e).join(".")}function O(t){for(var e,n,r=[],o=0,i=t.length;o<i;)55296<=(e=t.charCodeAt(o++))&&e<=56319&&o<i?56320==(64512&(n=t.charCodeAt(o++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--):r.push(e);return r}function S(t){return C(t,(function(t){var e="";return 65535<t&&(e+=x((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+x(t)})).join("")}function k(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function P(t,e,n){var r=0;for(t=n?E(t/m):t>>1,t+=E(t/e);w*h>>1<t;r+=d)t=E(t/w);return E(r+(w+1)*t/(t+g))}function j(t){var e,n,r,o,i,a,s,l=[],c=t.length,u=0,p=128,g=72,m=t.lastIndexOf("-");for(m<0&&(m=0),n=0;n<m;++n)128<=t.charCodeAt(n)&&T("not-basic"),l.push(t.charCodeAt(n));for(r=0<m?m+1:0;r<c;){for(o=u,i=1,a=d;c<=r&&T("invalid-input"),s=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:d}(t.charCodeAt(r++)),(d<=s||s>E((f-u)/i))&&T("overflow"),u+=s*i,!(s<(s=a<=g?1:g+h<=a?h:a-g));a+=d)i>E(f/(s=d-s))&&T("overflow"),i*=s;g=P(u-o,e=l.length+1,0==o),E(u/e)>f-p&&T("overflow"),p+=E(u/e),u%=e,l.splice(u++,0,p)}return S(l)}function N(t){for(var e,n,r,o,i,a,s,l,c,u,p=[],g=(t=O(t)).length,m=128,v=72,y=e=0;y<g;++y)(s=t[y])<128&&p.push(x(s));for(n=r=p.length,r&&p.push("-");n<g;){for(o=f,y=0;y<g;++y)m<=(s=t[y])&&s<o&&(o=s);for(o-m>E((f-e)/(l=n+1))&&T("overflow"),e+=(o-m)*l,m=o,y=0;y<g;++y)if((s=t[y])<m&&++e>f&&T("overflow"),s==m){for(i=e,a=d;!(i<(c=a<=v?1:v+h<=a?h:a-v));a+=d)p.push(x(k(c+(u=i-c)%(c=d-c),0))),i=E(u/c);p.push(x(k(i,0))),v=P(e,l,n==r),e=0,++n}++e,++m}return p.join("")}if(u={version:"1.4.1",ucs2:{decode:O,encode:S},decode:j,encode:N,toASCII:function(t){return A(t,(function(t){return y.test(t)?"xn--"+N(t):t}))},toUnicode:function(t){return A(t,(function(t){return v.test(t)?j(t.slice(4).toLowerCase()):t}))}},"object"==i(n(87))&&n(87))void 0===(o=function(){return u}.call(e,n,e,t))||(t.exports=o);else if(s&&l)if(t.exports==s)l.exports=u;else for(p in u)u.hasOwnProperty(p)&&(s[p]=u[p]);else a.punycode=u}(this)}).call(this,n(54)(t),n(17))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"===r(t)&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,n){"use strict";e.decode=e.parse=n(407),e.encode=e.stringify=n(408)},function(t,e,n){"use strict";t.exports=function(t,e,n,o){n=n||"=";var i={};if("string"!=typeof t||0===t.length)return i;var a=/\+/g;t=t.split(e=e||"&"),e=1e3,o&&"number"==typeof o.maxKeys&&(e=o.maxKeys);var s=t.length;0<e&&e<s&&(s=e);for(var l=0;l<s;++l){var c,u=0<=(u=(p=t[l].replace(a,"%20")).indexOf(n))?(c=p.substr(0,u),p.substr(u+1)):(c=p,""),p=decodeURIComponent(c);u=decodeURIComponent(u),function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(i,p)?r(i[p])?i[p].push(u):i[p]=[i[p],u]:i[p]=u}return i};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){switch(r(t)){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}t.exports=function(t,e,n,l){return e=e||"&",n=n||"=","object"===r(t=null===t?void 0:t)?a(s(t),(function(r){var s=encodeURIComponent(o(r))+n;return i(t[r])?a(t[r],(function(t){return s+encodeURIComponent(o(t))})).join(e):s+encodeURIComponent(o(t[r]))})).join(e):l?encodeURIComponent(o(l))+n+encodeURIComponent(o(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var s=Object.keys||function(t){var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n}},function(t,e,n){var r,o=n(188),i=n(26),a=t.exports;for(r in o)o.hasOwnProperty(r)&&(a[r]=o[r]);function s(t){if((t="string"==typeof t?i.parse(t):t).protocol||(t.protocol="https:"),"https:"!==t.protocol)throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}a.request=function(t,e){return t=s(t),o.request.call(this,t,e)},a.get=function(t,e){return t=s(t),o.get.call(this,t,e)}},function(t,e){var n=/^http:\/\//;t.exports=function(t){return n.test(t)}},function(t,e){var n=/^https:\/\//;t.exports=function(t){return n.test(t)}},function(t,e){t.exports=function(t){return Array.isArray(t)?t:!1===t?["none"]:void 0===t?["local"]:t.split(",")}},function(t,e,n){(function(e){var r=n(26),o=n(48);t.exports=function(t){return o(function(t){return t?{hostname:r.parse(t).hostname,port:parseInt(r.parse(t).port)}:{}}(e.env.HTTP_PROXY||e.env.http_proxy),t||{})}}).call(this,n(14))},function(t,e){t.exports=function(t){return t||5e3}},function(t,e){t.exports=function(t){return void 0===t||!!t}},function(t,e,n){(function(e){var r=n(21);t.exports=function(t){return t?r.resolve(t):e.cwd()}}).call(this,n(14))},function(t,e,n){var r=n(199).SourceMapConsumer;t.exports=function(){var t={};return{all:function(t){return t}.bind(null,t),isTracking:function(t,e){return e in t}.bind(null,t),originalPositionFor:function t(e,n,r,o){for(var i,a=n[0],s=n[1],l=n[2],c={line:a,column:s+r};!i&&c.column>s;)c.column--,i=e[l].originalPositionFor(c);return!i||i.column<0?n:null===i.line&&1<a&&0<o?t(e,[a-1,s,l],r,o-1):null!==i.line?function(t){return[t.line,t.column,t.source]}(i):n}.bind(null,t),track:function(t,e,n){t[e]=new r(n)}.bind(null,t)}}},function(t,e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(t){if(0<=t&&t<n.length)return n[t];throw new TypeError("Must be between 0 and 63: "+t)},e.decode=function(t){return 65<=t&&t<=90?t-65:97<=t&&t<=122?t-97+26:48<=t&&t<=57?t-48+52:43==t?62:47==t?63:-1}},function(t,e,n){var r=n(62);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(t,e){this._array.forEach(t,e)},o.prototype.add=function(t){!function(t,e){var n=t.generatedLine,o=e.generatedLine,i=t.generatedColumn,a=e.generatedColumn;return n<o||o==n&&i<=a||r.compareByGeneratedPositionsInflated(t,e)<=0}(this._last,t)?this._sorted=!1:this._last=t,this._array.push(t)},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=o},function(t,e,n){var r=n(62),o=n(421),i=n(202).ArraySet,a=n(201),s=n(422).quickSort;function l(t,e){var n=t;return new(null!=(n="string"==typeof t?r.parseSourceMapInput(t):n).sections?p:c)(n,e)}function c(t,e){var n=t;"string"==typeof t&&(n=r.parseSourceMapInput(t));var o=r.getArg(n,"version"),a=r.getArg(n,"sources"),s=r.getArg(n,"names",[]),l=r.getArg(n,"sourceRoot",null),c=r.getArg(n,"sourcesContent",null);if(t=r.getArg(n,"mappings"),n=r.getArg(n,"file",null),o!=this._version)throw new Error("Unsupported version: "+o);l=l&&r.normalize(l),a=a.map(String).map(r.normalize).map((function(t){return l&&r.isAbsolute(l)&&r.isAbsolute(t)?r.relative(l,t):t})),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map((function(t){return r.computeSourceURL(l,t,e)})),this.sourceRoot=l,this.sourcesContent=c,this._mappings=t,this._sourceMapURL=e,this.file=n}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function p(t,e){var n=t;if("string"==typeof t&&(n=r.parseSourceMapInput(t)),t=r.getArg(n,"version"),n=r.getArg(n,"sections"),t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new i,this._names=new i;var o={line:-1,column:0};this._sections=n.map((function(t){if(t.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(t,"offset"),i=r.getArg(n,"line"),a=r.getArg(n,"column");if(i<o.line||i===o.line&&a<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=n,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new l(r.getArg(t,"map"),e)}}))}l.fromSourceMap=function(t,e){return c.fromSourceMap(t,e)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(t,e){return";"===(e=t.charAt(e))||","===e},l.prototype._parseMappings=function(t,e){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(t,e,n){var o;switch(e=e||null,n||l.GENERATED_ORDER){case l.GENERATED_ORDER:o=this._generatedMappings;break;case l.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var i=this.sourceRoot;o.map((function(t){var e=null===t.source?null:this._sources.at(t.source);return{source:r.computeSourceURL(i,e,this._sourceMapURL),generatedLine:t.generatedLine,generatedColumn:t.generatedColumn,originalLine:t.originalLine,originalColumn:t.originalColumn,name:null===t.name?null:this._names.at(t.name)}}),this).forEach(t,e)},l.prototype.allGeneratedPositionsFor=function(t){var e=r.getArg(t,"line"),n={source:r.getArg(t,"source"),originalLine:e,originalColumn:r.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(0<=a){var s=this._originalMappings[a];if(void 0===t.column)for(var l=s.originalLine;s&&s.originalLine===l;)i.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var c=s.originalColumn;s&&s.originalLine===e&&s.originalColumn==c;)i.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return i},e.SourceMapConsumer=l,(c.prototype=Object.create(l.prototype)).consumer=l,c.prototype._findSourceIndex=function(t){var e,n=t;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(e=0;e<this._absoluteSources.length;++e)if(this._absoluteSources[e]==t)return e;return-1},c.fromSourceMap=function(t,e){var n=Object.create(c.prototype),o=n._names=i.fromArray(t._names.toArray(),!0),a=n._sources=i.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=e,n._absoluteSources=n._sources.toArray().map((function(t){return r.computeSourceURL(n.sourceRoot,t,e)}));for(var l=t._mappings.toArray().slice(),p=n.__generatedMappings=[],f=n.__originalMappings=[],d=0,h=l.length;d<h;d++){var g=l[d],m=new u;m.generatedLine=g.generatedLine,m.generatedColumn=g.generatedColumn,g.source&&(m.source=a.indexOf(g.source),m.originalLine=g.originalLine,m.originalColumn=g.originalColumn,g.name&&(m.name=o.indexOf(g.name)),f.push(m)),p.push(m)}return s(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(t,e){for(var n,o,i,l,c=1,p=0,f=0,d=0,h=0,g=0,m=t.length,v=0,y={},b={},_=[],w=[];v<m;)if(";"===t.charAt(v))c++,v++,p=0;else if(","===t.charAt(v))v++;else{for((n=new u).generatedLine=c,l=v;l<m&&!this._charIsMappingSeparator(t,l);l++);if(i=y[o=t.slice(v,l)])v+=o.length;else{for(i=[];v<l;)a.decode(t,v,b),v=b.rest,i.push(b.value);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");y[o]=i}n.generatedColumn=p+i[0],p=n.generatedColumn,1<i.length&&(n.source=h+i[1],h+=i[1],n.originalLine=f+i[2],f=n.originalLine,n.originalLine+=1,n.originalColumn=d+i[3],d=n.originalColumn,4<i.length&&(n.name=g+i[4],g+=i[4])),w.push(n),"number"==typeof n.originalLine&&_.push(n)}s(w,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,s(_,r.compareByOriginalPositions),this.__originalMappings=_},c.prototype._findMapping=function(t,e,n,r,i,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[r]);return o.search(t,e,i,a)},c.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var e=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(e.generatedLine===n.generatedLine){e.lastGeneratedColumn=n.generatedColumn-1;continue}}e.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(t){var e={generatedLine:r.getArg(t,"line"),generatedColumn:r.getArg(t,"column")},n=this._findMapping(e,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(t,"bias",l.GREATEST_LOWER_BOUND));return 0<=n&&(t=this._generatedMappings[n]).generatedLine===e.generatedLine?(null!==(n=r.getArg(t,"source",null))&&(n=this._sources.at(n),n=r.computeSourceURL(this.sourceRoot,n,this._sourceMapURL)),null!==(e=r.getArg(t,"name",null))&&(e=this._names.at(e)),{source:n,line:r.getArg(t,"originalLine",null),column:r.getArg(t,"originalColumn",null),name:e}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(t){return null==t}))},c.prototype.sourceContentFor=function(t,e){if(!this.sourcesContent)return null;if(0<=(o=this._findSourceIndex(t)))return this.sourcesContent[o];var n,o=t;if(null!=this.sourceRoot&&(o=r.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){if(t=o.replace(/^file:\/\//,""),"file"==n.scheme&&this._sources.has(t))return this.sourcesContent[this._sources.indexOf(t)];if((!n.path||"/"==n.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(e)return null;throw new Error('"'+o+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(t){var e=r.getArg(t,"source");return(e=this._findSourceIndex(e))<0?{line:null,column:null,lastColumn:null}:(e={source:e,originalLine:r.getArg(t,"line"),originalColumn:r.getArg(t,"column")},0<=(t=this._findMapping(e,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(t,"bias",l.GREATEST_LOWER_BOUND)))&&(t=this._originalMappings[t]).source===e.source?{line:r.getArg(t,"generatedLine",null),column:r.getArg(t,"generatedColumn",null),lastColumn:r.getArg(t,"lastGeneratedColumn",null)}:{line:null,column:null,lastColumn:null})},e.BasicSourceMapConsumer=c,(p.prototype=Object.create(l.prototype)).constructor=l,p.prototype._version=3,Object.defineProperty(p.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var n=0;n<this._sections[e].consumer.sources.length;n++)t.push(this._sections[e].consumer.sources[n]);return t}}),p.prototype.originalPositionFor=function(t){var e={generatedLine:r.getArg(t,"line"),generatedColumn:r.getArg(t,"column")},n=o.search(e,this._sections,(function(t,e){return t.generatedLine-e.generatedOffset.generatedLine||t.generatedColumn-e.generatedOffset.generatedColumn}));return(n=this._sections[n])?n.consumer.originalPositionFor({line:e.generatedLine-(n.generatedOffset.generatedLine-1),column:e.generatedColumn-(n.generatedOffset.generatedLine===e.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},p.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(t){return t.consumer.hasContentsOfAllSources()}))},p.prototype.sourceContentFor=function(t,e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(t,!0);if(r)return r}if(e)return null;throw new Error('"'+t+'" is not in the SourceMap.')},p.prototype.generatedPositionFor=function(t){for(var e=0;e<this._sections.length;e++){var n=this._sections[e];if(-1!==n.consumer._findSourceIndex(r.getArg(t,"source"))){var o=n.consumer.generatedPositionFor(t);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},p.prototype._parseMappings=function(t,e){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,a=0;a<i.length;a++){var l=i[a],c=o.consumer._sources.at(l.source);c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var u=null;l.name&&(u=o.consumer._names.at(l.name),this._names.add(u),u=this._names.indexOf(u)),u={source:c,generatedLine:l.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(o.generatedOffset.generatedLine===l.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u},this.__generatedMappings.push(u),"number"==typeof u.originalLine&&this.__originalMappings.push(u)}s(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),s(this.__originalMappings,r.compareByOriginalPositions)},e.IndexedSourceMapConsumer=p},function(t,e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(t,n,r,o){if(0===n.length)return-1;var i=function t(n,r,o,i,a,s){var l=Math.floor((r-n)/2)+n,c=a(o,i[l],!0);return 0===c?l:0<c?1<r-l?t(l,r,o,i,a,s):s==e.LEAST_UPPER_BOUND?r<i.length?r:-1:l:1<l-n?t(n,l,o,i,a,s):s==e.LEAST_UPPER_BOUND?l:n<0?-1:n}(-1,n.length,t,n,r,o||e.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;0<=i-1&&0===r(n[i],n[i-1],!0);)--i;return i}},function(t,e){function n(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}e.quickSort=function(t,e){!function t(e,r,o,i){if(o<i){var a=o-1;n(e,function(t,e){return Math.round(t+Math.random()*(e-t))}(o,i),i);for(var s=e[i],l=o;l<i;l++)r(e[l],s)<=0&&n(e,a+=1,l);n(e,a+1,l);var c=a+1;t(e,r,o,c-1),t(e,r,c+1,i)}}(t,e,0,t.length-1)}},function(t,e,n){var r=n(200).SourceMapGenerator,o=n(62),i=/(\r?\n)/,a="$$$isSourceNode$$$";function s(t,e,n,r,o){this.children=[],this.sourceContents={},this.line=null==t?null:t,this.column=null==e?null:e,this.source=null==n?null:n,this.name=null==o?null:o,this[a]=!0,null!=r&&this.add(r)}s.fromStringWithSourceMap=function(t,e,n){function r(){return t()+(t()||"");function t(){return c<l.length?l[c++]:void 0}}var a=new s,l=t.split(i),c=0,u=1,p=0,f=null;return e.eachMapping((function(t){if(null!==f){if(!(u<t.generatedLine)){var e=(n=l[c]||"").substr(0,t.generatedColumn-p);return l[c]=n.substr(t.generatedColumn-p),p=t.generatedColumn,d(f,e),void(f=t)}d(f,r()),u++,p=0}for(;u<t.generatedLine;)a.add(r()),u++;var n;p<t.generatedColumn&&(n=l[c]||"",a.add(n.substr(0,t.generatedColumn)),l[c]=n.substr(t.generatedColumn),p=t.generatedColumn),f=t}),this),c<l.length&&(f&&d(f,r()),a.add(l.splice(c).join(""))),e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),a.setSourceContent(t,r))})),a;function d(t,e){var r;null===t||void 0===t.source?a.add(e):(r=n?o.join(n,t.source):t.source,a.add(new s(t.originalLine,t.originalColumn,r,e,t.name)))}},s.prototype.add=function(t){if(Array.isArray(t))t.forEach((function(t){this.add(t)}),this);else{if(!t[a]&&"string"!=typeof t)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);t&&this.children.push(t)}return this},s.prototype.prepend=function(t){if(Array.isArray(t))for(var e=t.length-1;0<=e;e--)this.prepend(t[e]);else{if(!t[a]&&"string"!=typeof t)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);this.children.unshift(t)}return this},s.prototype.walk=function(t){for(var e,n=0,r=this.children.length;n<r;n++)(e=this.children[n])[a]?e.walk(t):""!==e&&t(e,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(t){var e,n,r=this.children.length;if(0<r){for(e=[],n=0;n<r-1;n++)e.push(this.children[n]),e.push(t);e.push(this.children[n]),this.children=e}return this},s.prototype.replaceRight=function(t,e){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(t,e):"string"==typeof n?this.children[this.children.length-1]=n.replace(t,e):this.children.push("".replace(t,e)),this},s.prototype.setSourceContent=function(t,e){this.sourceContents[o.toSetString(t)]=e},s.prototype.walkSourceContents=function(t){for(var e=0,n=this.children.length;e<n;e++)this.children[e][a]&&this.children[e].walkSourceContents(t);var r=Object.keys(this.sourceContents);for(e=0,n=r.length;e<n;e++)t(o.fromSetString(r[e]),this.sourceContents[r[e]])},s.prototype.toString=function(){var t="";return this.walk((function(e){t+=e})),t},s.prototype.toStringWithSourceMap=function(t){var e={code:"",line:1,column:0},n=new r(t),o=!1,i=null,a=null,s=null,l=null;return this.walk((function(t,r){e.code+=t,null!==r.source&&null!==r.line&&null!==r.column?(i===r.source&&a===r.line&&s===r.column&&l===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:e.line,column:e.column},name:r.name}),i=r.source,a=r.line,s=r.column,l=r.name,o=!0):o&&(n.addMapping({generated:{line:e.line,column:e.column}}),i=null,o=!1);for(var c=0,u=t.length;c<u;c++)10===t.charCodeAt(c)?(e.line++,e.column=0,c+1===u?(i=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:e.line,column:e.column},name:r.name})):e.column++})),this.walkSourceContents((function(t,e){n.setSourceContent(t,e)})),{code:e.code,map:n}},e.SourceNode=s},function(t,e,n){(function(e,r){function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(63),a=n(21),s=n(425),l=n(205),c=n(129),u=n(428),p=n(429),f=n(430),d=n(203),h=n(204),g=n(206),m=n(432),v=n(10),y=n(15),b=n(88),_=n(207),w=n(64);function E(t,e,n){return e.source=void 0,e.sourcesContent[void 0]=t,e.stats.originalSize+=t.length,A(t,e,{inline:e.options.inline},n)}function x(t,e,n){var r,o,i;for(r in t)i=t[r],o=T(r),n.push(C(o)),e.sourcesContent[o]=i.styles,i.sourceMap&&function(t,e,n){t="string"==typeof t?JSON.parse(t):t,t=w(e)?h(t,e):d(t,e||"uri:unknown",n.options.rebaseTo),n.inputSourceMapTracker.track(e,t)}(i.sourceMap,o,e);return n}function T(t){var e=a.resolve("");return w(t)?t:(t=a.isAbsolute(t)?t:a.resolve(t),t=a.relative(e,t),p(t))}function C(t){return g("url("+t+")","")+y.SEMICOLON}function A(t,e,n,o){var s={};return e.source?w(e.source)?(s.fromBase=e.source,s.toBase=e.source):(a.isAbsolute(e.source)?s.fromBase=a.dirname(e.source):s.fromBase=a.dirname(a.resolve(e.source)),s.toBase=e.options.rebaseTo):(s.fromBase=a.resolve(""),s.toBase=e.options.rebaseTo),t=m(t,e),t=f(t,e.options.rebase,e.validator,s),function(t){return 1!=t.length||"none"!=t[0]}(n.inline)?function(t,e,n,o){return function t(e){for(var n,o=0,s=e.sourceTokens.length;o<s;o++){if((n=e.sourceTokens[o])[0]==v.AT_RULE&&_(n[1]))return e.sourceTokens.splice(0,o),function(e,n){var o=(s=l(e[1]))[0],s=s[1];return e=e[2],(w(o)?function(e,n,o,i){var a=c(e,!0,i.inline),s=e,l=e in i.externalContext.sourcesContent,u=!b(e);return-1<i.inlinedStylesheets.indexOf(e)?(i.warnings.push('Ignoring remote @import of "'+e+'" as it has already been imported.'),i.sourceTokens=i.sourceTokens.slice(1),t(i)):i.localOnly&&i.afterContent?(i.warnings.push('Ignoring remote @import of "'+e+'" as no callback given and after other content.'),i.sourceTokens=i.sourceTokens.slice(1),t(i)):u?(i.warnings.push('Skipping remote @import of "'+e+'" as no protocol given.'),i.outputTokens=i.outputTokens.concat(i.sourceTokens.slice(0,1)),i.sourceTokens=i.sourceTokens.slice(1),t(i)):i.localOnly&&!l?(i.warnings.push('Skipping remote @import of "'+e+'" as no callback given.'),i.outputTokens=i.outputTokens.concat(i.sourceTokens.slice(0,1)),i.sourceTokens=i.sourceTokens.slice(1),t(i)):!a&&i.afterContent?(i.warnings.push('Ignoring remote @import of "'+e+'" as resource is not allowed and after other content.'),i.sourceTokens=i.sourceTokens.slice(1),t(i)):a?(i.inlinedStylesheets.push(e),l?p(null,i.externalContext.sourcesContent[e]):i.fetch(e,i.inlineRequest,i.inlineTimeout,p)):(i.warnings.push('Skipping remote @import of "'+e+'" as resource is not allowed.'),i.outputTokens=i.outputTokens.concat(i.sourceTokens.slice(0,1)),i.sourceTokens=i.sourceTokens.slice(1),t(i));function p(a,l){return a?(i.errors.push('Broken @import declaration of "'+e+'" - '+a),r.nextTick((function(){i.outputTokens=i.outputTokens.concat(i.sourceTokens.slice(0,1)),i.sourceTokens=i.sourceTokens.slice(1),t(i)}))):(i.inline=i.externalContext.options.inline,i.isRemote=!0,i.externalContext.source=s,i.externalContext.sourcesContent[e]=l,i.externalContext.stats.originalSize+=l.length,A(l,i.externalContext,i,(function(e){return e=O(e,n,o),i.outputTokens=i.outputTokens.concat(e),i.sourceTokens=i.sourceTokens.slice(1),t(i)})))}}:function(e,n,r,o){var s=a.resolve(""),l=a.isAbsolute(e)?a.resolve(s,"/"==e[0]?e.substring(1):e):a.resolve(o.rebaseTo,e),u=a.relative(s,l),f=c(e,!1,o.inline);if(u=(s=p(u))in o.externalContext.sourcesContent,-1<o.inlinedStylesheets.indexOf(l))o.warnings.push('Ignoring local @import of "'+e+'" as it has already been imported.');else if(u||i.existsSync(l)&&i.statSync(l).isFile())if(!f&&o.afterContent)o.warnings.push('Ignoring local @import of "'+e+'" as resource is not allowed and after other content.');else if(o.afterContent)o.warnings.push('Ignoring local @import of "'+e+'" as after other content.');else{if(f)return u=u?o.externalContext.sourcesContent[s]:i.readFileSync(l,"utf-8"),o.inlinedStylesheets.push(l),o.inline=o.externalContext.options.inline,o.externalContext.source=s,o.externalContext.sourcesContent[s]=u,o.externalContext.stats.originalSize+=u.length,A(u,o.externalContext,o,(function(e){return e=O(e,n,r),o.outputTokens=o.outputTokens.concat(e),o.sourceTokens=o.sourceTokens.slice(1),t(o)}));o.warnings.push('Skipping local @import of "'+e+'" as resource is not allowed.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1))}else o.errors.push('Ignoring local @import of "'+e+'" as resource is missing.');return o.sourceTokens=o.sourceTokens.slice(1),t(o)})(o,s,e,n)}(n,e);n[0]==v.AT_RULE||n[0]==v.COMMENT?e.outputTokens.push(n):(e.outputTokens.push(n),e.afterContent=!0)}return e.sourceTokens=[],e.callback(e.outputTokens)}({afterContent:!1,callback:o,errors:e.errors,externalContext:e,fetch:e.options.fetch,inlinedStylesheets:n.inlinedStylesheets||e.inlinedStylesheets,inline:n.inline,inlineRequest:e.options.inlineRequest,inlineTimeout:e.options.inlineTimeout,isRemote:n.isRemote||!1,localOnly:e.localOnly,outputTokens:[],rebaseTo:e.options.rebaseTo,sourceTokens:t,warnings:e.warnings})}(t,e,n,o):o(t)}function O(t,e,n){return e?[[v.NESTED_BLOCK,[[v.NESTED_BLOCK_SCOPE,"@media "+e,n]],t]]:t}t.exports=function(t,n,r){return function(t,n,r){return"string"==typeof t?E(t,n,r):e.isBuffer(t)?E(t.toString(),n,r):Array.isArray(t)?function(t,e,n){return A(t.reduce((function(t,n){return"string"==typeof n?function(t,e){return e.push(C(T(t))),e}(n,t):x(n,e,t)}),[]).join(""),e,{inline:["all"]},n)}(t,n,r):"object"==o(t)?function(t,e,n){return A(x(t,e,[]).join(""),e,{inline:["all"]},n)}(t,n,r):void 0}(t,n,(function(t){return s(t,n,(function(){return u(n,(function(){return r(t)}))}))}))}}).call(this,n(22).Buffer,n(14))},function(t,e,n){(function(e,r){var o=n(63),i=n(21),a=n(129),s=n(426),l=n(203),c=n(204),u=n(10),p=n(88),f=n(427),d=n(64),h=/^\/\*# sourceMappingURL=(\S+) \*\/$/;function g(t){return(t=(t[0]==u.AT_RULE||t[0]==u.COMMENT?t:t[1][0])[2][0])[2]}function m(t,e){for(var n=t[1],r=t[2],o=[],i=0,a=r.length;i<a;i++)o.push(e.originalPositionFor(r[i],n.length));t[2]=o}t.exports=function(t,n,v){var y={callback:v,fetch:n.options.fetch,index:0,inline:n.options.inline,inlineRequest:n.options.inlineRequest,inlineTimeout:n.options.inlineTimeout,inputSourceMapTracker:n.inputSourceMapTracker,localOnly:n.localOnly,processedTokens:[],rebaseTo:n.options.rebaseTo,sourceTokens:t,warnings:n.warnings};return n.options.sourceMap&&0<t.length?function t(n){for(var v,y,b=[],_=g(n.sourceTokens[0]),w=n.sourceTokens.length;n.index<w;n.index++)if((v=g(y=n.sourceTokens[n.index]))!=_&&(b=[],_=v),b.push(y),n.processedTokens.push(y),y[0]==u.COMMENT&&h.test(y[1]))return function(n,g,v,y){return function(t,n,u){var g,m,v=h.exec(t)[1];return f(v)?(g=function(t){var n=(o=s(t))[2]?o[2].split(/[=;]/)[2]:"us-ascii",o="utf8"==(t=o[3]?o[3].split(";")[1]:"utf8")?e.unescape(o[4]):o[4];return(t=new r(o,t)).charset=n,JSON.parse(t.toString())}(v),u(g)):d(v)?function(t,e,n){var r=a(t,!0,e.inline),o=!p(t);return e.localOnly?(e.warnings.push('Cannot fetch remote resource from "'+t+'" as no callback given.'),n(null)):o?(e.warnings.push('Cannot fetch "'+t+'" as no protocol given.'),n(null)):r?void e.fetch(t,e.inlineRequest,e.inlineTimeout,(function(r,o){return r?(e.warnings.push('Missing source map at "'+t+'" - '+r),n(null)):void n(o)})):(e.warnings.push('Cannot fetch "'+t+'" as resource is not allowed.'),n(null))}(v,n,(function(t){t?(t=JSON.parse(t),m=c(t,v),u(m)):u(null)})):(g=function(t,e){var n=a(t,!1,e.inline);return o.existsSync(t)&&o.statSync(t).isFile()?n?(t=o.readFileSync(t,"utf-8"),JSON.parse(t)):(e.warnings.push('Cannot fetch "'+t+'" as resource is not allowed.'),null):(e.warnings.push('Ignoring local source map at "'+t+'" as resource is missing.'),null)}(t=i.resolve(n.rebaseTo,v),n))?(m=l(g,t,n.rebaseTo),u(m)):u(null)}(n,y,(function(e){return e&&(y.inputSourceMapTracker.track(g,e),function t(e,n){for(var r,o=0,i=e.length;o<i;o++)switch((r=e[o])[0]){case u.AT_RULE:m(r,n);break;case u.AT_RULE_BLOCK:t(r[1],n),t(r[2],n);break;case u.AT_RULE_BLOCK_SCOPE:m(r,n);break;case u.NESTED_BLOCK:t(r[1],n),t(r[2],n);break;case u.NESTED_BLOCK_SCOPE:case u.COMMENT:m(r,n);break;case u.PROPERTY:t(r,n);break;case u.PROPERTY_BLOCK:t(r[1],n);break;case u.PROPERTY_NAME:case u.PROPERTY_VALUE:m(r,n);break;case u.RULE:t(r[1],n),t(r[2],n);break;case u.RULE_SCOPE:m(r,n)}return e}(v,y.inputSourceMapTracker)),y.index++,t(y)}))}(y[1],v,b,n);return n.callback(n.processedTokens)}(y):v(t)}}).call(this,n(17),n(22).Buffer)},function(t,e){var n=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/;t.exports=function(t){return n.exec(t)}},function(t,e){var n=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/;t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(63),o=n(21),i=n(129),a=n(88),s=n(64);t.exports=function(t,e){var n={callback:e,fetch:t.options.fetch,index:0,inline:t.options.inline,inlineRequest:t.options.inlineRequest,inlineTimeout:t.options.inlineTimeout,localOnly:t.localOnly,rebaseTo:t.options.rebaseTo,sourcesContent:t.sourcesContent,uriToSource:function(t){var e,n,r,o,i,a={};for(r in t)for(o=0,i=(e=t[r]).sources.length;o<i;o++)n=e.sources[o],r=e.sourceContentFor(n,!0),a[n]=r;return a}(t.inputSourceMapTracker.all()),warnings:t.warnings};return t.options.sourceMap&&t.options.sourceMapInlineSources?function t(e){for(var n,l,c=Object.keys(e.uriToSource),u=c.length;e.index<u;e.index++){if(n=c[e.index],!(l=e.uriToSource[n]))return function(e,n){var l;return s(e)?function(t,e,n){var r=i(t,!0,e.inline),o=!a(t);return e.localOnly?(e.warnings.push('Cannot fetch remote resource from "'+t+'" as no callback given.'),n(null)):o?(e.warnings.push('Cannot fetch "'+t+'" as no protocol given.'),n(null)):r?void e.fetch(t,e.inlineRequest,e.inlineTimeout,(function(r,o){r&&e.warnings.push('Missing original source at "'+t+'" - '+r),n(o)})):(e.warnings.push('Cannot fetch "'+t+'" as resource is not allowed.'),n(null))}(e,n,(function(r){return n.index++,n.sourcesContent[e]=r,t(n)})):(l=function(t,e){var n=i(t,!1,e.inline);return t=o.resolve(e.rebaseTo,t),r.existsSync(t)&&r.statSync(t).isFile()?n?r.readFileSync(t,"utf8"):(e.warnings.push('Cannot fetch "'+t+'" as resource is not allowed.'),null):(e.warnings.push('Ignoring local source map at "'+t+'" as resource is missing.'),null)}(e,n),n.index++,n.sourcesContent[e]=l,t(n))}(n,e);e.sourcesContent[n]=l}return e.callback()}(n):e()}},function(t,e){var n=/\\/g;t.exports=function(t){return t.replace(n,"/")}},function(t,e,n){var r=n(205),o=n(206),i=n(431),a=n(10),s=n(207),l=/^\/\*# sourceMappingURL=(\S+) \*\/$/;function c(t,e,n){var a;s(t[1])&&(a=r(t[1]),n=i(a[0],n),a=a[1],t[1]=o(n,a))}function u(t,e,n){for(var r,o,a,s,l=0,c=t.length;l<c;l++)for(a=2,s=(r=t[l]).length;a<s;a++)o=r[a][1],e.isUrl(o)&&(r[a][1]=i(o,n))}t.exports=function(t,e,n,r){return(e?function t(e,n,r){for(var o,s=0,p=e.length;s<p;s++)switch((o=e[s])[0]){case a.AT_RULE:c(o,0,r);break;case a.AT_RULE_BLOCK:u(o[2],n,r);break;case a.COMMENT:!function(t,e){var n=l.exec(t[1]);n&&-1===n[1].indexOf("data:")&&(t[1]=t[1].replace(n[1],i(n[1],e,!0)))}(o,r);break;case a.NESTED_BLOCK:t(o[2],n,r);break;case a.RULE:u(o[2],n,r)}return e}:function(t,e,n){for(var r,o=0,i=t.length;o<i;o++)(r=t[o])[0]===a.AT_RULE&&c(r,0,n);return t})(t,n,r)}},function(t,e,n){(function(e){var r=n(21),o=n(26),i=/^["']/,a=/["']$/,s=/[\(\)]/,l=/^url\(/i,c=/\)$/,u=/\s/,p="win32"==e.platform;function f(t,e){return!e||function(t){return r.isAbsolute(t)}(t)&&!d(e.toBase)||d(t)||function(t){return"#"==t[0]}(t)||function(t){return/^\w+:\w+/.test(t)}(t)?t:function(t){return 0===t.indexOf("data:")}(t)?"'"+t+"'":d(e.toBase)?o.resolve(e.toBase,t):e.absolute?h(function(t,e){return r.resolve(r.join(e.fromBase||"",t)).replace(e.toBase,"")}(t,e)):h(function(t,e){return r.relative(e.toBase,r.join(e.fromBase||"",t))}(t,e))}function d(t){return/^[^:]+?:\/\//.test(t)||0===t.indexOf("//")}function h(t){return p?t.replace(/\\/g,"/"):t}t.exports=function(t,e,n){t=(r=t.replace(l,"").replace(c,"").trim()).replace(i,"").replace(a,"").trim();var r="'"==r[0]||'"'==r[0]?r[0]:function(t){return-1<t.indexOf("'")?'"':-1<t.indexOf('"')||function(t){return u.test(t)}(t)||function(t){return s.test(t)}(t)?"'":""}(t);return n?f(t,e):"url("+r+f(t,e)+r+")"}}).call(this,n(14))},function(t,e,n){var r=n(15),o=n(10),i=n(81),a="block",s="comment",l="double-quote",c="rule",u="single-quote",p=["@charset","@import"],f=["@-moz-document","@document","@-moz-keyframes","@-ms-keyframes","@-o-keyframes","@-webkit-keyframes","@keyframes","@media","@supports"],d=/\/\* clean\-css ignore:end \*\/$/,h=/^\/\* clean\-css ignore:start \*\//,g=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"],m=["@footnote","@footnotes","@left","@page-float-bottom","@page-float-top","@right"],v=/^\[\s{0,31}\d+\s{0,31}\]$/,y=/[\s\(]/,b=/[\s|\}]*$/;function _(t,e,n,r){var o=t[2];return n.inputSourceMapTracker.isTracking(o)?n.inputSourceMapTracker.originalPositionFor(t,e.length,r):t}function w(t){var e=t[0]==r.AT||t[0]==r.UNDERSCORE;return t=t.join("").split(y)[0],e&&-1<f.indexOf(t)?o.NESTED_BLOCK:e&&-1<p.indexOf(t)?o.AT_RULE:e?o.AT_RULE_BLOCK:o.RULE}function E(t){return t==o.RULE?o.RULE_SCOPE:t==o.NESTED_BLOCK?o.NESTED_BLOCK_SCOPE:t==o.AT_RULE_BLOCK?o.AT_RULE_BLOCK_SCOPE:void 0}t.exports=function(t,e){return function t(e,n,p,f){for(var y,x,T,C,A,O,S,k=[],P=k,j=[],N=[],L=p.level,D=[],I=[],R=[],M=0,B=!1,F=!1,U=!1,H=!1,V=!1,q=p.position;q.index<e.length;q.index++){var z=e[q.index],G=L==u||L==l,W=z==r.SPACE||z==r.TAB,Y=z==r.NEW_LINE_NIX,K=z==r.NEW_LINE_NIX&&e[q.index-1]==r.CARRIAGE_RETURN,$=z==r.CARRIAGE_RETURN&&e[q.index+1]&&e[q.index+1]!=r.NEW_LINE_NIX,X=!F&&L!=s&&!G&&z==r.ASTERISK&&e[q.index-1]==r.FORWARD_SLASH,Q=!B&&!G&&z==r.FORWARD_SLASH&&e[q.index-1]==r.ASTERISK,Z=L==s&&Q,J=(M=Math.max(M,0),0===I.length?[q.line,q.column,q.source]:J);if(O)I.push(z);else if(Z||L!=s)if(X||Z||!U)if(X&&(L==a||L==c)&&1<I.length)N.push(J),I.push(z),R.push(I.slice(0,I.length-2)),I=I.slice(I.length-2),J=[q.line,q.column-1,q.source],D.push(L),L=s;else if(X)D.push(L),L=s,I.push(z);else if(Z&&function(t){return h.test(t.join("")+r.FORWARD_SLASH)}(I))C=I.join("").trim()+z,y=[o.COMMENT,C,[_(J,C,n)]],P.push(y),U=!0,J=N.pop()||null,I=R.pop()||[];else if(Z&&function(t){return d.test(t.join("")+r.FORWARD_SLASH)}(I))S=(C=I.join("")+z).lastIndexOf(r.FORWARD_SLASH+r.ASTERISK),A=C.substring(0,S),y=[o.RAW,A,[_(J,A,n)]],P.push(y),A=C.substring(S),J=[q.line,q.column-A.length+1,q.source],y=[o.COMMENT,A,[_(J,A,n)]],P.push(y),U=!1,L=D.pop(),J=N.pop()||null,I=R.pop()||[];else if(Z)C=I.join("").trim()+z,y=[o.COMMENT,C,[_(J,C,n)]],P.push(y),L=D.pop(),J=N.pop()||null,I=R.pop()||[];else if(Q&&e[q.index+1]!=r.ASTERISK)n.warnings.push("Unexpected '*/' at "+i([q.line,q.column,q.source])+"."),I=[];else if(z!=r.SINGLE_QUOTE||G)if(z==r.SINGLE_QUOTE&&L==u)L=D.pop(),I.push(z);else if(z!=r.DOUBLE_QUOTE||G)if(z==r.DOUBLE_QUOTE&&L==l)L=D.pop(),I.push(z);else if(!X&&!Z&&z!=r.CLOSE_ROUND_BRACKET&&z!=r.OPEN_ROUND_BRACKET&&L!=s&&!G&&0<M)I.push(z);else if(z!=r.OPEN_ROUND_BRACKET||G||L==s||H)if(z!=r.CLOSE_ROUND_BRACKET||G||L==s||H)if(z==r.SEMICOLON&&L==a&&I[0]==r.AT)C=I.join("").trim(),k.push([o.AT_RULE,C,[_(J,C,n)]]),I=[];else if(z==r.COMMA&&L==a&&x)C=I.join("").trim(),x[1].push([E(x[0]),C,[_(J,C,n,x[1].length)]]),I=[];else if(z==r.COMMA&&L==a&&w(I)==o.AT_RULE)I.push(z);else if(z==r.COMMA&&L==a)x=[w(I),[],[]],C=I.join("").trim(),x[1].push([E(x[0]),C,[_(J,C,n,0)]]),I=[];else if(z==r.OPEN_CURLY_BRACKET&&L==a&&x&&x[0]==o.NESTED_BLOCK)C=I.join("").trim(),x[1].push([o.NESTED_BLOCK_SCOPE,C,[_(J,C,n)]]),k.push(x),D.push(L),q.column++,q.index++,I=[],x[2]=t(e,n,p,!0),x=null;else if(z==r.OPEN_CURLY_BRACKET&&L==a&&w(I)==o.NESTED_BLOCK)C=I.join("").trim(),(x=x||[o.NESTED_BLOCK,[],[]])[1].push([o.NESTED_BLOCK_SCOPE,C,[_(J,C,n)]]),k.push(x),D.push(L),q.column++,q.index++,I=[],x[2]=t(e,n,p,!0),x=null;else if(z==r.OPEN_CURLY_BRACKET&&L==a)C=I.join("").trim(),(x=x||[w(I),[],[]])[1].push([E(x[0]),C,[_(J,C,n,x[1].length)]]),P=x[2],k.push(x),D.push(L),L=c,I=[];else if(z==r.OPEN_CURLY_BRACKET&&L==c&&H)j.push(x),x=[o.PROPERTY_BLOCK,[]],T.push(x),P=x[1],D.push(L),L=c,H=!1;else if(z==r.OPEN_CURLY_BRACKET&&L==c&&function(t){return t=t.join("").trim(),-1<g.indexOf(t)||-1<m.indexOf(t)}(I))C=I.join("").trim(),j.push(x),(x=[o.AT_RULE_BLOCK,[],[]])[1].push([o.AT_RULE_BLOCK_SCOPE,C,[_(J,C,n)]]),P.push(x),P=x[2],D.push(L),L=c,I=[];else if(z!=r.COLON||L!=c||H){if(z==r.SEMICOLON&&L==c&&T&&0<j.length&&0<I.length&&I[0]==r.AT)C=I.join("").trim(),x[1].push([o.AT_RULE,C,[_(J,C,n)]]),I=[];else if(z==r.SEMICOLON&&L==c&&T&&0<I.length)C=I.join("").trim(),T.push([o.PROPERTY_VALUE,C,[_(J,C,n)]]),T=null,H=!1,I=[];else if(z==r.SEMICOLON&&L==c&&T&&0===I.length)T=null,H=!1;else if(z==r.SEMICOLON&&L==c&&0<I.length&&I[0]==r.AT)C=I.join(""),P.push([o.AT_RULE,C,[_(J,C,n)]]),H=!1,I=[];else if(z==r.SEMICOLON&&L==c&&V)V=!1,I=[];else if(z!=r.SEMICOLON||L!=c||0!==I.length)if(z==r.CLOSE_CURLY_BRACKET&&L==c&&T&&H&&0<I.length&&0<j.length)C=I.join(""),T.push([o.PROPERTY_VALUE,C,[_(J,C,n)]]),T=null,P=(x=j.pop())[2],L=D.pop(),H=!1,I=[];else if(z==r.CLOSE_CURLY_BRACKET&&L==c&&T&&0<I.length&&I[0]==r.AT&&0<j.length)C=I.join(""),x[1].push([o.AT_RULE,C,[_(J,C,n)]]),T=null,P=(x=j.pop())[2],L=D.pop(),H=!1,I=[];else if(z==r.CLOSE_CURLY_BRACKET&&L==c&&T&&0<j.length)T=null,P=(x=j.pop())[2],L=D.pop(),H=!1;else if(z==r.CLOSE_CURLY_BRACKET&&L==c&&T&&0<I.length)C=I.join(""),T.push([o.PROPERTY_VALUE,C,[_(J,C,n)]]),T=null,x=j.pop(),P=k,L=D.pop(),H=!1,I=[];else if(z==r.CLOSE_CURLY_BRACKET&&L==c&&0<I.length&&I[0]==r.AT)x=T=null,C=I.join("").trim(),P.push([o.AT_RULE,C,[_(J,C,n)]]),P=k,L=D.pop(),H=!1,I=[];else if(z==r.CLOSE_CURLY_BRACKET&&L==c&&D[D.length-1]==c)T=null,P=(x=j.pop())[2],L=D.pop(),V=!(H=!1),I=[];else if(z==r.CLOSE_CURLY_BRACKET&&L==c)x=T=null,P=k,L=D.pop(),H=!1;else if(z==r.CLOSE_CURLY_BRACKET&&L==a&&!f&&q.index<=e.length-1)n.warnings.push("Unexpected '}' at "+i([q.line,q.column,q.source])+"."),I.push(z);else{if(z==r.CLOSE_CURLY_BRACKET&&L==a)break;z==r.OPEN_ROUND_BRACKET&&L==c&&H?(I.push(z),M++):z==r.CLOSE_ROUND_BRACKET&&L==c&&H&&1==M?(I.push(z),C=I.join("").trim(),T.push([o.PROPERTY_VALUE,C,[_(J,C,n)]]),M--,I=[]):z==r.CLOSE_ROUND_BRACKET&&L==c&&H?(I.push(z),M--):z==r.FORWARD_SLASH&&e[q.index+1]!=r.ASTERISK&&L==c&&H&&0<I.length?(C=I.join("").trim(),T.push([o.PROPERTY_VALUE,C,[_(J,C,n)]]),T.push([o.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),I=[]):z==r.FORWARD_SLASH&&e[q.index+1]!=r.ASTERISK&&L==c&&H?(T.push([o.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),I=[]):z==r.COMMA&&L==c&&H&&0<I.length?(C=I.join("").trim(),T.push([o.PROPERTY_VALUE,C,[_(J,C,n)]]),T.push([o.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),I=[]):z==r.COMMA&&L==c&&H?(T.push([o.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),I=[]):z==r.CLOSE_SQUARE_BRACKET&&T&&1<T.length&&0<I.length&&function(t){return v.test(t.join("")+r.CLOSE_SQUARE_BRACKET)}(I)?(I.push(z),C=I.join("").trim(),T[T.length-1][1]+=C,I=[]):(W||Y&&!K)&&L==c&&H&&T&&0<I.length||K&&L==c&&H&&T&&1<I.length?(C=I.join("").trim(),T.push([o.PROPERTY_VALUE,C,[_(J,C,n)]]),I=[]):K&&L==c&&H?I=[]:1==I.length&&K?I.pop():!(0<I.length)&&(W||Y||K||$)||I.push(z)}}else C=I.join("").trim(),T=[o.PROPERTY,[o.PROPERTY_NAME,C,[_(J,C,n)]]],P.push(T),H=!0,I=[];else I.push(z),M--;else I.push(z),M++;else D.push(L),L=l,I.push(z);else D.push(L),L=u,I.push(z);else I.push(z);else I.push(z);O=!O&&z==r.BACK_SLASH,B=X,F=Z,q.line=K||Y||$?q.line+1:q.line,q.column=K||Y||$?0:q.column+1}return H&&n.warnings.push("Missing '}' at "+i([q.line,q.column,q.source])+"."),H&&0<I.length&&(C=I.join("").replace(b,""),T.push([o.PROPERTY_VALUE,C,[_(J,C,n)]]),I=[]),0<I.length&&n.warnings.push("Invalid character(s) '"+I.join("")+"' at "+i(J)+". Ignoring."),k}(t,e,{level:a,position:{source:e.source||void 0,line:1,column:0,index:0}},!1)}},function(t,e,n){var r=n(124).all;function o(t,e){e="string"==typeof e?e:e[1],(0,t.wrap)(t,e),a(t,e),t.output.push(e)}function i(t,e){t.column+e.length>t.format.wrapAt&&(a(t,t.format.breakWith),t.output.push(t.format.breakWith))}function a(t,e){e=e.split("\n"),t.line+=e.length-1,t.column=1<e.length?0:t.column+e.pop().length}t.exports=function(t,e){return e={column:0,format:e.options.format,indentBy:0,indentWith:"",line:1,output:[],spaceAfterClosingBrace:e.options.compatibility.properties.spaceAfterClosingBrace,store:o,wrap:e.options.format.wrapAt?i:function(){}},r(e,t),{styles:e.output.join("")}}},function(t,e,n){(function(e){var r=n(199).SourceMapGenerator,o=n(124).all,i=n(64),a="win32"==e.platform,s=/\//g,l="$stdin",c="\\";function u(t,e){var n="string"==typeof e,r=n?e:e[1];e=n?null:e[2],(0,t.wrap)(t,r),f(t,r,e),t.output.push(r)}function p(t,e){t.column+e.length>t.format.wrapAt&&(f(t,t.format.breakWith,!1),t.output.push(t.format.breakWith))}function f(t,e,n){e=e.split("\n"),n&&function(t,e){for(var n=0,r=e.length;n<r;n++)!function(t,e){var n=e[0],r=e[1],o=e[2],u=o;e=u||l,a&&u&&!i(u)&&(e=u.replace(s,c)),t.outputMap.addMapping({generated:{line:t.line,column:t.column},source:e,original:{line:n,column:r}}),t.inlineSources&&o in t.sourcesContent&&t.outputMap.setSourceContent(e,t.sourcesContent[o])}(t,e[n])}(t,n),t.line+=e.length-1,t.column=1<e.length?0:t.column+e.pop().length}t.exports=function(t,e){return e={column:0,format:e.options.format,indentBy:0,indentWith:"",inlineSources:e.options.sourceMapInlineSources,line:1,output:[],outputMap:new r,sourcesContent:e.sourcesContent,spaceAfterClosingBrace:e.options.compatibility.properties.spaceAfterClosingBrace,store:u,wrap:e.options.format.wrapAt?p:function(){}},o(e,t),{sourceMap:e.outputMap,styles:e.output.join("")}}}).call(this,n(14))},function(t,e,n){(function(t,r){var o;function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(a){var s="object"==i(e)&&e,l="object"==i(t)&&t&&t.exports==s&&t,c="object"==(void 0===r?"undefined":i(r))&&r;function u(t,e){return j.call(t,e)}function p(t,e){if(!t)return e;var n,r={};for(n in e)r[n]=(u(t,n)?t:e)[n];return r}function f(t,e){var n="";return 55296<=t&&t<=57343||1114111<t?(e&&N("character reference outside the permissible Unicode range"),"<22>"):u(S,t)?(e&&N("disallowed character reference"),S[t]):(e&&function(t,e){for(var n=-1,r=t.length;++n<r;)if(t[n]==e)return 1}(k,t)&&N("disallowed character reference"),65535<t&&(n+=P((t-=65536)>>>10&1023|55296),t=56320|1023&t),n+P(t))}function d(t){return"&#x"+t.toString(16).toUpperCase()+";"}function h(t){return"&#"+t+";"}function g(t,e){function n(t){return a(t.charCodeAt(0))}(e=p(e,g.options)).strict&&T.test(t)&&N("forbidden code point");var r=e.encodeEverything,o=e.useNamedReferences,i=e.allowUnsafeSymbols,a=e.decimal?h:d;return r?(t=t.replace(v,(function(t){return o&&u(_,t)?"&"+_[t]+";":n(t)})),o&&(t=t.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),o&&(t=t.replace(b,(function(t){return"&"+_[t]+";"})))):o?t=(t=(t=i?t:t.replace(w,(function(t){return"&"+_[t]+";"}))).replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(b,(function(t){return"&"+_[t]+";"})):i||(t=t.replace(w,n)),t.replace(m,(function(t){var e=t.charCodeAt(0);return t=t.charCodeAt(1),a(1024*(e-55296)+t-56320+65536)})).replace(y,n)}c.global!==c&&c.window!==c||(a=c);var m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=/[\x01-\x7F]/g,y=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,b=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,_={"":"shy","":"zwnj","":"zwj","":"lrm","":"ic","":"it","":"af","":"rlm","":"ZeroWidthSpace","":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp"," ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon",ˆ:"circ",ˇ:"caron","°":"deg","©":"copy","®":"reg","℗":"copysr",℘:"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78",𝒶:"ascr",𝕒:"aopf",𝔞:"afr",𝔸:"Aopf",𝔄:"Afr",𝒜:"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig",𝒷:"bscr",𝕓:"bopf",𝔟:"bfr",𝔹:"Bopf",ℬ:"Bscr",𝔅:"Bfr",𝔠:"cfr",𝒸:"cscr",𝕔:"copf",ℭ:"Cfr",𝒞:"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare",𝔡:"dfr",ⅆ:"dd",𝕕:"dopf",𝒹:"dscr",𝒟:"Dscr",𝔇:"Dfr",ⅅ:"DD",𝔻:"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH",ⅇ:"ee",ℯ:"escr",𝔢:"efr",𝕖:"eopf",ℰ:"Escr",𝔈:"Efr",𝔼:"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr",𝔣:"ffr",𝕗:"fopf",𝒻:"fscr",𝔉:"Ffr",𝔽:"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr",𝕘:"gopf",𝔤:"gfr",𝒢:"Gscr",𝔾:"Gopf",𝔊:"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil",𝔥:"hfr",ℎ:"planckh",𝒽:"hscr",𝕙:"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok",𝕚:"iopf",𝔦:"ifr",𝒾:"iscr",ⅈ:"ii",𝕀:"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath",𝒿:"jscr",𝕛:"jopf",𝔧:"jfr",𝒥:"Jscr",𝔍:"Jfr",𝕁:"Jopf",ĵ:"jcirc",Ĵ:"Jcirc",ȷ:"jmath",𝕜:"kopf",𝓀:"kscr",𝔨:"kfr",𝒦:"Kscr",𝕂:"Kopf",𝔎:"Kfr",ķ:"kcedil",Ķ:"Kcedil",𝔩:"lfr",𝓁:"lscr",ℓ:"ell",𝕝:"lopf",ℒ:"Lscr",𝔏:"Lfr",𝕃:"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot",𝔪:"mfr",𝕞:"mopf",𝓂:"mscr",𝔐:"Mfr",𝕄:"Mopf",ℳ:"Mscr",𝔫:"nfr",𝕟:"nopf",𝓃:"nscr",ℕ:"Nopf",𝒩:"Nscr",𝔑:"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG",𝕠:"oopf",𝔬:"ofr",ℴ:"oscr",𝒪:"Oscr",𝔒:"Ofr",𝕆:"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig",𝔭:"pfr",𝓅:"pscr",𝕡:"popf",ℙ:"Popf",𝔓:"Pfr",𝒫:"Pscr",𝕢:"qopf",𝔮:"qfr",𝓆:"qscr",𝒬:"Qscr",𝔔:"Qfr",ℚ:"Qopf",ĸ:"kgreen",𝔯:"rfr",𝕣:"ropf",𝓇:"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil",𝕤:"sopf",𝓈:"sscr",𝔰:"sfr",𝕊:"Sopf",𝔖:"Sfr",𝒮:"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig",𝔱:"tfr",𝓉:"tscr",𝕥:"topf",𝒯:"Tscr",𝔗:"Tfr",𝕋:"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok",𝓊:"uscr",𝕦:"uopf",𝔲:"ufr",𝕌:"Uopf",𝔘:"Ufr",𝒰:"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr",𝔳:"vfr",𝕧:"vopf",𝓋:"vscr",𝔙:"Vfr",𝕍:"Vopf",𝒱:"Vscr",𝕨:"wopf",𝓌:"wscr",𝔴:"wfr",𝒲:"Wscr",𝕎:"Wopf",𝔚:"Wfr",ŵ:"wcirc",Ŵ:"Wcirc",𝔵:"xfr",𝓍:"xscr",𝕩:"xopf",𝕏:"Xopf",𝔛:"Xfr",𝒳:"Xscr",𝔶:"yfr",𝓎:"yscr",𝕪:"yopf",𝒴:"Yscr",𝔜:"Yfr",𝕐:"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml",𝓏:"zscr",𝔷:"zfr",𝕫:"zopf",ℨ:"Zfr",ℤ:"Zopf",𝒵:"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi",ϵ:"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},w=/["&'<>`]/g,E={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},x=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,T=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,C=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,A={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"",zwnj:""},O={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},S={0:"<22>",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},k=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],P=String.fromCharCode,j={}.hasOwnProperty,N=function(t){throw Error("Parse error: "+t)};(c=function t(e,n){var r=(n=p(n,t.options)).strict;return r&&x.test(e)&&N("malformed character reference"),e.replace(C,(function(t,e,o,i,a,s,l,c,u){var p,d,h;return e?A[h=e]:o?(h=o,i&&n.isAttributeValue?(r&&"="==i&&N("`&` did not start a character reference"),t):(r&&N("named character reference was not terminated by a semicolon"),O[h]+(i||""))):a?(d=a,p=s,r&&!p&&N("character reference was not terminated by a semicolon"),f(d=parseInt(d,10),r)):l?(p=c,r&&!p&&N("character reference was not terminated by a semicolon"),f(d=parseInt(l,16),r)):(r&&N("named character reference was not terminated by a semicolon"),t)}))}).options={isAttributeValue:!(g.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1}),strict:!1};var L={version:"1.2.0",encode:g,decode:c,escape:function(t){return t.replace(w,(function(t){return E[t]}))},unescape:c};if("object"==i(n(87))&&n(87))void 0===(o=function(){return L}.call(e,n,e,t))||(t.exports=o);else if(s&&!s.nodeType)if(l)l.exports=L;else for(var D in L)u(L,D)&&(s[D]=L[D]);else a.he=L}(this)}).call(this,n(54)(t),n(17))},function(t,e,n){"use strict";var r=n(208).createMapFromString,o=/([^\s"'<>/=]+)/,i=[/=/],a=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^ \t\n\f\r"'`=<>]+)/.source],s=(n="((?:"+(n="["+(n="A-Za-z\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u0131\\u0134-\\u013E\\u0141-\\u0148\\u014A-\\u017E\\u0180-\\u01C3\\u01CD-\\u01F0\\u01F4\\u01F5\\u01FA-\\u0217\\u0250-\\u02A8\\u02BB-\\u02C1\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03CE\\u03D0-\\u03D6\\u03DA\\u03DC\\u03DE\\u03E0\\u03E2-\\u03F3\\u0401-\\u040C\\u040E-\\u044F\\u0451-\\u045C\\u045E-\\u0481\\u0490-\\u04C4\\u04C7\\u04C8\\u04CB\\u04CC\\u04D0-\\u04EB\\u04EE-\\u04F5\\u04F8\\u04F9\\u0531-\\u0556\\u0559\\u0561-\\u0586\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u063A\\u0641-\\u064A\\u0671-\\u06B7\\u06BA-\\u06BE\\u06C0-\\u06CE\\u06D0-\\u06D3\\u06D5\\u06E5\\u06E6\\u0905-\\u0939\\u093D\\u0958-\\u0961\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\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-\\u0A8B\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AE0\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B36-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB5\\u0BB7-\\u0BB9\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CDE\\u0CE0\\u0CE1\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D60\\u0D61\\u0E01-\\u0E2E\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E45\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD\\u0EAE\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0F40-\\u0F47\\u0F49-\\u0F69\\u10A0-\\u10C5\\u10D0-\\u10F6\\u1100\\u1102\\u1103\\u1105-\\u1107\\u1109\\u110B\\u110C\\u110E-\\u1112\\u113C\\u113E\\u1140\\u114C\\u114E\\u1150\\u1154\\u1155\\u1159\\u115F-\\u1161\\u1163\\u1165\\u1167\\u1169\\u116D\\u116E\\u1172\\u1173\\u1175\\u119E\\u11A8\\u11AB\\u11AE\\u11AF\\u11B7\\u11B8\\u11BA\\u11BC-\\u11C2\\u11EB\\u11F0\\u11F9\\u1E00-\\u1E9B\\u1EA0-\\u1EF9\\u1F00-\\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\\u2126\\u212A\\u212B\\u212E\\u2180-\\u2182\\u3007\\u3021-\\u3029\\u3041-\\u3094\\u30A1-\\u30FA\\u3105-\\u312C\\u4E00-\\u9FA5\\uAC00-\\uD7A3")+"_]["+n+"0-9\\u0660-\\u0669\\u06F0-\\u06F9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE7-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\.\\-_\\u0300-\\u0345\\u0360\\u0361\\u0483-\\u0486\\u0591-\\u05A1\\u05A3-\\u05B9\\u05BB-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u064B-\\u0652\\u0670\\u06D6-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0901-\\u0903\\u093C\\u093E-\\u094D\\u0951-\\u0954\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u0A02\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A70\\u0A71\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B43\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B82\\u0B83\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C01-\\u0C03\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C82\\u0C83\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D43\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86-\\u0F8B\\u0F90-\\u0F95\\u0F97\\u0F99-\\u0FAD\\u0FB1-\\u0FB7\\u0FB9\\u20D0-\\u20DC\\u20E1\\u302A-\\u302F\\u3099\\u309A\\xB7\\u02D0\\u02D1\\u0387\\u0640\\u0E46\\u0EC6\\u3005\\u3031-\\u3035\\u309D\\u309E\\u30FC-\\u30FE]*")+"\\:)?"+n+")",new RegExp("^<"+n)),l=/^\s*(\/?)>/,c=new RegExp("^<\\/"+n+"[^>]*>"),u=/^<!DOCTYPE\s?[^>]+>/i,p=!1;"x".replace(/x(.)?/g,(function(t,e){p=""===e}));var f=r("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),d=r("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var",!0),h=r("colgroup,dd,dt,li,option,p,td,tfoot,th,thead,tr,source",!0),g=r("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected",!0),m=r("script,style",!0),v=r("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,ol,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track,ul",!0),y={};function b(t,e){for(var n,r,b,_,w=[],E=function(t){var e=o.source+"(?:\\s*("+function(t){return i.concat(t.customAttrAssign||[]).map((function(t){return"(?:"+t.source+")"})).join("|")}(t)+")[ \\t\\n\\f\\r]*(?:"+a.join("|")+"))?";if(t.customAttrSurround){for(var n=[],r=t.customAttrSurround.length-1;0<=r;r--)n[r]="(?:("+t.customAttrSurround[r][0].source+")\\s*"+e+"\\s*("+t.customAttrSurround[r][1].source+"))";n.push("(?:"+e+")"),e="(?:"+n.join("|")+")"}return new RegExp("^\\s*"+e)}(e);t;){if(r=t,n&&m(n)){var x=n.toLowerCase(),T=y[x]||(y[x]=new RegExp("([\\s\\S]*?)</"+x+"[^>]*>","i"));t=t.replace(T,(function(t,n){return"script"!==x&&"style"!==x&&"noscript"!==x&&(n=n.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),e.chars&&e.chars(n),""})),P("</"+x+">",x)}else{if(0===(A=t.indexOf("<"))){if(/^<!--/.test(t)&&0<=(T=t.indexOf("--\x3e"))){e.comment&&e.comment(t.substring(4,T)),t=t.substring(T+3),b="";continue}if(/^<!\[/.test(t)){var C=t.indexOf("]>");if(0<=C){e.comment&&e.comment(t.substring(2,C+1),!0),t=t.substring(C+2),b="";continue}}if(C=t.match(u)){e.doctype&&e.doctype(C[0]),t=t.substring(C[0].length),b="";continue}if(C=t.match(c)){t=t.substring(C[0].length),C[0].replace(c,P),b="/"+C[1].toLowerCase();continue}if(C=O(t)){t=C.rest,function(t){var r=t.tagName,o=t.unarySlash;if(e.html5&&("p"===n&&v(r)?P("",n):"tbody"===r?S("thead"):"tfoot"===r&&(S("tbody")||S("thead")),"col"===r&&k("colgroup")<0&&(n="colgroup",w.push({tag:n,attrs:[]}),e.start&&e.start(n,[],!1,""))),!e.html5&&!d(r))for(;n&&d(n);)P("",n);h(r)&&n===r&&P("",r);var i=f(r)||"html"===r&&"head"===n||!!o;t=t.attrs.map((function(t){var n,r,o,i,a,s;function l(e){return a=t[e],void 0!==(r=t[e+1])?'"':void 0!==(r=t[e+2])?"'":(void 0===(r=t[e+3])&&g(n)&&(r=n),"")}p&&-1===t[0].indexOf('""')&&(""===t[3]&&delete t[3],""===t[4]&&delete t[4],""===t[5]&&delete t[5]);var c=1;if(e.customAttrSurround)for(var u=0,f=e.customAttrSurround.length;u<f;u++,c+=7)if(n=t[c+1]){s=l(c+2),o=t[c],i=t[c+6];break}return!n&&(n=t[c])&&(s=l(c+1)),{name:n,value:r,customAssign:a||"=",customOpen:o||"",customClose:i||"",quote:s||""}})),i||(w.push({tag:r,attrs:t}),n=r,o=""),e.start&&e.start(r,t,i,o)}(C),b=C.tagName.toLowerCase();continue}e.continueOnParseError&&(A=t.indexOf("<",1))}var A=(A=O(t=0<=A?(_=t.substring(0,A),t.substring(A)):(_=t,"")))?A.tagName:(A=t.match(c))?"/"+A[1]:"";e.chars&&e.chars(_,b,A),b=""}if(t===r)throw new Error("Parse Error: "+t)}function O(t){var e=t.match(s);if(e){var n,r,o={tagName:e[1],attrs:[]};for(t=t.slice(e[0].length);!(n=t.match(l))&&(r=t.match(E));)t=t.slice(r[0].length),o.attrs.push(r);if(n)return o.unarySlash=n[1],o.rest=t.slice(n[0].length),o}}function S(t){return 0<=k(t)&&(P("",t),1)}function k(t){for(var e=t.toLowerCase(),n=w.length-1;0<=n&&w[n].tag.toLowerCase()!==e;n--);return n}function P(t,r){var o=r?k(r):0;if(0<=o){for(var i=w.length-1;o<=i;i--)e.end&&e.end(w[i].tag,w[i].attrs,o<i||!t);w.length=o,n=o&&w[o-1].tag}else"br"===r.toLowerCase()?e.start&&e.start(r,[],!0,""):"p"===r.toLowerCase()&&(e.start&&e.start(r,[],!1,"",!0),e.end&&e.end(r,[]))}e.partialMarkup||P()}e.HTMLParser=b,e.HTMLtoXML=function(t){var e="";return b(t,{start:function(t,n,r){e+="<"+t;for(var o=0,i=n.length;o<i;o++)e+=" "+n[o].name+'="'+(n[o].value||"").replace(/"/g,""")+'"';e+=(r?"/":"")+">"},end:function(t){e+="</"+t+">"},chars:function(t){e+=t},comment:function(t){e+="\x3c!--"+t+"--\x3e"},ignore:function(t){e+=t}}),e},e.HTMLtoDOM=function(t,e){var n={html:!0,head:!0,body:!0,title:!0},r={link:"head",base:"head"};e?e=e.ownerDocument||e.getOwnerDocument&&e.getOwnerDocument()||e:"undefined"!=typeof DOMDocument?e=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?e=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(e=new ActiveXObject("Msxml.DOMDocument"));var o,i,a=[];if(e.documentElement||e.getDocumentElement&&e.getDocumentElement()||!e.createElement||(o=e.createElement("html"),(i=e.createElement("head")).appendChild(e.createElement("title")),o.appendChild(i),o.appendChild(e.createElement("body")),e.appendChild(o)),e.getElementsByTagName)for(var s in n)n[s]=e.getElementsByTagName(s)[0];var l=n.body;return b(t,{start:function(t,o,i){if(n[t])l=n[t];else{var s,c=e.createElement(t);for(s in o)c.setAttribute(o[s].name,o[s].value);r[t]&&"boolean"!=typeof n[r[t]]?n[r[t]].appendChild(c):l&&l.appendChild&&l.appendChild(c),i||(a.push(c),l=c)}},end:function(){--a.length,l=a[a.length-1]},chars:function(t){l.appendChild(e.createTextNode(t))},comment:function(){},ignore:function(){}}),e}},function(t,e,n){"use strict";var r=n(209),o=n(438),i=n(439),a=n(130),s=n(440),l=n(447);function c(t,e){this.options=i(e,{defaultPorts:{ftp:21,http:80,https:443},directoryIndexes:["index.html"],ignore_www:!1,output:c.SHORTEST,rejectedSchemes:["data","javascript","mailto"],removeAuth:!1,removeDirectoryIndexes:!0,removeEmptyQueries:!1,removeRootTrailingSlash:!0,schemeRelative:!0,site:void 0,slashesDenoteHost:!0}),this.from=s.from(t,this.options,null)}c.prototype.relate=function(t,e,n){if(a.isPlainObject(e)?(n=e,e=t,t=null):e||(e=t,t=null),n=i(n,this.options),t=t||n.site,!(t=s.from(t,n,this.from))||!t.href)throw new Error("from value not defined.");if(t.extra.hrefInfo.minimumPathOnly)throw new Error("from value supplied is not absolute: "+t.href);return!1===(e=s.to(e,n)).valid?e.href:(e=l(t,e,n),o(e,n))},c.relate=function(t,e,n){return(new c).relate(t,e,n)},a.shallowMerge(c,r),t.exports=c},function(t,e,n){"use strict";var r=n(209);function o(t,e){return e=e.removeEmptyQueries&&t.extra.relation.minimumPort,t.query.string[e?"stripped":"full"]}function i(t,e){return!t.extra.relation.minimumQuery||e.output===r.ABSOLUTE||e.output===r.ROOT_RELATIVE}function a(t,e){var n=e.removeDirectoryIndexes&&t.extra.resourceIsIndex;return e=t.extra.relation.minimumResource&&e.output!==r.ABSOLUTE&&e.output!==r.ROOT_RELATIVE,!!t.resource&&!e&&!n}t.exports=function(t,e){var n="";return n+=function(t,e){var n="";return!t.extra.relation.maximumHost&&e.output!==r.ABSOLUTE||(t.extra.relation.minimumScheme&&e.schemeRelative&&e.output!==r.ABSOLUTE?n+="//":n+=t.scheme+"://"),n}(t,e),n+=function(t,e){return!t.auth||e.removeAuth||!t.extra.relation.maximumHost&&e.output!==r.ABSOLUTE?"":t.auth+"@"}(t,e),n+=function(t,e){return t.host.full&&(t.extra.relation.maximumAuth||e.output===r.ABSOLUTE)?t.host.full:""}(t,e),n+=function(t){return t.port&&!t.extra.portIsDefault&&t.extra.relation.maximumHost?":"+t.port:""}(t),n+=function(t,e){var n="",s=t.path.absolute.string,l=t.path.relative.string,c=a(t,e);return!t.extra.relation.maximumHost&&e.output!==r.ABSOLUTE&&e.output!==r.ROOT_RELATIVE&&(l.length<=s.length&&e.output===r.SHORTEST||e.output===r.PATH_RELATIVE)?""===(n=l)&&(l=i(t,e)&&!!o(t,e),(t.extra.relation.maximumPath&&!c||t.extra.relation.overridesQuery&&!c&&!l)&&(n="./")):n=s,"/"!==n||c||!e.removeRootTrailingSlash||t.extra.relation.minimumPort&&e.output!==r.ABSOLUTE?n:""}(t,e),n+=function(t,e){return a(t,e)?t.resource:""}(t,e),(n+=function(t,e){return i(t,e)?o(t,e):""}(t,e))+function(t){return t.hash||""}(t)}},function(t,e,n){"use strict";var r=n(130);t.exports=function(t,e){if(r.isPlainObject(t)){var n,o={};for(n in e)e.hasOwnProperty(n)&&(void 0!==t[n]?o[n]=function(t,e){return e instanceof Object&&t instanceof Object?e instanceof Array&&t instanceof Array?e.concat(t):r.shallowMerge(t,e):t}(t[n],e[n]):o[n]=e[n]);return o}return e}},function(t,e,n){"use strict";var r=n(441),o=n(442),i=n(443),a=n(444),s=n(445),l=n(446),c=n(131);function u(t,e){return!1===(t=l(t,e)).valid||(o(t,e),a(t,e),i(t,e),s(t,e),r(t)),t}t.exports={from:function(t,e,n){return t?(t=u(t,e),e=c.resolveDotSegments(t.path.absolute.array),t.path.absolute.array=e,t.path.absolute.string="/"+c.join(e),t):n},to:u}},function(t,e,n){"use strict";t.exports=function(t){var e=!(t.scheme||t.auth||t.host.full||t.port),n=e&&!t.path.absolute.string,r=n&&!t.resource,o=r&&!t.query.string.full.length,i=o&&!t.hash;t.extra.hrefInfo.minimumPathOnly=e,t.extra.hrefInfo.minimumResourceOnly=n,t.extra.hrefInfo.minimumQueryOnly=r,t.extra.hrefInfo.minimumHashOnly=o,t.extra.hrefInfo.empty=i}},function(t,e,n){"use strict";t.exports=function(t,e){var n;!e.ignore_www||(n=t.host.full)&&(0===(e=n).indexOf("www.")&&(e=n.substr(4)),t.host.stripped=e)}},function(t,e,n){"use strict";function r(t){if("/"===t)return[];var e=[];return t.split("/").forEach((function(t){""!==t&&e.push(t)})),e}t.exports=function(t,e){var n,o,i=t.path.absolute.string;i&&(-1<(n=i.lastIndexOf("/"))?(++n<i.length&&("."!==(o=i.substr(n))&&".."!==o?(t.resource=o,i=i.substr(0,n)):i+="/"),t.path.absolute.string=i,t.path.absolute.array=r(i)):"."===i||".."===i?(t.path.absolute.string=i+="/",t.path.absolute.array=r(i)):(t.resource=i,t.path.absolute.string=null),t.extra.resourceIsIndex=function(t,e){var n=!1;return e.directoryIndexes.every((function(e){return e!==t||!(n=!0)})),n}(t.resource,e))}},function(t,e,n){"use strict";t.exports=function(t,e){var n,r=-1;for(n in e.defaultPorts)if(n===t.scheme&&e.defaultPorts.hasOwnProperty(n)){r=e.defaultPorts[n];break}-1<r&&(r=r.toString(),null===t.port&&(t.port=r),t.extra.portIsDefault=t.port===r)}},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(t,e){var n,o,i=0,a="";for(n in t)""!==n&&!0===r.call(t,n)&&(""===(o=t[n])&&e||(a+=1==++i?"?":"&",n=encodeURIComponent(n),a+=""!==o?n+"="+encodeURIComponent(o).replace(/%20/g,"+"):n));return a}t.exports=function(t,e){t.query.string.full=o(t.query.object,!1),e.removeEmptyQueries&&(t.query.string.stripped=o(t.query.object,!0))}},function(t,e,n){"use strict";var r=n(26).parse;t.exports=function(t,e){return function(t,e){var n=!0;return e.rejectedSchemes.every((function(e){return n=!(0===t.indexOf(e+":"))})),n}(t,e)?function(t){var e=t.protocol;return e&&e.indexOf(":")===e.length-1&&(e=e.substr(0,e.length-1)),t.host={full:t.hostname,stripped:null},t.path={absolute:{array:null,string:t.pathname},relative:{array:null,string:null}},t.query={object:t.query,string:{full:null,stripped:null}},t.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:"?"===t.search},portIsDefault:null,relation:{maximumScheme:null,maximumAuth:null,maximumHost:null,maximumPort:null,maximumPath:null,maximumResource:null,maximumQuery:null,maximumHash:null,minimumScheme:null,minimumAuth:null,minimumHost:null,minimumPort:null,minimumPath:null,minimumResource:null,minimumQuery:null,minimumHash:null,overridesQuery:null},resourceIsIndex:null,slashes:t.slashes},t.resource=null,t.scheme=e,delete t.hostname,delete t.pathname,delete t.protocol,delete t.search,delete t.slashes,t}(r(t,!0,e.slashesDenoteHost)):{href:t,valid:!1}}},function(t,e,n){"use strict";var r=n(448),o=n(450);t.exports=function(t,e,n){return r(e,t,n),o(e,t,n),e}},function(t,e,n){"use strict";var r=n(449),o=n(130),i=n(131);t.exports=function(t,e,n){r.upToPath(t,e,n),t.extra.relation.minimumScheme&&(t.scheme=e.scheme),t.extra.relation.minimumAuth&&(t.auth=e.auth),t.extra.relation.minimumHost&&(t.host=o.clone(e.host)),t.extra.relation.minimumPort&&function(t,e){t.port=e.port,t.extra.portIsDefault=e.extra.portIsDefault}(t,e),t.extra.relation.minimumScheme&&function(t,e){var n,r;t.extra.relation.maximumHost||!t.extra.hrefInfo.minimumResourceOnly?(r="/",(n=t.path.absolute.array)?(t.extra.hrefInfo.minimumPathOnly&&0!==t.path.absolute.string.indexOf("/")&&(n=e.path.absolute.array.concat(n)),n=i.resolveDotSegments(n),r+=i.join(n)):n=[],t.path.absolute.array=n,t.path.absolute.string=r):t.path=o.clone(e.path)}(t,e),r.pathOn(t,e,n),t.extra.relation.minimumResource&&function(t,e){t.resource=e.resource,t.extra.resourceIsIndex=e.extra.resourceIsIndex}(t,e),t.extra.relation.minimumQuery&&(t.query=o.clone(e.query)),t.extra.relation.minimumHash&&(t.hash=e.hash)}},function(t,e,n){"use strict";t.exports={pathOn:function(t,e,n){var r=t.extra.hrefInfo.minimumQueryOnly,o=t.extra.hrefInfo.minimumHashOnly,i=t.extra.hrefInfo.empty,a=t.extra.relation.minimumPort,s=t.extra.relation.minimumScheme,l=a&&t.path.absolute.string===e.path.absolute.string;a=t.resource===e.resource||!t.resource&&e.extra.resourceIsIndex||n.removeDirectoryIndexes&&t.extra.resourceIsIndex&&!e.resource,a=l&&(a||r||o||i),r=n.removeEmptyQueries?"stripped":"full",n=t.query.string[r],r=e.query.string[r],e=(i=a&&!!n&&n===r||(o||i)&&!t.extra.hrefInfo.separatorOnlyQuery)&&t.hash===e.hash,t.extra.relation.minimumPath=l,t.extra.relation.minimumResource=a,t.extra.relation.minimumQuery=i,t.extra.relation.minimumHash=e,t.extra.relation.maximumPort=!s||s&&!l,t.extra.relation.maximumPath=!s||s&&!a,t.extra.relation.maximumResource=!s||s&&!i,t.extra.relation.maximumQuery=!s||s&&!e,t.extra.relation.maximumHash=!s||s&&!e,t.extra.relation.overridesQuery=l&&t.extra.relation.maximumResource&&!i&&!!r},upToPath:function(t,e,n){var r=t.extra.hrefInfo.minimumPathOnly,o=t.scheme===e.scheme||!t.scheme,i=o&&(t.auth===e.auth||n.removeAuth||r);n=n.ignore_www?"stripped":"full",r=(n=i&&(t.host[n]===e.host[n]||r))&&(t.port===e.port||r),t.extra.relation.minimumScheme=o,t.extra.relation.minimumAuth=i,t.extra.relation.minimumHost=n,t.extra.relation.minimumPort=r,t.extra.relation.maximumScheme=!o||o&&!i,t.extra.relation.maximumAuth=!o||o&&!n,t.extra.relation.maximumHost=!o||o&&!r}}},function(t,e,n){"use strict";var r=n(131);t.exports=function(t,e,n){t.extra.relation.minimumScheme&&(e=function(t,e){var n=[],r=!0,o=-1;return e.forEach((function(e,i){r&&(t[i]!==e?r=!1:o=i),r||n.push("..")})),t.forEach((function(t,e){o<e&&n.push(t)})),n}(t.path.absolute.array,e.path.absolute.array),t.path.relative.array=e,t.path.relative.string=r.join(e))}},function(t,e,n){"use strict";function r(){}function o(){}r.prototype.sort=function(t,e){e=e||0;for(var n=0,r=this.keys.length;n<r;n++){var o=this.keys[n],i=o.slice(1),a=t.indexOf(i,e);if(-1!==a){for(;a!==e&&(t.splice(a,1),t.splice(e,0,i)),e++,-1!==(a=t.indexOf(i,e)););return this[o].sort(t,e)}}return t},o.prototype={add:function(t){var e=this;t.forEach((function(n){e[n="$"+n]||(e[n]=[],e[n].processed=0),e[n].push(t)}))},createSorter:function(){var t=this,e=new r;return e.keys=Object.keys(t).sort((function(e,n){var r=t[e].length,o=t[n].length;return r<o?1:o<r||e<n?-1:n<e?1:0})).filter((function(n){if(t[n].processed<t[n].length){var r=n.slice(1),i=new o;return t[n].forEach((function(e){for(var n;-1!==(n=e.indexOf(r));)e.splice(n,1);e.forEach((function(e){t["$"+e].processed++})),i.add(e.slice(0))})),e[n]=i.createSorter(),!0}return!1})),e}},t.exports=o},function(t,e){t.exports={}},function(t,e,n){var r=n(454),o=n(51),i=Array.prototype.push;function a(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){return t(e)}}function s(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}function l(t,e){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=e.apply(void 0,r);return t.apply(void 0,r),o}}}t.exports=function t(e,n,c,u){var p="function"==typeof n,f=n===Object(n);if(f&&(u=c,c=n,n=void 0),null==c)throw new TypeError;var d={cap:!("cap"in(u=u||{}))||u.cap,curry:!("curry"in u)||u.curry,fixed:!("fixed"in u)||u.fixed,immutable:!("immutable"in u)||u.immutable,rearg:!("rearg"in u)||u.rearg},h=p?c:o,g="curry"in u&&u.curry,m="fixed"in u&&u.fixed,v="rearg"in u&&u.rearg,y=p?c.runInContext():void 0,b=p?c:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},_=b.ary,w=b.assign,E=b.clone,x=b.curry,T=b.forEach,C=b.isArray,A=b.isError,O=b.isFunction,S=b.isWeakMap,k=b.keys,P=b.rearg,j=b.toInteger,N=b.toPath,L=k(r.aryMethod),D={castArray:function(t){return function(){var e=arguments[0];return C(e)?t(s(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],n=t(arguments[0],e),r=n.length;return d.cap&&"number"==typeof e?(e=2<e?e-2:1,r&&r<=e?n:a(n,e)):n}},mixin:function(t){return function(e){var n=this;if(!O(n))return t(n,Object(e));var r=[];return T(k(e),(function(t){O(e[t])&&r.push([t,n.prototype[t]])})),t(n,Object(e)),T(r,(function(t){var e=t[1];O(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]})),n}},nthArg:function(t){return function(e){var n=e<0?1:j(e)+1;return x(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return x(t(e,n),r)}},runInContext:function(n){return function(r){return t(e,n(r),u)}}};function I(t,e,n){return!d.fixed||!m&&r.skipFixed[t]?e:void 0===(t=(t=r.methodSpread[t])&&t.start)?_(e,n):function(t,e){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var a=o[e],s=o.slice(0,e);return a&&i.apply(s,a),e!=r&&i.apply(s,o.slice(e+1)),t.apply(this,s)}}(e,t)}function R(t,e,n){return d.rearg&&1<n&&(v||!r.skipRearg[t])?P(e,r.methodRearg[t]||r.aryRearg[n]):e}function M(t,e){for(var n=-1,r=(e=N(e)).length,o=r-1,i=t=E(Object(t));null!=i&&++n<r;){var a=e[n],s=i[a];null==s||O(s)||A(s)||S(s)||(i[a]=E(n==o?s:Object(s))),i=i[a]}return t}function B(e,n){var o=r.aliasToReal[e]||e,i=r.remap[o]||o,a=u;return function(e){var r=p?y:b,s=p?y[i]:n;return e=w(w({},a),e),t(r,o,s,e)}}function F(t,e){return function(){var n=arguments.length;if(!n)return t();for(var r=Array(n);n--;)r[n]=arguments[n];var o=d.rearg?0:n-1;return r[o]=e(r[o]),t.apply(void 0,r)}}function U(t,e,n){var o,i=r.aliasToReal[t]||t,c=e;return(t=D[i])?c=t(e):d.immutable&&(r.mutate.array[i]?c=l(e,s):r.mutate.object[i]?c=l(e,function(t){return function(e){return t({},e)}}(e)):r.mutate.set[i]&&(c=l(e,M))),T(L,(function(t){return T(r.aryMethod[t],(function(e){if(i==e)return e=(e=r.methodSpread[i])&&e.afterRearg,o=e?I(i,R(i,c,t),t):R(i,I(i,c,t),t),o=function(t,e,n){return g||d.curry&&1<n?x(e,n):e}(0,o=function(t,e){if(d.cap){var n=r.iterateeRearg[t];if(n)return function(t,e){return F(t,(function(t){var n=e.length;return function(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(P(a(t,n),e),n)}))}(e,n);if(t=!p&&r.iterateeAry[t])return function(t,e){return F(t,(function(t){return"function"==typeof t?a(t,e):t}))}(e,t)}return e}(i,o),t),!1})),!o})),(o=(o=o||c)==e?g?x(o,1):function(){return e.apply(this,arguments)}:o).convert=B(i,e),o.placeholder=e.placeholder=n,o}if(!f)return U(n,c,h);var H=c,V=[];return T(L,(function(t){T(r.aryMethod[t],(function(t){var e=H[r.remap[t]||t];e&&V.push([t,U(t,e,H)])}))})),T(k(H),(function(t){var e=H[t];if("function"==typeof e){for(var n=V.length;n--;)if(V[n][0]==t)return;e.convert=B(t,e),V.push([t,e])}})),T(V,(function(t){H[t[0]]=t[1]})),H.convert=function(t){return H.runInContext.convert(t)(void 0)},H.placeholder=H,T(k(H),(function(t){T(r.realToAlias[t]||[],(function(e){H[e]=H[t]}))})),H}},function(t,e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t,n=Object.prototype.hasOwnProperty,r=e.aliasToReal,o={};for(t in r){var i=r[t];n.call(o,i)?o[i].push(t):o[i]=[t]}return o}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(t,e,n){t.exports={ary:n(456),assign:n(170),clone:n(474),curry:n(475),forEach:n(71),isArray:n(12),isError:n(476),isFunction:n(68),isWeakMap:n(477),iteratee:n(478),keys:n(94),rearg:n(479),toInteger:n(59),toPath:n(480)}},function(t,e,n){var r=n(134);t.exports=function(t,e,n){return e=n?void 0:e,e=t&&null==e?t.length:e,r(t,128,void 0,void 0,void 0,void 0,e)}},function(t,e,n){var r=n(89),o=n(16);t.exports=function(t,e,n){var i=1&e,a=r(t);return function e(){return(this&&this!==o&&this instanceof e?a:t).apply(i?n:this,arguments)}}},function(t,e,n){var r=n(113),o=n(89),i=n(212),a=n(215),s=n(220),l=n(139),c=n(16);t.exports=function(t,e,n){var u=o(t);return function o(){for(var p=arguments.length,f=Array(p),d=p,h=s(o);d--;)f[d]=arguments[d];return(p-=(h=p<3&&f[0]!==h&&f[p-1]!==h?[]:l(f,h)).length)<n?a(t,e,i,o.placeholder,void 0,f,h,void 0,void 0,n-p):r(this&&this!==c&&this instanceof o?u:t,this,f)}}},function(t,e){t.exports=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}},function(t,e){t.exports=function(){}},function(t,e){t.exports={}},function(t,e,n){var r=n(135),o=n(138),i=n(136),a=n(12),s=n(19),l=n(463),c=Object.prototype.hasOwnProperty;function u(t){if(s(t)&&!a(t)&&!(t instanceof r)){if(t instanceof o)return t;if(c.call(t,"__wrapped__"))return l(t)}return new o(t)}u.prototype=i.prototype,t.exports=u.prototype.constructor=u},function(t,e,n){var r=n(135),o=n(138),i=n(78);t.exports=function(t){if(t instanceof r)return t.clone();var e=new o(t.__wrapped__,t.__chain__);return e.__actions__=i(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},function(t,e){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;t.exports=function(t){return(t=t.match(n))?t[1].split(r):[]}},function(t,e){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,e){var r=e.length;if(!r)return t;var o=r-1;return e[o]=(1<r?"& ":"")+e[o],e=e.join(2<r?", ":" "),t.replace(n,"{\n/* [wrapped with "+e+"] */\n")}},function(t,e,n){var r=n(71),o=n(467),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return r(i,(function(n){var r="_."+n[0];e&n[1]&&!o(t,r)&&t.push(r)})),t.sort()}},function(t,e,n){var r=n(468);t.exports=function(t,e){return!(null==t||!t.length)&&-1<r(t,e,0)}},function(t,e,n){var r=n(115),o=n(469),i=n(470);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(78),o=n(56),i=Math.min;t.exports=function(t,e){for(var n=t.length,a=i(e.length,n),s=r(t);a--;){var l=e[a];t[a]=o(l,n)?s[l]:void 0}return t}},function(t,e,n){var r=n(113),o=n(89),i=n(16);t.exports=function(t,e,n,a){var s=1&e,l=o(t);return function e(){for(var o=-1,c=arguments.length,u=-1,p=a.length,f=Array(p+c),d=this&&this!==i&&this instanceof e?l:t;++u<p;)f[u]=a[u];for(;c--;)f[u++]=arguments[++o];return r(d,s?n:this,f)}}},function(t,e,n){var r=n(213),o=n(214),i=n(139),a="__lodash_placeholder__",s=Math.min;t.exports=function(t,e){var n,l=t[1],c=e[1],u=l|c,p=128==c&&8==l||128==c&&256==l&&t[7].length<=e[8]||384==c&&e[7].length<=e[8]&&8==l;return(u<131||p)&&(1&c&&(t[2]=e[2],u|=1&l?0:4),(l=e[3])&&(n=t[3],t[3]=n?r(n,l,e[4]):l,t[4]=n?i(t[3],a):e[4]),(l=e[5])&&(n=t[5],t[5]=n?o(n,l,e[6]):l,t[6]=n?i(t[5],a):e[6]),(l=e[7])&&(t[7]=l),128&c&&(t[8]=null==t[8]?e[8]:s(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=u),t}},function(t,e,n){var r=n(105);t.exports=function(t){return r(t,4)}},function(t,e,n){var r=n(134);function o(t,e,n){return(e=r(t,8,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e)).placeholder=o.placeholder,e}o.placeholder={},t.exports=o},function(t,e,n){var r=n(29),o=n(19),i=n(172);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!i(t)}},function(t,e,n){var r=n(38),o=n(19);t.exports=function(t){return o(t)&&"[object WeakMap]"==r(t)}},function(t,e,n){var r=n(105),o=n(20);t.exports=function(t){return o("function"==typeof t?t:r(t,1))}},function(t,e,n){var r=n(134);n=(n=n(112))((function(t,e){return r(t,256,void 0,void 0,void 0,e)})),t.exports=n},function(t,e,n){var r=n(57),o=n(78),i=n(12),a=n(44),s=n(167),l=n(32),c=n(45);t.exports=function(t){return i(t)?r(t,l):a(t)?[t]:o(s(c(t)))}},function(t,e,n){n=n(482)(),t.exports=n},function(t,e,n){var r=n(138),o=n(112),i=n(137),a=n(217),s=n(12),l=n(216);t.exports=function(t){return o((function(e){var n=e.length,o=n,c=r.prototype.thru;for(t&&e.reverse();o--;){if("function"!=typeof(u=e[o]))throw new TypeError("Expected a function");c&&!d&&"wrapper"==a(u)&&(d=new r([],!0))}for(o=d?o:n;++o<n;)var u=e[o],p=a(u),f="wrapper"==p?i(u):void 0,d=f&&l(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?d[a(f[0])].apply(d,f[3]):1==u.length&&l(u)?d[p]():d.thru(u);return function(){var t=arguments,r=t[0];if(d&&1==t.length&&s(r))return d.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}}))}},function(t,e,n){var r=n(65)("map",n(46));r.placeholder=n(51),t.exports=r},function(t,e,n){var r=n(115),o=n(20),i=n(59),a=Math.max,s=Math.min;t.exports=function(t,e,n){var l=null==t?0:t.length;if(!l)return-1;var c=l-1;return void 0!==n&&(c=i(n),c=n<0?a(l+c,0):s(c,l-1)),r(t,o(e,3),c,!0)}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){delete e.parent,e.children&&e.children.length?(0,o.default)(e.children,t):delete e.children,e.attributes&&0===Object.keys(e.attributes).length&&delete e.attributes};var o=r(n(40));t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,o.default)(t,(function(t){return"true"===t||"false"!==t&&t}))};var o=r(n(487));t.exports=e.default},function(t,e,n){var r=n(107),o=n(154),i=n(20);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){e.attributes||(e.attributes={}),e.children&&(0,o.default)(e.children,t)};var o=r(n(40));t.exports=e.default},function(t,e){t.exports=!1},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.registerRule=function(t,e){return"function"!=typeof t?console.error("Your rule must be a function"):(e?l[e]=t:l[t.name]=t,!0)},e.default=void 0;var o=r(n(491)),i=r(n(492)),a=r(n(493)),s=r(n(494)),l=(n=r(n(495)),{validAttributes:o.default,validChildren:i.default,validTag:a.default,validTypes:s.default,errorAttr:n.default});e.default=l},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.components,o=t.attributes;if(!(n=n[e=t.tagName]))return null;var s=[].concat(function(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object.keys(n.allowedAttributes||{})),a);return 0===(e=Object.keys(o||{}).filter((function(t){return!s.includes(t)}))).length?null:(o=(n={attribute:1<e.length?"Attributes":"Attribute",illegal:1<e.length?"are illegal":"is illegal"}).attribute,n=n.illegal,(0,i.default)("".concat(o," ").concat(e.join(", ")," ").concat(n),t))};var i=o(n(52)),a=["mj-class","css-class"];t.exports=e.default},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.components,o=e.dependencies,a=e.skipElements,s=(e=t.children,t.tagName);if(!n[s]||!e||!e.length)return null;var l,c=[],u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0;return{s:e=function(){},n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{var p=function(){var t=l.value,e=t.tagName,r=n[e],u=o[s]||[];!1===(!r||a.includes(e)||u.includes(e)||u.some((function(t){return t instanceof RegExp&&t.test(e)})))&&(u=Object.keys(o).filter((function(t){return o[t].includes(e)||o[t].some((function(t){return t instanceof RegExp&&t.test(e)}))})),c.push((0,i.default)("".concat(e," cannot be used inside ").concat(s,", only inside: ").concat(u.join(", ")),t)))};for(u.s();!(l=u.n()).done;)p()}catch(t){u.e(t)}finally{u.f()}return c};var i=o(n(52));t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.components;return e=t.tagName,i.includes(e)||n[e]?null:(0,o.default)("Element ".concat(e," doesn't exist or is not registered"),t)};var o=r(n(52)),i=["mj-all","mj-class","mj-selector","mj-html-attribute"];t.exports=e.default},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.components,o=e.initializeType,a=t.attributes,s=n[e=t.tagName];if(!s)return null;for(var l=[],c=0,u=Object.entries(a||{});c<u.length;c++){var p=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(u[c]),f=p[0],d=p[1];!(p=s.allowedAttributes&&s.allowedAttributes[f])||!1===(d=new(o(p))(d)).isValid()&&l.push((0,i.default)("Attribute ".concat(f," ").concat(d.getErrorMessage()),t))}return l};var i=o(n(52));t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.errors;return e?e.map((function(e){if("include"!==e.type)return null;e=(n=e.params).file;var n=n.partialPath;return(0,o.default)("mj-include fails to read file : ".concat(e," at ").concat(n),t)})):null};var o=r(n(52));t.exports=e.default},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];if(0===n.length)return t;for(var a=0,s=n;a<s.length;a++){var l=s[a];if("object"===i(l)&&null!==l)for(var c=0,u=Object.keys(l);c<u.length;c++){var p,f=u[c];"string"==typeof f?(p=[],t[f]&&p.push.apply(p,r(t[f])),l[f]&&p.push.apply(p,r(l[f])),t[f]=Array.from(new Set(p))):console.warn('dependency "tag" must be of type string')}else console.warn('"dependencies" must be an object.')}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.registerDependencies=e.assignDependencies=void 0,e.assignDependencies=a;var s={};e.registerDependencies=function(t){a(s,t)},e.default=s},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=w,e.handleMjml3=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return b(t)?(e.noMigrateWarn||console.log("MJML v3 syntax detected, migrating to MJML v4 syntax. Use mjml -m to get the migrated MJML."),w(t)):t};var s=a(n(90)),l=a(n(47)),c=a(n(31)),u=a(n(132)),p=n(9),f=n(179),d=n(498),h={indent_size:2,wrap_attributes_indent_size:2,max_preserve_newline:0,preserve_newlines:!1},g=function(t){return t.attributes},m="facebook twitter google";function v(t){var e=g(t),n=function(t){var e=(t.attributes.display||m).split(" ");return delete t.attributes.display,e}(t);return t.children=[],(0,c.default)(n).forEach((function(r){var o=n[r].replace(":url","-noshare").replace(":share",""),i=o.replace("-noshare","");t.children.push({tagName:"mj-social-element",attributes:{name:o},content:e["".concat(i,"-content")]||""}),(0,c.default)(e).forEach((function(e){e.match(i)&&!e.match("content")&&(t.children[r].attributes[e.replace("".concat(i,"-"),"")]=t.attributes[e],delete t.attributes[e])}))})),(0,c.default)(e).forEach((function(t){t.match("content")&&delete e[t]})),t}function y(t){return(0,c.default)(t).forEach((function(e){if("children"===e)for(var n=0;n<t.children.length;n+=1)if(function(t){return-1===d.unavailableTags.indexOf(t)}(t.children[n].tagName)){switch(t.children[n].tagName){case"mj-body":t.children[n]=function(t){return"mj-container"===t.children[0].tagName&&(t.attributes=t.children[0].attributes,t.children=t.children[0].children),t}(t.children[n]);break;case"mj-social":t.children[n]=v(t.children[n]);break;case"mj-navbar":t.children[n]=function(t){return t.tagName="mj-section",t.attributes["full-width"]="full-width",t}(t.children[n]);break;case"mj-inline-links":t.children[n].tagName="mj-navbar";break;case"mj-link":t.children[n].tagName="mj-navbar-link";break;case"mj-hero":t.children[n]=function(t){var e=(0,l.default)(t.children,{tagName:"mj-hero-content"});return i(i({},t),{},{children:e.children,attributes:i(i({},t.attributes),e.attributes)})}(t.children[n])}t.children[n].attributes=function(t){return(0,c.default)(t).forEach((function(e){t[e]=function(t,e){for(var n=d.attributesWithUnit.length,r=0;r<n;r+=1)if(d.attributesWithUnit[r]===t)return function(t){return isNaN(t)||(0,s.default)(t)?t:"".concat(t,"px")}(e);return e}(e,t[e])})),t}(t.children[n].attributes),y(t.children[n])}else console.error("Ignoring unsupported tag : ".concat(t.children[n].tagName," on line ").concat(t.children[n].line)),delete t.children[n]})),t}function b(t){return"mj-container"===t.tagName||!(!t.children||!t.children.length)&&t.children.some(b)}var _=function t(e){var n=e.tagName,r=e.attributes,o=e.children;return e=e.content,o=o&&0<o.length?o.map(t).join("\n"):e||"",e=Object.keys(r).map((function(t){return"".concat(t,'="').concat(r[t],'"')})).join(" "),"<".concat(n).concat(""===e?">":" ".concat(e,">")).concat(o,"</").concat(n,">")};function w(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return console.warn("mjml-migrate is deprecated and will be removed in mjml 5"),e=e.beautify,"object"===r(t)?y(t):(y(t=(0,u.default)(t,{components:p.components,ignoreIncludes:!0})),e?(0,f.html)(_(t),h):_(t))}},function(t,e,n){"use strict";t.exports={unavailableTags:["mj-html","mj-invoice","mj-list","mj-location"],attributesWithUnit:["background-size","border-radius","border-width","cellpadding","cellspacing","font-size","height","icon-height","ico-padding","ico-padding-bottom","ico-font-size","ico-line-height","ico-padding-left","ico-padding-right","ico-padding-top","icon-size","icon-width","inner-padding","letter-spacing","padding","padding-bottom","padding-left","padding-right","padding-left","tb-border-radius","tb-width","width"]}},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var i=n(36).default,a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.initComponent=C,e.HeadComponent=e.BodyComponent=void 0;var s=a(n(4)),l=a(n(5)),c=a(n(3)),u=a(n(7)),p=a(n(8)),f=a(n(500)),d=a(n(90)),h=a(n(114)),g=a(n(47)),m=a(n(222)),v=a(n(41)),y=a(n(24)),b=a(n(40)),_=a(n(42)),w=a(n(132)),E=i(n(512)),x=a(n(513)),T=a(n(524));function C(t){var e=t.initialDatas,n=t.name;return(t=e.context.components[n])?((e=new t(e)).headStyle&&e.context.addHeadStyle(n,e.headStyle),e.componentHeadStyle&&e.context.addComponentHeadSyle(e.componentHeadStyle),e):null}var A=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};(0,c.default)(this,t);var n=void 0===(l=e.attributes)?{}:l,r=void 0===(a=e.children)?[]:a,i=void 0===(s=e.content)?"":s,a=void 0===(l=e.context)?{}:l,s=e.props,l=void 0===(l=e.globalAttributes)?{}:l;return e=e.absoluteFilePath,this.props=o(o({absoluteFilePath:void 0===e?null:e},void 0===s?{}:s),{},{children:r,content:i}),this.attributes=(0,x.default)(o(o(o({},this.constructor.defaultAttributes),l),n),this.constructor.allowedAttributes),this.context=a,this}return(0,u.default)(t,[{key:"getChildContext",value:function(){return this.context}},{key:"getAttribute",value:function(t){return this.attributes[t]}},{key:"getContent",value:function(){return this.props.content.trim()}},{key:"renderMJML",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof t?this.context.processing(t,this.context):(0,w.default)("<fragment>".concat(t,"</fragment>"),o(o({},n),{},{components:this.context.components,ignoreIncludes:!0})).children.map((function(t){return e.context.processing(t,e.context)})).join("")}}],[{key:"getTagName",value:function(){return this.componentName||(0,m.default)(this.name)}},{key:"isRawElement",value:function(){return!!this.rawElement}}]),t}();(0,p.default)(A,"defaultAttributes",{}),p=function(){(0,s.default)(e,A);var t=(0,l.default)(e);function e(){return(0,c.default)(this,e),t.apply(this,arguments)}return(0,u.default)(e,[{key:"getStyles",value:function(){return{}}},{key:"getShorthandAttrValue",value:function(t,e){var n=this.getAttribute("".concat(t,"-").concat(e));return t=this.getAttribute(t),n?parseInt(n,10):t?(0,E.default)(t,e):0}},{key:"getShorthandBorderValue",value:function(t){var e=t&&this.getAttribute("border-".concat(t));return t=this.getAttribute("border"),(0,E.borderParser)(e||t||"0")}},{key:"getBoxWidths",value:function(){var t=this.context.containerWidth,e=parseInt(t,10),n=this.getShorthandAttrValue("padding","right")+this.getShorthandAttrValue("padding","left");return{totalWidth:e,borders:t=this.getShorthandBorderValue("right")+this.getShorthandBorderValue("left"),paddings:n,box:e-n-t}}},{key:"htmlAttributes",value:function(t){var e=this,n={style:function(t){return e.styles(t)},default:y.default};return(0,v.default)((0,f.default)(t,d.default),(function(t,e,r){return e=(n[r]||n.default)(e),"".concat(t," ").concat(r,'="').concat(e,'"')}),"")}},{key:"styles",value:function(t){var e;return t&&(e="string"==typeof t?(0,_.default)(this.getStyles(),t):t),(0,v.default)(e,(function(t,e,n){return(0,d.default)(e)?t:"".concat(t).concat(n,":").concat(e,";")}),"")}},{key:"renderChildren",value:function(t){var e=this,n=(s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).props,r=void 0===n?{}:n,i=void 0===(n=s.renderer)?function(t){return t.render()}:n,a=void 0===(n=s.attributes)?{}:n,s=s.rawXML;if(t=t||this.props.children,void 0!==s&&s)return t.map((function(t){return(0,T.default)(t)})).join("\n");var l=t.length,c=(0,h.default)(this.context.components,(function(t){return t.isRawElement()})),u=t.filter((function(t){return!(0,g.default)(c,(function(e){return e.getTagName()===t.tagName}))})).length,p="",f=0;return(0,b.default)(t,(function(t){null!==(t=C({name:t.tagName,initialDatas:o(o({},t),{},{attributes:o(o({},a),t.attributes),context:e.getChildContext(),props:o(o({},r),{},{first:0===f,index:f,last:f+1===l,sibling:l,nonRawSiblings:u})})}))&&(p+=i(t)),f++})),p}}]),e}(),e.BodyComponent=p,e.HeadComponent=function(){(0,s.default)(e,A);var t=(0,l.default)(e);function e(){return(0,c.default)(this,e),t.apply(this,arguments)}return(0,u.default)(e,[{key:"handlerChildren",value:function(){var t=this;return this.props.children.map((function(e){var n=C({name:e.tagName,initialDatas:o(o({},e),{},{context:t.getChildContext()})});return n?(n.handler&&n.handler(),n.render?n.render():null):(console.error("No matching component for tag : ".concat(e.tagName)),null)}))}}],[{key:"getTagName",value:function(){return this.componentName||(0,m.default)(this.name)}}]),e}()},function(t,e,n){var r=n(20),o=n(221),i=n(501);t.exports=function(t,e){return i(t,o(r(e)))}},function(t,e,n){var r=n(57),o=n(20),i=n(502),a=n(110);t.exports=function(t,e){if(null==t)return{};var n=r(a(t),(function(t){return[t]}));return e=o(e),i(t,n,(function(t,n){return e(t,n[0])}))}},function(t,e,n){var r=n(77),o=n(503),i=n(43);t.exports=function(t,e,n){for(var a=-1,s=e.length,l={};++a<s;){var c=e[a],u=r(t,c);n(u,c)&&o(l,i(c,t),u)}return l}},function(t,e,n){var r=n(106),o=n(43),i=n(56),a=n(18),s=n(32);t.exports=function(t,e,n,l){if(!a(t))return t;for(var c=-1,u=(e=o(e,t)).length,p=u-1,f=t;null!=f&&++c<u;){var d,h=s(e[c]),g=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;c!=p&&(d=f[h],void 0===(g=l?l(d,h,f):void 0)&&(g=a(d)?d:i(e[c+1])?[]:{})),r(f,h,g),f=f[h]}return t}},function(t,e,n){var r=n(156),o=n(505),i=n(508),a=RegExp("['’]","g");t.exports=function(t){return function(e){return r(i(o(e).replace(a,"")),t,"")}}},function(t,e,n){var r=n(506),o=n(45),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=o(t))&&t.replace(i,r).replace(a,"")}},function(t,e,n){n=n(507)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),t.exports=n},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,n){var r=n(509),o=n(510),i=n(45),a=n(511);t.exports=function(t,e,n){return t=i(t),void 0===(e=n?void 0:e)?(o(t)?a:r)(t):t.match(e)||[]}},function(t,e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(n)||[]}},function(t,e){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return n.test(t)}},function(t,e){var n="\\ud800-\\udfff",r="[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]",o="\\d+",i="[a-z\\xdf-\\xf6\\xf8-\\xff]",a="[^"+n+"\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000"+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xff"+(h="A-Z\\xc0-\\xd6\\xd8-\\xde")+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",c="["+h+"]",u="(?:"+i+"|"+a+")",p="(?:"+c+"|"+a+")",f="(?:['’](?:d|ll|m|re|s|t|ve))?",d="(?:['’](?:D|LL|M|RE|S|T|VE))?",h=(a="[\\ufe0e\\ufe0f]?")+(h="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?")+"(?:\\u200d(?:"+["[^"+n+"]",s,l].join("|")+")"+a+h+")*",g=(h="(?:"+["[\\u2700-\\u27bf]",s,l].join("|")+")"+h,RegExp([c+"?"+i+"+"+f+"(?="+[r,c,"$"].join("|")+")",p+"+"+d+"(?="+[r,c+u,"$"].join("|")+")",c+"?"+u+"+"+f,c+"+"+d,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,h].join("|"),"g"));t.exports=function(t){return t.match(g)||[]}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=t.trim().replace(/\s+/g," ").split(" ",4),r={};switch(n.length){case 2:r={top:0,bottom:0,left:1,right:1};break;case 3:r={top:0,left:1,right:1,bottom:2};break;case 4:r={top:0,right:1,bottom:2,left:3};break;default:return parseInt(t,10)}return parseInt(n[r[e]]||0,10)},e.borderParser=function(t){return parseInt((0,o.default)(t.match(/(?:(?:^| )(\d+))/),1),10)||0};var o=r(n(42))},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(41)),l=n(27);e.default=function(t,e){return(0,s.default)(t,(function(t,n,r){if(e&&e[r]){var a=(0,l.initializeType)(e[r]);if(a)return a=new a(n),o(o({},t),{},i({},r,a.getValue()))}return o(o({},t),{},i({},r,n))}),{})},t.exports=e.default},function(t,e,n){var r=n(159),o=n(20),i=n(515),a=n(12),s=n(142);t.exports=function(t,e,n){var l=a(t)?r:i;return n&&s(t,e,n)&&(e=void 0),l(t,o(e,3))}},function(t,e,n){var r=n(55);t.exports=function(t,e){var n;return r(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}},function(t,e,n){"use strict";var r=n(36).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(517)),i=r(n(518)),a=r(n(520)),s=r(n(521)),l=r(n(522));n=r(n(523)),n={boolean:{matcher:o.matcher,typeConstructor:o.default},enum:{matcher:a.matcher,typeConstructor:a.default},color:{matcher:i.matcher,typeConstructor:i.default},unit:{matcher:s.matcher,typeConstructor:s.default},string:{matcher:l.matcher,typeConstructor:l.default},integer:{matcher:n.matcher,typeConstructor:n.default}},e.default=n,t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(27));e.matcher=/^boolean/gim,n=function(){return function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(t){return(0,o.default)(this,n),(t=e.call(this,t)).matchers=[/^true$/i,/^false$/i],t}return(0,i.default)(n,[{key:"isValid",value:function(){return!0===this.value||!1===this.value}}]),n}(l.default)},e.default=n},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(27)),c=r(n(519));e.matcher=/^color/gim;var u=/^#\w{3}$/,p=/^#(\w)(\w)(\w)$/;n=function(){return function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(t){return(0,o.default)(this,n),(t=e.call(this,t)).matchers=[/rgba\(\d{1,3},\s?\d{1,3},\s?\d{1,3},\s?\d(\.\d{1,3})?\)/gi,/rgb\(\d{1,3},\s?\d{1,3},\s?\d{1,3}\)/gi,/^#([0-9a-f]{3}){1,2}$/gi,new RegExp("^(".concat(c.default.join("|"),")$"))],t}return(0,i.default)(n,[{key:"getValue",value:function(){return"string"==typeof this.value&&this.value.match(u)?this.value.replace(p,"#$1$1$2$2$3$3"):this.value}}]),n}(l.default)},e.default=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","inherit","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","transparent","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(4)),a=r(n(5)),s=r(n(8)),l=r(n(223)),c=r(n(27));e.matcher=/^enum/gim,n=function(t){var e,n=t.match(/\(([^)]+)\)/)[1].split(",");return t=e=function(t){(0,i.default)(r,t);var e=(0,a.default)(r);function r(t){return(0,o.default)(this,r),(t=e.call(this,t)).matchers=n.map((function(t){return new RegExp("^".concat((0,l.default)(t),"$"))})),t}return r}(c.default),(0,s.default)(e,"errorMessage","has invalid value: $value for type Enum, only accepts ".concat(n.join(", "))),t},e.default=n},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(4)),a=r(n(5)),s=r(n(8)),l=r(n(223)),c=r(n(27));e.matcher=/^(unit|unitWithNegative)\(.*\)/gim,n=function(t){var e=t.match(/^unitWithNegative/)?"-|":"",n=t.match(/\(([^)]+)\)/)[1].split(","),r=(f=t.match(/\{([^}]+)\}/))&&f[1]&&f[1].split(",")||["1"],u=n.includes("auto")?"|auto":"",p=n.filter((function(t){return"auto"!==t})),f=t=function(t){(0,i.default)(s,t);var n=(0,a.default)(s);function s(t){return(0,o.default)(this,s),(t=n.call(this,t)).matchers=[new RegExp("^(((".concat(e,"\\d|,|\\.){1,}(").concat(p.map(l.default).join("|"),")|0").concat(u,")( )?){").concat(r.join(","),"}$"))],t}return s}(c.default);return(0,s.default)(t,"errorMessage","has invalid value: $value for type Unit, only accepts (".concat(n.join(", "),") units and ").concat(r.join(" to ")," value(s)")),f},e.default=n},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(4)),a=r(n(5)),s=r(n(27));e.matcher=/^string/gim,n=function(){return function(t){(0,i.default)(n,t);var e=(0,a.default)(n);function n(t){return(0,o.default)(this,n),(t=e.call(this,t)).matchers=[/.*/],t}return n}(s.default)},e.default=n},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(4)),a=r(n(5)),s=r(n(27));e.matcher=/^integer/gim,n=function(){return function(t){(0,i.default)(n,t);var e=(0,a.default)(n);function n(t){return(0,o.default)(this,n),(t=e.call(this,t)).matchers=[/\d+/],t}return n}(s.default)},e.default=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function t(e){var n=e.tagName,r=e.attributes,o=e.children;return e=e.content,o=o&&0<o.length?o.map(t).join("\n"):e||"",e=Object.keys(r).map((function(t){return"".concat(t,'="').concat(r[t],'"')})).join(" "),"<".concat(n).concat(""===e?">":" ".concat(e,">")).concat(o,"</").concat(n,">")},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){try{var e=Number.parseInt(t.match("[0-9]+")[0],10);return"".concat(e-1,"px")}catch(e){return t}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t,e){return t?t.split(" ").map((function(t){return"".concat(t,"-").concat(e)})).join(" "):""},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return t.replace(/(<!\[endif]-->\s*?<!--\[if mso \| IE]>)/gm,"")},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return t.replace(/(<!--\[if\s[^\]]+]>)([\s\S]*?)(<!\[endif]-->)/gm,(function(t,e,n,r){return n=n.replace(/(^|>)(\s+)(<|$)/gm,(function(t,e,n,r){return"".concat(e).concat(r)})).replace(/\s{2,}/gm," "),"".concat(e).concat(n).concat(r)}))},t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=void 0===(m=t.backgroundColor)?"":m,n=void 0===(w=t.beforeDoctype)?"":w,r=void 0===(v=t.breakpoint)?"480px":v,f=void 0===(y=t.content)?"":y,d=void 0===(E=t.fonts)?{}:E,h=void 0===(b=t.mediaQueries)?{}:b,g=void 0===(x=t.headStyle)?[]:x,m=void 0===(_=t.componentsHeadStyle)?{}:_,v=void 0===(w=t.headRaw)?[]:w,y=t.preview,b=void 0===(E=t.title)?"":E,_=void 0===(x=t.style)?[]:x,w=t.forceOWADesktop,E=t.inlineStyle,x=t.lang;return t=t.dir,x=x?'lang="'.concat(x,'" '):"",t=t?'dir="'.concat(t,'" '):"","".concat(n?"".concat(n,"\n"):"","<!doctype html>\n<html ").concat(x).concat(t,'xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">\n <head>\n <title>').concat(b,'</title>\n \x3c!--[if !mso]>\x3c!--\x3e\n <meta http-equiv="X-UA-Compatible" content="IE=edge">\n \x3c!--<![endif]--\x3e\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <style type="text/css">\n #outlook a { padding:0; }\n body { margin:0;padding:0;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%; }\n table, td { border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt; }\n img { border:0;height:auto;line-height:100%; outline:none;text-decoration:none;-ms-interpolation-mode:bicubic; }\n p { display:block;margin:13px 0; }\n </style>\n \x3c!--[if mso]>\n <noscript>\n <xml>\n <o:OfficeDocumentSettings>\n <o:AllowPNG/>\n <o:PixelsPerInch>96</o:PixelsPerInch>\n </o:OfficeDocumentSettings>\n </xml>\n </noscript>\n <![endif]--\x3e\n \x3c!--[if lte mso 11]>\n <style type="text/css">\n .mj-outlook-group-fix { width:100% !important; }\n </style>\n <![endif]--\x3e\n ').concat((0,u.buildFontsTags)(f,E,d),"\n ").concat((0,p.default)(r,h,w),'\n <style type="text/css">\n ').concat((0,s.default)(m,(function(t,e){return"".concat(t,"\n").concat(e(r))}),""),"\n ").concat((0,s.default)(g,(function(t,e){return"".concat(t,"\n").concat(e(r))}),""),'\n </style>\n <style type="text/css">\n ').concat((0,l.default)(_,(function(t){return(0,o.default)(t)?t(r):t})).join(""),"\n </style>\n ").concat(v.filter((0,a.default)(i.default)).join("\n"),'\n </head>\n <body style="word-spacing:normal;').concat(e?"background-color:".concat(e,";"):"",'">\n ').concat((0,c.default)(y),"\n ").concat(f,"\n </body>\n</html>\n ")};var o=r(n(68)),i=r(n(90)),a=r(n(221)),s=r(n(41)),l=r(n(46)),c=r(n(530)),u=n(531),p=r(n(532));t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return""!==t?'\n <div style="display:none;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;">'.concat(t,"</div>\n "):""},t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.buildFontsTags=function(t,e){var n=[];return(0,i.default)(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},(function(r,o){var i=new RegExp('"[^"]*font-family:[^"]*'.concat(o,'[^"]*"'),"gmi"),a=new RegExp("font-family:[^;}]*".concat(o),"gmi");(t.match(i)||e.some((function(t){return t.match(a)})))&&n.push(r)})),0<n.length?"\n \x3c!--[if !mso]>\x3c!--\x3e\n ".concat((0,o.default)(n,(function(t){return'<link href="'.concat(t,'" rel="stylesheet" type="text/css">')})).join("\n"),'\n <style type="text/css">\n ').concat((0,o.default)(n,(function(t){return"@import url(".concat(t,");")})).join("\n"),"\n </style>\n \x3c!--<![endif]--\x3e\n\n "):""};var o=r(n(46)),i=r(n(40))},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if((0,o.default)(e))return"";var r=(0,i.default)(e,(function(t,e){return".".concat(e," ").concat(t)})),a=(0,i.default)(e,(function(t,e){return".moz-text-html .".concat(e," ").concat(t)}));return e=(0,i.default)(r,(function(t){return"[owa] ".concat(t)})),'\n <style type="text/css">\n @media only screen and (min-width:'.concat(t,") {\n ").concat(r.join("\n"),'\n }\n </style>\n <style media="screen and (min-width:').concat(t,')">\n ').concat(a.join("\n"),"\n </style>\n ").concat(n?'<style type="text/css">\n'.concat(e.join("\n"),"\n</style>"):"","\n ")};var o=r(n(148)),i=r(n(46));t.exports=e.default},function(t,e,n){"use strict";(function(t){var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.readMjmlConfig=l,e.resolveComponentPath=c,e.registerCustomComponent=u,e.handleMjmlConfigComponents=p,e.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:t.cwd(),n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:s.registerComponent,r=l(e),o=r.mjmlConfig.packages;return e=r.componentRootPath,(r=r.error)?{error:r}:p(o,e,n)};var o=r(n(21)),i=r(n(63)),a=n(141),s=n(224);function l(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:t.cwd(),r=t.cwd(),a=e;try{a=o.default.basename(e).match(/^\.mjmlconfig(\.js)?$/)?o.default.resolve(e):o.default.resolve(e,".mjmlconfig"),r=o.default.dirname(a);var s=o.default.resolve(a);return{mjmlConfig:".js"===o.default.extname(a)?(delete n.c[s],n(91)(s)):JSON.parse(i.default.readFileSync(s,"utf8")),componentRootPath:r}}catch(e){return"ENOENT"!==e.code&&console.error("Error reading mjmlconfig : ",e),{mjmlConfig:{packages:[],options:{}},mjmlConfigPath:a,componentRootPath:r,error:e}}}function c(t,e){if(!t)return null;if(!t.startsWith(".")&&!o.default.isAbsolute(t))try{return n(91).resolve(t)}catch(n){if("MODULE_NOT_FOUND"!==n.code)return console.error("Error resolving custom component path : ",n),null;try{return c("./node_modules/".concat(t),e)}catch(n){return c("./".concat(t),e)}}return n(91).resolve(o.default.resolve(e,t))}function u(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:s.registerComponent;t instanceof Function?e(t):Object.keys(t).forEach((function(n){u(t[n],e)}))}function p(t,e,r){var o={success:[],failures:[]};return t.forEach((function(t){var i,s=t;try{(s=c(t,e))&&(u((i=n(91)(s)).default||i,r),(0,a.registerDependencies)((i.default||i).dependencies||{}),o.success.push(t))}catch(i){o.failures.push({error:i,compPath:t}),"ENOENT"===i.code||"MODULE_NOT_FOUND"===i.code?console.error("Missing or unreadable custom component : ",s):console.error("Error when registering custom component : ",s,i)}})),o}}).call(this,n(14))},function(t,e){t.exports=!1},function(t,e){function n(t){throw(t=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},(t.exports=n.resolve=n).id=535},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(537),i=n(540),a=n(543),s=n(553),l=r(n(556)),c=r(n(557)),u=r(n(558)),p=r(n(559)),f=r(n(560)),d=r(n(561)),h=r(n(562)),g=r(n(563)),m=r(n(564)),v=r(n(565)),y=r(n(568)),b=r(n(569)),_=r(n(570)),w=r(n(571)),E=r(n(572)),x=r(n(573)),T=r(n(231)),C=r(n(574)),A=r(n(575)),O=r(n(576)),S=r(n(577));n=r(n(578)),n={components:[l.default,c.default,u.default,p.default,f.default,d.default,h.default,g.default,m.default,v.default,y.default,b.default,_.default,w.default,E.default,x.default,T.default,C.default,A.default,O.default,S.default,o.Social,o.SocialElement,i.Navbar,i.NavbarLink,s.Accordion,s.AccordionElement,s.AccordionText,s.AccordionTitle,a.Carousel,a.CarouselImage],dependencies:n.default},e.default=n,t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Social",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"SocialElement",{enumerable:!0,get:function(){return i.default}});var o=r(n(538)),i=r(n(539))},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=r(n(90));n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{tableVertical:{margin:"0px"}}}},{key:"getSocialElementAttributes",value:function(){var t=this,e={};return this.getAttribute("inner-padding")&&(e.padding=this.getAttribute("inner-padding")),["border-radius","color","font-family","font-size","font-weight","font-style","icon-size","icon-height","icon-padding","text-padding","line-height","text-decoration"].filter((function(e){return!(0,c.default)(t.getAttribute(e))})).reduce((function(e,n){return e[n]=t.getAttribute(n),e}),e)}},{key:"renderHorizontal",value:function(){var t=this,e=this.props.children;return"\n \x3c!--[if mso | IE]>\n <table\n ".concat(this.htmlAttributes({align:this.getAttribute("align"),border:"0",cellpadding:"0",cellspacing:"0",role:"presentation"}),"\n >\n <tr>\n <![endif]--\x3e\n ").concat(this.renderChildren(e,{attributes:this.getSocialElementAttributes(),renderer:function(e){return e.constructor.isRawElement()?e.render():"\n \x3c!--[if mso | IE]>\n <td>\n <![endif]--\x3e\n <table\n ".concat(e.htmlAttributes({align:t.getAttribute("align"),border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:{float:"none",display:"inline-table"}}),"\n >\n <tbody>\n ").concat(e.render(),"\n </tbody>\n </table>\n \x3c!--[if mso | IE]>\n </td>\n <![endif]--\x3e\n ")}}),"\n \x3c!--[if mso | IE]>\n </tr>\n </table>\n <![endif]--\x3e\n ")}},{key:"renderVertical",value:function(){var t=this.props.children;return"\n <table\n ".concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"tableVertical"}),"\n >\n <tbody>\n ").concat(this.renderChildren(t,{attributes:this.getSocialElementAttributes()}),"\n </tbody>\n </table>\n ")}},{key:"render",value:function(){return"\n ".concat("horizontal"===this.getAttribute("mode")?this.renderHorizontal():this.renderVertical(),"\n ")}}]),n}(n(9).BodyComponent),e.default=n,(0,l.default)(n,"componentName","mj-social"),(0,l.default)(n,"allowedAttributes",{align:"enum(left,right,center)","border-radius":"unit(px,%)","container-background-color":"color",color:"color","font-family":"string","font-size":"unit(px)","font-style":"string","font-weight":"string","icon-size":"unit(px,%)","icon-height":"unit(px,%)","icon-padding":"unit(px,%){1,4}","inner-padding":"unit(px,%){1,4}","line-height":"unit(px,%,)",mode:"enum(horizontal,vertical)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}","table-layout":"enum(auto,fixed)","text-padding":"unit(px,%){1,4}","text-decoration":"string","vertical-align":"enum(top,bottom,middle)"}),(0,l.default)(n,"defaultAttributes",{align:"center","border-radius":"3px",color:"#333333","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","icon-size":"20px","inner-padding":null,"line-height":"22px",mode:"horizontal",padding:"10px 25px","text-decoration":"none"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(4)),u=a(n(5)),p=a(n(8)),f=a(n(153)),d=a(n(42)),h=(a=n(9),{facebook:{"share-url":"https://www.facebook.com/sharer/sharer.php?u=[[URL]]","background-color":"#3b5998",src:"".concat(n="https://www.mailjet.com/images/theme/v1/icons/ico-social/","facebook.png")},twitter:{"share-url":"https://twitter.com/intent/tweet?url=[[URL]]","background-color":"#55acee",src:"".concat(n,"twitter.png")},google:{"share-url":"https://plus.google.com/share?url=[[URL]]","background-color":"#dc4e41",src:"".concat(n,"google-plus.png")},pinterest:{"share-url":"https://pinterest.com/pin/create/button/?url=[[URL]]&media=&description=","background-color":"#bd081c",src:"".concat(n,"pinterest.png")},linkedin:{"share-url":"https://www.linkedin.com/shareArticle?mini=true&url=[[URL]]&title=&summary=&source=","background-color":"#0077b5",src:"".concat(n,"linkedin.png")},instagram:{"background-color":"#3f729b",src:"".concat(n,"instagram.png")},web:{src:"".concat(n,"web.png"),"background-color":"#4BADE9"},snapchat:{src:"".concat(n,"snapchat.png"),"background-color":"#FFFA54"},youtube:{src:"".concat(n,"youtube.png"),"background-color":"#EB3323"},tumblr:{src:"".concat(n,"tumblr.png"),"share-url":"https://www.tumblr.com/widgets/share/tool?canonicalUrl=[[URL]]","background-color":"#344356"},github:{src:"".concat(n,"github.png"),"background-color":"#000000"},xing:{src:"".concat(n,"xing.png"),"share-url":"https://www.xing.com/app/user?op=share&url=[[URL]]","background-color":"#296366"},vimeo:{src:"".concat(n,"vimeo.png"),"background-color":"#53B4E7"},medium:{src:"".concat(n,"medium.png"),"background-color":"#000000"},soundcloud:{src:"".concat(n,"soundcloud.png"),"background-color":"#EF7F31"},dribbble:{src:"".concat(n,"dribbble.png"),"background-color":"#D95988"}});(0,f.default)(h,(function(t,e){h["".concat(e,"-noshare")]=o(o({},t),{},{"share-url":"[[URL]]"})})),a=function(t){(0,c.default)(n,t);var e=(0,u.default)(n);function n(){return(0,s.default)(this,n),e.apply(this,arguments)}return(0,l.default)(n,[{key:"getStyles",value:function(){var t=(n=this.getSocialAttributes())["icon-size"],e=n["icon-height"],n=n["background-color"];return{td:{padding:this.getAttribute("padding"),"padding-top":this.getAttribute("padding-top"),"padding-right":this.getAttribute("padding-right"),"padding-bottom":this.getAttribute("padding-bottom"),"padding-left":this.getAttribute("padding-left"),"vertical-align":this.getAttribute("vertical-align")},table:{background:n,"border-radius":this.getAttribute("border-radius"),width:t},icon:{padding:this.getAttribute("icon-padding"),"font-size":"0",height:e||t,"vertical-align":"middle",width:t},img:{"border-radius":this.getAttribute("border-radius"),display:"block"},tdText:{"vertical-align":"middle",padding:this.getAttribute("text-padding")},text:{color:this.getAttribute("color"),"font-size":this.getAttribute("font-size"),"font-weight":this.getAttribute("font-weight"),"font-style":this.getAttribute("font-style"),"font-family":this.getAttribute("font-family"),"line-height":this.getAttribute("line-height"),"text-decoration":this.getAttribute("text-decoration")}}}},{key:"getSocialAttributes",value:function(){var t=this,e=h[this.getAttribute("name")]||{},n=this.getAttribute("href");n&&(0,d.default)(e,"share-url")&&(n=e["share-url"].replace("[[URL]]",n));var r=["icon-size","icon-height","srcset","sizes","src","background-color"].reduce((function(n,r){return o(o({},n),{},i({},r,t.getAttribute(r)||e[r]))}),{});return o({href:n},r)}},{key:"render",value:function(){var t=(a=this.getSocialAttributes()).src,e=a.srcset,n=a.sizes,r=a.href,o=a["icon-size"],i=a["icon-height"],a=!!this.getAttribute("href");return"\n <tr\n ".concat(this.htmlAttributes({class:this.getAttribute("css-class")}),"\n >\n <td ").concat(this.htmlAttributes({style:"td"}),">\n <table\n ").concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table"}),"\n >\n <tbody>\n <tr>\n <td ").concat(this.htmlAttributes({style:"icon"}),">\n ").concat(a?"<a ".concat(this.htmlAttributes({href:r,rel:this.getAttribute("rel"),target:this.getAttribute("target")}),">"):"","\n <img\n ").concat(this.htmlAttributes({alt:this.getAttribute("alt"),title:this.getAttribute("title"),height:parseInt(i||o,10),src:t,style:"img",width:parseInt(o,10),sizes:n,srcset:e}),"\n />\n ").concat(a?"</a>":"","\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n ").concat(this.getContent()?"\n <td ".concat(this.htmlAttributes({style:"tdText"}),">\n ").concat(a?"<a\n ".concat(this.htmlAttributes({href:r,style:"text",rel:this.getAttribute("rel"),target:this.getAttribute("target")}),">"):"<span\n ".concat(this.htmlAttributes({style:"text"}),">"),"\n ").concat(this.getContent(),"\n ").concat(a?"</a>":"</span>","\n </td>\n "):"","\n </tr>\n ")}}]),n}(a.BodyComponent),e.default=a,(0,p.default)(a,"componentName","mj-social-element"),(0,p.default)(a,"endingTag",!0),(0,p.default)(a,"allowedAttributes",{align:"enum(left,center,right)","background-color":"color",color:"color","border-radius":"unit(px)","font-family":"string","font-size":"unit(px)","font-style":"string","font-weight":"string",href:"string","icon-size":"unit(px,%)","icon-height":"unit(px,%)","icon-padding":"unit(px,%){1,4}","line-height":"unit(px,%,)",name:"string","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}","text-padding":"unit(px,%){1,4}",rel:"string",src:"string",srcset:"string",sizes:"string",alt:"string",title:"string",target:"string","text-decoration":"string","vertical-align":"enum(top,middle,bottom)"}),(0,p.default)(a,"defaultAttributes",{align:"left",color:"#000","border-radius":"3px","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","line-height":"1",padding:"4px","text-padding":"4px 4px 4px 0",target:"_blank","text-decoration":"none","vertical-align":"middle"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Navbar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"NavbarLink",{enumerable:!0,get:function(){return i.default}});var o=r(n(541)),i=r(n(542))},function(t,e,n){"use strict";var r=n(36).default,o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(3)),a=o(n(7)),s=o(n(37)),l=o(n(4)),c=o(n(5)),u=o(n(8)),p=n(9),f=r(n(53)),d=o(n(225));n=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){var t;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o)),(0,u.default)((0,s.default)(t),"headStyle",(function(t){return"\n noinput.mj-menu-checkbox { display:block!important; max-height:none!important; visibility:visible!important; }\n\n @media only screen and (max-width:".concat((0,p.makeLowerBreakpoint)(t),') {\n .mj-menu-checkbox[type="checkbox"] ~ .mj-inline-links { display:none!important; }\n .mj-menu-checkbox[type="checkbox"]:checked ~ .mj-inline-links,\n .mj-menu-checkbox[type="checkbox"] ~ .mj-menu-trigger { display:block!important; max-width:none!important; max-height:none!important; font-size:inherit!important; }\n .mj-menu-checkbox[type="checkbox"] ~ .mj-inline-links > a { display:block!important; }\n .mj-menu-checkbox[type="checkbox"]:checked ~ .mj-menu-trigger .mj-menu-icon-close { display:block!important; }\n .mj-menu-checkbox[type="checkbox"]:checked ~ .mj-menu-trigger .mj-menu-icon-open { display:none!important; }\n }\n ')})),t}return(0,a.default)(n,[{key:"getStyles",value:function(){return{div:{align:this.getAttribute("align"),width:"100%"},label:{display:"block",cursor:"pointer","mso-hide":"all","-moz-user-select":"none","user-select":"none",color:this.getAttribute("ico-color"),"font-size":this.getAttribute("ico-font-size"),"font-family":this.getAttribute("ico-font-family"),"text-transform":this.getAttribute("ico-text-transform"),"text-decoration":this.getAttribute("ico-text-decoration"),"line-height":this.getAttribute("ico-line-height"),"padding-top":this.getAttribute("ico-padding-top"),"padding-right":this.getAttribute("ico-padding-right"),"padding-bottom":this.getAttribute("ico-padding-bottom"),"padding-left":this.getAttribute("ico-padding-left"),padding:this.getAttribute("ico-padding")},trigger:{display:"none","max-height":"0px","max-width":"0px","font-size":"0px",overflow:"hidden"},icoOpen:{"mso-hide":"all"},icoClose:{display:"none","mso-hide":"all"}}}},{key:"renderHamburger",value:function(){var t=(0,d.default)(16);return"\n ".concat((0,f.msoConditionalTag)('\n <input type="checkbox" id="'.concat(t,'" class="mj-menu-checkbox" style="display:none !important; max-height:0; visibility:hidden;" />\n '),!0),"\n <div\n ").concat(this.htmlAttributes({class:"mj-menu-trigger",style:"trigger"}),"\n >\n <label\n ").concat(this.htmlAttributes({for:t,class:"mj-menu-label",style:"label",align:this.getAttribute("ico-align")}),"\n >\n <span\n ").concat(this.htmlAttributes({class:"mj-menu-icon-open",style:"icoOpen"}),"\n >\n ").concat(this.getAttribute("ico-open"),"\n </span>\n <span\n ").concat(this.htmlAttributes({class:"mj-menu-icon-close",style:"icoClose"}),"\n >\n ").concat(this.getAttribute("ico-close"),"\n </span>\n </label>\n </div>\n ")}},{key:"render",value:function(){return"\n ".concat("hamburger"===this.getAttribute("hamburger")?this.renderHamburger():"","\n <div\n ").concat(this.htmlAttributes({class:"mj-inline-links",style:this.htmlAttributes("div")}),"\n >\n ").concat((0,f.default)('\n <table role="presentation" border="0" cellpadding="0" cellspacing="0" align="'.concat(this.getAttribute("align"),'">\n <tr>\n ')),"\n ").concat(this.renderChildren(this.props.children,{attributes:{navbarBaseUrl:this.getAttribute("base-url")}}),"\n ").concat((0,f.default)("\n </tr></table>\n "),"\n </div>\n ")}}]),n}(p.BodyComponent),e.default=n,(0,u.default)(n,"componentName","mj-navbar"),(0,u.default)(n,"allowedAttributes",{align:"enum(left,center,right)","base-url":"string",hamburger:"string","ico-align":"enum(left,center,right)","ico-open":"string","ico-close":"string","ico-color":"color","ico-font-size":"unit(px,%)","ico-font-family":"string","ico-text-transform":"string","ico-padding":"unit(px,%){1,4}","ico-padding-left":"unit(px,%)","ico-padding-top":"unit(px,%)","ico-padding-right":"unit(px,%)","ico-padding-bottom":"unit(px,%)",padding:"unit(px,%){1,4}","padding-left":"unit(px,%)","padding-top":"unit(px,%)","padding-right":"unit(px,%)","padding-bottom":"unit(px,%)","ico-text-decoration":"string","ico-line-height":"unit(px,%,)"}),(0,u.default)(n,"defaultAttributes",{align:"center","base-url":null,hamburger:null,"ico-align":"center","ico-open":"☰","ico-close":"⊗","ico-color":"#000000","ico-font-size":"30px","ico-font-family":"Ubuntu, Helvetica, Arial, sans-serif","ico-text-transform":"uppercase","ico-padding":"10px","ico-text-decoration":"none","ico-line-height":"30px"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=n(9),u=r(n(53));n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{a:{display:"inline-block",color:this.getAttribute("color"),"font-family":this.getAttribute("font-family"),"font-size":this.getAttribute("font-size"),"font-style":this.getAttribute("font-style"),"font-weight":this.getAttribute("font-weight"),"letter-spacing":this.getAttribute("letter-spacing"),"line-height":this.getAttribute("line-height"),"text-decoration":this.getAttribute("text-decoration"),"text-transform":this.getAttribute("text-transform"),padding:this.getAttribute("padding"),"padding-top":this.getAttribute("padding-top"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-bottom":this.getAttribute("padding-bottom")},td:{padding:this.getAttribute("padding"),"padding-top":this.getAttribute("padding-top"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-bottom":this.getAttribute("padding-bottom")}}}},{key:"renderContent",value:function(){var t=this.getAttribute("href"),e=(e=this.getAttribute("navbarBaseUrl"))?"".concat(e).concat(t):t;return t=this.getAttribute("css-class")?" ".concat(this.getAttribute("css-class")):"","\n <a\n ".concat(this.htmlAttributes({class:"mj-link".concat(t),href:e,rel:this.getAttribute("rel"),target:this.getAttribute("target"),name:this.getAttribute("name"),style:"a"}),"\n >\n ").concat(this.getContent(),"\n </a>\n ")}},{key:"render",value:function(){return"\n ".concat((0,u.default)("\n <td\n ".concat(this.htmlAttributes({style:"td",class:(0,c.suffixCssClasses)(this.getAttribute("css-class"),"outlook")}),"\n >\n ")),"\n ").concat(this.renderContent(),"\n ").concat((0,u.default)("\n </td>\n "),"\n ")}}]),n}(c.BodyComponent),e.default=n,(0,l.default)(n,"componentName","mj-navbar-link"),(0,l.default)(n,"endingTag",!0),(0,l.default)(n,"allowedAttributes",{color:"color","font-family":"string","font-size":"unit(px)","font-style":"string","font-weight":"string",href:"string",name:"string",target:"string",rel:"string","letter-spacing":"unitWithNegative(px,em)","line-height":"unit(px,%,)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}","text-decoration":"string","text-transform":"string"}),(0,l.default)(n,"defaultAttributes",{color:"#000000","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","font-weight":"normal","line-height":"22px",padding:"15px 10px",target:"_blank","text-decoration":"none","text-transform":"uppercase"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"CarouselImage",{enumerable:!0,get:function(){return i.default}});var o=r(n(544)),i=r(n(552))},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(37)),s=r(n(4)),l=r(n(5)),c=r(n(8)),u=r(n(46)),p=r(n(226)),f=r(n(547)),d=r(n(549)),h=n(9),g=n(53),m=r(n(225));h=function(t){(0,s.default)(n,t);var e=(0,l.default)(n);function n(){var t,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(this,n),t=e.call(this,r),(0,c.default)((0,a.default)(t),"componentHeadStyle",(function(){var e=t.props.children.length,n=(0,a.default)(t).carouselId;if(!e)return"";var r="\n .mj-carousel {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n }\n\n .mj-carousel-".concat(n,"-icons-cell {\n display: table-cell !important;\n width: ").concat(t.getAttribute("icon-width")," !important;\n }\n\n .mj-carousel-radio,\n .mj-carousel-next,\n .mj-carousel-previous {\n display: none !important;\n }\n\n .mj-carousel-thumbnail,\n .mj-carousel-next,\n .mj-carousel-previous {\n touch-action: manipulation;\n }\n\n ").concat((0,d.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-radio:checked ").concat((0,f.default)("+ * ",t),"+ .mj-carousel-content .mj-carousel-image")})).join(",")," {\n display: none !important;\n }\n\n ").concat((0,d.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-radio-").concat(t+1,":checked ").concat((0,f.default)("+ * ",e-t-1),"+ .mj-carousel-content .mj-carousel-image-").concat(t+1)})).join(",")," {\n display: block !important;\n }\n\n .mj-carousel-previous-icons,\n .mj-carousel-next-icons,\n ").concat((0,d.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-radio-").concat(t+1,":checked ").concat((0,f.default)("+ * ",e-t-1),"+ .mj-carousel-content .mj-carousel-next-").concat((t+1%e+e)%e+1)})),",\n ").concat((0,d.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-radio-").concat(t+1,":checked ").concat((0,f.default)("+ * ",e-t-1),"+ .mj-carousel-content .mj-carousel-previous-").concat((t-1%e+e)%e+1)}))," {\n display: block !important;\n }\n\n ").concat((0,d.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-radio-").concat(t+1,":checked ").concat((0,f.default)("+ * ",e-t-1),"+ .mj-carousel-content .mj-carousel-").concat(n,"-thumbnail-").concat(t+1)})).join(",")," {\n border-color: ").concat(t.getAttribute("tb-selected-border-color")," !important;\n }\n\n .mj-carousel-image img + div,\n .mj-carousel-thumbnail img + div {\n display: none !important;\n }\n\n ").concat((0,d.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-thumbnail:hover ").concat((0,f.default)("+ * ",e-t-1),"+ .mj-carousel-main .mj-carousel-image")})).join(",")," {\n display: none !important;\n }\n\n .mj-carousel-thumbnail:hover {\n border-color: ").concat(t.getAttribute("tb-hover-border-color")," !important;\n }\n\n ").concat((0,d.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-thumbnail-").concat(t+1,":hover ").concat((0,f.default)("+ * ",e-t-1),"+ .mj-carousel-main .mj-carousel-image-").concat(t+1)})).join(",")," {\n display: block !important;\n }\n "),o="\n .mj-carousel noinput { display:block !important; }\n .mj-carousel noinput .mj-carousel-image-1 { display: block !important; }\n .mj-carousel noinput .mj-carousel-arrows,\n .mj-carousel noinput .mj-carousel-thumbnails { display: none !important; }\n\n [owa] .mj-carousel-thumbnail { display: none !important; }\n \n @media screen yahoo {\n .mj-carousel-".concat(t.carouselId,"-icons-cell,\n .mj-carousel-previous-icons,\n .mj-carousel-next-icons {\n display: none !important;\n }\n\n .mj-carousel-").concat(n,"-radio-1:checked ").concat((0,f.default)("+ *",e-1),"+ .mj-carousel-content .mj-carousel-").concat(n,"-thumbnail-1 {\n border-color: transparent;\n }\n }\n ");return"".concat(r,"\n").concat(o)})),t.carouselId=(0,m.default)(16),t}return(0,i.default)(n,[{key:"getStyles",value:function(){return{carousel:{div:{display:"table",width:"100%","table-layout":"fixed","text-align":"center","font-size":"0px"},table:{"caption-side":"top",display:"table-caption","table-layout":"fixed",width:"100%"}},images:{td:{padding:"0px"}},controls:{div:{display:"none","mso-hide":"all"},img:{display:"block",width:this.getAttribute("icon-width"),height:"auto"},td:{"font-size":"0px",display:"none","mso-hide":"all",padding:"0px"}}}}},{key:"thumbnailsWidth",value:function(){return this.props.children.length?this.getAttribute("tb-width")||"".concat((0,p.default)([this.context.parentWidth/this.props.children.length,110]),"px"):0}},{key:"imagesAttributes",value:function(){return(0,u.default)(this.children,"attributes")}},{key:"generateRadios",value:function(){return this.renderChildren(this.props.children,{renderer:function(t){return t.renderRadio()},attributes:{carouselId:this.carouselId}})}},{key:"generateThumbnails",value:function(){return"visible"!==this.getAttribute("thumbnails")?"":this.renderChildren(this.props.children,{attributes:{"tb-border":this.getAttribute("tb-border"),"tb-border-radius":this.getAttribute("tb-border-radius"),"tb-width":this.thumbnailsWidth(),carouselId:this.carouselId},renderer:function(t){return t.renderThumbnail()}})}},{key:"generateControls",value:function(t,e){var n=this,r=parseInt(this.getAttribute("icon-width"),10);return"\n <td\n ".concat(this.htmlAttributes({class:"mj-carousel-".concat(this.carouselId,"-icons-cell"),style:"controls.td"}),"\n >\n <div\n ").concat(this.htmlAttributes({class:"mj-carousel-".concat(t,"-icons"),style:"controls.div"}),"\n >\n ").concat((0,d.default)(1,this.props.children.length+1).map((function(o){return"\n <label\n ".concat(n.htmlAttributes({for:"mj-carousel-".concat(n.carouselId,"-radio-").concat(o),class:"mj-carousel-".concat(t," mj-carousel-").concat(t,"-").concat(o)}),"\n >\n <img\n ").concat(n.htmlAttributes({src:e,alt:t,style:"controls.img",width:r}),"\n />\n </label>\n ")})).join(""),"\n </div>\n </td>\n ")}},{key:"generateImages",value:function(){return"\n <td\n ".concat(this.htmlAttributes({style:"images.td"}),"\n >\n <div\n ").concat(this.htmlAttributes({class:"mj-carousel-images"}),"\n >\n ").concat(this.renderChildren(this.props.children,{attributes:{"border-radius":this.getAttribute("border-radius")}}),"\n </div>\n </td>\n ")}},{key:"generateCarousel",value:function(){return"\n <table\n ".concat(this.htmlAttributes({style:"carousel.table",border:"0",cellpadding:"0",cellspacing:"0",width:"100%",role:"presentation",class:"mj-carousel-main"}),"\n >\n <tbody>\n <tr>\n ").concat(this.generateControls("previous",this.getAttribute("left-icon")),"\n ").concat(this.generateImages(),"\n ").concat(this.generateControls("next",this.getAttribute("right-icon")),"\n </tr>\n </tbody>\n </table>\n ")}},{key:"renderFallback",value:function(){var t=this.props.children;return 0===t.length?"":(0,g.msoConditionalTag)(this.renderChildren([t[0]],{attributes:{"border-radius":this.getAttribute("border-radius")}}))}},{key:"render",value:function(){return"\n ".concat((0,g.msoConditionalTag)("\n <div\n ".concat(this.htmlAttributes({class:"mj-carousel"}),"\n >\n ").concat(this.generateRadios(),"\n <div\n ").concat(this.htmlAttributes({class:"mj-carousel-content mj-carousel-".concat(this.carouselId,"-content"),style:"carousel.div"}),"\n >\n ").concat(this.generateThumbnails(),"\n ").concat(this.generateCarousel(),"\n </div>\n </div>\n "),!0),"\n ").concat(this.renderFallback(),"\n ")}}]),n}(h.BodyComponent),e.default=h,(0,c.default)(h,"componentName","mj-carousel"),(0,c.default)(h,"allowedAttributes",{align:"enum(left,center,right)","border-radius":"unit(px,%){1,4}","container-background-color":"color","icon-width":"unit(px,%)","left-icon":"string",padding:"unit(px,%){1,4}","padding-top":"unit(px,%)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","right-icon":"string",thumbnails:"enum(visible,hidden)","tb-border":"string","tb-border-radius":"unit(px,%)","tb-hover-border-color":"color","tb-selected-border-color":"color","tb-width":"unit(px,%)"}),(0,c.default)(h,"defaultAttributes",{align:"center","border-radius":"6px","icon-width":"44px","left-icon":"https://i.imgur.com/xTh3hln.png","right-icon":"https://i.imgur.com/os7o9kz.png",thumbnails:"visible","tb-border":"2px solid transparent","tb-border-radius":"6px","tb-hover-border-color":"#fead0d","tb-selected-border-color":"#ccc"}),t.exports=e.default},function(t,e,n){var r=n(44);t.exports=function(t,e,n){for(var o=-1,i=t.length;++o<i;){var a,s,l=t[o],c=e(l);null!=c&&(void 0===a?c==c&&!r(c):n(c,a))&&(a=c,s=l)}return s}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e,n){var r=n(548),o=n(142),i=n(59),a=n(45);t.exports=function(t,e,n){return e=(n?o(t,e,n):void 0===e)?1:i(e),r(a(t),e)}},function(t,e){var n=Math.floor;t.exports=function(t,e){var r="";if(!t||e<1||9007199254740991<e)return r;for(;e%2&&(r+=t),(e=n(e/2))&&(t+=t),e;);return r}},function(t,e,n){n=n(550)(),t.exports=n},function(t,e,n){var r=n(551),o=n(142),i=n(175);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e<n?1:-1:i(a),r(e,n,a,t)}}},function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,o,i){for(var a=-1,s=r(n((e-t)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=t,t+=o;return l}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=(r=r(n(8)),n(9));n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{images:{img:{"border-radius":this.getAttribute("border-radius"),display:"block",width:this.context.containerWidth,"max-width":"100%",height:"auto"},firstImageDiv:{},otherImageDiv:{display:"none","mso-hide":"all"}},radio:{input:{display:"none","mso-hide":"all"}},thumbnails:{a:{border:this.getAttribute("tb-border"),"border-radius":this.getAttribute("tb-border-radius"),display:"inline-block",overflow:"hidden",width:this.getAttribute("tb-width")},img:{display:"block",width:"100%",height:"auto"}}}}},{key:"renderThumbnail",value:function(){var t=(a=this.attributes).carouselId,e=a.src,n=a.alt,r=a["tb-width"],o=a.target,i=this.props.index+1,a=(0,l.suffixCssClasses)(this.getAttribute("css-class"),"thumbnail");return"\n <a\n ".concat(this.htmlAttributes({style:"thumbnails.a",href:"#".concat(i),target:o,class:"mj-carousel-thumbnail mj-carousel-".concat(t,"-thumbnail mj-carousel-").concat(t,"-thumbnail-").concat(i," ").concat(a)}),"\n >\n <label ").concat(this.htmlAttributes({for:"mj-carousel-".concat(t,"-radio-").concat(i)}),">\n <img\n ").concat(this.htmlAttributes({style:"thumbnails.img",src:this.getAttribute("thumbnails-src")||e,alt:n,width:parseInt(r,10)}),"\n />\n </label>\n </a>\n ")}},{key:"renderRadio",value:function(){var t=this.props.index,e=this.getAttribute("carouselId");return"\n <input\n ".concat(this.htmlAttributes({class:"mj-carousel-radio mj-carousel-".concat(e,"-radio mj-carousel-").concat(e,"-radio-").concat(t+1),checked:0===t?"checked":null,type:"radio",name:"mj-carousel-radio-".concat(e),id:"mj-carousel-".concat(e,"-radio-").concat(t+1),style:"radio.input"}),"\n />\n ")}},{key:"render",value:function(){var t=(i=this.attributes).src,e=i.alt,n=i.href,r=i.rel,o=i.title,i=this.props.index;return t="\n <img\n ".concat(this.htmlAttributes({title:o,src:t,alt:e,style:"images.img",width:parseInt(this.context.containerWidth,10),border:"0"})," />\n "),e=this.getAttribute("css-class")||"","\n <div\n ".concat(this.htmlAttributes({class:"mj-carousel-image mj-carousel-image-".concat(i+1," ").concat(e),style:0===i?"images.firstImageDiv":"images.otherImageDiv"}),"\n >\n ").concat(n?"<a ".concat(this.htmlAttributes({href:n,rel:r,target:"_blank"}),">").concat(t,"</a>"):t,"\n </div>\n ")}}]),n}(l.BodyComponent),e.default=n,(0,r.default)(n,"componentName","mj-carousel-image"),(0,r.default)(n,"endingTag",!0),(0,r.default)(n,"allowedAttributes",{alt:"string",href:"string",rel:"string",target:"string",title:"string",src:"string","thumbnails-src":"string","border-radius":"unit(px,%){1,4}","tb-border":"string","tb-border-radius":"unit(px,%){1,4}"}),(0,r.default)(n,"defaultAttributes",{target:"_blank"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Accordion",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"AccordionElement",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"AccordionText",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"AccordionTitle",{enumerable:!0,get:function(){return s.default}});var o=r(n(554)),i=r(n(555)),a=r(n(227)),s=r(n(228))},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(37)),u=a(n(4)),p=a(n(5)),f=a(n(8));n=function(t){(0,u.default)(n,t);var e=(0,p.default)(n);function n(){var t;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),(0,f.default)((0,c.default)(t),"headStyle",(function(){return"\n noinput.mj-accordion-checkbox { display:block!important; }\n\n @media yahoo, only screen and (min-width:0) {\n .mj-accordion-element { display:block; }\n input.mj-accordion-checkbox, .mj-accordion-less { display:none!important; }\n input.mj-accordion-checkbox + * .mj-accordion-title { cursor:pointer; touch-action:manipulation; -webkit-user-select:none; -moz-user-select:none; user-select:none; }\n input.mj-accordion-checkbox + * .mj-accordion-content { overflow:hidden; display:none; }\n input.mj-accordion-checkbox + * .mj-accordion-more { display:block!important; }\n input.mj-accordion-checkbox:checked + * .mj-accordion-content { display:block; }\n input.mj-accordion-checkbox:checked + * .mj-accordion-more { display:none!important; }\n input.mj-accordion-checkbox:checked + * .mj-accordion-less { display:block!important; }\n }\n\n .moz-text-html input.mj-accordion-checkbox + * .mj-accordion-title { cursor: auto; touch-action: auto; -webkit-user-select: auto; -moz-user-select: auto; user-select: auto; }\n .moz-text-html input.mj-accordion-checkbox + * .mj-accordion-content { overflow: hidden; display: block; }\n .moz-text-html input.mj-accordion-checkbox + * .mj-accordion-ico { display: none; }\n\n @goodbye { @gmail }\n "})),t}return(0,l.default)(n,[{key:"getStyles",value:function(){return{table:{width:"100%","border-collapse":"collapse",border:this.getAttribute("border"),"border-bottom":"none","font-family":this.getAttribute("font-family")}}}},{key:"render",value:function(){var t=this,e=["border","icon-align","icon-width","icon-height","icon-position","icon-wrapped-url","icon-wrapped-alt","icon-unwrapped-url","icon-unwrapped-alt"].reduce((function(e,n){return o(o({},e),{},i({},n,t.getAttribute(n)))}),{});return"\n <table\n ".concat(this.htmlAttributes({cellspacing:"0",cellpadding:"0",class:"mj-accordion",style:"table"}),"\n >\n <tbody>\n ").concat(this.renderChildren(this.props.children,{attributes:e}),"\n </tbody>\n </table>\n ")}}]),n}(n(9).BodyComponent),e.default=n,(0,f.default)(n,"componentName","mj-accordion"),(0,f.default)(n,"allowedAttributes",{"container-background-color":"color",border:"string","font-family":"string","icon-align":"enum(top,middle,bottom)","icon-width":"unit(px,%)","icon-height":"unit(px,%)","icon-wrapped-url":"string","icon-wrapped-alt":"string","icon-unwrapped-url":"string","icon-unwrapped-alt":"string","icon-position":"enum(left,right)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}"}),(0,f.default)(n,"defaultAttributes",{border:"2px solid black","font-family":"Ubuntu, Helvetica, Arial, sans-serif","icon-align":"middle","icon-wrapped-url":"https://i.imgur.com/bIXv1bk.png","icon-wrapped-alt":"+","icon-unwrapped-url":"https://i.imgur.com/w4uTygT.png","icon-unwrapped-alt":"-","icon-position":"right","icon-height":"32px","icon-width":"32px",padding:"10px 25px"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(4)),u=a(n(5)),p=a(n(8)),f=a(n(47)),d=n(9),h=a(n(53)),g=a(n(227)),m=a(n(228));d=function(t){(0,c.default)(n,t);var e=(0,u.default)(n);function n(){return(0,s.default)(this,n),e.apply(this,arguments)}return(0,l.default)(n,[{key:"getStyles",value:function(){return{td:{padding:"0px","background-color":this.getAttribute("background-color")},label:{"font-size":"13px","font-family":this.getAttribute("font-family")},input:{display:"none"}}}},{key:"handleMissingChildren",value:function(){var t=this,e=this.props.children,n=["border","icon-align","icon-width","icon-height","icon-position","icon-wrapped-url","icon-wrapped-alt","icon-unwrapped-url","icon-unwrapped-alt"].reduce((function(e,n){return o(o({},e),{},i({},n,t.getAttribute(n)))}),{}),r=[];return(0,f.default)(e,{tagName:"mj-accordion-title"})||r.push(new m.default({attributes:n,context:this.getChildContext()}).render()),r.push(this.renderChildren(e,{attributes:n})),(0,f.default)(e,{tagName:"mj-accordion-text"})||r.push(new g.default({attributes:n,context:this.getChildContext()}).render()),r.join("\n")}},{key:"render",value:function(){return"\n <tr\n ".concat(this.htmlAttributes({class:this.getAttribute("css-class")}),"\n >\n <td ").concat(this.htmlAttributes({style:"td"}),">\n <label\n ").concat(this.htmlAttributes({class:"mj-accordion-element",style:"label"}),"\n >\n ").concat((0,h.default)("\n <input\n ".concat(this.htmlAttributes({class:"mj-accordion-checkbox",type:"checkbox",style:"input"}),"\n />\n "),!0),"\n <div>\n ").concat(this.handleMissingChildren(),"\n </div>\n </label>\n </td>\n </tr>\n ")}}]),n}(d.BodyComponent),e.default=d,(0,p.default)(d,"componentName","mj-accordion-element"),(0,p.default)(d,"allowedAttributes",{"background-color":"color",border:"string","font-family":"string","icon-align":"enum(top,middle,bottom)","icon-width":"unit(px,%)","icon-height":"unit(px,%)","icon-wrapped-url":"string","icon-wrapped-alt":"string","icon-unwrapped-url":"string","icon-unwrapped-alt":"string","icon-position":"enum(left,right)"}),(0,p.default)(d,"defaultAttributes",{title:{img:{width:"32px",height:"32px"}}}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var i=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n(3)),s=i(n(7)),l=i(n(4)),c=i(n(5));i=i(n(8)),n=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){return(0,a.default)(this,n),e.apply(this,arguments)}return(0,s.default)(n,[{key:"getChildContext",value:function(){return o(o({},this.context),{},{containerWidth:this.getAttribute("width")})}},{key:"getStyles",value:function(){return{div:{"background-color":this.getAttribute("background-color")}}}},{key:"render",value:function(){var t=(e=this.context).setBackgroundColor,e=(n=e.globalData).lang,n=n.dir;return t(this.getAttribute("background-color")),"\n <div\n ".concat(this.htmlAttributes({class:this.getAttribute("css-class"),style:"div",lang:e,dir:n}),"\n >\n ").concat(this.renderChildren(),"\n </div>\n ")}}]),n}(n(9).BodyComponent),e.default=n,(0,i.default)(n,"componentName","mj-body"),(0,i.default)(n,"allowedAttributes",{width:"unit(px)","background-color":"color"}),(0,i.default)(n,"defaultAttributes",{width:"600px"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){return this.handlerChildren()}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-head"),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(4)),u=a(n(5)),p=a(n(8)),f=a(n(41)),d=a(n(168)),h=a(n(40));n=function(t){(0,c.default)(n,t);var e=(0,u.default)(n);function n(){return(0,s.default)(this,n),e.apply(this,arguments)}return(0,l.default)(n,[{key:"handler",value:function(){var t=this.context.add,e=this.props.children;(0,h.default)(e,(function(e){var n=e.tagName,r=e.attributes;e=e.children,"mj-class"===n?(t("classes",r.name,(0,d.default)(r,["name"])),t("classesDefault",r.name,(0,f.default)(e,(function(t,e){var n=e.tagName;return e=e.attributes,o(o({},t),{},i({},n,e))}),{}))):t("defaultAttributes",n,r)}))}}]),n}(n(9).HeadComponent),e.default=n,(0,p.default)(n,"componentName","mj-attributes"),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){(0,this.context.add)("breakpoint",this.getAttribute("width"))}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-breakpoint"),(0,r.default)(n,"endingTag",!0),(0,r.default)(n,"allowedAttributes",{width:"unit(px)"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(4)),u=a(n(5)),p=a(n(8)),f=a(n(42));n=function(t){(0,c.default)(n,t);var e=(0,u.default)(n);function n(){return(0,s.default)(this,n),e.apply(this,arguments)}return(0,l.default)(n,[{key:"handler",value:function(){var t=this.context.add;this.props.children.filter((function(t){return"mj-selector"===t.tagName})).forEach((function(e){var n=e.attributes;e=e.children,n=n.path,e=e.filter((function(t){return"mj-html-attribute"===t.tagName&&!!(0,f.default)(t,"attributes.name")})).reduce((function(t,e){return o(o({},t),{},i({},e.attributes.name,e.content))}),{}),t("htmlAttributes",n,e)}))}}]),n}(n(9).HeadComponent),e.default=n,(0,p.default)(n,"componentName","mj-html-attributes"),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){(0,this.context.add)("fonts",this.getAttribute("name"),this.getAttribute("href"))}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-font"),(0,r.default)(n,"allowedAttributes",{name:"string",href:"string"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){(0,this.context.add)("preview",this.getContent())}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-preview"),(0,r.default)(n,"endingTag",!0),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){(0,this.context.add)("inline"===this.getAttribute("inline")?"inlineStyle":"style",this.getContent())}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-style"),(0,r.default)(n,"endingTag",!0),(0,r.default)(n,"allowedAttributes",{inline:"string"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){(0,this.context.add)("title",this.getContent())}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-title"),(0,r.default)(n,"endingTag",!0),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(37)),u=a(n(4)),p=a(n(5)),f=a(n(8)),d=a(n(140)),h=a(n(229)),g=a(n(230)),m=a(n(133)),v=n(9),y=a(n(35)),b=(0,m.default)((0,d.default)(g.default),(0,h.default)(" "));v=function(t){(0,u.default)(n,t);var e=(0,p.default)(n);function n(){var t;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o)),(0,f.default)((0,c.default)(t),"getBackground",(function(){return b([t.getAttribute("background-color")].concat(function(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.getAttribute("background-url")?["url('".concat(t.getAttribute("background-url"),"')"),"no-repeat","".concat(t.getAttribute("background-position")," / cover")]:[])))})),t}return(0,l.default)(n,[{key:"getChildContext",value:function(){var t=this.context.containerWidth,e=this.getShorthandAttrValue("padding","left")+this.getShorthandAttrValue("padding","right"),n="".concat(parseFloat(t),"px"),r=(i=(0,y.default)(n,{parseFloatToInt:!1})).unit,i=i.parsedWidth;return n="".concat("%"===r?parseFloat(t)*i/100-e:i-e,"px"),o(o({},this.context),{},{containerWidth:n})}},{key:"getStyles",value:function(){var t=this.context.containerWidth,e=Math.round(parseInt(this.getAttribute("background-height"),10)/parseInt(this.getAttribute("background-width"),10)*100),n=this.getAttribute("background-width")||t;return{div:{margin:"0 auto","max-width":t},table:{width:"100%"},tr:{"vertical-align":"top"},"td-fluid":{width:"0.01%","padding-bottom":"".concat(e,"%"),"mso-padding-bottom-alt":"0"},"outlook-table":{width:t},"outlook-td":{"line-height":0,"font-size":0,"mso-line-height-rule":"exactly"},"outlook-inner-table":{width:t},"outlook-image":{border:"0",height:this.getAttribute("background-height"),"mso-position-horizontal":"center",position:"absolute",top:0,width:n,"z-index":"-3"},"outlook-inner-td":{"background-color":this.getAttribute("inner-background-color"),padding:this.getAttribute("inner-padding"),"padding-top":this.getAttribute("inner-padding-top"),"padding-left":this.getAttribute("inner-padding-left"),"padding-right":this.getAttribute("inner-padding-right"),"padding-bottom":this.getAttribute("inner-padding-bottom")},"inner-table":{width:"100%",margin:"0px"},"inner-div":{"background-color":this.getAttribute("inner-background-color"),float:this.getAttribute("align"),margin:"0px auto",width:this.getAttribute("width")}}}},{key:"renderContent",value:function(){var t=this.context.containerWidth,e=this.props.children;return"\n \x3c!--[if mso | IE]>\n <table\n ".concat(this.htmlAttributes({align:this.getAttribute("align"),border:"0",cellpadding:"0",cellspacing:"0",style:"outlook-inner-table",width:t.replace("px","")}),"\n >\n <tr>\n <td ").concat(this.htmlAttributes({style:"outlook-inner-td"}),">\n <![endif]--\x3e\n <div\n ").concat(this.htmlAttributes({align:this.getAttribute("align"),class:"mj-hero-content",style:"inner-div"}),"\n >\n <table\n ").concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"inner-table"}),"\n >\n <tbody>\n <tr>\n <td ").concat(this.htmlAttributes({style:"inner-td"})," >\n <table\n ").concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"inner-table"}),"\n >\n <tbody>\n ").concat(this.renderChildren(e,{renderer:function(t){return t.constructor.isRawElement()?t.render():"\n <tr>\n <td\n ".concat(t.htmlAttributes({align:t.getAttribute("align"),background:t.getAttribute("container-background-color"),class:t.getAttribute("css-class"),style:{background:t.getAttribute("container-background-color"),"font-size":"0px",padding:t.getAttribute("padding"),"padding-top":t.getAttribute("padding-top"),"padding-right":t.getAttribute("padding-right"),"padding-bottom":t.getAttribute("padding-bottom"),"padding-left":t.getAttribute("padding-left"),"word-break":"break-word"}}),"\n >\n ").concat(t.render(),"\n </td>\n </tr>\n ")}}),"\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n \x3c!--[if mso | IE]>\n </td>\n </tr>\n </table>\n <![endif]--\x3e\n ")}},{key:"renderMode",value:function(){var t={background:this.getAttribute("background-url"),style:{background:this.getBackground(),"background-position":this.getAttribute("background-position"),"background-repeat":"no-repeat","border-radius":this.getAttribute("border-radius"),padding:this.getAttribute("padding"),"padding-top":this.getAttribute("padding-top"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-bottom":this.getAttribute("padding-bottom"),"vertical-align":this.getAttribute("vertical-align")}};if("fluid-height"===this.getAttribute("mode")){var e=this.htmlAttributes({style:"td-fluid"});return"\n <td ".concat(e," />\n <td ").concat(this.htmlAttributes(o({},t)),">\n ").concat(this.renderContent(),"\n </td>\n <td ").concat(e," />\n ")}return e=parseInt(this.getAttribute("height"),10)-this.getShorthandAttrValue("padding","top")-this.getShorthandAttrValue("padding","bottom"),"\n <td\n ".concat(this.htmlAttributes(o(o({},t),{},{height:e,style:o(o({},t.style),{},{height:"".concat(e,"px")})})),"\n >\n ").concat(this.renderContent(),"\n </td>\n ")}},{key:"render",value:function(){var t=this.context.containerWidth;return"\n \x3c!--[if mso | IE]>\n <table\n ".concat(this.htmlAttributes({align:"center",border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"outlook-table",width:parseInt(t,10)}),"\n >\n <tr>\n <td ").concat(this.htmlAttributes({style:"outlook-td"}),">\n <v:image\n ").concat(this.htmlAttributes({style:"outlook-image",src:this.getAttribute("background-url"),"xmlns:v":"urn:schemas-microsoft-com:vml"}),"\n />\n <![endif]--\x3e\n <div\n ").concat(this.htmlAttributes({align:this.getAttribute("align"),class:this.getAttribute("css-class"),style:"div"}),"\n >\n <table\n ").concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table"}),"\n >\n <tbody>\n <tr\n ").concat(this.htmlAttributes({style:"tr"}),"\n >\n ").concat(this.renderMode(),"\n </tr>\n </tbody>\n </table>\n </div>\n \x3c!--[if mso | IE]>\n </td>\n </tr>\n </table>\n <![endif]--\x3e\n ")}}]),n}(v.BodyComponent),e.default=v,(0,f.default)(v,"componentName","mj-hero"),(0,f.default)(v,"allowedAttributes",{mode:"string",height:"unit(px,%)","background-url":"string","background-width":"unit(px,%)","background-height":"unit(px,%)","background-position":"string","border-radius":"string","container-background-color":"color","inner-background-color":"color","inner-padding":"unit(px,%){1,4}","inner-padding-top":"unit(px,%)","inner-padding-left":"unit(px,%)","inner-padding-right":"unit(px,%)","inner-padding-bottom":"unit(px,%)",padding:"unit(px,%){1,4}","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)","background-color":"color","vertical-align":"enum(top,bottom,middle)"}),(0,f.default)(v,"defaultAttributes",{mode:"fixed-height",height:"0px","background-url":null,"background-position":"center center",padding:"0px","padding-bottom":null,"padding-left":null,"padding-right":null,"padding-top":null,"background-color":"#ffffff","vertical-align":"top"}),t.exports=e.default},function(t,e){var n=Array.prototype.join;t.exports=function(t,e){return null==t?"":n.call(t,e)}},function(t,e){t.exports={cap:!1,curry:!1,fixed:!1,immutable:!1,rearg:!1}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=n(9),u=r(n(35));c=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{table:{"border-collapse":"separate",width:this.getAttribute("width"),"line-height":"100%"},td:{border:this.getAttribute("border"),"border-bottom":this.getAttribute("border-bottom"),"border-left":this.getAttribute("border-left"),"border-radius":this.getAttribute("border-radius"),"border-right":this.getAttribute("border-right"),"border-top":this.getAttribute("border-top"),cursor:"auto","font-style":this.getAttribute("font-style"),height:this.getAttribute("height"),"mso-padding-alt":this.getAttribute("inner-padding"),"text-align":this.getAttribute("text-align"),background:this.getAttribute("background-color")},content:{display:"inline-block",width:this.calculateAWidth(this.getAttribute("width")),background:this.getAttribute("background-color"),color:this.getAttribute("color"),"font-family":this.getAttribute("font-family"),"font-size":this.getAttribute("font-size"),"font-style":this.getAttribute("font-style"),"font-weight":this.getAttribute("font-weight"),"line-height":this.getAttribute("line-height"),"letter-spacing":this.getAttribute("letter-spacing"),margin:"0","text-decoration":this.getAttribute("text-decoration"),"text-transform":this.getAttribute("text-transform"),padding:this.getAttribute("inner-padding"),"mso-padding-alt":"0px","border-radius":this.getAttribute("border-radius")}}}},{key:"calculateAWidth",value:function(t){if(!t)return null;var e=(0,u.default)(t),n=e.parsedWidth;return"px"!==e.unit?null:(t=this.getBoxWidths().borders,e=this.getShorthandAttrValue("inner-padding","left")+this.getShorthandAttrValue("inner-padding","right"),"".concat(n-e-t,"px"))}},{key:"render",value:function(){var t=this.getAttribute("href")?"a":"p";return"\n <table\n ".concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table"}),"\n >\n <tbody>\n <tr>\n <td\n ").concat(this.htmlAttributes({align:"center",bgcolor:"none"===this.getAttribute("background-color")?void 0:this.getAttribute("background-color"),role:"presentation",style:"td",valign:this.getAttribute("vertical-align")}),"\n >\n <").concat(t,"\n ").concat(this.htmlAttributes({href:this.getAttribute("href"),name:this.getAttribute("name"),rel:this.getAttribute("rel"),title:this.getAttribute("title"),style:"content",target:"a"==t?this.getAttribute("target"):void 0}),"\n >\n ").concat(this.getContent(),"\n </").concat(t,">\n </td>\n </tr>\n </tbody>\n </table>\n ")}}]),n}(c.BodyComponent),e.default=c,(0,l.default)(c,"componentName","mj-button"),(0,l.default)(c,"endingTag",!0),(0,l.default)(c,"allowedAttributes",{align:"enum(left,center,right)","background-color":"color","border-bottom":"string","border-left":"string","border-radius":"string","border-right":"string","border-top":"string",border:"string",color:"color","container-background-color":"color","font-family":"string","font-size":"unit(px)","font-style":"string","font-weight":"string",height:"unit(px,%)",href:"string",name:"string",title:"string","inner-padding":"unit(px,%){1,4}","letter-spacing":"unitWithNegative(px,em)","line-height":"unit(px,%,)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}",rel:"string",target:"string","text-decoration":"string","text-transform":"string","vertical-align":"enum(top,bottom,middle)","text-align":"enum(left,right,center)",width:"unit(px,%)"}),(0,l.default)(c,"defaultAttributes",{align:"center","background-color":"#414141",border:"none","border-radius":"3px",color:"#ffffff","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","font-weight":"normal","inner-padding":"10px 25px","line-height":"120%",padding:"10px 25px",target:"_blank","text-decoration":"none","text-transform":"none","vertical-align":"middle"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var i=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n(3)),s=i(n(7)),l=i(n(4)),c=i(n(5)),u=i(n(8)),p=n(9),f=i(n(35));p=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){return(0,a.default)(this,n),e.apply(this,arguments)}return(0,s.default)(n,[{key:"getChildContext",value:function(){var t=this.context.containerWidth,e=this.props.nonRawSiblings,n=(i=this.getBoxWidths()).borders,r=i.paddings+n+(this.getShorthandAttrValue("inner-border","left")+this.getShorthandAttrValue("inner-border","right")),i=this.getAttribute("width")||"".concat(parseFloat(t)/e,"px");return e=(n=(0,f.default)(i,{parseFloatToInt:!1})).unit,n=n.parsedWidth,i="".concat("%"===e?parseFloat(t)*n/100-r:n-r,"px"),o(o({},this.context),{},{containerWidth:i})}},{key:"getStyles",value:function(){var t={"background-color":this.getAttribute("background-color"),border:this.getAttribute("border"),"border-bottom":this.getAttribute("border-bottom"),"border-left":this.getAttribute("border-left"),"border-radius":this.getAttribute("border-radius"),"border-right":this.getAttribute("border-right"),"border-top":this.getAttribute("border-top"),"vertical-align":this.getAttribute("vertical-align")};return{div:{"font-size":"0px","text-align":"left",direction:this.getAttribute("direction"),display:"inline-block","vertical-align":this.getAttribute("vertical-align"),width:this.getMobileWidth()},table:o({},this.hasGutter()?{"background-color":this.getAttribute("inner-background-color"),border:this.getAttribute("inner-border"),"border-bottom":this.getAttribute("inner-border-bottom"),"border-left":this.getAttribute("inner-border-left"),"border-radius":this.getAttribute("inner-border-radius"),"border-right":this.getAttribute("inner-border-right"),"border-top":this.getAttribute("inner-border-top")}:t),tdOutlook:{"vertical-align":this.getAttribute("vertical-align"),width:this.getWidthAsPixel()},gutter:o(o({},t),{},{padding:this.getAttribute("padding"),"padding-top":this.getAttribute("padding-top"),"padding-right":this.getAttribute("padding-right"),"padding-bottom":this.getAttribute("padding-bottom"),"padding-left":this.getAttribute("padding-left")})}}},{key:"getMobileWidth",value:function(){var t=this.context.containerWidth,e=this.props.nonRawSiblings,n=this.getAttribute("width");if("mobileWidth"!==this.getAttribute("mobileWidth"))return"100%";if(void 0===n)return"".concat(parseInt(100/e,10),"%");var r=(0,f.default)(n,{parseFloatToInt:!1}),o=(e=r.unit,r.parsedWidth);return"%"===e?n:"".concat(o/parseInt(t,10)*100,"%")}},{key:"getWidthAsPixel",value:function(){var t=this.context.containerWidth,e=(n=(0,f.default)(this.getParsedWidth(!0),{parseFloatToInt:!1})).unit,n=n.parsedWidth;return"".concat("%"===e?parseFloat(t)*n/100:n,"px")}},{key:"getParsedWidth",value:function(t){var e=this.props.nonRawSiblings,n=this.getAttribute("width")||"".concat(100/e,"%");return n=(e=(0,f.default)(n,{parseFloatToInt:!1})).unit,e=e.parsedWidth,t?"".concat(e).concat(n):{unit:n,parsedWidth:e}}},{key:"getColumnClass",value:function(){var t,e=this.context.addMediaQuery,n=(r=this.getParsedWidth()).parsedWidth,r=r.unit,o=n.toString().replace(".","-");return e(t="%"===r?"mj-column-per-".concat(o):"mj-column-px-".concat(o),{parsedWidth:n,unit:r}),t}},{key:"hasGutter",value:function(){var t=this;return["padding","padding-bottom","padding-left","padding-right","padding-top"].some((function(e){return null!=t.getAttribute(e)}))}},{key:"renderGutter",value:function(){return"\n <table\n ".concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",width:"100%"}),"\n >\n <tbody>\n <tr>\n <td ").concat(this.htmlAttributes({style:"gutter"}),">\n ").concat(this.renderColumn(),"\n </td>\n </tr>\n </tbody>\n </table>\n ")}},{key:"renderColumn",value:function(){var t=this.props.children;return"\n <table\n ".concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table",width:"100%"}),"\n >\n <tbody>\n ").concat(this.renderChildren(t,{renderer:function(t){return t.constructor.isRawElement()?t.render():"\n <tr>\n <td\n ".concat(t.htmlAttributes({align:t.getAttribute("align"),"vertical-align":t.getAttribute("vertical-align"),class:t.getAttribute("css-class"),style:{background:t.getAttribute("container-background-color"),"font-size":"0px",padding:t.getAttribute("padding"),"padding-top":t.getAttribute("padding-top"),"padding-right":t.getAttribute("padding-right"),"padding-bottom":t.getAttribute("padding-bottom"),"padding-left":t.getAttribute("padding-left"),"word-break":"break-word"}}),"\n >\n ").concat(t.render(),"\n </td>\n </tr>\n ")}}),"\n </tbody>\n </table>\n ")}},{key:"render",value:function(){var t="".concat(this.getColumnClass()," mj-outlook-group-fix");return this.getAttribute("css-class")&&(t+=" ".concat(this.getAttribute("css-class"))),"\n <div\n ".concat(this.htmlAttributes({class:t,style:"div"}),"\n >\n ").concat(this.hasGutter()?this.renderGutter():this.renderColumn(),"\n </div>\n ")}}]),n}(p.BodyComponent),e.default=p,(0,u.default)(p,"componentName","mj-column"),(0,u.default)(p,"allowedAttributes",{"background-color":"color",border:"string","border-bottom":"string","border-left":"string","border-radius":"unit(px,%){1,4}","border-right":"string","border-top":"string",direction:"enum(ltr,rtl)","inner-background-color":"color","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)","inner-border":"string","inner-border-bottom":"string","inner-border-left":"string","inner-border-radius":"unit(px,%){1,4}","inner-border-right":"string","inner-border-top":"string",padding:"unit(px,%){1,4}","vertical-align":"enum(top,bottom,middle)",width:"unit(px,%)"}),(0,u.default)(p,"defaultAttributes",{direction:"ltr","vertical-align":"top"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var i=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n(3)),s=i(n(7)),l=i(n(4)),c=i(n(5)),u=i(n(8)),p=n(9),f=i(n(35));p=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){return(0,a.default)(this,n),e.apply(this,arguments)}return(0,s.default)(n,[{key:"getStyles",value:function(){var t=this,e="0px auto";return"left"===this.getAttribute("align")?e="0px":"right"===this.getAttribute("align")&&(e="0px 0px 0px auto"),{p:e={"border-top":["style","width","color"].map((function(e){return t.getAttribute("border-".concat(e))})).join(" "),"font-size":"1px",margin:e,width:this.getAttribute("width")},outlook:o(o({},e),{},{width:this.getOutlookWidth()})}}},{key:"getOutlookWidth",value:function(){var t=this.context.containerWidth,e=this.getShorthandAttrValue("padding","left")+this.getShorthandAttrValue("padding","right"),n=this.getAttribute("width"),r=(0,f.default)(n),o=r.parsedWidth;switch(r.unit){case"%":var i=parseInt(t,10)-e,a=parseInt(o,10)/100;return"".concat(i*a,"px");case"px":return n;default:return"".concat(parseInt(t,10)-e,"px")}}},{key:"renderAfter",value:function(){return"\n \x3c!--[if mso | IE]>\n <table\n ".concat(this.htmlAttributes({align:this.getAttribute("align"),border:"0",cellpadding:"0",cellspacing:"0",style:"outlook",role:"presentation",width:this.getOutlookWidth()}),'\n >\n <tr>\n <td style="height:0;line-height:0;">\n \n </td>\n </tr>\n </table>\n <![endif]--\x3e\n ')}},{key:"render",value:function(){return"\n <p\n ".concat(this.htmlAttributes({style:"p"}),"\n >\n </p>\n ").concat(this.renderAfter(),"\n ")}}]),n}(p.BodyComponent),e.default=p,(0,u.default)(p,"componentName","mj-divider"),(0,u.default)(p,"allowedAttributes",{"border-color":"color","border-style":"string","border-width":"unit(px)","container-background-color":"color",padding:"unit(px,%){1,4}","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",width:"unit(px,%)",align:"enum(left,center,right)"}),(0,u.default)(p,"defaultAttributes",{"border-color":"#000000","border-style":"solid","border-width":"4px",padding:"10px 25px",width:"100%",align:"center"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var i=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n(3)),s=i(n(7)),l=i(n(4)),c=i(n(5)),u=i(n(8)),p=n(9),f=i(n(35));p=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){return(0,a.default)(this,n),e.apply(this,arguments)}return(0,s.default)(n,[{key:"getChildContext",value:function(){var t=this.context.containerWidth,e=(a=this.props).nonRawSiblings,n=a.children,r=this.getShorthandAttrValue("padding","left")+this.getShorthandAttrValue("padding","right"),i=this.getAttribute("width")||"".concat(parseFloat(t)/e,"px"),a=(e=(a=(0,f.default)(i,{parseFloatToInt:!1})).unit,a.parsedWidth);return i="".concat("%"===e?parseFloat(t)*a/100-r:a-r,"px"),o(o({},this.context),{},{containerWidth:i,nonRawSiblings:n.length})}},{key:"getStyles",value:function(){return{div:{"font-size":"0","line-height":"0","text-align":"left",display:"inline-block",width:"100%",direction:this.getAttribute("direction"),"vertical-align":this.getAttribute("vertical-align"),"background-color":this.getAttribute("background-color")},tdOutlook:{"vertical-align":this.getAttribute("vertical-align"),width:this.getWidthAsPixel()}}}},{key:"getParsedWidth",value:function(t){var e=this.props.nonRawSiblings,n=this.getAttribute("width")||"".concat(100/e,"%");return n=(e=(0,f.default)(n,{parseFloatToInt:!1})).unit,e=e.parsedWidth,t?"".concat(e).concat(n):{unit:n,parsedWidth:e}}},{key:"getWidthAsPixel",value:function(){var t=this.context.containerWidth,e=(n=(0,f.default)(this.getParsedWidth(!0),{parseFloatToInt:!1})).unit,n=n.parsedWidth;return"".concat("%"===e?parseFloat(t)*n/100:n,"px")}},{key:"getColumnClass",value:function(){var t,e=this.context.addMediaQuery,n=this.getParsedWidth(),r=n.parsedWidth;return e(t="%"===(n=n.unit)?"mj-column-per-".concat(parseInt(r,10)):"mj-column-px-".concat(parseInt(r,10)),{parsedWidth:r,unit:n}),t}},{key:"render",value:function(){var t=(o=this.props).children,e=o.nonRawSiblings,n=this.getChildContext().containerWidth,r=this.context.containerWidth,o="".concat(this.getColumnClass()," mj-outlook-group-fix");return this.getAttribute("css-class")&&(o+=" ".concat(this.getAttribute("css-class"))),"\n <div\n ".concat(this.htmlAttributes({class:o,style:"div"}),"\n >\n \x3c!--[if mso | IE]>\n <table\n ").concat(this.htmlAttributes({bgcolor:"none"===this.getAttribute("background-color")?void 0:this.getAttribute("background-color"),border:"0",cellpadding:"0",cellspacing:"0",role:"presentation"}),"\n >\n <tr>\n <![endif]--\x3e\n ").concat(this.renderChildren(t,{attributes:{mobileWidth:"mobileWidth"},renderer:function(t){return t.constructor.isRawElement()?t.render():"\n \x3c!--[if mso | IE]>\n <td\n ".concat(t.htmlAttributes({style:{align:t.getAttribute("align"),"vertical-align":t.getAttribute("vertical-align"),width:function(t){if(!t)return"".concat(parseInt(r,10)/parseInt(e,10),"px");t=(o=(0,f.default)(t,{parseFloatToInt:!1})).unit;var o=o.parsedWidth;return"%"===t?"".concat(100*o/n,"px"):"".concat(o).concat(t)}(t.getWidthAsPixel?t.getWidthAsPixel():t.getAttribute("width"))}}),"\n >\n <![endif]--\x3e\n ").concat(t.render(),"\n \x3c!--[if mso | IE]>\n </td>\n <![endif]--\x3e\n ")}}),"\n \x3c!--[if mso | IE]>\n </tr>\n </table>\n <![endif]--\x3e\n </div>\n ")}}]),n}(p.BodyComponent),e.default=p,(0,u.default)(p,"componentName","mj-group"),(0,u.default)(p,"allowedAttributes",{"background-color":"color",direction:"enum(ltr,rtl)","vertical-align":"enum(top,bottom,middle)",width:"unit(px,%)"}),(0,u.default)(p,"defaultAttributes",{direction:"ltr"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}var o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(3)),a=o(n(7)),s=o(n(37)),l=o(n(4)),c=o(n(5)),u=o(n(8)),p=o(n(226)),f=n(9),d=o(n(35));n=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){var t;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o)),(0,u.default)((0,s.default)(t),"headStyle",(function(t){return"\n @media only screen and (max-width:".concat((0,f.makeLowerBreakpoint)(t),") {\n table.mj-full-width-mobile { width: 100% !important; }\n td.mj-full-width-mobile { width: auto !important; }\n }\n ")})),t}return(0,a.default)(n,[{key:"getStyles",value:function(){var t=this.getContentWidth(),e="full-width"===this.getAttribute("full-width"),n=(t=(n=(0,d.default)(t)).parsedWidth,n.unit);return{img:{border:this.getAttribute("border"),"border-left":this.getAttribute("border-left"),"border-right":this.getAttribute("border-right"),"border-top":this.getAttribute("border-top"),"border-bottom":this.getAttribute("border-bottom"),"border-radius":this.getAttribute("border-radius"),display:"block",outline:"none","text-decoration":"none",height:this.getAttribute("height"),"max-height":this.getAttribute("max-height"),"min-width":e?"100%":null,width:"100%","max-width":e?"100%":null,"font-size":this.getAttribute("font-size")},td:{width:e?null:"".concat(t).concat(n)},table:{"min-width":e?"100%":null,"max-width":e?"100%":null,width:e?"".concat(t).concat(n):null,"border-collapse":"collapse","border-spacing":"0px"}}}},{key:"getContentWidth",value:function(){var t=this.getAttribute("width")?parseInt(this.getAttribute("width"),10):1/0,e=this.getBoxWidths().box;return(0,p.default)([e,t])}},{key:"renderImage",value:function(){var t=this.getAttribute("height");return t="\n <img\n ".concat(this.htmlAttributes(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({alt:this.getAttribute("alt"),src:this.getAttribute("src"),srcset:this.getAttribute("srcset"),sizes:this.getAttribute("sizes"),style:"img",title:this.getAttribute("title"),width:this.getContentWidth(),usemap:this.getAttribute("usemap")},t?{height:"auto"===t?t:parseInt(t,10)}:{})),"\n />\n "),this.getAttribute("href")?"\n <a\n ".concat(this.htmlAttributes({href:this.getAttribute("href"),target:this.getAttribute("target"),rel:this.getAttribute("rel"),name:this.getAttribute("name"),title:this.getAttribute("title")}),"\n >\n ").concat(t,"\n </a>\n "):t}},{key:"render",value:function(){return"\n <table\n ".concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table",class:this.getAttribute("fluid-on-mobile")?"mj-full-width-mobile":null}),"\n >\n <tbody>\n <tr>\n <td ").concat(this.htmlAttributes({style:"td",class:this.getAttribute("fluid-on-mobile")?"mj-full-width-mobile":null}),">\n ").concat(this.renderImage(),"\n </td>\n </tr>\n </tbody>\n </table>\n ")}}]),n}(f.BodyComponent),e.default=n,(0,u.default)(n,"componentName","mj-image"),(0,u.default)(n,"allowedAttributes",{alt:"string",href:"string",name:"string",src:"string",srcset:"string",sizes:"string",title:"string",rel:"string",align:"enum(left,center,right)",border:"string","border-bottom":"string","border-left":"string","border-right":"string","border-top":"string","border-radius":"unit(px,%){1,4}","container-background-color":"color","fluid-on-mobile":"boolean",padding:"unit(px,%){1,4}","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",target:"string",width:"unit(px)",height:"unit(px,auto)","max-height":"unit(px,%)","font-size":"unit(px)",usemap:"string"}),(0,u.default)(n,"defaultAttributes",{align:"center",border:"0",height:"auto",padding:"10px 25px",target:"_blank","font-size":"13px"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"render",value:function(){return this.getContent()}}]),n}(n(9).BodyComponent),e.default=n,(0,r.default)(n,"componentName","mj-raw"),(0,r.default)(n,"endingTag",!0),(0,r.default)(n,"rawElement",!0),(0,r.default)(n,"allowedAttributes",{position:"enum(file-start)"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{div:{height:this.getAttribute("height"),"line-height":this.getAttribute("height")}}}},{key:"render",value:function(){return"\n <div\n ".concat(this.htmlAttributes({style:"div"}),"\n > </div>\n ")}}]),n}(n(9).BodyComponent),e.default=n,(0,r.default)(n,"componentName","mj-spacer"),(0,r.default)(n,"allowedAttributes",{border:"string","border-bottom":"string","border-left":"string","border-right":"string","border-top":"string","container-background-color":"color","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}",height:"unit(px,%)"}),(0,r.default)(n,"defaultAttributes",{height:"20px"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=n(9),u=r(n(53));c=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{text:{"font-family":this.getAttribute("font-family"),"font-size":this.getAttribute("font-size"),"font-style":this.getAttribute("font-style"),"font-weight":this.getAttribute("font-weight"),"letter-spacing":this.getAttribute("letter-spacing"),"line-height":this.getAttribute("line-height"),"text-align":this.getAttribute("align"),"text-decoration":this.getAttribute("text-decoration"),"text-transform":this.getAttribute("text-transform"),color:this.getAttribute("color"),height:this.getAttribute("height")}}}},{key:"renderContent",value:function(){return"\n <div\n ".concat(this.htmlAttributes({style:"text"}),"\n >").concat(this.getContent(),"</div>\n ")}},{key:"render",value:function(){var t=this.getAttribute("height");return t?"\n ".concat((0,u.default)('\n <table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td height="'.concat(t,'" style="vertical-align:top;height:').concat(t,';">\n ')),"\n ").concat(this.renderContent(),"\n ").concat((0,u.default)("\n </td></tr></table>\n "),"\n "):this.renderContent()}}]),n}(c.BodyComponent),e.default=c,(0,l.default)(c,"componentName","mj-text"),(0,l.default)(c,"endingTag",!0),(0,l.default)(c,"allowedAttributes",{align:"enum(left,right,center,justify)","background-color":"color",color:"color","container-background-color":"color","font-family":"string","font-size":"unit(px)","font-style":"string","font-weight":"string",height:"unit(px,%)","letter-spacing":"unitWithNegative(px,em)","line-height":"unit(px,%,)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}","text-decoration":"string","text-transform":"string","vertical-align":"enum(top,bottom,middle)"}),(0,l.default)(c,"defaultAttributes",{align:"left",color:"#000000","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","line-height":"1",padding:"10px 25px"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(4)),u=a(n(5)),p=a(n(8)),f=a(n(41)),d=a(n(35));n=function(t){(0,c.default)(n,t);var e=(0,u.default)(n);function n(){return(0,s.default)(this,n),e.apply(this,arguments)}return(0,l.default)(n,[{key:"getStyles",value:function(){return{table:{color:this.getAttribute("color"),"font-family":this.getAttribute("font-family"),"font-size":this.getAttribute("font-size"),"line-height":this.getAttribute("line-height"),"table-layout":this.getAttribute("table-layout"),width:this.getAttribute("width"),border:this.getAttribute("border")}}}},{key:"getWidth",value:function(){var t=this.getAttribute("width"),e=(0,d.default)(t),n=e.parsedWidth;return"%"===e.unit?t:n}},{key:"render",value:function(){var t=this,e=(0,f.default)(["cellpadding","cellspacing","role"],(function(e,n){return o(o({},e),{},i({},n,t.getAttribute(n)))}),{});return"\n <table\n ".concat(this.htmlAttributes(o(o({},e),{},{width:this.getWidth(),border:"0",style:"table"})),"\n >\n ").concat(this.getContent(),"\n </table>\n ")}}]),n}(n(9).BodyComponent),e.default=n,(0,p.default)(n,"componentName","mj-table"),(0,p.default)(n,"endingTag",!0),(0,p.default)(n,"allowedAttributes",{align:"enum(left,right,center)",border:"string",cellpadding:"integer",cellspacing:"integer","container-background-color":"color",color:"color","font-family":"string","font-size":"unit(px)","font-weight":"string","line-height":"unit(px,%,)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}",role:"enum(none,presentation)","table-layout":"enum(auto,fixed,initial,inherit)","vertical-align":"enum(top,bottom,middle)",width:"unit(px,%)"}),(0,p.default)(n,"defaultAttributes",{align:"left",border:"none",cellpadding:"0",cellspacing:"0",color:"#000000","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","line-height":"22px",padding:"10px 25px","table-layout":"auto",width:"100%"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=(r=r(n(231)),n(9));r=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"renderWrappedChildren",value:function(){var t=this.props.children,e=this.context.containerWidth;return"\n ".concat(this.renderChildren(t,{renderer:function(t){return t.constructor.isRawElement()?t.render():"\n \x3c!--[if mso | IE]>\n <tr>\n <td\n ".concat(t.htmlAttributes({align:t.getAttribute("align"),class:(0,c.suffixCssClasses)(t.getAttribute("css-class"),"outlook"),width:e}),"\n >\n <![endif]--\x3e\n ").concat(t.render(),"\n \x3c!--[if mso | IE]>\n </td>\n </tr>\n <![endif]--\x3e\n ")}}),"\n ")}}]),n}(r.default),e.default=r,(0,l.default)(r,"componentName","mj-wrapper"),t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={mjml:["mj-body","mj-head","mj-raw"],"mj-accordion":["mj-accordion-element","mj-raw"],"mj-accordion-element":["mj-accordion-title","mj-accordion-text","mj-raw"],"mj-accordion-title":[],"mj-accordion-text":[],"mj-attributes":[/^.*^/],"mj-body":["mj-raw","mj-section","mj-wrapper","mj-hero"],"mj-button":[],"mj-carousel":["mj-carousel-image"],"mj-carousel-image":[],"mj-column":["mj-accordion","mj-button","mj-carousel","mj-divider","mj-image","mj-raw","mj-social","mj-spacer","mj-table","mj-text","mj-navbar"],"mj-html-attribute":[],"mj-html-attributes":["mj-selector"],"mj-divider":[],"mj-group":["mj-column","mj-raw"],"mj-head":["mj-attributes","mj-breakpoint","mj-html-attributes","mj-font","mj-preview","mj-style","mj-title","mj-raw"],"mj-hero":["mj-accordion","mj-button","mj-carousel","mj-divider","mj-image","mj-social","mj-spacer","mj-table","mj-text","mj-navbar","mj-raw"],"mj-image":[],"mj-navbar":["mj-navbar-link","mj-raw"],"mj-raw":[],"mj-section":["mj-column","mj-group","mj-raw"],"mj-selector":["mj-html-attribute"],"mj-social":["mj-social-element","mj-raw"],"mj-social-element":[],"mj-spacer":[],"mj-table":[],"mj-text":[],"mj-wrapper":["mj-hero","mj-raw","mj-section"]},t.exports=e.default}],n={},t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=233);function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e,n},t.exports=e()}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{default:()=>kt});var t=function(){return t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},t.apply(this,arguments)};const e=function(e,n){var r=e.Blocks,o=n.imagePlaceholderSrc||"https://via.placeholder.com/350x250/78c5d6/fff",i='<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19A2.92,2.92 0 0,0 18,16.08Z" />\n </svg>';n.resetBlocks&&r.getAll().reset();var a=function(o,i){n.blocks.indexOf(o)>=0&&r.add(o,t(t({select:!0,category:e.I18n.t("grapesjs-mjml.category")},i),n.block(o)))},s=function(t){return e.I18n.t("grapesjs-mjml.components.names.".concat(t))};a("mj-1-column",{label:s("oneColumn"),media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M2 20h20V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1Z"/>\n </svg>',content:"<mj-section>\n <mj-column><mj-text>Content 1</mj-text></mj-column>\n </mj-section>"}),a("mj-2-columns",{label:s("twoColumn"),media:'<svg viewBox="0 0 23 24">\n <path fill="currentColor" d="M2 20h8V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM13 20h8V4h-8v16Zm-1 0V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1Z"/>\n </svg>',content:"<mj-section>\n <mj-column><mj-text>Content 1</mj-text></mj-column>\n <mj-column><mj-text>Content 2</mj-text></mj-column>\n </mj-section>"}),a("mj-3-columns",{label:s("threeColumn"),media:'<svg viewBox="0 0 23 24">\n <path fill="currentColor" d="M2 20h4V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM17 20h4V4h-4v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1ZM9.5 20h4V4h-4v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1Z"/>\n </svg>',content:"<mj-section>\n <mj-column><mj-text>Content 1</mj-text></mj-column>\n <mj-column><mj-text>Content 2</mj-text></mj-column>\n <mj-column><mj-text>Content 3</mj-text></mj-column>\n </mj-section>"}),a("mj-text",{label:s("text"),media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z" />\n </svg>',content:"<mj-text>Insert text here</mj-text>",activate:!0}),a("mj-button",{label:s("button"),media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M20 20.5C20 21.3 19.3 22 18.5 22H13C12.6 22 12.3 21.9 12 21.6L8 17.4L8.7 16.6C8.9 16.4 9.2 16.3 9.5 16.3H9.7L12 18V9C12 8.4 12.4 8 13 8S14 8.4 14 9V13.5L15.2 13.6L19.1 15.8C19.6 16 20 16.6 20 17.1V20.5M20 2H4C2.9 2 2 2.9 2 4V12C2 13.1 2.9 14 4 14H8V12H4V4H20V12H18V14H20C21.1 14 22 13.1 22 12V4C22 2.9 21.1 2 20 2Z" />\n </svg>',content:"<mj-button>Button</mj-button>"}),a("mj-image",{label:s("image"),media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M21,3H3C2,3 1,4 1,5V19A2,2 0 0,0 3,21H21C22,21 23,20 23,19V5C23,4 22,3 21,3M5,17L8.5,12.5L11,15.5L14.5,11L19,17H5Z" />\n </svg>',content:'<mj-image src="'.concat(o,'"/>'),activate:!0}),a("mj-divider",{label:s("divider"),media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M21 18H2V20H21V18M19 10V14H4V10H19M20 8H3C2.45 8 2 8.45 2 9V15C2 15.55 2.45 16 3 16H20C20.55 16 21 15.55 21 15V9C21 8.45 20.55 8 20 8M21 4H2V6H21V4Z" />\n </svg>',content:"<mj-divider/>"}),a("mj-social-group",{label:s("socialGroup"),media:i,content:'<mj-social font-size="12px" icon-size="24px" border-radius="12px" mode="horizontal">\n <mj-social-element name="facebook"></mj-social-element>\n <mj-social-element name="google"></mj-social-element>\n <mj-social-element name="twitter"></mj-social-element>\n </mj-social>'}),a("mj-social-element",{label:s("socialElement"),media:i,content:'<mj-social-element name="facebook" />'}),a("mj-spacer",{label:s("spacer"),media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M8,18H11V15H2V13H22V15H13V18H16L12,22L8,18M12,2L8,6H11V9H2V11H22V9H13V6H16L12,2Z" />\n </svg>',content:"<mj-spacer/>"}),a("mj-navbar",{label:s("navBar"),media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" />\n </svg>',content:"<mj-navbar>\n <mj-navbar-link>Getting started</mj-navbar-link>\n <mj-navbar-link>Try it live</mj-navbar-link>\n <mj-navbar-link>Templates</mj-navbar-link>\n <mj-navbar-link>Components</mj-navbar-link>\n </mj-navbar>"}),a("mj-navbar-link",{label:s("navLink"),media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M21,15.61L19.59,17L14.58,12L19.59,7L21,8.39L17.44,12L21,15.61M3,6H16V8H3V6M3,13V11H13V13H3M3,18V16H16V18H3Z" />\n </svg>',content:"<mj-navbar-link>Link</mj-navbar-link>"}),a("mj-hero",{label:s("hero"),media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20M4,6V18H20V6H4M6,9H18V11H6V9M6,13H16V15H6V13Z" />\n </svg>',content:'<mj-hero mode="fixed-height" height="469px" background-width="600px" background-height="469px" background-url="https://cloud.githubusercontent.com/assets/1830348/15354890/1442159a-1cf0-11e6-92b1-b861dadf1750.jpg" background-color="#2a3448" padding="100px 0px">\n <mj-text padding="20px" color="#ffffff" font-family="Helvetica" align="center" font-size="45px" line-height="45px" font-weight="900">\n GO TO SPACE\n </mj-text>\n <mj-button href="https://mjml.io/" align="center">\n ORDER YOUR TICKET NOW\n </mj-button>\n </mj-hero>'}),a("mj-wrapper",{label:s("wrapper"),media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M18 2H6C4.89 2 4 2.9 4 4V20C4 21.11 4.89 22 6 22H18C19.11 22 20 21.11 20 20V4C20 2.9 19.11 2 18 2M18 20H6V16H18V20M18 8H6V4H18V8Z" />\n </svg>',content:'<mj-wrapper border="1px solid #000000" padding="50px 30px">\n <mj-section border-top="1px solid #aaaaaa" border-left="1px solid #aaaaaa" border-right="1px solid #aaaaaa" padding="20px">\n <mj-column>\n <mj-image padding="0" src="'.concat(o,'" />\n </mj-column>\n </mj-section>\n <mj-section border-left="1px solid #aaaaaa" border-right="1px solid #aaaaaa" padding="20px" border-bottom="1px solid #aaaaaa">\n <mj-column border="1px solid #dddddd">\n <mj-text padding="20px"> First line of text </mj-text>\n <mj-divider border-width="1px" border-style="dashed" border-color="lightgrey" padding="0 20px" />\n <mj-text padding="20px"> Second line of text </mj-text>\n </mj-column>\n </mj-section>\n </mj-wrapper>')}),a("mj-raw",{label:s("raw"),media:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M12,17.56L16.07,16.43L16.62,10.33H9.38L9.2,8.3H16.8L17,6.31H7L7.56,12.32H14.45L14.22,14.9L12,15.5L9.78,14.9L9.64,13.24H7.64L7.93,16.43L12,17.56M4.07,3H19.93L18.5,19.2L12,21L5.5,19.2L4.07,3Z" />\n </svg>',content:'<mj-raw>\n <div class="container">\n <img class="item" src="https://source.unsplash.com/random/200x141" alt="Example image">\n <img class="item" src="https://source.unsplash.com/random/200x142" alt="Example image">\n <img class="item" src="https://source.unsplash.com/random/200x143" alt="Example image">\n <img class="item" src="https://source.unsplash.com/random/200x144" alt="Example image">\n <img class="item" src="https://source.unsplash.com/random/200x145" alt="Example image">\n <img class="item" src="https://source.unsplash.com/random/200x146" alt="Example image">\n </div>\n </mj-raw>'})};var o=n(480),i=n.n(o),a=function(){return a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)},s=function(t){return function(e){return(e.tagName||"").toLowerCase()===t}};function l(t,e,n){void 0===n&&(n={});var r=a({useMjmlConfigOptions:!1,mjmlConfigPath:null,filePath:null},n);return e&&Object.keys(e).length>0&&e.constructor===Object&&(r.fonts=e),i()(t,r)}var c=function(t){return(Array.isArray(t)?t:[t]).map((function(t){return'[data-gjs-type="'.concat(t,'"]')})).join(", ")},u=function(t,e){return t.I18n.t("grapesjs-mjml.components.names.".concat(e))},p="mj-head";const f=function(t){t.Components.addType(p,{isComponent:s(p),model:{defaults:{draggable:!1,droppable:c(["mj-preview","mj-attributes","mj-style","mj-font","mj-title","mj-raw"])}}})};var d=function(){return d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},d.apply(this,arguments)},h="mj-wrapper";const g=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(h,{isComponent:s(h),model:d(d({},n),{defaults:{name:u(t,"wrapper"),draggable:c(it),droppable:c(_),traits:["id","title",{type:"checkbox",label:"Full width",name:"full-width",valueTrue:"full-width",valueFalse:""}]}}),view:d(d({},r),{tagName:"div",attributes:{style:"pointer-events: all; display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body>",end:"</mj-body></mjml>"}},getChildrenSelector:function(){return this.model.getAttributes()["full-width"]?"table > tbody > tr > td > div > table > tbody > tr > td":"table > tbody > tr > td"},init:function(){var t=this;r.init.call(this),this.listenTo(this.model.get("components"),"add remove",(function(){t.getChildrenContainer().innerHTML=t.model.get("content"),t.renderChildren()}))}})})};var m=function(){return m=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},m.apply(this,arguments)},v="mj-group";const y=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(v,{isComponent:s(v),model:m(m({},n),{defaults:{name:u(t,"group"),draggable:c(_),droppable:c(x),stylable:["width","vertical-align","background-color","direction"],"style-default":{"vertical-align":"top"}}}),view:m(m({},r),{tagName:"div",attributes:{style:"display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body>",end:"</mj-body></mjml>"}},getChildrenSelector:function(){return"div"}})})};var b=function(){return b=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},b.apply(this,arguments)},_="mj-section";const w=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(_,{isComponent:s(_),model:b(b({},n),{defaults:{name:u(t,"section"),draggable:c([it,h]),droppable:c([x,v]),"style-default":{"padding-left":"0px","padding-right":"0px","padding-top":"10px","padding-bottom":"10px","text-align":"center"},stylable:["text-align","padding","padding-top","padding-left","padding-right","padding-bottom","background-color","background-url","background-repeat","background-size","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","border","border-width","border-style","border-color"],traits:["id","title",{type:"checkbox",label:"Full width",name:"full-width",valueTrue:"full-width",valueFalse:""}]}}),view:b(b({},r),{tagName:"div",attributes:{style:"pointer-events: all;"},getMjmlTemplate:function(){var t=this.model.parent(),e=null==t?void 0:t.view,n=null==t?void 0:t.attributes.tagName;if((null==e?void 0:e.getInnerMjmlTemplate)&&n===it){var o=r.getInnerMjmlTemplate.call(e);return{start:"<mjml><mj-body>".concat(o.start),end:"".concat(o.end,"</mj-body></mjml>")}}return{start:"<mjml><mj-body>",end:"</mj-body></mjml>"}},getChildrenSelector:function(){return this.model.getAttributes()["full-width"]?"table > tbody > tr > td > div table > tbody > tr > td":"table > tbody > tr > td"},init:function(){r.init.call(this),this.listenTo(this.model.get("components"),"add remove",this.render)}})})};var E=function(){return E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},E.apply(this,arguments)},x="mj-column";const T=function(t,e){var n=e.opt,r=e.coreMjmlModel,o=e.coreMjmlView,i=e.sandboxEl,a=n.columnsPadding;t.Components.addType(x,{isComponent:s(x),model:E(E({},r),{defaults:{name:u(t,"column"),draggable:c(_),stylable:["background-color","vertical-align","width","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","border","border-width","border-style","border-color","padding","padding-top","padding-left","padding-right","padding-bottom"],"style-default":{"vertical-align":"top"}}}),view:E(E({},o),{tagName:"div",attributes:{style:a?"padding: ".concat(a,";"):""},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),e=this.getInnerMjmlTemplate(),r=l("".concat(t.start,"\n ").concat(e.start).concat(e.end).concat(t.end),n.fonts).html,o=[];i.innerHTML=r,Array.from(i.querySelectorAll("style")).forEach((function(t){o.push(t.innerHTML)}));var a=r.replace(/<body(.*)>/,"<body>"),s=a.indexOf("<body>")+6,c=a.indexOf("</body>");i.innerHTML=a.substring(s,c).trim();for(var u=this.getTemplateFromEl(i),p={},f=u.attributes,d=void 0,h=0,g=f.length;h<g;h++)p[(d=f[h]).name]=d.value;return{attributes:p,content:u.innerHTML,style:o.join(" ")}},render:function(){this.renderAttributes();var e=this.getTemplateFromMjml();return this.el.innerHTML=e.content,this.$el.attr(e.attributes),t.addComponents("<style>".concat(e.style,"</style>")),this.getChildrenContainer().innerHTML=this.model.get("content"),this.renderChildren(),this.renderStyle(),this.updateStatus(),this},renderStyle:function(){var t,e=this,n=e.model,r=e.attributes,o=e.el,i=n.get("style")||{},a=n.get("stylable"),s=Object.keys(i).filter((function(t){return a.indexOf(t)>-1})).map((function(t){return"".concat(t,":").concat(i[t],";")})),l="".concat(r.style," ").concat(s.join(" ")," ").concat(o.getAttribute("style"));o.setAttribute("style",l),null===(t=o.firstElementChild)||void 0===t||t.setAttribute("style",""),this.checkVisibility()},getMjmlTemplate:function(){var t=this.model.collection.length-1;t=t||0;var e=Array(t).fill("<mj-column></mj-column>").join("");return{start:"<mjml><mj-body><mj-section>",end:"".concat(e,"</mj-section></mj-body></mjml>")}},getTemplateFromEl:function(t){return t.firstChild.querySelector("div > table > tbody > tr > td > div")},getChildrenSelector:function(){return"table"}})})};var C=function(){return C=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},C.apply(this,arguments)},A="mj-text";const O=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(A,{extend:"text",extendFnView:["onActive"],isComponent:s(A),model:C(C({},n),{defaults:{name:u(t,"text"),draggable:c([x,J]),highlightable:!1,stylable:["height","font-style","font-size","font-weight","font-family","color","line-height","letter-spacing","text-decoration","align","text-transform","padding","padding-top","padding-left","padding-right","padding-bottom","container-background-color"],"style-default":{"padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px","font-size":"13px","line-height":"22px",align:"left"}}}),view:C(C({},r),{tagName:"tr",attributes:{style:"pointer-events: all; display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"td > div"},rerender:function(){this.render()},onActive:function(){this.getChildrenContainer().style.pointerEvents="all"}})})};var S=function(){return S=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},S.apply(this,arguments)},k="mj-button";const P=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(k,{isComponent:s(k),extend:"link",model:S(S({},n),{defaults:{name:u(t,"button"),draggable:c([x,J]),highlightable:!1,stylable:["width","height","background-color","container-background-color","font-style","font-size","font-weight","font-family","color","text-decoration","align","vertical-align","text-transform","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","border","border-width","border-style","border-color"],"style-default":{"background-color":"#414141","border-radius":"3px","font-size":"13px","font-weight":"400",color:"#ffffff","vertical-align":"middle","padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px",align:"center"},traits:["href"]}}),view:S(S({},r),{tagName:"tr",attributes:{style:"display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"a,p"},rerender:function(){this.render()}})})};var j=function(){return j=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},j.apply(this,arguments)},N="mj-image";const L=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(N,{isComponent:s(N),extend:"image",model:j(j({},n),{defaults:{resizable:!1,highlightable:!1,name:u(t,"image"),draggable:c([_,x,J]),stylable:["width","height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","border","border-width","border-style","border-color","container-background-color","align"],"style-default":{"padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px",align:"center"},traits:["href","rel","alt","title"],void:!1}}),view:j(j({},r),{tagName:"tr",attributes:{style:"pointer-events: all; display: table; width: 100%; user-select: none;"},getMjmlTemplate:function(){return{start:'<mjml><mj-body width="auto"><mj-column>',end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"img"}})})};var D=function(){return D=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},D.apply(this,arguments)},I="mj-divider";const R=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(I,{isComponent:s(I),model:D(D({},n),{defaults:{name:u(t,"divider"),draggable:c([x,J]),droppable:!1,"style-default":{width:"100%","border-width":"4px","border-style":"solid","border-color":"#000000","padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px"},stylable:["padding","padding-top","padding-left","padding-right","padding-bottom","width","container-background-color","border-detached","border-width","border-style","border-color"],void:!1}}),view:D(D({},r),{tagName:"tr",attributes:{style:"display: table; width: 100%; user-select: none;"},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"p"}})})};var M=function(){return M=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},M.apply(this,arguments)},B="mj-navbar-link";const F=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(B,{isComponent:s(B),extend:"link",model:M(M({},n),{defaults:{name:u(t,"navLink"),draggable:c(H),highlightable:!1,stylable:["font-style","font-size","font-weight","font-family","color","text-decoration","text-transform","padding","padding-top","padding-left","padding-right","padding-bottom"],"style-default":{"font-size":"13px","padding-top":"25px","padding-bottom":"25px","padding-left":"10px","padding-right":"10px","text-transform":"uppercase"},traits:["href"]}}),view:M(M({},r),{tagName:"a",attributes:{style:"float: none; display: inline-table;"},getMjmlTemplate:function(){var t,e=null===(t=this.model.parent())||void 0===t?void 0:t.view;if(null==e?void 0:e.getInnerMjmlTemplate){var n=r.getInnerMjmlTemplate.call(e);return{start:"<mjml><mj-body><mj-column>".concat(n.start),end:"".concat(n.end,"</mj-column></mj-body></mjml>")}}return{start:"<mjml><mj-body><mj-column><mj-navbar>",end:"</mj-navbar></mj-column></mj-body></mjml>"}},rerender:function(){this.render()},getTemplateFromEl:function(t){return t.querySelector("div").innerHTML},getChildrenSelector:function(){return"a,p"}})})};var U=function(){return U=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},U.apply(this,arguments)},H="mj-navbar";const V=function(t,e){var n=e.opt,r=e.coreMjmlModel,o=e.coreMjmlView,i=e.sandboxEl;t.Components.addType(H,{isComponent:s(H),model:U(U({},r),{defaults:{name:u(t,"navBar"),draggable:c([x,J]),droppable:c(B),"style-default":{},stylable:[],traits:[{type:"select",label:"Hamburger",name:"hamburger",options:[{value:"hamburger",name:"ON"},{value:"",name:"OFF"}]}]}}),view:U(U({},o),{tagName:"tr",attributes:{style:"pointer-events: all; display: table; width: 100%"},init:function(){o.init.call(this),this.listenTo(this.model.get("components"),"add remove update",this.render)},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),e=this.getInnerMjmlTemplate(),r=l("".concat(t.start,"\n ").concat(e.start).concat(e.end).concat(t.end),n.fonts).html,o=[];i.innerHTML=r,Array.from(i.querySelectorAll("style")).forEach((function(t){o.push(t.innerHTML)}));var a=r.replace(/<body(.*)>/,"<body>"),s=a.indexOf("<body>")+6,c=a.indexOf("</body>");i.innerHTML=a.substring(s,c).trim();for(var u=this.getTemplateFromEl(i),p={},f=u.attributes,d=void 0,h=0,g=f.length;h<g;h++)p[(d=f[h]).name]=d.value;return{attributes:p,content:u.innerHTML,style:o.join(" ")}},render:function(){this.renderAttributes();var e=this.getTemplateFromMjml();return this.el.innerHTML=e.content,this.$el.attr(e.attributes),t.addComponents("<style>".concat(e.style,"</style>")),this.getChildrenContainer().innerHTML=this.model.get("content"),this.renderChildren(),this.renderStyle(),this},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.firstChild.querySelector("tr")},getChildrenSelector:function(){return"div.mj-inline-links"},rerender:function(){o.rerender.call(this),this.model.components().models.forEach((function(t){t.attributes.type==B&&t.view.rerender()}))}})})};var q=function(){return q=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},q.apply(this,arguments)},z="mj-social-element";const G=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(z,{isComponent:s(z),model:q(q({},n),{defaults:{name:u(t,"socialElement"),draggable:c(Y),stylable:["icon-size","text-decoration","align","font-family","font-size","line-height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","background-color","color","vertical-align"],"style-default":{align:"center","font-size":"13px","line-height":"22px","vertical-align":"middle"},traits:[{type:"select",label:"Icon",name:"name",options:[{value:"custom",name:"Custom"},{value:"facebook",name:"Facebook"},{value:"twitter",name:"Twitter"},{value:"google",name:"Google"},{value:"instagram",name:"Instagram"},{value:"web",name:"Web"},{value:"youtube",name:"Youtube"},{value:"pinterest",name:"Pinterest"},{value:"linkedin",name:"Linkedin"},{value:"snapchat",name:"Snapchat"},{value:"vimeo",name:"Vimeo"},{value:"tumblr",name:"Tumblr"},{value:"github",name:"Github"},{value:"soundcloud",name:"SoundCloud"},{value:"medium",name:"Medium"},{value:"dribbble",name:"Dribbble"},{value:"xing",name:"Xing"}]},{name:"src"},{name:"href"}]}}),view:q(q({},r),{tagName:"table",attributes:{style:"float: none; display: inline-table;"},getMjmlTemplate:function(){var t,e=null===(t=this.model.parent())||void 0===t?void 0:t.view;if(e.getInnerMjmlTemplate){var n=r.getInnerMjmlTemplate.call(e);return{start:"<mjml><mj-body><mj-column>".concat(n.start),end:"".concat(n.end,"</mj-column></mj-body></mjml>")}}return{start:"<mjml><mj-body><mj-column><mj-social>",end:"</mj-social></mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr > td > table").innerHTML},getChildrenSelector:function(){return"img"}})})};var W=function(){return W=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},W.apply(this,arguments)},Y="mj-social";const K=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(Y,{isComponent:s(Y),model:W(W({},n),{defaults:{name:u(t,"socialGroup"),draggable:c([x,J]),droppable:c(z),stylable:["icon-size","text-decoration","align","font-family","font-size","line-height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","container-background-color","color"],"style-default":{align:"center","icon-size":"20px","font-size":"13px","line-height":"22px"},traits:[{type:"select",label:"Mode",name:"mode",options:[{value:"horizontal",name:"Horizontal"},{value:"vertical",name:"Vertical"}]}]}}),view:W(W({},r),{tagName:"tr",attributes:{style:"display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"td"},rerender:function(){r.rerender.call(this),this.model.components().models.forEach((function(t){t.attributes.type===z&&t.view.rerender()}))},init:function(){r.init.call(this),this.listenTo(this.model.get("components"),"add remove update",this.render)}})})};var $=function(){return $=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$.apply(this,arguments)},X="mj-spacer";const Q=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(X,{isComponent:s(X),model:$($({},n),{defaults:{name:u(t,"spacer"),draggable:c([x,J]),droppable:!1,"style-default":{height:"20px"},stylable:["height","container-background-color"],void:!1}}),view:$($({},r),{tagName:"tr",attributes:{style:"display: table; width: 100%; user-select: none;"},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"td"}})})};var Z=function(){return Z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Z.apply(this,arguments)},J="mj-hero";const tt=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(J,{isComponent:s(J),model:Z(Z({},n),{defaults:{name:u(t,"hero"),draggable:c(it),droppable:c([A,k,N,I,H,Y,X]),stylable:["background-color","background-height","background-position","background-url","background-width","css-class","height","mode","padding","padding-top","padding-left","padding-right","padding-bottom","vertical-align","width"],"style-default":{"vertical-align":"top"}}}),view:Z(Z({},r),{tagName:"div",attributes:{style:"display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body>",end:"</mj-body></mjml>"}},getChildrenSelector:function(){return"table tr td"}})})};var et=function(){return et=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},et.apply(this,arguments)},nt="mj-raw";const rt=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(nt,{isComponent:s(nt),model:et(et({},n),{defaults:{name:u(t,"raw"),draggable:c([it,p]),stylable:!1,"style-default":{},style:{},attributes:{}}}),view:et(et({},r),{tagName:"section",attributes:{style:"pointer-events: all;"},getMjmlTemplate:function(){var t=this.model.parent(),e=null==t?void 0:t.view,n=null==t?void 0:t.attributes.tagName,o=null==e?void 0:e.getInnerMjmlTemplate;if(o&&"mj-body"===n){var i=r.getInnerMjmlTemplate.call(e);return{start:"<mjml>".concat(i.start),end:"".concat(i.end,"</mjml>")}}if(o&&"mj-head"===n){var a=r.getInnerMjmlTemplate.call(e);return{start:"<mjml>".concat(a.start),end:"".concat(a.end,"</mjml>")}}return{start:"<mjml><mj-body>",end:"</mj-body></mjml>"}},getTemplateFromEl:function(t){return t.innerHTML},getChildrenSelector:function(){return"*"},init:function(){r.init.call(this),this.listenTo(this.model.get("components"),"add remove",this.render)}})})};var ot=function(){return ot=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ot.apply(this,arguments)},it="mj-body";const at=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(it,{isComponent:s(it),model:ot(ot({},n),{defaults:{name:u(t,"body"),droppable:c([_,h,J,nt]),draggable:!1,copyable:!1,removable:!1,highlightable:!1,"style-default":{width:"600px"},stylable:["width","background-color"]}}),view:ot(ot({},r),{tagName:"div",attributes:{style:"width: 100%; min-height: 100vh"},getChildrenSelector:function(){return"div"},getInnerMjmlTemplate:function(){var t=r.getInnerMjmlTemplate.call(this);return{start:"".concat(t.start,"<mj-section></mj-section>"),end:t.end}},renderStyle:function(){this.getChildrenContainer().style.maxWidth="none",this.getChildrenContainer().style.width="100%",this.el.setAttribute("style","".concat(this.el.getAttribute("style")+this.attributes.style))},rerender:function(){r.rerender.call(this),this.model.components().models.forEach((function(t){[_,nt].indexOf(t.attributes.type)<0||t.view.rerender()}))}})})};var st=function(){return st=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},st.apply(this,arguments)},lt="mjml";const ct=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(lt,{isComponent:s(lt),model:st(st({},n),{defaults:{droppable:c([p,it]),draggable:!1,stylable:!1,copyable:!1,removable:!1,highlightable:!1,traits:[{name:"owa",placeholder:"eg. desktop"},{name:"lang",placeholder:"eg. en"},{name:"dir",placeholder:"eg. rtl"}]}}),view:st(st({},r),{tagName:"div",attributes:{style:"min-height: 100vh"},rerender:function(){this.render()},getTemplateFromMjml:function(){return""}})})};var ut=function(){return ut=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ut.apply(this,arguments)},pt="mj-style";const ft=function(t,e){var n=e.opt,r=e.coreMjmlModel,o=e.coreMjmlView,i=e.sandboxEl;t.Components.addType(pt,{isComponent:s(pt),model:ut(ut({},r),{defaults:{draggable:c(p)}}),view:ut(ut({},o),{tagName:"style",getMjmlTemplate:function(){return{start:"<mjml><mj-head>",end:"</mj-head><mj-body></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("style").innerHTML},renderStyle:function(){},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),e=this.getInnerMjmlTemplate(),r=l("".concat(t.start,"\n ").concat(e.start).concat(e.end).concat(t.end),n.fonts).html,o=r.indexOf("<head>")+6,a=r.indexOf("</head>");return r=r.substring(o,a).trim(),i.innerHTML=r,this.getTemplateFromEl(i)}})})};var dt=function(){return dt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},dt.apply(this,arguments)},ht="mj-font";const gt=function(t,e){var n=e.opt,r=e.coreMjmlModel,o=e.coreMjmlView,i=e.sandboxEl;t.Components.addType(ht,{isComponent:s(ht),model:dt(dt({},r),{defaults:{draggable:c(p),void:!1}}),view:dt(dt({},o),{tagName:"style",getMjmlTemplate:function(){var t,e=null===(t=this.model.get("attributes"))||void 0===t?void 0:t.name;return{start:"<mjml><mj-head>",end:'</mj-head><mj-body><mj-text font-family="'.concat(e,'"></mj-text></mj-body></mjml>')}},getTemplateFromEl:function(t){return t.querySelectorAll("style")[1].innerHTML},renderStyle:function(){},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),e=this.getInnerMjmlTemplate(),r=l("".concat(t.start,"\n ").concat(e.start).concat(e.end).concat(t.end),n.fonts).html,o=r.indexOf("<head>")+6,a=r.indexOf("</head>");return r=r.substring(o,a).trim(),i.innerHTML=r,this.getTemplateFromEl(i)}})})};var mt=function(){return mt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},mt.apply(this,arguments)};const vt=function(t,e){var n=t.Components.ComponentsView,r=document.createElement("div"),o={init:function(){var t=mt({},this.get("attributes")),e=mt(mt({},this.get("style-default")),this.get("style"));for(var n in e)n in t||(t[n]=e[n]);this.set("attributes",t),this.set("style",t),this.listenTo(this,"change:style",this.handleStyleChange),this.listenTo(this,"change:attributes",this.handleAttributeChange)},handleAttributeChange:function(t,e,n){this.setStyle(this.get("attributes"),n)},handleStyleChange:function(t,e,n){var r=this.getStyle();delete r.__p,this.set("attributes",r,n)},getMjmlAttributes:function(){var t=this.get("attributes")||{};delete t.style;var e=this.get("src");return e&&(t.src=e),t},getAttrToHTML:function(){var t=mt({},this.get("attributes")),e=mt({},this.get("style-default"));for(var n in delete t.style,delete t.id,t){var r=t[n];r&&r===e[n]&&delete t[n]}return t},toHTML:function(){var t=this,e=t.get("tagName"),n=t.get("void"),r=this.getAttrToHTML(),o="",i="";for(var a in r){var s=r[a];i+=void 0!==s&&""!==s?" ".concat(a,'="').concat(s,'"'):""}return o+="<".concat(e).concat(i).concat(n?"/":"",">")+t.get("content"),t.components().forEach((function(t){o+=t.toHTML()})),n||(o+="</".concat(e,">")),o},isHidden:function(){return"none"===this.getStyle().display}},i={init:function(){var t,e;this.stopListening(this.model,"change:style"),this.listenTo(this.model,"change:attributes change:src",this.rerender),this.debouncedRender=(t=this.render.bind(this),function(){for(var n=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];clearTimeout(e),e=setTimeout((function(){clearTimeout(e),t.apply(n,r)}),0)})},rerender:function(){this.render(null,null,{},1)},getMjmlTemplate:function(){return{start:"<mjml>",end:"</mjml>"}},getInnerMjmlTemplate:function(){var t=this.model,e=t.get("tagName"),n=t.getMjmlAttributes(),r="";for(var o in n){var i=n[o];r+=void 0!==i&&""!==i?" "+o+'="'+i+'"':""}return{start:"<".concat(e).concat(r,">"),end:"</".concat(e,">")}},getTemplateFromEl:function(t){return t.firstChild.innerHTML},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),n=this.getInnerMjmlTemplate(),o=l("".concat(t.start).concat(n.start).concat(n.end).concat(t.end),e.fonts).html,i=(o=o.replace(/<body(.*)>/,"<body>")).indexOf("<body>")+6,a=o.indexOf("</body>");return o=o.substring(i,a).trim(),r.innerHTML=o,this.getTemplateFromEl(r)},renderChildren:function(t){this.updateContent();var e=this.getChildrenContainer();t?this.childrenView.parentEl=e:(this.childrenView=this.childrenView||new n({collection:this.model.get("components"),config:this.config,componentTypes:this.opts.componentTypes}),this.childNodes=this.childrenView.render(e).el.childNodes);for(var r=Array.prototype.slice.call(this.childNodes),o=0,i=r.length;o<i;o++)e.appendChild(r.shift())},checkVisibility:function(){var t,e;(null===(e=(t=this.model).isHidden)||void 0===e?void 0:e.call(t))&&(this.el.style.display="none")},renderStyle:function(){this.el.style.cssText=this.attributes.style,this.checkVisibility()},render:function(t,e,n,r){return this.renderAttributes(),this.el.innerHTML=this.getTemplateFromMjml(),this.renderChildren(r),this.childNodes=this.getChildrenContainer().childNodes,this.renderStyle(),this}},a={coreMjmlModel:o,coreMjmlView:i,opt:e,sandboxEl:r};t.Components.addType("wrapper",{model:{defaults:{highlightable:!1},toHTML:function(t){return this.getInnerHTML(t)}}}),[ct,f,ft,gt,at,g,w,y,T,P,O,L,K,G,R,Q,V,F,tt,rt].forEach((function(e){return e(t,a)}))};var yt="set-device-desktop",bt="set-device-tablet",_t="set-device-mobile",wt="mjml-import",Et="mjml-code",xt="mjml-code-to-html";const Tt=function(t,e){var n=t.Commands,r=e.overwriteExport?"export-template":"mjml-export";n.add(Et,(function(){return"".concat(e.preMjml).concat(t.getHtml().trim()).concat(e.postMjml)})),n.add(xt,(function(t,r,o){return l(n.run(Et),e.fonts,o)})),function(t,e,n){var r=t.Commands;r.add(n,{containerEl:null,codeEditorMjml:null,codeEditorHtml:null,createCodeEditor:function(t){var e=document.createElement("div"),n=document.createElement("div"),r=this.createCodeViewer();return n.innerHTML=t,e.style.flex="1 0 auto",e.style.padding="5px",e.style.maxWidth="50%",e.style.boxSizing="border-box",e.appendChild(n),e.appendChild(r.getElement()),{codeEditor:r,el:e}},createCodeViewer:function(){return t.CodeManager.createViewer({codeName:"htmlmixed",theme:e.codeViewerTheme})},getCodeContainer:function(){var t=this.containerEl;return t||((t=document.createElement("div")).style.display="flex",t.style.justifyContent="space-between",this.containerEl=t),t},run:function(t,e){var o,i,a=this.getCodeContainer(),s=this.codeEditorMjml,l=this.codeEditorHtml;if(s||(s=(i=this.createCodeEditor("MJML")).codeEditor,this.codeEditorMjml=s,a.appendChild(i.el)),l||(l=(i=this.createCodeEditor("HTML")).codeEditor,this.codeEditorHtml=l,a.appendChild(i.el)),t.Modal.open({title:t.I18n.t("grapesjs-mjml.panels.export.title"),content:a}).onceClose((function(){e.set&&e.set("active",!1),t.stopCommand(n)})),s&&(s.setContent(r.run(Et)),s.editor.refresh()),l){var c=r.run(xt);null===(o=c.errors)||void 0===o||o.forEach((function(e){t.log(e.formattedMessage,{ns:xt,level:"warning",error:e})})),l.setContent(c.html),l.editor.refresh()}},stop:function(t){t.Modal.close()}})}(t,e,r),function(t,e,n){var r=t.getConfig().stylePrefix||"",o=function(e){return t.I18n.t("grapesjs-mjml.panels.import.".concat(e))};t.Commands.add(n,{containerEl:null,codeEditorMjml:null,onImport:function(e){var n;null===(n=t.Components.getWrapper())||void 0===n||n.set("content",""),t.setComponents(e.trim()),t.Modal.close()},createCodeEditor:function(){var t=this,e=document.createElement("div"),n=this.createCodeViewer(),i=n.getElement(),a=o("label"),s=document.createElement("button");if(s.type="button",s.innerHTML=o("button"),s.className="".concat(r,"btn-prim ").concat(r,"btn-import"),s.onclick=function(){return t.onImport(n.editor.getValue())},a){var l=document.createElement("div");l.className="".concat(r,"import-label"),l.innerHTML=a,e.appendChild(l)}return i.className="".concat(r,"code-viewer"),i.style.margin="10px 0",e.appendChild(i),e.appendChild(s),{codeEditor:n,el:e}},createCodeViewer:function(){return t.CodeManager.createViewer({codeName:"htmlmixed",theme:e.codeViewerTheme,readOnly:!1})},getCodeContainer:function(){var t=this.containerEl;return t||(t=document.createElement("div"),this.containerEl=t),t},run:function(t,r){void 0===r&&(r={});var i=this.getCodeContainer(),a=this.codeEditorMjml;if(!a){var s=this.createCodeEditor();a=s.codeEditor,this.codeEditorMjml=a,i.appendChild(s.el)}a&&(a.setContent(e.importPlaceholder),a.editor.refresh()),t.Modal.open({title:o("title"),content:i}).onceClose((function(){r.set&&r.set("active",!1),t.stopCommand(n)}))},stop:function(t){t.Modal.close()}})}(t,e,wt),n.add(yt,{run:function(t){return t.setDevice("Desktop")},stop:function(){}}),n.add(bt,{run:function(t){return t.setDevice("Tablet")},stop:function(){}}),n.add(_t,{run:function(t){return t.setDevice("Mobile portrait")},stop:function(){}})},Ct=function(t,e){var n=t.Panels,r='style="display: block; max-width:22px"',o=function(e){return t.I18n.t("grapesjs-mjml.panels.buttons.".concat(e))};n.addButton("options",{id:wt,command:wt,attributes:{title:o("import")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n <path fill="currentColor" d="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z" />\n </svg>')}),n.addButton("options",{id:"undo",command:"core:undo",attributes:{title:o("undo")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n <path fill="currentColor" d="M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z" />\n </svg>')}),n.addButton("options",{id:"redo",command:"core:redo",attributes:{title:o("redo")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n <path fill="currentColor" d="M10.5 18H18V20H10.5C6.91 20 4 17.09 4 13.5S6.91 7 10.5 7H16.17L13.08 3.91L14.5 2.5L20 8L14.5 13.5L13.09 12.09L16.17 9H10.5C8 9 6 11 6 13.5S8 18 10.5 18Z" />\n </svg>')}),e.resetDevices&&(t.getConfig().showDevices=!1,n.addPanel({id:"devices-c"}).get("buttons").add([{id:yt,command:yt,active:!0,attributes:{title:o("desktop")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n <path fill="currentColor" d="M21,16H3V4H21M21,2H3C1.89,2 1,2.89 1,4V16A2,2 0 0,0 3,18H10V20H8V22H16V20H14V18H21A2,2 0 0,0 23,16V4C23,2.89 22.1,2 21,2Z" />\n </svg>')},{id:bt,command:bt,attributes:{title:o("tablet")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n <path fill="currentColor" d="M19,18H5V6H19M21,4H3C1.89,4 1,4.89 1,6V18A2,2 0 0,0 3,20H21A2,2 0 0,0 23,18V6C23,4.89 22.1,4 21,4Z" />\n </svg>')},{id:_t,command:_t,attributes:{title:o("mobile")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n <path fill="currentColor" d="M17,19H7V5H17M17,1H7C5.89,1 5,1.89 5,3V21A2,2 0 0,0 7,23H17A2,2 0 0,0 19,21V3C19,1.89 18.1,1 17,1Z" />\n </svg>')}]))},At=function(t,e){e.resetStyleManager&&t.onReady((function(){var e=t.StyleManager.getSectors();e.reset(),e.add([{name:"Dimension",open:!1,buildProps:["width","height","max-width","min-height","margin","padding","vertical-align"],properties:[{property:"margin",properties:[{name:"Top",property:"margin-top"},{name:"Right",property:"margin-right"},{name:"Bottom",property:"margin-bottom"},{name:"Left",property:"margin-left"}]},{property:"padding",detached:!0,properties:[{name:"Top",property:"padding-top"},{name:"Right",property:"padding-right"},{name:"Bottom",property:"padding-bottom"},{name:"Left",property:"padding-left"}]},{property:"icon-size",type:"integer",defaults:"20px",units:["px","%"]},{property:"vertical-align",type:"select",list:[{value:"top"},{value:"middle"},{value:"bottom"}]}]},{name:"Typography",open:!1,buildProps:["font-family","font-size","font-weight","letter-spacing","color","line-height","text-align","align","text-decoration","font-style"],properties:[{name:"Font",property:"font-family"},{name:"Weight",property:"font-weight"},{name:"Font color",property:"color"},{property:"text-align",type:"radio",defaults:"left",list:[{value:"left",name:"Left",className:"fa fa-align-left"},{value:"center",name:"Center",className:"fa fa-align-center"},{value:"right",name:"Right",className:"fa fa-align-right"},{value:"justify",name:"Justify",className:"fa fa-align-justify"}]},{property:"align",type:"radio",defaults:"left",list:[{value:"left",name:"Left",className:"fa fa-align-left"},{value:"center",name:"Center",className:"fa fa-align-center"},{value:"right",name:"Right",className:"fa fa-align-right"},{value:"justify",name:"Justify",className:"fa fa-align-justify"}]},{property:"text-decoration",type:"radio",defaults:"none",list:[{value:"none",name:"None",className:"fa fa-times"},{value:"underline",name:"underline",className:"fa fa-underline"},{value:"line-through",name:"Line-through",className:"fa fa-strikethrough"}]},{property:"font-style",type:"radio",defaults:"normal",list:[{value:"normal",name:"Normal",className:"fa fa-font"},{value:"italic",name:"Italic",className:"fa fa-italic"}]}]},{name:"Decorations",open:!1,buildProps:["background-color","container-background-color","background-url","background-repeat","background-size","border-radius","border"],properties:[{name:"Background color",property:"container-background-color",type:"color"},{property:"background-url",type:"file"},{property:"border-radius",properties:[{name:"Top",property:"border-top-left-radius"},{name:"Right",property:"border-top-right-radius"},{name:"Bottom",property:"border-bottom-left-radius"},{name:"Left",property:"border-bottom-right-radius"}]},{property:"border-detached",name:"Border detached",type:"composite",detached:!0,properties:[{name:"Width",property:"border-width",type:"integer",units:["px","%"]},{name:"Style",property:"border-style",type:"select",list:[{value:"none"},{value:"solid"},{value:"dotted"},{value:"dashed"},{value:"double"},{value:"groove"},{value:"ridge"},{value:"inset"},{value:"outset"}]},{name:"Color",property:"border-color",type:"color"}]}]}])}))},Ot={"grapesjs-mjml":{category:"",panels:{buttons:{undo:"Undo",redo:"Redo",desktop:"Desktop",tablet:"Tablet",mobile:"Mobile",import:"Import MJML"},import:{title:"Import MJML",button:"Import",label:""},export:{title:"Export MJML"}},components:{names:{body:"Body",button:"Button",column:"Column",oneColumn:"1 Column",twoColumn:"2 Columns",threeColumn:"3 Columns",divider:"Divider",group:"Group",hero:"Hero",image:"Image",navBar:"Navbar",navLink:"Navbar Link",section:"Section",socialGroup:"Group Social",socialElement:"Social Element",spacer:"Spacer",text:"Text",wrapper:"Wrapper",raw:"Raw"}}}};var St=function(){return St=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},St.apply(this,arguments)};const kt=function(t,n){void 0===n&&(n={});var r=St({blocks:["mj-1-column","mj-2-columns","mj-3-columns","mj-text","mj-button","mj-image","mj-divider","mj-social-group","mj-social-element","mj-spacer","mj-navbar","mj-navbar-link","mj-hero","mj-wrapper","mj-raw"],block:function(){return{}},codeViewerTheme:"hopscotch",importPlaceholder:"",imagePlaceholderSrc:"",overwriteExport:!0,preMjml:"",postMjml:"",resetBlocks:!0,resetStyleManager:!0,resetDevices:!0,hideSelector:!0,useXmlParser:!1,useCustomTheme:!0,columnsPadding:"10px 0",i18n:{},fonts:{}},n),o=t.getConfig();if(o.forceClass=!1,o.devicePreviewMode=!0,o.avoidInlineStyle=!1,r.hideSelector&&(t.SelectorManager.getConfig().custom=!0),r.useXmlParser&&(t.Parser.getConfig().optionsHtml.htmlType="text/xml"),r.useCustomTheme&&"undefined"!=typeof window){var i="gjs-",a="";[["one","#2c2e35"],["two","#888686"],["four","#f45e43"]].forEach((function(t){var e=t[0],n=t[1];a+="\n .".concat(i).concat(e,"-bg {\n background-color: ").concat(n,";\n }\n .").concat(i).concat(e,"-color {\n color: ").concat(n,";\n }\n .").concat(i).concat(e,"-color-h:hover {\n color: ").concat(n,";\n }\n ")}));var s=document.createElement("style");s.innerText=a,document.head.appendChild(s)}t.I18n.addMessages(St({en:Ot},r.i18n)),[e,vt,Tt,Ct,At].forEach((function(e){return e(t,r)}))}})(),r})(),t.exports=e()},43:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>i});var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},r=function(t,e){[].forEach.call(t,e)},o=function(t){return t.stopPropagation()};const i=function(t,e){void 0===e&&(e={});var i,a,s,l=n({options:{},customRte:{},position:"left",ckeditor:"https://cdn.ckeditor.com/4.21.0/standard-all/ckeditor.js",onToolbar:function(){}},e),c=l.ckeditor,u="undefined"!=typeof window,p=!1;c?"string"==typeof c?u&&(p=!0,(a=c,(s=document.createElement("script")).src=a,document.head.appendChild(s),s).onload=function(){i=window.CKEDITOR}):c.inline&&(i=c):u&&(i=window.CKEDITOR);var f=function(){return setTimeout((function(){return t.refresh()}),0)},d=function(){t.log("CKEDITOR instance not found",{level:"error"})};if(!i&&!p)return d();var h=function(t,e){var n;(null===(n=null==e?void 0:e.focusManager)||void 0===n?void 0:n.hasFocus)||(t.contentEditable="true",null==e||e.focus(),f())};t.setCustomRte(n({getContent:function(t,e){return e.getData()},enable:function(e,a){if(a&&"destroyed"!=a.status)return h(e,a),a;if(i){var s=t.RichTextEditor.getToolbarEl();r(s.children,(function(t){t.style.display="none"}));var c=n({},l.options),u="sharedspace";return c.extraPlugins?"string"==typeof c.extraPlugins?c.extraPlugins+=",".concat(u):Array.isArray(c.extraPlugins)&&c.extraPlugins.push(u):c.extraPlugins=u,c.sharedSpaces||(c.sharedSpaces={top:s}),(a=i.inline(e,c)).on("contentDom",(function(){var t=a.editable();t.attachListener(t,"click",(function(){return e.click()}))})),a.on("instanceReady",(function(){var e=s.querySelector("#cke_".concat(a.name));e&&(e.style.display="block",l.onToolbar(e)),t.refresh(),f()})),a.on("dialogShow",(function(){var t=document.querySelectorAll(".cke_dialog_background_cover, .cke_dialog_container");r(t,(function(t){t.removeEventListener("mousedown",o),t.addEventListener("mousedown",o)}))})),a.on("key",(function(t){13===t.data.keyCode&&f()})),h(e,a),a}d()},disable:function(t,e){var n;t.contentEditable="false",null===(n=null==e?void 0:e.focusManager)||void 0===n||n.blur(!0)}},l.customRte)),t.on("rteToolbarPosUpdate",(function(t){var e=t.elRect;switch(l.position){case"center":t.left=e.width/2-t.targetWidth/2;break;case"right":t.left="",t.right=0}}))};return e})(),t.exports=e()}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t={410:(t,e,n)=>{var r,o,i;o=[n(50),n(316)],void 0===(i="function"==typeof(r=function(t,e){var n=Array.prototype.slice;function r(t,e,n){return n.length<=4?t.call(e,n[0],n[1],n[2],n[3]):t.apply(e,n)}function o(t,e){return n.call(t,e)}function i(e,n){return null!=e&&(t.isArray(n)||(n=o(arguments,1)),t.all(n,(function(t){return t in e})))}var a,s,l=(a=!1,s=-1,function(){return a||(s++,a=!0,t.defer((function(){a=!1}))),s});function c(){this.registeredObjects=[],this.cidIndexes=[]}function u(e,n,r,o){for(var i,a=0,s=n.length;a<s;a++)if(i=n[a]){if("on"===e){if(!o.objectRegistry.register(i))continue}else if(!o.objectRegistry.unregister(i))continue;t.isFunction(i[e])&&i[e]("all",r,o)}}function p(e,n){var r=n.type,o=n.undoTypes,i=!o[r]||o[r][e];t.isFunction(i)&&i(n.object,n.before,n.after,n.options)}function f(e,r,o,i,a){if(!(o.isCurrentlyUndoRedoing||"undo"===e&&-1===o.pointer||"redo"===e&&o.pointer===o.length-1)){o.isCurrentlyUndoRedoing=!0;var s,l,c="undo"===e;for(a?l=c&&o.pointer===o.length-1||!c&&-1===o.pointer?t.clone(o.models):n.apply(o.models,c?[0,o.pointer]:[o.pointer,o.length-1]):(s=o.at(c?o.pointer:o.pointer+1),l=i?o.where({magicFusionIndex:s.get("magicFusionIndex")}):[s]),o.pointer+=(c?-1:1)*l.length;s=c?l.pop():l.shift();)s[e]();o.isCurrentlyUndoRedoing=!1,r.trigger(e,r)}}function d(t,e,n,o){if(t.track&&!t.isCurrentlyUndoRedoing&&e in o&&function(t,e){var n=t.condition,o=typeof n;return"function"===o?!!r(n,t,e):"boolean"!==o||n}(o[e],n)){var a=r(o[e].on,o[e],n);if(i(a,"object","before","after")){if(a.type=e,a.magicFusionIndex=l(),a.undoTypes=o,t.pointer<t.length-1)for(var s=t.length-t.pointer-1;s--;)t.pop();t.pointer=t.length,t.add(a),t.length>t.maximumStackLength&&(t.shift(),t.pointer--)}}}c.prototype={isRegistered:function(e){return e&&e.cid?this.registeredObjects[e.cid]:t.contains(this.registeredObjects,e)},register:function(t){return!this.isRegistered(t)&&(t&&t.cid?(this.registeredObjects[t.cid]=t,this.cidIndexes.push(t.cid)):this.registeredObjects.push(t),!0)},unregister:function(e){if(this.isRegistered(e)){if(e&&e.cid)delete this.registeredObjects[e.cid],this.cidIndexes.splice(t.indexOf(this.cidIndexes,e.cid),1);else{var n=t.indexOf(this.registeredObjects,e);this.registeredObjects.splice(n,1)}return!0}return!1},get:function(){return t.map(this.cidIndexes,(function(t){return this.registeredObjects[t]}),this).concat(this.registeredObjects)}};var h={add:{undo:function(t,e,n,r){t.remove(n,r)},redo:function(t,e,n,r){r.index&&(r.at=r.index),t.add(n,r)},on:function(e,n,r){return{object:n,before:void 0,after:e,options:t.clone(r)}}},remove:{undo:function(t,e,n,r){"index"in r&&(r.at=r.index),t.add(e,r)},redo:function(t,e,n,r){t.remove(e,r)},on:function(e,n,r){return{object:n,before:e,after:void 0,options:t.clone(r)}}},change:{undo:function(e,n,r,o){t.isEmpty(n)?t.each(t.keys(r),e.unset,e):(e.set(n),o&&o.unsetData&&o.unsetData.before&&o.unsetData.before.length&&t.each(o.unsetData.before,e.unset,e))},redo:function(e,n,r,o){t.isEmpty(r)?t.each(t.keys(n),e.unset,e):(e.set(r),o&&o.unsetData&&o.unsetData.after&&o.unsetData.after.length&&t.each(o.unsetData.after,e.unset,e))},on:function(e,n){var r=e.changedAttributes(),o=t.keys(r),i=t.pick(e.previousAttributes(),o),a=t.keys(i),s=(n||(n={})).unsetData={after:[],before:[]};return o.length!=a.length&&(o.length>a.length?t.each(o,(function(t){t in i||s.before.push(t)}),this):t.each(a,(function(t){t in r||s.after.push(t)}))),{object:e,before:i,after:r,options:t.clone(n)}}},reset:{undo:function(t,e,n){t.reset(e)},redo:function(t,e,n){t.reset(n)},on:function(e,n){return{object:e,before:n.previousModels,after:t.clone(e.models)}}}};function g(){}function m(e,n,r,o){if("object"==typeof n)return t.each(n,(function(t,n){2===e?m(e,t,r,o):m(e,n,t,r)}));switch(e){case 0:i(r,"undo","redo","on")&&t.all(t.pick(r,"undo","redo","on"),t.isFunction)&&(o[n]=r);break;case 1:o[n]&&t.isObject(r)&&(o[n]=t.extend({},o[n],r));break;case 2:delete o[n]}return this}g.prototype=h;var v=e.Model.extend({defaults:{type:null,object:null,before:null,after:null,magicFusionIndex:null},undo:function(t){p("undo",this.attributes)},redo:function(t){p("redo",this.attributes)}}),y=e.Collection.extend({model:v,pointer:-1,track:!1,isCurrentlyUndoRedoing:!1,maximumStackLength:1/0,setMaxLength:function(t){this.maximumStackLength=t}}),b=e.Model.extend({defaults:{maximumStackLength:1/0,track:!1},initialize:function(e){this.stack=new y,this.objectRegistry=new c,this.undoTypes=new g,this.stack.setMaxLength(this.get("maximumStackLength")),this.on("change:maximumStackLength",(function(t,e){this.stack.setMaxLength(e)}),this),e&&e.track&&this.startTracking(),e&&e.register&&(t.isArray(e.register)||t.isArguments(e.register)?r(this.register,this,e.register):this.register(e.register))},startTracking:function(){this.set("track",!0),this.stack.track=!0},stopTracking:function(){this.set("track",!1),this.stack.track=!1},isTracking:function(){return this.get("track")},_addToStack:function(t){d(this.stack,t,o(arguments,1),this.undoTypes)},register:function(){u("on",arguments,this._addToStack,this)},unregister:function(){u("off",arguments,this._addToStack,this)},unregisterAll:function(){r(this.unregister,this,this.objectRegistry.get())},undo:function(t){f("undo",this,this.stack,t)},undoAll:function(){f("undo",this,this.stack,!1,!0)},redo:function(t){f("redo",this,this.stack,t)},redoAll:function(){f("redo",this,this.stack,!1,!0)},isAvailable:function(t){var e=this.stack,n=e.length;switch(t){case"undo":return n>0&&e.pointer>-1;case"redo":return n>0&&e.pointer<n-1;default:return!1}},merge:function(e){for(var n,r=t.isArray(e)?e:o(arguments);n=r.pop();)n instanceof b&&n.stack instanceof y&&(n.stack=this.stack)},addUndoType:function(t,e){m(0,t,e,this.undoTypes)},changeUndoType:function(t,e){m(1,t,e,this.undoTypes)},removeUndoType:function(t){m(2,t,void 0,this.undoTypes)},clear:function(){this.stack.reset(),this.stack.pointer=-1}});return t.extend(b,{defaults:function(e){t.extend(b.prototype.defaults,e)},addUndoType:function(t,e){m(0,t,e,h)},changeUndoType:function(t,e){m(1,t,e,h)},removeUndoType:function(t){m(2,t,void 0,h)}}),e.UndoManager=b})?r.apply(e,o):r)||(t.exports=i)},316:(t,e,n)=>{var r,o,i;i="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g,r=[n(50),n(895),e],o=function(t,e,n){i.Backbone=function(t,e,n,r){var o=t.Backbone,i=Array.prototype.slice;e.VERSION="1.4.1",e.$=r,e.noConflict=function(){return t.Backbone=o,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a,s=e.Events={},l=/\s+/,c=function(t,e,r,o,i){var a,s=0;if(r&&"object"==typeof r){void 0!==o&&"context"in i&&void 0===i.context&&(i.context=o);for(a=n.keys(r);s<a.length;s++)e=c(t,e,a[s],r[a[s]],i)}else if(r&&l.test(r))for(a=r.split(l);s<a.length;s++)e=t(e,a[s],o,i);else e=t(e,r,o,i);return e};s.on=function(t,e,n){return this._events=c(u,this._events||{},t,e,{context:n,ctx:this,listening:a}),a&&((this._listeners||(this._listeners={}))[a.id]=a,a.interop=!1),this},s.listenTo=function(t,e,r){if(!t)return this;var o=t._listenId||(t._listenId=n.uniqueId("l")),i=this._listeningTo||(this._listeningTo={}),s=a=i[o];s||(this._listenId||(this._listenId=n.uniqueId("l")),s=a=i[o]=new m(this,t));var l=p(t,e,r,this);if(a=void 0,l)throw l;return s.interop&&s.on(e,r),this};var u=function(t,e,n,r){if(n){var o=t[e]||(t[e]=[]),i=r.context,a=r.ctx,s=r.listening;s&&s.count++,o.push({callback:n,context:i,ctx:i||a,listening:s})}return t},p=function(t,e,n,r){try{t.on(e,n,r)}catch(t){return t}};s.off=function(t,e,n){return this._events?(this._events=c(f,this._events,t,e,{context:n,listeners:this._listeners}),this):this},s.stopListening=function(t,e,r){var o=this._listeningTo;if(!o)return this;for(var i=t?[t._listenId]:n.keys(o),a=0;a<i.length;a++){var s=o[i[a]];if(!s)break;s.obj.off(e,r,this),s.interop&&s.off(e,r)}return n.isEmpty(o)&&(this._listeningTo=void 0),this};var f=function(t,e,r,o){if(t){var i,a=o.context,s=o.listeners,l=0;if(e||a||r){for(i=e?[e]:n.keys(t);l<i.length;l++){var c=t[e=i[l]];if(!c)break;for(var u=[],p=0;p<c.length;p++){var f=c[p];if(r&&r!==f.callback&&r!==f.callback._callback||a&&a!==f.context)u.push(f);else{var d=f.listening;d&&d.off(e,r)}}u.length?t[e]=u:delete t[e]}return t}for(i=n.keys(s);l<i.length;l++)s[i[l]].cleanup()}};s.once=function(t,e,n){var r=c(d,{},t,e,this.off.bind(this));return"string"==typeof t&&null==n&&(e=void 0),this.on(r,e,n)},s.listenToOnce=function(t,e,n){var r=c(d,{},e,n,this.stopListening.bind(this,t));return this.listenTo(t,r)};var d=function(t,e,r,o){if(r){var i=t[e]=n.once((function(){o(e,i),r.apply(this,arguments)}));i._callback=r}return t};s.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),r=0;r<e;r++)n[r]=arguments[r+1];return c(h,this._events,t,void 0,n),this};var h=function(t,e,n,r){if(t){var o=t[e],i=t.all;o&&i&&(i=i.slice()),o&&g(o,r),i&&g(i,[e].concat(r))}return t},g=function(t,e){var n,r=-1,o=t.length,i=e[0],a=e[1],s=e[2];switch(e.length){case 0:for(;++r<o;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i);return;case 2:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i,a);return;case 3:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i,a,s);return;default:for(;++r<o;)(n=t[r]).callback.apply(n.ctx,e);return}},m=function(t,e){this.id=t._listenId,this.listener=t,this.obj=e,this.interop=!0,this.count=0,this._events=void 0};m.prototype.on=s.on,m.prototype.off=function(t,e){var n;this.interop?(this._events=c(f,this._events,t,e,{context:void 0,listeners:void 0}),n=!this._events):(this.count--,n=0===this.count),n&&this.cleanup()},m.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},s.bind=s.on,s.unbind=s.off,n.extend(e,s);var v=e.Model=function(t,e){var r=t||{};e||(e={}),this.preinitialize.apply(this,arguments),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{});var o=n.result(this,"defaults");r=n.defaults(n.extend({},o,r),o),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(v.prototype,s,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,r){if(null==t)return this;var o;if("object"==typeof t?(o=t,r=e):(o={})[t]=e,r||(r={}),!this._validate(o,r))return!1;var i=r.unset,a=r.silent,s=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,p=this._previousAttributes;for(var f in o)e=o[f],n.isEqual(c[f],e)||s.push(f),n.isEqual(p[f],e)?delete u[f]:u[f]=e,i?delete c[f]:c[f]=e;if(this.idAttribute in o){var d=this.id;this.id=this.get(this.idAttribute),this.trigger("changeId",this,d,r)}if(!a){s.length&&(this._pending=r);for(var h=0;h<s.length;h++)this.trigger("change:"+s[h],this,c[s[h]],r)}if(l)return this;if(!a)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e,r=this._changing?this._previousAttributes:this.attributes,o={};for(var i in t){var a=t[i];n.isEqual(r[i],a)||(o[i]=a,e=!0)}return!!e&&o},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=n.extend({parse:!0},t);var e=this,r=t.success;return t.success=function(n){var o=t.parse?e.parse(n,t):n;if(!e.set(o,t))return!1;r&&r.call(t.context,e,n,t),e.trigger("sync",e,n,t)},z(this,t),this.sync("read",this,t)},save:function(t,e,r){var o;null==t||"object"==typeof t?(o=t,r=e):(o={})[t]=e;var i=(r=n.extend({validate:!0,parse:!0},r)).wait;if(o&&!i){if(!this.set(o,r))return!1}else if(!this._validate(o,r))return!1;var a=this,s=r.success,l=this.attributes;r.success=function(t){a.attributes=l;var e=r.parse?a.parse(t,r):t;if(i&&(e=n.extend({},o,e)),e&&!a.set(e,r))return!1;s&&s.call(r.context,a,t,r),a.trigger("sync",a,t,r)},z(this,r),o&&i&&(this.attributes=n.extend({},l,o));var c=this.isNew()?"create":r.patch?"patch":"update";"patch"!==c||r.attrs||(r.attrs=o);var u=this.sync(c,this,r);return this.attributes=l,u},destroy:function(t){t=t?n.clone(t):{};var e=this,r=t.success,o=t.wait,i=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(n){o&&i(),r&&r.call(t.context,e,n,t),e.isNew()||e.trigger("sync",e,n,t)};var a=!1;return this.isNew()?n.defer(t.success):(z(this,t),a=this.sync("delete",this,t)),o||i(),a},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||q();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return!r||(this.trigger("invalid",this,r,n.extend(e,{validationError:r})),!1)}});var y=e.Collection=function(t,e){e||(e={}),this.preinitialize.apply(this,arguments),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},b={add:!0,remove:!0,merge:!0},_={add:!0,remove:!1},w=function(t,e,n){n=Math.min(Math.max(n,0),t.length);var r,o=Array(t.length-n),i=e.length;for(r=0;r<o.length;r++)o[r]=t[r+n];for(r=0;r<i;r++)t[r+n]=e[r];for(r=0;r<o.length;r++)t[r+i+n]=o[r]};n.extend(y.prototype,s,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(t){return this.map((function(e){return e.toJSON(t)}))},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,_))},remove:function(t,e){e=n.extend({},e);var r=!n.isArray(t);t=r?[t]:t.slice();var o=this._removeModels(t,e);return!e.silent&&o.length&&(e.changes={added:[],merged:[],removed:o},this.trigger("update",this,e)),r?o[0]:o},set:function(t,e){if(null!=t){(e=n.extend({},b,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);var r=!n.isArray(t);t=r?[t]:t.slice();var o=e.at;null!=o&&(o=+o),o>this.length&&(o=this.length),o<0&&(o+=this.length+1);var i,a,s=[],l=[],c=[],u=[],p={},f=e.add,d=e.merge,h=e.remove,g=!1,m=this.comparator&&null==o&&!1!==e.sort,v=n.isString(this.comparator)?this.comparator:null;for(a=0;a<t.length;a++){i=t[a];var y=this.get(i);if(y){if(d&&i!==y){var _=this._isModel(i)?i.attributes:i;e.parse&&(_=y.parse(_,e)),y.set(_,e),c.push(y),m&&!g&&(g=y.hasChanged(v))}p[y.cid]||(p[y.cid]=!0,s.push(y)),t[a]=y}else f&&(i=t[a]=this._prepareModel(i,e))&&(l.push(i),this._addReference(i,e),p[i.cid]=!0,s.push(i))}if(h){for(a=0;a<this.length;a++)p[(i=this.models[a]).cid]||u.push(i);u.length&&this._removeModels(u,e)}var E=!1,x=!m&&f&&h;if(s.length&&x?(E=this.length!==s.length||n.some(this.models,(function(t,e){return t!==s[e]})),this.models.length=0,w(this.models,s,0),this.length=this.models.length):l.length&&(m&&(g=!0),w(this.models,l,null==o?this.length:o),this.length=this.models.length),g&&this.sort({silent:!0}),!e.silent){for(a=0;a<l.length;a++)null!=o&&(e.index=o+a),(i=l[a]).trigger("add",i,this,e);(g||E)&&this.trigger("sort",this,e),(l.length||u.length||c.length)&&(e.changes={added:l,removed:u,merged:c},this.trigger("update",this,e))}return r?t[0]:t}},reset:function(t,e){e=e?n.clone(e):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return i.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(this._isModel(t)?t.attributes:t,t.idAttribute)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var r=e.length;return n.isFunction(e)&&(e=e.bind(this)),1===r||n.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(t){var e=(t=n.extend({parse:!0},t)).success,r=this;return t.success=function(n){var o=t.reset?"reset":"set";r[o](n,t),e&&e.call(t.context,r,n,t),r.trigger("sync",r,n,t)},z(this,t),this.sync("read",this,t)},create:function(t,e){var r=(e=e?n.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;r||this.add(t,e);var o=this,i=e.success;return e.success=function(t,e,n){r&&o.add(t,n),i&&i.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t,e){return t[e||this.model.prototype.idAttribute||"id"]},values:function(){return new x(this,T)},keys:function(){return new x(this,C)},entries:function(){return new x(this,A)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){return this._isModel(t)?(t.collection||(t.collection=this),t):((e=e?n.clone(e):{}).collection=this,(r=this.model.prototype?new this.model(t,e):this.model(t,e)).validationError?(this.trigger("invalid",this,r.validationError,e),!1):r);var r},_removeModels:function(t,e){for(var n=[],r=0;r<t.length;r++){var o=this.get(t[r]);if(o){var i=this.indexOf(o);this.models.splice(i,1),this.length--,delete this._byId[o.cid];var a=this.modelId(o.attributes,o.idAttribute);null!=a&&delete this._byId[a],e.silent||(e.index=i,o.trigger("remove",o,this,e)),n.push(o),this._removeReference(o,e)}}return n},_isModel:function(t){return t instanceof v},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes,t.idAttribute);null!=n&&(this._byId[n]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes,t.idAttribute);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){if(e){if(("add"===t||"remove"===t)&&n!==this)return;if("destroy"===t&&this.remove(e,r),"changeId"===t){var o=this.modelId(e.previousAttributes(),e.idAttribute),i=this.modelId(e.attributes,e.idAttribute);null!=o&&delete this._byId[o],null!=i&&(this._byId[i]=e)}}this.trigger.apply(this,arguments)}});var E="function"==typeof Symbol&&Symbol.iterator;E&&(y.prototype[E]=y.prototype.values);var x=function(t,e){this._collection=t,this._kind=e,this._index=0},T=1,C=2,A=3;E&&(x.prototype[E]=function(){return this}),x.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var t,e=this._collection.at(this._index);if(this._index++,this._kind===T)t=e;else{var n=this._collection.modelId(e.attributes,e.idAttribute);t=this._kind===C?n:[n,e]}return{value:t,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var O=e.View=function(t){this.cid=n.uniqueId("view"),this.preinitialize.apply(this,arguments),n.extend(this,n.pick(t,k)),this._ensureElement(),this.initialize.apply(this,arguments)},S=/^(\S+)\s*(.*)$/,k=["model","collection","el","id","attributes","className","tagName","events"];n.extend(O.prototype,s,{tagName:"div",$:function(t){return this.$el.find(t)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,"events")),!t)return this;for(var e in this.undelegateEvents(),t){var r=t[e];if(n.isFunction(r)||(r=this[r]),r){var o=e.match(S);this.delegate(o[1],o[2],r.bind(this))}}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}});var P=function(t,e,r,o){n.each(r,(function(n,r){e[r]&&(t.prototype[r]=function(t,e,n,r){switch(e){case 1:return function(){return t[n](this[r])};case 2:return function(e){return t[n](this[r],e)};case 3:return function(e,o){return t[n](this[r],j(e,this),o)};case 4:return function(e,o,i){return t[n](this[r],j(e,this),o,i)};default:return function(){var e=i.call(arguments);return e.unshift(this[r]),t[n].apply(t,e)}}}(e,n,r,o))}))},j=function(t,e){return n.isFunction(t)?t:n.isObject(t)&&!e._isModel(t)?N(t):n.isString(t)?function(e){return e.get(t)}:t},N=function(t){var e=n.matches(t);return function(t){return e(t.attributes)}};n.each([[y,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[v,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],(function(t){var e=t[0],r=t[1],o=t[2];e.mixin=function(t){var r=n.reduce(n.functions(t),(function(t,e){return t[e]=0,t}),{});P(e,t,r,o)},P(e,n,r,o)})),e.sync=function(t,r,o){var i=L[t];n.defaults(o||(o={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:i,dataType:"json"};if(o.url||(a.url=n.result(r,"url")||q()),null!=o.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(a.contentType="application/json",a.data=JSON.stringify(o.attrs||r.toJSON(o))),o.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),o.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){a.type="POST",o.emulateJSON&&(a.data._method=i);var s=o.beforeSend;o.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",i),s)return s.apply(this,arguments)}}"GET"===a.type||o.emulateJSON||(a.processData=!1);var l=o.error;o.error=function(t,e,n){o.textStatus=e,o.errorThrown=n,l&&l.call(o.context,t,e,n)};var c=o.xhr=e.ajax(n.extend(a,o));return r.trigger("request",r,c,o),c};var L={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var D=e.Router=function(t){t||(t={}),this.preinitialize.apply(this,arguments),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},I=/\((.*?)\)/g,R=/(\(\?)?:\w+/g,M=/\*\w+/g,B=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(D.prototype,s,{preinitialize:function(){},initialize:function(){},route:function(t,r,o){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(o=r,r=""),o||(o=this[r]);var i=this;return e.history.route(t,(function(n){var a=i._extractParameters(t,n);!1!==i.execute(o,a,r)&&(i.trigger.apply(i,["route:"+r].concat(a)),i.trigger("route",r,a),e.history.trigger("route",i,r,a))})),this},execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(B,"\\$&").replace(I,"(?:$1)?").replace(R,(function(t,e){return e?t:"([^/?]+)"})).replace(M,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return n.map(r,(function(t,e){return e===r.length-1?t||null:t?decodeURIComponent(t):null}))}});var F=e.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},U=/^[#\/]|\s+$/g,H=/^\/+|\/+$/g,V=/#.*$/;F.started=!1,n.extend(F.prototype,s,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(U,"")},start:function(t){if(F.started)throw new Error("Backbone.history has already been started");if(F.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(H,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,o=r.insertBefore(this.iframe,r.firstChild).contentWindow;o.document.open(),o.document.close(),o.location.hash="#"+this.fragment}var i=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?i("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?i("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),F.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.some(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0})))},navigate:function(t,e){if(!F.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+t;t=t.replace(V,"");var o=this.decodeFragment(t);if(this.fragment!==o){if(this.fragment=o,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;e.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new F;v.extend=y.extend=D.extend=O.extend=F.extend=function(t,e){var r,o=this;return r=t&&n.has(t,"constructor")?t.constructor:function(){return o.apply(this,arguments)},n.extend(r,o,e),r.prototype=n.create(o.prototype,t),r.prototype.constructor=r,r.__super__=o.prototype,r};var q=function(){throw new Error('A "url" property or function must be specified')},z=function(t,e){var n=e.error;e.error=function(r){n&&n.call(e.context,t,r,e),t.trigger("error",t,r,e)}};return e}(i,n,t,e)}.apply(e,r),void 0===o||(t.exports=o)},210:(t,e,n)=>{!function(t){t.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(t,e){return/^[;{}]$/.test(e)}}),t.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(t,e,n,r){return this.jsonMode?/^[\[,{]$/.test(e)||/^}/.test(n):(";"!=e||!r.lexical||")"!=r.lexical.type)&&/^[;{}]$/.test(e)&&!/^;/.test(n)}});var e=/^(a|abbr|acronym|area|base|bdo|big|br|button|caption|cite|code|col|colgroup|dd|del|dfn|em|frame|hr|iframe|img|input|ins|kbd|label|legend|link|map|object|optgroup|option|param|q|samp|script|select|small|span|strong|sub|sup|textarea|tt|var)$/;t.extendMode("xml",{commentStart:"\x3c!--",commentEnd:"--\x3e",newlineAfterToken:function(t,n,r,o){var i=!1;return"html"==this.configuration&&(i=!!o.context&&e.test(o.context.tagName)),!i&&("tag"==t&&/>$/.test(n)&&o.context||/^</.test(r))}}),t.defineExtension("commentRange",(function(e,n,r){var o=this,i=t.innerMode(o.getMode(),o.getTokenAt(n).state).mode;o.operation((function(){if(e)o.replaceRange(i.commentEnd,r),o.replaceRange(i.commentStart,n),n.line==r.line&&n.ch==r.ch&&o.setCursor(n.line,n.ch+i.commentStart.length);else{var t=o.getRange(n,r),a=t.indexOf(i.commentStart),s=t.lastIndexOf(i.commentEnd);a>-1&&s>-1&&s>a&&(t=t.substr(0,a)+t.substring(a+i.commentStart.length,s)+t.substr(s+i.commentEnd.length)),o.replaceRange(t,n,r)}}))})),t.defineExtension("autoIndentRange",(function(t,e){var n=this;this.operation((function(){for(var r=t.line;r<=e.line;r++)n.indentLine(r,"smart")}))})),t.defineExtension("autoFormatRange",(function(e,n){var r=this,o=r.getMode(),i=r.getRange(e,n).split("\n"),a=t.copyState(o,r.getTokenAt(e).state),s=r.getOption("tabSize"),l="",c=0,u=0===e.ch;function p(){l+="\n",u=!0,++c}for(var f=0;f<i.length;++f){for(var d=new t.StringStream(i[f],s);!d.eol();){var h=t.innerMode(o,a),g=o.token(d,a),m=d.current();d.start=d.pos,u&&!/\S/.test(m)||(l+=m,u=!1),!u&&h.mode.newlineAfterToken&&h.mode.newlineAfterToken(g,m,d.string.slice(d.pos)||i[f+1]||"",h.state)&&p()}!d.pos&&o.blankLine&&o.blankLine(a),!u&&f<i.length-1&&p()}r.operation((function(){r.replaceRange(l,e,n);for(var t=e.line+1,o=e.line+c;t<=o;++t)r.indentLine(t,"smart");r.setSelection(e,r.getCursor(!1))}))}))}(n(631))},631:function(t){t.exports=function(){var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),i=/Edge\/(\d+)/.exec(t),a=r||o||i,s=a&&(r?document.documentMode||6:+(i||o)[1]),l=!i&&/WebKit\//.test(t),c=l&&/Qt\/\d+\.\d+/.test(t),u=!i&&/Chrome\/(\d+)/.exec(t),p=u&&+u[1],f=/Opera\//.test(t),d=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),g=/PhantomJS/.test(t),m=d&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),v=/Android/.test(t),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),b=m||/Mac/.test(e),_=/\bCrOS\b/.test(t),w=/win/i.test(e),E=f&&t.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(f=!1,l=!0);var x=b&&(c||f&&(null==E||E<12.11)),T=n||a&&s>=9;function C(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var A,O=function(t,e){var n=t.className,r=C(e).exec(n);if(r){var o=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(o?r[1]+o:"")}};function S(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function k(t,e){return S(t).appendChild(e)}function P(t,e,n,r){var o=document.createElement(t);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof e)o.appendChild(document.createTextNode(e));else if(e)for(var i=0;i<e.length;++i)o.appendChild(e[i]);return o}function j(t,e,n,r){var o=P(t,e,n,r);return o.setAttribute("role","presentation"),o}function N(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function L(t){var e;try{e=t.activeElement}catch(n){e=t.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function D(t,e){var n=t.className;C(e).test(n)||(t.className+=(n?" ":"")+e)}function I(t,e){for(var n=t.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(e)&&(e+=" "+n[r]);return e}A=document.createRange?function(t,e,n,r){var o=document.createRange();return o.setEnd(r||t,n),o.setStart(t,e),o}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(t){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var R=function(t){t.select()};function M(t){return t.display.wrapper.ownerDocument}function B(t){return M(t).defaultView}function F(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function U(t,e,n){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===n&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function H(t,e,n,r,o){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var i=r||0,a=o||0;;){var s=t.indexOf("\t",i);if(s<0||s>=e)return a+(e-i);a+=s-i,a+=n-a%n,i=s+1}}m?R=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(R=function(t){try{t.select()}catch(t){}});var V=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};function q(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}V.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},V.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var z=50,G={toString:function(){return"CodeMirror.Pass"}},W={scroll:!1},Y={origin:"*mouse"},K={origin:"+move"};function $(t,e,n){for(var r=0,o=0;;){var i=t.indexOf("\t",r);-1==i&&(i=t.length);var a=i-r;if(i==t.length||o+a>=e)return r+Math.min(a,e-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=e)return r}}var X=[""];function Q(t){for(;X.length<=t;)X.push(Z(X)+" ");return X[t]}function Z(t){return t[t.length-1]}function J(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function tt(){}function et(t,e){var n;return Object.create?n=Object.create(t):(tt.prototype=t,n=new tt),e&&U(e,n),n}var nt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(t){return/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||nt.test(t))}function ot(t,e){return e?!!(e.source.indexOf("\\w")>-1&&rt(t))||e.test(t):rt(t)}function it(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var at=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function st(t){return t.charCodeAt(0)>=768&&at.test(t)}function lt(t,e,n){for(;(n<0?e>0:e<t.length)&&st(t.charAt(e));)e+=n;return e}function ct(t,e,n){for(var r=e>n?-1:1;;){if(e==n)return e;var o=(e+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==e)return t(i)?e:n;t(i)?n=i:e=i+r}}var ut=null;function pt(t,e,n){var r;ut=null;for(var o=0;o<t.length;++o){var i=t[o];if(i.from<e&&i.to>e)return o;i.to==e&&(i.from!=i.to&&"before"==n?r=o:ut=o),i.from==e&&(i.from!=i.to&&"before"!=n?r=o:ut=o)}return null!=r?r:ut}var ft=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,o=/[1n]/;function i(t,e,n){this.level=t,this.from=e,this.to=n}return function(a,s){var l,c="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!t.test(a))return!1;for(var u=a.length,p=[],f=0;f<u;++f)p.push((l=a.charCodeAt(f))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var d=0,h=c;d<u;++d){var g=p[d];"m"==g?p[d]=h:h=g}for(var m=0,v=c;m<u;++m){var y=p[m];"1"==y&&"r"==v?p[m]="n":n.test(y)&&(v=y,"r"==y&&(p[m]="R"))}for(var b=1,_=p[0];b<u-1;++b){var w=p[b];"+"==w&&"1"==_&&"1"==p[b+1]?p[b]="1":","!=w||_!=p[b+1]||"1"!=_&&"n"!=_||(p[b]=_),_=w}for(var E=0;E<u;++E){var x=p[E];if(","==x)p[E]="N";else if("%"==x){var T=void 0;for(T=E+1;T<u&&"%"==p[T];++T);for(var C=E&&"!"==p[E-1]||T<u&&"1"==p[T]?"1":"N",A=E;A<T;++A)p[A]=C;E=T-1}}for(var O=0,S=c;O<u;++O){var k=p[O];"L"==S&&"1"==k?p[O]="L":n.test(k)&&(S=k)}for(var P=0;P<u;++P)if(e.test(p[P])){var j=void 0;for(j=P+1;j<u&&e.test(p[j]);++j);for(var N="L"==(P?p[P-1]:c),L=N==("L"==(j<u?p[j]:c))?N?"L":"R":c,D=P;D<j;++D)p[D]=L;P=j-1}for(var I,R=[],M=0;M<u;)if(r.test(p[M])){var B=M;for(++M;M<u&&r.test(p[M]);++M);R.push(new i(0,B,M))}else{var F=M,U=R.length,H="rtl"==s?1:0;for(++M;M<u&&"L"!=p[M];++M);for(var V=F;V<M;)if(o.test(p[V])){F<V&&(R.splice(U,0,new i(1,F,V)),U+=H);var q=V;for(++V;V<M&&o.test(p[V]);++V);R.splice(U,0,new i(2,q,V)),U+=H,F=V}else++V;F<M&&R.splice(U,0,new i(1,F,M))}return"ltr"==s&&(1==R[0].level&&(I=a.match(/^\s+/))&&(R[0].from=I[0].length,R.unshift(new i(0,0,I[0].length))),1==Z(R).level&&(I=a.match(/\s+$/))&&(Z(R).to-=I[0].length,R.push(new i(0,u-I[0].length,u)))),"rtl"==s?R.reverse():R}}();function dt(t,e){var n=t.order;return null==n&&(n=t.order=ft(t.text,e)),n}var ht=[],gt=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||ht).concat(n)}};function mt(t,e){return t._handlers&&t._handlers[e]||ht}function vt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,o=r&&r[e];if(o){var i=q(o,n);i>-1&&(r[e]=o.slice(0,i).concat(o.slice(i+1)))}}}function yt(t,e){var n=mt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o<n.length;++o)n[o].apply(null,r)}function bt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),yt(t,n||e.type,t,e),Ct(e)||e.codemirrorIgnore}function _t(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==q(n,e[r])&&n.push(e[r])}function wt(t,e){return mt(t,e).length>0}function Et(t){t.prototype.on=function(t,e){gt(this,t,e)},t.prototype.off=function(t,e){vt(this,t,e)}}function xt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Tt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Ct(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function At(t){xt(t),Tt(t)}function Ot(t){return t.target||t.srcElement}function St(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),b&&t.ctrlKey&&1==e&&(e=3),e}var kt,Pt,jt=function(){if(a&&s<9)return!1;var t=P("div");return"draggable"in t||"dragDrop"in t}();function Nt(t){if(null==kt){var e=P("span","");k(t,P("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(kt=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=kt?P("span",""):P("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Lt(t){if(null!=Pt)return Pt;var e=k(t,document.createTextNode("AخA")),n=A(e,0,1).getBoundingClientRect(),r=A(e,1,2).getBoundingClientRect();return S(t),!(!n||n.left==n.right)&&(Pt=r.right-n.right<3)}var Dt,It=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var o=t.indexOf("\n",e);-1==o&&(o=t.length);var i=t.slice(e,"\r"==t.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),e+=a+1):(n.push(i),e=o+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Rt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Mt="oncopy"in(Dt=P("div"))||(Dt.setAttribute("oncopy","return;"),"function"==typeof Dt.oncopy),Bt=null;var Ft={},Ut={};function Ht(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Ft[t]=e}function Vt(t){if("string"==typeof t&&Ut.hasOwnProperty(t))t=Ut[t];else if(t&&"string"==typeof t.name&&Ut.hasOwnProperty(t.name)){var e=Ut[t.name];"string"==typeof e&&(e={name:e}),(t=et(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Vt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Vt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function qt(t,e){e=Vt(e);var n=Ft[e.name];if(!n)return qt(t,"text/plain");var r=n(t,e);if(zt.hasOwnProperty(e.name)){var o=zt[e.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)r[a]=e.modeProps[a];return r}var zt={};function Gt(t,e){U(e,zt.hasOwnProperty(t)?zt[t]:zt[t]={})}function Wt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var o=e[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function Yt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Kt(t,e,n){return!t.startState||t.startState(e,n)}var $t=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(e<i){n=o;break}e-=i}return n.lines[e]}function Qt(t,e,n){var r=[],o=e.line;return t.iter(e.line,n.line+1,(function(t){var i=t.text;o==n.line&&(i=i.slice(0,n.ch)),o==e.line&&(i=i.slice(e.ch)),r.push(i),++o})),r}function Zt(t,e,n){var r=[];return t.iter(e,n,(function(t){r.push(t.text)})),r}function Jt(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function te(t){if(null==t.parent)return null;for(var e=t.parent,n=q(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var o=0;r.children[o]!=e;++o)n+=r.children[o].chunkSize();return n+e.first}function ee(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var o=t.children[r],i=o.height;if(e<i){t=o;continue t}e-=i,n+=o.chunkSize()}return n}while(!t.lines);for(var a=0;a<t.lines.length;++a){var s=t.lines[a].height;if(e<s)break;e-=s}return n+a}function ne(t,e){return e>=t.first&&e<t.first+t.size}function re(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function oe(t,e,n){if(void 0===n&&(n=null),!(this instanceof oe))return new oe(t,e,n);this.line=t,this.ch=e,this.sticky=n}function ie(t,e){return t.line-e.line||t.ch-e.ch}function ae(t,e){return t.sticky==e.sticky&&0==ie(t,e)}function se(t){return oe(t.line,t.ch)}function le(t,e){return ie(t,e)<0?e:t}function ce(t,e){return ie(t,e)<0?t:e}function ue(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function pe(t,e){if(e.line<t.first)return oe(t.first,0);var n=t.first+t.size-1;return e.line>n?oe(n,Xt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?oe(t.line,e):n<0?oe(t.line,0):t}(e,Xt(t,e.line).text.length)}function fe(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=pe(t,e[r]);return n}$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},$t.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},$t.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},$t.prototype.backUp=function(t){this.pos-=t},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=H(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?H(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return H(this.string,null,this.tabSize)-(this.lineStart?H(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(t,e,n){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var o=function(t){return n?t.toLowerCase():t};if(o(this.string.substr(this.pos,t.length))==o(t))return!1!==e&&(this.pos+=t.length),!0},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},$t.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},$t.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var de=function(t,e){this.state=t,this.lookAhead=e},he=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ge(t,e,n,r){var o=[t.state.modeGen],i={};Te(t,e.text,t.doc.mode,n,(function(t,e){return o.push(t,e)}),i,r);for(var a=n.state,s=function(r){n.baseTokens=o;var s=t.state.overlays[r],l=1,c=0;n.state=!0,Te(t,e.text,s.mode,n,(function(t,e){for(var n=l;c<t;){var r=o[l];r>t&&o.splice(l,1,t,o[l+1],r),l+=2,c=Math.min(t,r)}if(e)if(s.opaque)o.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var i=o[n+1];o[n+1]=(i?i+" ":"")+"overlay "+e}}),i),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<t.state.overlays.length;++l)s(l);return{styles:o,classes:i.bgClass||i.textClass?i:null}}function me(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=ve(t,te(e)),o=e.text.length>t.options.maxHighlightLength&&Wt(t.doc.mode,r.state),i=ge(t,e,r);o&&(r.state=o),e.stateAfter=r.save(!o),e.styles=i.styles,i.classes?e.styleClasses=i.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function ve(t,e,n){var r=t.doc,o=t.display;if(!r.mode.startState)return new he(r,!0,e);var i=function(t,e,n){for(var r,o,i=t.doc,a=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=i.first)return i.first;var l=Xt(i,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof de?c.lookAhead:0)<=i.modeFrontier))return s;var u=H(l.text,null,t.options.tabSize);(null==o||r>u)&&(o=s-1,r=u)}return o}(t,e,n),a=i>r.first&&Xt(r,i-1).stateAfter,s=a?he.fromSaved(r,a,i):new he(r,Kt(r.mode),i);return r.iter(i,e,(function(n){ye(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=o.viewFrom&&r<o.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function ye(t,e,n,r){var o=t.doc.mode,i=new $t(e,t.options.tabSize,n);for(i.start=i.pos=r||0,""==e&&be(o,n.state);!i.eol();)_e(o,i,n.state),i.start=i.pos}function be(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Yt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function _e(t,e,n,r){for(var o=0;o<10;o++){r&&(r[0]=Yt(t,n).mode);var i=t.token(e,n);if(e.pos>e.start)return i}throw new Error("Mode "+t.name+" failed to advance stream.")}he.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},he.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},he.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},he.fromSaved=function(t,e,n){return e instanceof de?new he(t,Wt(t.mode,e.state),n,e.lookAhead):new he(t,Wt(t.mode,e),n)},he.prototype.save=function(t){var e=!1!==t?Wt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new de(e,this.maxLookAhead):e};var we=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function Ee(t,e,n,r){var o,i,a=t.doc,s=a.mode,l=Xt(a,(e=pe(a,e)).line),c=ve(t,e.line,n),u=new $t(l.text,t.options.tabSize,c);for(r&&(i=[]);(r||u.pos<e.ch)&&!u.eol();)u.start=u.pos,o=_e(s,u,c.state),r&&i.push(new we(u,o,Wt(a.mode,c.state)));return r?i:new we(u,o,c.state)}function xe(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==e[r]?e[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[r])||(e[r]+=" "+n[2])}return t}function Te(t,e,n,r,o,i,a){var s=n.flattenSpans;null==s&&(s=t.options.flattenSpans);var l,c=0,u=null,p=new $t(e,t.options.tabSize,r),f=t.options.addModeClass&&[null];for(""==e&&xe(be(n,r.state),i);!p.eol();){if(p.pos>t.options.maxHighlightLength?(s=!1,a&&ye(t,e,r,p.pos),p.pos=e.length,l=null):l=xe(_e(n,p,r.state,f),i),f){var d=f[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!s||u!=l){for(;c<p.start;)o(c=Math.min(p.start,c+5e3),u);u=l}p.start=p.pos}for(;c<p.pos;){var h=Math.min(p.pos,c+5e3);o(h,u),c=h}}var Ce=!1,Ae=!1;function Oe(t,e,n){this.marker=t,this.from=e,this.to=n}function Se(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function ke(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function Pe(t,e){if(e.full)return null;var n=ne(t,e.from.line)&&Xt(t,e.from.line).markedSpans,r=ne(t,e.to.line)&&Xt(t,e.to.line).markedSpans;if(!n&&!r)return null;var o=e.from.ch,i=e.to.ch,a=0==ie(e.from,e.to),s=function(t,e,n){var r;if(t)for(var o=0;o<t.length;++o){var i=t[o],a=i.marker;if(null==i.from||(a.inclusiveLeft?i.from<=e:i.from<e)||i.from==e&&"bookmark"==a.type&&(!n||!i.marker.insertLeft)){var s=null==i.to||(a.inclusiveRight?i.to>=e:i.to>e);(r||(r=[])).push(new Oe(a,i.from,s?null:i.to))}}return r}(n,o,a),l=function(t,e,n){var r;if(t)for(var o=0;o<t.length;++o){var i=t[o],a=i.marker;if(null==i.to||(a.inclusiveRight?i.to>=e:i.to>e)||i.from==e&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var s=null==i.from||(a.inclusiveLeft?i.from<=e:i.from<e);(r||(r=[])).push(new Oe(a,s?null:i.from-e,null==i.to?null:i.to-e))}}return r}(r,i,a),c=1==e.text.length,u=Z(e.text).length+(c?o:0);if(s)for(var p=0;p<s.length;++p){var f=s[p];if(null==f.to){var d=Se(l,f.marker);d?c&&(f.to=null==d.to?null:d.to+u):f.to=o}}if(l)for(var h=0;h<l.length;++h){var g=l[h];null!=g.to&&(g.to+=u),null==g.from?Se(s,g.marker)||(g.from=u,c&&(s||(s=[])).push(g)):(g.from+=u,c&&(s||(s=[])).push(g))}s&&(s=je(s)),l&&l!=s&&(l=je(l));var m=[s];if(!c){var v,y=e.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new Oe(s[b].marker,null,null));for(var _=0;_<y;++_)m.push(v);m.push(l)}return m}function je(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Ne(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function Le(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function De(t){return t.inclusiveLeft?-1:0}function Ie(t){return t.inclusiveRight?1:0}function Re(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),o=e.find(),i=ie(r.from,o.from)||De(t)-De(e);return i?-i:ie(r.to,o.to)||Ie(t)-Ie(e)||e.id-t.id}function Me(t,e){var n,r=Ae&&t.markedSpans;if(r)for(var o=void 0,i=0;i<r.length;++i)(o=r[i]).marker.collapsed&&null==(e?o.from:o.to)&&(!n||Re(n,o.marker)<0)&&(n=o.marker);return n}function Be(t){return Me(t,!0)}function Fe(t){return Me(t,!1)}function Ue(t,e){var n,r=Ae&&t.markedSpans;if(r)for(var o=0;o<r.length;++o){var i=r[o];i.marker.collapsed&&(null==i.from||i.from<e)&&(null==i.to||i.to>e)&&(!n||Re(n,i.marker)<0)&&(n=i.marker)}return n}function He(t,e,n,r,o){var i=Xt(t,e),a=Ae&&i.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=ie(c.from,n)||De(l.marker)-De(o),p=ie(c.to,r)||Ie(l.marker)-Ie(o);if(!(u>=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?ie(c.to,n)>=0:ie(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?ie(c.from,r)<=0:ie(c.from,r)<0)))return!0}}}function Ve(t){for(var e;e=Be(t);)t=e.find(-1,!0).line;return t}function qe(t,e){var n=Xt(t,e),r=Ve(n);return n==r?e:te(r)}function ze(t,e){if(e>t.lastLine())return e;var n,r=Xt(t,e);if(!Ge(t,r))return e;for(;n=Fe(r);)r=n.find(1,!0).line;return te(r)+1}function Ge(t,e){var n=Ae&&e.markedSpans;if(n)for(var r=void 0,o=0;o<n.length;++o)if((r=n[o]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&We(t,e,r))return!0}}function We(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return We(t,r.line,Se(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var o=void 0,i=0;i<e.markedSpans.length;++i)if((o=e.markedSpans[i]).marker.collapsed&&!o.marker.widgetNode&&o.from==n.to&&(null==o.to||o.to!=n.from)&&(o.marker.inclusiveLeft||n.marker.inclusiveRight)&&We(t,e,o))return!0}function Ye(t){for(var e=0,n=(t=Ve(t)).parent,r=0;r<n.lines.length;++r){var o=n.lines[r];if(o==t)break;e+=o.height}for(var i=n.parent;i;i=(n=i).parent)for(var a=0;a<i.children.length;++a){var s=i.children[a];if(s==n)break;e+=s.height}return e}function Ke(t){if(0==t.height)return 0;for(var e,n=t.text.length,r=t;e=Be(r);){var o=e.find(0,!0);r=o.from.line,n+=o.from.ch-o.to.ch}for(r=t;e=Fe(r);){var i=e.find(0,!0);n-=r.text.length-i.from.ch,n+=(r=i.to.line).text.length-i.to.ch}return n}function $e(t){var e=t.display,n=t.doc;e.maxLine=Xt(n,n.first),e.maxLineLength=Ke(e.maxLine),e.maxLineChanged=!0,n.iter((function(t){var n=Ke(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var Xe=function(t,e,n){this.text=t,Le(this,e),this.height=n?n(this):1};function Qe(t){t.parent=null,Ne(t)}Xe.prototype.lineNo=function(){return te(this)},Et(Xe);var Ze={},Je={};function tn(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?Je:Ze;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function en(t,e){var n=j("span",null,null,l?"padding-right: .1px":null),r={pre:j("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var o=0;o<=(e.rest?e.rest.length:0);o++){var i=o?e.rest[o-1]:e.line,a=void 0;r.pos=0,r.addToken=rn,Lt(t.display.measure)&&(a=dt(i,t.doc.direction))&&(r.addToken=on(r.addToken,a)),r.map=[],sn(i,r,me(t,i,e!=t.display.externalMeasured&&te(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=I(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=I(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Nt(t.display.measure))),0==o?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return yt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=I(r.pre.className,r.textClass||"")),r}function nn(t){var e=P("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function rn(t,e,n,r,o,i,l){if(e){var c,u=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",o=0;o<t.length;o++){var i=t.charAt(o);" "!=i||!n||o!=t.length-1&&32!=t.charCodeAt(o+1)||(i=" "),r+=i,n=" "==i}return r}(e,t.trailingSpace):e,p=t.cm.state.specialChars,f=!1;if(p.test(e)){c=document.createDocumentFragment();for(var d=0;;){p.lastIndex=d;var h=p.exec(e),g=h?h.index-d:e.length-d;if(g){var m=document.createTextNode(u.slice(d,d+g));a&&s<9?c.appendChild(P("span",[m])):c.appendChild(m),t.map.push(t.pos,t.pos+g,m),t.col+=g,t.pos+=g}if(!h)break;d+=g+1;var v=void 0;if("\t"==h[0]){var y=t.cm.options.tabSize,b=y-t.col%y;(v=c.appendChild(P("span",Q(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),t.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=c.appendChild(P("span","\r"==h[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",h[0]),t.col+=1):((v=t.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?c.appendChild(P("span",[v])):c.appendChild(v),t.col+=1);t.map.push(t.pos,t.pos+1,v),t.pos++}}else t.col+=e.length,c=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,c),a&&s<9&&(f=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||r||o||f||i||l){var _=n||"";r&&(_+=r),o&&(_+=o);var w=P("span",[c],_,i);if(l)for(var E in l)l.hasOwnProperty(E)&&"style"!=E&&"class"!=E&&w.setAttribute(E,l[E]);return t.content.appendChild(w)}t.content.appendChild(c)}}function on(t,e){return function(n,r,o,i,a,s,l){o=o?o+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var p=void 0,f=0;f<e.length&&!((p=e[f]).to>c&&p.from<=c);f++);if(p.to>=u)return t(n,r,o,i,a,s,l);t(n,r.slice(0,p.to-c),o,i,null,s,l),i=null,r=r.slice(p.to-c),c=p.to}}}function an(t,e,n,r){var o=!r&&n.widgetNode;o&&t.map.push(t.pos,t.pos+e,o),!r&&t.cm.display.input.needsContentAttribute&&(o||(o=t.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(t.cm.display.input.setUneditable(o),t.content.appendChild(o)),t.pos+=e,t.trailingSpace=!1}function sn(t,e,n){var r=t.markedSpans,o=t.text,i=0;if(r)for(var a,s,l,c,u,p,f,d=o.length,h=0,g=1,m="",v=0;;){if(v==h){l=c=u=s="",f=null,p=null,v=1/0;for(var y=[],b=void 0,_=0;_<r.length;++_){var w=r[_],E=w.marker;if("bookmark"==E.type&&w.from==h&&E.widgetNode)y.push(E);else if(w.from<=h&&(null==w.to||w.to>h||E.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,c=""),E.className&&(l+=" "+E.className),E.css&&(s=(s?s+";":"")+E.css),E.startStyle&&w.from==h&&(u+=" "+E.startStyle),E.endStyle&&w.to==v&&(b||(b=[])).push(E.endStyle,w.to),E.title&&((f||(f={})).title=E.title),E.attributes)for(var x in E.attributes)(f||(f={}))[x]=E.attributes[x];E.collapsed&&(!p||Re(p.marker,E)<0)&&(p=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var T=0;T<b.length;T+=2)b[T+1]==v&&(c+=" "+b[T]);if(!p||p.from==h)for(var C=0;C<y.length;++C)an(e,0,y[C]);if(p&&(p.from||0)==h){if(an(e,(null==p.to?d+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=d)break;for(var A=Math.min(d,v);;){if(m){var O=h+m.length;if(!p){var S=O>A?m.slice(0,A-h):m;e.addToken(e,S,a?a+l:l,u,h+S.length==v?c:"",s,f)}if(O>=A){m=m.slice(A-h),h=A;break}h=O,u=""}m=o.slice(i,i=n[g++]),a=tn(n[g++],e.cm.options)}}else for(var k=1;k<n.length;k+=2)e.addToken(e,o.slice(i,i=n[k]),tn(n[k+1],e.cm.options))}function ln(t,e,n){this.line=e,this.rest=function(t){for(var e,n;e=Fe(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}(e),this.size=this.rest?te(Z(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ge(t,e)}function cn(t,e,n){for(var r,o=[],i=e;i<n;i=r){var a=new ln(t.doc,Xt(t.doc,i),i);r=i+a.size,o.push(a)}return o}var un=null;var pn=null;function fn(t,e){var n=mt(t,e);if(n.length){var r,o=Array.prototype.slice.call(arguments,2);un?r=un.delayedCallbacks:pn?r=pn:(r=pn=[],setTimeout(dn,0));for(var i=function(t){r.push((function(){return n[t].apply(null,o)}))},a=0;a<n.length;++a)i(a)}}function dn(){var t=pn;pn=null;for(var e=0;e<t.length;++e)t[e]()}function hn(t,e,n,r){for(var o=0;o<e.changes.length;o++){var i=e.changes[o];"text"==i?vn(t,e):"gutter"==i?bn(t,e,n,r):"class"==i?yn(t,e):"widget"==i&&_n(t,e,r)}e.changes=null}function gn(t){return t.node==t.text&&(t.node=P("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),a&&s<8&&(t.node.style.zIndex=2)),t.node}function mn(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):en(t,e)}function vn(t,e){var n=e.text.className,r=mn(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,yn(t,e)):n&&(e.text.className=n)}function yn(t,e){(function(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=gn(e);e.background=r.insertBefore(P("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}})(t,e),e.line.wrapClass?gn(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function bn(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var o=gn(e);e.gutterBackground=P("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),o.insertBefore(e.gutterBackground,e.text)}var i=e.line.gutterMarkers;if(t.options.lineNumbers||i){var a=gn(e),s=e.gutter=P("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),t.display.input.setUneditable(s),a.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(P("div",re(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),i)for(var l=0;l<t.display.gutterSpecs.length;++l){var c=t.display.gutterSpecs[l].className,u=i.hasOwnProperty(c)&&i[c];u&&s.appendChild(P("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function _n(t,e,n){e.alignable&&(e.alignable=null);for(var r=C("CodeMirror-linewidget"),o=e.node.firstChild,i=void 0;o;o=i)i=o.nextSibling,r.test(o.className)&&e.node.removeChild(o);En(t,e,n)}function wn(t,e,n,r){var o=mn(t,e);return e.text=e.node=o.pre,o.bgClass&&(e.bgClass=o.bgClass),o.textClass&&(e.textClass=o.textClass),yn(t,e),bn(t,e,n,r),En(t,e,r),e.node}function En(t,e,n){if(xn(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)xn(t,e.rest[r],e,n,!1)}function xn(t,e,n,r,o){if(e.widgets)for(var i=gn(n),a=0,s=e.widgets;a<s.length;++a){var l=s[a],c=P("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Tn(l,c,n,r),t.display.input.setUneditable(c),o&&l.above?i.insertBefore(c,n.gutter||n.text):i.appendChild(c),fn(l,"redraw")}}function Tn(t,e,n,r){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var o=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(o-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=o+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function Cn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!N(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),k(e.display.measure,P("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function An(t,e){for(var n=Ot(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function On(t){return t.lineSpace.offsetTop}function Sn(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function kn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=k(t.measure,P("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function Pn(t){return z-t.display.nativeBarWidth}function jn(t){return t.display.scroller.clientWidth-Pn(t)-t.display.barWidth}function Nn(t){return t.display.scroller.clientHeight-Pn(t)-t.display.barHeight}function Ln(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var o=0;o<t.rest.length;o++)if(te(t.rest[o])>n)return{map:t.measure.maps[o],cache:t.measure.caches[o],before:!0}}}function Dn(t,e,n,r){return Mn(t,Rn(t,e),n,r)}function In(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[hr(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function Rn(t,e){var n=te(e),r=In(t,n);r&&!r.text?r=null:r&&r.changes&&(hn(t,r,n,cr(t)),t.curOp.forceUpdate=!0),r||(r=function(t,e){var n=te(e=Ve(e)),r=t.display.externalMeasured=new ln(t.doc,e,n);r.lineN=n;var o=r.built=en(t,r);return r.text=o.pre,k(t.display.lineMeasure,o.pre),r}(t,e));var o=Ln(r,e,n);return{line:e,view:r,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function Mn(t,e,n,r,o){e.before&&(n=-1);var i,l=n+(r||"");return e.cache.hasOwnProperty(l)?i=e.cache[l]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(function(t,e,n){var r=t.options.lineWrapping,o=r&&jn(t);if(!e.measure.heights||r&&e.measure.width!=o){var i=e.measure.heights=[];if(r){e.measure.width=o;for(var a=e.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&i.push((l.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(i=function(t,e,n,r){var o,i=Un(e.map,n,r),l=i.node,c=i.start,u=i.end,p=i.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;c&&st(e.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+u<i.coverEnd&&st(e.line.text.charAt(i.coverStart+u));)++u;if((o=a&&s<9&&0==c&&u==i.coverEnd-i.coverStart?l.parentNode.getBoundingClientRect():Hn(A(l,c,u).getClientRects(),r)).left||o.right||0==c)break;u=c,c-=1,p="right"}a&&s<11&&(o=function(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=Bt)return Bt;var e=k(t,P("span","x")),n=e.getBoundingClientRect(),r=A(e,0,1).getBoundingClientRect();return Bt=Math.abs(n.left-r.left)>1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,o))}else{var d;c>0&&(p=r="right"),o=t.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==r?d.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!o||!o.left&&!o.right)){var h=l.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+lr(t.display),top:h.top,bottom:h.bottom}:Fn}for(var g=o.top-e.rect.top,m=o.bottom-e.rect.top,v=(g+m)/2,y=e.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var _=b?y[b-1]:0,w=y[b],E={left:("right"==p?o.right:o.left)-e.rect.left,right:("left"==p?o.left:o.right)-e.rect.left,top:_,bottom:w};return o.left||o.right||(E.bogus=!0),t.options.singleCursorHeightPerLine||(E.rtop=g,E.rbottom=m),E}(t,e,n,r)).bogus||(e.cache[l]=i)),{left:i.left,right:i.right,top:o?i.rtop:i.top,bottom:o?i.rbottom:i.bottom}}var Bn,Fn={left:0,right:0,top:0,bottom:0};function Un(t,e,n){for(var r,o,i,a,s,l,c=0;c<t.length;c+=3)if(s=t[c],l=t[c+1],e<s?(o=0,i=1,a="left"):e<l?i=1+(o=e-s):(c==t.length-3||e==l&&t[c+3]>e)&&(o=(i=l-s)-1,e>=l&&(a="right")),null!=o){if(r=t[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;c&&t[c-2]==t[c-3]&&t[c-1].insertLeft;)r=t[2+(c-=3)],a="left";if("right"==n&&o==l-s)for(;c<t.length-3&&t[c+3]==t[c+4]&&!t[c+5].insertLeft;)r=t[(c+=3)+2],a="right";break}return{node:r,start:o,end:i,collapse:a,coverStart:s,coverEnd:l}}function Hn(t,e){var n=Fn;if("left"==e)for(var r=0;r<t.length&&(n=t[r]).left==n.right;r++);else for(var o=t.length-1;o>=0&&(n=t[o]).left==n.right;o--);return n}function Vn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function qn(t){t.display.externalMeasure=null,S(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)Vn(t.display.view[e])}function zn(t){qn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Gn(t){return u&&v?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function Wn(t){return u&&v?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function Yn(t){var e=Ve(t).widgets,n=0;if(e)for(var r=0;r<e.length;++r)e[r].above&&(n+=Cn(e[r]));return n}function Kn(t,e,n,r,o){if(!o){var i=Yn(e);n.top+=i,n.bottom+=i}if("line"==r)return n;r||(r="local");var a=Ye(e);if("local"==r?a+=On(t.display):a-=t.display.viewOffset,"page"==r||"window"==r){var s=t.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Wn(M(t)));var l=s.left+("window"==r?0:Gn(M(t)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function $n(t,e,n){if("div"==n)return e;var r=e.left,o=e.top;if("page"==n)r-=Gn(M(t)),o-=Wn(M(t));else if("local"==n||!n){var i=t.display.sizer.getBoundingClientRect();r+=i.left,o+=i.top}var a=t.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:o-a.top}}function Xn(t,e,n,r,o){return r||(r=Xt(t.doc,e.line)),Kn(t,r,Dn(t,r,e.ch,o),n)}function Qn(t,e,n,r,o,i){function a(e,a){var s=Mn(t,o,e,a?"right":"left",i);return a?s.left=s.right:s.right=s.left,Kn(t,r,s,n)}r=r||Xt(t.doc,e.line),o||(o=Rn(t,r));var s=dt(r,t.doc.direction),l=e.ch,c=e.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(t,e,n){return a(n?t-1:t,1==s[e].level!=n)}var p=pt(s,l,c),f=ut,d=u(l,p,"before"==c);return null!=f&&(d.other=u(l,f,"before"!=c)),d}function Zn(t,e){var n=0;e=pe(t.doc,e),t.options.lineWrapping||(n=lr(t.display)*e.ch);var r=Xt(t.doc,e.line),o=Ye(r)+On(t.display);return{left:n,right:n,top:o,bottom:o+r.height}}function Jn(t,e,n,r,o){var i=oe(t,e,n);return i.xRel=o,r&&(i.outside=r),i}function tr(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return Jn(r.first,0,null,-1,-1);var o=ee(r,n),i=r.first+r.size-1;if(o>i)return Jn(r.first+r.size-1,Xt(r,i).text.length,null,1,1);e<0&&(e=0);for(var a=Xt(r,o);;){var s=or(t,a,o,e,n),l=Ue(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==o)return c;a=Xt(r,o=c.line)}}function er(t,e,n,r){r-=Yn(e);var o=e.text.length,i=ct((function(e){return Mn(t,n,e-1).bottom<=r}),o,0);return{begin:i,end:o=ct((function(e){return Mn(t,n,e).top>r}),i,o)}}function nr(t,e,n,r){return n||(n=Rn(t,e)),er(t,e,n,Kn(t,e,Mn(t,n,r),"line").top)}function rr(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function or(t,e,n,r,o){o-=Ye(e);var i=Rn(t,e),a=Yn(e),s=0,l=e.text.length,c=!0,u=dt(e,t.doc.direction);if(u){var p=(t.options.lineWrapping?ar:ir)(t,e,n,i,u,r,o);s=(c=1!=p.level)?p.from:p.to-1,l=c?p.to:p.from-1}var f,d,h=null,g=null,m=ct((function(e){var n=Mn(t,i,e);return n.top+=a,n.bottom+=a,!!rr(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=e,g=n),!0)}),s,l),v=!1;if(g){var y=r-g.left<g.right-r,b=y==c;m=h+(b?0:1),d=b?"after":"before",f=y?g.left:g.right}else{c||m!=l&&m!=s||m++,d=0==m?"after":m==e.text.length?"before":Mn(t,i,m-(c?1:0)).bottom+a<=o==c?"after":"before";var _=Qn(t,oe(n,m,d),"line",e,i);f=_.left,v=o<_.top?-1:o>=_.bottom?1:0}return Jn(n,m=lt(e.text,m,1),d,v,r-f)}function ir(t,e,n,r,o,i,a){var s=ct((function(s){var l=o[s],c=1!=l.level;return rr(Qn(t,oe(n,c?l.to:l.from,c?"before":"after"),"line",e,r),i,a,!0)}),0,o.length-1),l=o[s];if(s>0){var c=1!=l.level,u=Qn(t,oe(n,c?l.from:l.to,c?"after":"before"),"line",e,r);rr(u,i,a,!0)&&u.top>a&&(l=o[s-1])}return l}function ar(t,e,n,r,o,i,a){var s=er(t,e,r,a),l=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,p=null,f=0;f<o.length;f++){var d=o[f];if(!(d.from>=c||d.to<=l)){var h=Mn(t,r,1!=d.level?Math.min(c,d.to)-1:Math.max(l,d.from)).right,g=h<i?i-h+1e9:h-i;(!u||p>g)&&(u=d,p=g)}}return u||(u=o[o.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function sr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Bn){Bn=P("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Bn.appendChild(document.createTextNode("x")),Bn.appendChild(P("br"));Bn.appendChild(document.createTextNode("x"))}k(t.measure,Bn);var n=Bn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),S(t.measure),n||1}function lr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=P("span","xxxxxxxxxx"),n=P("pre",[e],"CodeMirror-line-like");k(t.measure,n);var r=e.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(t.cachedCharWidth=o),o||10}function cr(t){for(var e=t.display,n={},r={},o=e.gutters.clientLeft,i=e.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=i.offsetLeft+i.clientLeft+o,r[s]=i.clientWidth}return{fixedPos:ur(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function ur(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function pr(t){var e=sr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/lr(t.display)-3);return function(o){if(Ge(t.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a<o.widgets.length;a++)o.widgets[a].height&&(i+=o.widgets[a].height);return n?i+(Math.ceil(o.text.length/r)||1)*e:i+e}}function fr(t){var e=t.doc,n=pr(t);e.iter((function(t){var e=n(t);e!=t.height&&Jt(t,e)}))}function dr(t,e,n,r){var o=t.display;if(!n&&"true"==Ot(e).getAttribute("cm-not-content"))return null;var i,a,s=o.lineSpace.getBoundingClientRect();try{i=e.clientX-s.left,a=e.clientY-s.top}catch(t){return null}var l,c=tr(t,i,a);if(r&&c.xRel>0&&(l=Xt(t.doc,c.line).text).length==c.ch){var u=H(l,l.length,t.options.tabSize)-l.length;c=oe(c.line,Math.max(0,Math.round((i-kn(t.display).left)/lr(t.display))-u))}return c}function hr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if((e-=n[r].size)<0)return r}function gr(t,e,n,r){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),r||(r=0);var o=t.display;if(r&&n<o.viewTo&&(null==o.updateLineNumbers||o.updateLineNumbers>e)&&(o.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=o.viewTo)Ae&&qe(t.doc,e)<o.viewTo&&vr(t);else if(n<=o.viewFrom)Ae&&ze(t.doc,n+r)>o.viewFrom?vr(t):(o.viewFrom+=r,o.viewTo+=r);else if(e<=o.viewFrom&&n>=o.viewTo)vr(t);else if(e<=o.viewFrom){var i=yr(t,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):vr(t)}else if(n>=o.viewTo){var a=yr(t,e,e,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):vr(t)}else{var s=yr(t,e,e,-1),l=yr(t,n,n+r,1);s&&l?(o.view=o.view.slice(0,s.index).concat(cn(t,s.lineN,l.lineN)).concat(o.view.slice(l.index)),o.viewTo+=r):vr(t)}var c=o.externalMeasured;c&&(n<c.lineN?c.lineN+=r:e<c.lineN+c.size&&(o.externalMeasured=null))}function mr(t,e,n){t.curOp.viewChanged=!0;var r=t.display,o=t.display.externalMeasured;if(o&&e>=o.lineN&&e<o.lineN+o.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var i=r.view[hr(t,e)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==q(a,n)&&a.push(n)}}}function vr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function yr(t,e,n,r){var o,i=hr(t,e),a=t.display.view;if(!Ae||n==t.doc.first+t.doc.size)return{index:i,lineN:n};for(var s=t.display.viewFrom,l=0;l<i;l++)s+=a[l].size;if(s!=e){if(r>0){if(i==a.length-1)return null;o=s+a[i].size-e,i++}else o=s-e;e+=o,n+=o}for(;qe(t.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function br(t){for(var e=t.display.view,n=0,r=0;r<e.length;r++){var o=e[r];o.hidden||o.node&&!o.changes||++n}return n}function _r(t){t.display.input.showSelection(t.display.input.prepareSelection())}function wr(t,e){void 0===e&&(e=!0);var n=t.doc,r={},o=r.cursors=document.createDocumentFragment(),i=r.selection=document.createDocumentFragment(),a=t.options.$customCursor;a&&(e=!0);for(var s=0;s<n.sel.ranges.length;s++)if(e||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=t.display.viewTo||l.to().line<t.display.viewFrom)){var c=l.empty();if(a){var u=a(t,l);u&&Er(t,u,o)}else(c||t.options.showCursorWhenSelecting)&&Er(t,l.head,o);c||Tr(t,l,i)}}return r}function Er(t,e,n){var r=Qn(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),o=n.appendChild(P("div"," ","CodeMirror-cursor"));if(o.style.left=r.left+"px",o.style.top=r.top+"px",o.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var i=Xn(t,e,"div",null,null),a=i.right-i.left;o.style.width=(a>0?a:t.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(P("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function xr(t,e){return t.top-e.top||t.left-e.left}function Tr(t,e,n){var r=t.display,o=t.doc,i=document.createDocumentFragment(),a=kn(t.display),s=a.left,l=Math.max(r.sizerWidth,jn(t)-r.sizer.offsetLeft)-a.right,c="ltr"==o.direction;function u(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),i.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?l-t:n)+"px;\n height: "+(r-e)+"px"))}function p(e,n,r){var i,a,p=Xt(o,e),f=p.text.length;function d(n,r){return Xn(t,oe(e,n),"div",p,r)}function h(e,n,r){var o=nr(t,p,null,e),i="ltr"==n==("after"==r)?"left":"right";return d("after"==r?o.begin:o.end-(/\s/.test(p.text.charAt(o.end-1))?2:1),i)[i]}var g=dt(p,o.direction);return function(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var o=!1,i=0;i<t.length;++i){var a=t[i];(a.from<n&&a.to>e||e==n&&a.to==e)&&(r(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(e,n,"ltr")}(g,n||0,null==r?f:r,(function(t,e,o,p){var m="ltr"==o,v=d(t,m?"left":"right"),y=d(e-1,m?"right":"left"),b=null==n&&0==t,_=null==r&&e==f,w=0==p,E=!g||p==g.length-1;if(y.top-v.top<=3){var x=(c?_:b)&&E,T=(c?b:_)&&w?s:(m?v:y).left,C=x?l:(m?y:v).right;u(T,v.top,C-T,v.bottom)}else{var A,O,S,k;m?(A=c&&b&&w?s:v.left,O=c?l:h(t,o,"before"),S=c?s:h(e,o,"after"),k=c&&_&&E?l:y.right):(A=c?h(t,o,"before"):s,O=!c&&b&&w?l:v.right,S=!c&&_&&E?s:y.left,k=c?h(e,o,"after"):l),u(A,v.top,O-A,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(S,y.top,k-S,y.bottom)}(!i||xr(v,i)<0)&&(i=v),xr(y,i)<0&&(i=y),(!a||xr(v,a)<0)&&(a=v),xr(y,a)<0&&(a=y)})),{start:i,end:a}}var f=e.from(),d=e.to();if(f.line==d.line)p(f.line,f.ch,d.ch);else{var h=Xt(o,f.line),g=Xt(o,d.line),m=Ve(h)==Ve(g),v=p(f.line,f.ch,m?h.text.length+1:null).end,y=p(d.line,m?0:null,d.ch).start;m&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}n.appendChild(i)}function Cr(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){t.hasFocus()||kr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Ar(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||Sr(t))}function Or(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&kr(t))}),100)}function Sr(t,e){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(yt(t,"focus",t,e),t.state.focused=!0,D(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Cr(t))}function kr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(yt(t,"blur",t,e),t.state.focused=!1,O(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Pr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=Math.max(0,e.scroller.getBoundingClientRect().top),o=e.lineDiv.getBoundingClientRect().top,i=0,l=0;l<e.view.length;l++){var c=e.view[l],u=t.options.lineWrapping,p=void 0,f=0;if(!c.hidden){if(o+=c.line.height,a&&s<8){var d=c.node.offsetTop+c.node.offsetHeight;p=d-n,n=d}else{var h=c.node.getBoundingClientRect();p=h.bottom-h.top,!u&&c.text.firstChild&&(f=c.text.firstChild.getBoundingClientRect().right-h.left-1)}var g=c.line.height-p;if((g>.005||g<-.005)&&(o<r&&(i-=g),Jt(c.line,p),jr(c.line),c.rest))for(var m=0;m<c.rest.length;m++)jr(c.rest[m]);if(f>t.display.sizerWidth){var v=Math.ceil(f/lr(t.display));v>t.display.maxLineLength&&(t.display.maxLineLength=v,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}Math.abs(i)>2&&(e.scroller.scrollTop+=i)}function jr(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Nr(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-On(t));var o=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,i=ee(e,r),a=ee(e,o);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<i?(i=s,a=ee(e,Ye(Xt(e,s))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=a&&(i=ee(e,Ye(Xt(e,l))-t.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function Lr(t,e){var n=t.display,r=sr(t.display);e.top<0&&(e.top=0);var o=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,i=Nn(t),a={};e.bottom-e.top>i&&(e.bottom=e.top+i);var s=t.doc.height+Sn(n),l=e.top<r,c=e.bottom>s-r;if(e.top<o)a.scrollTop=l?0:e.top;else if(e.bottom>o+i){var u=Math.min(e.top,(c?s:e.bottom)-i);u!=o&&(a.scrollTop=u)}var p=t.options.fixedGutter?0:n.gutters.offsetWidth,f=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-p,d=jn(t)-n.gutters.offsetWidth,h=e.right-e.left>d;return h&&(e.right=e.left+d),e.left<10?a.scrollLeft=0:e.left<f?a.scrollLeft=Math.max(0,e.left+p-(h?0:10)):e.right>d+f-3&&(a.scrollLeft=e.right+(h?0:10)-d),a}function Dr(t,e){null!=e&&(Mr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Ir(t){Mr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Rr(t,e,n){null==e&&null==n||Mr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Mr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Br(t,Zn(t,e.from),Zn(t,e.to),e.margin))}function Br(t,e,n,r){var o=Lr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Rr(t,o.scrollLeft,o.scrollTop)}function Fr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||ho(t,{top:e}),Ur(t,e,!0),n&&ho(t),so(t,100))}function Ur(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Hr(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,vo(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Vr(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+Sn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Pn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var qr=function(t,e,n){this.cm=n;var r=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,t(r),t(o),gt(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),gt(o,"scroll",(function(){o.clientWidth&&e(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};qr.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var o=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+o)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var i=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},qr.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},qr.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},qr.prototype.zeroWidthHack=function(){var t=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new V,this.disableVert=new V},qr.prototype.enableZeroWidthBar=function(t,e,n){t.style.visibility="",e.set(1e3,(function r(){var o=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=t?t.style.visibility="hidden":e.set(1e3,r)}))},qr.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var zr=function(){};function Gr(t,e){e||(e=Vr(t));var n=t.display.barWidth,r=t.display.barHeight;Wr(t,e);for(var o=0;o<4&&n!=t.display.barWidth||r!=t.display.barHeight;o++)n!=t.display.barWidth&&t.options.lineWrapping&&Pr(t),Wr(t,Vr(t)),n=t.display.barWidth,r=t.display.barHeight}function Wr(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}zr.prototype.update=function(){return{bottom:0,right:0}},zr.prototype.setScrollLeft=function(){},zr.prototype.setScrollTop=function(){},zr.prototype.clear=function(){};var Yr={native:qr,null:zr};function Kr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&O(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Yr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),gt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?Hr(t,e):Fr(t,e)}),t),t.display.scrollbars.addClass&&D(t.display.wrapper,t.display.scrollbars.addClass)}var $r=0;function Xr(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++$r,markArrays:null},e=t.curOp,un?un.ops.push(e):e.ownsGroup=un={ops:[e],delayedCallbacks:[]}}function Qr(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var r=0;r<t.ops.length;r++){var o=t.ops[r];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(n<e.length)}(n)}finally{un=null,e(n)}}(e,(function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,n=0;n<e.length;n++)Zr(e[n]);for(var r=0;r<e.length;r++)Jr(e[r]);for(var o=0;o<e.length;o++)to(e[o]);for(var i=0;i<e.length;i++)eo(e[i]);for(var a=0;a<e.length;a++)no(e[a])}(t)}))}function Zr(t){var e=t.cm,n=e.display;(function(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=Pn(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=Pn(t)+"px",e.scrollbarsClipped=!0)})(e),t.updateMaxLine&&$e(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new co(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Jr(t){t.updatedDisplay=t.mustUpdate&&po(t.cm,t.update)}function to(t){var e=t.cm,n=e.display;t.updatedDisplay&&Pr(e),t.barMeasure=Vr(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Dn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Pn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-jn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function eo(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&Hr(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==L(M(e));t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Gr(e,t.barMeasure),t.updatedDisplay&&mo(e,t.barMeasure),t.selectionChanged&&Cr(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&Ar(t.cm)}function no(t){var e=t.cm,n=e.display,r=e.doc;t.updatedDisplay&&fo(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&Ur(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&Hr(e,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,e){if(!bt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),o=null,i=n.wrapper.ownerDocument;if(e.top+r.top<0?o=!0:e.bottom+r.top>(i.defaultView.innerHeight||i.documentElement.clientHeight)&&(o=!1),null!=o&&!g){var a=P("div","",null,"position: absolute;\n top: "+(e.top-n.viewOffset-On(t.display))+"px;\n height: "+(e.bottom-e.top+Pn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(a),a.scrollIntoView(o),t.display.lineSpace.removeChild(a)}}}(e,function(t,e,n,r){var o;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==e.sticky?oe(e.line,e.ch+1,"before"):e,e=e.ch?oe(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e);for(var i=0;i<5;i++){var a=!1,s=Qn(t,e),l=n&&n!=e?Qn(t,n):s,c=Lr(t,o={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=t.doc.scrollTop,p=t.doc.scrollLeft;if(null!=c.scrollTop&&(Fr(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Hr(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return o}(e,pe(r,t.scrollToPos.from),pe(r,t.scrollToPos.to),t.scrollToPos.margin));var o=t.maybeHiddenMarkers,i=t.maybeUnhiddenMarkers;if(o)for(var a=0;a<o.length;++a)o[a].lines.length||yt(o[a],"hide");if(i)for(var s=0;s<i.length;++s)i[s].lines.length&&yt(i[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&yt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function ro(t,e){if(t.curOp)return e();Xr(t);try{return e()}finally{Qr(t)}}function oo(t,e){return function(){if(t.curOp)return e.apply(t,arguments);Xr(t);try{return e.apply(t,arguments)}finally{Qr(t)}}}function io(t){return function(){if(this.curOp)return t.apply(this,arguments);Xr(this);try{return t.apply(this,arguments)}finally{Qr(this)}}}function ao(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Xr(e);try{return t.apply(this,arguments)}finally{Qr(e)}}}function so(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,F(lo,t))}function lo(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=ve(t,e.highlightFrontier),o=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(i){if(r.line>=t.display.viewFrom){var a=i.styles,s=i.text.length>t.options.maxHighlightLength?Wt(e.mode,r.state):null,l=ge(t,i,r,!0);s&&(r.state=s),i.styles=l.styles;var c=i.styleClasses,u=l.classes;u?i.styleClasses=u:c&&(i.styleClasses=null);for(var p=!a||a.length!=i.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!p&&f<a.length;++f)p=a[f]!=i.styles[f];p&&o.push(r.line),i.stateAfter=r.save(),r.nextLine()}else i.text.length<=t.options.maxHighlightLength&&ye(t,i.text,r),i.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return so(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),o.length&&ro(t,(function(){for(var e=0;e<o.length;e++)mr(t,o[e],"text")}))}}var co=function(t,e,n){var r=t.display;this.viewport=e,this.visible=Nr(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=jn(t),this.force=n,this.dims=cr(t),this.events=[]};function uo(t){if(t.hasFocus())return null;var e=L(M(t));if(!e||!N(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=B(t).getSelection();r.anchorNode&&r.extend&&N(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function po(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return vr(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==br(t))return!1;yo(t)&&(vr(t),e.dims=cr(t));var o=r.first+r.size,i=Math.max(e.visible.from-t.options.viewportMargin,r.first),a=Math.min(o,e.visible.to+t.options.viewportMargin);n.viewFrom<i&&i-n.viewFrom<20&&(i=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),Ae&&(i=qe(t.doc,i),a=ze(t.doc,a));var s=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;(function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=cn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=cn(t,e,r.viewFrom).concat(r.view):r.viewFrom<e&&(r.view=r.view.slice(hr(t,e))),r.viewFrom=e,r.viewTo<n?r.view=r.view.concat(cn(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,hr(t,n)))),r.viewTo=n})(t,i,a),n.viewOffset=Ye(Xt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var c=br(t);if(!s&&0==c&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=uo(t);return c>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,o=t.options.lineNumbers,i=r.lineDiv,a=i.firstChild;function s(e){var n=e.nextSibling;return l&&b&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=r.view,u=r.viewFrom,p=0;p<c.length;p++){var f=c[p];if(f.hidden);else if(f.node&&f.node.parentNode==i){for(;a!=f.node;)a=s(a);var d=o&&null!=e&&e<=u&&f.lineNumber;f.changes&&(q(f.changes,"gutter")>-1&&(d=!1),hn(t,f,u,n)),d&&(S(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(re(t.options,u)))),a=f.node.nextSibling}else{var h=wn(t,f,u,n);i.insertBefore(h,a)}u+=f.size}for(;a;)a=s(a)}(t,n.updateLineNumbers,e.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=L(t.activeElt.ownerDocument)&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&N(document.body,t.anchorNode)&&N(document.body,t.focusNode))){var e=t.activeElt.ownerDocument,n=e.defaultView.getSelection(),r=e.createRange();r.setEnd(t.anchorNode,t.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(t.focusNode,t.focusOffset)}}(u),S(n.cursorDiv),S(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,so(t,400)),n.updateLineNumbers=null,!0}function fo(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=jn(t))r&&(e.visible=Nr(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Sn(t.display)-Nn(t),n.top)}),e.visible=Nr(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!po(t,e))break;Pr(t);var o=Vr(t);_r(t),Gr(t,o),mo(t,o),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function ho(t,e){var n=new co(t,e);if(po(t,n)){Pr(t),fo(t,n);var r=Vr(t);_r(t),Gr(t,r),mo(t,r),n.finish()}}function go(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px",fn(t,"gutterChanged",t)}function mo(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Pn(t)+"px"}function vo(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=ur(e)-e.scroller.scrollLeft+t.doc.scrollLeft,o=e.gutters.offsetWidth,i=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){t.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=i),n[a].gutterBackground&&(n[a].gutterBackground.style.left=i));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=i}t.options.fixedGutter&&(e.gutters.style.left=r+o+"px")}}function yo(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=re(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var o=r.measure.appendChild(P("div",[P("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),i=o.firstChild.offsetWidth,a=o.offsetWidth-i;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(i,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",go(t.display),!0}return!1}function bo(t,e){for(var n=[],r=!1,o=0;o<t.length;o++){var i=t[o],a=null;if("string"!=typeof i&&(a=i.style,i=i.className),"CodeMirror-linenumbers"==i){if(!e)continue;r=!0}n.push({className:i,style:a})}return e&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function _o(t){var e=t.gutters,n=t.gutterSpecs;S(e),t.lineGutter=null;for(var r=0;r<n.length;++r){var o=n[r],i=o.className,a=o.style,s=e.appendChild(P("div",null,"CodeMirror-gutter "+i));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==i&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",go(t)}function wo(t){_o(t.display),gr(t),vo(t)}function Eo(t,e,r,o){var i=this;this.input=r,i.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=j("div",null,"CodeMirror-code"),i.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=P("div",null,"CodeMirror-cursors"),i.measure=P("div",null,"CodeMirror-measure"),i.lineMeasure=P("div",null,"CodeMirror-measure"),i.lineSpace=j("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var c=j("div",[i.lineSpace],"CodeMirror-lines");i.mover=P("div",[c],null,"position: relative"),i.sizer=P("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=P("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),i.gutters=P("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=P("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=P("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),u&&p>=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),a&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&y||(i.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(i.wrapper):t(i.wrapper)),i.viewFrom=i.viewTo=e.first,i.reportedViewFrom=i.reportedViewTo=e.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=bo(o.gutters,o.lineNumbers),_o(i),r.init(i)}co.prototype.signal=function(t,e){wt(t,e)&&this.events.push(arguments)},co.prototype.finish=function(){for(var t=0;t<this.events.length;t++)yt.apply(null,this.events[t])};var xo=0,To=null;function Co(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function Ao(t){var e=Co(t);return e.x*=To,e.y*=To,e}function Oo(t,e){u&&102==p&&(null==t.display.chromeScrollHack?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout((function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""}),100));var r=Co(e),o=r.x,i=r.y,a=To;0===e.deltaMode&&(o=e.deltaX,i=e.deltaY,a=1);var s=t.display,c=s.scroller,d=c.scrollWidth>c.clientWidth,h=c.scrollHeight>c.clientHeight;if(o&&d||i&&h){if(i&&b&&l)t:for(var g=e.target,m=s.view;g!=c;g=g.parentNode)for(var v=0;v<m.length;v++)if(m[v].node==g){t.display.currentWheelTarget=g;break t}if(o&&!n&&!f&&null!=a)return i&&h&&Fr(t,Math.max(0,c.scrollTop+i*a)),Hr(t,Math.max(0,c.scrollLeft+o*a)),(!i||i&&h)&&xt(e),void(s.wheelStartX=null);if(i&&null!=a){var y=i*a,_=t.doc.scrollTop,w=_+s.wrapper.clientHeight;y<0?_=Math.max(0,_+y-50):w=Math.min(t.doc.height,w+y+50),ho(t,{top:_,bottom:w})}xo<20&&0!==e.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=o,s.wheelDY=i,setTimeout((function(){if(null!=s.wheelStartX){var t=c.scrollLeft-s.wheelStartX,e=c.scrollTop-s.wheelStartY,n=e&&s.wheelDY&&e/s.wheelDY||t&&s.wheelDX&&t/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(To=(To*xo+n)/(xo+1),++xo)}}),200)):(s.wheelDX+=o,s.wheelDY+=i))}}a?To=-.53:n?To=15:u?To=-.7:d&&(To=-1/3);var So=function(t,e){this.ranges=t,this.primIndex=e};So.prototype.primary=function(){return this.ranges[this.primIndex]},So.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],r=t.ranges[e];if(!ae(n.anchor,r.anchor)||!ae(n.head,r.head))return!1}return!0},So.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new ko(se(this.ranges[e].anchor),se(this.ranges[e].head));return new So(t,this.primIndex)},So.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},So.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ie(e,r.from())>=0&&ie(t,r.to())<=0)return n}return-1};var ko=function(t,e){this.anchor=t,this.head=e};function Po(t,e,n){var r=t&&t.options.selectionsMayTouch,o=e[n];e.sort((function(t,e){return ie(t.from(),e.from())})),n=q(e,o);for(var i=1;i<e.length;i++){var a=e[i],s=e[i-1],l=ie(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=ce(s.from(),a.from()),u=le(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;i<=n&&--n,e.splice(--i,2,new ko(p?u:c,p?c:u))}}return new So(e,n)}function jo(t,e){return new So([new ko(t,e||t)],0)}function No(t){return t.text?oe(t.from.line+t.text.length-1,Z(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Lo(t,e){if(ie(t,e.from)<0)return t;if(ie(t,e.to)<=0)return No(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=No(e).ch-e.to.ch),oe(n,r)}function Do(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var o=t.sel.ranges[r];n.push(new ko(Lo(o.anchor,e),Lo(o.head,e)))}return Po(t.cm,n,t.sel.primIndex)}function Io(t,e,n){return t.line==e.line?oe(n.line,t.ch-e.ch+n.ch):oe(n.line+(t.line-e.line),t.ch)}function Ro(t){t.doc.mode=qt(t.options,t.doc.modeOption),Mo(t)}function Mo(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,so(t,100),t.state.modeGen++,t.curOp&&gr(t)}function Bo(t,e){return 0==e.from.ch&&0==e.to.ch&&""==Z(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Fo(t,e,n,r){function o(t){return n?n[t]:null}function i(t,n,o){(function(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Ne(t),Le(t,n);var o=r?r(t):1;o!=t.height&&Jt(t,o)})(t,n,o,r),fn(t,"change",t,e)}function a(t,e){for(var n=[],i=t;i<e;++i)n.push(new Xe(c[i],o(i),r));return n}var s=e.from,l=e.to,c=e.text,u=Xt(t,s.line),p=Xt(t,l.line),f=Z(c),d=o(c.length-1),h=l.line-s.line;if(e.full)t.insert(0,a(0,c.length)),t.remove(c.length,t.size-c.length);else if(Bo(t,e)){var g=a(0,c.length-1);i(p,p.text,d),h&&t.remove(s.line,h),g.length&&t.insert(s.line,g)}else if(u==p)if(1==c.length)i(u,u.text.slice(0,s.ch)+f+u.text.slice(l.ch),d);else{var m=a(1,c.length-1);m.push(new Xe(f+u.text.slice(l.ch),d,r)),i(u,u.text.slice(0,s.ch)+c[0],o(0)),t.insert(s.line+1,m)}else if(1==c.length)i(u,u.text.slice(0,s.ch)+c[0]+p.text.slice(l.ch),o(0)),t.remove(s.line+1,h);else{i(u,u.text.slice(0,s.ch)+c[0],o(0)),i(p,f+p.text.slice(l.ch),d);var v=a(1,c.length-1);h>1&&t.remove(s.line+1,h-1),t.insert(s.line+1,v)}fn(t,"change",t,e)}function Uo(t,e,n){!function t(r,o,i){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=o){var l=i&&s.sharedHist;n&&!l||(e(s.doc,l),t(s.doc,r,l))}}}(t,null,!0)}function Ho(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,fr(t),Ro(t),Vo(t),t.options.direction=e.direction,t.options.lineWrapping||$e(t),t.options.mode=e.modeOption,gr(t)}function Vo(t){("rtl"==t.doc.direction?D:O)(t.display.lineDiv,"CodeMirror-rtl")}function qo(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function zo(t,e){var n={from:se(e.from),to:No(e),text:Qt(t,e.from,e.to)};return $o(t,n,e.from.line,e.to.line+1),Uo(t,(function(t){return $o(t,n,e.from.line,e.to.line+1)}),!0),n}function Go(t){for(;t.length&&Z(t).ranges;)t.pop()}function Wo(t,e,n,r){var o=t.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&o.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(i=function(t,e){return e?(Go(t.done),Z(t.done)):t.done.length&&!Z(t.done).ranges?Z(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),Z(t.done)):void 0}(o,o.lastOp==r)))a=Z(i.changes),0==ie(e.from,e.to)&&0==ie(e.from,a.to)?a.to=No(e):i.changes.push(zo(t,e));else{var l=Z(o.done);for(l&&l.ranges||Ko(t.sel,o.done),i={changes:[zo(t,e)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=e.origin,a||yt(t,"historyAdded")}function Yo(t,e,n,r){var o=t.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||function(t,e,n,r){var o=e.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,i,Z(o.done),e))?o.done[o.done.length-1]=e:Ko(e,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&Go(o.undone)}function Ko(t,e){var n=Z(e);n&&n.ranges&&n.equals(t)||e.push(t)}function $o(t,e,n,r){var o=e["spans_"+t.id],i=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((o||(o=e["spans_"+t.id]={}))[i]=n.markedSpans),++i}))}function Xo(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function Qo(t,e){var n=function(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],o=0;o<e.text.length;++o)r.push(Xo(n[o]));return r}(t,e),r=Pe(t,e);if(!n)return r;if(!r)return n;for(var o=0;o<n.length;++o){var i=n[o],a=r[o];if(i&&a)t:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<i.length;++c)if(i[c].marker==l.marker)continue t;i.push(l)}else a&&(n[o]=a)}return n}function Zo(t,e,n){for(var r=[],o=0;o<t.length;++o){var i=t[o];if(i.ranges)r.push(n?So.prototype.deepCopy.call(i):i);else{var a=i.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),e)for(var p in c)(u=p.match(/^spans_(\d+)$/))&&q(e,Number(u[1]))>-1&&(Z(s)[p]=c[p],delete c[p])}}}return r}function Jo(t,e,n,r){if(r){var o=t.anchor;if(n){var i=ie(e,o)<0;i!=ie(n,o)<0?(o=e,e=n):i!=ie(e,n)<0&&(e=n)}return new ko(o,e)}return new ko(n||e,e)}function ti(t,e,n,r,o){null==o&&(o=t.cm&&(t.cm.display.shift||t.extend)),ii(t,new So([Jo(t.sel.primary(),e,n,o)],0),r)}function ei(t,e,n){for(var r=[],o=t.cm&&(t.cm.display.shift||t.extend),i=0;i<t.sel.ranges.length;i++)r[i]=Jo(t.sel.ranges[i],e[i],null,o);ii(t,Po(t.cm,r,t.sel.primIndex),n)}function ni(t,e,n,r){var o=t.sel.ranges.slice(0);o[e]=n,ii(t,Po(t.cm,o,t.sel.primIndex),r)}function ri(t,e,n,r){ii(t,jo(e,n),r)}function oi(t,e,n){var r=t.history.done,o=Z(r);o&&o.ranges?(r[r.length-1]=e,ai(t,e,n)):ii(t,e,n)}function ii(t,e,n){ai(t,e,n),Yo(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function ai(t,e,n){(wt(t,"beforeSelectionChange")||t.cm&&wt(t.cm,"beforeSelectionChange"))&&(e=function(t,e,n){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new ko(pe(t,e[n].anchor),pe(t,e[n].head))},origin:n&&n.origin};return yt(t,"beforeSelectionChange",t,r),t.cm&&yt(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?Po(t.cm,r.ranges,r.ranges.length-1):e}(t,e,n));var r=n&&n.bias||(ie(e.primary().head,t.sel.primary().head)<0?-1:1);si(t,ci(t,e,r,!0)),n&&!1===n.scroll||!t.cm||"nocursor"==t.cm.getOption("readOnly")||Ir(t.cm)}function si(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,_t(t.cm)),fn(t,"cursorActivity",t))}function li(t){si(t,ci(t,t.sel,null,!1))}function ci(t,e,n,r){for(var o,i=0;i<e.ranges.length;i++){var a=e.ranges[i],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[i],l=pi(t,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?l:pi(t,a.head,s&&s.head,n,r);(o||l!=a.anchor||c!=a.head)&&(o||(o=e.ranges.slice(0,i)),o[i]=new ko(l,c))}return o?Po(t.cm,o,e.primIndex):e}function ui(t,e,n,r,o){var i=Xt(t,e.line);if(i.markedSpans)for(var a=0;a<i.markedSpans.length;++a){var s=i.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(u?s.to>=e.ch:s.to>e.ch))){if(o&&(yt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var p=l.find(r<0?1:-1),f=void 0;if((r<0?u:c)&&(p=fi(t,p,-r,p&&p.line==e.line?i:null)),p&&p.line==e.line&&(f=ie(p,n))&&(r<0?f<0:f>0))return ui(t,p,e,r,o)}var d=l.find(r<0?-1:1);return(r<0?c:u)&&(d=fi(t,d,r,d.line==e.line?i:null)),d?ui(t,d,e,r,o):null}}return e}function pi(t,e,n,r,o){var i=r||1;return ui(t,e,n,i,o)||!o&&ui(t,e,n,i,!0)||ui(t,e,n,-i,o)||!o&&ui(t,e,n,-i,!0)||(t.cantEdit=!0,oe(t.first,0))}function fi(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?pe(t,oe(e.line-1)):null:n>0&&e.ch==(r||Xt(t,e.line)).text.length?e.line<t.first+t.size-1?oe(e.line+1,0):null:new oe(e.line,e.ch+n)}function di(t){t.setSelection(oe(t.firstLine(),0),oe(t.lastLine()),W)}function hi(t,e,n){var r={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(e,n,o,i){e&&(r.from=pe(t,e)),n&&(r.to=pe(t,n)),o&&(r.text=o),void 0!==i&&(r.origin=i)}),yt(t,"beforeChange",t,r),t.cm&&yt(t.cm,"beforeChange",t.cm,r),r.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function gi(t,e,n){if(t.cm){if(!t.cm.curOp)return oo(t.cm,gi)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(wt(t,"beforeChange")||t.cm&&wt(t.cm,"beforeChange"))||(e=hi(t,e,!0))){var r=Ce&&!n&&function(t,e,n){var r=null;if(t.iter(e.line,n.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||r&&-1!=q(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var o=[{from:e,to:n}],i=0;i<r.length;++i)for(var a=r[i],s=a.find(0),l=0;l<o.length;++l){var c=o[l];if(!(ie(c.to,s.from)<0||ie(c.from,s.to)>0)){var u=[l,1],p=ie(c.from,s.from),f=ie(c.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),o.splice.apply(o,u),l+=u.length-3}}return o}(t,e.from,e.to);if(r)for(var o=r.length-1;o>=0;--o)mi(t,{from:r[o].from,to:r[o].to,text:o?[""]:e.text,origin:e.origin});else mi(t,e)}}function mi(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ie(e.from,e.to)){var n=Do(t,e);Wo(t,e,n,t.cm?t.cm.curOp.id:NaN),bi(t,e,n,Pe(t,e));var r=[];Uo(t,(function(t,n){n||-1!=q(r,t.history)||(xi(t.history,e),r.push(t.history)),bi(t,e,null,Pe(t,e))}))}}function vi(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var o,i=t.history,a=t.sel,s="undo"==e?i.done:i.undone,l="undo"==e?i.undone:i.done,c=0;c<s.length&&(o=s[c],n?!o.ranges||o.equals(t.sel):o.ranges);c++);if(c!=s.length){for(i.lastOrigin=i.lastSelOrigin=null;;){if(!(o=s.pop()).ranges){if(r)return void s.push(o);break}if(Ko(o,l),n&&!o.equals(t.sel))return void ii(t,o,{clearRedo:!1});a=o}var u=[];Ko(a,l),l.push({changes:u,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var p=wt(t,"beforeChange")||t.cm&&wt(t.cm,"beforeChange"),f=function(n){var r=o.changes[n];if(r.origin=e,p&&!hi(t,r,!1))return s.length=0,{};u.push(zo(t,r));var i=n?Do(t,r):Z(s);bi(t,r,i,Qo(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:No(r)});var a=[];Uo(t,(function(t,e){e||-1!=q(a,t.history)||(xi(t.history,r),a.push(t.history)),bi(t,r,null,Qo(t,r))}))},d=o.changes.length-1;d>=0;--d){var h=f(d);if(h)return h.v}}}}function yi(t,e){if(0!=e&&(t.first+=e,t.sel=new So(J(t.sel.ranges,(function(t){return new ko(oe(t.anchor.line+e,t.anchor.ch),oe(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){gr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)mr(t.cm,r,"gutter")}}function bi(t,e,n,r){if(t.cm&&!t.cm.curOp)return oo(t.cm,bi)(t,e,n,r);if(e.to.line<t.first)yi(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var o=e.text.length-1-(t.first-e.from.line);yi(t,o),e={from:oe(t.first,0),to:oe(e.to.line+o,e.to.ch),text:[Z(e.text)],origin:e.origin}}var i=t.lastLine();e.to.line>i&&(e={from:e.from,to:oe(i,Xt(t,i).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Qt(t,e.from,e.to),n||(n=Do(t,e)),t.cm?function(t,e,n){var r=t.doc,o=t.display,i=e.from,a=e.to,s=!1,l=i.line;t.options.lineWrapping||(l=te(Ve(Xt(r,i.line))),r.iter(l,a.line+1,(function(t){if(t==o.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&_t(t),Fo(r,e,n,pr(t)),t.options.lineWrapping||(r.iter(l,i.line+e.text.length,(function(t){var e=Ke(t);e>o.maxLineLength&&(o.maxLine=t,o.maxLineLength=e,o.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,r=e-1;r>n;r--){var o=Xt(t,r).stateAfter;if(o&&(!(o instanceof de)||r+o.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}(r,i.line),so(t,400);var c=e.text.length-(a.line-i.line)-1;e.full?gr(t):i.line!=a.line||1!=e.text.length||Bo(t.doc,e)?gr(t,i.line,a.line+1,c):mr(t,i.line,"text");var u=wt(t,"changes"),p=wt(t,"change");if(p||u){var f={from:i,to:a,text:e.text,removed:e.removed,origin:e.origin};p&&fn(t,"change",t,f),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(f)}t.display.selForContextMenu=null}(t.cm,e,r):Fo(t,e,r),ai(t,n,W),t.cantEdit&&pi(t,oe(t.firstLine(),0))&&(t.cantEdit=!1)}}function _i(t,e,n,r,o){var i;r||(r=n),ie(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof e&&(e=t.splitLines(e)),gi(t,{from:n,to:r,text:e,origin:o})}function wi(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function Ei(t,e,n,r){for(var o=0;o<t.length;++o){var i=t[o],a=!0;if(i.ranges){i.copied||((i=t[o]=i.deepCopy()).copied=!0);for(var s=0;s<i.ranges.length;s++)wi(i.ranges[s].anchor,e,n,r),wi(i.ranges[s].head,e,n,r)}else{for(var l=0;l<i.changes.length;++l){var c=i.changes[l];if(n<c.from.line)c.from=oe(c.from.line+r,c.from.ch),c.to=oe(c.to.line+r,c.to.ch);else if(e<=c.to.line){a=!1;break}}a||(t.splice(0,o+1),o=0)}}}function xi(t,e){var n=e.from.line,r=e.to.line,o=e.text.length-(r-n)-1;Ei(t.done,n,r,o),Ei(t.undone,n,r,o)}function Ti(t,e,n,r){var o=e,i=e;return"number"==typeof e?i=Xt(t,ue(t,e)):o=te(e),null==o?null:(r(i,o)&&t.cm&&mr(t.cm,o,n),i)}function Ci(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function Ai(t){this.children=t;for(var e=0,n=0,r=0;r<t.length;++r){var o=t[r];e+=o.chunkSize(),n+=o.height,o.parent=this}this.size=e,this.height=n,this.parent=null}ko.prototype.from=function(){return ce(this.anchor,this.head)},ko.prototype.to=function(){return le(this.anchor,this.head)},ko.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Ci.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,r=t+e;n<r;++n){var o=this.lines[n];this.height-=o.height,Qe(o),fn(o,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,n){for(var r=t+e;t<r;++t)if(n(this.lines[t]))return!0}},Ai.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var r=this.children[n],o=r.chunkSize();if(t<o){var i=Math.min(e,o-t),a=r.height;if(r.removeInner(t,i),this.height-=a-r.height,o==i&&(this.children.splice(n--,1),r.parent=null),0==(e-=i))break;t=0}else t-=o}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof Ci))){var s=[];this.collapse(s),this.children=[new Ci(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var o=this.children[r],i=o.chunkSize();if(t<=i){if(o.insertInner(t,e,n),o.lines&&o.lines.length>50){for(var a=o.lines.length%25+25,s=a;s<o.lines.length;){var l=new Ci(o.lines.slice(s,s+=25));o.height-=l.height,this.children.splice(++r,0,l),l.parent=this}o.lines=o.lines.slice(0,a),this.maybeSpill()}break}t-=i}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new Ai(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var n=q(t.parent.children,t);t.parent.children.splice(n+1,0,e)}else{var r=new Ai(t.children);r.parent=t,t.children=[r,e],t=r}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r<this.children.length;++r){var o=this.children[r],i=o.chunkSize();if(t<i){var a=Math.min(e,i-t);if(o.iterN(t,a,n))return!0;if(0==(e-=a))break;t=0}else t-=i}}};var Oi=function(t,e,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=t,this.node=e};function Si(t,e,n){Ye(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Dr(t,n)}Oi.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,r=te(n);if(null!=r&&e){for(var o=0;o<e.length;++o)e[o]==this&&e.splice(o--,1);e.length||(n.widgets=null);var i=Cn(this);Jt(n,Math.max(0,n.height-i)),t&&(ro(t,(function(){Si(t,n,-i),mr(t,r,"widget")})),fn(t,"lineWidgetCleared",t,this,r))}},Oi.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var o=Cn(this)-e;o&&(Ge(this.doc,r)||Jt(r,r.height+o),n&&ro(n,(function(){n.curOp.forceUpdate=!0,Si(n,r,o),fn(n,"lineWidgetChanged",n,t,te(r))})))},Et(Oi);var ki=0,Pi=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++ki};function ji(t,e,n,r,o){if(r&&r.shared)return function(t,e,n,r,o){(r=U(r)).shared=!1;var i=[ji(t,e,n,r,o)],a=i[0],s=r.widgetNode;return Uo(t,(function(t){s&&(r.widgetNode=s.cloneNode(!0)),i.push(ji(t,pe(t,e),pe(t,n),r,o));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;a=Z(i)})),new Ni(i,a)}(t,e,n,r,o);if(t.cm&&!t.cm.curOp)return oo(t.cm,ji)(t,e,n,r,o);var i=new Pi(t,o),a=ie(e,n);if(r&&U(r,i,!1),a>0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=j("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(He(t,e.line,e,n,i)||e.line!=n.line&&He(t,n.line,e,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ae=!0}i.addToHistory&&Wo(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,l=e.line,c=t.cm;if(t.iter(l,n.line+1,(function(r){c&&i.collapsed&&!c.options.lineWrapping&&Ve(r)==c.display.maxLine&&(s=!0),i.collapsed&&l!=e.line&&Jt(r,0),function(t,e,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&t.markedSpans&&r.has(t.markedSpans)?t.markedSpans.push(e):(t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],r&&r.add(t.markedSpans)),e.marker.attachLine(t)}(r,new Oe(i,l==e.line?e.ch:null,l==n.line?n.ch:null),t.cm&&t.cm.curOp),++l})),i.collapsed&&t.iter(e.line,n.line+1,(function(e){Ge(t,e)&&Jt(e,0)})),i.clearOnEnter&>(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(Ce=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),i.collapsed&&(i.id=++ki,i.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),i.collapsed)gr(c,e.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var u=e.line;u<=n.line;u++)mr(c,u,"text");i.atomic&&li(c.doc),fn(c,"markerAdded",c,i)}return i}Pi.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Xr(t),wt(this,"clear")){var n=this.find();n&&fn(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;i<this.lines.length;++i){var a=this.lines[i],s=Se(a.markedSpans,this);t&&!this.collapsed?mr(t,te(a),"text"):t&&(null!=s.to&&(o=te(a)),null!=s.from&&(r=te(a))),a.markedSpans=ke(a.markedSpans,s),null==s.from&&this.collapsed&&!Ge(this.doc,a)&&t&&Jt(a,sr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=Ve(this.lines[l]),u=Ke(c);u>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&gr(t,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&li(t.doc)),t&&fn(t,"markerCleared",t,this,r,o),e&&Qr(t),this.parent&&this.parent.clear()}},Pi.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var o=0;o<this.lines.length;++o){var i=this.lines[o],a=Se(i.markedSpans,this);if(null!=a.from&&(n=oe(e?i:te(i),a.from),-1==t))return n;if(null!=a.to&&(r=oe(e?i:te(i),a.to),1==t))return r}return n&&{from:n,to:r}},Pi.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&ro(r,(function(){var o=e.line,i=te(e.line),a=In(r,i);if(a&&(Vn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ge(n.doc,o)&&null!=n.height){var s=n.height;n.height=null;var l=Cn(n)-s;l&&Jt(o,o.height+l)}fn(r,"markerChanged",r,t)}))},Pi.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=q(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Pi.prototype.detachLine=function(t){if(this.lines.splice(q(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},Et(Pi);var Ni=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function Li(t){return t.findMarks(oe(t.first,0),t.clipPos(oe(t.lastLine())),(function(t){return t.parent}))}function Di(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];Uo(n.primary.doc,(function(t){return r.push(t)}));for(var o=0;o<n.markers.length;o++){var i=n.markers[o];-1==q(r,i.doc)&&(i.parent=null,n.markers.splice(o--,1))}},n=0;n<t.length;n++)e(n)}Ni.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();fn(this,"clear")}},Ni.prototype.find=function(t,e){return this.primary.find(t,e)},Et(Ni);var Ii=0,Ri=function(t,e,n,r,o){if(!(this instanceof Ri))return new Ri(t,e,n,r,o);null==n&&(n=0),Ai.call(this,[new Ci([new Xe("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var i=oe(n,0);this.sel=jo(i),this.history=new qo(null),this.id=++Ii,this.modeOption=e,this.lineSep=r,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Fo(this,{from:i,to:i,text:t}),ii(this,jo(i),W)};Ri.prototype=et(Ai.prototype,{constructor:Ri,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,r=0;r<e.length;++r)n+=e[r].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=Zt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:ao((function(t){var e=oe(this.first,0),n=this.first+this.size-1;gi(this,{from:e,to:oe(n,Xt(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Rr(this.cm,0,0),ii(this,jo(e),W)})),replaceRange:function(t,e,n,r){_i(this,t,e=pe(this,e),n=n?pe(this,n):e,r)},getRange:function(t,e,n){var r=Qt(this,pe(this,t),pe(this,e));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(ne(this,t))return Xt(this,t)},getLineNumber:function(t){return te(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=Xt(this,t)),Ve(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return pe(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ao((function(t,e,n){ri(this,pe(this,"number"==typeof t?oe(t,e||0):t),null,n)})),setSelection:ao((function(t,e,n){ri(this,pe(this,t),pe(this,e||t),n)})),extendSelection:ao((function(t,e,n){ti(this,pe(this,t),e&&pe(this,e),n)})),extendSelections:ao((function(t,e){ei(this,fe(this,t),e)})),extendSelectionsBy:ao((function(t,e){ei(this,fe(this,J(this.sel.ranges,t)),e)})),setSelections:ao((function(t,e,n){if(t.length){for(var r=[],o=0;o<t.length;o++)r[o]=new ko(pe(this,t[o].anchor),pe(this,t[o].head||t[o].anchor));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),ii(this,Po(this.cm,r,e),n)}})),addSelection:ao((function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new ko(pe(this,t),pe(this,e||t))),ii(this,Po(this.cm,r,r.length-1),n)})),getSelection:function(t){for(var e,n=this.sel.ranges,r=0;r<n.length;r++){var o=Qt(this,n[r].from(),n[r].to());e=e?e.concat(o):o}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,r=0;r<n.length;r++){var o=Qt(this,n[r].from(),n[r].to());!1!==t&&(o=o.join(t||this.lineSeparator())),e[r]=o}return e},replaceSelection:function(t,e,n){for(var r=[],o=0;o<this.sel.ranges.length;o++)r[o]=t;this.replaceSelections(r,e,n||"+input")},replaceSelections:ao((function(t,e,n){for(var r=[],o=this.sel,i=0;i<o.ranges.length;i++){var a=o.ranges[i];r[i]={from:a.from(),to:a.to(),text:this.splitLines(t[i]),origin:n}}for(var s=e&&"end"!=e&&function(t,e,n){for(var r=[],o=oe(t.first,0),i=o,a=0;a<e.length;a++){var s=e[a],l=Io(s.from,o,i),c=Io(No(s),o,i);if(o=s.to,i=c,"around"==n){var u=t.sel.ranges[a],p=ie(u.head,u.anchor)<0;r[a]=new ko(p?c:l,p?l:c)}else r[a]=new ko(l,l)}return new So(r,t.sel.primIndex)}(this,r,e),l=r.length-1;l>=0;l--)gi(this,r[l]);s?oi(this,s):this.cm&&Ir(this.cm)})),undo:ao((function(){vi(this,"undo")})),redo:ao((function(){vi(this,"redo")})),undoSelection:ao((function(){vi(this,"undo",!0)})),redoSelection:ao((function(){vi(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var o=0;o<t.undone.length;o++)t.undone[o].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new qo(this.history),Uo(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Zo(this.history.done),undone:Zo(this.history.undone)}},setHistory:function(t){var e=this.history=new qo(this.history);e.done=Zo(t.done.slice(0),null,!0),e.undone=Zo(t.undone.slice(0),null,!0)},setGutterMarker:ao((function(t,e,n){return Ti(this,t,"gutter",(function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&it(r)&&(t.gutterMarkers=null),!0}))})),clearGutter:ao((function(t){var e=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&Ti(e,n,"gutter",(function(){return n.gutterMarkers[t]=null,it(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!ne(this,t))return null;if(e=t,!(t=Xt(this,t)))return null}else if(null==(e=te(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:ao((function(t,e,n){return Ti(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[r]){if(C(n).test(t[r]))return!1;t[r]+=" "+n}else t[r]=n;return!0}))})),removeLineClass:ao((function(t,e,n){return Ti(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",o=t[r];if(!o)return!1;if(null==n)t[r]=null;else{var i=o.match(C(n));if(!i)return!1;var a=i.index+i[0].length;t[r]=o.slice(0,i.index)+(i.index&&a!=o.length?" ":"")+o.slice(a)||null}return!0}))})),addLineWidget:ao((function(t,e,n){return function(t,e,n,r){var o=new Oi(t,n,r),i=t.cm;return i&&o.noHScroll&&(i.display.alignWidgets=!0),Ti(t,e,"widget",(function(e){var n=e.widgets||(e.widgets=[]);if(null==o.insertAt?n.push(o):n.splice(Math.min(n.length,Math.max(0,o.insertAt)),0,o),o.line=e,i&&!Ge(t,e)){var r=Ye(e)<t.scrollTop;Jt(e,e.height+Cn(o)),r&&Dr(i,o.height),i.curOp.forceUpdate=!0}return!0})),i&&fn(i,"lineWidgetAdded",i,o,"number"==typeof e?e:te(e)),o}(this,t,e,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return ji(this,pe(this,t),pe(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return ji(this,t=pe(this,t),t,n,"bookmark")},findMarksAt:function(t){var e=[],n=Xt(this,(t=pe(this,t)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var o=n[r];(null==o.from||o.from<=t.ch)&&(null==o.to||o.to>=t.ch)&&e.push(o.marker.parent||o.marker)}return e},findMarks:function(t,e,n){t=pe(this,t),e=pe(this,e);var r=[],o=t.line;return this.iter(t.line,e.line+1,(function(i){var a=i.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&o==t.line&&t.ch>=l.to||null==l.from&&o!=t.line||null!=l.from&&o==e.line&&l.from>=e.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++o})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&t.push(n[r].marker)})),t},posFromIndex:function(t){var e,n=this.first,r=this.lineSeparator().length;return this.iter((function(o){var i=o.text.length+r;if(i>t)return e=t,!0;t-=i,++n})),pe(this,oe(n,e))},indexFromPos:function(t){var e=(t=pe(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+n})),e},copy:function(t){var e=new Ri(Zt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var r=new Ri(Zt(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n],o=r.find(),i=t.clipPos(o.from),a=t.clipPos(o.to);if(ie(i,a)){var s=ji(t,i,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Li(this)),r},unlinkDoc:function(t){if(t instanceof Na&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),Di(Li(this));break}if(t.history==this.history){var n=[t.id];Uo(t,(function(t){return n.push(t.id)}),!0),t.history=new qo(null),t.history.done=Zo(this.history.done,n),t.history.undone=Zo(this.history.undone,n)}},iterLinkedDocs:function(t){Uo(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):It(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ao((function(t){var e;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&ro(e=this.cm,(function(){Vo(e),gr(e)})))}))}),Ri.prototype.eachLine=Ri.prototype.iter;var Mi=0;function Bi(t){var e=this;if(Fi(e),!bt(e,t)&&!An(e.display,t)){xt(t),a&&(Mi=+new Date);var n=dr(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,i=Array(o),s=0,l=function(){++s==o&&oo(e,(function(){var t={from:n=pe(e.doc,n),to:n,text:e.doc.splitLines(i.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};gi(e.doc,t),oi(e.doc,jo(pe(e.doc,n),pe(e.doc,No(t))))}))()},c=function(t,n){if(e.options.allowDropFileTypes&&-1==q(e.options.allowDropFileTypes,t.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var t=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(i[n]=t),l()},r.readAsText(t)}},u=0;u<r.length;u++)c(r[u],u);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var p=t.dataTransfer.getData("Text");if(p){var f;if(e.state.draggingText&&!e.state.draggingText.copy&&(f=e.listSelections()),ai(e.doc,jo(n,n)),f)for(var d=0;d<f.length;++d)_i(e.doc,"",f[d].anchor,f[d].head,"drag");e.replaceSelection(p,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Fi(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Ui(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<e.length;r++){var o=e[r].CodeMirror;o&&n.push(o)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var Hi=!1;function Vi(){var t;Hi||(gt(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Ui(qi)}),100))})),gt(window,"blur",(function(){return Ui(kr)})),Hi=!0)}function qi(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var zi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Gi=0;Gi<10;Gi++)zi[Gi+48]=zi[Gi+96]=String(Gi);for(var Wi=65;Wi<=90;Wi++)zi[Wi]=String.fromCharCode(Wi);for(var Yi=1;Yi<=12;Yi++)zi[Yi+111]=zi[Yi+63235]="F"+Yi;var Ki={};function $i(t){var e,n,r,o,i=t.split(/-(?!$)/);t=i[i.length-1];for(var a=0;a<i.length-1;a++){var s=i[a];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),o&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function Xi(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete t[n];continue}for(var o=J(n.split(" "),$i),i=0;i<o.length;i++){var a=void 0,s=void 0;i==o.length-1?(s=o.join(" "),a=r):(s=o.slice(0,i+1).join(" "),a="...");var l=e[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else e[s]=a}delete t[n]}for(var c in e)t[c]=e[c];return t}function Qi(t,e,n,r){var o=(e=ea(e)).call?e.call(t,r):e[t];if(!1===o)return"nothing";if("..."===o)return"multi";if(null!=o&&n(o))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Qi(t,e.fallthrough,n,r);for(var i=0;i<e.fallthrough.length;i++){var a=Qi(t,e.fallthrough[i],n,r);if(a)return a}}}function Zi(t){var e="string"==typeof t?t:zi[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Ji(t,e,n){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(x?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(x?e.ctrlKey:e.metaKey)&&"Mod"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function ta(t,e){if(f&&34==t.keyCode&&t.char)return!1;var n=zi[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),Ji(n,t,e))}function ea(t){return"string"==typeof t?Ki[t]:t}function na(t,e){for(var n=t.doc.sel.ranges,r=[],o=0;o<n.length;o++){for(var i=e(n[o]);r.length&&ie(i.from,Z(r).to)<=0;){var a=r.pop();if(ie(a.from,i.from)<0){i.from=a.from;break}}r.push(i)}ro(t,(function(){for(var e=r.length-1;e>=0;e--)_i(t.doc,"",r[e].from,r[e].to,"+delete");Ir(t)}))}function ra(t,e,n){var r=lt(t.text,e+n,n);return r<0||r>t.text.length?null:r}function oa(t,e,n){var r=ra(t,e.ch,n);return null==r?null:new oe(e.line,r,n<0?"after":"before")}function ia(t,e,n,r,o){if(t){"rtl"==e.doc.direction&&(o=-o);var i=dt(n,e.doc.direction);if(i){var a,s=o<0?Z(i):i[0],l=o<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var c=Rn(e,n);a=o<0?n.text.length-1:0;var u=Mn(e,c,a).top;a=ct((function(t){return Mn(e,c,t).top==u}),o<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=ra(n,a,1))}else a=o<0?s.to:s.from;return new oe(r,a,l)}}return new oe(r,o<0?n.text.length:0,o<0?"before":"after")}Ki.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ki.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ki.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ki.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ki.default=b?Ki.macDefault:Ki.pcDefault;var aa={selectAll:di,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),W)},killLine:function(t){return na(t,(function(e){if(e.empty()){var n=Xt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:oe(e.head.line+1,0)}:{from:e.head,to:oe(e.head.line,n)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return na(t,(function(e){return{from:oe(e.from().line,0),to:pe(t.doc,oe(e.to().line+1,0))}}))},delLineLeft:function(t){return na(t,(function(t){return{from:oe(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return na(t,(function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}}))},delWrappedLineRight:function(t){return na(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:r}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(oe(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(oe(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return sa(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return la(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return function(t,e){var n=Xt(t.doc,e),r=function(t){for(var e;e=Fe(t);)t=e.find(1,!0).line;return t}(n);return r!=n&&(e=te(r)),ia(!0,t,n,e,-1)}(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),K)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),K)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return r.ch<t.getLine(r.line).search(/\S/)?la(t,e.head):r}),K)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),r=t.options.tabSize,o=0;o<n.length;o++){var i=n[o].from(),a=H(t.getLine(i.line),i.ch,r);e.push(Q(r-a%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return ro(t,(function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var o=e[r].head,i=Xt(t.doc,o.line).text;if(i)if(o.ch==i.length&&(o=new oe(o.line,o.ch-1)),o.ch>0)o=new oe(o.line,o.ch+1),t.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),oe(o.line,o.ch-2),o,"+transpose");else if(o.line>t.doc.first){var a=Xt(t.doc,o.line-1).text;a&&(o=new oe(o.line,1),t.replaceRange(i.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),oe(o.line-1,a.length-1),o,"+transpose"))}n.push(new ko(o,o))}t.setSelections(n)}))},newlineAndIndent:function(t){return ro(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r<e.length;r++)t.indentLine(e[r].from().line,null,!0);Ir(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function sa(t,e){var n=Xt(t.doc,e),r=Ve(n);return r!=n&&(e=te(r)),ia(!0,t,r,e,1)}function la(t,e){var n=sa(t,e.line),r=Xt(t.doc,n.line),o=dt(r,t.doc.direction);if(!o||0==o[0].level){var i=Math.max(n.ch,r.text.search(/\S/)),a=e.line==n.line&&e.ch<=i&&e.ch;return oe(n.line,a?0:i,n.sticky)}return n}function ca(t,e,n){if("string"==typeof e&&!(e=aa[e]))return!1;t.display.input.ensurePolled();var r=t.display.shift,o=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),o=e(t)!=G}finally{t.display.shift=r,t.state.suppressEdits=!1}return o}var ua=new V;function pa(t,e,n,r){var o=t.state.keySeq;if(o){if(Zi(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:ua.set(50,(function(){t.state.keySeq==o&&(t.state.keySeq=null,t.display.input.reset())})),fa(t,o+" "+e,n,r))return!0}return fa(t,e,n,r)}function fa(t,e,n,r){var o=function(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var o=Qi(e,t.state.keyMaps[r],n,t);if(o)return o}return t.options.extraKeys&&Qi(e,t.options.extraKeys,n,t)||Qi(e,t.options.keyMap,n,t)}(t,e,r);return"multi"==o&&(t.state.keySeq=e),"handled"==o&&fn(t,"keyHandled",t,e,n),"handled"!=o&&"multi"!=o||(xt(n),Cr(t)),!!o}function da(t,e){var n=ta(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?pa(t,"Shift-"+n,e,(function(e){return ca(t,e,!0)}))||pa(t,n,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return ca(t,e)})):pa(t,n,e,(function(e){return ca(t,e)})))}var ha=null;function ga(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=L(M(e)),bt(e,t)))){a&&s<11&&27==t.keyCode&&(t.returnValue=!1);var r=t.keyCode;e.display.shift=16==r||t.shiftKey;var o=da(e,t);f&&(ha=o?r:null,o||88!=r||Mt||!(b?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!b&&!o&&46==r&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||function(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(O(e,"CodeMirror-crosshair"),vt(document,"keyup",n),vt(document,"mouseover",n))}D(e,"CodeMirror-crosshair"),gt(document,"keyup",n),gt(document,"mouseover",n)}(e)}}function ma(t){16==t.keyCode&&(this.doc.sel.shift=!1),bt(this,t)}function va(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||An(e.display,t)||bt(e,t)||t.ctrlKey&&!t.altKey||b&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(f&&n==ha)return ha=null,void xt(t);if(!f||t.which&&!(t.which<10)||!da(e,t)){var o=String.fromCharCode(null==r?n:r);"\b"!=o&&(function(t,e,n){return pa(t,"'"+n+"'",e,(function(e){return ca(t,e,!0)}))}(e,t,o)||e.display.input.onKeyPress(t))}}}var ya,ba,_a=function(t,e,n){this.time=t,this.pos=e,this.button=n};function wa(t){var e=this,n=e.display;if(!(bt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,An(n,t))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ta(e,t)){var r=dr(e,t),o=St(t),i=r?function(t,e){var n=+new Date;return ba&&ba.compare(n,t,e)?(ya=ba=null,"triple"):ya&&ya.compare(n,t,e)?(ba=new _a(n,t,e),ya=null,"double"):(ya=new _a(n,t,e),ba=null,"single")}(r,o):"single";B(e).focus(),1==o&&e.state.selectingText&&e.state.selectingText(t),r&&function(t,e,n,r,o){var i="Click";return"double"==r?i="Double"+i:"triple"==r&&(i="Triple"+i),pa(t,Ji(i=(1==e?"Left":2==e?"Middle":"Right")+i,o),o,(function(e){if("string"==typeof e&&(e=aa[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=G}finally{t.state.suppressEdits=!1}return r}))}(e,o,r,i,t)||(1==o?r?function(t,e,n,r){a?setTimeout(F(Ar,t),0):t.curOp.focus=L(M(t));var o,i=function(t,e,n){var r=t.getOption("configureMouse"),o=r?r(t,e,n):{};if(null==o.unit){var i=_?n.shiftKey&&n.metaKey:n.altKey;o.unit=i?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==o.extend||t.doc.extend)&&(o.extend=t.doc.extend||n.shiftKey),null==o.addNew&&(o.addNew=b?n.metaKey:n.ctrlKey),null==o.moveOnDrag&&(o.moveOnDrag=!(b?n.altKey:n.ctrlKey)),o}(t,n,r),c=t.doc.sel;t.options.dragDrop&&jt&&!t.isReadOnly()&&"single"==n&&(o=c.contains(e))>-1&&(ie((o=c.ranges[o]).from(),e)<0||e.xRel>0)&&(ie(o.to(),e)>0||e.xRel<0)?function(t,e,n,r){var o=t.display,i=!1,c=oo(t,(function(e){l&&(o.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Or(t)),vt(o.wrapper.ownerDocument,"mouseup",c),vt(o.wrapper.ownerDocument,"mousemove",u),vt(o.scroller,"dragstart",p),vt(o.scroller,"drop",c),i||(xt(e),r.addNew||ti(t.doc,n,null,null,r.extend),l&&!d||a&&9==s?setTimeout((function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()}),20):o.input.focus())})),u=function(t){i=i||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},p=function(){return i=!0};l&&(o.scroller.draggable=!0),t.state.draggingText=c,c.copy=!r.moveOnDrag,gt(o.wrapper.ownerDocument,"mouseup",c),gt(o.wrapper.ownerDocument,"mousemove",u),gt(o.scroller,"dragstart",p),gt(o.scroller,"drop",c),t.state.delayingBlurEvent=!0,setTimeout((function(){return o.input.focus()}),20),o.scroller.dragDrop&&o.scroller.dragDrop()}(t,r,e,i):function(t,e,n,r){a&&Or(t);var o=t.display,i=t.doc;xt(e);var s,l,c=i.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=i.sel.contains(n),s=l>-1?u[l]:new ko(n,n)):(s=i.sel.primary(),l=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new ko(n,n)),n=dr(t,e,!0,!0),l=-1;else{var p=Ea(t,n,r.unit);s=r.extend?Jo(s,p.anchor,p.head,r.extend):p}r.addNew?-1==l?(l=u.length,ii(i,Po(t,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(ii(i,Po(t,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=i.sel):ni(i,l,s,Y):(l=0,ii(i,new So([s],0),Y),c=i.sel);var f=n;function d(e){if(0!=ie(f,e))if(f=e,"rectangle"==r.unit){for(var o=[],a=t.options.tabSize,u=H(Xt(i,n.line).text,n.ch,a),p=H(Xt(i,e.line).text,e.ch,a),d=Math.min(u,p),h=Math.max(u,p),g=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));g<=m;g++){var v=Xt(i,g).text,y=$(v,d,a);d==h?o.push(new ko(oe(g,y),oe(g,y))):v.length>y&&o.push(new ko(oe(g,y),oe(g,$(v,h,a))))}o.length||o.push(new ko(n,n)),ii(i,Po(t,c.ranges.slice(0,l).concat(o),l),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,_=s,w=Ea(t,e,r.unit),E=_.anchor;ie(w.anchor,E)>0?(b=w.head,E=ce(_.from(),w.anchor)):(b=w.anchor,E=le(_.to(),w.head));var x=c.ranges.slice(0);x[l]=function(t,e){var n=e.anchor,r=e.head,o=Xt(t.doc,n.line);if(0==ie(n,r)&&n.sticky==r.sticky)return e;var i=dt(o);if(!i)return e;var a=pt(i,n.ch,n.sticky),s=i[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==i.length)return e;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=pt(i,r.ch,r.sticky),p=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?p<0:p>0}var f=i[c+(l?-1:0)],d=l==(1==f.level),h=d?f.from:f.to,g=d?"after":"before";return n.ch==h&&n.sticky==g?e:new ko(new oe(n.line,h,g),r)}(t,new ko(pe(i,E),b)),ii(i,Po(t,x,l),Y)}}var h=o.wrapper.getBoundingClientRect(),g=0;function m(e){var n=++g,a=dr(t,e,!0,"rectangle"==r.unit);if(a)if(0!=ie(a,f)){t.curOp.focus=L(M(t)),d(a);var s=Nr(o,i);(a.line>=s.to||a.line<s.from)&&setTimeout(oo(t,(function(){g==n&&m(e)})),150)}else{var l=e.clientY<h.top?-20:e.clientY>h.bottom?20:0;l&&setTimeout(oo(t,(function(){g==n&&(o.scroller.scrollTop+=l,m(e))})),50)}}function v(e){t.state.selectingText=!1,g=1/0,e&&(xt(e),o.input.focus()),vt(o.wrapper.ownerDocument,"mousemove",y),vt(o.wrapper.ownerDocument,"mouseup",b),i.history.lastSelOrigin=null}var y=oo(t,(function(t){0!==t.buttons&&St(t)?m(t):v(t)})),b=oo(t,v);t.state.selectingText=b,gt(o.wrapper.ownerDocument,"mousemove",y),gt(o.wrapper.ownerDocument,"mouseup",b)}(t,r,e,i)}(e,r,i,t):Ot(t)==n.scroller&&xt(t):2==o?(r&&ti(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==o&&(T?e.display.input.onContextMenu(t):Or(e)))}}function Ea(t,e,n){if("char"==n)return new ko(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new ko(oe(e.line,0),pe(t.doc,oe(e.line+1,0)));var r=n(t,e);return new ko(r.from,r.to)}function xa(t,e,n,r){var o,i;if(e.touches)o=e.touches[0].clientX,i=e.touches[0].clientY;else try{o=e.clientX,i=e.clientY}catch(t){return!1}if(o>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&xt(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!wt(t,n))return Ct(e);i-=s.top-a.viewOffset;for(var l=0;l<t.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=o)return yt(t,n,t,ee(t.doc,i),t.display.gutterSpecs[l].className,e),Ct(e)}}function Ta(t,e){return xa(t,e,"gutterClick",!0)}function Ca(t,e){An(t.display,e)||function(t,e){return!!wt(t,"gutterContextMenu")&&xa(t,e,"gutterContextMenu",!1)}(t,e)||bt(t,e,"contextmenu")||T||t.display.input.onContextMenu(e)}function Aa(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(t)}_a.prototype.compare=function(t,e,n){return this.time+400>t&&0==ie(e,this.pos)&&n==this.button};var Oa={toString:function(){return"CodeMirror.Init"}},Sa={},ka={};function Pa(t,e,n){if(!e!=!(n&&n!=Oa)){var r=t.display.dragFunctions,o=e?gt:vt;o(t.display.scroller,"dragstart",r.start),o(t.display.scroller,"dragenter",r.enter),o(t.display.scroller,"dragover",r.over),o(t.display.scroller,"dragleave",r.leave),o(t.display.scroller,"drop",r.drop)}}function ja(t){t.options.lineWrapping?(D(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(O(t.display.wrapper,"CodeMirror-wrap"),$e(t)),fr(t),gr(t),zn(t),setTimeout((function(){return Gr(t)}),100)}function Na(t,e){var n=this;if(!(this instanceof Na))return new Na(t,e);this.options=e=e?U(e):{},U(Sa,e,!1);var r=e.value;"string"==typeof r?r=new Ri(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var o=new Na.inputStyles[e.inputStyle](this),i=this.display=new Eo(t,r,o,e);for(var c in i.wrapper.CodeMirror=this,Aa(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},e.autofocus&&!y&&i.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;gt(e.scroller,"mousedown",oo(t,wa)),gt(e.scroller,"dblclick",a&&s<11?oo(t,(function(e){if(!bt(t,e)){var n=dr(t,e);if(n&&!Ta(t,e)&&!An(t.display,e)){xt(e);var r=t.findWordAt(n);ti(t.doc,r.anchor,r.head)}}})):function(e){return bt(t,e)||xt(e)}),gt(e.scroller,"contextmenu",(function(e){return Ca(t,e)})),gt(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||Ca(t,n)}));var n,r={end:0};function o(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function i(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function l(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}gt(e.scroller,"touchstart",(function(o){if(!bt(t,o)&&!i(o)&&!Ta(t,o)){e.input.ensurePolled(),clearTimeout(n);var a=+new Date;e.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==o.touches.length&&(e.activeTouch.left=o.touches[0].pageX,e.activeTouch.top=o.touches[0].pageY)}})),gt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),gt(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!An(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var i,a=t.coordsChar(e.activeTouch,"page");i=!r.prev||l(r,r.prev)?new ko(a,a):!r.prev.prev||l(r,r.prev.prev)?t.findWordAt(a):new ko(oe(a.line,0),pe(t.doc,oe(a.line+1,0))),t.setSelection(i.anchor,i.head),t.focus(),xt(n)}o()})),gt(e.scroller,"touchcancel",o),gt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Fr(t,e.scroller.scrollTop),Hr(t,e.scroller.scrollLeft,!0),yt(t,"scroll",t))})),gt(e.scroller,"mousewheel",(function(e){return Oo(t,e)})),gt(e.scroller,"DOMMouseScroll",(function(e){return Oo(t,e)})),gt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){bt(t,e)||At(e)},over:function(e){bt(t,e)||(function(t,e){var n=dr(t,e);if(n){var r=document.createDocumentFragment();Er(t,n,r),t.display.dragCursor||(t.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),k(t.display.dragCursor,r)}}(t,e),At(e))},start:function(e){return function(t,e){if(a&&(!t.state.draggingText||+new Date-Mi<100))At(e);else if(!bt(t,e)&&!An(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d)){var n=P("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(t,e)},drop:oo(t,Bi),leave:function(e){bt(t,e)||Fi(t)}};var c=e.input.getField();gt(c,"keyup",(function(e){return ma.call(t,e)})),gt(c,"keydown",oo(t,ga)),gt(c,"keypress",oo(t,va)),gt(c,"focus",(function(e){return Sr(t,e)})),gt(c,"blur",(function(e){return kr(t,e)}))}(this),Vi(),Xr(this),this.curOp.forceUpdate=!0,Ho(this,r),e.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Sr(n)}),20):kr(this),ka)ka.hasOwnProperty(c)&&ka[c](this,e[c],Oa);yo(this),e.finishInit&&e.finishInit(this);for(var u=0;u<La.length;++u)La[u](this);Qr(this),l&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(i.lineDiv).textRendering&&(i.lineDiv.style.textRendering="auto")}Na.defaults=Sa,Na.optionHandlers=ka;var La=[];function Da(t,e,n,r){var o,i=t.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=ve(t,e).state:n="prev");var a=t.options.tabSize,s=Xt(i,e),l=H(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=i.mode.indent(o,s.text.slice(u.length),s.text))==G||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>i.first?H(Xt(i,e-1).text,null,a):0:"add"==n?c=l+t.options.indentUnit:"subtract"==n?c=l-t.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var p="",f=0;if(t.options.indentWithTabs)for(var d=Math.floor(c/a);d;--d)f+=a,p+="\t";if(f<c&&(p+=Q(c-f)),p!=u)return _i(i,p,oe(e,0),oe(e,u.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<i.sel.ranges.length;h++){var g=i.sel.ranges[h];if(g.head.line==e&&g.head.ch<u.length){var m=oe(e,u.length);ni(i,h,new ko(m,m));break}}}Na.defineInitHook=function(t){return La.push(t)};var Ia=null;function Ra(t){Ia=t}function Ma(t,e,n,r,o){var i=t.doc;t.display.shift=!1,r||(r=i.sel);var a=+new Date-200,s="paste"==o||t.state.pasteIncoming>a,l=It(e),c=null;if(s&&r.ranges.length>1)if(Ia&&Ia.text.join("\n")==e){if(r.ranges.length%Ia.text.length==0){c=[];for(var u=0;u<Ia.text.length;u++)c.push(i.splitLines(Ia.text[u]))}}else l.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(c=J(l,(function(t){return[t]})));for(var p=t.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var d=r.ranges[f],h=d.from(),g=d.to();d.empty()&&(n&&n>0?h=oe(h.line,h.ch-n):t.state.overwrite&&!s?g=oe(g.line,Math.min(Xt(i,g.line).text.length,g.ch+Z(l).length)):s&&Ia&&Ia.lineWise&&Ia.text.join("\n")==l.join("\n")&&(h=g=oe(h.line,0)));var m={from:h,to:g,text:c?c[f%c.length]:l,origin:o||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};gi(t.doc,m),fn(t,"inputRead",t,m)}e&&!s&&Fa(t,e),Ir(t),t.curOp.updateInput<2&&(t.curOp.updateInput=p),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ba(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||!e.hasFocus()||ro(e,(function(){return Ma(e,n,0,null,"paste")})),!0}function Fa(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=t.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s<i.electricChars.length;s++)if(e.indexOf(i.electricChars.charAt(s))>-1){a=Da(t,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Xt(t.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Da(t,o.head.line,"smart"));a&&fn(t,"electricInput",t,o.head.line)}}}function Ua(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var o=t.doc.sel.ranges[r].head.line,i={anchor:oe(o,0),head:oe(o+1,0)};n.push(i),e.push(t.getRange(i.anchor,i.head))}return{text:e,ranges:n}}function Ha(t,e,n,r){t.setAttribute("autocorrect",n?"on":"off"),t.setAttribute("autocapitalize",r?"on":"off"),t.setAttribute("spellcheck",!!e)}function Va(){var t=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),e=P("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),m&&(t.style.border="1px solid black"),e}function qa(t,e,n,r,o){var i=e,a=n,s=Xt(t,e.line),l=o&&"rtl"==t.direction?-n:n;function c(i){var a,c;if("codepoint"==r){var u=s.text.charCodeAt(e.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var p=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new oe(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(p?2:1))),-n)}}else a=o?function(t,e,n,r){var o=dt(e,t.doc.direction);if(!o)return oa(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=pt(o,n.ch,n.sticky),a=o[i];if("ltr"==t.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return oa(e,n,r);var s,l=function(t,n){return ra(e,t instanceof oe?t.ch:t,n)},c=function(n){return t.options.lineWrapping?(s=s||Rn(t,e),nr(t,e,s,n)):{begin:0,end:e.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==a.level){var p=1==a.level==r<0,f=l(n,p?1:-1);if(null!=f&&(p?f<=a.to&&f<=u.end:f>=a.from&&f>=u.begin)){var d=p?"before":"after";return new oe(n.line,f,d)}}var h=function(t,e,r){for(var i=function(t,e){return e?new oe(n.line,l(t,1),"before"):new oe(n.line,t,"after")};t>=0&&t<o.length;t+=e){var a=o[t],s=e>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return i(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return i(c,s)}},g=h(i+r,r,u);if(g)return g;var m=r>0?u.end:l(u.begin,-1);return null==m||r>0&&m==e.text.length||!(g=h(r>0?0:o.length-1,r,c(m)))?null:g}(t.cm,s,e,n):oa(s,e,n);if(null==a){if(i||((c=e.line+l)<t.first||c>=t.first+t.size||(e=new oe(c,e.ch,e.sticky),!(s=Xt(t,c)))))return!1;e=ia(o,t.cm,s,e.line,l)}else e=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,p="group"==r,f=t.cm&&t.cm.getHelper(e,"wordChars"),d=!0;!(n<0)||c(!d);d=!1){var h=s.text.charAt(e.ch)||"\n",g=ot(h,f)?"w":p&&"\n"==h?"n":!p||/\s/.test(h)?null:"p";if(!p||d||g||(g="s"),u&&u!=g){n<0&&(n=1,c(),e.sticky="after");break}if(g&&(u=g),n>0&&!c(!d))break}var m=pi(t,e,i,a,!0);return ae(i,m)&&(m.hitSide=!0),m}function za(t,e,n,r){var o,i,a=t.doc,s=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,B(t).innerHeight||a(t).documentElement.clientHeight),c=Math.max(l-.5*sr(t.display),3);o=(n>0?e.bottom:e.top)+n*c}else"line"==r&&(o=n>0?e.bottom+3:e.top-3);for(;(i=tr(t,s,o)).outside;){if(n<0?o<=0:o>=a.height){i.hitSide=!0;break}o+=5*n}return i}var Ga=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Wa(t,e){var n=In(t,e.line);if(!n||n.hidden)return null;var r=Xt(t.doc,e.line),o=Ln(n,r,e.line),i=dt(r,t.doc.direction),a="left";i&&(a=pt(i,e.ch)%2?"right":"left");var s=Un(o.map,e.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ya(t,e){return e&&(t.bad=!0),t}function Ka(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return Ya(t.clipPos(oe(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var o=0;o<t.display.view.length;o++){var i=t.display.view[o];if(i.node==r)return $a(i,e,n)}}function $a(t,e,n){var r=t.text.firstChild,o=!1;if(!e||!N(r,e))return Ya(oe(te(t.line),0),!0);if(e==r&&(o=!0,e=r.childNodes[n],n=0,!e)){var i=t.rest?Z(t.rest):t.line;return Ya(oe(te(i),i.text.length),o)}var a=3==e.nodeType?e:null,s=e;for(a||1!=e.childNodes.length||3!=e.firstChild.nodeType||(a=e.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=t.measure,c=l.maps;function u(e,n,r){for(var o=-1;o<(c?c.length:0);o++)for(var i=o<0?l.map:c[o],a=0;a<i.length;a+=3){var s=i[a+2];if(s==e||s==n){var u=te(o<0?t.line:t.rest[o]),p=i[a]+r;return(r<0||s!=e)&&(p=i[a+(r?1:0)]),oe(u,p)}}}var p=u(a,s,n);if(p)return Ya(p,o);for(var f=s.nextSibling,d=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(p=u(f,f.firstChild,0))return Ya(oe(p.line,p.ch-d),o);d+=f.textContent.length}for(var h=s.previousSibling,g=n;h;h=h.previousSibling){if(p=u(h,h.firstChild,-1))return Ya(oe(p.line,p.ch+g),o);g+=h.textContent.length}}Ga.prototype.init=function(t){var e=this,n=this,r=n.cm,o=n.div=t.lineDiv;function i(t){for(var e=t.target;e;e=e.parentNode){if(e==o)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function a(t){if(i(t)&&!bt(r,t)){if(r.somethingSelected())Ra({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=Ua(r);Ra({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation((function(){r.setSelections(e.ranges,0,W),r.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var a=Ia.text.join("\n");if(t.clipboardData.setData("Text",a),t.clipboardData.getData("Text")==a)return void t.preventDefault()}var s=Va(),l=s.firstChild;Ha(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Ia.text.join("\n");var c=L(o.ownerDocument);R(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==o&&n.showPrimarySelection()}),50)}}o.contentEditable=!0,Ha(o,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),gt(o,"paste",(function(t){!i(t)||bt(r,t)||Ba(t,r)||s<=11&&setTimeout(oo(r,(function(){return e.updateFromDOM()})),20)})),gt(o,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),gt(o,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),gt(o,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),gt(o,"touchstart",(function(){return n.forceCompositionEnd()})),gt(o,"input",(function(){e.composing||e.readFromDOMSoon()})),gt(o,"copy",a),gt(o,"cut",a)},Ga.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Ga.prototype.prepareSelection=function(){var t=wr(this.cm,!1);return t.focus=L(this.div.ownerDocument)==this.div,t},Ga.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Ga.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ga.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),o=r.from(),i=r.to();if(e.display.viewTo==e.display.viewFrom||o.line>=e.display.viewTo||i.line<e.display.viewFrom)t.removeAllRanges();else{var a=Ka(e,t.anchorNode,t.anchorOffset),s=Ka(e,t.focusNode,t.focusOffset);if(!a||a.bad||!s||s.bad||0!=ie(ce(a,s),o)||0!=ie(le(a,s),i)){var l=e.display.view,c=o.line>=e.display.viewFrom&&Wa(e,o)||{node:l[0].measure.map[2],offset:0},u=i.line<e.display.viewTo&&Wa(e,i);if(!u){var p=l[l.length-1].measure,f=p.maps?p.maps[p.maps.length-1]:p.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&u){var d,h=t.rangeCount&&t.getRangeAt(0);try{d=A(c.node,c.offset,u.offset,u.node)}catch(t){}d&&(!n&&e.state.focused?(t.collapse(c.node,c.offset),d.collapsed||(t.removeAllRanges(),t.addRange(d))):(t.removeAllRanges(),t.addRange(d)),h&&null==t.anchorNode?t.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Ga.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Ga.prototype.showMultipleSelections=function(t){k(this.cm.display.cursorDiv,t.cursors),k(this.cm.display.selectionDiv,t.selection)},Ga.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Ga.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return N(this.div,e)},Ga.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&L(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ga.prototype.blur=function(){this.div.blur()},Ga.prototype.getField=function(){return this.div},Ga.prototype.supportsTouch=function(){return!0},Ga.prototype.receivedFocus=function(){var t=this,e=this;this.selectionInEditor()?setTimeout((function(){return t.pollSelection()}),20):ro(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},Ga.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Ga.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&function(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ka(e,t.anchorNode,t.anchorOffset),r=Ka(e,t.focusNode,t.focusOffset);n&&r&&ro(e,(function(){ii(e.doc,jo(n,r),W),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)}))}}},Ga.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,o=r.display,i=r.doc.sel.primary(),a=i.from(),s=i.to();if(0==a.ch&&a.line>r.firstLine()&&(a=oe(a.line-1,Xt(r.doc,a.line-1).length)),s.ch==Xt(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=oe(s.line+1,0)),a.line<o.viewFrom||s.line>o.viewTo-1)return!1;a.line==o.viewFrom||0==(t=hr(r,a.line))?(e=te(o.view[0].line),n=o.view[0].node):(e=te(o.view[t].line),n=o.view[t-1].node.nextSibling);var l,c,u=hr(r,s.line);if(u==o.view.length-1?(l=o.viewTo-1,c=o.lineDiv.lastChild):(l=te(o.view[u+1].line)-1,c=o.view[u+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(function(t,e,n,r,o){var i="",a=!1,s=t.doc.lineSeparator(),l=!1;function c(){a&&(i+=s,l&&(i+=s),a=l=!1)}function u(t){t&&(c(),i+=t)}function p(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void u(n);var i,f=e.getAttribute("cm-marker");if(f){var d=t.findMarks(oe(r,0),oe(o+1,0),(m=+f,function(t){return t.id==m}));return void(d.length&&(i=d[0].find(0))&&u(Qt(t.doc,i.from,i.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;h&&c();for(var g=0;g<e.childNodes.length;g++)p(e.childNodes[g]);/^(pre|p)$/i.test(e.nodeName)&&(l=!0),h&&(a=!0)}else 3==e.nodeType&&u(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var m}for(;p(e),e!=n;)e=e.nextSibling,l=!1;return i}(r,n,c,e,l)),f=Qt(r.doc,oe(e,0),oe(l,Xt(r.doc,l).text.length));p.length>1&&f.length>1;)if(Z(p)==Z(f))p.pop(),f.pop(),l--;else{if(p[0]!=f[0])break;p.shift(),f.shift(),e++}for(var d=0,h=0,g=p[0],m=f[0],v=Math.min(g.length,m.length);d<v&&g.charCodeAt(d)==m.charCodeAt(d);)++d;for(var y=Z(p),b=Z(f),_=Math.min(y.length-(1==p.length?d:0),b.length-(1==f.length?d:0));h<_&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==p.length&&1==f.length&&e==a.line)for(;d&&d>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;p[p.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(d).replace(/\u200b+$/,"");var w=oe(e,d),E=oe(l,f.length?Z(f).length-h:0);return p.length>1||p[0]||ie(w,E)?(_i(r.doc,p,w,E,"+input"),!0):void 0},Ga.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ga.prototype.reset=function(){this.forceCompositionEnd()},Ga.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ga.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Ga.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||ro(this.cm,(function(){return gr(t.cm)}))},Ga.prototype.setUneditable=function(t){t.contentEditable="false"},Ga.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||oo(this.cm,Ma)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Ga.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Ga.prototype.onContextMenu=function(){},Ga.prototype.resetPosition=function(){},Ga.prototype.needsContentAttribute=!0;var Xa=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null,this.resetting=!1};Xa.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var o=this.textarea;function i(t){if(!bt(r,t)){if(r.somethingSelected())Ra({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Ua(r);Ra({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,W):(n.prevInput="",o.value=e.text.join("\n"),R(o))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),m&&(o.style.width="0px"),gt(o,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),gt(o,"paste",(function(t){bt(r,t)||Ba(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),gt(o,"cut",i),gt(o,"copy",i),gt(t.scroller,"paste",(function(e){if(!An(t,e)&&!bt(r,e)){if(!o.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=e.clipboardData,o.dispatchEvent(i)}})),gt(t.lineSpace,"selectstart",(function(e){An(t,e)||xt(e)})),gt(o,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),gt(o,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Xa.prototype.createField=function(t){this.wrapper=Va(),this.textarea=this.wrapper.firstChild;var e=this.cm.options;Ha(this.textarea,e.spellcheck,e.autocorrect,e.autocapitalize)},Xa.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Xa.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=wr(t);if(t.options.moveInputWithCursor){var o=Qn(t,n.sel.primary().head,"div"),i=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},Xa.prototype.showSelection=function(t){var e=this.cm.display;k(e.cursorDiv,t.cursors),k(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Xa.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var e=this.cm;if(this.resetting=!0,e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&R(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Xa.prototype.getField=function(){return this.textarea},Xa.prototype.supportsTouch=function(){return!1},Xa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||L(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(t){}},Xa.prototype.blur=function(){this.textarea.blur()},Xa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Xa.prototype.receivedFocus=function(){this.slowPoll()},Xa.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Xa.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},Xa.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!e.state.focused||Rt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var o=n.value;if(o==r&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===o||b&&/[\uf700-\uf7ff]/.test(o))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r=""),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,o.length);l<c&&r.charCodeAt(l)==o.charCodeAt(l);)++l;return ro(e,(function(){Ma(e,o.slice(l),r.length-l,null,t.composing?"*compose":null),o.length>1e3||o.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=o,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Xa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Xa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Xa.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,o=e.textarea;e.contextMenuPending&&e.contextMenuPending();var i=dr(n,t),c=r.scroller.scrollTop;if(i&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&oo(n,ii)(n.doc,jo(i),W);var u,p=o.style.cssText,d=e.wrapper.style.cssText,h=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-h.top-5)+"px; left: "+(t.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=o.ownerDocument.defaultView.scrollY),r.input.focus(),l&&o.ownerDocument.defaultView.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(o.value=e.prevInput=" "),e.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&m(),T){At(t);var g=function(){vt(window,"mouseup",g),setTimeout(v,20)};gt(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=o.selectionStart){var t=n.somethingSelected(),i=""+(t?o.value:"");o.value="⇚",o.value=i,e.prevInput=t?"":"",o.selectionStart=1,o.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function v(){if(e.contextMenuPending==v&&(e.contextMenuPending=!1,e.wrapper.style.cssText=d,o.style.cssText=p,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=o.selectionStart)){(!a||a&&s<9)&&m();var t=0,i=function(){r.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&""==e.prevInput?oo(n,di)(n):t++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},Xa.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},Xa.prototype.setUneditable=function(){},Xa.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,o,i){t.defaults[n]=r,o&&(e[n]=i?function(t,e,n){n!=Oa&&o(t,e,n)}:o)}t.defineOption=n,t.Init=Oa,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Ro(t)}),!0),n("indentUnit",2,Ro,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Mo(t),zn(t),gr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var o=0;;){var i=t.text.indexOf(e,o);if(-1==i)break;o=i+e.length,n.push(oe(r,i))}r++}));for(var o=n.length-1;o>=0;o--)_i(t.doc,e,n[o],oe(n[o].line,n[o].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Oa&&t.refresh()})),n("specialCharPlaceholder",nn,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){Aa(t),wo(t)}),!0),n("keyMap","default",(function(t,e,n){var r=ea(e),o=n!=Oa&&ea(n);o&&o.detach&&o.detach(t,r),r.attach&&r.attach(t,o||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,ja,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=bo(e,t.options.lineNumbers),wo(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?ur(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Gr(t)}),!0),n("scrollbarStyle","native",(function(t){Kr(t),Gr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=bo(t.options.gutters,e),wo(t)}),!0),n("firstLineNumber",1,wo,!0),n("lineNumberFormatter",(function(t){return t}),wo,!0),n("showCursorWhenSelecting",!1,_r,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(kr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Pa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,_r,!0),n("singleCursorHeightPerLine",!0,_r,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Mo,!0),n("addModeClass",!1,Mo,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Mo,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(Na),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){B(this).focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,o=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&oo(this,e[t])(this,n,o),yt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](ea(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:io((function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");(function(t,e,n){for(var r=0,o=n(e);r<t.length&&n(t[r])<=o;)r++;t.splice(r,0,e)})(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,gr(this)})),removeOverlay:io((function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var r=e[n].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(n,1),this.state.modeGen++,void gr(this)}})),indentLine:io((function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),ne(this.doc,t)&&Da(this,t,e,n)})),indentSelection:io((function(t){for(var e=this.doc.sel.ranges,n=-1,r=0;r<e.length;r++){var o=e[r];if(o.empty())o.head.line>n&&(Da(this,o.head.line,t,!0),n=o.head.line,r==this.doc.sel.primIndex&&Ir(this));else{var i=o.from(),a=o.to(),s=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Da(this,l,t);var c=this.doc.sel.ranges;0==i.ch&&e.length==c.length&&c[r].from().ch>0&&ni(this.doc,r,new ko(i,c[r].to()),W)}}})),getTokenAt:function(t,e){return Ee(this,t,e)},getLineTokens:function(t,e){return Ee(this,oe(t),e,!0)},getTokenTypeAt:function(t){t=pe(this.doc,t);var e,n=me(this,Xt(this.doc,t.line)),r=0,o=(n.length-1)/2,i=t.ch;if(0==i)e=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]<i)){e=n[2*a+2];break}r=a+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!n.hasOwnProperty(e))return r;var o=n[e],i=this.getModeAt(t);if("string"==typeof i[e])o[i[e]]&&r.push(o[i[e]]);else if(i[e])for(var a=0;a<i[e].length;a++){var s=o[i[e][a]];s&&r.push(s)}else i.helperType&&o[i.helperType]?r.push(o[i.helperType]):o[i.name]&&r.push(o[i.name]);for(var l=0;l<o._global.length;l++){var c=o._global[l];c.pred(i,this)&&-1==q(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(t,e){var n=this.doc;return ve(this,(t=ue(n,null==t?n.first+n.size-1:t))+1,e).state},cursorCoords:function(t,e){var n=this.doc.sel.primary();return Qn(this,null==t?n.head:"object"==typeof t?pe(this.doc,t):t?n.from():n.to(),e||"page")},charCoords:function(t,e){return Xn(this,pe(this.doc,t),e||"page")},coordsChar:function(t,e){return tr(this,(t=$n(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=$n(this,{top:t,left:0},e||"page").top,ee(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,o=!1;if("number"==typeof t){var i=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>i&&(t=i,o=!0),r=Xt(this.doc,t)}else r=t;return Kn(this,r,{top:0,left:0},e||"page",n||o).top+(o?this.doc.height-Ye(r):0)},defaultTextHeight:function(){return sr(this.display)},defaultCharWidth:function(){return lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,o){var i,a,s,l=this.display,c=(t=Qn(this,pe(this.doc,t))).bottom,u=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==r)c=t.top;else if("above"==r||"near"==r){var p=Math.max(l.wrapper.clientHeight,this.doc.height),f=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>p)&&t.top>e.offsetHeight?c=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=p&&(c=t.bottom),u+e.offsetWidth>f&&(u=f-e.offsetWidth)}e.style.top=c+"px",e.style.left=e.style.right="","right"==o?(u=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==o?u=0:"middle"==o&&(u=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=u+"px"),n&&(i=this,a={left:u,top:c,right:u+e.offsetWidth,bottom:c+e.offsetHeight},null!=(s=Lr(i,a)).scrollTop&&Fr(i,s.scrollTop),null!=s.scrollLeft&&Hr(i,s.scrollLeft))},triggerOnKeyDown:io(ga),triggerOnKeyPress:io(va),triggerOnKeyUp:ma,triggerOnMouseDown:io(wa),execCommand:function(t){if(aa.hasOwnProperty(t))return aa[t].call(null,this)},triggerElectric:io((function(t){Fa(this,t)})),findPosH:function(t,e,n,r){var o=1;e<0&&(o=-1,e=-e);for(var i=pe(this.doc,t),a=0;a<e&&!(i=qa(this.doc,i,o,n,r)).hitSide;++a);return i},moveH:io((function(t,e){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?qa(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()}),K)})),deleteH:io((function(t,e){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):na(this,(function(n){var o=qa(r,n.head,t,e,!1);return t<0?{from:o,to:n.head}:{from:n.head,to:o}}))})),findPosV:function(t,e,n,r){var o=1,i=r;e<0&&(o=-1,e=-e);for(var a=pe(this.doc,t),s=0;s<e;++s){var l=Qn(this,a,"div");if(null==i?i=l.left:l.left=i,(a=za(this,l,o,n)).hitSide)break}return a},moveV:io((function(t,e){var n=this,r=this.doc,o=[],i=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(i)return t<0?a.from():a.to();var s=Qn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),o.push(s.left);var l=za(n,s,t,e);return"page"==e&&a==r.sel.primary()&&Dr(n,Xn(n,l,"div").top-s.top),l}),K),o.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=o[a]})),findWordAt:function(t){var e=Xt(this.doc,t.line).text,n=t.ch,r=t.ch;if(e){var o=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=e.length||!n?++r:--n;for(var i=e.charAt(n),a=ot(i,o)?function(t){return ot(t,o)}:/\s/.test(i)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!ot(t)};n>0&&a(e.charAt(n-1));)--n;for(;r<e.length&&a(e.charAt(r));)++r}return new ko(oe(t.line,n),oe(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?D(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),yt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L(M(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:io((function(t,e){Rr(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Pn(this)-this.display.barHeight,width:t.scrollWidth-Pn(this)-this.display.barWidth,clientHeight:Nn(this),clientWidth:jn(this)}},scrollIntoView:io((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:oe(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?function(t,e){Mr(t),t.curOp.scrollToPos=e}(this,t):Br(this,t.from,t.to,t.margin)})),setSize:io((function(t,e){var n=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&qn(this);var o=this.display.viewFrom;this.doc.iter(o,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){mr(n,o,"widget");break}++o})),this.curOp.forceUpdate=!0,yt(this,"refresh",this)})),operation:function(t){return ro(this,t)},startOperation:function(){return Xr(this)},endOperation:function(){return Qr(this)},refresh:io((function(){var t=this.display.cachedTextHeight;gr(this),this.curOp.forceUpdate=!0,zn(this),Rr(this,this.doc.scrollLeft,this.doc.scrollTop),go(this.display),(null==t||Math.abs(t-sr(this.display))>.5||this.options.lineWrapping)&&fr(this),yt(this,"refresh",this)})),swapDoc:io((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Ho(this,t),zn(this),this.display.input.reset(),Rr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,fn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Et(t),t.registerHelper=function(e,r,o){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=o},t.registerGlobalHelper=function(e,r,o,i){t.registerHelper(e,r,i),n[e]._global.push({pred:o,val:i})}}(Na);var Qa="iter insert remove copy getEditor constructor".split(" ");for(var Za in Ri.prototype)Ri.prototype.hasOwnProperty(Za)&&q(Qa,Za)<0&&(Na.prototype[Za]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ri.prototype[Za]));return Et(Ri),Na.inputStyles={textarea:Xa,contenteditable:Ga},Na.defineMode=function(t){Na.defaults.mode||"null"==t||(Na.defaults.mode=t),Ht.apply(this,arguments)},Na.defineMIME=function(t,e){Ut[t]=e},Na.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Na.defineMIME("text/plain","null"),Na.defineExtension=function(t,e){Na.prototype[t]=e},Na.defineDocExtension=function(t,e){Ri.prototype[t]=e},Na.fromTextArea=function(t,e){if((e=e?U(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=L(t.ownerDocument);e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var o;if(t.form&&(gt(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var i=t.form;o=i.submit;try{var a=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=a}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(vt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=o))}},t.style.display="none";var s=Na((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s},function(t){t.off=vt,t.on=gt,t.wheelEventPixels=Ao,t.Doc=Ri,t.splitLines=It,t.countColumn=H,t.findColumn=$,t.isWordChar=rt,t.Pass=G,t.signal=yt,t.Line=Xe,t.changeEnd=No,t.scrollbarModel=Yr,t.Pos=oe,t.cmpPos=ie,t.modes=Ft,t.mimeModes=Ut,t.resolveMode=Vt,t.getMode=qt,t.modeExtensions=zt,t.extendMode=Gt,t.copyState=Wt,t.startState=Kt,t.innerMode=Yt,t.commands=aa,t.keyMap=Ki,t.keyName=ta,t.isModifierKey=Zi,t.lookupKey=Qi,t.normalizeKeyMap=Xi,t.StringStream=$t,t.SharedTextMarker=Ni,t.TextMarker=Pi,t.LineWidget=Oi,t.e_preventDefault=xt,t.e_stopPropagation=Tt,t.e_stop=At,t.addClass=D,t.contains=N,t.rmClass=O,t.keyNames=zi}(Na),Na.version="5.65.15",Na}()},629:(t,e,n)=>{!function(t){function e(t){for(var e={},n=0;n<t.length;++n)e[t[n].toLowerCase()]=!0;return e}t.defineMode("css",(function(e,n){var r=n.inline;n.propertyKeywords||(n=t.resolveMode("text/css"));var o,i,a=e.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},c=n.mediaTypes||{},u=n.mediaFeatures||{},p=n.mediaValueKeywords||{},f=n.propertyKeywords||{},d=n.nonStandardPropertyKeywords||{},h=n.fontProperties||{},g=n.counterDescriptors||{},m=n.colorKeywords||{},v=n.valueKeywords||{},y=n.allowNested,b=n.lineComment,_=!0===n.supportsAtComponent,w=!1!==e.highlightNonStandardPropertyKeywords;function E(t,e){return o=e,t}function x(t,e){var n=t.next();if(s[n]){var r=s[n](t,e);if(!1!==r)return r}return"@"==n?(t.eatWhile(/[\w\\\-]/),E("def",t.current())):"="==n||("~"==n||"|"==n)&&t.eat("=")?E(null,"compare"):'"'==n||"'"==n?(e.tokenize=T(n),e.tokenize(t,e)):"#"==n?(t.eatWhile(/[\w\\\-]/),E("atom","hash")):"!"==n?(t.match(/^\s*\w*/),E("keyword","important")):/\d/.test(n)||"."==n&&t.eat(/\d/)?(t.eatWhile(/[\w.%]/),E("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?E(null,"select-op"):"."==n&&t.match(/^-?[_a-z][_a-z0-9-]*/i)?E("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?E(null,n):t.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(t.current())&&(e.tokenize=C),E("variable callee","variable")):/[\w\\\-]/.test(n)?(t.eatWhile(/[\w\\\-]/),E("property","word")):E(null,null):/[\d.]/.test(t.peek())?(t.eatWhile(/[\w.%]/),E("number","unit")):t.match(/^-[\w\\\-]*/)?(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?E("variable-2","variable-definition"):E("variable-2","variable")):t.match(/^\w+-/)?E("meta","meta"):void 0}function T(t){return function(e,n){for(var r,o=!1;null!=(r=e.next());){if(r==t&&!o){")"==t&&e.backUp(1);break}o=!o&&"\\"==r}return(r==t||!o&&")"!=t)&&(n.tokenize=null),E("string","string")}}function C(t,e){return t.next(),t.match(/^\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=T(")"),E(null,"(")}function A(t,e,n){this.type=t,this.indent=e,this.prev=n}function O(t,e,n,r){return t.context=new A(n,e.indentation()+(!1===r?0:a),t.context),n}function S(t){return t.context.prev&&(t.context=t.context.prev),t.context.type}function k(t,e,n){return N[n.context.type](t,e,n)}function P(t,e,n,r){for(var o=r||1;o>0;o--)n.context=n.context.prev;return k(t,e,n)}function j(t){var e=t.current().toLowerCase();i=v.hasOwnProperty(e)?"atom":m.hasOwnProperty(e)?"keyword":"variable"}var N={top:function(t,e,n){if("{"==t)return O(n,e,"block");if("}"==t&&n.context.prev)return S(n);if(_&&/@component/i.test(t))return O(n,e,"atComponentBlock");if(/^@(-moz-)?document$/i.test(t))return O(n,e,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(t))return O(n,e,"atBlock");if(/^@(font-face|counter-style)/i.test(t))return n.stateArg=t,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(t))return"keyframes";if(t&&"@"==t.charAt(0))return O(n,e,"at");if("hash"==t)i="builtin";else if("word"==t)i="tag";else{if("variable-definition"==t)return"maybeprop";if("interpolation"==t)return O(n,e,"interpolation");if(":"==t)return"pseudo";if(y&&"("==t)return O(n,e,"parens")}return n.context.type},block:function(t,e,n){if("word"==t){var r=e.current().toLowerCase();return f.hasOwnProperty(r)?(i="property","maybeprop"):d.hasOwnProperty(r)?(i=w?"string-2":"property","maybeprop"):y?(i=e.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(i+=" error","maybeprop")}return"meta"==t?"block":y||"hash"!=t&&"qualifier"!=t?N.top(t,e,n):(i="error","block")},maybeprop:function(t,e,n){return":"==t?O(n,e,"prop"):k(t,e,n)},prop:function(t,e,n){if(";"==t)return S(n);if("{"==t&&y)return O(n,e,"propBlock");if("}"==t||"{"==t)return P(t,e,n);if("("==t)return O(n,e,"parens");if("hash"!=t||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e.current())){if("word"==t)j(e);else if("interpolation"==t)return O(n,e,"interpolation")}else i+=" error";return"prop"},propBlock:function(t,e,n){return"}"==t?S(n):"word"==t?(i="property","maybeprop"):n.context.type},parens:function(t,e,n){return"{"==t||"}"==t?P(t,e,n):")"==t?S(n):"("==t?O(n,e,"parens"):"interpolation"==t?O(n,e,"interpolation"):("word"==t&&j(e),"parens")},pseudo:function(t,e,n){return"meta"==t?"pseudo":"word"==t?(i="variable-3",n.context.type):k(t,e,n)},documentTypes:function(t,e,n){return"word"==t&&l.hasOwnProperty(e.current())?(i="tag",n.context.type):N.atBlock(t,e,n)},atBlock:function(t,e,n){if("("==t)return O(n,e,"atBlock_parens");if("}"==t||";"==t)return P(t,e,n);if("{"==t)return S(n)&&O(n,e,y?"block":"top");if("interpolation"==t)return O(n,e,"interpolation");if("word"==t){var r=e.current().toLowerCase();i="only"==r||"not"==r||"and"==r||"or"==r?"keyword":c.hasOwnProperty(r)?"attribute":u.hasOwnProperty(r)?"property":p.hasOwnProperty(r)?"keyword":f.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?w?"string-2":"property":v.hasOwnProperty(r)?"atom":m.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(t,e,n){return"}"==t?P(t,e,n):"{"==t?S(n)&&O(n,e,y?"block":"top",!1):("word"==t&&(i="error"),n.context.type)},atBlock_parens:function(t,e,n){return")"==t?S(n):"{"==t||"}"==t?P(t,e,n,2):N.atBlock(t,e,n)},restricted_atBlock_before:function(t,e,n){return"{"==t?O(n,e,"restricted_atBlock"):"word"==t&&"@counter-style"==n.stateArg?(i="variable","restricted_atBlock_before"):k(t,e,n)},restricted_atBlock:function(t,e,n){return"}"==t?(n.stateArg=null,S(n)):"word"==t?(i="@font-face"==n.stateArg&&!h.hasOwnProperty(e.current().toLowerCase())||"@counter-style"==n.stateArg&&!g.hasOwnProperty(e.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(t,e,n){return"word"==t?(i="variable","keyframes"):"{"==t?O(n,e,"top"):k(t,e,n)},at:function(t,e,n){return";"==t?S(n):"{"==t||"}"==t?P(t,e,n):("word"==t?i="tag":"hash"==t&&(i="builtin"),"at")},interpolation:function(t,e,n){return"}"==t?S(n):"{"==t||";"==t?P(t,e,n):("word"==t?i="variable":"variable"!=t&&"("!=t&&")"!=t&&(i="error"),"interpolation")}};return{startState:function(t){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new A(r?"block":"top",t||0,null)}},token:function(t,e){if(!e.tokenize&&t.eatSpace())return null;var n=(e.tokenize||x)(t,e);return n&&"object"==typeof n&&(o=n[1],n=n[0]),i=n,"comment"!=o&&(e.state=N[e.state](o,t,e)),i},indent:function(t,e){var n=t.context,r=e&&e.charAt(0),o=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(o=Math.max(0,n.indent-a)):o=(n=n.prev).indent),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=e(n),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=e(o),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],s=e(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],c=e(l),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=e(u),f=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],d=e(f),h=e(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),g=e(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),m=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=e(m),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=e(y),_=n.concat(o).concat(a).concat(l).concat(u).concat(f).concat(m).concat(y);function w(t,e){for(var n,r=!1;null!=(n=t.next());){if(r&&"/"==n){e.tokenize=null;break}r="*"==n}return["comment","comment"]}t.registerHelper("hintWords","css",_),t.defineMIME("text/css",{documentTypes:r,mediaTypes:i,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:d,fontProperties:h,counterDescriptors:g,colorKeywords:v,valueKeywords:b,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=w,w(t,e))}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:d,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=w,w(t,e)):["operator","operator"]},":":function(t){return!!t.match(/^\s*\{/,!1)&&[null,null]},$:function(t){return t.match(/^[\w-]+/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(t){return!!t.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:d,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=w,w(t,e)):["operator","operator"]},"@":function(t){return t.eat("{")?[null,"interpolation"]:!t.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:i,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:d,fontProperties:h,counterDescriptors:g,colorKeywords:v,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=w,w(t,e))}},name:"css",helperType:"gss"})}(n(631))},531:(t,e,n)=>{!function(t){var e={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};var n={};function r(t,e){var r=t.match(function(t){return n[t]||(n[t]=new RegExp("\\s+"+t+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(e));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function o(t,e){return new RegExp((e?"^":"")+"</\\s*"+t+"\\s*>","i")}function i(t,e){for(var n in t)for(var r=e[n]||(e[n]=[]),o=t[n],i=o.length-1;i>=0;i--)r.unshift(o[i])}t.defineMode("htmlmixed",(function(n,a){var s=t.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag,allowMissingTagName:a.allowMissingTagName}),l={},c=a&&a.tags,u=a&&a.scriptTypes;if(i(e,l),c&&i(c,l),u)for(var p=u.length-1;p>=0;p--)l.script.unshift(["type",u[p].matches,u[p].mode]);function f(e,i){var a,c=s.token(e,i.htmlState),u=/\btag\b/.test(c);if(u&&!/[<>\s\/]/.test(e.current())&&(a=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(a))i.inTag=a+" ";else if(i.inTag&&u&&/>$/.test(e.current())){var p=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var d=">"==e.current()&&function(t,e){for(var n=0;n<t.length;n++){var o=t[n];if(!o[0]||o[1].test(r(e,o[0])))return o[2]}}(l[p[1]],p[2]),h=t.getMode(n,d),g=o(p[1],!0),m=o(p[1],!1);i.token=function(t,e){return t.match(g,!1)?(e.token=f,e.localState=e.localMode=null,null):function(t,e,n){var r=t.current(),o=r.search(e);return o>-1?t.backUp(r.length-o):r.match(/<\/?$/)&&(t.backUp(r.length),t.match(e,!1)||t.match(r)),n}(t,m,e.localMode.token(t,e.localState))},i.localMode=h,i.localState=t.startState(h,s.indent(i.htmlState,"",""))}else i.inTag&&(i.inTag+=e.current(),e.eol()&&(i.inTag+=" "));return c}return{startState:function(){return{token:f,inTag:null,localMode:null,localState:null,htmlState:t.startState(s)}},copyState:function(e){var n;return e.localState&&(n=t.copyState(e.localMode,e.localState)),{token:e.token,inTag:e.inTag,localMode:e.localMode,localState:n,htmlState:t.copyState(s,e.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(e,n,r){return!e.localMode||/^\s*<\//.test(n)?s.indent(e.htmlState,n,r):e.localMode.indent?e.localMode.indent(e.localState,n,r):t.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||s}}}}),"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")}(n(631),n(589),n(876),n(629))},876:(t,e,n)=>{var r;(r=n(631)).defineMode("javascript",(function(t,e){var n,o,i=t.indentUnit,a=e.statementIndent,s=e.jsonld,l=e.json||s,c=!1!==e.trackScope,u=e.typescript,p=e.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),n=t("keyword b"),r=t("keyword c"),o=t("keyword d"),i=t("operator"),a={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:o,break:o,continue:o,new:t("new"),delete:r,void:r,throw:r,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:i,typeof:i,instanceof:i,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:t("this"),class:t("class"),super:t("atom"),yield:r,export:t("export"),import:t("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(t,e,r){return n=t,o=r,e}function m(t,e){var n,r=t.next();if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){var r,o=!1;if(s&&"@"==t.peek()&&t.match(h))return e.tokenize=m,g("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=n||o);)o=!o&&"\\"==r;return o||(e.tokenize=m),g("string","string")}),e.tokenize(t,e);if("."==r&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g("number","number");if("."==r&&t.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return g(r);if("="==r&&t.eat(">"))return g("=>","operator");if("0"==r&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g("number","number");if(/\d/.test(r))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g("number","number");if("/"==r)return t.eat("*")?(e.tokenize=v,v(t,e)):t.eat("/")?(t.skipToEnd(),g("comment","comment")):te(t,e,1)?(function(t){for(var e,n=!1,r=!1;null!=(e=t.next());){if(!n){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}n=!n&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(t.eat("="),g("operator","operator",t.current()));if("`"==r)return e.tokenize=y,y(t,e);if("#"==r&&"!"==t.peek())return t.skipToEnd(),g("meta","meta");if("#"==r&&t.eatWhile(p))return g("variable","property");if("<"==r&&t.match("!--")||"-"==r&&t.match("->")&&!/\S/.test(t.string.slice(0,t.start)))return t.skipToEnd(),g("comment","comment");if(d.test(r))return">"==r&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=r&&"="!=r||t.eat("="):/[<>*+\-|&?]/.test(r)&&(t.eat(r),">"==r&&t.eat(r))),"?"==r&&t.eat(".")?g("."):g("operator","operator",t.current());if(p.test(r)){t.eatWhile(p);var o=t.current();if("."!=e.lastType){if(f.propertyIsEnumerable(o)){var i=f[o];return g(i.type,i.style,o)}if("async"==o&&t.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",o)}return g("variable","variable",o)}}function v(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=m;break}r="*"==n}return g("comment","comment")}function y(t,e){for(var n,r=!1;null!=(n=t.next());){if(!r&&("`"==n||"$"==n&&t.eat("{"))){e.tokenize=m;break}r=!r&&"\\"==n}return g("quasi","string-2",t.current())}var b="([{}])";function _(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));r&&(n=r.index)}for(var o=0,i=!1,a=n-1;a>=0;--a){var s=t.string.charAt(a),l=b.indexOf(s);if(l>=0&&l<3){if(!o){++a;break}if(0==--o){"("==s&&(i=!0);break}}else if(l>=3&&l<6)++o;else if(p.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(t.string.charAt(a-1)==s&&"\\"!=t.string.charAt(a-2)){a--;break}}else if(i&&!o){++a;break}}i&&!o&&(e.fatArrowAt=a)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function E(t,e,n,r,o,i){this.indented=t,this.column=e,this.type=n,this.prev=o,this.info=i,null!=r&&(this.align=r)}function x(t,e){if(!c)return!1;for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0;for(var r=t.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==e)return!0}function T(t,e,n,r,o){var i=t.cc;for(C.state=t,C.stream=o,C.marked=null,C.cc=i,C.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((i.length?i.pop():l?q:H)(n,r)){for(;i.length&&i[i.length-1].lex;)i.pop()();return C.marked?C.marked:"variable"==n&&x(t,r)?"variable-2":e}}var C={state:null,column:null,marked:null,cc:null};function A(){for(var t=arguments.length-1;t>=0;t--)C.cc.push(arguments[t])}function O(){return A.apply(null,arguments),!0}function S(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function k(t){var n=C.state;if(C.marked="def",c){if(n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=P(t,n.context);if(null!=r)return void(n.context=r)}else if(!S(t,n.localVars))return void(n.localVars=new L(t,n.localVars));e.globalVars&&!S(t,n.globalVars)&&(n.globalVars=new L(t,n.globalVars))}}function P(t,e){if(e){if(e.block){var n=P(t,e.prev);return n?n==e.prev?e:new N(n,e.vars,!0):null}return S(t,e.vars)?e:new N(e.prev,new L(t,e.vars),!1)}return null}function j(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function N(t,e,n){this.prev=t,this.vars=e,this.block=n}function L(t,e){this.name=t,this.next=e}var D=new L("this",new L("arguments",null));function I(){C.state.context=new N(C.state.context,C.state.localVars,!1),C.state.localVars=D}function R(){C.state.context=new N(C.state.context,C.state.localVars,!0),C.state.localVars=null}function M(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function B(t,e){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)r=o.indented;n.lexical=new E(r,C.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function F(){var t=C.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function U(t){return function e(n){return n==t?O():";"==t||"}"==n||")"==n||"]"==n?A():O(e)}}function H(t,e){return"var"==t?O(B("vardef",e),Ct,U(";"),F):"keyword a"==t?O(B("form"),G,H,F):"keyword b"==t?O(B("form"),H,F):"keyword d"==t?C.stream.match(/^\s*$/,!1)?O():O(B("stat"),Y,U(";"),F):"debugger"==t?O(U(";")):"{"==t?O(B("}"),R,ct,F,M):";"==t?O():"if"==t?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==F&&C.state.cc.pop()(),O(B("form"),G,H,F,jt)):"function"==t?O(It):"for"==t?O(B("form"),R,Nt,H,M,F):"class"==t||u&&"interface"==e?(C.marked="keyword",O(B("form","class"==t?t:e),Ut,F)):"variable"==t?u&&"declare"==e?(C.marked="keyword",O(H)):u&&("module"==e||"enum"==e||"type"==e)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==e?O(Zt):"type"==e?O(Mt,U("operator"),ht,U(";")):O(B("form"),At,U("{"),B("}"),ct,F,F)):u&&"namespace"==e?(C.marked="keyword",O(B("form"),q,H,F)):u&&"abstract"==e?(C.marked="keyword",O(H)):O(B("stat"),nt):"switch"==t?O(B("form"),G,U("{"),B("}","switch"),R,ct,F,F,M):"case"==t?O(q,U(":")):"default"==t?O(U(":")):"catch"==t?O(B("form"),I,V,H,F,M):"export"==t?O(B("stat"),zt,F):"import"==t?O(B("stat"),Wt,F):"async"==t?O(H):"@"==e?O(q,H):A(B("stat"),q,U(";"),F)}function V(t){if("("==t)return O(Bt,U(")"))}function q(t,e){return W(t,e,!1)}function z(t,e){return W(t,e,!0)}function G(t){return"("!=t?A():O(B(")"),Y,U(")"),F)}function W(t,e,n){if(C.state.fatArrowAt==C.stream.start){var r=n?J:Z;if("("==t)return O(I,B(")"),st(Bt,")"),F,U("=>"),r,M);if("variable"==t)return A(I,At,U("=>"),r,M)}var o=n?$:K;return w.hasOwnProperty(t)?O(o):"function"==t?O(It,o):"class"==t||u&&"interface"==e?(C.marked="keyword",O(B("form"),Ft,F)):"keyword c"==t||"async"==t?O(n?z:q):"("==t?O(B(")"),Y,U(")"),F,o):"operator"==t||"spread"==t?O(n?z:q):"["==t?O(B("]"),Qt,F,o):"{"==t?lt(ot,"}",null,o):"quasi"==t?A(X,o):"new"==t?O(function(t){return function(e){return"."==e?O(t?et:tt):"variable"==e&&u?O(Et,t?$:K):A(t?z:q)}}(n)):O()}function Y(t){return t.match(/[;\}\)\],]/)?A():A(q)}function K(t,e){return","==t?O(Y):$(t,e,!1)}function $(t,e,n){var r=0==n?K:$,o=0==n?q:z;return"=>"==t?O(I,n?J:Z,M):"operator"==t?/\+\+|--/.test(e)||u&&"!"==e?O(r):u&&"<"==e&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(B(">"),st(ht,">"),F,r):"?"==e?O(q,U(":"),o):O(o):"quasi"==t?A(X,r):";"!=t?"("==t?lt(z,")","call",r):"."==t?O(rt,r):"["==t?O(B("]"),Y,U("]"),F,r):u&&"as"==e?(C.marked="keyword",O(ht,r)):"regexp"==t?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),O(o)):void 0:void 0}function X(t,e){return"quasi"!=t?A():"${"!=e.slice(e.length-2)?O(X):O(Y,Q)}function Q(t){if("}"==t)return C.marked="string-2",C.state.tokenize=y,O(X)}function Z(t){return _(C.stream,C.state),A("{"==t?H:q)}function J(t){return _(C.stream,C.state),A("{"==t?H:z)}function tt(t,e){if("target"==e)return C.marked="keyword",O(K)}function et(t,e){if("target"==e)return C.marked="keyword",O($)}function nt(t){return":"==t?O(F,H):A(K,U(";"),F)}function rt(t){if("variable"==t)return C.marked="property",O()}function ot(t,e){return"async"==t?(C.marked="property",O(ot)):"variable"==t||"keyword"==C.style?(C.marked="property","get"==e||"set"==e?O(it):(u&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),O(at))):"number"==t||"string"==t?(C.marked=s?"property":C.style+" property",O(at)):"jsonld-keyword"==t?O(at):u&&j(e)?(C.marked="keyword",O(ot)):"["==t?O(q,ut,U("]"),at):"spread"==t?O(z,at):"*"==e?(C.marked="keyword",O(ot)):":"==t?A(at):void 0;var n}function it(t){return"variable"!=t?A(at):(C.marked="property",O(It))}function at(t){return":"==t?O(z):"("==t?A(It):void 0}function st(t,e,n){function r(o,i){if(n?n.indexOf(o)>-1:","==o){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==e||r==e?A():A(t)}),r)}return o==e||i==e?O():n&&n.indexOf(";")>-1?A(t):O(U(e))}return function(n,o){return n==e||o==e?O():A(t,r)}}function lt(t,e,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return O(B(e,n),st(t,e),F)}function ct(t){return"}"==t?O():A(H,ct)}function ut(t,e){if(u){if(":"==t)return O(ht);if("?"==e)return O(ut)}}function pt(t,e){if(u&&(":"==t||"in"==e))return O(ht)}function ft(t){if(u&&":"==t)return C.stream.match(/^\s*\w+\s+is\b/,!1)?O(q,dt,ht):O(ht)}function dt(t,e){if("is"==e)return C.marked="keyword",O()}function ht(t,e){return"keyof"==e||"typeof"==e||"infer"==e||"readonly"==e?(C.marked="keyword",O("typeof"==e?z:ht)):"variable"==t||"void"==e?(C.marked="type",O(wt)):"|"==e||"&"==e?O(ht):"string"==t||"number"==t||"atom"==t?O(wt):"["==t?O(B("]"),st(ht,"]",","),F,wt):"{"==t?O(B("}"),mt,F,wt):"("==t?O(st(_t,")"),gt,wt):"<"==t?O(st(ht,">"),ht):"quasi"==t?A(yt,wt):void 0}function gt(t){if("=>"==t)return O(ht)}function mt(t){return t.match(/[\}\)\]]/)?O():","==t||";"==t?O(mt):A(vt,mt)}function vt(t,e){return"variable"==t||"keyword"==C.style?(C.marked="property",O(vt)):"?"==e||"number"==t||"string"==t?O(vt):":"==t?O(ht):"["==t?O(U("variable"),pt,U("]"),vt):"("==t?A(Rt,vt):t.match(/[;\}\)\],]/)?void 0:O()}function yt(t,e){return"quasi"!=t?A():"${"!=e.slice(e.length-2)?O(yt):O(ht,bt)}function bt(t){if("}"==t)return C.marked="string-2",C.state.tokenize=y,O(yt)}function _t(t,e){return"variable"==t&&C.stream.match(/^\s*[?:]/,!1)||"?"==e?O(_t):":"==t?O(ht):"spread"==t?O(_t):A(ht)}function wt(t,e){return"<"==e?O(B(">"),st(ht,">"),F,wt):"|"==e||"."==t||"&"==e?O(ht):"["==t?O(ht,U("]"),wt):"extends"==e||"implements"==e?(C.marked="keyword",O(ht)):"?"==e?O(ht,U(":"),ht):void 0}function Et(t,e){if("<"==e)return O(B(">"),st(ht,">"),F,wt)}function xt(){return A(ht,Tt)}function Tt(t,e){if("="==e)return O(ht)}function Ct(t,e){return"enum"==e?(C.marked="keyword",O(Zt)):A(At,ut,kt,Pt)}function At(t,e){return u&&j(e)?(C.marked="keyword",O(At)):"variable"==t?(k(e),O()):"spread"==t?O(At):"["==t?lt(St,"]"):"{"==t?lt(Ot,"}"):void 0}function Ot(t,e){return"variable"!=t||C.stream.match(/^\s*:/,!1)?("variable"==t&&(C.marked="property"),"spread"==t?O(At):"}"==t?A():"["==t?O(q,U("]"),U(":"),Ot):O(U(":"),At,kt)):(k(e),O(kt))}function St(){return A(At,kt)}function kt(t,e){if("="==e)return O(z)}function Pt(t){if(","==t)return O(Ct)}function jt(t,e){if("keyword b"==t&&"else"==e)return O(B("form","else"),H,F)}function Nt(t,e){return"await"==e?O(Nt):"("==t?O(B(")"),Lt,F):void 0}function Lt(t){return"var"==t?O(Ct,Dt):"variable"==t?O(Dt):A(Dt)}function Dt(t,e){return")"==t?O():";"==t?O(Dt):"in"==e||"of"==e?(C.marked="keyword",O(q,Dt)):A(q,Dt)}function It(t,e){return"*"==e?(C.marked="keyword",O(It)):"variable"==t?(k(e),O(It)):"("==t?O(I,B(")"),st(Bt,")"),F,ft,H,M):u&&"<"==e?O(B(">"),st(xt,">"),F,It):void 0}function Rt(t,e){return"*"==e?(C.marked="keyword",O(Rt)):"variable"==t?(k(e),O(Rt)):"("==t?O(I,B(")"),st(Bt,")"),F,ft,M):u&&"<"==e?O(B(">"),st(xt,">"),F,Rt):void 0}function Mt(t,e){return"keyword"==t||"variable"==t?(C.marked="type",O(Mt)):"<"==e?O(B(">"),st(xt,">"),F):void 0}function Bt(t,e){return"@"==e&&O(q,Bt),"spread"==t?O(Bt):u&&j(e)?(C.marked="keyword",O(Bt)):u&&"this"==t?O(ut,kt):A(At,ut,kt)}function Ft(t,e){return"variable"==t?Ut(t,e):Ht(t,e)}function Ut(t,e){if("variable"==t)return k(e),O(Ht)}function Ht(t,e){return"<"==e?O(B(">"),st(xt,">"),F,Ht):"extends"==e||"implements"==e||u&&","==t?("implements"==e&&(C.marked="keyword"),O(u?ht:q,Ht)):"{"==t?O(B("}"),Vt,F):void 0}function Vt(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||u&&j(e))&&C.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",O(Vt)):"variable"==t||"keyword"==C.style?(C.marked="property",O(qt,Vt)):"number"==t||"string"==t?O(qt,Vt):"["==t?O(q,ut,U("]"),qt,Vt):"*"==e?(C.marked="keyword",O(Vt)):u&&"("==t?A(Rt,Vt):";"==t||","==t?O(Vt):"}"==t?O():"@"==e?O(q,Vt):void 0}function qt(t,e){if("!"==e)return O(qt);if("?"==e)return O(qt);if(":"==t)return O(ht,kt);if("="==e)return O(z);var n=C.state.lexical.prev;return A(n&&"interface"==n.info?Rt:It)}function zt(t,e){return"*"==e?(C.marked="keyword",O(Xt,U(";"))):"default"==e?(C.marked="keyword",O(q,U(";"))):"{"==t?O(st(Gt,"}"),Xt,U(";")):A(H)}function Gt(t,e){return"as"==e?(C.marked="keyword",O(U("variable"))):"variable"==t?A(z,Gt):void 0}function Wt(t){return"string"==t?O():"("==t?A(q):"."==t?A(K):A(Yt,Kt,Xt)}function Yt(t,e){return"{"==t?lt(Yt,"}"):("variable"==t&&k(e),"*"==e&&(C.marked="keyword"),O($t))}function Kt(t){if(","==t)return O(Yt,Kt)}function $t(t,e){if("as"==e)return C.marked="keyword",O(Yt)}function Xt(t,e){if("from"==e)return C.marked="keyword",O(q)}function Qt(t){return"]"==t?O():A(st(z,"]"))}function Zt(){return A(B("form"),At,U("{"),B("}"),st(Jt,"}"),F,F)}function Jt(){return A(At,kt)}function te(t,e,n){return e.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}return I.lex=R.lex=!0,M.lex=!0,F.lex=!0,{startState:function(t){var n={tokenize:m,lastType:"sof",cc:[],lexical:new E((t||0)-i,0,"block",!1),localVars:e.localVars,context:e.localVars&&new N(null,null,!1),indented:t||0};return e.globalVars&&"object"==typeof e.globalVars&&(n.globalVars=e.globalVars),n},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),_(t,e)),e.tokenize!=v&&t.eatSpace())return null;var r=e.tokenize(t,e);return"comment"==n?r:(e.lastType="operator"!=n||"++"!=o&&"--"!=o?n:"incdec",T(e,r,n,o,t))},indent:function(t,n){if(t.tokenize==v||t.tokenize==y)return r.Pass;if(t.tokenize!=m)return 0;var o,s=n&&n.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==F)l=l.prev;else if(u!=jt&&u!=M)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(o=t.cc[t.cc.length-1])&&(o==K||o==$)&&!/^[,\.=+\-*:?[\(]/.test(n));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var p=l.type,f=s==p;return"vardef"==p?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==p&&"{"==s?l.indented:"form"==p?l.indented+i:"stat"==p?l.indented+(function(t,e){return"operator"==t.lastType||","==t.lastType||d.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}(t,n)?a||i:0):"switch"!=l.info||f||0==e.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:i):l.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:te,skipExpression:function(t){T(t,"atom","atom","true",new r.StringStream("",2,null))}}})),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})},589:(t,e,n)=>{var r,o,i;r=n(631),o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},r.defineMode("xml",(function(t,e){var n,a,s=t.indentUnit,l={},c=e.htmlMode?o:i;for(var u in c)l[u]=c[u];for(var u in e)l[u]=e[u];function p(t,e){function r(n){return e.tokenize=n,n(t,e)}var o=t.next();return"<"==o?t.eat("!")?t.eat("[")?t.match("CDATA[")?r(d("atom","]]>")):null:t.match("--")?r(d("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),r(h(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=d("meta","?>"),"meta"):(n=t.eat("/")?"closeTag":"openTag",e.tokenize=f,"tag bracket"):"&"==o?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function f(t,e){var r,o,i=t.next();if(">"==i||"/"==i&&t.eat(">"))return e.tokenize=p,n=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return n="equals",null;if("<"==i){e.tokenize=p,e.state=b,e.tagName=e.tagStart=null;var a=e.tokenize(t,e);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(e.tokenize=(r=i,o=function(t,e){for(;!t.eol();)if(t.next()==r){e.tokenize=f;break}return"string"},o.isInAttribute=!0,o),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=p;break}n.next()}return t}}function h(t){return function(e,n){for(var r;null!=(r=e.next());){if("<"==r)return n.tokenize=h(t+1),n.tokenize(e,n);if(">"==r){if(1==t){n.tokenize=p;break}return n.tokenize=h(t-1),n.tokenize(e,n)}}return"meta"}}function g(t){return t&&t.toLowerCase()}function m(t,e,n){this.prev=t.context,this.tagName=e||"",this.indent=t.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function v(t){t.context&&(t.context=t.context.prev)}function y(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!l.contextGrabbers.hasOwnProperty(g(n))||!l.contextGrabbers[g(n)].hasOwnProperty(g(e)))return;v(t)}}function b(t,e,n){return"openTag"==t?(n.tagStart=e.column(),_):"closeTag"==t?w:b}function _(t,e,n){return"word"==t?(n.tagName=e.current(),a="tag",T):l.allowMissingTagName&&"endTag"==t?(a="tag bracket",T(t,0,n)):(a="error",_)}function w(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&v(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",E):(a="tag error",x)}return l.allowMissingTagName&&"endTag"==t?(a="tag bracket",E(t,0,n)):(a="error",x)}function E(t,e,n){return"endTag"!=t?(a="error",E):(v(n),b)}function x(t,e,n){return a="error",E(t,0,n)}function T(t,e,n){if("word"==t)return a="attribute",C;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(g(r))?y(n,r):(y(n,r),n.context=new m(n,r,o==n.indented)),b}return a="error",T}function C(t,e,n){return"equals"==t?A:(l.allowMissing||(a="error"),T(t,0,n))}function A(t,e,n){return"string"==t?O:"word"==t&&l.allowUnquoted?(a="string",T):(a="error",T(t,0,n))}function O(t,e,n){return"string"==t?O:T(t,0,n)}return p.isInText=!0,{startState:function(t){var e={tokenize:p,state:b,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;n=null;var r=e.tokenize(t,e);return(r||n)&&"comment"!=r&&(a=null,e.state=e.state(n||r,t,e),a&&(r="error"==a?r+" error":a)),r},indent:function(t,e,n){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(o&&o.noIndent)return r.Pass;if(t.tokenize!=f&&t.tokenize!=p)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(e))return 0;var i=e&&/^<(\/)?([\w_:\.-]*)/.exec(e);if(i&&i[1])for(;o;){if(o.tagName==i[2]){o=o.prev;break}if(!l.implicitlyClosed.hasOwnProperty(g(o.tagName)))break;o=o.prev}else if(i)for(;o;){var a=l.contextGrabbers[g(o.tagName)];if(!a||!a.hasOwnProperty(g(i[2])))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==A&&(t.state=T)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)e.push(n.tagName);return e.reverse()}}})),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})},642:(t,e,n)=>{n.d(e,{Z:()=>a});var r,o=n(346),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const a=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o._module=e,o}return i(e,t),Object.defineProperty(e.prototype,"module",{get:function(){return this._module},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{get:function(){return this._module.config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"em",{get:function(){return this._module.em},enumerable:!1,configurable:!0}),e}(o.Hn)},675:(t,e,n)=>{n.d(e,{Z:()=>s,q:()=>o});var r,o,i=n(642),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){t.Select="select",t.Hover="hover",t.Spacing="spacing",t.Target="target",t.Resize="resize"}(o||(o={}));const s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.defaults=function(){return{id:"",type:""}},Object.defineProperty(e.prototype,"type",{get:function(){return this.get("type")||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){var t;return this.get("component")||(null===(t=this.get("componentView"))||void 0===t?void 0:t.model)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentView",{get:function(){var t;return this.get("componentView")||(null===(t=this.get("component"))||void 0===t?void 0:t.getView())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"el",{get:function(){var t;return null===(t=this.componentView)||void 0===t?void 0:t.el},enumerable:!1,configurable:!0}),e.prototype.getBoxRect=function(t){var e=this.el,n=this.em.Canvas.getCanvasView();return this.get("boxRect")||(e&&n?n.getElBoxRect(e,t):{x:0,y:0,width:0,height:0})},e.prototype.getStyle=function(t){void 0===t&&(t={});var e=t.boxRect||this.getBoxRect(t),n=e.width,r=e.height,o=e.x,i=e.y;return{width:"".concat(n,"px"),height:"".concat(r,"px"),top:"0",left:"0",position:"absolute",translate:"".concat(o,"px ").concat(i,"px")}},e.prototype.isType=function(t){return this.type===t},e}(i.Z)},858:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){t.Components.clear(),t.Css.clear()}}},884:(t,e,n)=>{n.r(e),n.d(e,{default:()=>a});var r=n(50),o=n(668),i=n(491);const a={run:function(t){(0,r.bindAll)(this,"onKeyUp","enableDragger","disableDragger"),this.editor=t,this.canvasModel=this.canvas.getCanvasView().model,this.toggleMove(1)},stop:function(t){this.toggleMove(),this.disableDragger()},onKeyUp:function(t){" "===(0,i.sN)(t)&&this.editor.stopCommand(this.id)},enableDragger:function(t){this.toggleDragger(1,t)},disableDragger:function(t){this.toggleDragger(0,t)},toggleDragger:function(t,e){var n=this.canvasModel,r=this.em,i=this.dragger,a=t?"add":"remove";this.getCanvas().classList[a]("".concat(this.ppfx,"is__grabbing")),i||(i=new o.Z({getPosition:function(){return{x:n.get("x"),y:n.get("y")}},setPosition:function(t){var e=t.x,r=t.y;n.set({x:e,y:r})},onStart:function(t,e){r.trigger("canvas:move:start",e)},onDrag:function(t,e){r.trigger("canvas:move",e)},onEnd:function(t,e){r.trigger("canvas:move:end",e)}}),this.dragger=i),t?i.start(e):i.stop()},toggleMove:function(t){var e=this.ppfx,n=t?"add":"remove",r=t?"on":"off",o={on:i.on,off:i.S1},a=this.getCanvas(),s=["".concat(e,"is__grab")];!t&&s.push("".concat(e,"is__grabbing")),s.forEach((function(t){return a.classList[n](t)})),o[r](document,"keyup",this.onKeyUp),o[r](a,"mousedown",this.enableDragger),o[r](document,"mouseup",this.disableDragger)}}},790:(t,e,n)=>{n.r(e),n.d(e,{default:()=>s,defineCommand:()=>a});var r,o=n(346),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function a(t){return t}const s=function(t){function e(e){var n=t.call(this,0)||this;n.config=e||{},n.em=n.config.em||{};var r=n.config.stylePrefix;return n.pfx=r,n.ppfx=n.config.pStylePrefix,n.hoverClass="".concat(r,"hover"),n.badgeClass="".concat(r,"badge"),n.plhClass="".concat(r,"placeholder"),n.freezClass="".concat(n.ppfx,"freezed"),n.canvas=n.em.Canvas,n.init(n.config),n}return i(e,t),e.prototype.onFrameScroll=function(t){},e.prototype.getCanvas=function(){return this.canvas.getElement()},e.prototype.getCanvasBody=function(){return this.canvas.getBody()},e.prototype.getCanvasTools=function(){return this.canvas.getToolsEl()},e.prototype.offset=function(t){var e=t.getBoundingClientRect();return{top:e.top+t.ownerDocument.body.scrollTop,left:e.left+t.ownerDocument.body.scrollLeft}},e.prototype.init=function(t){},e.prototype.callRun=function(t,e){void 0===e&&(e={});var n=this.id;if(t.trigger("run:".concat(n,":before"),e),!e||!e.abort){var r=e.sender||t,o=this.run(t,r,e);return t.trigger("run:".concat(n),o,e),t.trigger("run",n,o,e),o}t.trigger("abort:".concat(n),e)},e.prototype.callStop=function(t,e){void 0===e&&(e={});var n=this.id,r=e.sender||t;t.trigger("stop:".concat(n,":before"),e);var o=this.stop(t,r,e);return t.trigger("stop:".concat(n),o,e),t.trigger("stop",n,o,e),o},e.prototype.stopCommand=function(t){this.em.Commands.stop(this.id,t)},e.prototype.run=function(t,e,n){},e.prototype.stop=function(t,e,n){},e}(o.Hn)},180:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var r=n(50),o={run:function(t,e,n){var o=this;void 0===n&&(n={});var i=[],a=n.component||t.getSelectedAll();return(a=(0,r.isArray)(a)?function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],a,!0):[a]).filter(Boolean).forEach((function(t){if(!t.get("removable"))return i.push(t),o.em.logWarning("The element is not removable",{component:t});t.remove()})),t.select(i),a}};const i=o},544:(t,e,n)=>{n.r(e),n.d(e,{default:()=>s});var r=n(50),o=n(668),i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},a="dmode";const s={run:function(t,e,n){var s=this;void 0===n&&(n={}),(0,r.bindAll)(this,"setPosition","onStart","onDrag","onEnd","getPosition","getGuidesStatic","renderGuide","getGuidesTarget");var l=n.target,c=n.event,u=n.mode,p=n.dragger,f=void 0===p?{}:p,d=l.getEl(),h=i({doc:d.ownerDocument,onStart:this.onStart,onEnd:this.onEnd,onDrag:this.onDrag,getPosition:this.getPosition,setPosition:this.setPosition,guidesStatic:function(){return s.guidesStatic},guidesTarget:function(){return s.guidesTarget}},f);this.setupGuides(),this.opts=n,this.editor=t,this.em=t.getModel(),this.target=l,this.isTran="translate"==u,this.guidesContainer=this.getGuidesContainer(),this.guidesTarget=this.getGuidesTarget(),this.guidesStatic=this.getGuidesStatic();var g=this.dragger;return g?g.setOptions(h):(g=new o.Z(h),this.dragger=g),c&&g.start(c),this.toggleDrag(1),this.em.trigger("".concat(a,":start"),this.getEventOpts()),g},getEventOpts:function(){return{mode:this.opts.mode,target:this.target,guidesTarget:this.guidesTarget,guidesStatic:this.guidesStatic}},stop:function(){this.toggleDrag()},setupGuides:function(){(this.guides||[]).forEach((function(t){var e=t.guide;e&&e.parentNode.removeChild(e)})),this.guides=[]},getGuidesContainer:function(){var t=this,e=this.guidesEl;if(!e){var n=this,o=n.editor,i=n.em,a=n.opts,s=o.getConfig().stylePrefix,l=document.createElement("div"),c=document.createElement("div"),u='<div class="'.concat(s,"guide-info__line ").concat(s,'danger-bg">\n <div class="').concat(s,"guide-info__content ").concat(s,'danger-color"></div>\n </div>');(e=document.createElement("div")).className="".concat(s,"guides"),l.className="".concat(s,"guide-info ").concat(s,"guide-info__x"),c.className="".concat(s,"guide-info ").concat(s,"guide-info__y"),l.innerHTML=u,c.innerHTML=u,e.appendChild(l),e.appendChild(c),o.Canvas.getGlobalToolsEl().appendChild(e),this.guidesEl=e,this.elGuideInfoX=l,this.elGuideInfoY=c,this.elGuideInfoContentX=l.querySelector(".".concat(s,"guide-info__content")),this.elGuideInfoContentY=c.querySelector(".".concat(s,"guide-info__content")),i.on("canvas:update frame:scroll",(0,r.debounce)((function(){var e;t.updateGuides(),a.debug&&(null===(e=t.guides)||void 0===e||e.forEach((function(e){return t.renderGuide(e)})))}),200))}return e},getGuidesStatic:function(){var t=this,e=[],n=this.target.getEl(),o=n.parentNode,i=void 0===o?{}:o;return(0,r.each)(i.children,(function(r){return e=e.concat(n!==r?t.getElementGuides(r):[])})),e.concat(this.getElementGuides(i))},getGuidesTarget:function(){return this.getElementGuides(this.target.getEl())},updateGuides:function(t){var e,n,o=this;(t||this.guides).forEach((function(t){var i=t.origin,a=e===i?n:o.getElementPos(i);e=i,n=a,(0,r.each)(o.getGuidePosUpdate(t,a),(function(e,n){return t[n]=e})),t.originRect=a}))},getGuidePosUpdate:function(t,e){var n={},r=e.top,o=e.height,i=e.left,a=e.width;switch(t.type){case"t":n.y=r;break;case"b":n.y=r+o;break;case"l":n.x=i;break;case"r":n.x=i+a;break;case"x":n.x=i+a/2;break;case"y":n.y=r+o/2}return n},renderGuide:function(t){void 0===t&&(t={});var e=t.guide||document.createElement("div"),n="px",r=t.active?2:1,o=e.children[0];return e.style="position: absolute; background-color: ".concat(t.active?"green":"red",";"),e.children.length||((o=document.createElement("div")).style="position: absolute; color: red; padding: 5px; top: 0; left: 0;",e.appendChild(o)),t.y?(e.style.width="100%",e.style.height="".concat(r).concat(n),e.style.top="".concat(t.y).concat(n),e.style.left=0):(e.style.width="".concat(r).concat(n),e.style.height="100%",e.style.left="".concat(t.x).concat(n),e.style.top="0".concat(n)),!t.guide&&this.guidesContainer.appendChild(e),e},getElementPos:function(t){return this.editor.Canvas.getElementPos(t,{noScroll:1})},getElementGuides:function(t){var e=this,n=this.opts,r=this.getElementPos(t),o=r.top,a=r.height,s=r.left,l=r.width,c=[{type:"t",y:o},{type:"b",y:o+a},{type:"l",x:s},{type:"r",x:s+l},{type:"x",x:s+l/2},{type:"y",y:o+a/2}].map((function(o){return i(i({},o),{origin:t,originRect:r,guide:n.debug&&e.renderGuide(o)})}));return c.forEach((function(t){var n;return null===(n=e.guides)||void 0===n?void 0:n.push(t)})),c},getTranslate:function(t,e){void 0===e&&(e="x");var n=0;return(t||"").split(" ").forEach((function(t){var r=t.trim(),o="translate".concat(e.toUpperCase(),"(");0===r.indexOf(o)&&(n=parseFloat(r.replace(o,"")))})),n},setTranslate:function(t,e,n){var r="translate".concat(e.toUpperCase(),"("),o="".concat(r).concat(n,")"),i=(t||"").split(" ").map((function(t){return 0===t.trim().indexOf(r)&&(t=o),t})).join(" ");return i.indexOf(r)<0&&(i+=" ".concat(o)),i},getPosition:function(){var t=this.target,e=this.isTran,n=t.getStyle(),r=n.left,o=n.top,i=n.transform,a=0,s=0;return e?(a=this.getTranslate(i),s=this.getTranslate(i,"y")):(a=parseFloat(r||0),s=parseFloat(o||0)),{x:a,y:s}},setPosition:function(t){var e=t.x,n=t.y,o=t.end,i=t.position,a=t.width,s=t.height,l=this,c=l.target,u=l.isTran,p=l.em,f=!o,d="".concat(parseInt(e,10)).concat("px"),h="".concat(parseInt(n,10)).concat("px"),g={};if(u){var m=c.getStyle().transform||"";m=this.setTranslate(m,"x",d),g={transform:m=this.setTranslate(m,"y",h),__p:f},c.addStyle(g,{avoidStore:!o})}else{var v={position:i,width:a,height:s},y={left:d,top:h,__p:f};(0,r.keys)(v).forEach((function(t){var e=v[t];e&&(y[t]=e)})),g=y,c.addStyle(g,{avoidStore:!o})}null==p||p.Styles.__emitCmpStyleUpdate(g,{components:p.getSelected()})},_getDragData:function(){var t=this.target;return{target:t,parent:t.parent(),index:t.index()}},onStart:function(t){var e=this,n=e.target,r=e.editor,o=e.isTran,i=e.opts,a=i.center,s=i.onStart,l=r.Canvas,c=n.getStyle(),u="absolute",p=[u,"relative"];if(s&&s(this._getDragData()),!o&&c.position!==u){var f=l.offset(n.getEl()),d=f.left,h=f.top,g=f.width,m=f.height,v=n.parent(),y=void 0;do{var b=v.getStyle();y=p.indexOf(b.position)>=0?v:null,v=v.parent()}while(v&&!y);if(a){var _=l.getMouseRelativeCanvas(t);d=_.x,h=_.y}else if(y){var w=l.offset(y.getEl());d-=w.left,h-=w.top}this.setPosition({x:d,y:h,width:"".concat(g,"px"),height:"".concat(m,"px"),position:u})}},onDrag:function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this.guidesTarget,o=this.opts,i=o.onDrag;this.updateGuides(r),o.debug&&r.forEach((function(e){return t.renderGuide(e)})),o.guidesInfo&&this.renderGuideInfo(r.filter((function(t){return t.active}))),i&&i(this._getDragData())},onEnd:function(t,e,n){void 0===n&&(n={});var r=this,o=r.editor,s=r.opts,l=r.id,c=s.onEnd;c&&c(t,n,i(i({event:t},n),this._getDragData())),o.stopCommand(l),this.hideGuidesInfo(),this.em.trigger("".concat(a,":end"),this.getEventOpts())},hideGuidesInfo:function(){var t=this;["X","Y"].forEach((function(e){var n=t["elGuideInfo".concat(e)];n&&(n.style.display="none")}))},renderGuideInfo:function(t){var e=this;void 0===t&&(t=[]);var n=this.guidesStatic;this.hideGuidesInfo(),t.forEach((function(t){var o=t.origin,s=t.x,l=e.getElementPos(o),c=(0,r.isUndefined)(s)?"y":"x",u="y"===c,p=l[u?"left":"top"],f=l.rect[u?"left":"top"],d=u?p+l.width:p+l.height,h=u?f+l.rect.width:f+l.rect.height,g=e["elGuideInfo".concat(c.toUpperCase())],m=e["elGuideInfoContent".concat(c.toUpperCase())],v=g.style,y=null==n?void 0:n.filter((function(e){return e.type===t.type})).map((function(t){var e=t.originRect,n=e.left,r=e.width,o=e.top,i=e.height,a=u?n+r:o+i;return{gap:a<p?p-a:(u?n:o)-d,guide:t}})).filter((function(t){return t.gap>0})).sort((function(t,e){return t.gap-e.gap})).map((function(t){return t.guide}))[0];if(y){var b=y.originRect,_=b.left,w=b.width,E=b.top,x=b.height,T=b.rect,C=u?_<l.left:E<l.top,A=u?_:E,O=u?T.left:T.top,S=u?_+w:E+x,k=u?T.left+T.width:T.top+T.height,P=u?t.y:t.x,j=C?S:d,N="".concat(P,"px"),L=C?p-S:A-d,D=C?f-k:O-h;v.display="",v[u?"top":"left"]=N,v[u?"left":"top"]="".concat(j,"px"),v[u?"width":"height"]="".concat(L,"px"),m.innerHTML="".concat(Math.round(D),"px"),e.em.trigger("".concat(a,":active"),i(i({},e.getEventOpts()),{guide:t,guidesStatic:n,matched:y,posFirst:P,posSecond:j,size:L,sizeRaw:D,elGuideInfo:g,elGuideInfoCnt:m}))}}))},toggleDrag:function(t){var e=this.ppfx,n=this.editor,r=t?"add":"remove",o=["".concat(e,"is__grabbing")],i=n.Canvas,a=i.getBody();o.forEach((function(t){return a.classList[r](t)})),i[t?"startAutoscroll":"stopAutoscroll"]()}}},236:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach((function(t){var n=t.components(),r=n&&n.filter((function(t){return t.get("selectable")}))[0];r&&e.push(r)})),e.length&&t.select(e)}}}},368:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t,e,n){if(void 0===n&&(n={}),t.Canvas.hasFocus()||n.force){var r=[];t.getSelectedAll().forEach((function(t){for(var e=t.parent();e&&!e.get("selectable");)e=e.parent();e&&r.push(e)})),r.length&&t.select(r)}}}},243:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach((function(t){var n=t.parent();if(n){var r,o=n.components().length,i=0,a=0;do{i++,r=(a=t.index()+i)<=o?n.getChildAt(a):null}while(r&&!r.get("selectable"));e.push(r||t)}})),e.length&&t.select(e)}}}},400:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach((function(t){var n=t.parent();if(n){var r,o=0,i=0;do{o++,r=(i=t.index()-o)>=0?n.getChildAt(i):null}while(r&&!r.get("selectable"));e.push(r||t)}})),e.length&&t.select(e)}}}},910:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(50);const o={run:function(t,e,n){void 0===n&&(n={});var o=n.target,i=[];if(!o.get("styles"))return i;var a=o.get("type"),s=t.Pages.getAllWrappers();if(!(0,r.flatten)(s.map((function(t){return t.findType(a)}))).length){var l=t.CssComposer.getAll();i=l.filter((function(t){return t.get("group")==="cmp:".concat(a)})),l.remove(i)}return i}}},744:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){var e=t.getModel(),n=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],t.getSelectedAll(),!0);n.length&&e.set("clipboard",n)}}},517:(t,e,n)=>{n.r(e),n.d(e,{default:()=>a});var r=n(50),o=n(895),i=n(407);const a=(0,r.extend)({},i.default,{init:function(){(0,r.bindAll)(this,"startDelete","stopDelete","onDelete"),this.hoverClass=this.pfx+"hover-delete",this.badgeClass=this.pfx+"badge-red"},enable:function(){this.$el.find("*").mouseover(this.startDelete).mouseout(this.stopDelete).click(this.onDelete)},startDelete:function(t){t.stopPropagation();var e=(0,o.default)(t.target);e.data("model").get("removable")&&(e.addClass(this.hoverClass),this.attachBadge(e.get(0)))},stopDelete:function(t){t.stopPropagation(),(0,o.default)(t.target).removeClass(this.hoverClass),this.badge&&this.badge.css({left:-1e3,top:-1e3})},onDelete:function(t){t.stopPropagation();var e=(0,o.default)(t.target);e.data("model").get("removable")&&(e.data("model").destroy(),this.removeBadge(),this.clean())},updateBadgeLabel:function(t){this.badge.html("Remove "+t.getName())}})},457:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(491);const o={run:function(t,e,n){var o=this;void 0===n&&(n={}),e&&e.set&&e.set("active",0);var i=t.getConfig(),a=t.Modal,s=i.stylePrefix;if(this.cm=t.CodeManager||null,!this.editors){var l=this.buildEditor("htmlmixed","hopscotch","HTML"),c=this.buildEditor("css","hopscotch","CSS");this.htmlEditor=l.model,this.cssEditor=c.model;var u=(0,r.ut)("div",{class:"".concat(s,"export-dl")});u.appendChild(l.el),u.appendChild(c.el),this.editors=u}a.open({title:i.textViewCode,content:this.editors}).getModel().once("change:open",(function(){return t.stopCommand("".concat(o.id))})),this.htmlEditor.setContent(t.getHtml(n.optsHtml)),this.cssEditor.setContent(t.getCss(n.optsCss))},stop:function(t){var e=t.Modal;e&&e.close()},buildEditor:function(t,e,n){var r=this.em.CodeManager,o=r.createViewer({label:n,codeName:t,theme:e});return{model:o,el:new r.EditorView({model:o,config:r.getConfig()}).render().el}}}},975:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(50);const o={isEnabled:function(){var t=document;return!!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement)},enable:function(t){var e="";return t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?(e="webkit",t.webkitRequestFullscreen()):t.mozRequestFullScreen?(e="moz",t.mozRequestFullScreen()):t.msRequestFullscreen&&t.msRequestFullscreen(),e},disable:function(){var t=document;this.isEnabled()&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},fsChanged:function(t){this.isEnabled()||(this.stopCommand({sender:this.sender}),document.removeEventListener("".concat(t||"","fullscreenchange"),this.fsChanged))},run:function(t,e,n){void 0===n&&(n={}),this.sender=e;var o=n.target,i=(0,r.isElement)(o)?o:document.querySelector(o),a=this.enable(i||t.getContainer());this.fsChanged=this.fsChanged.bind(this,a),document.addEventListener(a+"fullscreenchange",this.fsChanged),t.trigger("change:canvasOffset")},stop:function(t,e){e&&e.set&&e.set("active",!1),this.disable(),t&&t.trigger("change:canvasOffset")}}},191:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var r=n(50),o=n(895),i=n(491),a=n(407),s=n(189);const l=(0,r.extend)({},s.default,a.default,{init:function(t){a.default.init.apply(this,arguments),(0,r.bindAll)(this,"initSorter","rollback","onEndMove"),this.opt=t,this.hoverClass=this.ppfx+"highlighter-warning",this.badgeClass=this.ppfx+"badge-warning",this.noSelClass=this.ppfx+"no-select"},enable:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.default.enable.apply(this,t),this.getBadgeEl().addClass(this.badgeClass),this.getHighlighterEl().addClass(this.hoverClass);var n=this.$wrapper;n.css("cursor","move"),n.on("mousedown",this.initSorter),n.addClass(this.noSelClass)},toggleClipboard:function(){},initSorter:function(t){var e=(0,o.default)(t.target).data("model").get("draggable");e&&(this.cacheEl=null,this.startSelectPosition(t.target,this.frameEl.contentDocument),this.sorter.draggable=e,this.sorter.onEndMove=this.onEndMove.bind(this),this.stopSelectComponent(),this.$wrapper.off("mousedown",this.initSorter),(0,i.on)(this.getContentWindow(),"keydown",this.rollback))},initSorterFromModel:function(t){var e=t.get("draggable");if(e){this.cacheEl=null;var n=t.view.el;this.startSelectPosition(n,this.frameEl.contentDocument),this.sorter.draggable=e,this.sorter.onEndMove=this.onEndMoveFromModel.bind(this),this.stopSelectComponent(),(0,i.on)(this.getContentWindow(),"keydown",this.rollback)}},initSorterFromModels:function(t){this.cacheEl=null;var e=t[t.length-1],n=this.em.getCurrentFrame(),r=e.getEl(null==n?void 0:n.model),o=r.ownerDocument;this.startSelectPosition(r,o,{onStart:this.onStart}),this.sorter.draggable=e.get("draggable"),this.sorter.toMove=t,this.sorter.onMoveClb=this.onDrag,this.sorter.onEndMove=this.onEndMoveFromModel.bind(this),this.stopSelectComponent(),(0,i.on)(this.getContentWindow(),"keydown",this.rollback)},onEndMoveFromModel:function(){(0,i.S1)(this.getContentWindow(),"keydown",this.rollback)},onEndMove:function(){this.enable(),(0,i.S1)(this.getContentWindow(),"keydown",this.rollback)},onSelect:function(t,e){},rollback:function(t,e){(27==(t.which||t.keyCode)||e)&&(this.sorter.moved=!1,this.sorter.endMove())},getBadgeEl:function(){return this.$badge||(this.$badge=(0,o.default)(this.getBadge())),this.$badge},getHighlighterEl:function(){return this.$hl||(this.$hl=(0,o.default)(this.canvas.getHighlighter())),this.$hl},stop:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.default.stop.apply(this,t),this.getBadgeEl().removeClass(this.badgeClass),this.getHighlighterEl().removeClass(this.hoverClass),this.$wrapper.css("cursor","").unbind().removeClass(this.noSelClass)}})},912:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var r=n(50),o=n(491);const i={open:function(t){var e=this,n=this,o=n.editor,i=n.title,a=n.config,s=n.am,l=a.custom;if((0,r.isFunction)(l.open))return l.open(s.__customData());o.Modal.open({title:i,content:t}).onceClose((function(){return o.stopCommand(e.id)}))},close:function(){var t=this.config.custom;if((0,r.isFunction)(t.close))return t.close(this.am.__customData());var e=this.editor.Modal;e&&e.close()},run:function(t,e,n){void 0===n&&(n={});var r=t.AssetManager,i=r.getConfig(),a=n.types,s=void 0===a?[]:a,l=n.accept,c=n.select;if(this.title=n.modalTitle||t.t("assetManager.modalTitle")||"",this.editor=t,this.config=i,this.am=r,r.setTarget(n.target),r.onClick(n.onClick),r.onDblClick(n.onDblClick),r.onSelect(n.onSelect),r.__behaviour({select:c,types:s,options:n}),i.custom)this.rendered=this.rendered||(0,o.ut)("div"),this.rendered.className="".concat(i.stylePrefix,"custom-wrp"),r.__behaviour({container:this.rendered}),r.__trgCustom();else{if(!this.rendered||s){var u=r.getAll().filter((function(t){return t}));s&&s.length&&(u=u.filter((function(t){return-1!==s.indexOf(t.get("type"))}))),r.render(u),this.rendered=r.getContainer()}if(l){var p=this.rendered.querySelector("input#".concat(i.stylePrefix,"uploadFile"));p&&p.setAttribute("accept",l)}}return this.open(this.rendered),this},stop:function(t){this.editor=t,this.close(this.rendered)}}},117:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var r=n(50),o=n(491);const i={open:function(){var t=this,e=t.container,n=t.editor,o=t.bm,i=t.config,a=i.custom,s=i.appendTo;if((0,r.isFunction)(a.open))return a.open(o.__customData());if(this.firstRender&&!s){var l="views-container",c=n.Panels;(c.getPanel(l)||c.addPanel({id:l})).set("appendContent",e).trigger("change:appendContent"),a||e.appendChild(o.render())}e&&(e.style.display="block")},close:function(){var t=this.container,e=this.config.custom;if((0,r.isFunction)(e.close))return e.close(this.bm.__customData());t&&(t.style.display="none")},run:function(t){var e=t.Blocks;this.config=e.getConfig(),this.firstRender=!this.container,this.container=this.container||(0,o.ut)("div"),this.editor=t,this.bm=e;var n=this.container;e.__behaviour({container:n}),this.config.custom&&e.__trgCustom(),this.open()},stop:function(){this.close()}}},614:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){var e=t.LayerManager,n=t.Panels,r=e.getConfig();if(!r.appendTo){if(!this.layers){var o="views-container",i=document.createElement("div"),a=n.getPanel(o)||n.addPanel({id:o});r.custom?e.__trgCustom({container:i}):i.appendChild(e.render()),a.set("appendContent",i).trigger("change:appendContent"),this.layers=i}this.layers.style.display="block"}},stop:function(){var t=this.layers;t&&(t.style.display="none")}}},801:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(895);const o={run:function(t,e){if(this.sender=e,!this.$cnt){var n=t.getConfig(),o=t.Panels,i=t.DeviceManager,a=t.SelectorManager,s=t.StyleManager,l="change:appendContent",c=(0,r.default)("<div></div>"),u=(0,r.default)("<div></div>"),p=(0,r.default)("<div></div>"),f=(0,r.default)("<div></div>");if(this.$cnt=c,this.$cntInner=u,u.append(p),u.append(f),c.append(u),i&&n.showDevices){var d=o.addPanel({id:"devices-c"}),h=i.render();d.set("appendContent",h).trigger(l)}var g=a.getConfig();g.custom?a.__trgCustom({container:p.get(0)}):g.appendTo||p.append(a.render([])),this.sm=s;var m=s.getConfig(),v=m.stylePrefix;this.$header=(0,r.default)('<div class="'.concat(v,'header">').concat(t.t("styleManager.empty"),"</div>")),c.append(this.$header),m.custom?s.__trgCustom({container:f.get(0)}):m.appendTo||f.append(s.render());var y="views-container";(o.getPanel(y)||o.addPanel({id:y})).set("appendContent",c).trigger(l);var b=t.getModel();this.listenTo(b,s.events.target,this.toggleSm)}this.toggleSm()},toggleSm:function(){var t=this,e=t.sender,n=t.sm,r=t.$cntInner,o=t.$header;e&&e.get&&!e.get("active")||!n||(n.getSelected()?(null==r||r.show(),null==o||o.hide()):(null==r||r.hide(),null==o||o.show()))},stop:function(){var t,e;null===(t=this.$cntInner)||void 0===t||t.hide(),null===(e=this.$header)||void 0===e||e.hide()}}},395:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(895);const o={run:function(t,e){this.sender=e;var n,o=t.getModel(),i=t.Config.stylePrefix,a=t.TraitManager,s=a.getConfig();if(!s.appendTo){if(!this.$cn){this.$cn=(0,r.default)("<div></div>"),this.$cn2=(0,r.default)("<div></div>"),this.$cn.append(this.$cn2),this.$header=(0,r.default)("<div>").append('<div class="'.concat(s.stylePrefix,'header">').concat(o.t("traitManager.empty"),"</div>")),this.$cn.append(this.$header),s.custom?a.__trgCustom({container:this.$cn2.get(0)}):(this.$cn2.append('<div class="'.concat(i,'traits-label">').concat(o.t("traitManager.label"),"</div>")),this.$cn2.append(a.render()));var l=t.Panels;null==(n=l.getPanel("views-container")?l.getPanel("views-container"):l.addPanel({id:"views-container"}))||n.set("appendContent",this.$cn.get(0)).trigger("change:appendContent"),this.target=t.getModel(),this.listenTo(this.target,"component:toggled",this.toggleTm)}this.toggleTm()}},toggleTm:function(){var t=this.sender;t&&t.get&&!t.get("active")||(1===this.target.getSelectedAll().length?(this.$cn2.show(),this.$header.hide()):(this.$cn2.hide(),this.$header.show()))},stop:function(){this.$cn2&&this.$cn2.hide(),this.$header&&this.$header.hide()}}},98:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(50);const o={run:function(t,e,n){void 0===n&&(n={});var o=t.getModel().get("clipboard"),i=t.getSelected();o&&i&&(t.getSelectedAll().forEach((function(e){var i=e.collection;if(i){var a,s={at:e.index()+1,action:n.action||"paste-component"};if((0,r.contains)(o,e)&&e.get("copyable"))a=i.add(e.clone(),s);else{var l=o.filter((function(t){return t.get("copyable")})).filter((function(n){return t.Components.canMove(e.parent(),n).result}));a=i.add(l.map((function(t){return t.clone()})),s)}(a=(0,r.isArray)(a)?a:[a]).forEach((function(e){return t.trigger("component:paste",e)}))}})),i.emitUpdate())}}},129:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var r=n(50),o="core:component-outline";const i={getPanels:function(t){return this.panels||(this.panels=t.Panels.getPanels()),this.panels},preventDrag:function(t){t.abort=1},tglEffects:function(t){var e=this.em,n=t?"on":"off";if(e){var o=e.Canvas,i=o.getBody(),a=o.getToolbarEl();a&&(a.style.display=t?"none":"");var s=i.querySelectorAll(".".concat(this.ppfx,"no-pointer"));(0,r.each)(s,(function(e){return e.style.pointerEvents=t?"all":""})),e[n]("run:tlb-move:before",this.preventDrag)}},run:function(t,e){var n=this;this.sender=e,this.selected=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],t.getSelectedAll(),!0),t.select(),this.shouldRunSwVisibility||(this.shouldRunSwVisibility=t.Commands.isActive(o)),this.shouldRunSwVisibility&&t.stopCommand(o),t.getModel().stopDefault();var r=this.getPanels(t),i=t.Canvas.getElement(),a=t.getEl(),s=t.Config.stylePrefix;if(!this.helper){var l=document.createElement("span");l.className="".concat(s,"off-prv fa fa-eye-slash"),a.appendChild(l),l.onclick=function(){return n.stopCommand()},this.helper=l}this.helper.style.display="inline-block",r.forEach((function(t){return t.set("visible",!1)}));var c=i.style;c.width="100%",c.height="100%",c.top="0",c.left="0",c.padding="0",c.margin="0",t.refresh(),this.tglEffects(1)},stop:function(t){var e=this.sender,n=void 0===e?{}:e,r=this.selected;n.set&&n.set("active",0);var i=this.getPanels(t);this.shouldRunSwVisibility&&(t.runCommand(o),this.shouldRunSwVisibility=!1),t.getModel().runDefault(),i.forEach((function(t){return t.set("visible",!0)})),t.Canvas.getElement().setAttribute("style",""),r&&t.select(r),delete this.selected,this.helper&&(this.helper.style.display="none"),t.refresh(),this.tglEffects()}}},116:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};const o={run:function(t,e,n){var o=n||{},i=t.Canvas,a=i.getCanvasView(),s=r({appendTo:i.getResizerEl(),prefix:t.getConfig().stylePrefix,posFetcher:a.getElementPos.bind(a),mousePosFetcher:i.getMouseRelativePos},o.options||{}),l=this.canvasResizer;return l&&!o.forceNew||(this.canvasResizer=new t.Utils.Resizer(s),l=this.canvasResizer),l.setOptions(s,!0),l.blur(),l.focus(o.el),l},stop:function(){var t;null===(t=this.canvasResizer)||void 0===t||t.blur()}}},407:(t,e,n)=>{n.r(e),n.d(e,{default:()=>x});var r,o=n(50),i=n(346),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.defaults=function(){return{command:"",attributes:{}}},e}(i.Hn);var l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(i.FE);const u=c;c.prototype.model=s;var p=n(330),f=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(){return d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},d.apply(this,arguments)};const h=function(t){function e(e){var n=t.call(this,e)||this;return n.em=e.config.em,n}return f(e,t),e.prototype.events=function(){return this.model.get("events")||{mousedown:"handleClick"}},e.prototype.attributes=function(){return this.model.get("attributes")},e.prototype.handleClick=function(t){t.preventDefault(),t.stopPropagation();var e=this.em,n=e.Canvas.getFrameEl().getBoundingClientRect(),r=n.left,o=n.top,i=d(d({},t),{clientX:t.clientX-r,clientY:t.clientY-o});e.trigger("toolbar:run:before",{event:i}),this.execCommand(i)},e.prototype.execCommand=function(t){var e=this.em,n={event:t},r=this.model.get("command"),i=e.Editor;(0,o.isFunction)(r)&&r(i,null,n),(0,o.isString)(r)&&i.runCommand(r,n)},e.prototype.render=function(){var t=this,e=t.em,n=t.$el,r=t.model,o=r.get("id"),i=r.get("label"),a=e.getConfig().stylePrefix;return n.addClass("".concat(a,"toolbar-item")),o&&n.addClass("".concat(a,"toolbar-item__").concat(o)),i&&n.append(i),this},e}(i.G7);var g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(t){function e(e){var n=t.call(this,e)||this,r=e.em;return n.em=r,n.config={em:r},n.listenTo(n.collection,"reset",n.render),n}return g(e,t),e.prototype.onRender=function(){var t=this.em.config.stylePrefix;this.el.className="".concat(t,"toolbar-items")},e}(p.Z);const v=m;m.prototype.itemView=h;var y,b=n(491),_=n(163),w=n(675),E=function(){return E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},E.apply(this,arguments)};const x={init:function(){this.onSelect=(0,o.debounce)(this.onSelect,0),(0,o.bindAll)(this,"onHover","onOut","onClick","onFrameScroll","onFrameResize","onFrameUpdated","onContainerChange")},enable:function(){this.frameOff=this.canvasOff=this.adjScroll=null,this.startSelectComponent(),y=!0},startSelectComponent:function(){this.toggleSelectComponent(1),this.em.getSelected()&&this.onSelect()},stopSelectComponent:function(){this.toggleSelectComponent()},toggleSelectComponent:function(t){var e=this,n=this.em,r=n.getConfig().listenToEl,o=n.getContainer().parentNode,i=t?"on":"off",a={on:b.on,off:b.S1};!r.length&&o&&r.push(o),a[i](window,"resize",this.onFrameUpdated),a[i](r,"scroll",this.onContainerChange),n[i]("component:toggled component:update undo redo",this.onSelect,this),n[i]("change:componentHovered",this.onHovered,this),n[i]("component:resize styleable:change component:input",this.updateGlobalPos,this),n[i]("component:update:toolbar",this._upToolbar,this),n[i]("change:canvasOffset",this.updateAttached,this),n[i]("frame:updated",this.onFrameUpdated,this),n[i]("canvas:updateTools",this.onFrameUpdated,this),n.Canvas.getFrames().forEach((function(t){var n=t.view,r=null==n?void 0:n.getWindow();r&&function(t,n){a[i](n,"mouseover",e.onHover),a[i](n,"mouseleave",e.onOut),a[i](n,"click",e.onClick),a[i](t,"scroll",e.onFrameScroll,!0),a[i](t,"resize",e.onFrameResize)}(r,null==n?void 0:n.getBody())}))},onHover:function(t){t.stopPropagation();var e=this.em,n=t.target,r=(0,_.getComponentView)(n),o=null==r?void 0:r.frameView,i=null==r?void 0:r.model;if(!i)for(var a=n.parentNode;!i&&a&&!(0,b.Mx)(a);)i=(0,_.getComponentModel)(a),a=a.parentNode;this.currentDoc=n.ownerDocument,e.setHovered(i,{useValid:!0}),o&&e.setCurrentFrame(o)},onFrameUpdated:function(){this.updateLocalPos(),this.updateGlobalPos()},onHovered:function(t,e){var n,r=this,o={};e?null===(n=e.views)||void 0===n||n.forEach((function(t){var n=t.el,i=r.getElementPos(n);o={el:n,pos:i,component:e,view:(0,_.getViewEl)(n)},n.ownerDocument===r.currentDoc&&(r.elHovered=o),r.updateToolsLocal(o)})):(this.currentDoc=null,this.elHovered=0,this.updateToolsLocal(),this.canvas.getFrames().forEach((function(t){var e=t.view,n=e&&e.getToolsEl();n&&r.toggleToolsEl(0,0,{el:n})})))},onSelect:function(){var t=this.em,e=t.getSelected(),n=t.getCurrentFrame(),r=e&&e.getView(null==n?void 0:n.model),o=r&&r.el,i={};o&&(0,b.pn)(o)&&(i={el:o,pos:this.getElementPos(o),component:e,view:(0,_.getViewEl)(o)}),this.elSelected=i,this.updateToolsGlobal(),this.updateLocalPos(i),this.initResize(e)},updateGlobalPos:function(){var t=this.getElSelected();t.el&&(t.pos=this.getElementPos(t.el),this.updateToolsGlobal())},updateLocalPos:function(t){var e=this.getElHovered();e.el&&(e.pos=this.getElementPos(e.el),this.updateToolsLocal(t))},getElHovered:function(){return this.elHovered||{}},getElSelected:function(){return this.elSelected||{}},onOut:function(){this.em.setHovered()},toggleToolsEl:function(t,e,n){void 0===n&&(n={});var r=n.el||this.canvas.getToolsEl(e);return r&&(r.style.display=t?"":"none"),r||{}},showElementOffset:function(t,e,n){void 0===n&&(n={}),y&&this.editor.runCommand("show-offset",{el:t,elPos:e,view:n.view,force:1,top:0,left:0})},hideElementOffset:function(t){this.editor.stopCommand("show-offset",{view:t})},showFixedElementOffset:function(t,e){this.editor.runCommand("show-offset",{el:t,elPos:e,state:"Fixed"})},hideFixedElementOffset:function(){this.editor&&this.editor.stopCommand("show-offset",{state:"Fixed"})},hideHighlighter:function(t){this.canvas.getHighlighter(t).style.opacity=0},onClick:function(t){t.stopPropagation(),t.preventDefault();var e=this.em;if(e.get("_cmpDrag"))return e.set("_cmpDrag");var n=t.target,r=(0,_.getComponentModel)(n);if(!r)for(var o=n.parentNode;!r&&o&&!(0,b.Mx)(o);)r=(0,_.getComponentModel)(o),o=o.parentNode;if(r){if(e.isEditing()&&!r.get("textable")&&r.isChildOf("text"))return;this.select(r,t)}},select:function(t,e){void 0===e&&(e={}),t&&(this.editor.select(t,{event:e,useValid:!0}),this.initResize(t))},updateBadge:function(t,e,n){void 0===n&&(n={});var r=this.canvas,o=(0,_.getComponentModel)(t),i=this.getBadge(n),a=i.style;if(o&&o.get("badgable")){if(!n.posOnly){var s=this.canvas.getConfig(),l=o.getIcon(),c=s.pStylePrefix||"",u="".concat(c,"badge"),p=s.customBadgeLabel,f="".concat(l?'<div class="'.concat(u,'__icon">').concat(l,"</div>"):"",'\n <div class="').concat(u,'__name">').concat(o.getName(),"</div>");i.innerHTML=p?p(o):f}a.display="block";var d=r.getTargetToElementFixed(t,i,{pos:e}).top,h=n.leftOff<0?-n.leftOff:0;a.top=d+"px",a.left=h+"px"}else a.display="none"},showHighlighter:function(t){this.canvas.getHighlighter(t).style.opacity=""},initResize:function(t){var e=this.em,n=this.canvas,r=e.Editor,i=!(0,o.isElement)(t)&&(0,b.o5)(t)?t:e.getSelected(),a=null==i?void 0:i.get("resizable"),s=w.q.Resize,l=n.hasCustomSpot(s);if(n.removeSpots({type:s}),i&&a){n.addSpot({type:s,component:i});var c,u=(0,o.isElement)(t)?t:i.getEl();if(l||!u)return;var p=e.config.stylePrefix||"",f="".concat(p,"resizing"),d=function(t,e,n){var r=n.docs;r&&r.forEach((function(e){var n=e.body,r=n.className||"";n.className=("add"==t?"".concat(r," ").concat(f):r.replace(f,"")).trim()}))},h=E({onStart:function(t,r){void 0===r&&(r={});var o=r.el,a=r.config,s=r.resizer,l=a.keyHeight,u=a.keyWidth,p=a.currentUnit,f=a.keepAutoHeight,h=a.keepAutoWidth;d("add",0,r),c=e.Styles.getModelToStyle(i),n.toggleFramesEvents(!1);var g=getComputedStyle(o),m=c.getStyle(),v=m[u];a.autoWidth=h&&"auto"===v,isNaN(parseFloat(v))&&(v=g[u]);var b=m[l];a.autoHeight=f&&"auto"===b,isNaN(parseFloat(b))&&(b=g[l]),s.startDim.w=parseFloat(v),s.startDim.h=parseFloat(b),y=!1,p&&(a.unitHeight=(0,_.getUnitFromValue)(b),a.unitWidth=(0,_.getUnitFromValue)(v))},onMove:function(){r.trigger("component:resize")},onEnd:function(t,e){d("remove",0,e),r.trigger("component:resize"),n.toggleFramesEvents(!0),y=!0},updateTarget:function(t,r,o){if(void 0===o&&(o={}),c){var a=o.store,s=o.selectedHandler,l=o.config,u=l.keyHeight,p=l.keyWidth,f=l.autoHeight,d=l.autoWidth,h=l.unitWidth,g=l.unitHeight,m=["tc","bc"].indexOf(s)>=0,v=["cl","cr"].indexOf(s)>=0,y={};if(!m){var b=n.getBody().offsetWidth,_=r.w<b?r.w:b;y[p]=d?"auto":"".concat(_).concat(h)}v||(y[u]=f?"auto":"".concat(r.h).concat(g)),e.getDragMode(i)&&(y.top="".concat(r.t).concat(g),y.left="".concat(r.l).concat(h));var w=E(E({},y),{__p:!a});c.addStyle(w,{avoidStore:!a}),e.Styles.__emitCmpStyleUpdate(w,{components:e.getSelected()})}}},(0,_.isObject)(a)?a:{});this.resizer=r.runCommand("resize",{el:u,options:h,force:1})}else{if(l)return;r.stopCommand("resize"),this.resizer=null}},updateToolbar:function(t){var e=this.canvas,n=this.config.em,r=t===n?n.getSelected():t,o=e.getToolbarEl(),i=o.style,a=r.get("toolbar"),s=n.config.showToolbar,l=!e.hasCustomSpot(w.q.Select);if(r&&s&&a&&a.length&&l){if(i.display="",!this.toolbar){o.innerHTML="",this.toolbar=new u(a);var c=new v({collection:this.toolbar,em:n});o.appendChild(c.render().el)}this.toolbar.reset(a),i.top="-100px",i.left="0"}else i.display="none"},updateToolbarPos:function(t){var e=this.canvas.getToolbarEl().style;e.top="".concat(t.top).concat("px"),e.left="".concat(t.left).concat("px"),e.opacity=""},getCanvasPosition:function(){return this.canvas.getCanvasView().getPosition()},getBadge:function(t){return void 0===t&&(t={}),this.canvas.getBadgeEl(t.view)},onFrameScroll:function(){this.updateTools(),this.canvas.refreshSpots()},onFrameResize:function(){this.canvas.refreshSpots()},updateTools:function(){this.updateLocalPos(),this.updateGlobalPos()},isCompSelected:function(t){return t&&"selected"===t.get("status")},updateToolsLocal:function(t){var e=this.em.getConfig(),n=t||this.getElHovered(),r=n.el,o=n.pos,i=n.view,a=n.component;if(r){var s=a.get("hoverable"),l=this.lastHovered!==r,c=l?{}:{posOnly:1},u=this.canvas.hasCustomSpot(w.q.Hover);l&&s&&(this.lastHovered=r,u?this.hideHighlighter(i):this.showHighlighter(i),this.showElementOffset(r,o,{view:i})),this.isCompSelected(a)&&(this.hideHighlighter(i),!e.showOffsetsSelected&&this.hideElementOffset(i));var p="px",f=this.toggleToolsEl(1,i),d=f.style,h=this.canvas.canvasRectOffset(r,o),g=h.top,m=h.left;!u&&this.updateBadge(r,o,E(E({},c),{view:i,topOff:g,leftOff:m})),d.top=g+p,d.left=m+p,d.width=o.width+p,d.height=o.height+p,this._trgToolUp("local",{component:a,el:f,top:g,left:m,width:o.width,height:o.height})}else this.lastHovered=0},_upToolbar:(0,o.debounce)((function(){this.updateToolsGlobal({force:1})}),0),_trgToolUp:function(t,e){void 0===e&&(e={}),this.em.trigger("canvas:tools:update",E({type:t},e))},updateToolsGlobal:function(t){void 0===t&&(t={});var e=this.getElSelected(),n=e.el,r=e.pos,o=e.component;if(!n)return this.toggleToolsEl(),void(this.lastSelected=0);var i=this.canvas;(this.lastSelected!==n||t.force)&&(this.lastSelected=n,this.updateToolbar(o));var a="px",s=this.toggleToolsEl(1),l=s.style,c=i.getTargetToElementFixed(n,i.getToolbarEl(),{pos:r}),u=c.canvasOffsetTop,p=c.canvasOffsetLeft;l.top=u+a,l.left=p+a,l.width=r.width+a,l.height=r.height+a,this.updateToolbarPos({top:c.top,left:c.left}),this._trgToolUp("global",{component:o,el:s,top:u,left:p,width:r.width,height:r.height})},updateAttached:(0,o.debounce)((function(){this.updateGlobalPos()}),0),onContainerChange:(0,o.debounce)((function(){this.em.refreshCanvas()}),150),getElementPos:function(t){return this.canvas.getCanvasView().getElementPos(t,{noScroll:!0})},hideBadge:function(){this.getBadge().style.display="none"},cleanPrevious:function(t){t&&t.set({status:"",state:""})},getContentWindow:function(){return this.canvas.getWindow()},run:function(t){(0,_.hasWin)()&&(this.editor=t&&t.get("Editor"),this.enable())},stop:function(t,e,n){if(void 0===n&&(n={}),(0,_.hasWin)()){var r=this.em,o=this.editor;this.onHovered(),this.stopSelectComponent(),!n.preserveSelected&&r.setSelected(),this.toggleToolsEl(),o&&o.stopCommand("resize")}}}},189:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(895);const o={startSelectPosition:function(t,e,n){var r=this;void 0===n&&(n={}),this.isPointed=!1;var o=this.em.Utils,i=t.ownerDocument.body;o&&!this.sorter&&(this.sorter=new o.Sorter({container:i,placer:this.canvas.getPlacerEl(),containerSel:"*",itemSel:"*",pfx:this.ppfx,direction:"a",document:e,wmargin:1,nested:1,em:this.em,canvasRelative:1,scale:function(){return r.em.getZoomDecimal()}})),n.onStart&&(this.sorter.onStart=n.onStart),t&&this.sorter.startSort(t,{container:i})},getOffsetDim:function(){var t=this.offset(this.canvas.getFrameEl()),e=this.offset(this.canvas.getElement());return{top:t.top-e.top,left:t.left-e.left}},stopSelectPosition:function(){this.posTargetCollection=null,this.posIndex="after"==this.posMethod&&0!==this.cDim.length?this.posIndex+1:this.posIndex,this.sorter&&(this.sorter.moved=0,this.sorter.endMove()),this.cDim&&(this.posIsLastEl=0!==this.cDim.length&&"after"==this.posMethod&&this.posIndex==this.cDim.length,this.posTargetEl=0===this.cDim.length?(0,r.default)(this.outsideElem):!this.posIsLastEl&&this.cDim[this.posIndex]?(0,r.default)(this.cDim[this.posIndex][5]).parent():(0,r.default)(this.outsideElem),this.posTargetModel=this.posTargetEl.data("model"),this.posTargetCollection=this.posTargetEl.data("model-comp"))},enable:function(){this.startSelectPosition()},nearFloat:function(t,e,n){var r=t||0,o=e||"before",i=n.length,a=0!==i&&"after"==o&&r==i;return 0!==i&&(!a&&!n[r][4]||n[r-1]&&!n[r-1][4]||a&&!n[r-1][4])?1:0},run:function(){this.enable()},stop:function(){this.stopSelectPosition(),this.$wrapper.css("cursor",""),this.$wrapper.unbind()}}},804:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var r=n(50),o=n(675),i=n(895),a=n(491),s=function(){return s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},s.apply(this,arguments)};const l={getOffsetMethod:function(t){return"get"+(t||"")+"OffsetViewerEl"},run:function(t,e,n){var l=this.canvas,c=n||{},u=c.state||"",p=t.getConfig(),f=this.em.getZoomDecimal(),d=c.el;if(p.showOffsets&&d&&!(0,a.BM)(d)&&(p.showOffsetsSelected||"Fixed"!=u)){if(!l.hasCustomSpot(o.q.Spacing)){var h=s({},c.elPos||l.getElementPos(d));(0,r.isUndefined)(c.top)||(h.top=c.top),(0,r.isUndefined)(c.left)||(h.left=c.left);var g=window.getComputedStyle(d),m=this.ppfx,v=u+"State",y=l[this.getOffsetMethod(u)](n.view);y.style.opacity="";var b=this["marginT"+u],_=this["marginB"+u],w=this["marginL"+u],E=this["marginR"+u],x=this["padT"+u],T=this["padB"+u],C=this["padL"+u],A=this["padR"+u];if(y.childNodes.length&&(this[v]="1",b=y.querySelector("[data-offset-m-t]"),_=y.querySelector("[data-offset-m-b]"),w=y.querySelector("[data-offset-m-l]"),E=y.querySelector("[data-offset-m-r]"),x=y.querySelector("[data-offset-p-t]"),T=y.querySelector("[data-offset-p-b]"),C=y.querySelector("[data-offset-p-l]"),A=y.querySelector("[data-offset-p-r]")),!this[v]){var O=u.toLowerCase(),S=O+"margin-v",k=O+"padding-v",P=(0,i.default)('<div class="'.concat(m,'marginName">')).get(0),j=(0,i.default)('<div class="'.concat(m,'paddingName">')).get(0),N=m+k+"-el",L="".concat(m+S+"-el"," ").concat(m+S),D="".concat(N," ").concat(m+k);b=(0,i.default)('<div class="'.concat(L,'-top"></div>')).get(0),_=(0,i.default)('<div class="'.concat(L,'-bottom"></div>')).get(0),w=(0,i.default)('<div class="'.concat(L,'-left"></div>')).get(0),E=(0,i.default)('<div class="'.concat(L,'-right"></div>')).get(0),x=(0,i.default)('<div class="'.concat(D,'-top"></div>')).get(0),T=(0,i.default)('<div class="'.concat(D,'-bottom"></div>')).get(0),C=(0,i.default)('<div class="'.concat(D,'-left"></div>')).get(0),A=(0,i.default)('<div class="'.concat(D,'-right"></div>')).get(0),this["marginT"+u]=b,this["marginB"+u]=_,this["marginL"+u]=w,this["marginR"+u]=E,this["padT"+u]=x,this["padB"+u]=T,this["padL"+u]=C,this["padR"+u]=A,P.appendChild(b),P.appendChild(_),P.appendChild(w),P.appendChild(E),j.appendChild(x),j.appendChild(T),j.appendChild(C),j.appendChild(A),y.appendChild(P),y.appendChild(j),this[v]="1"}var I="px",R=parseFloat(g.marginLeft.replace(I,""))*f,M=parseFloat(g.marginRight.replace(I,""))*f,B=parseFloat(g.marginTop.replace(I,""))*f,F=parseFloat(g.marginBottom.replace(I,""))*f,U=b.style,H=_.style,V=w.style,q=E.style,z=x.style,G=T.style,W=C.style,Y=A.style,K=parseFloat(h.left),$=parseFloat(g.width)*f+I;U.height=B+I,U.width=$,U.top=h.top-B+I,U.left=K+I,H.height=F+I,H.width=$,H.top=h.top+h.height+I,H.left=K+I;var X=h.height+B+F+I,Q=h.top-B+I;V.height=X,V.width=R+I,V.top=Q,V.left=K-R+I,q.height=X,q.width=M+I,q.top=Q,q.left=K+h.width+I;var Z=parseFloat(g.paddingTop)*f;z.height=Z+I;var J=parseFloat(g.paddingBottom)*f;G.height=J+I;var tt=h.height-J-Z+I,et=h.top+Z+I;W.height=tt,W.width=parseFloat(g.paddingLeft)*f+I,W.top=et;var nt=parseFloat(g.paddingRight)*f;Y.height=tt,Y.width=nt+I,Y.top=et}}else t.stopCommand("".concat(this.id),n)},stop:function(t,e,n){void 0===n&&(n={});var r=(n||{}).state||"",o=this.getOffsetMethod(r),i=n.view;this.canvas[o](i).style.opacity=0}}},434:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var r=n(50),o=n(163);const i={init:function(){(0,r.bindAll)(this,"_onFramesChange")},run:function(t){this.toggleVis(t,!0)},stop:function(t){this.toggleVis(t,!1)},toggleVis:function(t,e){if(void 0===e&&(e=!0),!t.Commands.isActive("preview")){var n=t.Canvas,r=e?"on":"off";n.getModel()[r]("change:frames",this._onFramesChange),this.handleFrames(n.getFrames(),e)}},handleFrames:function(t,e){var n=this;t.forEach((function(t){var r;(null===(r=t.view)||void 0===r?void 0:r.loaded)&&n._upFrame(t,e),t.__ol||(t.on("loaded",(function(){return n._upFrame(t)})),t.__ol=!0)}))},_onFramesChange:function(t,e){this.handleFrames(e)},_upFrame:function(t,e){var n,r=this,i=r.ppfx,a=r.em,s=r.id,l=((0,o.isDef)(e)?e:a.Commands.isActive(s))?"add":"remove",c="".concat(i,"dashed");null===(n=t.view)||void 0===n||n.getBody().classList[l](c)}}},346:(t,e,n)=>{n.d(e,{FE:()=>u,G7:()=>p,Hn:()=>c,pH:()=>f,vA:()=>o});var r,o,i=n(316),a=n.n(i),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(){return l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},l.apply(this,arguments)},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(a().Model),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(a().Collection),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(a().View);!function(t){t.Screen="screen",t.World="world"}(o||(o={}));var f={x:0,y:0};l(l({},f),{width:0,height:0})},330:(t,e,n)=>{n.d(e,{Z:()=>l});var r,o=n(50),i=n(346),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(e,n,r){void 0===e&&(e={}),void 0===r&&(r=!1);var o=t.call(this,e)||this;return o.itemsView="",o.itemType="type",o.reuseView=!1,o.config=n||e.config||{},r&&o.listenTo(o.collection,"add",o.addTo),o.items=[],o}return a(e,t),e.prototype.addTo=function(t){this.add(t)},e.prototype.itemViewNotFound=function(t){var e=this.config,n=this.ns,r=e.em,o="".concat(n?"[".concat(n,"]: "):"","'").concat(t,"' type not found");r&&r.logWarning(o)},e.prototype.add=function(t,e){var n,r=this,i=r.config,a=r.reuseView,s=r.items,l=this.itemsView||{},c=e||null,u=this.itemView,p=t.get(this.itemType);l[p]?u=l[p]:!p||l[p]||(0,o.includes)(["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"],p)||this.itemViewNotFound(p),n=t.view&&a?t.view:new u({model:t,config:i},i),s&&s.push(n);var f=n.render().el;c?c.appendChild(f):this.$el.append(f)},e.prototype.render=function(){var t=document.createDocumentFragment();return this.clearItems(),this.$el.empty(),this.collection.length&&this.collection.each((function(e){this.add(e,t)}),this),this.$el.append(t),this.onRender(),this},e.prototype.onRender=function(){},e.prototype.onRemoveBefore=function(t,e){},e.prototype.onRemove=function(t,e){},e.prototype.remove=function(e){void 0===e&&(e={});var n=this.items;return this.onRemoveBefore(n,e),this.clearItems(),t.prototype.remove.call(this),this.onRemove(n,e),this},e.prototype.clearItems=function(){this.items},e}(i.G7);const l=s;s.prototype.itemView=""},668:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(50),o=n(491),i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},a=["x","y"];const s=function(){function t(t){return void 0===t&&(t={}),this.opts={snapOffset:5,scale:1},(0,r.bindAll)(this,"drag","stop","keyHandle","handleScroll"),this.setOptions(t),this.delta={x:0,y:0},this.lastScroll={x:0,y:0},this.lastScrollDiff={x:0,y:0},this.startPointer={x:0,y:0},this.startPosition={x:0,y:0},this.globScrollDiff={x:0,y:0},this.currentPointer={x:0,y:0},this.position={x:0,y:0},this.guidesStatic=[],this.guidesTarget=[],this.docs=[],this}return t.prototype.setOptions=function(t){void 0===t&&(t={}),this.opts=i(i({},this.opts),t)},t.prototype.toggleDrag=function(t){var e=this.getDocumentEl(),n=this.getContainerEl(),r=this.getWindowEl(),i=t?"on":"off",a={on:o.on,off:o.S1};a[i](n,"mousemove dragover",this.drag),a[i](e,"mouseup dragend touchend",this.stop),a[i](e,"keydown",this.keyHandle),a[i](r,"scroll",this.handleScroll)},t.prototype.handleScroll=function(){var t=this.lastScroll,e=this.delta,n=this.getScrollInfo(),r={x:n.x-t.x,y:n.y-t.y};this.move(e.x+r.x,e.y+r.y),this.lastScrollDiff=r},t.prototype.start=function(t){var e=this.opts,n=e.onStart;this.toggleDrag(!0),this.startPointer=this.getPointerPos(t),this.guidesStatic=(0,r.result)(e,"guidesStatic")||[],this.guidesTarget=(0,r.result)(e,"guidesTarget")||[],(0,r.isFunction)(n)&&n(t,this),this.startPosition=this.getStartPosition(),this.lastScrollDiff={x:0,y:0},this.globScrollDiff={x:0,y:0},this.drag(t)},t.prototype.drag=function(t){var e=this,n=this,o=n.opts,s=n.lastScrollDiff,l=n.globScrollDiff,c=o.onDrag,u=this.startPointer,p=this.getPointerPos(t),f={x:l.x+s.x,y:l.y+s.y};this.globScrollDiff=f;var d={x:p.x-u.x+f.x,y:p.y-u.y+f.y};this.lastScrollDiff={x:0,y:0};var h=this.lockedAxis;"x"===(h=t.shiftKey?!h&&this.detectAxisLock(d.x,d.y):null)?d.x=u.x:"y"===h&&(d.y=u.y);var g=function(n){a.forEach((function(t){return n[t]=n[t]*(0,r.result)(o,"scale")})),e.delta=n,e.move(n.x,n.y),(0,r.isFunction)(c)&&c(t,e)},m=i({},d);if(this.currentPointer=p,this.lockedAxis=h,this.lastScroll=this.getScrollInfo(),g(d),this.guidesTarget.length){var v=this.snapGuides(m),y=v.newDelta,b=v.trgX,_=v.trgY;(b||_)&&g(y)}0===t.which&&this.stop(t)},t.prototype.snapGuides=function(t){var e=this,n=t,o=this.trgX,i=this.trgY;return this.guidesTarget.forEach((function(n){n.x&&e.trgX||n.y&&e.trgY||(n.active=!1,e.guidesStatic.forEach((function(a){if(!(n.y&&a.x||n.x&&a.y)){var s=n.y&&a.y,l=s?"y":"x",c=n[l],u=a[l],p=t[l],f=s?i:o;if(e.isPointIn(c,u)&&(0,r.isUndefined)(f)){var d=p-(c-u);e.setGuideLock(n,d)}}})))})),o=this.trgX,i=this.trgY,a.forEach((function(o){var i=o.toUpperCase(),a=e["trg".concat(i)];a&&!e.isPointIn(t[o],a.lock)&&(e.setGuideLock(a,null),a=null),a&&!(0,r.isUndefined)(a.lock)&&(n[o]=a.lock)})),{newDelta:n,trgX:this.trgX,trgY:this.trgY}},t.prototype.isPointIn=function(t,e,n){var r=(void 0===n?{}:n).offset||this.opts.snapOffset||0;return t>=e&&t<=e+r||t<=e&&t>=e-r},t.prototype.setGuideLock=function(t,e){var n=(0,r.isUndefined)(t.x)?"Y":"X",o="trg".concat(n);return null!==e?(t.active=!0,t.lock=e,this[o]=t):(delete t.active,delete t.lock,delete this[o]),t},t.prototype.stop=function(t,e){void 0===e&&(e={});var n=this.delta,o=!!e.cancel,i=o?0:n.x,a=o?0:n.y;this.toggleDrag(),this.lockedAxis=null,this.move(i,a,!0);var s=this.opts.onEnd;(0,r.isFunction)(s)&&s(t,this,{cancelled:o})},t.prototype.keyHandle=function(t){(0,o.kl)(t)&&this.stop(t,{cancel:!0})},t.prototype.move=function(t,e,n){var o=this.el,i=this.opts,a=this.startPosition;if(a){var s=i.setPosition,l=a.x+t,c=a.y+e;this.position={x:l,y:c,end:n},(0,r.isFunction)(s)&&s(this.position),o&&(o.style.left="".concat(l,"px"),o.style.top="".concat(c,"px"))}},t.prototype.getContainerEl=function(){var t=this.opts.container;return t?[t]:this.getDocumentEl()},t.prototype.getWindowEl=function(){return this.getContainerEl().map((function(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow}))},t.prototype.getDocumentEl=function(t){var e=this.opts.doc;if(t=t||this.el,!this.docs.length){var n=[document];t&&n.push(t.ownerDocument),e&&n.push(e),this.docs=n}return this.docs},t.prototype.getPointerPos=function(t){var e=this.opts.getPointerPosition,n=(0,o.VB)(t);return e?e(t):{x:n.clientX,y:n.clientY}},t.prototype.getStartPosition=function(){var t=this.el,e=this.opts.getPosition,n={x:0,y:0};return(0,r.isFunction)(e)?n=e():t&&(n={x:parseFloat(t.style.left),y:parseFloat(t.style.top)}),n},t.prototype.getScrollInfo=function(){var t=this.opts.doc,e=t&&t.body;return{y:e?e.scrollTop:0,x:e?e.scrollLeft:0}},t.prototype.detectAxisLock=function(t,e){var n=t,r=e,o=Math.abs(n),i=Math.abs(r);return r>=o||r<=-o?"x":n>i||n<-i?"y":void 0},t}()},895:(t,e,n)=>{n.r(e),n.d(e,{default:()=>gt});var r="undefined"!=typeof document?document:null,o="undefined"!=typeof window?window:null,i=Array.prototype,a=i.filter,s=i.indexOf,l=i.map,c=i.push,u=i.reverse,p=i.slice,f=i.splice,d=/^#[\w-]*$/,h=/^\.[\w-]*$/,g=/<.+>/,m=/^\w+$/;function v(t,e){return void 0===e&&(e=r),h.test(t)?e.getElementsByClassName(t.slice(1)):m.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t)}function y(t,e){if(void 0===e&&(e=r),t){if(t.__cash)return t;var n=t;if(S(t)){if(e.__cash&&(e=e[0]),!(n=d.test(t)?e.getElementById(t.slice(1)):g.test(t)?ft(t):v(t,e)))return}else if(O(t))return this.ready(t);(n.nodeType||n===o)&&(n=[n]),this.length=n.length;for(var i=0,a=this.length;i<a;i++)this[i]=n[i]}}function b(t,e){return new y(t,e)}var _=b.fn=b.prototype=y.prototype={constructor:b,__cash:!0,length:0,splice:f};_.get=function(t){return void 0===t?p.call(this):this[t<0?t+this.length:t]},_.eq=function(t){return b(this.get(t))},_.first=function(){return this.eq(0)},_.last=function(){return this.eq(-1)},_.map=function(t){return b(l.call(this,(function(e,n){return t.call(e,n,e)})))},_.slice=function(){return b(p.apply(this,arguments))};var w=/(?:^\w|[A-Z]|\b\w)/g,E=/[\s-_]+/g;function x(t){return t.replace(w,(function(t,e){return t[e?"toUpperCase":"toLowerCase"]()})).replace(E,"")}function T(t,e){for(var n=0,r=t.length;n<r&&!1!==e.call(t[n],t[n],n,t);n++);}b.camelCase=x,b.each=T,_.each=function(t){return T(this,(function(e,n){return t.call(e,n,e)})),this},_.removeProp=function(t){return this.each((function(e,n){delete n[t]}))},b.extend=_.extend=function(t){void 0===t&&(t=this);for(var e=arguments,n=e.length,r=n<2?0:1;r<n;r++)for(var o in e[r])t[o]=e[r][o];return t};var C=1;function A(t,e){var n=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!n&&n.call(t,e)}function O(t){return"function"==typeof t}function S(t){return"string"==typeof t}function k(t){return!isNaN(parseFloat(t))&&isFinite(t)}b.guid=C,b.matches=A,b.isFunction=O,b.isString=S,b.isNumeric=k;var P=Array.isArray;function j(t){return S(t)?function(e,n){return A(n,t)}:t.__cash?function(e,n){return t.is(n)}:function(t,e,n){return e===n}}b.isArray=P,_.prop=function(t,e){if(t){if(S(t))return arguments.length<2?this[0]&&this[0][t]:this.each((function(n,r){r[t]=e}));for(var n in t)this.prop(n,t[n]);return this}},_.filter=function(t){if(!t)return b();var e=O(t)?t:j(t);return b(a.call(this,(function(n,r){return e.call(n,r,n,t)})))};var N=/\S+/g;function L(t){return S(t)&&t.match(N)||[]}function D(t){return t.filter((function(t,e,n){return n.indexOf(t)===e}))}function I(t,e,n){if(1===t.nodeType){var r=o.getComputedStyle(t,null);return e?n?r.getPropertyValue(e):r[e]:r}}function R(t,e){return parseInt(I(t,e),10)||0}_.hasClass=function(t){var e=L(t),n=!1;return e.length&&this.each((function(t,r){return!(n=r.classList.contains(e[0]))})),n},_.removeAttr=function(t){var e=L(t);return e.length?this.each((function(t,n){T(e,(function(t){n.removeAttribute(t)}))})):this},_.attr=function(t,e){if(t){if(S(t)){if(arguments.length<2){if(!this[0])return;var n=this[0].getAttribute(t);return null===n?void 0:n}return null===e?this.removeAttr(t):this.each((function(n,r){r.setAttribute(t,e)}))}for(var r in t)this.attr(r,t[r]);return this}},_.toggleClass=function(t,e){var n=L(t),r=void 0!==e;return n.length?this.each((function(t,o){T(n,(function(t){r?e?o.classList.add(t):o.classList.remove(t):o.classList.toggle(t)}))})):this},_.addClass=function(t){return this.toggleClass(t,!0)},_.removeClass=function(t){return arguments.length?this.toggleClass(t,!1):this.attr("class","")},b.unique=D,_.add=function(t,e){return b(D(this.get().concat(b(t,e).get())))};var M=/^--/;function B(t){return M.test(t)}var F={},U=r&&r.createElement("div"),H=U?U.style:{},V=["webkit","moz","ms","o"];function q(t,e){if(void 0===e&&(e=B(t)),e)return t;if(!F[t]){var n=x(t),r=""+n.charAt(0).toUpperCase()+n.slice(1);T((n+" "+V.join(r+" ")+r).split(" "),(function(e){if(e in H)return F[t]=e,!1}))}return F[t]}b.prefixedProp=q;var z={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function G(t,e,n){return void 0===n&&(n=B(t)),n||z[t]||!k(e)?e:e+"px"}_.css=function(t,e){if(S(t)){var n=B(t);return t=q(t,n),arguments.length<2?this[0]&&I(this[0],t,n):t?(e=G(t,e,n),this.each((function(r,o){1===o.nodeType&&(n?o.style.setProperty(t,e):o.style[t]=e)}))):this}for(var r in t)this.css(r,t[r]);return this};var W="__cashData",Y=/^data-(.*)/;function K(t){return t[W]=t[W]||{}}function $(t,e){var n=K(t);if(e){if(!(e in n)){var r=t.dataset?t.dataset[e]||t.dataset[x(e)]:b(t).attr("data-"+e);if(void 0!==r){try{r=JSON.parse(r)}catch(t){}n[e]=r}}return n[e]}return n}function X(t,e){return R(t,"border"+(e?"Left":"Top")+"Width")+R(t,"padding"+(e?"Left":"Top"))+R(t,"padding"+(e?"Right":"Bottom"))+R(t,"border"+(e?"Right":"Bottom")+"Width")}function Q(t,e){for(var n=0,r=e.length;n<r;n++)if(t.indexOf(e[n])<0)return!1;return!0}function Z(t,e,n){T(t[n],(function(t){t[0];var r=t[1];e.removeEventListener(n,r)})),delete t[n]}b.hasData=function(t){return W in t},_.data=function(t,e){var n=this;if(!t){if(!this[0])return;return T(this[0].attributes,(function(t){var e=t.name.match(Y);e&&n.data(e[1])})),$(this[0])}if(S(t))return void 0===e?this[0]&&$(this[0],t):this.each((function(n,r){return function(t,e,n){K(t)[e]=n}(r,t,e)}));for(var r in t)this.data(r,t[r]);return this},_.removeData=function(t){return this.each((function(e,n){return function(t,e){void 0===e?delete t[W]:delete K(t)[e]}(n,t)}))},T(["Width","Height"],(function(t){_["inner"+t]=function(){if(this[0])return this[0]===o?o["inner"+t]:this[0]["client"+t]}})),T(["width","height"],(function(t,e){_[t]=function(n){return this[0]?arguments.length?(n=parseInt(n,10),this.each((function(r,o){if(1===o.nodeType){var i=I(o,"boxSizing");o.style[t]=G(t,n+("border-box"===i?X(o,!e):0))}}))):this[0]===o?this[0][x("outer-"+t)]:this[0].getBoundingClientRect()[t]-X(this[0],!e):void 0===n?void 0:this}})),T(["Width","Height"],(function(t,e){_["outer"+t]=function(n){if(this[0])return this[0]===o?o["outer"+t]:this[0]["offset"+t]+(n?R(this[0],"margin"+(e?"Top":"Left"))+R(this[0],"margin"+(e?"Bottom":"Right")):0)}}));var J="__cashEvents";function tt(t){return t[J]=t[J]||{}}function et(t){var e=t.split(".");return[e[0],e.slice(1).sort()]}function nt(t,e,n,r){var o=tt(t);if(e){var i=o[e];if(!i)return;r&&(r.guid=r.guid||C++),o[e]=i.filter((function(o){var i=o[0],a=o[1];if(r&&a.guid!==r.guid||!Q(i,n))return!0;t.removeEventListener(e,a)}))}else if(n&&n.length)for(e in o)nt(t,e,n,r);else for(e in o)Z(o,t,e)}_.off=function(t,e){var n=this;return void 0===t?this.each((function(t,e){return nt(e)})):T(L(t),(function(t){var r=et(t),o=r[0],i=r[1];n.each((function(t,n){return nt(n,o,i,e)}))})),this},_.on=function(t,e,n,r){var o=this;if(!S(t)){for(var i in t)this.on(i,e,t[i]);return this}return O(e)&&(n=e,e=!1),T(L(t),(function(t){var i=et(t),a=i[0],s=i[1];o.each((function(t,o){var i=function t(i){if(!i.namespace||Q(s,i.namespace.split("."))){var l=o;if(e){for(var c=i.target;!A(c,e);){if(c===o)return;if(!(c=c.parentNode))return}l=c}i.namespace=i.namespace||"";var u=n.call(l,i,i.data);r&&nt(o,a,s,t),!1===u&&(i.preventDefault(),i.stopPropagation())}};i.guid=n.guid=n.guid||C++,function(t,e,n,r){r.guid=r.guid||C++;var o=tt(t);o[e]=o[e]||[],o[e].push([n,r]),t.addEventListener(e,r)}(o,a,s,i)}))})),this},_.one=function(t,e,n){return this.on(t,e,n,!0)},_.ready=function(t){var e=function(){return t(b)};return"loading"!==r.readyState?setTimeout(e):r.addEventListener("DOMContentLoaded",e),this},_.trigger=function(t,e){var n=t;if(S(t)){var o=et(t),i=o[0],a=o[1];(n=r.createEvent("HTMLEvents")).initEvent(i,!0,!0),n.namespace=a.join(".")}return n.data=e,this.each((function(t,e){e.dispatchEvent(n)}))};var rt=/select-one/i,ot=/select-multiple/i;function it(t){var e=t.type;return rt.test(e)?function(t){return t.selectedIndex<0?null:t.options[t.selectedIndex].value}(t):ot.test(e)?function(t){var e=[];return T(t.options,(function(t){!t.selected||t.disabled||t.parentNode.disabled||e.push(t.value)})),e}(t):t.value}var at=/%20/g,st=/file|reset|submit|button|image/i,lt=/radio|checkbox/i;_.serialize=function(){var t="";return this.each((function(e,n){T(n.elements||[n],(function(e){if(!e.disabled&&e.name&&"FIELDSET"!==e.tagName&&!st.test(e.type)&&(!lt.test(e.type)||e.checked)){var n=it(e);void 0!==n&&T(P(n)?n:[n],(function(n){t+=function(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(at,"+")}(e.name,n)}))}}))})),t.substr(1)},_.val=function(t){return void 0===t?this[0]&&it(this[0]):this.each((function(e,n){var r=ot.test(n.type),o=null===t?r?[]:"":t;r&&P(o)?T(n.options,(function(t){t.selected=o.indexOf(t.value)>=0})):n.value=o}))},_.clone=function(){return this.map((function(t,e){return e.cloneNode(!0)}))},_.detach=function(){return this.each((function(t,e){e.parentNode&&e.parentNode.removeChild(e)}))};var ct,ut=/^\s*<(\w+)[^>]*>/,pt=/^\s*<(\w+)\s*\/?>(?:<\/\1>)?\s*$/;function ft(t){if(function(){if(!ct){var t=r.createElement("table"),e=r.createElement("tr");ct={"*":r.createElement("div"),tr:r.createElement("tbody"),td:e,th:e,thead:t,tbody:t,tfoot:t}}}(),!S(t))return[];if(pt.test(t))return[r.createElement(RegExp.$1)];var e=ut.test(t)&&RegExp.$1,n=ct[e]||ct["*"];return n.innerHTML=t,b(n.childNodes).detach().get()}function dt(t,e,n){if(void 0!==e){var r=S(e);!r&&e.length?T(e,(function(e){return dt(t,e,n)})):T(t,r?function(t){t.insertAdjacentHTML(n?"afterbegin":"beforeend",e)}:function(t,r){return function(t,e,n){n?t.insertBefore(e,t.childNodes[0]):t.appendChild(e)}(t,r?e.cloneNode(!0):e,n)})}}b.parseHTML=ft,_.empty=function(){var t=this[0];if(t)for(;t.firstChild;)t.removeChild(t.firstChild);return this},_.append=function(){var t=this;return T(arguments,(function(e){dt(t,e)})),this},_.appendTo=function(t){return dt(b(t),this),this},_.html=function(t){if(void 0===t)return this[0]&&this[0].innerHTML;var e=t.nodeType?t[0].outerHTML:t;return this.each((function(t,n){n.innerHTML=e}))},_.insertAfter=function(t){var e=this;return b(t).each((function(t,n){var r=n.parentNode;e.each((function(e,o){r.insertBefore(t?o.cloneNode(!0):o,n.nextSibling)}))})),this},_.after=function(){var t=this;return T(u.apply(arguments),(function(e){u.apply(b(e).slice()).insertAfter(t)})),this},_.insertBefore=function(t){var e=this;return b(t).each((function(t,n){var r=n.parentNode;e.each((function(e,o){r.insertBefore(t?o.cloneNode(!0):o,n)}))})),this},_.before=function(){var t=this;return T(arguments,(function(e){b(e).insertBefore(t)})),this},_.prepend=function(){var t=this;return T(arguments,(function(e){dt(t,e,!0)})),this},_.prependTo=function(t){return dt(b(t),u.apply(this.slice()),!0),this},_.remove=function(){return this.detach().off()},_.replaceWith=function(t){var e=this;return this.each((function(n,r){var o=r.parentNode;if(o){var i=n?b(t).clone():b(t);if(!i[0])return e.remove(),!1;o.replaceChild(i[0],r),b(i[0]).after(i.slice(1))}}))},_.replaceAll=function(t){return b(t).replaceWith(this),this},_.text=function(t){return void 0===t?this[0]?this[0].textContent:"":this.each((function(e,n){n.textContent=t}))};var ht=r&&r.documentElement;_.offset=function(){var t=this[0];if(t){var e=t.getBoundingClientRect();return{top:e.top+o.pageYOffset-ht.clientTop,left:e.left+o.pageXOffset-ht.clientLeft}}},_.offsetParent=function(){return b(this[0]&&this[0].offsetParent)},_.position=function(){var t=this[0];if(t)return{left:t.offsetLeft,top:t.offsetTop}},_.children=function(t){var e=[];return this.each((function(t,n){c.apply(e,n.children)})),e=b(D(e)),t?e.filter((function(e,n){return A(n,t)})):e},_.contents=function(){var t=[];return this.each((function(e,n){c.apply(t,"IFRAME"===n.tagName?[n.contentDocument]:n.childNodes)})),b(t.length&&D(t))},_.find=function(t){for(var e=[],n=0,r=this.length;n<r;n++){var o=v(t,this[n]);o.length&&c.apply(e,o)}return b(e.length&&D(e))},_.has=function(t){var e=S(t)?function(e,n){return!!v(t,n).length}:function(e,n){return n.contains(t)};return this.filter(e)},_.is=function(t){if(!t||!this[0])return!1;var e=j(t),n=!1;return this.each((function(r,o){return!(n=e(r,o,t))})),n},_.next=function(){return b(this[0]&&this[0].nextElementSibling)},_.not=function(t){if(!t||!this[0])return this;var e=j(t);return this.filter((function(n,r){return!e(n,r,t)}))},_.parent=function(){var t=[];return this.each((function(e,n){n&&n.parentNode&&t.push(n.parentNode)})),b(D(t))},_.index=function(t){var e=t?b(t)[0]:this[0],n=t?this:b(e).parent().children();return s.call(n,e)},_.closest=function(t){return t&&this[0]?this.is(t)?this.filter(t):this.parent().closest(t):b()},_.parents=function(t){var e,n=[];return this.each((function(o,i){for(e=i;e&&e.parentNode&&e!==r.body.parentNode;)e=e.parentNode,(!t||t&&A(e,t))&&n.push(e)})),b(D(n))},_.prev=function(){return b(this[0]&&this[0].previousElementSibling)},_.siblings=function(){var t=this[0];return this.parent().children().filter((function(e,n){return n!==t}))};const gt=b},491:(t,e,n)=>{n.d(e,{$Q:()=>d,BM:()=>b,FW:()=>u,G1:()=>i,GX:()=>E,L_:()=>s,Mx:()=>a,R3:()=>h,S1:()=>P,SJ:()=>y,Ut:()=>w,VB:()=>C,Vb:()=>S,cx:()=>l,dL:()=>f,kl:()=>A,o5:()=>_,on:()=>k,pn:()=>p,r$:()=>O,rw:()=>m,sE:()=>c,sN:()=>T,t3:()=>v,ut:()=>g});var r=n(50),o=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},i="transitionend oTransitionEnd transitionend webkitTransitionEnd",a=function(t){return(null==t?void 0:t.nodeType)===Node.DOCUMENT_NODE},s=function(t){var e=t&&t.parentNode;e&&e.removeChild(t)};function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(Array.isArray(t[0])?t[0]:o([],t,!0)).filter(Boolean).join(" ")}var c=function(t,e){return t.querySelectorAll(e)},u=function(t,e){return void 0===e&&(e={}),t&&t.setAttribute&&(0,r.each)(e,(function(e,n){return t.setAttribute(n,e)}))},p=function(t){return t&&!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},f=function(t,e){var n;null===(n=t.parentNode)||void 0===n||n.replaceChild(e,t)},d=function(t,e,n){var o=t.childNodes,i=o.length,a=(0,r.isUndefined)(n)?i:n;(0,r.isString)(e)&&(t.insertAdjacentHTML("beforeEnd",e),e=t.lastChild,t.removeChild(e)),a>=i?t.appendChild(e):t.insertBefore(e,o[a])},h=function(t,e){return d(t,e)},g=function(t,e,n){void 0===e&&(e={});var o=document.createElement(t);return e&&(0,r.each)(e,(function(t,e){return o.setAttribute(e,t)})),n&&((0,r.isString)(n)?o.innerHTML=n:o.appendChild(n)),o},m=function(t){return document.createTextNode(t)},v=function(t,e){var n,r=t.type;try{n=new window[e](r,t)}catch(t){(n=document.createEvent(e)).initEvent(r,!0,!0)}return n._parentEvent=t,0===r.indexOf("key")&&(n.keyCodeVal=t.keyCode,["keyCode","which"].forEach((function(t){Object.defineProperty(n,t,{get:function(){return this.keyCodeVal}})}))),n},y=function(t,e){void 0===e&&(e=[]),(Array.isArray(e)?e:[e]).forEach((function(e){var n=e.tag||"div",o=e.attributes||{},i=document.createElement(n);(0,r.each)(o,(function(t,e){i.setAttribute(e,t)})),t.appendChild(i)}))},b=function(t){return(null==t?void 0:t.nodeType)===Node.TEXT_NODE},_=function(t){return t&&!b(t)&&!function(t){return(null==t?void 0:t.nodeType)===Node.COMMENT_NODE}(t)},w=function(t){var e,n={top:0,left:0,width:0,height:0};if(!t)return n;if(b(t)){var r=document.createRange();r.selectNode(t),e=r.getBoundingClientRect(),r.detach()}return e||(t.getBoundingClientRect?t.getBoundingClientRect():n)},E=function(t){var e=(null==t?void 0:t.ownerDocument)||document,n=e.documentElement,r=e.defaultView||window;return{x:(r.pageXOffset||n.scrollLeft||0)-(n.clientLeft||0),y:(r.pageYOffset||n.scrollTop||0)-(n.clientTop||0)}},x=function(t){return t.which||t.keyCode},T=function(t){return String.fromCharCode(x(t))},C=function(t){return t.touches&&t.touches[0]?t.touches[0]:t},A=function(t){return 27===x(t)},O=function(t){return 13===x(t)},S=function(t){return function(t){return t.ctrlKey}(t)||t.metaKey},k=function(t,e,n,o){var i=e.split(/\s+/),a=(0,r.isArray)(t)?t:[t];i.forEach((function(t){a.forEach((function(e){return null==e?void 0:e.addEventListener(t,n,o)}))}))},P=function(t,e,n,o){var i=e.split(/\s+/),a=(0,r.isArray)(t)?t:[t];i.forEach((function(t){a.forEach((function(e){return null==e?void 0:e.removeEventListener(t,n,o)}))}))}},163:(t,e,n)=>{n.r(e),n.d(e,{appendStyles:()=>h,buildBase64UrlFromSvg:()=>M,camelCase:()=>y,capitalize:()=>k,createId:()=>R,deepMerge:()=>C,escape:()=>x,escapeNodeContent:()=>T,find:()=>E,getComponentModel:()=>D,getComponentView:()=>L,getElement:()=>w,getGlobal:()=>c,getModel:()=>A,getUiClass:()=>d,getUnitFromValue:()=>m,getViewEl:()=>j,hasDnd:()=>_,hasWin:()=>l,isComponent:()=>N,isDef:()=>s,isEmptyObj:()=>S,isObject:()=>O,isRule:()=>P,matches:()=>f,normalizeFloat:()=>b,setViewEl:()=>I,shallowDiff:()=>g,toLowerCase:()=>u,upFirst:()=>v,wait:()=>a});var r=n(50),o=n(491),i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},a=function(t){return void 0===t&&(t=0),new Promise((function(e){return setTimeout(e,t)}))},s=function(t){return void 0!==t},l=function(){return"undefined"!=typeof window},c=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:n.g},u=function(t){return(t||"").toLowerCase()},p=l()?window.Element.prototype:{},f=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.msMatchesSelector,d=function(t,e){var n=t.getConfig(),r=n.stylePrefix;return[n.customUI&&"".concat(r,"cui"),e].filter((function(t){return t})).join(" ")},h=function(t,e){void 0===e&&(e={});var n=(0,r.isArray)(t)?function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],t,!0):[t];if(n.length){var o=n.shift();if(o&&(!e.unique||!document.querySelector('link[href="'.concat(o,'"]')))){var i=document.head,a=document.createElement("link");a.href=o,a.rel="stylesheet",e.prepand?i.insertBefore(a,i.firstChild):i.appendChild(a)}h(n)}},g=function(t,e){var n={},o=(0,r.keys)(e);for(var i in t)if(t.hasOwnProperty(i)){var a=t[i],s=e[i];o.indexOf(i)>=0?a!==s&&(n[i]=s):n[i]=null}for(var i in e)e.hasOwnProperty(i)&&(0,r.isUndefined)(t[i])&&(n[i]=e[i]);return n},m=function(t){return t.replace(parseFloat(t),"")},v=function(t){return t[0].toUpperCase()+t.toLowerCase().slice(1)},y=function(t){return t.replace(/-./g,(function(t){return t[1].toUpperCase()}))},b=function(t,e,n){void 0===e&&(e=1),void 0===n&&(n=0);var r=0;if(isNaN(t))return n;if(t=parseFloat(t),Math.floor(t)!==t){var o=e.toString().split(".")[1];r=o?o.length:0}return r?parseFloat(t.toFixed(r)):t},_=function(t){return"draggable"in document.createElement("i")&&(!t||t.config.nativeDnD)},w=function(t){return(0,r.isElement)(t)||(0,o.BM)(t)?t:t&&t.getEl?t.getEl():void 0},E=function(t,e){var n=null;return t.some((function(r,o){return e(r,o,t)?(n=r,1):0})),n},x=function(t){return void 0===t&&(t=""),"".concat(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")},T=function(t){return void 0===t&&(t=""),"".concat(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},C=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=i({},t[0]),r=1;r<t.length;r++){var o=i({},t[r]);for(var a in o){var s=n[a],l=o[a];O(s)&&O(l)?n[a]=C(s,l):n[a]=l}}return n},A=function(t,e){var n=t;return!e&&t&&t.__cashData?n=t.__cashData.model:(0,r.isElement)(t)&&(n=e(t).data("model")),n},O=function(t){return t&&!Array.isArray(t)&&"object"==typeof t},S=function(t){return Object.keys(t).length<=0},k=function(t){return void 0===t&&(t=""),t&&t.charAt(0).toUpperCase()+t.substring(1)},P=function(t){return t&&t.toCSS},j=function(t){return null==t?void 0:t.__gjsv},N=function(t){return!!(null==t?void 0:t.toHTML)},L=function(t){return j(t)},D=function(t){var e;return null===(e=L(t))||void 0===e?void 0:e.model},I=function(t,e){t.__gjsv=e},R=function(t){void 0===t&&(t=16);for(var e="",n=0;n<t;n++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return e},M=function(t){if(t&&"<svg"===t.substr(0,4)){var e="";return l()?e=window.btoa(t):"undefined"!=typeof Buffer&&(e=Buffer.from(t,"utf8").toString("base64")),e?"data:image/svg+xml;base64,".concat(e):t}return t}},828:(t,e,n)=>{var r={"./CanvasClear":858,"./CanvasClear.ts":858,"./CanvasMove":884,"./CanvasMove.ts":884,"./CommandAbstract":790,"./CommandAbstract.ts":790,"./ComponentDelete":180,"./ComponentDelete.ts":180,"./ComponentDrag":544,"./ComponentDrag.ts":544,"./ComponentEnter":236,"./ComponentEnter.ts":236,"./ComponentExit":368,"./ComponentExit.ts":368,"./ComponentNext":243,"./ComponentNext.ts":243,"./ComponentPrev":400,"./ComponentPrev.ts":400,"./ComponentStyleClear":910,"./ComponentStyleClear.ts":910,"./CopyComponent":744,"./CopyComponent.ts":744,"./DeleteComponent":517,"./DeleteComponent.ts":517,"./ExportTemplate":457,"./ExportTemplate.ts":457,"./Fullscreen":975,"./Fullscreen.ts":975,"./MoveComponent":191,"./MoveComponent.ts":191,"./OpenAssets":912,"./OpenAssets.ts":912,"./OpenBlocks":117,"./OpenBlocks.ts":117,"./OpenLayers":614,"./OpenLayers.ts":614,"./OpenStyleManager":801,"./OpenStyleManager.ts":801,"./OpenTraitManager":395,"./OpenTraitManager.ts":395,"./PasteComponent":98,"./PasteComponent.ts":98,"./Preview":129,"./Preview.ts":129,"./Resize":116,"./Resize.ts":116,"./SelectComponent":407,"./SelectComponent.ts":407,"./SelectPosition":189,"./SelectPosition.ts":189,"./ShowOffset":804,"./ShowOffset.ts":804,"./SwitchVisibility":434,"./SwitchVisibility.ts":434};function o(t){var e=i(t);return n(e)}function i(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id=828},50:(t,e,n)=>{n.r(e),n.d(e,{VERSION:()=>o,after:()=>De,all:()=>tn,allKeys:()=>mt,any:()=>en,assign:()=>Dt,before:()=>Ie,bind:()=>Ee,bindAll:()=>Ce,chain:()=>ye,chunk:()=>Bn,clone:()=>Bt,collect:()=>Ke,compact:()=>On,compose:()=>Le,constant:()=>Z,contains:()=>nn,countBy:()=>vn,create:()=>Mt,debounce:()=>Pe,default:()=>qn,defaults:()=>It,defer:()=>Se,delay:()=>Oe,detect:()=>Ge,difference:()=>kn,drop:()=>Cn,each:()=>Ye,escape:()=>ae,every:()=>tn,extend:()=>Lt,extendOwn:()=>Dt,filter:()=>Ze,find:()=>Ge,findIndex:()=>Fe,findKey:()=>Me,findLastIndex:()=>Ue,findWhere:()=>We,first:()=>Tn,flatten:()=>Sn,foldl:()=>Xe,foldr:()=>Qe,forEach:()=>Ye,functions:()=>jt,get:()=>qt,groupBy:()=>gn,has:()=>zt,head:()=>Tn,identity:()=>Gt,include:()=>nn,includes:()=>nn,indexBy:()=>mn,indexOf:()=>qe,initial:()=>xn,inject:()=>Xe,intersection:()=>Ln,invert:()=>Pt,invoke:()=>rn,isArguments:()=>$,isArray:()=>W,isArrayBuffer:()=>M,isBoolean:()=>S,isDataView:()=>G,isDate:()=>L,isElement:()=>k,isEmpty:()=>lt,isEqual:()=>gt,isError:()=>I,isFinite:()=>X,isFunction:()=>U,isMap:()=>Tt,isMatch:()=>ct,isNaN:()=>Q,isNull:()=>A,isNumber:()=>N,isObject:()=>C,isRegExp:()=>D,isSet:()=>At,isString:()=>j,isSymbol:()=>R,isTypedArray:()=>ot,isUndefined:()=>O,isWeakMap:()=>Ct,isWeakSet:()=>Ot,iteratee:()=>Xt,keys:()=>st,last:()=>An,lastIndexOf:()=>ze,map:()=>Ke,mapObject:()=>Zt,matcher:()=>Wt,matches:()=>Wt,max:()=>sn,memoize:()=>Ae,methods:()=>jt,min:()=>ln,mixin:()=>Un,negate:()=>Ne,noop:()=>Jt,now:()=>re,object:()=>Rn,omit:()=>En,once:()=>Re,pairs:()=>kt,partial:()=>we,partition:()=>yn,pick:()=>wn,pluck:()=>on,property:()=>Yt,propertyOf:()=>te,random:()=>ne,range:()=>Mn,reduce:()=>Xe,reduceRight:()=>Qe,reject:()=>Je,rest:()=>Cn,restArguments:()=>T,result:()=>ge,sample:()=>pn,select:()=>Ze,shuffle:()=>fn,size:()=>bn,some:()=>en,sortBy:()=>dn,sortedIndex:()=>He,tail:()=>Cn,take:()=>Tn,tap:()=>Ft,template:()=>he,templateSettings:()=>le,throttle:()=>ke,times:()=>ee,toArray:()=>un,toPath:()=>Ut,transpose:()=>Dn,unescape:()=>se,union:()=>Nn,uniq:()=>jn,unique:()=>jn,uniqueId:()=>ve,unzip:()=>Dn,values:()=>St,where:()=>an,without:()=>Pn,wrap:()=>je,zip:()=>In});var r={};n.r(r),n.d(r,{VERSION:()=>o,after:()=>De,all:()=>tn,allKeys:()=>mt,any:()=>en,assign:()=>Dt,before:()=>Ie,bind:()=>Ee,bindAll:()=>Ce,chain:()=>ye,chunk:()=>Bn,clone:()=>Bt,collect:()=>Ke,compact:()=>On,compose:()=>Le,constant:()=>Z,contains:()=>nn,countBy:()=>vn,create:()=>Mt,debounce:()=>Pe,default:()=>Hn,defaults:()=>It,defer:()=>Se,delay:()=>Oe,detect:()=>Ge,difference:()=>kn,drop:()=>Cn,each:()=>Ye,escape:()=>ae,every:()=>tn,extend:()=>Lt,extendOwn:()=>Dt,filter:()=>Ze,find:()=>Ge,findIndex:()=>Fe,findKey:()=>Me,findLastIndex:()=>Ue,findWhere:()=>We,first:()=>Tn,flatten:()=>Sn,foldl:()=>Xe,foldr:()=>Qe,forEach:()=>Ye,functions:()=>jt,get:()=>qt,groupBy:()=>gn,has:()=>zt,head:()=>Tn,identity:()=>Gt,include:()=>nn,includes:()=>nn,indexBy:()=>mn,indexOf:()=>qe,initial:()=>xn,inject:()=>Xe,intersection:()=>Ln,invert:()=>Pt,invoke:()=>rn,isArguments:()=>$,isArray:()=>W,isArrayBuffer:()=>M,isBoolean:()=>S,isDataView:()=>G,isDate:()=>L,isElement:()=>k,isEmpty:()=>lt,isEqual:()=>gt,isError:()=>I,isFinite:()=>X,isFunction:()=>U,isMap:()=>Tt,isMatch:()=>ct,isNaN:()=>Q,isNull:()=>A,isNumber:()=>N,isObject:()=>C,isRegExp:()=>D,isSet:()=>At,isString:()=>j,isSymbol:()=>R,isTypedArray:()=>ot,isUndefined:()=>O,isWeakMap:()=>Ct,isWeakSet:()=>Ot,iteratee:()=>Xt,keys:()=>st,last:()=>An,lastIndexOf:()=>ze,map:()=>Ke,mapObject:()=>Zt,matcher:()=>Wt,matches:()=>Wt,max:()=>sn,memoize:()=>Ae,methods:()=>jt,min:()=>ln,mixin:()=>Un,negate:()=>Ne,noop:()=>Jt,now:()=>re,object:()=>Rn,omit:()=>En,once:()=>Re,pairs:()=>kt,partial:()=>we,partition:()=>yn,pick:()=>wn,pluck:()=>on,property:()=>Yt,propertyOf:()=>te,random:()=>ne,range:()=>Mn,reduce:()=>Xe,reduceRight:()=>Qe,reject:()=>Je,rest:()=>Cn,restArguments:()=>T,result:()=>ge,sample:()=>pn,select:()=>Ze,shuffle:()=>fn,size:()=>bn,some:()=>en,sortBy:()=>dn,sortedIndex:()=>He,tail:()=>Cn,take:()=>Tn,tap:()=>Ft,template:()=>he,templateSettings:()=>le,throttle:()=>ke,times:()=>ee,toArray:()=>un,toPath:()=>Ut,transpose:()=>Dn,unescape:()=>se,union:()=>Nn,uniq:()=>jn,unique:()=>jn,uniqueId:()=>ve,unzip:()=>Dn,values:()=>St,where:()=>an,without:()=>Pn,wrap:()=>je,zip:()=>In});var o="1.13.6",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},a=Array.prototype,s=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,p=s.toString,f=s.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,g=Array.isArray,m=Object.keys,v=Object.create,y=d&&ArrayBuffer.isView,b=isNaN,_=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function T(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+e];switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r);case 2:return t.call(this,arguments[0],arguments[1],r)}var i=Array(e+1);for(o=0;o<e;o++)i[o]=arguments[o];return i[e]=r,t.apply(this,i)}}function C(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function A(t){return null===t}function O(t){return void 0===t}function S(t){return!0===t||!1===t||"[object Boolean]"===p.call(t)}function k(t){return!(!t||1!==t.nodeType)}function P(t){var e="[object "+t+"]";return function(t){return p.call(t)===e}}const j=P("String"),N=P("Number"),L=P("Date"),D=P("RegExp"),I=P("Error"),R=P("Symbol"),M=P("ArrayBuffer");var B=P("Function"),F=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof F&&(B=function(t){return"function"==typeof t||!1});const U=B,H=P("Object");var V=h&&H(new DataView(new ArrayBuffer(8))),q="undefined"!=typeof Map&&H(new Map),z=P("DataView");const G=V?function(t){return null!=t&&U(t.getInt8)&&M(t.buffer)}:z,W=g||P("Array");function Y(t,e){return null!=t&&f.call(t,e)}var K=P("Arguments");!function(){K(arguments)||(K=function(t){return Y(t,"callee")})}();const $=K;function X(t){return!R(t)&&_(t)&&!isNaN(parseFloat(t))}function Q(t){return N(t)&&b(t)}function Z(t){return function(){return t}}function J(t){return function(e){var n=t(e);return"number"==typeof n&&n>=0&&n<=x}}function tt(t){return function(e){return null==e?void 0:e[t]}}const et=tt("byteLength"),nt=J(et);var rt=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const ot=d?function(t){return y?y(t)&&!G(t):nt(t)&&rt.test(p.call(t))}:Z(!1),it=tt("length");function at(t,e){e=function(t){for(var e={},n=t.length,r=0;r<n;++r)e[t[r]]=!0;return{contains:function(t){return!0===e[t]},push:function(n){return e[n]=!0,t.push(n)}}}(e);var n=E.length,r=t.constructor,o=U(r)&&r.prototype||s,i="constructor";for(Y(t,i)&&!e.contains(i)&&e.push(i);n--;)(i=E[n])in t&&t[i]!==o[i]&&!e.contains(i)&&e.push(i)}function st(t){if(!C(t))return[];if(m)return m(t);var e=[];for(var n in t)Y(t,n)&&e.push(n);return w&&at(t,e),e}function lt(t){if(null==t)return!0;var e=it(t);return"number"==typeof e&&(W(t)||j(t)||$(t))?0===e:0===it(st(t))}function ct(t,e){var n=st(e),r=n.length;if(null==t)return!r;for(var o=Object(t),i=0;i<r;i++){var a=n[i];if(e[a]!==o[a]||!(a in o))return!1}return!0}function ut(t){return t instanceof ut?t:this instanceof ut?void(this._wrapped=t):new ut(t)}function pt(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,et(t))}ut.VERSION=o,ut.prototype.value=function(){return this._wrapped},ut.prototype.valueOf=ut.prototype.toJSON=ut.prototype.value,ut.prototype.toString=function(){return String(this._wrapped)};var ft="[object DataView]";function dt(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var o=typeof t;return("function"===o||"object"===o||"object"==typeof e)&&ht(t,e,n,r)}function ht(t,e,n,r){t instanceof ut&&(t=t._wrapped),e instanceof ut&&(e=e._wrapped);var o=p.call(t);if(o!==p.call(e))return!1;if(V&&"[object Object]"==o&&G(t)){if(!G(e))return!1;o=ft}switch(o){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e);case"[object ArrayBuffer]":case ft:return ht(pt(t),pt(e),n,r)}var i="[object Array]"===o;if(!i&&ot(t)){if(et(t)!==et(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;i=!0}if(!i){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(U(a)&&a instanceof a&&U(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===t)return r[c]===e;if(n.push(t),r.push(e),i){if((c=t.length)!==e.length)return!1;for(;c--;)if(!dt(t[c],e[c],n,r))return!1}else{var u,f=st(t);if(c=f.length,st(e).length!==c)return!1;for(;c--;)if(!Y(e,u=f[c])||!dt(t[u],e[u],n,r))return!1}return n.pop(),r.pop(),!0}function gt(t,e){return dt(t,e)}function mt(t){if(!C(t))return[];var e=[];for(var n in t)e.push(n);return w&&at(t,e),e}function vt(t){var e=it(t);return function(n){if(null==n)return!1;var r=mt(n);if(it(r))return!1;for(var o=0;o<e;o++)if(!U(n[t[o]]))return!1;return t!==Et||!U(n[yt])}}var yt="forEach",bt=["clear","delete"],_t=["get","has","set"],wt=bt.concat(yt,_t),Et=bt.concat(_t),xt=["add"].concat(bt,yt,"has");const Tt=q?vt(wt):P("Map"),Ct=q?vt(Et):P("WeakMap"),At=q?vt(xt):P("Set"),Ot=P("WeakSet");function St(t){for(var e=st(t),n=e.length,r=Array(n),o=0;o<n;o++)r[o]=t[e[o]];return r}function kt(t){for(var e=st(t),n=e.length,r=Array(n),o=0;o<n;o++)r[o]=[e[o],t[e[o]]];return r}function Pt(t){for(var e={},n=st(t),r=0,o=n.length;r<o;r++)e[t[n[r]]]=n[r];return e}function jt(t){var e=[];for(var n in t)U(t[n])&&e.push(n);return e.sort()}function Nt(t,e){return function(n){var r=arguments.length;if(e&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=t(i),s=a.length,l=0;l<s;l++){var c=a[l];e&&void 0!==n[c]||(n[c]=i[c])}return n}}const Lt=Nt(mt),Dt=Nt(st),It=Nt(mt,!0);function Rt(t){if(!C(t))return{};if(v)return v(t);var e=function(){};e.prototype=t;var n=new e;return e.prototype=null,n}function Mt(t,e){var n=Rt(t);return e&&Dt(n,e),n}function Bt(t){return C(t)?W(t)?t.slice():Lt({},t):t}function Ft(t,e){return e(t),t}function Ut(t){return W(t)?t:[t]}function Ht(t){return ut.toPath(t)}function Vt(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e[r]]}return n?t:void 0}function qt(t,e,n){var r=Vt(t,Ht(e));return O(r)?n:r}function zt(t,e){for(var n=(e=Ht(e)).length,r=0;r<n;r++){var o=e[r];if(!Y(t,o))return!1;t=t[o]}return!!n}function Gt(t){return t}function Wt(t){return t=Dt({},t),function(e){return ct(e,t)}}function Yt(t){return t=Ht(t),function(e){return Vt(e,t)}}function Kt(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,o){return t.call(e,n,r,o)};case 4:return function(n,r,o,i){return t.call(e,n,r,o,i)}}return function(){return t.apply(e,arguments)}}function $t(t,e,n){return null==t?Gt:U(t)?Kt(t,e,n):C(t)&&!W(t)?Wt(t):Yt(t)}function Xt(t,e){return $t(t,e,1/0)}function Qt(t,e,n){return ut.iteratee!==Xt?ut.iteratee(t,e):$t(t,e,n)}function Zt(t,e,n){e=Qt(e,n);for(var r=st(t),o=r.length,i={},a=0;a<o;a++){var s=r[a];i[s]=e(t[s],s,t)}return i}function Jt(){}function te(t){return null==t?Jt:function(e){return qt(t,e)}}function ee(t,e,n){var r=Array(Math.max(0,t));e=Kt(e,n,1);for(var o=0;o<t;o++)r[o]=e(o);return r}function ne(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}ut.toPath=Ut,ut.iteratee=Xt;const re=Date.now||function(){return(new Date).getTime()};function oe(t){var e=function(e){return t[e]},n="(?:"+st(t).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(o,e):t}}const ie={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},ae=oe(ie),se=oe(Pt(ie)),le=ut.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ce=/(.)^/,ue={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},pe=/\\|'|\r|\n|\u2028|\u2029/g;function fe(t){return"\\"+ue[t]}var de=/^\s*(\w|\$)+\s*$/;function he(t,e,n){!e&&n&&(e=n),e=It({},e,ut.templateSettings);var r=RegExp([(e.escape||ce).source,(e.interpolate||ce).source,(e.evaluate||ce).source].join("|")+"|$","g"),o=0,i="__p+='";t.replace(r,(function(e,n,r,a,s){return i+=t.slice(o,s).replace(pe,fe),o=s+e.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),e})),i+="';\n";var a,s=e.variable;if(s){if(!de.test(s))throw new Error("variable is not a bare identifier: "+s)}else i="with(obj||{}){\n"+i+"}\n",s="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=new Function(s,"_",i)}catch(t){throw t.source=i,t}var l=function(t){return a.call(this,t,ut)};return l.source="function("+s+"){\n"+i+"}",l}function ge(t,e,n){var r=(e=Ht(e)).length;if(!r)return U(n)?n.call(t):n;for(var o=0;o<r;o++){var i=null==t?void 0:t[e[o]];void 0===i&&(i=n,o=r),t=U(i)?i.call(t):i}return t}var me=0;function ve(t){var e=++me+"";return t?t+e:e}function ye(t){var e=ut(t);return e._chain=!0,e}function be(t,e,n,r,o){if(!(r instanceof e))return t.apply(n,o);var i=Rt(t.prototype),a=t.apply(i,o);return C(a)?a:i}var _e=T((function(t,e){var n=_e.placeholder,r=function(){for(var o=0,i=e.length,a=Array(i),s=0;s<i;s++)a[s]=e[s]===n?arguments[o++]:e[s];for(;o<arguments.length;)a.push(arguments[o++]);return be(t,r,this,this,a)};return r}));_e.placeholder=ut;const we=_e,Ee=T((function(t,e,n){if(!U(t))throw new TypeError("Bind must be called on a function");var r=T((function(o){return be(t,r,e,this,n.concat(o))}));return r})),xe=J(it);function Te(t,e,n,r){if(r=r||[],e||0===e){if(e<=0)return r.concat(t)}else e=1/0;for(var o=r.length,i=0,a=it(t);i<a;i++){var s=t[i];if(xe(s)&&(W(s)||$(s)))if(e>1)Te(s,e-1,n,r),o=r.length;else for(var l=0,c=s.length;l<c;)r[o++]=s[l++];else n||(r[o++]=s)}return r}const Ce=T((function(t,e){var n=(e=Te(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=e[n];t[r]=Ee(t[r],t)}return t}));function Ae(t,e){var n=function(r){var o=n.cache,i=""+(e?e.apply(this,arguments):r);return Y(o,i)||(o[i]=t.apply(this,arguments)),o[i]};return n.cache={},n}const Oe=T((function(t,e,n){return setTimeout((function(){return t.apply(null,n)}),e)})),Se=we(Oe,ut,1);function ke(t,e,n){var r,o,i,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:re(),r=null,a=t.apply(o,i),r||(o=i=null)},c=function(){var c=re();s||!1!==n.leading||(s=c);var u=e-(c-s);return o=this,i=arguments,u<=0||u>e?(r&&(clearTimeout(r),r=null),s=c,a=t.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=o=i=null},c}function Pe(t,e,n){var r,o,i,a,s,l=function(){var c=re()-o;e>c?r=setTimeout(l,e-c):(r=null,n||(a=t.apply(s,i)),r||(i=s=null))},c=T((function(c){return s=this,i=c,o=re(),r||(r=setTimeout(l,e),n&&(a=t.apply(s,i))),a}));return c.cancel=function(){clearTimeout(r),r=i=s=null},c}function je(t,e){return we(e,t)}function Ne(t){return function(){return!t.apply(this,arguments)}}function Le(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function De(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Ie(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}const Re=we(Ie,2);function Me(t,e,n){e=Qt(e,n);for(var r,o=st(t),i=0,a=o.length;i<a;i++)if(e(t[r=o[i]],r,t))return r}function Be(t){return function(e,n,r){n=Qt(n,r);for(var o=it(e),i=t>0?0:o-1;i>=0&&i<o;i+=t)if(n(e[i],i,e))return i;return-1}}const Fe=Be(1),Ue=Be(-1);function He(t,e,n,r){for(var o=(n=Qt(n,r,1))(e),i=0,a=it(t);i<a;){var s=Math.floor((i+a)/2);n(t[s])<o?i=s+1:a=s}return i}function Ve(t,e,n){return function(r,o,i){var a=0,s=it(r);if("number"==typeof i)t>0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=e(u.call(r,a,s),Q))>=0?i+a:-1;for(i=t>0?a:s-1;i>=0&&i<s;i+=t)if(r[i]===o)return i;return-1}}const qe=Ve(1,Fe,He),ze=Ve(-1,Ue);function Ge(t,e,n){var r=(xe(t)?Fe:Me)(t,e,n);if(void 0!==r&&-1!==r)return t[r]}function We(t,e){return Ge(t,Wt(e))}function Ye(t,e,n){var r,o;if(e=Kt(e,n),xe(t))for(r=0,o=t.length;r<o;r++)e(t[r],r,t);else{var i=st(t);for(r=0,o=i.length;r<o;r++)e(t[i[r]],i[r],t)}return t}function Ke(t,e,n){e=Qt(e,n);for(var r=!xe(t)&&st(t),o=(r||t).length,i=Array(o),a=0;a<o;a++){var s=r?r[a]:a;i[a]=e(t[s],s,t)}return i}function $e(t){return function(e,n,r,o){var i=arguments.length>=3;return function(e,n,r,o){var i=!xe(e)&&st(e),a=(i||e).length,s=t>0?0:a-1;for(o||(r=e[i?i[s]:s],s+=t);s>=0&&s<a;s+=t){var l=i?i[s]:s;r=n(r,e[l],l,e)}return r}(e,Kt(n,o,4),r,i)}}const Xe=$e(1),Qe=$e(-1);function Ze(t,e,n){var r=[];return e=Qt(e,n),Ye(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}function Je(t,e,n){return Ze(t,Ne(Qt(e)),n)}function tn(t,e,n){e=Qt(e,n);for(var r=!xe(t)&&st(t),o=(r||t).length,i=0;i<o;i++){var a=r?r[i]:i;if(!e(t[a],a,t))return!1}return!0}function en(t,e,n){e=Qt(e,n);for(var r=!xe(t)&&st(t),o=(r||t).length,i=0;i<o;i++){var a=r?r[i]:i;if(e(t[a],a,t))return!0}return!1}function nn(t,e,n,r){return xe(t)||(t=St(t)),("number"!=typeof n||r)&&(n=0),qe(t,e,n)>=0}const rn=T((function(t,e,n){var r,o;return U(e)?o=e:(e=Ht(e),r=e.slice(0,-1),e=e[e.length-1]),Ke(t,(function(t){var i=o;if(!i){if(r&&r.length&&(t=Vt(t,r)),null==t)return;i=t[e]}return null==i?i:i.apply(t,n)}))}));function on(t,e){return Ke(t,Yt(e))}function an(t,e){return Ze(t,Wt(e))}function sn(t,e,n){var r,o,i=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,l=(t=xe(t)?t:St(t)).length;s<l;s++)null!=(r=t[s])&&r>i&&(i=r);else e=Qt(e,n),Ye(t,(function(t,n,r){((o=e(t,n,r))>a||o===-1/0&&i===-1/0)&&(i=t,a=o)}));return i}function ln(t,e,n){var r,o,i=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,l=(t=xe(t)?t:St(t)).length;s<l;s++)null!=(r=t[s])&&r<i&&(i=r);else e=Qt(e,n),Ye(t,(function(t,n,r){((o=e(t,n,r))<a||o===1/0&&i===1/0)&&(i=t,a=o)}));return i}var cn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function un(t){return t?W(t)?u.call(t):j(t)?t.match(cn):xe(t)?Ke(t,Gt):St(t):[]}function pn(t,e,n){if(null==e||n)return xe(t)||(t=St(t)),t[ne(t.length-1)];var r=un(t),o=it(r);e=Math.max(Math.min(e,o),0);for(var i=o-1,a=0;a<e;a++){var s=ne(a,i),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,e)}function fn(t){return pn(t,1/0)}function dn(t,e,n){var r=0;return e=Qt(e,n),on(Ke(t,(function(t,n,o){return{value:t,index:r++,criteria:e(t,n,o)}})).sort((function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index})),"value")}function hn(t,e){return function(n,r,o){var i=e?[[],[]]:{};return r=Qt(r,o),Ye(n,(function(e,o){var a=r(e,o,n);t(i,e,a)})),i}}const gn=hn((function(t,e,n){Y(t,n)?t[n].push(e):t[n]=[e]})),mn=hn((function(t,e,n){t[n]=e})),vn=hn((function(t,e,n){Y(t,n)?t[n]++:t[n]=1})),yn=hn((function(t,e,n){t[n?0:1].push(e)}),!0);function bn(t){return null==t?0:xe(t)?t.length:st(t).length}function _n(t,e,n){return e in n}const wn=T((function(t,e){var n={},r=e[0];if(null==t)return n;U(r)?(e.length>1&&(r=Kt(r,e[1])),e=mt(t)):(r=_n,e=Te(e,!1,!1),t=Object(t));for(var o=0,i=e.length;o<i;o++){var a=e[o],s=t[a];r(s,a,t)&&(n[a]=s)}return n})),En=T((function(t,e){var n,r=e[0];return U(r)?(r=Ne(r),e.length>1&&(n=e[1])):(e=Ke(Te(e,!1,!1),String),r=function(t,n){return!nn(e,n)}),wn(t,r,n)}));function xn(t,e,n){return u.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function Tn(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:xn(t,t.length-e)}function Cn(t,e,n){return u.call(t,null==e||n?1:e)}function An(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[t.length-1]:Cn(t,Math.max(0,t.length-e))}function On(t){return Ze(t,Boolean)}function Sn(t,e){return Te(t,e,!1)}const kn=T((function(t,e){return e=Te(e,!0,!0),Ze(t,(function(t){return!nn(e,t)}))})),Pn=T((function(t,e){return kn(t,e)}));function jn(t,e,n,r){S(e)||(r=n,n=e,e=!1),null!=n&&(n=Qt(n,r));for(var o=[],i=[],a=0,s=it(t);a<s;a++){var l=t[a],c=n?n(l,a,t):l;e&&!n?(a&&i===c||o.push(l),i=c):n?nn(i,c)||(i.push(c),o.push(l)):nn(o,l)||o.push(l)}return o}const Nn=T((function(t){return jn(Te(t,!0,!0))}));function Ln(t){for(var e=[],n=arguments.length,r=0,o=it(t);r<o;r++){var i=t[r];if(!nn(e,i)){var a;for(a=1;a<n&&nn(arguments[a],i);a++);a===n&&e.push(i)}}return e}function Dn(t){for(var e=t&&sn(t,it).length||0,n=Array(e),r=0;r<e;r++)n[r]=on(t,r);return n}const In=T(Dn);function Rn(t,e){for(var n={},r=0,o=it(t);r<o;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n}function Mn(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),o=Array(r),i=0;i<r;i++,t+=n)o[i]=t;return o}function Bn(t,e){if(null==e||e<1)return[];for(var n=[],r=0,o=t.length;r<o;)n.push(u.call(t,r,r+=e));return n}function Fn(t,e){return t._chain?ut(e).chain():e}function Un(t){return Ye(jt(t),(function(e){var n=ut[e]=t[e];ut.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),Fn(this,n.apply(ut,t))}})),ut}Ye(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=a[t];ut.prototype[t]=function(){var n=this._wrapped;return null!=n&&(e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Fn(this,n)}})),Ye(["concat","join","slice"],(function(t){var e=a[t];ut.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Fn(this,t)}}));const Hn=ut;var Vn=Un(r);Vn._=Vn;const qn=Vn}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{r.d(o,{ZP:()=>bh,kr:()=>yh,j7:()=>vh});var t=r(50),e=r(163);function n(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=t.raw;return o.reduce((function(t,r,i){var a=n[i-1],s=o[i-1];return Array.isArray(a)?a=a.join(""):s&&"$"===s.slice(-1)?t=t.slice(0,-1):a=(0,e.escape)(a),t+a+r}))}const i={stylePrefix:"gjs-",components:"",style:"",fromElement:!1,projectData:void 0,noticeOnUnload:!0,showOffsets:!1,showOffsetsSelected:!1,forceClass:!0,height:"900px",width:"100%",log:["warning","error"],baseCss:"",protectedCss:"* { box-sizing: border-box; } body {margin: 0;}",canvasCss:"",defaultCommand:"select-comp",showToolbar:!0,showDevices:!0,devicePreviewMode:!1,mediaCondition:"max-width",tagVarStart:"{[ ",tagVarEnd:" ]}",keepEmptyTextNodes:!1,jsInHtml:!0,nativeDnD:!0,multipleSelection:!0,optsHtml:{},optsCss:{},avoidInlineStyle:!0,avoidDefaults:!0,clearStyles:!1,listenToEl:[],cssIcons:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css",icons:{close:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg>',move:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"/></svg>',plus:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" /></svg>',caret:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M7,10L12,15L17,10H7Z" /></svg>',delete:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" /></svg>',copy:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" /></svg>',arrowUp:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z" /></svg>',chevron:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z" /></svg>',eye:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z" /></svg>',eyeOff:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z" /></svg>'},i18n:{},undoManager:{},assetManager:{},canvas:{},layerManager:{},storageManager:{},richTextEditor:{},domComponents:{},modal:{},codeManager:{},panels:{},commands:{},cssComposer:{},selectorManager:{},deviceManager:{},styleManager:{},blockManager:{},traitManager:{},textViewCode:"Code",keepUnusedStyles:!1,customUI:!1};var a,s=r(316),l=r.n(s),c=r(895),u=r(346),p=(a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},a(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e}(u.Hn);const d=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return p(n,e),n.prototype.getByComponent=function(t){var e=this;return this.filter((function(n){return e.getComponent(n)===t}))[0]},n.prototype.addComponent=function(e,n){var r=this,o=((0,t.isArray)(e)?e:[e]).filter((function(t){return!r.hasComponent(t)})).map((function(t){return new f({component:t})}))[0];return this.push(o,n)},n.prototype.getComponent=function(t){return t.get("component")},n.prototype.hasComponent=function(t){var e=this.getByComponent(t);return e&&this.contains(e)},n.prototype.lastComponent=function(){var t=this.last();return t?this.getComponent(t):void 0},n.prototype.allComponents=function(){var t=this;return this.map((function(e){return t.getComponent(e)})).filter((function(t){return t}))},n.prototype.removeComponent=function(e,n){var r=this,o=((0,t.isArray)(e)?e:[e]).map((function(t){return r.getByComponent(t)}));return this.remove(o,n)},n}(u.FE);var h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(){return g=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},g.apply(this,arguments)},m=function(){function n(n,r,o){this.cls=[],this._em=n,this._name=r;var i=this.name.charAt(0).toLowerCase()+this.name.slice(1),a=(0,t.isUndefined)(n.config[i])?n.config[this.name]:n.config[i],s=!0===a?{}:a||{};s.pStylePrefix=n.config.pStylePrefix||"",(0,t.isUndefined)(a)||a||(s._disable=1),s.em=n,this._config=(0,e.deepMerge)(o||{},s)}return Object.defineProperty(n.prototype,"em",{get:function(){return this._em},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),n.prototype.render=function(t){},n.prototype.postLoad=function(t){},Object.defineProperty(n.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),n.prototype.getConfig=function(t){return t?this.config[t]:this.config},n.prototype.__logWarn=function(t,e){void 0===e&&(e={}),this.em.logWarning("[".concat(this.name,"]: ").concat(t),e)},n.prototype.__appendTo=function(){var e=this.getConfig().appendTo;if(e){var n=(0,t.isElement)(e)?e:document.querySelector(e);if(!n)return this.__logWarn('"appendTo" element not found');n.appendChild(this.render())}},n}();const v=m;var y=function(n){function r(t,e,r,o,i,a){void 0===a&&(a={});var s=n.call(this,t,e,i)||this;return s.cls=[],s.private=!1,s.all=r,s.events=o,!a.skipListen&&s.__initListen(),s}return h(r,n),r.prototype.postLoad=function(t){},r.prototype.render=function(t){},r.prototype.getProjectData=function(t){var e={},n=this.storageKey;return n&&(e[n]=t||this.getAll()),e},r.prototype.loadProjectData=function(t,n){void 0===t&&(t={}),void 0===n&&(n={});var r=n.all,o=n.onResult,i=n.reset,a=this.storageKey,s={action:"load"},l=r||this.all,c=t[a];if("string"==typeof c)try{c=JSON.parse(c)}catch(t){this.__logWarn("Data parsing failed",{input:c})}return i&&c&&l.reset(void 0,s),o?c&&o(c,s):c&&(0,e.isDef)(c.length)&&l.reset(c,s),c},r.prototype.clear=function(t){void 0===t&&(t={});var e=this.all;return e&&e.reset(void 0,t),this},r.prototype.getAll=function(){return function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],this.all.models,!0)},r.prototype.getAllMap=function(){return this.getAll().reduce((function(t,e){return t[e.get(e.idAttribute)]=e,t}),{})},r.prototype.__initListen=function(t){void 0===t&&(t={});var e=this,n=e.all,r=e.em,o=e.events;n&&r&&n.on("add",(function(t,e,n){return r.trigger(o.add,t,n)})).on("remove",(function(t,e,n){return r.trigger(o.remove,t,n)})).on("change",(function(t,e){return r.trigger(o.update,t,t.changedAttributes(),e)})).on("all",this.__catchAllEvent,this),this.cls=[n].concat(t.collections||[]),(t.propagate||[]).forEach((function(t){var e=t.entity,o=t.event;e.on("all",(function(t,e,i,a){var s=g({event:t},a||i);[r,n].map((function(t){return t.trigger(o,e,s)}))}))}))},r.prototype.__remove=function(e,n){var r=this;void 0===n&&(n={});var o=this.em,i=(0,t.isString)(e)?this.get(e):e,a=function(){return i&&r.all.remove(i,n),i};return!n.silent&&(null==o||o.trigger(this.events.removeBefore,i,a,n)),!n.abort&&a()},r.prototype.__catchAllEvent=function(t,e,n,r){var o=this.em,i=this.events,a=r||n;o&&i.all&&o.trigger(i.all,{event:t,model:e,options:a}),this.__onAllEvent()},r.prototype.__appendTo=function(e){var n=this.config.appendTo;if(n){var r=(0,t.isElement)(n)?n:document.querySelector(n);if(!r)return this.__logWarn('"appendTo" element not found');r.appendChild(this.render(e))}},r.prototype.__onAllEvent=function(){},r.prototype._createId=function(t){void 0===t&&(t=16);var n,r=this.getAll().length+t,o=this.getAllMap();do{n=(0,e.createId)(r)}while(o[n]);return n},r.prototype.__listenAdd=function(t,e){var n=this;t.on("add",(function(t,r,o){return n.em.trigger(e,t,o)}))},r.prototype.__listenRemove=function(t,e){var n=this;t.on("remove",(function(t,r,o){return n.em.trigger(e,t,o)}))},r.prototype.__listenUpdate=function(t,e){var n=this;t.on("change",(function(t,r){return n.em.trigger(e,t,t.changedAttributes(),r)}))},r.prototype.__destroy=function(){var t;this.cls.forEach((function(t){t.stopListening(),t.reset()})),null===(t=this.view)||void 0===t||t.remove(),this.view=void 0},r}(m);const b={stylePrefix:"cv-",scripts:[],styles:[],customBadgeLabel:void 0,autoscrollLimit:50,extHl:!1,frameContent:"<!DOCTYPE html>",frameStyle:"\n body { background-color: #fff }\n * ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1) }\n * ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2) }\n * ::-webkit-scrollbar { width: 10px }\n ",notTextable:["button","a","input[type=checkbox]","input[type=radio]"],allowExternalDrop:!0};var _=r(642);const w={default:"",devices:[{id:"desktop",name:"Desktop",width:""},{id:"tablet",name:"Tablet",width:"770px",widthMedia:"992px"},{id:"mobileLandscape",name:"Mobile landscape",width:"568px",widthMedia:"768px"},{id:"mobilePortrait",name:"Mobile portrait",width:"320px",widthMedia:"480px"}]};var E=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.defaults=function(){return{name:"",width:null,height:"",widthMedia:null,priority:null}},e.prototype.initialize=function(){var t=this;null===this.get("widthMedia")&&this.set("widthMedia",this.get("width")),null===this.get("width")&&this.set("width",this.get("widthMedia")),!this.get("priority")&&this.set("priority",parseFloat(this.get("widthMedia"))||0),["width","height","widthMedia"].forEach((function(e){return t.checkUnit(e)}))},e.prototype.checkUnit=function(t){var e=this.get(t)||"";(parseFloat(e)||0).toString()===e.toString()&&this.set(t,"".concat(e,"px"))},e.prototype.getName=function(){return this.get("name")||this.get("id")},e.prototype.getWidthMedia=function(){return this.get("widthMedia")||""},e}(u.Hn);var T=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return T(e,t),e}(u.FE);const A=C;C.prototype.model=x;var O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=function(t){function e(e){var n=t.call(this,e)||this;return n.config=e.config||{},n.em=n.config.em,n.ppfx=n.config.pStylePrefix||"",n.listenTo(n.em,"change:device",n.updateSelect),n}return O(e,t),e.prototype.template=function(t){var e,r,o=t.ppfx,i=t.label;return n(P||(e=['\n <div class="','device-label">','</div>\n <div class="',"field ",'select">\n <span id="','input-holder">\n <select class="','devices"></select>\n </span>\n <div class="','sel-arrow">\n <div class="','d-s-arrow"></div>\n </div>\n </div>\n <button style="display:none" class="','add-trasp" data-add-trasp>+</button>\n '],r=['\n <div class="','device-label">','</div>\n <div class="',"field ",'select">\n <span id="','input-holder">\n <select class="','devices"></select>\n </span>\n <div class="','sel-arrow">\n <div class="','d-s-arrow"></div>\n </div>\n </div>\n <button style="display:none" class="','add-trasp" data-add-trasp>+</button>\n '],Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,P=e),o,i,o,o,o,o,o,o,o)},e.prototype.events=function(){return{change:"updateDevice","click [data-add-trasp]":"startAdd"}},e.prototype.startAdd=function(){},e.prototype.updateDevice=function(){var t=this.em;if(t){var e=this.devicesEl;t.set("device",e?e.val():"")}},e.prototype.updateSelect=function(){var t=this.em,e=this.devicesEl;if(t&&t.getDeviceModel&&e){var n=t.getDeviceModel();e.val(n?n.get("id"):"")}},e.prototype.getOptions=function(){var t=this.collection,e=this.em,n="";return t.forEach((function(t){var r=t.attributes,o=r.name,i=r.id,a=e&&e.t&&e.t("deviceManager.devices.".concat(i))||o;n+='<option value="'.concat(i||o,'">').concat(a,"</option>")})),n},e.prototype.render=function(){var t=this,e=t.em,n=t.ppfx,r=t.$el,o=t.el,i=e&&e.t&&e.t("deviceManager.device");return r.html(this.template({ppfx:n,label:i})),this.devicesEl=r.find(".".concat(n,"devices")),this.devicesEl.append(this.getOptions()),this.devicesEl.val(e.get("device")),o.className="".concat(n,"devices-c"),this},e}(u.G7);const k=S;var P,j=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),N=function(){return N=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},N.apply(this,arguments)},L="device",D="".concat(L,":"),I="".concat(D,"select"),R=("".concat(I,":before"),"".concat(D,"update")),M="".concat(D,"add"),B=("".concat(M,":before"),"".concat(D,"remove")),F="".concat(B,":before"),U={all:L,select:I,update:R,add:M,remove:B,removeBefore:F},H=function(e){function n(t){var n,r=e.call(this,t,"DeviceManager",new A,U,w)||this;return r.Device=x,r.Devices=A,r.storageKey="",r.devices=r.all,null===(n=r.config.devices)||void 0===n||n.forEach((function(t){return r.add(t,{silent:!0})})),r.select(r.config.default||r.devices.at(0)),t.on("change:device",r._onSelect,r),r}return j(n,e),n.prototype._onSelect=function(t,e,n){var r=this.em,o=this.events,i=t.previous("device"),a=this.get(e),s=o.select;r.trigger(s,a,this.get(i)),this.__catchAllEvent(s,a,n)},n.prototype.add=function(e,n){var r;void 0===n&&(n={});var o=n;if((0,t.isString)(e)){var i=n;r=N(N({},o=arguments[2]||{}),{id:e,name:o.name||e,width:i})}else r=e;return r.id||(r.id=r.name||this._createId()),this.devices.add(r,o)},n.prototype.get=function(t){return this.getAll().filter((function(e){return e.get("name")===t}))[0]||this.devices.get(t)||null},n.prototype.remove=function(t,e){return void 0===e&&(e={}),this.__remove(t,e)},n.prototype.getDevices=function(){return this.devices.models},n.prototype.select=function(e,n){void 0===n&&(n={});var r=(0,t.isString)(e)?this.get(e):e;return r&&this.em.set("device",r.get("id"),n),this},n.prototype.getSelected=function(){return this.get(this.em.get("device"))},n.prototype.getAll=function(){return this.devices},n.prototype.render=function(){var t,e=this.em;return null===(t=this.view)||void 0===t||t.remove(),this.view=new k({collection:this.devices,config:N({em:e},this.config)}),this.view.render().el},n.prototype.destroy=function(){this.__destroy()},n}(y);const V=H;var q=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=function(e){function n(t,n,r){return e.call(this,n,{module:t,modelConstructor:r})||this}return q(n,e),n.prototype.add=function(n,r){var o,i=this,a=(0,t.isArray)(n)?n:(0,t.isUndefined)(n)?void 0:[n];return a=null!==(o=null==a?void 0:a.map((function(t){return t instanceof i.newModel?t:new i.newModel(i.module,t)})))&&void 0!==o?o:[void 0],e.prototype.add.call(this,(0,t.isArray)(n)?a:a[0],r)},n.prototype.preinitialize=function(t,e){this.newModel=e.modelConstructor,this.module=e.module},n}(u.FE);const G=z;var W=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Y=function(){return Y=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Y.apply(this,arguments)},K=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},$="__aw",X="__ah",Q=function(e,n){var r,o=e.get(n),i=null===(r=e.view)||void 0===r?void 0:r.el["width"===n?"offsetWidth":"offsetHeight"];return(0,t.isNumber)(o)?o:(0,t.isString)(o)&&o.endsWith("px")?parseFloat(o):i||0},Z=function(n){function r(r,o){var i=n.call(this,r,o)||this,a=i.em,s=i.attributes,l=s.styles,c=s.component,u=a.Components,p=u.getConfig(),f=a.Css.getAll(),d={},h={em:a,config:p,frame:i,idMap:d};if(!(0,e.isComponent)(c)){var g=(0,e.isObject)(c)?c:{components:c};!g.type&&(g.type="wrapper");var m=u.getType("wrapper").model;i.set("component",new m(g,h))}return l?(0,e.isObject)(l)||(Object.keys(d).length&&Array.isArray(l)&&l.forEach((function(e){var n=e.selectors;if(n&&1==n.length){var r=n[0],o=r.name&&2===r.type&&r;if(o&&d[o.name])o.name=d[o.name];else if((0,t.isString)(r)&&"#"===r[0]){var i=r.substring(1);i&&d[i]&&(n[0]="#".concat(d[i]))}}})),f.add(l),i.set("styles",f)):i.set("styles",f),!o.width&&i.set($,1),!o.height&&i.set(X,1),!i.id&&i.set("id",(0,e.createId)()),i}return W(r,n),r.prototype.defaults=function(){return{x:0,y:0,changesCount:0,attributes:{},width:null,height:null,head:[],component:"",styles:"",refFrame:null,_undo:!0,_undoexc:["changesCount"]}},Object.defineProperty(r.prototype,"width",{get:function(){return Q(this,"width")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return Q(this,"height")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"head",{get:function(){return this.get("head")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"refFrame",{get:function(){return this.get("refFrame")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"root",{get:function(){var t=this.refFrame;return(null==t?void 0:t.getComponent())||this.getComponent()},enumerable:!1,configurable:!0}),r.prototype.initRefs=function(){var e=this.refFrame;if((0,t.isString)(e)){var n=this.module.framesById[e];n&&this.set({refFrame:n},{silent:!0})}},r.prototype.getBoxRect=function(){var t=this.attributes;return{x:t.x,y:t.y,width:this.width,height:this.height}},r.prototype.onRemove=function(){!this.refFrame&&this.getComponent().remove({root:1})},r.prototype.changesUp=function(t){void 0===t&&(t={}),t.temporary||t.noCount||t.avoidStore||this.set("changesCount",this.get("changesCount")+1)},r.prototype.getComponent=function(){return this.get("component")},r.prototype.getStyles=function(){return this.get("styles")},r.prototype.disable=function(){this.trigger("disable")},r.prototype.remove=function(){var t;null===(t=this.view)||void 0===t||t.remove(),this.view=void 0;var e=this.collection;return e&&e.remove(this)},r.prototype.getHead=function(){return K([],this.head,!0)},r.prototype.setHead=function(t){return this.set("head",K([],t,!0))},r.prototype.addHeadItem=function(t){this.head.push(t)},r.prototype.getHeadByAttr=function(t,e,n){return this.head.filter((function(r){return r.attributes&&r.attributes[t]==e&&(!n||n===r.tag)}))[0]},r.prototype.removeHeadByAttr=function(t,e,n){var r=this.getHeadByAttr(t,e,n),o=this.head.indexOf(r);o>=0&&this.head.splice(o,1)},r.prototype.addLink=function(t){var e="link";!this.getHeadByAttr("href",t,e)&&this.addHeadItem({tag:e,attributes:{href:t,rel:"stylesheet"}})},r.prototype.removeLink=function(t){this.removeHeadByAttr("href",t,"link")},r.prototype.addScript=function(t){var e="script";!this.getHeadByAttr("src",t,e)&&this.addHeadItem({tag:e,attributes:{src:t}})},r.prototype.removeScript=function(t){this.removeHeadByAttr("src",t,"script")},r.prototype.getPage=function(){var t;return null===(t=this.collection)||void 0===t?void 0:t.page},r.prototype._emitUpdated=function(t){void 0===t&&(t={}),this.em.trigger("frame:updated",Y({frame:this},t))},r.prototype.hasAutoHeight=function(){return!("auto"!==this.attributes.height&&!this.config.infiniteCanvas)},r.prototype.toJSON=function(e){void 0===e&&(e={});var n=_.Z.prototype.toJSON.call(this,e),r=(0,t.result)(this,"defaults");return e.fromUndo&&delete n.component,delete n.styles,delete n.changesCount,n[$]&&delete n.width,n[X]&&delete n.height,n.refFrame&&(n.refFrame=n.refFrame.id,delete n.component),(0,t.forEach)(n,(function(t,e){0===e.indexOf("_")&&delete n[e]})),(0,t.forEach)(r,(function(t,e){n[e]===t&&delete n[e]})),(0,t.forEach)(["attributes","head"],(function(e){(0,t.isEmpty)(n[e])&&delete n[e]})),n},r}(_.Z);const J=Z;var tt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const et=function(e){function n(n,r){void 0===r&&(r=[]);var o=e.call(this,n,r,J)||this;return o.loadedItems=0,o.itemsToLoad=0,(0,t.bindAll)(o,"itemLoaded"),o.on("add",o.onAdd),o.on("reset",o.onReset),o.on("remove",o.onRemove),o.forEach((function(t){return o.onAdd(t)})),o}return tt(n,e),n.prototype.onAdd=function(t){this.module.framesById[t.id]=t},n.prototype.onReset=function(t,e){var n=this;((null==e?void 0:e.previousModels)||[]).map((function(t){return n.onRemove(t)}))},n.prototype.onRemove=function(t){t.onRemove(),delete this.module.framesById[t.id]},n.prototype.initRefs=function(){this.forEach((function(t){return t.initRefs()}))},n.prototype.itemLoaded=function(){this.loadedItems++,this.loadedItems>=this.itemsToLoad&&(this.trigger("loaded:all"),this.listenToLoadItems(!1))},n.prototype.listenToLoad=function(){this.loadedItems=0,this.itemsToLoad=this.length,this.listenToLoadItems(!0)},n.prototype.listenToLoadItems=function(t){var e=this;this.forEach((function(n){return n[t?"on":"off"]("loaded",e.itemLoaded)}))},n}(G);var nt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const rt=function(e){function n(t,n){void 0===n&&(n={});var r=e.call(this,t,n)||this,o=n.em,i={};r.em=o,t.frames||(i.component=t.component,i.styles=t.styles,["component","styles"].map((function(t){return r.unset(t)})));var a=t.frames||[i],s=new et(o.Canvas,a);return s.page=r,r.set("frames",s),!r.getId()&&r.set("id",null==o?void 0:o.Pages._createId()),null==o||o.UndoManager.add(s),r}return nt(n,e),n.prototype.defaults=function(){return{name:"",frames:[],_undo:!0}},n.prototype.onRemove=function(){this.getFrames().reset()},n.prototype.getFrames=function(){return this.get("frames")},n.prototype.getId=function(){return this.id},n.prototype.getName=function(){return this.get("name")},n.prototype.setName=function(t){return this.set({name:t})},n.prototype.getAllFrames=function(){return this.getFrames().models||[]},n.prototype.getMainFrame=function(){return this.getFrames().at(0)},n.prototype.getMainComponent=function(){var t=this.getMainFrame();return null==t?void 0:t.getComponent()},n.prototype.toJSON=function(e){void 0===e&&(e={});var n=u.Hn.prototype.toJSON.call(this,e),r=(0,t.result)(this,"defaults");return(0,t.forEach)(n,(function(t,e){0===e.indexOf("_")&&delete n[e]})),(0,t.forEach)(r,(function(t,e){n[e]===t&&delete n[e]})),n},n}(u.Hn);var ot=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),it=function(){return it=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},it.apply(this,arguments)},at=function(t){function e(e,n){var r=t.call(this,e)||this;return r.on("reset",r.onReset),r.on("remove",r.onRemove),r.model=function(t,e){return void 0===e&&(e={}),new rt(t,it(it({},e),{em:n}))},r}return ot(e,t),e.prototype.onReset=function(t,e){var n,r=this;null===(n=null==e?void 0:e.previousModels)||void 0===n||n.map((function(t){return r.onRemove(t)}))},e.prototype.onRemove=function(t){null==t||t.onRemove()},e}(u.FE);const st=at;var lt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ct="page",ut="".concat(ct,":"),pt="".concat(ut,"select"),ft="".concat(pt,":before"),dt="".concat(ut,"update"),ht="".concat(ut,"add"),gt="".concat(ht,":before"),mt="".concat(ut,"remove"),vt="".concat(mt,":before"),yt="change:selected",bt="main",_t={all:ct,select:pt,selectBefore:ft,update:dt,add:ht,addBefore:gt,remove:mt,removeBefore:vt},wt=function(n){function r(e){var r=n.call(this,e,"PageManager",new st([],e),_t)||this;r.storageKey="pages",(0,t.bindAll)(r,"_onPageChange");var o=new _.Z({_undo:!0});return r.model=o,r.pages.on("reset",(function(t){return t.at(0)&&r.select(t.at(0))})),r.pages.on("all",r.__onChange,r),o.on(yt,r._onPageChange),r}return lt(r,n),Object.defineProperty(r.prototype,"pages",{get:function(){return this.all},enumerable:!1,configurable:!0}),r.prototype.getAll=function(){return function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],this.all.models,!0)},r.prototype.__onChange=function(t,e,n,r){var o=r||n;this.em.trigger(ct,{event:t,page:e,options:o})},r.prototype.onLoad=function(){var t,e=this,n=e.pages,r=e.config,o=e.em,i={silent:!0},a=(null===(t=r.pages)||void 0===t?void 0:t.map((function(t){return new rt(t,{em:o,config:r})})))||[];n.add(a,i);var s=n.length?this.getMain():this.add({type:bt},i);s&&this.select(s,i)},r.prototype._onPageChange=function(t,e,n){var r=this.em,o=r.Layers,i=e.getMainComponent();o&&i&&o.setRoot(i),r.trigger(pt,e,t.previous("selected")),this.__onChange(yt,e,n)},r.prototype.postLoad=function(){var t=this,e=t.em,n=t.model,r=t.pages,o=e.UndoManager;o.add(n),o.add(r),r.on("add remove reset change",(function(t,n,r){return e.changesUp(r||n)}))},r.prototype.add=function(t,e){var n=this;void 0===e&&(e={});var r=this.em;t.id=t.id||this._createId();var o=function(){var r=n.pages.add(new rt(t,{em:n.em,config:n.config}),e);return e.select&&n.select(r),r};return!e.silent&&r.trigger(gt,t,o,e),!e.abort&&o()},r.prototype.remove=function(e,n){var r=this;void 0===n&&(n={});var o=this.em,i=(0,t.isString)(e)?this.get(e):e,a=function(){return i&&r.pages.remove(i,n),i};return!n.silent&&o.trigger(vt,i,a,n),!n.abort&&a()},r.prototype.get=function(t){return this.pages.filter((function(e){return e.get(e.idAttribute)===t}))[0]},r.prototype.getMain=function(){var t=this.pages;return t.filter((function(t){return t.get("type")===bt}))[0]||t.at(0)},r.prototype.getAllWrappers=function(){var e=this.getAll();return(0,t.unique)((0,t.flatten)(e.map((function(t){return t.getAllFrames().map((function(t){return t.getComponent()}))}))))},r.prototype.select=function(e,n){void 0===n&&(n={});var r=(0,t.isString)(e)?this.get(e):e;return r&&(this.em.trigger(ft,r,n),this.model.set("selected",r,n)),this},r.prototype.getSelected=function(){return this.model.get("selected")},r.prototype.destroy=function(){var t=this;this.pages.off().reset(),this.model.stopListening(),this.model.clear({silent:!0}),["selected","model"].map((function(e){return t[e]=0}))},r.prototype.store=function(){return this.getProjectData()},r.prototype.load=function(t){var e=this.loadProjectData(t,{all:this.pages,reset:!0});return this.pages.forEach((function(t){return t.getFrames().initRefs()})),e},r.prototype._createId=function(){var t,n=this.getAll().length+16,r=this.getAllMap();do{t=(0,e.createId)(n)}while(r[t]);return t},r}(y);const Et=wt;var xt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tt=function(t){function e(e){var n=this,r=e.em,o=e.config,i=o.scripts,a=o.styles;return(n=t.call(this,e,{scripts:i,styles:a})||this).set("frames",new et(e)),n.on("change:zoom",n.onZoomChange),n.on("change:x change:y",n.onCoordsChange),n.on("change:pointer change:pointerScreen",n.onPointerChange),n.listenTo(r,"change:device ".concat(R),n.updateDevice),n.listenTo(r,pt,n._pageUpdated),n}return xt(e,t),e.prototype.defaults=function(){return{frame:"",frames:[],rulers:!1,zoom:100,x:0,y:0,scripts:[],styles:[],pointer:u.pH,pointerScreen:u.pH}},Object.defineProperty(e.prototype,"frames",{get:function(){return this.get("frames")},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this.em.Pages.getMain();this.set("frames",t.getFrames()),this.updateDevice({frame:t.getMainFrame()})},e.prototype._pageUpdated=function(t,e){var n=this.em;n.setSelected(),n.get("readyCanvas")&&n.stopDefault(),null==e||e.getFrames().map((function(t){return t.disable()})),this.set("frames",t.getFrames()),this.updateDevice({frame:t.getMainFrame()})},e.prototype.updateDevice=function(t){void 0===t&&(t={});var e=this.em,n=e.getDeviceModel(),r=t.frame||e.getCurrentFrameModel();if(r&&n){var o=n.attributes,i=o.width,a=o.height;r.set({width:i,height:a},{noUndo:1})}},e.prototype.onZoomChange=function(){var t=this.em,e=this.module;this.get("zoom")<1&&this.set("zoom",1),t.trigger(e.events.zoom)},e.prototype.onCoordsChange=function(){var t=this.em,e=this.module;t.trigger(e.events.coords)},e.prototype.onPointerChange=function(){var t=this.em,e=this.module;t.trigger(e.events.pointer)},e.prototype.getPointerCoords=function(t){void 0===t&&(t=u.vA.World);var e=this.attributes,n=e.pointer,r=e.pointerScreen;return t===u.vA.World?n:r},e}(_.Z);const Ct=Tt;var At=r(675),Ot=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),St=function(e){function n(n,r){void 0===r&&(r=[]);var o=e.call(this,n,r,At.Z)||this;o.on("add",o.onAdd),o.on("change",o.onChange),o.on("remove",o.onRemove);var i=o.em;return o.refreshDbn=(0,t.debounce)((function(){return o.refresh()}),0),o.listenTo(i,"component:resize styleable:change component:input component:update frame:updated undo redo",(function(){return o.refreshDbn()})),o}return Ot(n,e),Object.defineProperty(n.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"events",{get:function(){return this.module.events},enumerable:!1,configurable:!0}),n.prototype.refresh=function(){var t=this.em,e=this.events;t.trigger(e.spot)},n.prototype.onAdd=function(t){this.__trgEvent(this.events.spotAdd,{spot:t})},n.prototype.onChange=function(t){this.__trgEvent(this.events.spotUpdate,{spot:t})},n.prototype.onRemove=function(t){this.__trgEvent(this.events.spotRemove,{spot:t})},n.prototype.__trgEvent=function(t,e){this.module.em.trigger(t,e),this.refreshDbn()},n}(G);const kt=St;var Pt;!function(t){t.dragEnter="canvas:dragenter",t.dragOver="canvas:dragover",t.dragEnd="canvas:dragend",t.dragData="canvas:dragdata",t.drop="canvas:drop",t.spot="canvas:spot",t.spotAdd="canvas:spot:add",t.spotUpdate="canvas:spot:update",t.spotRemove="canvas:spot:remove",t.coords="canvas:coords",t.zoom="canvas:zoom",t.pointer="canvas:pointer"}(Pt||(Pt={}));var jt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),Object.defineProperty(e.prototype,"pfx",{get:function(){return this.ppfx+this.config.stylePrefix||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ppfx",{get:function(){return this.em.config.stylePrefix||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"module",{get:function(){var t,e;return null!==(e=null===(t=this.model)||void 0===t?void 0:t.module)&&void 0!==e?e:this.collection.module},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{get:function(){return this.module.config},enumerable:!1,configurable:!0}),e.prototype.preinitialize=function(t){this.className=""},e}(u.G7);const Lt=Nt;var Dt=r(491),It=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Rt=function(t){function e(e,n){void 0===e&&(e={}),void 0===n&&(n=!1);var r=t.call(this,e)||this;return r.itemsView="",r.itemType="type",r.reuseView=!1,r.viewCollection=[],n&&r.listenTo(r.collection,"add",r.addTo),r}return It(e,t),e.prototype.addTo=function(t){this.add(t)},e.prototype.itemViewNotFound=function(t){},e.prototype.add=function(t,e){var n,r=this.reuseView,o=this.viewCollection,i=e||null,a=t.get(this.itemType);n=t.view&&r?t.view:this.renderView(t,a),o.push(n);var s=n.render().el;i?i.appendChild(s):this.$el.append(s)},e.prototype.render=function(){var t=this,e=document.createDocumentFragment();return this.clearItems(),this.$el.empty(),this.collection.length&&this.collection.each((function(n){return t.add(n,e)})),this.$el.append(e),this.onRender(),this},e.prototype.onRender=function(){},e.prototype.onRemoveBefore=function(t,e){},e.prototype.onRemove=function(t,e){},e.prototype.remove=function(t){void 0===t&&(t={});var e=this.viewCollection;return this.onRemoveBefore(e,t),this.clearItems(),u.G7.prototype.remove.apply(this,t),this.onRemove(e,t),this},e.prototype.clearItems=function(){this.viewCollection},e}(Lt);var Mt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Bt=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;n.config=e.config||{};var r=n.model;return n.listenTo(r,"change",n.render),n.listenTo(r,"destroy remove",n.remove),n.listenTo(r.get("selectors"),"change",n.render),n}return Mt(e,t),e.prototype.tagName=function(){return"style"},e.prototype.render=function(){var t=this.model,e=this.el,n=t.get("important");return e.innerHTML=t.toCSS({important:n}),this},e}(u.G7);var Ft=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ft(e,t),e.prototype._createElement=function(){return document.createTextNode("")},e.prototype.render=function(){var t=this.model,e=t.get("important");return this.el.textContent=t.getDeclaration({important:e}),this},e}(Bt);var Ht=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vt=function(t,e){return"".concat(t).concat(e?"-".concat(parseFloat(e)):"")},qt=function(e){function n(n){var r=e.call(this,n)||this;(0,t.bindAll)(r,"sortRules");var o=n.config||{};r.atRules={},r.config=o,r.em=o.em,r.pfx=o.stylePrefix||"",r.className=r.pfx+"rules";var i=r.collection;return r.listenTo(i,"add",r.addTo),r.listenTo(i,"reset",r.render),r}return Ht(n,e),n.prototype.addTo=function(t){this.addToCollection(t)},n.prototype.addToCollection=function(t,e){if(this.renderStarted){var n,r,o=e||null,i={model:t,config:this.config};if("keyframes"===t.get("atRuleType")){var a=t.getAtRule(),s=this.atRules[a];if(!s){var l=document.createElement("style");s=document.createTextNode(""),l.appendChild(document.createTextNode("".concat(a,"{"))),l.appendChild(s),l.appendChild(document.createTextNode("}")),this.atRules[a]=s,n=l}r=new Ut(i),s.appendData(r.render().el.textContent)}else n=(r=new Bt(i)).render().el;var c=this.className,u=t.get("mediaText"),p=Vt(c),f=p;if(u&&(f=Vt(c,this.getMediaWidth(u))),n){var d=o||this.el,h=void 0;try{h=d.querySelector("#".concat(f))}catch(t){}h||(h=d.querySelector("#".concat(p))),null==h||h.appendChild(n)}return n}},n.prototype.getMediaWidth=function(t){return t&&t.replace("(".concat(this.em.getConfig().mediaCondition,": "),"").replace(")","")},n.prototype.sortRules=function(t,e){var n=-1!==(this.em.getConfig().mediaCondition||"").indexOf("min-width");return n?(n?t:e)-(n?e:t):0},n.prototype.render=function(){var t=this;this.renderStarted=!0,this.atRules={};var e=this,n=e.em,r=e.$el,o=e.collection,i=this.className,a=document.createDocumentFragment();r.empty();var s=n.Devices.getAll().pluck("priority").sort(this.sortRules);return s.every((function(t){return t}))&&s.unshift(0),s.forEach((function(t){return a.appendChild((0,Dt.ut)("div",{id:Vt(i,t)}))})),o.each((function(e){return t.addToCollection(e,a)})),r.append(a),r.attr("class",i),this},n}(u.G7);const zt=qt;var Gt=function(){return Gt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Gt.apply(this,arguments)},Wt=function(){function e(e,n){var r=this;this.em=e,this.canvas=e.Canvas;var o=n||this.canvas.getFrames().map((function(t){return t.getComponent().getEl()})),i=Array.isArray(o)?o:[o];this.el=i[0],this.counter=0,(0,t.bindAll)(this,"handleDragEnter","handleDragOver","handleDrop","handleDragLeave"),i.forEach((function(t){return r.toggleEffects(t,!0)}))}return e.prototype.toggleEffects=function(t,e){var n={on:Dt.on,off:Dt.S1},r=e?"on":"off";n[r](t,"dragenter",this.handleDragEnter),n[r](t,"dragover",this.handleDragOver),n[r](t,"drop",this.handleDrop),n[r](t,"dragleave",this.handleDragLeave)},e.prototype.__customTglEff=function(t){var e,n=t?Dt.on:Dt.S1,r=this.el.ownerDocument,o=null===(e=r.defaultView)||void 0===e?void 0:e.frameElement;this.sortOpts=t?{onStart:function(t){var e=t.sorter;(0,Dt.on)(o,"pointermove",e.onMove)},onEnd:function(t){var e=t.sorter;(0,Dt.S1)(o,"pointermove",e.onMove)},customTarget:function(t){var e=t.event;return r.elementFromPoint(e.clientX,e.clientY)}}:null,n(o,"pointerenter",this.handleDragEnter),n(o,"pointermove",this.handleDragOver),n(document,"pointerup",this.handleDrop),n(o,"pointerout",this.handleDragLeave)},e.prototype.startCustom=function(){this.__customTglEff(!0)},e.prototype.endCustom=function(t){this.over?this.endDrop(t):this.__customTglEff(!1)},e.prototype.endDrop=function(t,e){var n=this.em,r=this.dragStop;this.counter=0,r&&r(t||!this.over),this.__customTglEff(!1),n.trigger("canvas:dragend",e)},e.prototype.handleDragLeave=function(t){this.updateCounter(-1,t)},e.prototype.updateCounter=function(t,e){this.counter+=t,0===this.counter&&this.endDrop(!0,e)},e.prototype.handleDragEnter=function(t){var e=this,n=this.em,r=this.canvas,o=t.dataTransfer,i=n.get("dragContent");if((i||r.getConfig().allowExternalDrop)&&(this.updateCounter(1,t),!this.over)){this.over=!0;var a,s,l=n.Utils,c=i||"<br>";if(n.stopDefault(),n.inAbsoluteMode()){var u=n.Components.getWrapper(),p=u.append({})[0],f=n.Commands.run("core:component-drag",{event:t,guidesInfo:1,center:1,target:p,onEnd:function(t,n,i){var a;if(!i.cancelled){a=u.append(c)[0];var s=r.getOffset(),l=p.getStyle(),f=l.top,d=l.left,h=l.position,g=(0,Dt.GX)(t.target),m=parseInt("".concat(parseFloat(d)+g.x-s.left),10),v=parseInt("".concat(parseFloat(f)+g.y-s.top),10);a.addStyle({left:m+"px",top:v+"px",position:h})}e.handleDragEnd(a,o),p.remove()}});a=function(e){return f.stop(t,{cancel:e})},s=function(t){return c=t}}else{var d=new l.Sorter(Gt({em:n,wmargin:1,nested:1,canvasRelative:1,direction:"a",container:this.el,placer:r.getPlacerEl(),containerSel:"*",itemSel:"*",pfx:"gjs-",onEndMove:function(t){return e.handleDragEnd(t,o)},document:this.el.ownerDocument},this.sortOpts||{}));d.setDropContent(c),d.startSort(),this.sorter=d,a=function(t){t&&(d.moved=!1),d.endMove()},s=function(t){return d.setDropContent(t)}}this.dragStop=a,this.dragContent=s,n.trigger("canvas:dragenter",o,c)}},e.prototype.handleDragEnd=function(t,e){var n=this.em;this.over=!1,t&&(n.set("dragResult",t),n.trigger("canvas:drop",e,t)),n.runDefault({preserveSelected:1})},e.prototype.handleDragOver=function(t){t.preventDefault(),this.em.trigger("canvas:dragover",t)},e.prototype.handleDrop=function(t){t.preventDefault();var e=this.dragContent,n=t.dataTransfer,r=this.getContentByData(n).content;t.target.style.border="",r&&e&&e(r),this.endDrop(!r,t)},e.prototype.getContentByData=function(e){var n=this.em,r=e&&e.types,o=e&&e.files||[],i=n.get("dragContent"),a=e&&e.getData("text");if(o.length){a=[];for(var s=0;s<o.length;s++){var l=o[s],c=l.type.split("/")[0];"image"==c&&a.push({type:c,file:l,attributes:{alt:l.name}})}}else if(i)a=i;else if((0,t.indexOf)(r,"text/html")>=0)a=e&&e.getData("text/html").replace(/<\/?meta[^>]*>/g,"");else if((0,t.indexOf)(r,"text/uri-list")>=0)a={type:"link",attributes:{href:a},content:a};else if((0,t.indexOf)(r,"text/json")>=0){var u=e&&e.getData("text/json");u&&(a=JSON.parse(u))}else 1===r.length&&"text/plain"===r[0]&&(a="<div>".concat(a,"</div>"));var p={content:a};return n.trigger("canvas:dragdata",e,p),p},e}();const Yt=Wt;var Kt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$t=function(){return $t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$t.apply(this,arguments)},Xt=function(n){function r(r,o){var i=n.call(this,{model:r})||this;i.dragging=!1,i.loaded=!1,i.lastMaxHeight=0,i.tools={},(0,t.bindAll)(i,"updateClientY","stopAutoscroll","autoscroll","_emitUpdate");var a=i.el;i.module._config=$t($t({},i.config||{}),{frameView:i}),i.frameWrapView=o,i.showGlobalTools=(0,t.debounce)(i.showGlobalTools.bind(i),50);var s=i.getCanvasModel();return i.listenTo(r,"change:head",i.updateHead),i.listenTo(s,"change:styles",i.renderStyles),r.view=i,(0,e.setViewEl)(a,i),i}return Kt(r,n),Object.defineProperty(r.prototype,"tagName",{get:function(){return"iframe"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){return{allowfullscreen:"allowfullscreen"}},enumerable:!1,configurable:!0}),r.prototype.getBoxRect=function(){var t=this.el,e=this.module,n=e.getCanvasView(),r=e.getCoords(),o=t.getBoundingClientRect(),i=n.getCanvasOffset(),a=n.getViewportDelta(),s=e.getZoomMultiplier();return{x:(o.x-i.left-a.x-r.x)*s,y:(o.y-i.top-a.y-r.y)*s,width:o.width*s,height:o.height*s}},r.prototype.updateHead=function(){var t=this.model,e=this.getHead(),n=[],r=[],o=t.head,i=t.previous("head"),a=function(t){return void 0===t&&(t={}),Object.keys(t).sort().map((function(e){return"[".concat(e,'="').concat(t[e],'"]')})).join("")},s=function(t,e,n){t.forEach((function(t){var r=t.tag,o=t.attributes;!e.some((function(t){return t.tag===r&&a(t.attributes)===a(o)}))&&n.push(t)}))};s(o,i,r),s(i,o,n),n.forEach((function(t){var n,r=e.querySelector("".concat(t.tag).concat(a(t.attributes)));null===(n=null==r?void 0:r.parentNode)||void 0===n||n.removeChild(r)})),(0,Dt.SJ)(e,r)},r.prototype.getEl=function(){return this.el},r.prototype.getCanvasModel=function(){return this.em.Canvas.getModel()},r.prototype.getWindow=function(){return this.getEl().contentWindow},r.prototype.getDoc=function(){return this.getEl().contentDocument},r.prototype.getHead=function(){return this.getDoc().querySelector("head")},r.prototype.getBody=function(){return this.getDoc().querySelector("body")},r.prototype.getWrapper=function(){return this.getBody().querySelector("[data-gjs-type=wrapper]")},r.prototype.getJsContainer=function(){return this.jsContainer||(this.jsContainer=(0,Dt.ut)("div",{class:"".concat(this.ppfx,"js-cont")})),this.jsContainer},r.prototype.getToolsEl=function(){var t;return null===(t=this.frameWrapView)||void 0===t?void 0:t.elTools},r.prototype.getGlobalToolsEl=function(){return this.em.Canvas.getGlobalToolsEl()},r.prototype.getHighlighter=function(){return this._getTool("[data-hl]")},r.prototype.getBadgeEl=function(){return this._getTool("[data-badge]")},r.prototype.getOffsetViewerEl=function(){return this._getTool("[data-offset]")},r.prototype.getRect=function(){return this.rect||(this.rect=this.el.getBoundingClientRect()),this.rect},r.prototype.getOffsetRect=function(){var t=this.el,e=this.getBody(),n=e.scrollTop,r=e.scrollLeft,o=t.offsetHeight,i=t.offsetWidth;return{top:t.offsetTop,left:t.offsetLeft,height:o,width:i,scrollTop:n,scrollLeft:r,scrollBottom:n+o,scrollRight:r+i}},r.prototype._getTool=function(t){var e=this.tools,n=this.getToolsEl();return e[t]||(e[t]=n.querySelector(t)),e[t]},r.prototype.remove=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this._toggleEffects(!1),this.tools={},null===(t=this.wrapper)||void 0===t||t.remove(),Lt.prototype.remove.apply(this,e),this},r.prototype.startAutoscroll=function(){var t=this;this.lastMaxHeight=this.getWrapper().offsetHeight-this.el.offsetHeight,setTimeout((function(){t._toggleAutoscrollFx(!0),requestAnimationFrame(t.autoscroll)}),0)},r.prototype.autoscroll=function(){if(this.dragging){var e=this.lastClientY,n=this.em.Canvas,r=this.getWindow(),o=r.pageYOffset,i=e||0,a=n.getConfig().autoscrollLimit,s=this.getRect().height-a,l=o;i<a&&(l-=a-i),i>s&&(l+=i-s),!(0,t.isUndefined)(e)&&l!==o&&l>0&&l<this.lastMaxHeight&&(this.getGlobalToolsEl().style.opacity="0",this.showGlobalTools(),r.scrollTo(0,l),n.spots.refreshDbn()),requestAnimationFrame(this.autoscroll)}},r.prototype.updateClientY=function(t){t.preventDefault(),this.lastClientY=(0,Dt.VB)(t).clientY*this.em.getZoomDecimal()},r.prototype.showGlobalTools=function(){this.getGlobalToolsEl().style.opacity=""},r.prototype.stopAutoscroll=function(){this.dragging&&this._toggleAutoscrollFx(!1)},r.prototype._toggleAutoscrollFx=function(t){this.dragging=t;var e=this.getWindow(),n=t?"on":"off",r={on:Dt.on,off:Dt.S1};r[n](e,"mousemove dragover",this.updateClientY),r[n](e,"mouseup",this.stopAutoscroll)},r.prototype.render=function(){var t=this,e=t.$el,n=t.ppfx,r=t.em;return e.attr({class:"".concat(n,"frame")}),this.renderScripts(),r.trigger("frame:render",this),this},r.prototype.renderScripts=function(){var e=this,n=this,r=n.el,o=n.model,i=n.em,a="frame:load",s={el:r,model:o,view:this},l=this.getCanvasModel(),c=function(n){var o;if(n.length>0){var l=n.shift(),u=(0,Dt.ut)("script",$t({type:"text/javascript"},(0,t.isString)(l)?{src:l}:l));u.onerror=u.onload=c.bind(null,n),null===(o=r.contentDocument)||void 0===o||o.head.appendChild(u)}else e.renderBody(),i&&i.trigger(a,s)};r.onload=function(){var t=e.config.frameContent;if(t){var n=e.getDoc();n.open(),n.write(t),n.close()}i&&i.trigger("".concat(a,":before"),s),c(function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],l.get("scripts"),!0))}},r.prototype.renderStyles=function(e){void 0===e&&(e={});var n=this.getHead(),r=this.getCanvasModel(),o=function(e){return e.map((function(e){return{tag:"link",attributes:$t({rel:"stylesheet"},(0,t.isString)(e)?{href:e}:e)}}))},i=o(e.prev||r.previous("styles")),a=o(r.get("styles")),s=[],l=[],c=function(t,e,n){t.forEach((function(t){var r=t.attributes.href;!e.some((function(t){return t.attributes.href===r}))&&n.push(t)}))};c(a,i,l),c(i,a,s),s.forEach((function(t){var e,r=n.querySelector('link[href="'.concat(t.attributes.href,'"]'));null===(e=null==r?void 0:r.parentNode)||void 0===e||e.removeChild(r)})),(0,Dt.SJ)(n,l)},r.prototype.renderBody=function(){var t,n,r=this,o=this,i=o.config,a=o.em,s=o.model,l=o.ppfx,c=this.getDoc(),u=this.getBody(),p=this.getWindow(),f=s.hasAutoHeight(),d=a.config;p._isEditor=!0,this.renderStyles({prev:[]}),(0,Dt.R3)(u,"<style>\n ".concat(d.baseCss||i.frameStyle||"","\n\n ").concat(f?"body { overflow: hidden }":"",'\n\n [data-gjs-type="wrapper"] {\n ').concat(f?"":"min-height: 100vh;","\n padding-top: 0.001em;\n }\n\n .").concat(l,"dashed *[data-gjs-highlightable] {\n outline: 1px dashed rgba(170,170,170,0.7);\n outline-offset: -2px;\n }\n\n .").concat(l,"selected {\n outline: 2px solid #3b97e3 !important;\n outline-offset: -2px;\n }\n\n .").concat(l,"selected-parent {\n outline: 2px solid ").concat("#ffca6f"," !important\n }\n\n .").concat(l,"no-select {\n user-select: none;\n -webkit-user-select:none;\n -moz-user-select: none;\n }\n\n .").concat(l,"freezed {\n opacity: 0.5;\n pointer-events: none;\n }\n\n .").concat(l,"no-pointer {\n pointer-events: none;\n }\n\n .").concat(l,"plh-image {\n background: #f5f5f5;\n border: none;\n height: 100px;\n width: 100px;\n display: block;\n outline: 3px solid #ffca6f;\n cursor: pointer;\n outline-offset: -2px\n }\n\n .").concat(l,"grabbing {\n cursor: grabbing;\n cursor: -webkit-grabbing;\n }\n\n .").concat(l,"is__grabbing {\n overflow-x: hidden;\n }\n\n .").concat(l,"is__grabbing,\n .").concat(l,"is__grabbing * {\n cursor: grabbing !important;\n }\n\n ").concat(d.canvasCss||"","\n ").concat(d.protectedCss||"","\n </style>"));var h=s.root,g=a.Components.getType("wrapper").view;this.wrapper=new g({model:h,config:$t($t({},h.config),{em:a,frameView:this})}).render(),(0,Dt.R3)(u,null===(t=this.wrapper)||void 0===t?void 0:t.el),(0,Dt.R3)(u,new zt({collection:s.getStyles(),config:$t($t({},a.Css.getConfig()),{frameView:this})}).render().el),(0,Dt.R3)(u,this.getJsContainer()),(0,Dt.on)(u,"click",(function(t){var e;return t&&"A"==(null===(e=t.target)||void 0===e?void 0:e.tagName)&&t.preventDefault()})),(0,Dt.on)(u,"submit",(function(t){return t&&t.preventDefault()})),[{event:"keydown keyup keypress",class:"KeyboardEvent"},{event:"mousedown mousemove mouseup",class:"MouseEvent"},{event:"pointerdown pointermove pointerup",class:"PointerEvent"},{event:"wheel",class:"WheelEvent",opts:{passive:!i.infiniteCanvas}}].forEach((function(t){return t.event.split(" ").forEach((function(e){c.addEventListener(e,(function(e){return r.el.dispatchEvent((0,Dt.t3)(e,t.class))}),t.opts)}))})),this._toggleEffects(!0),(0,e.hasDnd)(a)&&(this.droppable=new Yt(a,null===(n=this.wrapper)||void 0===n?void 0:n.el)),this.loaded=!0,s.trigger("loaded")},r.prototype._toggleEffects=function(t){var e=t?Dt.on:Dt.S1,n=this.getWindow();n&&e(n,"".concat(Dt.G1," resize"),this._emitUpdate)},r.prototype._emitUpdate=function(){this.model._emitUpdated()},r}(Lt);const Qt=Xt;var Zt=r(668),Jt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),te=function(){return te=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},te.apply(this,arguments)},ee=function(e){function n(n,r){var o=e.call(this,{model:n})||this;return(0,t.bindAll)(o,"onScroll","frameLoaded","updateOffset","remove","startDrag"),te(te({},n.config),{frameWrapView:o}),o.cv=r,o.frame=new Qt(n,o),o.classAnim="".concat(o.ppfx,"frame-wrapper--anim"),o.updateOffset=(0,t.debounce)(o.updateOffset.bind(o),0),o.updateSize=(0,t.debounce)(o.updateSize.bind(o),0),o.listenTo(n,"loaded",o.frameLoaded),o.listenTo(n,"change:x change:y",o.updatePos),o.listenTo(n,"change:width change:height",o.updateSize),o.listenTo(n,"destroy remove",o.remove),o.updatePos(),o.setupDragger(),o}return Jt(n,e),n.prototype.events=function(){return{"click [data-action-remove]":"remove","mousedown [data-action-move]":"startDrag"}},n.prototype.setupDragger=function(){var t,e,n,r=this,o=this.module,i=this.model,a=function(t){o.toggleFramesEvents(t)};this.dragger=new Zt.Z({onStart:function(){var o=i.attributes,s=o.x,l=o.y;n=r.em.getZoomMultiplier(),t=s,e=l,a(!1)},onEnd:function(){return a(!0)},setPosition:function(r){i.set({x:t+r.x*n,y:e+r.y*n})}})},n.prototype.startDrag=function(t){var e;t&&(null===(e=this.dragger)||void 0===e||e.start(t))},n.prototype.__clear=function(t){var e=this.frame;e&&e.remove(t),(0,Dt.L_)(this.elTools)},n.prototype.remove=function(t){var e=this;return this.__clear(t),Lt.prototype.remove.apply(this,t),["frame","dragger","cv","elTools"].forEach((function(t){return e[t]=0})),this},n.prototype.updateOffset=function(){var t,e=this,n=e.em,r=e.$el,o=e.frame;n&&!n.destroyed&&(n.runDefault({preserveSelected:1}),r.removeClass(this.classAnim),null===(t=null==o?void 0:o.model)||void 0===t||t._emitUpdated())},n.prototype.updatePos=function(t){var e=this.model,n=this.el,r=e.attributes,o=r.x,i=r.y,a=n.style;this.frame.rect=void 0,a.left=isNaN(o)?o:"".concat(o,"px"),a.top=isNaN(i)?i:"".concat(i,"px"),t&&this.updateOffset()},n.prototype.updateSize=function(){this.updateDim()},n.prototype.updateDim=function(){var e=this,n=e.em,r=e.el,o=e.$el,i=e.model,a=e.classAnim,s=e.frame;if(s){s.rect=void 0,o.addClass(a);var l=this.__handleSize(),c=l.noChanges,u=l.width,p=l.height;((0,t.isNull)(u)||(0,t.isNull)(p))&&i.set(te(te({},u?{}:{width:r.offsetWidth}),p?{}:{height:r.offsetHeight}),{silent:1}),n.stopDefault({preserveSelected:1}),c?this.updateOffset():setTimeout(this.updateOffset,350)}},n.prototype.onScroll=function(){var t=this.frame;this.em.trigger("frame:scroll",{frame:t,body:t.getBody(),target:t.getWindow()})},n.prototype.frameLoaded=function(){var t=this.frame;this.config,t.getWindow().onscroll=this.onScroll,this.updateDim()},n.prototype.__handleSize=function(){var e,n,r=this.model,o=this.el.style,i=r.attributes,a=i.width,s=i.height,l=o.width||"",c=o.height||"",u=a||"",p=s||"",f=l==u&&c==p,d=(0,t.isNumber)(u)?"".concat(u).concat("px"):u,h=(0,t.isNumber)(p)?"".concat(p).concat("px"):p;if(o.width=d,r.hasAutoHeight()){var g=this.frame.el;if(g.contentDocument){var m=g.contentDocument,v=new ResizeObserver((function(){o.height="".concat(m.body.scrollHeight,"px")}));v.observe(m.body),null===(e=this.sizeObserver)||void 0===e||e.disconnect(),this.sizeObserver=v}}else o.height=h,null===(n=this.sizeObserver)||void 0===n||n.disconnect(),delete this.sizeObserver;return{noChanges:f,width:a,height:s,newW:u,newH:p}},n.prototype.render=function(){var t=this,e=t.frame,n=t.$el,r=t.ppfx,o=t.cv,i=t.model,a=t.el,s=i.attributes.onRender;this.__clear(),this.__handleSize(),e.render(),n.empty().attr({class:"".concat(r,"frame-wrapper")}).append('\n <div class="'.concat(r,'frame-wrapper__top gjs-two-color" data-frame-top>\n <div class="').concat(r,'frame-wrapper__name" data-action-move>\n ').concat(i.get("name")||"",'\n </div>\n <div class="').concat(r,'frame-wrapper__top-r">\n <div class="').concat(r,'frame-wrapper__icon" data-action-remove style="display: none">\n <svg viewBox="0 0 24 24"><path d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12z"></path></svg>\n </div>\n </div>\n </div>\n <div class="').concat(r,'frame-wrapper__right" data-frame-right></div>\n <div class="').concat(r,'frame-wrapper__left" data-frame-left></div>\n <div class="').concat(r,'frame-wrapper__bottom" data-frame-bottom></div>\n ')).append(e.el);var l=(0,Dt.ut)("div",{class:"".concat(r,"tools"),style:"pointer-events:none; display: none"},'\n <div class="'.concat(r,'highlighter" data-hl></div>\n <div class="').concat(r,'badge" data-badge></div>\n <div class="').concat(r,'placeholder">\n <div class="').concat(r,'placeholder-int"></div>\n </div>\n <div class="').concat(r,'ghost"></div>\n <div class="').concat(r,'toolbar" style="pointer-events:all"></div>\n <div class="').concat(r,'resizer"></div>\n <div class="').concat(r,'offset-v" data-offset>\n <div class="gjs-marginName" data-offset-m>\n <div class="gjs-margin-v-el gjs-margin-v-top" data-offset-m-t></div>\n <div class="gjs-margin-v-el gjs-margin-v-bottom" data-offset-m-b></div>\n <div class="gjs-margin-v-el gjs-margin-v-left" data-offset-m-l></div>\n <div class="gjs-margin-v-el gjs-margin-v-right" data-offset-m-r></div>\n </div>\n <div class="gjs-paddingName" data-offset-m>\n <div class="gjs-padding-v-el gjs-padding-v-top" data-offset-p-t></div>\n <div class="gjs-padding-v-el gjs-padding-v-bottom" data-offset-p-b></div>\n <div class="gjs-padding-v-el gjs-padding-v-left" data-offset-p-l></div>\n <div class="gjs-padding-v-el gjs-padding-v-right" data-offset-p-r></div>\n </div>\n </div>\n <div class="').concat(r,'offset-fixed-v"></div>\n '));this.elTools=l;var c=null==o?void 0:o.toolsWrapper;return c&&c.appendChild(l),s&&s({el:a,elTop:a.querySelector("[data-frame-top]"),elRight:a.querySelector("[data-frame-right]"),elBottom:a.querySelector("[data-frame-bottom]"),elLeft:a.querySelector("[data-frame-left]"),frame:i,frameWrapperView:this,remove:this.remove,startDrag:this.startDrag}),this},n}(Lt);const ne=ee;var re=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const oe=function(t){function e(e,n){void 0===e&&(e={});var r=t.call(this,e,!0)||this;return r.listenTo(r.collection,"reset",r.render),r.canvasView=n.canvasView,r._module=n.module,r}return re(e,t),e.prototype.onRemoveBefore=function(t,e){void 0===e&&(e={}),t.forEach((function(t){return t.remove(e)}))},e.prototype.onRender=function(){var t=this.$el,e=this.ppfx;t.attr({class:"".concat(e,"frames")})},e.prototype.clearItems=function(){(this.viewCollection||[]).forEach((function(t){return t.remove()})),this.viewCollection=[]},e.prototype.renderView=function(t,e){return new ne(t,this.canvasView)},e}(Rt);var ie=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ae=function(){return ae=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ae.apply(this,arguments)},se=function(n){function r(e){var r=n.call(this,{model:e})||this;r.ready=!1,(0,t.bindAll)(r,"clearOff","onKeyPress","onWheel","onPointer");var o=r,i=o.em,a=o.pfx,s=o.ppfx,l=r.module.events;return r.className="".concat(a,"canvas ").concat(s,"no-touch-actions").concat(i.config.customUI?"":" ".concat(a,"canvas-bg")),r.clsUnscale="".concat(a,"unscale"),r._initFrames(),r.listenTo(i,"change:canvasOffset",r.clearOff),r.listenTo(i,"component:selected",r.checkSelected),r.listenTo(i,"".concat(l.coords," ").concat(l.zoom),r.updateFrames),r.listenTo(e,"change:frames",r._onFramesUpdate),r.toggleListeners(!0),r}return ie(r,n),r.prototype.template=function(){var t=this.pfx;return'\n <div class="'.concat(t,'canvas__frames" data-frames>\n <div class="').concat(t,'canvas__spots" data-spots></div>\n </div>\n <div id="').concat(t,'tools" class="').concat(t,'canvas__tools" data-tools></div>\n <style data-canvas-style></style>\n ')},r.prototype._onFramesUpdate=function(){this._initFrames(),this._renderFrames()},r.prototype._initFrames=function(){var t=this,e=t.frames,n=t.model,r=t.config,o=t.em,i=n.frames;o.set("readyCanvas",0),i.once("loaded:all",(function(){return o.set("readyCanvas",1)})),null==e||e.remove(),this.frames=new oe({collection:i},ae(ae({},r),{canvasView:this}))},r.prototype.checkSelected=function(t,e){var n;void 0===e&&(e={});var r=e.scroll,o=this.em.getCurrentFrame();r&&(null===(n=t.views)||void 0===n||n.forEach((function(t){t.frameView===o&&t.scrollIntoView(r)})))},r.prototype.remove=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return null===(t=this.frames)||void 0===t||t.remove(),this.frames=void 0,Lt.prototype.remove.apply(this,e),this.toggleListeners(!1),this},r.prototype.preventDefault=function(t){var e;t&&(t.preventDefault(),null===(e=t._parentEvent)||void 0===e||e.preventDefault())},r.prototype.toggleListeners=function(t){var e=this.el,n=this.config,r=t?Dt.on:Dt.S1;r(document,"keypress",this.onKeyPress),r(window,"scroll resize",this.clearOff),r(e,"wheel",this.onWheel,{passive:!n.infiniteCanvas}),r(e,"pointermove",this.onPointer)},r.prototype.screenToWorld=function(t,e){var n=this.module,r=n.getCoords(),o=n.getZoomMultiplier(),i=this.getViewportDelta();return{x:(t-r.x-i.x)*o,y:(e-r.y-i.y)*o}},r.prototype.onPointer=function(t){if(this.config.infiniteCanvas){var e=this.getCanvasOffset(),n=(0,Dt.GX)(),r={x:t.clientX-e.left+n.x,y:t.clientY-e.top+n.y};if(t._parentEvent){var o=t.target.getBoundingClientRect(),i=this.module.getZoomDecimal();r.x=o.left-e.left+n.x+t.clientX*i,r.y=o.top-e.top+n.y+t.clientY*i}this.model.set({pointerScreen:r,pointer:this.screenToWorld(r.x,r.y)})}},r.prototype.onKeyPress=function(t){var e=this.em;" "!==(0,Dt.sN)(t)||1===e.getZoomDecimal()||e.Canvas.isInputFocused()||(this.preventDefault(t),e.Editor.runCommand("core:canvas-move"))},r.prototype.onWheel=function(t){var e=this.module;if(this.config.infiniteCanvas){this.preventDefault(t);var n=t.deltaX,r=t.deltaY,o=e.getZoomDecimal(),i=(0,Dt.Vb)(t),a=e.getCoords();if(i){var s=o-r*o*.01;e.setZoom(100*s);var l=this.model.getPointerCoords(u.vA.Screen),c=this.getCanvasOffset(),p=l.x-c.width/2,f=l.y-c.height/2,d=s/o,h=p-(p-a.x)*d,g=f-(f-a.y)*d;e.setCoords(h,g)}else this.onPointer(t),e.setCoords(a.x-n,a.y-r)}},r.prototype.updateFrames=function(t){var e=this.em,n=this.toolsWrapper,r={preserveSelected:1};this.updateFramesArea(),this.clearOff(),n.style.display="none",e.trigger("canvas:update",t),this.timerZoom&&clearTimeout(this.timerZoom),this.timerZoom=setTimeout((function(){e.stopDefault(r),e.runDefault(r),n.style.display=""}),300)},r.prototype.updateFramesArea=function(){var t=this,e=t.framesArea,n=t.model,r=t.module,o=t.cvStyle,i=t.clsUnscale,a=r.getZoomMultiplier();if(e){var s=n.attributes,l=s.x,c=s.y,u=r.getZoomDecimal();e.style.transform="scale(".concat(u,") translate(").concat(l*a,"px, ").concat(c*a,"px)")}o&&(o.innerHTML="\n .".concat(i," { scale: ").concat(a," }\n "))},r.prototype.fitViewport=function(n){var r,o;void 0===n&&(n={});var i=this,a=i.em,s=i.module,l=i.model,c=this.getCanvasOffset(),u=n.el,p=u&&(null===(r=(0,e.getComponentView)(u))||void 0===r?void 0:r.frameView),f=p?p.model:n.frame||a.getCurrentFrameModel()||l.frames.at(0),d=f.attributes,h=d.x,g=d.y,m={x:null!=h?h:0,y:null!=g?g:0,width:f.width,height:f.height};if(u){var v=this.getElBoxRect(u);m.x=m.x+v.x,m.y=m.y+v.y,m.width=v.width,m.height=v.height}var y=n.ignoreHeight,b=null!==(o=n.gap)&&void 0!==o?o:0,_=(0,t.isNumber)(b),w=_?b:b.x,E=_?b:b.y,x=m.width+2*w,T=m.height+2*E,C=c.width,A=c.height,O=C/x,S=A/T,k=y?O:Math.min(O,S),P=100*k;s.setZoom(P);var j={x:(-m.x+(f.width>=C?C/2-x/2:-w)+w)*k,y:(-m.y+A/2-T/2+E)*k};if(y){var N=s.getZoomMultiplier(),L=(A*N-A)/2;j.y=(-m.y+E)*k-L/N}s.setCoords(j.x,j.y)},r.prototype.isElInViewport=function(t){var n=(0,e.getElement)(t),r=(0,Dt.Ut)(n),o=this.getFrameOffset(n),i=r.top,a=r.left;return i>=0&&a>=0&&i<=o.height&&a<=o.width},r.prototype.offset=function(t,e){void 0===e&&(e={});var n=e.noScroll,r=(0,Dt.Ut)(t),o=n?{x:0,y:0}:(0,Dt.GX)(t);return{top:r.top+o.y,left:r.left+o.x,width:r.width,height:r.height}},r.prototype.getRectToScreen=function(t){var e,n,r,o,i=this.module.getZoomDecimal(),a=this.module.getCoords(),s=this.getViewportDelta();return{x:(null!==(e=t.x)&&void 0!==e?e:0)*i+a.x+s.x||0,y:(null!==(n=t.y)&&void 0!==n?n:0)*i+a.y+s.y||0,width:(null!==(r=t.width)&&void 0!==r?r:0)*i,height:(null!==(o=t.height)&&void 0!==o?o:0)*i}},r.prototype.getElBoxRect=function(t,n){var r,o,i;void 0===n&&(n={});var a=this.module,s=(0,Dt.Ut)(t),l=s.width,c=s.height,u=s.left,p=s.top,f=null===(r=(0,e.getComponentView)(t))||void 0===r?void 0:r.frameView,d=null==f?void 0:f.getBoxRect(),h=a.getZoomMultiplier(),g=null!==(o=null==d?void 0:d.x)&&void 0!==o?o:0,m=null!==(i=null==d?void 0:d.y)&&void 0!==i?i:0,v=this.el,y=(0,Dt.GX)(),b={x:u+g+(v.scrollLeft+y.x)*h,y:p+m+(v.scrollTop+y.y)*h,width:l,height:c};return n.local&&(b.x=u,b.y=p),n.toScreen?this.getRectToScreen(b):b},r.prototype.getViewportRect=function(t){void 0===t&&(t={});var e=this.getCanvasOffset(),n=e.top,r=e.left,o=e.width,i=e.height,a=this.module;if(t.toWorld){var s=a.getZoomMultiplier(),l=a.getCoords(),c=this.getViewportDelta();return{x:(-l.x-c.x||0)*s,y:(-l.y-c.y||0)*s,width:o*s,height:i*s}}return{x:r,y:n,width:o,height:i}},r.prototype.getViewportDelta=function(t){void 0===t&&(t={});var e=this.module.getZoomMultiplier(),n=this.getCanvasOffset(),r=n.width,o=n.height;return{x:(r*e-r)/2/e,y:(o*e-o)/2/e}},r.prototype.clearOff=function(){this.frmOff=void 0,this.cvsOff=void 0},r.prototype.getFrameOffset=function(t){var e;if(!this.frmOff||t){var n=null===(e=this.frame)||void 0===e?void 0:e.el,r=null==t?void 0:t.ownerDocument.defaultView,o=r?r.frameElement:n;this.frmOff=this.offset(o||n)}return this.frmOff},r.prototype.getCanvasOffset=function(){return this.cvsOff||(this.cvsOff=this.offset(this.el)),this.cvsOff},r.prototype.getElementPos=function(t,e){void 0===e&&(e={});var n=this.module.getZoomDecimal(),r=this.getFrameOffset(t),o=this.el,i=this.getCanvasOffset(),a=this.offset(t,e),s=e.avoidFrameOffset?0:r.top,l=e.avoidFrameOffset?0:r.left,c=e.avoidFrameZoom?a.top:a.top*n,u=e.avoidFrameZoom?a.left:a.left*n;return{top:e.avoidFrameOffset?c:c+s-i.top+o.scrollTop,left:e.avoidFrameOffset?u:u+l-i.left+o.scrollLeft,height:e.avoidFrameZoom?a.height:a.height*n,width:e.avoidFrameZoom?a.width:a.width*n,zoom:n,rect:a}},r.prototype.getElementOffsets=function(t){if(!t||(0,Dt.BM)(t))return{};var e={},n=window.getComputedStyle(t),r=this.module.getZoomDecimal();return["marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft"].forEach((function(t){e[t]=parseFloat(n[t])*r})),e},r.prototype.getPosition=function(t){var e;void 0===t&&(t={});var n=null===(e=this.frame)||void 0===e?void 0:e.el.contentDocument;if(!n)return{top:0,left:0,width:0,height:0};var r=n.body,o=this.module.getZoomDecimal(),i=this.getFrameOffset(),a=this.getCanvasOffset(),s=t.noScroll;return{top:i.top+(s?0:r.scrollTop)*o-a.top,left:i.left+(s?0:r.scrollLeft)*o-a.left,width:a.width,height:a.height}},r.prototype.updateScript=function(t){var e=t.model,n=e.getId();if(!t.scriptContainer){t.scriptContainer=(0,Dt.ut)("div",{"data-id":n});var r=this.getJsContainer();null==r||r.appendChild(t.scriptContainer)}t.el.id=n,t.scriptContainer.innerHTML="";var o=document.createElement("script"),i=e.getScriptString(),a=e.get("script-props")?i:"function(){\n".concat(i,"\n;}"),s=JSON.stringify(e.__getScriptProps());o.innerHTML="\n setTimeout(function() {\n var item = document.getElementById('".concat(n,"');\n if (!item) return;\n (").concat(a,".bind(item))(").concat(s,")\n }, 1);"),setTimeout((function(){var e=t.scriptContainer;null==e||e.appendChild(o)}),0)},r.prototype.getJsContainer=function(t){var e=this.getFrameView(t);return null==e?void 0:e.getJsContainer()},r.prototype.getFrameView=function(t){return(null==t?void 0:t.frameView)||this.em.getCurrentFrame()},r.prototype._renderFrames=function(){if(this.ready){var t=this,e=t.model,n=t.frames,r=t.em,o=t.framesArea,i=e.frames;i.listenToLoad(),n.render();var a=i.at(0),s=null==a?void 0:a.view;r.setCurrentFrame(s),null==o||o.appendChild(n.el),this.frame=s,this.updateFramesArea()}},r.prototype.renderFrames=function(){this._renderFrames()},r.prototype.render=function(){var t=this,n=t.el,r=t.$el,o=t.ppfx,i=t.config,a=t.em;r.html(this.template());var s=r.find("[data-frames]");this.framesArea=s.get(0);var l=r.find("[data-tools]");return this.toolsWrapper=l.get(0),l.append('\n <div class="'.concat(o,"tools ").concat(o,'tools-gl" style="pointer-events:none">\n <div class="').concat(o,'placeholder">\n <div class="').concat(o,'placeholder-int"></div>\n </div>\n </div>\n <div id="').concat(o,'tools" style="pointer-events:none">\n ').concat(i.extHl?'<div class="'.concat(o,'highlighter-sel"></div>'):"",'\n <div class="').concat(o,'badge"></div>\n <div class="').concat(o,'ghost"></div>\n <div class="').concat(o,'toolbar" style="pointer-events:all"></div>\n <div class="').concat(o,'resizer"></div>\n <div class="').concat(o,'offset-v"></div>\n <div class="').concat(o,'offset-fixed-v"></div>\n </div>\n ')),this.toolsEl=n.querySelector("#".concat(o,"tools")),this.hlEl=n.querySelector(".".concat(o,"highlighter")),this.badgeEl=n.querySelector(".".concat(o,"badge")),this.placerEl=n.querySelector(".".concat(o,"placeholder")),this.ghostEl=n.querySelector(".".concat(o,"ghost")),this.toolbarEl=n.querySelector(".".concat(o,"toolbar")),this.resizerEl=n.querySelector(".".concat(o,"resizer")),this.offsetEl=n.querySelector(".".concat(o,"offset-v")),this.fixedOffsetEl=n.querySelector(".".concat(o,"offset-fixed-v")),this.toolsGlobEl=n.querySelector(".".concat(o,"tools-gl")),this.spotsEl=n.querySelector("[data-spots]"),this.cvStyle=n.querySelector("[data-canvas-style]"),this.el.className=(0,e.getUiClass)(a,this.className),this.ready=!0,this._renderFrames(),this},r}(Lt);const le=se;var ce=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ue=function(){return ue=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ue.apply(this,arguments)},pe=function(n){function r(t){var e=n.call(this,t,"Canvas",b)||this;return e.events=Pt,e.framesById={},e.canvas=new Ct(e),e.spots=new kt(e),e.model=e.canvas,e.startAutoscroll=e.startAutoscroll.bind(e),e.stopAutoscroll=e.stopAutoscroll.bind(e),e}return ce(r,n),r.prototype.getCanvasView=function(){return this.canvasView},r.prototype.postLoad=function(){this.model.init()},r.prototype.getModel=function(){return this.canvas},r.prototype.getElement=function(){return this.getCanvasView().el},r.prototype.getFrame=function(t){return this.getFrames()[t||0]},r.prototype.getFrameEl=function(){var t=(this.canvasView||{}).frame;return null==t?void 0:t.el},r.prototype.getFramesEl=function(){var t;return null===(t=this.canvasView)||void 0===t?void 0:t.framesArea},r.prototype.getWindow=function(){var t=(this.canvasView||{}).frame;return null==t?void 0:t.getWindow()},r.prototype.getDocument=function(){var t=this.getFrameEl();return null==t?void 0:t.contentDocument},r.prototype.getBody=function(){var t=this.getDocument();return null==t?void 0:t.body},r.prototype._getLocalEl=function(t,e,n){var r=t,o=null==e?void 0:e.frameView;return o?o[n]():r},r.prototype.getGlobalToolsEl=function(){var t;return null===(t=this.canvasView)||void 0===t?void 0:t.toolsGlobEl},r.prototype.getToolsEl=function(t){return this._getLocalEl(this.getCanvasView().toolsEl,t,"getToolsEl")},r.prototype.getHighlighter=function(t){return this._getLocalEl(this.getCanvasView().hlEl,t,"getHighlighter")},r.prototype.getBadgeEl=function(t){return this._getLocalEl(this.getCanvasView().badgeEl,t,"getBadgeEl")},r.prototype.getPlacerEl=function(){return this.getCanvasView().placerEl},r.prototype.getGhostEl=function(){return this.getCanvasView().ghostEl},r.prototype.getToolbarEl=function(){return this.getCanvasView().toolbarEl},r.prototype.getResizerEl=function(){return this.getCanvasView().resizerEl},r.prototype.getOffsetViewerEl=function(t){return this._getLocalEl(this.getCanvasView().offsetEl,t,"getOffsetViewerEl")},r.prototype.getFixedOffsetViewerEl=function(){return this.getCanvasView().fixedOffsetEl},r.prototype.getSpotsEl=function(){var t;return null===(t=this.canvasView)||void 0===t?void 0:t.spotsEl},r.prototype.render=function(){var t;return null===(t=this.canvasView)||void 0===t||t.remove(),this.canvasView=new le(this.canvas),this.canvasView.render().el},r.prototype.getOffset=function(){var t=this.offset(this.getFrameEl()),e=this.offset(this.getElement());return{top:t.top-e.top,left:t.left-e.left}},r.prototype.offset=function(t){return this.getCanvasView().offset(t)},r.prototype.setCustomBadgeLabel=function(t){this.config.customBadgeLabel=t},r.prototype.getElementPos=function(t,e){return this.getCanvasView().getElementPos(t,e)},r.prototype.getElementOffsets=function(t){return this.getCanvasView().getElementOffsets(t)},r.prototype.getRect=function(){var t,e=null!==(t=this.getCanvasView().getPosition())&&void 0!==t?t:{},n=e.top,r=void 0===n?0:n,o=e.left,i=void 0===o?0:o;return ue(ue({},this.getCanvasView().getCanvasOffset()),{topScroll:r,leftScroll:i})},r.prototype.getTargetToElementDim=function(t,e,n){void 0===n&&(n={});var r=n||{},o=this.getCanvasView().getPosition();if(o){var i=r.elPos||this.getCanvasView().getElementPos(e),a=n.toRight||0,s=r.targetHeight||t.offsetHeight,l=r.targetWidth||t.offsetWidth,c=r.event||null,u=i.top-s,p=i.left;p+=a?i.width:0;var f=(p=a?p-l:p)<o.left?o.left:p,d=u<o.top?o.top:u,h={top:d=d>i.top+i.height?i.top+i.height:d,left:f,elementTop:i.top,elementLeft:i.left,elementWidth:i.width,elementHeight:i.height,targetWidth:t.offsetWidth,targetHeight:t.offsetHeight,canvasTop:o.top,canvasLeft:o.left,canvasWidth:o.width,canvasHeight:o.height};return c&&this.em&&this.em.trigger(c,h),h}},r.prototype.canvasRectOffset=function(t,e,n){var r=this;void 0===n&&(n={});var o=function(t,e,o){void 0===e&&(e=1);var i=r.em.getZoomDecimal(),a=e?"top":"left",s=t.ownerDocument,l=n.offset?function(t){var e=t.defaultView;return null==e?void 0:e.frameElement}(s):{},c=l.offsetTop,u=void 0===c?0:c,p=l.offsetLeft,f=void 0===p?0:p,d=s.body||{},h=d.scrollTop,g=void 0===h?0:h,m=d.scrollLeft,v=e?g:void 0===m?0:m,y=e?u:f;return o[a]-(v-y)*i};return{top:o(t,1,e),left:o(t,0,e)}},r.prototype.getTargetToElementFixed=function(e,n,r){void 0===r&&(r={});var o=r.pos||this.getElementPos(e,{noScroll:!0}),i=r.canvasOff||this.canvasRectOffset(e,o),a=n.offsetHeight||0,s=n.offsetWidth||0,l=o.left+o.width,c=this.getCanvasView(),u=c.getPosition(),p=c.getFrameOffset(e),f=r.event,d=-a,h=(0,t.isUndefined)(r.left)?o.width-s:r.left;if(h=o.left<-h?-o.left:h,h=l>u.width?h-(l-u.width):h,i.top<a){var g=o.height+a;g<p.height?d+=g:d=-i.top<o.height?-i.top:o.height}var m={top:d,left:h,canvasOffsetTop:i.top,canvasOffsetLeft:i.left,elRect:o,canvasOffset:i,canvasRect:u,targetWidth:s,targetHeight:a};return f&&this.em.trigger(f,m),m},r.prototype.getMouseRelativePos=function(t,e){void 0===e&&(e={});var n=0,r=0,o=e.subWinOffset,i=t.target.ownerDocument,a=i.defaultView||i.parentWindow,s=a.frameElement,l=o?a.pageYOffset:0,c=o?a.pageXOffset:0;if(s){var u=s.getBoundingClientRect();n=u.top||0,r=u.left||0}return{y:t.clientY+n-l,x:t.clientX+r-c}},r.prototype.getMouseRelativeCanvas=function(t,e){var n,r=this.getZoomDecimal(),o=null!==(n=this.getCanvasView().getPosition(e))&&void 0!==n?n:{},i=o.top,a=void 0===i?0:i,s=o.left,l=void 0===s?0:s;return{y:t.clientY*r+a,x:t.clientX*r+l}},r.prototype.hasFocus=function(){return this.getDocument().hasFocus()},r.prototype.isInputFocused=function(){var t=this.getDocument(),e=this.getFrameEl(),n=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}(["body"],this.config.notTextable,!0),r=e&&document.activeElement===e?t&&t.activeElement:document.activeElement;return r&&!n.some((function(t){return r.matches(t)}))},r.prototype.scrollTo=function(t,n){void 0===n&&(n={});var r=(0,e.getElement)(t),o=r&&(0,e.getViewEl)(r);o&&o.scrollIntoView(n)},r.prototype.startAutoscroll=function(t){var e=t&&t.view||this.em.getCurrentFrame();e&&e.startAutoscroll()},r.prototype.stopAutoscroll=function(t){var e=t&&t.view||this.em.getCurrentFrame();e&&e.stopAutoscroll()},r.prototype.setZoom=function(t){return this.canvas.set("zoom","string"==typeof t?parseFloat(t):t),this},r.prototype.getZoom=function(){return parseFloat(this.canvas.get("zoom"))},r.prototype.setCoords=function(t,e,n){var r;void 0===n&&(n={});var o=t||0===t,i=e||0===e,a={x:this.canvas.get("x"),y:this.canvas.get("y")};if(o&&(a.x=parseFloat("".concat(t))),i&&(a.y=parseFloat("".concat(e))),n.toWorld){var s=null===(r=this.canvasView)||void 0===r?void 0:r.getViewportDelta();s&&(o&&(a.x=a.x-s.x),i&&(a.y=a.y-s.y))}return this.canvas.set(a),this},r.prototype.getCoords=function(){var t=this.canvas.attributes;return{x:t.x,y:t.y}},r.prototype.getPointer=function(t){var e=this.canvas.attributes,n=e.pointer,r=e.pointerScreen;return t?r:n},r.prototype.getZoomDecimal=function(){return this.getZoom()/100},r.prototype.getZoomMultiplier=function(){var t=this.getZoomDecimal();return t?1/t:1},r.prototype.fitViewport=function(t){var e;null===(e=this.canvasView)||void 0===e||e.fitViewport(t)},r.prototype.toggleFramesEvents=function(t){this.getFramesEl().style.pointerEvents=t?"":"none"},r.prototype.getFrames=function(){return this.canvas.frames.map((function(t){return t}))},r.prototype.addFrame=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),this.canvas.frames.add(new J(this,ue({},t)),e)},r.prototype.getLastDragResult=function(){return this.em.get("dragResult")},r.prototype.addSpot=function(t,e){var n;void 0===e&&(e={});var r=t,o=this.getSpots(r);if(o.length){var i=o[0];return i.set(r),i}var a=r.componentView||(null===(n=r.component)||void 0===n?void 0:n.view),s=new At.Z(this,ue(ue({},r),{id:r.id||"cs_".concat(r.type,"_").concat(null==a?void 0:a.cid),type:r.type||""}));return this.spots.add(s,e),s},r.prototype.getSpots=function(t){return void 0===t&&(t={}),this.spots.where(t.id?{id:t.id}:t)},r.prototype.removeSpots=function(e){void 0===e&&(e={});var n=(0,t.isArray)(e)?e:this.getSpots(e);return this.spots.remove(n)},r.prototype.hasCustomSpot=function(t){var e=this.config.customSpots;return!!(!0===e||e&&t&&e[t])},r.prototype.getWorldRectToScreen=function(t){var e;return null===(e=this.canvasView)||void 0===e?void 0:e.getRectToScreen(t)},r.prototype.refreshSpots=function(){this.spots.refresh()},r.prototype.destroy=function(){var t,e=this;this.canvas.stopListening(),null===(t=this.canvasView)||void 0===t||t.remove(),["model","droppable"].forEach((function(t){return e[t]={}}))},r}(v);const fe=pe,de={stylePrefix:"comp-",components:[],draggableComponents:!0,disableTextInnerChilds:!1,processor:void 0,voidElements:["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]};var he="text/html",ge=he,me=function(){return me=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},me.apply(this,arguments)},ve="parse:html";const ye=function(e,n){return void 0===n&&(n={}),{compTypes:"",modelAttrStart:"data-gjs-",getPropAttribute:function(t,e){var n=t.replace(this.modelAttrStart,""),r=(null==e?void 0:e.length)||0,o=null==e?void 0:e.substring(0,1),i=null==e?void 0:e.substring(r-1),a="true"===e||"false"!==e&&e;try{a="{"==o&&"}"==i||"["==o&&"]"==i?JSON.parse(a):a}catch(t){}return{name:n,value:a}},splitPropsFromAttr:function(e){var n=this;void 0===e&&(e={});var r={},o={};return(0,t.each)(e,(function(t,e){if(0===e.indexOf(n.modelAttrStart)){var i=n.getPropAttribute(e,t);r[i.name]=i.value}else o[e]=t})),{props:r,attrs:o}},parseStyle:function(e){for(var n={};e.indexOf("/*")>=0;){var r=e.indexOf("/*"),o=e.indexOf("*/")+2;e=e.replace(e.slice(r,o),"")}for(var i=e.split(";"),a=0,s=i.length;a<s;a++){var l=i[a].trim();if(l){var c=l.split(":"),u=c[0].trim(),p=c.slice(1).join(":").trim();n[u]?((0,t.isArray)(n[u])||(n[u]=[n[u]]),n[u].push(p)):n[u]=p}}return n},parseClass:function(t){for(var e=[],n=t.split(" "),r=0,o=n.length;r<o;r++){var i=n[r].trim();i&&e.push(i)}return e},parseNode:function(t,e){void 0===e&&(e={});for(var r=[],o=t.childNodes,i=0,a=o.length;i<a;i++){var s=o[i],l=s.attributes||[],c=l.length,u=r[r.length-1],p=s.childNodes.length,f=this.compTypes,d={};if(f){var h="",g=s.getAttribute&&s.getAttribute("".concat(this.modelAttrStart,"type"));if(g)d={type:g};else{for(var m=0;m<f.length;m++){var v=f[m];if(h=v.model.isComponent(s,e)){"object"!=typeof h&&(h={type:v.id});break}}d=h}}if(!d.tagName){var y=s.tagName||"",b=s.namespaceURI||"";d.tagName=y&&"http://www.w3.org/1999/xhtml"===b?y.toLowerCase():y}c&&(d.attributes={});for(var _=0;_<c;_++){var w=l[_].nodeName,E=l[_].nodeValue;if("style"==w)d.style=this.parseStyle(E);else if("class"==w)d.classes=this.parseClass(E);else{if("contenteditable"==w)continue;if(0===w.indexOf(this.modelAttrStart)){var x=this.getPropAttribute(w,E);d[x.name]=x.value}else""===E&&!0===s[w]&&(E=!0),d.attributes[w]=E}}if(p&&!d.components){var T=s.childNodes[0];1===p&&3===T.nodeType?(!d.type&&(d.type="text"),d.components={type:"textnode",content:T.nodeValue}):d.components=this.parseNode(s,me(me({},e),{inSvg:e.inSvg||"svg"===d.type}))}if("textnode"==d.type){if(u&&"textnode"==u.type){u.content+=d.content;continue}if(!e.keepEmptyTextNodes){var C=s.nodeValue;if(" "!=C&&!C.trim())continue}}p||"/>"!=="".concat(s.outerHTML).slice(-2)||(d.void=!0);var A=d.components;if(!d.type&&A){for(var O=1,S=0,k=0;k<A.length;k++){var P=A[k],j=P.type;if(["text","textnode"].indexOf(j)<0&&n.textTags.indexOf(P.tagName)<0){O=0;break}"textnode"==j&&(S=1)}O&&S&&(d.type="text")}(d.tagName||"textnode"==d.type)&&r.push(d)}return r},parse:function(r,o,i){var a;void 0===i&&(i={});var s=(null==e?void 0:e.get("Config"))||{},l={html:[]},c=me(me({},n),i),u=me(me(me({},n.optionsHtml),{htmlType:(null===(a=n.optionsHtml)||void 0===a?void 0:a.htmlType)||n.htmlType}),i),p=(0,t.isFunction)(c.parserHtml)?c.parserHtml(r,u):function(e,n){void 0===n&&(n={});var r,o=new DOMParser,i=n.htmlType||ge,a=i===he,s=a?e:"<div>".concat(e,"</div>"),l=o.parseFromString(s,i);if(a){var c=l.head,u=l.body,p=c.querySelectorAll("script");(0,t.each)(p,(function(t){return u.appendChild(t)}));var f=[];(0,t.each)(c.children,(function(t){return f.push(t)})),(0,t.each)(f,(function(t,e){return u.insertBefore(t,u.children[e])})),r=u}else r=l.firstChild;return r}(r,u),f=p.querySelectorAll("script"),d=f.length;if(!((0,t.isUndefined)(s.allowScripts)?u.allowScripts:s.allowScripts))for(;d--;)f[d].parentNode.removeChild(f[d]);if(u.allowUnsafeAttr||this.__clearUnsafeAttr(p),o){for(var h=p.querySelectorAll("style"),g=h.length,m="";g--;)m=h[g].innerHTML+m,h[g].parentNode.removeChild(h[g]);m&&(l.css=o.parse(m))}e&&e.trigger("".concat(ve,":root"),{input:r,root:p});var v=this.parseNode(p,c),y=1!==v.length||c.returnArray?v:v[0];return l.html=y,e&&e.trigger(ve,{input:r,output:l}),l},__clearUnsafeAttr:function(e){var n=this,r=e.attributes||[],o=e.childNodes||[],i=[];(0,t.each)(r,(function(t){var e=t.nodeName||"";0===e.indexOf("on")&&i.push(e)})),i.map((function(t){return e.removeAttribute(t)})),(0,t.each)(o,(function(t){return n.__clearUnsafeAttr(t)}))}}};var be=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_e=function(){return _e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},_e.apply(this,arguments)},we=ye(),Ee=function(e){return(0,t.isArray)(e)?e[e.length-1]:e},xe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return be(r,n),r.prototype.parseStyle=function(t){return we.parseStyle(t)},r.prototype.extendStyle=function(t){return _e(_e({},this.getStyle()),t)},r.prototype.getStyle=function(e){var n=this.get("style")||{},r=_e({},n);return e&&(0,t.isString)(e)?r[e]:r},r.prototype.setStyle=function(n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r={}),(0,t.isString)(n)&&(n=this.parseStyle(n));var i=this.getStyle(r);r.partial||r.avoidStore?(r.avoidStore=!0,n.__p=!0):delete n.__p;var a=_e({},n),s=_e({},a);(0,t.keys)(s).forEach((function(t){""===s[t]&&delete s[t]})),this.set("style",s,r);var l=(0,e.shallowDiff)(i,a);return delete l.__p,(0,t.keys)(l).forEach((function(t){var e=o.em;r.noEvent||(o.trigger("change:style:".concat(t)),e&&(e.trigger("styleable:change",o,t,r),e.trigger("styleable:change:".concat(t),o,t,r)))})),a},r.prototype.addStyle=function(t,e,n){var r;void 0===e&&(e=""),void 0===n&&(n={}),"string"==typeof t?((r={})[t]=e,t=r):n=e||{},t=this.extendStyle(t),this.setStyle(t,n)},r.prototype.removeStyle=function(t){var e=this.getStyle();delete e[t],this.setStyle(e)},r.prototype.styleToString=function(e){void 0===e&&(e={});var n=[],r=this.getStyle(e),o=e.important,i=function(e){var i=(0,t.isArray)(o)?o.indexOf(e)>=0:o;if("__"===e.substring(0,2))return"continue";var a=r[e];((0,t.isArray)(a)?a:[a]).forEach((function(t){var r="".concat(t).concat(i?" !important":"");r&&n.push("".concat(e,":").concat(r,";"))}))};for(var a in r)i(a);return n.join("")},r.prototype.getSelectors=function(){return this.get("selectors")||this.get("classes")},r.prototype.getSelectorsString=function(t){return this.selectorsToString?this.selectorsToString(t):this.getSelectors().getFullString()},r}(u.Hn);const Te=xe;var Ce=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ae=function(){return Ae=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ae.apply(this,arguments)},Oe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},Se=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},ke=function(e,n){return void 0===n&&(n=[]),e?(((0,t.isArray)(e)||(0,t.isFunction)(e.map)?e:[e]).map((function(t){n.push(t.getId()),ke(t.components().models,n)})),n):[]},Pe=function(e,n,r){void 0===n&&(n={}),void 0===r&&(r={}),r.visitedCmps=r.visitedCmps||{};var o=r.visitedCmps;return((0,t.isArray)(e)?e:[e]).map((function(e){var i=e.attributes,a=void 0===i?{}:i,s=e.components,l=e.tagName,c=a.id,u=(a.draggable,Oe(a,["id","draggable"])),p=e;if(c&&(o[c]?(o[c].push(p),c=sn.getNewId(n),p.attributes.id=c):(o[c]=[],n[c]&&(p=n[c],l&&p.set({tagName:l},Ae(Ae({},r),{silent:!0})),(0,t.keys)(u).length&&p.addAttributes(u,Ae({},r))))),s){var f=Pe(s,n);if((0,t.isFunction)(p.components)){var d=p.components();d.length>0&&d.reset(f,r)}else p.components=f}return p}))},je=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Ce(n,e),n.prototype.initialize=function(t,e){void 0===e&&(e={}),this.opt=e,this.listenTo(this,"add",this.onAdd),this.listenTo(this,"remove",this.removeChildren),this.listenTo(this,"reset",this.resetChildren);var n=e.em,r=e.config;this.config=r,this.em=n,this.domc=e.domc||(null==n?void 0:n.Components)},n.prototype.resetChildren=function(t,e){var n=this;void 0===e&&(e={});var r=this,o=e.previousModels||[],i=o.filter((function(e){return!t.get(e.cid)})),a=ke(t),s=ke(o).filter((function(t){return a.indexOf(t)>=0}));e.keepIds=(e.keepIds||[]).concat(s),i.forEach((function(t){return n.removeChildren(t,r,e)})),t.each((function(t){return n.onAdd(t)}))},n.prototype.resetFromString=function(t,e){var n,r;void 0===t&&(t=""),void 0===e&&(e={}),e.keepIds=ke(this);var o=this,i=o.domc,a=o.em,s=o.parent,l=null==a?void 0:a.Css,c=(null==i?void 0:i.allById())||{},u=this.parseString(t,e),p=Pe(u,c,e),f=e.visitedCmps,d=void 0===f?{}:f;Object.keys(d).forEach((function(t){var e=d[t];if(e.length){var n=(null==l?void 0:l.getRules("#".concat(t)))||[];n.length&&e.forEach((function(t){n.forEach((function(e){var n=e.clone();n.set("selectors",["#".concat(t.attributes.id)]),l.getAll().add(n)}))}))}})),this.reset(p,e),null==a||a.trigger("component:content",s,e,t),null===(r=(n=s).__checkInnerChilds)||void 0===r||r.call(n)},n.prototype.removeChildren=function(t,e,n){var r=this;if(void 0===n&&(n={}),t){var o=this.domc,i=this.em,a=n.temporary||n.fromUndo;if(t.prevColl=this,!a){var s=t.getId(),l=i.Selectors.getAll(),c=i.Css.getAll(),u=(n.keepIds||[]).indexOf(s)<0;delete(o?o.allById():{})[s];var p=u?c.remove(c.filter((function(t){return t.getSelectors().getFullString()==="#".concat(s)})),n):[];l.remove(p.map((function(t){return t.getSelectors().at(0)}))),t.opt.temporary||(i.Commands.run("core:component-style-clear",{target:t}),t.removed(),t.trigger("removed"),i.trigger("component:remove",t)),t.components().forEach((function(t){return r.removeChildren(t,e,n)}))}var f=t.components();i.stopListening(f),i.stopListening(t),i.stopListening(t.get("classes")),t.__postRemove()}},n.prototype.model=function(t,e){var n,r=e.collection.opt,o=r.em,i=o.Components.componentTypes;e.em=o,e.config=r.config,e.componentTypes=i,e.domc=r.domc;for(var a=0;a<i.length;a++)if(i[a].id==t.type){n=i[a].model;break}return n||(n=i[i.length-1].model,o&&t.type&&o.logWarning("Component type '".concat(t.type,"' not found"),{attrs:t,options:e})),new n(t,e)},n.prototype.parseString=function(t,e){void 0===e&&(e={});var n=this.em,r=this.domc,o=n.Css,i=n.Parser.parseHtml(t);if(sn.checkId(i.html,i.css,r.componentsById,e),i.css&&o&&!e.temporary){e.at;var a=Oe(e,["at"]);o.addCollection(i.css,Ae(Ae({},a),{extend:1}))}return i.html},n.prototype.add=function(e,n){var r=this;void 0===n&&(n={}),n.keepIds=Se(Se([],n.keepIds||[],!0),ke(n.previousModels),!0),(0,t.isString)(e)?e=this.parseString(e,n):(0,t.isArray)(e)&&(e=Se([],e,!0)).forEach((function(o,i){if((0,t.isString)(o)){var a=r.parseString(o,n);e[i]=(0,t.isArray)(a)&&!a.length?null:a}}));var o=(0,t.isArray)(e);e=(o?e:[e]).filter(Boolean).map((function(t){return r.processDef(t)})),e=o?(0,t.flatten)(e,1):e[0];var i=u.FE.prototype.add.apply(this,[e,n]);return this.__firstAdd=i,i},n.prototype.processDef=function(e){if(e.cid&&e.ccid)return e;var n=this.em,r=this.config,o=(void 0===r?{}:r).processor,i=e;if(o){var a=o(i=Ae({},i));a&&((0,t.each)(i,(function(t,e){return delete i[e]})),(0,t.extend)(i,a))}if(i.$$typeof&&"object"==typeof i.props){(i=Ae({},i)).props=Ae({},i.props);var s=n.Components,l=n.Parser.parserHtml;(0,t.each)(i,(function(e,n){(0,t.includes)(["props","type"],n)||delete i[n]}));var c=i.props,u=c.children;delete c.children,delete i.props;var p=l.splitPropsFromAttr(c);i.attributes=p.attrs,u&&(i.components=u),i.type?s.getType(i.type)||(i.tagName=i.type,delete i.type):i.type="textnode",(0,t.extend)(i,p.props)}return i},n.prototype.onAdd=function(e,n,r){void 0===r&&(r={});var o=this.domc,i=this.em,a=e.getStyle(),s=i&&i.getConfig().avoidInlineStyle;if(o&&o.Component.ensureInList(e),!(0,t.isEmpty)(a)&&!s&&i&&i.get&&i.getConfig().forceClass&&!r.temporary){var l=e.cid;i.Css.setClassRule(l,a),e.setStyle({}),e.addClass(l)}e.__postAdd({recursive:!0})},n}(u.FE);const Ne=je;var Le=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),De=function(e){function n(t,r){void 0===r&&(r={});var o=e.call(this,t,r)||this,i=r.config,a=void 0===i?{}:i,s=o.get("name"),l=o.get("label");s?l||o.set("label",s):o.set("name",l);var c=o.get("name"),u=a.escapeName,p=u?u(c):n.escapeName(c);return o.set("name",p),o.em=r.em,o}return Le(n,e),n.prototype.defaults=function(){return{name:"",label:"",type:1,active:!0,private:!1,protected:!1,_undo:!0}},n.prototype.isId=function(){return 2===this.get("type")},n.prototype.isClass=function(){return 1===this.get("type")},n.prototype.getFullName=function(t){void 0===t&&(t={});var e=t.escape,n=this.get("name"),r="";switch(this.get("type")){case 1:r=".";break;case 2:r="#"}return r+(e?e(n):n)},n.prototype.toString=function(){return this.getFullName()},n.prototype.getLabel=function(){return this.get("label")},n.prototype.setLabel=function(t){return this.set("label",t)},n.prototype.getActive=function(){return this.get("active")},n.prototype.setActive=function(t){return this.set("active",t)},n.prototype.toJSON=function(e){void 0===e&&(e={});var n=this.em,r=u.Hn.prototype.toJSON.call(this,[e]),o=(0,t.result)(this,"defaults");if(n&&n.getConfig().avoidDefaults){(0,t.forEach)(o,(function(t,e){r[e]===t&&delete r[e]})),r.label===r.name&&delete r.label;var i=(0,t.keys)(r).length;1===i&&r.name&&(r=r.name),2===i&&r.name&&r.type&&(r=this.getFullName())}return r},n.escapeName=function(t){return"".concat(t).trim().replace(/([^a-z0-9\w-\:@]+)/gi,"-")},n.TYPE_CLASS=1,n.TYPE_ID=2,n}(u.Hn);const Ie=De;De.prototype.idAttribute="name";var Re=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Me=function(t,e){return t.reduce((function(n,r,o){return n.concat(Me(t.slice(o+1),"".concat(e).concat(r)))}),[e])},Be=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Re(n,e),n.prototype.modelId=function(t){return"".concat(t.name,"_").concat(t.type||Ie.TYPE_CLASS)},n.prototype.getStyleable=function(){return(0,t.filter)(this.models,(function(t){return t.get("active")&&!t.get("private")}))},n.prototype.getValid=function(e){var n=(void 0===e?{}:e).noDisabled;return(0,t.filter)(this.models,(function(t){return!t.get("private")})).filter((function(t){return n?t.get("active"):1}))},n.prototype.getFullString=function(t,e){void 0===e&&(e={});var n=[];return(t||this).forEach((function(t){return n.push(t.getFullName(e))})),e.sort&&n.sort(),n.join("").trim()},n.prototype.getFullName=function(t){void 0===t&&(t={});var e=t.combination,n=t.array,r=[],o=this.map((function(e){return e.getFullName(t)})).sort();return e?o.forEach((function(t,e){r=r.concat(Me(o.slice(e+1),t))})):r=o,n?r:e?r.join(","):r.join("")},n}(u.FE);const Fe=Be;Be.prototype.model=Ie;var Ue=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),He=function(){return He=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},He.apply(this,arguments)},Ve=function(n){function r(t,e){var r=n.call(this,t)||this,o=r.attributes,i=o.target,a=o.name;return!r.get("id")&&r.set("id",a),i&&r.setTarget(i),r.em=e,r}return Ue(r,n),r.prototype.defaults=function(){return{type:"text",label:"",name:"",unit:"",step:1,value:"",default:"",placeholder:"",changeProp:!1,options:[]}},r.prototype.setTarget=function(e){if(e){var n=this.attributes,r=n.name,o=n.changeProp,i=n.value;this.target=e,this.unset("target");var a=o?"change:".concat(r):"change:attributes:".concat(r);this.listenTo(e,a,this.targetUpdated);var s=i||this.getValue();!(0,t.isUndefined)(s)&&this.set({value:s},{silent:!0})}},r.prototype.getId=function(){return this.get("id")},r.prototype.getType=function(){return this.get("type")},r.prototype.getName=function(){return this.get("name")},r.prototype.getLabel=function(t){var e;void 0===t&&(t={});var n=t.locale,r=void 0===n||n,o=this.getId(),i=this.get("label")||this.getName();return r&&(null===(e=this.em)||void 0===e?void 0:e.t("traitManager.traits.labels.".concat(o)))||i},r.prototype.getValue=function(){return this.getTargetValue()},r.prototype.setValue=function(t,e){var n,r=this;void 0===e&&(e={});var o={},i=this.get("setValue");i?i({value:t,editor:null===(n=this.em)||void 0===n?void 0:n.getEditor(),trait:this,component:this.target,partial:!!e.partial,emitUpdate:function(){return r.targetUpdated()}}):(e.partial&&(o.avoidStore=!0),this.setTargetValue(t,o),!1===e.partial&&(this.setTargetValue(""),this.setTargetValue(t)))},r.prototype.getDefault=function(){return this.get("default")},r.prototype.getOptions=function(){return this.get("options")||[]},r.prototype.getOption=function(t){var n=this,r=(0,e.isDef)(t)?t:this.getValue();return this.getOptions().filter((function(t){return n.getOptionId(t)===r}))[0]},r.prototype.getOptionId=function(t){return t.id||t.value},r.prototype.getOptionLabel=function(e,n){var r;void 0===n&&(n={});var o=n.locale,i=void 0===o||o,a=(0,t.isString)(e)?this.getOption(e):e,s=this.getOptionId(a),l=a.label||a.name||s,c=this.getName();return i&&(null===(r=this.em)||void 0===r?void 0:r.t("traitManager.traits.options.".concat(c,".").concat(s)))||l},r.prototype.props=function(){return this.attributes},r.prototype.targetUpdated=function(){var t,e=this.getTargetValue();this.set({value:e},{fromTarget:1}),null===(t=this.em)||void 0===t||t.trigger("trait:update",{trait:this,component:this.target})},r.prototype.getTargetValue=function(){var e,n,r=this.getName(),o=this.target,i=this.get("getValue");return n=i?i({editor:null===(e=this.em)||void 0===e?void 0:e.getEditor(),trait:this,component:o}):this.get("changeProp")?o.get(r):o.getAttributes()[r],(0,t.isUndefined)(n)?"":n},r.prototype.setTargetValue=function(e,n){var r;void 0===n&&(n={});var o=this.target,i=this.attributes,a=this.getName();if(!(0,t.isUndefined)(e)){var s=e;if("false"===e?s=!1:"true"===e&&(s=!0),"checkbox"===this.getType()){var l=i.valueTrue,c=i.valueFalse;s&&!(0,t.isUndefined)(l)&&(s=l),s||(0,t.isUndefined)(c)||(s=c)}this.get("changeProp")?o.set(a,s,n):o.addAttributes(((r={})[a]=s,r),n)}},r.prototype.setValueFromInput=function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n={});var r={value:t};this.set(r,He(He({},n),{avoidStore:1})),e&&(this.set("value","",n),this.set(r,n))},r.prototype.getInitValue=function(){var t,e=this.target,n=this.getName();if(e){var r=e.get("attributes");t=this.get("changeProp")?e.get(n):r[n]}return t||this.get("value")||this.get("default")},r}(u.Hn);const qe=Ve;const ze=function(){function e(t){void 0===t&&(t={}),this.config=t}return e.prototype.build=function(e,n){return(0,t.isString)(e)?this.buildFromString(e,n):new qe(e,n)},e.prototype.buildFromString=function(t,e){var n={name:t,type:"text"};return"target"===t&&(n.type="select",n.default=!1,n.options=this.config.optionsTarget),new qe(n,e)},e}();var Ge=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),We=function(e){function n(t,n){var r,o=e.call(this,t)||this;o.em=n.em,o.listenTo(o,"add",o.handleAdd),o.listenTo(o,"reset",o.handleReset);var i=null===(r=o.em)||void 0===r?void 0:r.Traits,a=null==i?void 0:i.getConfig();return o.tf=new ze(a),o}return Ge(n,e),n.prototype.handleReset=function(t,e){var n=(void 0===e?{}:e).previousModels;(void 0===n?[]:n).forEach((function(t){return t.trigger("remove")}))},n.prototype.handleAdd=function(t){t.em=this.em;var e=this.target;e&&(t.target=e)},n.prototype.setTarget=function(t){this.target=t,this.models.forEach((function(e){return e.setTarget(t)}))},n.prototype.add=function(n,r){if(null!=n){var o=this.target,i=this.em;if((0,t.isArray)(n)){for(var a=[],s=0,l=n.length;s<l;s++){var c=n[s];a[s]=c instanceof qe?c:this.tf.build(c,i),a[s].setTarget(o)}return e.prototype.add.call(this,a,r)}var u=n instanceof qe?n:this.tf.build(n,i);return u.setTarget(o),e.prototype.add.call(this,u,r)}},n}(u.FE);const Ye=We;var Ke=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$e=function(){return $e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$e.apply(this,arguments)},Xe=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Qe=function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},Ze=function(t){return!!(null==t?void 0:t.getConfig().avoidInlineStyle)},Je="component:drag",tn="__symbols",en="__symbol",nn="__symbol_ovrd",rn="component:update",on="".concat(rn,"-inside"),an=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return Ke(r,n),Object.defineProperty(r.prototype,"defaults",{get:function(){var t;return(t={tagName:"div",type:"",name:"",removable:!0,draggable:!0,droppable:!0,badgable:!0,stylable:!0,"stylable-require":"","style-signature":"",unstylable:"",highlightable:!0,copyable:!0,resizable:!1,editable:!1,layerable:!0,selectable:!0,hoverable:!0,locked:!1,void:!1,state:"",status:"",content:"",icon:"",style:"",styles:"",classes:"",script:"","script-props":"","script-export":"",attributes:{},traits:["id","title"],propagate:"",dmode:"",toolbar:null})[en]=0,t[tn]=0,t[nn]=0,t._undo=!0,t._undoexc=["status","open"],t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"classes",{get:function(){return this.get("classes")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"traits",{get:function(){return this.get("traits")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"content",{get:function(){var t;return null!==(t=this.get("content"))&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"toolbar",{get:function(){return this.get("toolbar")||[]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"resizable",{get:function(){return this.get("resizable")},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.updated=function(t,e,n){},r.prototype.removed=function(){},r.prototype.initialize=function(e,n){var o=this;void 0===e&&(e={}),void 0===n&&(n={}),(0,t.bindAll)(this,"__upSymbProps","__upSymbCls","__upSymbComps");var i=n.em,a=this.parent(),s=null==a?void 0:a.attributes,l=this.get("propagate");if(l&&this.set("propagate",(0,t.isArray)(l)?l:[l]),s&&s.propagate&&!l){var c={},u=s.propagate;u.forEach((function(t){return c[t]=a.get(t)})),c.propagate=u,this.set($e($e({},c),e))}if(n&&n.config&&n.config.voidElements.indexOf(this.get("tagName"))>=0&&this.set("void",!0),n.em=i,this.opt=n,this.em=i,this.frame=n.frame,this.config=n.config||{},this.set("attributes",$e($e({},(0,t.result)(this,"defaults").attributes||{}),this.get("attributes")||{})),this.ccid=r.createId(this,n),this.initClasses(),this.initComponents(),this.initTraits(),this.initToolbar(),this.initScriptProps(),this.listenTo(this,"change:script",this.scriptUpdated),this.listenTo(this,"change:tagName",this.tagUpdated),this.listenTo(this,"change:attributes",this.attrUpdated),this.listenTo(this,"change:attributes:id",this._idUpdated),this.on("change:toolbar",this.__emitUpdateTlb),this.on("change",this.__onChange),this.on(on,this.__propToParent),this.set("status",""),this.views=[],["classes","traits","components"].forEach((function(t){var e="add remove ".concat("components"!==t?"change":"");o.listenTo(o.get(t),e.trim(),(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o.emitUpdate.apply(o,Xe([t],e,!1))}))})),!n.temporary){var p=i&&i.Css,f=this.attributes,d=f.styles,h=f.type;d&&p&&p.addCollection(d,{avoidUpdateStyle:!0},{group:"cmp:".concat(h)}),this.__postAdd(),this.init(),this.__isSymbolOrInst()&&this.__initSymb(),i&&i.trigger("component:create",this)}},r.prototype.__postAdd=function(t){void 0===t&&(t={});var e=this.em,n=null==e?void 0:e.UndoManager,r=this.components();n&&!this.__hasUm&&(n.add(r),n.add(this.getSelectors()),this.__hasUm=!0),t.recursive&&r.map((function(e){return e.__postAdd(t)}))},r.prototype.__postRemove=function(){var t=this.em,e=null==t?void 0:t.get("UndoManager");e&&(e.remove(this.components()),e.remove(this.getSelectors()),delete this.__hasUm)},r.prototype.__onChange=function(n,r){var o=this,i=this.changedAttributes()||{};(0,t.keys)(i).forEach((function(t){return o.emitUpdate(t)})),["status","open","toolbar","traits"].forEach((function(t){return delete i[t]})),(0,e.isEmptyObj)(i)||(this.__changesUp(r),this.__propSelfToParent({component:this,changed:i,options:r}))},r.prototype.__changesUp=function(t){var e=this.em;[this.frame,e].forEach((function(e){return e&&e.changesUp(t)}))},r.prototype.__propSelfToParent=function(t){this.trigger(rn,t),this.__propToParent(t)},r.prototype.__propToParent=function(t){var e=this.parent();e&&e.trigger(on,t)},r.prototype.__emitUpdateTlb=function(){this.emitUpdate("toolbar")},r.prototype.is=function(t){return!(this.get("type")!=t)},r.prototype.props=function(){return this.attributes},r.prototype.index=function(){var t=this.collection;return t?t.indexOf(this):0},r.prototype.setDragMode=function(t){return this.set("dmode",t)},r.prototype.getDragMode=function(){return this.get("dmode")||""},r.prototype.find=function(t){var e,n=[],r=null===(e=this.view)||void 0===e?void 0:e.$el.find(t);return null==r||r.each((function(t){var e=r.eq(t).data("model");e&&n.push(e)})),n},r.prototype.findType=function(t){var e=[],n=function(r){return r.forEach((function(r){r.is(t)&&e.push(r),n(r.components())}))};return n(this.components()),e},r.prototype.closest=function(t){var e,n=null===(e=this.view)||void 0===e?void 0:e.$el.closest(t);return(null==n?void 0:n.length)?n.data("model"):void 0},r.prototype.closestType=function(t){for(var e=this.parent();e&&!e.is(t);)e=e.parent();return e},r.prototype.contains=function(t){var e=!1;if(!t)return e;var n=function(r){!e&&r.forEach((function(r){r===t&&(e=!0),!e&&n(r.components())}))};return n(this.components()),e},r.prototype.tagUpdated=function(){this.trigger("rerender")},r.prototype.replaceWith=function(t){var e=this.collection,n=e.indexOf(this);return e.remove(this),e.add(t,{at:n})},r.prototype.attrUpdated=function(n,r,o){var i=this;void 0===o&&(o={});var a=this.get("attributes"),s=a.class;s&&this.setClass(s),delete a.class;var l=a.style;l&&this.setStyle(l),delete a.style;var c=$e({},this.previous("attributes")),u=(0,e.shallowDiff)(c,this.get("attributes"));(0,t.keys)(u).forEach((function(t){return i.trigger("change:attributes:".concat(t),i,u[t],o)}))},r.prototype.setAttributes=function(t,e){return void 0===e&&(e={}),this.set("attributes",$e({},t),e),this},r.prototype.addAttributes=function(t,e){return void 0===e&&(e={}),this.setAttributes($e($e({},this.getAttributes({noClass:!0})),t),e)},r.prototype.removeAttributes=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={});var n=Array.isArray(t)?t:[t],r=this.getAttributes();return n.map((function(t){return delete r[t]})),this.setAttributes(r,e)},r.prototype.getStyle=function(e,r){void 0===e&&(e={}),void 0===r&&(r={});var o=this.em,i=(0,t.isString)(e)?e:"",a=i?r:e;if(Ze(o)&&!a.inline){var s=o.get("state"),l=o.Css.getIdRule(this.getId(),$e({state:s},a));if(this.rule=l,l)return l.getStyle(i)}return n.prototype.getStyle.call(this,i)},r.prototype.setStyle=function(r,o){var i=this;void 0===r&&(r={}),void 0===o&&(o={});var a=this.opt,s=this.em;if(!Ze(s)||a.temporary||o.inline)r=n.prototype.setStyle.apply(this,arguments);else{var l=this.get("style")||{};r=(0,t.isString)(r)?this.parseStyle(r):r,r=$e($e({},r),l);var c=s.get("state"),u=s.Css,p=this.getStyle(o);this.rule=u.setIdRule(this.getId(),r,$e({state:c},o));var f=(0,e.shallowDiff)(p,r);this.set("style","",{silent:!0}),(0,t.keys)(f).forEach((function(t){return i.trigger("change:style:".concat(t))}))}return r},r.prototype.getAttributes=function(n){void 0===n&&(n={});var r=this.em,o=[],i=$e({},this.get("attributes")),a=null==r?void 0:r.Selectors,s=this.getId();if(n.noClass?delete i.class:(this.classes.forEach((function(e){return o.push((0,t.isString)(e)?e:e.get("name"))})),o.length&&(i.class=o.join(" "))),!n.noStyle){var l=this.get("style");(0,e.isObject)(l)&&!(0,e.isEmptyObj)(l)&&(i.style=this.styleToString({inline:1}))}if(!(0,t.has)(i,"id")){var c=!1;!Ze(r)&&(0,t.isEmpty)(this.getStyle())||(c=!!(null==a?void 0:a.get(s,a.Selector.TYPE_ID))),(this.__getSymbol()||this.__getSymbols())&&(c=!0),c&&(i.id=s)}return i},r.prototype.addClass=function(t){var e=this.em.Selectors.addClass(t);return this.classes.add(e)},r.prototype.setClass=function(t){return this.classes.reset(),this.addClass(t)},r.prototype.removeClass=function(e){var n=[];e=(0,t.isArray)(e)?e:[e];var r=this.classes,o=Ie.TYPE_CLASS;return e.forEach((function(t){t.split(" ").forEach((function(t){var e=r.where({name:t,type:o})[0];e&&n.push(r.remove(e))}))})),n},r.prototype.getClasses=function(){var t=this.getAttributes().class;return t?t.split(" "):[]},r.prototype.__logSymbol=function(t,e,n){void 0===n&&(n={});var r=this.__getSymbol(),o=this.__getSymbols();(r||o)&&this.em.log(t,{model:this,toUp:e,context:"symbols",opts:n})},r.prototype.__initSymb=function(){this.__symbReady||(this.on("change",this.__upSymbProps),this.__symbReady=!0)},r.prototype.__isSymbol=function(){return(0,t.isArray)(this.get(tn))},r.prototype.__isSymbolOrInst=function(){return!(!this.__isSymbol()&&!this.get(en))},r.prototype.__isSymbolTop=function(){var t=this.parent();return this.__isSymbolOrInst()&&(!t||t&&!t.__isSymbol()&&!t.__getSymbol())},r.prototype.__isSymbolNested=function(){if(!this.__isSymbolOrInst()||this.__isSymbolTop())return!1;var t=(this.__isSymbol()?this:this.__getSymbol()).__getSymbTop(),e=this.__getSymbTop();return(e.__isSymbol()?e:e.__getSymbol())!==t},r.prototype.__getAllById=function(){var t=this.em;return t?t.Components.allById():{}},r.prototype.__getSymbol=function(){var e=this.get(en);if(e&&(0,t.isString)(e)){var n=this.__getAllById()[e];n?(e=n,this.set(en,n)):e=0}return e},r.prototype.__getSymbols=function(){var e=this,n=this.get(tn);return n&&(0,t.isArray)(n)&&(n.forEach((function(r,o){r&&(0,t.isString)(r)&&(n[o]=e.__getAllById()[r])})),n=n.filter((function(e){return e&&!(0,t.isString)(e)}))),n},r.prototype.__isSymbOvrd=function(e){void 0===e&&(e="");var n=this.get(nn),r=e.split(":")[0],o=e!==r?[e,r]:[e];return!0===n||(0,t.isArray)(n)&&o.some((function(t){return n.indexOf(t)>=0}))},r.prototype.__getSymbToUp=function(t){var e=this;void 0===t&&(t={});var n=[],r=t.changed;if(t.fromInstance||t.noPropagate||t.fromUndo||r&&this.__isSymbOvrd(r))return n;var o=this.__getSymbols()||[],i=this.__getSymbol();return(i?Xe([i],i.__getSymbols()||[],!0):o).filter((function(t){return t!==e})).filter((function(t){return!(r&&t.__isSymbOvrd(r))}))},r.prototype.__getSymbTop=function(t){for(var e=this,n=this.parent(t);n&&(n.__isSymbol()||n.__getSymbol());)e=n,n=n.parent(t);return e},r.prototype.__upSymbProps=function(n,r){var o=this;void 0===r&&(r={});var i=this.changedAttributes()||{},a=i.attributes||{};if(delete i.status,delete i.open,delete i[tn],delete i[en],delete i[nn],delete i.attributes,delete a.id,(0,e.isEmptyObj)(a)||(i.attributes=a),!(0,e.isEmptyObj)(i)){var s=this.__getSymbToUp(r);(0,t.keys)(i).map((function(t){o.__isSymbOvrd(t)&&delete i[t]})),this.__logSymbol("props",s,{opts:r,changed:i}),s.forEach((function(e){var n=$e({},i);(0,t.keys)(n).map((function(t){e.__isSymbOvrd(t)&&delete n[t]})),e.set(n,$e({fromInstance:o},r))}))}},r.prototype.__upSymbCls=function(t,e,n){var r=this;void 0===n&&(n={});var o=this.__getSymbToUp(n);this.__logSymbol("classes",o,{opts:n}),o.forEach((function(t){t.set("classes",r.get("classes"),{fromInstance:r})})),this.__changesUp(n)},r.prototype.__upSymbComps=function(t,e,n){var r=this,o=n||e||{},i={fromInstance:o.fromInstance,fromUndo:o.fromUndo},a=t.opt.temporary;if(n)if(n.add){var s=[],l=!!this.__getSymbols();if((v=this.__getSymbToUp($e($e({},i),{changed:"components:add"}))).length){var c=t.__getSymbol();s=(c?c.__getSymbols():t.__getSymbols())||[],(s=Xe([],s,!0)).push(c||t)}!a&&this.__logSymbol("add",v,{opts:n,addedInstances:s.map((function(t){return t.cid})),added:t.cid}),v.forEach((function(e){var o=e.__getSymbTop(),i=s.filter((function(t){var e=t.__getSymbTop({prev:1});return o&&e&&e===o}))[0]||t.clone({symbol:!0,symbolInv:l});e.append(i,$e({fromInstance:r},n))}))}else{var u=t.__getSymbol();if(u&&!n.temporary&&u.set(tn,u.__getSymbols().filter((function(e){return e!==t}))),!t.__isSymbolTop()){var p="components:remove",f=n.index,d=t.parent(),h=$e({fromInstance:t},n),g=t.__isSymbolNested(),m=function(t){var e=t.parent();e&&!e.__isSymbOvrd(p)&&t.remove(h)};v=(null==d?void 0:d.__isSymbOvrd(p))?[]:t.__getSymbToUp(i),g&&(v=null==d?void 0:d.__getSymbToUp($e($e({},i),{changed:p})),m=function(t){var e=t.components().at(f);e&&e.remove($e({fromInstance:d},h))}),!a&&this.__logSymbol("remove",v,{opts:n,removed:t.cid,isSymbNested:g}),v.forEach(m)}}else{var v=this.__getSymbToUp($e($e({},i),{changed:"components:reset"})),y=t.models;this.__logSymbol("reset",v,{components:y}),v.forEach((function(t){var n=y.map((function(t){return t.clone({symbol:!0})}));t.components().reset(n,$e({fromInstance:r},e))}))}this.__changesUp(o)},r.prototype.initClasses=function(e,n,r){void 0===r&&(r={});var o=this.get("attributes")||{},i=o.class,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(o,["class"]),s=[this,"change:classes",this.initClasses],l=this.get("classes")||i||[],c=(0,t.isString)(l)?l.split(" "):l;this.stopListening.apply(this,s);var u=this.normalizeClasses(c),p=new Fe([]);return this.set("classes",p,r),p.add(u),p.on("add remove reset",this.__upSymbCls),i&&u.length&&this.set("attributes",a),this.listenTo.apply(this,s),this},r.prototype.initComponents=function(){var e=[this,"change:components",this.initComponents];this.stopListening.apply(this,e);var n=new Ne([],this.opt);n.parent=this;var r=this.get("components"),o=!this.opt.avoidChildren;return this.set("components",n),o&&r&&n.add((0,t.isFunction)(r)?r(this):r,this.opt),n.on("add remove reset",this.__upSymbComps),this.listenTo.apply(this,e),this},r.prototype.initTraits=function(t){var e=this.em,n="change:traits";this.off(n,this.initTraits),this.__loadTraits();var r=$e({},this.get("attributes")),o=this.traits;return o.each((function(t){if(!t.get("changeProp")){var e=t.get("name"),n=t.getInitValue();e&&n&&(r[e]=n)}})),o.length&&this.set("attributes",r),this.on(n,this.initTraits),t&&e&&e.trigger("component:toggled"),this},r.prototype.initScriptProps=function(){if(!this.opt.temporary){var t="script-props",e=["change:".concat(t),this.initScriptProps];this.off.apply(this,e);var n=this.previous(t)||[],r=this.get(t)||[],o=n.map((function(t){return"change:".concat(t)})).join(" "),i=r.map((function(t){return"change:".concat(t)})).join(" ");o&&this.off(o,this.__scriptPropsChange),i&&this.on(i,this.__scriptPropsChange),this.on.apply(this,e)}},r.prototype.__scriptPropsChange=function(t,e,n){void 0===n&&(n={}),n.avoidStore||this.trigger("rerender")},r.prototype.append=function(e,n){void 0===n&&(n={});var r=((0,t.isArray)(e)?Xe([],e,!0):[e]).map((function(e){return(0,t.isString)(e)||e.collection&&e.collection.remove(e,{temporary:!0}),e})),o=this.components().add(r,n);return(0,t.isArray)(o)?o:[o]},r.prototype.components=function(e,n){void 0===n&&(n={});var r=this.get("components");return(0,t.isUndefined)(e)?r:(r.reset(void 0,n),e?this.append(e,n):[])},r.prototype.getChildAt=function(t){return this.components().at(t||0)||void 0},r.prototype.getLastChild=function(){var t=this.components();return t.at(t.length-1)||null},r.prototype.empty=function(t){return void 0===t&&(t={}),this.components().reset(void 0,t),this},r.prototype.parent=function(t){void 0===t&&(t={});var e=this.collection||t.prev&&this.prevColl;return e?e.parent:void 0},r.prototype.parents=function(){var t=this.parent();return t?[t].concat(t.parents()):[]},r.prototype.scriptUpdated=function(){this.set("scriptUpdated",1)},r.prototype.initToolbar=function(){var t=this.em,e=this,n=t&&t.getConfig().stylePrefix||"";if(!e.get("toolbar")&&t){var r=[];e.collection&&r.push({label:t.getIcon("arrowUp"),command:function(t){return t.runCommand("core:component-exit",{force:1})}}),e.get("draggable")&&r.push({attributes:{class:"".concat(n,"no-touch-actions"),draggable:!0},label:t.getIcon("move"),command:"tlb-move"}),e.get("copyable")&&r.push({label:t.getIcon("copy"),command:"tlb-clone"}),e.get("removable")&&r.push({label:t.getIcon("delete"),command:"tlb-delete"}),e.set("toolbar",r)}},r.prototype.__loadTraits=function(e,n){void 0===n&&(n={});var r=e||this.traits;if(!(r instanceof Ye)){r=(0,t.isFunction)(r)?r(this):r;var o=new Ye([],this.opt);o.setTarget(this),r.length&&(r.forEach((function(t){return t.attributes&&delete t.attributes.value})),o.add(r)),this.set({traits:o},n)}return this},r.prototype.getTraits=function(){return this.__loadTraits(),Xe([],this.traits.models,!0)},r.prototype.setTraits=function(e){var n=(0,t.isArray)(e)?e:[e];return this.set({traits:n}),this.getTraits()},r.prototype.getTrait=function(t){return this.getTraits().filter((function(e){return e.get("id")===t||e.get("name")===t}))[0]||null},r.prototype.updateTrait=function(t,e){var n,r=this.getTrait(t);return r&&r.set(e),null===(n=this.em)||void 0===n||n.trigger("component:toggled"),this},r.prototype.getTraitIndex=function(t){var e=this.getTrait(t);return e?this.traits.indexOf(e):-1},r.prototype.removeTrait=function(e){var n,r=this,o=((0,t.isArray)(e)?e:[e]).map((function(t){return r.getTrait(t)})),i=this.traits,a=o.length?i.remove(o):[];return null===(n=this.em)||void 0===n||n.trigger("component:toggled"),(0,t.isArray)(a)?a:[a]},r.prototype.addTrait=function(e,n){var r;void 0===n&&(n={}),this.__loadTraits();var o=this.traits.add(e,n);return null===(r=this.em)||void 0===r||r.trigger("component:toggled"),(0,t.isArray)(o)?o:[o]},r.prototype.normalizeClasses=function(t){var e=[],n=this.em,r=null==n?void 0:n.Selectors;return r?t.models?Xe([],t.models,!0):(t.forEach((function(t){return e.push(r.add(t))})),e):[]},r.prototype.clone=function(t){void 0===t&&(t={});var e=this.em,n=$e({},this.attributes),r=$e({},this.opt),o=this.getId(),i=null==e?void 0:e.Css;n.attributes=$e({},n.attributes),delete n.attributes.id,n.components=[],n.classes=[],n.traits=[],this.__isSymbolTop()&&(t.symbol=!0),this.get("components").each((function(e,r){n.components[r]=e.clone($e($e({},t),{_inner:1}))})),this.get("traits").each((function(t,e){n.traits[e]=t.clone()})),this.get("classes").each((function(t,e){n.classes[e]=t.get("name")})),n.status="",r.collection=null;var a=new this.constructor(n,r),s="#".concat(a.getId());(i?i.getRules("#".concat(o)):[]).forEach((function(t){var e=t.clone();e.set("selectors",[s]),i.getAll().add(e)})),a.set(tn,0);var l=this.__getSymbol(),c=this.__getSymbols();t.symbol||!l&&!c?l?(l.set(tn,Xe(Xe([],l.__getSymbols(),!0),[a],!1)),a.__initSymb()):t.symbol&&(this.__isSymbol()?(this.set(tn,Xe(Xe([],c,!0),[a],!1)),a.set(en,this),a.__initSymb()):t.symbolInv?(this.set(tn,[a]),a.set(en,this),[this,a].map((function(t){return t.__initSymb()}))):(a.set(tn,[this]),[this,a].map((function(t){return t.__initSymb()})),this.set(en,a))):(a.set(en,0),a.set(tn,0));var u="component:clone";return e&&e.trigger(u,a),this.trigger(u,a),a},r.prototype.getName=function(t){void 0===t&&(t={});var n=this.em,r=this.attributes,o=r.type,i=r.tagName,a=r.name,s=o||i,l=o?"":i,c="domComponents.names.",u=a&&(null==n?void 0:n.t("".concat(c).concat(a))),p=l&&(null==n?void 0:n.t("".concat(c).concat(l))),f=n&&(n.t("".concat(c).concat(o))||n.t("".concat(c).concat(i))),d=this.get("custom-name");return(t.noCustom?"":d)||u||a||p||(0,e.capitalize)(l)||f||(0,e.capitalize)(s)},r.prototype.getIcon=function(){var t=this.get("icon");return t?t+" ":""},r.prototype.toHTML=function(n){void 0===n&&(n={});var r=this,o=[],i=n.tag||r.get("tagName"),a=r.get("void"),s=n.attributes,l=this.getAttrToHTML();if(delete n.tag,s&&((0,t.isFunction)(s)?l=s(r,l)||{}:(0,e.isObject)(s)&&(l=s)),n.withProps){var c=this.toJSON();(0,t.forEach)(c,(function(n,r){"_"!==r[0]&&["classes","attributes","components"].indexOf(r)<0&&(l["data-gjs-".concat(r)]=(0,t.isArray)(n)||(0,e.isObject)(n)?JSON.stringify(n):n)}))}for(var u in l){var p=l[u];if(!(0,t.isUndefined)(p)&&null!==p)if((0,t.isBoolean)(p))p&&o.push(u);else{var f="";if(n.altQuoteAttr&&(0,t.isString)(p)&&p.indexOf('"')>=0)f="'".concat(p.replace(/'/g,"'"),"'");else{var d=(0,t.isString)(p)?p.replace(/"/g,"""):p;f='"'.concat(d,'"')}o.push("".concat(u,"=").concat(f))}}var h=o.length?" ".concat(o.join(" ")):"",g=r.getInnerHTML(n),m="<".concat(i).concat(h).concat(a?"/":"",">").concat(g);return!a&&(m+="</".concat(i,">")),m},r.prototype.getInnerHTML=function(t){return this.__innerHTML(t)},r.prototype.__innerHTML=function(t){void 0===t&&(t={});var e=this.components();return e.length?e.map((function(e){return e.toHTML(t)})).join(""):this.content},r.prototype.getAttrToHTML=function(){var t=this.getAttributes();return Ze(this.em)&&delete t.style,t},r.prototype.toJSON=function(e){void 0===e&&(e={});var n=s.Model.prototype.toJSON.call(this,e);if(n.attributes=this.getAttributes(),delete n.attributes.class,delete n.toolbar,delete n.traits,delete n.status,delete n.open,delete n._undoexc,!e.fromUndo){var r=n[en],o=n[tn];o&&(0,t.isArray)(o)&&(n[tn]=o.filter((function(t){return t})).map((function(t){return t.getId?t.getId():t}))),r&&!(0,t.isString)(r)&&(n[en]=r.getId())}return this.em.getConfig().avoidDefaults&&this.getChangedProps(n),n},r.prototype.getChangedProps=function(e){var n=e||s.Model.prototype.toJSON.apply(this),r=(0,t.result)(this,"defaults");return(0,t.forEach)(r,(function(t,e){-1===["type"].indexOf(e)&&n[e]===t&&delete n[e]})),(0,t.isEmpty)(n.type)&&delete n.type,(0,t.forEach)(["attributes","style"],(function(e){(0,t.isEmpty)(r[e])&&(0,t.isEmpty)(n[e])&&delete n[e]})),(0,t.forEach)(["classes","components"],(function(e){(!n[e]||(0,t.isEmpty)(r[e])&&!n[e].length)&&delete n[e]})),n},r.prototype.getId=function(){return(this.get("attributes")||{}).id||this.ccid||this.cid},r.prototype.setId=function(t,e){var n=$e({},this.get("attributes"));return n.id=t,this.set("attributes",n,e),this},r.prototype.getEl=function(t){var e=this.getView(t);return e&&e.el},r.prototype.getView=function(t){var e=this,n=e.view,r=e.views,o=e.em,i=t||(null==o?void 0:o.getCurrentFrameModel());return i&&(n=r.filter((function(t){return t.frameView===i.view}))[0]),n},r.prototype.getCurrentView=function(){var t=this.em.getCurrentFrame(),e=null==t?void 0:t.model;return this.getView(e)},r.prototype.__getScriptProps=function(){var t=this.props();return(this.get("script-props")||[]).reduce((function(e,n){return e[n]=t[n],e}),{})},r.prototype.getScriptString=function(e){var n=this,r=e||this.get("script")||"";if(!r)return r;if(this.get("script-props"))r=r.toString().trim();else{if((0,t.isFunction)(r)){var o=r.toString().trim();r=(o=o.slice(o.indexOf("{")+1,o.lastIndexOf("}"))).trim()}var i=this.em.getConfig(),a=Qe(i.tagVarStart||"{[ "),s=Qe(i.tagVarEnd||" ]}"),l=new RegExp("".concat(a,"([\\w\\d-]*)").concat(s),"g");r=r.replace(l,(function(e,r){n.scriptUpdated();var o=n.attributes[r]||"";return(0,t.isArray)(o)||"object"==typeof o?JSON.stringify(o):o}))}return r},r.prototype.emitUpdate=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.em,i=rn+(t?":".concat(t):""),a=t&&this.get(t);t&&this.updated.apply(this,Xe([t,a,t&&this.previous(t)],n,!1)),this.trigger.apply(this,Xe([i],n,!1)),o&&o.trigger.apply(o,Xe([i,this],n,!1)),["components","classes"].indexOf(t)>=0&&this.__propSelfToParent({component:this,changed:(e={},e[t]=a,e),options:n[2]||n[1]||{}})},r.prototype.onAll=function(e){return(0,t.isFunction)(e)&&(e(this),this.components().forEach((function(t){return t.onAll(e)}))),this},r.prototype.forEachChild=function(e){(0,t.isFunction)(e)&&this.components().forEach((function(t){e(t),t.forEachChild(e)}))},r.prototype.remove=function(t){var e=this;void 0===t&&(t={});var n=this.em,r=this.collection,o=function(){r&&r.remove(e,$e($e({},t),{action:"remove-component"})),r||(e.components("",t),e.components().removeChildren(e,void 0,t))},i=$e({},t);return[this,n].map((function(t){return t.trigger("component:remove:before",e,o,i)})),!i.abort&&o(),this},r.prototype.move=function(t,e){if(void 0===e&&(e={}),t){var n=e.at,r=this.index(),o=t===this.parent();o&&(r===n||r===n-1)||(o&&n&&n>r&&(e.at=n-1),this.remove({temporary:1}),t.append(this,e),this.emitUpdate())}return this},r.prototype.isInstanceOf=function(t){var e,n,r=null===(n=null===(e=this.em)||void 0===e?void 0:e.Components.getType(t))||void 0===n?void 0:n.model;return!!r&&this instanceof r},r.prototype.isChildOf=function(e){for(var n=(0,t.isString)(e),r=this.parent();r;){if(n){if(r.isInstanceOf(e))return!0}else if(r===e)return!0;r=r.parent()}return!1},r.prototype.resetId=function(t){void 0===t&&(t={});var e=this.em,n=this.getId();if(!n)return this;var o=r.createId(this);this.setId(o);var i=null==e?void 0:e.Css.getIdRule(n),a=null==i?void 0:i.get("selectors").at(0);return null==a||a.set("name",o),this},r.prototype._getStyleRule=function(t){var e=(void 0===t?{}:t).id,n=this.em,r=e||this.getId();return null==n?void 0:n.Css.getIdRule(r)},r.prototype._getStyleSelector=function(t){var e=this._getStyleRule(t);return null==e?void 0:e.get("selectors").at(0)},r.prototype._idUpdated=function(t,e,n){if(void 0===n&&(n={}),!n.idUpdate){var o=this.ccid,i=(this.get("attributes")||{}).id,a=(this.previous("attributes")||{}).id||o,s=r.getList(this);if(s[i]||!i&&a)return this.setId(a,{idUpdate:!0});delete s[a],s[i]=this,this.ccid=i;var l=this._getStyleSelector({id:a});l&&l.set({name:i,label:i})}},r.getDefaults=function(){return(0,t.result)(this.prototype,"defaults")},r.isComponent=function(t){return{tagName:(0,e.toLowerCase)(t.tagName)}},r.ensureInList=function(t){var e=r.getList(t),n=t.getId(),o=e[n];if(o){if(o!==t){var i=r.getIncrementId(n,e);t.setId(i),e[i]=t}}else e[n]=t;t.components().forEach((function(t){return r.ensureInList(t)}))},r.createId=function(t,e){void 0===e&&(e={});var n,o=r.getList(t),i=e.idMap,a=void 0===i?{}:i,s=t.get("attributes").id;return s?(n=r.getIncrementId(s,o,e),t.setId(n),s!==n&&(a[s]=n)):n=r.getNewId(o),o[n]=t,n},r.getNewId=function(t){for(var e=Object.keys(t).length.toString().length+2,n=(Math.random()+1.1).toString(36).slice(-e),o="i".concat(n);t[o];)o=r.getNewId(t);return o},r.getIncrementId=function(t,e,n){void 0===n&&(n={});var r=n.keepIds,o=1,i=t;if((void 0===r?[]:r).indexOf(t)<0)for(;e[i];)o++,i="".concat(t,"-").concat(o);return i},r.getList=function(t){var e=t.opt,n=void 0===e?{}:e,r=n.domc,o=n.em,i=r||(null==o?void 0:o.Components);return i?i.componentsById:{}},r.checkId=function(e,n,o,i){void 0===n&&(n=[]),void 0===o&&(o={}),void 0===i&&(i={});var a=(0,t.isArray)(e)?e:[e],s=i.keepIds,l=void 0===s?[]:s;a.forEach((function(e){e.attributes;var a=e.attributes,s=void 0===a?{}:a,c=e.components,u=s.id;if(u&&o[u]&&l.indexOf(u)<0){var p=r.getIncrementId(u,o);s.id=p,(0,t.isArray)(n)&&n.forEach((function(t){var e=t.selectors;e.forEach((function(t,n){t==="#".concat(u)&&(e[n]="#".concat(p))}))}))}c&&r.checkId(c,n,o,i)}))},r}(Te);const sn=an;var ln=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cn=function(){return cn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},cn.apply(this,arguments)},un=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return ln(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return cn(cn({},t.prototype.defaults),{tagName:"",droppable:!1,layerable:!1,selectable:!1,editable:!0})},enumerable:!1,configurable:!0}),n.prototype.toHTML=function(){var t=this.content,e=this.parent();return(null==e?void 0:e.is("script"))?t:this.__escapeContent(t)},n.prototype.__escapeContent=function(t){return(0,e.escapeNodeContent)(t)},n.isComponent=function(t){var e;if(3===t.nodeType)return{type:"textnode",content:null!==(e=t.textContent)&&void 0!==e?e:""}},n}(sn);const pn=un;var fn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dn=function(){return dn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},dn.apply(this,arguments)},hn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fn(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return dn({},t.prototype.defaults)},enumerable:!1,configurable:!0}),e.prototype.toHTML=function(){return"\x3c!--".concat(this.content,"--\x3e")},e.isComponent=function(t){var e;if(8==t.nodeType)return{tagName:"NULL",type:"comment",content:null!==(e=t.textContent)&&void 0!==e?e:""}},e}(pn);const gn=hn;var mn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vn=function(){return vn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},vn.apply(this,arguments)},yn="iframe";const bn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return mn(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return vn(vn({},t.prototype.defaults),{type:yn,tagName:yn,droppable:!1,resizable:!0,traits:["id","title","src"],attributes:{frameborder:"0"}})},enumerable:!1,configurable:!0}),n.isComponent=function(t){return(0,e.toLowerCase)(t.tagName)===yn},n}(sn);var _n=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wn=function(){return wn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},wn.apply(this,arguments)},En='xmlns="http://www.w3.org/2000/svg" width="100" viewBox="0 0 24 24" style="fill: rgba(0,0,0,0.15); transform: scale(0.75)"',xn=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return _n(r,n),Object.defineProperty(r.prototype,"defaults",{get:function(){return wn(wn({},n.prototype.defaults),{type:"image",tagName:"img",void:!0,droppable:0,editable:1,highlightable:0,resizable:{ratioDefault:1},traits:["alt"],src:"<svg ".concat(En,'>\n <path d="M8.5 13.5l2.5 3 3.5-4.5 4.5 6H5m16 1V5a2 2 0 0 0-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2z"></path>\n </svg>'),fallback:"<svg ".concat(En,'>\n <path d="M2.28 3L1 4.27l2 2V19c0 1.1.9 2 2 2h12.73l2 2L21 21.72 2.28 3m2.55 0L21 19.17V5a2 2 0 0 0-2-2H4.83M8.5 13.5l2.5 3 1-1.25L14.73 18H5l3.5-4.5z"></path>\n </svg>'),file:""})},enumerable:!1,configurable:!0}),r.prototype.initialize=function(r,o){n.prototype.initialize.call(this,r,o);var i=this.get("attributes").src;i&&(0,e.buildBase64UrlFromSvg)((0,t.result)(this,"defaults").src)!==i&&this.set("src",i,{silent:!0})},r.prototype.initToolbar=function(){n.prototype.initToolbar.call(this);var t=this.em;if(t){var e="image-editor";if(t.Commands.has(e)){for(var r=!1,o=this.get("toolbar"),i=0;i<o.length;i++)if("image-editor"===o[i].command){r=!0;break}r||(o.push({attributes:{class:"fa fa-pencil"},command:e}),this.set("toolbar",o))}}},r.prototype.getAttrToHTML=function(){var t=n.prototype.getAttrToHTML.call(this),e=this.getSrcResult();return e&&(t.src=e),t},r.prototype.getSrcResult=function(t){void 0===t&&(t={});var n=this.get(t.fallback?"fallback":"src")||"",r=n;return n&&"<svg"===n.substr(0,4)&&(r=(0,e.buildBase64UrlFromSvg)(n)),r},r.prototype.isDefaultSrc=function(){var n=this.get("src"),r=(0,t.result)(this,"defaults").src;return n===r||n===(0,e.buildBase64UrlFromSvg)(r)},r.prototype.toJSON=function(t){var e=n.prototype.toJSON.call(this,t),r=e.attributes;return r&&e.src===r.src&&delete e.src,e},r.prototype.parseUri=function(t){var n={};if((0,e.hasWin)())(n=document.createElement("a")).href=t;else if("undefined"!=typeof URL)try{n=new URL(t)}catch(t){}return{hostname:n.hostname||"",pathname:n.pathname||"",protocol:n.protocol||"",search:n.search||"",hash:n.hash||"",port:n.port||"",query:function(t){void 0===t&&(t="");for(var e={},n=t.substring(1).split("&"),r=0;r<n.length;r++){var o=n[r].split("="),i=decodeURIComponent(o[0]);i&&(e[i]=decodeURIComponent(o[1]||""))}return e}(n.search)}},r.isComponent=function(t){return"img"===(0,e.toLowerCase)(t.tagName)},r}(sn);const Tn=xn;var Cn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),An=function(){return An=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},An.apply(this,arguments)};const On=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Cn(n,e),Object.defineProperty(n.prototype,"defaults",{get:function(){return An(An({},e.prototype.defaults),{type:"text",droppable:!1,editable:!0})},enumerable:!1,configurable:!0}),n.prototype.initialize=function(t,n){e.prototype.initialize.call(this,t,n),this.__checkInnerChilds()},n.prototype.__checkInnerChilds=function(){var e=this.em.Components.config.disableTextInnerChilds;if(e){var n=function(t){t.isInstanceOf("textnode")||t.set({locked:!0,layerable:!1})};(0,t.isFunction)(e)?this.forEachChild((function(t){e(t)&&n(t)})):this.forEachChild(n)}},n}(sn);var Sn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kn=function(){return kn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},kn.apply(this,arguments)},Pn="label";const jn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Sn(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return kn(kn({},t.prototype.defaults),{type:Pn,tagName:Pn,traits:["id","title","for"]})},enumerable:!1,configurable:!0}),n.isComponent=function(t){return(0,e.toLowerCase)(t.tagName)===Pn},n}(On);var Nn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ln=function(){return Ln=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ln.apply(this,arguments)},Dn="link";const In=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return Nn(r,n),Object.defineProperty(r.prototype,"defaults",{get:function(){return Ln(Ln({},n.prototype.defaults),{type:Dn,tagName:"a",traits:["title","href","target"]})},enumerable:!1,configurable:!0}),r.isComponent=function(n,r){var o;if(void 0===r&&(r={}),"a"===(0,e.toLowerCase)(n.tagName)){var i=r.textTags||[];o={type:Dn,editable:!1};var a=n.childNodes;a.length||delete o.editable,(0,t.forEach)(a,(function(t){var n=t.tagName;(3==t.nodeType&&""!==t.textContent.trim()||n&&i.indexOf((0,e.toLowerCase)(n))>=0)&&delete o.editable}))}return o},r}(On);var Rn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mn=function(){return Mn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Mn.apply(this,arguments)},Bn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Rn(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){var e=t.prototype.defaults;return Mn(Mn({},e),{type:"map",src:"",void:!1,mapUrl:"https://maps.google.com/maps",tagName:"iframe",mapType:"q",address:"",zoom:"1",attributes:{frameborder:0},toolbar:e.toolbar,traits:[{label:"Address",name:"address",placeholder:"eg. London, UK",changeProp:1},{type:"select",label:"Map type",name:"mapType",changeProp:1,options:[{value:"q",name:"Roadmap"},{value:"w",name:"Satellite"}]},{label:"Zoom",name:"zoom",type:"range",min:"1",max:"20",changeProp:1}]})},enumerable:!1,configurable:!0}),n.prototype.initialize=function(e,n){this.get("src")?this.parseFromSrc():this.updateSrc(),t.prototype.initialize.call(this,e,n),this.listenTo(this,"change:address change:zoom change:mapType",this.updateSrc)},n.prototype.updateSrc=function(){this.set("src",this.getMapUrl())},n.prototype.getMapUrl=function(){var t=this.get("address"),e=this.get("zoom"),n=this.get("mapType");return t=t?"&q="+t:"",e=e?"&z="+e:"",n=n?"&t="+n:"",this.get("mapUrl")+"?"+t+e+n+"&output=embed"},n.prototype.parseFromSrc=function(){var t=this.parseUri(this.get("src")).query;t.q&&this.set("address",t.q),t.z&&this.set("zoom",t.z),t.t&&this.set("mapType",t.t)},n.isComponent=function(t){if("iframe"==(0,e.toLowerCase)(t.tagName)&&/maps\.google\.com/.test(t.src))return{type:"map",src:t.src}},n}(Tn);const Fn=Bn;var Un=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hn=function(){return Hn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Hn.apply(this,arguments)},Vn="script";const qn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Un(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return Hn(Hn({},t.prototype.defaults),{type:Vn,tagName:Vn,droppable:!1,draggable:!1,layerable:!1})},enumerable:!1,configurable:!0}),n.isComponent=function(t){if((0,e.toLowerCase)(t.tagName)==Vn){var n={type:Vn};return t.src&&(n.src=t.src,n.onload=t.onload),n}},n}(sn);var zn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gn=function(){return Gn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Gn.apply(this,arguments)},Wn="svg";const Yn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return zn(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return Gn(Gn({},t.prototype.defaults),{type:Wn,tagName:Wn,highlightable:!1,resizable:{ratioDefault:!0}})},enumerable:!1,configurable:!0}),n.prototype.getName=function(){var t=this.get("tagName"),e=this.get("custom-name");return t=t.charAt(0).toUpperCase()+t.slice(1),e||t},n.isComponent=function(t){return(0,e.toLowerCase)(t.tagName)===Wn},n}(sn);var Kn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$n=function(){return $n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$n.apply(this,arguments)};const Xn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Kn(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return $n($n({},t.prototype.defaults),{selectable:!1,hoverable:!1,layerable:!1})},enumerable:!1,configurable:!0}),e.isComponent=function(t,e){return void 0===e&&(e={}),!!e.inSvg},e}(Yn);var Qn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zn=function(){return Zn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Zn.apply(this,arguments)},Jn="table",tr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Qn(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return Zn(Zn({},t.prototype.defaults),{type:Jn,tagName:Jn,droppable:["tbody","thead","tfoot"]})},enumerable:!1,configurable:!0}),n.prototype.initialize=function(e,n){t.prototype.initialize.call(this,e,n);var r=this.get("components");!r.length&&r.add({type:"tbody"})},n.isComponent=function(t){return(0,e.toLowerCase)(t.tagName)===Jn},n}(sn);const er=tr;var nr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rr=function(){return rr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},rr.apply(this,arguments)},or="tbody",ir=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return nr(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return rr(rr({},t.prototype.defaults),{type:or,tagName:or,draggable:["table"],droppable:["tr"],columns:1,rows:1})},enumerable:!1,configurable:!0}),n.prototype.initialize=function(e,n){t.prototype.initialize.call(this,e,n);var r=this.get("components"),o=this.get("columns"),i=this.get("rows");if(!r.length){for(var a=[];i--;){for(var s=[],l=o;l--;)s.push({type:"cell",classes:["cell"]});a.push({type:"row",classes:["row"],components:s})}r.add(a)}},n.isComponent=function(t){return(0,e.toLowerCase)(t.tagName)===or},n}(sn);const ar=ir;var sr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lr=function(){return lr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},lr.apply(this,arguments)};const cr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return sr(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return lr(lr({},t.prototype.defaults),{type:"cell",tagName:"td",draggable:["tr"]})},enumerable:!1,configurable:!0}),n.isComponent=function(t){return["td","th"].indexOf((0,e.toLowerCase)(t.tagName))>=0},n}(sn);var ur=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pr=function(){return pr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},pr.apply(this,arguments)},fr="tfoot";const dr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return ur(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return pr(pr({},t.prototype.defaults),{type:fr,tagName:fr})},enumerable:!1,configurable:!0}),n.isComponent=function(t){return(0,e.toLowerCase)(t.tagName)===fr},n}(ar);var hr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gr=function(){return gr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},gr.apply(this,arguments)},mr="thead";const vr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return hr(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return gr(gr({},t.prototype.defaults),{type:mr,tagName:mr})},enumerable:!1,configurable:!0}),n.isComponent=function(t){return(0,e.toLowerCase)(t.tagName)===mr},n}(ar);var yr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),br=function(){return br=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},br.apply(this,arguments)};const _r=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return yr(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return br(br({},t.prototype.defaults),{tagName:"tr",draggable:["thead","tbody","tfoot"],droppable:["th","td"]})},enumerable:!1,configurable:!0}),n.isComponent=function(t){return"tr"===(0,e.toLowerCase)(t.tagName)},n}(sn);var wr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Er=function(){return Er=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Er.apply(this,arguments)},xr="video",Tr="yt",Cr="vi",Ar="ytnc",Or=function(t){return t&&"0"!==t},Sr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return wr(n,t),Object.defineProperty(n.prototype,"defaults",{get:function(){return Er(Er({},t.prototype.defaults),{type:xr,tagName:xr,videoId:"",void:!1,provider:"so",ytUrl:"https://www.youtube.com/embed/",ytncUrl:"https://www.youtube-nocookie.com/embed/",viUrl:"https://player.vimeo.com/video/",loop:!1,poster:"",muted:0,autoplay:!1,controls:!0,color:"",list:"",rel:1,modestbranding:0,sources:[],attributes:{allowfullscreen:"allowfullscreen"}})},enumerable:!1,configurable:!0}),n.prototype.initialize=function(e,n){this.em=n.em,this.get("src")&&this.parseFromSrc(),this.updatePropsFromAttr(),this.updateTraits(),this.on("change:provider",this.updateTraits),this.on("change:videoId change:provider",this.updateSrc),t.prototype.initialize.call(this,e,n)},n.prototype.updatePropsFromAttr=function(){if("so"===this.get("provider")){var t=this.get("attributes"),n=t.controls,r=t.autoplay,o=t.loop,i={};(0,e.isDef)(n)&&(i.controls=!!n),(0,e.isDef)(r)&&(i.autoplay=!!r),(0,e.isDef)(o)&&(i.loop=!!o),(0,e.isEmptyObj)(i)||this.set(i)}},n.prototype.updateTraits=function(){var t,e=this.em,n="iframe";switch(this.get("provider")){case Tr:case Ar:t=this.getYoutubeTraits();break;case Cr:t=this.getVimeoTraits();break;default:n="video",t=this.getSourceTraits()}this.set({tagName:n},{silent:!0}),this.set({traits:t}),e.get("ready")&&e.trigger("component:toggled")},n.prototype.parseFromSrc=function(){var t=this.get("provider"),e=this.parseUri(this.get("src")),n=e.query;switch(t){case Tr:case Ar:case Cr:this.set("videoId",e.pathname.split("/").pop()),n.list&&this.set("list",n.list),Or(n.autoplay)&&this.set("autoplay",!0),Or(n.loop)&&this.set("loop",!0),0===parseInt(n.controls)&&this.set("controls",!1),Or(n.color)&&this.set("color",n.color),"0"===n.rel&&this.set("rel",0),"1"===n.modestbranding&&this.set("modestbranding",1)}},n.prototype.updateSrc=function(){var t="";switch(this.get("provider")){case Tr:t=this.getYoutubeSrc();break;case Ar:t=this.getYoutubeNoCookieSrc();break;case Cr:t=this.getVimeoSrc()}this.set({src:t})},n.prototype.getAttrToHTML=function(){var e=t.prototype.getAttrToHTML.call(this);switch(this.get("provider")){case Tr:case Ar:case Cr:break;default:e.loop=!!this.get("loop"),e.autoplay=!!this.get("autoplay"),e.controls=!!this.get("controls")}return e},n.prototype.getProviderTrait=function(){return{type:"select",label:"Provider",name:"provider",changeProp:!0,options:[{value:"so",name:"HTML5 Source"},{value:Tr,name:"Youtube"},{value:Ar,name:"Youtube (no cookie)"},{value:Cr,name:"Vimeo"}]}},n.prototype.getSourceTraits=function(){return[this.getProviderTrait(),{label:"Source",name:"src",placeholder:"eg. ./media/video.mp4",changeProp:!0},{label:"Poster",name:"poster",placeholder:"eg. ./media/image.jpg"},this.getAutoplayTrait(),this.getLoopTrait(),this.getControlsTrait()]},n.prototype.getYoutubeTraits=function(){return[this.getProviderTrait(),{label:"Video ID",name:"videoId",placeholder:"eg. jNQXAC9IVRw",changeProp:!0},this.getAutoplayTrait(),this.getLoopTrait(),this.getControlsTrait(),{type:"checkbox",label:"Related",name:"rel",changeProp:!0},{type:"checkbox",label:"Modest",name:"modestbranding",changeProp:!0}]},n.prototype.getVimeoTraits=function(){return[this.getProviderTrait(),{label:"Video ID",name:"videoId",placeholder:"eg. 123456789",changeProp:!0},{label:"Color",name:"color",placeholder:"eg. FF0000",changeProp:!0},this.getAutoplayTrait(),this.getLoopTrait()]},n.prototype.getAutoplayTrait=function(){return{type:"checkbox",label:"Autoplay",name:"autoplay",changeProp:!0}},n.prototype.getLoopTrait=function(){return{type:"checkbox",label:"Loop",name:"loop",changeProp:!0}},n.prototype.getControlsTrait=function(){return{type:"checkbox",label:"Controls",name:"controls",changeProp:!0}},n.prototype.getYoutubeSrc=function(){var t=this.get("videoId"),e=this.get("ytUrl"),n=this.get("list");return e+=t+(t.indexOf("?")<0?"?":""),e+=n?"&list=".concat(n):"",e+=this.get("autoplay")?"&autoplay=1&muted=1":"",e+=this.get("controls")?"":"&controls=0&showinfo=0",e+=this.get("loop")?"&loop=1&playlist=".concat(t):"",(e+=this.get("rel")?"":"&rel=0")+(this.get("modestbranding")?"&modestbranding=1":"")},n.prototype.getYoutubeNoCookieSrc=function(){var t=this.getYoutubeSrc();return t.replace(this.get("ytUrl"),this.get("ytncUrl"))},n.prototype.getVimeoSrc=function(){var t=this.get("viUrl");return t+=this.get("videoId")+"?",t+=this.get("autoplay")?"&autoplay=1&muted=1":"",t+=this.get("loop")?"&loop=1":"",(t+=this.get("controls")?"":"&title=0&portrait=0&badge=0")+(this.get("color")?"&color="+this.get("color"):"")},n.isComponent=function(t){var n=t.tagName,r=t.src,o=/youtube\.com\/embed/.test(r),i=/youtube-nocookie\.com\/embed/.test(r),a=/player\.vimeo\.com\/video/.test(r),s=o||i||a;if((0,e.toLowerCase)(n)==xr||"iframe"==(0,e.toLowerCase)(n)&&s){var l={type:"video"};return r&&(l.src=r),s&&(o?l.provider=Tr:i?l.provider=Ar:a&&(l.provider=Cr)),l}},n}(Tn);const kr=Sr;var Pr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jr=function(){return jr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},jr.apply(this,arguments)},Nr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pr(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return jr(jr({},t.prototype.defaults),{tagName:"body",removable:!1,copyable:!1,draggable:!1,components:[],traits:[],stylable:["background","background-color","background-image","background-repeat","background-attachment","background-position","background-size"]})},enumerable:!1,configurable:!0}),e.prototype.__postAdd=function(){var e,n=null===(e=this.em)||void 0===e?void 0:e.UndoManager;return!this.__hasUm&&(null==n||n.add(this)),t.prototype.__postAdd.call(this)},e.prototype.__postRemove=function(){var e,n=null===(e=this.em)||void 0===e?void 0:e.UndoManager;return null==n||n.remove(this),t.prototype.__postRemove.call(this)},e.isComponent=function(){return!1},e}(sn);const Lr=Nr;var Dr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ir=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.compView=Ur,t}return Dr(n,e),n.prototype.initialize=function(t){this.opts=t||{},this.config=t.config||{},this.em=this.config.em;var e=this.collection;this.listenTo(e,"add",this.addTo),this.listenTo(e,"reset",this.resetChildren),this.listenTo(e,"remove",this.removeChildren)},n.prototype.removeChildren=function(t,e,n){var r=this;void 0===n&&(n={}),t.views.forEach((function(t){if(t){var e=t.childrenView,n=t.scriptContainer;e&&e.stopListening(),(0,Dt.L_)(n),t.remove.apply(t)}})),t.components().forEach((function(t){return r.removeChildren(t,e,n)}))},n.prototype.addTo=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=this.em,o=this.collection.indexOf(t);if(this.addToCollection(t,null,o),r&&!n.temporary){var i=function(t){r.trigger("component:add",t),t.components().forEach((function(t){return i(t)}))};i(t)}},n.prototype.addToCollection=function(e,n,r){for(var o=this,i=o.config,a=o.opts,s=o.em,l=n||null,c=i.frameView,u=(null==c?void 0:c.model)&&e.getView(c.model),p=a.componentTypes||(null==s?void 0:s.Components.getTypes()),f=e.get("type")||"default",d=this.compView,h=0;h<p.length;h++)if(p[h].id==f){d=p[h].view;break}var g,m=u||new d({model:e,config:i,componentTypes:p});try{g=m.render().el}catch(t){g=document.createTextNode(""),s.logError(t)}if(l)l.appendChild(g);else{var v=this.parentEl,y=v.childNodes;if((0,t.isUndefined)(r))v.appendChild(g);else{var b=y.length==r;b&&r--,b||!y.length?v.appendChild(g):v.insertBefore(g,y[r])}}return e.opt.temporary||null==s||s.trigger("component:mount",e),g},n.prototype.resetChildren=function(t,e){var n=this,r=(void 0===e?{}:e).previousModels,o=void 0===r?[]:r;this.parentEl.innerHTML="",o.forEach((function(t){return n.removeChildren(t,n.collection)})),t.each((function(t){return n.addToCollection(t)}))},n.prototype.render=function(t){var e=this,n=this.el,r=document.createDocumentFragment();return this.parentEl=t||this.el,this.collection.each((function(t){return e.addToCollection(t,r)})),n.innerHTML="",n.appendChild(r),this},n}(u.G7);const Rr=Ir;var Mr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Br=function(){return Br=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Br.apply(this,arguments)},Fr=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return Mr(r,n),r.prototype.className=function(){return this.getClasses()},r.prototype.tagName=function(){return this.model.get("tagName")},r.prototype.initialize=function(t){void 0===t&&(t={});var n=this.model,r=t.config||{},o=r.em,i=n.opt||{},a=this.$el,s=this.el;this.opts=t,this.modelOpt=i,this.config=r,this.em=o,this.pfx=r.stylePrefix||"",this.ppfx=r.pStylePrefix||"",this.attr=n.get("attributes"),this.classe=this.attr.class||[],this.listenTo(n,"change:style",this.updateStyle),this.listenTo(n,"change:attributes",this.renderAttributes),this.listenTo(n,"change:highlightable",this.updateHighlight),this.listenTo(n,"change:status change:locked",this.updateStatus),this.listenTo(n,"change:script rerender",this.reset),this.listenTo(n,"change:content",this.updateContent),this.listenTo(n,"change",this.handleChange),this.listenTo(n,"active",this.onActive),this.listenTo(n,"disable",this.onDisable),a.data("model",n),(0,e.setViewEl)(s,this),n.view=this,this.frameView&&n.views.push(this),this.initClasses(),this.initComponents({avoidRender:!0}),this.events=Br(Br({},this.constructor.getEvents()),{dragstart:"handleDragStart"}),this.delegateEvents(),!i.temporary&&this.init(this._clbObj())},Object.defineProperty(r.prototype,"__cmpStyleOpts",{get:function(){return{state:"",mediaText:""}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"frameView",{get:function(){return this.opts.config.frameView},enumerable:!1,configurable:!0}),r.prototype.__isDraggable=function(){var t=this.model,e=this.config,n=t.attributes.draggable;return e.draggableComponents&&n},r.prototype._clbObj=function(){var t=this,e=t.em,n=t.model,r=t.el;return{editor:null==e?void 0:e.getEditor(),model:n,el:r}},r.prototype.init=function(t){},r.prototype.removed=function(t){},r.prototype.onRender=function(t){},r.prototype.onActive=function(t){},r.prototype.onDisable=function(){},r.prototype.remove=function(){var t;n.prototype.remove.call(this);var e=this.model,r=this.$el,o=e.views,i=this.frameView||{};return e.components().forEach((function(t){var e=t.getView(i.model);null==e||e.remove()})),null===(t=this.childrenView)||void 0===t||t.remove(),o.splice(o.indexOf(this),1),this.removed(this._clbObj()),r.data({model:"",collection:"",view:""}),this},r.prototype.handleDragStart=function(t){if(!this.__isDraggable())return!1;t.stopPropagation(),t.preventDefault(),this.em.Commands.run("tlb-move",{target:this.model,event:t})},r.prototype.initClasses=function(){var t=this.model,e=t.classes,n="change:classes";e instanceof Fe&&(this.stopListening(t,n,this.initClasses),this.listenTo(t,n,this.initClasses),this.listenTo(e,"add remove change reset",this.updateClasses),e.length&&this.importClasses())},r.prototype.initComponents=function(t){void 0===t&&(t={});var e=this,n=e.model,r=e.$el,o=e.childrenView,i=n.get("components"),a=[n,"change:components",this.initComponents];i instanceof Ne&&(r.data("collection",i),o&&o.remove(),this.stopListening.apply(this,a),!t.avoidRender&&this.renderChildren(),this.listenTo.apply(this,a))},r.prototype.handleChange=function(){var e=this.model,n=(0,t.keys)(e.changed);if(1!==n.length||"status"!==n[0])for(var r in e.emitUpdate(),e.changed)e.emitUpdate(r)},r.prototype.importClasses=function(){var t=this.em,e=this.model,n=t.Selectors;n&&e.classes.forEach((function(t){return n.add(t.get("name"))}))},r.prototype.updateStatus=function(t){void 0===t&&(t={});var e=this,n=e.em,r=e.el,o=e.ppfx,i=e.model,a=null==n?void 0:n.Canvas,s=null==a?void 0:a.config.extHl,l=i.get("status"),c="".concat(o,"selected"),u="".concat(c,"-parent"),p="".concat(o,"freezed"),f="".concat(o,"hovered"),d="".concat(o,"no-pointer"),h=[c,u,p,f,d],g=s&&!t.noExtHl?"":c;this.$el.removeClass(h.join(" "));var m=[r.getAttribute("class")||""],v=!(null==a?void 0:a.hasCustomSpot(At.q.Select)),y=!(null==a?void 0:a.hasCustomSpot(At.q.Target));switch(l){case"selected":v&&m.push(g);break;case"selected-parent":y&&m.push(u);break;case"freezed":m.push(p);break;case"freezed-selected":m.push(p),v&&m.push(g);break;case"hovered":!t.avoidHover&&m.push(f)}i.get("locked")&&m.push(d);var b=m.filter(Boolean).join(" ");b&&r.setAttribute("class",b)},r.prototype.updateHighlight=function(){var t=this.model,e=t.get("textable"),n=t.get("highlightable")&&(e||!t.isChildOf("text"));this.setAttribute("data-gjs-highlightable",!!n||"")},r.prototype.updateStyle=function(e,n,r){void 0===r&&(r={});var o=this.model,i=this.em;if(Ze(i)&&!r.inline){var a=this.__cmpStyleOpts,s=o.getStyle(a);!(0,t.isEmpty)(s)&&o.setStyle(s,a)}else this.setAttribute("style",o.styleToString(r))},r.prototype.updateClasses=function(){var t=this.model.classes.pluck("name").join(" ");this.setAttribute("class",t),this.updateStatus(),this.onAttrUpdate()},r.prototype.setAttribute=function(t,e){var n=this.$el;e?n.attr(t,e):n.removeAttr(t)},r.prototype.getClasses=function(){return this.model.getClasses().join(" ")},r.prototype.updateAttributes=function(){var e=[],n=this,r=n.model,o=n.$el,i=n.el,a=r.attributes,s=a.textable,l=a.type,c=Br(Br({id:r.getId(),"data-gjs-type":l||"default"},this.__isDraggable()&&{draggable:!0}),s&&{contenteditable:"false"});(0,t.each)(i.attributes,(function(t){return e.push(t.nodeName)})),e.forEach((function(t){return o.removeAttr(t)})),this.updateStyle(),this.updateHighlight();var u=Br(Br({},c),r.getAttributes());(0,t.keys)(u).forEach((function(t){return!1===u[t]&&delete u[t]})),o.attr(u)},r.prototype.updateContent=function(){var t=this.model.content,e=this.model.components().length;this.getChildrenContainer().innerHTML=e?"":t},r.prototype.prevDef=function(t){t.preventDefault()},r.prototype.updateScript=function(){var t=this.model,e=this.em;t.get("script")&&(null==e||e.Canvas.getCanvasView().updateScript(this))},r.prototype.getChildrenContainer=function(){var t=this.el;return"function"==typeof this.getChildrenSelector?t=this.el.querySelector(this.getChildrenSelector()):this.getTemplate,t},r.prototype.getOffsetRect=function(){var t={top:0,left:0,bottom:0,right:0},e=this.el,n=0,r=0,o=function(i){var a=i.offsetParent;a?(n+=a.offsetTop,r+=a.offsetLeft,o(a)):(t.top=e.offsetTop+n,t.left=e.offsetLeft+r,t.bottom=t.top+e.offsetHeight,t.right=t.left+e.offsetWidth)};return o(e),t},r.prototype.isInViewport=function(){var t=this,e=t.el,n=t.em,r=t.frameView,o=n.Canvas.getCanvasView().getElBoxRect(e,{local:!0}),i=r.el,a=i.clientHeight,s=i.clientWidth,l=o.y,c=o.x,u=l+o.height,p=c+o.width;return(l>=0&&l<a||u>0&&u<a)&&(p>=0&&p<s||c>0&&c<=s)},r.prototype.scrollIntoView=function(t){var e;if(void 0===t&&(t={}),!this.isInViewport()||t.force){var n=this.el;if("smooth"!==t.behavior){var r=this.getOffsetRect();null===(e=n.ownerDocument.defaultView)||void 0===e||e.scrollTo(0,r.top)}else n.scrollIntoView(Br({behavior:"smooth",block:"nearest"},t))}},r.prototype.reset=function(){var t=this.el;this.el="",this._ensureElement(),this._setData(),(0,Dt.dL)(t,this.el),this.render()},r.prototype._setData=function(){var t=this.model,e=t.components();this.$el.data({model:t,collection:e,view:this})},r.prototype.renderChildren=function(){this.updateContent();var t=this.getChildrenContainer(),e=this.childrenView||new Rr({collection:this.model.get("components"),config:this.config,componentTypes:this.opts.componentTypes});e.render(t),this.childrenView=e;for(var n=Array.prototype.slice.call(e.el.childNodes),r=0,o=n.length;r<o;r++)t.appendChild(n.shift())},r.prototype.renderAttributes=function(){this.updateAttributes(),this.updateClasses()},r.prototype.onAttrUpdate=function(){},r.prototype.render=function(){return this.renderAttributes(),this.modelOpt.temporary||(this.renderChildren(),this.updateScript(),(0,e.setViewEl)(this.el,this),this.postRender()),this},r.prototype.postRender=function(){this.modelOpt.temporary||this.onRender(this._clbObj())},r.getEvents=function(){return(0,t.result)(this.prototype,"events")},r}(u.G7);const Ur=Fr;var Hr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Vr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Hr(e,t),e.prototype._setAttributes=function(){},e.prototype.renderAttributes=function(){},e.prototype.updateStatus=function(){},e.prototype.updateClasses=function(){},e.prototype.setAttribute=function(){},e.prototype.updateAttributes=function(){},e.prototype.initClasses=function(){},e.prototype.initComponents=function(){},e.prototype.delegateEvents=function(){return this},e.prototype._createElement=function(){return document.createTextNode("")},e.prototype.render=function(){var t=this.model,e=this.el;return t.opt.temporary||(e.textContent=t.content),this},e}(Ur);var qr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const zr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qr(e,t),e.prototype._createElement=function(){return document.createComment(this.model.content)},e}(Vr);var Gr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Wr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gr(e,t),e.prototype.tagName=function(){return"div"},e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.listenTo(this.model,"change:attributes:src",this.updateSrc)},e.prototype.updateSrc=function(){var t=(0,Dt.sE)(this.el,"iframe")[0];t&&(0,Dt.FW)(t,{src:this.__getSrc()})},e.prototype.render=function(){t.prototype.render.call(this);var e=(0,Dt.ut)("iframe",{class:"".concat(this.ppfx,"no-pointer"),style:"width: 100%; height: 100%; border: none",src:this.__getSrc()});return this.el.appendChild(e),this},e.prototype.__getSrc=function(){return this.model.getAttributes().src||""},e}(Ur);var Yr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Yr(n,e),n.prototype.tagName=function(){return"img"},n.prototype.events=function(){return{dblclick:"onActive",click:"initResize",error:"onError",load:"onLoad",dragstart:"noDrag"}},n.prototype.initialize=function(t){e.prototype.initialize.call(this,t),this.listenTo(this.model,"change:src",this.updateSrc),this.classEmpty="".concat(this.ppfx,"plh-image"),this.fetchFile()},n.prototype.fetchFile=function(){if(!this.modelOpt.temporary){var e=this.model,n=this.em,r=e.get("file");if(r&&n){var o=n.Assets.FileUploader();null==o||o.uploadFile({dataTransfer:{files:[r]}},(function(n){var r=n&&n.data&&n.data[0],o=r&&((0,t.isString)(r)?r:r.src);o&&e.set({src:o})})),e.set("file","")}}},n.prototype.updateSrc=function(){var t=this.model;t.addAttributes({src:t.getSrcResult()}),this.updateClasses()},n.prototype.updateClasses=function(){e.prototype.updateClasses.call(this);var t=this,n=t.el,r=t.classEmpty,o=t.model,i=o.getSrcResult()&&!o.isDefaultSrc()?"remove":"add";n.classList[i](r)},n.prototype.onActive=function(t){null==t||t.stopPropagation();var e=this.em,n=this.model,r=null==e?void 0:e.Assets;r&&n.get("editable")&&r.open({select:function(t,e){n.set({src:t.getSrc()}),e&&r.close()},target:n,types:["image"],accept:"image/*"})},n.prototype.onError=function(){var t=this.model.getSrcResult({fallback:!0});t&&(this.el.src=t)},n.prototype.onLoad=function(){this.em.trigger("change:canvasOffset")},n.prototype.noDrag=function(t){return t.preventDefault(),!1},n.prototype.render=function(){if(this.renderAttributes(),this.modelOpt.temporary)return this;this.updateSrc();var t=this.$el,e=this.model,n=t.attr("class")||"";return!e.get("src")&&t.attr("class","".concat(n," ").concat(this.classEmpty).trim()),this.postRender(),this},n}(Ur);const $r=Kr;var Xr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qr=function(){return Qr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Qr.apply(this,arguments)},Zr=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},Jr=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},to=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return Xr(r,n),r.prototype.events=function(){return{dblclick:"onActive",input:"onInput"}},r.prototype.initialize=function(e){n.prototype.initialize.call(this,e),(0,t.bindAll)(this,"disableEditing","onDisable");var r=this.model,o=this.em;this.listenTo(r,"focus",this.onActive),this.listenTo(r,"change:content",this.updateContentText),this.listenTo(r,"sync:content",this.syncContent),this.rte=null==o?void 0:o.RichTextEditor},r.prototype.updateContentText=function(t,e,n){void 0===n&&(n={}),!n.fromDisable&&this.disableEditing()},r.prototype.canActivate=function(){var t,e=this,n=e.model,r=e.rteEnabled,o=e.em,i=(null==o?void 0:o.getEditing())===n,a=!0,s=!1;if((r||!n.get("editable")||i||(s=n.isChildOf("text")))&&(a=!1,s&&!n.get("textable"))){for(var l=n.parent();l&&!l.isInstanceOf("text");)l=l.parent();l&&l.get("editable")?t=l:a=!0}return{result:a,delegate:t}},r.prototype.onActive=function(t){var e,n;return Zr(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u,p;return Jr(this,(function(f){switch(f.label){case 0:return o=(r=this).rte,i=r.em,a=this.canActivate(),s=a.result,l=a.delegate,s?(null===(n=null==t?void 0:t.stopPropagation)||void 0===n||n.call(t),c=this,[4,this.getContent()]):(l&&(null===(e=null==t?void 0:t.stopPropagation)||void 0===e||e.call(t),i.setSelected(l),l.trigger("active",t)),[2]);case 1:if(c.lastContent=f.sent(),!o)return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),u=this,[4,o.enable(this,this.activeRte,{event:t})];case 3:return u.activeRte=f.sent(),[3,5];case 4:return p=f.sent(),i.logError(p),[3,5];case 5:return this.toggleEvents(!0),[2]}}))}))},r.prototype.onDisable=function(){this.disableEditing()},r.prototype.disableEditing=function(t){return void 0===t&&(t={}),Zr(this,void 0,void 0,(function(){var e,n,r,o,i,a,s,l;return Jr(this,(function(c){switch(c.label){case 0:if(n=(e=this).model,r=e.rte,o=e.activeRte,i=e.em,a=n&&n.get("editable"),!r)return[3,8];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,r.disable(this,o)];case 2:return c.sent(),[3,4];case 3:return s=c.sent(),i.logError(s),[3,4];case 4:return(l=a)?[4,this.getContent()]:[3,6];case 5:l=c.sent()!==this.lastContent,c.label=6;case 6:return l?[4,this.syncContent(t)]:[3,8];case 7:c.sent(),this.lastContent="",c.label=8;case 8:return this.toggleEvents(),[2]}}))}))},r.prototype.getContent=function(){return Zr(this,void 0,void 0,(function(){var t,e,n,r;return Jr(this,(function(o){switch(o.label){case 0:return e=(t=this).rte,n=t.activeRte,r="",e?[4,e.getContent(this,n)]:[3,2];case 1:r=o.sent(),o.label=2;case 2:return[2,r]}}))}))},r.prototype.syncContent=function(t){return void 0===t&&(t={}),Zr(this,void 0,void 0,(function(){var e,n,r,o,i,a;return Jr(this,(function(s){switch(s.label){case 0:return n=(e=this).model,r=e.rte,e.rteEnabled||t.force?[4,this.getContent()]:[2];case 1:return o=s.sent(),i=n.components(),a=Qr({fromDisable:1},t),n.set("content","",a),(null==r?void 0:r.customRte)&&!r.customRte.parseContent?(i.length&&i.reset(void 0,Qr(Qr({},t),{keepIds:ke(i)})),n.set("content",o,a)):i.resetFromString(o,t),[2]}}))}))},r.prototype.insertComponent=function(t,n){var r;void 0===n&&(n={});var o=this.model,i=this.el.ownerDocument.getSelection();if(null==i?void 0:i.rangeCount){var a=i.getRangeAt(0),s=a.startContainer,l=a.startOffset,c=(0,e.getModel)(s),u=[];if(c&&(null===(r=c.is)||void 0===r?void 0:r.call(c,"textnode"))){var p=c.collection;p.forEach((function(e){if(e===c){var n="textnode",r=e.content;u.push({type:n,content:r.slice(0,l)}),u.push(t),u.push({type:n,content:r.slice(l)})}else u.push(e)}));var f=u.filter(Boolean),d=f.indexOf(t);return p.reset(f,n),p.at(d)}}return o.append(t,n)},r.prototype.onInput=function(){var t=this.em,e="component",n=["".concat(e,":update"),"".concat(e,":input")].join(" ");t&&t.trigger(n,this.model)},r.prototype.disablePropagation=function(t){t.stopPropagation()},r.prototype.toggleEvents=function(t){var e=this,n=e.em,r=e.model,o=e.$el,i={on:Dt.on,off:Dt.S1},a=t?"on":"off";n.setEditing(!!t&&this),this.rteEnabled=!!t;var s=[this.el.ownerDocument,document];if(i.off(s,"mousedown",this.onDisable),i[a](s,"mousedown",this.onDisable),n[a]("toolbar:run:before",this.onDisable),r&&(r[a]("removed",this.onDisable),r.trigger("rte:".concat(t?"enable":"disable"))),null==o||o.off("mousedown",this.disablePropagation),o&&o[a]("mousedown",this.disablePropagation),this.config.draggableComponents)for(var l=this.el;l;)l.draggable=!t,(l=l.parentNode)&&"BODY"==l.tagName&&(l=0)},r}(Ur);const eo=to;var no=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ro=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return no(e,t),e.prototype.render=function(){return t.prototype.render.call(this),this.el.addEventListener("click",this.prevDef,!0),this},e}(eo);var oo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const io=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oo(e,t),e}(ro);var ao=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const so=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ao(e,t),e.prototype.tagName=function(){return"div"},e.prototype.events=function(){return{}},e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.classEmpty=this.ppfx+"plh-map"},e.prototype.updateSrc=function(){this.getIframe().src=this.model.get("src")},e.prototype.getIframe=function(){if(!this.iframe){var t=document.createElement("iframe");t.src=this.model.get("src"),t.frameBorder="0",t.style.height="100%",t.style.width="100%",t.className=this.ppfx+"no-pointer",this.iframe=t}return this.iframe},e.prototype.render=function(){return t.prototype.render.call(this),this.updateClasses(),this.el.appendChild(this.getIframe()),this},e}($r);var lo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),co=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lo(e,t),e.prototype.tagName=function(){return"script"},e.prototype.events=function(){return{}},e.prototype.render=function(){var t=this.model,e=this.em,n=t.get("src"),r=e&&e.get("scriptCount")||0,o="";if(n){var i=t.get("onload"),a="script".concat(r),s="script".concat(r+1),l="".concat(a,"Start"),c="".concat(s,"Start");o="\n var ".concat(a," = document.createElement('script');\n ").concat(a,".onload = function() {\n ").concat(i?"".concat(i,"();\n"):"","\n typeof ").concat(c," == 'function' && ").concat(c,"();\n };\n ").concat(a,".src = '").concat(n,"';\n function ").concat(l,"() { document.body.appendChild(").concat(a,"); };\n ").concat(r?"":"".concat(l,"();"),"\n "),e&&e.set("scriptCount",r+1)}else o=t.__innerHTML();return this.el.innerHTML=o,this.postRender(),this},e}($r);const uo=co;var po=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const fo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return po(e,t),e.prototype._createElement=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)},e}(Ur);var ho=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const go=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ho(e,t),e}(Ur);var mo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const vo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mo(e,t),e}(Ur);var yo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const bo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yo(e,t),e}(Ur);var _o=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const wo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _o(e,t),e}(Ur);var Eo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const xo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Eo(e,t),e}(Ur),To=Ur.extend({events:{}});var Co=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ao=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Co(e,t),e.prototype.tagName=function(){return"div"},e.prototype.events=function(){return{}},e.prototype.initialize=function(){Ur.prototype.initialize.apply(this,arguments);var t=this.model,e=["loop","autoplay","controls","color","rel","modestbranding","poster"].map((function(t){return"change:".concat(t)})).join(" ");this.listenTo(t,"change:provider",this.updateProvider),this.listenTo(t,"change:src",this.updateSrc),this.listenTo(t,e,this.updateVideo)},e.prototype.updateProvider=function(){var t=this.model.get("provider");this.el.innerHTML="",this.el.appendChild(this.renderByProvider(t))},e.prototype.updateSrc=function(){var t=this.model,e=this.videoEl;if(e){var n=t.get("provider"),r=t.get("src");switch(n){case"yt":r=t.getYoutubeSrc();break;case"ytnc":r=t.getYoutubeNoCookieSrc();break;case"vi":r=t.getVimeoSrc()}e.src=r}},e.prototype.updateVideo=function(){var t=this.model,e=this.videoEl;switch(t.get("provider")){case"yt":case"ytnc":case"vi":t.trigger("change:videoId");break;default:if(e){var n=e;n.loop=t.get("loop"),n.autoplay=t.get("autoplay"),n.controls=t.get("controls"),n.poster=t.get("poster")}}},e.prototype.renderByProvider=function(t){var e;switch(t){case"yt":e=this.renderYoutube();break;case"ytnc":e=this.renderYoutubeNoCookie();break;case"vi":e=this.renderVimeo();break;default:e=this.renderSource()}return this.videoEl=e,e},e.prototype.renderSource=function(){var t=document.createElement("video");return t.src=this.model.get("src"),this.initVideoEl(t),t},e.prototype.renderYoutube=function(){var t=document.createElement("iframe");return t.src=this.model.getYoutubeSrc(),t.frameBorder="0",t.setAttribute("allowfullscreen","true"),this.initVideoEl(t),t},e.prototype.renderYoutubeNoCookie=function(){var t=document.createElement("iframe");return t.src=this.model.getYoutubeNoCookieSrc(),t.frameBorder="0",t.setAttribute("allowfullscreen","true"),this.initVideoEl(t),t},e.prototype.renderVimeo=function(){var t=document.createElement("iframe");return t.src=this.model.getVimeoSrc(),t.frameBorder="0",t.setAttribute("allowfullscreen","true"),this.initVideoEl(t),t},e.prototype.initVideoEl=function(t){t.className=this.ppfx+"no-pointer",t.style.height="100%",t.style.width="100%"},e.prototype.render=function(){Ur.prototype.render.apply(this),this.updateClasses();var t=this.model.get("provider");return this.el.appendChild(this.renderByProvider(t)),this.updateVideo(),this},e}($r);const Oo=Ao;var So=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ko=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return So(e,t),e.prototype.tagName=function(){return"div"},e}(Ur);var Po,jo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),No=function(){return No=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},No.apply(this,arguments)};!function(t){t[t.InvalidSource=0]="InvalidSource",t[t.SourceReject=1]="SourceReject",t[t.TargetReject=2]="TargetReject"}(Po||(Po={}));var Lo=function(n){function r(t){var e=n.call(this,t,"DomComponents",new Ne(void 0,{em:t}))||this;for(var r in e.componentTypes=[{id:"cell",model:cr,view:vo},{id:"row",model:_r,view:xo},{id:"table",model:er,view:To},{id:"thead",model:vr,view:wo},{id:"tbody",model:ar,view:go},{id:"tfoot",model:dr,view:bo},{id:"map",model:Fn,view:so},{id:"link",model:In,view:ro},{id:"label",model:jn,view:io},{id:"video",model:kr,view:Oo},{id:"image",model:Tn,view:$r},{id:"script",model:qn,view:uo},{id:"svg-in",model:Xn,view:fo},{id:"svg",model:Yn,view:fo},{id:"iframe",model:bn,view:Wr},{id:"comment",model:gn,view:zr},{id:"textnode",model:pn,view:Vr},{id:"text",model:On,view:eo},{id:"wrapper",model:Lr,view:ko},{id:"default",model:sn,view:Ur}],e.componentsById={},e.Component=sn,e.Components=Ne,e.ComponentView=Ur,e.ComponentsView=Rr,e.storageKey="components",t&&(e.config.components=t.config.components||e.config.components),de)r in e.config||(e.config[r]=de[r]);var o=e.config.pStylePrefix;if(o&&(e.config.stylePrefix=o+e.config.stylePrefix),t){t.get("Parser").compTypes=e.componentTypes,t.on("change:componentHovered",e.componentHovered,e);var i=t.get("selected");t.listenTo(i,"add",(function(t,n,r){return e.selectAdd(i.getComponent(t),r)})),t.listenTo(i,"remove",(function(t,n,r){return e.selectRemove(i.getComponent(t),r)}))}return e}return jo(r,n),r.prototype.load=function(e){var n=this;return this.loadProjectData(e,{onResult:function(e){var r=n.getWrapper();if(r||(n.em.Pages.add({},{select:!0}),r=n.getWrapper()),(0,t.isArray)(e))e.length&&r.components(e);else{var o=e.components,i=void 0===o?[]:o,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["components"]);r.set(a),r.components(i)}}})},r.prototype.store=function(){return{}},r.prototype.getComponent=function(){var t=this.em.Pages.getSelected(),e=null==t?void 0:t.getMainFrame();return null==e?void 0:e.getComponent()},r.prototype.getWrapper=function(){return this.getComponent()},r.prototype.getComponents=function(){var t=this.getWrapper();return null==t?void 0:t.components()},r.prototype.addComponent=function(t,e){return void 0===e&&(e={}),this.getComponents().add(t,e)},r.prototype.render=function(){var t;return null===(t=this.componentView)||void 0===t?void 0:t.render().el},r.prototype.clear=function(t){void 0===t&&(t={});var e=this.getComponents();return null==e||e.filter(Boolean).forEach((function(e){return e.remove(t)})),this},r.prototype.setComponents=function(t,e){void 0===e&&(e={}),this.clear(e).addComponent(t,e)},r.prototype.addType=function(e,n){var r=this.em,o=n.model,i=void 0===o?{}:o,a=n.view,s=void 0===a?{}:a,l=n.isComponent,c=n.extend,u=n.extendView,p=n.extendFn,f=void 0===p?[]:p,d=n.extendFnView,h=void 0===d?[]:d,g=this.getType(e),m=this.getType(c),v=this.getType(u),y=m||g||this.getType("default"),b=y.model,_=v?v.view:y.view,w=function(t,e,n){return t.reduce((function(t,r){var o=e[r],i=n.prototype[r];return o&&i&&(t[r]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i.bind(this).apply(void 0,t),o.bind(this).apply(void 0,t)}),t}),{})};if("object"==typeof i){var E={defaults:i.defaults};delete i.defaults,n.model=b.extend(No(No({},i),w(f,i,b)),{isComponent:!g||m||l?l||function(){return 0}:b.isComponent}),Object.defineProperty(n.model.prototype,"defaults",{get:function(){return No(No({},(0,t.result)(b.prototype,"defaults")||{}),(0,t.result)(E,"defaults")||{})}})}"object"==typeof s&&(n.view=_.extend(No(No({},s),w(h,s,_)))),g?(g.model=n.model,g.view=n.view):(n.id=e,this.componentTypes.unshift(n));var x="component:type:".concat(g?"update":"add");return null==r||r.trigger(x,g||n),this},r.prototype.getType=function(t){for(var e=this.componentTypes,n=0;n<e.length;n++)if(e[n].id==t)return e[n]},r.prototype.removeType=function(t){var e=this.componentTypes,n=this.getType(t);if(n){var r=e.indexOf(n);return e.splice(r,1),n}},r.prototype.getTypes=function(){return this.componentTypes},r.prototype.selectAdd=function(t,e){var n=this;void 0===e&&(e={}),t&&(t.set({status:"selected"}),["component:selected","component:toggled"].forEach((function(r){return n.em.trigger(r,t,e)})))},r.prototype.selectRemove=function(t,e){var n=this;void 0===e&&(e={}),t&&(this.em,t.set({status:"",state:""}),["component:deselected","component:toggled"].forEach((function(r){return n.em.trigger(r,t,e)})))},r.prototype.componentHovered=function(){var e=this.em,n=e.get("componentHovered"),r=e.previous("componentHovered"),o="hovered";r&&r.get("status")==o&&r.set({status:"",state:""}),n&&(0,t.isEmpty)(n.get("status"))&&n.set("status",o)},r.prototype.getShallowWrapper=function(){var e=this.shallow,n=this.em;if(!e&&n){var r=n.shallow;if(!r)return;var o=r.Components;if(o.componentTypes=this.componentTypes,e=o.getWrapper()){var i=[rn,on].join(" ");e.on(i,(0,t.debounce)((function(){return null==e?void 0:e.components("")}),100))}this.shallow=e}return e},r.prototype.isComponent=function(t){return(0,e.isComponent)(t)},r.prototype.canMove=function(n,r,o){var i={result:!1,reason:Po.InvalidSource,target:n,source:null};if(!r||!n)return i;var a=(0,e.isComponent)(r)?r:null;if(!a){var s=this.getShallowWrapper();a=(null==s?void 0:s.append(r)[0])||null}if(i.source=a,!a)return i;var l=a.get("draggable");if((0,t.isFunction)(l))l=!!l(a,n,o);else{var c=n.getEl();l=(0,t.isArray)(l)?l.join(","):l,l=(0,t.isString)(l)?null==c?void 0:c.matches(l):l}if(!l)return No(No({},i),{reason:Po.SourceReject});var u=n.get("droppable");(0,t.isFunction)(u)?u=!!u(a,n,o):!1===u&&n.isInstanceOf("text")&&a.get("textable")?u=!0:(c=a.getEl(),u=(0,t.isArray)(u)?u.join(","):u,u=(0,t.isString)(u)?null==c?void 0:c.matches(u):u);var p=[n].concat(n.parents()).indexOf(a)>-1;return No(No({},i),!u||p?{reason:Po.TargetReject}:{result:!0})},r.prototype.allById=function(){return this.componentsById},r.prototype.getById=function(t){return this.componentsById[t]||null},r.prototype.destroy=function(){var t,e=this.allById();Object.keys(e).forEach((function(t){return e[t]&&e[t].remove()})),null===(t=this.componentView)||void 0===t||t.remove(),[this.em,this.componentsById,this.componentView].forEach((function(t){return{}}))},r}(y);const Do=Lo,Io={stylePrefix:"css-",rules:[]};var Ro=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mo=Number.MAX_VALUE,Bo=function(n){function r(){var e=n.call(this)||this;return(0,t.bindAll)(e,"sortRules"),e.compCls=[],e.ids=[],e}return Ro(r,n),r.prototype.buildFromModel=function(t,e){var n=this;void 0===e&&(e={});var r="",o=this.em,i=o&&o.getConfig().avoidInlineStyle,a=t.styleToString(),s=t.classes;return this.ids.push("#".concat(t.getId())),s.forEach((function(t){return n.compCls.push(t.getFullName())})),!i&&a&&(r="#".concat(t.getId(),"{").concat(a,"}")),t.components().forEach((function(t){return r+=n.buildFromModel(t,e)})),r},r.prototype.build=function(n,r){var o=this;void 0===r&&(r={});var i=r.json,a=r.em,s=r.cssc||(null==a?void 0:a.Css);this.em=a,this.compCls=[],this.ids=[],this.model=n;var l=[],c=n?this.buildFromModel(n,r):"",u=(0,t.isUndefined)(r.clearStyles)&&a?a.getConfig().clearStyles:r.clearStyles;if(s){var p=r.rules||s.getAll(),f={},d=[];r.onlyMatched&&n&&(0,e.hasWin)()&&(p=this.matchedRules(n,p)),p.forEach((function(t){var e=t.getAtRule();if(e){var n=f[e];n?n.push(t):f[e]=[t]}else{var a=o.buildFromRule(t,d,r);i?l.push(a):c+=a}})),this.sortMediaObject(f).forEach((function(t){var e="",n=t.key;t.value.forEach((function(t){var a=o.buildFromRule(t,d,r);t.get("singleAtRule")?c+="".concat(n,"{").concat(a,"}"):e+=a,i&&l.push(a)})),e&&(c+="".concat(n,"{").concat(e,"}"))})),a&&u&&p.remove&&p.remove(d)}return i?l.filter((function(t){return t})):c},r.prototype.buildFromRule=function(t,e,n){var r,o=this;void 0===n&&(n={});var i,a="",s=this.model,l=t.selectorsToString({skipAdd:1}),c=t.get("selectorsAdd"),u=t.get("singleAtRule");if(null===(r=t.get("selectors"))||void 0===r||r.forEach((function(t){var e=t.getFullName();(o.compCls.indexOf(e)>=0||o.ids.indexOf(e)>=0||n.keepUnusedStyles)&&(i=1)})),l&&i||c||u||!s){var p=t.getDeclaration({body:1});p&&(n.json?a=t:a+=p)}else e.push(t);return a},r.prototype.matchedRules=function(t,e){var n=this,r=t.getEl(),o=[];return e.forEach((function(t){try{t.selectorsToString().split(",").some((function(t){return null==r?void 0:r.matches(n.__cleanSelector(t))}))&&o.push(t)}catch(t){}})),t.components().forEach((function(t){o=o.concat(n.matchedRules(t,e))})),o=o.filter((function(t,e){return o.indexOf(t)===e}))},r.prototype.getQueryLength=function(t){var e=/(-?\d*\.?\d+)\w{0,}/.exec(t);return e?parseFloat(e[1]):Mo},r.prototype.sortMediaObject=function(e){var n=this;void 0===e&&(e={});var r=[];return(0,t.each)(e,(function(t,e){return r.push({key:e,value:t})})),r.sort((function(t,e){var r=[t.key,e.key].every((function(t){return-1!==t.indexOf("min-width")})),o=r?t.key:e.key,i=r?e.key:t.key;return n.getQueryLength(o)-n.getQueryLength(i)}))},r.prototype.sortRules=function(t,e){var n=function(t){return t.get("mediaText")||""},r=[n(t),n(e)].every((function(t){return-1!==t.indexOf("min-width")})),o=n(r?t:e),i=n(r?e:t);return this.getQueryLength(o)-this.getQueryLength(i)},r.prototype.__cleanSelector=function(t){return t.split(" ").map((function(t){return t.split(":")[0]})).join(" ")},r}(u.Hn);const Fo=Bo;var Uo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ho=function(){return Ho=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ho.apply(this,arguments)},Vo=((0,e.hasWin)()?window:{}).CSS,qo=function(n){function r(t,e){void 0===e&&(e={});var r=n.call(this,t)||this;return r.config=t||{},r.opt=e,r.em=e.em,r.ensureSelectors(null,null,{}),r.on("change",r.__onChange),r}return Uo(r,n),r.prototype.defaults=function(){return{selectors:[],selectorsAdd:"",style:{},mediaText:"",state:"",stylable:!0,atRuleType:"",singleAtRule:!1,important:!1,group:"",shallow:!1,_undo:!0}},r.prototype.__onChange=function(t,n){var r=this.em,o=this.changedAttributes();o&&!(0,e.isEmptyObj)(o)&&(null==r||r.changesUp(n))},r.prototype.clone=function(){var t=Ho({},this.opt),e=Ho({},this.attributes);return e.selectors=this.get("selectors").map((function(t){return t.clone()})),new this.constructor(e,t)},r.prototype.ensureSelectors=function(e,n,r){var o=this.em,i=null==o?void 0:o.get("SelectorManager"),a=[this,"change:selectors",this.ensureSelectors],s=this.getSelectors();if(this.stopListening.apply(this,a),s.models&&(s=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],s.models,!0)),s=(0,t.isString)(s)?[s]:s,Array.isArray(s)){var l=s.filter((function(t){return t})).map((function(t){return i?i.add(t):t}));s=new Fe(l)}this.set("selectors",s,r),this.listenTo.apply(this,a)},r.prototype.getAtRule=function(){var t=this.get("atRuleType"),e=this.get("mediaText"),n=t?"@".concat(t):e?"@media":"";return n+(e&&n?" ".concat(e):"")},r.prototype.selectorsToString=function(t){void 0===t&&(t={});var e=[],n=this.get("state"),r=this.get("selectorsAdd"),o={escape:function(t){return Vo&&Vo.escape?Vo.escape(t):t}},i=this.get("selectors").getFullString(0,o),a=n&&!t.skipState?":".concat(n):"";return i&&e.push("".concat(i).concat(a)),r&&!t.skipAdd&&e.push(r),e.join(", ")},r.prototype.getDeclaration=function(t){void 0===t&&(t={});var e="",n=this.attributes.important,r=this.selectorsToString(t),o=this.styleToString(Ho({important:n},t)),i=this.get("singleAtRule");return(r||i)&&(o||t.allowEmpty)&&(e=i?o:"".concat(r,"{").concat(o,"}")),e},r.prototype.getDevice=function(){var t=this.em,e=this.attributes,n=e.atRuleType,r=e.mediaText,o=(null==t?void 0:t.get("DeviceManager").getDevices())||[],i=o.filter((function(t){return""===t.getWidthMedia()}))[0];return"media"===n&&r?o.filter((function(t){return t.getWidthMedia()===((e=/(-?\d*\.?\d+)\w{0,}/.exec(r))?e[0]:"");var e}))[0]||null:i||null},r.prototype.getState=function(){var t=this.em,e=this.get("state");return((null==t?void 0:t.get("SelectorManager").getStates())||[]).filter((function(t){return t.getName()===e}))[0]||null},r.prototype.getComponent=function(){var t,e=this.getSelectors(),n=1==e.length&&e.at(0),r=n&&n.isId()&&n.get("name");return r&&(null===(t=this.em)||void 0===t?void 0:t.Components.getById(r))||null},r.prototype.toCSS=function(t){void 0===t&&(t={});var e="",n=this.getAtRule(),r=this.getDeclaration(t);return(r||t.allowEmpty)&&(e=r),n&&e&&(e="".concat(n,"{").concat(e,"}")),e},r.prototype.toJSON=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=u.Hn.prototype.toJSON.apply(this,n);if(null===(e=this.em)||void 0===e?void 0:e.getConfig().avoidDefaults){var i=this.defaults();(0,t.forEach)(i,(function(t,e){o[e]===t&&delete o[e]})),delete o.style.__p,(0,t.isEmpty)(o.selectors)&&delete o.selectors,(0,t.isEmpty)(o.style)&&delete o.style}return o},r.prototype.compare=function(e,n,r,o){var i;void 0===o&&(o={});var a=n||"",s=r||"",l=o.selectorsAdd||"",c=o.atRuleType||"";s&&!c&&(c="media");var u=((0,t.isArray)(e)||e.models?e.models||e:[e]).map((function(t){return t.getFullName()})),p=null===(i=this.get("selectors"))||void 0===i?void 0:i.map((function(t){return t.getFullName()})),f=u.slice().sort(),d=p.slice().sort();return!(u.length!==p.length||!f.every((function(t,e){return t===d[e]})))&&this.get("state")===a&&this.get("mediaText")===s&&this.get("selectorsAdd")===l&&this.get("atRuleType")===c},r}(Te);const zo=qo;var Go=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.editor=null==n?void 0:n.em,setTimeout((function(){r.on("remove",r.onRemove),r.on("add",r.onAdd)})),r}return Go(e,t),e.prototype.toJSON=function(t){return u.FE.prototype.toJSON.call(this,t).filter((function(t){return t.style&&!t.shallow}))},e.prototype.onAdd=function(t,e,n){t.ensureSelectors(t,e,n)},e.prototype.onRemove=function(t){var e=this.editor;e.stopListening(t),e.UndoManager.remove(t)},e.prototype.add=function(t,e){return void 0===e&&(e={}),"string"==typeof t&&(t=this.editor.get("Parser").parseCss(t)),e.em=this.editor,u.FE.prototype.add.apply(this,[t,e])},e}(u.FE);const Yo=Wo;Wo.prototype.model=zo;var Ko=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$o=function(){return $o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$o.apply(this,arguments)},Xo=function(n){function r(t){var e=n.call(this,t,"CssComposer",null,{},Io)||this;e.Selectors=Fe,e.storageKey="styles";var r=e.config,o=r.pStylePrefix;return o&&(r.stylePrefix=o+r.stylePrefix),r.rules=e.em.config.style||r.rules||"",e.rules=new Yo([],r),e}return Ko(r,n),r.prototype.onLoad=function(){this.rules.add(this.config.rules,{silent:!0})},r.prototype.postLoad=function(){var t,e=null===(t=this.em)||void 0===t?void 0:t.get("UndoManager");e&&e.add(this.getAll())},r.prototype.store=function(){return this.getProjectData()},r.prototype.load=function(t){return this.loadProjectData(t,{all:this.rules})},r.prototype.add=function(t,e,n,r,o){void 0===r&&(r={}),void 0===o&&(o={});var i=e||"",a=n||"",s=$o({},r),l=this.get(t,i,a,s);return l&&l.config&&!l.config.singleAtRule||(s.state=i,s.mediaText=a,s.selectors=[],a&&!s.atRuleType&&(s.atRuleType="media"),(l=new zo(s,this.config)).get("selectors").add(t,o),this.rules.add(l,o)),l},r.prototype.get=function(e,n,r,o){var i=e;if((0,t.isString)(e)){var a=this.em.Selectors,s=e.split(",")[0].trim(),l=this.em.Parser.parserCss.checkNode({selectors:s})[0];i=a.get(l.selectors)}return this.rules.find((function(t){return t.compare(i,n,r,o)}))||null},r.prototype.getAll=function(){return this.rules},r.prototype.addCollection=function(n,r,o){void 0===r&&(r={}),void 0===o&&(o={});var i=this.em,a=[];(0,t.isString)(n)&&(n=i.Parser.parseCss(n));for(var s=n instanceof Array?n:[n],l=0,c=s.length;l<c;l++){var u=s[l]||{};if(u.selectors){var p=null==i?void 0:i.Selectors;p||console.warn("Selector Manager not found");for(var f=u.selectors,d=f instanceof Array?f:[f],h=[],g=0,m=d.length;g<m;g++){var v=p.add(d[g]);h.push(v)}var y=this.get(h,u.state,u.mediaText,u),b=this.add(h,u.state,u.mediaText,u,r),_=!y||!r.avoidUpdateStyle,w=u.style||{};if((0,e.isObject)(o)&&b.set(o,r),_){var E=r.extend?$o($o({},b.get("style")),w):w;b.set("style",E,r)}a.push(b)}}return a},r.prototype.addRules=function(t){return this.addCollection(t)},r.prototype.setRule=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=n.atRuleType,o=n.atRuleParams,i=this.em.Parser.parserCss.checkNode({selectors:t,style:e})[0],a=i.state,s=i.selectorsAdd,l=this.em.Selectors.add(i.selectors),c=this.add(l,a,o,{selectorsAdd:s,atRule:r});return n.addStyles?c.addStyle(e,n):c.setStyle(e,n),c},r.prototype.getRule=function(t,e){void 0===e&&(e={});var n=this.em,r=n.Selectors,o=n.Parser.parserCss.checkNode({selectors:t})[0],i=r.get(o.selectors),a=o.state,s=o.selectorsAdd,l=e.atRuleType,c=e.atRuleParams;return i?this.get(i,a,c,{selectorsAdd:s,atRuleType:l}):void 0},r.prototype.getRules=function(e){var n=this.getAll();if(!e)return function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],n.models,!0);var r={sort:!0},o=(0,t.isString)(e)?e.split(",").map((function(t){return t.trim()})):e;return n.filter((function(t){return o.indexOf(t.getSelectors().getFullString(null,r))>=0}))},r.prototype.setIdRule=function(e,n,r){void 0===n&&(n={}),void 0===r&&(r={});var o=r.addOpts,i=void 0===o?{}:o,a=r.mediaText,s=r.state||"",l=(0,t.isUndefined)(a)?this.em.getCurrentMedia():a,c=this.em.Selectors.add({name:e,type:Ie.TYPE_ID},i),u=this.add(c,s,l,{},i);return u.setStyle(n,$o($o({},r),i)),u},r.prototype.getIdRule=function(e,n){void 0===n&&(n={});var r=n.mediaText,o=n.state||"",i=(0,t.isUndefined)(r)?this.em.getCurrentMedia():r,a=this.em.Selectors.get(e,Ie.TYPE_ID);return a&&this.get(a,o,i)},r.prototype.setClassRule=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=n.state||"",o=n.mediaText||this.em.getCurrentMedia(),i=this.em.Selectors.add({name:t,type:Ie.TYPE_CLASS}),a=this.add(i,r,o);return a.setStyle(e,n),a},r.prototype.getClassRule=function(t,e){void 0===e&&(e={});var n=e.state||"",r=e.mediaText||this.em.getCurrentMedia(),o=this.em.Selectors.get(t,Ie.TYPE_CLASS);return o&&this.get(o,n,r)},r.prototype.remove=function(e,n){var r=(0,t.isString)(e)?this.getRules(e):e,o=this.getAll().remove(r,n);return(0,t.isArray)(o)?o:[o]},r.prototype.clear=function(t){return void 0===t&&(t={}),this.getAll().reset([],t),this},r.prototype.getComponentRules=function(e,n){void 0===n&&(n={});var r=n.state,o=n.mediaText;n.current&&(r=this.em.get("state")||"",o=this.em.getCurrentMedia());var i=e.getId();return this.getAll().filter((function(e){return!(!(0,t.isUndefined)(r)&&e.get("state")!==r||!(0,t.isUndefined)(o)&&e.get("mediaText")!==o||e.getSelectorsString()!=="#".concat(i))}))},r.prototype.render=function(){var t;return null===(t=this.rulesView)||void 0===t||t.remove(),this.rulesView=new zt({collection:this.rules,config:this.config}),this.rulesView.render().el},r.prototype.destroy=function(){var t;this.rules.reset(),this.rules.stopListening(),null===(t=this.rulesView)||void 0===t||t.remove()},r}(y);const Qo=Xo,Zo={appendTo:"",blocks:[],appendOnClick:!1,custom:!1};var Jo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ti=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Jo(n,e),n.prototype.defaults=function(){return{label:"",content:"",media:"",category:"",activate:!1,select:void 0,resetId:!1,disable:!1,onClick:void 0,attributes:{}}},n.prototype.getId=function(){return this.id},n.prototype.getLabel=function(){return this.get("label")},n.prototype.getMedia=function(){return this.get("media")},n.prototype.getContent=function(){return this.get("content")},n.prototype.getCategoryLabel=function(){var e=this.get("category");return(0,t.isFunction)(null==e?void 0:e.get)?e.get("label"):(null==e?void 0:e.label)?null==e?void 0:e.label:e},n}(u.Hn);var ei=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ni=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ei(e,t),e}(u.FE);const ri=ni;ni.prototype.model=ti;var oi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oi(e,t),e.prototype.defaults=function(){return{id:"",label:"",open:!0,attributes:{}}},e}(u.Hn);var ai=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ai(e,t),e}(u.FE);const li=si;var ci;si.prototype.model=ii,function(t){t.add="block:add",t.remove="block:remove",t.removeBefore="block:remove:before",t.update="block:update",t.dragStart="block:drag:start",t.drag="block:drag",t.dragEnd="block:drag:stop",t.custom="block:custom",t.all="block"}(ci||(ci={}));var ui=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pi=function(n){function r(t,e){void 0===e&&(e={});var r=n.call(this,t)||this,o=r.model;return r.em=e.em,r.config=e,r.endDrag=r.endDrag.bind(r),r.ppfx=e.pStylePrefix||"",r.listenTo(o,"destroy remove",r.remove),r.listenTo(o,"change",r.render),r}return ui(r,n),r.prototype.events=function(){return{click:"handleClick",mousedown:"startDrag",dragstart:"handleDragStart",drag:"handleDrag",dragend:"handleDragEnd"}},r.prototype.__getModule=function(){return this.em.Blocks},r.prototype.handleClick=function(e){var n=this,r=n.config,o=n.model,i=n.em,a=o.get("onClick")||r.appendOnClick;if(i.trigger("block:click",o,e),a){if((0,t.isFunction)(a))return a(o,null==i?void 0:i.getEditor(),{event:e});var s,l,c=r.getSorter(),u=o.get("content"),p=i.getSelected();if(c.setDropContent(u),p)if(c.validTarget(p.getEl(),u).valid)s=p;else{var f=p.parent();f&&c.validTarget(f.getEl(),u).valid&&(s=f,l=f.components().indexOf(p)+1)}if(!s){var d=i.getWrapper();c.validTarget(d.getEl(),u).valid&&(s=d)}var h=s&&s.append(u,{at:l})[0];h&&i.setSelected(h,{scroll:1})}},r.prototype.startDrag=function(t){var e=this,n=e.config,r=e.em,o=e.model,i=o.get("disable");if(0===t.button&&n.getSorter&&!this.el.draggable&&!i){r.refreshCanvas();var a=n.getSorter();a.__currentBlock=o,a.setDragHelper(this.el,t),a.setDropContent(this.model.get("content")),a.startSort(this.el),(0,Dt.on)(document,"mouseup",this.endDrag)}},r.prototype.handleDragStart=function(t){this.__getModule().__startDrag(this.model,t)},r.prototype.handleDrag=function(t){this.__getModule().__drag(t)},r.prototype.handleDragEnd=function(){this.__getModule().__endDrag()},r.prototype.endDrag=function(){(0,Dt.S1)(document,"mouseup",this.endDrag);var t=this.config.getSorter();t.moved=0,t.endMove()},r.prototype.render=function(){var t,n=this,r=n.em,o=n.el,i=n.$el,a=n.ppfx,s=n.model,l=s.get("disable"),c=s.get("attributes")||{},u=c.class||"",p="".concat(a,"block"),f=r&&r.t("blockManager.labels.".concat(s.id))||s.get("label"),d=s.get("render"),h=s.get("media"),g=l?"".concat(p,"--disable"):"".concat(a,"four-color-h");i.attr(c),o.className="".concat(u," ").concat(p," ").concat(a,"one-bg ").concat(g).trim(),o.innerHTML="\n ".concat(h?'<div class="'.concat(p,'__media">').concat(h,"</div>"):"",'\n <div class="').concat(p,'-label">').concat(f,"</div>\n "),o.title=c.title||(null===(t=o.textContent)||void 0===t?void 0:t.trim()),o.setAttribute("draggable","".concat(!(!(0,e.hasDnd)(r)||l)));var m=d&&d({el:o,model:s,className:p,prefix:a});return m&&(o.innerHTML=m),this},r}(u.G7);const fi=pi;var di=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hi=function(t){function e(e,n){var r=t.call(this,e)||this;r.config=n;var o=n.pStylePrefix||"";return r.em=n.em,r.pfx=o,r.caretR="fa fa-caret-right",r.caretD="fa fa-caret-down",r.iconClass="".concat(o,"caret-icon"),r.activeClass="".concat(o,"open"),r.className="".concat(o,"block-category"),r.listenTo(r.model,"change:open",r.updateVisibility),r.model.view=r,r}return di(e,t),e.prototype.events=function(){return{"click [data-title]":"toggle"}},e.prototype.template=function(t){var e,r,o=t.pfx,i=t.label;return n(mi||(e=['\n <div class="','title" data-title>\n <i class="','caret-icon"></i>\n ','\n </div>\n <div class="','blocks-c"></div>\n '],r=['\n <div class="','title" data-title>\n <i class="','caret-icon"></i>\n ','\n </div>\n <div class="','blocks-c"></div>\n '],Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,mi=e),o,o,i,o)},e.prototype.attributes=function(){return this.model.get("attributes")||{}},e.prototype.updateVisibility=function(){this.model.get("open")?this.open():this.close()},e.prototype.open=function(){this.$el.addClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretD),this.getBlocksEl().style.display=""},e.prototype.close=function(){this.$el.removeClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretR),this.getBlocksEl().style.display="none"},e.prototype.toggle=function(){var t=this.model;t.set("open",!t.get("open"))},e.prototype.getIconEl=function(){return this.iconEl||(this.iconEl=this.el.querySelector(".".concat(this.iconClass))),this.iconEl},e.prototype.getBlocksEl=function(){return this.blocksEl||(this.blocksEl=this.el.querySelector(".".concat(this.pfx,"blocks-c"))),this.blocksEl},e.prototype.append=function(t){this.getBlocksEl().appendChild(t)},e.prototype.render=function(){var t=this,e=t.em,n=t.el,r=t.$el,o=t.model,i=t.pfx,a=e.t("blockManager.categories.".concat(o.id))||o.get("label");return n.innerHTML=this.template({pfx:i,label:a}),r.addClass(this.className),r.css({order:o.get("order")}),this.updateVisibility(),this},e}(u.G7);const gi=hi;var mi,vi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yi=function(){return yi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},yi.apply(this,arguments)},bi=function(e){function n(n,r){var o=e.call(this,n)||this;(0,t.bindAll)(o,"getSorter","onDrag","onDrop","onMove"),o.config=r||{},o.categories=n.categories||"",o.renderedCategories={};var i=o.config.pStylePrefix||"";o.ppfx=i,o.noCatClass="".concat(i,"blocks-no-cat"),o.blockContClass="".concat(i,"blocks-c"),o.catsClass="".concat(i,"block-categories");var a=o.collection;return o.listenTo(a,"add",o.addTo),o.listenTo(a,"reset",o.render),o.em=o.config.em,o.em&&(o.config.getSorter=o.getSorter),o}return vi(n,e),n.prototype.__getModule=function(){return this.em.Blocks},n.prototype.updateConfig=function(t){void 0===t&&(t={}),this.config=yi(yi({},this.config),t)},n.prototype.getSorter=function(){var t=this.em;if(t){if(!this.sorter){var e=t.Utils,n=t.Canvas;this.sorter=new e.Sorter({container:n.getBody(),placer:n.getPlacerEl(),containerSel:"*",itemSel:"*",pfx:this.ppfx,onStart:this.onDrag,onEndMove:this.onDrop,onMove:this.onMove,document:n.getFrameEl().contentDocument,direction:"a",wmargin:1,nested:1,em:t,canvasRelative:1})}return this.sorter}},n.prototype.onDrag=function(t){this.em.stopDefault(),this.__getModule().__startDrag(this.sorter.__currentBlock,t)},n.prototype.onMove=function(t){this.__getModule().__drag(t)},n.prototype.onDrop=function(t){this.em.runDefault(),this.__getModule().__endDrag({component:t}),delete this.sorter.__currentBlock},n.prototype.addTo=function(t){this.add(t)},n.prototype.add=function(e,n){var r=this.config,o=new fi({model:e,attributes:e.get("attributes")},r).render().el,i=e.get("category");if(i&&this.categories&&!r.ignoreCategories){(0,t.isString)(i)?i={id:i,label:i}:(0,t.isObject)(i)&&!i.id&&(i.id=i.label);var a=this.categories.add(i),s=a.get("id"),l=this.getCategoriesEl(),c=this.renderedCategories[s];return e.set("category",a,{silent:!0}),!c&&l&&(c=new gi({model:a},r).render(),this.renderedCategories[s]=c,l.appendChild(c.el)),void(c&&c.append(o))}n?n.appendChild(o):this.append(o)},n.prototype.getCategoriesEl=function(){return this.catsEl||(this.catsEl=this.el.querySelector(".".concat(this.catsClass))),this.catsEl},n.prototype.getBlocksEl=function(){return this.blocksEl||(this.blocksEl=this.el.querySelector(".".concat(this.noCatClass," .").concat(this.blockContClass))),this.blocksEl},n.prototype.append=function(t){var e=this.getBlocksEl();e&&e.appendChild(t)},n.prototype.render=function(){var t=this,e=this.ppfx,n=document.createDocumentFragment();delete this.catsEl,delete this.blocksEl,this.renderedCategories={},this.el.innerHTML='\n <div class="'.concat(this.catsClass,'"></div>\n <div class="').concat(this.noCatClass,'">\n <div class="').concat(this.blockContClass,'"></div>\n </div>\n '),this.collection.each((function(e){return t.add(e,n)})),this.append(n);var r="".concat(this.blockContClass,"s ").concat(e,"one-bg ").concat(e,"two-color");return this.$el.addClass(r),this.rendered=!0,this},n}(u.G7);const _i=bi;var wi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ei=function(){return Ei=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ei.apply(this,arguments)},xi=function(e){function n(n){var r,o=e.call(this,n,"BlockManager",new ri((null===(r=n.config.blockManager)||void 0===r?void 0:r.blocks)||[]),ci,Zo)||this;return o.events=ci,o.Block=ti,o.Blocks=ri,o.Category=ii,o.Categories=li,o.storageKey="",o.blocks=o.all,o.blocksVisible=new ri(o.blocks.models),o.categories=new li,o.blocks.on("add",(function(t){return o.blocksVisible.add(t)})),o.blocks.on("remove",(function(t){return o.blocksVisible.remove(t)})),o.blocks.on("reset",(function(t){return o.blocksVisible.reset(t.models)})),o.__onAllEvent=(0,t.debounce)((function(){return o.__trgCustom()}),0),o}return wi(n,e),n.prototype.__trgCustom=function(){this.em.trigger(this.events.custom,this.__customData())},n.prototype.__customData=function(){var t=this,e=this.__getBehaviour();return{bm:this,blocks:this.getAll().models,container:e.container,dragStart:function(e,n){return t.startDrag(e,n)},drag:function(e){return t.__drag(e)},dragStop:function(e){return t.endDrag(e)}}},n.prototype.__startDrag=function(t,e){var n=this,r=n.em,o=n.events,i=n.blocks,a=t.getContent?t.getContent():t;this._dragBlock=t,r.set({dragResult:null,dragContent:a}),[r,i].map((function(n){return n.trigger(o.dragStart,t,e)}))},n.prototype.__drag=function(t){var e=this,n=e.em,r=e.events,o=e.blocks,i=this._dragBlock;[n,o].map((function(e){return e.trigger(r.drag,i,t)}))},n.prototype.__endDrag=function(e){void 0===e&&(e={});var n=this,r=n.em,o=n.events,i=n.blocks,a=this._dragBlock,s=e.component||r.get("dragResult");if(delete this._dragBlock,s&&a){var l="activeOnRender",c=s.get&&s.get(l),u=a.get("activate")||c,p=a.get("select"),f=(0,t.isArray)(s)?s[0]:s;(p||u&&!1!==p)&&r.setSelected(f),u&&(f.trigger("active"),c&&f.unset(l)),a.get("resetId")&&f.onAll((function(t){return t.resetId()}))}r.set({dragResult:null,dragContent:null}),a&&[r,i].map((function(t){return t.trigger(o.dragEnd,s,a)}))},n.prototype.__getFrameViews=function(){return this.em.Canvas.getFrames().map((function(t){return t.view})).filter(Boolean)},n.prototype.__behaviour=function(t){return void 0===t&&(t={}),this._bhv=Ei(Ei({},this._bhv||{}),t)},n.prototype.__getBehaviour=function(){return this._bhv||{}},n.prototype.startDrag=function(t,e){this.__startDrag(t,e),this.__getFrameViews().forEach((function(t){var e;return null===(e=t.droppable)||void 0===e?void 0:e.startCustom()}))},n.prototype.endDrag=function(t){this.__getFrameViews().forEach((function(e){var n;return null===(n=e.droppable)||void 0===n?void 0:n.endCustom(t)})),this.__endDrag()},n.prototype.postRender=function(){var t=this,e=t.categories,n=t.config,r=t.em,o=this.blocksVisible;this.blocksView=new _i({collection:o,categories:e},Ei(Ei({},n),{em:r})),this.__appendTo(o.models),this.__trgCustom()},n.prototype.add=function(t,e,n){void 0===n&&(n={});var r=e||{};return r.id=t,this.blocks.add(r,n)},n.prototype.get=function(t){return this.blocks.get(t)},n.prototype.getAll=function(){return this.blocks},n.prototype.getAllVisible=function(){return this.blocksVisible},n.prototype.remove=function(t,e){return void 0===e&&(e={}),this.__remove(t,e)},n.prototype.getCategories=function(){return this.categories},n.prototype.getContainer=function(){var t;return null===(t=this.blocksView)||void 0===t?void 0:t.el},n.prototype.getDragBlock=function(){return this._dragBlock},n.prototype.render=function(t,e){void 0===e&&(e={});var n=this,r=n.categories,o=n.config,i=n.em,a=t||this.getAll().models;if(e.external){var s=new ri(a);return new _i({collection:s,categories:r},Ei(Ei({em:i},o),e)).render().el}return this.blocksView&&(this.blocksView.updateConfig(e),this.blocksView.collection.reset(a),this.blocksView.rendered||(this.blocksView.render(),this.blocksView.rendered=!0)),this.getContainer()},n.prototype.destroy=function(){var t,e=[this.blocks,this.blocksVisible,this.categories];e.map((function(t){return t.stopListening()})),e.map((function(t){return t.reset()})),null===(t=this.blocksView)||void 0===t||t.remove()},n}(y);const Ti=xi,Ci={stylePrefix:"clm-",appendTo:"",selectors:[],states:[{name:"hover"},{name:"active"},{name:"nth-of-type(2n)"}],iconAdd:'<svg viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"></path></svg>',iconSync:'<svg viewBox="0 0 24 24"><path d="M12 18c-3.31 0-6-2.69-6-6 0-1 .25-1.97.7-2.8L5.24 7.74A7.93 7.93 0 0 0 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4m0-11V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1-.25 1.97-.7 2.8l1.46 1.46A7.93 7.93 0 0 0 20 12c0-4.42-3.58-8-8-8z"></path></svg>',iconTagOn:'<svg viewBox="0 0 24 24"><path d="M19 19H5V5h10V3H5c-1.11 0-2 .89-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8h-2m-11.09-.92L6.5 11.5 11 16 21 6l-1.41-1.42L11 13.17l-3.09-3.09z"></path></svg>',iconTagOff:'<svg viewBox="0 0 24 24"><path d="M19 3H5c-1.11 0-2 .89-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14z"></path></svg>',iconTagRemove:'<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg>',componentFirst:!1,custom:!1};var Ai=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ai(e,t),e.prototype.defaults=function(){return{name:"",label:""}},e.prototype.getName=function(){return this.get("name")},e.prototype.getLabel=function(){return this.get("label")||this.getName()},e}(u.Hn);const Si=Oi;Oi.prototype.idAttribute="name";var ki=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pi="contentEditable",ji=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this,r=e.config||{};return n.config=r,n.module=e.module,n.coll=e.coll||null,n.pfx=r.stylePrefix||"",n.ppfx=r.pStylePrefix||"",n.em=r.em,n.listenTo(n.model,"change:active",n.updateStatus),n}return ki(e,t),e.prototype.template=function(){var t,e,r=this,o=r.pfx,i=r.model,a=r.config,s=i.get("label")||"";return n(Li||(t=['\n <span id="','checkbox" class="','tag-status" data-tag-status></span>\n <span id="','tag-label" data-tag-name>','</span>\n <span id="','close" class="','tag-close" data-tag-remove> $'," </span>\n "],e=['\n <span id="','checkbox" class="','tag-status" data-tag-status></span>\n <span id="','tag-label" data-tag-name>','</span>\n <span id="','close" class="','tag-close" data-tag-remove> $'," </span>\n "],Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,Li=t),o,o,o,s,o,o,a.iconTagRemove)},e.prototype.events=function(){return{"click [data-tag-remove]":"removeTag","click [data-tag-status]":"changeStatus","dblclick [data-tag-name]":"startEditTag","focusout [data-tag-name]":"endEditTag"}},e.prototype.getInputEl=function(){return this.inputEl||(this.inputEl=this.el.querySelector("[data-tag-name]")),this.inputEl},e.prototype.startEditTag=function(){var t=this.em,e=this.getInputEl();e[Pi]="true",e.focus(),null==t||t.setEditing(!0)},e.prototype.endEditTag=function(){var t=this.model,e=this.em,n=this.getInputEl(),r=n.textContent||"",o=null==e?void 0:e.Selectors;n[Pi]="false",null==e||e.setEditing(!1),o&&o.rename(t,r)!==t&&(n.innerText=t.get("label"))},e.prototype.changeStatus=function(){var t=this.model;t.set("active",!t.get("active"))},e.prototype.removeTag=function(){this.module.removeSelected(this.model)},e.prototype.updateStatus=function(){var t=this,e=t.model,n=t.$el,r=t.config,o=r.iconTagOn,i=r.iconTagOff,a=n.find("[data-tag-status]");e.get("active")?(a.html(o),n.removeClass("opac50")):(a.html(i),n.addClass("opac50"))},e.prototype.render=function(){var t=this.pfx,e=this.ppfx;return this.$el.html(this.template()),this.$el.attr("class","".concat(t,"tag ").concat(e,"three-bg")),this.updateStatus(),this},e}(u.G7);const Ni=ji;var Li,Di=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ii=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},Ri=function(e){function r(n){void 0===n&&(n={});var r=e.call(this,n)||this;r.config=n.config||{},r.pfx=r.config.stylePrefix||"",r.ppfx=r.config.pStylePrefix||"",r.className=r.pfx+"tags",r.stateInputId=r.pfx+"states",r.stateInputC=r.pfx+"input-c",r.states=r.config.states||[];var o=r.config.em,i=r.collection;r.target=o;var a=o.Selectors;return r.module=a,r.em=o,r.componentChanged=(0,t.debounce)(r.componentChanged.bind(r),0),r.checkSync=(0,t.debounce)(r.checkSync.bind(r),0),r.listenTo(o,"component:toggled component:update:classes",r.componentChanged),r.listenTo(o,"styleManager:update",r.componentChanged),r.listenTo(o,"component:update:classes change:state",r.__handleStateChange),r.listenTo(o,"styleable:change change:device",r.checkSync),r.listenTo(i,"add",r.addNew),r.listenTo(i,"reset",r.renderClasses),r.listenTo(i,"remove",r.tagRemoved),r.listenTo(a.getAll(),a.events.state,(0,t.debounce)((function(){return r.renderStates()}),0)),r.delegateEvents(),r}return Di(r,e),r.prototype.template=function(t){var e=t.labelInfo,r=t.labelHead,o=t.iconSync,i=t.iconAdd,a=t.pfx,s=t.ppfx;return n(Bi||(Bi=Ii([' <div id="','up" class="','header">\n <div id="','label" class="','header-label">','</div>\n <div id="','status-c" class="','header-status">\n <span id="','input-c" data-states-c>\n <div class="',"field ",'select">\n <span id="','input-holder">\n <select id="','states" data-states></select>\n </span>\n <div class="','sel-arrow">\n <div class="','d-s-arrow"></div>\n </div>\n </div>\n </span>\n </div>\n </div>\n <div id="','tags-field" class="','field">\n <div id="','tags-c" data-selectors></div>\n <input id="','new" data-input />\n <span id="','add-tag" class="',"tags-btn ",'tags-btn__add" data-add> $',' </span>\n <span class="',"tags-btn ",'tags-btn__sync" style="display: none" data-sync-style> $',' </span>\n </div>\n <div class="','sels-info">\n <div class="','label-sel">',':</div>\n <div class="','sels" data-selected></div>\n </div>'],[' <div id="','up" class="','header">\n <div id="','label" class="','header-label">','</div>\n <div id="','status-c" class="','header-status">\n <span id="','input-c" data-states-c>\n <div class="',"field ",'select">\n <span id="','input-holder">\n <select id="','states" data-states></select>\n </span>\n <div class="','sel-arrow">\n <div class="','d-s-arrow"></div>\n </div>\n </div>\n </span>\n </div>\n </div>\n <div id="','tags-field" class="','field">\n <div id="','tags-c" data-selectors></div>\n <input id="','new" data-input />\n <span id="','add-tag" class="',"tags-btn ",'tags-btn__add" data-add> $',' </span>\n <span class="',"tags-btn ",'tags-btn__sync" style="display: none" data-sync-style> $',' </span>\n </div>\n <div class="','sels-info">\n <div class="','label-sel">',':</div>\n <div class="','sels" data-selected></div>\n </div>'])),a,a,a,a,r,a,a,a,s,s,s,a,s,s,a,s,a,a,a,a,a,i,a,a,o,a,a,e,a)},r.prototype.events=function(){return{"change [data-states]":"stateChanged","click [data-add]":"startNewTag","focusout [data-input]":"endNewTag","keyup [data-input]":"onInputKeyUp","click [data-sync-style]":"syncStyle"}},r.prototype.syncStyle=function(){var t,e=this.em,n=this.getTarget(),r=e.Css,o=this.getCommonSelectors({opts:{noDisabled:1}}),i=e.get("state"),a=e.getCurrentMedia(),s=[],l=r.get(o,i,a)||r.add(o,i,a);this.getTargets().forEach((function(e){var n=r.getIdRule(e.getId(),{state:i,mediaText:a});t=n.getStyle(),n.setStyle({}),s.push(n)})),t&&l.addStyle(t),e.trigger("component:toggled"),e.trigger("component:sync-style",{component:n,selectors:o,mediaText:a,rule:l,ruleComponents:s,state:i})},r.prototype.tagRemoved=function(t){this.updateStateVis()},r.prototype.addNew=function(t){this.addToClasses(t)},r.prototype.startNewTag=function(){var t,e;null===(t=this.$addBtn)||void 0===t||t.css({display:"none"}),null===(e=this.$input)||void 0===e||e.show().focus()},r.prototype.endNewTag=function(){var t,e;null===(t=this.$addBtn)||void 0===t||t.css({display:""}),null===(e=this.$input)||void 0===e||e.hide().val("")},r.prototype.onInputKeyUp=function(t){var e;13===t.keyCode?(t.preventDefault(),this.addNewTag(null===(e=this.$input)||void 0===e?void 0:e.val())):27===t.keyCode&&this.endNewTag()},r.prototype.checkStates=function(){var t=this.em.getState(),e=this.getStates();e&&e.val(t)},r.prototype.componentChanged=function(t){var e=(void 0===t?{}:t).targets;this.updateSelection(e)},r.prototype.updateSelection=function(e){var n=e||this.getTargets(),r=[];return(n=(0,t.isArray)(n)?n:[n])&&n.length&&(r=this.getCommonSelectors({targets:n}),this.checkSync({validSelectors:r})),this.collection.reset(r),this.updateStateVis(n),this.module.__trgCustom(),r},r.prototype.getCommonSelectors=function(t){var e=void 0===t?{}:t,n=e.targets,r=e.opts,o=void 0===r?{}:r,i=n||this.getTargets();return this.module.__getCommonSelectors(i,o)},r.prototype._commonSelectors=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this.module).__common.apply(t,e)},r.prototype.checkSync=function(){var e,n=this,r=n.$btnSyncEl,o=n.config,i=n.collection,a=this.getTarget();if(a&&o.componentFirst&&i.length){var s=a.getStyle();e=!(0,t.isEmpty)(s)}r&&r[e?"show":"hide"]()},r.prototype.getTarget=function(){return this.target.getSelected()},r.prototype.getTargets=function(){return this.target.getSelectedAll()},r.prototype.updateStateVis=function(t){var e=this.em,n=e&&e.getConfig().avoidInlineStyle,r=this.collection.length||n?"":"none";this.getStatesC().css("display",r),this.updateSelector(t)},r.prototype.__handleStateChange=function(){this.updateSelector(this.getTargets())},r.prototype.updateSelector=function(e){var n=this,r=this.el.querySelector("[data-selected]"),o=[],i=e||this.getTargets();(i=(0,t.isArray)(i)?i:[i]).forEach((function(t){return o.push(n.__getName(t))})),r&&(r.innerHTML=o.join(", ")),this.checkStates()},r.prototype.__getName=function(e){var r,o=this,i=o.pfx,a=o.config,s=o.em,l=a.selectedName,c=a.componentFirst;if((0,t.isString)(e))r=n(Fi||(Fi=Ii(['<span class="','sel-gen">',"</span>"],['<span class="','sel-gen">',"</span>"])),i,e);else{var u=null==e?void 0:e.getSelectors();if(!u)return"";var p=u.getStyleable(),f=s.get("state"),d=e.getId?n(Ui||(Ui=Ii(['<span class="','sel-cmp">','</span>\n <span class="','sel-id">#',"</span>"],['<span class="','sel-cmp">','</span>\n <span class="','sel-id">#',"</span>"])),i,e.getName(),i,e.getId()):"";r=(r=this.collection.getFullString(p))?n(Hi||(Hi=Ii(['<span class="','sel-rule">',"</span>"],['<span class="','sel-rule">',"</span>"])),i,r):e.get("selectorsAdd")||d,r=c&&d?d:r,r+=f?n(Vi||(Vi=Ii(['<span class="','sel-state">:',"</span>"],['<span class="','sel-state">:',"</span>"])),i,f):"",r=l?l({result:r,state:f,target:e}):r}return r&&'<span class="'.concat(i,'sel">').concat(r,"</span>")},r.prototype.stateChanged=function(t){var e=this.em,n=t.target.value;e.set("state",n)},r.prototype.addNewTag=function(t){var e=t.trim();e&&(this.module.addSelected({label:e}),this.endNewTag())},r.prototype.addToClasses=function(t,e){var n=e,r=this.getClasses(),o=new Ni({model:t,config:this.config,coll:this.collection,module:this.module}).render().el;return n?n.appendChild(o):r.append(o),o},r.prototype.renderClasses=function(){var t=this,e=document.createDocumentFragment(),n=this.getClasses();n.empty(),this.collection.each((function(n){return t.addToClasses(n,e)})),n.append(e)},r.prototype.getClasses=function(){return this.$el.find("[data-selectors]")},r.prototype.getStates=function(){if(!this.$states){var t=this.$el.find("[data-states]");this.$states=t[0]&&t}return this.$states},r.prototype.getStatesC=function(){return this.$statesC||(this.$statesC=this.$el.find("#"+this.stateInputC)),this.$statesC},r.prototype.renderStates=function(){var t=this.module,e=this.em,n=e.t("selectorManager.emptyState"),r=t.getStates().map((function(t){var n=e.t("selectorManager.states.".concat(t.id))||t.getLabel()||t.id;return'<option value="'.concat(t.id,'">').concat(n,"</option>")})).join(""),o=this.getStates();o&&o.html('<option value="">'.concat(n,"</option>").concat(r)),this.checkStates()},r.prototype.render=function(){var t=this,e=t.em,n=t.pfx,r=t.ppfx,o=t.config,i=t.$el,a=t.el,s=o.render,l={iconSync:o.iconSync,iconAdd:o.iconAdd,labelHead:e.t("selectorManager.label"),labelInfo:e.t("selectorManager.selected"),ppfx:r,pfx:n,el:a};i.html(this.template(l));var c=s&&s(l);return c&&c!==a&&i.empty().append(c),this.$input=i.find("[data-input]"),this.$addBtn=i.find("[data-add]"),this.$classes=i.find("#"+n+"tags-c"),this.$btnSyncEl=i.find("[data-sync-style]"),this.$input.hide(),this.renderStates(),this.renderClasses(),i.attr("class","".concat(this.className," ").concat(r,"one-bg ").concat(r,"two-color")),this},r}(u.G7);const Mi=Ri;var Bi,Fi,Ui,Hi,Vi,qi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zi=function(){return zi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},zi.apply(this,arguments)},Gi=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Wi=function(e){return(0,t.isString)(e)&&"#"==e[0]},Yi=function(e){return(0,t.isString)(e)&&"."==e[0]},Ki="selector",$i="".concat(Ki,":"),Xi="".concat($i,"add"),Qi="".concat($i,"update"),Zi="".concat($i,"remove"),Ji="".concat(Zi,":before"),ta="".concat($i,"custom"),ea="".concat($i,"state"),na={all:Ki,update:Qi,add:Xi,remove:Zi,removeBefore:Ji,state:ea,custom:ta},ra=function(n){function r(e){var r=n.call(this,e,"SelectorManager",new Fe([]),na,Ci,{skipListen:!0})||this;r.Selector=Ie,r.Selectors=Fe,r.storageKey="",(0,t.bindAll)(r,"__updateSelectedByComponents");var o=r.config,i=o.pStylePrefix;return i&&(o.stylePrefix=i+o.stylePrefix),r.all=new Fe(o.selectors),r.selected=new Fe([],{em:e,config:o}),r.states=new u.FE(o.states.map((function(t){return new Si(t)})),{model:Si}),r.model=new u.Hn({cFirst:o.componentFirst,_undo:!0}),r.__update=(0,t.debounce)((function(){return r.__trgCustom()}),0),r.__initListen({collections:[r.states,r.selected],propagate:[{entity:r.states,event:r.events.state}]}),e.on("change:state",(function(t,n){return e.trigger(ea,n)})),r.model.on("change:cFirst",(function(t,n){return e.trigger("selector:type",n)})),e.on("component:toggled component:update:classes",r.__updateSelectedByComponents),r.model.listenTo(e,"component:toggled component:update:classes change:device styleManager:update selector:state selector:type style:target",(function(){return r.__update()})),r}return qi(r,n),r.prototype.__trgCustom=function(t){this.em.trigger(this.events.custom,this.__customData(t))},r.prototype.getAll=function(t){return void 0===t&&(t={}),this.all?t.array?Gi([],this.all.models,!0):this.all:[]},r.prototype.__customData=function(t){return void 0===t&&(t={}),this.__ctn=this.__ctn||t.container,{states:this.getStates(),selected:this.getSelected(),container:this.__ctn}},r.prototype.postRender=function(){this.__appendTo(),this.__trgCustom()},r.prototype.select=function(t,n){void 0===n&&(n={});var r=Array.isArray(t)?t:[t],o=this.em.Styles.select(r,n);this.selected.reset(this.__getCommonSelectors(o));var i=this.selectorTags,a=o.filter((function(t){return t})).map((function(t){return(0,e.isComponent)(t)||(0,e.isRule)(t)&&!t.get("selectorsAdd")?t:t.getSelectorsString()}));return i&&i.componentChanged({targets:a}),this},r.prototype.addSelector=function(e,n,r){void 0===n&&(n={}),void 0===r&&(r={});var o=zi({},n);(0,t.isObject)(e)?o=e:o.name=e,Wi(o.name)?(o.name=o.name.substr(1),o.type=Ie.TYPE_ID):Yi(o.name)&&(o.name=o.name.substr(1)),o.label&&!o.name&&(o.name=this.escapeName(o.label));var i=o.name,a=this.getConfig(),s=this.all,l=this.em,c=i?this.get(i,o.type):s.where(o)[0];if(!c){var u=o instanceof Ie?o:new Ie(o,zi(zi({},r),{config:a,em:l}));return s.add(u,r)}return c},r.prototype.getSelector=function(t,e){return void 0===e&&(e=Ie.TYPE_CLASS),Wi(t)?(t=t.substr(1),e=Ie.TYPE_ID):Yi(t)&&(t=t.substr(1)),this.all.where({name:t,type:e})[0]},r.prototype.add=function(e,n){var r=this;void 0===n&&(n={});var o=(0,t.isString)(e)?{}:n;return(0,t.isArray)(e)?e.map((function(t){return r.addSelector(t,n,o)})):this.addSelector(e,n,o)},r.prototype.addClass=function(e){var n=this,r=[];return(0,t.isString)(e)&&(e=e.trim().split(" ")),e.forEach((function(t){return r.push(n.addSelector(t))})),r},r.prototype.get=function(e,n){var r=this;if((0,t.isArray)(e)){var o=[];return e.map((function(t){return r.getSelector(t)})).filter(Boolean).forEach((function(t){return o.indexOf(t)<0&&o.push(t)})),o}return this.getSelector(e,n)},r.prototype.remove=function(t,e){return this.__remove(t,e)},r.prototype.rename=function(t,e,n){var r=this.escapeName(e);return this.get(r)||t.set({name:r,label:e},n)},r.prototype.setState=function(t){return this.em.setState(t),this},r.prototype.getState=function(){return this.em.getState()},r.prototype.getStates=function(){return Gi([],this.states.models,!0)},r.prototype.setStates=function(t,e){return this.states.reset(t.map((function(t){return new Si(t)})),e)},r.prototype.getSelected=function(){return this.__getCommon()},r.prototype.getSelectedAll=function(){return Gi([],this.selected.models,!0)},r.prototype.addSelected=function(t){var e=this.add(t);this.em.getSelectedAll().forEach((function(t){t.getSelectors().add(e)}))},r.prototype.removeSelected=function(t){this.em.getSelectedAll().forEach((function(e){!t.get("protected")&&e&&e.getSelectors().remove(t)}))},r.prototype.duplicateSelected=function(t,e){var n=this;void 0===e&&(e={});var r=this.em,o=this.getSelected();if(!(o.indexOf(t)<0)){var i=this.getState(),a=r.getCurrentMedia(),s=r.Css.get(o,i,a),l=null==s?void 0:s.getStyle();r.getSelectedAll().forEach((function(r){var o=r.getSelectors();if(o.includes(t)){var i=e.suffix||" copy",a=t.getLabel(),s=n.addSelector("".concat(a).concat(i)),l=o.indexOf(t);o.remove(t),o.add(s,{at:l})}})),l&&r.Css.add(this.getSelected(),i,a).setStyle(l)}},r.prototype.getSelectedTargets=function(){return this.em.Styles.getSelectedAll()},r.prototype.setComponentFirst=function(t){this.getConfig().componentFirst=t,this.model.set({cFirst:t})},r.prototype.getComponentFirst=function(){return this.getConfig().componentFirst},r.prototype.escapeName=function(t){var e=this.getConfig().escapeName;return e?e(t):Ie.escapeName(t)},r.prototype.render=function(t){var e=this.selectorTags,n=this.getConfig(),r=null==e?void 0:e.el;return this.selected.reset(t),this.selectorTags=new Mi({el:r,collection:this.selected,module:this,config:n}),this.selectorTags.render().el},r.prototype.destroy=function(){var t=this.selectorTags;this.model.stopListening(),this.__update.cancel(),this.__destroy(),null==t||t.remove(),this.selectorTags=void 0},r.prototype.__getCommon=function(){return this.__getCommonSelectors(this.em.getSelectedAll())},r.prototype.__getCommonSelectors=function(t,e){void 0===e&&(e={});var n=t.map((function(t){return t.getSelectors&&t.getSelectors().getValid(e)})).filter(Boolean);return this.__common.apply(this,n)},r.prototype.__common=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length?1===e.length?e[0]:2===e.length?e[0].filter((function(t){return e[1].indexOf(t)>=0})):e.slice(1).reduce((function(e,n){return t.__common(e,n)}),e[0]):[]},r.prototype.__updateSelectedByComponents=function(){this.selected.reset(this.__getCommon())},r}(y);const oa=ra,ia={textTags:["br","b","i","u","a","ul","ol"],parserCss:void 0,parserHtml:void 0,optionsHtml:{htmlType:"text/html",allowScripts:!1,allowUnsafeAttr:!1,keepEmptyTextNodes:!1}};var aa,sa=((aa={})[4]="media",aa[5]="font-face",aa[6]="page",aa[7]="keyframes",aa[11]="counter-style",aa[12]="supports",aa[13]="document",aa[14]="font-feature-values",aa[15]="viewport",aa),la=(0,t.keys)(sa),ca=[5,6,11,15],ua=la.filter((function(t){return ca.indexOf(Number(t))<0})).map((function(t){return sa[t]})).concat(["container","layer"]),pa=ca.map((function(t){return sa[t]})),fa=function(t){void 0===t&&(t="");for(var e=[],n=[],r=t.split(","),o=0,i=r.length;o<i;o++){var a=r[o].trim();if(/^(\.{1}[\w\-]+)+(:{1,2}[\w\-()]+)?$/gi.test(a)||/^(#{1}[\w\-]+){1}(:{1,2}[\w\-()]+)?$/gi.test(a)){var s=a.split(".").filter(Boolean);n.push(s)}else e.push(a)}return{result:n,add:e}},da=function(t){for(var e=t.style,n={},r=0,o=e.length;r<o;r++){var i=e[r],a=e.getPropertyValue(i),s=e.getPropertyPriority(i);n[i]="".concat(a).concat(s?" !".concat(s):"")}return n},ha=function(t){return(t.conditionText||t.media&&t.media.mediaText||t.name||t.selectorText||"").trim()},ga=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r={},o=t.length,i=t[o-1],a=i?i.split(/:(.+)/):[],s=a[1],l=n.atRule,c=n.selectorsAdd,u=n.mediaText;return pa.indexOf(l)>=0&&(r.singleAtRule=!0),l&&(r.atRuleType=l),c&&(r.selectorsAdd=c),u&&(r.mediaText=u),s&&(t[o-1]=a[0],r.state=s,a.splice(a.length-1,1)),r.selectors=t,r.style=e,r},ma=function(t){var e=t.cssText,n=void 0===e?"":e;return ua.find((function(t){return 0===n.indexOf("@".concat(t))}))},va=function(t){for(var e=[],n=t.cssRules||[],r=0,o=n.length;r<o;r++){var i=n[r],a=i.type,s=!1,l="",c="",u=i.selectorText||i.keyText||"",p=ca.indexOf(a)>=0;if(p)s=!0,l=sa[a],c=ha(i);else if(la.indexOf("".concat(a))>=0||!a&&ma(i)){var f=va(i),d=sa[a]||ma(i);c=ha(i);for(var h=0,g=f.length;h<g;h++){var m=f[h];c&&(m.mediaText=c),m.atRuleType=d}e=e.concat(f)}if(u||p){for(var v=da(i),y=fa(u),b=y.add,_=y.result,w=void 0,E=0,x=_.length;E<x;E++){var T=ga(_[E],v,{atRule:sa[a]});e.push(T),w=T}if(b.length){var C=b.join(", ");w?w.selectorsAdd=C:(T={selectors:[],selectorsAdd:C,style:v},s&&(T.singleAtRule=s),l&&(T.atRuleType=l),c&&(T.mediaText=c),e.push(T))}}}return e};var ya=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ba=function(e){function n(n){var r=e.call(this,n,"Parser",ia)||this,o=r.config;return r.parserCss=function(e,n){return void 0===n&&(n={}),{parse:function(t){var r=this,o=[],i=n.parserCss,a=null==e?void 0:e.Editor,s=i?i(t,a):function(t){var e=document.createElement("style");e.innerHTML=t,document.head.appendChild(e);var n=e.sheet;return document.head.removeChild(e),n?va(n):[]}(t);return s.forEach((function(t){return o=o.concat(r.checkNode(t))})),null==e||e.trigger("parse:css",{input:t,output:o,nodes:s}),o},checkNode:function(e){var n=e.selectors,r=e.style,o=[e];if((0,t.isString)(n)){var i=[],a=e,s=fa(n),l=s.result,c=s.add.join(", "),u={atRule:a.atRule,mediaText:a.params};l.length?l.forEach((function(t){i.push(ga(t,r,u))})):i.push(ga([],r,u)),c&&(i[i.length-1].selectorsAdd=c),o=i}return o}}}(n,o),r.parserHtml=ye(n,o),r}return ya(n,e),n.prototype.parseHtml=function(t,e){void 0===e&&(e={});var n=this.em,r=this.parserHtml;return r.compTypes=n.Components.getTypes()||{},r.parse(t,this.parserCss,e)},n.prototype.parseCss=function(t){return this.parserCss.parse(t)},n.prototype.destroy=function(){},n}(v);const _a=ba,wa={id:"gjs-",type:"local",autosave:!0,autoload:!0,stepsBeforeSave:1,recovery:!1,onStore:function(t){return t},onLoad:function(t){return t},options:{local:{key:"gjsProject",checkLocal:!0},remote:{headers:{},urlStore:"",urlLoad:"",contentTypeJson:!0,fetchOptions:"",credentials:"include",onStore:function(t){return t},onLoad:function(t){return t}}}};var Ea=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},xa=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};const Ta=function(){function t(){}return t.prototype.store=function(t,e){return void 0===e&&(e={}),Ea(this,void 0,void 0,(function(){return xa(this,(function(n){return this.hasLocal(e,!0)&&localStorage.setItem(e.key,JSON.stringify(t)),[2,t]}))}))},t.prototype.load=function(t){return void 0===t&&(t={}),Ea(this,void 0,void 0,(function(){var e;return xa(this,(function(n){return e={},this.hasLocal(t,!0)&&(e=JSON.parse(localStorage.getItem(t.key)||"{}")),[2,e]}))}))},t.prototype.hasLocal=function(t,n){if(void 0===t&&(t={}),t.checkLocal&&(!(0,e.hasWin)()||!localStorage)){if(n)throw new Error("localStorage not available");return!1}return!0},t}();function Ca(t){return Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ca(t)}function Aa(t,e){this.name="AggregateError",this.errors=t,this.message=e||""}Aa.prototype=Error.prototype;var Oa=setTimeout;function Sa(t){return Boolean(t&&void 0!==t.length)}function ka(){}function Pa(t){if(!(this instanceof Pa))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Ra(t,this)}function ja(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,Pa._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void La(e.promise,t)}Na(e.promise,r)}else(1===t._state?Na:La)(e.promise,t._value)}))):t._deferreds.push(e)}function Na(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===Ca(e)||"function"==typeof e)){var n=e.then;if(e instanceof Pa)return t._state=3,t._value=e,void Da(t);if("function"==typeof n)return void Ra((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,Da(t)}catch(e){La(t,e)}var r,o}function La(t,e){t._state=2,t._value=e,Da(t)}function Da(t){2===t._state&&0===t._deferreds.length&&Pa._immediateFn((function(){t._handled||Pa._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)ja(t,t._deferreds[e]);t._deferreds=null}function Ia(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function Ra(t,e){var n=!1;try{t((function(t){n||(n=!0,Na(e,t))}),(function(t){n||(n=!0,La(e,t))}))}catch(t){if(n)return;n=!0,La(e,t)}}Pa.prototype.catch=function(t){return this.then(null,t)},Pa.prototype.then=function(t,e){var n=new this.constructor(ka);return ja(this,new Ia(t,e,n)),n},Pa.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))},Pa.all=function(t){return new Pa((function(e,n){if(!Sa(t))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var o=r.length;function i(t,a){try{if(a&&("object"===Ca(a)||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){i(t,e)}),n)}r[t]=a,0==--o&&e(r)}catch(t){n(t)}}for(var a=0;a<r.length;a++)i(a,r[a])}))},Pa.any=function(t){var e=this;return new e((function(n,r){if(!t||void 0===t.length)return r(new TypeError("Promise.any accepts an array"));var o=Array.prototype.slice.call(t);if(0===o.length)return r();for(var i=[],a=0;a<o.length;a++)try{e.resolve(o[a]).then(n).catch((function(t){i.push(t),i.length===o.length&&r(new Aa(i,"All promises were rejected"))}))}catch(t){r(t)}}))},Pa.allSettled=function(t){return new this((function(e,n){if(!t||void 0===t.length)return n(new TypeError(Ca(t)+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var o=r.length;function i(t,n){if(n&&("object"===Ca(n)||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(e){i(t,e)}),(function(n){r[t]={status:"rejected",reason:n},0==--o&&e(r)}))}r[t]={status:"fulfilled",value:n},0==--o&&e(r)}for(var a=0;a<r.length;a++)i(a,r[a])}))},Pa.resolve=function(t){return t&&"object"===Ca(t)&&t.constructor===Pa?t:new Pa((function(e){e(t)}))},Pa.reject=function(t){return new Pa((function(e,n){n(t)}))},Pa.race=function(t){return new Pa((function(e,n){if(!Sa(t))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=t.length;r<o;r++)Pa.resolve(t[r]).then(e,n)}))},Pa._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){Oa(t,0)},Pa._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};const Ma=Pa;(0,e.hasWin)()&&(window.Promise=window.Promise||Ma);const Ba="function"==typeof fetch?fetch.bind():function(t,e){return new Ma((function(n,r){var o=new XMLHttpRequest;for(var i in o.open(e.method||"get",t),o.withCredentials="include"==e.credentials,e.headers||{})o.setRequestHeader(i,e.headers[i]);o.onload=function(t){return n({status:o.status,statusText:o.statusText,text:function(){return Ma.resolve(o.responseText)}})},o.onerror=r,o.upload&&e.onProgress&&(o.upload.onprogress=e.onProgress),e.body?o.send(e.body):o.send()}))};var Fa=function(){return Fa=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Fa.apply(this,arguments)},Ua=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},Ha=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Va=function(){function e(){}return e.prototype.store=function(t,e){return void 0===e&&(e={}),Ua(this,void 0,void 0,(function(){return Ha(this,(function(n){switch(n.label){case 0:return[4,this.request(e.urlStore,this.__props(e,t),e)];case 1:return[2,n.sent()]}}))}))},e.prototype.load=function(t){return void 0===t&&(t={}),Ua(this,void 0,void 0,(function(){return Ha(this,(function(e){switch(e.label){case 0:return[4,this.request(t.urlLoad,this.__props(t),t)];case 1:return[2,e.sent()]}}))}))},e.prototype.request=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),Ba(e,n).then((function(t){var e=t.text();return 1==(t.status/200|0)?e:e.then(Promise.reject)})).then((function(e){var n=e&&(0,t.isString)(e);return r.contentTypeJson&&n?JSON.parse(e):e}))},e.prototype.__props=function(e,n){void 0===e&&(e={});var r,o=e.contentTypeJson,i=e.headers||{},a=e.fetchOptions||{},s="X-Requested-With",l="Content-Type";if((0,t.isUndefined)(i[s])&&(i[s]="XMLHttpRequest"),(0,t.isUndefined)(i[l])&&o&&(i[l]="application/json; charset=utf-8"),n)if(o)r=JSON.stringify(n);else for(var c in r=new FormData,n)r.append(c,n[c]);var u={method:r?"POST":"GET",credentials:e.credentials,headers:i,body:r};return Fa(Fa({},u),(0,t.isFunction)(a)?a(u):a)},e}();const qa=Va;var za=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ga=function(){return Ga=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ga.apply(this,arguments)},Wa=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},Ya=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Ka="storage:start",$a="storage:after",Xa="storage:end",Qa="storage:error",Za="local",Ja="remote",ts=function(e){function n(t){var n=e.call(this,t,"StorageManager",wa)||this;n.storages={};var r=n.config;return r._disable&&(r.type=void 0),n.storages={},n.add(Za,new Ta),n.add(Ja,new qa),n.setCurrent(r.type),n}return za(n,e),n.prototype.isAutosave=function(){return!!this.config.autosave},n.prototype.setAutosave=function(t){return this.config.autosave=!!t,this},n.prototype.getStepsBeforeSave=function(){return this.config.stepsBeforeSave},n.prototype.setStepsBeforeSave=function(t){return this.config.stepsBeforeSave=t,this},n.prototype.add=function(t,e){return this.storages[t]=e,this},n.prototype.get=function(t){return this.storages[t]},n.prototype.getStorages=function(){return this.storages},n.prototype.getCurrent=function(){return this.config.currentStorage},n.prototype.setCurrent=function(t){return this.getConfig().currentStorage=t,this},n.prototype.getCurrentStorage=function(){return this.get(this.getCurrent())},n.prototype.getStorageOptions=function(t){return this.getCurrentOptions(t)},n.prototype.store=function(t,e){return void 0===e&&(e={}),Wa(this,void 0,void 0,(function(){var n,r,o,i,a;return Ya(this,(function(s){switch(s.label){case 0:n=this.getCurrentStorage(),r=Ga(Ga({},this.getCurrentOptions()),e),o=this.getRecoveryStorage(),i=this.getCurrentOptions(Za),s.label=1;case 1:return s.trys.push([1,5,,9]),[4,this.__exec(n,r,t)];case 2:return s.sent(),o?[4,this.__exec(o,i,{})]:[3,4];case 3:s.sent(),s.label=4;case 4:return[3,9];case 5:return a=s.sent(),o?[4,this.__exec(o,i,t)]:[3,7];case 6:return s.sent(),[3,8];case 7:throw a;case 8:return[3,9];case 9:return[2,t]}}))}))},n.prototype.load=function(e){return void 0===e&&(e={}),Wa(this,void 0,void 0,(function(){var n,r,o,i,a;return Ya(this,(function(s){switch(s.label){case 0:return n=this.getCurrentStorage(),r=Ga(Ga({},this.getCurrentOptions()),e),(o=this.getRecoveryStorage())?[4,this.__exec(o,this.getCurrentOptions(Za))]:[3,5];case 1:if(a=s.sent(),(0,t.isEmpty)(a))return[3,5];s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.__askRecovery()];case 3:return s.sent(),i=a,[3,5];case 4:return s.sent(),[3,5];case 5:return i?[3,7]:[4,this.__exec(n,r)];case 6:i=s.sent(),s.label=7;case 7:return[2,i||{}]}}))}))},n.prototype.__askRecovery=function(){var e=this.em,n=this.getRecovery();return new Promise((function(r,o){(0,t.isFunction)(n)?n(r,o,null==e?void 0:e.getEditor()):confirm(null==e?void 0:e.t("storageManager.recover"))?r(null):o()}))},n.prototype.getRecovery=function(){return this.config.recovery},n.prototype.getRecoveryStorage=function(){return this.getRecovery()&&this.getCurrent()===Ja&&this.get(Za)},n.prototype.__exec=function(t,e,n){var r;return Wa(this,void 0,void 0,(function(){var o,i,a,s,l,c,u,p,f,d,h,g,m;return Ya(this,(function(v){switch(v.label){case 0:if(o=n?"store":"load",i=this.getConfig(),a=i.onStore,s=i.onLoad,this.onStart(o,n),!t)return[2,n||{}];v.label=1;case 1:return v.trys.push([1,14,,15]),c=null===(r=this.em)||void 0===r?void 0:r.getEditor(),u=void 0,n?(f=a)?[4,a(n,c)]:[3,3]:[3,7];case 2:f=v.sent(),v.label=3;case 3:return p=f||n,(d=e.onStore)?[4,e.onStore(p,c)]:[3,5];case 4:d=v.sent(),v.label=5;case 5:return p=d||p,[4,t.store(p,e)];case 6:return u=v.sent(),l=n,[3,13];case 7:return[4,t.load(e)];case 8:return u=v.sent(),l=this.__clearKeys(u),(h=e.onLoad)?[4,e.onLoad(l,c)]:[3,10];case 9:h=v.sent(),v.label=10;case 10:return l=h||l,(g=s)?[4,s(l,c)]:[3,12];case 11:g=v.sent(),v.label=12;case 12:l=g||l,v.label=13;case 13:return this.onAfter(o,l,u),this.onEnd(o,l),[3,15];case 14:throw m=v.sent(),this.onError(o,m),m;case 15:return[2,l]}}))}))},n.prototype.__clearKeys=function(t){void 0===t&&(t={});var e=this.getConfig(),n=new RegExp("^".concat(e.id)),r={};for(var o in t)r[o.replace(n,"")]=t[o];return r},n.prototype.getCurrentOptions=function(t){var e=this.getConfig(),n=t||this.getCurrent();return e.options[n]||{}},n.prototype.onStart=function(t,e){var n=this.em;n&&(n.trigger(Ka),t&&n.trigger("".concat(Ka,":").concat(t),e))},n.prototype.onAfter=function(t,e,n){var r=this.em;r&&(r.trigger($a),r.trigger("".concat($a,":").concat(t),e,n),r.trigger("storage:".concat(t),e,n))},n.prototype.onEnd=function(t,e){var n=this.em;n&&(n.trigger(Xa),t&&n.trigger("".concat(Xa,":").concat(t),e))},n.prototype.onError=function(t,e){var n=this.em;n&&(n.trigger(Qa,e),t&&n.trigger("".concat(Qa,":").concat(t),e),this.onEnd(t,e))},n.prototype.canAutoload=function(){return!!this.getCurrentStorage()&&!!this.config.autoload},n.prototype.destroy=function(){this.storages={}},n}(v);const es=ts,ns={stylePrefix:"trt-",appendTo:"",optionsTarget:[{value:!1},{value:"_blank"}],custom:!1};var rs=r(330),os=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),is=function(){return is=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},is.apply(this,arguments)},as=function(n){function r(t){void 0===t&&(t={});var e=n.call(this,t)||this;e.events={},e.appendInput=!0;var r=t.config,o=void 0===r?{}:r,i=e,a=i.model,s=i.eventCapture,l=a.target,c=a.attributes.type;e.config=o,e.em=o.em,e.ppfx=o.pStylePrefix||"",e.pfx=e.ppfx+o.stylePrefix||"",e.target=l;var u=e.ppfx;return e.clsField="".concat(u,"field ").concat(u,"field-").concat(c),[["change:value",e.onValueChange],["remove",e.removeView]].forEach((function(t){var n=t[0],r=t[1];a.off(n,r),e.listenTo(a,n,r)})),a.view=e,e.listenTo(a,"change:label",e.render),e.listenTo(a,"change:placeholder",e.rerender),e.events={},s.forEach((function(t){return e.events[t]="onChange"})),e.delegateEvents(),e.init(),e}return os(r,n),r.prototype.attributes=function(){return this.model.get("attributes")||{}},r.prototype.templateLabel=function(t){var e=this.ppfx,n=this.getLabel();return'<div class="'.concat(e,'label" title="').concat(n,'">').concat(n,"</div>")},r.prototype.templateInput=function(t){var e=this.clsField;return'<div class="'.concat(e,'" data-input></div>')},r.prototype.getClbOpts=function(){return{component:this.target,trait:this.model,elInput:this.getInputElem()}},r.prototype.removeView=function(){this.remove(),this.removed()},r.prototype.init=function(){},r.prototype.removed=function(){},r.prototype.onRender=function(t){},r.prototype.onUpdate=function(t){},r.prototype.onEvent=function(t){},r.prototype.onChange=function(e){var n=this.getInputElem();n&&!(0,t.isUndefined)(n.value)&&this.model.set("value",n.value),this.onEvent(is(is({},this.getClbOpts()),{event:e}))},r.prototype.getValueForTarget=function(){return this.model.get("value")},r.prototype.setInputValue=function(t){var e=this.getInputElem();e&&(e.value=t)},r.prototype.onValueChange=function(t,e,n){if(void 0===n&&(n={}),n.fromTarget)this.setInputValue(t.get("value")),this.postUpdate();else{var r=this.getValueForTarget();t.setTargetValue(r,n)}},r.prototype.renderLabel=function(){var t=this.$el,e=this.target,n=this.getLabel(),r=this.templateLabel(e);this.createLabel&&(r=this.createLabel({label:n,component:e,trait:this})||""),t.find("[data-label]").append(r)},r.prototype.getLabel=function(){var t=this.em,n=this.model.attributes,r=n.label,o=n.name;return t.t("traitManager.traits.labels.".concat(o))||(0,e.capitalize)(r||o).replace(/-/g," ")},r.prototype.getComponent=function(){return this.target},r.prototype.getInputEl=function(){if(!this.$input){var e=this.em,n=this.model,r=n,o=n.attributes.name,i=r.get("placeholder")||r.get("default")||"",a=r.get("type")||"text",s=r.get("min"),l=r.get("max"),u=this.getModelValue(),p=(0,c.default)('<input type="'.concat(a,'">')),f=e.t("traitManager.traits.attributes.".concat(o))||{};p.attr(is({placeholder:i},f)),(0,t.isUndefined)(u)||(r.set({value:u},{silent:!0}),p.prop("value",u)),s&&p.prop("min",s),l&&p.prop("max",l),this.$input=p}return this.$input.get(0)},r.prototype.getInputElem=function(){var t=this.input,e=this.$input;return t||e&&e.get&&e.get(0)||this.getElInput()},r.prototype.getModelValue=function(){var e,n=this.model,r=this.target,o=n.getName();if(n.get("changeProp"))e=r.get(o);else{var i=r.get("attributes");e=n.get("value")||i[o]}return(0,t.isUndefined)(e)?"":e},r.prototype.getElInput=function(){return this.elInput},r.prototype.renderField=function(){var e=this,n=e.$el,r=e.appendInput,o=e.model,i=n.find("[data-input]"),a=i[i.length-1],s=o.el;s||(s=this.createInput?this.createInput(this.getClbOpts()):this.getInputEl()),(0,t.isString)(s)?(a.innerHTML=s,this.elInput=a.firstChild):(r?a.appendChild(s):a.insertBefore(s,a.firstChild),this.elInput=s),o.el=this.elInput},r.prototype.hasLabel=function(){var t=this.model.attributes.label;return!this.noLabel&&!1!==t},r.prototype.rerender=function(){delete this.model.el,this.render()},r.prototype.postUpdate=function(){this.onUpdate(this.getClbOpts())},r.prototype.render=function(){var e=this,n=e.$el,r=e.pfx,o=e.ppfx,i=e.model.attributes,a=i.type,s=i.id,l=this.hasLabel&&this.hasLabel(),c="".concat(r,"trait");delete this.$input;var u='<div class="'.concat(c," ").concat(c,"--").concat(a,'">\n ').concat(l?'<div class="'.concat(o,'label-wrp" data-label></div>'):"",'\n <div class="').concat(o,"field-wrp ").concat(o,"field-wrp--").concat(a,'" data-input>\n ').concat(this.templateInput?(0,t.isFunction)(this.templateInput)?this.templateInput(this.getClbOpts()):this.templateInput:"","\n </div>\n </div>");return n.empty().append(u),l&&this.renderLabel(),this.renderField(),this.el.className="".concat(c,"__wrp ").concat(c,"__wrp-").concat(s),this.postUpdate(),this.onRender(this.getClbOpts()),this},r}(u.G7);const ss=as;as.prototype.eventCapture=["change"];var ls=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cs=function(t){function e(e,n){void 0===e&&(e={});var r=t.call(this,e)||this;r.reuseView=!0,r.itemsView=n;var o=e.config||{},i=e.editor;return r.config=o,r.em=i,r.ppfx=o.pStylePrefix||"",r.pfx=r.ppfx+o.stylePrefix||"",r.className="".concat(r.pfx,"traits"),r.listenTo(i,"component:toggled",r.updatedCollection),r.updatedCollection(),r}return ls(e,t),e.prototype.updatedCollection=function(){var t=this,e=t.ppfx,n=t.className,r=t.em.getSelected();this.el.className="".concat(n," ").concat(e,"one-bg ").concat(e,"two-color"),this.collection=r?r.traits:[],this.render()},e}(rs.Z);const us=cs;cs.prototype.itemView=ss;var ps=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const fs=function(e){function n(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.listenTo(n.model,"change:options",n.rerender),n}return ps(n,e),n.prototype.templateInput=function(){var t=this.ppfx,e=this.clsField;return'<div class="'.concat(e,'">\n <div data-input></div>\n <div class="').concat(t,'sel-arrow">\n <div class="').concat(t,'d-s-arrow"></div>\n </div>\n </div>')},n.prototype.getInputEl=function(){if(!this.$input){var e=this.model,n=this.em,r=e.get("name"),o=e.get("options")||[],i=[],a="<select>";o.forEach((function(e){var o,s,l,c="";(0,t.isString)(e)?(o=e,s=e):(o=e.name||e.label||e.value,s="".concat((0,t.isUndefined)(e.value)?e.id:e.value).replace(/"/g,"""),c+=(l=e.style?e.style.replace(/"/g,"""):"")?' style="'.concat(l,'"'):"");var u=n.t("traitManager.traits.options.".concat(r,".").concat(s))||o;a+='<option value="'.concat(s,'"').concat(c,">").concat(u,"</option>"),i.push(s)})),a+="</select>",this.$input=(0,c.default)(a);var s=e.getTargetValue(),l=i.indexOf(s)>=0?s:e.get("default");!(0,t.isUndefined)(l)&&this.$input.val(l)}return this.$input.get(0)},n}(ss);var ds=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const hs=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.appendInput=!1,t}return ds(n,e),n.prototype.templateInput=function(){var t=this.ppfx,e=this.clsField;return'<label class="'.concat(e,'" data-input>\n <i class="').concat(t,'chk-icon"></i>\n </label>')},n.prototype.onChange=function(){this.model.set("value",this.getInputElem().checked)},n.prototype.setInputValue=function(t){var e=this.getInputElem();e&&(e.checked=!!t)},n.prototype.getInputEl=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=!this.$input,o=ss.prototype.getInputEl.apply(this,e);if(r){var i=void 0,a=void 0,s=this.model,l=this.target,c=s.attributes.valueFalse,u=s.getName();s.get("changeProp")?a=i=l.get(u):i=!(!(a=l.get("attributes")[u])&&""!==a),(0,t.isUndefined)(c)||a!==c||(i=!1),o.checked=i}return o},n}(ss);var gs=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ms=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this,r=e.ppfx||"";return n.opts=e,n.ppfx=r,n.em=e.target||{},!e.onChange&&n.listenTo(n.model,"change:value",n.handleModelChange),n}return gs(e,t),e.prototype.template=function(){return'<span class="'.concat(this.holderClass(),'"></span>')},e.prototype.inputClass=function(){return"".concat(this.ppfx,"field")},e.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},e.prototype.elementUpdated=function(){this.model.trigger("el:change")},e.prototype.setValue=function(t,e){var n=this.model,r=t||n.get("defaults"),o=this.getInputEl();o&&(o.value=r)},e.prototype.handleModelChange=function(t,e,n){this.setValue(e,n)},e.prototype.handleChange=function(t){t.stopPropagation();var e=this.getInputEl().value;this.__onInputChange(e),this.elementUpdated()},e.prototype.__onInputChange=function(t){this.model.set({value:t},{fromInput:1})},e.prototype.getInputEl=function(){if(!this.inputEl){var t=this.model,e=this.opts.type||"text",n=t.get("placeholder")||t.get("defaults")||t.get("default")||"";this.inputEl=(0,c.default)('<input type="'.concat(e,'" placeholder="').concat(n,'">'))}return this.inputEl.get(0)},e.prototype.render=function(){this.inputEl=null;var t=this.$el;return t.addClass(this.inputClass()),t.html(this.template()),t.find(".".concat(this.holderClass())).append(this.getInputEl()),this},e}(u.G7);const vs=ms;ms.prototype.events={change:"handleChange"};var ys=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bs=function(e){function n(n){void 0===n&&(n={});var r=e.call(this,n)||this;return(0,t.bindAll)(r,"moveIncrement","upIncrement"),r.doc=document,r.listenTo(r.model,"change:unit",r.handleModelChange),r}return ys(n,e),n.prototype.template=function(){var t=this.ppfx;return'\n <span class="'.concat(t,'input-holder"></span>\n <span class="').concat(t,'field-units"></span>\n <div class="').concat(t,'field-arrows" data-arrows>\n <div class="').concat(t,'field-arrow-u" data-arrow-up></div>\n <div class="').concat(t,'field-arrow-d" data-arrow-down></div>\n </div>\n ')},n.prototype.inputClass=function(){var t=this.ppfx;return this.opts.contClass||"".concat(t,"field ").concat(t,"field-integer")},n.prototype.setValue=function(t,e){var n=e||{},r=this.validateInputValue(t,{deepCheck:1}),o={value:r.value,unit:""};(r.unit||r.force)&&(o.unit=r.unit),this.model.set(o,n),n.silent&&this.handleModelChange()},n.prototype.handleChange=function(t){t.stopPropagation(),this.setValue(this.getInputEl().value),this.elementUpdated()},n.prototype.handleUnitChange=function(t){t.stopPropagation();var e=this.getUnitEl().value;this.model.set("unit",e),this.elementUpdated()},n.prototype.handleKeyDown=function(t){"ArrowUp"===t.key&&(t.preventDefault(),this.upArrowClick()),"ArrowDown"===t.key&&(t.preventDefault(),this.downArrowClick())},n.prototype.elementUpdated=function(){this.model.trigger("el:change")},n.prototype.handleModelChange=function(){var t=this.model;this.getInputEl().value=t.get("value");var e=this.getUnitEl();e&&(e.value=t.get("unit")||"")},n.prototype.getUnitEl=function(){if(!this.unitEl){var t=this.model,e=t.get("units")||[];if(e.length){var n=['<option value="" disabled hidden>-</option>'];e.forEach((function(e){var r=e==t.get("unit")?"selected":"";n.push("<option ".concat(r,">").concat(e,"</option>"))}));var r=document.createElement("div");r.innerHTML='<select class="'.concat(this.ppfx,'input-unit">').concat(n.join(""),"</select>"),this.unitEl=r.firstChild}}return this.unitEl},n.prototype.upArrowClick=function(){var t=this.model,e=t.get("step"),n=parseFloat(t.get("value"));this.setValue(this.normalizeValue(n+e)),this.elementUpdated()},n.prototype.downArrowClick=function(){var t=this.model,e=t.get("step"),n=parseFloat(t.get("value"));this.setValue(this.normalizeValue(n-e)),this.elementUpdated()},n.prototype.downIncrement=function(t){t.preventDefault(),this.moved=!1;var e=this.model.get("value")||0;e=this.normalizeValue(e),this.current={y:t.pageY,val:e},(0,Dt.on)(this.doc,"mousemove",this.moveIncrement),(0,Dt.on)(this.doc,"mouseup",this.upIncrement)},n.prototype.moveIncrement=function(t){this.moved=!0;var e=this.model,n=e.get("step"),r=this.current,o=this.normalizeValue(r.val+(r.y-t.pageY)*n),i=this.validateInputValue(o),a=i.value,s=i.unit;return this.prValue=a,e.set({value:a,unit:s},{avoidStore:1}),!1},n.prototype.upIncrement=function(){var t=this.model,e=t.get("step");if((0,Dt.S1)(this.doc,"mouseup",this.upIncrement),(0,Dt.S1)(this.doc,"mousemove",this.moveIncrement),this.prValue&&this.moved){var n=this.prValue-e;t.set("value",n,{avoidStore:1}).set("value",n+e),this.elementUpdated()}},n.prototype.normalizeValue=function(t,e){void 0===e&&(e=0);var n=this.model.get("step"),r=0;if(isNaN(t))return e;if(t=parseFloat(t),Math.floor(t)!==t){var o=n.toString().split(".")[1];r=o?o.length:0}return r?parseFloat(t.toFixed(r)):t},n.prototype.validateInputValue=function(e,n){void 0===n&&(n={});var r=0,o=n||{},i=this.model,a=(0,t.isUndefined)(e)?"":e,s=n.units||i.get("units")||[],l=i.get("unit")||s.length&&s[0]||"",c=(0,t.isUndefined)(n.max)?i.get("max"):n.max,u=(0,t.isUndefined)(n.min)?i.get("min"):n.min,p=!!i.get("limitlessMax"),f=!!i.get("limitlessMin");if(o.deepCheck){var d=i.get("fixedValues")||[];if(""===a&&(l=""),a){var h=new RegExp("^"+d.join("|"),"g");if(d.length&&h.test(a))a=a.match(h)[0],l="",r=1;else{var g=a+"";a+="",a=parseFloat(a.replace(",",".")),a=isNaN(a)?"":a;var m=g.replace(a,"");(0,t.indexOf)(s,m)>=0&&(l=m)}}}return p||(0,t.isUndefined)(c)||""===c||(a=a>c?c:a),f||(0,t.isUndefined)(u)||""===u||(a=a<u?u:a),{force:r,value:a,unit:l}},n.prototype.render=function(){vs.prototype.render.call(this),this.unitEl=null;var t=this.getUnitEl();return t&&this.$el.find(".".concat(this.ppfx,"field-units")).get(0).appendChild(t),this},n}(vs);const _s=bs;bs.prototype.events={"change input":"handleChange","change select":"handleUnitChange","click [data-arrow-up]":"upArrowClick","click [data-arrow-down]":"downArrowClick","mousedown [data-arrows]":"downIncrement",keydown:"handleKeyDown"};var ws=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Es=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ws(n,e),n.prototype.getValueForTarget=function(){var e=this.model,n=e.attributes,r=n.value,o=n.unit;return(0,t.isUndefined)(r)||""===r?e.get("default"):r+o},n.prototype.getInputEl=function(){if(!this.input){var t=this.ppfx,e=this.model,n=this.getModelValue(),r=new _s({contClass:"".concat(t,"field-int"),type:"number",model:e,ppfx:t});r.render(),this.$input=r.inputEl,this.$unit=r.unitEl,e.set("value",n,{fromTarget:!0}),this.$input.val(n),this.input=r.el}return this.input},n}(ss);const xs=Es;var Ts=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cs=function(){return Cs=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Cs.apply(this,arguments)};c.default&&function(t,n){if((0,e.hasWin)()){var r={beforeShow:A,move:A,change:A,show:A,hide:A,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},o=[],i=!!/msie/i.exec(window.navigator.userAgent),a=function(){function t(t,e){return!!~(""+t).indexOf(e)}var e=document.createElement("div").style;return e.cssText="background-color:rgba(0,0,0,.5)",t(e.backgroundColor,"rgba")||t(e.backgroundColor,"hsla")}(),s=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>▼</div>","</div>"].join(""),l=function(){var t="";if(i)for(var e=1;e<=6;e++)t+="<div class='sp-"+e+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",t,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}(),c="spectrum.id";t.fn.spectrum=function(e,u){if("string"==typeof e){var p=this,f=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=o[t(this).data(c)];if(n){var r=n[e];if(!r)throw new Error("Spectrum: no such method: '"+e+"'");"get"==e?p=n.get():"container"==e?p=n.container:"option"==e?p=n.option.apply(n,f):"destroy"==e?(n.destroy(),t(this).removeData(c)):r.apply(n,f)}})),p}return this.spectrum("destroy").each((function(){var u=function(e,c){var u,p,f,d,h=function(e,n){var o=t.extend({},r,e);return o.callbacks={move:S(o.move,n),change:S(o.change,n),show:S(o.show,n),hide:S(o.hide,n),beforeShow:S(o.beforeShow,n)},o}(c,e),g=h.flat,m=h.showSelectionPalette,v=h.localStorageKey,b=h.theme,_=h.callbacks,w=(u=Gt,p=10,function(){var t=this,e=arguments,n=function(){d=null,u.apply(t,e)};f&&clearTimeout(d),!f&&d||(d=setTimeout(n,p))}),E=!1,x=!1,T=!0,A=0,j=0,N=0,L=0,D=0,I=0,R=0,M=0,B=0,F=0,U=1,H=[],V=[],q={},z=h.selectionPalette.slice(0),G=h.maxSelectionSize,W="sp-dragging",Y=null,K=e.ownerDocument,$=(K.body,t(e)),X=!1,Q=t(l,K).addClass(b),Z=Q.find(".sp-picker-container"),J=Q.find(".sp-color"),tt=Q.find(".sp-dragger"),et=Q.find(".sp-hue"),nt=Q.find(".sp-slider"),rt=Q.find(".sp-alpha-inner"),ot=Q.find(".sp-alpha"),it=Q.find(".sp-alpha-handle"),at=Q.find(".sp-input"),st=Q.find(".sp-palette"),lt=Q.find(".sp-initial"),ct=Q.find(".sp-cancel"),ut=Q.find(".sp-clear"),pt=Q.find(".sp-choose"),ft=Q.find(".sp-palette-toggle"),dt=$.is("input"),ht=dt&&"color"===$.attr("type")&&P(),gt=dt&&!g,mt=gt?t(s).addClass(b).addClass(h.className).addClass(h.replacerClassName):t([]),vt=gt?mt:$,yt=mt.find(".sp-preview-inner"),bt=h.color||dt&&$.val(),_t=!1,wt=h.preferredFormat,Et=!h.showButtons||h.clickoutFiresChange,xt=!bt,Tt=h.allowEmpty&&!ht;function Ct(){if(h.showPaletteOnly&&(h.showPalette=!0),ft.text(h.showPaletteOnly?h.togglePaletteMoreText:h.togglePaletteLessText),h.palette){H=h.palette.slice(0),V=t.isArray(H[0])?H:[H],q={};for(var e=0;e<V.length;e++)for(var n=0;n<V[e].length;n++){var r=y(V[e][n]).toRgbString();q[r]=!0}}Q.toggleClass("sp-flat",g),Q.toggleClass("sp-input-disabled",!h.showInput),Q.toggleClass("sp-alpha-enabled",h.showAlpha),Q.toggleClass("sp-clear-enabled",Tt),Q.toggleClass("sp-buttons-disabled",!h.showButtons),Q.toggleClass("sp-palette-buttons-disabled",!h.togglePaletteOnly),Q.toggleClass("sp-palette-disabled",!h.showPalette),Q.toggleClass("sp-palette-only",h.showPaletteOnly),Q.toggleClass("sp-initial-disabled",!h.showInitial),Q.addClass(h.className).addClass(h.containerClassName),Gt()}function At(){if(v&&window.localStorage){try{var e=window.localStorage[v].split(",#");e.length>1&&(delete window.localStorage[v],t.each(e,(function(t,e){Ot(e)})))}catch(t){}try{z=window.localStorage[v].split(";")}catch(t){}}}function Ot(e){if(m){var n=y(e).toRgbString();if(!q[n]&&-1===t.inArray(n,z))for(z.push(n);z.length>G;)z.shift();if(v&&window.localStorage)try{window.localStorage[v]=z.join(";")}catch(t){}}}function St(){var e=Ut(),n=t.map(V,(function(t,n){return C(t,e,"sp-palette-row sp-palette-row-"+n,h)}));At(),z&&n.push(C(function(){var t=[];if(h.showPalette)for(var e=0;e<z.length;e++){var n=y(z[e]).toRgbString();q[n]||t.push(z[e])}return t.reverse().slice(0,h.maxSelectionSize)}(),e,"sp-palette-row sp-palette-row-selection",h)),st.html(n.join(""))}function kt(){if(h.showInitial){var t=_t,e=Ut();lt.html(C([t,e],e,"sp-palette-row-initial",h))}}function Pt(){(j<=0||A<=0||L<=0)&&Gt(),x=!0,Q.addClass(W),Y=null,$.trigger("dragstart.spectrum",[Ut()])}function jt(){x=!1,Q.removeClass(W),$.trigger("dragstop.spectrum",[Ut()])}function Nt(){var t=at.val();if(null!==t&&""!==t||!Tt){var e=y(t);e.isValid()?(Ft(e),zt(!0)):at.addClass("sp-validation-error")}else Ft(null),zt(!0)}function Lt(){E?Mt():Dt()}function Dt(){var e=t.Event("beforeShow.spectrum");if(E)Gt();else if($.trigger("beforeShow.spectrum",[Ut()]),!1!==_.beforeShow(Ut())&&!e.isDefaultPrevented()){!function(){for(var t=0;t<o.length;t++)o[t]&&o[t].hide()}(),E=!0;var n=t(K);n.bind("keydown.spectrum",It),n.bind("click.spectrum",Rt),t(window).bind("resize.spectrum",w),mt.addClass("sp-active"),Q.removeClass("sp-hidden"),Gt(),Vt(),_t=Ut(),kt(),_.show(_t),$.trigger("show.spectrum",[_t])}}function It(t){27===t.keyCode&&Mt()}function Rt(t){2!=t.button&&(x||(Et?zt(!0):Bt(),Mt()))}function Mt(){E&&!g&&(E=!1,t(K).unbind("keydown.spectrum",It),t(K).unbind("click.spectrum",Rt),t(window).unbind("resize.spectrum",w),mt.removeClass("sp-active"),Q.addClass("sp-hidden"),_.hide(Ut()),$.trigger("hide.spectrum",[Ut()]))}function Bt(){Ft(_t,!0)}function Ft(t,e){var n,r;y.equals(t,Ut())?Vt():(!t&&Tt?xt=!0:(xt=!1,T=!t,r=(n=y(t)).toHsv(),M=r.h%360/360,B=r.s,F=r.v,U=r.a),Vt(),n&&n.isValid()&&!e&&(wt=h.preferredFormat||n.getFormat()))}function Ut(t){return t=t||{},Tt&&xt?null:y.fromRatio({h:M,s:B,v:F,a:Math.round(100*U)/100},{format:t.format||wt})}function Ht(){Vt(),_.move(Ut()),$.trigger("move.spectrum",[Ut()])}function Vt(){at.removeClass("sp-validation-error"),qt();var t=y.fromRatio({h:M,s:1,v:1});J.css("background-color",t.toHexString());var e=wt;U<1&&(0!==U||"name"!==e)&&("hex"!==e&&"hex3"!==e&&"hex6"!==e&&"name"!==e||(e="rgb"));var n=Ut({format:e}),r="";if(yt.removeClass("sp-clear-display"),yt.css("background-color","transparent"),!n&&Tt)yt.addClass("sp-clear-display");else{var o=n.toHexString(),s=n.toRgbString();if(a||1===n.alpha?yt.css("background-color",s):(yt.css("background-color","transparent"),yt.css("filter",n.toFilter())),h.showAlpha){var l=n.toRgb();l.a=0;var c=y(l).toRgbString(),u="linear-gradient(left, "+c+", "+o+")";i?rt.css("filter",y(c).toFilter({gradientType:1},o)):(rt.css("background","-webkit-"+u),rt.css("background","-moz-"+u),rt.css("background","-ms-"+u),rt.css("background","linear-gradient(to right, "+c+", "+o+")"))}r=n.toString(e)}h.showInput&&at.val(r),h.showPalette&&St(),kt()}function qt(){var t=B,e=F;if(Tt&&xt)it.hide(),nt.hide(),tt.hide();else{it.show(),nt.show(),tt.show();var n=t*A,r=j-e*j;n=Math.max(-N,Math.min(A-N,n-N)),r=Math.max(-N,Math.min(j-N,r-N)),tt.css({top:r+"px",left:n+"px"});var o=U*D;it.css({left:o-I/2+"px"});var i=M*L;nt.css({top:i-R+"px"})}}function zt(t){var e=Ut(),n="",r=!!T||!y.equals(e,_t);e&&(n=e.toString(wt),!E&&Ot(e)),dt&&$.val(n),t&&r&&(_.change(e),$.trigger("change",[e]))}function Gt(){E&&(A=J.width(),j=J.height(),N=tt.height(),et.width(),L=et.height(),R=nt.height(),D=ot.width(),I=it.width(),g||(Q.css("position","absolute"),h.offset?Q.offset(h.offset):Q.offset(function(e,n){var r=0,o=e.outerWidth(),i=e.outerHeight(),a=n.outerHeight(),s=e[0].ownerDocument,l=s.documentElement,c=l.clientWidth,u=l.clientHeight,p=c+t(s).scrollLeft(),f=u+t(s).scrollTop(),d=n.offset();return d.top+=a,d.left-=Math.min(d.left,d.left+o>p&&p>o?Math.abs(d.left+o-p):0),d.top-=Math.min(d.top,d.top+i>f&&f>i?Math.abs(i+a-r):r),d}(Q,vt))),qt(),h.showPalette&&St(),$.trigger("reflow.spectrum"))}function Wt(){Mt(),X=!0,$.attr("disabled",!0),vt.addClass("sp-disabled")}!function(){if(i&&Q.find("*:not(input)").attr("unselectable","on"),Ct(),gt&&$.after(mt).hide(),Tt||ut.hide(),g)$.after(Q).hide();else{var e="parent"===h.appendTo?$.parent():t(h.appendTo);1!==e.length&&(e=t("body")),e.append(Q)}function n(e){return e.data&&e.data.ignore?(Ft(t(e.target).closest(".sp-thumb-el").data("color")),Ht()):(Ft(t(e.target).closest(".sp-thumb-el").data("color")),Ht(),h.hideAfterPaletteSelect&&(zt(!0),Mt())),!1}At(),vt.bind("click.spectrum touchstart.spectrum",(function(e){X||Lt(),e.stopPropagation(),t(e.target).is("input")||e.preventDefault()})),($.is(":disabled")||!0===h.disabled)&&Wt(),Q.click(O),at.change(Nt),at.bind("paste",(function(){setTimeout(Nt,1)})),at.keydown((function(t){13==t.keyCode&&Nt()})),ct.text(h.cancelText),ct.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),Bt(),Mt()})),ut.attr("title",h.clearText),ut.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),xt=!0,Ht(),g&&zt(!0)})),pt.text(h.chooseText),pt.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),i&&at.is(":focus")&&at.trigger("change"),at.hasClass("sp-validation-error")||(zt(!0),Mt())})),ft.text(h.showPaletteOnly?h.togglePaletteMoreText:h.togglePaletteLessText),ft.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),h.showPaletteOnly=!h.showPaletteOnly,h.showPaletteOnly||g||Q.css("left","-="+(Z.outerWidth(!0)+5)),Ct()})),k(ot,(function(t,e,n){U=t/D,xt=!1,n.shiftKey&&(U=Math.round(10*U)/10),Ht()}),Pt,jt),k(et,(function(t,e){M=parseFloat(e/L),xt=!1,h.showAlpha||(U=1),Ht()}),Pt,jt),k(J,(function(t,e,n){if(n.shiftKey){if(!Y){var r=B*A,o=j-F*j,i=Math.abs(t-r)>Math.abs(e-o);Y=i?"x":"y"}}else Y=null;var a=!Y||"y"===Y;(!Y||"x"===Y)&&(B=parseFloat(t/A)),a&&(F=parseFloat((j-e)/j)),xt=!1,h.showAlpha||(U=1),Ht()}),Pt,jt),bt?(Ft(bt),Vt(),wt=h.preferredFormat||y(bt).getFormat(),Ot(bt)):Vt(),g&&Dt();var r=i?"mousedown.spectrum":"click.spectrum touchstart.spectrum";st.delegate(".sp-thumb-el",r,n),lt.delegate(".sp-thumb-el:nth-child(1)",r,{ignore:!0},n)}();var Yt={show:Dt,hide:Mt,toggle:Lt,reflow:Gt,option:function(e,r){return e===n?t.extend({},h):r===n?h[e]:(h[e]=r,"preferredFormat"===e&&(wt=h.preferredFormat),void Ct())},enable:function(){X=!1,$.attr("disabled",!1),vt.removeClass("sp-disabled")},disable:Wt,offset:function(t){h.offset=t,Gt()},set:function(t){Ft(t),zt()},get:Ut,destroy:function(){$.show(),vt.unbind("click.spectrum touchstart.spectrum"),Q.remove(),mt.remove(),o[Yt.id]=null},container:Q};return Yt.id=o.push(Yt)-1,Yt}(this,t.extend({},e,t(this).data()));t(this).data(c,u.id)}))},t.fn.spectrum.load=!0,t.fn.spectrum.loadOpts={},t.fn.spectrum.draggable=k,t.fn.spectrum.defaults=r,t.fn.spectrum.inputTypeColorSupport=function e(){if(void 0===e._cachedResult){var n=t("<input type='color'/>")[0];e._cachedResult="color"===n.type&&""!==n.value}return e._cachedResult},t.spectrum={},t.spectrum.localization={},t.spectrum.palettes={},t.fn.spectrum.processNativeColorInputs=function(){var e=t("input[type=color]");e.length&&!P()&&e.spectrum({preferredFormat:"hex6"})};var u=/^[\s,#]+/,p=/\s+$/,f=0,d=Math,h=d.round,g=d.min,m=d.max,v=d.random,y=function(t,e){if(e=e||{},(t=t||"")instanceof y)return t;if(!(this instanceof y))return new y(t,e);var n=function(t){var e,n,r,o={r:0,g:0,b:0},i=1,a=!1,s=!1;return"string"==typeof t&&(t=function(t){t=t.replace(u,"").replace(p,"").toLowerCase();var e,n,r=!1;if(E[t])t=E[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=T.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=T.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=T.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=T.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=T.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=T.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=T.hex8.exec(t))?{a:(n=e[1],Q(n)/255),r:Q(e[2]),g:Q(e[3]),b:Q(e[4]),format:r?"name":"hex8"}:(e=T.hex6.exec(t))?{r:Q(e[1]),g:Q(e[2]),b:Q(e[3]),format:r?"name":"hex"}:!!(e=T.hex3.exec(t))&&{r:Q(e[1]+""+e[1]),g:Q(e[2]+""+e[2]),b:Q(e[3]+""+e[3]),format:r?"name":"hex"}}(t)),"object"==typeof t&&(t.hasOwnProperty("r")&&t.hasOwnProperty("g")&&t.hasOwnProperty("b")?(e=t.r,n=t.g,r=t.b,o={r:255*$(e,255),g:255*$(n,255),b:255*$(r,255)},a=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("v")?(t.s=J(t.s),t.v=J(t.v),o=function(t,e,n){t=6*$(t,360),e=$(e,100),n=$(n,100);var r=d.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),s=n*(1-(1-o)*e),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(t.h,t.s,t.v),a=!0,s="hsv"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("l")&&(t.s=J(t.s),t.l=J(t.l),o=function(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=$(t,360),e=$(e,100),n=$(n,100),0===e)r=o=i=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=a(l,s,t+1/3),o=a(l,s,t),i=a(l,s,t-1/3)}return{r:255*r,g:255*o,b:255*i}}(t.h,t.s,t.l),a=!0,s="hsl"),t.hasOwnProperty("a")&&(i=t.a)),i=K(i),{ok:a,format:t.format||s,r:g(255,m(o.r,0)),g:g(255,m(o.g,0)),b:g(255,m(o.b,0)),a:i}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=h(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=h(this._r)),this._g<1&&(this._g=h(this._g)),this._b<1&&(this._b=h(this._b)),this._ok=n.ok,this._tc_id=f++};y.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},setAlpha:function(t){return this._a=K(t),this._roundA=h(100*this._a)/100,this},toHsv:function(){var t=N(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=N(this._r,this._g,this._b),e=h(360*t.h),n=h(100*t.s),r=h(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=j(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=j(this._r,this._g,this._b),e=h(360*t.h),n=h(100*t.s),r=h(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return L(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return D(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:h(this._r),g:h(this._g),b:h(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+h(this._r)+", "+h(this._g)+", "+h(this._b)+")":"rgba("+h(this._r)+", "+h(this._g)+", "+h(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:h(100*$(this._r,255))+"%",g:h(100*$(this._g,255))+"%",b:h(100*$(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+h(100*$(this._r,255))+"%, "+h(100*$(this._g,255))+"%, "+h(100*$(this._b,255))+"%)":"rgba("+h(100*$(this._r,255))+"%, "+h(100*$(this._g,255))+"%, "+h(100*$(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[L(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+D(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";return t&&(n=y(t).toHex8String()),"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(B,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(U,arguments)},desaturate:function(){return this._applyModification(I,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(M,arguments)},spin:function(){return this._applyModification(H,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(W,arguments)},complement:function(){return this._applyCombination(V,arguments)},monochromatic:function(){return this._applyCombination(Y,arguments)},splitcomplement:function(){return this._applyCombination(G,arguments)},triad:function(){return this._applyCombination(q,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},y.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:J(t[r]));t=n}return y(t,e)},y.equals=function(t,e){return!(!t||!e)&&y(t).toRgbString()==y(e).toRgbString()},y.random=function(){return y.fromRatio({r:v(),g:v(),b:v()})},y.mix=function(t,e,n){n=0===n?0:n||50;var r,o=y(t).toRgb(),i=y(e).toRgb(),a=n/100,s=2*a-1,l=i.a-o.a,c=1-(r=((r=s*l==-1?s:(s+l)/(1+s*l))+1)/2),u={r:i.r*r+o.r*c,g:i.g*r+o.g*c,b:i.b*r+o.b*c,a:i.a*a+o.a*(1-a)};return y(u)},y.readability=function(t,e){var n=y(t),r=y(e),o=n.toRgb(),i=r.toRgb(),a=n.getBrightness(),s=r.getBrightness(),l=Math.max(o.r,i.r)-Math.min(o.r,i.r)+Math.max(o.g,i.g)-Math.min(o.g,i.g)+Math.max(o.b,i.b)-Math.min(o.b,i.b);return{brightness:Math.abs(a-s),color:l}},y.isReadable=function(t,e){var n=y.readability(t,e);return n.brightness>125&&n.color>500},y.mostReadable=function(t,e){for(var n=null,r=0,o=!1,i=0;i<e.length;i++){var a=y.readability(t,e[i]),s=a.brightness>125&&a.color>500,l=a.brightness/125*3+a.color/500;(s&&!o||s&&o&&l>r||!s&&!o&&l>r)&&(o=s,r=l,n=y(e[i]))}return n};var b,_,w,E=y.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=y.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(E),T=(_="[\\s|\\(]+("+(b="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?",w="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?",{rgb:new RegExp("rgb"+_),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+_),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+_),hsva:new RegExp("hsva"+w),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=y,t((function(){t.fn.spectrum.load&&t.fn.spectrum.processNativeColorInputs()}))}function C(e,n,r,o){for(var i=[],s=0;s<e.length;s++){var l=e[s];if(l){var c=y(l),u=c.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";u+=y.equals(n,l)?" sp-thumb-active":"";var p=c.toString(o.preferredFormat||"rgb"),f=a?"background-color:"+c.toRgbString():"filter:"+c.toFilter();i.push('<span title="'+p+'" data-color="'+c.toRgbString()+'" class="'+u+'"><span class="sp-thumb-inner" style="'+f+';"></span></span>')}else i.push(t("<div />").append(t('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",o.noColorSelectedText)).html())}return"<div class='sp-cf "+r+"'>"+i.join("")+"</div>"}function A(){}function O(t){t.stopPropagation()}function S(t,e){var n=Array.prototype.slice,r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}function k(e,n,r,o){n=n||function(){},r=r||function(){},o=o||function(){};var a=document,s=!1,l={},c=0,u=0,p="ontouchstart"in window,f={};function d(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function h(t){if(s){if(i&&a.documentMode<9&&!t.button)return g();var r=t&&t.touches&&t.touches[0],o=r&&r.pageX||t.pageX,f=r&&r.pageY||t.pageY,h=Math.max(0,Math.min(o-l.left,u)),m=Math.max(0,Math.min(f-l.top,c));p&&d(t),n.apply(e,[h,m,t])}}function g(){s&&(t(a).unbind(f),t(a.body).removeClass("sp-dragging"),setTimeout((function(){o.apply(e,arguments)}),0)),s=!1}f.selectstart=d,f.dragstart=d,f["touchmove mousemove"]=h,f["touchend mouseup"]=g,t(e).bind("touchstart mousedown",(function(n){(n.which?3==n.which:2==n.button)||s||!1!==r.apply(e,arguments)&&(s=!0,c=t(e).height(),u=t(e).width(),l=t(e).offset(),t(a).bind(f),t(a.body).addClass("sp-dragging"),h(n),d(n))}))}function P(){return t.fn.spectrum.inputTypeColorSupport()}function j(t,e,n){t=$(t,255),e=$(e,255),n=$(n,255);var r,o,i=m(t,e,n),a=g(t,e,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,l:s}}function N(t,e,n){t=$(t,255),e=$(e,255),n=$(n,255);var r,o,i=m(t,e,n),a=g(t,e,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,v:s}}function L(t,e,n,r){var o=[Z(h(t).toString(16)),Z(h(e).toString(16)),Z(h(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function D(t,e,n,r){var o;return[Z((o=r,Math.round(255*parseFloat(o)).toString(16))),Z(h(t).toString(16)),Z(h(e).toString(16)),Z(h(n).toString(16))].join("")}function I(t,e){e=0===e?0:e||10;var n=y(t).toHsl();return n.s-=e/100,n.s=X(n.s),y(n)}function R(t,e){e=0===e?0:e||10;var n=y(t).toHsl();return n.s+=e/100,n.s=X(n.s),y(n)}function M(t){return y(t).desaturate(100)}function B(t,e){e=0===e?0:e||10;var n=y(t).toHsl();return n.l+=e/100,n.l=X(n.l),y(n)}function F(t,e){e=0===e?0:e||10;var n=y(t).toRgb();return n.r=m(0,g(255,n.r-h(-e/100*255))),n.g=m(0,g(255,n.g-h(-e/100*255))),n.b=m(0,g(255,n.b-h(-e/100*255))),y(n)}function U(t,e){e=0===e?0:e||10;var n=y(t).toHsl();return n.l-=e/100,n.l=X(n.l),y(n)}function H(t,e){var n=y(t).toHsl(),r=(h(n.h)+e)%360;return n.h=r<0?360+r:r,y(n)}function V(t){var e=y(t).toHsl();return e.h=(e.h+180)%360,y(e)}function q(t){var e=y(t).toHsl(),n=e.h;return[y(t),y({h:(n+120)%360,s:e.s,l:e.l}),y({h:(n+240)%360,s:e.s,l:e.l})]}function z(t){var e=y(t).toHsl(),n=e.h;return[y(t),y({h:(n+90)%360,s:e.s,l:e.l}),y({h:(n+180)%360,s:e.s,l:e.l}),y({h:(n+270)%360,s:e.s,l:e.l})]}function G(t){var e=y(t).toHsl(),n=e.h;return[y(t),y({h:(n+72)%360,s:e.s,l:e.l}),y({h:(n+216)%360,s:e.s,l:e.l})]}function W(t,e,n){e=e||6,n=n||30;var r=y(t).toHsl(),o=360/n,i=[y(t)];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,i.push(y(r));return i}function Y(t,e){e=e||6;for(var n=y(t).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/e;e--;)a.push(y({h:r,s:o,v:i})),i=(i+s)%1;return a}function K(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function $(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=g(e,m(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),d.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function X(t){return g(1,m(0,t))}function Q(t){return parseInt(t,16)}function Z(t){return 1==t.length?"0"+t:""+t}function J(t){return t<=1&&(t=100*t+"%"),t}}(c.default);var As=function(t){var e="name"===t.getFormat()&&t.toName(),n=1==t.getAlpha()?t.toHexString():t.toRgbString();return e||n.replace(/ /g,"")},Os=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Ts(n,e),n.prototype.template=function(){var t=this.ppfx;return'\n <div class="'.concat(this.holderClass(),'"></div>\n <div class="').concat(t,'field-colorp">\n <div class="').concat(t,'field-colorp-c" data-colorp-c>\n <div class="').concat(t,'checker-bg"></div>\n </div>\n </div>\n ')},n.prototype.inputClass=function(){var t=this.ppfx;return"".concat(t,"field ").concat(t,"field-color")},n.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},n.prototype.remove=function(){return e.prototype.remove.call(this),this.colorEl.spectrum("destroy"),this},n.prototype.handleChange=function(e){e.stopPropagation();var n=e.target.value;(0,t.isUndefined)(n)||this.__onInputChange(n)},n.prototype.__onInputChange=function(t){var e=this.model,n=this.opts.onChange,r=t,o=this.getColorEl();if(o){o.spectrum("set",r);var i=o.spectrum("get"),a=r&&As(i);a&&(r=a)}n?n(r):e.set({value:r},{fromInput:1})},n.prototype.setValue=function(e,n){void 0===n&&(n={});var r=this.model,o=(0,t.isUndefined)(n.def)?r.get("defaults"):n.def,i=(0,t.isUndefined)(e)?(0,t.isUndefined)(o)?"":o:e,a=this.getInputEl(),s=this.getColorEl(),l="none"!=i?i:"";a.value=i,s.get(0).style.backgroundColor=l,(n.fromTarget||n.fromInput&&!n.avoidStore)&&(s.spectrum("set",l),this.noneColor="none"==i,this.movedColor=l)},n.prototype.getColorEl=function(){var t=this;if(!this.colorEl){var e=this,n=e.em,r=e.model,o=e.opts,i=this.ppfx,a=o.onChange,s=(0,c.default)('<div class="'.concat(this.ppfx,'field-color-picker"></div>')),l=s.get(0).style,u=n&&n.config?n.config.el:"",p=n&&n.getConfig&&n.getConfig().colorPicker||{};this.movedColor="";var f,d=!1;this.$el.find("[data-colorp-c]").append(s);var h=function(t,e){void 0===e&&(e=!0),a?a(t,!e):(e&&r.setValueFromInput(0,!1),r.setValueFromInput(t,e))};s.spectrum(Cs(Cs(Cs({color:r.getValue()||!1,containerClassName:"".concat(i,"one-bg ").concat(i,"two-color"),appendTo:u||"body",maxSelectionSize:8,showPalette:!0,showAlpha:!0,chooseText:"Ok",cancelText:"⨯",palette:[]},p),r.get("colorPicker")||{}),{move:function(e){var n=As(e);t.movedColor=n,l.backgroundColor=n,h(n,!1)},change:function(e){d=!0;var n=As(e);l.backgroundColor=n,h(n),t.noneColor=!1},show:function(e){d=!1,t.movedColor="",f=a?r.getValue({noDefault:!0}):As(e)},hide:function(){d||!f&&!a||(t.noneColor&&(f=""),l.backgroundColor=f,s.spectrum("set",f),h(f,!1))}})),n&&n.on&&this.listenTo(n,"component:selected",(function(){t.movedColor&&h(t.movedColor),d=!0,t.movedColor="",s.spectrum("hide")})),this.colorEl=s}return this.colorEl},n.prototype.render=function(){return vs.prototype.render.call(this),this.getColorEl(),this},n}(vs);const Ss=Os;var ks=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ps=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ks(e,t),e.prototype.templateInput=function(){return""},e.prototype.getInputEl=function(){if(!this.input){var t=this.model,e=this.getModelValue(),n=new Ss({model:t,target:this.config.em,contClass:this.ppfx+"field-color",ppfx:this.ppfx}).render();n.setValue(e,{fromTarget:1}),this.input=n.el}return this.input},e}(ss);var js=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ns=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return js(n,e),n.prototype.templateInput=function(){return""},n.prototype.onChange=function(){this.handleClick()},n.prototype.handleClick=function(){var e=this.model,n=this.em,r=e.get("command");r&&((0,t.isString)(r)?n.Commands.run(r):r(n.Editor,e))},n.prototype.renderLabel=function(){this.model.get("label")&&ss.prototype.renderLabel.apply(this)},n.prototype.getInputEl=function(){var t=this.model,e=this.ppfx,n=t.props(),r=n.labelButton,o=n.text,i=n.full,a=r||o,s="".concat(e,"btn");return'<button type="button" class="'.concat(s,"-prim").concat(i?" ".concat(s,"--full"):"",'">').concat(a,"</button>")},n}(ss);const Ls=Ns;Ns.prototype.eventCapture=["click button"];var Ds=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Is="trait",Rs="".concat(Is,":"),Ms="".concat(Rs,"custom"),Bs={text:ss,number:xs,select:fs,checkbox:hs,color:Ps,button:Ls};const Fs=function(e){function n(n){var r=e.call(this,n,"TraitManager",ns)||this;r.TraitsView=us,r.events={all:Is,custom:Ms};var o=new u.Hn;r.model=o,r.types=Bs;var i=(0,t.debounce)((function(){return r.__upSel()}),0);o.listenTo(n,"component:toggled",i);var a=(0,t.debounce)((function(){return r.__onUp()}),0);return o.listenTo(n,"trait:update",a),r}return Ds(n,e),n.prototype.__upSel=function(){this.select(this.em.getSelected())},n.prototype.__onUp=function(){this.select(this.getSelected())},n.prototype.select=function(t){var e=t?t.getTraits():[];this.model.set({component:t,traits:e}),this.__trgCustom()},n.prototype.getSelected=function(){return this.model.get("component")},n.prototype.getCurrent=function(){return this.model.get("traits")||[]},n.prototype.__trgCustom=function(t){void 0===t&&(t={}),this.__ctn=this.__ctn||t.container,this.em.trigger(this.events.custom,{container:this.__ctn})},n.prototype.postRender=function(){this.__appendTo()},n.prototype.getTraitsViewer=function(){return this.view},n.prototype.addType=function(t,e){var n=this.getType("text");this.types[t]=n.extend(e)},n.prototype.getType=function(t){return this.getTypes()[t]},n.prototype.getTypes=function(){return this.types},n.prototype.render=function(){var t=this.view,e=this.em,n=this.getConfig(),r=t&&t.el;return t=new us({el:r,collection:[],editor:e,config:n},this.getTypes()),this.view=t,t.el},n.prototype.destroy=function(){this.model.stopListening(),this.model.clear()},n}(v),Us={stylePrefix:"",appendTo:"",sortable:!0,hidable:!0,hideTextnode:!0,root:"",showWrapper:!0,showHover:!0,scrollCanvas:{behavior:"smooth",block:"nearest"},scrollLayers:{behavior:"auto",block:"nearest"},highlightHover:!0,custom:!1,onInit:function(){},onRender:function(){},extend:{}};var Hs=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vs=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;n.items=[],n.opt=e;var r=e.config||{};n.config=r,n.parentView=e.parentView;var o=r.stylePrefix||"",i=r.pStylePrefix||"",a=n.collection;n.listenTo(a,"add",n.addTo),n.listenTo(a,"reset resetNavigator",n.render),n.listenTo(a,"remove",n.removeChildren),n.className="".concat(o,"layers");var s=r.em;if(r.sortable&&!n.opt.sorter){var l=s.Utils;n.opt.sorter=new l.Sorter({container:r.sortContainer||n.el,containerSel:".".concat(n.className),itemSel:".".concat(o,"layer"),ignoreViewChildren:1,onEndMove:function(t,e,n){var r=e.getSourceModel();s.setSelected(r,{forceChange:1}),s.trigger("".concat(Je,":end"),n)},avoidSelectOnEnd:1,nested:1,ppfx:i,pfx:o,em:s})}return n.$el.data("collection",a),e.parent&&n.$el.data("model",e.parent),n}return Hs(e,t),e.prototype.removeChildren=function(t){var e=t.viewLayer;e&&(e.remove(),delete t.viewLayer)},e.prototype.addTo=function(t){var e=this.collection.indexOf(t);this.addToCollection(t,null,e)},e.prototype.addToCollection=function(t,e,n){var r=this,o=r.parentView,i=r.opt,a=r.config,s=i.ItemView,l=i.opened,c=i.module,u=e||null,p=new s({ItemView:s,level:i.level,model:t,parentView:o,config:a,sorter:i.sorter,opened:l,module:c}),f=p.render().el;if(u)u.appendChild(f);else if(void 0!==n){var d="before";this.$el.children().length==n&&(n--,d="after"),n<0?this.$el.append(f):this.$el.children().eq(n)[d](f)}else this.$el.append(f);return this.items.push(p),f},e.prototype.remove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return u.G7.prototype.remove.apply(this,t),this.items.map((function(t){return t.remove()})),this},e.prototype.render=function(){var t=this,e=document.createDocumentFragment(),n=this.el;return n.innerHTML="",this.collection.each((function(n){return t.addToCollection(n,e)})),n.appendChild(e),n.className=this.className,this},e}(u.G7);const qs=Vs;var zs=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gs="contentEditable",Ws=function(n){function r(e){var r=n.call(this,e)||this;(0,t.bindAll)(r,"__render"),r.opt=e,r.module=e.module,r.config=e.config||{},r.sorter=e.sorter||"",r.parentView=e.parentView;var o=r,i=o.model,a=o.pfx,s=o.ppfx,l=i.get("type")||"default";return r.className="".concat(a,"layer ").concat(a,"layer__t-").concat(l," no-select ").concat(s,"two-color"),r.inputNameCls="".concat(s,"layer-name"),r.clsTitleC="".concat(a,"layer-title-c"),r.clsTitle="".concat(a,"layer-title"),r.clsCaret="".concat(a,"layer-caret"),r.clsCount="".concat(a,"layer-count"),r.clsMove="".concat(a,"layer-move"),r.clsChildren="".concat(a,"layer-children"),r.clsNoChild="".concat(a,"layer-no-chld"),r.clsEdit="".concat(r.inputNameCls,"--edit"),r.clsNoEdit="".concat(r.inputNameCls,"--no-edit"),r.initComponent(),r}return zs(r,n),r.prototype.events=function(){return{"mousedown [data-toggle-move]":"startSort","touchstart [data-toggle-move]":"startSort","click [data-toggle-visible]":"toggleVisibility","click [data-toggle-open]":"toggleOpening","click [data-toggle-select]":"handleSelect","mouseover [data-toggle-select]":"handleHover","mouseout [data-toggle-select]":"handleHoverOut","dblclick [data-name]":"handleEdit","keydown [data-name]":"handleEditKey","focusout [data-name]":"handleEditEnd"}},r.prototype.template=function(t){var e=this,n=e.pfx,r=e.ppfx,o=e.config,i=e.clsNoEdit,a=e.module,s=e.opt,l=e.em,c=o.hidable,u=a.getComponents(t).length,p=u?"":this.clsNoChild,f="".concat(this.clsTitle," ").concat(p),d="".concat(this.clsTitleC," ").concat(r,"one-bg"),h="".concat(this.inputNameCls," ").concat(i," ").concat(r,"no-app"),g=s.level+1,m="".concat(30+10*g,"px"),v=t.getName(),y=t.getIcon(),b="".concat(n,"layer"),_=(null==l?void 0:l.getConfig()).icons,w=_.move,E=_.eye,x=_.eyeOff,T=_.chevron;return"\n ".concat(c?'<i class="'.concat(n,'layer-vis" data-toggle-visible>\n <i class="').concat(n,'layer-vis-on">').concat(E,'</i>\n <i class="').concat(n,'layer-vis-off">').concat(x,"</i>\n </i>"):"",'\n <div class="').concat(d,'">\n <div class="').concat(f,'" style="padding-left: ').concat(m,'" data-toggle-select>\n <div class="').concat(n,'layer-title-inn" title="').concat(v,'">\n <i class="').concat(this.clsCaret,'" data-toggle-open>').concat(T,"</i>\n ").concat(y?'<span class="'.concat(b,'__icon">').concat(y,"</span>"):"",'\n <span class="').concat(h,'" data-name>').concat(v,'</span>\n </div>\n </div>\n </div>\n <div class="').concat(this.clsCount,'" data-count>').concat(u||"",'</div>\n <div class="').concat(this.clsMove,'" data-toggle-move>').concat(w||"",'</div>\n <div class="').concat(this.clsChildren,'"></div>')},Object.defineProperty(r.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ppfx",{get:function(){return this.em.getConfig().stylePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pfx",{get:function(){return this.config.stylePrefix},enumerable:!1,configurable:!0}),r.prototype.initComponent=function(){var t=this,e=this.model,n=this.config.onInit,r=e.components();this.listenTo(r,"remove add reset",this.checkChildren),[["change:status",this.updateStatus],["change:open",this.updateOpening],["change:layerable",this.updateLayerable],["change:style:display",this.updateVisibility],["rerender:layer",this.render],["change:name change:custom-name",this.updateName]].forEach((function(n){return t.listenTo(e,n[0],n[1])})),this.$el.data("model",e),this.$el.data("collection",r),e.viewLayer=this,n.bind(this)({component:e,render:this.__render,listenTo:this.listenTo})},r.prototype.updateName=function(){this.getInputName().innerText=this.model.getName()},r.prototype.getVisibilityEl=function(){return this.eyeEl||(this.eyeEl=this.$el.children(".".concat(this.pfx,"layer-vis"))),this.eyeEl},r.prototype.updateVisibility=function(){var t=this,e=t.pfx,n=t.model,r=t.module,o="".concat(e,"layer-hidden"),i=r.isVisible(n)?"removeClass":"addClass";this.$el[i](o),this.getVisibilityEl()[i]("".concat(e,"layer-off"))},r.prototype.toggleVisibility=function(t){null==t||t.stopPropagation();var e=this.module,n=this.model;e.setVisible(n,!e.isVisible(n))},r.prototype.handleEdit=function(t){null==t||t.stopPropagation();var e=this,n=e.em,r=e.$el,o=e.clsNoEdit,i=e.clsEdit,a=this.getInputName();a[Gs]="true",a.focus(),document.execCommand("selectAll",!1),n.setEditing(!0),r.find(".".concat(this.inputNameCls)).removeClass(o).addClass(i)},r.prototype.handleEditKey=function(t){t.stopPropagation(),((0,Dt.kl)(t)||(0,Dt.r$)(t))&&this.handleEditEnd(t)},r.prototype.handleEditEnd=function(t){null==t||t.stopPropagation();var e=this,n=e.em,r=e.$el,o=e.clsNoEdit,i=e.clsEdit,a=this.getInputName(),s=a.textContent;a.scrollLeft=0,a[Gs]="false",this.setName(s,{component:this.model,propName:"custom-name"}),n.setEditing(!1),r.find(".".concat(this.inputNameCls)).addClass(o).removeClass(i),this.updateName()},r.prototype.setName=function(t,e){var n=e.propName;this.model.set(n,t)},r.prototype.getInputName=function(){return this.inputName||(this.inputName=this.el.querySelector(".".concat(this.inputNameCls))),this.inputName},r.prototype.updateOpening=function(){var t=this,e=t.$el,n=t.model,r=t.pfx,o="open",i="".concat(r,"layer-open"),a=this.getCaret();this.module.isOpen(n)?(e.addClass(o),a.addClass(i)):(e.removeClass(o),a.removeClass(i))},r.prototype.toggleOpening=function(t){var e=this.model,n=this.module;null==t||t.stopImmediatePropagation(),e.get("components").length&&n.setOpen(e,!n.isOpen(e))},r.prototype.handleSelect=function(t){null==t||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{selected:!0},{event:t})},r.prototype.handleHover=function(t){null==t||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{hovered:!0})},r.prototype.handleHoverOut=function(t){null==t||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{hovered:!1})},r.prototype.startSort=function(t){t.stopPropagation();var e=this.em,n=this.sorter;t.button&&0!==t.button||n&&(n.onStart=function(t){return e.trigger("".concat(Je,":start"),t)},n.onMoveClb=function(t){return e.trigger(Je,t)},n.startSort(t.target))},r.prototype.updateStatus=function(){Ur.prototype.updateStatus.apply(this,[{avoidHover:!this.config.highlightHover,noExtHl:!0}])},r.prototype.checkChildren=function(){var t=this,e=t.model,n=t.clsNoChild,r=t.$el,o=t.module,i=o.getComponents(e).length,a=r.children(".".concat(this.clsTitleC)).children(".".concat(this.clsTitle)),s=this.cnt;s||(s=r.children("[data-count]").get(0),this.cnt=s),a[i?"removeClass":"addClass"](n),s&&(s.innerHTML=i||""),!i&&o.setOpen(e,!1)},r.prototype.getCaret=function(){return this.caret&&this.caret.length||(this.caret=this.$el.children(".".concat(this.clsTitleC)).find(".".concat(this.clsCaret))),this.caret},r.prototype.setRoot=function(n){var r;n=(0,t.isString)(n)?null===(r=this.em.getWrapper())||void 0===r?void 0:r.find(n)[0]:n;var o=(0,e.getModel)(n,0);o&&(this.stopListening(),this.model=o,this.initComponent(),this._rendered&&this.render())},r.prototype.updateLayerable=function(){(this.parentView||this).render()},r.prototype.__clearItems=function(){var t;null===(t=this.items)||void 0===t||t.remove()},r.prototype.remove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return u.G7.prototype.remove.apply(this,t),this.__clearItems(),this},r.prototype.render=function(){var t=this,e=t.model,n=t.config,r=t.pfx,o=t.ppfx,i=t.opt,a=t.sorter;this.__clearItems();var s=i.opened,l=i.module,c=i.ItemView,u=!l.__isLayerable(e),p=this.$el.empty(),f=i.level+1;delete this.inputName,this.items=new qs({ItemView:c,collection:e.get("components"),config:n,sorter:a,opened:s,parentView:this,parent:e,level:f,module:l});var d=this.items.render().$el;return n.showWrapper||1!==f?(p.html(this.template(e)),p.find(".".concat(this.clsChildren)).append(d)):p.append(d),e.get("draggable")&&n.sortable||p.children(".".concat(this.clsMove)).remove(),!l.isVisible(e)&&(this.className+=" ".concat(r,"hide")),u&&(this.className+=" ".concat(o,"hidden")),p.attr("class",this.className),this.updateStatus(),this.updateOpening(),this.updateVisibility(),this.__render(),this._rendered=!0,this},r.prototype.__render=function(){var t=this,e=t.model,n=t.config,r={component:e,el:t.el};n.onRender.bind(this)(r),this.em.trigger("layer:render",r)},r}(u.G7);const Ys=Ws;var Ks=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$s=function(){return $s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$s.apply(this,arguments)},Xs="layer",Qs="".concat(Xs,":"),Zs="".concat(Qs,"root"),Js="".concat(Qs,"component"),tl="".concat(Qs,"custom"),el={all:Xs,root:Zs,component:Js,custom:tl},nl={mediaText:""},rl=["open","status","locked","custom-name","components","classes"].map((function(t){return"component:update:".concat(t)})).join(" "),ol=function(n){function r(e){var r=n.call(this,e,"LayerManager",Us)||this;return r.events=el,(0,t.bindAll)(r,"componentChanged","__onRootChange","__onComponent"),r.model=new _.Z(r,{opened:{}}),r.config.stylePrefix=r.config.pStylePrefix,r}return Ks(r,n),r.prototype.onLoad=function(){var t=this,e=this,n=e.em,r=e.config,o=e.model;o.listenTo(n,"component:selected",this.componentChanged),o.on("change:root",this.__onRootChange),o.listenTo(n,rl,this.__onComponent),this.componentChanged(),o.listenToOnce(n,"load",(function(){t.setRoot(r.root),t.__appendTo()}))},r.prototype.setRoot=function(n){var r=this.em.getWrapper(),o=(0,e.isComponent)(n)?n:r;return n&&(0,t.isString)(n)&&(0,e.hasWin)()&&(o=r.find(n)[0]||r),this.model.set("root",o),o},r.prototype.getRoot=function(){return this.model.get("root")},r.prototype.getComponents=function(t){var e=this;return t.components().filter((function(t){return e.__isLayerable(t)}))},r.prototype.setOpen=function(t,e){t.set("open",e)},r.prototype.isOpen=function(t){return!!t.get("open")},r.prototype.setVisible=function(t,e){var n="__prev-display",r=t.getStyle(nl),o=r.display;if(e){var i=t.get(n);delete r.display,i&&(r.display=i,t.unset(n))}else o&&t.set(n,o),r.display="none";t.setStyle(r,nl),this.updateLayer(t),this.em.trigger("component:toggled")},r.prototype.isVisible=function(t){return void 0===(e=t.getStyle(nl))&&(e={}),!(0===(e.display||"").trim().indexOf("none"));var e},r.prototype.setLocked=function(t,e){t.set("locked",e)},r.prototype.isLocked=function(t){return!!t.get("locked")},r.prototype.setName=function(t,e){t.set("custom-name",e)},r.prototype.getName=function(t){return t.getName()},r.prototype.getLayerData=function(t){var e=t.get("status");return{name:t.getName(),open:this.isOpen(t),selected:"selected"===e,hovered:"hovered"===e,visible:this.isVisible(t),locked:this.isLocked(t),components:this.getComponents(t)}},r.prototype.setLayerData=function(t,n,r){var o;void 0===r&&(r={});var i=this.em,a=this.config,s=n.open,l=n.selected,c=n.hovered,u=n.visible,p=n.locked,f=n.name,d=$s({fromLayers:!0},r);if((0,e.isDef)(s)&&this.setOpen(t,s),(0,e.isDef)(l))if(l){i.setSelected(t,d);var h=a.scrollCanvas;h&&(null===(o=t.views)||void 0===o||o.forEach((function(t){return t.scrollIntoView(h)})))}else i.removeSelected(t,d);(0,e.isDef)(c)&&a.showHover&&(c?i.setHovered(t,d):i.setHovered(null,d)),(0,e.isDef)(u)&&u!==this.isVisible(t)&&this.setVisible(t,u),(0,e.isDef)(p)&&this.setLocked(t,p),(0,e.isDef)(f)&&this.setName(t,f)},r.prototype.componentChanged=function(t,e){var n;if(void 0===e&&(e={}),!e.fromLayers){var r=this.em,o=this.config.scrollLayers,i=this.model.get("opened"),a=r.getSelected(),s=null==a?void 0:a.parent();for(var l in i)i[l].set("open",!1),delete i[l];for(;s;)s.set("open",!0),i[s.cid]=s,s=s.parent();if(a&&o){var c=null===(n=a.viewLayer)||void 0===n?void 0:n.el;null==c||c.scrollIntoView(o)}}},r.prototype.getAll=function(){return this.view},r.prototype.render=function(){var t,e,n=this.config,r=this.model,o=Ys.extend(n.extend);return this.view=new o({el:null===(t=this.view)||void 0===t?void 0:t.el,ItemView:o,level:0,config:n,opened:r.get("opened"),model:this.getRoot(),module:this}),null===(e=this.view)||void 0===e?void 0:e.render().el},r.prototype.destroy=function(){var t;null===(t=this.view)||void 0===t||t.remove()},r.prototype.__onRootChange=function(){var t,e=this.getRoot();null===(t=this.view)||void 0===t||t.setRoot(e),this.em.trigger(Zs,e),this.__trgCustom()},r.prototype.__onComponent=function(t){this.updateLayer(t)},r.prototype.__isLayerable=function(t){var e=t.get("tagName");return(!this.config.hideTextnode||!t.is("textnode")&&"br"!==e)&&t.get("layerable")},r.prototype.__trgCustom=function(t){var e=this,n=e.__ctn,r=e.em,o=e.events;this.__ctn=n||(null==t?void 0:t.container),r.trigger(o.custom,{container:this.__ctn,root:this.getRoot()})},r.prototype.updateLayer=function(t,e){this.em.trigger(Js,t,e)},r}(v);const il=ol,al={assets:[],noAssets:"",stylePrefix:"am-",upload:"",uploadName:"files",headers:{},params:{},credentials:"include",multiUpload:!0,autoAdd:!0,customFetch:void 0,uploadFile:void 0,embedAsBase64:!0,handleAdd:void 0,beforeUpload:void 0,showUrlInput:!0,custom:!1,dropzone:!1,openAssetsOnDrop:!0,dropzoneContent:""};var sl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ll=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return sl(n,e),n.getDefaults=function(){return(0,t.result)(this.prototype,"defaults")},n.prototype.defaults=function(){return{type:"",src:""}},n.prototype.getType=function(){return this.get("type")},n.prototype.getSrc=function(){return this.get("src")},n.prototype.getFilename=function(){return this.get("src").split("/").pop().split("?").shift()},n.prototype.getExtension=function(){return this.getFilename().split(".").pop()},n}(u.Hn);const cl=ll;ll.prototype.idAttribute="src";var ul=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pl=function(){return pl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},pl.apply(this,arguments)};const fl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ul(e,t),e.prototype.defaults=function(){return pl(pl({},cl.getDefaults()),{type:"image",unitDim:"px",height:0,width:0})},e}(cl);var dl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const hl=function(e){function n(t){var n=e.call(this,t)||this;n.options=t,n.collection=t.collection;var r=t.config||{};n.config=r,n.pfx=r.stylePrefix||"",n.ppfx=r.pStylePrefix||"",n.em=r.em,n.className=n.pfx+"asset",n.listenTo(n.model,"destroy remove",n.remove),n.model.view=n;var o=n.init&&n.init.bind(n);return o&&o(t),n}return dl(n,e),n.prototype.__getBhv=function(){var t=this.em,e=null==t?void 0:t.Assets;return(null==e?void 0:e.__getBehaviour())||{}},n.prototype.template=function(t,e){var n=this.pfx;return'\n <div class="'.concat(n,'preview-cont">\n ').concat(this.getPreview(),'\n </div>\n <div class="').concat(n,'meta">\n ').concat(this.getInfo(),'\n </div>\n <div class="').concat(n,'close" data-toggle="asset-remove">\n ⨯\n </div>\n ')},n.prototype.updateTarget=function(e){e&&e.set&&(e.set("attributes",(0,t.clone)(e.get("attributes"))),e.set("src",this.model.get("src")))},n.prototype.getPreview=function(){return""},n.prototype.getInfo=function(){return""},n.prototype.render=function(){var t=this.el;return t.innerHTML=this.template(this,this.model),t.className=this.className,this},n}(u.G7);var gl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ml=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},vl=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return gl(r,e),r.prototype.getPreview=function(){var t=this,e=t.pfx,r=t.ppfx,o=t.model.get("src");return n(bl||(bl=ml(['\n <div class="','preview" style="background-image: url(\'','\');"></div>\n <div class="',"preview-bg ",'checker-bg"></div>\n '],['\n <div class="','preview" style="background-image: url(\'','\');"></div>\n <div class="',"preview-bg ",'checker-bg"></div>\n '])),e,o,e,r)},r.prototype.getInfo=function(){var t=this.pfx,e=this.model,r=e.get("name"),o=e.get("width"),i=e.get("height"),a=e.get("unitDim"),s=o&&i?"".concat(o,"x").concat(i).concat(a):"";return r=r||e.getFilename(),n(_l||(_l=ml(['\n <div class="','name">','</div>\n <div class="','dimensions">',"</div>\n "],['\n <div class="','name">','</div>\n <div class="','dimensions">',"</div>\n "])),t,r,t,s)},r.prototype.init=function(t){var e=this.pfx;this.className+=" ".concat(e,"asset-image")},r.prototype.onClick=function(){var e=this.model,n=this.pfx,r=this.__getBhv().select,o=this.config.onClick,i=this.collection;i.trigger("deselectAll"),this.$el.addClass(n+"highlight"),(0,t.isFunction)(r)?r(e,!1):(0,t.isFunction)(o)?o(e):this.updateTarget(i.target)},r.prototype.onDblClick=function(){var e=this.em,n=this.model,r=this.__getBhv().select,o=this.config.onDblClick,i=this.collection,a=i.target,s=i.onSelect;(0,t.isFunction)(r)?r(n,!0):(0,t.isFunction)(o)?o(n):(this.updateTarget(a),null==e||e.Modal.close()),(0,t.isFunction)(s)&&s(n)},r.prototype.onRemove=function(t){t.stopImmediatePropagation(),this.model.collection.remove(this.model)},r}(hl);const yl=vl;var bl,_l;vl.prototype.events={"click [data-toggle=asset-remove]":"onRemove",click:"onClick",dblclick:"onDblClick"};var wl=function(){return wl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},wl.apply(this,arguments)},El={types:[],initialize:function(t,e){var n=this;void 0===e&&(e={});var r=e.em;this.em=r,this.opts=e,this.model=function(t,e){var o,i,a;if(void 0===t&&(t={}),void 0===e&&(e={}),t&&t.type){var s=n.getBaseType();o=(a=n.getType(t.type))?a.model:s.model,i=a?a.view:s.view}else{var l=n.recognizeType(t);o=(a=l.type).model,i=a.view,t=l.attributes}var c=new o(t,wl(wl({},e),{em:r}));return c.typeView=i,c};var o=this.init&&this.init.bind(this);o&&o()},recognizeType:function(t){for(var e=this.getTypes(),n=0;n<e.length;n++){var r=e[n],o=r.isType(t);if(o="boolean"==typeof o&&o?{type:r.id}:o)return{type:r,attributes:o}}return{type:this.getBaseType(),attributes:t}},getBaseType:function(){var t=this.getTypes();return t[t.length-1]},getTypes:function(){return this.types},getType:function(t){for(var e=this.getTypes(),n=0;n<e.length;n++){var r=e[n];if(r.id===t)return r}},addType:function(e,n){var r=this.getType(e),o=this.getBaseType(),i=r?r.model:o.model,a=r?r.view:o.view,s=n.model,l=n.view,c=n.isType;s=s instanceof u.Hn||(0,t.isFunction)(s)?s:i.extend(s||{}),l=l instanceof u.G7||(0,t.isFunction)(l)?l:a.extend(l||{}),!this.extendViewApi||n.model||n.view||(l=l.extend(n)),r?(r.model=s,r.view=l,r.isType=c||r.isType):(n.id=e,n.model=s,n.view=l,n.isType=c||function(t){if(t&&t.type==e)return!0},this.getTypes().unshift(n))}};const xl=El;var Tl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Tl(e,t),e}(u.FE.extend(xl));const Al=Cl;Cl.prototype.types=[{id:"image",model:fl,view:yl,isType:function(t){return"string"==typeof t?{type:"image",src:t}:t}}];var Ol=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sl=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;n.options=e,n.config=e.config,n.pfx=n.config.stylePrefix||"",n.ppfx=n.config.pStylePrefix||"",n.em=n.config.em;var r=n.collection;return n.listenTo(r,"reset",n.renderAssets),n.listenTo(r,"add",n.addToAsset),n.listenTo(r,"remove",n.removedAsset),n.listenTo(r,"deselectAll",n.deselectAll),n}return Ol(e,t),e.prototype.template=function(t){var e=t.pfx,n=t.ppfx,r=t.em,o="";return this.config.showUrlInput&&(o='\n <form class="'.concat(e,'add-asset">\n <div class="').concat(n,"field ").concat(e,'add-field">\n <input placeholder="').concat(null==r?void 0:r.t("assetManager.inputPlh"),'"/>\n </div>\n <button class="').concat(n,'btn-prim">').concat(null==r?void 0:r.t("assetManager.addButton"),'</button>\n <div style="clear:both"></div>\n </form>\n ')),'\n <div class="'.concat(e,'assets-cont">\n <div class="').concat(e,'assets-header">\n ').concat(o,'\n </div>\n <div class="').concat(e,'assets" data-el="assets"></div>\n <div style="clear:both"></div>\n </div>\n ')},e.prototype.handleSubmit=function(t){t.preventDefault();var e=this.getAddInput(),n=e&&e.value.trim(),r=this.config.handleAdd;if(n){e.value="";var o=this.getAssetsEl();o&&(o.scrollTop=0),r?r.bind(this)(n):this.options.globalCollection.add(n,{at:0})}},e.prototype.getAssetsEl=function(){return this.el.querySelector(".".concat(this.pfx,"assets"))},e.prototype.getAddInput=function(){return this.inputUrl&&this.inputUrl.value||(this.inputUrl=this.el.querySelector(".".concat(this.pfx,"add-asset input"))),this.inputUrl},e.prototype.removedAsset=function(t){this.collection.length||this.toggleNoAssets()},e.prototype.addToAsset=function(t){1==this.collection.length&&this.toggleNoAssets(!0),this.addAsset(t)},e.prototype.addAsset=function(t,e){void 0===e&&(e=null);var n=e,r=this.collection,o=this.config,i=new t.typeView({model:t,collection:r,config:o}).render().el;if(n)n.appendChild(i);else{var a=this.getAssetsEl();a&&a.insertBefore(i,a.firstChild)}return i},e.prototype.toggleNoAssets=function(t){void 0===t&&(t=!1);var e=this.$el.find(".".concat(this.pfx,"assets"));if(t)e.empty();else{var n=this.config.noAssets;n&&e.append(n)}},e.prototype.deselectAll=function(){var t=this.pfx;this.$el.find(".".concat(t,"highlight")).removeClass("".concat(t,"highlight"))},e.prototype.renderAssets=function(){var t=this,e=document.createDocumentFragment(),n=this.$el.find(".".concat(this.pfx,"assets"));n.empty(),this.toggleNoAssets(!!this.collection.length),this.collection.each((function(n){return t.addAsset(n,e)})),n.append(e)},e.prototype.render=function(){var t=this.options.fu.render().el;return this.$el.empty(),this.$el.append(t).append(this.template(this)),this.el.className="".concat(this.ppfx,"asset-manager"),this.renderAssets(),this},e}(u.G7);const kl=Sl;Sl.prototype.events={submit:"handleSubmit"};var Pl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jl=function(t){function e(n){void 0===n&&(n={});var r=t.call(this,n)||this;r.options=n;var o=n.config||{};r.module=n.module,r.config=o,r.em=r.config.em,r.pfx=o.stylePrefix||"",r.ppfx=o.pStylePrefix||"",r.target=r.options.globalCollection||{},r.uploadId=r.pfx+"uploadFile",r.disabled=void 0!==o.disableUpload?o.disableUpload:!o.upload&&!o.embedAsBase64,r.multiUpload=void 0===o.multiUpload||o.multiUpload;var i=o.uploadFile;return i?r.uploadFile=i.bind(r):!o.upload&&o.embedAsBase64&&(r.uploadFile=e.embedAsBase64),r.delegateEvents(),r}return Pl(e,t),e.prototype.template=function(t){var e,r,o=t.pfx,i=t.title,a=t.uploadId,s=t.disabled,l=t.multiUpload;return n(Ll||(e=['\n <form>\n <div id="','title">','</div>\n <input\n data-input\n type="file"\n id="','"\n name="file"\n accept="*/*"\n ',"\n ",'\n />\n <div style="clear:both;"></div>\n </form>\n '],r=['\n <form>\n <div id="','title">','</div>\n <input\n data-input\n type="file"\n id="','"\n name="file"\n accept="*/*"\n ',"\n ",'\n />\n <div style="clear:both;"></div>\n </form>\n '],Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,Ll=e),o,i,a,s?"disabled":"",l?"multiple":"")},e.prototype.events=function(){return{"change [data-input]":"uploadFile"}},e.prototype.onUploadStart=function(){var t=this.module;t&&t.__propEv("asset:upload:start")},e.prototype.onUploadEnd=function(t){var e=this.$el,n=this.module;n&&n.__propEv("asset:upload:end",t);var r=e.find("input");r&&r.val("")},e.prototype.onUploadError=function(t){var e=this.module;console.error(t),this.onUploadEnd(t),e&&e.__propEv("asset:upload:error",t)},e.prototype.onUploadResponse=function(t,e){var n,r=this,o=r.module,i=r.config,a=r.target;try{n="string"==typeof t?JSON.parse(t):t}catch(e){n=t}o&&o.__propEv("asset:upload:response",n),i.autoAdd&&a&&a.add(n.data,{at:0}),this.onUploadEnd(t),null==e||e(n)},e.prototype.uploadFile=function(t,e){var n=this,r=t.dataTransfer?t.dataTransfer.files:t.target.files,o=this.config,i=o.beforeUpload;if(!1!==(i&&i(r))){var a=new FormData,s=o.params,l=o.customFetch,c=o.fetchOptions;for(var u in s)a.append(u,s[u]);if(this.multiUpload)for(var p=0;p<r.length;p++)a.append("".concat(o.uploadName,"[]"),r[p]);else r.length&&a.append(o.uploadName,r[0]);var f=o.upload,d=o.headers,h="X-Requested-With";if(void 0===d[h]&&(d[h]="XMLHttpRequest"),f){this.onUploadStart();var g={method:"post",credentials:o.credentials||"include",headers:d,body:a},m=(null==c?void 0:c(g))||g;return(l?l(f,m):Ba(f,m).then((function(t){return 1==(t.status/200|0)?t.text():t.text().then((function(t){return Promise.reject(t)}))}))).then((function(t){return n.onUploadResponse(t,e)})).catch((function(t){return n.onUploadError(t)}))}}},e.prototype.initDrop=function(){var t=this;if(!this.uploadForm){this.uploadForm=this.$el.find("form").get(0);var e=this.uploadForm;"draggable"in e&&(this.uploadForm.ondragover=function(){return e.className=t.pfx+"hover",!1},this.uploadForm.ondragleave=function(){return e.className="",!1},this.uploadForm.ondrop=function(n){e.className="",n.preventDefault(),t.uploadFile(n)})}},e.prototype.initDropzone=function(t){var e=this,n=0,r=this.config,o=t.model,i=t.el,a=o.Editor,s=o.Canvas.getBody(),l=this.ppfx,c="".concat(l,"dropzone-active"),u="".concat(l,"dropzone"),p=function(){i.className=i.className.replace(c,"").trim(),n=0},f=function(){return n||(i.className+=" ".concat(c),n=1),!1},d=function(){return p(),!1},h=function(t){if(p(),t.preventDefault(),t.stopPropagation(),e.uploadFile(t),r.openAssetsOnDrop&&a){var n=a.getSelected();a.runCommand("open-assets",{target:n,onSelect:function(){a.Modal.close(),a.AssetManager.setTarget(null)}})}return!1};t.$el.append('<div class="'.concat(u,'">').concat(r.dropzoneContent,"</div>")),p(),"draggable"in i&&[i,s].forEach((function(t){t.ondragover=f,t.ondragleave=d,t.ondrop=h}))},e.prototype.render=function(){var t=this,e=t.$el,n=t.pfx,r=t.em;return e.html(this.template({title:r&&r.t("assetManager.uploadTitle"),uploadId:this.uploadId,disabled:this.disabled,multiUpload:this.multiUpload,pfx:n})),this.initDrop(),e.attr("class",n+"file-uploader"),this},e.embedAsBase64=function(t,e){var n=this,r=t.dataTransfer?t.dataTransfer.files:t.target.files,o={data:[]};if(FileReader){for(var i=[],a=/^(.+)\/(.+)$/,s=function(t){var e=new Promise((function(e,n){var r=new FileReader;r.addEventListener("load",(function(o){var i,s=t.name,l=a.exec(t.type);if("image"===(i=l?l[1]:t.type)){var c={src:r.result,name:s,type:i,height:0,width:0},u=new Image;u.addEventListener("error",(function(t){n(t)})),u.addEventListener("load",(function(){c.height=u.height,c.width=u.width,e(c)})),u.src=c.src}else e(i?{src:r.result,name:s,type:i}:r.result)})),r.addEventListener("error",(function(t){n(t)})),r.addEventListener("abort",(function(t){n("Aborted")})),r.readAsDataURL(t)}));i.push(e)},l=0,c=r;l<c.length;l++)s(c[l]);return Promise.all(i).then((function(t){o.data=t,n.onUploadResponse(o,e)}),(function(t){n.onUploadError(t)}))}this.onUploadError(new Error("Unsupported platform, FileReader is not defined"))},e}(u.G7);const Nl=jl;var Ll,Dl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Il=function(){return Il=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Il.apply(this,arguments)},Rl=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Ml="asset",Bl="".concat(Ml,":"),Fl="".concat(Bl,"select"),Ul="".concat(Bl,"update"),Hl="".concat(Bl,"add"),Vl="".concat(Bl,"remove"),ql="".concat(Vl,":before"),zl="".concat(Bl,"custom"),Gl="".concat(Bl,"open"),Wl="".concat(Bl,"close"),Yl="".concat(Bl,"upload"),Kl="".concat(Yl,":start"),$l="".concat(Yl,":end"),Xl="".concat(Yl,":error"),Ql="".concat(Yl,":response"),Zl="open-assets",Jl={all:Ml,select:Fl,update:Ul,add:Hl,remove:Vl,removeBefore:ql,custom:zl,open:Gl,close:Wl,uploadStart:Kl,uploadEnd:$l,uploadError:Xl,uploadResponse:Ql},tc=function(e){function n(n){var r=e.call(this,n,"AssetManager",new Al([],n),Jl,al)||this;r.storageKey="assets",r.Asset=cl,r.Assets=Al;var o=r,i=o.all,a=o.config;r.assetsVis=new Al([]);var s=a.pStylePrefix;return s&&(a.stylePrefix="".concat(s).concat(a.stylePrefix)),i.on("add",(function(t){return r.getAllVisible().add(t)})),i.on("remove",(function(t){return r.getAllVisible().remove(t)})),r.__onAllEvent=(0,t.debounce)((function(){return r.__trgCustom()}),0),r}return Dl(n,e),n.prototype.__propEv=function(t){for(var e,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];(e=this.em).trigger.apply(e,Rl([t],r,!1)),(n=this.getAll()).trigger.apply(n,Rl([t],r,!1))},n.prototype.__trgCustom=function(){var t=this.__getBehaviour(),e=this.getConfig().custom;(t.container||e.open)&&this.em.trigger(this.events.custom,this.__customData())},n.prototype.__customData=function(){var e=this,n=this.__getBehaviour();return{am:this,open:this.isOpen(),assets:this.getAll().models,types:n.types||[],container:n.container,close:function(){return e.close()},remove:function(t,n){return e.remove(t,n)},select:function(r,o){var i=e.add(r);(0,t.isFunction)(n.select)&&n.select(i,o)},options:n.options||{}}},n.prototype.open=function(t){void 0===t&&(t={}),this.em.Commands.run(Zl,Il({types:["image"],select:function(){}},t))},n.prototype.close=function(){this.em.Commands.stop(Zl)},n.prototype.isOpen=function(){var t=this.em.Commands;return!!(null==t?void 0:t.isActive(Zl))},n.prototype.add=function(t,e){return void 0===e&&(e={}),void 0===e.at&&(e.at=0),this.all.add(t,e)},n.prototype.get=function(t){return this.all.where({src:t})[0]||null},n.prototype.getAll=function(){return this.all},n.prototype.getAllVisible=function(){return this.assetsVis},n.prototype.remove=function(t,e){return this.__remove(t,e)},n.prototype.store=function(){return this.getProjectData()},n.prototype.load=function(t){return this.loadProjectData(t)},n.prototype.getContainer=function(){var t;return this.__getBehaviour().container||(null===(t=this.am)||void 0===t?void 0:t.el)},n.prototype.getAssetsEl=function(){var t;return null===(t=this.am)||void 0===t?void 0:t.el.querySelector("[data-el=assets]")},n.prototype.render=function(t){if(!this.getConfig().custom){var e=t||this.getAll().models;if(!this.am){var n=this.__viewParams();n.fu=this.FileUploader(),this.am=new kl(Il({},n)),this.am.render()}return this.assetsVis.reset(e),this.getContainer()}},n.prototype.__viewParams=function(){return{collection:this.assetsVis,globalCollection:this.all,config:this.config,module:this,fu:void 0}},n.prototype.addType=function(t,e){this.getAll().addType(t,e)},n.prototype.getType=function(t){return this.getAll().getType(t)},n.prototype.getTypes=function(){return this.getAll().getTypes()},n.prototype.AssetsView=function(){return this.am},n.prototype.FileUploader=function(){return this.fu||(this.fu=new Nl(this.__viewParams())),this.fu},n.prototype.onLoad=function(){var t=this;this.getAll().reset(this.config.assets);var e=this.em,n=this.events;e.on("run:".concat(Zl),(function(){return t.__propEv(n.open)})),e.on("stop:".concat(Zl),(function(){return t.__propEv(n.close)}))},n.prototype.postRender=function(t){var e;this.config.dropzone&&(null===(e=this.fu)||void 0===e||e.initDropzone(t))},n.prototype.setTarget=function(t){this.assetsVis.target=t},n.prototype.onSelect=function(t){this.assetsVis.onSelect=t},n.prototype.onClick=function(t){this.config.onClick=t},n.prototype.onDblClick=function(t){this.config.onDblClick=t},n.prototype.__behaviour=function(t){return void 0===t&&(t={}),this._bhv=Il(Il({},this._bhv||{}),t)},n.prototype.__getBehaviour=function(t){return void 0===t&&(t={}),this._bhv||{}},n.prototype.destroy=function(){var t,e;this.all.stopListening(),this.all.reset(),this.assetsVis.stopListening(),this.assetsVis.reset(),null===(t=this.fu)||void 0===t||t.remove(),null===(e=this.am)||void 0===e||e.remove(),this._bhv={}},n}(y);const ec=tc;var nc={placeholder:"eg. Text here"};const rc={locale:"en",localeFallback:"en",detectLocale:!0,debug:!1,messages:{en:{assetManager:{addButton:"Add image",inputPlh:"http://path/to/the/image.jpg",modalTitle:"Select Image",uploadTitle:"Drop files here or click to upload"},blockManager:{labels:{},categories:{}},domComponents:{names:{"":"Box",wrapper:"Body",text:"Text",comment:"Comment",image:"Image",video:"Video",label:"Label",link:"Link",map:"Map",tfoot:"Table foot",tbody:"Table body",thead:"Table head",table:"Table",row:"Table row",cell:"Table cell"}},deviceManager:{device:"Device",devices:{desktop:"Desktop",tablet:"Tablet",mobileLandscape:"Mobile Landscape",mobilePortrait:"Mobile Portrait"}},panels:{buttons:{titles:{preview:"Preview",fullscreen:"Fullscreen","sw-visibility":"View components","export-template":"View code","open-sm":"Open Style Manager","open-tm":"Settings","open-layers":"Open Layer Manager","open-blocks":"Open Blocks"}}},selectorManager:{label:"Classes",selected:"Selected",emptyState:"- State -",states:{hover:"Hover",active:"Click","nth-of-type(2n)":"Even/Odd"}},styleManager:{empty:"Select an element before using Style Manager",layer:"Layer",fileButton:"Images",sectors:{general:"General",layout:"Layout",typography:"Typography",decorations:"Decorations",extra:"Extra",flex:"Flex",dimension:"Dimension"},properties:{"text-shadow-h":"X","text-shadow-v":"Y","text-shadow-blur":"Blur","text-shadow-color":"Color","box-shadow-h":"X","box-shadow-v":"Y","box-shadow-blur":"Blur","box-shadow-spread":"Spread","box-shadow-color":"Color","box-shadow-type":"Type","margin-top-sub":"Top","margin-right-sub":"Right","margin-bottom-sub":"Bottom","margin-left-sub":"Left","padding-top-sub":"Top","padding-right-sub":"Right","padding-bottom-sub":"Bottom","padding-left-sub":"Left","border-width-sub":"Width","border-style-sub":"Style","border-color-sub":"Color","border-top-left-radius-sub":"Top Left","border-top-right-radius-sub":"Top Right","border-bottom-right-radius-sub":"Bottom Right","border-bottom-left-radius-sub":"Bottom Left","transform-rotate-x":"Rotate X","transform-rotate-y":"Rotate Y","transform-rotate-z":"Rotate Z","transform-scale-x":"Scale X","transform-scale-y":"Scale Y","transform-scale-z":"Scale Z","transition-property-sub":"Property","transition-duration-sub":"Duration","transition-timing-function-sub":"Timing","background-image-sub":"Image","background-repeat-sub":"Repeat","background-position-sub":"Position","background-attachment-sub":"Attachment","background-size-sub":"Size"}},traitManager:{empty:"Select an element before using Trait Manager",label:"Component settings",traits:{labels:{},attributes:{id:nc,alt:nc,title:nc,href:{placeholder:"eg. https://google.com"}},options:{target:{false:"This window",_blank:"New window"}}}},storageManager:{recover:"Do you want to recover unsaved changes?"}}},messagesAdd:void 0};var oc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ic=function(n){function r(t){var e=n.call(this,t,"I18n",rc)||this,r=e.config.messagesAdd;return r&&e.addMessages(r),e.config.detectLocale&&(e.config.locale=e._localLang()),e}return oc(r,n),r.prototype.setLocale=function(t){var e=this.em,n=this.config,r={value:t,valuePrev:n.locale};return e&&e.trigger("i18n:locale",r),n.locale=t,this},r.prototype.getLocale=function(){return this.config.locale},r.prototype.getMessages=function(t,e){void 0===e&&(e={});var n=this.config.messages;return t&&!n[t]&&this._debug("'".concat(t,"' i18n lang not found"),e),t?n[t]:n},r.prototype.setMessages=function(t){var e=this.em;return this.config.messages=t,e&&e.trigger("i18n:update",t),this},r.prototype.addMessages=function(t){var n=this.em,r=this.config.messages;return n&&n.trigger("i18n:add",t),this.setMessages((0,e.deepMerge)(r,t)),this},r.prototype.t=function(e,n){void 0===n&&(n={});var r=this.config,o=n.params||{},i=n.l||this.getLocale(),a=n.lFlb||r.localeFallback,s=this._getMsg(e,i,n);return s||(s=this._getMsg(e,a,n)),!s&&this._debug("'".concat(e,"' i18n key not found in '").concat(i,"' lang"),n),s&&(0,t.isString)(s)?this._addParams(s,o):s},r.prototype._localLang=function(){var t=(0,e.hasWin)()&&window.navigator||{},n=t.language||t.userLanguage;return n?n.split("-")[0]:"en"},r.prototype._addParams=function(t,e){var n=new RegExp("{([\\w\\d-]*)}","g");return t.replace(n,(function(t,n){return e[n]||""})).trim()},r.prototype._getMsg=function(e,n,r){void 0===r&&(r={});var o=this.getMessages(n,r);if(o){var i=o[e];return!i&&e.indexOf(".")>0&&(i=e.split(".").reduce((function(e,n){if(!(0,t.isUndefined)(e))return e[n]}),o)),i}},r.prototype._debug=function(t,e){void 0===e&&(e={});var n=this.em,r=this.config;(e.debug||r.debug)&&n&&n.logWarning(t)},r.prototype.destroy=function(){},r}(v);var ac=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sc=function(){return sc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},sc.apply(this,arguments)},lc=function(){},cc={id:"sorter-target",type:At.q.Target},uc=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return ac(r,n),r.prototype.initialize=function(e){void 0===e&&(e={}),this.opt=e||{},(0,t.bindAll)(this,"startSort","onMove","endMove","rollback","updateOffset","moveDragHelper");var n=e||{};this.elT=0,this.elL=0,this.borderOffset=n.borderOffset||10;var r=n.container;this.el="string"==typeof r?document.querySelector(r):r,this.$el=(0,c.default)(this.el),this.containerSel=n.containerSel||"div",this.itemSel=n.itemSel||"div",this.draggable=n.draggable||!0,this.nested=!!n.nested,this.pfx=n.pfx||"",this.ppfx=n.ppfx||"",this.freezeClass=n.freezeClass||this.pfx+"freezed",this.onStart=n.onStart||lc,this.onEndMove=n.onEndMove,this.customTarget=n.customTarget,this.onEnd=n.onEnd,this.direction=n.direction||"v",this.onMoveClb=n.onMove,this.relative=n.relative||!1,this.ignoreViewChildren=!!n.ignoreViewChildren,this.plh=n.placer,this.wmargin=n.wmargin||0,this.offTop=n.offsetTop||0,this.offLeft=n.offsetLeft||0,this.document=n.document||document,this.em=n.em,this.canvasRelative=!!n.canvasRelative,this.selectOnEnd=!n.avoidSelectOnEnd,this.scale=n.scale,this.em&&this.em.on&&(this.em.on("change:canvasOffset",this.updateOffset),this.updateOffset())},r.prototype.getScale=function(){return(0,t.result)(this,"scale")||1},r.prototype.getContainerEl=function(t){if(t&&(this.el=t),!this.el){var e=this.opt.container;this.el="string"==typeof e?document.querySelector(e):e,this.$el=(0,c.default)(this.el)}return this.el},r.prototype.getDocuments=function(t){var e=this.em,n=t?t.ownerDocument:null==e?void 0:e.Canvas.getBody().ownerDocument,r=[document];return n&&r.push(n),r},r.prototype.updateOffset=function(){var t,e=(null===(t=this.em)||void 0===t?void 0:t.get("canvasOffset"))||{};this.offTop=e.top,this.offLeft=e.left},r.prototype.setDropContent=function(t){delete this.dropModel,this.dropContent=t},r.prototype.updateTextViewCursorPosition=function(t){var e=this.em;if(e){var n=e.Canvas,r=n.getDocument(),o=null;if(r.caretRangeFromPoint){var i=(0,Dt.VB)(t);o=r.caretRangeFromPoint(i.clientX,i.clientY)}else t.rangeParent&&(o=r.createRange()).setStart(t.rangeParent,t.rangeOffset);var a=n.getWindow().getSelection();n.getFrameEl().focus(),null==a||a.removeAllRanges(),o&&(null==a||a.addRange(o)),this.setContentEditable(this.activeTextModel,!0)}},r.prototype.setContentEditable=function(t,e){if(t){var n=t.getEl();n.contentEditable!=e&&(n.contentEditable=e)}},r.prototype.toggleSortCursor=function(t){var e=this.em,n=null==e?void 0:e.Canvas;n&&(t?n.startAutoscroll():n.stopAutoscroll())},r.prototype.setDragHelper=function(t,e){for(var n=e||"",r=t.cloneNode(!0),o=t.getBoundingClientRect(),i=getComputedStyle(t),a="",s=0;s<i.length;s++){var l=i[s];a+="".concat(l,":").concat(i.getPropertyValue(l),";")}document.body.appendChild(r),r.className+=" ".concat(this.pfx,"bdrag"),r.setAttribute("style",a),this.dragHelper=r,r.style.width="".concat(o.width,"px"),r.style.height="".concat(o.height,"px"),n&&this.moveDragHelper(n),this.em&&(0,c.default)(this.em.Canvas.getBody().ownerDocument).off("mousemove",this.moveDragHelper).on("mousemove",this.moveDragHelper),(0,c.default)(document).off("mousemove",this.moveDragHelper).on("mousemove",this.moveDragHelper)},r.prototype.moveDragHelper=function(t){var e=t.target.ownerDocument;if(this.dragHelper&&e){var n=t.pageY,r=t.pageX,o=0,i=0,a=(e.defaultView||e.parentWindow).frameElement,s=this.dragHelper.style;if(a){var l=a.getBoundingClientRect();o=l.top+document.documentElement.scrollTop,i=l.left+document.documentElement.scrollLeft,n=t.clientY,r=t.clientX}s.top=n+o+"px",s.left=r+i+"px"}},r.prototype.matches=function(t,n){return e.matches.call(t,n)},r.prototype.closest=function(t,e){if(t)for(var n=t.parentNode;n&&1===n.nodeType;){if(this.matches(n,e))return n;n=n.parentNode}},r.prototype.offset=function(t){var e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},r.prototype.createPlaceholder=function(){var t=this.pfx,e=document.createElement("div"),n=document.createElement("div");return e.className=t+"placeholder",e.style.display="none",e.style.pointerEvents="none",n.className=t+"placeholder-int",e.appendChild(n),e},r.prototype.startSort=function(t,e){var n,r;void 0===e&&(e={});var o,i=this,a=i.em,s=i.itemSel,l=i.containerSel,c=i.plh,u=this.getContainerEl(e.container),p=this.getDocuments(t);delete this.dropModel,delete this.target,delete this.prevTarget,this.moved=!1,t&&!this.matches(t,"".concat(s,", ").concat(l))&&(t=this.closest(t,s)),this.sourceEl=t,c||(this.plh=this.createPlaceholder(),u.appendChild(this.plh)),t&&((null==(o=this.getSourceModel(t))?void 0:o.set)&&o.set("status","freezed"),this.srcModel=o),(0,Dt.on)(u,"mousemove dragover",this.onMove),(0,Dt.on)(p,"mouseup dragend touchend",this.endMove),(0,Dt.on)(p,"keydown",this.rollback),this.onStart({sorter:this,target:o,parent:o&&(null===(n=o.parent)||void 0===n?void 0:n.call(o)),index:o&&(null===(r=o.index)||void 0===r?void 0:r.call(o))}),null==a||a.clearSelection(),this.toggleSortCursor(!0),null==a||a.trigger("sorter:drag:start",t,o)},r.prototype.getTargetModel=function(t){var e=t||this.target;return(0,c.default)(e).data("model")},r.prototype.getSourceModel=function(t,e){var n=this,r=void 0===e?{}:e,o=r.target,i=r.avoidChildren,a=void 0===i?1:i,s=this.em,l=this.sourceEl,u=t||l,p=this.dropModel,f=this.dropContent,d=function(t){return t&&o&&t.opt&&t.opt.avoidChildren&&n.isTextableActive(t,o)};if(f&&s){if(d(p)&&(p=void 0),!p){var h=s.Components.getComponents(),g={avoidChildren:a,avoidStore:1,avoidUpdateStyle:1},m=h.add(f,sc(sc({},g),{temporary:!0}));if(p=(p=h.remove(m,g))instanceof Array?p[0]:p,this.dropModel=p,d(p))return this.getSourceModel(u,{target:o,avoidChildren:0})}return p}return u&&(0,c.default)(u).data("model")},r.prototype.selectTargetModel=function(t,e){if(!(t instanceof u.FE||e&&e===t)){var n=this.targetModel;if(n&&n!==this.srcModel&&n.set("status",""),null==t?void 0:t.set){var r=this.em.Canvas;[At.q.Select,At.q.Hover,At.q.Spacing].forEach((function(t){return r.removeSpots({type:t})})),r.addSpot(sc(sc({},cc),{component:t})),t.set("status","selected-parent"),this.targetModel=t}}},r.prototype.onMove=function(e){var n=e,r=this,o=r.em,i=r.onMoveClb,a=r.plh,s=r.customTarget;this.moved=!0;var l=a.style.display;l&&"none"!==l||(a.style.display="block");var u=this.offset(this.el);this.elT=this.wmargin?Math.abs(u.top):u.top,this.elL=this.wmargin?Math.abs(u.left):u.left;var p=e.pageY-this.elT+this.el.scrollTop,f=e.pageX-this.elL+this.el.scrollLeft;if(this.canvasRelative&&o){var d=o.Canvas.getMouseRelativeCanvas(e,{noScroll:1});f=d.x,p=d.y}this.rX=f,this.rY=p,this.eventMove=e;var h=this.getSourceModel(),g=s?s({sorter:this,event:e}):e.target,m=this.dimsFromTarget(g,f,p),v=this.target,y=v&&this.getTargetModel(v);if(this.selectTargetModel(y,h),y||(a.style.display="none"),v){this.lastDims=m;var b=this.findPosition(m,f,p);this.isTextableActive(h,y)?(this.activeTextModel=y,a.style.display="none",this.lastPos=b,this.updateTextViewCursorPosition(n)):(this.disableTextable(),delete this.activeTextModel,this.lastPos&&this.lastPos.index==b.index&&this.lastPos.method==b.method||(this.movePlaceholder(this.plh,m,b,this.prevTargetDim),this.$plh||(this.$plh=(0,c.default)(this.plh)),this.canvasRelative||(this.offTop&&this.$plh.css("top","+="+this.offTop+"px"),this.offLeft&&this.$plh.css("left","+="+this.offLeft+"px")),this.lastPos=b)),(0,t.isFunction)(i)&&i({event:e,target:h,parent:y,index:b.index+("after"==b.method?1:0)}),o&&o.trigger("sorter:drag",{target:v,targetModel:y,sourceModel:h,dims:m,pos:b,x:f,y:p})}},r.prototype.isTextableActive=function(t,e){var n;return(null===(n=null==t?void 0:t.get)||void 0===n?void 0:n.call(t,"textable"))&&(null==e?void 0:e.isInstanceOf("text"))},r.prototype.disableTextable=function(){var t=this.activeTextModel;null==t||t.getView().disableEditing(),this.setContentEditable(t,!1)},r.prototype.isInFlow=function(t,e){if(!t)return!1;e=e||document.body;var n=t;return n.offsetHeight,!!this.styleInFlow(n,e)},r.prototype.styleInFlow=function(t,e){if(!(0,Dt.BM)(t)){var n=t.style||{},r=(0,c.default)(t),o=e&&(0,c.default)(e);if(!n.overflow||"visible"===n.overflow){var i=r.css("float");if(!(i&&"none"!==i||o&&"flex"==o.css("display")&&"column"!==o.css("flex-direction"))){switch(n.position){case"static":case"relative":case"":break;default:return}switch(t.tagName){case"TR":case"TBODY":case"THEAD":case"TFOOT":return!0}switch(r.css("display")){case"block":case"list-item":case"table":case"flex":case"grid":return!0}}}}},r.prototype.validTarget=function(e,n){var r=this.getTargetModel(e),o=this.getSourceModel(n,{target:r}),i={valid:!0,src:n=o&&o.view&&o.view.el,srcModel:o,trg:e=r&&r.view&&r.view.el,trgModel:r,draggable:!1,droppable:!1,dragInfo:"",dropInfo:""};if(!n||!e)return i.valid=!1,i;var a=o.get("draggable");if((0,t.isFunction)(a)){var s=a(o,r);i.dragInfo=s,i.draggable=s,a=s}else a=a instanceof Array?a.join(", "):a,i.dragInfo=a,a=(0,t.isString)(a)?this.matches(e,a):a,i.draggable=a;var l=r.get("droppable");return(0,t.isFunction)(l)?(s=l(o,r),i.droppable=s,i.dropInfo=s,l=s):(l=(l=l instanceof u.FE?1:l)instanceof Array?l.join(", "):l,i.dropInfo=l,l=(0,t.isString)(l)?this.matches(n,l):l,l=a&&this.isTextableActive(o,r)?1:l,i.droppable=l),l&&a||(i.valid=!1),i},r.prototype.dimsFromTarget=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=0);var r=this.em,o=[];if(!t)return o;if(this.matches(t,"".concat(this.itemSel,", ").concat(this.containerSel))||(t=this.closest(t,this.itemSel)),this.draggable instanceof Array&&(t=this.closest(t,this.draggable.join(","))),!t)return o;if(this.prevTarget&&this.prevTarget!=t&&delete this.prevTarget,!this.prevTarget){this.targetP=this.closest(t,this.containerSel);var i=this.validTarget(t);if(r&&r.trigger("sorter:drag:validation",i),!i.valid&&this.targetP)return this.dimsFromTarget(this.targetP,e,n);this.prevTarget=t,this.prevTargetDim=this.getDim(t),this.cacheDimsP=this.getChildrenDim(this.targetP),this.cacheDims=this.getChildrenDim(t)}if(this.prevTarget==t&&(o=this.cacheDims),this.target=this.prevTarget,this.nearBorders(this.prevTargetDim,e,n)||!this.nested&&!this.cacheDims.length){var a=this.targetP;a&&this.validTarget(a).valid&&(o=this.cacheDimsP,this.target=a)}return delete this.lastPos,o},r.prototype.getTargetFromEl=function(t){var e,n=t,r=this.targetPrev,o=this.em,i=this.containerSel,a=this.itemSel;if(this.matches(n,"".concat(a,", ").concat(i))||(n=this.closest(n,a)),this.draggable instanceof Array&&(n=this.closest(n,this.draggable.join(","))),r&&r!=n&&delete this.targetPrev,!this.targetPrev){e=this.closest(n,i);var s=this.validTarget(n);if(o&&o.trigger("sorter:drag:validation",s),!s.valid&&e)return this.getTargetFromEl(e);this.targetPrev=n}return this.nearElBorders(n)&&(e=this.closest(n,i))&&this.validTarget(e).valid&&(n=e),n},r.prototype.nearElBorders=function(t){var e=t.getBoundingClientRect(),n=t.ownerDocument.body,r=this.getCurrentPos(),o=r.x,i=r.y,a=e.top+n.scrollTop,s=e.left+n.scrollLeft,l=e.width,c=e.height;if(i<a+10||i>a+c-10||o<s+10||o>s+l-10)return 1},r.prototype.getCurrentPos=function(){var t=this.eventMove;return{x:(null==t?void 0:t.pageX)||0,y:(null==t?void 0:t.pageY)||0}},r.prototype.getDim=function(t){var e,n,r,o,i=this.em,a=this.canvasRelative,s=null==i?void 0:i.Canvas,l=s?s.getElementOffsets(t):{};if(a&&i){var c=s.getElementPos(t,{noScroll:1});e=c.top,n=c.left,r=c.height,o=c.width}else{var u=this.offset(t);e=this.relative?t.offsetTop:u.top-(this.wmargin?-1:1)*this.elT,n=this.relative?t.offsetLeft:u.left-(this.wmargin?-1:1)*this.elL,r=t.offsetHeight,o=t.offsetWidth}return{top:e,left:n,height:r,width:o,offsets:l}},r.prototype.getChildrenDim=function(n){var r=this,o=[];if(!n)return o;var i=this.getTargetModel(n);if(i&&i.view&&!this.ignoreViewChildren){var a=i.getCurrentView?i.getCurrentView():i.view;n=a.getChildrenContainer()}return(0,t.each)(n.children,(function(t,i){var a=t,s=(0,e.getModel)(a,c.default),l=s&&s.index?s.index():i;if((0,Dt.BM)(a)||r.matches(a,r.itemSel)){var u,p=r.getDim(a),f=r.direction;u="v"==f||"h"!=f&&r.isInFlow(a,n),p.dir=u,p.el=a,p.indexEl=l,o.push(p)}})),o},r.prototype.nearBorders=function(t,e,n){var r=!1,o=this.borderOffset,i=e||0,a=n||0,s=t.top,l=t.left,c=t.height,u=t.width;return(s+o>a||a>s+c-o||l+o>i||i>l+u-o)&&(r=!0),r},r.prototype.findPosition=function(t,e,n){for(var r,o={index:0,indexEl:0,method:"before"},i=0,a=0,s=0,l=0,c=0,u=0,p=0,f=t.length;p<f;p++){var d=(r=t[p]).top,h=r.left,g=r.height,m=r.width;if(u=d+g,l=h+m/2,c=d+g/2,!(a&&h>a||s&&c>=s||i&&h+m<i))if(o.index=p,o.indexEl=r.indexEl,r.dir){if(n<c){o.method="before";break}o.method="after"}else n<u&&(s=u),e<l?(a=l,o.method="before"):(i=l,o.method="after")}return o},r.prototype.movePlaceholder=function(t,e,n,r){var o=0,i=0,a="",s="",l="px",c=n.method,u=e[n.index];if(t.classList.remove("vertical"),t.classList.add("horizontal"),u){var p=u.top,f=u.left,d=u.height,h=u.width;u.dir?(a=h+l,s="auto",o="before"==c?p-0:p+d-0,i=f):(a="auto",s=d-0+l,o=p+0,i="before"==c?f-0:f+h-0,t.classList.remove("horizontal"),t.classList.add("vertical"))}else{if(!this.nested)return void(t.style.display="none");if(r){var g=r.offsets||{},m=g.paddingTop||5,v=g.paddingLeft||5;o=r.top+m,i=r.left+v,a=parseInt("".concat(r.width))-2*v+l,s="auto"}}t.style.top=o+l,t.style.left=i+l,a&&(t.style.width=a),s&&(t.style.height=s)},r.prototype.parents=function(t){return t?[t].concat(this.parents(t.parent())):[]},r.prototype.sort=function(t,e){var n=t.parents.filter((function(t){return e.parents.includes(t)}))[0];if(!n)return e.model.index()-t.model.index();var r=t.parents[t.parents.indexOf(n)-1];return e.parents[e.parents.indexOf(n)-1].index()-r.index()},r.prototype.endMove=function(){var e,n,r=this,o=this.sourceEl,i=[],a=this.getDocuments(),s=this.getContainerEl(),l=this.onEndMove,c=this.onEnd,u=this.target,p=this.lastPos;if((0,Dt.S1)(s,"mousemove dragover",this.onMove),(0,Dt.S1)(a,"mouseup dragend touchend",this.endMove),(0,Dt.S1)(a,"keydown",this.rollback),this.plh.style.display="none",o&&(n=this.getSourceModel(),this.selectOnEnd&&n&&n.set&&(n.set("status",""),n.set("status","selected"))),this.moved&&u){var f=this.toMove,d=(0,t.isArray)(f)?f:f?[f]:[o],h=0;1===d.length?i.push(this.move(u,d[0],p)):d.map((function(t){return{model:t,parents:r.parents(t)}})).sort(this.sort).forEach((function(t){var e=t.model,n=e.index(),o=e.parent().getEl();i.push(r.move(u,e,sc(sc({},p),{indexEl:p.indexEl-h,index:p.index-h}))),o===u&&n<=p.index&&h++}))}this.plh&&(this.plh.style.display="none");var g=this.dragHelper;if(g&&(g.parentNode.removeChild(g),delete this.dragHelper),this.disableTextable(),this.selectTargetModel(),this.toggleSortCursor(),null===(e=this.em)||void 0===e||e.Canvas.removeSpots(cc),delete this.toMove,delete this.eventMove,delete this.dropModel,(0,t.isFunction)(l)){var m={target:n,parent:n&&n.parent(),index:n&&n.index()};i.length?i.forEach((function(t){return l(t,r,m)})):l(null,this,sc(sc({},m),{cancelled:1}))}(0,t.isFunction)(c)&&c({sorter:this})},r.prototype.move=function(n,r,o){var i,a,s=this.em,l=this.dropContent,p=(0,e.getElement)(r),f=[],d="after"===o.method?o.indexEl+1:o.indexEl,h=this.validTarget(n,p),g=(0,c.default)(n).data("collection"),m=h.trgModel,v=h.srcModel,y=h.draggable,b=m instanceof u.FE?1:h.droppable;if(g&&b&&y){var _={at:d,action:"move-component"},w=this.isTextableActive(v,m);if(l)i=(0,t.isFunction)(l)?l():l,_.avoidUpdateStyle=!0,_.action="add-component";else{var E=v.collection.indexOf(v),x=g===v.collection;(!x||E!==d&&E!==d-1||w)&&(i=v.collection.remove(v,{temporary:!0}),x&&d>E&&(_.at=d-1))}i&&(w?(delete _.at,a=m.getView().insertComponent(i,_)):a=g.add(i,_)),delete this.dropContent,delete this.prevTarget}else if(s){var T=h.dropInfo||(null==m?void 0:m.get("droppable")),C=h.dragInfo||(null==v?void 0:v.get("draggable"));!g&&f.push("Target collection not found"),!b&&T&&f.push("Target is not droppable, accepts [".concat(T,"]")),!y&&C&&f.push("Component not draggable, acceptable by [".concat(C,"]")),s.logWarning("Invalid target position",{errors:f,model:v,context:"sorter",target:m})}return null==s||s.trigger("sorter:drag:end",{targetCollection:g,modelToDrop:i,warns:f,validResult:h,dst:n,srcEl:p}),a},r.prototype.rollback=function(t){(0,Dt.S1)(this.getDocuments(),"keydown",this.rollback),27==(t.which||t.keyCode)&&(this.moved=!1,this.endMove())},r}(u.G7);const pc=uc;var fc=function(){return fc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},fc.apply(this,arguments)},dc=function(){function n(e){void 0===e&&(e={}),this.defOpts={ratioDefault:!1,onUpdateContainer:function(){},step:1,minDim:10,maxDim:1/0,unitHeight:"px",unitWidth:"px",keyHeight:"height",keyWidth:"width",currentUnit:!0,silentFrames:!1,avoidContainerUpdate:!1,keepAutoHeight:!1,keepAutoWidth:!1,autoHeight:!1,autoWidth:!1,tl:!0,tc:!0,tr:!0,cl:!0,cr:!0,bl:!0,bc:!0,br:!0},this.opts=fc({},this.defOpts),this.setOptions(e),(0,t.bindAll)(this,"handleKeyDown","handleMouseDown","move","stop")}return n.prototype.getConfig=function(){return this.opts},n.prototype.setOptions=function(t,e){void 0===t&&(t={}),this.opts=fc(fc({},e?this.defOpts:this.opts),t),this.setup()},n.prototype.setup=function(){var t=this.opts,e=t.prefix||"",n=t.appendTo||document.body,r=this.container;for(r||((r=document.createElement("div")).className="".concat(e,"resizer-c"),n.appendChild(r),this.container=r);r.firstChild;)r.removeChild(r.firstChild);var o={};for(var i in["tl","tc","tr","cl","cr","bl","bc","br"].forEach((function(e){return o[e]=t[e]?function(t,e){void 0===e&&(e={});var n=e.prefix||"",r=document.createElement("i");return r.className=n+"resizer-h "+n+"resizer-h-"+t,r.setAttribute("data-"+n+"handler",t),r}(e,t):null})),o){var a=o[i];a&&r.appendChild(a)}this.handlers=o,this.mousePosFetcher=t.mousePosFetcher,this.updateTarget=t.updateTarget,this.posFetcher=t.posFetcher,this.onStart=t.onStart,this.onMove=t.onMove,this.onEnd=t.onEnd,this.onUpdateContainer=t.onUpdateContainer},n.prototype.toggleFrames=function(e){if(this.opts.silentFrames){var n=document.querySelectorAll("iframe");(0,t.each)(n,(function(t){return t.style.pointerEvents=e?"none":""}))}},n.prototype.isHandler=function(t){var e=this.handlers;for(var n in e)if(e[n]===t)return!0;return!1},n.prototype.getFocusedEl=function(){return this.el},n.prototype.getParentEl=function(){var t;return null===(t=this.el)||void 0===t?void 0:t.parentElement},n.prototype.getDocumentEl=function(){return[this.el.ownerDocument,document]},n.prototype.getElementPos=function(t,e){void 0===e&&(e={});var n=this.posFetcher;return n?n(t,e):function(t,e){var n=window,r=t.getBoundingClientRect();return{left:r.left+n.pageXOffset,top:r.top+n.pageYOffset,width:r.width,height:r.height}}(t)},n.prototype.focus=function(t){t&&t===this.el||(this.el=t,this.updateContainer({forceShow:!0}),(0,Dt.on)(this.getDocumentEl(),"pointerdown",this.handleMouseDown))},n.prototype.blur=function(){this.container.style.display="none",this.el&&((0,Dt.S1)(this.getDocumentEl(),"pointerdown",this.handleMouseDown),delete this.el)},n.prototype.start=function(e){var n=e;if(0===n.button){n.preventDefault(),n.stopPropagation();var r=this.el,o=this.getParentEl(),i=this.opts||{},a=this.mousePosFetcher,s="data-"+i.prefix+"handler",l=this.getElementPos(r,{avoidFrameZoom:!0,avoidFrameOffset:!0}),c=this.getElementPos(o),u=n.target;this.handlerAttr=u.getAttribute(s),this.clickedHandler=u,this.startDim={t:l.top,l:l.left,w:l.width,h:l.height},this.rectDim={t:l.top,l:l.left,w:l.width,h:l.height},this.startPos=a?a(n):{x:n.clientX,y:n.clientY},this.parentDim={t:c.top,l:c.left,w:c.width,h:c.height};var p=this.getDocumentEl();this.docs=p,(0,Dt.on)(p,"pointermove",this.move),(0,Dt.on)(p,"keydown",this.handleKeyDown),(0,Dt.on)(p,"pointerup",this.stop),(0,t.isFunction)(this.onStart)&&this.onStart(n,{docs:p,config:i,el:r,resizer:this}),this.toggleFrames(!0),this.move(n)}},n.prototype.move=function(t){var e=t,n=this.onMove,r=this.mousePosFetcher,o=r?r(e):{x:e.clientX,y:e.clientY};this.currentPos=o,this.delta={x:o.x-this.startPos.x,y:o.y-this.startPos.y},this.keys={shift:e.shiftKey,ctrl:e.ctrlKey,alt:e.altKey},this.rectDim=this.calc(this),this.updateRect(!1),n&&n(e)},n.prototype.stop=function(e){var n=this.el,r=this.opts,o=this.docs||this.getDocumentEl();(0,Dt.S1)(o,"pointermove",this.move),(0,Dt.S1)(o,"keydown",this.handleKeyDown),(0,Dt.S1)(o,"pointerup",this.stop),this.updateRect(!0),this.toggleFrames(),(0,t.isFunction)(this.onEnd)&&this.onEnd(e,{docs:o,config:r,el:n,resizer:this}),delete this.docs},n.prototype.updateRect=function(e){var n=this.el,r=this.opts,o=this.rectDim,i=this.updateTarget,a=this.getSelectedHandler(),s=r.unitHeight,l=r.unitWidth,c=r.keyWidth,u=r.keyHeight;if((0,t.isFunction)(i))i(n,o,{store:e,selectedHandler:a,resizer:this,config:r});else{var p=n.style;p[c]=o.w+l,p[u]=o.h+s,p.top=o.t+s,p.left=o.l+l}this.updateContainer()},n.prototype.updateContainer=function(t){var e;void 0===t&&(t={});var n=this,r=n.opts,o=n.container,i=n.el,a=o.style;!r.avoidContainerUpdate&&i&&t.forceShow&&(a.display="block"),null===(e=this.onUpdateContainer)||void 0===e||e.call(this,{el:o,resizer:this,opts:fc(fc({},r),t)})},n.prototype.getSelectedHandler=function(){var t=this.handlers;if(this.selectedHandler)for(var e in t)if(t[e]===this.selectedHandler)return e},n.prototype.handleKeyDown=function(t){27===t.keyCode&&(this.rectDim=this.startDim,this.stop(t))},n.prototype.handleMouseDown=function(t){var e=t.target;this.isHandler(e)?(this.selectedHandler=e,this.start(t)):e!==this.el&&(delete this.selectedHandler,this.blur())},n.prototype.calc=function(t){var n,r=this.opts||{},o=r.step,i=this.startDim,a=r.minDim,s=r.maxDim,l=t.delta.x,c=t.delta.y,u=this.parentDim.w,p=this.parentDim.h,f=this.opts.unitWidth,d=this.opts.unitHeight,h="%"===f?i.w/100*u:i.w,g="%"===d?i.h/100*p:i.h,m={t:i.t,l:i.l,w:h,h:g};if(t){var v=t.handlerAttr;~v.indexOf("r")&&(n="%"===f?(0,e.normalizeFloat)((h+l*o)/u*100,.01):(0,e.normalizeFloat)(h+l*o,o),n=Math.max(a,n),s&&(n=Math.min(s,n)),m.w=n),~v.indexOf("b")&&(n="%"===d?(0,e.normalizeFloat)((g+c*o)/p*100,.01):(0,e.normalizeFloat)(g+c*o,o),n=Math.max(a,n),s&&(n=Math.min(s,n)),m.h=n),~v.indexOf("l")&&(n="%"===f?(0,e.normalizeFloat)((h-l*o)/u*100,.01):(0,e.normalizeFloat)(h-l*o,o),n=Math.max(a,n),s&&(n=Math.min(s,n)),m.w=n),~v.indexOf("t")&&(n="%"===d?(0,e.normalizeFloat)((g-c*o)/p*100,.01):(0,e.normalizeFloat)(g-c*o,o),n=Math.max(a,n),s&&(n=Math.min(s,n)),m.h=n);var y=r.ratioDefault?!t.keys.shift:t.keys.shift;if(v.indexOf("c")<0&&y){var b=i.w/i.h;m.w/m.h>b?m.h=Math.round(m.w/b):m.w=Math.round(m.h*b)}for(var _ in~v.indexOf("l")&&(m.l+=i.w-m.w),~v.indexOf("t")&&(m.t+=i.h-m.h),m){var w=_;m[w]=parseInt("".concat(m[w]),10)}return m}},n}();const hc=dc;var gc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mc=function(){return mc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},mc.apply(this,arguments)};const vc=function(t){function n(n){var r=t.call(this,n,"Utils")||this;return r.Sorter=pc,r.Resizer=hc,r.Dragger=Zt.Z,r.helpers=mc({},e),r}return gc(n,t),n.prototype.destroy=function(){},n}(v);var yc,bc={},_c={16:!1,18:!1,17:!1,91:!1},wc="all",Ec={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,command:91},xc={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220},Tc=function(t){return xc[t]||t.toUpperCase().charCodeAt(0)},Cc=[];for(yc=1;yc<20;yc++)xc["f"+yc]=111+yc;function Ac(t,e){for(var n=t.length;n--;)if(t[n]===e)return n;return-1}function Oc(t,e){if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var Sc={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey"};function kc(t){for(yc in _c)_c[yc]=t[Sc[yc]]}function Pc(t){var e,n=t.keyCode,r=Ac(Cc,n);if(r>=0&&Cc.splice(r,1),93!=n&&224!=n||(n=91),n in _c)for(e in _c[n]=!1,Ec)Ec[e]==n&&(Nc[e]=!1)}function jc(){for(yc in _c)_c[yc]=!1;for(yc in Ec)Nc[yc]=!1}function Nc(t,e,n){var r,o;r=Dc(t),void 0===n&&(n=e,e="all");for(var i=0;i<r.length;i++)o=[],(t=r[i].split("+")).length>1&&(o=Ic(t),t=[t[t.length-1]]),t=t[0],(t=Tc(t))in bc||(bc[t]=[]),bc[t].push({shortcut:r[i],scope:e,method:n,key:r[i],mods:o})}for(yc in Ec)Nc[yc]=!1;function Lc(){return wc||"all"}function Dc(t){var e;return""==(e=(t=t.replace(/\s/g,"")).split(","))[e.length-1]&&(e[e.length-2]+=","),e}function Ic(t){for(var e=t.slice(0,t.length-1),n=0;n<e.length;n++)e[n]=Ec[e[n]];return e}function Rc(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on"+e,(function(){n(window.event)}))}Nc.setScope=function(t){wc=t||"all"},Nc.getScope=Lc,Nc.deleteScope=function(t){var e,n,r;for(e in bc)for(n=bc[e],r=0;r<n.length;)n[r].scope===t?n.splice(r,1):r++},Nc.filter=function(t){var e=(t.target||t.srcElement).tagName;return!("INPUT"==e||"SELECT"==e||"TEXTAREA"==e)},Nc.isPressed=function(t){return"string"==typeof t&&(t=Tc(t)),-1!=Ac(Cc,t)},Nc.getPressedKeyCodes=function(){return Cc.slice(0)},Nc.unbind=function(t,e){var n,r,o,i,a,s=[];for(n=Dc(t),i=0;i<n.length;i++){if((r=n[i].split("+")).length>1&&(s=Ic(r)),t=r[r.length-1],t=Tc(t),void 0===e&&(e=Lc()),!bc[t])return;for(o=0;o<bc[t].length;o++)(a=bc[t][o]).scope===e&&Oc(a.mods,s)&&(bc[t][o]={})}},Nc.handlers=bc,Nc.init=function(t){Rc(t.document,"keydown",(function(t){!function(t){var e,n,r,o,i,a;if(e=t.keyCode,-1==Ac(Cc,e)&&Cc.push(e),93!=e&&224!=e||(e=91),e in _c)for(r in _c[e]=!0,Ec)Ec[r]==e&&(Nc[r]=!0);else if(kc(t),Nc.filter.call(this,t)&&e in bc)for(a=Lc(),o=0;o<bc[e].length;o++)if((n=bc[e][o]).scope==a||"all"==n.scope){for(r in i=n.mods.length>0,_c)(!_c[r]&&Ac(n.mods,+r)>-1||_c[r]&&-1==Ac(n.mods,+r))&&(i=!1);(0!=n.mods.length||_c[16]||_c[18]||_c[17]||_c[91])&&!i||!1===n.method(t,n)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}(t)})),Rc(t.document,"keyup",Pc),Rc(t,"focus",jc)};const Mc=Nc,Bc={defaults:{"core:undo":{keys:"⌘+z, ctrl+z",handler:"core:undo",opts:{prevent:!0}},"core:redo":{keys:"⌘+shift+z, ctrl+shift+z",handler:"core:redo",opts:{prevent:!0}},"core:copy":{keys:"⌘+c, ctrl+c",handler:"core:copy"},"core:paste":{keys:"⌘+v, ctrl+v",handler:"core:paste"},"core:component-next":{keys:"s",handler:"core:component-next"},"core:component-prev":{keys:"w",handler:"core:component-prev"},"core:component-enter":{keys:"d",handler:"core:component-enter"},"core:component-exit":{keys:"a",handler:"core:component-exit"},"core:component-delete":{keys:"backspace, delete",handler:"core:component-delete",opts:{prevent:!0}}}};var Fc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uc=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};(0,e.hasWin)()&&Mc.init(window);var Hc=function(e){function n(t){var n=e.call(this,t,"Keymaps",Bc)||this;return n.keymaster=Mc,n.keymaps={},n}return Fc(n,e),n.prototype.onLoad=function(){var t=this.config.defaults;for(var e in t){var n=t[e];this.add(e,n.keys,n.handler,n.opts||{})}},n.prototype.add=function(e,n,r,o){void 0===o&&(o={});var i=this.em,a=i.Commands,s=i.getEditor(),l=i.Canvas,c={id:e,keys:n,handler:r};return this.keymaps[e]&&this.remove(e),this.keymaps[e]=c,Mc(n,(function(n,c){var u={event:n,h:c},p=(0,t.isString)(r)?a.get(r):r;if(!i.isEditing()&&!s.Canvas.isInputFocused()||o.force){o.prevent&&l.getCanvasView().preventDefault(n),(0,t.isFunction)(p)?p(s,0,u):a.runCommand(p,u);var f=[e,c.shortcut,n];i.trigger.apply(i,Uc(["keymap:emit"],f,!1)),i.trigger.apply(i,Uc(["keymap:emit:".concat(e)],f,!1))}}),void 0),i.trigger("keymap:add",c),c},n.prototype.get=function(t){return this.keymaps[t]},n.prototype.getAll=function(){return this.keymaps},n.prototype.remove=function(t){var e=this.em,n=this.get(t);if(n)return delete this.keymaps[t],n.keys.split(", ").forEach((function(t){Mc.unbind(t.trim())})),null==e||e.trigger("keymap:remove",n),n},n.prototype.removeAll=function(){var t=this;return Object.keys(this.keymaps).forEach((function(e){return t.remove(e)})),Mc.handlers={},this},n.prototype.destroy=function(){this.removeAll(),this.keymaps={}},n}(v);const Vc=Hc,qc={stylePrefix:"mdl-",title:"",content:"",backdrop:!0,custom:!1,extend:{}};var zc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Gc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zc(e,t),e.prototype.defaults=function(){return{title:"",content:"",attributes:{},open:!1}},e.prototype.open=function(){this.set("open",!0)},e.prototype.close=function(){this.set("open",!1)},e}(_.Z);var Wc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yc=function(){return Yc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yc.apply(this,arguments)},Kc=function(t){function e(e){var n=t.call(this,e)||this,r=n.model;return n.listenTo(r,"change:open",n.updateOpen),n.listenTo(r,"change:title",n.updateTitle),n.listenTo(r,"change:content",n.updateContent),n}return Wc(e,t),e.prototype.template=function(t){var e=t.pfx,n=t.ppfx,r=t.content,o=t.title;return'<div class="'.concat(e,"dialog ").concat(n,"one-bg ").concat(n,'two-color">\n <div class="').concat(e,'header">\n <div class="').concat(e,'title">').concat(o,'</div>\n <div class="').concat(e,'btn-close" data-close-modal>⨯</div>\n </div>\n <div class="').concat(e,'content">\n <div id="').concat(e,'c">').concat(r,'</div>\n <div style="clear:both"></div>\n </div>\n </div>\n <div class="').concat(e,'collector" style="display: none"></div>')},e.prototype.events=function(){return{click:"onClick","click [data-close-modal]":"hide"}},e.prototype.onClick=function(t){this.config.backdrop&&t.target===this.el&&this.hide()},e.prototype.getCollector=function(){return this.$collector||(this.$collector=this.$el.find("."+this.pfx+"collector")),this.$collector},e.prototype.getContent=function(){var t=this.pfx;return this.$content||(this.$content=this.$el.find(".".concat(t,"content #").concat(t,"c"))),this.$content},e.prototype.getTitle=function(t){return void 0===t&&(t={}),this.$title||(this.$title=this.$el.find("."+this.pfx+"title")),t.$?this.$title:this.$title.get(0)},e.prototype.updateContent=function(){var t=this.getContent(),e=t.children(),n=this.getCollector(),r=this.model.get("content");e.length&&n.append(e),t.empty().append(r)},e.prototype.updateTitle=function(){var t=this.getTitle({$:!0});t&&t.empty().append(this.model.get("title"))},e.prototype.updateOpen=function(){this.el.style.display=this.model.get("open")?"":"none"},e.prototype.hide=function(){this.model.close()},e.prototype.show=function(){this.model.open()},e.prototype.updateAttr=function(t){var e=this,n=e.pfx,r=e.$el,o=e.el,i=[].slice.call(o.attributes).map((function(t){return t.name}));r.removeAttr(i.join(" ")),r.attr(Yc(Yc({},t||{}),{class:"".concat(n,"container ").concat(t&&t.class||"").trim()}))},e.prototype.render=function(){var t=this.$el,e=this.model.toJSON();return e.pfx=this.pfx,e.ppfx=this.ppfx,t.html(this.template(e)),this.updateAttr(),this.updateOpen(),this},e}(Lt);const $c=Kc;var Xc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qc=function(e){function n(n){var r=e.call(this,n,"Modal",qc)||this;return r.model=new Gc(r),r.model.on("change:open",(function(t,e){n.trigger("modal:".concat(e?"open":"close"))})),r.model.on("change",(0,t.debounce)((function(){var e=r._evData(),o=r.config.custom;(0,t.isFunction)(o)&&o(e),n.trigger("modal",e)}),0)),r}return Xc(n,e),n.prototype._evData=function(){var e=this,n=this.getTitle(),r=this.getContent(),o=this.model.attributes;return{open:o.open,attributes:o.attributes,title:(0,t.isString)(n)?(0,Dt.rw)(n):n,content:(0,t.isString)(r)?(0,Dt.rw)(r):r.get?r.get(0):r,close:function(){e.close()}}},n.prototype.postRender=function(t){var e=t.model.config.el||t.el,n=this.render();n&&(null==e||e.appendChild(n))},n.prototype.open=function(t){void 0===t&&(t={});var e=t.attributes||{};return t.title&&this.setTitle(t.title),t.content&&this.setContent(t.content),this.model.set("attributes",e),this.model.open(),this.modal&&this.modal.updateAttr(e),this},n.prototype.close=function(){return this.model.close(),this},n.prototype.onceClose=function(t){return this.em.once("modal:close",t),this},n.prototype.onceOpen=function(t){return this.em.once("modal:open",t),this},n.prototype.isOpen=function(){return!!this.model.get("open")},n.prototype.setTitle=function(t){return this.model.set("title",t),this},n.prototype.getTitle=function(){return this.model.get("title")},n.prototype.setContent=function(t){return this.model.set("content"," "),this.model.set("content",t),this},n.prototype.getContent=function(){return this.model.get("content")},n.prototype.getContentEl=function(){var t;return null===(t=this.modal)||void 0===t?void 0:t.getContent().get(0)},n.prototype.getModel=function(){return this.model},n.prototype.render=function(){var t;if(!this.config.custom){var e=$c.extend(this.config.extend),n=this.modal&&this.modal.el;return this.modal=new e({el:n,model:this.model,config:this.config}),null===(t=this.modal)||void 0===t?void 0:t.render().el}},n.prototype.destroy=function(){var t;null===(t=this.modal)||void 0===t||t.remove()},n}(v);const Zc=Qc;var Jc="sw-visibility",tu="export-template",eu="open-sm",nu="open-tm",ru="open-layers",ou="open-blocks",iu="fullscreen",au="preview";const su={stylePrefix:"pn-",defaults:[{id:"commands",buttons:[{}]},{id:"options",buttons:[{active:!0,id:Jc,className:"fa fa-square-o",command:"core:component-outline",context:Jc,attributes:{title:"View components"}},{id:au,className:"fa fa-eye",command:au,context:au,attributes:{title:"Preview"}},{id:iu,className:"fa fa-arrows-alt",command:iu,context:iu,attributes:{title:"Fullscreen"}},{id:tu,className:"fa fa-code",command:tu,attributes:{title:"View code"}}]},{id:"views",buttons:[{id:eu,className:"fa fa-paint-brush",command:eu,active:!0,togglable:!1,attributes:{title:"Open Style Manager"}},{id:nu,className:"fa fa-cog",command:nu,togglable:!1,attributes:{title:"Settings"}},{id:ru,className:"fa fa-bars",command:ru,togglable:!1,attributes:{title:"Open Layer Manager"}},{id:ou,className:"fa fa-th-large",command:ou,togglable:!1,attributes:{title:"Open Blocks"}}]}]};var lu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const cu=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.get("buttons").length&&r.set("buttons",new fu(r.module,r.get("buttons"))),r}return lu(e,t),e.prototype.defaults=function(){return{id:"",label:"",tagName:"span",className:"",command:"",context:"",buttons:[],attributes:{},options:{},active:!1,dragDrop:!1,togglable:!0,runDefaultCommand:!0,stopDefaultCommand:!1,disable:!1}},Object.defineProperty(e.prototype,"className",{get:function(){return this.get("className")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"command",{get:function(){return this.get("command")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this.get("active")},set:function(t){this.set("active",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"togglable",{get:function(){return this.get("togglable")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"runDefaultCommand",{get:function(){return this.get("runDefaultCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopDefaultCommand",{get:function(){return this.get("stopDefaultCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disable",{get:function(){return this.get("disable")},enumerable:!1,configurable:!0}),e}(_.Z);var uu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pu=function(t){function e(e,n){return t.call(this,e,n,cu)||this}return uu(e,t),e.prototype.deactivateAllExceptOne=function(t,e){this.forEach((function(n,r){n!==t&&(n.set("active",!1),e&&n.get("buttons").length&&n.get("buttons").deactivateAllExceptOne(t,e))}))},e.prototype.deactivateAll=function(t,e){var n=t||"";this.forEach((function(t){t.get("context")==n&&t!==e&&t.set("active",!1,{fromCollection:!0})}))},e.prototype.disableAllButtons=function(t){var e=t||"";this.forEach((function(t,n){t.get("context")==e&&t.set("disable",!0)}))},e.prototype.disableAllButtonsExceptOne=function(t,e){this.forEach((function(n,r){n!==t&&(n.set("disable",!0),e&&n.get("buttons").length&&n.get("buttons").disableAllButtonsExceptOne(t,e))}))},e}(G);const fu=pu;pu.prototype.model=cu;var du=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const hu=function(t){function e(e,n){var r=t.call(this,e,n)||this,o=r.get("buttons")||[];return r.buttons=new fu(e,o),r}return du(e,t),e.prototype.defaults=function(){return{id:"",content:"",visible:!0,buttons:[],attributes:{}}},Object.defineProperty(e.prototype,"buttons",{get:function(){return this.get("buttons")},set:function(t){this.set("buttons",t)},enumerable:!1,configurable:!0}),e}(_.Z);var gu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mu=function(t){function e(e,n){return t.call(this,e,n,hu)||this}return gu(e,t),e}(G);const vu=mu;mu.prototype.model=hu;var yu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bu=function(){return bu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},bu.apply(this,arguments)},_u=function(e){function n(n){var r=e.call(this,n)||this,o=r,i=o.model,a=o.em,s=o.pfx,l=o.ppfx,c=i.className,u=i.attributes,p=u.command,f=u.listen;if(r.id=s+i.get("id"),r.activeCls="".concat(s,"active ").concat(l,"four-color"),r.disableCls="".concat(l,"disabled"),r.btnsVisCls="".concat(s,"visible"),r.className=s+"btn"+(c?" "+c:""),r.listenTo(i,"change",r.render),r.listenTo(i,"change:active updateActive",r.updateActive),r.listenTo(i,"checkActive",r.checkActive),r.listenTo(i,"change:bntsVis",r.updateBtnsVis),r.listenTo(i,"change:attributes",r.updateAttributes),r.listenTo(i,"change:className",r.updateClassName),r.listenTo(i,"change:disable",r.updateDisable),a&&(0,t.isString)(p)&&f){var d={fromListen:!0};r.listenTo(a,"run:".concat(p),(function(){return i.set("active",!0,d)})),r.listenTo(a,"stop:".concat(p),(function(){return i.set("active",!1,d)}))}return a&&a.get&&(r.commands=a.get("Commands")),r}return yu(n,e),n.prototype.tagName=function(){return this.model.get("tagName")},n.prototype.events=function(){return{click:"clicked"}},n.prototype.updateClassName=function(){var t=this.model,e=this.pfx,n=t.className,r=t.get("attributes").class,o="".concat(r||""," ").concat(e,"btn ").concat(n||"");this.$el.attr("class",o.trim())},n.prototype.updateAttributes=function(){var t=this,e=t.em,n=t.model,r=t.$el,o=n.get("attributes")||{},i=e&&e.t&&e.t("panels.buttons.titles.".concat(n.id));r.attr(o),i&&r.attr({title:i}),this.updateClassName()},n.prototype.updateBtnsVis=function(){this.$buttons&&(this.model.get("bntsVis")?this.$buttons.addClass(this.btnsVisCls):this.$buttons.removeClass(this.btnsVisCls))},n.prototype.updateActive=function(e,n,r){var o;void 0===r&&(r={});var i=this,a=i.model,s=i.commands,l=i.$el,c=i.activeCls,u=r.fromCollection,p=r.fromListen,f=a.get("context"),d=a.get("options"),h=a.command,g={};h&&(s&&(0,t.isString)(h)?g=s.get(h)||{}:(0,t.isFunction)(h)?g=s.create({run:h}):null!==h&&(0,t.isObject)(h)&&(g=s.create(h)),a.active?(!u&&(null===(o=a.collection)||void 0===o||o.deactivateAll(f,a)),a.set("active",!0,{silent:!0}).trigger("checkActive"),!p&&s.runCommand(g,bu(bu({},d),{sender:a})),g.noStop&&a.set("active",!1)):(l.removeClass(c),!p&&s.stopCommand(g,bu(bu({},d),{sender:a,force:1}))))},n.prototype.updateDisable=function(){var t=this.disableCls,e=this.model.disable;this.$el[e?"addClass":"removeClass"](t)},n.prototype.checkActive=function(){var t=this,e=t.model,n=t.$el,r=t.activeCls;e.active?n.addClass(r):n.removeClass(r)},n.prototype.clicked=function(){var t=this.model;t.get("bntsVis")||t.disable||!t.command||this.toggleActive()},n.prototype.toggleActive=function(){var t=this.model,e=this.em,n=t.active,r=t.togglable;n&&!r||(t.active=!n,n?t.runDefaultCommand&&e.runDefault():t.stopDefaultCommand&&e.stopDefault())},n.prototype.render=function(){var t=this.model,e=t.get("label"),n=this.$el;return!t.get("el")&&n.empty(),this.updateAttributes(),e&&n.append(e),this.checkActive(),this.updateDisable(),this},n}(Lt);const wu=_u;var Eu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const xu=function(e){function n(t){var n=e.call(this,{collection:t})||this;return n.listenTo(n.collection,"add",n.addTo),n.listenTo(n.collection,"reset remove",n.render),n.className=n.pfx+"buttons",n}return Eu(n,e),n.prototype.addTo=function(t){this.addToCollection(t)},n.prototype.addToCollection=function(t,e){var n=e||null,r=t.get("el"),o=new wu({el:r,model:t}).render().el;return n?n.appendChild(o):this.$el.append(o),o},n.prototype.render=function(){var e=this,n=document.createDocumentFragment();return this.$el.empty(),this.collection.each((function(t){return e.addToCollection(t,n)})),this.$el.append(n),this.$el.attr("class",(0,t.result)(this,"className")),this},n}(Lt);var Tu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cu=function(){return Cu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Cu.apply(this,arguments)},Au=function(t){function e(e){var n=t.call(this,{model:e,el:e.get("el")})||this;return n.className=n.pfx+"panel",n.id=n.pfx+e.get("id"),n.listenTo(e,"change:appendContent",n.appendContent),n.listenTo(e,"change:content",n.updateContent),n.listenTo(e,"change:visible",n.toggleVisible),e.view=n,n}return Tu(e,t),e.prototype.appendContent=function(){this.$el.append(this.model.get("appendContent"))},e.prototype.updateContent=function(){this.$el.html(this.model.get("content"))},e.prototype.toggleVisible=function(){this.model.get("visible")?this.$el.removeClass("".concat(this.ppfx,"hidden")):this.$el.addClass("".concat(this.ppfx,"hidden"))},e.prototype.attributes=function(){return this.model.get("attributes")},e.prototype.initResize=function(){var t=this.em,e=null==t?void 0:t.Editor,n=this.model.get("resizable");if(e&&n){var r=!0===n?[!0,!0,!0,!0]:n,o=r.length,i=void 0,a=void 0,s=void 0,l=!1;if(2==o)i=(c=r)[0],s=c[0],a=c[1],l=c[1];else if(4==o){var c;i=(c=r)[0],a=c[1],s=c[2],l=c[3]}var u=new e.Utils.Resizer(Cu({tc:i,cr:a,bc:s,cl:l,tl:!1,tr:!1,bl:!1,br:!1,appendTo:this.el,silentFrames:!0,avoidContainerUpdate:!0,prefix:e.getConfig().stylePrefix,onEnd:function(){t&&t.trigger("change:canvasOffset")},posFetcher:function(t,e){var n=e.target,r=t.style,o=u.getConfig(),i=o.keyWidth,a=o.keyHeight,s=t.getBoundingClientRect(),l="container"==n,c=r[i],p=r[a];return{left:0,top:0,width:c&&!l?parseFloat(c):s.width,height:p&&!l?parseFloat(p):s.height}}},n&&"boolean"!=typeof n?n:{}));u.blur=function(){},u.focus(this.el)}},e.prototype.render=function(){var t=this.model.buttons,e=this.$el,n=this.ppfx,r="".concat(this.className," ").concat(this.id," ").concat(n,"one-bg ").concat(n,"two-color");if(e.addClass(r),this.toggleVisible(),t.length){var o=new xu(t);e.append(o.render().el)}return e.append(this.model.get("content")),this},e}(Lt);const Ou=Au;var Su=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ku=function(t){function e(e){var n=t.call(this,{collection:e})||this;return n.listenTo(e,"add",n.addTo),n.listenTo(e,"reset",n.render),n.listenTo(e,"remove",n.onRemove),n.className=n.pfx+"panels",n}return Su(e,t),e.prototype.onRemove=function(t){var e=t.view;e&&e.remove()},e.prototype.addTo=function(t){this.addToCollection(t)},e.prototype.addToCollection=function(t,e){var n=e||null,r=t.get("el"),o=new Ou(t),i=o.render().el,a=t.get("appendTo");if(r);else if(a){var s=document.querySelector(a);null==s||s.appendChild(i)}else n?n.appendChild(i):this.$el.append(i);return o.initResize(),i},e.prototype.render=function(){var t=this,e=this.$el,n=document.createDocumentFragment();return e.empty(),this.collection.each((function(e){return t.addToCollection(e,n)})),e.append(n),e.attr("class",this.className),this},e}(Lt);var Pu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ju=function(t){function e(e){var n=t.call(this,e,"Panels",su)||this;for(var r in n.panels=new vu(n,n.config.defaults),su)r in n.config||(n.config[r]=su[r]);return n}return Pu(e,t),e.prototype.getPanels=function(){return this.panels},e.prototype.getPanelsEl=function(){var t;return null===(t=this.PanelsViewObj)||void 0===t?void 0:t.el},e.prototype.addPanel=function(t){return this.panels.add(t)},e.prototype.removePanel=function(t){return this.panels.remove(t)},e.prototype.getPanel=function(t){var e=this.panels.where({id:t});return e.length?e[0]:null},e.prototype.addButton=function(t,e){var n=this.getPanel(t);return n?n.buttons.add(e):null},e.prototype.removeButton=function(t,e){var n=this.getPanel(t);return n&&n.buttons.remove(e)},e.prototype.getButton=function(t,e){var n=this.getPanel(t);if(n){var r=n.buttons.where({id:e});return r.length?r[0]:null}return null},e.prototype.render=function(){var t;return null===(t=this.PanelsViewObj)||void 0===t||t.remove(),this.PanelsViewObj=new ku(this.panels),this.PanelsViewObj.render().el},e.prototype.active=function(){this.getPanels().each((function(t){t.buttons.each((function(t){t.get("active")&&t.trigger("updateActive")}))}))},e.prototype.disableButtons=function(){this.getPanels().each((function(t){t.buttons.each((function(t){t.get("disable")&&t.trigger("change:disable")}))}))},e.prototype.destroy=function(){this.panels.reset(),this.panels.stopListening(),this.PanelsViewObj&&this.PanelsViewObj.remove()},e}(v);const Nu=ju,Lu={stylePrefix:"cm-",optsCodeViewer:{}};var Du=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Iu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Du(e,t),e.prototype.build=function(t,e){void 0===e&&(e={});var n=e.em,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["em"]);if(e.cleanId&&n){var o=n.Css.getAll().toJSON().map((function(t){var e=t.selectors,n=e&&1===e.length&&e.models[0];return n&&n.isId()&&n.get("name")})).filter(Boolean);r.attributes||(r.attributes=function(t,e){var n=e.id;return n&&"i"===n[0]&&!t.get("script")&&!t.get("attributes").id&&o.indexOf(n)<0&&delete e.id,e})}return t.toHTML(r)},e}(u.Hn);var Ru=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mu=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Ru(n,e),n.prototype.build=function(e){var n=this,r=e.toJSON();return this.beforeEach(r),(0,t.each)(r,(function(t,e){var o=r[e];if(o instanceof u.Hn)r[e]=n.build(o);else if(o instanceof u.FE){var i=o;r[e]=[],i.length&&i.forEach((function(t,o){r[e][o]=n.build(t)}))}})),r},n.prototype.beforeEach=function(t){delete t.status},n}(u.Hn);const Bu=Mu;var Fu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Uu(t){var e;return 0===((null===(e=t.toString().match(/\{([\s\S]*)\}/m))||void 0===e?void 0:e[1])||"").replace(/^\s*\/\/.*$/gm,"").trim().length}var Hu=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Fu(n,e),n.prototype.mapModel=function(e){var n,r=this,o="",i=e.get("script-export")||e.get("script"),a=e.get("type"),s=e.get("components"),l=e.getId();if(i){var c=e.get("attributes");c=(0,t.extend)({},c,{id:l}),e.set("attributes",c,{silent:!0});var u=e.getScriptString(i),p=e.get("script-props");if(e.get("scriptUpdated")&&!p)this.mapJs[a+"-"+l]={ids:[l],code:u};else{var f=void 0,d=this.mapJs[a];if(p&&(f=e.__getScriptProps()),d)d.ids.push(l),f&&(d.props[l]=f);else{var h={ids:[l],code:u};f&&(h.props=((n={})[l]=f,n)),this.mapJs[a]=h}}}return s.forEach((function(t){o+=r.mapModel(t)})),o},n.prototype.build=function(t){this.mapJs={},this.mapModel(t);var e="";for(var n in this.mapJs){var r=this.mapJs[n];if(r.code)if(r.props){if(Uu(r.code))continue;e+="\n var props = ".concat(JSON.stringify(r.props),";\n var ids = Object.keys(props).map(function(id) { return '#'+id }).join(',');\n var els = document.querySelectorAll(ids);\n for (var i = 0, len = els.length; i < len; i++) {\n var el = els[i];\n (").concat(r.code,".bind(el))(props[el.id]);\n }")}else{var o="#"+r.ids.join(", #");e+="\n var items = document.querySelectorAll('".concat(o,"');\n for (var i = 0, len = items.length; i < len; i++) {\n (function(){\n").concat(r.code,"\n}.bind(items[i]))();\n }")}}return e},n}(u.Hn);const Vu=Hu;var qu,zu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gu=function(){return Gu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Gu.apply(this,arguments)};(0,e.hasWin)()&&(qu=r(631),r(531),r(629),r(210));var Wu=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return zu(n,e),n.prototype.defaults=function(){return{input:"",label:"",codeName:"",theme:"hopscotch",readOnly:!0,lineNumbers:!0,autoFormat:!0}},n.prototype.init=function(e){return(0,t.bindAll)(this,"onChange"),this.editor=qu.fromTextArea(e,Gu({dragDrop:!1,lineWrapping:!0,mode:this.get("codeName")},this.attributes)),this.element=e,this.editor.on("change",this.onChange),this},n.prototype.onChange=function(){this.trigger("update",this)},n.prototype.getEditor=function(){return this.editor},n.prototype.getElement=function(){return this.element},n.prototype.setElement=function(t){return this.element=t,this},n.prototype.refresh=function(){return this.getEditor().refresh(),this},n.prototype.focus=function(){return this.getEditor().focus(),this},n.prototype.getContent=function(){var t=this.getEditor();return t&&t.getValue()},n.prototype.setContent=function(t,e){var n=this;void 0===e&&(e={});var r=this.editor;if(r){r.setValue(t);var o=this.get("autoFormat");r.autoFormatRange&&(!0===o||Array.isArray(o)&&o.includes(this.get("codeName")))&&(qu.commands.selectAll(r),r.autoFormatRange(r.getCursor(!0),r.getCursor(!1)),qu.commands.goDocStart(r)),!e.noRefresh&&setTimeout((function(){return n.refresh()}))}},n}(u.Hn);const Yu=Wu;Wu.prototype.CodeMirror=qu;var Ku=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ku(e,t),e.prototype.template=function(t){var e,r,o=t.pfx,i=t.codeName,a=t.label;return n(Qu||(e=['\n <div class="','editor" id="',"",'">\n <div id="','title">','</div>\n <div id="','code"></div>\n </div>\n '],r=['\n <div class="','editor" id="',"",'">\n <div id="','title">','</div>\n <div id="','code"></div>\n </div>\n '],Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,Qu=e),o,o,i,o,a,o)},e.prototype.initialize=function(t){this.config=t.config||{},this.pfx=this.config.stylePrefix},e.prototype.render=function(){var t,e,n=this,r=n.model,o=n.pfx,i=n.$el,a=r.toJSON(),s=r.get("input")||(null===(e=(t=r).getElement)||void 0===e?void 0:e.call(t));return a.pfx=o,i.html(this.template(a)),i.attr("class","".concat(o,"editor-c")),i.find("#".concat(o,"code")).append(s),this},e}(u.G7);const Xu=$u;var Qu,Zu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ju=function(){return Ju=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ju.apply(this,arguments)},tp=function(e){function n(t){var n=e.call(this,t,"CodeManager",Lu)||this;n.EditorView=Xu;var r=n.config,o=r.pStylePrefix;return o&&(r.stylePrefix=o+r.stylePrefix),n.generators={},n.viewers={},n.defGenerators={html:new Iu,css:new Fo,json:new Bu,js:new Vu},n.defViewers={CodeMirror:new Yu},n.loadDefaultGenerators().loadDefaultViewers(),n}return Zu(n,e),n.prototype.addGenerator=function(t,e){return this.generators[t]=e,this},n.prototype.getGenerator=function(t){return this.generators[t]},n.prototype.getGenerators=function(){return this.generators},n.prototype.addViewer=function(t,e){return this.viewers[t]=e,this},n.prototype.getViewer=function(t){return this.viewers[t]},n.prototype.getViewers=function(){return this.viewers},n.prototype.createViewer=function(e){void 0===e&&(e={});var n=(0,t.isUndefined)(e.type)?"CodeMirror":e.type,r=this.getViewer(n)&&this.getViewer(n).clone(),o=document.createElement("div"),i=document.createElement("textarea");return o.appendChild(i),r.set(Ju(Ju({},this.config.optsCodeViewer),e)),r.init(i),r.setElement(o),r},n.prototype.updateViewer=function(t,e){t.setContent(e)},n.prototype.getCode=function(t,e,n){void 0===n&&(n={}),n.em=this.em;var r=this.getGenerator(e);return r?r.build(t,n):""},n.prototype.loadDefaultGenerators=function(){for(var t in this.defGenerators)this.addGenerator(t,this.defGenerators[t]);return this},n.prototype.loadDefaultViewers=function(){for(var t in this.defViewers)this.addViewer(t,this.defViewers[t]);return this},n.prototype.destroy=function(){},n}(v);const ep=tp;var np=r(410),rp=r.n(np);const op={maximumStackLength:500,trackSelection:!0};var ip=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ap=function(){return ap=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ap.apply(this,arguments)},sp=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},lp=function(t){return t.avoidStore||t.noUndo},cp=function(t){return Object.keys(t.changedAttributes())},up=function(e){function n(n){var r=e.call(this,n,"UndoManager",op)||this;r.config._disable&&(r.config.maximumStackLength=0);var o=!0;return r.um=new(rp())(ap({track:!0,register:[]},r.config)),r.um.changeUndoType("change",{condition:function(e){var n=e.get("_undo");if(n){var r=e.get("_undoexc");if((0,t.isArray)(r)&&cp(e).some((function(t){return r.indexOf(t)>=0})))return!1;if((0,t.isBoolean)(n))return!0;if((0,t.isArray)(n)&&cp(e).some((function(t){return n.indexOf(t)>=0})))return!0}return!1},on:function(e,n,r){var i=this;!this.beforeCache&&(this.beforeCache=e.previousAttributes());var a=r||n||{};if(a.noUndo&&setTimeout((function(){i.beforeCache=null})),!lp(a)){var s=e.toJSON({fromUndo:o}),l={object:e,before:this.beforeCache,after:s};if(this.beforeCache=null,!(0,t.isEmpty)(s))return l}}}),r.um.changeUndoType("add",{on:function(t,e,n){if(void 0===n&&(n={}),!lp(n)&&r.isRegistered(e))return{object:e,before:void 0,after:t,options:ap(ap({},n),{fromUndo:o})}}}),r.um.changeUndoType("remove",{on:function(t,e,n){if(void 0===n&&(n={}),!lp(n)&&r.isRegistered(e))return{object:e,before:t,after:void 0,options:ap(ap({},n),{fromUndo:o})}}}),r.um.changeUndoType("reset",{undo:function(t,e){t.reset(e,{fromUndo:o})},redo:function(t,e,n){t.reset(n,{fromUndo:o})},on:function(t,e){if(void 0===e&&(e={}),!lp(e)&&r.isRegistered(t))return{object:t,before:e.previousModels,after:sp([],t.models,!0),options:ap(ap({},e),{fromUndo:o})}}}),r.um.on("undo redo",(function(){n.trigger("change:canvasOffset"),n.getSelectedAll().map((function(t){return t.trigger("rerender:layer")}))})),["undo","redo"].forEach((function(t){return r.um.on(t,(function(){return n.trigger(t)}))})),r}return ip(n,e),n.prototype.postLoad=function(){var t=this.config,e=this.em;t.trackSelection&&e&&this.add(e.get("selected"))},n.prototype.add=function(t){return this.um.register(t),this},n.prototype.remove=function(t){return this.um.unregister(t),this},n.prototype.removeAll=function(){return this.um.unregisterAll(),this},n.prototype.start=function(){return this.um.startTracking(),this},n.prototype.stop=function(){return this.um.stopTracking(),this},n.prototype.undo=function(t){void 0===t&&(t=!0);var e=this.em,n=this.um;return!e.isEditing()&&n.undo(t),this},n.prototype.undoAll=function(){return this.um.undoAll(),this},n.prototype.redo=function(t){void 0===t&&(t=!0);var e=this.em,n=this.um;return!e.isEditing()&&n.redo(t),this},n.prototype.redoAll=function(){return this.um.redoAll(),this},n.prototype.hasUndo=function(){return!!this.um.isAvailable("undo")},n.prototype.hasRedo=function(){return!!this.um.isAvailable("redo")},n.prototype.isRegistered=function(t){return!!this.getInstance().objectRegistry.isRegistered(t)},n.prototype.getStack=function(){return this.um.stack},n.prototype.getStackGroup=function(){var t=[],e=[];return this.getStack().forEach((function(n){var r=n.get("magicFusionIndex");e.indexOf(r)<0&&(e.push(r),t.push(n))})),t},n.prototype.skip=function(t){this.stop(),t(),this.start()},n.prototype.getGroupedStack=function(){var e={};return this.getStack().forEach((function(t,n){var r=t.get("magicFusionIndex"),o=function(t,e){var n=t.attributes,r=n.type,o=n.after,i=n.before,a=n.object,s=n.options;return{index:e,type:r,after:o,before:i,object:a,options:void 0===s?{}:s}}(t,n);e[r]?e[r].push(o):e[r]=[o]})),Object.keys(e).map((function(n){var r=e[n];return{index:r[r.length-1].index,actions:r,labels:(0,t.unique)(r.reduce((function(t,e){var n,r=null===(n=e.options)||void 0===n?void 0:n.action;return r&&t.push(r),t}),[]))}}))},n.prototype.goToGroup=function(e){var n=this;if(e){var r=this.getPointer(),o=e.index-r;(0,t.times)(Math.abs(o),(function(){n[o<0?"undo":"redo"](!1)}))}},n.prototype.getPointer=function(){return this.getStack().pointer},n.prototype.clear=function(){return this.um.clear(),this},n.prototype.getInstance=function(){return this.um},n.prototype.destroy=function(){this.clear().removeAll()},n}(v);const pp=up,fp={stylePrefix:"rte-",adjustToolbar:!0,actions:["bold","italic","underline","strikethrough","link","wrap"],custom:!1};var dp,hp=function(){return hp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},hp.apply(this,arguments)};!function(t){t[t.ACTIVE=1]="ACTIVE",t[t.INACTIVE=0]="INACTIVE",t[t.DISABLED=-1]="DISABLED"}(dp||(dp={}));var gp="_rte",mp=function(t,e){void 0===e&&(e="A");var n=t.selection()||{},r=n.anchorNode,o=n.focusNode,i=null==r?void 0:r.parentNode,a=null==o?void 0:o.parentNode;return(null==i?void 0:i.nodeName)==e||(null==a?void 0:a.nodeName)==e},vp="data-selectme",yp={bold:{name:"bold",icon:"<b>B</b>",attributes:{title:"Bold"},result:function(t){return t.exec("bold")}},italic:{name:"italic",icon:"<i>I</i>",attributes:{title:"Italic"},result:function(t){return t.exec("italic")}},underline:{name:"underline",icon:"<u>U</u>",attributes:{title:"Underline"},result:function(t){return t.exec("underline")}},strikethrough:{name:"strikethrough",icon:"<s>S</s>",attributes:{title:"Strike-through"},result:function(t){return t.exec("strikeThrough")}},link:{icon:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z" />\n </svg>',name:"link",attributes:{style:"font-size:1.4rem;padding:0 4px 2px;",title:"Link"},state:function(t){return t&&t.selection()&&mp(t)?1:0},result:function(t){mp(t)?t.exec("unlink"):t.insertHTML('<a href="" '.concat(vp,">").concat(t.selection(),"</a>"),{select:!0})}},wrap:{name:"wrap",icon:'<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M20.71,4.63L19.37,3.29C19,2.9 18.35,2.9 17.96,3.29L9,12.25L11.75,15L20.71,6.04C21.1,5.65 21.1,5 20.71,4.63M7,14A3,3 0 0,0 4,17C4,18.31 2.84,19 2,19C2.92,20.22 4.5,21 6,21A4,4 0 0,0 10,17A3,3 0 0,0 7,14Z" />\n </svg>',attributes:{title:"Wrap for style"},state:function(t){return(null==t?void 0:t.selection())&&mp(t,"SPAN")?-1:0},result:function(t){!mp(t,"SPAN")&&t.insertHTML("<span ".concat(vp,">").concat(t.selection(),"</span>"),{select:!0})}}},bp=function(){function n(e,n,r){var o=this;if(void 0===r&&(r={}),this.em=e,this.settings=r,n[gp])return n[gp];n[gp]=this,this.setEl(n),this.updateActiveActions=this.updateActiveActions.bind(this),this.__onKeydown=this.__onKeydown.bind(this),this.__onPaste=this.__onPaste.bind(this);var i=(r.actions||[]).map((function(e){var n=e;return(0,t.isString)(e)?n=hp({},yp[e]):yp[e.name]&&(n=hp(hp({},yp[e.name]),e)),n})),a=i.length?i:Object.keys(yp).map((function(t){return yp[t]}));r.classes=hp({actionbar:"actionbar",button:"action",active:"active",disabled:"disabled",inactive:"inactive"},r.classes);var s=r.classes,l=r.actionbar;if(this.actionbar=l,this.classes=s,this.actions=a,!l){if(!this.isCustom(r.module)){var c=r.actionbarContainer;(l=document.createElement("div")).className=s.actionbar,null==c||c.appendChild(l),this.actionbar=l}a.forEach((function(t){return o.addAction(t)}))}return r.styleWithCSS&&this.exec("styleWithCSS"),this}return n.prototype.isCustom=function(t){var e=t||this.em.RichTextEditor;return!(!(null==e?void 0:e.config.custom)&&!(null==e?void 0:e.customRte))},n.prototype.destroy=function(){},n.prototype.setEl=function(t){this.el=t,this.doc=t.ownerDocument},n.prototype.updateActiveActions=function(){var t=this,e=this.getActions();e.forEach((function(e){var n=e.update,r=e.btn,o=t.classes,i=o.active,a=o.inactive,s=o.disabled,l=e.state,c=e.name,u=t.doc,p=dp.INACTIVE;if(r&&(r.className=r.className.replace(i,"").trim(),r.className=r.className.replace(a,"").trim(),r.className=r.className.replace(s,"").trim()),l){var f=l(t,u);if(p=f,r)switch(f){case 1:r.className+=" ".concat(i);break;case 0:r.className+=" ".concat(a);break;case-1:r.className+=" ".concat(s)}}else u.queryCommandSupported(c)&&u.queryCommandState(c)&&(r&&(r.className+=" ".concat(i)),p=dp.ACTIVE);e.currentState=p,null==n||n(t,e)})),e.length&&this.em.RichTextEditor.__dbdTrgCustom()},n.prototype.enable=function(t){return this.enabled?this:this.__toggleEffects(!0,t)},n.prototype.disable=function(){return this.__toggleEffects(!1)},n.prototype.__toggleEffects=function(t,e){void 0===t&&(t=!1),void 0===e&&(e={});var n=t?Dt.on:Dt.S1,r=this.el,o=this.doc,i=this.actionbarEl();if(i&&(i.style.display=t?"":"none"),r.contentEditable="".concat(!!t),n(r,"mouseup keyup",this.updateActiveActions),n(o,"keydown",this.__onKeydown),n(o,"paste",this.__onPaste),this.enabled=t,t){var a=e.event;if(this.syncActions(),this.updateActiveActions(),a){var s=null;if(o.caretRangeFromPoint){var l=(0,Dt.VB)(a);s=o.caretRangeFromPoint(l.clientX,l.clientY)}else a.rangeParent&&(s=o.createRange()).setStart(a.rangeParent,a.rangeOffset);var c=o.getSelection();null==c||c.removeAllRanges(),s&&(null==c||c.addRange(s))}r.focus()}return this},n.prototype.__onKeydown=function(t){var e=t,n=this.doc;"Enter"!==e.key||["insertOrderedList","insertUnorderedList"].some((function(t){return n.queryCommandState(t)}))||(n.execCommand("insertLineBreak"),e.preventDefault())},n.prototype.__onPaste=function(t){var e=t.clipboardData||window.clipboardData,n=e.getData("text"),r=e.getData("text/html");if(n&&!r){t.preventDefault();var o=n.replace(/(?:\r\n|\r|\n)/g,"<br/>");this.doc.execCommand("insertHTML",!1,o)}},n.prototype.syncActions=function(){var t=this;this.getActions().forEach((function(e){if(t.actionbar&&(!e.state||e.state&&e.state(t,t.doc)>=0)){var n=e.event||"click",r=e.btn;r&&(r["on".concat(n)]=function(){e.result(t,e),t.updateActiveActions()})}}))},n.prototype.addAction=function(t,e){void 0===e&&(e={});var n=e.sync,r=this.actionbarEl();if(r){var o=t.icon,i=t.attributes,a=void 0===i?{}:i,s=document.createElement("span");for(var l in s.className=this.classes.button,t.btn=s,a)s.setAttribute(l,a[l]);"string"==typeof o?s.innerHTML=o:s.appendChild(o),r.appendChild(s)}n&&(this.actions.push(t),this.syncActions())},n.prototype.getActions=function(){return this.actions},n.prototype.selection=function(){return this.doc.getSelection()},n.prototype.exec=function(t,e){this.doc.execCommand(t,!1,e)},n.prototype.actionbarEl=function(){return this.actionbar},n.prototype.insertHTML=function(n,r){var o=(void 0===r?{}:r).select,i=this,a=i.em,s=i.doc,l=i.el,c=s.getSelection();if(c&&c.rangeCount){var u=(0,e.getModel)(l),p=s.createElement("div"),f=c.getRangeAt(0);f.deleteContents(),(0,t.isString)(n)?p.innerHTML=n:n&&p.appendChild(n),Array.prototype.slice.call(p.childNodes).forEach((function(t){f.insertNode(t)})),c.removeAllRanges(),c.addRange(f),l.focus(),o&&u&&(u.once("rte:disable",(function(){var t=u.find("[".concat(vp,"]"))[0];t&&(a.setSelected(t),t.removeAttributes(vp))})),u.trigger("disable"))}},n}();const _p=bp;var wp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ep=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},xp=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Tp="change:canvasOffset frame:scroll component:update",Cp={enable:"rte:enable",disable:"rte:disable",custom:"rte:custom"},Ap=function(n){function r(e){var r=n.call(this,e,"RichTextEditor",fp)||this;r.events=Cp;var o=r.config,i=o.pStylePrefix;i&&(o.stylePrefix=i+o.stylePrefix),r.pfx=o.stylePrefix,r.actions=o.actions||[];var a=new u.Hn;return r.model=a,a.on("change:currentView",r.__trgCustom,r),r.__dbdTrgCustom=(0,t.debounce)((function(){return r.__trgCustom()}),0),r}return wp(r,n),r.prototype.onLoad=function(){if((0,e.hasWin)()){var t=this.config,n=t.pStylePrefix,r=t.custom,o=(0,Dt.ut)("div",{class:(0,Dt.cx)("".concat(n,"rte-toolbar"),!r&&"".concat(n,"one-bg ").concat(n,"rte-toolbar-ui"))});this.toolbar=o,this.initRte((0,Dt.ut)("div")),(0,Dt.on)(o,"mousedown",(function(t){return t.stopPropagation()}))}},r.prototype.__trgCustom=function(){var t=this,e=t.model,n=t.em,r=t.events;n.trigger(r.custom,{enabled:!!e.get("currentView"),container:this.getToolbarEl(),actions:this.getAll()})},r.prototype.destroy=function(){var t,e,n;null===(t=this.globalRte)||void 0===t||t.destroy(),null===(n=null===(e=this.customRte)||void 0===e?void 0:e.destroy)||void 0===n||n.call(e),this.model.stopListening().clear({silent:!0}),this.__dbdTrgCustom.cancel(),(0,Dt.L_)(this.toolbar)},r.prototype.postRender=function(t){var e=t.model.get("Canvas");this.toolbar.style.pointerEvents="all",this.hideToolbar(),e.getToolsEl().appendChild(this.toolbar)},r.prototype.initRte=function(t){var e=this.globalRte,n=this,r=n.em,o=n.pfx,i=n.actionbar,a=n.config,s=this.actions||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],a.actions,!0),l={actionbar:"".concat(o,"actionbar"),button:"".concat(o,"action"),active:"".concat(o,"active"),inactive:"".concat(o,"inactive"),disabled:"".concat(o,"disabled")};return e?(e.em=r,e.setEl(t)):(e=new _p(r,t,{classes:l,actions:s,actionbar:i,actionbarContainer:this.toolbar,module:this}),this.globalRte=e),e.actionbar&&(this.actionbar=e.actionbar),e.actions&&(this.actions=e.actions),e},r.prototype.add=function(t,e){var n;void 0===e&&(e={}),e.name=t,null===(n=this.globalRte)||void 0===n||n.addAction(e,{sync:!0})},r.prototype.get=function(t){var e,n;return null===(e=this.globalRte)||void 0===e||e.getActions().forEach((function(e){e.name==t&&(n=e)})),n},r.prototype.getAll=function(){var t;return(null===(t=this.globalRte)||void 0===t?void 0:t.getActions())||[]},r.prototype.remove=function(t){var e,n=this.getAll(),r=this.get(t);if(r){var o=r.btn,i=n.indexOf(r);null===(e=null==o?void 0:o.parentNode)||void 0===e||e.removeChild(o),n.splice(i,1)}return r},r.prototype.run=function(e){var n=this.globalRte,r=(0,t.isString)(e)?this.get(e):e;n&&r&&(r.result(n,r),n.updateActiveActions())},r.prototype.getToolbarEl=function(){return this.toolbar},r.prototype.updatePosition=function(){var n=this.em,r=this.toolbar,o=n.Canvas,i=r.style,a=o.getTargetToElementFixed(this.lastEl,r,{event:"rteToolbarPosUpdate",left:0});["top","left","bottom","right"].forEach((function(n){var r=a[n];(0,e.isDef)(r)&&(i[n]=(0,t.isString)(r)?r:(r||0)+"px")}))},r.prototype.enable=function(t,e,n){return void 0===n&&(n={}),Ep(this,void 0,void 0,(function(){var r,o,i,a,s;return xp(this,(function(l){switch(l.label){case 0:return this.lastEl=t.el,o=(r=this).customRte,i=r.em,a=t.getChildrenContainer(),this.toolbar.style.display="",[4,o?o.enable(a,e):this.initRte(a).enable(n)];case 1:return s=l.sent(),i&&(setTimeout(this.updatePosition.bind(this),0),i.off(Tp,this.updatePosition,this),i.on(Tp,this.updatePosition,this),i.trigger("rte:enable",t,s)),this.model.set({currentView:t}),[2,s]}}))}))},r.prototype.getContent=function(e,n){return Ep(this,void 0,void 0,(function(){var r;return xp(this,(function(o){switch(o.label){case 0:return(r=this.customRte)&&n&&(0,t.isFunction)(r.getContent)?[4,r.getContent(e.el,n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,e.getChildrenContainer().innerHTML]}}))}))},r.prototype.hideToolbar=function(){var t=this.toolbar.style,e="-1000px";t.top=e,t.left=e,t.display="none"},r.prototype.disable=function(t,e){var n=this.em,r=this.customRte,o=t.getChildrenContainer();r?r.disable(o,e):e&&e.disable(),this.hideToolbar(),n&&(n.off(Tp,this.updatePosition,this),n.trigger("rte:disable",t,e)),this.model.unset("currentView")},r}(v);const Op=Ap;var Sp=r(790);const kp={stylePrefix:"com-",defaults:{},strict:!0};var Pp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jp=function(){return jp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},jp.apply(this,arguments)},Np=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Lp=[["preview","Preview","preview"],["resize","Resize","resize"],["fullscreen","Fullscreen","fullscreen"],["copy","CopyComponent"],["paste","PasteComponent"],["canvas-move","CanvasMove"],["canvas-clear","CanvasClear"],["open-code","ExportTemplate","export-template"],["open-layers","OpenLayers","open-layers"],["open-styles","OpenStyleManager","open-sm"],["open-traits","OpenTraitManager","open-tm"],["open-blocks","OpenBlocks","open-blocks"],["open-assets","OpenAssets","open-assets"],["component-select","SelectComponent","select-comp"],["component-outline","SwitchVisibility","sw-visibility"],["component-offset","ShowOffset","show-offset"],["component-move","MoveComponent","move-comp"],["component-next","ComponentNext"],["component-prev","ComponentPrev"],["component-enter","ComponentEnter"],["component-exit","ComponentExit","select-parent"],["component-delete","ComponentDelete"],["component-style-clear","ComponentStyleClear"],["component-drag","ComponentDrag"]],Dp=function(e){function n(n){var o=e.call(this,n,"Commands",kp)||this;o.CommandAbstract=Sp.default,o.defaultCommands={},o.commands={},o.active={};var i=o.config,a=i.pStylePrefix,s=o.defaultCommands;for(var l in a&&(i.stylePrefix=a+i.stylePrefix),Object.keys(i.defaults).forEach((function(t){var e=i.defaults[t];e.id&&o.add(e.id,e)})),s["tlb-delete"]={run:function(t){return t.runCommand("core:component-delete")}},s["tlb-clone"]={run:function(t){t.runCommand("core:copy"),t.runCommand("core:paste",{action:"clone-component"})}},s["tlb-move"]={run:function(e,n,r){void 0===r&&(r={});var o=e.getModel(),i=r&&r.event,a=r.target,s=a||e.getSelected(),l=a?[a]:Np([],e.getSelectedAll(),!0),c=i&&"dragstart"==i.type,u={preserveSelected:1};if(!s||!s.get("draggable"))return o.logWarning("The element is not draggable");var p=s.get("dmode")||o.get("dmode"),f=function(){return o.stopDefault(u)},d=(0,t.includes)(["absolute","translate"],p);l.forEach((function(t){return t.trigger("disable")})),c?setTimeout(f,0):f();var h=function(t){o.trigger("".concat(Je,":start"),t)},g=function(t){o.trigger(Je,t)},m=function(t,n,r){l.forEach((function(t){return t.set("status","selected")})),e.select(l),s.emitUpdate(),o.trigger("".concat(Je,":end"),r),setTimeout((function(){return o.runDefault(u)})),(d||r.cancelled)&&o.set("_cmpDrag",1)};if(d)e.runCommand("core:component-drag",{guidesInfo:1,mode:p,target:s,onStart:h,onDrag:g,onEnd:m,event:i});else{c&&i.dataTransfer.setDragImage(s.view.el,0,0);var v=e.Commands.get("move-comp");v.onStart=h,v.onDrag=g,v.onEndMoveFromModel=m,v.initSorterFromModels(l)}l.forEach((function(t){return t.set("status","freezed-selected")}))}},s["core:undo"]=function(t){return t.UndoManager.undo()},s["core:redo"]=function(t){return t.UndoManager.redo()},Lp.forEach((function(t){var e=t[2],o=r(828)("./".concat(t[1])).default,i="core:".concat(t[0]);s[i]=o,e&&(s[e]=o,["run","stop"].forEach((function(t){n.on("".concat(t,":").concat(e),(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return n.trigger.apply(n,Np(["".concat(t,":").concat(i)],e,!1))}))})))})),i.model=n.Canvas,s)o.add(l,s[l]);return o}return Pp(n,e),n.prototype.add=function(e,n){var r=(0,t.isFunction)(n)?{run:n}:n;return r.stop||(r.noStop=!0),delete r.initialize,r.id=e,this.commands[e]=Sp.default.extend(r),this},n.prototype.get=function(e){var n=this.commands[e];return(0,t.isFunction)(n)?(n=new n(this.config),this.commands[e]=n):n||this.em.logWarning("'".concat(e,"' command not found")),n},n.prototype.extend=function(t,e){void 0===e&&(e={});var n=this.get(t);if(n){var r=jp(jp({},n.constructor.prototype),e);this.add(t,r);var o=Lp.filter((function(e){return"core:".concat(e[0])===t&&e[2]}))[0];o&&this.add(o[2],r)}return this},n.prototype.has=function(t){return!!this.commands[t]},n.prototype.getAll=function(){return this.commands},n.prototype.run=function(t,e){return void 0===e&&(e={}),this.runCommand(this.get(t),e)},n.prototype.stop=function(t,e){return void 0===e&&(e={}),this.stopCommand(this.get(t),e)},n.prototype.isActive=function(t){return this.getActive().hasOwnProperty(t)},n.prototype.getActive=function(){return this.active},n.prototype.runCommand=function(t,e){var n;if(void 0===e&&(e={}),t&&t.run){var r=this.em,o=this.config,i=t.id,a=r.Editor;this.isActive(i)&&!e.force&&o.strict||(n=a&&t.callRun(a,e),i&&t.stop&&!t.noStop&&!e.abort&&(this.active[i]=n))}return n},n.prototype.stopCommand=function(t,e){var n;if(void 0===e&&(e={}),t&&t.run){var r=this.em,o=this.config,i=t.id,a=r.Editor;(this.isActive(i)||e.force||!o.strict)&&(i&&delete this.active[i],n=t.callStop(a,e))}return n},n.prototype.create=function(t){return t.stop||(t.noStop=!0),new(Sp.default.extend(t))(this.config)},n.prototype.destroy=function(){this.defaultCommands={},this.commands={},this.active={}},n}(v);const Ip=Dp,Rp={sectors:[{name:"General",open:!1,properties:["display","float","position","top","right","left","bottom"]},{name:"Flex",open:!1,properties:["flex-direction","flex-wrap","justify-content","align-items","align-content","order","flex-basis","flex-grow","flex-shrink","align-self"]},{name:"Dimension",open:!1,properties:["width","height","max-width","min-height","margin","padding"]},{name:"Typography",open:!1,properties:["font-family","font-size","font-weight","letter-spacing","color","line-height","text-align","text-shadow"]},{name:"Decorations",open:!1,properties:["background-color","border-radius","border","box-shadow","background"]},{name:"Extra",open:!1,properties:["opacity","transition","transform"]}],appendTo:"",stylePrefix:"sm-",custom:!1,hideNotStylable:!0,highlightChanged:!0,highlightComputed:!0,showComputed:!0,clearProperties:!0,avoidComputed:["width","height"]};var Mp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bp=function(){return Bp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Bp.apply(this,arguments)},Fp=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Up=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return Mp(r,n),r.getDefaults=function(){return(0,t.result)(this.prototype,"defaults")},r.prototype.defaults=function(){return{name:"",property:"",type:"",defaults:"",info:"",value:"",icon:"",functionName:"",status:"",visible:!0,fixedValues:["initial","inherit"],full:!1,important:!1,toRequire:!1,requires:void 0,requiresParent:null,parentTarget:null}},r.prototype.initialize=function(t,n){void 0===t&&(t={}),void 0===n&&(n={}),this.em=n.em;var o=this.getId()||"",i=this.get("name")||this.get("label")||"";!this.get("property")&&this.set("property",(i||o).replace(/ /g,"-"));var a=this.get("property");!this.get("id")&&this.set("id",a),!i&&this.set("name",(0,e.capitalize)(a).replace(/-/g," ")),this.on("change",this.__upTargets),r.callInit(this,t,n)},r.prototype.__getParentProp=function(){var t,e;return null===(e=null===(t=this.collection)||void 0===t?void 0:t.opts)||void 0===e?void 0:e.parentProp},r.prototype.__upTargets=function(e,n){var r,o=this;void 0===n&&(n={});var i=this.em.Styles,a=this.getName(),s=n.__clear,l=s?"":this.__getFullValue(n),c=this.__getParentProp(),u=this.changedAttributes(),p=(0,t.keys)(u).reduce((function(t,e){return t[e]=o.previous(e),t}),{}),f=Fp(Fp([],(0,t.keys)(this.__getClearProps()),!0),["__p"],!1),d=(0,t.keys)(u),h=!n.__up&&!c&&(s||f.some((function(t){return d.indexOf(t)>=0}))),g=this.get("onChange"),m={property:this,from:p,to:u,value:l,opts:n};i.__trgEv(i.events.propertyUpdate,m),g&&g(m),h&&this.__upTargetsStyle(((r={})[a]=l,r),n)},r.prototype.__upTargetsStyle=function(t,e){var n,r=null===(n=this.em)||void 0===n?void 0:n.get("StyleManager");null==r||r.addStyleTargets(Bp(Bp({},t),{__p:!!e.avoidStore}),e)},r.prototype._up=function(t,e){void 0===e&&(e={}),e.noTarget&&(e.__up=!0);var n=e.partial,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["partial"]);return t.__p=!(!r.avoidStore&&!n),this.set(t,Bp(Bp({},r),{avoidStore:t.__p}))},r.prototype.up=function(t,e){void 0===e&&(e={}),this.set(t,Bp(Bp({},e),{__up:!0}))},r.prototype.init=function(){},r.prototype.getId=function(){return this.get("id")},r.prototype.getType=function(){return this.get("type")},r.prototype.getName=function(){return this.get("property")},r.prototype.getLabel=function(t){var e;void 0===t&&(t={});var n=t.locale,r=void 0===n||n,o=this.getId(),i=this.get("name")||this.get("label");return r&&(null===(e=this.em)||void 0===e?void 0:e.t("styleManager.properties.".concat(o)))||i},r.prototype.getValue=function(t){void 0===t&&(t={});var e=t.noDefault,n=this.get("value");return this.hasValue()||e?n:this.getDefaultValue()},r.prototype.hasValue=function(e){void 0===e&&(e={});var n=e.noParent&&this.getParentTarget(),r=this.get("value");return!(0,t.isUndefined)(r)&&""!==r&&!n},r.prototype.hasValueParent=function(){return this.hasValue()&&!this.hasValue({noParent:!0})},r.prototype.getStyle=function(t){var n;void 0===t&&(t={});var r=this.getName();return(n={})[t.camelCase?(0,e.camelCase)(r):r]=this.__getFullValue(t),n},r.prototype.getDefaultValue=function(){var e=this.get("default");return"".concat((0,t.isUndefined)(e)?this.get("defaults"):e)},r.prototype.upValue=function(t,e){void 0===e&&(e={});var n=null===t||""===t?this.__getClearProps():this.__parseValue(t,e);return this._up(n,e)},r.prototype.isVisible=function(){return!!this.get("visible")},r.prototype.clear=function(t){return void 0===t&&(t={}),this._up(this.__getClearProps(),Bp(Bp({},t),{__clear:!0})),this},r.prototype.canClear=function(){var t=this.getParent();return t?t.__canClearProp(this):this.hasValue({noParent:!0})},r.prototype.getParent=function(){return this.__getParentProp()},r.prototype.isFull=function(){return!!this.get("full")},r.prototype.__parseValue=function(t,e){return this.parseValue(t,e)},r.prototype.__getClearProps=function(){return{value:""}},r.prototype.setValue=function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n={});var r=this.parseValue(t),o=!e;!o&&this.set({value:void 0},{avoidStore:o,silent:!0}),this.set(r,Bp({avoidStore:o},n))},r.prototype.setValueFromInput=function(t,e,n){void 0===n&&(n={}),this.setValue(t,e,Bp(Bp({},n),{fromInput:1}))},r.prototype.parseValue=function(e,n){void 0===n&&(n={});var r={value:e},o="!important";if((0,t.isString)(e)&&-1!==e.indexOf(o)&&(r.value=e.replace(o,"").trim(),r.important=!0),!this.get("functionName")&&!n.complete)return r;var i=[],a="".concat(r.value),s=a.indexOf("(")+1,l=a.lastIndexOf(")"),c=a.substring(0,s-1);if(c&&(r.functionName=c),i.push(s),l>=0&&i.push(l),r.value=String.prototype.substring.apply(a,i),n.numeric){var u=parseFloat(r.value);r.unit=r.value.replace(u,""),r.value=u}return r},r.prototype.__getFullValue=function(t){var e=(void 0===t?{}:t).withDefault;return!this.hasValue()&&e?this.getDefaultValue():this.getFullValue()},r.prototype.getFullValue=function(e,n){void 0===n&&(n={});var r=this.get("functionName"),o=this.getDefaultValue(),i=(0,t.isUndefined)(e)?this.get("value"):e,a=!(0,t.isUndefined)(i)&&""!==i;if(i&&o&&i===o)return o;if(r&&a){var s="url"===r?"'".concat(i.replace(/'|"/g,""),"'"):i;i="".concat(r,"(").concat(s,")")}return a&&this.get("important")&&!n.skipImportant&&(i="".concat(i," !important")),i||""},r.prototype.__setParentTarget=function(t){this.up({parentTarget:t})},r.prototype.getParentTarget=function(){return this.get("parentTarget")||null},r.prototype.__parseFn=function(t){void 0===t&&(t="");var e=t.indexOf("(")+1,n=t.lastIndexOf(")");return{name:t.substring(0,e-1).trim(),value:String.prototype.substring.apply(t,[e,n>=0?n:void 0]).trim()}},r.prototype.__checkVisibility=function(n){var r=n.target,o=n.component,i=n.sectors,a=o||r;if(!a)return!1;var s=this.getId(),l=this.getName(),c=this.get("toRequire"),u=this.get("requires"),p=this.get("requiresParent"),f=a.get("unstylable"),d=a.get("stylable-require"),h=a.get("stylable");if((0,t.isArray)(h)&&(h=h.indexOf(l)>=0),(0,t.isArray)(f)&&(h=f.indexOf(l)<0),c&&(h=!r||d&&(d.indexOf(s)>=0||d.indexOf(l)>=0)),i&&u){var g=(0,t.keys)(u);i.forEach((function(e){e.getProperties().forEach((function(e){if((0,t.includes)(g,e.id)){var n=u[e.id];h=h&&(0,t.includes)(n,e.get("value"))}}))}))}if(p){var m=o&&o.parent(),v=m&&m.getEl();if(v){var y=(0,e.hasWin)()?window.getComputedStyle(v):{};(0,t.each)(p,(function(e,n){h=h&&y[n]&&(0,t.includes)(e,y[n])}))}else h=!1}return!!h},r}(u.Hn);const Hp=Up;Up.callParentInit=function(t,e,n,r){void 0===r&&(r={}),t.prototype.initialize.apply(e,[n,Bp(Bp({},r),{skipInit:1})])},Up.callInit=function(t,e,n){void 0===n&&(n={}),!n.skipInit&&t.init(e,n)};var Vp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qp=function(){return qp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},qp.apply(this,arguments)},zp=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Vp(n,t),n.prototype.defaults=function(){return{values:{}}},n.prototype.initialize=function(){var t=this.collection;this.prop=null==t?void 0:t.prop},n.prototype.getId=function(){return this.cid},n.prototype.getIndex=function(){var t=this.collection;return t?t.indexOf(this):-1},n.prototype.getValues=function(t){void 0===t&&(t={});var n=this.get("values");return t.camelCase?Object.keys(n).reduce((function(t,r){return t[(0,e.camelCase)(r)]=n[r],t}),{}):n},n.prototype.getLabel=function(){var t;return null===(t=this.prop)||void 0===t?void 0:t.getLayerLabel(this)},n.prototype.isSelected=function(){var t;return(null===(t=this.prop)||void 0===t?void 0:t.getSelectedLayer())===this},n.prototype.select=function(){var t;return null===(t=this.prop)||void 0===t?void 0:t.selectLayer(this)},n.prototype.remove=function(){var t;return null===(t=this.prop)||void 0===t?void 0:t.removeLayer(this)},n.prototype.move=function(t){var e;return null===(e=this.prop)||void 0===e?void 0:e.moveLayer(this,t)},n.prototype.getStylePreview=function(t){var e;return void 0===t&&(t={}),null===(e=this.prop)||void 0===e?void 0:e.getStylePreview(this,t)},n.prototype.hasPreview=function(){var t;return!!(null===(t=this.prop)||void 0===t?void 0:t.get("preview"))},n.prototype.upValues=function(t){return void 0===t&&(t={}),this.set("values",qp(qp({},this.getValues()),t))},n}(u.Hn);const Gp=zp;var Wp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Wp(e,t),e.prototype.initialize=function(t,e){void 0===e&&(e={}),this.prop=e.prop},e}(u.FE);const Kp=Yp;Yp.prototype.model=Gp;var $p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xp=function(){return Xp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Xp.apply(this,arguments)},Qp=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Zp=function(t){return"integer"===t||"number"===t},Jp=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return $p(r,n),r.prototype.defaults=function(){return Xp(Xp({},Hp.getDefaults()),{detached:!1,properties:[],separator:" ",join:null,fromStyle:null,toStyle:null,full:!0})},r.prototype.initialize=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Hp.callParentInit(Hp,this,t,e);var n=this.em,r=new ld(this.get("properties")||[],{em:n,parentProp:this});this.set("properties",r,{silent:!0}),this.listenTo(r,"change",this.__upProperties),Hp.callInit(this,t,e)},Object.defineProperty(r.prototype,"properties",{get:function(){return this.get("properties")||[]},enumerable:!1,configurable:!0}),r.prototype.getProperties=function(){return Qp([],this.get("properties").models,!0)},r.prototype.getProperty=function(t){return this.properties.filter((function(e){return e.getId()===t||e.getName()===t}))[0]},r.prototype.getPropertyAt=function(t){return this.get("properties").at(t)},r.prototype.isDetached=function(){return!!this.get("detached")},r.prototype.getValues=function(t){var e=(void 0===t?{}:t).byName;return this.getProperties().reduce((function(t,n){return t[e?n.getName():n.getId()]="".concat(n.__getFullValue()),t}),{})},r.prototype.getSeparator=function(){return this.getSplitSeparator()},r.prototype.getJoin=function(){return this.__getJoin()},r.prototype.getStyleFromProps=function(t){var n;void 0===t&&(t={});var r=this.getName(),o=this.__getJoin(),i=this.get("toStyle"),a=this.getValues(),s={};if(i)s=i(a,{join:o,name:r,property:this});else if(a=this.getValues({byName:!0}),this.isDetached())s=a;else{var l=this.getProperties().map((function(t){return t.__getFullValue({withDefault:1})})).filter(Boolean).join(o);(n={})[r]=l,s=n}return this.isDetached()?s[r]="":(s[r]=s[r]||"",s=Xp(Xp({},s),this.getProperties().reduce((function(t,e){return t[e.getName()]="",t}),{}))),t.camelCase?Object.keys(s).reduce((function(t,n){return t[(0,e.camelCase)(n)]=s[n],t}),{}):s},r.prototype.getSplitSeparator=function(){return new RegExp("".concat(this.get("separator"),"(?![^\\(]*\\))"))},r.prototype.__upProperties=function(t,e){if(void 0===e&&(e={}),!e.__up&&!e.__clearIn){var n=this.__getParentProp();if(n)return n.__upProperties(this,e);this.__upTargetsStyleProps(e,t)}},r.prototype.__upTargetsStyleProps=function(t,e){var n;void 0===t&&(t={});var r=this.getStyleFromProps();if(this.isDetached()&&e){var o=e.getName();(n={})[o]=r[o],r=n}this.__upTargetsStyle(r,t)},r.prototype._up=function(t,e){return void 0===e&&(e={}),this.__setProperties(this.__getSplitValue(t.value),e),Hp.prototype._up.call(this,t,e),this},r.prototype.getStyle=function(t){return this.getStyleFromProps(t)},r.prototype.__getFullValue=function(t){if(void 0===t&&(t={}),this.isDetached()||t.__clear)return"";var e=this.getStyleFromProps()[this.getName()]||"";return Ee(e)},r.prototype.__getJoin=function(){var e=this.get("join");return(0,t.isString)(e)?e:this.get("separator")},r.prototype.__styleHasProps=function(e){void 0===e&&(e={});var n=this.getName(),r=this.getProperties().map((function(t){return t.getName()}));return Qp([n],r,!0).some((function(n){return!(0,t.isUndefined)(e[n])&&""!==e[n]}))},r.prototype.__splitValue=function(t,e){return Ee(t).split(e).map((function(t){return t.trim()})).filter(Boolean)},r.prototype.__splitStyleName=function(t,e,n){return this.__splitValue(t[e]||"",n)},r.prototype.__getSplitValue=function(e,n){void 0===e&&(e="");var r=(void 0===n?{}:n).byName,o=this.getProperties(),i=4===o.length&&o.every((function(t){return Zp(t.getType())})),a=this.__splitValue(e,this.getSplitSeparator()),s={};return o.forEach((function(e,n){var o=a[n],l=(0,t.isUndefined)(o)?"":o;if(i){var c=a.length;l=a[n]||a[n%c+(1!=c&&c%2?1:0)]||l}var u=r?e.getName():e.getId();s[u]=l||""})),s},r.prototype.__getPropsFromStyle=function(e,n){if(void 0===e&&(e={}),void 0===n&&(n={}),!this.__styleHasProps(e))return null;var r=n.byName,o=this.getName(),i=this.getProperties(),a=this.getSplitSeparator(),s=this.get("fromStyle"),l=s?s(e,{property:this,name:o,separator:a}):{};return s||(l=this.__getSplitValue(e[o]||"",{byName:r}),i.forEach((function(n){var o=e[n.getName()],i=r?n.getName():n.getId();(0,t.isUndefined)(o)||""===o||(l[i]=o)}))),l},r.prototype.__setProperties=function(e,n){void 0===e&&(e={}),void 0===n&&(n={}),this.getProperties().forEach((function(t){var r=e[t.getId()];t.__getFullValue()!==r&&t.upValue(r,n)}));var r=(0,t.keys)(e).map((function(t){return e[t]})).join(" ");this.set("value",r,{silent:!0})},r.prototype.clear=function(){var t=this;return this.getProperties().map((function(e){return e.clear({__clearIn:!t.isDetached()})})),Hp.prototype.clear.call(this),this},r.prototype.hasValue=function(t){return this.getProperties().some((function(e){return e.hasValue(t)}))},r.prototype.getFullValue=function(){return this.__getFullValue()},r.prototype.__canClearProp=function(t){return this.isDetached()&&t.hasValue({noParent:!0})},r}(Hp);const tf=Jp;var ef=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nf=function(){return nf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},nf.apply(this,arguments)},rf=/,(?![^\(]*\))/,of=/\s(?![^(]*\))/,af=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return ef(r,n),r.prototype.defaults=function(){return nf(nf({},tf.getDefaults()),{layers:[],layerSeparator:", ",layerJoin:"",prepend:0,preview:!1,layerLabel:null,selectedLayer:null})},r.prototype.initialize=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),tf.callParentInit(tf,this,t,e);var n=this.get("layers"),r=new Kp(n,{prop:this});r.property=this,r.properties=this.get("properties"),this.set("layers",r,{silent:!0}),this.on("change:selectedLayer",this.__upSelected),this.listenTo(r,"add remove",this.__upLayers),tf.callInit(this,t,e)},r.prototype.getLayers=function(){return this.__getLayers().models},r.prototype.__getLayers=function(){return this.get("layers")},r.prototype.getLayer=function(t){return void 0===t&&(t=0),this.__getLayers().at(t)||void 0},r.prototype.getSelectedLayer=function(){var t=this.get("selectedLayer");return t&&t.getIndex()>=0?t:void 0},r.prototype.selectLayer=function(t){return this.set("selectedLayer",t,{__select:!0})},r.prototype.selectLayerAt=function(t){void 0===t&&(t=0);var e=this.getLayer(t);return e&&this.selectLayer(e)},r.prototype.moveLayer=function(e,n){void 0===n&&(n=0);var r=e?e.getIndex():-1;r>=0&&(0,t.isNumber)(n)&&n>=0&&n<this.getLayers().length&&r!==n&&(this.removeLayer(e),this.__getLayers().add(e,{at:n}))},r.prototype.addLayer=function(e,n){void 0===e&&(e={}),void 0===n&&(n={});var r={};return this.getProperties().forEach((function(n){var o=n.getId(),i=e[o];r[o]=(0,t.isUndefined)(i)?n.getDefaultValue():i})),this.__getLayers().push({values:r},n)},r.prototype.removeLayer=function(t){return this.__getLayers().remove(t)},r.prototype.removeLayerAt=function(t){void 0===t&&(t=0);var e=this.getLayer(t);return e?this.removeLayer(e):null},r.prototype.getLayerLabel=function(t){var e="";if(t){var n=this.get("layerLabel"),r=t.getValues(),o=t.getIndex();if(n)e=n(t,{index:o,values:r,property:this});else{var i=[];this.getProperties().map((function(t){i.push(r[t.getId()])})),e=i.filter(Boolean).join(" ")}}return e},r.prototype.getStyleFromLayer=function(n,r){var o;void 0===r&&(r={});var i,a=this.__getJoin(),s=this.__getJoinLayers(),l=this.get("toStyle"),c=this.getName(),u=n.getValues();if(l)i=l(u,{join:a,joinLayers:s,name:c,layer:n,property:this});else{var p=this.getProperties().map((function(e){var n=e.getName(),o=u[e.getId()],i=(0,t.isUndefined)(o)?e.getDefaultValue():o;if(r.number&&Zp(e.getType())){var a=e.parseValue(o,r.number);i="".concat(a.value).concat(a.unit)}return{name:n,value:i}}));i=this.isDetached()?p.reduce((function(t,e){return t[e.name]=e.value,t}),{}):((o={})[this.getName()]=p.map((function(t){return t.value})).join(a),o)}return r.camelCase?Object.keys(i).reduce((function(t,n){return t[(0,e.camelCase)(n)]=i[n],t}),{}):i},r.prototype.getStylePreview=function(t,e){void 0===e&&(e={});var n={};return this.get("preview")&&(n=this.getStyleFromLayer(t,e)),n},r.prototype.getLayerSeparator=function(){var e=this.get("layerSeparator");return(0,t.isString)(e)?new RegExp("".concat(e,"(?![^\\(]*\\))")):e},r.prototype.__upProperties=function(t,e){var n;void 0===e&&(e={});var r=this.getSelectedLayer();r&&(r.upValues(((n={})[t.getId()]=t.__getFullValue(),n)),e.__up||this.__upTargetsStyleProps(e))},r.prototype.__upLayers=function(t,e,n){this.__upTargetsStyleProps(n||e)},r.prototype.__upTargets=function(t,e){if(void 0===e&&(e={}),!e.__select)return Hp.prototype.__upTargets.call(this,t,e)},r.prototype.__upTargetsStyleProps=function(t){void 0===t&&(t={}),this.__upTargetsStyle(this.getStyleFromLayers(),t)},r.prototype.__upTargetsStyle=function(t,e){return Hp.prototype.__upTargetsStyle.call(this,t,e)},r.prototype.__upSelected=function(t,e){var n=(void 0===t?{}:t).noEvent;void 0===e&&(e={});var r=this.em.Styles,o=this.getSelectedLayer(),i=null==o?void 0:o.getValues();i&&this.getProperties().forEach((function(t){var n,r=null!==(n=i[t.getId()])&&void 0!==n?n:"";t.__getFullValue()!==r&&t.upValue(r,nf(nf({},e),{__up:!0}))})),!n&&r.__trgEv(r.events.layerSelect,{property:this})},r.prototype._up=function(t,e){void 0===e&&(e={});var n=t.__layers,r=void 0===n?[]:n,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["__layers"]);return!this.isDetached()&&this.__setLayers(r),this.__upSelected({noEvent:!0},e),Hp.prototype._up.call(this,o,e),this},r.prototype.__setLayers=function(t){void 0===t&&(t=[]);var e=this.__getLayers(),n=t.map((function(t){return{values:t}}));e.length===n.length?n.map((function(t,n){var r;return null===(r=e.at(n))||void 0===r?void 0:r.upValues(t.values)})):this.__getLayers().reset(n),this.__upSelected({noEvent:!0})},r.prototype.__parseValue=function(t){var e=this,n=this.parseValue(t);return n.__layers=t.split(rf).map((function(t){return t.trim()})).map((function(t){return e.__parseLayer(t)})).filter(Boolean),n},r.prototype.__parseLayer=function(e){var n=this.get("parseLayer"),r=e.split(of),o=this.getProperties();return n?n({value:e,values:r}):o.reduce((function(e,n,o){var i=r[o];return e[n.getId()]=(0,t.isUndefined)(i)?n.getDefaultValue():i,e}),{})},r.prototype.__getLayersFromStyle=function(e){var n=this;if(void 0===e&&(e={}),!this.__styleHasProps(e))return null;var r=this.getName(),o=this.getProperties(),i=this.getLayerSeparator(),a=this.get("fromStyle"),s=a?a(e,{property:this,name:r,separatorLayers:i}):[];if(!a){var l=this.__splitStyleName(e,r,i).map((function(t){return t.split(n.getSplitSeparator())})).map((function(e){var n={};return o.forEach((function(r,o){var i=e[o];n[r.getId()]=(0,t.isUndefined)(i)?r.getDefaultValue():i})),n}));o.forEach((function(t){var r=t.getId();n.__splitStyleName(e,t.getName(),i).map((function(e){var n;return(n={})[r]=e||t.getDefaultValue(),n})).forEach((function(t,e){l[e]=l[e]?nf(nf({},l[e]),t):t}))})),s=l}return(0,t.isArray)(s)?s:[s]},r.prototype.getStyle=function(t){return void 0===t&&(t={}),this.getStyleFromLayers(t)},r.prototype.getStyleFromLayers=function(e){var n=this;void 0===e&&(e={});var r={},o=this.getName(),i=this.getLayers(),a=this.getProperties();if(i.map((function(t){return n.getStyleFromLayer(t,e)})).forEach((function(e){(0,t.keys)(e).map((function(t){r[t]||(r[t]=[]),r[t].push(e[t])}))})),(0,t.keys)(r).map((function(t){r[t]=r[t].join(n.__getJoinLayers())})),this.isDetached())r[o]="",!i.length&&a.map((function(t){r[t.getName()]=""}));else{var s=a.reduce((function(t,e){return t[e.getName()]="",t}),{});r[o]=r[o]||"",r=nf(nf({},r),s)}return r},r.prototype.__getJoinLayers=function(){var e=this.get("layerJoin"),n=this.get("layerSeparator");return e||((0,t.isString)(n)?n:e)},r.prototype.__getFullValue=function(){if(this.get("detached"))return"";var t=this.getStyleFromLayers();return Ee(t[this.getName()])},r.prototype.hasValue=function(t){void 0===t&&(t={});var e=t.noParent&&this.getParentTarget();return this.getLayers().length>0&&!e},r.prototype.clear=function(t){return void 0===t&&(t={}),this.__getLayers().reset(),this.__upTargetsStyleProps(t),Hp.prototype.clear.call(this),this},r.prototype.__canClearProp=function(){return!1},r}(tf);const sf=af;var lf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cf=function(){return cf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},cf.apply(this,arguments)},uf="data-clear-style",pf=function(n){function r(e){void 0===e&&(e={});var r=n.call(this,e)||this;(0,t.bindAll)(r,"__change","__updateStyle");var o=e.config||{},i=o.em;r.config=o,r.em=i,r.pfx=o.stylePrefix||"",r.ppfx=o.pStylePrefix||"",r.__destroyFn=r.destroy?r.destroy.bind(r):function(){};var a=r.model;a.view=r,r.onValueChange=(0,t.debounce)(r.onValueChange.bind(r),10),r.updateStatus=(0,t.debounce)(r.updateStatus.bind(r),0),r.listenTo(a,"destroy remove",r.remove),r.listenTo(a,"change:visible",r.updateVisibility),r.listenTo(a,"change:name change:className change:full",r.render),r.listenTo(a,"change:value",r.onValueChange),r.listenTo(a,"change:parentTarget",r.updateStatus),r.listenTo(i,"change:device",r.onValueChange);var s=r.init&&r.init.bind(r);return s&&s(),r}return lf(r,n),r.prototype.events=function(){var t;return(t={change:"inputValueChanged"})["click [".concat(uf,"]")]="clear",t},r.prototype.template=function(t){var e=this.pfx,n=this.ppfx;return'\n <div class="'.concat(e,'label" data-sm-label></div>\n <div class="').concat(n,'fields" data-sm-fields></div>\n ')},r.prototype.templateLabel=function(t){var e=this.pfx,n=this.em,r=t.parent,o=t.attributes,i=o.icon,a=void 0===i?"":i,s=o.info,l=void 0===s?"":s,c=null==n?void 0:n.getConfig().icons,u=(null==c?void 0:c.close)||"";return'\n <span class="'.concat(e,"icon ").concat(a,'" title="').concat(l,'">\n ').concat(t.getLabel(),"\n </span>\n ").concat(r?"":'<div class="'.concat(e,'clear" style="display: none" ').concat(uf,">").concat(u,"</div>"),"\n ")},r.prototype.templateInput=function(t){return'\n <div class="'.concat(this.ppfx,'field">\n <input placeholder="').concat(t.getDefaultValue(),'"/>\n </div>\n ')},r.prototype.remove=function(){var t=this;return u.G7.prototype.remove.apply(this,arguments),["em","input","$input","view"].forEach((function(e){return t[e]=null})),this.__destroyFn(this._getClbOpts()),this},r.prototype.updateStatus=function(){var t,e=this,n=e.model,r=e.pfx,o=e.ppfx,i=e.config,a="".concat(o,"four-color"),s="".concat(o,"color-warn"),l=this.$el.children(".".concat(r,"label")),c=this.getClearEl(),u=c?c.style:{};l.removeClass("".concat(a," ").concat(s)),u.display="none",n.hasValue({noParent:!0})&&i.highlightChanged?(l.addClass(a),i.clearProperties&&(u.display="")):n.hasValue()&&i.highlightComputed&&l.addClass(s),null===(t=this.parent)||void 0===t||t.updateStatus()},r.prototype.clear=function(t){t&&t.stopPropagation(),this.model.clear()},r.prototype.getClearEl=function(){return this.clearEl||(this.clearEl=this.el.querySelector("[".concat(uf,"]"))),this.clearEl},r.prototype.inputValueChanged=function(t){t&&t.stopPropagation(),this.emit||this.model.upValue(t.target.value)},r.prototype.onValueChange=function(t,e,n){void 0===n&&(n={}),this.setValue(this.model.getFullValue(void 0,{skipImportant:!0})),this.updateStatus()},r.prototype.setValue=function(e){var n=this.model,r=(0,t.isUndefined)(e)||""===e?n.getDefaultValue():e;if(this.update)return this.__update(r);this.__setValueInput(r)},r.prototype.__setValueInput=function(t){var e=this.getInputEl();e&&(e.value=t)},r.prototype.getInputEl=function(){return this.input||(this.input=this.el.querySelector("input")),this.input},r.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?"":"none"},r.prototype.clearCached=function(){delete this.clearEl,delete this.input,delete this.$input},r.prototype.__unset=function(){var t=this.unset&&this.unset.bind(this);t&&t(this._getClbOpts())},r.prototype.__update=function(t){var e=this.update&&this.update.bind(this);e&&e(cf(cf({},this._getClbOpts()),{value:t}))},r.prototype.__change=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.emit&&this.emit.bind(this);n&&n.apply(void 0,function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([this._getClbOpts()],t,!1))},r.prototype.__updateStyle=function(t,n){void 0===n&&(n={});var r=n.complete,o=n.partial,i=(function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}}(n,["complete","partial"]),this.model),a=!1!==r&&!0!==o;(0,e.isObject)(t)?i.__upTargetsStyle(t,{avoidStore:!a}):i.upValue(t,{partial:!a})},r.prototype._getClbOpts=function(){var t=this,e=t.model;return{el:t.el,createdEl:t.createdEl,property:e,props:e.attributes,change:this.__change,updateStyle:this.__updateStyle}},r.prototype.render=function(){this.clearCached();var t=this,e=t.pfx,n=t.model,r=t.el,o=t.$el,i=n.getName(),a=n.getType(),s=n.get("className")||"",l="".concat(e,"property"),c="number"===a?"".concat(e).concat(a," ").concat(e,"integer"):"".concat(e).concat(a);this.createdEl&&this.__destroyFn(this._getClbOpts()),o.empty().append(this.template(n)),o.find("[data-sm-label]").append(this.templateLabel(n));var u=this.create&&this.create.bind(this);this.createdEl=u&&u(this._getClbOpts()),o.find("[data-sm-fields]").append(this.createdEl||this.templateInput(n)),r.className="".concat(l," ").concat(c," ").concat(l,"__").concat(i," ").concat(s).trim(),r.className+=n.isFull()?" ".concat(l,"--full"):"";var p=this.onRender&&this.onRender.bind(this);return p&&p(),this.setValue(n.getValue()),this},r.prototype.onRender=function(){},r}(u.G7);const ff=pf;var df=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const hf=function(t){function e(e){var n=t.call(this,e)||this;n.config=e.config||{},n.pfx=n.config.stylePrefix||"",n.properties=[],n.parent=e.parent;var r=n.collection;return n.listenTo(r,"add",n.addTo),n.listenTo(r,"reset",n.render),n}return df(e,t),e.prototype.addTo=function(t,e,n){this.add(t,null,n)},e.prototype.add=function(t,e,n){void 0===n&&(n={});var r=this.parent,o=this.config,i=e||this.el,a=new t.typeView({model:t,config:o});r&&(a.parent=r),a.render();var s=a.el;this.properties.push(a),(0,Dt.$Q)(i,s,n.at)},e.prototype.remove=function(){return u.G7.prototype.remove.apply(this,arguments),this.clearItems(),this},e.prototype.clearItems=function(){this.properties.forEach((function(t){return t.remove()})),this.properties=[]},e.prototype.render=function(){var t=this,e=this.$el,n=this.pfx;this.clearItems();var r=document.createDocumentFragment();return this.collection.forEach((function(e){return t.add(e,r)})),e.empty(),e.append(r),e.attr("class","".concat(n,"properties")),this},e}(u.G7);var gf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mf=function(){return mf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},mf.apply(this,arguments)},vf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gf(e,t),e.prototype.templateInput=function(){var t=this.pfx;return'\n <div class="'.concat(t,"field ").concat(t,'composite">\n <span id="').concat(t,'input-holder"></span>\n </div>\n ')},e.prototype.remove=function(){var t;return null===(t=this.props)||void 0===t||t.remove(),ff.prototype.remove.apply(this,arguments),this},e.prototype.onValueChange=function(){},e.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.get("properties");if(n.length&&!this.props){var r=e.isDetached(),o=new hf({config:mf(mf({},this.config),{highlightComputed:r,highlightChanged:r}),collection:n,parent:this});o.render(),this.$el.find("#".concat(t,"input-holder")).append(o.el),this.props=o}},e.prototype.clearCached=function(){ff.prototype.clearCached.apply(this,arguments),delete this.props},e}(ff);const yf=vf;var bf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_f=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return bf(n,e),n.prototype.events=function(){return{click:"select","click [data-close-layer]":"removeItem","mousedown [data-move-layer]":"initSorter","touchstart [data-move-layer]":"initSorter"}},n.prototype.template=function(){var t=this,e=t.pfx,n=t.ppfx,r=t.em,o=null==r?void 0:r.getConfig().icons,i=(null==o?void 0:o.close)||"",a=(null==o?void 0:o.move)||"";return'\n <div class="'.concat(e,'label-wrp">\n <div id="').concat(e,'move" class="').concat(n,'no-touch-actions" data-move-layer>\n ').concat(a,'\n </div>\n <div id="').concat(e,'label" data-label></div>\n <div id="').concat(e,'preview-box" class="').concat(e,'layer-preview" style="display: none" data-preview-box>\n <div id="').concat(e,'preview" class="').concat(e,'layer-preview-cnt" data-preview></div>\n </div>\n <div id="').concat(e,'close-layer" class="').concat(e,'btn-close" data-close-layer>\n ').concat(i,'\n </div>\n </div>\n <div id="').concat(e,'inputs" data-properties></div>\n ')},n.prototype.initialize=function(t){void 0===t&&(t={});var e=this.model,n=t.config||{};this.em=n.em,this.config=n,this.sorter=t.sorter,this.pfx=n.stylePrefix||"",this.ppfx=n.pStylePrefix||"",this.propertyView=t.propertyView;var r=this.propertyView.model;this.listenTo(e,"destroy remove",this.remove),this.listenTo(e,"change:values",this.updateLabel),this.listenTo(r,"change:selectedLayer",this.updateVisibility),e.view=this,e.set({droppable:0,draggable:1}),this.$el.data("model",e)},n.prototype.initSorter=function(){var t;null===(t=this.sorter)||void 0===t||t.startSort(this.el)},n.prototype.removeItem=function(t){t&&t.stopPropagation(),this.model.remove()},n.prototype.select=function(){this.model.select()},n.prototype.getPropertiesWrapper=function(){return this.propsWrapEl||(this.propsWrapEl=this.el.querySelector("[data-properties]")),this.propsWrapEl},n.prototype.getPreviewEl=function(){return this.previewEl||(this.previewEl=this.el.querySelector("[data-preview]")),this.previewEl},n.prototype.getLabelEl=function(){return this.labelEl||(this.labelEl=this.el.querySelector("[data-label]")),this.labelEl},n.prototype.updateLabel=function(){var e=this.model,n=e.getLabel();if(this.getLabelEl().innerHTML=n,e.hasPreview()){var r=this.getPreviewEl(),o=e.getStylePreview({number:{min:-3,max:3}}),i=(0,t.keys)(o).map((function(t){return"".concat(t,":").concat(o[t])})).join(";");r.setAttribute("style",i)}},n.prototype.updateVisibility=function(){var t,e=this,n=e.pfx,r=e.model,o=e.propertyView,i=this.getPropertiesWrapper(),a=r.isSelected();i.style.display=a?"":"none",this.$el[a?"addClass":"removeClass"]("".concat(n,"active")),a&&i.appendChild(null===(t=o.props)||void 0===t?void 0:t.el)},n.prototype.render=function(){var t=this,e=t.el,n=t.pfx,r=t.model;return e.innerHTML=this.template(),e.className="".concat(n,"layer"),r.hasPreview()&&(e.querySelector("[data-preview-box]").style.display=""),this.updateLabel(),this.updateVisibility(),this},n}(u.G7);const wf=_f;var Ef=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xf=function(t){function e(e){var n=t.call(this,e)||this,r=n.collection,o=e.config||{},i=o.em,a=o.stylePrefix||"",s=o.pStylePrefix||"";n.config=o,n.pfx=a,n.ppfx=s,n.propertyView=e.propertyView,n.className="".concat(a,"layers ").concat(s,"field"),n.listenTo(r,"add",n.addTo),n.listenTo(r,"reset",n.reset),n.items=[];var l=null==i?void 0:i.Utils;return n.sorter=l?new l.Sorter({container:n.el,ignoreViewChildren:1,containerSel:".".concat(a,"layers"),itemSel:".".concat(a,"layer"),pfx:o.pStylePrefix,em:i}):"",r.view=n,n.$el.data("model",r),n.$el.data("collection",r),n}return Ef(e,t),e.prototype.addTo=function(t){var e=this.collection.indexOf(t);this.addToCollection(t,null,e)},e.prototype.addToCollection=function(t,e,n){var r=e||null,o=this,i=o.propertyView,a=o.config,s=o.sorter,l=o.$el,c=new wf({model:t,config:a,sorter:s,propertyView:i}),u=c.render().el;if(this.items.push(c),r)r.appendChild(u);else if(void 0!==n){var p="before";l.children().length===n&&(n--,p="after"),n<0?l.append(u):l.children().eq(n)[p](u)}else l.append(u);return u},e.prototype.reset=function(t,e){this.clearItems(),this.render()},e.prototype.remove=function(){return this.clearItems(),u.G7.prototype.remove.apply(this,arguments),this},e.prototype.clearItems=function(){this.items.forEach((function(t){return t.remove()})),this.items=[]},e.prototype.render=function(){var t=this,e=this.$el,n=this.sorter,r=document.createDocumentFragment();return e.empty(),this.collection.forEach((function(e){return t.addToCollection(e,r)})),e.append(r),e.attr("class",this.className),n&&(n.plh=null),this},e}(u.G7);const Tf=xf;var Cf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Af=function(){return Af=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Af.apply(this,arguments)},Of=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Cf(e,t),e.prototype.events=function(){return Af(Af({},yf.prototype.events()),{"click [data-add-layer]":"addLayer",change:""})},e.prototype.templateInput=function(){var t=this.pfx,e=this.em,n=null==e?void 0:e.getConfig().icons,r=(null==n?void 0:n.plus)||"+";return'\n <div class="'.concat(t,"field ").concat(t,'stack">\n <button type="button" id="').concat(t,'add" data-add-layer>\n ').concat(r,"\n </button>\n <div data-layers-wrapper></div>\n </div>\n ")},e.prototype.init=function(){var t=this.model;this.listenTo(t.__getLayers(),"change reset",this.updateStatus)},e.prototype.addLayer=function(){this.model.addLayer({},{at:0})},e.prototype.setValue=function(){},e.prototype.remove=function(){var t;return null===(t=this.layersView)||void 0===t||t.remove(),yf.prototype.remove.apply(this,arguments),this},e.prototype.clearCached=function(){yf.prototype.clearCached.apply(this,arguments),delete this.layersView},e.prototype.onRender=function(){var t=this,e=t.model,n=t.el,r=t.config,o=e.get("properties");if(o.length&&!this.props){var i=new hf({config:Af(Af({},r),{highlightComputed:!1,highlightChanged:!1}),collection:o,parent:this});i.render();var a=new Tf({collection:e.__getLayers(),config:r,propertyView:this});a.render(),n.querySelector("[data-layers-wrapper]").appendChild(a.el),this.props=i,this.layersView=a}},e}(yf);const Sf=Of;var kf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pf=function(){return Pf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Pf.apply(this,arguments)},jf=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return kf(n,e),n.prototype.events=function(){return Pf(Pf({},ff.prototype.events()),{"click [data-clear-asset]":"clear","click [data-open-assets]":"openAssetManager"})},n.prototype.templateInput=function(){var t,e=this.pfx,n=this.em,r=null===(t=this.em)||void 0===t?void 0:t.getConfig().icons,o=null==r?void 0:r.close;return'\n <div class="'.concat(e,"field ").concat(e,"file\">\n <div id='").concat(e,"input-holder'>\n <div class=\"").concat(e,'btn-c">\n <button class="').concat(e,'btn" id="').concat(e,'images" type="button" data-open-assets>\n ').concat(n.t("styleManager.fileButton"),'\n </button>\n </div>\n <div style="clear:both;"></div>\n </div>\n <div id="').concat(e,'preview-box" class="').concat(e,'preview-file" data-preview-box>\n <div id="').concat(e,'preview-file" class="').concat(e,'preview-file-cnt" data-preview></div>\n <div id="').concat(e,'close" class="').concat(e,'preview-file-close" data-clear-asset>').concat(o,"</div>\n </div>\n </div>\n ")},n.prototype.__setValueInput=function(t){var e=this.model,n=this.el,r=e.getDefaultValue(),o=n.querySelector("[data-preview-box]"),i=n.querySelector("[data-preview]");o.style.display=t&&t!==r?"":"none",i.style.backgroundImage=t||e.getDefaultValue()},n.prototype.openAssetManager=function(){var e,n=this,r=null===(e=this.em)||void 0===e?void 0:e.Assets;null==r||r.open({select:function(e,o){var i=(0,t.isString)(e)?e:e.get("src");n.model.upValue(i,{partial:!o}),o&&r.close()},types:["image"],accept:"image/*"})},n}(ff);const Nf=jf;var Lf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Df=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lf(e,t),e.prototype.templateInput=function(t){return""},e.prototype.init=function(){var t=this.model;this.listenTo(t,"change:unit",this.onValueChange),this.listenTo(t,"change:units",this.render)},e.prototype.setValue=function(t){},e.prototype.onRender=function(){var t=this,e=t.ppfx,n=t.model,r=t.el;if(!this.inputInst){var o=n.input;o.ppfx=e,o.render(),r.querySelector(".".concat(e,"fields")).appendChild(o.el),this.input=o.inputEl.get(0),this.inputInst=o}},e.prototype.clearCached=function(){ff.prototype.clearCached.apply(this,arguments),this.inputInst=null},e}(ff);const If=Df;var Rf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rf(e,t),e.prototype.setValue=function(t){var e;null===(e=this.inputInst)||void 0===e||e.setValue(t,{fromTarget:1,def:this.model.getDefaultValue()})},e.prototype.remove=function(){var t=this;If.prototype.remove.apply(this,arguments);var e=this.inputInst;return e&&e.remove&&e.remove(),["inputInst","$color"].forEach((function(e){return t[e]=null})),this},e.prototype.__handleChange=function(t,e){this.model.upValue(t,{partial:e})},e.prototype.onRender=function(){var t;if(!this.inputInst){this.__handleChange=this.__handleChange.bind(this);var e=this,n=e.ppfx,r=e.model,o=e.em,i=e.el,a=new Ss({target:o,model:r,ppfx:n,onChange:this.__handleChange}).render();i.querySelector(".".concat(n,"fields")).appendChild(a.el),this.input=null===(t=a.inputEl)||void 0===t?void 0:t.get(0),this.inputInst=a}},e}(If);const Bf=Mf;var Ff=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uf=function(){return Uf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Uf.apply(this,arguments)},Hf=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Vf=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return Ff(r,n),r.prototype.defaults=function(){return Uf(Uf({},Hp.getDefaults()),{options:[],full:0})},r.prototype.getOptions=function(){var t=this.attributes,e=t.options,n=t.list;return(e&&e.length?e:n)||[]},r.prototype.getOption=function(t){var n=this,r=(0,e.isDef)(t)?t:this.getValue();return this.getOptions().filter((function(t){return n.getOptionId(t)===r}))[0]||null},r.prototype.setOptions=function(t){return void 0===t&&(t=[]),this.set("options",t),this},r.prototype.addOption=function(t){if(t){var e=this.getOptions();this.setOptions(Hf(Hf([],e,!0),[t],!1))}return this},r.prototype.getOptionId=function(t){return(0,e.isDef)(t.id)?t.id:t.value},r.prototype.getOptionLabel=function(e,n){var r;void 0===n&&(n={});var o=n.locale,i=void 0===o||o,a=((0,t.isString)(e)?this.getOption(e):e)||{},s=this.getOptionId(a),l=a.label||a.name||s,c=n.property||this.getId();return i&&(null===(r=this.em)||void 0===r?void 0:r.t("styleManager.options.".concat(c,".").concat(s)))||l},r.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];Hp.prototype.initialize.apply(this,t),this.listenTo(this,"change:options",this.__onOptionChange)},r.prototype.__onOptionChange=function(){this.set("list",this.get("options"))},r}(Hp);const qf=Vf;var zf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Gf=function(t){function e(e){var n=t.call(this,e)||this;return n.listenTo(n.model,"change:options",n.updateOptions),n}return zf(e,t),e.prototype.templateInput=function(){var t=this.pfx,e=this.ppfx;return'\n <div class="'.concat(e,"field ").concat(e,'select">\n <span id="').concat(t,'input-holder"></span>\n <div class="').concat(e,'sel-arrow">\n <div class="').concat(e,'d-s-arrow"></div>\n </div>\n </div>\n ')},e.prototype.updateOptions=function(){delete this.input,this.onRender()},e.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.getOptions();if(!this.input){var r=[];n.forEach((function(t){var n=e.getOptionId(t),o=e.getOptionLabel(n),i=t.style?t.style.replace(/"/g,"""):"",a=i?'style="'.concat(i,'"'):"",s=n.replace(/"/g,""");r.push('<option value="'.concat(s,'" ').concat(a,">").concat(o,"</option>"))}));var o=this.el.querySelector("#".concat(t,"input-holder"));o.innerHTML="<select>".concat(r.join(""),"</select>"),this.input=o.firstChild}},e.prototype.__setValueInput=function(t){var e=this.model,n=this.getInputEl(),r=e.getOptions()[0],o=r?e.getOptionId(r):"";n&&(n.value=t||o)},e}(ff);var Wf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yf=function(){return Yf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yf.apply(this,arguments)};const Kf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Wf(e,t),e.prototype.defaults=function(){return Yf(Yf({},qf.getDefaults()),{full:1})},e}(qf);var $f=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $f(e,t),e.prototype.templateInput=function(){var t=this.ppfx;return'<div class="'.concat(t,"field ").concat(t,'field-radio"></div>')},e.prototype.onRender=function(){var t=this.pfx,e=this.ppfx,n=this.model,r="".concat(e,"radio-item-label"),o=n.getName(),i=n.getOptions(),a="".concat(t,"radio ").concat(t,"radio-").concat(o),s=n.cid;if(!this.input){var l=[];i.forEach((function(i){var c=i.className?"".concat(i.className," ").concat(t,"icon ").concat(r):"",u=n.getOptionId(i),p="".concat(o,"-").concat(u,"-").concat(s),f=c?"":n.getOptionLabel(u),d=i.title?'title="'.concat(i.title,'"'):"",h=n.getValue()===u?"checked":"";l.push('\n <div class="'.concat(e,'radio-item">\n <input type="radio" class="').concat(a,'" id="').concat(p,'" name="').concat(o,"-").concat(s,'" value="').concat(u,'" ').concat(h,'/>\n <label class="').concat(c||r,'" ').concat(d,' for="').concat(p,'">').concat(f,"</label>\n </div>\n "))}));var c=this.el.querySelector(".".concat(e,"field"));c.innerHTML='<div class="'.concat(e,'radio-items">').concat(l.join(""),"</div>"),this.input=c.firstChild}},e.prototype.__setValueInput=function(t){var e,n=this.model,r=t||n.getDefaultValue(),o=null===(e=this.getInputEl())||void 0===e?void 0:e.querySelector('[value="'.concat(r,'"]'));o&&(o.checked=!0)},e}(Gf);const Qf=Xf;var Zf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jf=function(){return Jf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Jf.apply(this,arguments)},td=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return Zf(r,n),r.prototype.defaults=function(){return Jf(Jf({},Hp.getDefaults()),{units:[],unit:"",min:"",max:"",step:1})},r.prototype.getUnits=function(){return this.get("units")||[]},r.prototype.getUnit=function(){return this.get("unit")},r.prototype.getMin=function(){return this.get("min")},r.prototype.getMax=function(){return this.get("max")},r.prototype.getStep=function(){return this.get("step")},r.prototype.upUnit=function(t,e){return void 0===e&&(e={}),this._up({unit:t},e)},r.prototype.initialize=function(t,n){void 0===t&&(t={}),void 0===n&&(n={}),Hp.callParentInit(Hp,this,t,n);var r=this.get("unit"),o=this.getUnits();this.input=(0,e.hasWin)()?new _s({model:this}):void 0,o.length&&!r&&this.set("unit",o[0],{silent:!0}),Hp.callInit(this,t,n)},r.prototype.__getClearProps=function(){return Jf(Jf({},Hp.prototype.__getClearProps()),{unit:""})},r.prototype.parseValue=function(t,e){void 0===e&&(e={});var n=Hp.prototype.parseValue.apply(this,arguments),r=this.input.validateInputValue(n.value,Jf({deepCheck:1},e)),o=r.value,i=r.unit;return n.value=o,n.unit=i,n},r.prototype.getFullValue=function(){var e=this.get("value"),n=this.get("unit"),r=(0,t.isUndefined)(e)?"":"".concat(e),o=!(0,t.isUndefined)(n)&&r?n:"",i="".concat(r).concat(o);return Hp.prototype.getFullValue.apply(this,[i])},r}(Hp);const ed=td;var nd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rd=function(){return rd=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},rd.apply(this,arguments)};const od=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nd(e,t),e.prototype.defaults=function(){return rd(rd({},ed.getDefaults()),{showInput:1})},e}(ed);var id=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ad=function(){return ad=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ad.apply(this,arguments)};const sd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return id(e,t),e.prototype.events=function(){return ad(ad({},If.prototype.events()),{"change [type=range]":"inputValueChanged","input [type=range]":"inputValueChangedSoft",change:""})},e.prototype.templateInput=function(t){var e=this.ppfx;return'\n <div class="'.concat(e,"field ").concat(e,'field-range">\n <input type="range" min="').concat(t.get("min"),'" max="').concat(t.get("max"),'" step="').concat(t.get("step"),'"/>\n </div>\n ')},e.prototype.getSliderEl=function(){return this.slider||(this.slider=this.el.querySelector("input[type=range]")),this.slider},e.prototype.inputValueChanged=function(t){t.stopPropagation(),this.model.upValue(this.getSliderEl().value)},e.prototype.inputValueChangedSoft=function(t){t.stopPropagation(),this.model.upValue(this.getSliderEl().value,{partial:!0})},e.prototype.setValue=function(t){var e=this.model,n=e.parseValue(t);this.getSliderEl().value=""===t?e.getDefaultValue():parseFloat(n.value),If.prototype.setValue.apply(this,arguments)},e.prototype.onRender=function(){If.prototype.onRender.apply(this,arguments),this.model.get("showInput")||(this.inputInst.el.style.display="none")},e.prototype.clearCached=function(){If.prototype.clearCached.apply(this,arguments),delete this.slider},e}(If),ld=u.FE.extend(xl).extend({extendViewApi:1,init:function(){var t=this.opts,e=this.em,n=t.module||(null==e?void 0:e.get("StyleManager"));n&&(n.__listenAdd(this,n.events.propertyAdd),n.__listenRemove(this,n.events.propertyRemove))},types:[{id:"stack",model:sf,view:Sf,isType:function(t){if(t&&"stack"==t.type)return t}},{id:"composite",model:tf,view:yf,isType:function(t){if(t&&"composite"==t.type)return t}},{id:"file",model:Hp,view:Nf,isType:function(t){if(t&&"file"==t.type)return t}},{id:"color",model:Hp,view:Bf,isType:function(t){if(t&&"color"==t.type)return t}},{id:"select",model:qf,view:Gf,isType:function(t){if(t&&"select"==t.type)return t}},{id:"radio",model:Kf,view:Qf,isType:function(t){if(t&&"radio"==t.type)return t}},{id:"slider",model:od,view:sd,isType:function(t){if(t&&"slider"==t.type)return t}},{id:"integer",model:ed,view:If,isType:function(t){if(t&&"integer"==t.type)return t}},{id:"number",model:ed,view:If,isType:function(t){if(t&&"number"==t.type)return t}},{id:"base",model:Hp,view:ff,isType:function(t){return t.type="base",t}}]});var cd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ud=function(){return ud=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ud.apply(this,arguments)},pd=function(e){function n(n,r){void 0===r&&(r={});var o=e.call(this,n)||this,i=r.em;o.em=i;var a=n||{},s=o.buildProperties(a.buildProps),l=o.get("name")||"",c=[];!o.get("id")&&o.set("id",l.replace(/ /g,"_").toLowerCase()),c=(c=s?o.extendProperties(s):o.get("properties").map((function(e){return(0,t.isString)(e)?o.buildProperties(e)[0]:e})).filter(Boolean)).map((function(t){return o.checkExtend(t)}));var u=new ld(c,{em:i});return u.sector=o,o.set("properties",u),o}return cd(n,e),n.prototype.defaults=function(){return{id:"",name:"",open:!0,visible:!0,extendBuilded:!0,properties:[]}},Object.defineProperty(n.prototype,"properties",{get:function(){return this.get("properties")},enumerable:!1,configurable:!0}),n.prototype.getId=function(){return this.get("id")},n.prototype.getName=function(){var t,e=this.getId();return(null===(t=this.em)||void 0===t?void 0:t.t("styleManager.sectors.".concat(e)))||this.get("name")},n.prototype.setName=function(t){return this.set("name",t)},n.prototype.isOpen=function(){return!!this.get("open")},n.prototype.setOpen=function(t){return this.set("open",t)},n.prototype.isVisible=function(){return!!this.get("visible")},n.prototype.getProperties=function(t){void 0===t&&(t={});var e=this.get("properties");return(e.models?function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],e.models,!0):e).filter((function(e){var n=!0;return t.withValue&&(n=e.hasValue({noParent:!0})),t.withParentValue&&(n=!e.hasValue({noParent:!0})&&e.hasValue()),n}))},n.prototype.getProperty=function(t){return this.getProperties().filter((function(e){return e.get("id")===t}))[0]||void 0},n.prototype.addProperty=function(t,e){return this.get("properties").add(this.checkExtend(t),e)},n.prototype.extendProperties=function(e,n,r){void 0===r&&(r=!1);for(var o=e.length,i=n||this.get("properties"),a=this.get("extendBuilded"),s=[],l=0,c=i.length;l<c;l++){for(var u=i[l],p=0,f=0;f<o;f++){var d=e[f];if(u.property!=d.property&&u.id!=d.property);else{var h=u.properties;h&&h.length&&(u.properties=this.extendProperties(d.properties||[],h,1)),e[f]=a?(0,t.extend)(d,u):u,s[f]=e[f],p=1}}p||(e.push(u),s.push(u))}return r?s.filter((function(t){return t})):e},n.prototype.checkExtend=function(e){var n=((0,t.isString)(e)?{extend:e}:e)||{},r=n.extend,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(n,["extend"]);return r?ud(ud({},this.buildProperties([r])[0]||{}),o):e},n.prototype.buildProperties=function(t){var e,n=t||[];if(!n.length)return[];var r=null===(e=this.em)||void 0===e?void 0:e.get("StyleManager").builtIn;return null==r?void 0:r.build(n)},n}(u.Hn);const fd=pd;var dd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hd=function(){return hd=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},hd.apply(this,arguments)};const gd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dd(e,t),e.prototype.initialize=function(t,e){void 0===e&&(e={});var n=e.module,r=e.em;this.em=r,this.module=n,this.listenTo(this,"reset",this.onReset)},e.prototype.model=function(t,e){void 0===e&&(e={});var n=e.collection.em;return new fd(t,hd(hd({},e),{em:n}))},e.prototype.onReset=function(t,e){void 0===e&&(e={}),(e.previousModels||[]).forEach((function(t){return t.get("properties").reset()}))},e}(u.FE);var md=function(){return md=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},md.apply(this,arguments)},vd=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},yd=function(t){return t.map((function(t){return{id:t}}))},bd=function(){function e(){this.props={},this.typeNumber="number",this.typeColor="color",this.typeRadio="radio",this.typeSelect="select",this.typeFile="file",this.typeSlider="slider",this.typeComposite="composite",this.typeStack="stack",this.unitsSize=["px","%","em","rem","vh","vw"],this.unitsSizeNoPerc=["px","em","rem","vh","vw"],this.unitsTime=["s","ms"],this.unitsAngle=["deg","rad","grad"],this.fixedValues=["initial","inherit","auto"];var t=", sans-serif",e=["flex-start","flex-end","center"],n=vd(vd([],e,!0),["baseline","stretch"],!1);this.optsBgSize=yd(["auto","cover","contain"]),this.optsBgAttach=yd(["scroll","fixed","local"]),this.optsBgRepeat=yd(["repeat","repeat-x","repeat-y","no-repeat"]),this.optsWrap=yd(["nowrap","wrap","wrap-reverse"]),this.optsOverflow=yd(["visible","hidden","scroll","auto"]),this.optsDir=yd(["row","row-reverse","column","column-reverse"]),this.opstDisplay=yd(["block","inline","inline-block","flex","none"]),this.optsTransitFn=yd(["linear","ease","ease-in","ease-out","ease-in-out"]),this.optsCursor=yd(["auto","pointer","copy","crosshair","grab","grabbing","help","move","text"]),this.optsFloat=yd(["none","left","right"]),this.optsPos=yd(["static","relative","absolute","fixed"]),this.optsTextAlign=yd(["left","center","right","justify"]),this.optsFlexAlign=yd(n),this.optsJustCont=yd(vd(vd([],e,!0),["space-between","space-around","space-evenly"],!1)),this.optsAlignCont=yd(vd(vd([],e,!0),["space-between","space-around","stretch"],!1)),this.optsAlignSelf=yd(vd(["auto"],n,!0)),this.optsTransitProp=yd(["all","width","height","background-color","transform","box-shadow","opacity"]),this.optsBorderStyle=yd(["none","solid","dotted","dashed","double","groove","ridge","inset","outset"]),this.optsBgPos=yd(["left top","left center","left bottom","right top","right center","right bottom","center top","center center","center bottom"]),this.optsWeight=[{id:"100",label:"Thin"},{id:"200",label:"Extra-Light"},{id:"300",label:"Light"},{id:"400",label:"Normal"},{id:"500",label:"Medium"},{id:"600",label:"Semi-Bold"},{id:"700",label:"Bold"},{id:"800",label:"Extra-Bold"},{id:"900",label:"Ultra-Bold"}],this.optsShadowType=[{id:"",label:"Outside"},{id:"inset",label:"Inside"}],this.optsFonts=["Arial, Helvetica"+t,"Arial Black, Gadget"+t,"Brush Script MT"+t,"Comic Sans MS, cursive"+t,"Courier New, Courier, monospace","Georgia, serif","Helvetica"+t,"Impact, Charcoal"+t,"Lucida Sans Unicode, Lucida Grande"+t,"Tahoma, Geneva"+t,"Times New Roman, Times, serif","Trebuchet MS, Helvetica"+t,"Verdana, Geneva"+t].map((function(t){return{id:t,label:t.split(",")[0]}})),this.fixedFontSizes=["medium","xx-small","x-small","small","large","x-large","xx-large","smaller","larger","length","initial","inherit"],this.fixedLetSpace=["normal","initial","inherit"],this.requireFlex={display:["flex"]},this.init()}return e.prototype.__sub=function(e){var n=this;return function(){return e.map((function(e){if((0,t.isString)(e))return n.get(e);var r=e.extend,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["extend"]);return md(md({},n.get(r)),o)}))}},e.prototype.init=function(){var t=this,e=this,n=e.fixedValues,r=e.requireFlex,o=e.typeNumber;this.props={};var i=[["text-shadow-h",{type:o,default:"0",units:this.unitsSizeNoPerc}],["top",{default:"auto",units:this.unitsSize,fixedValues:n},"text-shadow-h"],["right",{},"top"],["bottom",{},"top"],["left",{},"top"],["margin-top",{default:"0"},"top"],["margin-right",{},"margin-top"],["margin-bottom",{},"margin-top"],["margin-left",{},"margin-top"],["padding-top",{min:0},"margin-top"],["padding-right",{},"padding-top"],["padding-bottom",{},"padding-top"],["padding-left",{},"padding-top"],["width",{min:0},"top"],["min-width",{},"width"],["max-width",{},"width"],["height",{},"width"],["min-height",{},"width"],["max-height",{},"width"],["flex-basis",{requiresParent:r},"width"],["font-size",{default:"medium",fixedValues:this.fixedFontSizes},"width"],["letter-spacing",{default:"normal",fixedValues:this.fixedLetSpace},"top"],["line-height",{},"letter-spacing"],["text-shadow-v",{},"text-shadow-h"],["text-shadow-blur",{min:0},"text-shadow-h"],["border-radius-c",{property:"border-radius",fixedValues:void 0},"padding-top"],["border-top-left-radius",{},"border-radius-c"],["border-top-right-radius",{},"border-radius-c"],["border-bottom-left-radius",{},"border-radius-c"],["border-bottom-right-radius",{},"border-radius-c"],["border-width",{units:this.unitsSizeNoPerc},"border-radius-c"],["box-shadow-h",{},"text-shadow-h"],["box-shadow-v",{},"text-shadow-h"],["box-shadow-blur",{default:"5px"},"text-shadow-blur"],["box-shadow-spread",{},"text-shadow-h"],["transition-duration",{default:"2s",units:this.unitsTime},"border-radius-c"],["perspective",{},"border-radius-c"],["order",{type:o,default:"0",requiresParent:r}],["flex-grow",{},"order"],["flex-shrink",{default:"1"},"order"],["float",{type:this.typeRadio,default:"none",options:this.optsFloat}],["position",{default:"static",options:this.optsPos},"float"],["text-align",{default:"left",options:this.optsTextAlign},"float"],["color",{type:this.typeColor,default:"black",full:!0}],["text-shadow-color",{},"color"],["border-color",{},"color"],["box-shadow-color",{},"color"],["background-color",{default:"none"},"color"],["background-image",{type:this.typeFile,functionName:"url",default:"none",full:!0}],["opacity",{type:this.typeSlider,default:"1",min:0,max:1,step:.01,full:!0}],["display",{type:this.typeSelect,default:"block",options:this.opstDisplay}],["flex-direction",{default:"row",options:this.optsDir,requires:r},"display"],["flex-wrap",{default:"nowrap",options:this.optsWrap},"flex-direction"],["justify-content",{default:"flex-start",options:this.optsJustCont},"flex-wrap"],["align-items",{default:"stretch",options:this.optsFlexAlign},"flex-wrap"],["align-content",{options:this.optsAlignCont},"align-items"],["align-self",{default:"auto",options:this.optsAlignSelf,requiresParent:r},"display"],["font-family",{default:"Arial, Helvetica, sans-serif",options:this.optsFonts},"display"],["font-weight",{default:"400",options:this.optsWeight},"display"],["border-style",{default:"solid",options:this.optsBorderStyle},"display"],["box-shadow-type",{default:"",options:this.optsShadowType},"display"],["background-repeat",{default:"repeat",options:this.optsBgRepeat},"display"],["background-position",{default:"left top",options:this.optsBgPos},"display"],["background-attachment",{default:"scroll",options:this.optsBgAttach},"display"],["background-size",{default:"auto",options:this.optsBgSize},"display"],["transition-property",{default:"width",options:this.optsTransitProp},"display"],["transition-timing-function",{default:"ease",options:this.optsTransitFn},"display"],["cursor",{default:"auto",options:this.optsCursor},"display"],["overflow",{default:"visible",options:this.optsOverflow},"display"],["overflow-x",{},"overflow"],["overflow-y",{},"overflow"],["margin",{type:this.typeComposite,properties:this.__sub([{extend:"margin-top",id:"margin-top-sub"},{extend:"margin-right",id:"margin-right-sub"},{extend:"margin-bottom",id:"margin-bottom-sub"},{extend:"margin-left",id:"margin-left-sub"}])}],["padding",{properties:this.__sub([{extend:"padding-top",id:"padding-top-sub"},{extend:"padding-right",id:"padding-right-sub"},{extend:"padding-bottom",id:"padding-bottom-sub"},{extend:"padding-left",id:"padding-left-sub"}])},"margin"],["border",{properties:this.__sub([{extend:"border-width",id:"border-width-sub"},{extend:"border-style",id:"border-style-sub"},{extend:"border-color",id:"border-color-sub"}])},"margin"],["border-radius",{properties:this.__sub([{extend:"border-top-left-radius",id:"border-top-left-radius-sub"},{extend:"border-top-right-radius",id:"border-top-right-radius-sub"},{extend:"border-bottom-right-radius",id:"border-bottom-right-radius-sub"},{extend:"border-bottom-left-radius",id:"border-bottom-left-radius-sub"}])},"margin"],["transition",{type:this.typeStack,properties:this.__sub([{extend:"transition-property",id:"transition-property-sub"},{extend:"transition-duration",id:"transition-duration-sub"},{extend:"transition-timing-function",id:"transition-timing-function-sub"}])}],["box-shadow",{preview:!0,layerLabel:function(t,e){var n=e.values,r=n["box-shadow-h"],o=n["box-shadow-v"],i=n["box-shadow-blur"],a=n["box-shadow-spread"];return"".concat(r," ").concat(o," ").concat(i," ").concat(a)},properties:this.__sub(["box-shadow-h","box-shadow-v","box-shadow-blur","box-shadow-spread","box-shadow-color","box-shadow-type"])},"transition"],["text-shadow",{default:"none",layerLabel:function(t,e){var n=e.values,r=n["text-shadow-h"],o=n["text-shadow-v"],i=n["text-shadow-blur"];return"".concat(r," ").concat(o," ").concat(i)},properties:this.__sub(["text-shadow-h","text-shadow-v","text-shadow-blur","text-shadow-color"])},"box-shadow"],["background",{detached:!0,layerLabel:function(t,e){var n=e.values;return[n["background-repeat-sub"]||"",n["background-position-sub"]||"",n["background-attachment-sub"]||"",n["background-size-sub"]||""].join(" ")},properties:this.__sub([{extend:"background-image",id:"background-image-sub"},{extend:"background-repeat",id:"background-repeat-sub"},{extend:"background-position",id:"background-position-sub"},{extend:"background-attachment",id:"background-attachment-sub"},{extend:"background-size",id:"background-size-sub"}])},"box-shadow"],["transform",{type:"stack",layerSeparator:" ",fromStyle:function(t,e){var n=e.property,r=t[e.name]||"",o=n.getLayerSeparator();return r?r.split(o).map((function(t){var e=n.__parseFn(t);return{"transform-type":e.name,"transform-value":e.value}})):[]},toStyle:function(t,e){var n;return(n={})[e.name]="".concat(t["transform-type"],"(").concat(t["transform-value"],")"),n},properties:[{property:"transform-type",name:"Type",type:this.typeSelect,default:"rotateZ",full:!0,options:[{id:"scaleX",propValue:{units:[""],step:.01}},{id:"scaleY",propValue:{units:[""],step:.01}},{id:"scaleZ",propValue:{units:[""],step:.01}},{id:"rotateX",propValue:{units:this.unitsAngle,step:1}},{id:"rotateY",propValue:{units:this.unitsAngle,step:1}},{id:"rotateZ",propValue:{units:this.unitsAngle,step:1}},{id:"translateX",propValue:{units:this.unitsSize,step:1}},{id:"translateY",propValue:{units:this.unitsSize,step:1}}],onChange:function(t){var e=t.property;if(t.to.value){var n=e.getOption(),r=md({},n.propValue||{}),o=e.getParent().getProperty("transform-value"),i=o.getUnit();(!i||(null==r?void 0:r.units.indexOf(i))<0)&&(r.unit=(null==r?void 0:r.units[0])||""),o.up(r)}}},{property:"transform-value",type:this.typeNumber,default:"0",full:!0}]}]];return i.forEach((function(e){var n=e[0],r=e[1],o=e[2];t.add(n,r||{},{from:o})})),this},e.prototype.add=function(e,n,r){void 0===n&&(n={}),void 0===r&&(r={});var o=r.from||"",i=this.props[o||e]||{},a=md(md(md({},i),{property:e}),n);return a.properties&&(0,t.isFunction)(a.properties)&&(a.properties=a.properties()),this.props[e]=a,a},e.prototype.get=function(t){return this.props[t]},e.prototype.build=function(e){var n=this,r=[];return((0,t.isString)(e)?[e]:e).forEach((function(t){r.push(n.get(t)||{property:t})})),r},e}();const _d=bd;var wd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ed=function(t){function e(e){var n=t.call(this,e)||this,r=e.config||{},o=n.model,i=r.em;return n.config=r,n.em=i,n.pfx=r.stylePrefix||"",n.listenTo(o,"destroy remove",n.remove),n.listenTo(o,"change:open",n.updateOpen),n.listenTo(o,"change:visible",n.updateVisibility),n}return wd(e,t),e.prototype.template=function(t){var e,r,o,i=t.pfx,a=t.label,s=null===(e=this.em)||void 0===e?void 0:e.getConfig().icons,l=(null==s?void 0:s.caret)||"",c="".concat(i,"sector-");return n(Td||(r=['\n <div class="','title" data-sector-title>\n <div class="','caret">$','</div>\n <div class="','label">',"</div>\n </div>\n "],o=['\n <div class="','title" data-sector-title>\n <div class="','caret">$','</div>\n <div class="','label">',"</div>\n </div>\n "],Object.defineProperty?Object.defineProperty(r,"raw",{value:o}):r.raw=o,Td=r),c,c,l,c,a)},e.prototype.events=function(){return{"click [data-sector-title]":"toggle"}},e.prototype.updateOpen=function(){var t=this,e=t.$el,n=t.model,r=t.pfx,o=n.isOpen();e[o?"addClass":"removeClass"]("".concat(r,"open")),this.getPropertiesEl().style.display=o?"":"none"},e.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?"":"none"},e.prototype.getPropertiesEl=function(){var t=this.$el,e=this.pfx;return t.find(".".concat(e,"properties")).get(0)},e.prototype.toggle=function(){var t=this.model;t.setOpen(!t.get("open"))},e.prototype.renderProperties=function(){var t=this.model,e=this.config,n=t.get("properties");if(n){var r=new hf({collection:n,config:e});this.$el.append(r.render().el)}},e.prototype.render=function(){var t=this,e=t.pfx,n=t.model,r=t.$el,o=n.getId(),i=n.getName();return r.html(this.template({pfx:e,label:i})),this.renderProperties(),r.attr("class","".concat(e,"sector ").concat(e,"sector__").concat(o," no-select")),this.updateOpen(),this},e}(u.G7);const xd=Ed;var Td,Cd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ad=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this,r=e.module,o=e.config,i=n.collection;return n.pfx=(null==o?void 0:o.stylePrefix)||"",n.ppfx=(null==o?void 0:o.pStylePrefix)||"",n.config=o,n.module=r,n.listenTo(i,"add",n.addTo),n.listenTo(i,"reset",n.render),n}return Cd(e,t),e.prototype.remove=function(){var t=this;return u.G7.prototype.remove.apply(this,arguments),["config","module","em"].forEach((function(e){return t[e]={}})),this},e.prototype.addTo=function(t,e,n){void 0===n&&(n={}),this.addToCollection(t,null,n)},e.prototype.addToCollection=function(t,e,n){void 0===n&&(n={});var r=this.config,o=this.el,i=e||o,a=new xd({model:t,config:r}).render().el;return(0,Dt.$Q)(i,a,n.at),a},e.prototype.render=function(){var t=this,e=this,n=e.$el,r=e.pfx,o=e.ppfx;n.empty();var i=document.createDocumentFragment();return this.collection.each((function(e){return t.addToCollection(e,i)})),n.append(i),n.addClass("".concat(r,"sectors ").concat(o,"one-bg ").concat(o,"two-color")),this},e}(u.G7);const Od=Ad;var Sd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kd=function(){return kd=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},kd.apply(this,arguments)},Pd=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},jd="style",Nd="".concat(jd,":"),Ld="".concat(Nd,"sector"),Dd="".concat(Ld,":add"),Id="".concat(Ld,":remove"),Rd="".concat(Ld,":update"),Md="".concat(Nd,"property"),Bd="".concat(Md,":add"),Fd="".concat(Md,":remove"),Ud="".concat(Md,":update"),Hd="".concat(Nd,"layer:select"),Vd="".concat(Nd,"target"),qd="".concat(Nd,"custom"),zd=function(t){return t||0===t},Gd={all:jd,sectorAdd:Dd,sectorRemove:Id,sectorUpdate:Rd,propertyAdd:Bd,propertyRemove:Fd,propertyUpdate:Ud,layerSelect:Hd,target:Vd,custom:qd},Wd=function(n){function r(e){var r=n.call(this,e,"StyleManager",new gd([],{em:e}),Gd,Rp)||this;r.Sector=fd,r.storageKey="",(0,t.bindAll)(r,"__clearStateTarget");var o=r.config,i=o.pStylePrefix;i&&(o.stylePrefix=i+o.stylePrefix),r.builtIn=new _d,r.properties=new ld([],{em:e,module:r}),r.sectors=r.all;var a=new u.Hn({targets:[]});r.model=a,r.upAll=(0,t.debounce)((function(){return r.__upSel()}),0),a.listenTo(e,"component:toggled component:update:classes change:state change:device frame:resized selector:type",r.upAll),a.listenTo(e,"component:toggled",r.__clearStateTarget);var s=(0,t.debounce)((function(){r.__upProps(),r.__trgCustom()}),0);a.listenTo(e,"styleable:change undo redo",s);var l=(0,t.debounce)((function(){return r.__trgCustom()}),0);return a.listenTo(e,"".concat(Hd," ").concat(Vd),l),a.on("change:lastTarget",(function(){return e.trigger(Vd,r.getSelected())})),r}return Sd(r,n),r.prototype.__upSel=function(){this.select(this.em.getSelectedAll())},r.prototype.__trgCustom=function(t){void 0===t&&(t={}),this.__ctn=this.__ctn||t.container,this.em.trigger(this.events.custom,{container:this.__ctn})},r.prototype.__trgEv=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(e=this.em).trigger.apply(e,Pd([t],n,!1))},r.prototype.__clearStateTarget=function(){var t=this,e=this.em,n=this.__getStateTarget();n&&(null==e||e.skip((function(){e.Css.remove(n),t.model.set({stateTarget:null})})))},r.prototype.onLoad=function(){this.sectors.add(this.config.sectors,{silent:!0})},r.prototype.postRender=function(){this.__appendTo()},r.prototype.addSector=function(t,e,n){void 0===n&&(n={});var r=this.getSector(t);return r||(e.id=t,r=this.sectors.add(e,n)),r},r.prototype.getSector=function(t,e){void 0===e&&(e={});var n=this.sectors.where({id:t})[0];return!n&&e.warn&&this._logNoSector(t),n||null},r.prototype.getSectors=function(t){void 0===t&&(t={});var e=this.sectors,n=e&&e.models?t.array?Pd([],e.models,!0):e:[];return t.visible?n.filter((function(t){return t.isVisible()})):n},r.prototype.removeSector=function(t){return this.getSectors().remove(this.getSector(t,{warn:!0}))},r.prototype.addProperty=function(t,e,n){void 0===n&&(n={});var r=this.getSector(t,{warn:!0}),o=null;return r&&(o=r.addProperty(e,n)),o},r.prototype.getProperty=function(t,e){var n,r=this.getSector(t,{warn:!0});return r&&(n=r.properties.filter((function(t){return t.get("property")===e||t.get("id")===e}))[0]),n},r.prototype.getProperties=function(t){var e,n=this.getSector(t,{warn:!0});return n&&(e=n.properties),e},r.prototype.removeProperty=function(t,e){var n=this.getProperties(t);return n?n.remove(this.getProperty(t,e)):null},r.prototype.select=function(n,r){var o=this;void 0===r&&(r={});var i=this.em,a=(0,t.isArray)(n)?n:[n],s=r.stylable,l=i.Css,c=[];a.filter(Boolean).forEach((function(e){var n=e;if((0,t.isString)(e)){var r=l.getRule(e)||l.setRule(e);!(0,t.isUndefined)(s)&&r.set({stylable:s}),n=r}c.push(n)}));var u=r.component||c.filter((function(t){return(0,e.isComponent)(t)})).reverse()[0];c=c.map((function(t){return o.getModelToStyle(t)}));var p=i.getState(),f=c.slice().reverse()[0],d=this.getParentRules(f,{state:p,component:u}),h=this.__getStateTarget();return i.skip((function(){var t;if(p&&(null===(t=null==f?void 0:f.getState)||void 0===t?void 0:t.call(f))){var e=f.getStyle();h?h.setStyle(e):h=l.getAll().add({selectors:"gjs-selected",style:e,shallow:!0,important:!0})}else h&&(l.remove(h),h=void 0)})),this.model.set({targets:c,lastTarget:f,lastTargetParents:d,stateTarget:h,component:u}),this.__upProps(r),c},r.prototype.getSelected=function(){return this.model.get("lastTarget")},r.prototype.getSelectedAll=function(){return this.model.get("targets")},r.prototype.getSelectedParents=function(){return this.model.get("lastTargetParents")||[]},r.prototype.__getStateTarget=function(){return this.model.get("stateTarget")},r.prototype.addStyleTargets=function(t,e){this.getSelectedAll().map((function(n){return n.addStyle(t,e)}));var n=this.getSelected();n&&this.__emitCmpStyleUpdate(t);var r=this.__getStateTarget();n&&(null==r||r.setStyle(n.getStyle(),e))},r.prototype.getBuiltIn=function(t){return this.builtIn.get(t)},r.prototype.getBuiltInAll=function(){return this.builtIn.props},r.prototype.addBuiltIn=function(t,e){return this.builtIn.add(t,e)},r.prototype.getModelToStyle=function(t,e){void 0===e&&(e={});var n=this.em,r=e.skipAdd;if(n&&(null==t?void 0:t.toHTML)){var o=n.getConfig(),i=n.UndoManager,a=n.Css,s=n.Selectors,l=s?s.getConfig():{},c=o.devicePreviewMode?"":n.get("state"),u=t.get("classes").getStyleable(),p=u.length,f=!l.componentFirst||e.useClasses,d={noCount:1},h={state:c,addOpts:d},g=void 0;if(i.stop(),p&&f){var m=n.getCurrentMedia();(g=a.get(u,c,m))||r||(g=a.add(u,c,m,{},d))}else if(o.avoidInlineStyle){var v=t.getId();!(g=a.getIdRule(v,h))&&!r&&(g=a.setIdRule(v,{},h)),t.is("wrapper")&&g.set("wrapper",1,d)}g&&(t=g),i.start()}return t},r.prototype.getParentRules=function(e,n){var r=void 0===n?{}:n,o=r.state,i=r.component,a=this.em,s=[];if(a&&e){var l=i,c=a.Css,u=a.CodeManager.getGenerator("css"),p=e.toHTML?e:e.getComponent(),f={combination:!0,array:!0},d=[],h=[],g=[];p?(d=c.getRules("#".concat(p.getId())),g=(h=l?c.getRules(l.getSelectors().getFullName(f)):[]).concat(d)):(d=l?c.getRules("#".concat(l.getId())):[],h=c.getRules(e.getSelectors().getFullName(f)),g=d.concat(h));var m=g.filter((function(e){return(0,t.isUndefined)(o)?1:e.get("state")===o})).sort(u.sortRules).reverse();s=m.slice(m.indexOf(e)+1)}return s},r.prototype.addType=function(t,e){this.properties.addType(t,e)},r.prototype.getType=function(t){return this.properties.getType(t)},r.prototype.getTypes=function(){return this.properties.getTypes()},r.prototype.createType=function(t,e){var n=void 0===e?{}:e,r=n.model,o=void 0===r?{}:r,i=n.view,a=void 0===i?{}:i,s=this.config,l=this.getType(t);if(l)return new l.view(kd({model:new l.model(o),config:s},a))},r.prototype.render=function(){var t=this,e=t.config,n=t.em,r=t.SectView,o=r&&r.el;return this.SectView=new Od({el:o,em:n,config:e,module:this,collection:this.sectors}),this.SectView.render().el},r.prototype._logNoSector=function(t){var e=this.em;e&&e.logWarning("'".concat(t,"' sector not found"))},r.prototype.__emitCmpStyleUpdate=function(t,e){void 0===e&&(e={});var n=this.em,r="component:styleUpdate";if(!t.__p){var o=e.components||n.getSelectedAll(),i=Array.isArray(o)?o:[o],a=kd({},t);delete a.__p;var s=Object.keys(a),l={style:a};i.forEach((function(t){n.trigger(r,t,l),s.forEach((function(e){return n.trigger("".concat(r,":").concat(e),t,l)}))}))}},r.prototype.__upProps=function(t){var e=this;void 0===t&&(t={});var n=this.getSelected();if(n){var r=this.sectors,o=this.model.get("component"),i=this.getSelectedParents(),a=n.getStyle(),s=i.map((function(t){return{target:t,style:t.getStyle()}}));r.map((function(n){n.getProperties().map((function(n){e.__upProp(n,a,s,t)}))})),r.forEach((function(t){var e=t.getProperties();e.forEach((function(t){var e=t.__checkVisibility({target:n,component:o,sectors:r});t.set("visible",e)}));var i=e.some((function(t){return t.isVisible()}));t.set("visible",i)}))}},r.prototype.__upProp=function(t,e,n,r){var o=this,i=t.getName(),a=e[i],s=zd(a),l="stack"===t.getType(),c="composite"===t.getType(),u=kd(kd({},r),{__up:!0}),p=!c&&!l,f=l?t.__getLayersFromStyle(e):[],d=c?t.__getPropsFromStyle(e):{},h=s?a:null,g=null;if(l&&null===f||c&&null===d){var m=l?"__getLayersFromStyle":"__getPropsFromStyle";if(y=n.filter((function(e){return null!==t[m](e.style)}))[0]){h=y.style[i],g=y.target;var v=t[m](y.style);l?f=v:d=v}}else if(!s){var y;h=null,(y=n.filter((function(t){return zd(t.style[i])}))[0])&&(h=y.style[i],g=y.target)}if(t.__setParentTarget(g),p&&t.__getFullValue()!==h&&t.upValue(h,u),l&&t.__setLayers(f||[]),c){var b=t.getProperties();if(t.isDetached()){var _=t.__getPropsFromStyle(e,{byName:!0})||{},w=n.map((function(e){return kd(kd({},e),{style:t.__getPropsFromStyle(e.style,{byName:!0})||{}})}));b.map((function(t){return o.__upProp(t,_,w,r)}))}else t.__setProperties(d||{},u),t.getProperties().map((function(t){return t.__setParentTarget(g)}))}},r.prototype.destroy=function(){var t;[this.properties,this.sectors].forEach((function(t){t.reset(),t.stopListening()})),null===(t=this.SectView)||void 0===t||t.remove(),this.model.stopListening(),this.upAll.cancel()},r}(y);const Yd=Wd;var Kd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$d=function(){return $d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$d.apply(this,arguments)},Xd=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},Qd=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};l().$=c.default;var Zd=[vc,ic,Vc,pp,es,V,_a,Yd,oa,Zc,ep,Nu,Op,Fs,il,fe,Ip,Ti],Jd=[ec,Qo,Et,Do];!function(e){var n=e.$;if(n&&n.prototype&&"jQuery"!==n.prototype.constructor.name){var r=n.fn;r.hide=function(){return this.css("display","none")},r.show=function(){return this.css("display","block")},r.focus=function(){var t=this.get(0);return t&&t.focus(),this},r.bind=function(t,e){return this.on(t,e)},r.unbind=function(e,n){if((0,t.isObject)(e)){for(var r in e)e.hasOwnProperty(r)&&this.off(r,e[r]);return this}return this.off(e,n)},r.click=function(t){return t?this.on("click",t):this.trigger("click")},r.change=function(t){return t?this.on("change",t):this.trigger("change")},r.keydown=function(t){return t?this.on("keydown",t):this.trigger("keydown")},r.delegate=function(t,e,n,r){return r||(r=n),this.on(e,t,(function(t){t.data=n,r(t)}))},r.scrollLeft=function(){var t=this.get(0),e=(t=9==t.nodeType?t.defaultView:t)instanceof Window?t:null;return e?e.pageXOffset:t.scrollLeft||0},r.scrollTop=function(){var t=this.get(0),e=(t=9==t.nodeType?t.defaultView:t)instanceof Window?t:null;return e?e.pageYOffset:t.scrollTop||0};var o=n.prototype.offset;r.offset=function(t){var e,n;return t&&(e=t.top,n=t.left),void 0!==e&&this.css("top","".concat(e,"px")),void 0!==n&&this.css("left","".concat(n,"px")),o.call(this)},n.map=function(t,e){for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n};var i=Array.prototype.indexOf;n.inArray=function(t,e,n){return null==e?-1:i.call(e,t,n)},n.Event=function(t,e){if(!(this instanceof n.Event))return new n.Event(t,e);this.type=t,this.isDefaultPrevented=function(){return!1}}}}({$:c.default});var th={debug:console.log,info:console.info,warning:console.warn,error:console.error},eh=function(n){function r(e){void 0===e&&(e={});var r=n.call(this)||this;r.__skip=!1,r.defaultRunning=!1,r.destroyed=!1,r._config=e;var o=r.config;r.set("Config",e),r.set("modules",[]),r.set("toLoad",[]),r.set("storables",[]),r.set("selected",new d),r.set("dmode",o.dragMode);var i=o.el,a=o.log,s=!0===a?(0,t.keys)(th):(0,t.isArray)(a)?a:[];return(0,t.bindAll)(r,"initBaseColorPicker"),i&&o.fromElement&&(o.components=i.innerHTML),r.attrsOrig=i?(0,t.toArray)(i.attributes).reduce((function(t,e){return t[e.nodeName]=e.nodeValue,t}),{}):"",o.components&&!o.pageManager&&(o.pageManager={pages:[{component:o.components}]}),Zd.forEach((function(t){return r.loadModule(t)})),Jd.forEach((function(t){return r.loadStorableModule(t)})),r.on("change:componentHovered",r.componentHovered,r),r.on("change:changesCount",r.updateChanges,r),r.on("change:readyLoad change:readyCanvas",r._checkReady,r),s.forEach((function(t){return r.listenLog(t)})),[{from:"change:selectedComponent",to:"component:toggled"}].forEach((function(t){var e=t.from,n=t.to;r.listenTo(r,e,(function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];r.trigger.apply(r,function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([n],t,!1)),r.logWarning("The event '".concat(e,"' is deprecated, replace it with '").concat(n,"'"))}))})),r}return Kd(r,n),r.prototype.defaults=function(){return{editing:0,selected:0,clipboard:null,dmode:0,componentHovered:null,previousModel:null,changesCount:0,storables:[],modules:[],toLoad:[],opened:{},device:""}},Object.defineProperty(r.prototype,"storables",{get:function(){return this.get("storables")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"modules",{get:function(){return this.get("modules")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"toLoad",{get:function(){return this.get("toLoad")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selected",{get:function(){return this.get("selected")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"shallow",{get:function(){return this.get("shallow")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"I18n",{get:function(){return this.get("I18n")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Utils",{get:function(){return this.get("Utils")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Commands",{get:function(){return this.get("Commands")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Keymaps",{get:function(){return this.get("Keymaps")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Modal",{get:function(){return this.get("Modal")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Panels",{get:function(){return this.get("Panels")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"CodeManager",{get:function(){return this.get("CodeManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"UndoManager",{get:function(){return this.get("UndoManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"RichTextEditor",{get:function(){return this.get("RichTextEditor")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Canvas",{get:function(){return this.get("Canvas")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Editor",{get:function(){return this.get("Editor")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Components",{get:function(){return this.get("DomComponents")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Css",{get:function(){return this.get("CssComposer")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Blocks",{get:function(){return this.get("BlockManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Selectors",{get:function(){return this.get("SelectorManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Storage",{get:function(){return this.get("StorageManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Traits",{get:function(){return this.get("TraitManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Parser",{get:function(){return this.get("Parser")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Layers",{get:function(){return this.get("LayerManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Assets",{get:function(){return this.get("AssetManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Devices",{get:function(){return this.get("DeviceManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Pages",{get:function(){return this.get("PageManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Styles",{get:function(){return this.get("StyleManager")},enumerable:!1,configurable:!0}),r.prototype._checkReady=function(){this.get("readyLoad")&&this.get("readyCanvas")&&!this.get("ready")&&this.set("ready",!0)},r.prototype.getContainer=function(){return this.config.el},r.prototype.listenLog=function(t){this.listenTo(this,"log:".concat(t),th[t])},Object.defineProperty(r.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),r.prototype.getConfig=function(e){var n=this.config;return(0,t.isUndefined)(e)?n:n[e]},r.prototype.loadOnStart=function(){var t=this,e=this.config,n=e.projectData,o=e.headless,i=this.get("StorageManager");this.toLoad.reverse().forEach((function(t){return t.onLoad()}));var a=function(){t.modules.forEach((function(e){return e.postLoad&&e.postLoad(t)})),t.set("readyLoad",1)};o?(n&&this.loadData(n),a()):this._storageTimeout=setTimeout((function(){return Xd(t,void 0,void 0,(function(){var t;return Qd(this,(function(e){switch(e.label){case 0:return n?(this.loadData(n),[3,5]):[3,1];case 1:if(!(null==i?void 0:i.canAutoload()))return[3,5];e.label=2;case 2:return e.trys.push([2,4,,5]),[4,this.load()];case 3:return e.sent(),[3,5];case 4:return t=e.sent(),this.logError(t),[3,5];case 5:return a(),[2]}}))}))}));var s=new r({noticeOnUnload:!1,storageManager:!1,undoManager:!1});s.Pages.onLoad(),s.Canvas.postLoad(),this.set("shallow",s)},r.prototype.updateChanges=function(){var t=this,e=this.get("StorageManager"),n=this.getDirtyCount();this.updateItr&&clearTimeout(this.updateItr),this.updateItr=setTimeout((function(){return t.trigger("update")})),this.config.noticeOnUnload&&(window.onbeforeunload=n?function(){return!0}:null),e.isAutosave()&&n>=e.getStepsBeforeSave()&&this.store().catch((function(e){return t.logError(e)}))},r.prototype.loadModule=function(t){var e=new t(this);return this.set(e.name,e),e.onLoad&&this.toLoad.push(e),this.modules.push(e),e},r.prototype.loadStorableModule=function(t){var e=this.loadModule(t);return this.storables.push(e),e},r.prototype.init=function(t,e){void 0===e&&(e={}),this.destroyed&&(this.initialize(e),this.destroyed=!1),this.set("Editor",t)},r.prototype.getEditor=function(){return this.get("Editor")},r.prototype.handleUpdates=function(t,e,n){var r=this;void 0===n&&(n={}),this.__skip||n.temporary||n.noCount||n.avoidStore||!this.get("ready")||(this.timedInterval&&clearTimeout(this.timedInterval),this.timedInterval=setTimeout((function(){var t=r.getDirtyCount()||0,e=(n.unset,function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(n,["unset"]));r.set("changesCount",t+1,e)}),0))},r.prototype.changesUp=function(t){this.handleUpdates(0,0,t)},r.prototype.componentHovered=function(t,e,n){var r=this.previous("componentHovered");r&&this.trigger("component:unhovered",r,n),e&&this.trigger("component:hovered",e,n)},r.prototype.getSelected=function(){return this.selected.lastComponent()},r.prototype.getSelectedAll=function(){return this.selected.allComponents()},r.prototype.setSelected=function(n,r){var o=this;void 0===r&&(r={});var i=r.event,a=i&&(i.ctrlKey||i.metaKey),s=(i||{}).shiftKey,l=((0,t.isArray)(n)?n:[n]).map((function(t){return(0,e.getModel)(t,c.default)})),u=this.getSelectedAll(),p=this.getConfig().multipleSelection,f=(0,t.isArray)(n);f&&this.removeSelected(u.filter((function(e){return!(0,t.contains)(l,e)}))),l.forEach((function(n){var i=(0,e.getModel)(n,void 0);if(i&&(o.trigger("component:select:before",i,r),!i.get("selectable")||r.abort)){if(!r.useValid)return;for(var l=i.parent();l&&!l.get("selectable");)l=l.parent();i=l}if(a&&p)return o.toggleSelected(i);if(s&&p){o.clearSelection(o.get("Canvas").getWindow());var c,d,h=i.collection,g=i.index();if(o.getSelectedAll().forEach((function(e){var n=e.collection,r=e.index();n===h&&(r<g?c=(0,t.isUndefined)(c)?r:Math.max(c,r):r>g&&(d=(0,t.isUndefined)(d)?r:Math.min(d,r)))})),!(0,t.isUndefined)(c))for(;c!==g;)o.addSelected(h.at(c)),c++;if(!(0,t.isUndefined)(d))for(;d!==g;)o.addSelected(h.at(d)),d--;return o.addSelected(i)}!f&&o.removeSelected(u.filter((function(t){return t!==i}))),o.addSelected(i,r)}))},r.prototype.addSelected=function(n,r){var o=this;void 0===r&&(r={});var i=(0,e.getModel)(n,c.default);((0,t.isArray)(i)?i:[i]).forEach((function(e){var n=o.selected;e&&e.get("selectable")&&!e.parents().some((function(t){return n.hasComponent(t)}))&&(r.forceChange&&o.removeSelected(e,r),n.allComponents().filter((function(n){return(0,t.contains)(n.parents(),e)})).forEach((function(t){return o.removeSelected(t,r)})),n.addComponent(e,r),o.trigger("component:select",e,r),o.Canvas.addSpot({type:At.q.Select,component:e}))}))},r.prototype.removeSelected=function(n,r){var o=this;void 0===r&&(r={});var i=(0,e.getModel)(n,c.default);this.selected.removeComponent(i,r),((0,t.isArray)(i)?i:[i]).forEach((function(t){return o.Canvas.removeSpots({type:At.q.Select,component:t})}))},r.prototype.toggleSelected=function(n,r){var o=this;void 0===r&&(r={});var i=(0,e.getModel)(n,c.default);((0,t.isArray)(i)?i:[i]).forEach((function(t){o.selected.hasComponent(t)?o.removeSelected(t,r):o.addSelected(t,r)}))},r.prototype.setHovered=function(t,n){var r=this;void 0===n&&(n={});var o=function(t,e){var n=r,o=n.config,i=n.Canvas,a=r.getHovered(),s=r.getSelectedAll(),l=At.q.Hover,c=At.q.Spacing;r.set("componentHovered",t||null,e),a&&(i.removeSpots({type:l,component:a}),i.removeSpots({type:c,component:a})),t&&(i.addSpot({type:l,component:t}),s.includes(t)&&!o.showOffsetsSelected||i.addSpot({type:c,component:t}))};if(!t)return o();var i="component:hover",a=(0,e.getModel)(t,void 0);if(a){if(n.forceChange&&o(),this.trigger("".concat(i,":before"),a,n),!a.get("hoverable")){if(!n.useValid||n.abort)return;for(var s=a.parent();s&&!s.get("hoverable");)s=s.parent();a=s}n.abort||(o(a,n),this.trigger(i,a,n))}},r.prototype.getHovered=function(){return this.get("componentHovered")},r.prototype.setComponents=function(t,e){return void 0===e&&(e={}),this.Components.setComponents(t,e)},r.prototype.getComponents=function(){var t=this.Components,e=this.CodeManager;if(t&&e){var n=t.getComponents();return e.getCode(n,"json")}},r.prototype.setStyle=function(t,e){void 0===e&&(e={});var n=this.Css;return n.clear(e),n.getAll().add(t,e),this},r.prototype.addStyle=function(e,n){void 0===n&&(n={});var r=this.getStyle().add(e,n);return(0,t.isArray)(r)?r:[r]},r.prototype.getStyle=function(){return this.Css.getAll()},r.prototype.setState=function(t){return this.set("state",t),this},r.prototype.getState=function(){return this.get("state")||""},r.prototype.getHtml=function(t){void 0===t&&(t={});var e=this.config,n=e.optsHtml,r=e.jsInHtml?this.getJs(t):"",o=t.component||this.Components.getComponent();return(o?this.CodeManager.getCode(o,"html",$d($d({},n),t)):"")+(r?"<script>".concat(r,"<\/script>"):"")},r.prototype.getCss=function(e){void 0===e&&(e={});var n=this.config,r=n.optsCss,o=e.avoidProtected,i=(0,t.isUndefined)(e.keepUnusedStyles)?n.keepUnusedStyles:e.keepUnusedStyles,a=this.Css,s=e.component||this.Components.getComponent(),l=o?"":n.protectedCss,c=s&&this.CodeManager.getCode(s,"css",$d($d({cssc:a,keepUnusedStyles:i},r),e));return s?e.json?c:l+c:""},r.prototype.getJs=function(t){void 0===t&&(t={});var e=t.component||this.Components.getWrapper();return e?this.CodeManager.getCode(e,"js").trim():""},r.prototype.store=function(t){return Xd(this,void 0,void 0,(function(){var e;return Qd(this,(function(n){switch(n.label){case 0:return e=this.storeData(),[4,this.Storage.store(e,t)];case 1:return n.sent(),this.clearDirtyCount(),[2,e]}}))}))},r.prototype.load=function(t,n){return void 0===n&&(n={}),Xd(this,void 0,void 0,(function(){var r;return Qd(this,(function(o){switch(o.label){case 0:return[4,this.Storage.load(t)];case 1:return r=o.sent(),this.loadData(r),[4,(0,e.wait)()];case 2:return o.sent(),n.clear&&(this.UndoManager.clear(),this.clearDirtyCount()),[2,r]}}))}))},r.prototype.storeData=function(){var t={},e=this.getEditing();return e&&e.trigger("sync:content",{noCount:!0}),this.storables.forEach((function(e){t=$d($d({},t),e.store(1))})),JSON.parse(JSON.stringify(t))},r.prototype.loadData=function(t){return void 0===t&&(t={}),(0,e.isEmptyObj)(t)||(this.storables.forEach((function(t){return t.clear()})),this.storables.forEach((function(e){return e.load(t)}))),t},r.prototype.getDeviceModel=function(){var t=this.get("device");return this.Devices.get(t)},r.prototype.runDefault=function(t){void 0===t&&(t={});var e=this.get("Commands").get(this.config.defaultCommand);e&&!this.defaultRunning&&(e.stop(this,this,t),e.run(this,this,t),this.defaultRunning=!0)},r.prototype.stopDefault=function(t){void 0===t&&(t={});var e=this.get("Commands").get(this.config.defaultCommand);e&&this.defaultRunning&&(e.stop(this,this,t),this.defaultRunning=!1)},r.prototype.refreshCanvas=function(t){void 0===t&&(t={}),this.set("canvasOffset",null),this.set("canvasOffset",this.Canvas.getOffset()),t.tools&&this.trigger("canvas:updateTools")},r.prototype.clearSelection=function(t){var e;null===(e=(t||window).getSelection())||void 0===e||e.removeAllRanges()},r.prototype.getCurrentMedia=function(){var t=this.config,e=this.getDeviceModel(),n=t.mediaCondition,r=t.devicePreviewMode,o=e&&e.get("widthMedia");return e&&o&&!r?"(".concat(n,": ").concat(o,")"):""},r.prototype.getWrapper=function(){return this.Components.getWrapper()},r.prototype.setCurrentFrame=function(t){return this.set("currentFrame",t)},r.prototype.getCurrentFrame=function(){return this.get("currentFrame")},r.prototype.getCurrentFrameModel=function(){var t;return null===(t=this.getCurrentFrame()||{})||void 0===t?void 0:t.model},r.prototype.getIcon=function(t){return(this.config.icons||{})[t]||""},r.prototype.getDirtyCount=function(){return this.get("changesCount")},r.prototype.clearDirtyCount=function(){return this.set("changesCount",0)},r.prototype.getZoomDecimal=function(){return this.Canvas.getZoomDecimal()},r.prototype.getZoomMultiplier=function(){return this.Canvas.getZoomMultiplier()},r.prototype.setDragMode=function(t){return this.set("dmode",t)},r.prototype.getDragMode=function(t){return(null==t?void 0:t.getDragMode())||this.get("dmode")||""},r.prototype.t=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.get("I18n");return null==n?void 0:n.t.apply(n,t)},r.prototype.inAbsoluteMode=function(t){return"absolute"===this.getDragMode(t)},r.prototype.destroyAll=function(){var t=this,n=this.config,r=this.view,o=this.getEditor(),i=(n.grapesjs||{}).editors,a=void 0===i?[]:i,s=this.get("shallow");this._storageTimeout&&clearTimeout(this._storageTimeout),null==s||s.destroyAll(),this.stopListening(),this.stopDefault(),this.modules.slice().reverse().forEach((function(t){return t.destroy()})),r&&r.remove(),this.clear({silent:!0}),this.destroyed=!0,["_config","view","_previousAttributes","_events","_listeners"].forEach((function(e){return t[e]={}})),a.splice(a.indexOf(o),1),(0,e.hasWin)()&&(0,c.default)(n.el).empty().attr(this.attrsOrig)},r.prototype.getEditing=function(){var t=this.get("editing");return t&&t.model||void 0},r.prototype.setEditing=function(t){return this.set("editing",t),this},r.prototype.isEditing=function(){return!!this.get("editing")},r.prototype.log=function(t,e){void 0===e&&(e={});var n=e.ns,r=e.level,o=void 0===r?"debug":r;if(this.trigger("log",t,e),o&&this.trigger("log:".concat(o),t,e),n){var i="log-".concat(n);this.trigger(i,t,e),o&&this.trigger("".concat(i,":").concat(o),t,e)}},r.prototype.logInfo=function(t,e){this.log(t,$d($d({},e),{level:"info"}))},r.prototype.logWarning=function(t,e){this.log(t,$d($d({},e),{level:"warning"}))},r.prototype.logError=function(t,e){this.log(t,$d($d({},e),{level:"error"}))},r.prototype.initBaseColorPicker=function(t,e){void 0===e&&(e={});var n=this.config,r=n.colorPicker,o=void 0===r?{}:r,i=n.el,a=n.stylePrefix;return(0,c.default)(t).spectrum($d($d({containerClassName:"".concat(a,"one-bg ").concat(a,"two-color"),appendTo:i||"body",maxSelectionSize:8,showPalette:!0,palette:[],showAlpha:!0,chooseText:"Ok",cancelText:"⨯"},e),o))},r.prototype.skip=function(t){this.__skip=!0;var e=this.UndoManager;e?e.skip(t):t(),this.__skip=!1},r.prototype.data=function(e,n,r){var o="_gjs-data";if(e[o]||(e[o]={}),(0,t.isUndefined)(r))return e[o][n];e[o][n]=r},r}(u.Hn);const nh=eh;var rh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oh=function(t){function n(e){var n=t.call(this,{model:e})||this,r=e.attributes,o=r.Panels,i=r.UndoManager;return e.view=n,e.once("change:ready",(function(){o.active(),o.disableButtons(),i.clear(),setTimeout((function(){e.trigger("load",e.get("Editor")),e.clearDirtyCount()}))})),n}return rh(n,t),n.prototype.render=function(){var t=this,n=this.$el,r=this.model,o=r.attributes,i=o.Panels,a=o.Canvas,s=r.config,l=r.modules,u=s.stylePrefix,p=["".concat(u,"editor")];!s.customUI&&p.push("".concat(u,"one-bg ").concat(u,"two-color"));var f=(0,c.default)(s.el||"body ".concat(s.container));s.cssIcons&&(0,e.appendStyles)(s.cssIcons,{unique:!0,prepand:!0}),n.empty(),s.width&&f.css("width",s.width),s.height&&f.css("height",s.height),n.append(a.render()),n.append(i.render());var d=r.get("shallow").get("Canvas").render();return d.style.display="none",n.append(d),n.attr("class",p.join(" ")),f.addClass("".concat(u,"editor-cont")).empty().append(n),l.forEach((function(e){return e.postRender&&e.postRender(t)})),this},n}(u.G7);const ih=oh;var ah=function(){return ah=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ah.apply(this,arguments)},sh=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},lh=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},ch=function(){function t(t,e){var r;void 0===t&&(t={}),void 0===e&&(e={}),this.html=n,this.config=ah(ah(ah({},i),t),{pStylePrefix:null!==(r=t.stylePrefix)&&void 0!==r?r:i.stylePrefix}),this.em=new nh(this.config),this.$=e.$,this.em.init(this),this.editor=this.em}return Object.defineProperty(t.prototype,"Config",{get:function(){return this.em.config},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"I18n",{get:function(){return this.em.I18n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Utils",{get:function(){return this.em.Utils},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Commands",{get:function(){return this.em.Commands},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Keymaps",{get:function(){return this.em.Keymaps},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Modal",{get:function(){return this.em.Modal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Panels",{get:function(){return this.em.Panels},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Canvas",{get:function(){return this.em.Canvas},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Parser",{get:function(){return this.em.Parser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CodeManager",{get:function(){return this.em.CodeManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"UndoManager",{get:function(){return this.em.UndoManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RichTextEditor",{get:function(){return this.em.RichTextEditor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Pages",{get:function(){return this.em.Pages},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Components",{get:function(){return this.em.Components},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DomComponents",{get:function(){return this.em.Components},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Layers",{get:function(){return this.em.Layers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LayerManager",{get:function(){return this.em.Layers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Css",{get:function(){return this.em.Css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CssComposer",{get:function(){return this.em.Css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Storage",{get:function(){return this.em.Storage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StorageManager",{get:function(){return this.em.Storage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Assets",{get:function(){return this.em.Assets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AssetManager",{get:function(){return this.em.Assets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Blocks",{get:function(){return this.em.Blocks},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BlockManager",{get:function(){return this.em.Blocks},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Traits",{get:function(){return this.em.Traits},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TraitManager",{get:function(){return this.em.Traits},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Selectors",{get:function(){return this.em.Selectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SelectorManager",{get:function(){return this.em.Selectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Styles",{get:function(){return this.em.Styles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StyleManager",{get:function(){return this.em.Styles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Devices",{get:function(){return this.em.Devices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DeviceManager",{get:function(){return this.em.Devices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EditorModel",{get:function(){return this.em},enumerable:!1,configurable:!0}),t.prototype.getConfig=function(t){return this.em.getConfig(t)},t.prototype.getHtml=function(t){return this.em.getHtml(t)},t.prototype.getCss=function(t){return this.em.getCss(t)},t.prototype.getJs=function(t){return this.em.getJs(t)},t.prototype.getComponents=function(){return this.Components.getComponents()},t.prototype.getWrapper=function(){return this.Components.getWrapper()},t.prototype.setComponents=function(t,e){return void 0===e&&(e={}),this.em.setComponents(t,e),this},t.prototype.addComponents=function(t,e){return this.getWrapper().append(t,e)},t.prototype.getStyle=function(){return this.em.Css.getAll()},t.prototype.setStyle=function(t,e){return void 0===e&&(e={}),this.em.setStyle(t,e),this},t.prototype.addStyle=function(t,e){return void 0===e&&(e={}),this.em.addStyle(t,e)},t.prototype.getSelected=function(){return this.em.getSelected()},t.prototype.getSelectedAll=function(){return this.em.getSelectedAll()},t.prototype.getSelectedToStyle=function(){var t=this.em.getSelected();if(t)return this.StyleManager.getModelToStyle(t)},t.prototype.select=function(t,e){return this.em.setSelected(t,e),this},t.prototype.selectAdd=function(t){return this.em.addSelected(t),this},t.prototype.selectRemove=function(t){return this.em.removeSelected(t),this},t.prototype.selectToggle=function(t){return this.em.toggleSelected(t),this},t.prototype.getEditing=function(){return this.em.getEditing()},t.prototype.setDevice=function(t){return this.em.set("device",t),this},t.prototype.getDevice=function(){return this.em.get("device")},t.prototype.runCommand=function(t,e){return void 0===e&&(e={}),this.Commands.run(t,e)},t.prototype.stopCommand=function(t,e){return void 0===e&&(e={}),this.Commands.stop(t,e)},t.prototype.store=function(t){return sh(this,void 0,void 0,(function(){return lh(this,(function(e){switch(e.label){case 0:return[4,this.em.store(t)];case 1:return[2,e.sent()]}}))}))},t.prototype.load=function(t,e){return void 0===e&&(e={}),sh(this,void 0,void 0,(function(){return lh(this,(function(n){switch(n.label){case 0:return[4,this.em.load(t,e)];case 1:return[2,n.sent()]}}))}))},t.prototype.getProjectData=function(){return this.em.storeData()},t.prototype.loadProjectData=function(t){return this.em.loadData(t)},t.prototype.storeData=function(){return this.em.storeData()},t.prototype.loadData=function(t){return this.em.loadData(t)},t.prototype.getContainer=function(){return this.config.el},t.prototype.getDirtyCount=function(){return this.em.getDirtyCount()},t.prototype.clearDirtyCount=function(){return this.em.clearDirtyCount()},t.prototype.refresh=function(t){this.em.refreshCanvas(t)},t.prototype.setCustomRte=function(t){this.RichTextEditor.customRte=t},t.prototype.setCustomParserCss=function(t){return this.Parser.getConfig().parserCss=t,this},t.prototype.setDragMode=function(t){return this.em.setDragMode(t),this},t.prototype.log=function(t,e){return void 0===e&&(e={}),this.em.log(t,e),this},t.prototype.t=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this.em).t.apply(t,e)},t.prototype.on=function(t,e){return this.em.on(t,e),this},t.prototype.once=function(t,e){return this.em.once(t,e),this},t.prototype.off=function(t,e){return this.em.off(t,e),this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.em.trigger.apply(this.em,function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([t],e,!0)),this},t.prototype.destroy=function(){this.em&&(this.em.destroyAll(),this.editorView=void 0)},t.prototype.getEl=function(){var t;return null===(t=this.editorView)||void 0===t?void 0:t.el},t.prototype.getModel=function(){return this.em},t.prototype.render=function(){var t;return null===(t=this.editorView)||void 0===t||t.remove(),this.editorView=new ih(this.em),this.editorView.render().el},t.prototype.onReady=function(t){this.em.get("ready")?t(this):this.em.on("load",t)},t}();const uh=ch;var ph=function(n,r){return(0,t.isString)(n)?function(t,n){var r=n.get(t);if(!r){var o=(0,e.getGlobal)()[t];r=(null==o?void 0:o.default)||o}return r}(n,r):(null==n?void 0:n.default)||n},fh=function(t,e){t.getModel().logWarning("Plugin ".concat(e," not found"),{context:"plugins",plugin:e})};const dh=function(){function t(){this.plugins={}}return t.prototype.add=function(t,e){return this.get(t)||(this.plugins[t]=e,e)},t.prototype.get=function(t){return this.plugins[t]},t.prototype.getAll=function(){return this.plugins},t}();var hh=function(){return hh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},hh.apply(this,arguments)};!function(){if((0,e.hasWin)()&&function(){for(var t,e=window.navigator.userAgent,n=[["edge",/Edge\/([0-9\._]+)/],["ie",/MSIE\s(7\.0)/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/]],r=0;r<n.length&&!(t=n[r][1].exec(e));r++);return!!t}()){var t=DOMImplementation.prototype.createHTMLDocument;DOMImplementation.prototype.createHTMLDocument=function(e){return e||(e=""),t.apply(document.implementation,[e])}}}();var gh=new dh,mh=[],vh=function(t,e){var n=ph(t,gh);return function(r){n?n(r,e||{}):fh(r,t)}},yh={$:c.default,editors:mh,plugins:gh,usePlugin:vh,version:"0.21.7",init:function(e){void 0===e&&(e={});var n=e.headless,r=e.container;if(!r&&!n)throw new Error("'container' is required");var o=hh(hh({autorender:!0,plugins:[],pluginsOpts:{}},e),{grapesjs:this,el:n?void 0:(0,t.isElement)(r)?r:document.querySelector(r)}),i=new uh(o,{$:c.default}),a=i.getModel();return o.plugins.forEach((function(t){var e=ph(t,gh),n=o.pluginsOpts[t]||{};e?e(i,n):fh(i,t)})),a.loadOnStart(),o.autorender&&!n&&i.render(),mh.push(i),i}};const bh=yh})();var i=o.ZP,a=n(185),s=n.n(a),l=n(43),c=n.n(l);function u(){var t=Math.random().toString(16).slice(2);return[{classes:[{name:"es-form-field-container"}],type:"form-field-container",components:[{classes:[{name:"gjs-row",private:1}],components:[{classes:[{name:"gjs-cell",private:1}],components:[{type:"text",tagName:"label",attributes:{for:"esfpx_name_"+t},classes:"es-field-label",components:[{type:"textnode",content:"Name"}]},{tagName:"input",type:"name",void:!0,attributes:{type:"text",id:"esfpx_name_"+t,required:!0,name:"esfpx_name",placeholder:"Enter your name",autocomplete:"off"}}]}]},{classes:[{name:"gjs-row",private:1}],components:[{classes:[{name:"gjs-cell",private:1}],components:[{type:"text",tagName:"label",attributes:{for:"esfpx_email_"+t},classes:"es-field-label",components:[{type:"textnode",content:"Email"}]},{tagName:"input",type:"email",void:!0,attributes:{type:"email",id:"esfpx_email_"+t,required:!0,name:"esfpx_email",placeholder:"Enter your email",autocomplete:"off"}}]}]},{classes:[{name:"gjs-row",private:1}],components:[{classes:[{name:"gjs-cell",private:1}],components:[{tagName:"input",type:"submit",void:!0,attributes:{type:"submit",required:!0,value:"Subscribe",name:"submit"}}]}]}]}]}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";if("class"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"class"))for(var n=document.getElementsByClassName(t),r=0;r<n.length;r++)f(n[r],e);else f(document.getElementById(t),e)}function f(t,e){t.style.display=e}var d={twoOneColumn:'<svg viewBox="0 0 200 200" width="36" height="36"><path style="fill: #000000" d="m128 32h10l0 136h-10l0-136z" /><path style="fill: none;stroke: #000000;stroke-width: 10" d="m8 39c0-2.76 2.24-5 5-5h173c2.76 0 5 2.24 5 5v121c0 2.76-2.24 5-5 5h-173c-2.76 0-5-2.24-5-5v-121z" /></svg>',oneTwoColumn:'<svg viewBox="0 0 200 200" width="36" height="36"><path style="fill: #000000" d="m62 32h10l0 136h-10l0-136z" /><path style="fill: none;stroke: #000000;stroke-width: 10" d="m8 39c0-2.76 2.24-5 5-5h173c2.76 0 5 2.24 5 5v121c0 2.76-2.24 5-5 5h-173c-2.76 0-5-2.24-5-5v-121z" /></svg>',spacer:'<svg viewBox="0 0 100 100" width="36" height="36"><path style="fill: #000000" d="m3 6h94v10h-94v-10zm0 78h94v10h-94v-10z" /><path style="fill: #000000" d="m51.27 81.31c-0.32 0.46-0.7 0.69-1.14 0.69c-0.44 0-0.82-0.23-1.14-0.69l-6.5-9.29c-0.32-0.46-0.48-1-0.48-1.63c0-0.63 0.16-1.17 0.48-1.63c0.32-0.46 0.7-0.69 1.14-0.69h3.25l0-37.14h-3.25c-0.44 0-0.82-0.23-1.14-0.69c-0.32-0.46-0.48-1-0.48-1.63c0-0.63 0.16-1.17 0.48-1.63l6.5-9.29c0.32-0.46 0.7-0.69 1.14-0.69c0.44 0 0.82 0.23 1.14 0.69l6.5 9.29c0.32 0.46 0.48 1 0.48 1.63c0 0.63-0.16 1.17-0.48 1.63c-0.32 0.46-0.7 0.69-1.14 0.69h-3.25l0 37.14h3.25c0.44 0 0.82 0.23 1.14 0.69c0.32 0.46 0.48 1 0.48 1.63c0 0.63-0.16 1.17-0.48 1.63l-6.5 9.29v0z" /></svg>',divider:'<svg viewBox="0 0 100 100" width="36" height="36"><path style="fill: #000000" d="m3 42h94v16h-94v-16z" /></svg>',twoColumn:'<svg width="36" height="36" viewBox="0 0 172 172" style=" fill:#000000;"><g transform="translate(0.516,0.516) scale(0.994,0.994)"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><g fill="#000000" stroke="#cccccc" stroke-linejoin="round"><path d="M154.8,13.76c1.89978,0.00019 3.43981,1.54022 3.44,3.44v137.6c-0.00019,1.89978 -1.54022,3.43981 -3.44,3.44h-137.6c-1.89978,-0.00019 -3.43981,-1.54022 -3.44,-3.44v-137.6c0.00019,-1.89978 1.54022,-3.43981 3.44,-3.44zM20.64,151.36h61.92v-130.72h-61.92zM89.44,151.36h61.92v-130.72h-61.92z"></path></g><path d="M0,172v-172h172v172z" fill="none" stroke="none" stroke-linejoin="miter"></path><g fill="#000000" stroke="none" stroke-linejoin="miter"><path d="M17.2,13.76c-1.89978,0.00019 -3.43981,1.54022 -3.44,3.44v137.6c0.00019,1.89978 1.54022,3.43981 3.44,3.44h137.6c1.89978,-0.00019 3.43981,-1.54022 3.44,-3.44v-137.6c-0.00019,-1.89978 -1.54022,-3.43981 -3.44,-3.44zM20.64,20.64h61.92v130.72h-61.92zM89.44,20.64h61.92v130.72h-61.92z"></path></g><path d="" fill="none" stroke="none" stroke-linejoin="miter"></path></g></g></svg>',oneColumn:'<svg width="36" height="36" viewBox="0 0 172 172" style=" fill:#000000;"><g transform=""><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="none" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" stroke="none" stroke-width="1"></path><path d="" stroke="none" stroke-width="1"></path><g stroke="#000000" stroke-width="6.88"><path d="M130.72,154.8c0,3.784 -3.096,6.88 -6.88,6.88h-75.68c-3.784,0 -6.88,-3.096 -6.88,-6.88v-137.6c0,-3.784 3.096,-6.88 6.88,-6.88h75.68c3.784,0 6.88,3.096 6.88,6.88z"></path></g></g></g></svg>',social:'<svg width="36" height="36" viewBox="0 0 48 48" style=" fill:#000000;"><path d="M 36 5 C 32.151772 5 29 8.1517752 29 12 C 29 12.585766 29.198543 13.109464 29.335938 13.654297 L 17.345703 19.652344 C 16.059118 18.073938 14.181503 17 12 17 C 8.1517722 17 5 20.151775 5 24 C 5 27.848225 8.1517722 31 12 31 C 14.181503 31 16.059118 29.926062 17.345703 28.347656 L 29.335938 34.345703 C 29.198543 34.890536 29 35.414234 29 36 C 29 39.848225 32.151772 43 36 43 C 39.848228 43 43 39.848225 43 36 C 43 32.151775 39.848228 29 36 29 C 33.818497 29 31.940882 30.073938 30.654297 31.652344 L 18.664062 25.654297 C 18.801457 25.109464 19 24.585766 19 24 C 19 23.414234 18.801457 22.890536 18.664062 22.345703 L 30.654297 16.347656 C 31.940882 17.926062 33.818497 19 36 19 C 39.848228 19 43 15.848225 43 12 C 43 8.1517752 39.848228 5 36 5 z M 36 8 C 38.226909 8 40 9.7730927 40 12 C 40 14.226907 38.226909 16 36 16 C 33.773091 16 32 14.226907 32 12 C 32 9.7730927 33.773091 8 36 8 z M 12 20 C 14.226909 20 16 21.773093 16 24 C 16 26.226907 14.226909 28 12 28 C 9.7730915 28 8 26.226907 8 24 C 8 21.773093 9.7730915 20 12 20 z M 36 32 C 38.226909 32 40 33.773093 40 36 C 40 38.226907 38.226909 40 36 40 C 33.773091 40 32 38.226907 32 36 C 32 33.773093 33.773091 32 36 32 z"></path></svg>',navbar:'<svg width="36" height="36" viewBox="0 0 50 50" style=" fill:#000000;"><path d="M 0 9 L 0 11 L 50 11 L 50 9 Z M 0 24 L 0 26 L 50 26 L 50 24 Z M 0 39 L 0 41 L 50 41 L 50 39 Z"></path></svg>',footer:'<svg width="36" height="36" viewBox="0 0 172 172" style=" fill:#000000;"><g transform="translate(0.516,0.516) scale(0.994,0.994)"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><g fill="#000000" stroke="#cccccc" stroke-linejoin="round"><path d="M13.76,24.08v116.96h144.48v-116.96h6.88v123.84h-158.24v-123.84zM30.96,24.08v6.88h-10.32v-6.88zM48.16,24.08v6.88h-10.32v-6.88zM65.36,24.08v6.88h-10.32v-6.88zM82.56,24.08v6.88h-10.32v-6.88zM99.76,24.08v6.88h-10.32v-6.88zM116.96,24.08v6.88h-10.32v-6.88zM134.16,24.08v6.88h-10.32v-6.88zM151.36,24.08v6.88h-10.32v-6.88zM120.4,41.28v6.88h-92.88v-6.88zM134.16,55.04v6.88h-106.64v-6.88zM106.64,68.8v6.88h-79.12v-6.88zM144.48,96.32v30.96h-116.96v-30.96zM34.4,120.4h103.2v-17.2h-103.2z"></path></g><path d="M0,172v-172h172v172z" fill="none" stroke="none" stroke-linejoin="miter"></path><g fill="#000000" stroke="none" stroke-linejoin="miter"><path d="M6.88,24.08v123.84h158.24v-123.84h-6.88v116.96h-144.48v-116.96zM20.64,24.08v6.88h10.32v-6.88zM37.84,24.08v6.88h10.32v-6.88zM55.04,24.08v6.88h10.32v-6.88zM72.24,24.08v6.88h10.32v-6.88zM89.44,24.08v6.88h10.32v-6.88zM106.64,24.08v6.88h10.32v-6.88zM123.84,24.08v6.88h10.32v-6.88zM141.04,24.08v6.88h10.32v-6.88zM27.52,41.28v6.88h92.88v-6.88zM27.52,55.04v6.88h106.64v-6.88zM27.52,68.8v6.88h79.12v-6.88zM27.52,96.32v30.96h116.96v-30.96zM34.4,103.2h103.2v17.2h-103.2z"></path></g><path d="" fill="none" stroke="none" stroke-linejoin="miter"></path></g></g></svg>',header:'<svg width="36" height="36" viewBox="0 0 172 172" style=" fill:#000000;"><g transform="translate(0.516,0.516) scale(0.994,0.994)"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><g fill="#000000" stroke="#cccccc" stroke-linejoin="round"><path d="M165.12,24.08v123.84h-6.88v-116.96h-144.48v116.96h-6.88v-123.84zM144.48,44.72v30.96h-116.96v-30.96zM34.4,68.8h103.2v-17.2h-103.2zM123.84,96.32v6.88h-92.88v-6.88zM137.6,110.08v6.88h-106.64v-6.88zM110.08,123.84v6.88h-79.12v-6.88zM30.96,141.04v6.88h-10.32v-6.88zM48.16,141.04v6.88h-10.32v-6.88zM65.36,141.04v6.88h-10.32v-6.88zM82.56,141.04v6.88h-10.32v-6.88zM99.76,141.04v6.88h-10.32v-6.88zM116.96,141.04v6.88h-10.32v-6.88zM134.16,141.04v6.88h-10.32v-6.88zM151.36,141.04v6.88h-10.32v-6.88z"></path></g><path d="M0,172v-172h172v172z" fill="none" stroke="none" stroke-linejoin="miter"></path><g fill="#000000" stroke="none" stroke-linejoin="miter"><path d="M6.88,24.08v123.84h6.88v-116.96h144.48v116.96h6.88v-123.84zM27.52,44.72v30.96h116.96v-30.96zM34.4,51.6h103.2v17.2h-103.2zM30.96,96.32v6.88h92.88v-6.88zM30.96,110.08v6.88h106.64v-6.88zM30.96,123.84v6.88h79.12v-6.88zM20.64,141.04v6.88h10.32v-6.88zM37.84,141.04v6.88h10.32v-6.88zM55.04,141.04v6.88h10.32v-6.88zM72.24,141.04v6.88h10.32v-6.88zM89.44,141.04v6.88h10.32v-6.88zM106.64,141.04v6.88h10.32v-6.88zM123.84,141.04v6.88h10.32v-6.88zM141.04,141.04v6.88h10.32v-6.88z"></path></g><path d="" fill="none" stroke="none" stroke-linejoin="miter"></path></g></g></svg>',image:'<svg width="36" height="36" viewBox="0 0 172 172" style=" fill:#000000;"><g transform="translate(0.516,0.516) scale(0.994,0.994)"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><g fill="#000000" stroke="#cccccc" stroke-linejoin="round"><path d="M172,17.2v137.6h-172v-137.6zM6.88,94.89563l31.4975,-31.4975l14.80813,22.22562l16.74312,-3.35937l14.05563,14.05562h20.3175l24.08,17.2h36.73812v-89.44h-158.24zM144.48,60.2c0,8.50594 -6.97406,15.48 -15.48,15.48c-8.50594,0 -15.48,-6.97406 -15.48,-15.48c0,-8.50594 6.97406,-15.48 15.48,-15.48c8.50594,0 15.48,6.97406 15.48,15.48zM120.4,60.2c0,4.78375 3.81625,8.6 8.6,8.6c4.78375,0 8.6,-3.81625 8.6,-8.6c0,-4.78375 -3.81625,-8.6 -8.6,-8.6c-4.78375,0 -8.6,3.81625 -8.6,8.6zM6.88,104.62438v43.29562h158.24v-27.52h-38.94187l-24.08,-17.2h-20.9625l-13.46438,-13.46437l-17.65687,3.52062l-12.71188,-19.05437z"></path></g><path d="M0,172v-172h172v172z" fill="none" stroke="none" stroke-linejoin="miter"></path><g fill="#000000" stroke="none" stroke-linejoin="miter"><path d="M0,17.2v137.6h172v-137.6zM6.88,24.08h158.24v89.44h-36.73812l-24.08,-17.2h-20.3175l-14.05563,-14.05562l-16.74312,3.35937l-14.80813,-22.22562l-31.4975,31.4975zM129,44.72c-8.50594,0 -15.48,6.97406 -15.48,15.48c0,8.50594 6.97406,15.48 15.48,15.48c8.50594,0 15.48,-6.97406 15.48,-15.48c0,-8.50594 -6.97406,-15.48 -15.48,-15.48zM129,51.6c4.78375,0 8.6,3.81625 8.6,8.6c0,4.78375 -3.81625,8.6 -8.6,8.6c-4.78375,0 -8.6,-3.81625 -8.6,-8.6c0,-4.78375 3.81625,-8.6 8.6,-8.6zM37.3025,74.20188l12.71188,19.05437l17.65687,-3.52062l13.46438,13.46437h20.9625l24.08,17.2h38.94187v27.52h-158.24v-43.29562z"></path></g><path d="" fill="none" stroke="none" stroke-linejoin="miter"></path></g></g></svg>',button:'<svg width="36" height="36" viewBox="0 0 172 172" style=" fill:#000000;"><g transform="translate(0.516,0.516) scale(0.994,0.994)"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><g fill="#000000" stroke="#cccccc" stroke-linejoin="round"><path d="M141.54167,39.41667c10.82086,0 19.70833,8.88748 19.70833,19.70833v53.75c0,10.82086 -8.88748,19.70833 -19.70833,19.70833h-111.08333c-10.82086,0 -19.70833,-8.88748 -19.70833,-19.70833v-53.75c0,-10.82086 8.88748,-19.70833 19.70833,-19.70833zM21.5,59.125v53.75c0,5.01031 3.94802,8.95833 8.95833,8.95833h111.08333c5.01031,0 8.95833,-3.94802 8.95833,-8.95833v-53.75c0,-5.01031 -3.94802,-8.95833 -8.95833,-8.95833h-111.08333c-5.01031,0 -8.95833,3.94802 -8.95833,8.95833zM68.08333,86c0,2.96853 -2.40647,5.375 -5.375,5.375c-2.96853,0 -5.375,-2.40647 -5.375,-5.375c0,-2.96853 2.40647,-5.375 5.375,-5.375c2.96853,0 5.375,2.40647 5.375,5.375zM91.375,86c0,2.96853 -2.40647,5.375 -5.375,5.375c-2.96853,0 -5.375,-2.40647 -5.375,-5.375c0,-2.96853 2.40647,-5.375 5.375,-5.375c2.96853,0 5.375,2.40647 5.375,5.375zM114.66667,86c0,2.96853 -2.40647,5.375 -5.375,5.375c-2.96853,0 -5.375,-2.40647 -5.375,-5.375c0,-2.96853 2.40647,-5.375 5.375,-5.375c2.96853,0 5.375,2.40647 5.375,5.375z"></path></g><path d="M0,172v-172h172v172z" fill="none" stroke="none" stroke-linejoin="miter"></path><g fill="#000000" stroke="none" stroke-linejoin="miter"><path d="M30.45833,39.41667c-10.82086,0 -19.70833,8.88748 -19.70833,19.70833v53.75c0,10.82086 8.88748,19.70833 19.70833,19.70833h111.08333c10.82086,0 19.70833,-8.88748 19.70833,-19.70833v-53.75c0,-10.82086 -8.88748,-19.70833 -19.70833,-19.70833zM30.45833,50.16667h111.08333c5.01031,0 8.95833,3.94802 8.95833,8.95833v53.75c0,5.01031 -3.94802,8.95833 -8.95833,8.95833h-111.08333c-5.01031,0 -8.95833,-3.94802 -8.95833,-8.95833v-53.75c0,-5.01031 3.94802,-8.95833 8.95833,-8.95833zM62.70833,80.625c-2.96853,0 -5.375,2.40647 -5.375,5.375c0,2.96853 2.40647,5.375 5.375,5.375c2.96853,0 5.375,-2.40647 5.375,-5.375c0,-2.96853 -2.40647,-5.375 -5.375,-5.375zM86,80.625c-2.96853,0 -5.375,2.40647 -5.375,5.375c0,2.96853 2.40647,5.375 5.375,5.375c2.96853,0 5.375,-2.40647 5.375,-5.375c0,-2.96853 -2.40647,-5.375 -5.375,-5.375zM109.29167,80.625c-2.96853,0 -5.375,2.40647 -5.375,5.375c0,2.96853 2.40647,5.375 5.375,5.375c2.96853,0 5.375,-2.40647 5.375,-5.375c0,-2.96853 -2.40647,-5.375 -5.375,-5.375z"></path></g><path d="" fill="none" stroke="none" stroke-linejoin="miter"></path></g></g></svg>',text:'<svg width="36" height="36" viewBox="0 0 172 172" style=" fill:#000000;"><g transform="translate(0.516,0.516) scale(0.994,0.994)"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="none" stroke-linecap="butt" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><g stroke="#cccccc" stroke-width="1" stroke-linejoin="round"><path d="M13.76,17.2h144.48M13.76,51.6h144.48M13.76,86h144.48M13.76,120.4h144.48M13.76,154.8h82.56"></path></g><path d="M0,172v-172h172v172z" stroke="none" stroke-width="1" stroke-linejoin="miter"></path><g stroke="#000000" stroke-width="6.88" stroke-linejoin="round"><path d="M13.76,17.2h144.48M13.76,51.6h144.48M13.76,86h144.48M13.76,86h144.48M13.76,120.4h144.48M13.76,120.4h144.48M13.76,154.8h82.56"></path></g><path d="" stroke="none" stroke-width="1" stroke-linejoin="miter"></path></g></g></svg>',video:'<svg x="0px" y="0px" width="36" height="36" viewBox="0 0 172 172" style=" fill:#000000;"><g transform="translate(0.43,0.43) scale(0.995,0.995)"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><g fill="#000000" stroke="#cccccc" stroke-linejoin="round"><path d="M143.33333,21.5c7.83362,0 14.33333,6.49972 14.33333,14.33333v100.33333c0,7.83362 -6.49972,14.33333 -14.33333,14.33333h-114.66667c-7.83362,0 -14.33333,-6.49972 -14.33333,-14.33333v-100.33333c0,-7.83362 6.49972,-14.33333 14.33333,-14.33333zM28.66667,136.16667h114.66667v-100.33333h-114.66667zM114.66667,86l-50.16667,28.66667v-57.33333z"></path></g><path d="M0,172v-172h172v172z" fill="none" stroke="none" stroke-linejoin="miter"></path><g fill="#000000" stroke="none" stroke-linejoin="miter"><path d="M28.66667,21.5c-7.83362,0 -14.33333,6.49972 -14.33333,14.33333v100.33333c0,7.83362 6.49972,14.33333 14.33333,14.33333h114.66667c7.83362,0 14.33333,-6.49972 14.33333,-14.33333v-100.33333c0,-7.83362 -6.49972,-14.33333 -14.33333,-14.33333zM28.66667,35.83333h114.66667v100.33333h-114.66667zM64.5,57.33333v57.33333l50.16667,-28.66667z"></path></g><path d="" fill="none" stroke="none" stroke-linejoin="miter"></path></g></g></svg>',customCode:'<svg width="36" height="36" viewBox="0 0 24 24"><path d="M14.6 16.6l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4m-5.2 0L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4z"></path></svg>',user:'<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">\n <path stroke-linecap="round" stroke-linejoin="round" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />\n</svg>',email:'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd"><path d="M12 0c6.623 0 12 5.377 12 12s-5.377 12-12 12-12-5.377-12-12 5.377-12 12-12zm8.127 19.41c-.282-.401-.772-.654-1.624-.85-3.848-.906-4.097-1.501-4.352-2.059-.259-.565-.19-1.23.205-1.977 1.726-3.257 2.09-6.024 1.027-7.79-.674-1.119-1.875-1.734-3.383-1.734-1.521 0-2.732.626-3.409 1.763-1.066 1.789-.693 4.544 1.049 7.757.402.742.476 1.406.22 1.974-.265.586-.611 1.19-4.365 2.066-.852.196-1.342.449-1.623.848 2.012 2.207 4.91 3.592 8.128 3.592s6.115-1.385 8.127-3.59zm.65-.782c1.395-1.844 2.223-4.14 2.223-6.628 0-6.071-4.929-11-11-11s-11 4.929-11 11c0 2.487.827 4.783 2.222 6.626.409-.452 1.049-.81 2.049-1.041 2.025-.462 3.376-.836 3.678-1.502.122-.272.061-.628-.188-1.087-1.917-3.535-2.282-6.641-1.03-8.745.853-1.431 2.408-2.251 4.269-2.251 1.845 0 3.391.808 4.24 2.218 1.251 2.079.896 5.195-1 8.774-.245.463-.304.821-.179 1.094.305.668 1.644 1.038 3.667 1.499 1 .23 1.64.59 2.049 1.043z"/></svg>',captcha:'<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">\n <path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />\n</svg>',customField:'<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">\n <path stroke-linecap="round" stroke-linejoin="round" d="M14 10l-2 1m0 0l-2-1m2 1v2.5M20 7l-2 1m2-1l-2-1m2 1v2.5M14 4l-2-1-2 1M4 7l2-1M4 7l2 1M4 7v2.5M12 21l-2-1m2 1l2-1m-2 1v-2.5M6 18l-2-1v-2.5M18 18l2-1v-2.5" />\n</svg>',gdpr:'<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 111.82 122.88" style="enable-background:new 0 0 111.82 122.88" xml:space="preserve"><style type="text/css">.st0{fill-rule:evenodd;clip-rule:evenodd;}</style><g><path class="st0" d="M55.72,0c20.87,13.2,39.67,19.47,55.85,17.99c2.84,57.11-18.25,90.84-55.63,104.89 C19.84,109.72-1.5,77.42,0.08,17.11C19.07,18.1,37.69,14.01,55.72,0L55.72,0z M55.91,79.01l3.13,7.64l8.23,0.61l-6.3,5.34 l1.96,8.02l-7.02-4.34l-7.02,4.34l1.96-8.02l-6.3-5.34l8.23-0.61L55.91,79.01L55.91,79.01z M29.4,44.83v-3.59h8.25v7.34 c-1.58,1.08-2.97,1.81-4.18,2.2c-1.21,0.39-2.65,0.58-4.32,0.58c-2.05,0-3.72-0.35-5.01-1.05c-1.29-0.7-2.29-1.74-3-3.12 c-0.71-1.38-1.07-2.97-1.07-4.76c0-1.89,0.39-3.52,1.17-4.92c0.78-1.39,1.91-2.45,3.41-3.17c1.17-0.56,2.75-0.84,4.72-0.84 c1.91,0,3.33,0.17,4.28,0.52c0.95,0.35,1.73,0.88,2.36,1.61c0.62,0.73,1.09,1.65,1.41,2.76l-5.14,0.92 c-0.21-0.66-0.57-1.16-1.08-1.5c-0.51-0.35-1.15-0.52-1.94-0.52c-1.17,0-2.1,0.41-2.79,1.22c-0.7,0.81-1.04,2.1-1.04,3.86 c0,1.87,0.35,3.2,1.05,4c0.7,0.8,1.68,1.2,2.93,1.2c0.6,0,1.16-0.08,1.7-0.26c0.54-0.17,1.16-0.47,1.86-0.88v-1.62H29.4L29.4,44.83 z M40.12,33.81h7.93c1.56,0,2.83,0.21,3.79,0.63c0.96,0.43,1.76,1.03,2.39,1.82c0.63,0.8,1.08,1.72,1.36,2.77 c0.29,1.05,0.43,2.17,0.43,3.34c0,1.85-0.21,3.28-0.63,4.29c-0.42,1.02-1,1.87-1.75,2.56c-0.75,0.69-1.55,1.15-2.4,1.37 c-1.17,0.31-2.23,0.47-3.18,0.47h-7.93V33.81L40.12,33.81z M45.45,37.72v9.43h1.31c1.12,0,1.91-0.12,2.39-0.37 c0.47-0.25,0.84-0.68,1.11-1.29c0.27-0.62,0.4-1.62,0.4-3c0-1.83-0.3-3.08-0.9-3.75c-0.6-0.68-1.59-1.01-2.98-1.01H45.45 L45.45,37.72z M58.02,33.81h8.88c1.93,0,3.38,0.46,4.35,1.38c0.96,0.92,1.44,2.23,1.44,3.93c0,1.74-0.53,3.11-1.58,4.09 c-1.05,0.98-2.65,1.48-4.81,1.48h-2.93v6.39h-5.35V33.81L58.02,33.81z M63.38,41.19h1.31c1.04,0,1.76-0.18,2.18-0.54 c0.42-0.36,0.63-0.82,0.63-1.37c0-0.54-0.18-1-0.55-1.38c-0.36-0.38-1.05-0.57-2.05-0.57h-1.53V41.19L63.38,41.19z M74.78,51.08 V33.81h8.89c1.65,0,2.91,0.14,3.78,0.43c0.87,0.28,1.58,0.81,2.11,1.57c0.53,0.77,0.8,1.7,0.8,2.81c0,0.96-0.2,1.78-0.62,2.48 c-0.41,0.7-0.97,1.26-1.69,1.7c-0.45,0.27-1.08,0.5-1.87,0.68c0.64,0.21,1.1,0.42,1.39,0.63c0.19,0.14,0.48,0.45,0.85,0.91 c0.37,0.46,0.62,0.82,0.74,1.07l2.59,4.99h-6.03l-2.85-5.27c-0.36-0.68-0.68-1.13-0.96-1.33c-0.39-0.27-0.82-0.4-1.31-0.4h-0.47 v6.99H74.78L74.78,51.08z M80.13,40.83h2.26c0.24,0,0.72-0.08,1.42-0.24c0.35-0.07,0.64-0.25,0.86-0.54c0.23-0.29,0.34-0.63,0.34-1 c0-0.56-0.18-0.99-0.53-1.29c-0.35-0.3-1.02-0.45-1.99-0.45h-2.35V40.83L80.13,40.83z"/></g></svg>',list:'<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">\n <path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 10h16M4 14h16M4 18h16" />\n</svg>',posts:'<svg style=" fill:#000000;" width="36" height="36" id="Line" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path d="M152.972,30.315v-9.7H35.373V168.193h15.87v10.583h113.2V30.315ZM113.343,164.348l-.05-.152V136.445H148.6a33.838,33.838,0,0,1-33.266,27.9ZM39.219,24.459H149.126v106.1c0,.686-.026,1.365-.067,2.041H109.447v31.749H39.219ZM160.594,174.93H55.089v-6.737h60.247a37.678,37.678,0,0,0,37.636-37.635V34.16h7.622Z"/><rect height="3.846" width="63.49" x="66.396" y="67.753"/><rect height="3.846" width="63.49" x="66.396" y="90.68"/><rect height="3.846" width="63.49" x="66.396" y="112.725"/></svg>',survey:'<svg version="1.1" viewBox="0 0 55 60" width="40" height="36" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill="none" fill-rule="evenodd" id="People" stroke="none" stroke-width="2"><g fill="#000000" id="Icon-4" transform="translate(-4.000000, 0.000000)"><path d="M25,46 L35,46 C35.553,46 36,45.552 36,45 C36,44.448 35.553,44 35,44 L25,44 C24.447,44 24,44.448 24,45 C24,45.552 24.447,46 25,46 L25,46 Z M25,40 L41,40 C41.553,40 42,39.552 42,39 C42,38.448 41.553,38 41,38 L25,38 C24.447,38 24,38.448 24,39 C24,39.552 24.447,40 25,40 L25,40 Z M24,33 C24,33.552 24.447,34 25,34 L43,34 C43.553,34 44,33.552 44,33 C44,32.448 43.553,32 43,32 L25,32 C24.447,32 24,32.448 24,33 L24,33 Z M25,28 L39,28 C39.553,28 40,27.552 40,27 C40,26.448 39.553,26 39,26 L25,26 C24.447,26 24,26.448 24,27 C24,27.552 24.447,28 25,28 L25,28 Z M25,22 L41,22 C41.553,22 42,21.552 42,21 C42,20.448 41.553,20 41,20 L25,20 C24.447,20 24,20.448 24,21 C24,21.552 24.447,22 25,22 L25,22 Z M19,44 L17,44 C16.447,44 16,44.448 16,45 C16,45.552 16.447,46 17,46 L19,46 C19.553,46 20,45.552 20,45 C20,44.448 19.553,44 19,44 L19,44 Z M19,38 L17,38 C16.447,38 16,38.448 16,39 C16,39.552 16.447,40 17,40 L19,40 C19.553,40 20,39.552 20,39 C20,38.448 19.553,38 19,38 L19,38 Z M19,32 L17,32 C16.447,32 16,32.448 16,33 C16,33.552 16.447,34 17,34 L19,34 C19.553,34 20,33.552 20,33 C20,32.448 19.553,32 19,32 L19,32 Z M19,26 L17,26 C16.447,26 16,26.448 16,27 C16,27.552 16.447,28 17,28 L19,28 C19.553,28 20,27.552 20,27 C20,26.448 19.553,26 19,26 L19,26 Z M17,22 L19,22 C19.553,22 20,21.552 20,21 C20,20.448 19.553,20 19,20 L17,20 C16.447,20 16,20.448 16,21 C16,21.552 16.447,22 17,22 L17,22 Z M20,10 L40,10 L40,6 L34.899,6 C34.424,6 34.014,5.665 33.92,5.199 C33.543,3.345 31.895,2 30,2 C28.105,2 26.457,3.345 26.08,5.199 C25.986,5.665 25.576,6 25.101,6 L20,6 L20,10 Z M18,11 L18,5 C18,4.448 18.447,4 19,4 L24.343,4 C25.178,1.64 27.439,0 30,0 C32.561,0 34.822,1.64 35.657,4 L41,4 C41.553,4 42,4.448 42,5 L42,11 C42,11.552 41.553,12 41,12 L19,12 C18.447,12 18,11.552 18,11 L18,11 Z M30,4 C28.897,4 28,4.897 28,6 C28,7.103 28.897,8 30,8 C31.103,8 32,7.103 32,6 C32,4.897 31.103,4 30,4 L30,4 Z M45,56 C45.256,56 45.512,55.902 45.707,55.707 L51.707,49.707 C51.895,49.52 52,49.265 52,49 L52,9 C52,8.448 51.553,8 51,8 L45,8 C44.447,8 44,8.448 44,9 C44,9.552 44.447,10 45,10 L50,10 L50,48.586 L44.293,54.293 C43.902,54.684 43.902,55.316 44.293,55.707 C44.488,55.902 44.744,56 45,56 L45,56 Z M15,8 L9,8 C8.447,8 8,8.448 8,9 L8,52 C8,54.206 9.794,56 12,56 L41,56 C41.553,56 42,55.552 42,55 L42,49 C42,48.547 42.446,48 43,48 L47,48 C47.553,48 48,47.552 48,47 C48,46.448 47.553,46 47,46 L43,46 C41.402,46 40,47.402 40,49 L40,54 L12,54 C10.897,54 10,53.103 10,52 L10,10 L15,10 C15.553,10 16,9.552 16,9 C16,8.448 15.553,8 15,8 L15,8 Z M56,9 L56,55 C56,57.57 53.57,60 51,60 L9,60 C6.43,60 4,57.57 4,55 L4,9 C4,6.43 6.43,4 9,4 L15,4 C15.553,4 16,4.448 16,5 C16,5.552 15.553,6 15,6 L9,6 C7.542,6 6,7.542 6,9 L6,55 C6,56.458 7.542,58 9,58 L51,58 C52.458,58 54,56.458 54,55 L54,9 C54,7.542 52.458,6 51,6 L45,6 C44.447,6 44,5.552 44,5 C44,4.448 44.447,4 45,4 L51,4 C53.57,4 56,6.43 56,9 L56,9 Z" id="notepad"/></g></g></svg>',postFormat:'<svg width="16" height="16" viewBox="0 0 172 172" style=" fill:#ffffff;"><g transform="translate(0.516,0.516) scale(0.994,0.994)"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><g fill="#ffffff" stroke="#ffffff" stroke-linejoin="round"><path d="M165.12,24.08v123.84h-6.88v-116.96h-144.48v116.96h-6.88v-123.84zM144.48,44.72v30.96h-116.96v-30.96zM34.4,68.8h103.2v-17.2h-103.2zM123.84,96.32v6.88h-92.88v-6.88zM137.6,110.08v6.88h-106.64v-6.88zM110.08,123.84v6.88h-79.12v-6.88zM30.96,141.04v6.88h-10.32v-6.88zM48.16,141.04v6.88h-10.32v-6.88zM65.36,141.04v6.88h-10.32v-6.88zM82.56,141.04v6.88h-10.32v-6.88zM99.76,141.04v6.88h-10.32v-6.88zM116.96,141.04v6.88h-10.32v-6.88zM134.16,141.04v6.88h-10.32v-6.88zM151.36,141.04v6.88h-10.32v-6.88z"></path></g><path d="M0,172v-172h172v172z" fill="none" stroke="none" stroke-linejoin="miter"></path><g fill="#ffffff" stroke="none" stroke-linejoin="miter"><path d="M6.88,24.08v123.84h6.88v-116.96h144.48v116.96h6.88v-123.84zM27.52,44.72v30.96h116.96v-30.96zM34.4,51.6h103.2v17.2h-103.2zM30.96,96.32v6.88h92.88v-6.88zM30.96,110.08v6.88h106.64v-6.88zM30.96,123.84v6.88h79.12v-6.88zM20.64,141.04v6.88h10.32v-6.88zM37.84,141.04v6.88h10.32v-6.88zM55.04,141.04v6.88h10.32v-6.88zM72.24,141.04v6.88h10.32v-6.88zM89.44,141.04v6.88h10.32v-6.88zM106.64,141.04v6.88h10.32v-6.88zM123.84,141.04v6.88h10.32v-6.88zM141.04,141.04v6.88h10.32v-6.88z"></path></g><path d="" fill="none" stroke="none" stroke-linejoin="miter"></path></g></g></svg>',imageDateExcerptPostFormat:'\n <svg width="32" height="30" viewBox="0 0 32 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_1632_8634)">\n <rect x="1.49107" y="1.50133" width="29.0181" height="26.8672" rx="1.66071" stroke="#575362" stroke-width="1.10714"/>\n <path d="M27.595 18.75H4.40521C3.96079 18.75 3.6001 19.0853 3.6001 19.5C3.6001 19.9147 3.96079 20.25 4.40521 20.25H27.595C28.0394 20.25 28.4001 19.9147 28.4001 19.5C28.4001 19.086 28.0402 18.75 27.595 18.75Z" fill="#CCCAD2"/>\n <path d="M26.8451 22.5H4.38005C3.94952 22.5 3.6001 22.8353 3.6001 23.25C3.6001 23.6647 3.94952 24 4.38005 24H26.8451C27.2757 24 27.6251 23.6647 27.6251 23.25C27.6251 22.8353 27.2765 22.5 26.8451 22.5Z" fill="#CCCAD2"/>\n <path d="M14.0979 15H3.95234C3.7579 15 3.6001 15.3353 3.6001 15.75C3.6001 16.1647 3.7579 16.5 3.95234 16.5H14.0979C14.2923 16.5 14.4501 16.1647 14.4501 15.75C14.4501 15.3353 14.2926 15 14.0979 15Z" fill="#575362"/>\n <path d="M28.374 4.04581C28.3531 4.00231 28.3331 3.97795 28.3146 3.95185C28.2989 3.93009 28.2866 3.9066 28.2676 3.88833C28.2476 3.86876 28.2225 3.85571 28.1987 3.84005C28.1731 3.82308 28.1493 3.80394 28.1204 3.79176C28.0971 3.78176 28.0705 3.77915 28.0453 3.77306C28.0107 3.76436 27.9769 3.75479 27.9404 3.75348C27.9242 3.75 4.07503 3.75 4.07503 3.75C4.02136 3.75392 3.98669 3.76392 3.9506 3.77306C3.92638 3.77915 3.90168 3.78176 3.87936 3.79089C3.84944 3.80351 3.82522 3.82308 3.79862 3.84092C3.77582 3.85658 3.75113 3.86876 3.73165 3.8879C3.71218 3.9066 3.69983 3.93009 3.68416 3.95228C3.66564 3.97795 3.64617 4.00231 3.63382 4.03189C3.61672 4.06886 3.61957 4.09192 3.6153 4.11497C3.61102 4.1389 3.6001 4.16022 3.6001 4.18501V11.5646C3.6001 11.5893 3.61102 11.6107 3.6153 11.6346C3.61957 11.6576 3.61625 11.6811 3.62479 11.7042C3.64142 11.7359 3.65139 11.7499 3.66041 11.7651C3.67846 11.7968 3.69888 11.826 3.72453 11.8521C3.73735 11.8656 3.75113 11.8769 3.76585 11.8886C3.79482 11.9121 3.82617 11.9308 3.86036 11.9469C3.87651 11.9548 3.89123 11.963 3.9088 11.9691C3.962 11.9874 4.01756 12 4.0755 12H27.9247C27.9826 12 28.0387 11.9874 28.0914 11.9691C28.1085 11.963 28.1237 11.9548 28.1398 11.9469C28.174 11.9308 28.2054 11.9121 28.2343 11.8886C28.2491 11.8769 28.2624 11.8656 28.2757 11.8521C28.3008 11.826 28.3213 11.7968 28.3398 11.7651C28.3488 11.7499 28.3588 11.7364 28.3659 11.7199C28.3835 11.6807 28.3806 11.6576 28.3849 11.6342C28.3892 11.6107 28.4001 11.5893 28.4001 11.5646V4.18501C28.4001 4.16022 28.3892 4.1389 28.3849 4.11541C28.3797 4.09192 28.3825 4.06886 28.374 4.04581ZM25.0347 4.62002L15.9996 7.41584L6.96452 4.62002H25.0347ZM4.54996 4.79098L14.5159 7.87478L4.54996 10.9586V4.79098ZM6.96452 11.1295L15.9996 8.33372L25.0347 11.1295H6.96452ZM27.4493 10.9586L17.4833 7.87478L27.4493 4.79098V10.9586Z" fill="#575362"/>\n </g>\n <defs>\n <clipPath id="clip0_1632_8634">\n <rect width="31" height="30" fill="white" transform="translate(0.5)"/>\n </clipPath>\n </defs>\n </svg>\n ',blankPostFormat:'<svg width="32" height="29" viewBox="0 0 32 29" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect x="1.0226" y="1.51869" width="29.9541" height="26.8315" rx="1.71429" stroke="#575362" stroke-width="1.14286"/>\n </svg>',titleDatePostFormat:'<svg width="30" height="32" viewBox="0 0 30 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_1632_8034)">\n <rect x="0.491071" y="2.03306" width="29.0181" height="27.7997" rx="1.66071" stroke="#575362" stroke-width="1.10714"/>\n <path d="M19.0961 4.375H3.15313C2.84759 4.375 2.59961 4.72142 2.59961 5.15C2.59961 5.57857 2.84759 5.925 3.15313 5.925H19.0961C19.4016 5.925 19.6496 5.57857 19.6496 5.15C19.6496 4.7222 19.4022 4.375 19.0961 4.375Z" fill="#575362"/>\n <path d="M13.0974 8.25H2.95185C2.75741 8.25 2.59961 8.59642 2.59961 9.025C2.59961 9.45357 2.75741 9.8 2.95185 9.8H13.0974C13.2918 9.8 13.4496 9.45357 13.4496 9.025C13.4496 8.59642 13.2922 8.25 13.0974 8.25Z" fill="#575362"/>\n </g>\n <defs>\n <clipPath id="clip0_1632_8034">\n <rect width="30" height="31" fill="white" transform="translate(0 0.5)"/>\n </clipPath>\n </defs>\n </svg>',titleExcerptPostFormat:'\n <svg width="32" height="30" viewBox="0 0 32 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_1632_8064)">\n <rect x="1.49107" y="1.50148" width="29.0181" height="26.8672" rx="1.66071" stroke="#575362" stroke-width="1.10714"/>\n <path d="M20.0971 3.75H4.1541C3.84856 3.75 3.60059 4.08525 3.60059 4.5C3.60059 4.91475 3.84856 5.25 4.1541 5.25H20.0971C20.4026 5.25 20.6506 4.91475 20.6506 4.5C20.6506 4.086 20.4032 3.75 20.0971 3.75Z" fill="#575362"/>\n <path d="M27.5955 11.25H4.4057C3.96128 11.25 3.60059 11.5853 3.60059 12C3.60059 12.4148 3.96128 12.75 4.4057 12.75H27.5955C28.0399 12.75 28.4006 12.4148 28.4006 12C28.4006 11.586 28.0407 11.25 27.5955 11.25Z" fill="#CCCAD2"/>\n <path d="M27.5955 7.5H4.4057C3.96128 7.5 3.60059 7.83525 3.60059 8.25C3.60059 8.66475 3.96128 9 4.4057 9H27.5955C28.0399 9 28.4006 8.66475 28.4006 8.25C28.4006 7.836 28.0407 7.5 27.5955 7.5Z" fill="#CCCAD2"/>\n <path d="M26.8456 15H4.38054C3.95001 15 3.60059 15.3353 3.60059 15.75C3.60059 16.1648 3.95001 16.5 4.38054 16.5H26.8456C27.2762 16.5 27.6256 16.1648 27.6256 15.75C27.6256 15.3353 27.2769 15 26.8456 15Z" fill="#CCCAD2"/>\n <path d="M26.8456 18.75H4.38054C3.95001 18.75 3.60059 19.0853 3.60059 19.5C3.60059 19.9148 3.95001 20.25 4.38054 20.25H26.8456C27.2762 20.25 27.6256 19.9148 27.6256 19.5C27.6256 19.0853 27.2769 18.75 26.8456 18.75Z" fill="#CCCAD2"/>\n <path d="M26.8456 22.5H4.38054C3.95001 22.5 3.60059 22.8353 3.60059 23.25C3.60059 23.6648 3.95001 24 4.38054 24H26.8456C27.2762 24 27.6256 23.6648 27.6256 23.25C27.6256 22.8353 27.2769 22.5 26.8456 22.5Z" fill="#CCCAD2"/>\n </g>\n <defs>\n <clipPath id="clip0_1632_8064">\n <rect width="31" height="30" fill="white" transform="translate(0.5)"/>\n </clipPath>\n </defs>\n </svg>\n ',titleDateExcerptPostFormat:'\n <svg width="32" height="30" viewBox="0 0 32 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_1632_7601)">\n <rect x="1.49107" y="1.50133" width="29.0181" height="26.8672" rx="1.66071" stroke="#575362" stroke-width="1.10714"/>\n <path d="M20.0966 3.75H4.15362C3.84807 3.75 3.6001 4.08525 3.6001 4.5C3.6001 4.91475 3.84807 5.25 4.15362 5.25H20.0966C20.4021 5.25 20.6501 4.91475 20.6501 4.5C20.6501 4.086 20.4027 3.75 20.0966 3.75Z" fill="#575362"/>\n <path d="M27.595 11.25H4.40521C3.96079 11.25 3.6001 11.5853 3.6001 12C3.6001 12.4147 3.96079 12.75 4.40521 12.75H27.595C28.0394 12.75 28.4001 12.4147 28.4001 12C28.4001 11.586 28.0402 11.25 27.595 11.25Z" fill="#CCCAD2"/>\n <path d="M26.8451 15H4.38005C3.94952 15 3.6001 15.3353 3.6001 15.75C3.6001 16.1647 3.94952 16.5 4.38005 16.5H26.8451C27.2757 16.5 27.6251 16.1647 27.6251 15.75C27.6251 15.3353 27.2765 15 26.8451 15Z" fill="#CCCAD2"/>\n <path d="M26.8451 18.75H4.38005C3.94952 18.75 3.6001 19.0853 3.6001 19.5C3.6001 19.9147 3.94952 20.25 4.38005 20.25H26.8451C27.2757 20.25 27.6251 19.9147 27.6251 19.5C27.6251 19.0853 27.2765 18.75 26.8451 18.75Z" fill="#CCCAD2"/>\n <path d="M26.8451 22.5H4.38005C3.94952 22.5 3.6001 22.8353 3.6001 23.25C3.6001 23.6647 3.94952 24 4.38005 24H26.8451C27.2757 24 27.6251 23.6647 27.6251 23.25C27.6251 22.8353 27.2765 22.5 26.8451 22.5Z" fill="#CCCAD2"/>\n <path d="M14.0979 7.5H3.95234C3.7579 7.5 3.6001 7.83525 3.6001 8.25C3.6001 8.66475 3.7579 9 3.95234 9H14.0979C14.2923 9 14.4501 8.66475 14.4501 8.25C14.4501 7.83525 14.2926 7.5 14.0979 7.5Z" fill="#575362"/>\n </g>\n <defs>\n <clipPath id="clip0_1632_7601">\n <rect width="31" height="30" fill="white" transform="translate(0.5)"/>\n </clipPath>\n </defs>\n </svg>\n '},h=function(t){return function(e){return e.tagName===t.toUpperCase()}};function g(t){return t.replace("<!doctype html>","").replace(/\s{2,}/g," ").replace(/'/g,'"').replaceAll('url("',"url('").replaceAll('");',"');")}function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,b(r.key),r)}}function b(t){var e=function(t,e){if("object"!==v(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===v(e)?e:String(e)}const _=function(){function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=b(r="blockManager"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.blockManager=e,this.addOneColumn(),this.addTwoColumns(),this.addOneRatioTwoColumns(),this.addTwoRatioOneColumns()}var e,n;return e=t,(n=[{key:"addTwoRatioOneColumns",value:function(){this.blockManager.add("lock_two_ratio_one_columns",{category:"Section",label:"2:1 Columns",media:d.twoOneColumn,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addOneRatioTwoColumns",value:function(){this.blockManager.add("lock_one_ratio_two_columns",{category:"Section",label:"1:2 Columns",media:d.oneTwoColumn,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addOneColumn",value:function(){var t;t="form"===window.esPage?'\n <div class="gjs-cell"></div>\n ':'\n <mj-section background-color="#FFFFFF">\n <mj-column width="100%">\n <mj-text line-height="26px">\n Your content...\n </mj-text>\n </mj-column>\n </mj-section>\n ',this.blockManager.add("one_column",{category:"Section",label:"1 Column",media:d.oneColumn,content:t})}},{key:"addTwoColumns",value:function(){var t;t="form"===window.esPage?'<div class="gjs-row">\n <div class="gjs-cell"></div>\n <div class="gjs-cell"></div>\n </div>':'\n <mj-section background-color="#FFFFFF">\n <mj-column width="50%" >\n <mj-text line-height="26px">\n Your content...\n </mj-text>\n </mj-column>\n <mj-column width="50%" >\n <mj-text line-height="26px">\n Your content...\n </mj-text>\n </mj-column>\n </mj-section>\n ',this.blockManager.add("two_columns",{category:"Section",label:"2 Columns",media:d.twoColumn,content:t})}}])&&y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,x(r.key),r)}}function x(t){var e=function(t,e){if("object"!==w(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===w(e)?e:String(e)}const T=function(){function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=x(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,"form"===window.esPage?this.addESFormElements():(this.addTextElement(),this.addButtonElement(),this.addImageElement(),this.addHeaderElement(),this.addFooterElement(),this.addDividerElement(),this.addSpacerElement(),this.addNavbarElement(),this.addSocialGroupElement(),this.addVideoElement(),this.addSurveyElement(),this.addPostsElement())}var e,n;return e=t,(n=[{key:"addCustomCodeElement",value:function(){this.editor.BlockManager.add("lock_custom_code_element",{category:"Elements",label:"Custom code",media:d.customCode,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addVideoElement",value:function(){this.editor.BlockManager.add("lock_video_element",{category:"Elements",label:"Video",media:d.video,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addSocialGroupElement",value:function(){this.editor.BlockManager.add("lock_social_group_element",{category:"Elements",label:"Social Group",media:d.social,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addNavbarElement",value:function(){this.editor.BlockManager.add("lock_navbar_element",{category:"Elements",label:"Navbar",media:d.navbar,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addSpacerElement",value:function(){this.editor.BlockManager.add("lock_spacer_element",{category:"Elements",label:"Spacer",media:d.spacer,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addDividerElement",value:function(){this.editor.BlockManager.add("lock_divider_element",{category:"Elements",label:"Divider",media:d.divider,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addFooterElement",value:function(){this.editor.BlockManager.add("lite_footer_element",{category:"Elements",label:"Footer",media:d.footer,content:'\n <mj-section background-color="#f3f3f3">\n <mj-column width="100%">\n <mj-text align="center" line-height="26px">@2022, Icegram Express.</mj-text>\n <mj-text align="center" line-height="26px">You are receiving this email because you have visited our site or asked about our regular newsletter. If you wish to unsubscribe from our newsletter, click <a data-gjs-type="link" href="{{UNSUBSCRIBE-LINK}}">here </a></mj-text>\n </mj-column>\n </mj-section>\n '})}},{key:"addHeaderElement",value:function(){this.editor.BlockManager.add("lite_header_element",{category:"Elements",label:"Header",media:d.header,content:'\n <mj-section background-color="#FFFFFF">\n <mj-column width="100%">\n <mj-image src="https://webstockreview.net/images/sample-png-images-14.png" height="70px" width="140px"/>\n </mj-column>\n </mj-section>\n '})}},{key:"addImageElement",value:function(){this.editor.BlockManager.add("image_element",{category:"Elements",label:"Image",media:d.image,content:'\n <mj-image src="https://via.placeholder.com/350x250/78c5d6/fff"/>\n '})}},{key:"addButtonElement",value:function(){this.editor.BlockManager.add("button_element",{category:"Elements",label:"Button",media:d.button,content:"\n <mj-button>Button</mj-button>\n "})}},{key:"addTextElement",value:function(){this.editor.BlockManager.add("text_element",{category:"Elements",label:"Text",media:d.text,content:'\n <mj-text line-height="26px">\n Your content...\n </mj-text>\n '})}},{key:"addSurveyElement",value:function(){this.editor.BlockManager.add("lock_survey_element",{category:"Elements",label:"Survey",media:d.survey,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addPostsElement",value:function(){var t=this;this.editor.BlockManager.add("posts_element",{category:"Elements",label:"Add Posts",media:d.posts,content:'\n <div class="es-posts" style="pointer-events: all;display: table; width: 100%;">\n <span style="visibility:hidden;font-size:3px">{{campaign.posts}}</span>\n <div class="post-format-content"></div>\n <span style="visibility:hidden;font-size:3px">{{/campaign.posts}}</span>\n </div>',draggable:!0,campaignTypes:["post_notification","post_digest"]});var e=ig_es_campaign_editor_data.postTags;void 0!==e&&e.length>0&&e.forEach((function(e){var n="es-"+e.keyword.replace(".","-");t.editor.BlockManager.add(n,{media:e.icon?e.icon:d.customField,label:e.label,content:'<mj-text line-height="26px" class="'.concat(n,'">\n {{').concat(e.keyword,"}}\n </mj-text>"),draggable:!0,droppable:!0,category:"Post blocks",textable:1,campaignTypes:["post_notification","post_digest"]})}))}},{key:"addESFormElements",value:function(){this.addFormTextElement(),this.addFormImageElement(),this.addNameElement(),this.addListsElement(),this.addCaptchaElement(),this.addGDPRElement()}},{key:"addFormTextElement",value:function(){this.editor.BlockManager.add("es-text",{label:"Text",media:d.text,content:"<p>Your content...</p>",category:"Form"})}},{key:"addFormImageElement",value:function(){this.editor.BlockManager.add("es-image",{label:"Image",media:d.image,content:{type:"es-image",draggable:!0,droppable:!0},category:"Form"})}},{key:"addNameElement",value:function(){this.editor.BlockManager.add("es-name",{label:"Name",media:d.user,content:{classes:"gjs-row",tagName:"div",components:[{classes:"gjs-cell",tagName:"div",components:[{type:"text",tagName:"label",classes:"es-field-label",content:"Name"},{type:"name"}]}]},category:"Form"})}},{key:"addEmailElement",value:function(){this.editor.BlockManager.add("es-email",{label:"Email",media:d.email,content:{type:"es-email"},category:"Form"})}},{key:"addListsElement",value:function(){this.editor.BlockManager.add("es-list",{label:"List",media:d.list,content:{classes:"gjs-row",tagName:"div",components:[{classes:"gjs-cell",tagName:"div",components:[{type:"text",content:"Select list(s) *",tagName:"label",classes:"es-field-label"},{type:"es-list"}]}]},draggable:!0,droppable:!0,category:"Form"})}},{key:"addGDPRElement",value:function(){this.editor.BlockManager.add("es-gdpr",{label:"GDPR",media:d.gdpr,content:{classes:"gjs-row",tagName:"div",components:[{classes:"gjs-cell",tagName:"div",components:[{classes:"es_gdpr",tagName:"div",components:[{type:"text",content:'<input type="checkbox" name="es_gdpr_consent" value="true" required="required"/>Please read our <a href="'+ig_es_form_editor_data.site_url+'">terms and conditions</a>',tagName:"label",classes:"es-field-label"}]}]}]},draggable:!0,droppable:!0,category:"Form"})}},{key:"addCaptchaElement",value:function(){this.editor.BlockManager.add("lock_captcha_element",{category:"Form",label:"Captcha",media:d.captcha,content:"",disable:!0,attributes:{class:"lock-block starter"}})}},{key:"addSubmitElement",value:function(){this.editor.BlockManager.add("es-submit",{label:"Submit",content:{type:"es-submit"},draggable:!0,droppable:!0,category:"Form"})}}])&&E(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function A(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,O(r.key),r)}}function O(t){var e=function(t,e){if("object"!==C(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===C(e)?e:String(e)}const S=function(){function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=O(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,this.addBlocks(),this.removeBlocks(),this.handleBlocksFilter()}var e,n;return e=t,(n=[{key:"handleBlocksFilter",value:function(){var t=this,e=document.getElementById("gj-blocks-container-search");e&&e.addEventListener("keyup",(function(e){var n=e.target.value,r=t.editor.BlockManager,o=r.getAll().filter((function(t){return t.attributes.label.toLowerCase().includes(n)}));r.render(o)}))}},{key:"addBlocks",value:function(){new _(this.editor.BlockManager),new T(this.editor)}},{key:"removeBlocks",value:function(){var t=this.editor.BlockManager;t.remove("mj-1-column"),t.remove("mj-2-columns"),t.remove("mj-3-columns"),t.remove("mj-text"),t.remove("mj-button"),t.remove("mj-image"),t.remove("mj-divider"),t.remove("mj-social-group"),t.remove("mj-social-element"),t.remove("mj-spacer"),t.remove("mj-navbar"),t.remove("mj-navbar-link"),t.remove("mj-hero"),t.remove("mj-wrapper"),t.remove("mj-raw")}}])&&A(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function k(t){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(t)}function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t,e){if("object"!==k(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===k(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,D(r.key),r)}}function D(t){var e=function(t,e){if("object"!==N(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===N(e)?e:String(e)}const I=function(){function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=D(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,this.addPanels(),this.removePanels(),this.addCommands()}var e,n;return e=t,n=[{key:"addCommands",value:function(){var t=this.editor,e=t.Commands;!function(t,e){e.add("reset-to-default-template",{run:function(e){var n="form"===window.esPage?'Are you sure want to "Reset" your form?':'Are you sure want to "Reset" your template?';if(confirm(n))if("form"===window.esPage){var r=u();t.setComponents(r)}else t.setComponents('<mjml>\n <mj-body>\n <mj-section background-color="#FFFFFF">\n <mj-column width="100%">\n <mj-image src="https://webstockreview.net/images/sample-png-images-14.png" height="70px"\n width="140px"/>\n </mj-column>\n </mj-section>\n <mj-section background-color="#FFFFFF">\n <mj-column width="100%">\n <mj-text line-height="26px">Your content...</mj-text>\n </mj-column>\n </mj-section>\n <mj-section background-color="#f3f3f3">\n <mj-column width="100%">\n <mj-text align="center" line-height="26px">@2022, Your Brand Name.</mj-text>\n <mj-text align="center" line-height="26px">You are receiving this email because you have visited our site or asked\n about our regular newsletter. If you wish to unsubscribe from our newsletter, click <a data-gjs-type="link" href="{{UNSUBSCRIBE-LINK}}" >here </a>\n </mj-text>\n </mj-column>\n </mj-section>\n </mj-body>\n </mjml> \n ')}})}(t,e),function(t,e){e.add("export-html-template",{run:function(e){var n=e.store(),r=g(e.runCommand("mjml-get-code").html);document.getElementById("ig-es-export-html-data-textarea").value=r,document.getElementById("ig-es-export-json-data-textarea").value=n.components;var o=document.createElement("div");o.classList.add("export-html-container");var i=document.createElement("textarea");i.classList.add("export-html-textarea"),i.value=r,o.append(i),t.Modal.open({title:"HTML",content:o,attributes:{class:"export-html"}})}})}(t,e),function(t,e){var n={},r=function(t,e){e instanceof HTMLElement?t.appendChild(e):e&&t.insertAdjacentHTML("beforeend",e)},o="custom-code-plugin__code";e.add("custom-code:open-modal",j({keyCustomCode:o,run:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.editor=t,this.options=n,this.target=n.target||t.getSelected();var r=this.target;r&&r.get("editable")&&this.showCustomCode(r)},stop:function(t){t.Modal.close()},showCustomCode:function(t){var e=this,n=this.editor,r=this.options.title||"Insert your code",i=this.getContent(),a=t.get(o)||"";n.Modal.open({title:r,content:i}).getModel().once("change:open",(function(){return n.stopCommand(e.id)})),this.getCodeViewer().setContent(a)},getPreContent:function(){},getPostContent:function(){},getContent:function(){var t=this.editor,e=document.createElement("div"),n=this.getCodeViewer(),o=t.getConfig("stylePrefix");return e.className="".concat(o,"custom-code"),r(e,this.getPreContent()),e.appendChild(n.getElement()),r(e,this.getPostContent()),r(e,this.getContentActions()),n.refresh(),setTimeout((function(){return n.focus()}),0),e},getContentActions:function(){var t=this,e=this.editor,n=document.createElement("div");n.classList.add("icca-con");var r=document.createElement("button");r.setAttribute("type","button");var o=e.getConfig("stylePrefix");return r.innerHTML="Insert",r.className="".concat(o,"btn-prim ").concat(o,"btn-import__custom-code"),r.onclick=function(){return t.handleSave()},n.append(r),n},handleSave:function(){var t=this.editor,e=this.target,n=this.getCodeViewer().getContent();e.set(o,n),t.Modal.close()},getCodeViewer:function(){var t=this.editor;return this.codeViewer||(this.codeViewer=t.CodeManager.createViewer(j({codeName:"htmlmixed",theme:"hopscotch",readOnly:0},n))),this.codeViewer}},{}))}(0,e)}},{key:"addPanels",value:function(){var t=this.editor.Panels;t.addPanel({id:"basic-actions",el:"#undo-redo-actions",buttons:[{id:"reset",className:"fa fa-eraser",command:"reset-to-default-template",attributes:{title:"Reset"}},{id:"undo",className:"fa fa-undo",command:"core:undo",attributes:{title:"Undo"}},{id:"redo",className:"fa fa-repeat",command:"core:redo",attributes:{title:"Redo"}}]}),t.addPanel({id:"resize-actions",el:"#resize-devices",buttons:[{id:"desktop",active:!0,className:"fa fa-desktop",command:"set-device-desktop",attributes:{title:"View in desktop size"}},{id:"tablet",className:"fa fa-tablet",command:"set-device-tablet",attributes:{title:"View in tablet size"}},{id:"mobile",className:"fa fa-mobile",command:"set-device-mobile",attributes:{title:"View in mobile phone size"}}]})}},{key:"removePanels",value:function(){}}],n&&L(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,F(r.key),r)}}function B(t,e,n){return(e=F(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F(t){var e=function(t,e){if("object"!==R(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===R(e)?e:String(e)}const U=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),B(this,"editor",void 0),B(this,"onSelectComponent",void 0),this.editor=e,this.onSelectComponent=n,this.handleComponentsSelection()}var e,n;return e=t,(n=[{key:"handleComponentsSelection",value:function(){var t=this.editor;t.StyleManager,t.on("component:add",(function(t){})),t.on("component:remove",(function(t){})),t.on("component:selected",(function(t){var e=t.getTrait("src"),n=t.getTrait("href");e&&e.set({label:"Image"}),n&&n.set({label:"Link"})})),t.on("block:drag:stop",(function(e){t.select(e)}))}}])&&M(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,q(r.key),r)}}function q(t){var e=function(t,e){if("object"!==H(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===H(e)?e:String(e)}const z=function(){function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=q(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e}var e,n;return e=t,(n=[{key:"handleStyleManager",value:function(){var t=this.editor;if(t.on("load",(function(){document.querySelector("#gjs-sm-dimension .gjs-sm-title").innerHTML='<i id="gjs-sm-caret" class="fa fa-caret-right"></i> Spacing',document.querySelector("#gjs-sm-decorations .gjs-sm-title").innerHTML='<i id="gjs-sm-caret" class="fa fa-caret-right"></i> Colors',document.querySelector("#gjs-sm-typography .gjs-sm-title").innerHTML='<i id="gjs-sm-caret" class="fa fa-caret-right"></i> Text styles';var e=t.StyleManager.getSectors();e.each((function(t){t.set("open",!1).on("change:open",(function(t){t.get("open")&&e.each((function(e){e!==t&&e.set("open",!1)}))}))}))})),"form"===window.esPage){var e=u();t.setComponents(e)}else t.setComponents('<mjml>\n <mj-body>\n <mj-section background-color="#FFFFFF">\n <mj-column width="100%">\n <mj-image src="https://webstockreview.net/images/sample-png-images-14.png" height="70px"\n width="140px"/>\n </mj-column>\n </mj-section>\n <mj-section background-color="#FFFFFF">\n <mj-column width="100%">\n <mj-text line-height="26px">Your content...</mj-text>\n </mj-column>\n </mj-section>\n <mj-section background-color="#f3f3f3">\n <mj-column width="100%">\n <mj-text align="center" line-height="26px">@2022, Your Brand Name.</mj-text>\n <mj-text align="center" line-height="26px">You are receiving this email because you have visited our site or asked\n about our regular newsletter. If you wish to unsubscribe from our newsletter, click <a data-gjs-type="link" href="{{UNSUBSCRIBE-LINK}}" >here </a>\n </mj-text>\n </mj-column>\n </mj-section>\n </mj-body>\n </mjml> \n ')}}])&&V(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function W(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Y(r.key),r)}}function Y(t){var e=function(t,e){if("object"!==G(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===G(e)?e:String(e)}const K=function(){function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=Y(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,this.handleTraitsManager()}var e,n;return e=t,(n=[{key:"handleTraitsManager",value:function(){var t=this.editor;!function(t){t.TraitManager.addType("radio",{createInput:function(t){var e=t.trait,n=t.component,r=e.get("options")||[],o=e.get("name"),i=r.length?r:[],a=document.createElement("div"),s=n.get(o);return a.innerHTML='\n <div class="mt-2 flex flex-row gap-3 text-sm '.concat(o,'">\n ').concat(i.map((function(t){var e=o+"-"+t.id,n=t.id;return'<div class="radio-section">\n <input type="radio" id="'.concat(e,'" name="').concat(o,'" value="').concat(n,'" ').concat(s===n?"checked":"",'/>\n <label for="').concat(e,'" title="').concat(t.name,'" class="radio-item-label ml-1">\n ').concat(t.name,"\n </label>\n </div>")})).join(""),"\n </div>\n "),jQuery(a).find('input[type="radio"]').on("change",(function(t){var e=jQuery(a).find('input[type="radio"]:checked').val();n.set(o,e)})),a}})}(t),function(t){t.TraitManager.addType("radio-icon",{createInput:function(t){var e=t.trait,n=t.component,r=e.get("options")||[],o=e.get("name"),i=r.length?r:[],a=document.createElement("div"),s=n.get(o);return a.innerHTML='\n <div class="mt-2 flex flex-row gap-3 text-sm '.concat(o,'">\n ').concat(i.map((function(t){var e=o+"-"+t.id,n=t.id,r=t.icon;return'<div class="radio-section">\n <input type="radio" style="display:none" id="'.concat(e,'" name="').concat(o,'" value="').concat(n,'" ').concat(s===n?"checked":"",'/>\n <label for="').concat(e,'" title="').concat(t.name,'" class="radio-item-label ml-1 ').concat(r,'">\n </label>\n </div>')})).join(""),"\n </div>\n "),jQuery(a).find('input[type="radio"]').on("change",(function(t){var e=jQuery(a).find('input[type="radio"]:checked').val();n.set(o,e)})),a}})}(t),function(t){t.TraitManager.addType("multiselect",{createInput:function(t){var e=t.trait.get("options")||[],n=e.length?e:[],r=document.createElement("div");return r.innerHTML='\n <select class="es-list ig-es-form-multiselect" multiple>\n '.concat(n.map((function(t){return'<option value="'.concat(t.id,'">').concat(t.name,"</option>")})).join(""),"\n </select>\n "),r},onUpdate:function(t){var e=t.elInput,n=t.component.view.model.get("es-list");void 0===n&&(n=[]),e.querySelectorAll(".es-list option").forEach((function(t){t.selected=n.includes(t.value)}))},onEvent:function(t){var e=t.elInput,n=t.component,r=(t.event,function(t){for(var e,n=[],r=t&&t.options,o=0,i=r.length;o<i;o++)(e=r[o]).selected&&n.push(e.value||e.text);return n}(e.querySelector(".es-list")));n.view.model.set("es-list",r)}})}(t),function(t){t.TraitManager.addType("select2",{createInput:function(t){var e=t.trait,n=t.component,r=e.get("options")||[],o=e.get("name"),i=r.length?r:[],a=document.createElement("div"),s=n.get(o);return a.innerHTML='\n <select class="'.concat(o,'" multiple>\n ').concat(i.map((function(t){return'<option value="'.concat(t.id,'" ').concat(s.indexOf(t.id)>-1?"selected":"",">").concat(t.name,"</option>")})).join(""),"\n </select>\n "),jQuery(a).find("select").ig_es_select2(),jQuery(a).find("select").on("change",(function(t){var e=jQuery(a).find("select").val();n.set(o,e)})),a}})}(t),function(t){t.TraitManager.addType("textarea",{createInput:function(t){var e=t.trait,n=document.createElement("textarea");return n.rows="3",n.value=e.get("value"),n},onEvent:function(t){var e=t.elInput,n=t.component,r=e.value;n.addAttributes({"survey-message":r})},onUpdate:function(t){var e=t.elInput,n=t.component.getAttributes()["survey-message"]||"";e.value=n,e.dispatchEvent(new CustomEvent("change"))}})}(t),function(t){t.TraitManager.addType("post-cpt",{createInput:function(t){var e=this,n=t.trait,r=t.component,o=n.get("options")||[],i=n.get("name"),a=o.length?o:[],s=document.createElement("div"),l=r.get(i);return s.innerHTML='\n <div class="mt-2 '.concat(i,'">\n ').concat(a.map((function(t){var n=i+"-"+t.id,o=t.id;return'<div class="checkbox-section"> \n <input type="checkbox" id="'.concat(n,'" name="').concat(i,'" value="').concat(o,'" ').concat(l.indexOf(o)>-1?"checked":"",'/>\n <label for="').concat(n,'" title="').concat(t.name,'" class="checkbox-item-label ml-1">\n ').concat(t.name,"\n </label>\n ")+e.addCustomPostTypeCategories(r,o)+"\n </div>"})).join(""),"\n </div>\n "),jQuery(s).find('input[type="checkbox"]').on("change",(function(t){var e=jQuery(s).find('input[type="checkbox"]:checked'),n=[];e.each((function(){n.push(jQuery(this).val())})),r.set(i,n)})),jQuery(s).find("select").ig_es_select2(),jQuery(s).find("select").on("change",(function(){var t=jQuery(this).val(),e=jQuery(this).data("post-type"),n=r.get("custom-post-types-terms");void 0===n&&(n={}),n[e]=t,r.set("custom-post-types-terms",n)})),s},addCustomPostTypeCategories:function(t,e){var n,r=null!==(n=ig_es_main_js_data)&&void 0!==n&&n.custom_post_types_categories?ig_es_main_js_data.custom_post_types_categories:{};if("pro"!==ig_es_main_js_data.es_plan||void 0===r[e])return"";var o=t.get("custom-post-types-terms"),i=[];return void 0!==o[e]&&(i=o[e]),'<select class="cpt-categories" data-post-type="'+e+'" multiple>'+Object.keys(r[e]).map((function(t){return'<option value="'.concat(t,'" checked="').concat(i.indexOf(t)>-1?"checked":"",'">').concat(r[e][t],"</option>")})).join("")}})}(t)}}])&&W(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}function X(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Z(r.key),r)}}function Q(t,e,n){return e&&X(t.prototype,e),n&&X(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Z(t){var e=function(t,e){if("object"!==$(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===$(e)?e:String(e)}var J=Q((function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=Z(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,this.editor.importMjml=function(t){e.DomComponents.getWrapper().set("content",""),e.setComponents(t),e.runCommand("mjml-import:change")},this.editor.exportEditorContent=function(){var t=g("form"===window.esPage?e.getHtml():e.runCommand("mjml-code-to-html").html),n=e.getComponents();return{html:t,data:JSON.stringify(n)}}}));const tt=J;function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,rt(r.key),r)}}function rt(t){var e=function(t,e){if("object"!==et(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===et(e)?e:String(e)}const ot=function(){function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=rt(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,this.addLink(),this.addForeColor()}var e,n;return e=t,(n=[{key:"addForeColor",value:function(){var t=this;this.editor.RichTextEditor.add("forecolor",{icon:'<div style="position: relative"><input type="text" id="fore-color-picker" value="rgba(0,0,0,1)" style="cursor: pointer;"/></div>',event:"change",attributes:{title:"Text color"},result:function(t,e){t.exec("forecolor",e.btn.querySelector("#fore-color-picker").value)},update:function(t,e){e.btn.querySelector("#fore-color-picker").value="rgba(0,0,0,1)"}}),setTimeout((function(){var e=document.getElementById("fore-color-picker");t.editor.getModel().initBaseColorPicker(e,{offset:{top:30,left:0,background:"#ffffff"},showInput:!0,showAlpha:!1,className:"fa fa-font color-picker-icon"})}),1e3)}},{key:"addLink",value:function(){this.editor.RichTextEditor.remove("link"),this.editor.RichTextEditor.add("link",{icon:'<i class="fa fa-link"></i>',attributes:{title:"Link"},result:function(t){var e=t.selection().anchorNode,n=e&&e.nextSibling;n&&"A"==n.nodeName?t.exec("unlink"):t.insertHTML('<a class="link" href="#">'.concat(t.selection(),"</a>"))}})}},{key:"removeActions",value:function(){var t=this;this.editor.on("component:selected",(function(e){var n=t.editor.RichTextEditor.getToolbarEl();e&&"mj-button"===e.get("type")?n.style.visibility="hidden":n.style.visibility="visible"}))}}])&&nt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function it(t){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},it(t)}function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function st(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?at(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t,e){if("object"!==it(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===it(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!window.wp||!window.wp.media)return!1;var n=st(st({},{title:"Select image",button:{text:"Select"},library:{type:["image"]},multiple:!1}),e),r=window.wp.media(n),o=t.AssetManager;r.on("close",(function(){o.close()})),r.on("select",(function(){var t=r.state().get("selection").first().toJSON();o.add([{category:"wpmedia",src:t.url}]),o.render();var e=document.getElementsByClassName("gjs-am-asset-image");e.length>0&&e[0].click(),o.remove(t.url),o.close()})),t.on("asset:open",(function(){r.open()}))}function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t,e){if("object"!==pt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===pt(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}function ft(t){return ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ft(t)}function dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dt(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t,e){if("object"!==ft(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ft(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gt(t){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(t)}function mt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(n),!0).forEach((function(e){yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==gt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===gt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bt(t){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(t)}function _t(t){return function(t){if(Array.isArray(t))return wt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return wt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Et(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Et(Object(n),!0).forEach((function(e){Tt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==bt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===bt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ct(t){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(t)}function At(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ot(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?At(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t,e){if("object"!==Ct(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ct(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function St(t){var e,n,r,o,i,a,s,l,c,u,p,f={dc:t.DomComponents,coreMjmlModel:{init:function(){var t=Ot({},this.get("attributes")),e=Ot(Ot({},this.get("style-default")),this.get("style"));for(var n in e)n in t||(t[n]=e[n]);this.set("attributes",t),this.set("style",t),this.listenTo(this,"change:style",this.handleStyleChange),this.listenTo(this,"change:attributes",this.handleAttributeChange)},handleAttributeChange:function(){this.set("style",this.get("attributes"))},handleStyleChange:function(){this.set("attributes",this.get("style"))},getMjmlAttributes:function(){var t=this.get("attributes")||{};return delete t.style,t},getAttrToHTML:function(){var t=Ot({},this.get("attributes")),e=Ot({},this.get("style-default"));for(var n in delete t.style,t){var r=t[n];r&&r===e[n]&&delete t[n]}return t}},coreMjmlView:{render:function(){return this.el.innerHTML=this.getTemplateFromMjml(),this}}};r=(e=f).coreMjmlView,o=e.coreMjmlModel,i="mj-video",a=(n=e.dc).getType("mj-raw"),s=a.model,l=a.view,c='<tr><td style="{{style-attr}}"><table style="width: 100%;height:100%;"><tr><td style="width:100%;height:100%;background-image: url(\'{{poster}}\');background-size: 100% 100%;background-repeat: no-repeat;text-align:center;"><a href="{{video-src}}" title="" target="_blank"><img src="https://www.freeiconspng.com/uploads/play-button-icon-png-15.png" style="height: 75px; margin: auto;" /></a></td></tr></table></td></tr>',u=["height","border","border-width","border-style","border-color","background-color","padding","padding-top","padding-left","padding-right","padding-bottom"],p=function(t){var e="";for(var n in t){var r=t[n];u.includes(n)&&r&&(e+="".concat(n,":").concat(r,";"))}var o=t.poster,i=t["video-src"];return void 0!==pt(o)&&""!==o?c.replaceAll("{{style-attr}}",e).replaceAll("{{poster}}",o).replaceAll("{{video-src}}",void 0!==i?i:"#"):""},n.addType(i,{isComponent:h(i),model:ut(ut({},o),{},{defaults:ut(ut({},s.prototype.defaults),{},{name:"Video",draggable:"[data-gjs-type=mj-column]",droppable:!1,content:c,stylable:u,"style-default":{height:"300px","padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px"},traits:[{type:"url",label:"Thumbnail",name:"poster",placeholder:"eg. https://yourdomainname.com/video/poster.jpg"},{type:"url",label:"Link",name:"video-src",placeholder:"eg. https://yourdomainname.com/video.mp4"}]}),tagName:"div",toHTML:function(){var t=this.getMjmlAttributes(),e="<mj-raw>";return(e+=p(t))+"</mj-raw>"}}),view:ut(ut(ut({},l.prototype.defaults),r),{},{init:function(t){var e=t.model;this.listenTo(e,"change:attributes",this.render)},tagName:"tr",attributes:{style:"pointer-events: all;"},getTemplateFromMjml:function(){var t=this.model.getMjmlAttributes();return p(t)}})}),function(t,e){var n,r=e.dc,o={propsCustomCode:{},placeholderContent:"<span>Insert here your custom code</span>",toolbarBtnCustomCode:{},modalTitle:"Insert your code",codeViewOptions:{},buttonLabel:"Save",commandCustomCode:{}},i=r.getType("mj-raw"),a=i.model,s=(i.view,"custom-code-plugin__code");r.addType("mj-custom-code",{model:{defaults:ht(ht({},a.prototype.defaults),{},{name:"Custom Code",editable:!0,draggable:"[data-gjs-type=mj-column]",droppable:!1}),init:function(){this.listenTo(this,"change:".concat(s),this.onCustomCodeChange);var t=this.get(s)||o.placeholderContent;!this.components().length&&this.components(t);var e=this.get("toolbar"),n="custom-code";o.toolbarBtnCustomCode&&!e.filter((function(t){return t.id===n})).length&&e.unshift(ht({id:n,command:"custom-code:open-modal",label:'<svg viewBox="0 0 24 24">\n <path d="M14.6 16.6l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4m-5.2 0L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4z"></path>\n </svg>'},o.toolbarBtnCustomCode))},tagName:"div",toHTML:function(){var t=this.get(s);return t?'<mj-raw><tr><td><div style="all:initial;font:initial;margin:initial;padding:initial;color:initial;">'.concat(t,"</div></td></tr></mj-raw>"):""},onCustomCodeChange:function(){this.components(this.get(s))}},isComponent:function(){return!1},view:{events:{dblclick:"onActive"},tagName:"tr",init:function(){this.listenTo(this.model.components(),"add remove reset",this.onComponentsChange),this.onComponentsChange()},onComponentsChange:function(){var t=this;n&&clearInterval(n),n=setTimeout((function(){var e=t.model,n=1;(e.get(s)||"").indexOf("<script")>=0&&(t.el.innerHTML=o.placeholderScript,n=0),e.set({droppable:n})}),0)},onActive:function(){var t=this.model;this.em.get("Commands").run("custom-code:open-modal",{target:t})}}})}(0,f),function(t,e){var n=e.dc,r=e.coreMjmlView,o=e.coreMjmlModel,i=n.getType("mj-raw"),a=i.model,s=i.view,l=[],c={};n.addType("es-survey",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es-survey"))return{type:"es-survey"}},model:vt(vt({},o),{},{defaults:vt(vt({},a.prototype.defaults),{},{name:"Survey",draggable:"[data-gjs-type=mj-column]",droppable:!1,content:"<tr><td style=\"{{style-attr}}\"><table style=\"width: 100%;height:100%;\"><tr><td>{{campaign.survey | type='' , message=''}}{{/campaign.survey}}</td></tr></table></td></tr>",stylable:l,classes:["es-survey"],"style-default":yt({"padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px"},"padding-bottom","1.2rem"),"survey-type":"like_dislike","survey-message":ig_es_campaign_editor_data.i18n.survey_block_default_thank_you_text,traits:[{type:"select",label:ig_es_campaign_editor_data.i18n.survey_type_field_label,name:"survey-type",options:[{id:"like_dislike",name:"like/dislike"},{id:"yes_no",name:"yes/no"}],changeProp:1},{type:"textarea",label:ig_es_campaign_editor_data.i18n.survey_message_field_label,name:"survey-message",changeProp:1}]}),init:function(){var t=this;this.on("change:survey-type",(function(){var e=t.get("survey-type");t.collection.indexOf(),t.get("components").each((function(n){if(n.getClasses().includes("survey-options"))if("yes_no"==e){var r;r=c.hasOwnProperty("yes_no")?c.yes_no:'<mj-section class="survey-options" background-color="#ffffff" padding-top="0px" padding-bottom="0px">\n <mj-group>\n <mj-column> \n <mj-button href="{{campaign_survey_yes_url}}" align="right" padding-top="0px" padding-bottom="0px" padding-right="5px" padding-left="5px">\n Yes\n </mj-button>\n </mj-column>\n <mj-column>\n <mj-button href="{{campaign_survey_no_url}}" align="left" padding-top="0px" padding-bottom="0px" padding-right="5px" padding-left="5px">\n No\n </mj-button>\n </mj-column>\n </mj-group>\n </mj-section>',n.replaceWith(r),c.like_dislike=n}else{var o;c.yes_no=n,o=c.hasOwnProperty("like_dislike")?c.like_dislike:'<mj-section class="survey-options" background-color="#ffffff" padding-top="0px" padding-bottom="0px">\n <mj-group>\n <mj-column> \n <mj-image href="{{campaign_survey_like_url}}" width="36px" height="36px" src="'.concat(ig_es_campaign_editor_data.plugin_url,'pro/assets/images/like-icon.png" align="right" padding-top="0px" padding-bottom="0px" padding-right="5px" padding-left="5px"></mj-image>\n </mj-column>\n <mj-column>\n <mj-image href="{{campaign_survey_dislike_url}}" width="36px" height="36px" src="').concat(ig_es_campaign_editor_data.plugin_url,'pro/assets/images/dislike-icon.png" align="left" padding-top="0px" padding-bottom="0px" padding-right="5px" padding-left="5px"></mj-image>\n </mj-column>\n </mj-group>\n </mj-section>'),n.replaceWith(o)}t.view.render()}))}))},updated:function(){this.view.render()},postRender:function(){var t=this.getTrait("survey-message"),e=this.get("survey-message");t&&e&&(t.el.value=e)},tagName:"tr",toHTML:function(t){var e=this.getMjmlAttributes();for(var n in e){var r=e[n];l.includes(n)&&r&&"".concat(n,":").concat(r,";")}var o=this.get("survey-message"),i=this.get("survey-type"),a="";this.get("components").each((function(t){t.getClasses().includes("survey-heading")&&(a=t.view.el.textContent.trim())})),i=void 0!==i?i:"yes_no",o=void 0!==o?o:"Thank you for your response.",e["survey-message"]=o,e["survey-type"]=i;var s="";return this.get("components").each((function(t){s+=t.toHTML()})),"<mj-section><mj-text><span style='display:none'>{{ campaign.survey | type:'"+i+"', message:'"+o+"', heading:'"+a+"' }}</span></mj-text>"+s+'<mj-text><span style="display:none">{{/campaign.survey}}</span></mj-text></mj-section>'},generateHtml:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.view.el;return t.innerHTML=this.attributes.template,t}}),view:vt(vt(vt({},s.prototype.defaults),r),{},{init:function(t){var e=t.model;this.listenTo(e,"change:survey-type",this.render),this.listenTo(e,"change:survey-message",this.render)},loadType:function(t,e){"yes_no"===t?e.innerHTML='\n <div class="survey-option">Yes</div>\n <div class="survey-option">No</div>\n ':"like_dislike"===t&&(e.innerHTML='\n <div class="survey-option">Like</div>\n <div class="survey-option">Dislike</div>\n ')},render:function(t){return this.renderAttributes(),this.modelOpt.temporary||(this.renderChildren(),this.updateScript(),this.el.__gjsv=this,this.postRender()),this},tagName:"tr",attributes:{style:"pointer-events: all;","survey-heading":""}})})}(0,f),function(t,e){var n=e.dc,r=e.coreMjmlView,o=e.coreMjmlModel,i=n.getType("mj-raw"),a=i.model,s=i.view;n.addType("es-posts",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es-posts"))return{type:"es-posts"}},model:xt(xt({},o),{},{defaults:xt(xt({},a.prototype.defaults),{},{name:"Posts",draggable:"[data-gjs-type=mj-column]",droppable:!1,stylable:[],classes:["es-posts"],"style-default":Tt({"padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px"},"padding-bottom","1.2rem"),"post-category":"all","post-categories":[],"post-count":1,"custom-post-types":[],"custom-post-types-terms":{},"sorting-order":"descending","content-alignment":"left",traits:function(t){var e=[{type:"select",label:__("Post category","email-subscribers"),name:"post-category",options:[{id:"none",name:__("None","email-subscribers")},{id:"all",name:__("All","email-subscribers")},{id:"custom",name:__("Custom","email-subscribers")}],changeProp:1}];if("pro"===ig_es_main_js_data.es_plan){var n={type:"number",label:__("Number of posts","email-subscribers"),name:"post-count",changeProp:1,min:1};e.splice(0,0,n)}if("custom"===t.get("post-category")){var r=e.findIndex((function(t){return"post-category"===t.name}));if(r>-1){var o=t.getPostCategoriesTrait();e.splice(r+1,0,o)}}if(Object.keys(ig_es_main_js_data.post_types_name).length>0){var i=e.findIndex((function(t){return"post-categories"===t.name}));-1===i&&(i=e.findIndex((function(t){return"post-category"===t.name})));var a={type:"post-cpt",label:__("Post types","email-subscribers"),name:"custom-post-types",options:_t(Object.keys(ig_es_main_js_data.post_types_name).map((function(t){return{id:t,name:ig_es_main_js_data.post_types_name[t]}}))),changeProp:1};e.splice(i+1,0,a)}var s=t.get("post-count");if("pro"===ig_es_main_js_data.es_plan&&void 0!==s&&parseInt(s)>1){var l=t.getSortingOrderTrait();e.push(l)}return e}}),init:function(){this.registerToolbarCommands(),this.on("change:post-format",this.handleFormatChange),this.on("change:post-category",this.handleCategoryChange),this.on("change:post-count",this.handlepostCountChange)},registerToolbarCommands:function(){this.registerResetPostFormatCommand()},registerResetPostFormatCommand:function(){var t=this,e="reset-post-format",n=this.get("toolbar");n.filter((function(t){return t.id===e})).length||n.unshift({id:e,command:function(){t.resetPostFormat()},label:d.postFormat})},resetPostFormat:function(){this.set("post-format","")},handleFormatChange:function(){var t=this,e=this.get("post-format");e&&this.get("components").each((function(n){if(n.getClasses().includes("post-format-content")){var r=t.getPostFormatDefaultContent(e);n.replaceWith(r)}}))},handleCategoryChange:function(t){"custom"===t.get("post-category")?this.addPostCategoriesTrait(t):t.removeTrait("post-categories")},addPostCategoriesTrait:function(t){var e=this.calculatePostCategoriesTraitIndex(t.get("traits"));if(e>-1){var n=this.getPostCategoriesTrait();t.addTrait(n,{at:e})}},calculatePostCategoriesTraitIndex:function(t){var e=t.findIndex((function(t){return"post-category"===t.props().name}));return e>-1?e+1:-1},getPostCategoriesTrait:function(){return{type:"select2",name:"post-categories",options:[{id:"",name:__("Select","email-subscribers")}].concat(_t(Object.keys(ig_es_main_js_data.post_categories).map((function(t){return{id:t,name:ig_es_main_js_data.post_categories[t]}})))),changeProp:1}},handlepostCountChange:function(t){var e=t.get("post-count");parseInt(e)>1?this.addSortingOrderTrait(t):this.removeTrait("sorting-order")},addSortingOrderTrait:function(t){var e=t.get("traits").length,n=this.getSortingOrderTrait();t.addTrait(n,{at:e})},getSortingOrderTrait:function(){return{type:"radio",label:__("Sorting order","email-subscribers"),name:"sorting-order",options:[{id:"descending",name:__("Newest First","email-subscribers")},{id:"ascending",name:__("Oldedst First","email-subscribers")}],changeProp:1}},getPostFormatDefaultContent:function(t){var e='<mj-section class="post-format-content" background-color="#ffffff" padding-top="0px" padding-bottom="0px">';switch(t){case"blank":e+=this.getBlankFormatContent();break;case"title_date":e+=this.getTitleDateFormatContent();break;case"title_excerpt":e+=this.getTitleExcerptFormatContent();break;case"title_date_excerpt":e+=this.getTitleDateExcerptFormatContent();break;case"image_date_excerpt":e+=this.getImageDateExcerptFormatContent()}return e+"</mj-section>"},getBlankFormatContent:function(){return'<style type="text/css">table:empty { height: 70px; border: 1px dotted #ccc }</style><mj-group>\n <mj-column width="100%"></mj-column>\n </mj-group>'},getTitleDateFormatContent:function(){return'<mj-group>\n <mj-column width="100%">\n <mj-text align="center" font-size="30px" line-height="36px">\n {{post.title}}\n </mj-text>\n <mj-text align="center" line-height="21px" font-size="18px">\n {{post.date}}\n </mj-text>\n <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n Read More\n </mj-button>\n </mj-column>\n </mj-group>'},getTitleExcerptFormatContent:function(){return'<mj-group>\n <mj-column width="100%">\n <mj-text align="center" font-size="30px" line-height="36px">\n {{post.title}}\n </mj-text>\n <mj-text align="center" line-height="21px" font-size="18px">\n {{post.excerpt}}\n </mj-text>\n <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n Read More\n </mj-button>\n </mj-column>\n </mj-group>'},getTitleDateExcerptFormatContent:function(){return'<mj-group>\n <mj-column width="100%">\n <mj-text align="center" font-size="30px" line-height="36px">\n {{post.title}}\n </mj-text>\n <mj-text align="center" line-height="21px" font-size="18px">\n {{post.date}}\n </mj-text>\n <mj-text align="center" line-height="21px" font-size="18px">\n {{post.excerpt}}\n </mj-text>\n <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n Read More\n </mj-button>\n </mj-column>\n </mj-group>'},getImageDateExcerptFormatContent:function(){return'<mj-group>\n <mj-column width="100%">\n <mj-text align="center" font-size="30px" line-height="36px">\n {{post.image}}\n </mj-text>\n <mj-text align="center" line-height="21px" font-size="18px">\n {{post.date}}\n </mj-text>\n <mj-text align="center" line-height="21px" font-size="18px">\n {{post.excerpt}}\n </mj-text>\n <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n Read More\n </mj-button>\n </mj-column>\n </mj-group>'},handlePostDataChange:function(){},updated:function(){this.view.render()},tagName:"tr",toHTML:function(t){var e=this.get("post-format");if(void 0===e||""===e)return"";var n="";return this.get("components").each((function(t){n+=t.toHTML()})),"<mj-section><mj-text><span style='display:none'>{{campaign.posts}}</span></mj-text>"+n+'<mj-text><span style="display:none">{{/campaign.posts}}</span></mj-text></mj-section>'}}),view:xt(xt(xt({},s.prototype.defaults),r),{},{init:function(t){var e=t.model;this.listenTo(e,"change:post-format",this.render),this.listenTo(e,"change:post-category",this.render),this.listenTo(e,"change:post-categories",this.render),this.listenTo(e,"change:post-count",this.render),this.model.set()},render:function(t){return this.renderAttributes(),this.modelOpt.temporary||(this.renderChildren(),this.updateScript(),this.el.__gjsv=this,this.postRender()),this},previewRendered:!1,onRender:function(){this.model.get("post-format")||(this.showAvailablePostFormats(),this.registerChangePostFormatClickHandlers())},showPreview:function(){var t=this;if(!this.previewRendered){var e=this.el.querySelector(".post-format-content").innerHTML;if(""!==e){var n={postCount:this.model.get("post-count"),postCategory:this.model.get("post-category")};this.fetchBlockPreview(e,n).then((function(e){e.success?(t.el.querySelector(".post-format-content").innerHTML=e.data.content,t.previewRendered=!0):alert(__("Failed to fetch preview for block posts.","email-subscribers"))}))}}},showAvailablePostFormats:function(){var t=[{name:"blank",label:__("Start Blank","email-subscirbers"),icon:d.blankPostFormat},{name:"title_date",label:__("Title & Date","email-subscirbers"),icon:d.titleDatePostFormat},{name:"title_excerpt",label:__("Title & Excerpt","email-subscirbers"),icon:d.titleExcerptPostFormat},{name:"title_date_excerpt",label:__("Title, Date & Excerpt","email-subscirbers"),icon:d.titleDateExcerptPostFormat},{name:"image_date_excerpt",label:__("Image, Date & Excerpt","email-subscirbers"),icon:d.imageDateExcerptPostFormat}];this.el.innerHTML='<style type="text/css">\n #post-format-selection-wrapper {\n padding: 10px 15px 25px;\n }\n\n .row {\n display: flex;\n flex-wrap: wrap;\n }\n \n .col {\n flex: 1 0 18%;\n margin: 5px;\n color: #000;\n border: 1px solid #ECECEC;\n cursor: pointer;\n border-radius: 5px;\n }\n .heading {\n font-family: \'Inter\';\n font-weight: normal;\n font-size: 17px;\n color: #1c1b1e;\n text-align: center;\n }\n .post-format {\n font-size: 15px;\n text-align: center;\n padding: 1rem 0.5rem;\n }\n .post-format-label {\n font-size: 12px;\n font-family: \'Inter\';\n }\n </style>\n <div id="post-format-selection-wrapper">\n <h2 class="heading">'.concat(__("Select a format for the post from below variations","email-subscribers"),'</h2>\n <div class="row">\n ').concat(t.map((function(t){return'<div class="col post-format" data-post-format="'.concat(t.name,'">\n <div class="post-format-icon">\n ').concat(t.icon,'\n </div>\n <div class="post-format-label">\n ').concat(t.label,"\n </div>\n </div>")})),"\n </div>\n </div>")},registerChangePostFormatClickHandlers:function(){var t=this;this.el.querySelectorAll(".post-format").forEach((function(e){e.addEventListener("click",(function(){var n=e.dataset.postFormat;t.model.set("post-format",n)}))}))},fetchBlockPreview:function(t,e){var n=ig_es_js_data.security,r=ajaxurl+"?action=icegram-express",o=new FormData,i={data:{postsBlockContent:t,postsBlockSetting:e},security:n,handler:"campaign",method:"get_posts_block_preview",responseType:"json"};return this.appendNestedJSONToFormData(o,i),m.request({url:r,method:"POST",params:{action:"icegram-express"},body:o})},appendNestedJSONToFormData:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";for(var r in e)if(e.hasOwnProperty(r)){var o=n?"".concat(n,"[").concat(r,"]"):r;"object"===bt(e[r])?this.appendNestedJSONToFormData(t,e[r],o):t.append(o,e[r])}},tagName:"tr",attributes:{style:"pointer-events: all;"}})}),"undefined"!=typeof ig_es_campaign_editor_data&&ig_es_campaign_editor_data.postTags.forEach((function(t){!function(t){var e="es-"+t.keyword.replace(".","-");n.addType(e,{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes(e))return{type:e}},extend:"mj-text",model:{defaults:{draggable:".es-posts, .es-posts *"}}})}(t)}))}(0,f)}var kt=n(426),Pt=n.n(kt);function jt(t){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(t)}function Nt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nt(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t,e){if("object"!==jt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===jt(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dt(t){var e=t.required,n=t.placeholder,r=t.type,o=(t.label,t.meta),i=t.slug,a="ig_es_"+i,s="";switch(r){case"text":s+='<input type="text" name="es_custom_field['+i+']" class="es_form_cf '+a+'" placeholder="'+n+'"',s+="yes"===e?" required":"",s+=' value=""/>';break;case"textarea":s+='<textarea class="form-textarea text-sm" cols="50" name="es_custom_field['+i+']" class="es_form_cf '+a+'" placeholder="'+n+'"',s+="yes"===e?" required":"",s+="></textarea>";break;case"dropdown":s+='<select name="es_custom_field['+i+']" class="es_form_cf '+a+'"',s+="yes"===e?" required>":">",s+='<option value="">Select option</option>',o.values&&o.values.forEach((function(t){s+='<option value="'+t+'">'+t+"</option>"})),s+="</select>";break;case"radio":s+='<table class="ig-es-form-radio-selection"><tbody>',o.values&&o.values.forEach((function(t){s+='<tr><td><input type="radio" name="es_custom_field['+i+']" class="es_form_cf '+a+'" placeholder="'+n+'"',s+="yes"===e?" required":"",s+=' value="'+t+'">',s+=t+"</td></tr>"})),s+="</tbody></table>";break;case"number":s+='<input type="number" name="es_custom_field['+i+']" class="es_form_cf '+a+'" placeholder="'+n+'"',s+="yes"===e?" required":"",s+=' value=""/>';break;case"date":s+='<input type="date" name="es_custom_field['+i+']" class="es_form_cf '+a+'" placeholder="'+n+'"',s+="yes"===e?" required":"",s+=' value=""/>'}return s}function It(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t){t.DomComponents.addType("form-field-container",{extend:"default",isComponent:function(t){return t.className&&"string"==typeof t.className&&t.className.includes("es-form-field-container")},model:{defaults:{toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"}],unstylable:["container-background-color"]}}})}(t),function(t){t.DomComponents.addType("input",{isComponent:function(t){return"INPUT"==t.tagName},model:{defaults:{tagName:"input",toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],traits:["placeholder",{type:"checkbox",name:"required"}],attributes:{type:"text",required:!0},stylable:["icon-size","text-decoration","align","font-family","font-size","line-height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","background-color","color","vertical-align"]}}})}(t),function(t){var e=t.DomComponents,n=e.getType("default").view;e.addType("es-text",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es-text"))return{type:"es-text"}},model:{defaults:{editable:!0,required:!1,toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],stylable:["icon-size","text-decoration","align","font-family","font-size","line-height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","background-color","color","vertical-align"],unstylable:["container-background-color"]},toHTML:function(){return'<div class="es-text"><mj-text line-height="26px">Your content...</mj-text></div>'}},view:n.extend({onRender:function(){this.el.innerHTML='<div class="es-text"><mj-text line-height="26px">Your content...</mj-text></div>'}})})}(t),function(t){t.DomComponents.addType("email",{extend:"input",isComponent:function(t){return t.className&&"string"==typeof t.className&&t.className.includes("es-email")},model:{defaults:{traits:[{name:"placeholder"}],attributes:{type:"email",required:!0,class:"es-email",name:"esfpx_email",autocomplete:"off",placeholder:"Enter your email"},toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"}]}}})}(t),function(t){t.DomComponents.addType("name",{extend:"input",isComponent:function(t){return t.className&&"string"==typeof t.className&&t.className.includes("es-name")},model:{defaults:{attributes:{type:"text",name:"esfpx_name",autocomplete:"off",placeholder:"Enter your name",class:"es-name"},traits:[{type:"checkbox",name:"required"},{name:"placeholder"}],toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],stylable:["icon-size","text-decoration","align","font-family","font-size","line-height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","background-color","color","vertical-align","border"]}}})}(t),void 0!==e.lists&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.DomComponents,r=n.getType("default").view;n.addType("es-list",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es-list"))return{type:"es-list"}},model:{defaults:{toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],traits:[{type:"multiselect",label:"Select list",name:"es-list",changeProp:1,options:e.lists.map((function(t){return{id:t.id,name:t.name}})),typeid:0}],unstylable:["container-background-color"]},toHTML:function(){var t,n=this.get("es-list");Array.isArray(n)||(n=[n]);var r=e.lists.filter((function(t){return n.includes(t.id)})),o='<div id="'.concat(null===(t=this.attributes)||void 0===t||null===(t=t.attributes)||void 0===t?void 0:t.id,'" class="es-list">');return r.forEach((function(t){o+='<div><label><input type="checkbox" class="pl-6 form-checkbox " name="esfpx_lists[]" value="'.concat(t?t.hash:"",'"><span>').concat(t?t.name:"","</span></label></div>")})),o+="</div>"}},view:r.extend({init:function(t){var e=t.model;this.listenTo(e,"change:es-list",this.render)},onRender:function(){var t=this.model.get("es-list");void 0===t?t=e.lists[0].id:Array.isArray(t)||(t=[t]);var n=e.lists.filter((function(e){return t.includes(e.id)})),r='<div class="es-list">';n.forEach((function(t){r+='<div><label><input type="checkbox" class="pl-6 form-checkbox " name="esfpx_lists[]" value="'.concat(t?t.hash:"",'"><span>').concat(t?t.name:"","</span></label></div>")})),r+="</div>",this.el.innerHTML=r}})})}(t,e),function(t){var e=t.DomComponents,n=e.getType("default").view;e.addType("es-captcha",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es_captcha"))return{type:"es-captcha"}},model:{defaults:{toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],captcha_text:"Are You a Human?",traits:[{type:"text",label:"Captcha text",name:"captcha_text",changeProp:1}]},toHTML:function(){var t,e=this.get("captcha_text");return'<div id="'.concat(null===(t=this.attributes)||void 0===t||null===(t=t.attributes)||void 0===t?void 0:t.id,'" class="es_captcha es-field-wrap"><label>').concat(e," [es_captcha_field]</label></div>")}},view:n.extend({init:function(t){var e=t.model;this.listenTo(e,"change:captcha_text",this.render)},onRender:function(){var t,e=this.model.get("captcha_text"),n='<div id="'.concat(null===(t=this.attributes)||void 0===t||null===(t=t.attributes)||void 0===t?void 0:t.id,'" class="es_captcha es-field-wrap"><label>').concat(e,' 3 + 7 = <br/><input class="es_form_field es_captcha_input" name="esfpx_es_captcha" type="number"><input class="es_form_field es_captcha_key" value="Nzq5OPUwj1" name="esfpx_es_captcha_key" type="hidden"></label></div>');this.el.innerHTML=n}})})}(t),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.DomComponents,r=n.getType("default").view,o=e.siteURL;n.addType("es-gdpr",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es_gdpr"))return{type:"es-gdpr"}},model:{defaults:{toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],gdpr_text:'Please read our <a href="'+o+'">terms and conditions</a>',traits:[{type:"text",label:"GDPR text",name:"gdpr_text",changeProp:1}],unstylable:["container-background-color"]},toHTML:function(){var t,e=this.get("gdpr_text");return'<div id="'.concat(null===(t=this.attributes)||void 0===t||null===(t=t.attributes)||void 0===t?void 0:t.id,'" class="es_gdpr"><label><input type="checkbox" name="es_gdpr_consent" value="true" required="required"/>').concat(e,"</label></div>")}},view:r.extend({init:function(t){var e=t.model;this.listenTo(e,"change:gdpr_text",this.render)},onRender:function(){var t,e=this.model.get("gdpr_text"),n='<div id="'.concat(null===(t=this.attributes)||void 0===t||null===(t=t.attributes)||void 0===t?void 0:t.id,'" class="es_gdpr"><label><input type="checkbox" name="es_gdpr_consent" value="true" required="required"/>').concat(e,"</label></div>");this.el.innerHTML=n}})})}(t,e),function(t){t.DomComponents.addType("submit",{extend:"input",isComponent:function(t){return"INPUT"==t.tagName&&"submit"==t.type},model:{defaults:{copyable:!1,removable:!1,attributes:{type:"submit",name:"es-submit",value:"Subscribe"},traits:[{name:"value",label:"Button text"}],toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"}],unstylable:["container-background-color"]}}})}(t),void 0!==e.customFields&&e.customFields.forEach((function(e){!function(t,e){var n=t.DomComponents,r=n.getType("default").view,o=e.slug,i=e.type,a=e.label,s="es-"+o,l=!1;["text","textarea","email","number","password","tel"].indexOf(i)>-1&&(l=!0);var c=[{label:"Required",type:"checkbox",name:"required",changeProp:1,valueTrue:"yes",valueFalse:"no"}];l&&c.push({label:"Placeholder",type:"text",name:"placeholder",changeProp:1}),n.addType(s,{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes(s))return{type:s}},model:{defaults:{toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],placeholder:"Enter "+a,required:!1,traits:c},toHTML:function(){var t=this.get("required"),n="";return l&&(n=this.get("placeholder")),Dt(e=Lt(Lt({},e),{},{required:t,placeholder:n}))}},view:r.extend({init:function(t){var e=t.model;this.listenTo(e,"change:placeholder",this.render),this.listenTo(e,"change:required",this.render)},onRender:function(){var t=this.model.get("required"),n="";l&&(n=this.model.get("placeholder"));var r=Dt(e=Lt(Lt({},e),{},{required:t,placeholder:n}));this.el.innerHTML=r}})})}(t,e)}))}function Rt(t){return Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(t)}function Mt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ut(r.key),r)}}function Ft(t,e,n){return(e=Ut(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ut(t){var e=function(t,e){if("object"!==Rt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Rt(e)?e:String(e)}const Ht=function(){function t(e,n,r,o){var a,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Ft(this,"editor",void 0),Ft(this,"saveUrl",void 0),Ft(this,"loadUrl",void 0),Ft(this,"container",void 0),Ft(this,"onSelectComponent",void 0),Ft(this,"isPro",void 0),this.loadUrl=n,this.saveUrl=e,this.container=r,this.onSelectComponent=o,this.isPro=l;var u=[s(),c(),lt,St],p=(Ft(a={},s(),{resetBlocks:!0}),Ft(a,c(),{options:{toolbarGroups:[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker","editing"]},{name:"forms",groups:["forms"]},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi","paragraph"]},{name:"links",groups:["links"]},{name:"insert",groups:["insert"]},{name:"styles",groups:["styles"]},{name:"colors",groups:["colors"]},{name:"tools",groups:["tools"]},{name:"others",groups:["others"]},{name:"about",groups:["about"]}],removeButtons:"Source,Save,Templates,NewPage,ExportPdf,Preview,Print,Cut,Copy,Paste,PasteText,PasteFromWord,Undo,Redo,Replace,Find,SelectAll,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,BidiLtr,BidiRtl,Language,Anchor,Image,Table,HorizontalRule,Smiley,SpecialChar,PageBreak,Iframe,Maximize,ShowBlocks,About,JustifyLeft,JustifyCenter,JustifyRight,JustifyBlock,FontSize,Styles,Format,Font,Outdent,Indent"}}),a);if("form"===window.esPage){var f;u=[Pt(),It,s(),c(),lt];var d={};"undefined"!=typeof ig_es_form_editor_data&&(void 0!==ig_es_form_editor_data.site_url&&(d.siteURL=ig_es_form_editor_data.site_url),void 0!==ig_es_form_editor_data.lists&&(d.lists=ig_es_form_editor_data.lists),void 0!==ig_es_form_editor_data.custom_fields&&(d.customFields=ig_es_form_editor_data.custom_fields)),Ft(f={},s(),{blocks:[]}),Ft(f,c(),function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(n),!0).forEach((function(e){Ft(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},{base:{bold:!0,italic:!0,underline:!0,strikethrough:!0,link:!1},fonts:{fontSize:!0},format:{heading1:!0,heading2:!0,paragraph:!1,clearFormatting:!1},list:!1,align:!1})),Ft(f,Pt(),{blocks:["column1"]}),Ft(f,It,d),p=f}this.editor=i.init({container:this.container,noticeOnUnload:0,fromElement:1,height:"100%",width:"auto",storageManager:!1,assetManager:{},plugins:u,pluginsOpts:p,blockManager:{custom:!0},selectorManager:{componentFirst:1},panels:{defaults:[]},styleManager:{custom:!0},traitManager:{appendTo:"#gj-settings-container"},colorPicker:{appendTo:"parent",offset:{top:26,left:-176,background:"#ffffff"}},canvas:{}}),this.handleBlocks(),this.handlePanels(),this.handleComponents(),this.handleStyleManager(),this.handleTraitsManager(),this.handleStorageManager(),this.handleRTE()}var e,n;return e=t,(n=[{key:"handleBlocks",value:function(){new S(this.editor)}},{key:"handlePanels",value:function(){new I(this.editor)}},{key:"handleStyleManager",value:function(){new z(this.editor)}},{key:"handleTraitsManager",value:function(){new K(this.editor)}},{key:"handleStorageManager",value:function(){new tt(this.editor)}},{key:"handleRTE",value:function(){new ot(this.editor)}},{key:"handleComponents",value:function(){new U(this.editor,this.onSelectComponent)}},{key:"getEditor",value:function(){return this.editor}}])&&Bt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();var Vt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"blocks",e=document.getElementById("bs-container");p("gj-design-container","none","id"),p("gj-blocks-container","none","id"),"blocks"===t?(p("gj-blocks-container","block","id"),e.style.height="630px"):"design"===t?(p("gj-design-container","block","id"),e.style.height="690px"):(p("gj-settings-container","block","id"),e.style.height="690px")};function qt(t){var e=document.getElementById(t);if(e){var n=e.getAttribute("data-page");e.innerHTML='<div class="es-editor"> \n <div class="es-top-bar"> \n <div> \n <div id="resize-devices"></div>\n </div>\n <div> \n <div id="undo-redo-actions"></div>\n </div>\n <div> \n <div>\n <span id="toggle-template-preview"></span>\n <span id="export-html-template"></span>\n </div>\n </div>\n </div>\n <div class="es-content"> \n <div id="es-email-subscribers"></div>\n </div>\n </div>';var r=e.getAttribute("data-html-textarea-name"),o=e.getAttribute("data-json-textarea-name"),i=document.createElement("textarea");i.setAttribute("id","ig-es-export-html-data-textarea"),i.style.display="none",r&&i.setAttribute("name",r),e.append(i);var a=document.createElement("textarea");a.setAttribute("id","ig-es-export-json-data-textarea"),a.style.display="none",o&&a.setAttribute("name",o),e.append(a),window.esPage=n;var s=new Ht("","","#es-email-subscribers",Vt);window.esVisualEditor=s.getEditor(),window.esVisualEditor.onReady((function(){var t=new Event("es_drag_and_drop_editor_loaded");document.dispatchEvent(t)}))}}document.addEventListener("DOMContentLoaded",(function(t){qt("ig-es-dnd-builder")})),window.renderESDNDEditor=qt})()})(); |