HEX
Server: LiteSpeed
System: Linux vps30244.sdns.vn 3.10.0-1160.21.1.el7.x86_64 #1 SMP Tue Mar 16 18:28:22 UTC 2021 x86_64
User: admin (1001)
PHP: 7.4.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/hcb48/public_html/wp-content/themes/flatsome/assets/js/builder/core/content.js
!function(t){function e(n){if(g[n])return g[n].exports;var A=g[n]={exports:{},id:n,loaded:!1};return t[n].call(A.exports,A,A.exports,e),A.loaded=!0,A.exports}var g={};return e.m=t,e.c=g,e.p="",e(0)}([function(t,e,g){t.exports=g(1)},function(t,e,g){(function(t){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}g(2),g(3),g(6),g(33),g(37),g(43),g(49),g(69),g(71),g(102),g(103),g(106),g(109),g(110),g(112),g(113),g(114),g(116),g(137),g(138);var n=g(7),A=e(n),C=g(140);t.UxBuilder=window.parent.UxBuilder,A.default.requires.push("app.filters"),A.default.requires.push("app.services");for(var o in C.data.modules.iframe)A.default.requires.push(C.data.modules.iframe[o]);A.default.config(["$controllerProvider",function(t){angular.forEach(C.data.shortcodes,function(e,g){t.register(g+"__controller",e.controller||angular.noop)})}])}).call(e,function(){return this}())},function(t,e){window.MutationObserver=window.MutationObserver||function(t){function e(t){this.i=[],this.m=t}function g(t){!function g(){var n=t.takeRecords();n.length&&t.m(n,t),t.h=setTimeout(g,e._period)}()}function n(e){var g,n={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(g in e)n[g]!==t&&e[g]!==t&&(n[g]=e[g]);return n}function A(t,e){var g=i(t,e);return function(A){var C,o=A.length;e.a&&3===t.nodeType&&t.nodeValue!==g.a&&A.push(new n({type:"characterData",target:t,oldValue:g.a})),e.b&&g.b&&I(A,t,g.b,e.f),(e.c||e.g)&&(C=r(A,t,g,e)),(C||A.length!==o)&&(g=i(t,e))}}function C(t,e){return e.value}function o(t,e){return"style"!==e.name?e.value:t.style.cssText}function I(e,g,A,C){for(var o,I,r={},i=g.attributes,a=i.length;a--;)o=i[a],I=o.name,C&&C[I]===t||(d(g,o)!==A[I]&&e.push(n({type:"attributes",target:g,attributeName:I,oldValue:A[I],attributeNamespace:o.namespaceURI})),r[I]=!0);for(I in A)r[I]||e.push(n({target:g,type:"attributes",attributeName:I,oldValue:A[I]}))}function r(e,g,A,C){function o(t,g,A,o,i){var a=t.length-1;i=-~((a-i)/2);for(var s,l,c;c=t.pop();)s=A[c.j],l=o[c.l],C.c&&i&&Math.abs(c.j-c.l)>=a&&(e.push(n({type:"childList",target:g,addedNodes:[s],removedNodes:[s],nextSibling:s.nextSibling,previousSibling:s.previousSibling})),i--),C.b&&l.b&&I(e,s,l.b,C.f),C.a&&3===s.nodeType&&s.nodeValue!==l.a&&e.push(n({type:"characterData",target:s,oldValue:l.a})),C.g&&r(s,l)}function r(g,A){for(var s,l,u,d,p,f=g.childNodes,h=A.c,m=f.length,v=h?h.length:0,b=0,$=0,y=0;$<m||y<v;)d=f[$],p=(u=h[y])&&u.node,d===p?(C.b&&u.b&&I(e,d,u.b,C.f),C.a&&u.a!==t&&d.nodeValue!==u.a&&e.push(n({type:"characterData",target:d,oldValue:u.a})),l&&o(l,g,f,h,b),C.g&&(d.childNodes.length||u.c&&u.c.length)&&r(d,u),$++,y++):(i=!0,s||(s={},l=[]),d&&(s[u=a(d)]||(s[u]=!0,-1===(u=c(h,d,y,"node"))?C.c&&(e.push(n({type:"childList",target:g,addedNodes:[d],nextSibling:d.nextSibling,previousSibling:d.previousSibling})),b++):l.push({j:$,l:u})),$++),p&&p!==f[$]&&(s[u=a(p)]||(s[u]=!0,-1===(u=c(f,p,$))?C.c&&(e.push(n({type:"childList",target:A.node,removedNodes:[p],nextSibling:h[y+1],previousSibling:h[y-1]})),b--):l.push({j:u,l:y})),y++));l&&o(l,g,f,h,b)}var i;return r(g,A),i}function i(t,e){var g=!0;return function t(n){var A={node:n};return!e.a||3!==n.nodeType&&8!==n.nodeType?(e.b&&g&&1===n.nodeType&&(A.b=l(n.attributes,function(t,g){return e.f&&!e.f[g.name]||(t[g.name]=d(n,g)),t})),g&&(e.c||e.a||e.b&&e.g)&&(A.c=s(n.childNodes,t)),g=e.g):A.a=n.nodeValue,A}(t)}function a(t){try{return t.id||(t.mo_id=t.mo_id||p++)}catch(e){try{return t.nodeValue}catch(t){return p++}}}function s(t,e){for(var g=[],n=0;n<t.length;n++)g[n]=e(t[n],n,t);return g}function l(t,e){for(var g={},n=0;n<t.length;n++)g=e(g,t[n],n,t);return g}function c(t,e,g,n){for(;g<t.length;g++)if((n?t[g][n]:t[g])===e)return g;return-1}e._period=30,e.prototype={observe:function(t,e){for(var n={b:!!(e.attributes||e.attributeFilter||e.attributeOldValue),c:!!e.childList,g:!!e.subtree,a:!(!e.characterData&&!e.characterDataOldValue)},C=this.i,o=0;o<C.length;o++)C[o].s===t&&C.splice(o,1);e.attributeFilter&&(n.f=l(e.attributeFilter,function(t,e){return t[e]=!0,t})),C.push({s:t,o:A(t,n)}),this.h||g(this)},takeRecords:function(){for(var t=[],e=this.i,g=0;g<e.length;g++)e[g].o(t);return t},disconnect:function(){this.i=[],clearTimeout(this.h),this.h=null}};var u=document.createElement("i");u.style.top=0;var d=(u="null"!=u.attributes.style.value)?C:o,p=1;return e}(void 0)},function(t,e,g){"use strict";g(4),g(5)},function(t,e){(function(t){"use strict";t.UX_EMPTY_VALUE="<none>"}).call(e,function(){return this}())},function(t,e){(function(t){"use strict";!function(){t.isIframe=function(){return!!window.frameElement},t.camelCase=function(t,e){return t=e?t.charAt(0).toUpperCase()+t.slice(1):t,jQuery.camelCase(t.replace(/\_|\:/g,"-",!0))},t.snakeCase=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return t.replace(/[A-Z]/g,function(t,g){return(g?e:"")+t.toLowerCase()})},t.capitalize=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.round=function(t,e){return Math.round(t/e)*e}}()}).call(e,function(){return this}())},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(7),C=n(A);C.default.constant("Event",{READY:"ready",CHANGE:"change",COMPLETE:"complete",ERROR:"error",SCROLL:"scroll",RESIZE:"resize"}),C.default.constant("AppEvent",{READY:"app-ready",APPLY:"app-apply",EMIT:"app-emit",BROADCAST:"app-broadcast"}),C.default.constant("IframeEvent",{READY:"iframe-ready",RELOAD:"iframe-reload",RESIZE:"iframe-resize",CHANGED:"iframe-changed",SCROLL:"iframe-scroll"}),C.default.constant("MouseEvent",{}),C.default.constant("TouchEvent",{}),C.default.constant("ShortcodeEvent",{CREATE:"shortcode-create",CREATED:"shortcode-created",ATTACHED:"shortcode-attached",CONFIGURE:"shortcode-configure",RECOMPILED:"shortcode-recompiled",ACTIVE:"shortcode-active",INACTIVE:"shortcode-inactive",CHANGED:"shortcode-changed",ADDED:"shortcode-added",MOVED:"shortcode-moved",DETACHED:"shortcode-detached",REMOVED:"shortcode-removed",MOUSEOVER:"shortocde-mouseover",MOUSEOUT:"shortocde-mouseout",CLICK:"shortcode-click",OUTLINED:"shortcode-outlined",SELECTED:"shortcode-selected",DUPLICATED:"shortcode-duplicated",DELETED:"shortcode-deleted"}),C.default.constant("ChildEvent",{ADDED:"child-added",REMOVED:"child-removed"}),C.default.constant("OptionsEvent",{SHOW:"options-show",CLEAR:"options-clear",HIDE:"options-hide"}),C.default.constant("MediaEvent",{CHANGED:"media-changed"}),C.default.constant("DragEvent",{START:"draggable-start",MOVE:"draggable-move",END:"draggable-end"})},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.uxBuilder=void 0;var A=g(8),C=n(A),o=g(9),I=n(o),r=g(10),i=n(r),a=(e.uxBuilder=new i.default,angular.module("uxBuilder",[]));e.default=a,a.config(C.default),a.run(I.default)},function(t,e){"use strict";function g(t,e,g,n,A){t.digestTtl(20),g.debugEnabled("dev"===window.location.hostname.split(".").pop()),A.debugInfoEnabled(!1),e.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",n.decorator("$rootScope",["$delegate",function(t){return Object.defineProperty(t.constructor.prototype,"_",{value:_,enumerable:!1}),t}])}g.$inject=["$rootScopeProvider","$httpProvider","$logProvider","$provide","$compileProvider"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=g},function(t,e){(function(t){"use strict";function g(t,e,g){var n=!0;t.$watch(function(){n&&e.postCustomMessage(g.APPLY)}),e.addEventListener(g.APPLY,function(){n=!1,null===t.$$phase&&t.$apply(),n=!0},!1),e.addEventListener(g.BROADCAST,function(e){t.$broadcast(e.data.type,e.data.data)},!1),e.addEventListener(g.EMIT,function(e){t.$emit(e.data.type,e.data.data)},!1)}g.$inject=["$rootScope","$window","AppEvent"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=g;var n=null;t.postCustomMessage=function(t,e,g){n=n||(self===top?document.querySelectorAll(".iframe-frame")[0].contentWindow:window.parent),g=new CustomEvent(t),g.data=e,n.dispatchEvent(g)}}).call(e,function(){return this}())},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=g(12),I=n(o),r=g(32),i=function(){function t(){(0,C.default)(this,t)}return(0,I.default)(t,[{key:"controller",value:function(t,e){r.store.shortcodes.hasOwnProperty(t)&&(r.store.shortcodes[t].controller=e)}},{key:"on",value:function(t,e){r.store.$$events[t]=r.store.$$events[t]||[],r.store.$$events[t].push(e)}},{key:"addfilter",value:function(t,e){r.store.$$filters[t]=r.store.$$filters[t]||[],r.store.$$filters[t].push(e)}},{key:"addAction",value:function(t){r.store.actions.push(t)}}]),t}();e.default=i},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var A=g(13),C=n(A);e.default=function(){function t(t,e){for(var g=0;g<e.length;g++){var n=e[g];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,C.default)(t,n.key,n)}}return function(e,g,n){return g&&t(e.prototype,g),n&&t(e,n),e}}()},function(t,e,g){t.exports={default:g(14),__esModule:!0}},function(t,e,g){g(15);var n=g(18).Object;t.exports=function(t,e,g){return n.defineProperty(t,e,g)}},function(t,e,g){var n=g(16);n(n.S+n.F*!g(26),"Object",{defineProperty:g(22).f})},function(t,e,g){var n=g(17),A=g(18),C=g(19),o=g(21),I=g(31),r="prototype",i=function(t,e,g){var a,s,l,c=t&i.F,u=t&i.G,d=t&i.S,p=t&i.P,f=t&i.B,h=t&i.W,m=u?A:A[e]||(A[e]={}),v=m[r],b=u?n:d?n[e]:(n[e]||{})[r];u&&(g=e);for(a in g)s=!c&&b&&void 0!==b[a],s&&I(m,a)||(l=s?b[a]:g[a],m[a]=u&&"function"!=typeof b[a]?g[a]:f&&s?C(l,n):h&&b[a]==l?function(t){var e=function(e,g,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,g)}return new t(e,g,n)}return t.apply(this,arguments)};return e[r]=t[r],e}(l):p&&"function"==typeof l?C(Function.call,l):l,p&&((m.virtual||(m.virtual={}))[a]=l,t&i.R&&v&&!v[a]&&o(v,a,l)))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,t.exports=i},function(t,e){var g=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=g)},function(t,e){var g=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=g)},function(t,e,g){var n=g(20);t.exports=function(t,e,g){if(n(t),void 0===e)return t;switch(g){case 1:return function(g){return t.call(e,g)};case 2:return function(g,n){return t.call(e,g,n)};case 3:return function(g,n,A){return t.call(e,g,n,A)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,g){var n=g(22),A=g(30);t.exports=g(26)?function(t,e,g){return n.f(t,e,A(1,g))}:function(t,e,g){return t[e]=g,t}},function(t,e,g){var n=g(23),A=g(25),C=g(29),o=Object.defineProperty;e.f=g(26)?Object.defineProperty:function(t,e,g){if(n(t),e=C(e,!0),n(g),A)try{return o(t,e,g)}catch(t){}if("get"in g||"set"in g)throw TypeError("Accessors not supported!");return"value"in g&&(t[e]=g.value),t}},function(t,e,g){var n=g(24);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,g){t.exports=!g(26)&&!g(27)(function(){return 7!=Object.defineProperty(g(28)("div"),"a",{get:function(){return 7}}).a})},function(t,e,g){t.exports=!g(27)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,g){var n=g(24),A=g(17).document,C=n(A)&&n(A.createElement);t.exports=function(t){return C?A.createElement(t):{}}},function(t,e,g){var n=g(24);t.exports=function(t,e){if(!n(t))return t;var g,A;if(e&&"function"==typeof(g=t.toString)&&!n(A=g.call(t)))return A;if("function"==typeof(g=t.valueOf)&&!n(A=g.call(t)))return A;if(!e&&"function"==typeof(g=t.toString)&&!n(A=g.call(t)))return A;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var g={}.hasOwnProperty;t.exports=function(t,e){return g.call(t,e)}},function(t,e){"use strict";function g(t){return A.$set=function(e,g){return t(n(e)).assign(A,g)},A.$get=function(e,g){var C=t(n(e))(A);return!angular.isDefined(C)&&g?A.$set(e,g):C},A.$unset=function(e){var g;return e.indexOf("*")?(g=e.split("*")[0],t(n(g)).assign(A,null)):t(n(e)).assign(A,null)},A}function n(t){var e=[],g=t.split(".");return _.each(g,function(t){e.push(jQuery.camelCase(t.replace(/:/g,"-")))}),e.join(".")}g.$inject=["$parse"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=g;var A=e.store=(window.parent||window).uxBuilderData},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(7),C=n(A),o=g(34),I=n(o),r=g(35),i=n(r),a=g(36),s=n(a);C.default.directive("draggableShortcode",I.default),C.default.directive("toNumber",i.default),C.default.directive("wpAttachment",s.default)},function(t,e){"use strict";function g(t){return{restrict:"A",controllerAs:"draggableShortcode",bindToController:{shortcode:"=draggableShortcode",options:"=draggableOptions",element:"=draggableElement"},controller:["$scope","$element","targets",function(e,g,n){var A=this,C=null;e.$watch("draggableShortcode.shortcode",function(o){C&&C.destroy(),C=t(A.shortcode,A.element||g.get(0),A.options),A.options&&A.options.targets&&A.options.targets.map(function(t){angular.isObject(t)?(t.shortcode=A.shortcode,t.element=g,n.add(t.name,t)):n.add(t,{shortcode:A.shortcode,element:g})}),e.$on("$destroy",function(){C.destroy(),n.removeElement(g.get(0))})})}]}}g.$inject=["draggable"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=g},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{require:"ngModel",link:function(t,e,g,n){n.$parsers.push(function(t){return""+t}),n.$formatters.push(function(t){return parseFloat(t,10)})}}}},function(t,e){"use strict";function g(t){return{restrict:"A",controllerAs:"attachment",bindToController:!0,scope:{id:"=wpAttachment",size:"=wpAttachmentSize",model:"=wpAttachmentModel",width:"@wpAttachmentWidth",height:"@wpAttachmentHeight"},controller:["app","store","$scope","$element",function(t,e,g,n){function A(){var t=g.attachment.id,n=g.attachment.size||"full",A=g.attachment.width||0,o=g.attachment.height||0,I=A||o?"w"+A+".h"+o:n,r="cache.attachment."+I+".id"+t,i=e.$get(r);return angular.isDefined(i)?C(i):void jQuery.getJSON(e.ajaxUrl,{action:"ux_builder_get_attachment",attachment_id:t,attachment_size:n,attachment_width:A,attachment_height:o}).success(function(t){t.success?C(e.$set(r,t.data)):window.self===window.top&&g.attachment.model&&(i=["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAEOCAIAAADe+FMwAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAADhuaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzExMSA3OS4xNTgzMjUsIDIwMTUvMDkvMTAtMDE6MTA6MjAgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE1IChNYWNpbnRvc2gpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDE2LTA5LTI3VDE3OjUzOjI2KzAyOjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNZXRhZGF0YURhdGU+MjAxNi0wOS0yN1QxNzo1MzoyNiswMjowMDwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTYtMDktMjdUMTc6NTM6MjYrMDI6MDA8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD54bXAuaWlkOmJjYTkzYTljLTRlZmQtNDQ0ZC05YjY1LTllNGQ0YWIzMWE3NzwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpiY2E5M2E5Yy00ZWZkLTQ0NGQtOWI2NS05ZTRkNGFiMzFhNzc8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDpiY2E5M2E5Yy00ZWZkLTQ0NGQtOWI2NS05ZTRkNGFiMzFhNzc8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jcmVhdGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6YmNhOTNhOWMtNGVmZC00NDRkLTliNjUtOWU0ZDRhYjMxYTc3PC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE2LTA5LTI3VDE3OjUzOjI2KzAyOjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8cGhvdG9zaG9wOklDQ1Byb2ZpbGU+c1JHQiBJRUM2MTk2Ni0yLjE8L3Bob3Rvc2hvcDpJQ0NQcm9maWxlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj40ODA8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MjcwPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4rLBj0AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAALzSURBVHja7NQxEQAwCACxUklMbPh3hQuOIZHww0dWPwDu+RIAGDQABg1g0AAYNIBBA2DQABg0gEEDYNAABg2AQQNg0AAGDYBBAxg0AAYNYNAAGDQABg1g0AAYNIBBA2DQABg0gEEDYNAABg2AQQMYNAAGDYBBAxg0AAYNYNAAGDQABg1g0AAYNIBBA2DQAAYNgEEDYNAABg2AQQMYNAAGDYBBAxg0AAYNYNAAGDQABg1g0AAYNIBBA2DQAAYNgEEDYNAABg2AQQMYNAAGDYBBAxg0AAYNYNAAGDSAQQNg0AAYNIBBA2DQAAYNgEEDYNAABg2AQQMYNAAGDWDQABg0AAYNYNAAGDSAQQNg0AAYNIBBA2DQAAYNgEEDYNAABg2AQQMYNAAGDWDQABg0AAYNYNAAGDSAQQNg0AAYNIBBA2DQAAYNgEEDGDQABg2AQQMYNAAGDWDQABg0AAYNYNAAGDSAQQNg0AAGDYBBA2DQAAYNgEEDGDQABg2AQQMYNAAGDWDQABg0AAYNYNAAGDSAQQNg0AAGDYBBA2DQAAYNgEEDGDQABg2AQQMYNAAGDWDQABg0gEEDYNAAGDSAQQNg0AAGDYBBA2DQAAYNgEEDGDQABg1g0AAYNAAGDWDQABg0gEEDYNAAGDSAQQNg0AAGDYBBA2DQAAYNgEEDGDQABg1g0AAYNAAGDWDQABg0gEEDYNAAGDSAQQNg0AAGDYBBAxg0AAYNgEEDGDQABg1g0AAYNAAGDWDQABg0gEEDYNAABg2AQQNg0AAGDYBBAxg0AAYNgEEDGDQABg1g0AAYNAAGDWDQABg0gEEDYNAABg2AQQNg0AAGDYBBAxg0AAYNgEEDGDQABg1g0AAYNIBBA2DQABg0gEEDYNAABg2AQQNg0AAGDYBBAxg0AAYNYNAAGDQABg1g0AAYNIBBA2DQABg0gEEDYNAABg2AQQMYtAQABg2AQQMYNAAGDWDQABg0AAYNYNAAGDSAQQOwbQAAAP//AwDBvQLFJkQUdgAAAABJRU5ErkJggg==","480px","270px"]),
i&&C(i)}).fail(function(e){console.error("Failed to load attachment",t)})}function C(t){"IMG"===n[0].tagName?(n.addClass("processing"),n.on("load",function(){n.off("load").removeClass("processing")}),n.attr("src",t[0]),n.attr("width",t[1]),n.attr("height",t[2])):n.css("background-image","url("+t[0]+")"),r=!0}function o(){"IMG"===n[0].tagName?(n.removeAttr("src"),n.removeAttr("width"),n.removeAttr("height")):n.css("background-image",""),r=!1}var I=this,r=!1;n.on("load.wpAttachment",function(){return t("tools").fixPositions()}),g.$watch(function(){return I.id},function(t){return t&&""!==t?"string"==typeof t&&t.indexOf("/")>-1?C([t]):void A():o()}),g.$watch(function(){return I.size},function(t,e){r&&t!==e&&A()}),g.$on("$destroy",function(){n.off("load.wpAttachment")})}]}}g.$inject=["app"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=g},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(38),C=n(A),o=g(39),I=n(o),r=g(40),i=n(r),a=g(41),s=n(a),l=g(42),c=n(l);angular.module("app.filters",[]).filter("noDefault",C.default).filter("heightCheck",I.default).filter("html",i.default).filter("rgba",s.default).filter("trusted",c.default)},function(t,e){"use strict";function g(){return function(t,e){return t!==e.default&&t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=g},function(t,e){"use strict";function g(){return function(t){return"100%"===t?"100vh":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=g},function(t,e){"use strict";function g(t){return function(e){return t.trustAsHtml(e)}}g.$inject=["$sce"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=g},function(t,e){"use strict";function g(){return function(t){var e=t;if(e.indexOf("#")>-1){var g=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(g,function(t,e,g,n){return e+e+g+g+n+n}),e=e.replace("#","");var n=parseInt(e.substring(0,2),16),A=parseInt(e.substring(2,4),16),C=parseInt(e.substring(4,6),16);e="rgba("+n+","+A+","+C+",0.3)"}return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=g},function(t,e){"use strict";function g(t){return function(e){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"html";return t.trustAs(g,e)}}g.$inject=["$sce"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=g},function(t,e,g){"use strict";g(44),g(45),g(46),g(47),g(48)},function(t,e){(function(t){"use strict";t.jQuery.fn.cover=function(e){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return this;var n=t.jQuery(e),A=n.get(0).ownerDocument,C=A.defaultView,o=n.outerOffset(g),I=!!this.get(0).ownerDocument.defaultView.frameElement,r=!!n.get(0).ownerDocument.defaultView.frameElement;if(!I&&r){var i=C.frameElement.getBoundingClientRect();o.left+=i.left,o.top+=i.top}return I&&r&&(o.top+=A.documentElement.scrollTop||A.body.scrollTop),this.css({width:o.width.toFixed(2),height:o.height.toFixed(2),transform:"translateX("+o.left.toFixed()+"px) translateY("+o.top.toFixed()+"px)"})}}).call(e,function(){return this}())},function(t,e){(function(t){"use strict";function e(t){var e=!0;return t.map(function(t){var g=window.getComputedStyle(t);"none"===g.display&&(e=!1),"hidden"===g.visibility&&(e=!1),"0.0"===g.opacity&&(e=!1)}),e}t.jQuery.fn.isVisible=function(){var t=[this.get(0)];return e(t)}}).call(e,function(){return this}())},function(t,e){(function(t){"use strict";t.jQuery.fn.outerOffset=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g={width:0,height:0};return this.each(function(n,A){var C=t.jQuery(A),o=A.getBoundingClientRect(),I=0,r=0,i=o.right-(g.left?g.left:o.left),a=o.bottom-(g.top?g.top:o.top),s=C.css("display").search("inline")>-1;e.includeMargins&&(s?i=C.outerWidth(!0):a=C.outerHeight(!0)),g.top=(o.top>g.top?g.top:o.top)+r,g.left=(o.left>g.left?g.left:o.left)+I,g.width=i>g.width?i:g.width,g.height=a>g.height?a:g.height}),g.right=g.left+g.width,g.bottom=g.top+g.height,g}}).call(e,function(){return this}())},function(t,e){(function(t){"use strict";t.jQuery.fn.scrollToElement=function(e){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:450,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,C=t.jQuery(e),o=t.window.innerHeight,I=C.get(0).ownerDocument.body.getBoundingClientRect(),r=C.get(0).getBoundingClientRect(),i=r.top-I.top+r.height/2+n;return r.height<o?i-=o/2:r.height>o&&(i=r.top-I.top),this.animate({scrollTop:i},g,A)}}).call(e,function(){return this}())},function(t,e){(function(t){"use strict";t.jQuery.fn.shortcode=function(){var e=this.parents(),g=null;return this.data("shortcode")?this.data("shortcode"):(e.each(function(e,n){t.jQuery(n).data("shortcode")&&!g&&(g=t.jQuery(n).data("shortcode"))}),g)}}).call(e,function(){return this}())},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(50),C=n(A),o=g(51),I=n(o),r=g(52),i=n(r),a=g(53),s=n(a),l=g(54),c=n(l),u=g(55),d=n(u),p=g(56),f=n(p),h=g(57),m=n(h),v=g(58),b=n(v),$=g(62),y=n($),w=g(63),x=n(w),E=g(32),S=n(E),D=g(66),k=n(D),M=g(67),O=n(M),N=g(68),_=n(N);angular.module("app.services",[]).service("$angular",C.default).service("actions",I.default).service("app",i.default).service("contextmenu",s.default).service("draggable",c.default).service("dependencies",d.default).service("editor",f.default).service("iframe",b.default).service("hammer",m.default).service("ResponsiveHelper",y.default).service("Shortcode",x.default).service("utils",O.default).service("store",S.default).service("targets",k.default).service("$iframe",_.default)},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=["$window",function t(e){return(0,C.default)(this,t),e.frameElement?e.parent.angular:angular}];e.default=o},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=g(12),I=n(o),r=function(){function t(e){(0,C.default)(this,t),this.store=e,this.store.states=this.store.states||{}}return t.$inject=["store"],(0,I.default)(t,[{key:"outlineShortcode",value:function(t){this.store.states.outlinedShortcode=t}},{key:"selectShortcode",value:function(t){this.store.states.selectedShortcode=t}},{key:"configureShortcode",value:function(t){this.store.states.configuringShortcode=t}}]),t}();e.default=r},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=["store","$rootScope","$window","$timeout","$log","AppEvent","IframeEvent","MediaEvent",function t(e,g,n,A,o,I,r,i){function a(t){return e.components[t]}(0,C.default)(this,t);var s=angular.copy(e.permissions);return a.goto=function(t){(window.parent||window).location.hash=t},a.exit=function(){if(s.exit){var t="publish"===e.post.status?e.backUrl:e.editUrl;e.isSaved?(window.parent||window).location.href=t:confirm("Exit? All changes since last save will be lost.")&&((window.parent||window).location.href=t)}},a.register=function(t,g){e.components=e.components||{},e.components[t]=g},a.remove=function(t){delete e.components[t]},a.apply=function(t){g.$apply(t)},a.broadcast=function(t,e){g.$broadcast(t,e),n.postCustomMessage(I.BROADCAST,{type:t,data:e})},a.emit=function(t,e){g.$emit(t,e),n.postCustomMessage(I.EMIT,{type:t,data:e})},a.trigger=function(t){for(var g=arguments.length,n=Array(g>1?g-1:0),A=1;A<g;A++)n[A-1]=arguments[A];if(this.broadcast.apply(this,[t].concat(n)),e.$$events.hasOwnProperty(t))for(var C=0;C<e.$$events[t].length;C++){var o;(o=e.$$events[t][C]).call.apply(o,[this].concat(n))}},a.filter=function(t,g){if(e.$$filters.hasOwnProperty(t)){for(var n=arguments.length,A=Array(n>2?n-2:0),C=2;C<n;C++)A[C-2]=arguments[C];for(var o=0;o<e.$$filters[t].length;o++){var I;g=(I=e.$$filters[t][o]).call.apply(I,[this,g].concat(A))}}return g},a.states=e.states,a.resetAll=function(){e.$$events={},e.$$filters={},this.resetState()},a.resetState=function(){for(var t in e.states)e.states[t]=null},a.freeze=function(t){e.states.freezed=t},a.outlineShortcode=function(t){e.states.outlinedShortcode=e.states.freezed!==!0?t:null},a.selectShortcode=function(t){e.states.selectedShortcode=e.states.freezed!==!0?t:null},a.configureShortcode=function(t){this.goto(t?"/shortcode/"+t.$id:"/")},a.setBreakpoint=function(t){e.breakpoints.current=t,a.broadcast(i.CHANGED,t)},a}];e.default=o},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=g(12),I=n(o),r=function(){function t(e,g){(0,C.default)(this,t),this.app=e,this.utils=g}return t.$inject=["app","utils"],(0,I.default)(t,[{key:"attach",value:function(t){t.addEventListener&&t.addEventListener("contextmenu",this.onRightClick.bind(this),!1)}},{key:"onRightClick",value:function(t){var e=this.utils.getGlobalCoordinates(t.view,t.clientX,t.clientY),g=this.utils.shortcodeFromPoint(e.x,e.y);g.isRoot||(this.menu.open(g,t.target,t.clientX,t.clientY),this.app.apply(),t?t.preventDefault():window.event.returnValue=!1)}},{key:"menu",get:function(){return this.app("contextMenu")}}]),t}();e.default=r},function(t,e,g){(function(t){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=["app","store","targets","Shortcode","$document","$window","$timeout","$iframe","utils","DragEvent",function e(g,n,A,o,I,r,i,a,s,l){(0,C.default)(this,e);var c={},u=(window.parent||window).angular.element("draggable-helper");return function(e,C,d){function p(t){t.srcEvent.stopPropagation(),t.srcEvent.stopImmediatePropagation()}function f(t){u.find("h3 span").text(e.data.name),I.onkeydown=function(t){return g("tools").toggleAddableButton(t.altKey)},I.onkeyup=function(t){return g("tools").toggleAddableButton(t.altKey)},c.shortcode=e,c.container=e.parent.$element,c.isSelected=g.states.selectedShortcode===e,c.defaultPrevented=!1,c.showHelper=!0,c.constrains=!1,c.initial={},v(t),c.initial={},c.initial.innerX=c.innerX,c.initial.innerY=c.innerY,c.initial.elementX=c.elementX,c.initial.elementY=c.elementY,e.$element.addClass("uxb-shortcode-dragging"),angular.element(r.parent.document.body).addClass("dragging"),angular.element("body").addClass("dragging"),d.start(t),e.states.dragging=!0,n.isDragging=!0,d.broadcast&&g.broadcast(l.START,c),g("tools").apply(),e.$scope.$digest()}function h(t){if(c.shortcode||f(t),v(t),c.defaultPrevented||(u.addClass("active"),u.css({transform:"translate3d("+c.global.x+"px, "+c.global.y+"px, 0px)"}),u.find("h3 span").css({transform:"rotate("+c.originalEvent.velocityY*-25+"deg)"})),c.target=null,c.addToShortcode=null,e.$recompile)return w.stop(!0),m(t);if(A.find(c.global.x,c.global.y).map(function(t){!c.target&&t.target&&t.target.allows(e)&&(c.target=t)}),c.target){var n=c.target.target===e.parent,C=n&&c.target.index===e.index,o=n&&c.target.index===e.index+1,I=t.srcEvent.altKey;!C&&!o||I||(c.target=null)}d.move(t),g("tools").showAddableSpot(c.target,t.srcEvent.altKey),g.outlineShortcode(c.target?c.target.target.parent:null),d.broadcast&&g.broadcast(l.MOVE,c),g("tools").apply(),e.$scope.$digest()}function m(t){if(v(t),u.find("h3 span").removeAttr("style"),u.removeClass("active"),e.states.dragging=!1,c.target&&!c.defaultPrevented){var A=t.srcEvent.altKey,C=c.target.target,a=c.target.index;A?(c.addedShortode=o.duplicate(e),c.addedShortode=C.addChild(c.addedShortode,C===c.addedShortode.parent&&a>=c.addedShortode.index?a+1:a)):c.addedShortode=o.move(e,C,a)}e.$element.removeClass("uxb-shortcode-dragging"),angular.element(r.parent.document.body).removeClass("dragging"),angular.element("body").removeClass("dragging"),d.end(t),d.broadcast&&g.broadcast(l.END,c),I.onkeydown=null,I.onkeyup=null,c={},i(function(){return n.isDragging=!1},0)}function v(t){c.originalEvent=t,c.global=s.getGlobalCoordinates(t.target.ownerDocument.defaultView,t.center.x,t.center.y),c.element=angular.element(y),c.draggable=$,c.main={},c.main.x=c.global.x,c.main.y=c.global.y,c.iframe={},c.iframe.x=c.global.x-a().offset().left,c.iframe.y=c.global.y-a().offset().top,c.virtual={},c.virtual.width=c.shortcode.$element.width(),c.virtual.height=c.shortcode.$element.height(),c.virtual.top=c.iframe.y-c.initial.elementY,c.virtual.right=c.iframe.x+c.virtual.width-c.initial.elementX,c.virtual.bottom=c.iframe.y+c.virtual.height-c.initial.elementY,c.virtual.left=c.iframe.x-c.initial.elementX,c.constrains&&b(t),c.elementX=c.iframe.x-e.$element.offset().left,c.elementY=c.iframe.y-e.$element.offset().top+a().contents().scrollTop(),c.preventDefault=function(){c.defaultPrevented=!0},c.setContainment=function(t){c.constrains=t.outerOffset(),c.container=t}}function b(){c.constrains=c.container.outerOffset(),c.innerX=c.iframe.x-c.constrains.left-c.initial.elementX,c.innerY=c.iframe.y-c.constrains.top-c.initial.elementY,c.virtual.top<c.constrains.top&&(c.innerY=0),c.virtual.right>c.constrains.right&&(c.innerX=c.constrains.width-c.virtual.width),c.virtual.bottom>c.constrains.bottom&&(c.innerY=c.constrains.height-c.virtual.height),c.virtual.left<c.constrains.left&&(c.innerX=0)}var $=this;d=angular.extend({cssProps:{},droppable:!0,broadcast:!0,start:angular.noop,move:angular.noop,end:angular.noop},d);var y=C||e.$element.get(0),w=new t.HammerJS(y,d);return w.get("pan").set({direction:t.HammerJS.DIRECTION_ALL,threshold:1}),angular.element(y).data("shortcode",e),angular.element(y).addClass("uxb-draggable"),w.on("hammer.input",p),w.on("panstart",f),w.on("pan",h),w.on("panend",m),w}}];e.default=o}).call(e,function(){return this}())},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=["store","$q",function t(e,g){function n(t,n,A){var C=g.defer(),o=0,I=0;return _.each(n,function(g,A){e.$get(t+"."+A+".loaded")===!0?delete n[A]:o++}),0===_.size(n)?(C.resolve(),C.promise):(_.each(n,function(g,n){function r(){i.loaded=!0,I++,I===o&&C.resolve()}var i=e.$get(t+"."+n)||A(g,n);return angular.isDefined(i.loaded)&&i.loaded!==!0?i.addEventListener("load",r):(i.loaded=!1,i.addEventListener("load",r),e.$set(t+"."+n,i),void document.getElementsByTagName("head")[0].appendChild(i))}),C.promise)}return(0,C.default)(this,t),{injectStyles:function(t){return n("styles",t,function(t,e,g){return g=document.createElement("link"),g.id="ux-builder-style-"+e,g.rel="stylesheet",g.type="text/css",g.media="all",g.href=t,g})},injectScripts:function(t){return n("scripts",t,function(t,e,g){return g=document.createElement("script"),g.id="ux-builder-script-"+e,g.type="text/javascript",g.src=t,g})}}}];e.default=o},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=g(12),I=n(o),r=function(){function t(e){(0,C.default)(this,t),this.enabled=!0,this.store=e,this.store.editor=this.store.editor||{state:{}}}return t.$inject=["store"],(0,I.default)(t,[{key:"disable",value:function(){this.enabled=!1,this.state={}}},{key:"enable",value:function(){this.enabled=!0}},{key:"update",value:function(){}},{key:"outline",value:function(t){this.state.outlined=this.enabled?t:null}},{key:"select",value:function(t){this.state.selected=this.enabled?t:null}},{key:"configure",value:function(t){this.state.configuring=this.enabled?t:null}},{key:"target",value:function(t){this.state.target=this.enabled?t:null}},{key:"state",get:function(){return this.store.editor.state}}]),t}();e.default=r},function(t,e,g){(function(t){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=function e(){return(0,C.default)(this,e),function(e,g,n){return n?t.propagatingHammer(new t.HammerJS(e,g)):new t.HammerJS(e,g)}};e.default=o}).call(e,function(){return this}())},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=g(12),I=n(o),r=g(59),i=n(r),a=function(){function t(e,g,n,A,o,I){(0,C.default)(this,t),this.app=e,this.store=g,this.targets=n,this.manager=A,this.$timeout=o,this.metaOptions=g.post.meta.options.flat,this.postMeta=g.post.meta.values,this.IframeEvent=I}return t.$inject=["app","store","targets","Shortcode","$timeout","IframeEvent"],(0,I.default)(t,[{key:"reload",value:function(t){var e=this;if(!this.store.isReloading){this.store.loading=!0;var g=(0,i.default)(this.store.iframeUrl);for(var n in this.metaOptions){var A=this.metaOptions[n];g.query+="&"+A.$orgName+"="+this.postMeta[A.$name]}this.store.post.content=t||this.store.postContent.copy(),this.targets.remove(this.store.postContent),this.manager.remove(this.store.postContent),this.app.resetAll(),this.store.isReloading=!!this.$timeout(function(){e.store.iframeUrl=g.toString(),delete e.store.isReloading},0)}}}]),t}();e.default=a},function(t,e,g){(function(e){"use strict";function n(t){var g=e&&e.location||{};t=t||g;var n,A={},C=typeof t;if("blob:"===t.protocol)A=new o(unescape(t.pathname),{});else if("string"===C){A=new o(t,{});for(n in u)delete A[n]}else if("object"===C){for(n in t)n in u||(A[n]=t[n]);void 0===A.slashes&&(A.slashes=l.test(t.href))}return A}function A(t){var e=s.exec(t);return{protocol:e[1]?e[1].toLowerCase():"",slashes:!!e[2],rest:e[3]}}function C(t,e){for(var g=(e||"/").split("/").slice(0,-1).concat(t.split("/")),n=g.length,A=g[n-1],C=!1,o=0;n--;)"."===g[n]?g.splice(n,1):".."===g[n]?(g.splice(n,1),o++):o&&(0===n&&(C=!0),g.splice(n,1),o--);return C&&g.unshift(""),"."!==A&&".."!==A||g.push(""),g.join("/")}function o(t,e,g){if(!(this instanceof o))return new o(t,e,g);var I,r,s,l,u,d,p=c.slice(),f=typeof e,h=this,m=0;for("object"!==f&&"string"!==f&&(g=e,e=null),g&&"function"!=typeof g&&(g=a.parse),e=n(e),r=A(t||""),I=!r.protocol&&!r.slashes,h.slashes=r.slashes||I&&e.slashes,h.protocol=r.protocol||e.protocol||"",t=r.rest,r.slashes||(p[2]=[/(.*)/,"pathname"]);m<p.length;m++)l=p[m],s=l[0],d=l[1],s!==s?h[d]=t:"string"==typeof s?~(u=t.indexOf(s))&&("number"==typeof l[2]?(h[d]=t.slice(0,u),t=t.slice(u+l[2])):(h[d]=t.slice(u),t=t.slice(0,u))):(u=s.exec(t))&&(h[d]=u[1],t=t.slice(0,u.index)),h[d]=h[d]||(I&&l[3]?e[d]||"":""),l[4]&&(h[d]=h[d].toLowerCase());g&&(h.query=g(h.query)),I&&e.slashes&&"/"!==h.pathname.charAt(0)&&(""!==h.pathname||""!==e.pathname)&&(h.pathname=C(h.pathname,e.pathname)),i(h.port,h.protocol)||(h.host=h.hostname,h.port=""),h.username=h.password="",h.auth&&(l=h.auth.split(":"),h.username=l[0]||"",h.password=l[1]||""),h.origin=h.protocol&&h.host&&"file:"!==h.protocol?h.protocol+"//"+h.host:"null",h.href=h.toString()}function I(t,e,g){var n=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(g||a.parse)(e)),n[t]=e;break;case"port":n[t]=e,i(e,n.protocol)?e&&(n.host=n.hostname+":"+e):(n.host=n.hostname,n[t]="");break;case"hostname":n[t]=e,n.port&&(e+=":"+n.port),n.host=e;break;case"host":n[t]=e,/:\d+$/.test(e)?(e=e.split(":"),n.port=e.pop(),n.hostname=e.join(":")):(n.hostname=e,n.port="");break;case"protocol":n.protocol=e.toLowerCase(),n.slashes=!g;break;case"pathname":case"hash":if(e){var A="pathname"===t?"/":"#";n[t]=e.charAt(0)!==A?A+e:e}else n[t]=e;break;default:n[t]=e}for(var C=0;C<c.length;C++){var o=c[C];o[4]&&(n[o[1]]=n[o[1]].toLowerCase())}return n.origin=n.protocol&&n.host&&"file:"!==n.protocol?n.protocol+"//"+n.host:"null",n.href=n.toString(),n}function r(t){t&&"function"==typeof t||(t=a.stringify);var e,g=this,n=g.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var A=n+(g.slashes?"//":"");return g.username&&(A+=g.username,g.password&&(A+=":"+g.password),A+="@"),A+=g.host+g.pathname,e="object"==typeof g.query?t(g.query):g.query,e&&(A+="?"!==e.charAt(0)?"?"+e:e),g.hash&&(A+=g.hash),A}var i=g(60),a=g(61),s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,l=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=[["#","hash"],["?","query"],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],u={hash:1,query:1};o.prototype={set:I,toString:r},o.extractProtocol=A,o.location=n,o.qs=a,t.exports=o}).call(e,function(){return this}())},function(t,e){"use strict";t.exports=function(t,e){if(e=e.split(":")[0],t=+t,!t)return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},function(t,e){"use strict";function g(t){return decodeURIComponent(t.replace(/\+/g," "))}function n(t){for(var e,n=/([^=?&]+)=?([^&]*)/g,A={};e=n.exec(t);){var C=g(e[1]),o=g(e[2]);C in A||(A[C]=o)}return A}function A(t,e){e=e||"";var g=[];"string"!=typeof e&&(e="?");for(var n in t)C.call(t,n)&&g.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return g.length?e+g.join("&"):""}var C=Object.prototype.hasOwnProperty;e.stringify=A,e.parse=n},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=["app","store","utils",function t(e,g,n){function A(){return g.breakpoints.default}function o(){return g.breakpoints.current}function I(t,e){return e=e||o(),e>A()?i(t,e):s(t,e)}function r(t,e){return e=e||o(),e>A()?a(t,e):l(t,e)}function i(t,e){for(var g=e||o();g>=0;g--)if(t[g])return t[g];return null}function a(t,e){for(var g=e||o();g>=0;g--)if(t[g])return g;return 0}function s(t,e){for(var g=e||o();g<t.length;g++)if(t[g])return t[g];return null}function l(t,e){for(var g=e||o();g<t.length;g++)if(t[g])return g;return 0}function c(t,e,g){for(var n=e+1;n<g;n++)if(t[n])return!0;return!1}return(0,C.default)(this,t),{defaultBreakpoint:A,currentBreakpoint:o,getMediaValue:I,getMediaIndex:r,getLowerMediaValue:i,getLowerMediaIndex:a,getHigherMediaValue:s,getHigherMediaIndex:l,hasValueBetween:c}}];e.default=o},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=g(12),I=n(o),r=g(64),i=n(r),a=function(){function t(e,g,n,A){(0,C.default)(this,t),this.app=e,this.$timeout=g,this.$templateCache=n,this.ShortcodeEvent=A}return t.$inject=["app","$timeout","$templateCache","ShortcodeEvent"],(0,I.default)(t,[{key:"instantiate",value:function(t,e,g){return new i.default(t,e,g)}},{key:"create",value:function(t,e,g){var n=this.instantiate(t,e,g);return n.$$new=!0,n}},{key:"move",value:function(t,e,g){var n=e.addChild(t,g);return n.$$moved=!0,t.$parentId!==n.$parentId&&(this.app.trigger(this.ShortcodeEvent.DETACHED,t),n.$$new=!!n.data.template||!!this.$templateCache.get(n.$id)),this.app.trigger(this.ShortcodeEvent.MOVED,n),n}},{key:"duplicate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t.duplicate(e,g);return n.$$new=!0,n.data.template||this.$templateCache.put(n.$id,this.$templateCache.get(t.$id)),n}},{key:"remove",value:function(t){if(this.app.trigger(this.ShortcodeEvent.DETACHED,t),this.app.states.selectedShortcode&&this.app.states.selectedShortcode.isSelfOrDescendantOf(t)&&(this.app.outlineShortcode(null),this.app.selectShortcode(null),this.app.configureShortcode(null)),t.isRoot)for(var e=t.children.length-1;e>=0;e--)t.children[e].remove();else t.remove()}}]),t}();e.default=a},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function A(t,e){var g=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return e?t.tag+"-"+g:"root"}function C(t,e){return null===t?t:"string"==typeof t&&""===t?t:isNaN(t)?angular.isUndefined(t)?e.default:(Array.isArray(t)&&(t=t.join(e.config?e.config.delimiter:",")),String(t)):"string"!=typeof t||!/^0\d/.test(t)&&"+"!==t.charAt(0)?Number(t):String(t)}function o(t,e){var g={};for(var n in t)"$"!==n.charAt(0)&&"children"!==n&&t.hasOwnProperty(n)&&(g[n]=angular.copy(t[n]));if(t.isParent){g.children=[];for(var A=0;A<t.children.length;A++)g.children.push(o(t.children[A],e))}return e&&e(g,t),g}function I(t){var e=null,g=angular.copy(t);if(angular.isDefined(g.children))for(var n in g.children)e=I(h.store.shortcodes[g.children[n].tag].presets[0].content),g.children[n].isparent&&!g.children[n].children.length&&(g.children[n]=angular.merge({},e,g.children[n])),g.children[n].content&&""===g.children[n].content&&(g.children[n].content=e.content);return g}function r(t){var e=[];return t.children&&t.children.forEach(function(t){e.push(t),e.concat(r(t))}),e}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.store.breakpoints.current;return e>h.store.breakpoints.default?a(t,e):s(t,e)}function a(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.store.breakpoints.current,g=e;g>=0;g--)if(null!==t[g])return t[g];return null}function s(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.store.breakpoints.current,g=e;g<t.length;g++)if(null!==t[g])return t[g];return null}Object.defineProperty(e,"__esModule",{value:!0});var l=g(13),c=n(l),u=g(11),d=n(u),p=g(12),f=n(p),h=g(32),m=g(65),v=function(){function t(e,g,n){var o=this;(0,d.default)(this,t),angular.merge(this,e);var I=this,r={},a={};this.$id=n||e.$id||A(e,g),this.$parentId=g?g.$id:e.$parentId||null,this.data=angular.copy(h.store.shortcodes[this.tag]),g&&angular.extend(this.data,g.data.children),this.states={},this.options={get $responsive(){return r},set $responsive(t){r=t}};for(var s in e.options.$responsive){r[s]=[];for(var l=0;l<e.options.$responsive[s].length;l++)r[s][l]=C(e.options.$responsive[s][l],I.data.options.named[s])}var u=function(t){return"$"===t.charAt(0)?"continue":((0,c.default)(o.options,t,{enumerable:!0,get:function(){var e=I.data.options.named[t];return e.responsive?i(r[t]):a[t]},set:function(e){var g=I.data.options.named[t],n=C(e,g);if(a[t]=n,g.responsive){var A=h.store.breakpoints.current,o=i(r[t]);n!==o&&(r[t][A]=n)}}}),void(o.options[t]=e.options[t]))};for(var p in e.options){u(p)}this.data.options.flat.forEach(function(t){null===o.options[t.$name]&&(o.options[t.$name]=t.default),t.$isValid(o.options,g)||(o.options[t.$name]=null,t.responsive&&o.options.$responsive[t.$name].map(function(){return null}))}),h.store.shortcode[this.$id]=this,e.hasOwnProperty("children")&&(this.children=e.children.map(function(e){return new t(e,o)}))}return(0,f.default)(t,[{key:"apply",value:function(){this.$scope&&!this.$scope.$$phase&&this.$scope.$apply()}},{key:"addChild",value:function(e,g){var n=void 0,A=void 0;if("undefined"==typeof e.$id||null===e.$id?n=new t(I(e),this):e.$parentId!==this.$id?n=new t(o(e.detatch(),function(t,e){t.$id=e.$id}),this,e.$id):(g-=g>e.index?1:0,n=e.detatch()),!this.allows(n))throw Error(n.data.name+" is not allowed in "+this.data.name);return A=g>=0?g:this.children.length,this.children.splice(A,0,n),n}},{key:"childAt",value:function(t){return this.isParent?this.children[t]:null}},{key:"removeChild",value:function(t){return this.isParent?this.children[t].remove():null}},{key:"replaceChild",value:function(e,g){return this.isParent?(this.children[g]=e instanceof t?e:new t(e,this),this.children[g]):null}},{key:"replaceWith",value:function(t){return this.isRoot?null:this.parent.replaceChild(t,this.index)}},{key:"is",value:function(t){return this.data.tag===t}},{key:"isChildOf",value:function(t){return this.parent===t}},{key:"isDescendantOf",value:function(t){return t.descendants.indexOf(this)>-1}},{key:"isSelfOrDescendantOf",value:function(t){return t.descendantsAndSelf.indexOf(this)>-1}},{key:"isAncestorOf",value:function(t){return this.descendants.indexOf(t)>-1}},{key:"isSelfOrAncestorOf",value:function(t){return this.descendantsAndSelf.indexOf(t)>-1}},{key:"copy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e={};for(var g in this)_.isFunction(this[g])||"$"!==g.charAt(0)&&"children"!==g&&"data"!==g&&this.hasOwnProperty(g)&&(e[g]=angular.copy(this[g]));if(this.isParent){e.children=[];for(var n=0;n<this.children.length;n++)e.children.push(this.children[n].copy(t))}return t&&t(e,this),e}},{key:"duplicate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.parent.addChild(this.copy(function(t,g){e&&(t.$id=g.$id)}),t||this.index+1)}},{key:"detatch",value:function(){return this.parent?this.parent.children.splice(this.index,1)[0]:null}},{key:"remove",value:function(){this.descendants.forEach(function(t){delete h.store.shortcode[t.$id]}),this.parent&&delete h.store.shortcode[this.$id],this.detatch()}},{key:"allows",value:function(t){return(0,m.isAllowed)(t,this)}},{key:"allowed",get:function(){return(0,m.allowedShortcodes)(this)}},{key:"presets",get:function(){var t=this.parent.allowed,e=angular.copy(this.data.presets);return e.forEach(function(g,n){var A=r(g.content);return A.unshift(g.content),t.hasOwnProperty(g.content.tag)?void A.forEach(function(t){t.tag===parent.tag&&h.store.shortcodes[t.tag].nested!==!0&&e.splice(n,1)}):e.splice(n,1)}),e}},{key:"isParent",get:function(){return!!this.children}},{key:"isChild",get:function(){return!!this.parent}},{key:"isEmpty",get:function(){return this.isParent&&0===this.children.length}},{key:"isRoot",get:function(){return"_root"===this.tag}},{key:"parent",get:function(){return this.$parentId?h.store.shortcode[this.$parentId]:null}},{key:"index",get:function(){return this.parent?this.parent.children.indexOf(this):0}},{key:"depth",get:function(){return this.ancestors.length}},{key:"ancestors",get:function(){var t=[];return this.parent&&(t.push(this.parent),t=t.concat(this.parent.ancestors)),t}},{key:"ancestorsAndSelf",get:function(){var t=this.ancestors;return t.unshift(this),t}},{key:"descendants",get:function(){var t=[];if(this.isParent)for(var e=0;e<this.children.length;e++)t.push(this.children[e]),t=t.concat(this.children[e].descendants);return t}},{key:"descendantsAndSelf",get:function(){var t=this.descendants;return t.unshift(this),t}},{key:"siblings",get:function(){var t=this;return this.parent?this.parent.children.filter(function(e){return e!==t}):[]}},{key:"nextSibling",get:function(){return this.parent&&this.parent.children[this.index+1]?this.parent.children[this.index+1]:null}},{key:"previousSibling",get:function(){return this.parent&&this.parent.children[this.index-1]?this.parent.children[this.index-1]:null}},{key:"siblingsAndSelf",get:function(){return this.parent?this.parent.children:[this]}}]),t}();e.default=v},function(t,e,g){"use strict";function n(t,e){return!e.isSelfOrDescendantOf(t)&&(!t.descendants.filter(function(t){return t.data.nested===!1&&t.tag===e.tag}).length&&e.allowed.hasOwnProperty(t.tag))}function A(t){var e=t.ancestorsAndSelf,g={};if(t.data.allow.length)return t.data.allow.reduce(function(t,e){return C.store.shortcodes[e]&&(t[e]=C.store.shortcodes[e]),t},{});var n=function(n){var A=C.store.shortcodes[n];return A.hidden?"continue":A.require.length&&A.require.indexOf(t.tag)===-1?"continue":A.nested===!1&&t.tag===A.tag?"continue":A.nested===!1&&e.filter(function(t){return t.tag===A.tag}).length?"continue":void(g[A.tag]=A)};for(var A in C.store.shortcodes){n(A)}return g}Object.defineProperty(e,"__esModule",{value:!0}),e.isAllowed=n,e.allowedShortcodes=A;var C=g(32)},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=g(12),I=n(o),r=function(){function t(e,g,n,A,o){var I=this;(0,C.default)(this,t),this.store=e,this.$iframe=g,this.$timeout=o,n.addEventListener("resize",function(){return I.updateOffsets()}),n.addEventListener("scroll",function(){return I.updateOffsets()}),this.updateOffsets(!0,0)}return t.$inject=["store","$iframe","$window","$document","$timeout"],(0,I.default)(t,[{key:"add",value:function(t,e){var g=angular.extend({name:t,element:e.shortcode.$element,shortcode:e.shortcode,target:e.target||"center"===t?e.shortcode:e.shortcode.parent,droppable:!0,addable:!0,active:!0},e);
g.offsets=g.element.outerOffset(),this.store.targets.push(g)}},{key:"enable",value:function(t){var e=this;if(angular.isArray(t))return t.forEach(function(t){return e.enable(t)});for(var g=0;g<this.store.targets.length;g++)this.store.targets[g].target===t&&(this.store.targets[g].active=!0)}},{key:"disable",value:function(t){var e=this;if(angular.isArray(t))return t.forEach(function(t){return e.disable(t)});for(var g=0;g<this.store.targets.length;g++)this.store.targets[g].target===t&&(this.store.targets[g].active=!1)}},{key:"remove",value:function(t){var e=t.descendantsAndSelf;this.store.targets=this.store.targets.reduce(function(t,g){return e.indexOf(g.shortcode)<0&&t.push(g),t},[])}},{key:"removeElement",value:function(t){this.store.targets=this.store.targets.reduce(function(e,g){return g.element.get(0)!==t&&e.push(g),e},[])}},{key:"enableElement",value:function(t){for(var e=this,g=0;g<this.store.targets.length;g++)this.store.targets[g].element.get(0)===t&&(this.store.targets[g].active=!0,this.store.targets[g].shortcode.descendants.forEach(function(t){t.$element&&e.enableElement(t.$element.get(0))}))}},{key:"disableElement",value:function(t){for(var e=this,g=0;g<this.store.targets.length;g++)this.store.targets[g].element.get(0)===t&&(this.store.targets[g].active=!1,this.store.targets[g].shortcode.descendants.forEach(function(t){t.$element&&e.disableElement(t.$element.get(0))}))}},{key:"find",value:function(t,e){for(var g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,A=[],C=!!this.store.isDragging,o=0;o<this.store.targets.length;o++){var I=this.store.targets[o],r=I.element[0].ownerDocument.defaultView,i=t,a=e,s=void 0,l=void 0,c=void 0,u=void 0,d=void 0;if(I.active&&("center"!==I.name||I.shortcode.isEmpty)&&(!C||I.droppable)&&(C||I.addable)&&(C||r.frameElement))if(r){switch(r.frameElement&&angular.isDefined(this.frameOffsets)&&(i-=this.frameOffsets.left,a-=this.frameOffsets.top),I.name){case"top":d=I.shortcode.index,c=I.offsets.left+I.offsets.width/2,u=I.offsets.top,s=g?c:i,l=u;break;case"right":d=I.shortcode.index+1,c=I.offsets.right,u=I.offsets.top+I.offsets.height/2,s=I.offsets.right,l=g?u:a;break;case"bottom":d=I.shortcode.index+1,c=I.offsets.left+I.offsets.width/2,u=I.offsets.bottom,s=g?c:i,l=u;break;case"left":d=I.shortcode.index,c=I.offsets.left,u=I.offsets.top+I.offsets.height/2,s=c,l=g?u:a;break;case"center":d=0,c=c=I.offsets.left+I.offsets.width/2,u=u=I.offsets.top+I.offsets.height/2}var p={fromSide:Math.sqrt(Math.pow(Math.abs(s-i),2)+Math.pow(Math.abs(l-a),2)),fromCenter:Math.sqrt(Math.pow(Math.abs(c-i),2)+Math.pow(Math.abs(u-a),2))},f=I.shortcode.isEmpty,h=f?0:n,m=this.isInside(I,i,a,h),v=this.isInside(I,i,a),b=f?m:p.fromSide<h;m&&b&&A.push({target:I.target||("center"!==I.name?I.shortcode.parent:I.shortcode),insideLimit:m,insideElement:v,element:I.element,shortcode:I.shortcode,name:I.name,distance:p,index:d})}else this.removeElement(I.element.get(0))}return _.chain(A).sortBy(function(t){return-t.target.ancestors.length}).sortBy(function(t){return t.distance.fromCenter}).value()}},{key:"isInside",value:function(t,e,g){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,A={x:n,y:n},C=Math.min(t.offsets.left-A.x,t.offsets.right+A.x),o=Math.max(t.offsets.left-A.x,t.offsets.right+A.x),I=Math.min(t.offsets.top-A.y,t.offsets.bottom+A.y),r=Math.max(t.offsets.top-A.y,t.offsets.bottom+A.y);return C<=e&&e<=o&&I<=g&&g<=r}},{key:"updateOffsets",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250;this.$timeout.cancel(this.store.__updateTargets),this.store.__updateTargets=this.$timeout(function(){t.frameOffsets=t.$iframe().get(0).getBoundingClientRect();for(var g=0;g<t.store.targets.length;g++){var n=t.store.targets[g];(e||n.active&&n.element[0].ownerDocument.defaultView===window)&&("center"===n.name&&n.shortcode.isEmpty&&n.shortcode.$content&&n.element[0].ownerDocument.defaultView.frameElement?n.offsets=n.shortcode.$content.outerOffset({includeMargins:!0}):n.element?n.offsets=n.element.outerOffset({includeMargins:!0}):t.store.remove(n.shortcode))}delete t.store.__updateTargets},g,!1)}}]),t}();e.default=r},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=["store","$document","$window","$iframe",function t(e,g,n,A){(0,C.default)(this,t),this.arrayPrefix=function(t,e){return t.reduce(function(t,g){return t.push(""+e+g),t},[])},this.isIframe=function(){return!!n.frameElement},this.getGlobalCoordinates=function(t,e,g){if(t.frameElement){var n=t.frameElement.getBoundingClientRect();e+=n.left,g+=n.top}return{x:e,y:g}},this.camelCase=function(t,e){return t=e?t.charAt(0).toUpperCase()+t.slice(1):t,jQuery.camelCase(t.replace(/\_|\:/g,"-",!0))},this.kebabCase=function(t){return t.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,function(t){return t.toLowerCase()})},this.elementFromPoint=function(t,e){var g=n.parent||n,C=g.document,o=A().get(0).contentWindow,I=A().get(0).contentDocument,r=t,i=e,a=A().get(0).getBoundingClientRect(),s=t-a.left,l=e-a.top,c=g.angular.element(C.elementFromPoint(r,i)),u=o.angular.element(I.elementFromPoint(s,l));return u.length?u:c},this.shortcodeFromPoint=function(t,g){return this.elementFromPoint(t,g).shortcode()||e.postContent}}];e.default=o},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=["$angular","$window",function t(e,g){return(0,C.default)(this,t),function(){return e.element((g.parent.document||document).getElementsByTagName("iframe")[0])}}];e.default=o},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(7),C=n(A),o=g(70),I=n(o);C.default.controller("ShortcodeController",I.default)},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=g(12),I=n(o),r=function(){function t(e,g,n,A,o,I,r,i,a,s){var l=this;(0,C.default)(this,t),this.app=e,this.store=g,this.shortcode=n,this.targets=A,this.$scope=I;var c=!!n.data.draggable&&o(n);if(n.data.addableSpots.map(function(t){A.add(t,{shortcode:n})}),r.find("img").attr("draggable","false"),r.on("click",function(t){t.stopPropagation(),t.preventDefault(),g.isDragging||(e.configureShortcode(n),e.apply())}),this.onOptionsChanged(n.options,null,!0),I.$watchCollection(function(){return n.options},function(t,g){t!==g&&(l.store.isSaved=!1,l.app.trigger(s.CHANGED,{shortcode:n,options:t,oldOptions:g}),l.onOptionsChanged(t,g)),e.states.selectedShortcode===n&&l.app("tools").fixPositions()}),angular.isDefined(n.content)){var u=!1;I.$watch(function(){return n.content},function(t,g){t!==g&&(a.cancel(u),u=a(function(){e.trigger("shortcode-content-change",n)},0,!1))})}I.$watch(function(){return e.states.selectedShortcode},function(t){r.toggleClass("uxb-selected",t===n)}),e.states.selectedShortcode&&e.states.selectedShortcode.$id===n.$id&&e.selectShortcode(n),n.$$new&&a(function(){return e.trigger(s.ATTACHED,n)},0,!1),n.$$new=!1,n.$$moved=!1,I.$on("$destroy",function(){A.remove(n),r.off("click"),c&&c.element&&c.destroy()})}return t.$inject=["app","store","shortcode","targets","draggable","$scope","$element","$iframe","$timeout","ShortcodeEvent"],(0,I.default)(t,[{key:"onOptionsChanged",value:function(t,e,g){var n=!1;for(var A in t)if("$"!==A.charAt(0)){var C=this.shortcode.data.options.named[A],o=e?e[A]:"",I=null===t[A]&&o===C.default;if(g||!I&&t[A]!==o)if(C.onChange){var r=C.apply(this.shortcode.$element,t[A],o);n=n||!r}else n=!0}!this.shortcode.$noRecompile&&!this.shortcode.data.template&&n&&e&&e!==t&&this.$scope.$$recompile()}}]),t}();e.default=r},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function A(t){var e=g(72);angular.forEach(e.keys(),function(g){t.put(g.replace("./",""),e(g))})}A.$inject=["$templateCache"];var C=g(7),o=n(C);o.default.run(A)},function(t,e,g){function n(t){return g(A(t))}function A(t){return C[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var C={"./components/add-shortcode/add-shortcode.html":73,"./components/app-actions/app-actions.html":74,"./components/app-sidebar/app-sidebar.html":75,"./components/app-tools/app-move-tool/app-move-tool.template.html":76,"./components/app-tools/app-resize-tool/app-resize-tool.template.html":77,"./components/app-tools/app-tools.html":78,"./components/context-menu/context-menu.template.html":79,"./components/shortcode-hierarchy-list-item/shortcode-hierarchy-list-item.html":80,"./components/ux-option/types/checkbox.html":81,"./components/ux-option/types/col-slider.html":82,"./components/ux-option/types/colorpicker.html":83,"./components/ux-option/types/gallery.html":84,"./components/ux-option/types/group.html":85,"./components/ux-option/types/image.html":86,"./components/ux-option/types/margins.html":87,"./components/ux-option/types/radio-buttons.html":88,"./components/ux-option/types/radio-images.html":89,"./components/ux-option/types/scrubfield.html":90,"./components/ux-option/types/select.html":91,"./components/ux-option/types/slider.html":92,"./components/ux-option/types/text-editor.html":93,"./components/ux-option/types/textarea.html":94,"./components/ux-option/types/textfield.html":95,"./components/ux-option/types/title.html":96,"./components/ux-option/types/urlfield.html":97,"./routes/home/home.html":98,"./routes/settings/settings.html":99,"./routes/shortcode/shortcode.html":100,"./shortcodes/_loading.html":101};n.keys=function(){return Object.keys(C)},n.resolve=A,t.exports=n,n.id=72},function(t,e){t.exports='<div class="add-shortcode-selector">\n  <div class="add-shortcode-header">\n    <h2 class="title">Add Content</h2>\n    <nav class="add-shortcode-types">\n      <button type="button"\n        ng-click="$ctrl.showType(\'shortcodes\')"\n        ng-class="{ active: $ctrl.type === \'shortcodes\' }">\n        Elements\n      </button>\n      <button type="button"\n        ng-if="$ctrl.shortcode.isRoot"\n        ng-click="$ctrl.showType(\'import\')"\n        ng-class="{ active: $ctrl.type === \'import\' }">\n        Import\n      </button>\n    </nav>\n  </div>\n\n  <div class="add-shortcode-items" ng-if="$ctrl.type === \'shortcodes\'">\n    \n    <div class="flatsome-studio-button" ng-if="$ctrl.flatsomeStudioIsActive">\n      <button type="button" class="wp-style alt button-large button-block"\n        ng-click="$ctrl.showFlatsomeStudio()">\n        <span class="dashicons dashicons-screenoptions"></span> Flatsome Studio\n      </button>\n      <hr />\n    </div>\n\n    <input class="filter-elements" type="text" placeholder="Search&hellip;" ng-model="$ctrl.filter.name">\n\n    <div class="add-shortcode-category"\n      ng-repeat="category in $ctrl.items"\n      ng-show="items.length">\n      <h3>{{:: category.name }}</h3>\n      <ul>\n        <li ng-repeat="item in items = (category.items | filter: $ctrl.filter)">\n          <button type="button" ng-click="$ctrl.add(item, 0)">\n            <img ng-if="item.thumbnail" ng-src="{{:: item.thumbnail }}" alt="{{:: item.name }}"/>\n            <span class="title">{{:: item.name }}</span>\n          </button>\n        </li>\n      </ul>\n    </div>\n  </div>\n</div>\n\n<template-importer ng-if="$ctrl.type === \'import\'"></template-importer>\n\n<div class="add-shortcode-presets">\n  <h3>Presets</h3>\n  <ul>\n    <li ng-class="{ active : $ctrl.currentPreset === $index }"\n      ng-repeat="preset in $ctrl.presets track by preset.name">\n      <button type="button"\n        title="{{:: preset.name }}"\n        ng-class="{ \'with-thumbnail\' : !!preset.thumbnail }"\n        ng-click="$ctrl.usePreset(preset.content); $ctrl.currentPreset = $index">\n        <img ng-if="preset.thumbnail" ng-src="{{:: preset.thumbnail }}" alt="{{:: preset.name }}">\n        <span class="title">{{:: preset.name }}</span>\n      </button>\n    </li>\n  </ul>\n  <button\n    type="button"\n    class="wp-style alt button-large button-block"\n    ng-click="$ctrl.stack.close()">\n    Apply\n  </button>\n</div>\n'},function(t,e){t.exports='<button type="button"\n    class="blank has-tooltip"\n    title="{{:: breakpoint.title }}"\n    ng-click="$ctrl.setBreakpoint($index)"\n    ng-class="{ \'active\' : $ctrl.isActiveBreakpont($index) }"\n    ng-repeat="(name, breakpoint) in $ctrl.breakpoints.all track by breakpoint.width">\n    <span class="{{:: breakpoint.icon }}"></span>\n    <div class="uxb-tooltip">{{:: breakpoint.title }}</div>\n    <div class="has-breakpoint-values" ng-if="$ctrl.hasBreakpointValues($index)"></div>\n</button>\n\n<hr/>\n\n<button type="button"\n    class="blank has-tooltip"\n    title="{{:: action.tooltip }}"\n    ng-click="$ctrl.doAction(action)"\n    ng-repeat="action in $ctrl.actions">\n    <span class="{{:: action.icon }}"></span>\n    <div class="uxb-tooltip">{{:: action.tooltip }}</div>\n</button>\n\n\n'},function(t,e){t.exports='<app-sidebar-main class="animate-{{ $ctrl.routeAnimation }}">\n\n  <div class="title-row sidebar-top">\n  \t<div class="title-row-icon">\n\t  \t<button type="button"\n        title="Exit Builder"\n        class="blank" ng-click="$ctrl.app.exit()"\n        ng-disabled="$ctrl.permissions.exit === false">\n\t   \t \t<span class="dashicons dashicons-no-alt"></span>\n\t\t  </button>\n  \t</div>\n  \t<div class="title-row-title">\n      {{ $ctrl.store.post.attributes.values.post_title }}\n    </div>\n  \t<div class="title-row-actions">\n  \t\t<button type="button" class="blank" ng-click="$ctrl.app.goto(\'/settings\')">\n\t      <span class="dashicons dashicons-admin-generic"></span>\n\t    </button>\n  \t</div>\n  </div><!-- Sidbar top -->\n\n  <div ui-view></div>\n\n  <div class="app-sidebar-footer">\n    <button type="button" class="blank app-sidebar-toggle" ng-click="$ctrl.toggle()">\n      <span class="dashicons dashicons-arrow-left-alt2"\n        ng-if="$ctrl.store.showSidebar === true"\n      ></span>\n      <span class="dashicons dashicons-arrow-right-alt2"\n        ng-if="$ctrl.store.showSidebar === false"\n      ></span>\n    </button>\n  </div> \n\n</app-sidebar-main>\n'},function(t,e){t.exports='<div class="uxb-move">\n  <div class="uxb-move-handle"\n    ng-if="$ctrl.shortcode"\n    ng-class="$ctrl.classNames($ctrl.shortcode)"\n    draggable-shortcode="$ctrl.shortcode">\n    <span class="uxb-move-icon dashicons dashicons-move"></span>\n  </div>\n</div>\n'},function(t,e){t.exports='<div class="uxb-resize uxb-resize-top"></div>\n<div class="uxb-resize uxb-resize-right"></div>\n<div class="uxb-resize uxb-resize-bottom"></div>\n<div class="uxb-resize uxb-resize-left"></div>\n'},function(t,e){t.exports='<app-outline-tool class="auto-size" shortcode="$ctrl.outlined"></app-outline-tool>\n<app-resize-tool class="auto-size" shortcode="$ctrl.outlined"></app-resize-tool>\n<app-move-tool class="auto-size" shortcode="$ctrl.outlined"></app-move-tool>\n<app-select-tool class="auto-size" shortcode="$ctrl.selected"></app-select-tool>\n<add-buttons></add-buttons>\n\n<div class="tools-addable">\n  <div class="line"></div>\n  <add-button\n    class="button"\n    index="$ctrl.index"\n    shortcode="$ctrl.addable">\n  </add-button>\n</div>\n'},function(t,e){t.exports='<div class="context-menu-menu" ng-click="$ctrl.hide()">\n  <shortcode-actions shortcode="$ctrl.shortcode"></shortcode-actions>\n</div>\n'},function(t,e){t.exports='<div class="hierarchy-title" ng-class="{ \'active\' : $ctrl.isActive(), [\'open\'] : $ctrl.shortcode.states.open, [\'visibility-\'+$ctrl.shortcode.options.visibility] : $ctrl.shortcode.options.visibility }">\n\n    <button type="button" class="hierarchy-toggle"\n        ng-if="$ctrl.shortcode.children"\n        ng-click="$ctrl.toggleChildren()">\n    </button>\n\n    <div class="hierarchy-name"\n        ng-click="$ctrl.selectShortcode()"\n        ng-mouseover="$ctrl.outlineShortcode()"\n        ng-dblclick="$ctrl.configureShortcode()">\n\n        {{:: $ctrl.shortcode.data.name }}\n\n        <span class="hierarchy-info" ng-bind="$ctrl.getShortcodeInfo()"></span>\n    </div>\n\n    <div class="hierarchy-tools">\n      <button type="button blank" ng-click="$ctrl.showContextMenu($event)">\n        <span class="dashicons dashicons-admin-generic"></span>\n      </button>\n    </div>\n</div>\n\n<shortcode-hierarchy-list\n  ng-if="$ctrl.shortcode.states.open"\n  ng-class="{ \'open\': $ctrl.shortcode.states.open }"\n  shortcode="$ctrl.shortcode">\n</shortcode-hierarchy-list>\n'},function(t,e){t.exports='<label>\n  <input type="checkbox"\n    ng-model="$ctrl.model"\n    ng-true-value="\'true\'"\n    ng-false-value="\'0\'">\n  <span></span>\n</label>\n'},function(t,e){t.exports='<div class="col-slider-wrap col-slider-cols-{{ $ctrl.model }}">\n\n\t<table class="col-slider-table">\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<td ng-repeat="n in _.range($ctrl.option.min, $ctrl.option.max + 1) track by $index">{{:: n }}</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n\n\t<input type="range"\n\t\tclass="col-slider-input"\n    min="{{:: $ctrl.option.min }}"\n    max="{{:: $ctrl.option.max }}"\n    ng-model="$ctrl.model">\n</div>\n'},function(t,e){t.exports='<ux-option-colorpicker\n  option="$ctrl.option"\n  model="$ctrl.model"\n></ux-option-colorpicker>\n\n<div ng-if="$ctrl.option.helpers" class="option-helpers option-helpers-colors">\n  <a href="javascript:"\n    title="Remove"\n    ng-click="$ctrl.model = null">\n    <span class="dashicons dashicons-no-alt"></span>\n  </a>\n  <a href="javascript:"\n    title="{{:: value.title }}"\n    style="background-color: {{:: value.value }}"\n    ng-repeat="(key, value) in $ctrl.option.helpers"\n    ng-click="$ctrl.model = value.value">\n  </a>\n</div>\n'},function(t,e){t.exports='<ux-option-gallery\n  option="$ctrl.option"\n  model="$ctrl.model"\n></ux-option-gallery>\n'},function(t,e){t.exports='<ux-option-group\n  option="$ctrl.option"\n  shortcode="$ctrl.shortcode"\n  responsive="$ctrl.$optionsCtrl.responsive"\n  model="$ctrl.$optionsCtrl.model"\n></ux-option-group>\n'},function(t,e){t.exports='<ux-option-image\n  option="$ctrl.option"\n  model="$ctrl.model"\n></ux-option-image>\n'},function(t,e){t.exports='<ux-option-margins\n  option="$ctrl.option"\n  model="$ctrl.model"\n></ux-option-margins>\n'},function(t,e){t.exports='<div class="option-button-group">\n\t<label ng-repeat="(value, data) in $ctrl.option.options"\n\t    ng-class="{ \'active\' : $ctrl.model === value }">\n\t    <input type="radio" value="{{:: value }}" ng-model="$ctrl.model"/>\n\t    <button type="button blank" title="{{:: data.title }}">\n\t    \t<span ng-if="data.icon" class="dashicons {{:: data.icon }}"></span>\n\t    \t<span ng-if="!data.icon"> {{:: data.title }}</span>\n\t    </button>\n\t</label>\n</div>\n'},function(t,e){t.exports='<label ng-repeat="(key, value) in $ctrl.option.options"\n    ng-class="{ \'active\' : $ctrl.model === key }">\n    <input type="radio" value="{{:: key }}" ng-model="$ctrl.model">\n    <img src="{{:: value.image }}" alt="{{:: value.title }}" title="{{:: value.title }}">\n</label>\n'},function(t,e){t.exports='<input type="text"\n  class="scrubfield"\n\tscrubfield="$ctrl.option"\n\tng-model="$ctrl.model"\n\tplaceholder="{{:: $ctrl.option.default }}"\n\tng-model-options="{\n        \'updateOn\': \'blur default\',\n        \'debounce\': {\n            \'blur\' : 0,\n            \'default\': 10\n        }\n    }">\n<div ng-if="$ctrl.option.helpers" class="option-helpers">\n\t<a \tng-repeat="(key, value) in $ctrl.option.helpers" href="javascript:"\n\t\tng-click="$ctrl.model = value.value">\n\t\t{{:: value.title }}\n\t</a>\n</div>\n'},function(t,e){t.exports='<ux-option-select\n  option="$ctrl.option"\n  value="$ctrl.model"\n></ux-option-select>\n'},function(t,e){t.exports='<div class="slider-wrap">\n\n  <input type="range"\n    ng-attr-min="{{:: $ctrl.option.min }}"\n    ng-attr-max="{{:: $ctrl.option.max }}"\n    ng-attr-step="{{:: $ctrl.option.step }}"\n    ng-attr-value="{{:: $ctrl.model }}"\n    ng-model="$ctrl.model">\n\n  <input type="number" to-number\n    ng-attr-min="{{:: $ctrl.option.min }}"\n    ng-attr-max="{{:: $ctrl.option.max }}"\n    ng-model="$ctrl.model">\n\n  <span class="slider-unit">{{:: $ctrl.option.unit }}</span>\n\n</div>\n'},function(t,e){t.exports='<div class="option-text-editor">\n  <button type="button" class="open-editor wp-style alt"\n    ng-click="$ctrl.app(\'stack\').openTextEditor($ctrl.app.states.selectedShortcode)">\n    Open Text Editor\n  </button>\n  <textarea class="raw-text"\n    ng-model="$ctrl.app.states.selectedShortcode.content">\n  </textarea>\n</div>\n'},function(t,e){t.exports='  <textarea\n    placeholder="{{::$ctrl.option.placeholder }}"\n    ng-model="$ctrl.model"\n    ng-model-options="{\n        updateOn: \'blur default\',\n        debounce: {\n            blur : 0,\n            default: 10\n        }\n    }"></textarea>\n'},function(t,e){t.exports='  <input type="text"\n    placeholder="{{::$ctrl.option.placeholder }}"\n    ng-model="$ctrl.model"\n    ng-model-options="{\n        updateOn: \'blur default\',\n        debounce: {\n            blur : 0,\n            default: 10\n        }\n    }">\n'},function(t,e){t.exports="{{:: $ctrl.option.heading }}\n"},function(t,e){t.exports='<ux-option-urlfield option="$ctrl.option"></ux-option-urlfield>\n'},function(t,e){t.exports='<app-sidebar-view class="home-view">\n\n  <view-header>\n\n  </view-header>\n\n  <view-body>\n    <shortcode-hierarchy-list shortcode="$ctrl.store.postContent"></shortcode-hierarchy-list>\n  </view-body>\n\n  <view-footer>\n    <button id="app-draft-button" type="button"\n      class="wp-style button-large button-block"\n      ng-if="$ctrl.store.post.status === \'draft\' || $ctrl.store.post.status === \'auto-draft\'"\n      ng-class="{ \'loading\': $ctrl.store.isSaving === \'draft\' }"\n      ng-disabled="$ctrl.permissions.save === false"\n      ng-click="$ctrl.save(\'draft\')">\n      Save Draft\n    </button>\n    <button id="app-save-button" type="button"\n      class="wp-style alt button-large button-block"\n      ng-class="{ \'loading\': $ctrl.store.isSaving && $ctrl.store.isSaving !== \'draft\' }"\n      ng-disabled="$ctrl.permissions.save === false"\n      ng-click="$ctrl.save()">\n      {{ $ctrl.saveButtonText }}\n    </button>\n    <button id="app-save-button" type="button"\n      class="wp-style button-large button-block button-exit animate-fade-in-right"\n      ng-if="$ctrl.store.isSaved"\n      ng-click="$ctrl.app.exit()">\n      &times;\n    </button>\n  </view-footer>\n\n</app-sidebar-view>\n'},function(t,e){t.exports='<app-sidebar-view class="settings-view">\n\n  <view-header>\n    <div class="title-row">\n      <div class="title-row-icon">\n          <button class="button-reset view-header-title" type="button" ng-click="$ctrl.   exit()">\n               <span class="dashicons dashicons-arrow-left-alt2"></span>\n          </button>\n      </div>\n      <div class="title-row-title"> Post settings </div>\n    </div>\n  </view-header>\n\n  <view-body>\n    <ux-options\n      options="$ctrl.post.attributes.options.tree"\n      model="$ctrl.post.attributes.values">\n    </ux-options>\n    <ux-options\n      options="$ctrl.post.meta.options.tree"\n      model="$ctrl.post.meta.values">\n    </ux-options>\n    <div class="box">\n      <h3 class="box-title">Clear post content</h3>\n      <div class="box-content">\n        <button class="wp-style danger button-block" ng-click="$ctrl.clearContent()">Clear&hellip;</button>\n      </div>\n    </div>\n  </view-body>\n\n  <view-footer>\n    <button type="button" class="wp-style blank" ng-click="$ctrl.discard()">\n      <span class="dashicons dashicons-no-alt"></span>Discard\n    </button>\n    <button type="button" class="wp-style" ng-click="$ctrl.exit()">\n      <span class="dashicons dashicons-yes"></span>Apply\n    </button>\n  </view-footer>\n\n</app-sidebar-view>\n'},function(t,e){t.exports='<app-sidebar-view class="shortcode-view">\n\n  <view-header>\n    <div class="title-row">\n      <div class="title-row-icon">\n         <button class="button-reset view-header-title" type="button" ng-click="$ctrl.exit(\'/\')">\n             <span class="dashicons dashicons-arrow-left-alt2"></span>\n         </button>\n      </div>\n      <div class="title-row-title"> {{ $ctrl.shortcode.data.name }} </div>\n      <div class="title-row-actions"></div>\n    </div>\n  </view-header>\n\n  <view-body>\n    <ux-options\n      options="$ctrl.options"\n      shortcode="$ctrl.shortcode"\n      responsive="$ctrl.responsiveValues"\n      model="$ctrl.shortcode.options">\n    </ux-options>\n  </view-body>\n\n  <view-footer>\n    <button type="button" class="wp-style outline" ng-click="$ctrl.discard()">\n      Discard\n    </button>\n    <button type="button" class="wp-style" ng-click="$ctrl.exit()">\n      Apply\n    </button>\n  </view-footer>\n\n</app-sidebar-view>\n'},function(t,e){t.exports='<div class="uxb-template-loading">Loading&hellip;</div>\n'},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(11),C=n(A),o=g(12),I=n(o),r=g(7),i=n(r),a=function(){function t(e,g,n){(0,C.default)(this,t),this.app=e,this.$scope=g,n.toggleClass("with-label",!!this.label)}return t.$inject=["app","$scope","$element"],(0,I.default)(t,[{key:"addShortcode",value:function(){this.app.outlineShortcode(null),this.app.selectShortcode(null),this.app.configureShortcode(null),this.app("stack").open('\n      <add-shortcode\n        shortcode="$ctrl.shortcode"\n        index="$ctrl.index"\n      ></add-shortcode>\n    ',this.$scope)}}]),t}();i.default.component("addButton",{controller:a,bindings:{shortcode:"<",label:"@",index:"<"},template:'\n    <button type="button" ng-click="$ctrl.addShortcode()">\n      <div class="wrapper">\n        <span class="icon">+</span>\n        <span class="label">{{:: $ctrl.label }}</span>\n      </div>\n    </button>\n  '})},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(7),C=n(A),o=g(104),I=n(o),r=g(77),i=n(r);C.default.component("appResizeTool",{controller:I.default,template:i.default,bindings:{shortcode:"<"}})},function(t,e,g){(function(t){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=g(12),I=n(o),r=g(105),i={top:{},right:{},bottom:{},left:{}},a=function(){function e(g,n,A,o,I,a){var s=this;(0,C.default)(this,e),this.app=g,this.store=n,this.utils=A,this.$timeout=o,this.$element=a,this.shortcode=null;for(var l in i)i[l].$element=a.find(".uxb-resize-"+l),i[l].draggable=new t.HammerJS(i[l].$element.get(0),{edge:l}),i[l].draggable.get("pan").set({direction:(0,r.getPanDirection)(l)}),i[l].draggable.on("hammer.input",this.onHammerInput.bind(this)),i[l].draggable.on("panstart",this.onPanStart.bind(this)),i[l].draggable.on("pan",this.onPanMove.bind(this)),i[l].draggable.on("panend",this.onPanEnd.bind(this));I.$watch(function(){return g.states.outlinedShortcode},function(t){if(!s.app.states.resizingShortcode){if(!t)return a.removeClass("uxb-is-active");var e=(0,r.getShortcodeWithResize)(t),g=!!e&&e.data.resize!==!1;for(var n in i){var A=g&&angular.isArray(e.data.resize)&&e.data.resize.indexOf(n)>-1,C=g&&e.data.resize===!0;i[n].$element.toggleClass("uxb-is-active",A||C)}a.toggleClass("uxb-is-active",g),a.cover(g?e.$element:null),s.shortcode=e}}),I.$on(Event.CHANGE,function(){s.shortcode&&a.cover(s.shortcode.$element)})}return e.$inject=["app","store","utils","$timeout","$scope","$element"],(0,I.default)(e,[{key:"onHammerInput",value:function(t){t.srcEvent.stopPropagation(),t.srcEvent.stopImmediatePropagation(),this.app.states.resizingShortcode=this.shortcode,this.store.isDragging=!0}},{key:"onPanStart",value:function(e){e.edge=(0,r.getEdgeName)(i,e.target),angular.element("body").addClass("uxb-is-resizing-"+e.edge),(0,r.runResizeHandler)(this.app.states.resizingShortcode,"onResize"+t.capitalize(e.edge)+"Start",e),(0,r.runResizeHandler)(this.app.states.resizingShortcode,"onResizeStart",e),this.app.outlineShortcode(null),this.app("tools").hideAddableSpot(),this.app("tools").apply(),this.app.states.resizingShortcode.$scope.$digest()}},{key:"onPanMove",value:function(e){e.edge=(0,r.getEdgeName)(i,e.target),(0,r.runResizeHandler)(this.app.states.resizingShortcode,"onResize"+t.capitalize(e.edge)+"Move",e),(0,r.runResizeHandler)(this.app.states.resizingShortcode,"onResizeMove",e),this.app("tools").apply(),this.app.states.resizingShortcode.$scope.$digest(),this.$element.cover(this.app.states.resizingShortcode.$element)}},{key:"onPanEnd",value:function(e){var g=this;e.edge=(0,r.getEdgeName)(i,e.target),angular.element("body").removeClass("uxb-is-resizing-"+e.edge),(0,r.runResizeHandler)(this.app.states.resizingShortcode,"onResize"+t.capitalize(e.edge)+"End",e),(0,r.runResizeHandler)(this.app.states.resizingShortcode,"onResizeEnd",e),this.$timeout(function(){g.app.states.resizingShortcode=null,g.store.isDragging=!1},0)}}]),e}();e.default=a}).call(e,function(){return this}())},function(t,e){(function(t){"use strict";function g(t){for(var e=t.ancestorsAndSelf,g=0;g<e.length;g++)if(e[g].data.resize)return e[g];return null}function n(t,e,g){angular.isDefined(t.$scope.$customCtrl)&&angular.isFunction(t.$scope.$customCtrl[e])&&t.$scope.$customCtrl[e](g)}function A(e){var g=t.HammerJS.DIRECTION_ALL;switch(e){case"top":g=t.HammerJS.DIRECTION_VERTICAL;break;case"right":g=t.HammerJS.DIRECTION_HORIZONTAL;break;case"bottom":g=t.HammerJS.DIRECTION_VERTICAL;break;case"left":g=t.HammerJS.DIRECTION_HORIZONTAL}return g}function C(t,e){for(var g in t)if(t[g].$element.get(0)===e)return g;return null}Object.defineProperty(e,"__esModule",{value:!0}),e.getShortcodeWithResize=g,e.runResizeHandler=n,e.getPanDirection=A,e.getEdgeName=C}).call(e,function(){return this}())},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(7),C=n(A),o=g(107),I=n(o),r=g(76),i=n(r);C.default.component("appMoveTool",{controller:I.default,template:i.default,bindings:{shortcode:"<"}})},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=g(12),I=n(o),r=g(108),i=function(){function t(e,g,n,A,o,I){var i=this;(0,C.default)(this,t),this.app=e,this.store=g,this.utils=n,this.$timeout=A,this.$element=I,this.shortcode=null,o.$watch(function(){return e.states.outlinedShortcode},function(t){if(!t)return I.removeClass("uxb-is-active");var e=(0,r.getShortcodeWithMove)(t),g=!!e&&e.data.move!==!1;I.toggleClass("uxb-is-active",g),I.cover(g?e.$element:null),i.shortcode=e}),o.$on(Event.CHANGE,function(){i.shortcode&&I.cover(i.shortcode.$element)})}return t.$inject=["app","store","utils","$timeout","$scope","$element"],(0,I.default)(t,[{key:"classNames",value:function(t){return this.utils.arrayPrefix(angular.isArray(t.data.move)?t.data.move:[t.data.move],"uxb-is-")}}]),t}();e.default=i},function(t,e){"use strict";function g(t){for(var e=t.ancestorsAndSelf,g=0;g<e.length;g++)if(e[g].data.move)return e[g];return null}Object.defineProperty(e,"__esModule",{value:!0}),e.getShortcodeWithMove=g},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(11),C=n(A),o=g(12),I=n(o),r=g(7),i=n(r),a=function(){function t(e,g,n,A){var o=this;(0,C.default)(this,t),this.buttons=[],this.shortcode=null,g.$watch(function(){return e.states.outlinedShortcode},function(t){return t?(o.shortcode=o.getShortcodeWithButtons(t),n.toggleClass("active",!!o.shortcode),void n.cover(o.shortcode?o.shortcode.$element:null)):n.removeClass("active")}),g.$on(A.CHANGE,function(){o.shortcode&&n.cover(o.shortcode.$element)})}return t.$inject=["app","$scope","$element","Event"],(0,I.default)(t,[{key:"getShortcodeWithButtons",value:function(t){for(var e=t.ancestorsAndSelf,g=0;g<e.length;g++)if(e[g].data.addButtons)return e[g];
return null}},{key:"getIndex",value:function(t){var e=0;return"right-center"!==t&&"bottom-right"!==t&&"bottom-center"!==t&&"bottom-left"!==t||(e=this.shortcode.children.length),e}}]),t}();i.default.component("addButtons",{controller:a,template:'\n    <div class="add-buttons">\n      <add-button\n        class="{{:: button }}"\n        shortcode="$ctrl.shortcode"\n        index="$ctrl.getIndex(button)"\n        data-tooltip="{{:: $ctrl.shortcode.data.message }}"\n        ng-repeat="button in $ctrl.shortcode.data.addButtons">\n      </add-button>\n    </div>\n  '})},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(7),C=n(A),o=g(111),I=n(o);C.default.component("appTools",{controller:I.default,template:g(78)})},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=["app","store","$scope","$element","$window","$compile","$angular","$timeout","$iframe","utils","Event","AppEvent","DragEvent","IframeEvent","ShortcodeEvent",function t(e,g,n,A,o,I,r,i,a,s,l,c,u,d,p){(0,C.default)(this,t);var f=this,h={},m=r.element("app").find(".tools-addable"),v=A.find(".tools-addable");f.target=null,f.$targetElement=null,f.addable=null,e.register("tools",f),_.each(g.tools,function(t,e){var g=snakeCase(e,"-"),C="<"+g+' shortcode="shortcode"></'+g+">";I(C)(n,function(e,g){i(function(){t.$element=e,t.$ctrl=g.$$childHead.$ctrl,A.append(e)},0,!1)})}),a().on(d.CHANGED,function(){o.requestAnimationFrame(f.fixPositions)}),a().on(d.RESIZE,function(){o.requestAnimationFrame(f.fixPositions)}),a().on(d.SCROLL,function(){}),n.$on(p.CHANGED,function(){return f.fixPositions()}),n.$on(p.DELETED,function(){return f.hide()}),n.$on(d.RELOAD,function(){return f.hide()}),n.$on(u.MOVE,function(t,g){g.defaultPrevented?(e.outlineShortcode(null),f.hideAddableSpot()):e.outlineShortcode(g.isWithin?g.target.parent():null)}),n.$on(u.END,function(){f.hideAddableSpot(),f.fixPositions()}),f.apply=function(){n.$digest()};var b=!1;f.fixPositions=function(){i.cancel(b),b=i(function(){for(var t in h)h[t].$tool.hasClass("active")&&h[t].$tool.cover(h[t].$element);f.$targetElement&&f.getAddableElement().cover(f.$targetElement),n.$broadcast(l.CHANGE)},0)},f.addTool=function(t,e,g){h.hasOwnProperty(t)&&f.removeTool(t),h[t]={},h[t].$element=g,h[t].$scope=n.$new(),h[t].$tool=I(e)(h[t].$scope),A.append(h[t].$tool)},f.getTool=function(t){var e=h[t],g={};return g.element=function(){return e.$element},g.scope=function(){return e.$scope.$$childHead},g.tool=function(){return e.$tool},g},f.showTool=function(t){h[t].$tool.addClass("active"),h[t].$tool.cover(h[t].$element)},f.hideTool=function(t){h[t].$tool.removeClass("active")},f.removeTool=function(t){h[t].$element=null,h[t].$scope.$destroy(),h[t].$tool.remove(),h[t].$tool=null,delete h[t]},f.hide=function(){f.hideAddableSpot()},f.getAddableElement=function(){return f.$targetElement&&f.$targetElement.get(0).ownerDocument.defaultView.frameElement?(m.removeClass("active"),v):(v.removeClass("active"),m)},f.showAddableSpot=function(t){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!t||e.states.freezed?f.hideAddableSpot():(f.toggleAddableButton(g),f.target=t,f.addable=t.target,f.index=t.index,f.$targetElement=f.target.shortcode.isEmpty&&f.target.element[0].ownerDocument.defaultView.frameElement&&"center"===f.target.name?f.target.shortcode.$content:f.target.element,f.getAddableElement().toggleClass("is-empty","center"===t.name),f.getAddableElement().toggleClass("is-left","left"===t.name),f.getAddableElement().toggleClass("is-right","right"===t.name),f.getAddableElement().toggleClass("is-top","top"===t.name),f.getAddableElement().toggleClass("is-bottom","bottom"===t.name),f.getAddableElement().toggleClass("is-deputy",f.target.element!==f.target.shortcode.$element),void f.getAddableElement().cover(f.$targetElement,{includeMargins:!0}).addClass("active"))},f.toggleAddableButton=function(t){f.getAddableElement().toggleClass("no-button",t===!1)},f.hideAddableSpot=function(){return f.getAddableElement().removeClass("active"),f.$targetElement=null,f.target=null,!1},f.addShortcode=function(){e("addables").open(f.addable,f.index),f.target=null,f.addable=null,f.index=null}}];e.default=o},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(11),C=n(A),o=g(7),I=n(o),r=["app","$scope","$element","Event",function t(e,g,n,A){(0,C.default)(this,t);var o=n.find(".name");g.$watch(function(){return e.states.outlinedShortcode},function(t){return t?(o.text(t.data.name),n.toggleClass("active",t.$element.isVisible()),void n.cover(t.$element)):n.removeClass("active")}),g.$on(A.CHANGE,function(){e.states.outlinedShortcode&&n.cover(e.states.outlinedShortcode.$element)})}];r.$inject=["app","$scope","$element","Event"],I.default.component("appOutlineTool",{controller:r,template:'\n    <div class="wrapper">\n      <h3 class="name"></h3>\n    </div>\n  '})},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(11),C=n(A),o=g(12),I=n(o),r=g(7),i=n(r),a=function(){function t(e,g,n,A,o){var I=this;(0,C.default)(this,t),this.app=n,this.shortcode=null,e.$watch(function(){return n.states.selectedShortcode},function(t){return t?(I.shortcode=n.states.selectedShortcode,I.ancestors=n.states.selectedShortcode.ancestors.reverse(),I.ancestors.splice(0,1),void g.cover(t.$element).addClass("active")):g.removeClass("active")}),e.$on(o.CHANGE,function(){n.states.selectedShortcode&&g.cover(n.states.selectedShortcode.$element)})}return t.$inject=["$scope","$element","app","store","Event"],(0,I.default)(t,[{key:"configureShortcode",value:function(t){this.app.configureShortcode(t)}},{key:"outlineShortcode",value:function(t){this.app.outlineShortcode(t)}},{key:"hideOutline",value:function(){this.app.outlineShortcode(null)}},{key:"showContextMenu",value:function(t){this.app("contextMenu").open(this.shortcode,t.currentTarget)}}]),t}();i.default.component("appSelectTool",{controller:a,bindings:{shortcode:"<"},template:'\n    <div class="wrapper">\n      <div ng-if="$ctrl.ancestors.length > 0" class="ancestors">\n        <span class="dashicons dashicons-arrow-up-alt2"></span>\n        <ul>\n          <li ng-repeat="ancestor in $ctrl.ancestors">\n            <button type="button" class="name"\n              draggable-shortcode="ancestor"\n              ng-click="$ctrl.configureShortcode(ancestor); $event.stopPropagation();"\n              ng-mouseover="$ctrl.outlineShortcode(ancestor)"\n              ng-mouseout="$ctrl.hideOutline()">\n              {{:: ancestor.data.name }}\n            </button>\n          </li>\n        </ul>\n      </div>\n      <h3 class="name" draggable-shortcode="$ctrl.shortcode">\n        {{ $ctrl.shortcode.data.name }}\n      </h3>\n      <button class="options" ng-click="$ctrl.showContextMenu($event); $event.stopPropagation();">\n        <span class="dashicons dashicons-admin-generic"></span>\n      </button>\n    </div>\n  '})},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(7),C=n(A),o=g(115),I=n(o);C.default.component("postWrapper",{controller:I.default,template:"\n    <post-content></post-content>\n  "})},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function A(t){var e=t.offset(),g=t.height(),n=e.top+g;return n<C()||e.top>C()+window.innerHeight}function C(){return document.documentElement.scrollTop||document.body.scrollTop}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;angular.element("html, body").scrollToElement(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var I=g(11),r=n(I),i=["app","store","targets","contextmenu","utils","Shortcode","$scope","$element","$iframe","$compile","$window","$timeout","$log","AppEvent","Event","MediaEvent","IframeEvent",function t(e,g,n,C,I,i,a,s,l,c,u,d,p,f,h,m,v){(0,r.default)(this,t),C.attach(document);var b=null,$=performance.now();g.postContent=i.create(g.post.content),p.debug("Element instances created in "+(performance.now()-$)+"ms"),angular.element("body").on("click",function(t){t.preventDefault(),g.isDragging||g.isScrolling||(e.configureShortcode(null),e.apply())}),angular.element("body").on("mousemove",function(t){g.isDragging||g.isScrolling||g.isReloading||u.requestAnimationFrame(function(){var g=I.getGlobalCoordinates(t.view,t.clientX,t.clientY),A=n.find(g.x,g.y),C=I.shortcodeFromPoint(g.x,g.y);e("tools").showAddableSpot(A.length?A[0]:null),C.isRoot||e.outlineShortcode(C),e("tools").apply()})}),angular.element("body").on("mouseleave",function(t){g.isDragging||g.isScrolling||g.isReloading||u.requestAnimationFrame(function(){e("tools").hideAddableSpot(),e.outlineShortcode(null),e("tools").apply()})}),angular.element(u).on("scroll",function(){l().trigger(v.SCROLL),g.isScrolling=!0,d.cancel(b),b=d(function(){return g.isScrolling=!1},200,!1)}),a.$on(m.CHANGED,function(){e.states.selectedShortcode?d(function(){return o(e.states.selectedShortcode.$element)},0,!1):A(s)&&d(function(){return o(s)},0,!1)}),angular.element(u).on(h.RESIZE,function(){l().trigger(v.RESIZE)}),new MutationObserver(function(t){g.initialized&&n.updateOffsets(!0),l().trigger(v.CHANGED,t)}).observe(document.querySelector("post-content"),{attributes:!0,childList:!0,subtree:!0,characterData:!1}),d(function(){A(s)&&o(s,0),g.initialized=!0,g.loading=!1,e.broadcast(f.READY)},0,!0)}];e.default=i},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(117),C=n(A),o=g(11),I=n(o),r=g(12),i=n(r),a=g(7),s=n(a),l=angular.element("body"),c=function(){function t(e,g,n,A,C,o,r,i,a,s,l){var c=this;(0,I.default)(this,t),this.app=e,this.store=g,this.utils=A,this.responsiveHelper=a;var u=performance.now();this.store.postContent.$element=o,this.store.postContent.$scope=C,this.store.postContent.data.addableSpots.map(function(t){n.add(t,{shortcode:c.store.postContent,target:c.store.postContent})}),this.onPostOptionsChanged(g.post.attributes.values,{},g.post.attributes.options),C.$watchCollection(function(){return g.post.attributes.values},function(t,e){c.onPostOptionsChanged(t,e,g.post.attributes.options)}),this.onPostOptionsChanged(g.post.meta.values,{},g.post.meta.options),C.$watchCollection(function(){return g.post.meta.values},function(t,e){c.onPostOptionsChanged(t,e,g.post.meta.options)}),r(function(){i.debug("Elements compiled in "+(performance.now()-u)+"ms")},0,!1)}return t.$inject=["app","store","targets","utils","$scope","$element","$timeout","$log","ResponsiveHelper","IframeEvent","MediaEvent"],(0,i.default)(t,[{key:"onPostOptionsChanged",value:function(t,e,g){for(var n in t)if(t[n]!==e[n]){var A=g.get(n);A.onChange&&A.apply(l,t[n],e[n])}}},{key:"showTemplates",value:function(){return this.store.postContent.isEmpty&&(0,C.default)(this.store.templates).length}}]),t}();s.default.component("postContent",{controller:c,template:'\n    <content content="_root [root]" shortcode="$ctrl.store.postContent"></content>\n    <template-selector ng-if="$ctrl.showTemplates()"></template-selector>\n  '})},function(t,e,g){t.exports={default:g(118),__esModule:!0}},function(t,e,g){g(119),t.exports=g(18).Object.keys},function(t,e,g){var n=g(120),A=g(122);g(136)("keys",function(){return function(t){return A(n(t))}})},function(t,e,g){var n=g(121);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,g){var n=g(123),A=g(135);t.exports=Object.keys||function(t){return n(t,A)}},function(t,e,g){var n=g(31),A=g(124),C=g(127)(!1),o=g(131)("IE_PROTO");t.exports=function(t,e){var g,I=A(t),r=0,i=[];for(g in I)g!=o&&n(I,g)&&i.push(g);for(;e.length>r;)n(I,g=e[r++])&&(~C(i,g)||i.push(g));return i}},function(t,e,g){var n=g(125),A=g(121);t.exports=function(t){return n(A(t))}},function(t,e,g){var n=g(126);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var g={}.toString;t.exports=function(t){return g.call(t).slice(8,-1)}},function(t,e,g){var n=g(124),A=g(128),C=g(130);t.exports=function(t){return function(e,g,o){var I,r=n(e),i=A(r.length),a=C(o,i);if(t&&g!=g){for(;i>a;)if(I=r[a++],I!=I)return!0}else for(;i>a;a++)if((t||a in r)&&r[a]===g)return t||a||0;return!t&&-1}}},function(t,e,g){var n=g(129),A=Math.min;t.exports=function(t){return t>0?A(n(t),9007199254740991):0}},function(t,e){var g=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:g)(t)}},function(t,e,g){var n=g(129),A=Math.max,C=Math.min;t.exports=function(t,e){return t=n(t),t<0?A(t+e,0):C(t,e)}},function(t,e,g){var n=g(132)("keys"),A=g(134);t.exports=function(t){return n[t]||(n[t]=A(t))}},function(t,e,g){var n=g(18),A=g(17),C="__core-js_shared__",o=A[C]||(A[C]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:g(133)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!0},function(t,e){var g=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++g+n).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,g){var n=g(16),A=g(18),C=g(27);t.exports=function(t,e){var g=(A.Object||{})[t]||Object[t],o={};o[t]=e(g),n(n.S+n.F*C(function(){g(1)}),"Object",o)}},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(7),C=n(A);C.default.component("templateSelector",{controller:["app","store","iframe",function(t,e,g){this.store=e,this.setTemplate=function(n){e.loading=!0,jQuery.post(e.ajaxUrl,{action:"ux_builder_to_array",id:n}).done(function(A){var C=A.data,o=A.success;return o?(e.post.meta.values.hasOwnProperty("_wp_page_template")&&(e.post.meta.values._wp_page_template=e.templates[n].template||"default"),g.reload(C.content),void t.apply()):console.error("Failed to compile template "+n)})}}],template:'\n    <h2 class="uxb-templates-title">Insert a template <br/> <small> *Images are not included.</small></h2>\n    <ul class="uxb-templates-list">\n      <li class="uxb-template" ng-repeat="(id, template) in $ctrl.store.templates track by id">\n        <button type="button" class="uxb-template-button" ng-click="$ctrl.setTemplate(id)">\n          <img ng-attr-src="{{:: template.thumbnail }}">\n          <span class="">{{:: template.name }}</span>\n        </button>\n      </li>\n    </ul>\n  '})},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var A=g(7),C=n(A),o=g(139),I=n(o);C.default.component("content",{controller:I.default,transclude:"element",bindings:{shortcode:"<"}})},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var A=g(11),C=n(A),o=["app","store","utils","dependencies","$scope","$element","$compile","$q","$transclude","$injector","$templateCache","$animate","$timeout","$controller","$log","ShortcodeEvent","ChildEvent",function t(e,g,n,A,o,I,r,i,a,s,l,c,u,d,p,f,h){function m(t,e){var g=[],n=[];_.each(t,function(e,n){e.$element||(g.push(e),e.$scope=o.$new(),y(e),v(e).then(b),c.move(e.$element,null,0===n?I:t[n-1].$element))}),_.each(e,function(e,g){t.indexOf(e)>-1||(e.originalIndex=g,n.push(e))}),e&&e.length===t.length&&_.each(t,function(t,e){c.move(t.$element,null,0===e?I:S.shortcode.children[e-1].$element)}),_.each(n,function(t){return o.$parent.$broadcast(h.REMOVED,t)}),_.each(g,function(t){return o.$parent.$broadcast(h.ADDED,t)}),_.each(n,function(t){c.leave(t.$element),t.$scope.$destroy(),t.$element.data("shortcode",null),t.$element.remove(),t.$element=null,t.$content=null,t.$scope=null}),a(function(e,g){E||0!==t.length?S.shortcode.$content&&(E.$destroy(),c.leave(S.shortcode.$content),S.shortcode.$content.data("shortcode",null),S.shortcode.$content.remove(),S.shortcode.$content=null,E=null):(E=g,e.html('\n                        <div class="uxb-empty-message">\n                            '+S.shortcode.data.message+"\n                        </div>\n                    "),e.data("shortcode",S.shortcode),S.shortcode.$content=e,c.enter(S.shortcode.$content,I.parent(),I))})}function v(t){var n=i.defer(),A=!0,C=t.data.template||l.get(t.data.templateUrl||t.$id);return angular.isDefined(C)?(r(w(t,C))(t.$scope,function(e){e.data("shortcode",t),t.$element=e,n.resolve(t)}),n.promise):("undefined"==typeof t.$element&&(C=w(t,l.get("shortcodes/_loading.html"),!0),t.$element=r(C)(t.$scope),t.$element.data("shortcode",t),A=!1),jQuery.post(g.postUrl,{ux_builder_action:"do_shortcode",ux_builder_shortcode:t.copy(function(t,e){t.$id=e.$id,t.depth=e.ancestors.length,t.nested=_.filter(e.ancestors,function(t){return t.tag===e.tag}).length})}).done(function(g){t.$scope&&(t.$$new=!0,l.put(t.$id,g),C=w(t,g),r(C)(t.$scope,function(g){A&&e.trigger(f.DETACHED,t),t.children&&t.children.forEach(function(t){t.$element&&(t.$element.data("shortcode",null),t.$element.remove(),delete t.$element)}),g.data("shortcode",t),t.$element.replaceWith(g),t.$element=g,n.resolve(t)}))}),n.promise)}function b(t){var e={$scope:t.$scope,$element:t.$element,tools:g.tools?g.tools["custom"+capitalize(t.tag)+"Tools"]:null,shortcode:t};i.all([A.injectStyles(t.data.styles),A.injectScripts(t.data.scripts)]).finally(function(){d("ShortcodeController as $ctrl",e),t.data.controller&&d(t.tag+"__controller as $customCtrl",e)})}function $(t){u.cancel(t.$recompile),t.$element.addClass("processing"),t.$recompile=u(function(){var g=[];if(l.remove(t.$id),t.isParent)for(var n=t.children.length-1;n>=0;n--)g.unshift(t.children[n].copy()),t.children[n].remove();v(t).then(function(t){var n=t.replaceWith(t.copy(function(t,e){t.$id=e.$id,e.isParent&&(t.children=g)}));n.$$new=!0,e.broadcast(f.RECOMPILED,n)}),p.debug("x recompiling",t.tag),delete t.$recompile},250,!1)}function y(t){var e=t.index,g=t.siblings;return t.$scope.shortcode=t,t.$scope.$index=e,t.$scope.$first=0===e,t.$scope.$last=e===g.length-1,t.$scope.$middle=!(t.$scope.$first||t.$scope.$last),t.$scope.$odd=!(t.$scope.$even=0===(1&e)),t.$scope.$$recompile=function(){return $(t)},t.$scope.$on("$destroy",function(){delete t.$scope.shortcode,delete t.$scope.$$recompile}),t}function w(t,e,g){if(e=e.replace("<content",'<content content="'+t.tag+" ["+t.$id+']" shortcode="shortcode"'),e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,""),e=e.replace(/<!--[\s\S]*?-->/g,""),t.data.wrap||g){var n=["uxb-wrapper"];t.data.inline&&n.push("uxb-wrapper-inline"),t.data.overlay&&(e+='<div class="uxb-overlay"></div>'),e='\n                  <div class="'+n.join(" ")+'">\n                    '+e+"\n                  </div>\n                "}return e}var x=this;(0,C.default)(this,t);var E,S=this;o.$watchCollection(function(){return x.shortcode.children},m)}];e.default=o},function(t,e,g){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function A(t){var e=[],g=t.split(".");return _.each(g,function(t){e.push(jQuery.camelCase(t.replace(/\:/g,"-")))}),e.join(".")}Object.defineProperty(e,"__esModule",{value:!0}),e.data=void 0;var C=g(11),o=n(C),I=g(12),r=n(I),i=e.data=(window.frameElement?window.parent:window).uxBuilderData,a=function(){function t(e){(0,o.default)(this,t),this.$parse=e}return t.$inject=["$parse"],(0,r.default)(t,[{key:"storage",value:function(){return i}},{key:"set",value:function(t,e){return this.$parse(A(t)).assign(i,e)}},{key:"get",value:function(t,e){var g=this.$parse(A(t))(i);return!angular.isDefined(g)&&e?this.set(t,e):g}},{key:"unset",value:function(t){var e;return t.indexOf("*")?(e=t.split("*")[0],this.$parse(A(e)).assign(i,null)):this.$parse(A(t)).assign(i,null)}}]),t}();e.default=a}]);