PageSourceSearch

https://screwysextoys.com/_static/??-eJytkLEOwjAMRH+I4CIQhQHxKSgJF…sdSyD+wU80M7Ckt7Li7psuuPTdNezjuT90bv8nBTA==

js screwysextoys.com collected 2026-10-05 20:44:25 UTC 58,450 bytes, 1,115 lines download raw bytes

1jQuery(document).ready(function($){
2
3	// Disable click on empty hrefs
4	$( 'a[href="#"]' ).not( '#wpadminbar a' ).not( '#superadminbar a' ).click(function(){
5		return false;
6	});
7
8	// Hide carousel controls when there's only one slide
9	$('.eb-carousel').each(function() {
10	  var items = $('.eb-carousel-inner .item').length;
11		if(items <= 1) {
12			$('.eb-ecarousel-control').hide();
13			$('.carousel-indicators').hide();
14		}
15	});
16
17	// Toggle the menu on mobile devices
18	$('.menu-toggle').click(function(){
19		$('.menu').toggleClass('expanded');
20	});
21
22    //Clear the text in the search box on focus
23		var div = $('div.month-list'),
24    ul = $('ul.months'),
25    // unordered list's left margin
26    ulPadding = 15;
27
28		    //Get menu width
29    var divWidth = div.width();
30
31    //Remove scrollbars
32    div.css({overflow: 'hidden'});
33
34    //Find last image container
35    var lastLi = ul.find('li:last-child');
36
37    //When user move mouse over menu
38    div.mousemove(function(e){
39
40      //As images are loaded ul width increases,
41      //so we recalculate it each time
42      var ulWidth = lastLi[0].offsetLeft + lastLi.outerWidth() + ulPadding;
43
44      var left = (e.pageX - div.offset().left) * (ulWidth-divWidth) / divWidth;
45      div.scrollLeft(left);
46    });
47		$('.dropdown-toggle').click(function(){
48			var showClass = $(this).attr("data-toggle");
49			$('.' + showClass).toggle();
50			return false;
51		});
52		$('tr td:last-child a[data-toggle="popover"]').popover({
53			trigger: 'click',
54			html: true,
55			placement: 'left'
56		});
57		$('tr td:nth-child(6n) a[data-toggle="popover"]').popover({
58			trigger: 'click',
59			html: true,
60			placement: 'left'
61		});
62		$('[data-toggle="popover"]').popover({
63		    trigger: 'click',
64				html: true,
65				placement: 'right'
66		});
67
68		var $visiblePopover;
69
70		$('body').on('click', '[data-toggle="popover"]', function(e) {
71		    var $this = $(this);
72		    // check if the one clicked is now shown
73		    if ($this.data('popover').tip().hasClass('in')) {
74
75		        // if another was showing, hide it
76		        $visiblePopover && $visiblePopover.popover('hide');
77
78		        // then store the current popover
79		        $visiblePopover = $this;
80		    } else { // if it was hidden, then nothing must be showing
81		        $visiblePopover = '';
82		    }
83				return false;
84		});
85
86	// Bootstrap Collapse
87	$(".collapse").collapse();
88
89	var container = $( '.menu' );
90
91	/**
92	 * Sets or removes .focus class on an element.
93	 */
94	function toggleFocus() {
95		var self = this;
96
97		// Move up through the ancestors of the current link until we hit .menu.
98		while ( -1 === self.className.indexOf( '.menu' ) ) {
99
100			// On li elements toggle the class .focus.
101			if ( 'li' === self.tagName.toLowerCase() ) {
102				if ( -1 !== self.className.indexOf( 'focus' ) ) {
103					self.className = self.className.replace( ' focus', '' );
104				} else {
105					self.className += ' focus';
106				}
107			}
108
109			self = self.parentElement;
110		}
111	}
112
113	/**
114	 * Toggles `focus` class to allow submenu access on tablets.
115	 */
116	( function ( container ) {
117		var touchStartFn,
118			parentLink = container.find( '.menu-item-has-children > a, .page_item_has_children > a' );
119
120		if ( 'ontouchstart' in window ) {
121			touchStartFn = function( e ) {
122				var menuItem = this.parentNode;
123
124				console.log( this.parentNode );
125
126				if ( ! menuItem.classList.contains( 'focus' ) ) {
127
128					e.preventDefault();
129					for( var i = 0; i < menuItem.parentNode.children.length; ++i ) {
130						if ( menuItem === menuItem.parentNode.children[i] ) {
131							continue;
132						}
133						menuItem.parentNode.children[i].classList.remove( 'focus' );
134					}
135					menuItem.classList.add( 'focus' );
136				} else {
137					menuItem.classList.remove( 'focus' );
138				}
139			};
140
141			for ( var i = 0; i < parentLink.length; ++i ) {
142				parentLink[i].addEventListener( 'touchstart', touchStartFn, false );
143			}
144		}
145	} ( container ) );
146});
147;
148/* ==========================================================
149 * bootstrap-carousel.js v2.3.1
150 * http://twitter.github.com/bootstrap/javascript.html#carousel
151 * ==========================================================
152 * Copyright 2012 Twitter, Inc.
153 *
154 * Licensed under the Apache License, Version 2.0 (the "License");
155 * you may not use this file except in compliance with the License.
156 * You may obtain a copy of the License at
157 *
158 * http://www.apache.org/licenses/LICENSE-2.0
159 *
160 * Unless required by applicable law or agreed to in writing, software
161 * distributed under the License is distributed on an "AS IS" BASIS,
162 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
163 * See the License for the specific language governing permissions and
164 * limitations under the License.
165 * ========================================================== */
166
167
168!function ($) {
169
170  "use strict"; // jshint ;_;
171
172
173 /* CAROUSEL CLASS DEFINITION
174  * ========================= */
175
176  var Carousel = function (element, options) {
177    this.$element = $(element)
178    this.$indicators = this.$element.find('.carousel-indicators')
179    this.options = options
180    this.options.pause == 'hover' && this.$element
181      .on('mouseenter', $.proxy(this.pause, this))
182      .on('mouseleave', $.proxy(this.cycle, this))
183  }
184
185  Carousel.prototype = {
186
187    cycle: function (e) {
188      if (!e) this.paused = false
189      if (this.interval) clearInterval(this.interval);
190      this.options.interval
191        && !this.paused
192        && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
193      return this
194    }
195
196  , getActiveIndex: function () {
197      this.$active = this.$element.find('.item.active')
198      this.$items = this.$active.parent().children()
199      return this.$items.index(this.$active)
200    }
201
202  , to: function (pos) {
203      var activeIndex = this.getActiveIndex()
204        , that = this
205
206      if (pos > (this.$items.length - 1) || pos < 0) return
207
208      if (this.sliding) {
209        return this.$element.one('slid', function () {
210          that.to(pos)
211        })
212      }
213
214      if (activeIndex == pos) {
215        return this.pause().cycle()
216      }
217
218      return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
219    }
220
221  , pause: function (e) {
222      if (!e) this.paused = true
223      if (this.$element.find('.next, .prev').length && $.support.transition.end) {
224        this.$element.trigger($.support.transition.end)
225        this.cycle(true)
226      }
227      clearInterval(this.interval)
228      this.interval = null
229      return this
230    }
231
232  , next: function () {
233      if (this.sliding) return
234      return this.slide('next')
235    }
236
237  , prev: function () {
238      if (this.sliding) return
239      return this.slide('prev')
240    }
241
242  , slide: function (type, next) {
243      var $active = this.$element.find('.item.active')
244        , $next = next || $active[type]()
245        , isCycling = this.interval
246        , direction = type == 'next' ? 'left' : 'right'
247        , fallback  = type == 'next' ? 'first' : 'last'
248        , that = this
249        , e
250
251      this.sliding = true
252
253      isCycling && this.pause()
254
255      $next = $next.length ? $next : this.$element.find('.item')[fallback]()
256
257      e = $.Event('slide', {
258        relatedTarget: $next[0]
259      , direction: direction
260      })
261
262      if ($next.hasClass('active')) return
263
264      if (this.$indicators.length) {
265        this.$indicators.find('.active').removeClass('active')
266        this.$element.one('slid', function () {
267          var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
268          $nextIndicator && $nextIndicator.addClass('active')
269        })
270      }
271
272      if ($.support.transition && this.$element.hasClass('slide')) {
273        this.$element.trigger(e)
274        if (e.isDefaultPrevented()) return
275        $next.addClass(type)
276        $next[0].offsetWidth // force reflow
277        $active.addClass(direction)
278        $next.addClass(direction)
279        this.$element.one($.support.transition.end, function () {
280          $next.removeClass([type, direction].join(' ')).addClass('active')
281          $active.removeClass(['active', direction].join(' '))
282          that.sliding = false
283          setTimeout(function () { that.$element.trigger('slid') }, 0)
284        })
285      } else {
286        this.$element.trigger(e)
287        if (e.isDefaultPrevented()) return
288        $active.removeClass('active')
289        $next.addClass('active')
290        this.sliding = false
291        this.$element.trigger('slid')
292      }
293
294      isCycling && this.cycle()
295
296      return this
297    }
298
299  }
300
301
302 /* CAROUSEL PLUGIN DEFINITION
303  * ========================== */
304
305  var old = $.fn.carousel
306
307  $.fn.carousel = function (option) {
308    return this.each(function () {
309      var $this = $(this)
310        , data = $this.data('carousel')
311        , options = $.extend({}, $.fn.carousel.defaults, typeof option == 'object' && option)
312        , action = typeof option == 'string' ? option : options.slide
313      if (!data) $this.data('carousel', (data = new Carousel(this, options)))
314      if (typeof option == 'number') data.to(option)
315      else if (action) data[action]()
316      else if (options.interval) data.pause().cycle()
317    })
318  }
319
320  $.fn.carousel.defaults = {
321    interval: 5000
322  , pause: 'hover'
323  }
324
325  $.fn.carousel.Constructor = Carousel
326
327
328 /* CAROUSEL NO CONFLICT
329  * ==================== */
330
331  $.fn.carousel.noConflict = function () {
332    $.fn.carousel = old
333    return this
334  }
335
336 /* CAROUSEL DATA-API
337  * ================= */
338
339  $(document).on('click.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
340    var $this = $(this), href
341      , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
342      , options = $.extend({}, $target.data(), $this.data())
343      , slideIndex
344
345    $target.carousel(options)
346
347    if (slideIndex = $this.attr('data-slide-to')) {
348      $target.data('carousel').pause().to(slideIndex).cycle()
349    }
350
351    e.preventDefault()
352  })
353
354}(window.jQuery);;
355/* =============================================================
356 * bootstrap-collapse.js v2.3.1
357 * http://twitter.github.com/bootstrap/javascript.html#collapse
358 * =============================================================
359 * Copyright 2012 Twitter, Inc.
360 *
361 * Licensed under the Apache License, Version 2.0 (the "License");
362 * you may not use this file except in compliance with the License.
363 * You may obtain a copy of the License at
364 *
365 * http://www.apache.org/licenses/LICENSE-2.0
366 *
367 * Unless required by applicable law or agreed to in writing, software
368 * distributed under the License is distributed on an "AS IS" BASIS,
369 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
370 * See the License for the specific language governing permissions and
371 * limitations under the License.
372 * ============================================================ */
373
374
375!function ($) {
376
377  "use strict"; // jshint ;_;
378
379
380 /* COLLAPSE PUBLIC CLASS DEFINITION
381  * ================================ */
382
383  var Collapse = function (element, options) {
384    this.$element = $(element)
385    this.options = $.extend({}, $.fn.collapse.defaults, options)
386
387    if (this.options.parent) {
388      this.$parent = $(this.options.parent)
389    }
390
391    this.options.toggle && this.toggle()
392  }
393
394  Collapse.prototype = {
395
396    constructor: Collapse
397
398  , dimension: function () {
399      var hasWidth = this.$element.hasClass('width')
400      return hasWidth ? 'width' : 'height'
401    }
402
403  , show: function () {
404      var dimension
405        , scroll
406        , actives
407        , hasData
408
409      if (this.transitioning || this.$element.hasClass('in')) return
410
411      dimension = this.dimension()
412      scroll = $.camelCase(['scroll', dimension].join('-'))
413      actives = this.$parent && this.$parent.find('> .accordion-group > .in')
414
415      if (actives && actives.length) {
416        hasData = actives.data('collapse')
417        if (hasData && hasData.transitioning) return
418        actives.collapse('hide')
419        hasData || actives.data('collapse', null)
420      }
421
422      this.$element[dimension](0)
423      this.transition('addClass', $.Event('show'), 'shown')
424      $.support.transition && this.$element[dimension](this.$element[0][scroll])
425    }
426
427  , hide: function () {
428      var dimension
429      if (this.transitioning || !this.$element.hasClass('in')) return
430      dimension = this.dimension()
431      this.reset(this.$element[dimension]())
432      this.transition('removeClass', $.Event('hide'), 'hidden')
433      this.$element[dimension](0)
434    }
435
436  , reset: function (size) {
437      var dimension = this.dimension()
438
439      this.$element
440        .removeClass('collapse')
441        [dimension](size || 'auto')
442        [0].offsetWidth
443
444      this.$element[size !== null ? 'addClass' : 'removeClass']('collapse')
445
446      return this
447    }
448
449  , transition: function (method, startEvent, completeEvent) {
450      var that = this
451        , complete = function () {
452            if (startEvent.type == 'show') that.reset()
453            that.transitioning = 0
454            that.$element.trigger(completeEvent)
455          }
456
457      this.$element.trigger(startEvent)
458
459      if (startEvent.isDefaultPrevented()) return
460
461      this.transitioning = 1
462
463      this.$element[method]('in')
464
465      $.support.transition && this.$element.hasClass('collapse') ?
466        this.$element.one($.support.transition.end, complete) :
467        complete()
468    }
469
470  , toggle: function () {
471      this[this.$element.hasClass('in') ? 'hide' : 'show']()
472    }
473
474  }
475
476
477 /* COLLAPSE PLUGIN DEFINITION
478  * ========================== */
479
480  var old = $.fn.collapse
481
482  $.fn.collapse = function (option) {
483    return this.each(function () {
484      var $this = $(this)
485        , data = $this.data('collapse')
486        , options = $.extend({}, $.fn.collapse.defaults, $this.data(), typeof option == 'object' && option)
487      if (!data) $this.data('collapse', (data = new Collapse(this, options)))
488      if (typeof option == 'string') data[option]()
489    })
490  }
491
492  $.fn.collapse.defaults = {
493    toggle: true
494  }
495
496  $.fn.collapse.Constructor = Collapse
497
498
499 /* COLLAPSE NO CONFLICT
500  * ==================== */
501
502  $.fn.collapse.noConflict = function () {
503    $.fn.collapse = old
504    return this
505  }
506
507
508 /* COLLAPSE DATA-API
509  * ================= */
510
511  $(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) {
512    var $this = $(this), href
513      , target = $this.attr('data-target')
514        || e.preventDefault()
515        || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
516      , option = $(target).data('collapse') ? 'toggle' : $this.data()
517    $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
518    $(target).collapse(option)
519  })
520
521}(window.jQuery);;
522/* ===========================================================
523 * bootstrap-tooltip.js v2.3.1
524 * http://twitter.github.com/bootstrap/javascript.html#tooltips
525 * Inspired by the original jQuery.tipsy by Jason Frame
526 * ===========================================================
527 * Copyright 2012 Twitter, Inc.
528 *
529 * Licensed under the Apache License, Version 2.0 (the "License");
530 * you may not use this file except in compliance with the License.
531 * You may obtain a copy of the License at
532 *
533 * http://www.apache.org/licenses/LICENSE-2.0
534 *
535 * Unless required by applicable law or agreed to in writing, software
536 * distributed under the License is distributed on an "AS IS" BASIS,
537 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
538 * See the License for the specific language governing permissions and
539 * limitations under the License.
540 * ========================================================== */
541
542
543!function ($) {
544
545  "use strict"; // jshint ;_;
546
547
548 /* TOOLTIP PUBLIC CLASS DEFINITION
549  * =============================== */
550
551  var Tooltip = function (element, options) {
552    this.init('tooltip', element, options)
553  }
554
555  Tooltip.prototype = {
556
557    constructor: Tooltip
558
559  , init: function (type, element, options) {
560      var eventIn
561        , eventOut
562        , triggers
563        , trigger
564        , i
565
566      this.type = type
567      this.$element = $(element)
568      this.options = this.getOptions(options)
569      this.enabled = true
570
571      triggers = this.options.trigger.split(' ')
572
573      for (i = triggers.length; i--;) {
574        trigger = triggers[i]
575        if (trigger == 'click') {
576          this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
577        } else if (trigger != 'manual') {
578          eventIn = trigger == 'hover' ? 'mouseenter' : 'focus'
579          eventOut = trigger == 'hover' ? 'mouseleave' : 'blur'
580          this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
581          this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
582        }
583      }
584
585      this.options.selector ?
586        (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
587        this.fixTitle()
588    }
589
590  , getOptions: function (options) {
591      options = $.extend({}, $.fn[this.type].defaults, this.$element.data(), options)
592
593      if (options.delay && typeof options.delay == 'number') {
594        options.delay = {
595          show: options.delay
596        , hide: options.delay
597        }
598      }
599
600      return options
601    }
602
603  , enter: function (e) {
604      var defaults = $.fn[this.type].defaults
605        , options = {}
606        , self
607
608      this._options && $.each(this._options, function (key, value) {
609        if (defaults[key] != value) options[key] = value
610      }, this)
611
612      self = $(e.currentTarget)[this.type](options).data(this.type)
613
614      if (!self.options.delay || !self.options.delay.show) return self.show()
615
616      clearTimeout(this.timeout)
617      self.hoverState = 'in'
618      this.timeout = setTimeout(function() {
619        if (self.hoverState == 'in') self.show()
620      }, self.options.delay.show)
621    }
622
623  , leave: function (e) {
624      var self = $(e.currentTarget)[this.type](this._options).data(this.type)
625
626      if (this.timeout) clearTimeout(this.timeout)
627      if (!self.options.delay || !self.options.delay.hide) return self.hide()
628
629      self.hoverState = 'out'
630      this.timeout = setTimeout(function() {
631        if (self.hoverState == 'out') self.hide()
632      }, self.options.delay.hide)
633    }
634
635  , show: function () {
636      var $tip
637        , pos
638        , actualWidth
639        , actualHeight
640        , placement
641        , tp
642        , e = $.Event('show')
643
644      if (this.hasContent() && this.enabled) {
645        this.$element.trigger(e)
646        if (e.isDefaultPrevented()) return
647        $tip = this.tip()
648        this.setContent()
649
650        if (this.options.animation) {
651          $tip.addClass('fade')
652        }
653
654        placement = typeof this.options.placement == 'function' ?
655          this.options.placement.call(this, $tip[0], this.$element[0]) :
656          this.options.placement
657
658        $tip
659          .detach()
660          .css({ top: 0, left: 0, display: 'block' })
661
662        this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
663
664        pos = this.getPosition()
665
666        actualWidth = $tip[0].offsetWidth
667        actualHeight = $tip[0].offsetHeight
668
669        switch (placement) {
670          case 'bottom':
671            tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
672            break
673          case 'top':
674            tp = {top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2}
675            break
676          case 'left':
677            tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth}
678            break
679          case 'right':
680            tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width}
681            break
682        }
683
684        this.applyPlacement(tp, placement)
685        this.$element.trigger('shown')
686      }
687    }
688
689  , applyPlacement: function(offset, placement){
690      var $tip = this.tip()
691        , width = $tip[0].offsetWidth
692        , height = $tip[0].offsetHeight
693        , actualWidth
694        , actualHeight
695        , delta
696        , replace
697
698      $tip
699        .offset(offset)
700        .addClass(placement)
701        .addClass('in')
702
703      actualWidth = $tip[0].offsetWidth
704      actualHeight = $tip[0].offsetHeight
705
706      if (placement == 'top' && actualHeight != height) {
707        offset.top = offset.top + height - actualHeight
708        replace = true
709      }
710
711      if (placement == 'bottom' || placement == 'top') {
712        delta = 0
713
714        if (offset.left < 0){
715          delta = offset.left * -2
716          offset.left = 0
717          $tip.offset(offset)
718          actualWidth = $tip[0].offsetWidth
719          actualHeight = $tip[0].offsetHeight
720        }
721
722        this.replaceArrow(delta - width + actualWidth, actualWidth, 'left')
723      } else {
724        this.replaceArrow(actualHeight - height, actualHeight, 'top')
725      }
726
727      if (replace) $tip.offset(offset)
728    }
729
730  , replaceArrow: function(delta, dimension, position){
731      this
732        .arrow()
733        .css(position, delta ? (50 * (1 - delta / dimension) + "%") : '')
734    }
735
736  , setContent: function () {
737      var $tip = this.tip()
738        , title = this.getTitle()
739
740      $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
741      $tip.removeClass('fade in top bottom left right')
742    }
743
744  , hide: function () {
745      var that = this
746        , $tip = this.tip()
747        , e = $.Event('hide')
748
749      this.$element.trigger(e)
750      if (e.isDefaultPrevented()) return
751
752      $tip.removeClass('in')
753
754      function removeWithAnimation() {
755        var timeout = setTimeout(function () {
756          $tip.off($.support.transition.end).detach()
757        }, 500)
758
759        $tip.one($.support.transition.end, function () {
760          clearTimeout(timeout)
761          $tip.detach()
762        })
763      }
764
765      $.support.transition && this.$tip.hasClass('fade') ?
766        removeWithAnimation() :
767        $tip.detach()
768
769      this.$element.trigger('hidden')
770
771      return this
772    }
773
774  , fixTitle: function () {
775      var $e = this.$element
776      if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
777        $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
778      }
779    }
780
781  , hasContent: function () {
782      return this.getTitle()
783    }
784
785  , getPosition: function () {
786      var el = this.$element[0]
787      return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {
788        width: el.offsetWidth
789      , height: el.offsetHeight
790      }, this.$element.offset())
791    }
792
793  , getTitle: function () {
794      var title
795        , $e = this.$element
796        , o = this.options
797
798      title = $e.attr('data-original-title')
799        || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)
800
801      return title
802    }
803
804  , tip: function () {
805      return this.$tip = this.$tip || $(this.options.template)
806    }
807
808  , arrow: function(){
809      return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
810    }
811
812  , validate: function () {
813      if (!this.$element[0].parentNode) {
814        this.hide()
815        this.$element = null
816        this.options = null
817      }
818    }
819
820  , enable: function () {
821      this.enabled = true
822    }
823
824  , disable: function () {
825      this.enabled = false
826    }
827
828  , toggleEnabled: function () {
829      this.enabled = !this.enabled
830    }
831
832  , toggle: function (e) {
833      var self = e ? $(e.currentTarget)[this.type](this._options).data(this.type) : this
834      self.tip().hasClass('in') ? self.hide() : self.show()
835    }
836
837  , destroy: function () {
838      this.hide().$element.off('.' + this.type).removeData(this.type)
839    }
840
841  }
842
843
844 /* TOOLTIP PLUGIN DEFINITION
845  * ========================= */
846
847  var old = $.fn.tooltip
848
849  $.fn.tooltip = function ( option ) {
850    return this.each(function () {
851      var $this = $(this)
852        , data = $this.data('tooltip')
853        , options = typeof option == 'object' && option
854      if (!data) $this.data('tooltip', (data = new Tooltip(this, options)))
855      if (typeof option == 'string') data[option]()
856    })
857  }
858
859  $.fn.tooltip.Constructor = Tooltip
860
861  $.fn.tooltip.defaults = {
862    animation: true
863  , placement: 'top'
864  , selector: false
865  , template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
866  , trigger: 'hover focus'
867  , title: ''
868  , delay: 0
869  , html: false
870  , container: false
871  }
872
873
874 /* TOOLTIP NO CONFLICT
875  * =================== */
876
877  $.fn.tooltip.noConflict = function () {
878    $.fn.tooltip = old
879    return this
880  }
881
882}(window.jQuery);
883;
884/* ===========================================================
885 * bootstrap-popover.js v2.3.1
886 * http://twitter.github.com/bootstrap/javascript.html#popovers
887 * ===========================================================
888 * Copyright 2012 Twitter, Inc.
889 *
890 * Licensed under the Apache License, Version 2.0 (the "License");
891 * you may not use this file except in compliance with the License.
892 * You may obtain a copy of the License at
893 *
894 * http://www.apache.org/licenses/LICENSE-2.0
895 *
896 * Unless required by applicable law or agreed to in writing, software
897 * distributed under the License is distributed on an "AS IS" BASIS,
898 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
899 * See the License for the specific language governing permissions and
900 * limitations under the License.
901 * =========================================================== */
902
903
904!function ($) {
905
906  "use strict"; // jshint ;_;
907
908
909 /* POPOVER PUBLIC CLASS DEFINITION
910  * =============================== */
911
912  var Popover = function (element, options) {
913    this.init('popover', element, options)
914  }
915
916
917  /* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js
918     ========================================== */
919
920  Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, {
921
922    constructor: Popover
923
924  , setContent: function () {
925      var $tip = this.tip()
926        , title = this.getTitle()
927        , content = this.getContent()
928
929      $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
930      $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content)
931
932      $tip.removeClass('fade top bottom left right in')
933    }
934
935  , hasContent: function () {
936      return this.getTitle() || this.getContent()
937    }
938
939  , getContent: function () {
940      var content
941        , $e = this.$element
942        , o = this.options
943
944      content = (typeof o.content == 'function' ? o.content.call($e[0]) :  o.content)
945        || $e.attr('data-content')
946
947      return content
948    }
949
950  , tip: function () {
951      if (!this.$tip) {
952        this.$tip = $(this.options.template)
953      }
954      return this.$tip
955    }
956
957  , destroy: function () {
958      this.hide().$element.off('.' + this.type).removeData(this.type)
959    }
960
961  })
962
963
964 /* POPOVER PLUGIN DEFINITION
965  * ======================= */
966
967  var old = $.fn.popover
968
969  $.fn.popover = function (option) {
970    return this.each(function () {
971      var $this = $(this)
972        , data = $this.data('popover')
973        , options = typeof option == 'object' && option
974      if (!data) $this.data('popover', (data = new Popover(this, options)))
975      if (typeof option == 'string') data[option]()
976    })
977  }
978
979  $.fn.popover.Constructor = Popover
980
981  $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, {
982    placement: 'right'
983  , trigger: 'click'
984  , content: ''
985  , template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
986  })
987
988
989 /* POPOVER NO CONFLICT
990  * =================== */
991
992  $.fn.popover.noConflict = function () {
993    $.fn.popover = old
994    return this
995  }
996
997}(window.jQuery);
998;
999!function(){"use strict";var e,t={noop:function(){}
999,texturize:function(e){return(e=(e=(e=(e+="").replace(/'/g,"&#8217;").replace(/&#039;/g,"&#8217;")).replace(/"/g,"&#8221;").replace(/&#034;/g,"&#8221;").replace(/&quot;/g,"&#8221;").replace(/[\u201D]/g,"&#8221;")).replace(/([\w]+)=&#[\d]+;(.+?)&#[\d]+;/g,'$1="$2"')).trim()},applyReplacements:function(e,t){if(e)return t?e.replace(/{(\d+)}/g,function(e,r){return void 0!==t[r]?t[r]:e}):e},getBackgroundImage:function(e){var t=document.createElement("canvas"),r=t.getContext&&t.getContext("2d");if(e){r.filter="blur(20px) ",r.drawImage(e,0,0);var o=t.toDataURL("image/png");return t=null,o}}},r=function(){function e(e,t){return Element.prototype.matches?e.matches(t):Element.prototype.msMatchesSelector?e.msMatchesSelector(t):void 0}function r(e,t,r,o){if(!e)return o();e.jpCarouselCancelFade&&e.jpCarouselCancelFade(),e.classList.remove("jp-carousel-fade"),e.style.removeProperty("display"),e.style.opacity=t,e.style.pointerEvents="none",e.offsetWidth,e.classList.add("jp-carousel-fade"),e.style.opacity=r;var a=1e3*parseFloat(getComputedStyle(e).transitionDuration)||0,n=setTimeout(function(){e.jpCarouselCancelFade=null,e.style.removeProperty("pointer-events"),o()},a+50);e.jpCarouselCancelFade=function(){clearTimeout(n),e.jpCarouselCancelFade=null}}return{closest:function(t,r){if(t.closest)return t.closest(r);var o=t;do{if(e(o,r))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null},matches:e,hide:function(e){e&&(e.style.display="none")},show:function(e){e&&(e.style.display="block")},fadeIn:function(e,o){r(e,0,1,o=o||t.noop)},fadeOut:function(e,o){o=o||t.noop,r(e,1,0,function(){e&&(e.style.display="none"),o()})},scrollToElement:function(e,t,r){if(!e||!t)return r?r():void 0;var o=t.querySelector(".jp-carousel-info-extra");o&&(o.style.minHeight=window.innerHeight-64+"px");var a=!0,n=Date.now(),i=t.scrollTop,l=Math.max(0,e.offsetTop-Math.max(0,window.innerHeight-function(e){var t=e.querySelector(".jp-carousel-info-footer"),r=e.querySelector(".jp-carousel-info-extra"),o=e.querySelector(".jp-carousel-info-content-wrapper");if(t&&r&&o){var a=window.getComputedStyle(r),n=parseInt(a.paddingTop,10)+parseInt(a.paddingBottom,10);return n=isNaN(n)?0:n,o.offsetHeight+t.offsetHeight+n}return 0}(t)))-t.scrollTop;function s(){a=!1}l=Math.min(l,t.scrollHeight-window.innerHeight),t.addEventListener("wheel",s),function e(){var c,u=Date.now(),d=(c=(u-n)/300)<.5?2*c*c:1-Math.pow(-2*c+2,2)/2,m=(d=d>1?1:d)*l;if(t.scrollTop=i+m,u<=n+300&&a)return requestAnimationFrame(e);r&&r(),o&&(o.style.minHeight=""),a=!1,t.removeEventListener("wheel",s)}()},getJSONAttribute:function(e,t){if(e&&e.hasAttribute(t))try{return JSON.parse(e.getAttribute(t))}catch{return}},convertToPlainText:function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML},stripHTML:function(e){var t=document.createElement("div");return t.innerHTML=e.replace(/<[^>]*>?/gm,""),t.textContent},emitEvent:function(e,t,r){var o;try{o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r||null})}catch{(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,r||null)}e.dispatchEvent(o)},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch},prefersReducedMotion:function(){return!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}}}();function o(){var o,a,n,i,l={},s={},c="",u=!1,d="div.gallery, div.tiled-gallery, ul.wp-block-gallery, ul.blocks-gallery-grid, figure.wp-block-gallery.has-nested-images, div.wp-block-jetpack-tiled-gallery, a.single-image-gallery",m=".gallery-item, .tiled-gallery-item, .blocks-gallery-item,  .tiled-gallery__item",p=m+", .wp-block-image",g={},h="undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.stat?wpcom.carousel.stat:t.noop,f="undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.pageview?wpcom.carousel.pageview:t.noop;function v(t){if(!u)switch(t.which){case 38:t.preventDefault(),g.overlay.scrollTop-=100;break;case 40:t.preventDefault(),g.overlay.scrollTop+=100;break;case 39:t.preventDefault(),e.slideNext();break;case 37:case 8:t.preventDefault(),e.slidePrev();break;case 27:t.preventDefault(),k()}}function y(){u=!0}function w(){u=!1}function S(e){e.role="button",e.tabIndex=0,e.ariaLabel=jetpackCarouselStrings.image_label}function j(){g.overlay||(g.overlay=document.querySelector(".jp-carousel-overlay"),g.container=g.overlay.querySelector(".jp-carousel-wrap"),g.gallery=g.container.querySelector(".jp-carousel"),g.info=g.overlay.querySelector(".jp-carousel-info"),g.caption=g.
999info.querySelector(".jp-carousel-caption"),g.commentField=g.overlay.querySelector("#jp-carousel-comment-form-comment-field"),g.emailField=g.overlay.querySelector("#jp-carousel-comment-form-email-field"),g.authorField=g.overlay.querySelector("#jp-carousel-comment-form-author-field"),g.urlField=g.overlay.querySelector("#jp-carousel-comment-form-url-field"),window.innerWidth<=760&&Math.round(window.innerWidth/760*110)<40&&r.isTouch(),[g.commentField,g.emailField,g.authorField,g.urlField].forEach(function(e){e&&(e.addEventListener("focus",y),e.addEventListener("blur",w))}),g.overlay.addEventListener("click",function(e){var t,o,a=e.target,n=!!r.closest(a,".jp-carousel-close-hint"),i=!!window.matchMedia("(max-device-width: 760px)").matches;a===g.overlay?i||k():n?k():a.classList.contains("jp-carousel-image-download")?h("download_original_click"):a.classList.contains("jp-carousel-comment-login")?(t=g.currentSlide,o=t?t.attrs.attachmentId:"0",window.location.href=jetpackCarouselStrings.login_url+"%23jp-carousel-"+o):r.closest(a,"#jp-carousel-comment-form-container")?function(e){var t=e.target,o=r.getJSONAttribute(g.container,"data-carousel-extra")||{},a=g.currentSlide.attrs.attachmentId,n=document.querySelector("#jp-carousel-comment-form-submit-and-info-wrapper"),i=document.querySelector("#jp-carousel-comment-form-spinner"),s=document.querySelector("#jp-carousel-comment-form-button-submit"),c=document.querySelector("#jp-carousel-comment-form");if(g.commentField&&g.commentField.getAttribute("id")===t.getAttribute("id"))y(),r.show(n);else if(r.matches(t,'input[type="submit"]')){e.preventDefault(),e.stopPropagation(),r.show(i),c.classList.add("jp-carousel-is-disabled");var u={action:"post_attachment_comment",nonce:jetpackCarouselStrings.nonce,blog_id:o.blog_id,id:a,comment:g.commentField.value};if(!u.comment.length)return void b(jetpackCarouselStrings.no_comment_text,!1);if(1!==Number(jetpackCarouselStrings.is_logged_in)&&(u.email=g.emailField.value,u.author=g.authorField.value,u.url=g.urlField.value,1===Number(jetpackCarouselStrings.require_name_email))){if(!u.email.length||!u.email.match("@"))return void b(jetpackCarouselStrings.no_comment_email,!1);if(!u.author.length)return void b(jetpackCarouselStrings.no_comment_author,!1)}var d=new XMLHttpRequest;d.open("POST",jetpackCarouselStrings.ajaxurl,!0),d.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),d.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE&&this.status>=200&&this.status<300){var e;try{e=JSON.parse(this.response)}catch{return void b(jetpackCarouselStrings.comment_post_error,!1)}if("approved"===e.comment_status){b(jetpackCarouselStrings.comment_approved,!0);var t=function(e){for(var t=0;t<g.slides.length;t++)if(g.slides[t].attrs.attachmentId===e)return g.slides[t];return null}(a);t&&(t.attrs.commentsCount=(parseInt(t.attrs.commentsCount,10)||0)+1)}else"unapproved"===e.comment_status?b(jetpackCarouselStrings.comment_unapproved,!0):b(jetpackCarouselStrings.comment_post_error,!1);W(),delete l[a],_(a,void 0,!0),s.value=jetpackCarouselStrings.post_comment,r.hide(i),c.classList.remove("jp-carousel-is-disabled")}else b(jetpackCarouselStrings.comment_post_error,!1)};var m=[];for(var p in u)if(p){var h=encodeURIComponent(p)+"="+encodeURIComponent(u[p]);m.push(h.replace(/%20/g,"+"))}var f=m.join("&");d.send(f)}}(e):(r.closest(a,".jp-carousel-photo-icons-container")||a.classList.contains("jp-carousel-photo-title"))&&function(e){e.preventDefault();var t=e.target,o=g.info.querySelector(".jp-carousel-info-extra"),a=g.info.querySelector(".jp-carousel-image-meta"),n=g.info.querySelector(".jp-carousel-comments-wrapper"),i=g.info.querySelector(".jp-carousel-icon-info"),s=g.info.querySelector(".jp-carousel-icon-comments");function c(){s&&s.classList.remove("jp-carousel-selected"),i.classList.toggle("jp-carousel-selected"),n&&n.classList.remove("jp-carousel-show"),a&&(a.classList.toggle("jp-carousel-show"),a.classList.contains("jp-carousel-show")?o.classList.add("jp-carousel-show"):o.classList.remove("jp-carousel-show"))}function u(){if(i&&i.classList.remove("jp-carousel-selected"),s.classList.toggle("jp-carousel-selected"),a&&a.classList.remove("jp-carousel-show"),n)if(n.classList.toggle("jp-carousel-show"),n.classList.contains("jp-carousel-show")){o.classList.add("jp-carousel-show");var e=g.currentSlide;if(e){var t=l[e.attrs.attachmentId];t?t.hasMore&&T(e.attrs.attachmentId,t.nextOffset):_(e.attrs.attachmentId)}}else o.classList.remove("jp-carousel-show")}(r.closest(t,".jp-carousel-icon-info")||t.classList.contains("jp-carousel-photo-title"))&&(a&&a.classList.contains("jp-carousel-show")?r.scrollToElement(g.overlay,g.overlay,c):(c(),r.scrollToElement(g.info,g.overlay))),r.closest(t,".jp-carousel-icon-comments")&&(n&&n.classList.contains("jp-carousel-show")?r.scrollToElement(g.overlay,g.overlay,u):(u(),r.scrollToElement(g.info,g.overlay)))}(e)}),window.addEventListener("keydown",v),g.overlay.addEventListener("jp_carousel.afterOpen",function(){w(),g.slides.length<=1||(g.slides.length<=5?r.show(g.info.querySelector(".jp-swiper-pagination")):r.show(g.info.querySelector(".jp-carousel-pagination")))}),g.overlay.addEventListener("jp_carousel.beforeClose",function(){y(),document.documentElement.style.removeProperty("height"),e&&e.enable(),r.hide(g.info.querySelector(".jp-swiper-pagination")),r.hide(g.info.querySelector(".jp-carousel-pagination"))}),g.overlay.addEventListener("jp_carousel.afterClose",function(){window.history.pushState?history.pushState("",document.title,window.location.pathname+window.location.search):window.location.href="",c="",g.isOpen=!1}),g.overlay.addEventListener("touchstart",function(e){e.touches.length>1&&e.preventDefault()}))}function b(e,t){var o=g.overlay.querySelector("#jp-carousel-comment-post-results"),a="jp-carousel-comment-post-"+(t?"success":"error");o.innerHTML='<span class="'+a+'">'+e+"</span>",r.hide(g.overlay.querySelector("#jp-carousel-comment-form-spinner")),g.overlay.querySelector("#jp-carousel-comment-form").classList.remove("jp-carousel-is-disabled"),r.show(o)}function L(){var e=document.querySelectorAll("a img[data-attachment-id]");Array.prototype.forEach.call(e,function(e){var t=e.parentElement,o=t.parentElement;if(!o.classList.contains("gallery-icon")&&!r.closest(o,m)&&t.hasAttribute("href")){var a=!1;t.getAttribute("href").split("?")[0]===e.getAttribute("data-orig-file").split("?")[0]&&1===Number(jetpackCarouselStrings.single_image_gallery_media_file)&&(a=!0),t.getAttribute("href")===e.getAttribute("data-permalink")&&(a=!0),a&&(S(e),t.classList.add("single-image-gallery"),t.setAttribute("data-carousel-extra",JSON.stringify({blog_id:Number(jetpackCarouselStrings.blog_id)})))}})}function x(t,r){g.isOpen?(C(r),e.slideTo(r+1)):z(t,{startIndex:r})}function C(e){(!e||e<0||e>g.slides.length)&&(e=0),g.currentSlide=g.slides[e];var a,n,i=g.currentSlide,s=i.attrs.attachmentId;M(g.slides[e]),function(e){var t=[],r=g.slides.length;if(r>1){var o=e>0?e-1:r-1;t.push(o);var a=e<r-1?e+1:0;t.push(a)}t.forEach(function(e){var t=g.slides[e];t&&(M(t),1!==Number(jetpackCarouselStrings.display_background_image)||t.backgroundImage||F(t))})}(e),1!==Number(jetpackCarouselStrings.display_background_image)||g.slides[e].backgroundImage||F(g.slides[e]),r.hide(g.caption),function(e){var t,o,a,n,i,l,s;if(n=g.overlay.querySelector(".jp-carousel-photo-caption"),i=g.overlay.querySelector(".jp-carousel-caption"),l=g.overlay.querySelector(".jp-carousel-photo-title"),s=g.overlay.querySelector(".jp-carousel-photo-description"),r.hide(n),r.hide(i),r.hide(l),r.hide(s),t=A(e.caption)||"",o=A(e.title)||"",a=A(e.desc)||"",(t||o||a)&&(t&&(n.innerHTML=t,i.innerHTML=t,r.show(n),r.show(i)),r.stripHTML(t)===r.stripHTML(o)&&(o=""),r.stripHTML(t)===r.stripHTML(a)&&(a=""),r.stripHTML(o)===r.stripHTML(a)&&(a=""),a&&(s.innerHTML=a,r.show(s),o||t||(n.textContent=r.stripHTML(a),r.show(n))),o)){var c=r.stripHTML(o);l.textContent=c,t||(n.textContent=c,i.textContent=c,r.show(n)),r.show(l)}}
999({caption:i.attrs.caption,title:i.attrs.title,desc:i.attrs.desc}),function(e){if(!e||1!==Number(jetpackCarouselStrings.display_exif))return!1;var t=g.info.querySelector(".jp-carousel-image-meta");if(!t)return!1;var r="";for(var o in e){var a=e[o],n=jetpackCarouselStrings.meta_data||[];if(0!==parseFloat(a)&&a.length&&-1!==n.indexOf(o)){switch(o){case"focal_length":a+="mm";break;case"shutter_speed":a=E(a);break;case"aperture":a="f/"+a}r+="<li><h5>"+jetpackCarouselStrings[o]+"</h5>"+a+"</li>"}}var i=t.querySelector("ul.jp-carousel-image-exif");if(""!==r){if(!i){(i=document.createElement("ul")).className="jp-carousel-image-exif";var l=t.querySelector(".jp-carousel-title-and-caption");l&&l.nextSibling?t.insertBefore(i,l.nextSibling):t.insertBefore(i,t.firstChild)}i.innerHTML=r,i.style.removeProperty("display")}else i&&i.parentNode.removeChild(i)}(g.slides[e].attrs.imageMeta),function(e){if(!e)return!1;var r,o=[e.attrs.origWidth,e.attrs.origHeight],a=document.createElement("a");a.href=e.attrs.src.replace(/\?.+$/,""),r=null!==a.hostname.match(/^i[\d]{1}\.wp\.com$/i)?a.href:e.attrs.origFile.replace(/\?.+$/,"");var n=g.info.querySelector(".jp-carousel-download-text"),i=g.info.querySelector(".jp-carousel-image-download");n.innerHTML=t.applyReplacements(jetpackCarouselStrings.download_original,o),i.setAttribute("href",r),i.style.removeProperty("display")}(i),1===Number(jetpackCarouselStrings.display_comments)&&(a=g.slides[e].attrs.commentsOpened,n=g.info.querySelector("#jp-carousel-comment-form-container"),1===parseInt(a,10)?r.fadeIn(n):r.fadeOut(n),function(e){var t=e.attrs.attachmentId,a=g.info.querySelector(".jp-carousel-comments"),n=l[t];if(clearInterval(o),r.hide(g.info.querySelector("#jp-carousel-comments-loading")),n)return a.innerHTML=n.html,H(n.count),r.show(a),void(n.hasMore&&I()&&T(t,n.nextOffset));a.innerHTML="",r.hide(a),H(parseInt(e.attrs.commentsCount,10)||0),I()&&_(t)}(i),r.hide(g.info.querySelector("#jp-carousel-comment-post-results")));var u=g.info.querySelector(".jp-carousel-pagination");if(u&&g.slides.length>5){var d=e+1;u.innerHTML="<span>"+d+" / "+g.slides.length+"</span>"}jetpackCarouselStrings.stats&&g.isOpen&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?"+jetpackCarouselStrings.stats+"&post="+encodeURIComponent(s)+"&rand="+Math.random()),g.isOpen&&f(s),c="#jp-carousel-"+s,window.location.hash=c}function k(){document.body.style.overflow=a,document.documentElement.style.overflow=n,W(),y(),r.emitEvent(g.overlay,"jp_carousel.beforeClose"),window.scrollTo(window.scrollX||window.pageXOffset||0,i||0),g.isOpen=!1,e.destroy(),g.slides=[],l={},s={},g.currentSlide=void 0,g.gallery.innerHTML="",r.fadeOut(g.overlay,function(){r.emitEvent(g.overlay,"jp_carousel.afterClose")})}function q(e){if("object"!=typeof e&&(e={}),void 0===e.origFile)return"";if(void 0===e.origWidth||void 0===e.maxWidth)return e.origFile;if(!e.largeFile)return e.origFile;var t=document.createElement("a");t.href=e.largeFile;var r=/^i[0-2]\.wp\.com$/i.test(t.hostname),o=function(e,t,r){var o,a=r?e.replace(/.*=([\d]+%2C[\d]+).*$/,"$1"):e.replace(/.*-([\d]+x[\d]+)\..+$/,"$1");return"9999"===(o=a!==e?r?a.split("%2C"):a.split("x"):[t,0])[0]&&(o[0]="0"),"9999"===o[1]&&(o[1]="0"),o}(e.largeFile,e.origWidth,r),a=parseInt(o[0],10),n=parseInt(o[1],10);e.origMaxWidth=e.maxWidth,e.origMaxHeight=e.maxHeight,void 0!==window.devicePixelRatio&&window.devicePixelRatio>1&&(e.maxWidth=e.maxWidth*window.devicePixelRatio,e.maxHeight=e.maxHeight*window.devicePixelRatio);var i=e.zoomHeadroom||1;if(i>1&&(e.maxWidth=e.maxWidth*i,e.maxHeight=e.maxHeight*i),a>=e.maxWidth||n>=e.maxHeight)return e.largeFile;if(r){if(-1===e.largeFile.lastIndexOf("?"))return e.largeFile;var l=function(e){var t;try{t=new URL(e)}catch(t){return e}var r=["quality","ssl","filter","brightness","contrast","colorize","smooth"],o=Array.from(t.searchParams.entries());return t.search="",o.forEach(([e,o])=>{r.includes(e)&&t.searchParams.append(e,o)}),t}(e.largeFile);return(e.origWidth>e.maxWidth||e.origHeight>e.maxHeight)&&(e.origMaxWidth=e.maxWidth,e.origMaxHeight=e.maxHeight,l.searchParams.set("fit",e.origMaxWidth+","+e.origMaxHeight)),l.toString()}return e.origFile}function E(e){return e>=1?Math.round(10*e)/10+"s":"1/"+Math.round(1/e)+"s"}
999function A(e){return!e.match(" ")&&e.match("_")?"":e}function I(){var e=g.info.querySelector(".jp-carousel-comments-wrapper");return!!e&&e.classList.contains("jp-carousel-show")}function H(e){var t=g.info.querySelector(".jp-carousel-icon-comments .jp-carousel-has-comments-indicator");t&&(e>0?(t.innerText=e,t.classList.add("jp-carousel-show")):t.classList.remove("jp-carousel-show"))}function T(e,t){clearInterval(o),o=setInterval(function(){g.container.scrollTop+150>window.innerHeight&&(clearInterval(o),_(e,t))},300)}function _(e,t,a){var n=void 0===t;if(clearInterval(o),e&&g.currentSlide&&g.currentSlide.attrs.attachmentId===e&&(!s[e]||a)){(!t||t<1)&&(t=0);var i=g.info.querySelector(".jp-carousel-comments"),c=g.info.querySelector("#jp-carousel-comments-loading");r.show(c),n&&(r.hide(i),i.innerHTML="");var u=new XMLHttpRequest;s[e]=u;var d=function(){return s[e]===u},m=jetpackCarouselStrings.ajaxurl+"?action=get_attachment_comments&nonce="+jetpackCarouselStrings.nonce+"&id="+e+"&offset="+t;u.open("GET",m),u.setRequestHeader("X-Requested-With","XMLHttpRequest");var p=function(){r.fadeIn(i),r.fadeOut(c)};u.onload=function(){if(d()&&(delete s[e],g.currentSlide&&g.currentSlide.attrs.attachmentId===e)){var o,a=u.status>=200&&u.status<300;try{o=JSON.parse(u.responseText)}catch{}if(a&&o&&Array.isArray(o)){n&&(i.innerHTML="");for(var m=0;m<o.length;m++){var h=o[m];if(!i.querySelector("#jp-carousel-comment-"+h.id)){var f=document.createElement("div");f.classList.add("jp-carousel-comment"),f.setAttribute("id","jp-carousel-comment-"+h.id),f.innerHTML='<div class="comment-gravatar">'+h.gravatar_markup+'</div><div class="comment-content"><div class="comment-author">'+h.author_markup+'</div><div class="comment-date">'+h.date_gmt+"</div>"+h.content+"</div>",i.appendChild(f)}}var v=o.length>=10,y=t+10;v&&T(e,y);var w=i.querySelectorAll(".jp-carousel-comment").length,S=Math.max(parseInt(g.currentSlide.attrs.commentsCount,10)||0,w);o.length>0&&(r.show(i),H(S)),l[e]={html:i.innerHTML,count:S,hasMore:v,nextOffset:y},r.hide(c)}else p()}},u.onerror=function(){d()&&(delete s[e],g.currentSlide&&g.currentSlide.attrs.attachmentId===e&&p())},u.send()}}function M(e){var t=e.attrs,r=e.el.querySelector("img");if(!r.hasAttribute("data-loaded"))if(r.setAttribute("itemprop","image"),r.setAttribute("data-loaded",1),t.previewImage&&t.previewImage!==t.src){r.src=t.previewImage,r.style.filter="blur(8px)";var o=new window.Image;o.addEventListener("load",function(){r.hasAttribute("data-zoom-loaded")||(r.src=t.src),r.style.filter=""},{once:!0}),o.addEventListener("error",function(){r.style.filter=""},{once:!0}),o.src=t.src}else r.src=t.src}function F(e){var t=e.attrs.originalElement;if(t)if(t.complete&&0!==t.naturalHeight)O(e,t);else{var r=function(){t.removeEventListener("error",o),O(e,t)},o=function(){t.removeEventListener("load",r)};t.addEventListener("load",r,{once:!0}),t.addEventListener("error",o,{once:!0})}}function O(e,r){var o=t.getBackgroundImage(r);o&&(e.backgroundImage=o,e.el.style.backgroundImage="url("+o+")",e.el.style.backgroundSize="cover",e.el.style.backgroundPosition="center")}function W(){g.commentField&&(g.commentField.value="")}function N(e,o){g.slides=[];var a={width:window.innerWidth,height:window.innerHeight-64};0!==o&&null!==e[o].getAttribute("data-gallery-src")&&((new Image).src=e[o].getAttribute("data-gallery-src")),Array.prototype.forEach.call(e,function(e,o){var n=r.closest(e,"a"),i=e.getAttribute("data-orig-file")||e.getAttribute("src-orig"),l=e.getAttribute("data-attachment-id")||e.getAttribute("data-id")||"0",s=document.querySelector('img[data-attachment-id="'+l+'"] + figcaption');s=s?s.innerHTML:e.getAttribute("data-image-caption");var c={originalElement:e,attachmentId:l,commentsOpened:e.getAttribute("data-comments-opened")||"0",commentsCount:e.getAttribute("data-comments-count")||"0",imageMeta:r.getJSONAttribute(e,"data-image-meta")||{},title:e.getAttribute("data-image-title")||"",desc:e.getAttribute("data-image-description")||"",largeFile:e.getAttribute("data-large-file")||"",origFile:i||"",thumbSize:{width:e.naturalWidth,height:e.naturalHeight},caption:s||"",permalink:n&&n.getAttribute("href"),src:i||e.getAttribute("src")||""},u=r.closest(e,".tiled-gallery-item"),d=u&&u.querySelector(".tiled-gallery-caption"),m=d&&d.innerHTML;m&&(c.caption=m);var p=function(e){var t=e.getAttribute("data-orig-size")||"";if(t){var r=t.split(",");return{width:parseInt(r[0],10),height:parseInt(r[1],10)}}return{width:e.getAttribute("data-original-width")||e.getAttribute("width")||void 0,height:e.getAttribute("data-original-height")||e.getAttribute("height")||void 0}}(e);if(c.origWidth=p.width||c.thumbSize.width,c.origHeight=p.height||c.thumbSize.height,"undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.generateImgSrc)c.src=wpcom.carousel.generateImgSrc(e,a);else{var h=function(e){return{origFile:c.src,origWidth:c.origWidth,origHeight:c.origHeight,maxWidth:a.width,maxHeight:a.height,largeFile:c.largeFile,zoomHeadroom:e}};c.zoomSrc=q(h(2)),c.src=q(h(1))}if(e.setAttribute("data-gallery-src",c.src),"0"!==c.attachmentId){c.title=t.texturize(c.title),c.desc=t.texturize(c.desc),c.caption=t.texturize(c.caption);var f=new Image,v=document.createElement("div");v.classList.add("swiper-slide"),v.setAttribute("itemprop","associatedMedia"),v.setAttribute("itemscope",""),v.setAttribute("itemtype","https://schema.org/ImageObject");var y=document.createElement("div");y.classList.add("swiper-zoom-container"),g.gallery.appendChild(v),v.appendChild(y),y.appendChild(f),v.setAttribute("data-attachment-id",c.attachmentId),v.setAttribute("data-permalink",c.permalink),v.setAttribute("data-orig-file",c.origFile),c.previewImage=e.currentSrc||e.getAttribute("src")||"";var w={el:v,attrs:c,index:o};g.slides.push(w)}})}function z(e,t){if(!window.JetpackSwiper){var o=document.querySelector("#jp-carousel-loading-overlay");r.show(o);var a=document.createElement("script");return a.id="jetpack-carousel-swiper-js",a.src=window.jetpackSwiperLibraryPath.url,a.async=!0,a.onload=function(){r.hide(o),R(e,t)},a.onerror=function(){r.hide(o)},void document.head.appendChild(a)}R(e,t)}function R(t,o){var c,u={imgSelector:".gallery-item [data-attachment-id], .tiled-gallery-item [data-attachment-id], img[data-attachment-id], img[data-id]",startIndex:0},d=r.getJSONAttribute(t,"data-carousel-extra");if(!d)return;const m=t.querySelectorAll(u.imgSelector);if(m.length&&(j(),!g.isOpen)){for(var p in g.isOpen=!0,a=getComputedStyle(document.body).overflow,document.body.style.overflow="hidden",n=getComputedStyle(document.documentElement).overflow,document.documentElement.style.overflow="hidden",i=window.scrollY||window.pageYOffset||0,g.container.setAttribute("data-carousel-extra",JSON.stringify(d)),h(["open","view_image"]),o||{})u[p]=o[p];-1===u.startIndex&&(u.startIndex=0),r.emitEvent(g.overlay,"jp_carousel.beforeOpen"),g.gallery.innerHTML="",l={},s={},g.overlay.style.opacity=1,g.overlay.style.display="block",N(m,u.startIndex),(e=new window.JetpackSwiper(".jp-carousel-swiper-container",{centeredSlides:!0,speed:r.prefersReducedMotion()?0:250,zoom:!0,loop:g.slides.length>1,enabled:g.slides.length>1,pagination:{el:".jp-swiper-pagination",clickable:!0},navigation:{nextEl:".jp-swiper-button-next",prevEl:".jp-swiper-button-prev"},initialSlide:u.startIndex,on:{init:function(){C(u.startIndex)}},preventClicks:!1,preventClicksPropagation:!1,preventInteractionOnTransition:!r.isTouch(),threshold:5})).on("slideChange",function(e){g.isOpen&&(C(e.realIndex),g.overlay.classList.remove("jp-carousel-hide-control
999s"))}),e.on("zoomChange",function(e,t){t>1&&(function(e){if(e&&e.attrs.zoomSrc&&e.attrs.zoomSrc!==e.attrs.src){var t=e.el.querySelector("img");t&&!t.hasAttribute("data-zoom-loaded")&&(t.setAttribute("data-zoom-loaded",1),t.src=e.attrs.zoomSrc)}}(g.currentSlide),g.overlay.classList.add("jp-carousel-hide-controls")),1===t&&g.overlay.classList.remove("jp-carousel-hide-controls")}),e.on("doubleTap",function(e){if(clearTimeout(c),1===e.zoom.scale)var t=setTimeout(function(){g.overlay.classList.remove("jp-carousel-hide-controls"),clearTimeout(t)},150)}),e.on("tap",function(){e.zoom.scale>1&&(c=setTimeout(function(){g.overlay.classList.toggle("jp-carousel-hide-controls")},150))}),r.fadeIn(g.overlay,function(){r.emitEvent(g.overlay,"jp_carousel.afterOpen")})}}function P(e){if("click"!==e.type){if("keydown"===e.type){const t=document.activeElement.parentElement,r=t&&t.classList.contains("tiled-gallery__item");" "!==e.key&&"Enter"!==e.key||!r||$(e)}}else $(e)}function D(e){return(e||"").split("?")[0].replace(/\/$/,"")}function J(e){"A"===e.tagName&&(e=e.querySelector("img")||e);var t=e.parentElement,o=t?t.parentElement:null,a=null;if(o&&o.classList.contains("wp-block-image")?a=t.getAttribute("href"):t&&t.classList.contains("wp-block-image")&&t.querySelector(":scope > a")&&(a=t.querySelector(":scope > a").getAttribute("href")),a){var n=D(a),i=D(e.getAttribute("data-orig-file")),l=D(e.getAttribute("data-permalink"));if(n!==i&&n!==l)return!1}return!(t&&t.classList.contains("gallery-caption")||r.matches(t,"figcaption"))}function $(e){if(window.CSS&&window.CSS.supports&&window.CSS.supports("display","grid")){var t,o=e.target,a=r.closest(o,d);if(a){if(!(t=a)||!t.getAttribute("data-carousel-extra"))return;if(!J(o))return;document.documentElement.style.height="auto",e.preventDefault(),e.stopPropagation();var n=r.closest(o,p),i=Array.prototype.indexOf.call(a.querySelectorAll(p),n);z(a,{startIndex:i})}}}document.body.addEventListener("click",P),document.body.addEventListener("keydown",P),document.querySelectorAll(m+"img").forEach(function(e){J(e)&&S(e)}),1===Number(jetpackCarouselStrings.single_image_gallery)&&(L(),document.body.addEventListener("is.post-load",function(){L()})),window.addEventListener("hashchange",function(){var e=/jp-carousel-(\d+)/;if(window.location.hash&&e.test(window.location.hash)){if(window.location.hash!==c||!g.isOpen)if(window.location.hash&&g.gallery&&!g.isOpen&&history.back)history.back();else{c=window.location.hash;for(var t=window.location.hash.match(e),r=parseInt(t[1],10),o=document.querySelectorAll(d),a=0;a<o.length;a++){for(var n,i=o[a],l=i.querySelectorAll("img"),s=0;s<l.length;s++)if(parseInt(l[s].getAttribute("data-attachment-id"),10)===r||parseInt(l[s].getAttribute("data-id"),10)===r){n=s;break}if(void 0!==n){x(i,n);break}}}}else g.isOpen&&k()}),window.location.hash&&r.emitEvent(window,"hashchange")}"loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)}();;
1000( function () {
1001	'use strict';
1002
1003	if ( typeof window.wpcom === 'undefined' ) {
1004		window.wpcom = {};
1005	}
1006
1007	if ( window.wpcom.carousel ) {
1008		return;
1009	}
1010
1011	var prebuilt_widths = jetpackCarouselStrings.widths;
1012	var pageviews_stats_args = jetpackCarouselStrings.stats_query_args;
1013
1014	var findFirstLargeEnoughWidth = function ( original_w, original_h, dest_w, dest_h ) {
1015		var inverse_ratio = original_h / original_w;
1016
1017		for ( var i = 0; i < prebuilt_widths.length; ++i ) {
1018			if ( prebuilt_widths[ i ] >= dest_w || prebuilt_widths[ i ] * inverse_ratio >= dest_h ) {
1019				return prebuilt_widths[ i ];
1020			}
1021		}
1022
1023		return original_w;
1024	};
1025
1026	var removeResizeFromImageURL = function ( url ) {
1027		return removeArgFromURL( url, 'resize' );
1028	};
1029
1030	var removeArgFromURL = function ( url, arg ) {
1031		var re = new RegExp( '[\\?&]' + arg + '(=[^?&]+)?' );
1032		if ( url.match( re ) ) {
1033			return url.replace( re, '' );
1034		}
1035		return url;
1036	};
1037
1038	var addWidthToImageURL = function ( url, width ) {
1039		width = parseInt( width, 10 );
1040		// Give devices with a higher devicePixelRatio higher-res images (Retina display = 2, Android phones = 1.5, etc)
1041		if ( 'undefined' !== typeof window.devicePixelRatio && window.devicePixelRatio > 1 ) {
1042			width = Math.round( width * window.devicePixelRatio );
1043		}
1044		url = addArgToURL( url, 'w', width );
1045		url = addArgToURL( url, 'h', '' );
1046		return url;
1047	};
1048
1049	var addArgToURL = function ( url, arg, value ) {
1050		var re = new RegExp( arg + '=[^?&]+' );
1051		if ( url.match( re ) ) {
1052			return url.replace( re, arg + '=' + value );
1053		} else {
1054			var divider = url.indexOf( '?' ) !== -1 ? '&' : '?';
1055			return url + divider + arg + '=' + value;
1056		}
1057	};
1058
1059	var stat = function ( names ) {
1060		if ( typeof names !== 'string' ) {
1061			names = names.join( ',' );
1062		}
1063
1064		new Image().src = window.location.protocol +
1065			'//pixel.wp.com/g.gif?v=wpcom-no-pv' +
1066			'&x_carousel=' + names +
1067			'&baba=' + Math.random();
1068	};
1069
1070	var lastTrackedPostId = null;
1071
1072	var pageview = function ( post_id ) {
1073		// Prevent duplicate tracking of the same post during slide transitions
1074		if ( post_id === lastTrackedPostId ) {
1075			return;
1076		}
1077
1078		lastTrackedPostId = post_id;
1079
1080		new Image().src = window.location.protocol +
1081			'//pixel.wp.com/g.gif?host=' + encodeURIComponent( window.location.host ) +
1082			'&ref=' + encodeURIComponent( document.referrer ) +
1083			'&rand=' + Math.random() +
1084			'&' + pageviews_stats_args +
1085			'&post=' + encodeURIComponent( post_id );
1086	};
1087
1088	var generateImgSrc = function ( srcItem, max ) {
1089		var origSize = srcItem.getAttribute( 'data-orig-size' ) || '';
1090
1091		var src = srcItem.getAttribute( 'src' ) || srcItem.getAttribute( 'original' ) || srcItem.getAttribute( 'data-original' ) || srcItem.getAttribute( 'data-lazy-src' );
1092		if ( src.indexOf( 'imgpress' ) !== -1 ) {
1093			src = srcItem.getAttribute( 'data-orig-file' );
1094		}
1095		// Square/Circle galleries use a resize param that needs to be removed.
1096		src = removeResizeFromImageURL( src );
1097		src = addWidthToImageURL(
1098			src,
1099			findFirstLargeEnoughWidth( origSize.width, origSize.height, max.width, max.height )
1100		);
1101
1102		return src;
1103	};
1104
1105	window.wpcom.carousel = {
1106		findFirstLargeEnoughWidth: findFirstLargeEnoughWidth,
1107		removeResizeFromImageURL: removeResizeFromImageURL,
1108		addWidthToImageURL: addWidthToImageURL,
1109		stat: stat,
1110		pageview: pageview,
1111		generateImgSrc: generateImgSrc
1112	};
1113
1114} )();
1115;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.