Commit inicial powerservice

This commit is contained in:
Gabriel
2026-10-19 12:45:45 -06:00
commit ad85486fe2
10158 changed files with 2736804 additions and 0 deletions
@@ -0,0 +1,188 @@
/*!
* jQuery Smooth Scroll - v1.6.0 - 2015-12-26
* https://github.com/kswedberg/jquery-smooth-scroll
* Copyright (c) 2015 Karl Swedberg
* Licensed MIT
*/
!function(a){"function"==typeof define&&define.amd?
// AMD. Register as an anonymous module.
define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(a){function b(a){return a.replace(/(:|\.|\/)/g,"\\$1")}var c="1.6.0",d={},e={exclude:[],excludeWithin:[],offset:0,
// one of 'top' or 'left'
direction:"top",
// if set, bind click events through delegation
// supported since jQuery 1.4.2
delegateSelector:null,
// jQuery set of elements you wish to scroll (for $.smoothScroll).
// if null (default), $('html, body').firstScrollable() is used.
scrollElement:null,
// only use if you want to override default behavior
scrollTarget:null,
// fn(opts) function to be called before scrolling occurs.
// `this` is the element(s) being scrolled
beforeScroll:function(){},
// fn(opts) function to be called after scrolling occurs.
// `this` is the triggering element
afterScroll:function(){},easing:"swing",speed:400,
// coefficient for "auto" speed
autoCoefficient:2,
// $.fn.smoothScroll only: whether to prevent the default click action
preventDefault:!0},f=function(b){var c=[],d=!1,e=b.dir&&"left"===b.dir?"scrollLeft":"scrollTop";
// If no scrollable elements, fall back to <body>,
// if it's in the jQuery collection
// (doing this because Safari sets scrollTop async,
// so can't set it to 1 and immediately get the value.)
// Use the first scrollable element if we're calling firstScrollable()
return this.each(function(){var b=a(this);if(this!==document&&this!==window)
// if scroll(Top|Left) === 0, nudge the element 1px and see if it moves
// then put it back, of course
return!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(b[e]()>0?c.push(this):(b[e](1),d=b[e]()>0,d&&c.push(this),b[e](0))):(c.push(document.scrollingElement),!1)}),c.length||this.each(function(){"BODY"===this.nodeName&&(c=[this])}),"first"===b.el&&c.length>1&&(c=[c[0]]),c};a.fn.extend({scrollable:function(a){var b=f.call(this,{dir:a});return this.pushStack(b)},firstScrollable:function(a){var b=f.call(this,{el:"first",dir:a});return this.pushStack(b)},smoothScroll:function(c,d){if(c=c||{},"options"===c)return d?this.each(function(){var b=a(this),c=a.extend(b.data("ssOpts")||{},d);a(this).data("ssOpts",c)}):this.first().data("ssOpts");var e=a.extend({},a.fn.smoothScroll.defaults,c),f=function(c){var d=this,f=a(this),g=a.extend({},e,f.data("ssOpts")||{}),h=e.exclude,i=g.excludeWithin,j=0,k=0,l=!0,m={},n=a.smoothScroll.filterPath(location.pathname),o=a.smoothScroll.filterPath(d.pathname),p=location.hostname===d.hostname||!d.hostname,q=g.scrollTarget||o===n,r=b(d.hash);if(g.scrollTarget||p&&q&&r){for(;l&&j<h.length;)f.is(b(h[j++]))&&(l=!1);for(;l&&k<i.length;)f.closest(i[k++]).length&&(l=!1)}else l=!1;l&&(g.preventDefault&&c.preventDefault(),a.extend(m,g,{scrollTarget:g.scrollTarget||r,link:d}),a.smoothScroll(m))};return null!==c.delegateSelector?this.undelegate(c.delegateSelector,"click.smoothscroll").delegate(c.delegateSelector,"click.smoothscroll",f):this.unbind("click.smoothscroll").bind("click.smoothscroll",f),this}}),a.smoothScroll=function(b,c){if("options"===b&&"object"==typeof c)return a.extend(d,c);var e,f,g,h,i,j=0,k="offset",l="scrollTop",m={},n={};"number"==typeof b?(e=a.extend({link:null},a.fn.smoothScroll.defaults,d),g=b):(e=a.extend({link:null},a.fn.smoothScroll.defaults,b||{},d),e.scrollElement&&(k="position","static"===e.scrollElement.css("position")&&e.scrollElement.css("position","relative"))),l="left"===e.direction?"scrollLeft":l,e.scrollElement?(f=e.scrollElement,/^(?:HTML|BODY)$/.test(f[0].nodeName)||(j=f[l]())):f=a("html, body").firstScrollable(e.direction),e.beforeScroll.call(f,e),g="number"==typeof b?b:c||a(e.scrollTarget)[k]()&&a(e.scrollTarget)[k]()[e.direction]||0,m[l]=g+j+e.offset,h=e.speed,"auto"===h&&(i=Math.abs(m[l]-f[l]()),h=i/e.autoCoefficient),n={duration:h,easing:e.easing,complete:function(){e.afterScroll.call(e.link,e)}},e.step&&(n.step=e.step),f.length?f.stop().animate(m,n):e.afterScroll.call(e.link,e)},a.smoothScroll.version=c,a.smoothScroll.filterPath=function(a){return a=a||"",a.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},
// default options
a.fn.smoothScroll.defaults=e});
/**
* jQuery Cookie plugin
*
* Copyright (c) 2010 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
jQuery.cookie=function(a,b,c){if(arguments.length>1&&String(b)!=="[object Object]"){c=jQuery.extend({},c);if(b===null||b===undefined){c.expires=-1}if(typeof c.expires==="number"){var d=c.expires,e=c.expires=new Date;e.setDate(e.getDate()+d)}b=String(b);return document.cookie=[encodeURIComponent(a),"=",c.raw?b:encodeURIComponent(b),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}c=b||{};var f,g=c.raw?function(a){return a}:decodeURIComponent;return(f=(new RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)")).exec(document.cookie))?g(f[1]):null}
jQuery(document).ready(function($) {
if ( typeof tocplus != 'undefined' ) {
$.fn.shrinkTOCWidth = function() {
$(this).css({
width: 'auto',
display: 'table'
});
if ( /MSIE 7\./.test(navigator.userAgent) )
$(this).css('width', '');
}
if ( tocplus.smooth_scroll == 1 ) {
var target = hostname = pathname = qs = hash = null;
// only bind to links generated by the plugin, not every anchor on the page
$(document).on('click', '#toc_container a, ul.toc_widget_list a', function(event) {
hostname = $(this).prop('hostname');
pathname = $(this).prop('pathname');
qs = $(this).prop('search');
hash = $(this).prop('hash');
// ie strips out the preceeding / from pathname
if ( pathname.length > 0 ) {
if ( pathname.charAt(0) != '/' ) {
pathname = '/' + pathname;
}
}
if ( (window.location.hostname == hostname) && (window.location.pathname == pathname) && (window.location.search == qs) && (hash !== '') ) {
// escape jquery selector chars, but keep the #
var hash_selector = hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g, '\\$1');
// check if element exists with id=__
if ( $( hash_selector ).length > 0 )
target = hash;
else {
// must be an anchor (a name=__)
anchor = hash;
anchor = anchor.replace('#', '');
target = 'a[name="' + anchor + '"]';
// verify it exists
if ( $(target).length == 0 )
target = '';
}
// check offset setting
if (typeof tocplus.smooth_scroll_offset != 'undefined') {
offset = -1 * tocplus.smooth_scroll_offset;
}
else {
if ($('#wpadminbar').length > 0) {
if ($('#wpadminbar').is(':visible'))
offset = -30; // admin bar exists, give it the default
else
offset = 0; // there is an admin bar but it's hidden, so no offset!
}
else
offset = 0; // no admin bar, so no offset!
}
if ( target ) {
$.smoothScroll({
scrollTarget: target,
offset: offset
});
}
}
});
}
if ( typeof tocplus.visibility_show != 'undefined' ) {
var invert = ( typeof tocplus.visibility_hide_by_default != 'undefined' ) ? true : false ;
var cookie_set = ( $.cookie ) ? !!$.cookie('tocplus_hidetoc') : false;
var hidden = ( invert ) ? ! cookie_set : cookie_set;
// the cookie is scoped to the current page so toggling one TOC doesn't affect other pages
var save_state = function( is_hidden ) {
if ( ! $.cookie )
return;
// clean up the legacy site-wide cookie so it can't override the per-page state
$.cookie('tocplus_hidetoc', null, { path: '/' });
if ( is_hidden != invert )
$.cookie('tocplus_hidetoc', '1', { expires: 30, path: window.location.pathname });
else
$.cookie('tocplus_hidetoc', null, { path: window.location.pathname });
};
var toggle_style = ( typeof tocplus.toggle_style != 'undefined' ) ? tocplus.toggle_style : 'brackets';
var toggle_label = hidden ? tocplus.visibility_show : tocplus.visibility_hide;
// The label is admin and shortcode supplied, and WP_Scripts::localize() has already
// decoded its HTML entities by the time it reaches us, so it can only be assigned
// as text or via .attr() - never concatenated into an HTML string.
var toggle_link = $('<a></a>').attr('href', '#');
var toggle_wrap = $('<span></span>').addClass('toc_toggle');
if ( 'brackets' === toggle_style ) {
toggle_wrap.addClass('toc_toggle_brackets')
.append( $('<span></span>').addClass('toc_brackets').text('[') )
.append( toggle_link.text( toggle_label ) )
.append( $('<span></span>').addClass('toc_brackets').text(']') );
} else {
// Plus/minus and caret render a glyph (styled in CSS off the container's
// .contracted state); the label lives on aria-label for screen readers.
toggle_wrap.addClass('toc_toggle_icon').addClass('toc_toggle_' + toggle_style)
.append(
toggle_link.attr({ 'role': 'button', 'aria-label': toggle_label })
.append( $('<span></span>').addClass('toc_toggle_indicator').attr('aria-hidden', 'true') )
);
}
$('#toc_container .toc_title').append( document.createTextNode(' ') ).append( toggle_wrap );
if ( hidden ) {
$('ul.toc_list').hide();
$('#toc_container').addClass('contracted').shrinkTOCWidth();
}
$('span.toc_toggle a').click(function(event) {
event.preventDefault();
// track state via the container class rather than the label text,
// which breaks when translation plugins rewrite the DOM
var hide = ! $('#toc_container').hasClass('contracted');
var label = hide ? tocplus.visibility_show : tocplus.visibility_hide;
if ( 'brackets' === toggle_style ) {
$(this).text( label );
} else {
$(this).attr( 'aria-label', label );
}
save_state( hide );
if ( hide ) {
$('ul.toc_list').hide('fast');
$('#toc_container').addClass('contracted').shrinkTOCWidth();
} else {
$('#toc_container').css('width', tocplus.width).removeClass('contracted');
$('ul.toc_list').show('fast');
}
});
}
}
});
File diff suppressed because one or more lines are too long
@@ -0,0 +1,160 @@
#toc_container ul,#toc_container li {
margin:0;
padding:0;
list-style-position:inside;
}
#toc_container.no_bullets ul,
#toc_container.no_bullets li,
#toc_container.no_bullets ul li,
.toc_widget_list.no_bullets,
.toc_widget_list.no_bullets li {
background:none;
list-style-type:none;
list-style:none;
}
#toc_container.have_bullets li {
padding-left:12px;
}
#toc_container.toc_numbered ul {
list-style:none;
}
#toc_container ul ul {
margin-left:1.5em;
}
#toc_container {
background:#f9f9f9;
border:1px solid #aaa;
padding:10px;
margin-bottom:1em;
width:auto;
display:table;
font-size:95%;
}
#toc_container.toc_light_blue {
background:#edf6ff;
}
#toc_container.toc_white {
background:#fff;
}
#toc_container.toc_black {
background:#000;
}
#toc_container.toc_transparent {
background:none transparent;
}
#toc_container .toc_title {
text-align:left;
font-weight:700;
margin:0;
padding:0;
}
#toc_container.toc_title_center .toc_title {
text-align:center;
}
#toc_container.toc_title_right .toc_title {
text-align:right;
}
#toc_container.toc_black .toc_title {
color:#aaa;
}
#toc_container.toc_black a,
#toc_container.toc_black a:visited {
color:#fff;
}
#toc_container.toc_black a:hover {
color:#fff;
}
#toc_container span.toc_toggle {
font-weight:400;
font-size:90%;
}
#toc_container .toc_toggle_icon a {
text-decoration:none;
line-height:1;
}
#toc_container .toc_toggle_indicator {
display:inline-block;
line-height:1;
}
/* The border lives on the focusable <a> so the focus outline hugs the visible box. */
#toc_container .toc_toggle_plus_minus a {
display:inline-flex;
align-items:center;
justify-content:center;
width:1.3em;
height:1.3em;
border:1px solid currentColor;
border-radius:3px;
vertical-align:middle;
}
#toc_container .toc_toggle_plus_minus .toc_toggle_indicator {
font-size:0.8em;
}
#toc_container .toc_toggle_indicator::before {
font-weight:700;
}
#toc_container .toc_toggle_plus_minus .toc_toggle_indicator::before {
content:'\2212';
}
#toc_container.contracted .toc_toggle_plus_minus .toc_toggle_indicator::before {
content:'\002B';
}
#toc_container .toc_toggle_caret .toc_toggle_indicator::before {
content:'\25BE';
}
#toc_container.contracted .toc_toggle_caret .toc_toggle_indicator::before {
content:'\25B8';
}
#toc_container .toc_title + ul.toc_list {
margin-top:1em;
}
.toc_wrap_left {
float:left;
margin-right:10px;
}
.toc_wrap_right {
float:right;
margin-left:10px;
}
#toc_container a {
text-decoration:none;
text-shadow:none;
}
#toc_container a:hover {
text-decoration:underline;
}
.toc_sitemap_posts_letter {
font-size:1.5em;
font-style:italic;
}
@@ -0,0 +1 @@
#toc_container li,#toc_container ul{margin:0;padding:0;list-style-position:inside}#toc_container.no_bullets li,#toc_container.no_bullets ul,#toc_container.no_bullets ul li,.toc_widget_list.no_bullets,.toc_widget_list.no_bullets li{background:0 0;list-style-type:none;list-style:none}#toc_container.have_bullets li{padding-left:12px}#toc_container.toc_numbered ul{list-style:none}#toc_container ul ul{margin-left:1.5em}#toc_container{background:#f9f9f9;border:1px solid #aaa;padding:10px;margin-bottom:1em;width:auto;display:table;font-size:95%}#toc_container.toc_light_blue{background:#edf6ff}#toc_container.toc_white{background:#fff}#toc_container.toc_black{background:#000}#toc_container.toc_transparent{background:none transparent}#toc_container .toc_title{text-align:left;font-weight:700;margin:0;padding:0}#toc_container.toc_title_center .toc_title{text-align:center}#toc_container.toc_title_right .toc_title{text-align:right}#toc_container.toc_black .toc_title{color:#aaa}#toc_container.toc_black a,#toc_container.toc_black a:visited{color:#fff}#toc_container.toc_black a:hover{color:#fff}#toc_container span.toc_toggle{font-weight:400;font-size:90%}#toc_container .toc_toggle_icon a{text-decoration:none;line-height:1}#toc_container .toc_toggle_indicator{display:inline-block;line-height:1}#toc_container .toc_toggle_plus_minus a{display:inline-flex;align-items:center;justify-content:center;width:1.3em;height:1.3em;border:1px solid currentColor;border-radius:3px;vertical-align:middle}#toc_container .toc_toggle_plus_minus .toc_toggle_indicator{font-size:.8em}#toc_container .toc_toggle_indicator::before{font-weight:700}#toc_container .toc_toggle_plus_minus .toc_toggle_indicator::before{content:'\2212'}#toc_container.contracted .toc_toggle_plus_minus .toc_toggle_indicator::before{content:'\002B'}#toc_container .toc_toggle_caret .toc_toggle_indicator::before{content:'\25BE'}#toc_container.contracted .toc_toggle_caret .toc_toggle_indicator::before{content:'\25B8'}#toc_container .toc_title+ul.toc_list{margin-top:1em}.toc_wrap_left{float:left;margin-right:10px}.toc_wrap_right{float:right;margin-left:10px}#toc_container a{text-decoration:none;text-shadow:none}#toc_container a:hover{text-decoration:underline}.toc_sitemap_posts_letter{font-size:1.5em;font-style:italic}