From c1a55f8603b790bcece84e1812bdc33e59823232 Mon Sep 17 00:00:00 2001 From: Philipp Seibt Date: Tue, 5 Dec 2023 18:08:58 +0100 Subject: [PATCH 1/4] add transition for logo --- CHANGELOG.md | 4 ++++ .../content_element/image/logo_odd.html.twig | 22 +++++++++++++++++++ public/fontawesome/js/all.min.js | 6 +---- public/fontawesome/js/brands.min.js | 6 +---- public/fontawesome/js/fontawesome.min.js | 6 +---- public/fontawesome/js/regular.min.js | 6 +---- public/fontawesome/js/solid.min.js | 6 +---- public/fontawesome/js/v4-shims.min.js | 6 +---- public/scss/parts/header.scss | 8 +++++++ src/Module/OddThemeSetup.php | 2 +- 10 files changed, 41 insertions(+), 31 deletions(-) create mode 100644 contao/templates/_new/content_element/image/logo_odd.html.twig diff --git a/CHANGELOG.md b/CHANGELOG.md index 718d92d..c05a43c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ Types of changes Security in case of vulnerabilities. ) +## [3.4.0](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.4.0) – 2023-12-05 + +- [Added] Add transition for logo (use logo_odd.html.twig template) + ## [3.3.2](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.3.2) – 2023-09-21 - [Fixed] Fix youtube and video element diff --git a/contao/templates/_new/content_element/image/logo_odd.html.twig b/contao/templates/_new/content_element/image/logo_odd.html.twig new file mode 100644 index 0000000..f6f46a9 --- /dev/null +++ b/contao/templates/_new/content_element/image/logo_odd.html.twig @@ -0,0 +1,22 @@ +{% extends "@Contao/content_element/image.html.twig" %} +{% use "@Contao/component/_picture.html.twig" %} + +{% block image %} + {% set img = figure.image.img %} + {% set defineProportions = img.width|default(false) and img.height|default(false) %} + {% set img_attributes = attrs(img_attributes|default) + .set('src', img.src) + .set('alt', figure.hasMetadata ? figure.metadata.alt : '') + .setIfExists('title', figure.hasMetadata ? (figure.metadata.title ?: null) : null) + .setIfExists('srcset', img.srcset is defined and img.srcset != img.src ? img.srcset : null) + .setIfExists('sizes', img.sizes|default) + .setIfExists('width', defineProportions ? img.width : null) + .setIfExists('height', defineProportions ? img.height : null) + .set('style', 'height:' ~ img.height ~ 'px;width:auto;') + .set('class', 'logo-transition') + .setIfExists('loading', img.loading|default) + .addClass(img.class|default) + .mergeWith(figure.options.img_attr|default) + %} + +{% endblock %} diff --git a/public/fontawesome/js/all.min.js b/public/fontawesome/js/all.min.js index b08e9a6..d7dce4f 100644 --- a/public/fontawesome/js/all.min.js +++ b/public/fontawesome/js/all.min.js @@ -1,5 +1 @@ -/*! - * Font Awesome Free 5.3.1 by @fontawesome - https://fontawesome.com - * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) - */ -!function(){"use strict";var c={};try{"undefined"!=typeof window&&(c=window)}catch(c){}var l=(c.navigator||{}).userAgent,h=void 0===l?"":l,z=c,v=(~h.indexOf("MSIE")||h.indexOf("Trident/"),"___FONT_AWESOME___"),m=function(){try{return!0}catch(c){return!1}}(),s=[1,2,3,4,5,6,7,8,9,10],e=s.concat([11,12,13,14,15,16,17,18,19,20]);["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter"].concat(s.map(function(c){return c+"x"})).concat(e.map(function(c){return"w-"+c}));var a=z||{};a[v]||(a[v]={}),a[v].styles||(a[v].styles={}),a[v].hooks||(a[v].hooks={}),a[v].shims||(a[v].shims=[]);var t=a[v],M=Object.assign||function(c){for(var l=1;l>>0;h--;)l[h]=c[h];return l}function U(c){return c.classList?X(c.classList):(c.getAttribute("class")||"").split(" ").filter(function(c){return c})}function K(c,l){var h,z=l.split("-"),v=z[0],m=z.slice(1).join("-");return v!==c||""===m||(h=m,~w.indexOf(h))?null:m}function G(c){return(""+c).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function J(h){return Object.keys(h||{}).reduce(function(c,l){return c+(l+": ")+h[l]+";"},"")}function Q(c){return c.size!==W.size||c.x!==W.x||c.y!==W.y||c.rotate!==W.rotate||c.flipX||c.flipY}function Z(c){var l=c.transform,h=c.containerWidth,z=c.iconWidth;return{outer:{transform:"translate("+h/2+" 256)"},inner:{transform:"translate("+32*l.x+", "+32*l.y+") "+" "+("scale("+l.size/16*(l.flipX?-1:1)+", "+l.size/16*(l.flipY?-1:1)+") ")+" "+("rotate("+l.rotate+" 0 0)")},path:{transform:"translate("+z/2*-1+" -256)"}}}var $={x:0,y:0,width:"100%",height:"100%"},cc=function(c){var l=c.children,h=c.attributes,z=c.main,v=c.mask,m=c.transform,s=z.width,e=z.icon,a=v.width,t=v.icon,M=Z({transform:m,containerWidth:a,iconWidth:s}),f={tag:"rect",attributes:A({},$,{fill:"white"})},r={tag:"g",attributes:A({},M.inner),children:[{tag:"path",attributes:A({},e.attributes,M.path,{fill:"black"})}]},H={tag:"g",attributes:A({},M.outer),children:[r]},i="mask-"+D(),n="clip-"+D(),V={tag:"defs",children:[{tag:"clipPath",attributes:{id:n},children:[t]},{tag:"mask",attributes:A({},$,{id:i,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,H]}]};return l.push(V,{tag:"rect",attributes:A({fill:"currentColor","clip-path":"url(#"+n+")",mask:"url(#"+i+")"},$)}),{children:l,attributes:h}},lc=function(c){var l=c.children,h=c.attributes,z=c.main,v=c.transform,m=J(c.styles);if(0"+s.map(bc).join("")+""}var gc=function(){};function Sc(c){return"string"==typeof(c.getAttribute?c.getAttribute(g):null)}var yc={replace:function(c){var l=c[0],h=c[1].map(function(c){return bc(c)}).join("\n");if(l.parentNode&&l.outerHTML)l.outerHTML=h+(E.keepOriginalSource&&"svg"!==l.tagName.toLowerCase()?"\x3c!-- "+l.outerHTML+" --\x3e":"");else if(l.parentNode){var z=document.createElement("span");l.parentNode.replaceChild(z,l),z.outerHTML=h}},nest:function(c){var l=c[0],h=c[1];if(~U(l).indexOf(E.replacementClass))return yc.replace(c);var z=new RegExp(E.familyPrefix+"-.*");delete h[0].attributes.style;var v=h[0].attributes.class.split(" ").reduce(function(c,l){return l===E.replacementClass||l.match(z)?c.toSvg.push(l):c.toNode.push(l),c},{toNode:[],toSvg:[]});h[0].attributes.class=v.toSvg.join(" ");var m=h.map(function(c){return bc(c)}).join("\n");l.setAttribute("class",v.toNode.join(" ")),l.setAttribute(g,""),l.innerHTML=m}};function wc(h,c){var z="function"==typeof c?c:gc;0===h.length?z():(r.requestAnimationFrame||function(c){return c()})(function(){var c=!0===E.autoReplaceSvg?yc.replace:yc[E.autoReplaceSvg]||yc.replace,l=Mc.begin("mutate");h.map(c),l(),z()})}var kc=!1;var xc=null;function Ac(c){if(e&&E.observeMutations){var v=c.treeCallback,m=c.nodeCallback,s=c.pseudoElementsCallback,l=c.observeMutationsRoot,h=void 0===l?H.body:l;xc=new e(function(c){kc||X(c).forEach(function(c){if("childList"===c.type&&0li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:solid .08em #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-webkit-transform:scale(1,-1);transform:scale(1,-1)}.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1,-1);transform:scale(-1,-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;position:relative;width:2em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x{height:1em;width:1em}.svg-inline--fa.fa-stack-2x{height:2em;width:2em}.fa-inverse{color:#fff}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}";if("fa"!==l||h!==c){var v=new RegExp("\\.fa\\-","g"),m=new RegExp("\\."+c,"g");z=z.replace(v,"."+l+"-").replace(m,"."+h)}return z};function zl(c){return{found:!0,width:c[0],height:c[1],icon:{tag:"path",attributes:{fill:"currentColor",d:c.slice(4)[0]}}}}function vl(){E.autoAddCss&&!tl&&(Y(hl()),tl=!0)}function ml(l,c){return Object.defineProperty(l,"abstract",{get:c}),Object.defineProperty(l,"html",{get:function(){return l.abstract.map(function(c){return bc(c)})}}),Object.defineProperty(l,"node",{get:function(){if(M){var c=H.createElement("div");return c.innerHTML=l.html,c.children}}}),l}function sl(c){var l=c.prefix,h=void 0===l?"fa":l,z=c.iconName;if(z)return pc(al.definitions,h,z)||pc(T.styles,h,z)}var el,al=new(function(){function c(){k(this,c),this.definitions={}}return x(c,[{key:"add",value:function(){for(var l=this,c=arguments.length,h=Array(c),z=0;z-1;i--){var child=headChildren[i];var tagName=(child.tagName||"").toUpperCase();if(["STYLE","LINK"].indexOf(tagName)>-1){beforeChild=child}}DOCUMENT.head.insertBefore(style,beforeChild);return css}var _uniqueId=0;function nextUniqueId(){_uniqueId++;return _uniqueId}function toArray(obj){var array=[];for(var i=(obj||[]).length>>>0;i--;){array[i]=obj[i]}return array}function classArray(node){if(node.classList){return toArray(node.classList)}else{return(node.getAttribute("class")||"").split(" ").filter(function(i){return i})}}function getIconName(familyPrefix,cls){var parts=cls.split("-");var prefix=parts[0];var iconName=parts.slice(1).join("-");if(prefix===familyPrefix&&iconName!==""&&!isReserved(iconName)){return iconName}else{return null}}function htmlEscape(str){return(""+str).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function joinAttributes(attributes){return Object.keys(attributes||{}).reduce(function(acc,attributeName){return acc+(attributeName+'="'+htmlEscape(attributes[attributeName])+'" ')},"").trim()}function joinStyles(styles){return Object.keys(styles||{}).reduce(function(acc,styleName){return acc+(styleName+": "+styles[styleName]+";")},"")}function transformIsMeaningful(transform){return transform.size!==meaninglessTransform.size||transform.x!==meaninglessTransform.x||transform.y!==meaninglessTransform.y||transform.rotate!==meaninglessTransform.rotate||transform.flipX||transform.flipY}function transformForSvg(_ref){var transform=_ref.transform,containerWidth=_ref.containerWidth,iconWidth=_ref.iconWidth;var outer={transform:"translate("+containerWidth/2+" 256)"};var innerTranslate="translate("+transform.x*32+", "+transform.y*32+") ";var innerScale="scale("+transform.size/16*(transform.flipX?-1:1)+", "+transform.size/16*(transform.flipY?-1:1)+") ";var innerRotate="rotate("+transform.rotate+" 0 0)";var inner={transform:innerTranslate+" "+innerScale+" "+innerRotate};var path={transform:"translate("+iconWidth/2*-1+" -256)"};return{outer:outer,inner:inner,path:path}}function transformForCss(_ref2){var transform=_ref2.transform,_ref2$width=_ref2.width,width=_ref2$width===undefined?UNITS_IN_GRID:_ref2$width,_ref2$height=_ref2.height,height=_ref2$height===undefined?UNITS_IN_GRID:_ref2$height,_ref2$startCentered=_ref2.startCentered,startCentered=_ref2$startCentered===undefined?false:_ref2$startCentered;var val="";if(startCentered&&IS_IE){val+="translate("+(transform.x/d-width/2)+"em, "+(transform.y/d-height/2)+"em) "}else if(startCentered){val+="translate(calc(-50% + "+transform.x/d+"em), calc(-50% + "+transform.y/d+"em)) "}else{val+="translate("+transform.x/d+"em, "+transform.y/d+"em) "}val+="scale("+transform.size/d*(transform.flipX?-1:1)+", "+transform.size/d*(transform.flipY?-1:1)+") ";val+="rotate("+transform.rotate+"deg) ";return val}var ALL_SPACE={x:0,y:0,width:"100%",height:"100%"};var makeIconMasking=function(_ref){var children=_ref.children,attributes=_ref.attributes,main=_ref.main,mask=_ref.mask,transform=_ref.transform;var mainWidth=main.width,mainPath=main.icon;var maskWidth=mask.width,maskPath=mask.icon;var trans=transformForSvg({transform:transform,containerWidth:maskWidth,iconWidth:mainWidth});var maskRect={tag:"rect",attributes:_extends({},ALL_SPACE,{fill:"white"})};var maskInnerGroup={tag:"g",attributes:_extends({},trans.inner),children:[{tag:"path",attributes:_extends({},mainPath.attributes,trans.path,{fill:"black"})}]};var maskOuterGroup={tag:"g",attributes:_extends({},trans.outer),children:[maskInnerGroup]};var maskId="mask-"+nextUniqueId();var clipId="clip-"+nextUniqueId();var maskTag={tag:"mask",attributes:_extends({},ALL_SPACE,{id:maskId,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[maskRect,maskOuterGroup]};var defs={tag:"defs",children:[{tag:"clipPath",attributes:{id:clipId},children:[maskPath]},maskTag]};children.push(defs,{tag:"rect",attributes:_extends({fill:"currentColor","clip-path":"url(#"+clipId+")",mask:"url(#"+maskId+")"},ALL_SPACE)});return{children:children,attributes:attributes}};var makeIconStandard=function(_ref){var children=_ref.children,attributes=_ref.attributes,main=_ref.main,transform=_ref.transform,styles=_ref.styles;var styleString=joinStyles(styles);if(styleString.length>0){attributes["style"]=styleString}if(transformIsMeaningful(transform)){var trans=transformForSvg({transform:transform,containerWidth:main.width,iconWidth:main.width});children.push({tag:"g",attributes:_extends({},trans.outer),children:[{tag:"g",attributes:_extends({},trans.inner),children:[{tag:main.icon.tag,children:main.icon.children,attributes:_extends({},main.icon.attributes,trans.path)}]}]})}else{children.push(main.icon)}return{children:children,attributes:attributes}};var asIcon=function(_ref){var children=_ref.children,main=_ref.main,mask=_ref.mask,attributes=_ref.attributes,styles=_ref.styles,transform=_ref.transform;if(transformIsMeaningful(transform)&&main.found&&!mask.found){var width=main.width,height=main.height;var offset={x:width/height/2,y:.5};attributes["style"]=joinStyles(_extends({},styles,{"transform-origin":offset.x+transform.x/16+"em "+(offset.y+transform.y/16)+"em"}))}return[{tag:"svg",attributes:attributes,children:children}]};var asSymbol=function(_ref){var prefix=_ref.prefix,iconName=_ref.iconName,children=_ref.children,attributes=_ref.attributes,symbol=_ref.symbol;var id=symbol===true?prefix+"-"+config.familyPrefix+"-"+iconName:symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_extends({},attributes,{id:id}),children:children}]}]};function makeInlineSvgAbstract(params){var _params$icons=params.icons,main=_params$icons.main,mask=_params$icons.mask,prefix=params.prefix,iconName=params.iconName,transform=params.transform,symbol=params.symbol,title=params.title,extra=params.extra,_params$watchable=params.watchable,watchable=_params$watchable===undefined?false:_params$watchable;var _ref=mask.found?mask:main,width=_ref.width,height=_ref.height;var widthClass="fa-w-"+Math.ceil(width/height*16);var attrClass=[config.replacementClass,iconName?config.familyPrefix+"-"+iconName:"",widthClass].filter(function(c){return extra.classes.indexOf(c)===-1}).concat(extra.classes).join(" ");var content={children:[],attributes:_extends({},extra.attributes,{"data-prefix":prefix,"data-icon":iconName,class:attrClass,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 "+width+" "+height})};if(watchable){content.attributes[DATA_FA_I2SVG]=""}if(title)content.children.push({tag:"title",attributes:{id:content.attributes["aria-labelledby"]||"title-"+nextUniqueId()},children:[title]});var args=_extends({},content,{prefix:prefix,iconName:iconName,main:main,mask:mask,transform:transform,symbol:symbol,styles:extra.styles});var _ref2=mask.found&&main.found?makeIconMasking(args):makeIconStandard(args),children=_ref2.children,attributes=_ref2.attributes;args.children=children;args.attributes=attributes;if(symbol){return asSymbol(args)}else{return asIcon(args)}}function makeLayersTextAbstract(params){var content=params.content,width=params.width,height=params.height,transform=params.transform,title=params.title,extra=params.extra,_params$watchable2=params.watchable,watchable=_params$watchable2===undefined?false:_params$watchable2;var attributes=_extends({},extra.attributes,title?{title:title}:{},{class:extra.classes.join(" ")});if(watchable){attributes[DATA_FA_I2SVG]=""}var styles=_extends({},extra.styles);if(transformIsMeaningful(transform)){styles["transform"]=transformForCss({transform:transform,startCentered:true,width:width,height:height});styles["-webkit-transform"]=styles["transform"]}var styleString=joinStyles(styles);if(styleString.length>0){attributes["style"]=styleString}var val=[];val.push({tag:"span",attributes:attributes,children:[content]});if(title){val.push({tag:"span",attributes:{class:"sr-only"},children:[title]})}return val}function makeLayersCounterAbstract(params){var content=params.content,title=params.title,extra=params.extra;var attributes=_extends({},extra.attributes,title?{title:title}:{},{class:extra.classes.join(" ")});var styleString=joinStyles(extra.styles);if(styleString.length>0){attributes["style"]=styleString}var val=[];val.push({tag:"span",attributes:attributes,children:[content]});if(title){val.push({tag:"span",attributes:{class:"sr-only"},children:[title]})}return val}var noop$2=function noop(){};var p=config.measurePerformance&&PERFORMANCE&&PERFORMANCE.mark&&PERFORMANCE.measure?PERFORMANCE:{mark:noop$2,measure:noop$2};var preamble='FA "5.3.1"';var begin=function begin(name){p.mark(preamble+" "+name+" begins");return function(){return end(name)}};var end=function end(name){p.mark(preamble+" "+name+" ends");p.measure(preamble+" "+name,preamble+" "+name+" begins",preamble+" "+name+" ends")};var perf={begin:begin,end:end};"use strict";var bindInternal4=function bindInternal4(func,thisContext){return function(a,b,c,d){return func.call(thisContext,a,b,c,d)}};"use strict";var reduce=function fastReduceObject(subject,fn,initialValue,thisContext){var keys=Object.keys(subject),length=keys.length,iterator=thisContext!==undefined?bindInternal4(fn,thisContext):fn,i,key,result;if(initialValue===undefined){i=1;result=subject[keys[0]]}else{i=0;result=initialValue}for(;i"+children.map(toHtml).join("")+""}}var noop$1=function noop(){};function isWatched(node){var i2svg=node.getAttribute?node.getAttribute(DATA_FA_I2SVG):null;return typeof i2svg==="string"}function getMutator(){if(config.autoReplaceSvg===true){return mutators.replace}var mutator=mutators[config.autoReplaceSvg];return mutator||mutators.replace}var mutators={replace:function replace(mutation){var node=mutation[0];var abstract=mutation[1];var newOuterHTML=abstract.map(function(a){return toHtml(a)}).join("\n");if(node.parentNode&&node.outerHTML){node.outerHTML=newOuterHTML+(config.keepOriginalSource&&node.tagName.toLowerCase()!=="svg"?"\x3c!-- "+node.outerHTML+" --\x3e":"")}else if(node.parentNode){var newNode=document.createElement("span");node.parentNode.replaceChild(newNode,node);newNode.outerHTML=newOuterHTML}},nest:function nest(mutation){var node=mutation[0];var abstract=mutation[1];if(~classArray(node).indexOf(config.replacementClass)){return mutators.replace(mutation)}var forSvg=new RegExp(config.familyPrefix+"-.*");delete abstract[0].attributes.style;var splitClasses=abstract[0].attributes.class.split(" ").reduce(function(acc,cls){if(cls===config.replacementClass||cls.match(forSvg)){acc.toSvg.push(cls)}else{acc.toNode.push(cls)}return acc},{toNode:[],toSvg:[]});abstract[0].attributes.class=splitClasses.toSvg.join(" ");var newInnerHTML=abstract.map(function(a){return toHtml(a)}).join("\n");node.setAttribute("class",splitClasses.toNode.join(" "));node.setAttribute(DATA_FA_I2SVG,"");node.innerHTML=newInnerHTML}};function perform(mutations,callback){var callbackFunction=typeof callback==="function"?callback:noop$1;if(mutations.length===0){callbackFunction()}else{var frame=WINDOW.requestAnimationFrame||function(op){return op()};frame(function(){var mutator=getMutator();var mark=perf.begin("mutate");mutations.map(mutator);mark();callbackFunction()})}}var disabled=false;function disableObservation(operation){disabled=true;operation();disabled=false}var mo=null;function observe(options){if(!MUTATION_OBSERVER){return}if(!config.observeMutations){return}var treeCallback=options.treeCallback,nodeCallback=options.nodeCallback,pseudoElementsCallback=options.pseudoElementsCallback,_options$observeMutat=options.observeMutationsRoot,observeMutationsRoot=_options$observeMutat===undefined?DOCUMENT.body:_options$observeMutat;mo=new MUTATION_OBSERVER(function(objects){if(disabled)return;toArray(objects).forEach(function(mutationRecord){if(mutationRecord.type==="childList"&&mutationRecord.addedNodes.length>0&&!isWatched(mutationRecord.addedNodes[0])){if(config.searchPseudoElements){pseudoElementsCallback(mutationRecord.target)}treeCallback(mutationRecord.target)}if(mutationRecord.type==="attributes"&&mutationRecord.target.parentNode&&config.searchPseudoElements){pseudoElementsCallback(mutationRecord.target.parentNode)}if(mutationRecord.type==="attributes"&&isWatched(mutationRecord.target)&&~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)){if(mutationRecord.attributeName==="class"){var _getCanonicalIcon=getCanonicalIcon(classArray(mutationRecord.target)),prefix=_getCanonicalIcon.prefix,iconName=_getCanonicalIcon.iconName;if(prefix)mutationRecord.target.setAttribute("data-prefix",prefix);if(iconName)mutationRecord.target.setAttribute("data-icon",iconName)}else{nodeCallback(mutationRecord.target)}}})});if(!IS_DOM)return;mo.observe(observeMutationsRoot,{childList:true,attributes:true,characterData:true,subtree:true})}function disconnect(){if(!mo)return;mo.disconnect()}var styleParser=function(node){var style=node.getAttribute("style");var val=[];if(style){val=style.split(";").reduce(function(acc,style){var styles=style.split(":");var prop=styles[0];var value=styles.slice(1);if(prop&&value.length>0){acc[prop]=value.join(":").trim()}return acc},{})}return val};function toHex(unicode){var result="";for(var i=0;i1){val.iconName=byLigature(val.prefix,node.innerText)}else if(val.prefix&&innerText.length===1){val.iconName=byUnicode(val.prefix,toHex(node.innerText))}return val};var parseTransformString=function parseTransformString(transformString){var transform={size:16,x:0,y:0,flipX:false,flipY:false,rotate:0};if(!transformString){return transform}else{return transformString.toLowerCase().split(" ").reduce(function(acc,n){var parts=n.toLowerCase().split("-");var first=parts[0];var rest=parts.slice(1).join("-");if(first&&rest==="h"){acc.flipX=true;return acc}if(first&&rest==="v"){acc.flipY=true;return acc}rest=parseFloat(rest);if(isNaN(rest)){return acc}switch(first){case"grow":acc.size=acc.size+rest;break;case"shrink":acc.size=acc.size-rest;break;case"left":acc.x=acc.x-rest;break;case"right":acc.x=acc.x+rest;break;case"up":acc.y=acc.y-rest;break;case"down":acc.y=acc.y+rest;break;case"rotate":acc.rotate=acc.rotate+rest;break}return acc},transform)}};var transformParser=function(node){return parseTransformString(node.getAttribute("data-fa-transform"))};var symbolParser=function(node){var symbol=node.getAttribute("data-fa-symbol");return symbol===null?false:symbol===""?true:symbol};var attributesParser=function(node){var extraAttributes=toArray(node.attributes).reduce(function(acc,attr){if(acc.name!=="class"&&acc.name!=="style"){acc[attr.name]=attr.value}return acc},{});var title=node.getAttribute("title");if(config.autoA11y){if(title){extraAttributes["aria-labelledby"]=config.replacementClass+"-title-"+nextUniqueId()}else{extraAttributes["aria-hidden"]="true"}}return extraAttributes};var maskParser=function(node){var mask=node.getAttribute("data-fa-mask");if(!mask){return emptyCanonicalIcon()}else{return getCanonicalIcon(mask.split(" ").map(function(i){return i.trim()}))}};var blankMeta={iconName:null,title:null,prefix:null,transform:meaninglessTransform,symbol:false,mask:null,extra:{classes:[],styles:{},attributes:{}}};function parseMeta(node){var _classParser=classParser(node),iconName=_classParser.iconName,prefix=_classParser.prefix,extraClasses=_classParser.rest;var extraStyles=styleParser(node);var transform=transformParser(node);var symbol=symbolParser(node);var extraAttributes=attributesParser(node);var mask=maskParser(node);return{iconName:iconName,title:node.getAttribute("title"),prefix:prefix,transform:transform,symbol:symbol,mask:mask,extra:{classes:extraClasses,styles:extraStyles,attributes:extraAttributes}}}function MissingIcon(error){this.name="MissingIcon";this.message=error||"Icon unavailable";this.stack=(new Error).stack}MissingIcon.prototype=Object.create(Error.prototype);MissingIcon.prototype.constructor=MissingIcon;var FILL={fill:"currentColor"};var ANIMATION_BASE={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};var RING={tag:"path",attributes:_extends({},FILL,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})};var OPACITY_ANIMATE=_extends({},ANIMATION_BASE,{attributeName:"opacity"});var DOT={tag:"circle",attributes:_extends({},FILL,{cx:"256",cy:"364",r:"28"}),children:[{tag:"animate",attributes:_extends({},ANIMATION_BASE,{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_extends({},OPACITY_ANIMATE,{values:"1;0;1;1;0;1;"})}]};var QUESTION={tag:"path",attributes:_extends({},FILL,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:[{tag:"animate",attributes:_extends({},OPACITY_ANIMATE,{values:"1;0;0;0;0;1;"})}]};var EXCLAMATION={tag:"path",attributes:_extends({},FILL,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:_extends({},OPACITY_ANIMATE,{values:"0;0;1;1;0;0;"})}]};var missing={tag:"g",children:[RING,DOT,QUESTION,EXCLAMATION]};var styles=namespace.styles;var LAYERS_TEXT_CLASSNAME="fa-layers-text";var FONT_FAMILY_PATTERN=/Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/;var STYLE_TO_PREFIX={Solid:"fas",Regular:"far",Light:"fal",Brands:"fab"};var FONT_WEIGHT_TO_PREFIX={900:"fas",400:"far",300:"fal"};function findIcon(iconName,prefix){var val={found:false,width:512,height:512,icon:missing};if(iconName&&prefix&&styles[prefix]&&styles[prefix][iconName]){var icon=styles[prefix][iconName];var width=icon[0];var height=icon[1];var vectorData=icon.slice(4);val={found:true,width:width,height:height,icon:{tag:"path",attributes:{fill:"currentColor",d:vectorData[0]}}}}else if(iconName&&prefix&&!config.showMissingIcons){throw new MissingIcon("Icon is missing for prefix "+prefix+" with icon name "+iconName)}return val}function generateSvgReplacementMutation(node,nodeMeta){var iconName=nodeMeta.iconName,title=nodeMeta.title,prefix=nodeMeta.prefix,transform=nodeMeta.transform,symbol=nodeMeta.symbol,mask=nodeMeta.mask,extra=nodeMeta.extra;return[node,makeInlineSvgAbstract({icons:{main:findIcon(iconName,prefix),mask:findIcon(mask.iconName,mask.prefix)},prefix:prefix,iconName:iconName,transform:transform,symbol:symbol,mask:mask,title:title,extra:extra,watchable:true})]}function generateLayersText(node,nodeMeta){var title=nodeMeta.title,transform=nodeMeta.transform,extra=nodeMeta.extra;var width=null;var height=null;if(IS_IE){var computedFontSize=parseInt(getComputedStyle(node).fontSize,10);var boundingClientRect=node.getBoundingClientRect();width=boundingClientRect.width/computedFontSize;height=boundingClientRect.height/computedFontSize}if(config.autoA11y&&!title){extra.attributes["aria-hidden"]="true"}return[node,makeLayersTextAbstract({content:node.innerHTML,width:width,height:height,transform:transform,title:title,extra:extra,watchable:true})]}function generateMutation(node){var nodeMeta=parseMeta(node);if(~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)){return generateLayersText(node,nodeMeta)}else{return generateSvgReplacementMutation(node,nodeMeta)}}function searchPseudoElements(root){if(!IS_DOM)return;var end=perf.begin("searchPseudoElements");disableObservation(function(){toArray(root.querySelectorAll("*")).filter(function(n){return n.parentNode!==document.head&&!~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(n.tagName.toUpperCase())&&!n.getAttribute(DATA_FA_PSEUDO_ELEMENT)&&(!n.parentNode||n.parentNode.tagName!=="svg")}).forEach(function(node){[":before",":after"].forEach(function(pos){var children=toArray(node.children);var alreadyProcessedPseudoElement=children.filter(function(c){return c.getAttribute(DATA_FA_PSEUDO_ELEMENT)===pos})[0];var styles=WINDOW.getComputedStyle(node,pos);var fontFamily=styles.getPropertyValue("font-family").match(FONT_FAMILY_PATTERN);var fontWeight=styles.getPropertyValue("font-weight");if(alreadyProcessedPseudoElement&&!fontFamily){node.removeChild(alreadyProcessedPseudoElement)}else if(fontFamily){var content=styles.getPropertyValue("content");var prefix=~["Light","Regular","Solid","Brands"].indexOf(fontFamily[1])?STYLE_TO_PREFIX[fontFamily[1]]:FONT_WEIGHT_TO_PREFIX[fontWeight];var iconName=byUnicode(prefix,toHex(content.length===3?content.substr(1,1):content));if(!alreadyProcessedPseudoElement||alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX)!==prefix||alreadyProcessedPseudoElement.getAttribute(DATA_ICON)!==iconName){if(alreadyProcessedPseudoElement){node.removeChild(alreadyProcessedPseudoElement)}var extra=blankMeta.extra;extra.attributes[DATA_FA_PSEUDO_ELEMENT]=pos;var abstract=makeInlineSvgAbstract(_extends({},blankMeta,{icons:{main:findIcon(iconName,prefix),mask:emptyCanonicalIcon()},prefix:prefix,iconName:iconName,extra:extra,watchable:true}));var element=DOCUMENT.createElement("svg");if(pos===":before"){node.insertBefore(element,node.firstChild)}else{node.appendChild(element)}element.outerHTML=abstract.map(function(a){return toHtml(a)}).join("\n")}}})})});end()}function onTree(root){var callback=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!IS_DOM)return;var htmlClassList=DOCUMENT.documentElement.classList;var hclAdd=function hclAdd(suffix){return htmlClassList.add(HTML_CLASS_I2SVG_BASE_CLASS+"-"+suffix)};var hclRemove=function hclRemove(suffix){return htmlClassList.remove(HTML_CLASS_I2SVG_BASE_CLASS+"-"+suffix)};var prefixes=Object.keys(styles);var prefixesDomQuery=["."+LAYERS_TEXT_CLASSNAME+":not(["+DATA_FA_I2SVG+"])"].concat(prefixes.map(function(p){return"."+p+":not(["+DATA_FA_I2SVG+"])"})).join(", ");if(prefixesDomQuery.length===0){return}var candidates=toArray(root.querySelectorAll(prefixesDomQuery));if(candidates.length>0){hclAdd("pending");hclRemove("complete")}else{return}var mark=perf.begin("onTree");var mutations=candidates.reduce(function(acc,node){try{var mutation=generateMutation(node);if(mutation){acc.push(mutation)}}catch(e){if(!PRODUCTION){if(e instanceof MissingIcon){console.error(e)}}}return acc},[]);mark();perform(mutations,function(){hclAdd("active");hclAdd("complete");hclRemove("pending");if(typeof callback==="function")callback()})}function onNode(node){var callback=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var mutation=generateMutation(node);if(mutation){perform([mutation],callback)}}var baseStyles="svg:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa{display:inline-block;font-size:inherit;height:1em;overflow:visible;vertical-align:-.125em}.svg-inline--fa.fa-lg{vertical-align:-.225em}.svg-inline--fa.fa-w-1{width:.0625em}.svg-inline--fa.fa-w-2{width:.125em}.svg-inline--fa.fa-w-3{width:.1875em}.svg-inline--fa.fa-w-4{width:.25em}.svg-inline--fa.fa-w-5{width:.3125em}.svg-inline--fa.fa-w-6{width:.375em}.svg-inline--fa.fa-w-7{width:.4375em}.svg-inline--fa.fa-w-8{width:.5em}.svg-inline--fa.fa-w-9{width:.5625em}.svg-inline--fa.fa-w-10{width:.625em}.svg-inline--fa.fa-w-11{width:.6875em}.svg-inline--fa.fa-w-12{width:.75em}.svg-inline--fa.fa-w-13{width:.8125em}.svg-inline--fa.fa-w-14{width:.875em}.svg-inline--fa.fa-w-15{width:.9375em}.svg-inline--fa.fa-w-16{width:1em}.svg-inline--fa.fa-w-17{width:1.0625em}.svg-inline--fa.fa-w-18{width:1.125em}.svg-inline--fa.fa-w-19{width:1.1875em}.svg-inline--fa.fa-w-20{width:1.25em}.svg-inline--fa.fa-pull-left{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right{margin-left:.3em;width:auto}.svg-inline--fa.fa-border{height:1.5em}.svg-inline--fa.fa-li{width:2em}.svg-inline--fa.fa-fw{width:1.25em}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers-text{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:solid .08em #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-webkit-transform:scale(1,-1);transform:scale(1,-1)}.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1,-1);transform:scale(-1,-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;position:relative;width:2em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x{height:1em;width:1em}.svg-inline--fa.fa-stack-2x{height:2em;width:2em}.fa-inverse{color:#fff}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}";var css=function(){var dfp=DEFAULT_FAMILY_PREFIX;var drc=DEFAULT_REPLACEMENT_CLASS;var fp=config.familyPrefix;var rc=config.replacementClass;var s=baseStyles;if(fp!==dfp||rc!==drc){var dPatt=new RegExp("\\."+dfp+"\\-","g");var rPatt=new RegExp("\\."+drc,"g");s=s.replace(dPatt,"."+fp+"-").replace(rPatt,"."+rc)}return s};function define(prefix,icons){var normalized=Object.keys(icons).reduce(function(acc,iconName){var icon=icons[iconName];var expanded=!!icon.icon;if(expanded){acc[icon.iconName]=icon.icon}else{acc[iconName]=icon}return acc},{});if(typeof namespace.hooks.addPack==="function"){namespace.hooks.addPack(prefix,normalized)}else{namespace.styles[prefix]=_extends({},namespace.styles[prefix]||{},normalized)}if(prefix==="fas"){define("fa",icons)}}var Library=function(){function Library(){classCallCheck(this,Library);this.definitions={}}createClass(Library,[{key:"add",value:function add(){var _this=this;for(var _len=arguments.length,definitions=Array(_len),_key=0;_key<_len;_key++){definitions[_key]=arguments[_key]}var additions=definitions.reduce(this._pullDefinitions,{});Object.keys(additions).forEach(function(key){_this.definitions[key]=_extends({},_this.definitions[key]||{},additions[key]);define(key,additions[key]);build()})}},{key:"reset",value:function reset(){this.definitions={}}},{key:"_pullDefinitions",value:function _pullDefinitions(additions,definition){var normalized=definition.prefix&&definition.iconName&&definition.icon?{0:definition}:definition;Object.keys(normalized).map(function(key){var _normalized$key=normalized[key],prefix=_normalized$key.prefix,iconName=_normalized$key.iconName,icon=_normalized$key.icon;if(!additions[prefix])additions[prefix]={};additions[prefix][iconName]=icon});return additions}}]);return Library}();function prepIcon(icon){var width=icon[0];var height=icon[1];var vectorData=icon.slice(4);return{found:true,width:width,height:height,icon:{tag:"path",attributes:{fill:"currentColor",d:vectorData[0]}}}}function ensureCss(){if(config.autoAddCss&&!_cssInserted){insertCss(css());_cssInserted=true}}function apiObject(val,abstractCreator){Object.defineProperty(val,"abstract",{get:abstractCreator});Object.defineProperty(val,"html",{get:function get(){return val.abstract.map(function(a){return toHtml(a)})}});Object.defineProperty(val,"node",{get:function get(){if(!IS_DOM)return;var container=DOCUMENT.createElement("div");container.innerHTML=val.html;return container.children}});return val}function findIconDefinition(params){var _params$prefix=params.prefix,prefix=_params$prefix===undefined?"fa":_params$prefix,iconName=params.iconName;if(!iconName)return;return iconFromMapping(library.definitions,prefix,iconName)||iconFromMapping(namespace.styles,prefix,iconName)}function resolveIcons(next){return function(maybeIconDefinition){var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var iconDefinition=(maybeIconDefinition||{}).icon?maybeIconDefinition:findIconDefinition(maybeIconDefinition||{});var mask=params.mask;if(mask){mask=(mask||{}).icon?mask:findIconDefinition(mask||{})}return next(iconDefinition,_extends({},params,{mask:mask}))}}var library=new Library;var noAuto=function noAuto(){config.autoReplaceSvg=false;config.observeMutations=false;disconnect()};var _cssInserted=false;var dom={i2svg:function i2svg(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(IS_DOM){ensureCss();var _params$node=params.node,node=_params$node===undefined?DOCUMENT:_params$node,_params$callback=params.callback,callback=_params$callback===undefined?function(){}:_params$callback;if(config.searchPseudoElements){searchPseudoElements(node)}onTree(node,callback)}},css:css,insertCss:function insertCss$$1(){if(!_cssInserted){insertCss(css());_cssInserted=true}},watch:function watch(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var autoReplaceSvgRoot=params.autoReplaceSvgRoot,observeMutationsRoot=params.observeMutationsRoot;if(config.autoReplaceSvg===false){config.autoReplaceSvg=true}config.observeMutations=true;domready(function(){autoReplace({autoReplaceSvgRoot:autoReplaceSvgRoot});observe({treeCallback:onTree,nodeCallback:onNode,pseudoElementsCallback:searchPseudoElements,observeMutationsRoot:observeMutationsRoot})})}};var parse={transform:function transform(transformString){return parseTransformString(transformString)}};var icon=resolveIcons(function(iconDefinition){var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _params$transform=params.transform,transform=_params$transform===undefined?meaninglessTransform:_params$transform,_params$symbol=params.symbol,symbol=_params$symbol===undefined?false:_params$symbol,_params$mask=params.mask,mask=_params$mask===undefined?null:_params$mask,_params$title=params.title,title=_params$title===undefined?null:_params$title,_params$classes=params.classes,classes=_params$classes===undefined?[]:_params$classes,_params$attributes=params.attributes,attributes=_params$attributes===undefined?{}:_params$attributes,_params$styles=params.styles,styles=_params$styles===undefined?{}:_params$styles;if(!iconDefinition)return;var prefix=iconDefinition.prefix,iconName=iconDefinition.iconName,icon=iconDefinition.icon;return apiObject(_extends({type:"icon"},iconDefinition),function(){ensureCss();if(config.autoA11y){if(title){attributes["aria-labelledby"]=config.replacementClass+"-title-"+nextUniqueId()}else{attributes["aria-hidden"]="true"}}return makeInlineSvgAbstract({icons:{main:prepIcon(icon),mask:mask?prepIcon(mask.icon):{found:false,width:null,height:null,icon:{}}},prefix:prefix,iconName:iconName,transform:_extends({},meaninglessTransform,transform),symbol:symbol,title:title,extra:{attributes:attributes,styles:styles,classes:classes}})})});var text=function text(content){var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _params$transform2=params.transform,transform=_params$transform2===undefined?meaninglessTransform:_params$transform2,_params$title2=params.title,title=_params$title2===undefined?null:_params$title2,_params$classes2=params.classes,classes=_params$classes2===undefined?[]:_params$classes2,_params$attributes2=params.attributes,attributes=_params$attributes2===undefined?{}:_params$attributes2,_params$styles2=params.styles,styles=_params$styles2===undefined?{}:_params$styles2;return apiObject({type:"text",content:content},function(){ensureCss();return makeLayersTextAbstract({content:content,transform:_extends({},meaninglessTransform,transform),title:title,extra:{attributes:attributes,styles:styles,classes:[config.familyPrefix+"-layers-text"].concat(toConsumableArray(classes))}})})};var counter=function counter(content){var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _params$title3=params.title,title=_params$title3===undefined?null:_params$title3,_params$classes3=params.classes,classes=_params$classes3===undefined?[]:_params$classes3,_params$attributes3=params.attributes,attributes=_params$attributes3===undefined?{}:_params$attributes3,_params$styles3=params.styles,styles=_params$styles3===undefined?{}:_params$styles3;return apiObject({type:"counter",content:content},function(){ensureCss();return makeLayersCounterAbstract({content:content.toString(),title:title,extra:{attributes:attributes,styles:styles,classes:[config.familyPrefix+"-layers-counter"].concat(toConsumableArray(classes))}})})};var layer=function layer(assembler){return apiObject({type:"layer"},function(){ensureCss();var children=[];assembler(function(args){Array.isArray(args)?args.map(function(a){children=children.concat(a.abstract)}):children=children.concat(args.abstract)});return[{tag:"span",attributes:{class:config.familyPrefix+"-layers"},children:children}]})};var api={noAuto:noAuto,config:config,dom:dom,library:library,parse:parse,findIconDefinition:findIconDefinition,icon:icon,text:text,counter:counter,layer:layer,toHtml:toHtml};var autoReplace=function autoReplace(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _params$autoReplaceSv=params.autoReplaceSvgRoot,autoReplaceSvgRoot=_params$autoReplaceSv===undefined?DOCUMENT:_params$autoReplaceSv;if(Object.keys(namespace.styles).length>0&&IS_DOM&&config.autoReplaceSvg)api.dom.i2svg({node:autoReplaceSvgRoot})};function bootstrap(){if(IS_BROWSER){if(!WINDOW.FontAwesome){WINDOW.FontAwesome=api}domready(function(){autoReplace();observe({treeCallback:onTree,nodeCallback:onNode,pseudoElementsCallback:searchPseudoElements})})}namespace.hooks=_extends({},namespace.hooks,{addPack:function addPack(prefix,icons){namespace.styles[prefix]=_extends({},namespace.styles[prefix]||{},icons);build();autoReplace()},addShims:function addShims(shims){var _namespace$shims;(_namespace$shims=namespace.shims).push.apply(_namespace$shims,toConsumableArray(shims));build();autoReplace()}})}bunker(bootstrap)})(); \ No newline at end of file diff --git a/public/fontawesome/js/brands.min.js b/public/fontawesome/js/brands.min.js index 8e11108..02e23f4 100644 --- a/public/fontawesome/js/brands.min.js +++ b/public/fontawesome/js/brands.min.js @@ -1,5 +1 @@ -/*! - * Font Awesome Free 5.3.1 by @fontawesome - https://fontawesome.com - * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) - */ -!function(){"use strict";var c={};try{"undefined"!=typeof window&&(c=window)}catch(c){}var z=(c.navigator||{}).userAgent,l=void 0===z?"":z,h=c,v=(~l.indexOf("MSIE")||l.indexOf("Trident/"),"___FONT_AWESOME___"),m=function(){try{return!0}catch(c){return!1}}(),M=[1,2,3,4,5,6,7,8,9,10],s=M.concat([11,12,13,14,15,16,17,18,19,20]);["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter"].concat(M.map(function(c){return c+"x"})).concat(s.map(function(c){return"w-"+c}));var H=h||{};H[v]||(H[v]={}),H[v].styles||(H[v].styles={}),H[v].hooks||(H[v].hooks={}),H[v].shims||(H[v].shims=[]);var f=H[v],V=Object.assign||function(c){for(var z=1;z>>0;r--;)e[r]=t[r];return e}function V(t){return t.classList?U(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(t){return t})}function K(t,e){var r,a=e.split("-"),n=a[0],i=a.slice(1).join("-");return n!==t||""===i||(r=i,~M.indexOf(r))?null:i}function G(t){return(""+t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function J(r){return Object.keys(r||{}).reduce(function(t,e){return t+(e+": ")+r[e]+";"},"")}function Q(t){return t.size!==D.size||t.x!==D.x||t.y!==D.y||t.rotate!==D.rotate||t.flipX||t.flipY}function Z(t){var e=t.transform,r=t.containerWidth,a=t.iconWidth;return{outer:{transform:"translate("+r/2+" 256)"},inner:{transform:"translate("+32*e.x+", "+32*e.y+") "+" "+("scale("+e.size/16*(e.flipX?-1:1)+", "+e.size/16*(e.flipY?-1:1)+") ")+" "+("rotate("+e.rotate+" 0 0)")},path:{transform:"translate("+a/2*-1+" -256)"}}}var $={x:0,y:0,width:"100%",height:"100%"},tt=function(t){var e=t.children,r=t.attributes,a=t.main,n=t.mask,i=t.transform,o=a.width,s=a.icon,l=n.width,f=n.icon,c=Z({transform:i,containerWidth:l,iconWidth:o}),u={tag:"rect",attributes:E({},$,{fill:"white"})},m={tag:"g",attributes:E({},c.inner),children:[{tag:"path",attributes:E({},s.attributes,c.path,{fill:"black"})}]},d={tag:"g",attributes:E({},c.outer),children:[m]},g="mask-"+q(),h="clip-"+q(),p={tag:"defs",children:[{tag:"clipPath",attributes:{id:h},children:[f]},{tag:"mask",attributes:E({},$,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[u,d]}]};return e.push(p,{tag:"rect",attributes:E({fill:"currentColor","clip-path":"url(#"+h+")",mask:"url(#"+g+")"},$)}),{children:e,attributes:r}},et=function(t){var e=t.children,r=t.attributes,a=t.main,n=t.transform,i=J(t.styles);if(0"+o.map(Ct).join("")+""}var At=function(){};function Nt(t){return"string"==typeof(t.getAttribute?t.getAttribute(A):null)}var zt={replace:function(t){var e=t[0],r=t[1].map(function(t){return Ct(t)}).join("\n");if(e.parentNode&&e.outerHTML)e.outerHTML=r+(T.keepOriginalSource&&"svg"!==e.tagName.toLowerCase()?"\x3c!-- "+e.outerHTML+" --\x3e":"");else if(e.parentNode){var a=document.createElement("span");e.parentNode.replaceChild(a,e),a.outerHTML=r}},nest:function(t){var e=t[0],r=t[1];if(~V(e).indexOf(T.replacementClass))return zt.replace(t);var a=new RegExp(T.familyPrefix+"-.*");delete r[0].attributes.style;var n=r[0].attributes.class.split(" ").reduce(function(t,e){return e===T.replacementClass||e.match(a)?t.toSvg.push(e):t.toNode.push(e),t},{toNode:[],toSvg:[]});r[0].attributes.class=n.toSvg.join(" ");var i=r.map(function(t){return Ct(t)}).join("\n");e.setAttribute("class",n.toNode.join(" ")),e.setAttribute(A,""),e.innerHTML=i}};function Mt(r,t){var a="function"==typeof t?t:At;0===r.length?a():(m.requestAnimationFrame||function(t){return t()})(function(){var t=!0===T.autoReplaceSvg?zt.replace:zt[T.autoReplaceSvg]||zt.replace,e=ct.begin("mutate");r.map(t),e(),a()})}var St=!1;var Lt=null;function Et(t){if(s&&T.observeMutations){var n=t.treeCallback,i=t.nodeCallback,o=t.pseudoElementsCallback,e=t.observeMutationsRoot,r=void 0===e?d.body:e;Lt=new s(function(t){St||U(t).forEach(function(t){if("childList"===t.type&&0li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:solid .08em #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-webkit-transform:scale(1,-1);transform:scale(1,-1)}.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1,-1);transform:scale(-1,-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;position:relative;width:2em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x{height:1em;width:1em}.svg-inline--fa.fa-stack-2x{height:2em;width:2em}.fa-inverse{color:#fff}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}";if("fa"!==e||r!==t){var n=new RegExp("\\.fa\\-","g"),i=new RegExp("\\."+t,"g");a=a.replace(n,"."+e+"-").replace(i,"."+r)}return a};function ae(t){return{found:!0,width:t[0],height:t[1],icon:{tag:"path",attributes:{fill:"currentColor",d:t.slice(4)[0]}}}}function ne(){T.autoAddCss&&!fe&&(W(re()),fe=!0)}function ie(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(t){return Ct(t)})}}),Object.defineProperty(e,"node",{get:function(){if(c){var t=d.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function oe(t){var e=t.prefix,r=void 0===e?"fa":e,a=t.iconName;if(a)return kt(le.definitions,r,a)||kt(I.styles,r,a)}var se,le=new(function(){function t(){S(this,t),this.definitions={}}return L(t,[{key:"add",value:function(){for(var e=this,t=arguments.length,r=Array(t),a=0;a-1;i--){var child=headChildren[i];var tagName=(child.tagName||"").toUpperCase();if(["STYLE","LINK"].indexOf(tagName)>-1){beforeChild=child}}DOCUMENT.head.insertBefore(style,beforeChild);return css}var _uniqueId=0;function nextUniqueId(){_uniqueId++;return _uniqueId}function toArray(obj){var array=[];for(var i=(obj||[]).length>>>0;i--;){array[i]=obj[i]}return array}function classArray(node){if(node.classList){return toArray(node.classList)}else{return(node.getAttribute("class")||"").split(" ").filter(function(i){return i})}}function getIconName(familyPrefix,cls){var parts=cls.split("-");var prefix=parts[0];var iconName=parts.slice(1).join("-");if(prefix===familyPrefix&&iconName!==""&&!isReserved(iconName)){return iconName}else{return null}}function htmlEscape(str){return(""+str).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function joinAttributes(attributes){return Object.keys(attributes||{}).reduce(function(acc,attributeName){return acc+(attributeName+'="'+htmlEscape(attributes[attributeName])+'" ')},"").trim()}function joinStyles(styles){return Object.keys(styles||{}).reduce(function(acc,styleName){return acc+(styleName+": "+styles[styleName]+";")},"")}function transformIsMeaningful(transform){return transform.size!==meaninglessTransform.size||transform.x!==meaninglessTransform.x||transform.y!==meaninglessTransform.y||transform.rotate!==meaninglessTransform.rotate||transform.flipX||transform.flipY}function transformForSvg(_ref){var transform=_ref.transform,containerWidth=_ref.containerWidth,iconWidth=_ref.iconWidth;var outer={transform:"translate("+containerWidth/2+" 256)"};var innerTranslate="translate("+transform.x*32+", "+transform.y*32+") ";var innerScale="scale("+transform.size/16*(transform.flipX?-1:1)+", "+transform.size/16*(transform.flipY?-1:1)+") ";var innerRotate="rotate("+transform.rotate+" 0 0)";var inner={transform:innerTranslate+" "+innerScale+" "+innerRotate};var path={transform:"translate("+iconWidth/2*-1+" -256)"};return{outer:outer,inner:inner,path:path}}function transformForCss(_ref2){var transform=_ref2.transform,_ref2$width=_ref2.width,width=_ref2$width===undefined?UNITS_IN_GRID:_ref2$width,_ref2$height=_ref2.height,height=_ref2$height===undefined?UNITS_IN_GRID:_ref2$height,_ref2$startCentered=_ref2.startCentered,startCentered=_ref2$startCentered===undefined?false:_ref2$startCentered;var val="";if(startCentered&&IS_IE){val+="translate("+(transform.x/d-width/2)+"em, "+(transform.y/d-height/2)+"em) "}else if(startCentered){val+="translate(calc(-50% + "+transform.x/d+"em), calc(-50% + "+transform.y/d+"em)) "}else{val+="translate("+transform.x/d+"em, "+transform.y/d+"em) "}val+="scale("+transform.size/d*(transform.flipX?-1:1)+", "+transform.size/d*(transform.flipY?-1:1)+") ";val+="rotate("+transform.rotate+"deg) ";return val}var ALL_SPACE={x:0,y:0,width:"100%",height:"100%"};var makeIconMasking=function(_ref){var children=_ref.children,attributes=_ref.attributes,main=_ref.main,mask=_ref.mask,transform=_ref.transform;var mainWidth=main.width,mainPath=main.icon;var maskWidth=mask.width,maskPath=mask.icon;var trans=transformForSvg({transform:transform,containerWidth:maskWidth,iconWidth:mainWidth});var maskRect={tag:"rect",attributes:_extends({},ALL_SPACE,{fill:"white"})};var maskInnerGroup={tag:"g",attributes:_extends({},trans.inner),children:[{tag:"path",attributes:_extends({},mainPath.attributes,trans.path,{fill:"black"})}]};var maskOuterGroup={tag:"g",attributes:_extends({},trans.outer),children:[maskInnerGroup]};var maskId="mask-"+nextUniqueId();var clipId="clip-"+nextUniqueId();var maskTag={tag:"mask",attributes:_extends({},ALL_SPACE,{id:maskId,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[maskRect,maskOuterGroup]};var defs={tag:"defs",children:[{tag:"clipPath",attributes:{id:clipId},children:[maskPath]},maskTag]};children.push(defs,{tag:"rect",attributes:_extends({fill:"currentColor","clip-path":"url(#"+clipId+")",mask:"url(#"+maskId+")"},ALL_SPACE)});return{children:children,attributes:attributes}};var makeIconStandard=function(_ref){var children=_ref.children,attributes=_ref.attributes,main=_ref.main,transform=_ref.transform,styles=_ref.styles;var styleString=joinStyles(styles);if(styleString.length>0){attributes["style"]=styleString}if(transformIsMeaningful(transform)){var trans=transformForSvg({transform:transform,containerWidth:main.width,iconWidth:main.width});children.push({tag:"g",attributes:_extends({},trans.outer),children:[{tag:"g",attributes:_extends({},trans.inner),children:[{tag:main.icon.tag,children:main.icon.children,attributes:_extends({},main.icon.attributes,trans.path)}]}]})}else{children.push(main.icon)}return{children:children,attributes:attributes}};var asIcon=function(_ref){var children=_ref.children,main=_ref.main,mask=_ref.mask,attributes=_ref.attributes,styles=_ref.styles,transform=_ref.transform;if(transformIsMeaningful(transform)&&main.found&&!mask.found){var width=main.width,height=main.height;var offset={x:width/height/2,y:.5};attributes["style"]=joinStyles(_extends({},styles,{"transform-origin":offset.x+transform.x/16+"em "+(offset.y+transform.y/16)+"em"}))}return[{tag:"svg",attributes:attributes,children:children}]};var asSymbol=function(_ref){var prefix=_ref.prefix,iconName=_ref.iconName,children=_ref.children,attributes=_ref.attributes,symbol=_ref.symbol;var id=symbol===true?prefix+"-"+config.familyPrefix+"-"+iconName:symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_extends({},attributes,{id:id}),children:children}]}]};function makeInlineSvgAbstract(params){var _params$icons=params.icons,main=_params$icons.main,mask=_params$icons.mask,prefix=params.prefix,iconName=params.iconName,transform=params.transform,symbol=params.symbol,title=params.title,extra=params.extra,_params$watchable=params.watchable,watchable=_params$watchable===undefined?false:_params$watchable;var _ref=mask.found?mask:main,width=_ref.width,height=_ref.height;var widthClass="fa-w-"+Math.ceil(width/height*16);var attrClass=[config.replacementClass,iconName?config.familyPrefix+"-"+iconName:"",widthClass].filter(function(c){return extra.classes.indexOf(c)===-1}).concat(extra.classes).join(" ");var content={children:[],attributes:_extends({},extra.attributes,{"data-prefix":prefix,"data-icon":iconName,class:attrClass,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 "+width+" "+height})};if(watchable){content.attributes[DATA_FA_I2SVG]=""}if(title)content.children.push({tag:"title",attributes:{id:content.attributes["aria-labelledby"]||"title-"+nextUniqueId()},children:[title]});var args=_extends({},content,{prefix:prefix,iconName:iconName,main:main,mask:mask,transform:transform,symbol:symbol,styles:extra.styles});var _ref2=mask.found&&main.found?makeIconMasking(args):makeIconStandard(args),children=_ref2.children,attributes=_ref2.attributes;args.children=children;args.attributes=attributes;if(symbol){return asSymbol(args)}else{return asIcon(args)}}function makeLayersTextAbstract(params){var content=params.content,width=params.width,height=params.height,transform=params.transform,title=params.title,extra=params.extra,_params$watchable2=params.watchable,watchable=_params$watchable2===undefined?false:_params$watchable2;var attributes=_extends({},extra.attributes,title?{title:title}:{},{class:extra.classes.join(" ")});if(watchable){attributes[DATA_FA_I2SVG]=""}var styles=_extends({},extra.styles);if(transformIsMeaningful(transform)){styles["transform"]=transformForCss({transform:transform,startCentered:true,width:width,height:height});styles["-webkit-transform"]=styles["transform"]}var styleString=joinStyles(styles);if(styleString.length>0){attributes["style"]=styleString}var val=[];val.push({tag:"span",attributes:attributes,children:[content]});if(title){val.push({tag:"span",attributes:{class:"sr-only"},children:[title]})}return val}function makeLayersCounterAbstract(params){var content=params.content,title=params.title,extra=params.extra;var attributes=_extends({},extra.attributes,title?{title:title}:{},{class:extra.classes.join(" ")});var styleString=joinStyles(extra.styles);if(styleString.length>0){attributes["style"]=styleString}var val=[];val.push({tag:"span",attributes:attributes,children:[content]});if(title){val.push({tag:"span",attributes:{class:"sr-only"},children:[title]})}return val}var noop$2=function noop(){};var p=config.measurePerformance&&PERFORMANCE&&PERFORMANCE.mark&&PERFORMANCE.measure?PERFORMANCE:{mark:noop$2,measure:noop$2};var preamble='FA "5.3.1"';var begin=function begin(name){p.mark(preamble+" "+name+" begins");return function(){return end(name)}};var end=function end(name){p.mark(preamble+" "+name+" ends");p.measure(preamble+" "+name,preamble+" "+name+" begins",preamble+" "+name+" ends")};var perf={begin:begin,end:end};"use strict";var bindInternal4=function bindInternal4(func,thisContext){return function(a,b,c,d){return func.call(thisContext,a,b,c,d)}};"use strict";var reduce=function fastReduceObject(subject,fn,initialValue,thisContext){var keys=Object.keys(subject),length=keys.length,iterator=thisContext!==undefined?bindInternal4(fn,thisContext):fn,i,key,result;if(initialValue===undefined){i=1;result=subject[keys[0]]}else{i=0;result=initialValue}for(;i"+children.map(toHtml).join("")+""}}var noop$1=function noop(){};function isWatched(node){var i2svg=node.getAttribute?node.getAttribute(DATA_FA_I2SVG):null;return typeof i2svg==="string"}function getMutator(){if(config.autoReplaceSvg===true){return mutators.replace}var mutator=mutators[config.autoReplaceSvg];return mutator||mutators.replace}var mutators={replace:function replace(mutation){var node=mutation[0];var abstract=mutation[1];var newOuterHTML=abstract.map(function(a){return toHtml(a)}).join("\n");if(node.parentNode&&node.outerHTML){node.outerHTML=newOuterHTML+(config.keepOriginalSource&&node.tagName.toLowerCase()!=="svg"?"\x3c!-- "+node.outerHTML+" --\x3e":"")}else if(node.parentNode){var newNode=document.createElement("span");node.parentNode.replaceChild(newNode,node);newNode.outerHTML=newOuterHTML}},nest:function nest(mutation){var node=mutation[0];var abstract=mutation[1];if(~classArray(node).indexOf(config.replacementClass)){return mutators.replace(mutation)}var forSvg=new RegExp(config.familyPrefix+"-.*");delete abstract[0].attributes.style;var splitClasses=abstract[0].attributes.class.split(" ").reduce(function(acc,cls){if(cls===config.replacementClass||cls.match(forSvg)){acc.toSvg.push(cls)}else{acc.toNode.push(cls)}return acc},{toNode:[],toSvg:[]});abstract[0].attributes.class=splitClasses.toSvg.join(" ");var newInnerHTML=abstract.map(function(a){return toHtml(a)}).join("\n");node.setAttribute("class",splitClasses.toNode.join(" "));node.setAttribute(DATA_FA_I2SVG,"");node.innerHTML=newInnerHTML}};function perform(mutations,callback){var callbackFunction=typeof callback==="function"?callback:noop$1;if(mutations.length===0){callbackFunction()}else{var frame=WINDOW.requestAnimationFrame||function(op){return op()};frame(function(){var mutator=getMutator();var mark=perf.begin("mutate");mutations.map(mutator);mark();callbackFunction()})}}var disabled=false;function disableObservation(operation){disabled=true;operation();disabled=false}var mo=null;function observe(options){if(!MUTATION_OBSERVER){return}if(!config.observeMutations){return}var treeCallback=options.treeCallback,nodeCallback=options.nodeCallback,pseudoElementsCallback=options.pseudoElementsCallback,_options$observeMutat=options.observeMutationsRoot,observeMutationsRoot=_options$observeMutat===undefined?DOCUMENT.body:_options$observeMutat;mo=new MUTATION_OBSERVER(function(objects){if(disabled)return;toArray(objects).forEach(function(mutationRecord){if(mutationRecord.type==="childList"&&mutationRecord.addedNodes.length>0&&!isWatched(mutationRecord.addedNodes[0])){if(config.searchPseudoElements){pseudoElementsCallback(mutationRecord.target)}treeCallback(mutationRecord.target)}if(mutationRecord.type==="attributes"&&mutationRecord.target.parentNode&&config.searchPseudoElements){pseudoElementsCallback(mutationRecord.target.parentNode)}if(mutationRecord.type==="attributes"&&isWatched(mutationRecord.target)&&~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)){if(mutationRecord.attributeName==="class"){var _getCanonicalIcon=getCanonicalIcon(classArray(mutationRecord.target)),prefix=_getCanonicalIcon.prefix,iconName=_getCanonicalIcon.iconName;if(prefix)mutationRecord.target.setAttribute("data-prefix",prefix);if(iconName)mutationRecord.target.setAttribute("data-icon",iconName)}else{nodeCallback(mutationRecord.target)}}})});if(!IS_DOM)return;mo.observe(observeMutationsRoot,{childList:true,attributes:true,characterData:true,subtree:true})}function disconnect(){if(!mo)return;mo.disconnect()}var styleParser=function(node){var style=node.getAttribute("style");var val=[];if(style){val=style.split(";").reduce(function(acc,style){var styles=style.split(":");var prop=styles[0];var value=styles.slice(1);if(prop&&value.length>0){acc[prop]=value.join(":").trim()}return acc},{})}return val};function toHex(unicode){var result="";for(var i=0;i1){val.iconName=byLigature(val.prefix,node.innerText)}else if(val.prefix&&innerText.length===1){val.iconName=byUnicode(val.prefix,toHex(node.innerText))}return val};var parseTransformString=function parseTransformString(transformString){var transform={size:16,x:0,y:0,flipX:false,flipY:false,rotate:0};if(!transformString){return transform}else{return transformString.toLowerCase().split(" ").reduce(function(acc,n){var parts=n.toLowerCase().split("-");var first=parts[0];var rest=parts.slice(1).join("-");if(first&&rest==="h"){acc.flipX=true;return acc}if(first&&rest==="v"){acc.flipY=true;return acc}rest=parseFloat(rest);if(isNaN(rest)){return acc}switch(first){case"grow":acc.size=acc.size+rest;break;case"shrink":acc.size=acc.size-rest;break;case"left":acc.x=acc.x-rest;break;case"right":acc.x=acc.x+rest;break;case"up":acc.y=acc.y-rest;break;case"down":acc.y=acc.y+rest;break;case"rotate":acc.rotate=acc.rotate+rest;break}return acc},transform)}};var transformParser=function(node){return parseTransformString(node.getAttribute("data-fa-transform"))};var symbolParser=function(node){var symbol=node.getAttribute("data-fa-symbol");return symbol===null?false:symbol===""?true:symbol};var attributesParser=function(node){var extraAttributes=toArray(node.attributes).reduce(function(acc,attr){if(acc.name!=="class"&&acc.name!=="style"){acc[attr.name]=attr.value}return acc},{});var title=node.getAttribute("title");if(config.autoA11y){if(title){extraAttributes["aria-labelledby"]=config.replacementClass+"-title-"+nextUniqueId()}else{extraAttributes["aria-hidden"]="true"}}return extraAttributes};var maskParser=function(node){var mask=node.getAttribute("data-fa-mask");if(!mask){return emptyCanonicalIcon()}else{return getCanonicalIcon(mask.split(" ").map(function(i){return i.trim()}))}};var blankMeta={iconName:null,title:null,prefix:null,transform:meaninglessTransform,symbol:false,mask:null,extra:{classes:[],styles:{},attributes:{}}};function parseMeta(node){var _classParser=classParser(node),iconName=_classParser.iconName,prefix=_classParser.prefix,extraClasses=_classParser.rest;var extraStyles=styleParser(node);var transform=transformParser(node);var symbol=symbolParser(node);var extraAttributes=attributesParser(node);var mask=maskParser(node);return{iconName:iconName,title:node.getAttribute("title"),prefix:prefix,transform:transform,symbol:symbol,mask:mask,extra:{classes:extraClasses,styles:extraStyles,attributes:extraAttributes}}}function MissingIcon(error){this.name="MissingIcon";this.message=error||"Icon unavailable";this.stack=(new Error).stack}MissingIcon.prototype=Object.create(Error.prototype);MissingIcon.prototype.constructor=MissingIcon;var FILL={fill:"currentColor"};var ANIMATION_BASE={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};var RING={tag:"path",attributes:_extends({},FILL,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})};var OPACITY_ANIMATE=_extends({},ANIMATION_BASE,{attributeName:"opacity"});var DOT={tag:"circle",attributes:_extends({},FILL,{cx:"256",cy:"364",r:"28"}),children:[{tag:"animate",attributes:_extends({},ANIMATION_BASE,{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_extends({},OPACITY_ANIMATE,{values:"1;0;1;1;0;1;"})}]};var QUESTION={tag:"path",attributes:_extends({},FILL,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:[{tag:"animate",attributes:_extends({},OPACITY_ANIMATE,{values:"1;0;0;0;0;1;"})}]};var EXCLAMATION={tag:"path",attributes:_extends({},FILL,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:_extends({},OPACITY_ANIMATE,{values:"0;0;1;1;0;0;"})}]};var missing={tag:"g",children:[RING,DOT,QUESTION,EXCLAMATION]};var styles=namespace.styles;var LAYERS_TEXT_CLASSNAME="fa-layers-text";var FONT_FAMILY_PATTERN=/Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/;var STYLE_TO_PREFIX={Solid:"fas",Regular:"far",Light:"fal",Brands:"fab"};var FONT_WEIGHT_TO_PREFIX={900:"fas",400:"far",300:"fal"};function findIcon(iconName,prefix){var val={found:false,width:512,height:512,icon:missing};if(iconName&&prefix&&styles[prefix]&&styles[prefix][iconName]){var icon=styles[prefix][iconName];var width=icon[0];var height=icon[1];var vectorData=icon.slice(4);val={found:true,width:width,height:height,icon:{tag:"path",attributes:{fill:"currentColor",d:vectorData[0]}}}}else if(iconName&&prefix&&!config.showMissingIcons){throw new MissingIcon("Icon is missing for prefix "+prefix+" with icon name "+iconName)}return val}function generateSvgReplacementMutation(node,nodeMeta){var iconName=nodeMeta.iconName,title=nodeMeta.title,prefix=nodeMeta.prefix,transform=nodeMeta.transform,symbol=nodeMeta.symbol,mask=nodeMeta.mask,extra=nodeMeta.extra;return[node,makeInlineSvgAbstract({icons:{main:findIcon(iconName,prefix),mask:findIcon(mask.iconName,mask.prefix)},prefix:prefix,iconName:iconName,transform:transform,symbol:symbol,mask:mask,title:title,extra:extra,watchable:true})]}function generateLayersText(node,nodeMeta){var title=nodeMeta.title,transform=nodeMeta.transform,extra=nodeMeta.extra;var width=null;var height=null;if(IS_IE){var computedFontSize=parseInt(getComputedStyle(node).fontSize,10);var boundingClientRect=node.getBoundingClientRect();width=boundingClientRect.width/computedFontSize;height=boundingClientRect.height/computedFontSize}if(config.autoA11y&&!title){extra.attributes["aria-hidden"]="true"}return[node,makeLayersTextAbstract({content:node.innerHTML,width:width,height:height,transform:transform,title:title,extra:extra,watchable:true})]}function generateMutation(node){var nodeMeta=parseMeta(node);if(~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)){return generateLayersText(node,nodeMeta)}else{return generateSvgReplacementMutation(node,nodeMeta)}}function searchPseudoElements(root){if(!IS_DOM)return;var end=perf.begin("searchPseudoElements");disableObservation(function(){toArray(root.querySelectorAll("*")).filter(function(n){return n.parentNode!==document.head&&!~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(n.tagName.toUpperCase())&&!n.getAttribute(DATA_FA_PSEUDO_ELEMENT)&&(!n.parentNode||n.parentNode.tagName!=="svg")}).forEach(function(node){[":before",":after"].forEach(function(pos){var children=toArray(node.children);var alreadyProcessedPseudoElement=children.filter(function(c){return c.getAttribute(DATA_FA_PSEUDO_ELEMENT)===pos})[0];var styles=WINDOW.getComputedStyle(node,pos);var fontFamily=styles.getPropertyValue("font-family").match(FONT_FAMILY_PATTERN);var fontWeight=styles.getPropertyValue("font-weight");if(alreadyProcessedPseudoElement&&!fontFamily){node.removeChild(alreadyProcessedPseudoElement)}else if(fontFamily){var content=styles.getPropertyValue("content");var prefix=~["Light","Regular","Solid","Brands"].indexOf(fontFamily[1])?STYLE_TO_PREFIX[fontFamily[1]]:FONT_WEIGHT_TO_PREFIX[fontWeight];var iconName=byUnicode(prefix,toHex(content.length===3?content.substr(1,1):content));if(!alreadyProcessedPseudoElement||alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX)!==prefix||alreadyProcessedPseudoElement.getAttribute(DATA_ICON)!==iconName){if(alreadyProcessedPseudoElement){node.removeChild(alreadyProcessedPseudoElement)}var extra=blankMeta.extra;extra.attributes[DATA_FA_PSEUDO_ELEMENT]=pos;var abstract=makeInlineSvgAbstract(_extends({},blankMeta,{icons:{main:findIcon(iconName,prefix),mask:emptyCanonicalIcon()},prefix:prefix,iconName:iconName,extra:extra,watchable:true}));var element=DOCUMENT.createElement("svg");if(pos===":before"){node.insertBefore(element,node.firstChild)}else{node.appendChild(element)}element.outerHTML=abstract.map(function(a){return toHtml(a)}).join("\n")}}})})});end()}function onTree(root){var callback=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!IS_DOM)return;var htmlClassList=DOCUMENT.documentElement.classList;var hclAdd=function hclAdd(suffix){return htmlClassList.add(HTML_CLASS_I2SVG_BASE_CLASS+"-"+suffix)};var hclRemove=function hclRemove(suffix){return htmlClassList.remove(HTML_CLASS_I2SVG_BASE_CLASS+"-"+suffix)};var prefixes=Object.keys(styles);var prefixesDomQuery=["."+LAYERS_TEXT_CLASSNAME+":not(["+DATA_FA_I2SVG+"])"].concat(prefixes.map(function(p){return"."+p+":not(["+DATA_FA_I2SVG+"])"})).join(", ");if(prefixesDomQuery.length===0){return}var candidates=toArray(root.querySelectorAll(prefixesDomQuery));if(candidates.length>0){hclAdd("pending");hclRemove("complete")}else{return}var mark=perf.begin("onTree");var mutations=candidates.reduce(function(acc,node){try{var mutation=generateMutation(node);if(mutation){acc.push(mutation)}}catch(e){if(!PRODUCTION){if(e instanceof MissingIcon){console.error(e)}}}return acc},[]);mark();perform(mutations,function(){hclAdd("active");hclAdd("complete");hclRemove("pending");if(typeof callback==="function")callback()})}function onNode(node){var callback=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var mutation=generateMutation(node);if(mutation){perform([mutation],callback)}}var baseStyles="svg:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa{display:inline-block;font-size:inherit;height:1em;overflow:visible;vertical-align:-.125em}.svg-inline--fa.fa-lg{vertical-align:-.225em}.svg-inline--fa.fa-w-1{width:.0625em}.svg-inline--fa.fa-w-2{width:.125em}.svg-inline--fa.fa-w-3{width:.1875em}.svg-inline--fa.fa-w-4{width:.25em}.svg-inline--fa.fa-w-5{width:.3125em}.svg-inline--fa.fa-w-6{width:.375em}.svg-inline--fa.fa-w-7{width:.4375em}.svg-inline--fa.fa-w-8{width:.5em}.svg-inline--fa.fa-w-9{width:.5625em}.svg-inline--fa.fa-w-10{width:.625em}.svg-inline--fa.fa-w-11{width:.6875em}.svg-inline--fa.fa-w-12{width:.75em}.svg-inline--fa.fa-w-13{width:.8125em}.svg-inline--fa.fa-w-14{width:.875em}.svg-inline--fa.fa-w-15{width:.9375em}.svg-inline--fa.fa-w-16{width:1em}.svg-inline--fa.fa-w-17{width:1.0625em}.svg-inline--fa.fa-w-18{width:1.125em}.svg-inline--fa.fa-w-19{width:1.1875em}.svg-inline--fa.fa-w-20{width:1.25em}.svg-inline--fa.fa-pull-left{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right{margin-left:.3em;width:auto}.svg-inline--fa.fa-border{height:1.5em}.svg-inline--fa.fa-li{width:2em}.svg-inline--fa.fa-fw{width:1.25em}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers-text{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:solid .08em #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-webkit-transform:scale(1,-1);transform:scale(1,-1)}.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1,-1);transform:scale(-1,-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;position:relative;width:2em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x{height:1em;width:1em}.svg-inline--fa.fa-stack-2x{height:2em;width:2em}.fa-inverse{color:#fff}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}";var css=function(){var dfp=DEFAULT_FAMILY_PREFIX;var drc=DEFAULT_REPLACEMENT_CLASS;var fp=config.familyPrefix;var rc=config.replacementClass;var s=baseStyles;if(fp!==dfp||rc!==drc){var dPatt=new RegExp("\\."+dfp+"\\-","g");var rPatt=new RegExp("\\."+drc,"g");s=s.replace(dPatt,"."+fp+"-").replace(rPatt,"."+rc)}return s};function define(prefix,icons){var normalized=Object.keys(icons).reduce(function(acc,iconName){var icon=icons[iconName];var expanded=!!icon.icon;if(expanded){acc[icon.iconName]=icon.icon}else{acc[iconName]=icon}return acc},{});if(typeof namespace.hooks.addPack==="function"){namespace.hooks.addPack(prefix,normalized)}else{namespace.styles[prefix]=_extends({},namespace.styles[prefix]||{},normalized)}if(prefix==="fas"){define("fa",icons)}}var Library=function(){function Library(){classCallCheck(this,Library);this.definitions={}}createClass(Library,[{key:"add",value:function add(){var _this=this;for(var _len=arguments.length,definitions=Array(_len),_key=0;_key<_len;_key++){definitions[_key]=arguments[_key]}var additions=definitions.reduce(this._pullDefinitions,{});Object.keys(additions).forEach(function(key){_this.definitions[key]=_extends({},_this.definitions[key]||{},additions[key]);define(key,additions[key]);build()})}},{key:"reset",value:function reset(){this.definitions={}}},{key:"_pullDefinitions",value:function _pullDefinitions(additions,definition){var normalized=definition.prefix&&definition.iconName&&definition.icon?{0:definition}:definition;Object.keys(normalized).map(function(key){var _normalized$key=normalized[key],prefix=_normalized$key.prefix,iconName=_normalized$key.iconName,icon=_normalized$key.icon;if(!additions[prefix])additions[prefix]={};additions[prefix][iconName]=icon});return additions}}]);return Library}();function prepIcon(icon){var width=icon[0];var height=icon[1];var vectorData=icon.slice(4);return{found:true,width:width,height:height,icon:{tag:"path",attributes:{fill:"currentColor",d:vectorData[0]}}}}function ensureCss(){if(config.autoAddCss&&!_cssInserted){insertCss(css());_cssInserted=true}}function apiObject(val,abstractCreator){Object.defineProperty(val,"abstract",{get:abstractCreator});Object.defineProperty(val,"html",{get:function get(){return val.abstract.map(function(a){return toHtml(a)})}});Object.defineProperty(val,"node",{get:function get(){if(!IS_DOM)return;var container=DOCUMENT.createElement("div");container.innerHTML=val.html;return container.children}});return val}function findIconDefinition(params){var _params$prefix=params.prefix,prefix=_params$prefix===undefined?"fa":_params$prefix,iconName=params.iconName;if(!iconName)return;return iconFromMapping(library.definitions,prefix,iconName)||iconFromMapping(namespace.styles,prefix,iconName)}function resolveIcons(next){return function(maybeIconDefinition){var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var iconDefinition=(maybeIconDefinition||{}).icon?maybeIconDefinition:findIconDefinition(maybeIconDefinition||{});var mask=params.mask;if(mask){mask=(mask||{}).icon?mask:findIconDefinition(mask||{})}return next(iconDefinition,_extends({},params,{mask:mask}))}}var library=new Library;var noAuto=function noAuto(){config.autoReplaceSvg=false;config.observeMutations=false;disconnect()};var _cssInserted=false;var dom={i2svg:function i2svg(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(IS_DOM){ensureCss();var _params$node=params.node,node=_params$node===undefined?DOCUMENT:_params$node,_params$callback=params.callback,callback=_params$callback===undefined?function(){}:_params$callback;if(config.searchPseudoElements){searchPseudoElements(node)}onTree(node,callback)}},css:css,insertCss:function insertCss$$1(){if(!_cssInserted){insertCss(css());_cssInserted=true}},watch:function watch(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var autoReplaceSvgRoot=params.autoReplaceSvgRoot,observeMutationsRoot=params.observeMutationsRoot;if(config.autoReplaceSvg===false){config.autoReplaceSvg=true}config.observeMutations=true;domready(function(){autoReplace({autoReplaceSvgRoot:autoReplaceSvgRoot});observe({treeCallback:onTree,nodeCallback:onNode,pseudoElementsCallback:searchPseudoElements,observeMutationsRoot:observeMutationsRoot})})}};var parse={transform:function transform(transformString){return parseTransformString(transformString)}};var icon=resolveIcons(function(iconDefinition){var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _params$transform=params.transform,transform=_params$transform===undefined?meaninglessTransform:_params$transform,_params$symbol=params.symbol,symbol=_params$symbol===undefined?false:_params$symbol,_params$mask=params.mask,mask=_params$mask===undefined?null:_params$mask,_params$title=params.title,title=_params$title===undefined?null:_params$title,_params$classes=params.classes,classes=_params$classes===undefined?[]:_params$classes,_params$attributes=params.attributes,attributes=_params$attributes===undefined?{}:_params$attributes,_params$styles=params.styles,styles=_params$styles===undefined?{}:_params$styles;if(!iconDefinition)return;var prefix=iconDefinition.prefix,iconName=iconDefinition.iconName,icon=iconDefinition.icon;return apiObject(_extends({type:"icon"},iconDefinition),function(){ensureCss();if(config.autoA11y){if(title){attributes["aria-labelledby"]=config.replacementClass+"-title-"+nextUniqueId()}else{attributes["aria-hidden"]="true"}}return makeInlineSvgAbstract({icons:{main:prepIcon(icon),mask:mask?prepIcon(mask.icon):{found:false,width:null,height:null,icon:{}}},prefix:prefix,iconName:iconName,transform:_extends({},meaninglessTransform,transform),symbol:symbol,title:title,extra:{attributes:attributes,styles:styles,classes:classes}})})});var text=function text(content){var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _params$transform2=params.transform,transform=_params$transform2===undefined?meaninglessTransform:_params$transform2,_params$title2=params.title,title=_params$title2===undefined?null:_params$title2,_params$classes2=params.classes,classes=_params$classes2===undefined?[]:_params$classes2,_params$attributes2=params.attributes,attributes=_params$attributes2===undefined?{}:_params$attributes2,_params$styles2=params.styles,styles=_params$styles2===undefined?{}:_params$styles2;return apiObject({type:"text",content:content},function(){ensureCss();return makeLayersTextAbstract({content:content,transform:_extends({},meaninglessTransform,transform),title:title,extra:{attributes:attributes,styles:styles,classes:[config.familyPrefix+"-layers-text"].concat(toConsumableArray(classes))}})})};var counter=function counter(content){var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _params$title3=params.title,title=_params$title3===undefined?null:_params$title3,_params$classes3=params.classes,classes=_params$classes3===undefined?[]:_params$classes3,_params$attributes3=params.attributes,attributes=_params$attributes3===undefined?{}:_params$attributes3,_params$styles3=params.styles,styles=_params$styles3===undefined?{}:_params$styles3;return apiObject({type:"counter",content:content},function(){ensureCss();return makeLayersCounterAbstract({content:content.toString(),title:title,extra:{attributes:attributes,styles:styles,classes:[config.familyPrefix+"-layers-counter"].concat(toConsumableArray(classes))}})})};var layer=function layer(assembler){return apiObject({type:"layer"},function(){ensureCss();var children=[];assembler(function(args){Array.isArray(args)?args.map(function(a){children=children.concat(a.abstract)}):children=children.concat(args.abstract)});return[{tag:"span",attributes:{class:config.familyPrefix+"-layers"},children:children}]})};var api={noAuto:noAuto,config:config,dom:dom,library:library,parse:parse,findIconDefinition:findIconDefinition,icon:icon,text:text,counter:counter,layer:layer,toHtml:toHtml};var autoReplace=function autoReplace(){var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _params$autoReplaceSv=params.autoReplaceSvgRoot,autoReplaceSvgRoot=_params$autoReplaceSv===undefined?DOCUMENT:_params$autoReplaceSv;if(Object.keys(namespace.styles).length>0&&IS_DOM&&config.autoReplaceSvg)api.dom.i2svg({node:autoReplaceSvgRoot})};function bootstrap(){if(IS_BROWSER){if(!WINDOW.FontAwesome){WINDOW.FontAwesome=api}domready(function(){autoReplace();observe({treeCallback:onTree,nodeCallback:onNode,pseudoElementsCallback:searchPseudoElements})})}namespace.hooks=_extends({},namespace.hooks,{addPack:function addPack(prefix,icons){namespace.styles[prefix]=_extends({},namespace.styles[prefix]||{},icons);build();autoReplace()},addShims:function addShims(shims){var _namespace$shims;(_namespace$shims=namespace.shims).push.apply(_namespace$shims,toConsumableArray(shims));build();autoReplace()}})}bunker(bootstrap)})(); \ No newline at end of file diff --git a/public/fontawesome/js/regular.min.js b/public/fontawesome/js/regular.min.js index 8c8d22b..4a1593a 100644 --- a/public/fontawesome/js/regular.min.js +++ b/public/fontawesome/js/regular.min.js @@ -1,5 +1 @@ -/*! - * Font Awesome Free 5.3.1 by @fontawesome - https://fontawesome.com - * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) - */ -!function(){"use strict";var c={};try{"undefined"!=typeof window&&(c=window)}catch(c){}var z=(c.navigator||{}).userAgent,h=void 0===z?"":z,l=c,v=(~h.indexOf("MSIE")||h.indexOf("Trident/"),"___FONT_AWESOME___"),m=function(){try{return!0}catch(c){return!1}}(),s=[1,2,3,4,5,6,7,8,9,10],a=s.concat([11,12,13,14,15,16,17,18,19,20]);["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter"].concat(s.map(function(c){return c+"x"})).concat(a.map(function(c){return"w-"+c}));var M=l||{};M[v]||(M[v]={}),M[v].styles||(M[v].styles={}),M[v].hooks||(M[v].hooks={}),M[v].shims||(M[v].shims=[]);var V=M[v],H=Object.assign||function(c){for(var z=1;z Date: Tue, 5 Dec 2023 18:09:52 +0100 Subject: [PATCH 2/4] update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c05a43c..ff2c7df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ Types of changes ## [3.4.0](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.4.0) – 2023-12-05 -- [Added] Add transition for logo (use logo_odd.html.twig template) +- [Added] Add transition for logo (use logo_odd.html.twig template) [#56](https://github.com/contao-themes-net/odd-theme-bundle/issues/56) ## [3.3.2](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.3.2) – 2023-09-21 From f9be58f9bc74aa8ddb8df7d9083cae82258cb302 Mon Sep 17 00:00:00 2001 From: Philipp Seibt Date: Mon, 8 Jan 2024 11:47:19 +0100 Subject: [PATCH 3/4] Fix image alignment in text elements --- CHANGELOG.md | 3 ++- public/scss/parts/elements.scss | 46 +++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff2c7df..31e7921 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,9 +10,10 @@ Types of changes Security in case of vulnerabilities. ) -## [3.4.0](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.4.0) – 2023-12-05 +## [3.4.0](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.4.0) – 2024-01-08 - [Added] Add transition for logo (use logo_odd.html.twig template) [#56](https://github.com/contao-themes-net/odd-theme-bundle/issues/56) +- [Fixed] Fix image alignment in text elements ## [3.3.2](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.3.2) – 2023-09-21 diff --git a/public/scss/parts/elements.scss b/public/scss/parts/elements.scss index 1b7ed23..dc505cf 100644 --- a/public/scss/parts/elements.scss +++ b/public/scss/parts/elements.scss @@ -369,3 +369,49 @@ blockquote { } } } + +.media.content-text { + display: block; + overflow: hidden; + + &.hero.media--left figure { + float: left; + } + + &.hero.media--right figure { + float: right; + } + + &.hero.media--below .container { + display: flex; + flex-wrap: wrap; + } + + &.media--left figure { + margin: 0 20px 20px 0; + float: left; + } + + &.media--right figure { + margin: 0 0 20px 20px; + float: right; + } + + &.media--below { + display: flex; + flex-wrap: wrap; + + figure { + order: 2; + margin-top: 15px; + } + + h1, h2, h3, h4, h5, h6 { + margin-bottom: 10px; + } + + .rte { + order: 1; + } + } +} From b44cbd4a7ca5fd6ebccacb5d79fa9a3864651aaa Mon Sep 17 00:00:00 2001 From: Philipp Seibt Date: Mon, 8 Jan 2024 11:59:55 +0100 Subject: [PATCH 4/4] update copyright year --- src/ContaoManager/Plugin.php | 2 +- src/ContaoThemesNetOddThemeBundle.php | 2 +- src/DependencyInjection/ContaoThemesNetOddThemeExtension.php | 2 +- src/Element/SliderElement.php | 2 +- src/Migration/InitialDemoDataMigration.php | 2 +- src/Migration/InitialFilesFolderMigration.php | 2 +- src/Migration/MigrationHelperTrait.php | 2 +- src/Migration/Version300.php | 2 +- src/Module/OddThemeSetup.php | 2 +- src/ThemeUtils.php | 2 +- tests/ContaoThemesNetOddThemeBundleTest.php | 2 +- tests/ContaoThemesNetOddThemeExtensionTest.php | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ContaoManager/Plugin.php b/src/ContaoManager/Plugin.php index 623ba07..24d7b6d 100644 --- a/src/ContaoManager/Plugin.php +++ b/src/ContaoManager/Plugin.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle diff --git a/src/ContaoThemesNetOddThemeBundle.php b/src/ContaoThemesNetOddThemeBundle.php index 731e5b0..5ba6517 100644 --- a/src/ContaoThemesNetOddThemeBundle.php +++ b/src/ContaoThemesNetOddThemeBundle.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle diff --git a/src/DependencyInjection/ContaoThemesNetOddThemeExtension.php b/src/DependencyInjection/ContaoThemesNetOddThemeExtension.php index b872e6b..611f40f 100644 --- a/src/DependencyInjection/ContaoThemesNetOddThemeExtension.php +++ b/src/DependencyInjection/ContaoThemesNetOddThemeExtension.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle diff --git a/src/Element/SliderElement.php b/src/Element/SliderElement.php index 121202f..8d6dab4 100644 --- a/src/Element/SliderElement.php +++ b/src/Element/SliderElement.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle diff --git a/src/Migration/InitialDemoDataMigration.php b/src/Migration/InitialDemoDataMigration.php index 3d1b67f..b2ddb44 100644 --- a/src/Migration/InitialDemoDataMigration.php +++ b/src/Migration/InitialDemoDataMigration.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle diff --git a/src/Migration/InitialFilesFolderMigration.php b/src/Migration/InitialFilesFolderMigration.php index 03e1f2e..89ba198 100644 --- a/src/Migration/InitialFilesFolderMigration.php +++ b/src/Migration/InitialFilesFolderMigration.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle diff --git a/src/Migration/MigrationHelperTrait.php b/src/Migration/MigrationHelperTrait.php index d2e67c1..45618c3 100644 --- a/src/Migration/MigrationHelperTrait.php +++ b/src/Migration/MigrationHelperTrait.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle diff --git a/src/Migration/Version300.php b/src/Migration/Version300.php index 55ebf7b..f3a5e9a 100644 --- a/src/Migration/Version300.php +++ b/src/Migration/Version300.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle diff --git a/src/Module/OddThemeSetup.php b/src/Module/OddThemeSetup.php index e76e2b8..b3643ff 100644 --- a/src/Module/OddThemeSetup.php +++ b/src/Module/OddThemeSetup.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle diff --git a/src/ThemeUtils.php b/src/ThemeUtils.php index b42852e..8cb7aab 100644 --- a/src/ThemeUtils.php +++ b/src/ThemeUtils.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle diff --git a/tests/ContaoThemesNetOddThemeBundleTest.php b/tests/ContaoThemesNetOddThemeBundleTest.php index 26a6f21..cba2ee5 100644 --- a/tests/ContaoThemesNetOddThemeBundleTest.php +++ b/tests/ContaoThemesNetOddThemeBundleTest.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle diff --git a/tests/ContaoThemesNetOddThemeExtensionTest.php b/tests/ContaoThemesNetOddThemeExtensionTest.php index e30f692..d96e11d 100644 --- a/tests/ContaoThemesNetOddThemeExtensionTest.php +++ b/tests/ContaoThemesNetOddThemeExtensionTest.php @@ -5,7 +5,7 @@ /* * pdir theme odd bundle for Contao Open Source CMS * - * Copyright (C) 2023 pdir / digital agentur + * Copyright (C) 2024 pdir / digital agentur * * @package theme odd bundle * @link https://github.com/contao-themes-net/odd-theme-bundle