Cubet_Productlocator - Version 2.0.0

Version Notes

This is a stable version.

Download this release

Release Info

Developer Lovegin John
Extension Cubet_Productlocator
Version 2.0.0
Comparing to
See all releases


Code changes from version 1.0.2 to 2.0.0

app/code/community/Cubet/Productlocator/etc/system.xml CHANGED
@@ -42,6 +42,15 @@
42
  <show_in_website>1</show_in_website>
43
  <show_in_store>1</show_in_store>
44
  </key>
 
 
 
 
 
 
 
 
 
45
  <sensor translate="label comment">
46
  <label>Sensor</label>
47
  <comment>Enable or Disable Sensor</comment>
42
  <show_in_website>1</show_in_website>
43
  <show_in_store>1</show_in_store>
44
  </key>
45
+ <zoom translate="label comment">
46
+ <label>Zoom rate</label>
47
+ <comment>rate to be zoomed</comment>
48
+ <frontend_type>text</frontend_type>
49
+ <sort_order>2</sort_order>
50
+ <show_in_default>1</show_in_default>
51
+ <show_in_website>1</show_in_website>
52
+ <show_in_store>1</show_in_store>
53
+ </zoom>
54
  <sensor translate="label comment">
55
  <label>Sensor</label>
56
  <comment>Enable or Disable Sensor</comment>
app/design/adminhtml/default/default/layout/productlocator.xml CHANGED
@@ -2,7 +2,7 @@
2
  <layout>
3
  <adminhtml_catalog_product_edit>
4
  <reference name="head">
5
- <action method="addJs"><script>productlocator/jquery-1.10.2.js</script></action>
6
  <action method="addJs"><script>productlocator/noconflict.js</script></action>
7
  <action method="addItem"><type>skin_css</type><name>css/productlocator/productlocator.css</name><params/></action>
8
  </reference>
2
  <layout>
3
  <adminhtml_catalog_product_edit>
4
  <reference name="head">
5
+ <action method="addJs"><script>productlocator/jquery-2.1.1.min.js</script></action>
6
  <action method="addJs"><script>productlocator/noconflict.js</script></action>
7
  <action method="addItem"><type>skin_css</type><name>css/productlocator/productlocator.css</name><params/></action>
8
  </reference>
app/design/frontend/base/default/layout/productlocator.xml CHANGED
@@ -2,8 +2,8 @@
2
  <layout>
3
  <default>
4
  <reference name="head">
5
- <action method="addJs"><script>ajaxcart/jquery-1.10.2.js</script></action>
6
- <action method="addJs"><script>ajaxcart/noconflict.js</script></action>
7
  </reference>
8
  </default>
9
  <catalog_product_view>
2
  <layout>
3
  <default>
4
  <reference name="head">
5
+ <action method="addJs"><script>productlocator/jquery-2.1.1.min.js</script></action>
6
+ <action method="addJs"><script>productlocator/noconflict.js</script></action>
7
  </reference>
8
  </default>
9
  <catalog_product_view>
app/design/frontend/base/default/template/productlocator/locator.phtml CHANGED
@@ -81,7 +81,7 @@ if ($config['locator'] == '1') {
81
  var myCenter = new google.maps.LatLng('<?php echo $lat; ?>', '<?php echo $lon; ?>');
82
  var mapOptions = {
83
  center: myCenter,
84
- zoom: 8,
85
  mapTypeControl: false,
86
  draggable: true,
87
  scaleControl: false,
81
  var myCenter = new google.maps.LatLng('<?php echo $lat; ?>', '<?php echo $lon; ?>');
82
  var mapOptions = {
83
  center: myCenter,
84
+ zoom: <?php echo $config['zoom'];?>,
85
  mapTypeControl: false,
86
  draggable: true,
87
  scaleControl: false,
js/productlocator/infobox.js DELETED
@@ -1,763 +0,0 @@
1
- /**
2
- * @name InfoBox
3
- * @version 1.1.6 [May 9, 2011]
4
- * @author Gary Little (inspired by proof-of-concept code from Pamela Fox of Google)
5
- * @copyright Copyright 2010 Gary Little [gary at luxcentral.com]
6
- * @fileoverview InfoBox extends the Google Maps JavaScript API V3 <tt>OverlayView</tt> class.
7
- * <p>
8
- * An InfoBox behaves like a <tt>google.maps.InfoWindow</tt>, but it supports several
9
- * additional properties for advanced styling. An InfoBox can also be used as a map label.
10
- * <p>
11
- * An InfoBox also fires the same events as a <tt>google.maps.InfoWindow</tt>.
12
- * <p>
13
- * Browsers tested:
14
- * <p>
15
- * Mac -- Safari (4.0.4), Firefox (3.6), Opera (10.10), Chrome (4.0.249.43), OmniWeb (5.10.1)
16
- * <br>
17
- * Win -- Safari, Firefox, Opera, Chrome (3.0.195.38), Internet Explorer (8.0.6001.18702)
18
- * <br>
19
- * iPod Touch/iPhone -- Safari (3.1.2)
20
- */
21
-
22
- /*!
23
- *
24
- * Licensed under the Apache License, Version 2.0 (the "License");
25
- * you may not use this file except in compliance with the License.
26
- * You may obtain a copy of the License at
27
- *
28
- * http://www.apache.org/licenses/LICENSE-2.0
29
- *
30
- * Unless required by applicable law or agreed to in writing, software
31
- * distributed under the License is distributed on an "AS IS" BASIS,
32
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33
- * See the License for the specific language governing permissions and
34
- * limitations under the License.
35
- */
36
-
37
- /*jslint browser:true */
38
- /*global google */
39
-
40
- /**
41
- * @name InfoBoxOptions
42
- * @class This class represents the optional parameter passed to the {@link InfoBox} constructor.
43
- * @property {string|Node} content The content of the InfoBox (plain text or an HTML DOM node).
44
- * @property {boolean} disableAutoPan Disable auto-pan on <tt>open</tt> (default is <tt>false</tt>).
45
- * @property {number} maxWidth The maximum width (in pixels) of the InfoBox. Set to 0 if no maximum.
46
- * @property {Size} pixelOffset The offset (in pixels) from the top left corner of the InfoBox
47
- * (or the bottom left corner if the <code>alignBottom</code> property is <code>true</code>)
48
- * to the map pixel corresponding to <tt>position</tt>.
49
- * @property {LatLng} position The geographic location at which to display the InfoBox.
50
- * @property {number} zIndex The CSS z-index style value for the InfoBox.
51
- * Note: This value overrides a zIndex setting specified in the <tt>boxStyle</tt> property.
52
- * @property {string} boxClass The name of the CSS class defining the styles for the InfoBox container.
53
- * The default name is <code>infoBox</code>.
54
- * @property {Object} [boxStyle] An object literal whose properties define specific CSS
55
- * style values to be applied to the InfoBox. Style values defined here override those that may
56
- * be defined in the <code>boxClass</code> style sheet. If this property is changed after the
57
- * InfoBox has been created, all previously set styles (except those defined in the style sheet)
58
- * are removed from the InfoBox before the new style values are applied.
59
- * @property {string} closeBoxMargin The CSS margin style value for the close box.
60
- * The default is "2px" (a 2-pixel margin on all sides).
61
- * @property {string} closeBoxURL The URL of the image representing the close box.
62
- * Note: The default is the URL for Google's standard close box.
63
- * Set this property to "" if no close box is required.
64
- * @property {Size} infoBoxClearance Minimum offset (in pixels) from the InfoBox to the
65
- * map edge after an auto-pan.
66
- * @property {boolean} isHidden Hide the InfoBox on <tt>open</tt> (default is <tt>false</tt>).
67
- * @property {boolean} alignBottom Align the bottom left corner of the InfoBox to the <code>position</code>
68
- * location (default is <tt>false</tt> which means that the top left corner of the InfoBox is aligned).
69
- * @property {string} pane The pane where the InfoBox is to appear (default is "floatPane").
70
- * Set the pane to "mapPane" if the InfoBox is being used as a map label.
71
- * Valid pane names are the property names for the <tt>google.maps.MapPanes</tt> object.
72
- * @property {boolean} enableEventPropagation Propagate mousedown, click, dblclick,
73
- * and contextmenu events in the InfoBox (default is <tt>false</tt> to mimic the behavior
74
- * of a <tt>google.maps.InfoWindow</tt>). Set this property to <tt>true</tt> if the InfoBox
75
- * is being used as a map label. iPhone note: This property setting has no effect; events are
76
- * always propagated.
77
- */
78
-
79
- /**
80
- * Creates an InfoBox with the options specified in {@link InfoBoxOptions}.
81
- * Call <tt>InfoBox.open</tt> to add the box to the map.
82
- * @constructor
83
- * @param {InfoBoxOptions} [opt_opts]
84
- */
85
- function InfoBox(opt_opts) {
86
-
87
- opt_opts = opt_opts || {};
88
-
89
- google.maps.OverlayView.apply(this, arguments);
90
-
91
- // Standard options (in common with google.maps.InfoWindow):
92
- //
93
- this.content_ = opt_opts.content || "";
94
- this.disableAutoPan_ = opt_opts.disableAutoPan || false;
95
- this.maxWidth_ = opt_opts.maxWidth || 0;
96
- this.pixelOffset_ = opt_opts.pixelOffset || new google.maps.Size(0, 0);
97
- this.position_ = opt_opts.position || new google.maps.LatLng(0, 0);
98
- this.zIndex_ = opt_opts.zIndex || null;
99
-
100
- // Additional options (unique to InfoBox):
101
- //
102
- this.boxClass_ = opt_opts.boxClass || "infoBox";
103
- this.boxStyle_ = opt_opts.boxStyle || {};
104
- this.closeBoxMargin_ = opt_opts.closeBoxMargin || "2px";
105
- this.closeBoxURL_ = opt_opts.closeBoxURL || "http://www.google.com/intl/en_us/mapfiles/close.gif";
106
- if (opt_opts.closeBoxURL === "") {
107
- this.closeBoxURL_ = "";
108
- }
109
- this.infoBoxClearance_ = opt_opts.infoBoxClearance || new google.maps.Size(1, 1);
110
- this.isHidden_ = opt_opts.isHidden || false;
111
- this.alignBottom_ = opt_opts.alignBottom || false;
112
- this.pane_ = opt_opts.pane || "floatPane";
113
- this.enableEventPropagation_ = opt_opts.enableEventPropagation || false;
114
-
115
- this.div_ = null;
116
- this.closeListener_ = null;
117
- this.eventListener1_ = null;
118
- this.eventListener2_ = null;
119
- this.eventListener3_ = null;
120
- this.moveListener_ = null;
121
- this.contextListener_ = null;
122
- this.fixedWidthSet_ = null;
123
- }
124
-
125
- /* InfoBox extends OverlayView in the Google Maps API v3.
126
- */
127
- InfoBox.prototype = new google.maps.OverlayView();
128
-
129
- /**
130
- * Creates the DIV representing the InfoBox.
131
- * @private
132
- */
133
- InfoBox.prototype.createInfoBoxDiv_ = function () {
134
-
135
- var bw;
136
- var me = this;
137
-
138
- // This handler prevents an event in the InfoBox from being passed on to the map.
139
- //
140
- var cancelHandler = function (e) {
141
- e.cancelBubble = true;
142
-
143
- if (e.stopPropagation) {
144
-
145
- e.stopPropagation();
146
- }
147
- };
148
-
149
- // This handler ignores the current event in the InfoBox and conditionally prevents
150
- // the event from being passed on to the map. It is used for the contextmenu event.
151
- //
152
- var ignoreHandler = function (e) {
153
-
154
- e.returnValue = false;
155
-
156
- if (e.preventDefault) {
157
-
158
- e.preventDefault();
159
- }
160
-
161
- if (!me.enableEventPropagation_) {
162
-
163
- cancelHandler(e);
164
- }
165
- };
166
-
167
- if (!this.div_) {
168
-
169
- this.div_ = document.createElement("div");
170
-
171
- this.setBoxStyle_();
172
-
173
- if (typeof this.content_.nodeType === "undefined") {
174
- this.div_.innerHTML = this.getCloseBoxImg_() + this.content_;
175
- } else {
176
- this.div_.innerHTML = this.getCloseBoxImg_();
177
- this.div_.appendChild(this.content_);
178
- }
179
-
180
- // Add the InfoBox DIV to the DOM
181
- this.getPanes()[this.pane_].appendChild(this.div_);
182
-
183
- this.addClickHandler_();
184
-
185
- if (this.div_.style.width) {
186
-
187
- this.fixedWidthSet_ = true;
188
-
189
- } else {
190
-
191
- if (this.maxWidth_ !== 0 && this.div_.offsetWidth > this.maxWidth_) {
192
-
193
- this.div_.style.width = this.maxWidth_;
194
- this.div_.style.overflow = "auto";
195
- this.fixedWidthSet_ = true;
196
-
197
- } else { // The following code is needed to overcome problems with MSIE
198
-
199
- bw = this.getBoxWidths_();
200
-
201
- this.div_.style.width = (this.div_.offsetWidth - bw.left - bw.right) + "px";
202
- this.fixedWidthSet_ = false;
203
- }
204
- }
205
-
206
- this.panBox_(this.disableAutoPan_);
207
-
208
- if (!this.enableEventPropagation_) {
209
-
210
- // Cancel event propagation.
211
- //
212
- this.eventListener1_ = google.maps.event.addDomListener(this.div_, "mousedown", cancelHandler);
213
- this.eventListener2_ = google.maps.event.addDomListener(this.div_, "click", cancelHandler);
214
- this.eventListener3_ = google.maps.event.addDomListener(this.div_, "dblclick", cancelHandler);
215
- }
216
-
217
- this.contextListener_ = google.maps.event.addDomListener(this.div_, "contextmenu", ignoreHandler);
218
-
219
- /**
220
- * This event is fired when the DIV containing the InfoBox's content is attached to the DOM.
221
- * @name InfoBox#domready
222
- * @event
223
- */
224
- google.maps.event.trigger(this, "domready");
225
- }
226
- };
227
-
228
- /**
229
- * Returns the HTML <IMG> tag for the close box.
230
- * @private
231
- */
232
- InfoBox.prototype.getCloseBoxImg_ = function () {
233
-
234
- var img = "";
235
-
236
- if (this.closeBoxURL_ !== "") {
237
-
238
- img = "<img";
239
- img += " src='" + this.closeBoxURL_ + "'";
240
- img += " align=right"; // Do this because Opera chokes on style='float: right;'
241
- img += " style='";
242
- img += " position: relative;"; // Required by MSIE
243
- img += " cursor: pointer;";
244
- img += " margin: " + this.closeBoxMargin_ + ";";
245
- img += "'>";
246
- }
247
-
248
- return img;
249
- };
250
-
251
- /**
252
- * Adds the click handler to the InfoBox close box.
253
- * @private
254
- */
255
- InfoBox.prototype.addClickHandler_ = function () {
256
-
257
- var closeBox;
258
-
259
- if (this.closeBoxURL_ !== "") {
260
-
261
- closeBox = this.div_.firstChild;
262
- this.closeListener_ = google.maps.event.addDomListener(closeBox, 'click', this.getCloseClickHandler_());
263
-
264
- } else {
265
-
266
- this.closeListener_ = null;
267
- }
268
- };
269
-
270
- /**
271
- * Returns the function to call when the user clicks the close box of an InfoBox.
272
- * @private
273
- */
274
- InfoBox.prototype.getCloseClickHandler_ = function () {
275
-
276
- var me = this;
277
-
278
- return function (e) {
279
-
280
- // 1.0.3 fix: Always prevent propagation of a close box click to the map:
281
- e.cancelBubble = true;
282
-
283
- if (e.stopPropagation) {
284
-
285
- e.stopPropagation();
286
- }
287
-
288
- me.close();
289
-
290
- /**
291
- * This event is fired when the InfoBox's close box is clicked.
292
- * @name InfoBox#closeclick
293
- * @event
294
- */
295
- google.maps.event.trigger(me, "closeclick");
296
- };
297
- };
298
-
299
- /**
300
- * Pans the map so that the InfoBox appears entirely within the map's visible area.
301
- * @private
302
- */
303
- InfoBox.prototype.panBox_ = function (disablePan) {
304
-
305
- var map;
306
- var bounds;
307
- var xOffset = 0, yOffset = 0;
308
-
309
- if (!disablePan) {
310
-
311
- map = this.getMap();
312
-
313
- if (map instanceof google.maps.Map) { // Only pan if attached to map, not panorama
314
-
315
- if (!map.getBounds().contains(this.position_)) {
316
- // Marker not in visible area of map, so set center
317
- // of map to the marker position first.
318
- map.setCenter(this.position_);
319
- }
320
-
321
- bounds = map.getBounds();
322
-
323
- var mapDiv = map.getDiv();
324
- var mapWidth = mapDiv.offsetWidth;
325
- var mapHeight = mapDiv.offsetHeight;
326
- var iwOffsetX = this.pixelOffset_.width;
327
- var iwOffsetY = this.pixelOffset_.height;
328
- var iwWidth = this.div_.offsetWidth;
329
- var iwHeight = this.div_.offsetHeight;
330
- var padX = this.infoBoxClearance_.width;
331
- var padY = this.infoBoxClearance_.height;
332
- var pixPosition = this.getProjection().fromLatLngToContainerPixel(this.position_);
333
-
334
- if (pixPosition.x < (-iwOffsetX + padX)) {
335
- xOffset = pixPosition.x + iwOffsetX - padX;
336
- } else if ((pixPosition.x + iwWidth + iwOffsetX + padX) > mapWidth) {
337
- xOffset = pixPosition.x + iwWidth + iwOffsetX + padX - mapWidth;
338
- }
339
- if (this.alignBottom_) {
340
- if (pixPosition.y < (-iwOffsetY + padY + iwHeight)) {
341
- yOffset = pixPosition.y + iwOffsetY - padY - iwHeight;
342
- } else if ((pixPosition.y + iwOffsetY + padY) > mapHeight) {
343
- yOffset = pixPosition.y + iwOffsetY + padY - mapHeight;
344
- }
345
- } else {
346
- if (pixPosition.y < (-iwOffsetY + padY)) {
347
- yOffset = pixPosition.y + iwOffsetY - padY;
348
- } else if ((pixPosition.y + iwHeight + iwOffsetY + padY) > mapHeight) {
349
- yOffset = pixPosition.y + iwHeight + iwOffsetY + padY - mapHeight;
350
- }
351
- }
352
-
353
- if (!(xOffset === 0 && yOffset === 0)) {
354
-
355
- // Move the map to the shifted center.
356
- //
357
- var c = map.getCenter();
358
- map.panBy(xOffset, yOffset);
359
- }
360
- }
361
- }
362
- };
363
-
364
- /**
365
- * Sets the style of the InfoBox by setting the style sheet and applying
366
- * other specific styles requested.
367
- * @private
368
- */
369
- InfoBox.prototype.setBoxStyle_ = function () {
370
-
371
- var i, boxStyle;
372
-
373
- if (this.div_) {
374
-
375
- // Apply style values from the style sheet defined in the boxClass parameter:
376
- this.div_.className = this.boxClass_;
377
-
378
- // Clear existing inline style values:
379
- this.div_.style.cssText = "";
380
-
381
- // Apply style values defined in the boxStyle parameter:
382
- boxStyle = this.boxStyle_;
383
- for (i in boxStyle) {
384
-
385
- if (boxStyle.hasOwnProperty(i)) {
386
-
387
- this.div_.style[i] = boxStyle[i];
388
- }
389
- }
390
-
391
- // Fix up opacity style for benefit of MSIE:
392
- //
393
- if (typeof this.div_.style.opacity !== "undefined" && this.div_.style.opacity !== "") {
394
-
395
- this.div_.style.filter = "alpha(opacity=" + (this.div_.style.opacity * 100) + ")";
396
- }
397
-
398
- // Apply required styles:
399
- //
400
- this.div_.style.position = "absolute";
401
- this.div_.style.visibility = 'hidden';
402
- if (this.zIndex_ !== null) {
403
-
404
- this.div_.style.zIndex = this.zIndex_;
405
- }
406
- }
407
- };
408
-
409
- /**
410
- * Get the widths of the borders of the InfoBox.
411
- * @private
412
- * @return {Object} widths object (top, bottom left, right)
413
- */
414
- InfoBox.prototype.getBoxWidths_ = function () {
415
-
416
- var computedStyle;
417
- var bw = {top: 0, bottom: 0, left: 0, right: 0};
418
- var box = this.div_;
419
-
420
- if (document.defaultView && document.defaultView.getComputedStyle) {
421
-
422
- computedStyle = box.ownerDocument.defaultView.getComputedStyle(box, "");
423
-
424
- if (computedStyle) {
425
-
426
- // The computed styles are always in pixel units (good!)
427
- bw.top = parseInt(computedStyle.borderTopWidth, 10) || 0;
428
- bw.bottom = parseInt(computedStyle.borderBottomWidth, 10) || 0;
429
- bw.left = parseInt(computedStyle.borderLeftWidth, 10) || 0;
430
- bw.right = parseInt(computedStyle.borderRightWidth, 10) || 0;
431
- }
432
-
433
- } else if (document.documentElement.currentStyle) { // MSIE
434
-
435
- if (box.currentStyle) {
436
-
437
- // The current styles may not be in pixel units, but assume they are (bad!)
438
- bw.top = parseInt(box.currentStyle.borderTopWidth, 10) || 0;
439
- bw.bottom = parseInt(box.currentStyle.borderBottomWidth, 10) || 0;
440
- bw.left = parseInt(box.currentStyle.borderLeftWidth, 10) || 0;
441
- bw.right = parseInt(box.currentStyle.borderRightWidth, 10) || 0;
442
- }
443
- }
444
-
445
- return bw;
446
- };
447
-
448
- /**
449
- * Invoked when <tt>close</tt> is called. Do not call it directly.
450
- */
451
- InfoBox.prototype.onRemove = function () {
452
-
453
- if (this.div_) {
454
-
455
- this.div_.parentNode.removeChild(this.div_);
456
- this.div_ = null;
457
- }
458
- };
459
-
460
- /**
461
- * Draws the InfoBox based on the current map projection and zoom level.
462
- */
463
- InfoBox.prototype.draw = function () {
464
-
465
- this.createInfoBoxDiv_();
466
-
467
- var pixPosition = this.getProjection().fromLatLngToDivPixel(this.position_);
468
-
469
- this.div_.style.left = (pixPosition.x + this.pixelOffset_.width) + "px";
470
-
471
- if (this.alignBottom_) {
472
- this.div_.style.bottom = -(pixPosition.y + this.pixelOffset_.height) + "px";
473
- } else {
474
- this.div_.style.top = (pixPosition.y + this.pixelOffset_.height) + "px";
475
- }
476
-
477
- if (this.isHidden_) {
478
-
479
- this.div_.style.visibility = 'hidden';
480
-
481
- } else {
482
-
483
- this.div_.style.visibility = "visible";
484
- }
485
- };
486
-
487
- /**
488
- * Sets the options for the InfoBox. Note that changes to the <tt>maxWidth</tt>,
489
- * <tt>closeBoxMargin</tt>, <tt>closeBoxURL</tt>, and <tt>enableEventPropagation</tt>
490
- * properties have no affect until the current InfoBox is <tt>close</tt>d and a new one
491
- * is <tt>open</tt>ed.
492
- * @param {InfoBoxOptions} opt_opts
493
- */
494
- InfoBox.prototype.setOptions = function (opt_opts) {
495
- if (typeof opt_opts.boxClass !== "undefined") { // Must be first
496
-
497
- this.boxClass_ = opt_opts.boxClass;
498
- this.setBoxStyle_();
499
- }
500
- if (typeof opt_opts.boxStyle !== "undefined") { // Must be second
501
-
502
- this.boxStyle_ = opt_opts.boxStyle;
503
- this.setBoxStyle_();
504
- }
505
- if (typeof opt_opts.content !== "undefined") {
506
-
507
- this.setContent(opt_opts.content);
508
- }
509
- if (typeof opt_opts.disableAutoPan !== "undefined") {
510
-
511
- this.disableAutoPan_ = opt_opts.disableAutoPan;
512
- }
513
- if (typeof opt_opts.maxWidth !== "undefined") {
514
-
515
- this.maxWidth_ = opt_opts.maxWidth;
516
- }
517
- if (typeof opt_opts.pixelOffset !== "undefined") {
518
-
519
- this.pixelOffset_ = opt_opts.pixelOffset;
520
- }
521
- if (typeof opt_opts.position !== "undefined") {
522
-
523
- this.setPosition(opt_opts.position);
524
- }
525
- if (typeof opt_opts.zIndex !== "undefined") {
526
-
527
- this.setZIndex(opt_opts.zIndex);
528
- }
529
- if (typeof opt_opts.closeBoxMargin !== "undefined") {
530
-
531
- this.closeBoxMargin_ = opt_opts.closeBoxMargin;
532
- }
533
- if (typeof opt_opts.closeBoxURL !== "undefined") {
534
-
535
- this.closeBoxURL_ = opt_opts.closeBoxURL;
536
- }
537
- if (typeof opt_opts.infoBoxClearance !== "undefined") {
538
-
539
- this.infoBoxClearance_ = opt_opts.infoBoxClearance;
540
- }
541
- if (typeof opt_opts.isHidden !== "undefined") {
542
-
543
- this.isHidden_ = opt_opts.isHidden;
544
- }
545
- if (typeof opt_opts.enableEventPropagation !== "undefined") {
546
-
547
- this.enableEventPropagation_ = opt_opts.enableEventPropagation;
548
- }
549
-
550
- if (this.div_) {
551
-
552
- this.draw();
553
- }
554
- };
555
-
556
- /**
557
- * Sets the content of the InfoBox.
558
- * The content can be plain text or an HTML DOM node.
559
- * @param {string|Node} content
560
- */
561
- InfoBox.prototype.setContent = function (content) {
562
- this.content_ = content;
563
-
564
- if (this.div_) {
565
-
566
- if (this.closeListener_) {
567
-
568
- google.maps.event.removeListener(this.closeListener_);
569
- this.closeListener_ = null;
570
- }
571
-
572
- // Odd code required to make things work with MSIE.
573
- //
574
- if (!this.fixedWidthSet_) {
575
-
576
- this.div_.style.width = "";
577
- }
578
-
579
- if (typeof content.nodeType === "undefined") {
580
- this.div_.innerHTML = this.getCloseBoxImg_() + content;
581
- } else {
582
- this.div_.innerHTML = this.getCloseBoxImg_();
583
- this.div_.appendChild(content);
584
- }
585
-
586
- // Perverse code required to make things work with MSIE.
587
- // (Ensures the close box does, in fact, float to the right.)
588
- //
589
- if (!this.fixedWidthSet_) {
590
- this.div_.style.width = this.div_.offsetWidth + "px";
591
- if (typeof content.nodeType === "undefined") {
592
- this.div_.innerHTML = this.getCloseBoxImg_() + content;
593
- } else {
594
- this.div_.innerHTML = this.getCloseBoxImg_();
595
- // Note: don't append the content node again
596
- }
597
- }
598
-
599
- this.addClickHandler_();
600
- }
601
-
602
- /**
603
- * This event is fired when the content of the InfoBox changes.
604
- * @name InfoBox#content_changed
605
- * @event
606
- */
607
- google.maps.event.trigger(this, "content_changed");
608
- };
609
-
610
- /**
611
- * Sets the geographic location of the InfoBox.
612
- * @param {LatLng} latlng
613
- */
614
- InfoBox.prototype.setPosition = function (latlng) {
615
-
616
- this.position_ = latlng;
617
-
618
- if (this.div_) {
619
-
620
- this.draw();
621
- }
622
-
623
- /**
624
- * This event is fired when the position of the InfoBox changes.
625
- * @name InfoBox#position_changed
626
- * @event
627
- */
628
- google.maps.event.trigger(this, "position_changed");
629
- };
630
-
631
- /**
632
- * Sets the zIndex style for the InfoBox.
633
- * @param {number} index
634
- */
635
- InfoBox.prototype.setZIndex = function (index) {
636
-
637
- this.zIndex_ = index;
638
-
639
- if (this.div_) {
640
-
641
- this.div_.style.zIndex = index;
642
- }
643
-
644
- /**
645
- * This event is fired when the zIndex of the InfoBox changes.
646
- * @name InfoBox#zindex_changed
647
- * @event
648
- */
649
- google.maps.event.trigger(this, "zindex_changed");
650
- };
651
-
652
- /**
653
- * Returns the content of the InfoBox.
654
- * @returns {string}
655
- */
656
- InfoBox.prototype.getContent = function () {
657
-
658
- return this.content_;
659
- };
660
-
661
- /**
662
- * Returns the geographic location of the InfoBox.
663
- * @returns {LatLng}
664
- */
665
- InfoBox.prototype.getPosition = function () {
666
-
667
- return this.position_;
668
- };
669
-
670
- /**
671
- * Returns the zIndex for the InfoBox.
672
- * @returns {number}
673
- */
674
- InfoBox.prototype.getZIndex = function () {
675
-
676
- return this.zIndex_;
677
- };
678
-
679
- /**
680
- * Shows the InfoBox.
681
- */
682
- InfoBox.prototype.show = function () {
683
-
684
- this.isHidden_ = false;
685
- if (this.div_) {
686
- this.div_.style.visibility = "visible";
687
- }
688
- };
689
-
690
- /**
691
- * Hides the InfoBox.
692
- */
693
- InfoBox.prototype.hide = function () {
694
-
695
- this.isHidden_ = true;
696
- if (this.div_) {
697
- this.div_.style.visibility = "hidden";
698
- }
699
- };
700
-
701
- /**
702
- * Adds the InfoBox to the specified map or Street View panorama. If <tt>anchor</tt>
703
- * (usually a <tt>google.maps.Marker</tt>) is specified, the position
704
- * of the InfoBox is set to the position of the <tt>anchor</tt>. If the
705
- * anchor is dragged to a new location, the InfoBox moves as well.
706
- * @param {Map|StreetViewPanorama} map
707
- * @param {MVCObject} [anchor]
708
- */
709
- InfoBox.prototype.open = function (map, anchor) {
710
-
711
- var me = this;
712
-
713
- if (anchor) {
714
-
715
- this.position_ = anchor.getPosition();
716
- this.moveListener_ = google.maps.event.addListener(anchor, "position_changed", function () {
717
- me.setPosition(this.getPosition());
718
- });
719
- }
720
-
721
- this.setMap(map);
722
-
723
- if (this.div_) {
724
-
725
- this.panBox_();
726
- }
727
- };
728
-
729
- /**
730
- * Removes the InfoBox from the map.
731
- */
732
- InfoBox.prototype.close = function () {
733
-
734
- if (this.closeListener_) {
735
-
736
- google.maps.event.removeListener(this.closeListener_);
737
- this.closeListener_ = null;
738
- }
739
-
740
- if (this.eventListener1_) {
741
-
742
- google.maps.event.removeListener(this.eventListener1_);
743
- google.maps.event.removeListener(this.eventListener2_);
744
- google.maps.event.removeListener(this.eventListener3_);
745
- this.eventListener1_ = null;
746
- this.eventListener2_ = null;
747
- this.eventListener3_ = null;
748
- }
749
-
750
- if (this.moveListener_) {
751
-
752
- google.maps.event.removeListener(this.moveListener_);
753
- this.moveListener_ = null;
754
- }
755
-
756
- if (this.contextListener_) {
757
-
758
- google.maps.event.removeListener(this.contextListener_);
759
- this.contextListener_ = null;
760
- }
761
-
762
- this.setMap(null);
763
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/productlocator/jquery-1.10.2.js DELETED
@@ -1,2486 +0,0 @@
1
- /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
2
- //@ sourceMappingURL=jquery-1.10.2.min.map
3
- */
4
- (function(e, t) {
5
- var n, r, i = typeof t, o = e.location, a = e.document, s = a.documentElement, l = e.jQuery, u = e.$, c = {}, p = [], f = "1.10.2", d = p.concat, h = p.push, g = p.slice, m = p.indexOf, y = c.toString, v = c.hasOwnProperty, b = f.trim, x = function(e, t) {
6
- return new x.fn.init(e, t, r)
7
- }, w = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, T = /\S+/g, C = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, N = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, k = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, E = /^[\],:{}\s]*$/, S = /(?:^|:|,)(?:\s*\[)+/g, A = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, j = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, D = /^-ms-/, L = /-([\da-z])/gi, H = function(e, t) {
8
- return t.toUpperCase()
9
- }, q = function(e) {
10
- (a.addEventListener || "load" === e.type || "complete" === a.readyState) && (_(), x.ready())
11
- }, _ = function() {
12
- a.addEventListener ? (a.removeEventListener("DOMContentLoaded", q, !1), e.removeEventListener("load", q, !1)) : (a.detachEvent("onreadystatechange", q), e.detachEvent("onload", q))
13
- };
14
- x.fn = x.prototype = {jquery: f, constructor: x, init: function(e, n, r) {
15
- var i, o;
16
- if (!e)
17
- return this;
18
- if ("string" == typeof e) {
19
- if (i = "<" === e.charAt(0) && ">" === e.charAt(e.length - 1) && e.length >= 3 ? [null, e, null] : N.exec(e), !i || !i[1] && n)
20
- return!n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e);
21
- if (i[1]) {
22
- if (n = n instanceof x ? n[0] : n, x.merge(this, x.parseHTML(i[1], n && n.nodeType ? n.ownerDocument || n : a, !0)), k.test(i[1]) && x.isPlainObject(n))
23
- for (i in n)
24
- x.isFunction(this[i]) ? this[i](n[i]) : this.attr(i, n[i]);
25
- return this
26
- }
27
- if (o = a.getElementById(i[2]), o && o.parentNode) {
28
- if (o.id !== i[2])
29
- return r.find(e);
30
- this.length = 1, this[0] = o
31
- }
32
- return this.context = a, this.selector = e, this
33
- }
34
- return e.nodeType ? (this.context = this[0] = e, this.length = 1, this) : x.isFunction(e) ? r.ready(e) : (e.selector !== t && (this.selector = e.selector, this.context = e.context), x.makeArray(e, this))
35
- }, selector: "", length: 0, toArray: function() {
36
- return g.call(this)
37
- }, get: function(e) {
38
- return null == e ? this.toArray() : 0 > e ? this[this.length + e] : this[e]
39
- }, pushStack: function(e) {
40
- var t = x.merge(this.constructor(), e);
41
- return t.prevObject = this, t.context = this.context, t
42
- }, each: function(e, t) {
43
- return x.each(this, e, t)
44
- }, ready: function(e) {
45
- return x.ready.promise().done(e), this
46
- }, slice: function() {
47
- return this.pushStack(g.apply(this, arguments))
48
- }, first: function() {
49
- return this.eq(0)
50
- }, last: function() {
51
- return this.eq(-1)
52
- }, eq: function(e) {
53
- var t = this.length, n = +e + (0 > e ? t : 0);
54
- return this.pushStack(n >= 0 && t > n ? [this[n]] : [])
55
- }, map: function(e) {
56
- return this.pushStack(x.map(this, function(t, n) {
57
- return e.call(t, n, t)
58
- }))
59
- }, end: function() {
60
- return this.prevObject || this.constructor(null)
61
- }, push: h, sort: [].sort, splice: [].splice}, x.fn.init.prototype = x.fn, x.extend = x.fn.extend = function() {
62
- var e, n, r, i, o, a, s = arguments[0] || {}, l = 1, u = arguments.length, c = !1;
63
- for ("boolean" == typeof s && (c = s, s = arguments[1] || {}, l = 2), "object" == typeof s || x.isFunction(s) || (s = {}), u === l && (s = this, --l); u > l; l++)
64
- if (null != (o = arguments[l]))
65
- for (i in o)
66
- e = s[i], r = o[i], s !== r && (c && r && (x.isPlainObject(r) || (n = x.isArray(r))) ? (n ? (n = !1, a = e && x.isArray(e) ? e : []) : a = e && x.isPlainObject(e) ? e : {}, s[i] = x.extend(c, a, r)) : r !== t && (s[i] = r));
67
- return s
68
- }, x.extend({expando: "jQuery" + (f + Math.random()).replace(/\D/g, ""), noConflict: function(t) {
69
- return e.$ === x && (e.$ = u), t && e.jQuery === x && (e.jQuery = l), x
70
- }, isReady: !1, readyWait: 1, holdReady: function(e) {
71
- e ? x.readyWait++ : x.ready(!0)
72
- }, ready: function(e) {
73
- if (e === !0 ? !--x.readyWait : !x.isReady) {
74
- if (!a.body)
75
- return setTimeout(x.ready);
76
- x.isReady = !0, e !== !0 && --x.readyWait > 0 || (n.resolveWith(a, [x]), x.fn.trigger && x(a).trigger("ready").off("ready"))
77
- }
78
- }, isFunction: function(e) {
79
- return"function" === x.type(e)
80
- }, isArray: Array.isArray || function(e) {
81
- return"array" === x.type(e)
82
- }, isWindow: function(e) {
83
- return null != e && e == e.window
84
- }, isNumeric: function(e) {
85
- return!isNaN(parseFloat(e)) && isFinite(e)
86
- }, type: function(e) {
87
- return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? c[y.call(e)] || "object" : typeof e
88
- }, isPlainObject: function(e) {
89
- var n;
90
- if (!e || "object" !== x.type(e) || e.nodeType || x.isWindow(e))
91
- return!1;
92
- try {
93
- if (e.constructor && !v.call(e, "constructor") && !v.call(e.constructor.prototype, "isPrototypeOf"))
94
- return!1
95
- } catch (r) {
96
- return!1
97
- }
98
- if (x.support.ownLast)
99
- for (n in e)
100
- return v.call(e, n);
101
- for (n in e)
102
- ;
103
- return n === t || v.call(e, n)
104
- }, isEmptyObject: function(e) {
105
- var t;
106
- for (t in e)
107
- return!1;
108
- return!0
109
- }, error: function(e) {
110
- throw Error(e)
111
- }, parseHTML: function(e, t, n) {
112
- if (!e || "string" != typeof e)
113
- return null;
114
- "boolean" == typeof t && (n = t, t = !1), t = t || a;
115
- var r = k.exec(e), i = !n && [];
116
- return r ? [t.createElement(r[1])] : (r = x.buildFragment([e], t, i), i && x(i).remove(), x.merge([], r.childNodes))
117
- }, parseJSON: function(n) {
118
- return e.JSON && e.JSON.parse ? e.JSON.parse(n) : null === n ? n : "string" == typeof n && (n = x.trim(n), n && E.test(n.replace(A, "@").replace(j, "]").replace(S, ""))) ? Function("return " + n)() : (x.error("Invalid JSON: " + n), t)
119
- }, parseXML: function(n) {
120
- var r, i;
121
- if (!n || "string" != typeof n)
122
- return null;
123
- try {
124
- e.DOMParser ? (i = new DOMParser, r = i.parseFromString(n, "text/xml")) : (r = new ActiveXObject("Microsoft.XMLDOM"), r.async = "false", r.loadXML(n))
125
- } catch (o) {
126
- r = t
127
- }
128
- return r && r.documentElement && !r.getElementsByTagName("parsererror").length || x.error("Invalid XML: " + n), r
129
- }, noop: function() {
130
- }, globalEval: function(t) {
131
- t && x.trim(t) && (e.execScript || function(t) {
132
- e.eval.call(e, t)
133
- })(t)
134
- }, camelCase: function(e) {
135
- return e.replace(D, "ms-").replace(L, H)
136
- }, nodeName: function(e, t) {
137
- return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase()
138
- }, each: function(e, t, n) {
139
- var r, i = 0, o = e.length, a = M(e);
140
- if (n) {
141
- if (a) {
142
- for (; o > i; i++)
143
- if (r = t.apply(e[i], n), r === !1)
144
- break
145
- } else
146
- for (i in e)
147
- if (r = t.apply(e[i], n), r === !1)
148
- break
149
- } else if (a) {
150
- for (; o > i; i++)
151
- if (r = t.call(e[i], i, e[i]), r === !1)
152
- break
153
- } else
154
- for (i in e)
155
- if (r = t.call(e[i], i, e[i]), r === !1)
156
- break;
157
- return e
158
- }, trim: b && !b.call("\ufeff\u00a0") ? function(e) {
159
- return null == e ? "" : b.call(e)
160
- } : function(e) {
161
- return null == e ? "" : (e + "").replace(C, "")
162
- }, makeArray: function(e, t) {
163
- var n = t || [];
164
- return null != e && (M(Object(e)) ? x.merge(n, "string" == typeof e ? [e] : e) : h.call(n, e)), n
165
- }, inArray: function(e, t, n) {
166
- var r;
167
- if (t) {
168
- if (m)
169
- return m.call(t, e, n);
170
- for (r = t.length, n = n?0 > n?Math.max(0, r + n):n:0; r > n; n++)
171
- if (n in t && t[n] === e)
172
- return n
173
- }
174
- return-1
175
- }, merge: function(e, n) {
176
- var r = n.length, i = e.length, o = 0;
177
- if ("number" == typeof r)
178
- for (; r > o; o++)
179
- e[i++] = n[o];
180
- else
181
- while (n[o] !== t)
182
- e[i++] = n[o++];
183
- return e.length = i, e
184
- }, grep: function(e, t, n) {
185
- var r, i = [], o = 0, a = e.length;
186
- for (n = !!n; a > o; o++)
187
- r = !!t(e[o], o), n !== r && i.push(e[o]);
188
- return i
189
- }, map: function(e, t, n) {
190
- var r, i = 0, o = e.length, a = M(e), s = [];
191
- if (a)
192
- for (; o > i; i++)
193
- r = t(e[i], i, n), null != r && (s[s.length] = r);
194
- else
195
- for (i in e)
196
- r = t(e[i], i, n), null != r && (s[s.length] = r);
197
- return d.apply([], s)
198
- }, guid: 1, proxy: function(e, n) {
199
- var r, i, o;
200
- return"string" == typeof n && (o = e[n], n = e, e = o), x.isFunction(e) ? (r = g.call(arguments, 2), i = function() {
201
- return e.apply(n || this, r.concat(g.call(arguments)))
202
- }, i.guid = e.guid = e.guid || x.guid++, i) : t
203
- }, access: function(e, n, r, i, o, a, s) {
204
- var l = 0, u = e.length, c = null == r;
205
- if ("object" === x.type(r)) {
206
- o = !0;
207
- for (l in r)
208
- x.access(e, n, l, r[l], !0, a, s)
209
- } else if (i !== t && (o = !0, x.isFunction(i) || (s = !0), c && (s ? (n.call(e, i), n = null) : (c = n, n = function(e, t, n) {
210
- return c.call(x(e), n)
211
- })), n))
212
- for (; u > l; l++)
213
- n(e[l], r, s ? i : i.call(e[l], l, n(e[l], r)));
214
- return o ? e : c ? n.call(e) : u ? n(e[0], r) : a
215
- }, now: function() {
216
- return(new Date).getTime()
217
- }, swap: function(e, t, n, r) {
218
- var i, o, a = {};
219
- for (o in t)
220
- a[o] = e.style[o], e.style[o] = t[o];
221
- i = n.apply(e, r || []);
222
- for (o in t)
223
- e.style[o] = a[o];
224
- return i
225
- }}), x.ready.promise = function(t) {
226
- if (!n)
227
- if (n = x.Deferred(), "complete" === a.readyState)
228
- setTimeout(x.ready);
229
- else if (a.addEventListener)
230
- a.addEventListener("DOMContentLoaded", q, !1), e.addEventListener("load", q, !1);
231
- else {
232
- a.attachEvent("onreadystatechange", q), e.attachEvent("onload", q);
233
- var r = !1;
234
- try {
235
- r = null == e.frameElement && a.documentElement
236
- } catch (i) {
237
- }
238
- r && r.doScroll && function o() {
239
- if (!x.isReady) {
240
- try {
241
- r.doScroll("left")
242
- } catch (e) {
243
- return setTimeout(o, 50)
244
- }
245
- _(), x.ready()
246
- }
247
- }()
248
- }
249
- return n.promise(t)
250
- }, x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(e, t) {
251
- c["[object " + t + "]"] = t.toLowerCase()
252
- });
253
- function M(e) {
254
- var t = e.length, n = x.type(e);
255
- return x.isWindow(e) ? !1 : 1 === e.nodeType && t ? !0 : "array" === n || "function" !== n && (0 === t || "number" == typeof t && t > 0 && t - 1 in e)
256
- }
257
- r = x(a), function(e, t) {
258
- var n, r, i, o, a, s, l, u, c, p, f, d, h, g, m, y, v, b = "sizzle" + -new Date, w = e.document, T = 0, C = 0, N = st(), k = st(), E = st(), S = !1, A = function(e, t) {
259
- return e === t ? (S = !0, 0) : 0
260
- }, j = typeof t, D = 1 << 31, L = {}.hasOwnProperty, H = [], q = H.pop, _ = H.push, M = H.push, O = H.slice, F = H.indexOf || function(e) {
261
- var t = 0, n = this.length;
262
- for (; n > t; t++)
263
- if (this[t] === e)
264
- return t;
265
- return-1
266
- }, B = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", P = "[\\x20\\t\\r\\n\\f]", R = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", W = R.replace("w", "w#"), $ = "\\[" + P + "*(" + R + ")" + P + "*(?:([*^$|!~]?=)" + P + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + W + ")|)|)" + P + "*\\]", I = ":(" + R + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + $.replace(3, 8) + ")*)|.*)\\)|)", z = RegExp("^" + P + "+|((?:^|[^\\\\])(?:\\\\.)*)" + P + "+$", "g"), X = RegExp("^" + P + "*," + P + "*"), U = RegExp("^" + P + "*([>+~]|" + P + ")" + P + "*"), V = RegExp(P + "*[+~]"), Y = RegExp("=" + P + "*([^\\]'\"]*)" + P + "*\\]", "g"), J = RegExp(I), G = RegExp("^" + W + "$"), Q = {ID: RegExp("^#(" + R + ")"), CLASS: RegExp("^\\.(" + R + ")"), TAG: RegExp("^(" + R.replace("w", "w*") + ")"), ATTR: RegExp("^" + $), PSEUDO: RegExp("^" + I), CHILD: RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + P + "*(even|odd|(([+-]|)(\\d*)n|)" + P + "*(?:([+-]|)" + P + "*(\\d+)|))" + P + "*\\)|)", "i"), bool: RegExp("^(?:" + B + ")$", "i"), needsContext: RegExp("^" + P + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + P + "*((?:-\\d)?\\d*)" + P + "*\\)|)(?=[^-]|$)", "i")}, K = /^[^{]+\{\s*\[native \w/, Z = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, et = /^(?:input|select|textarea|button)$/i, tt = /^h\d$/i, nt = /'|\\/g, rt = RegExp("\\\\([\\da-f]{1,6}" + P + "?|(" + P + ")|.)", "ig"), it = function(e, t, n) {
267
- var r = "0x" + t - 65536;
268
- return r !== r || n ? t : 0 > r ? String.fromCharCode(r + 65536) : String.fromCharCode(55296 | r >> 10, 56320 | 1023 & r)
269
- };
270
- try {
271
- M.apply(H = O.call(w.childNodes), w.childNodes), H[w.childNodes.length].nodeType
272
- } catch (ot) {
273
- M = {apply: H.length ? function(e, t) {
274
- _.apply(e, O.call(t))
275
- } : function(e, t) {
276
- var n = e.length, r = 0;
277
- while (e[n++] = t[r++])
278
- ;
279
- e.length = n - 1
280
- }}
281
- }
282
- function at(e, t, n, i) {
283
- var o, a, s, l, u, c, d, m, y, x;
284
- if ((t ? t.ownerDocument || t : w) !== f && p(t), t = t || f, n = n || [], !e || "string" != typeof e)
285
- return n;
286
- if (1 !== (l = t.nodeType) && 9 !== l)
287
- return[];
288
- if (h && !i) {
289
- if (o = Z.exec(e))
290
- if (s = o[1]) {
291
- if (9 === l) {
292
- if (a = t.getElementById(s), !a || !a.parentNode)
293
- return n;
294
- if (a.id === s)
295
- return n.push(a), n
296
- } else if (t.ownerDocument && (a = t.ownerDocument.getElementById(s)) && v(t, a) && a.id === s)
297
- return n.push(a), n
298
- } else {
299
- if (o[2])
300
- return M.apply(n, t.getElementsByTagName(e)), n;
301
- if ((s = o[3]) && r.getElementsByClassName && t.getElementsByClassName)
302
- return M.apply(n, t.getElementsByClassName(s)), n
303
- }
304
- if (r.qsa && (!g || !g.test(e))) {
305
- if (m = d = b, y = t, x = 9 === l && e, 1 === l && "object" !== t.nodeName.toLowerCase()) {
306
- c = mt(e), (d = t.getAttribute("id")) ? m = d.replace(nt, "\\$&") : t.setAttribute("id", m), m = "[id='" + m + "'] ", u = c.length;
307
- while (u--)
308
- c[u] = m + yt(c[u]);
309
- y = V.test(e) && t.parentNode || t, x = c.join(",")
310
- }
311
- if (x)
312
- try {
313
- return M.apply(n, y.querySelectorAll(x)), n
314
- } catch (T) {
315
- } finally {
316
- d || t.removeAttribute("id")
317
- }
318
- }
319
- }
320
- return kt(e.replace(z, "$1"), t, n, i)
321
- }
322
- function st() {
323
- var e = [];
324
- function t(n, r) {
325
- return e.push(n += " ") > o.cacheLength && delete t[e.shift()], t[n] = r
326
- }
327
- return t
328
- }
329
- function lt(e) {
330
- return e[b] = !0, e
331
- }
332
- function ut(e) {
333
- var t = f.createElement("div");
334
- try {
335
- return!!e(t)
336
- } catch (n) {
337
- return!1
338
- } finally {
339
- t.parentNode && t.parentNode.removeChild(t), t = null
340
- }
341
- }
342
- function ct(e, t) {
343
- var n = e.split("|"), r = e.length;
344
- while (r--)
345
- o.attrHandle[n[r]] = t
346
- }
347
- function pt(e, t) {
348
- var n = t && e, r = n && 1 === e.nodeType && 1 === t.nodeType && (~t.sourceIndex || D) - (~e.sourceIndex || D);
349
- if (r)
350
- return r;
351
- if (n)
352
- while (n = n.nextSibling)
353
- if (n === t)
354
- return-1;
355
- return e ? 1 : -1
356
- }
357
- function ft(e) {
358
- return function(t) {
359
- var n = t.nodeName.toLowerCase();
360
- return"input" === n && t.type === e
361
- }
362
- }
363
- function dt(e) {
364
- return function(t) {
365
- var n = t.nodeName.toLowerCase();
366
- return("input" === n || "button" === n) && t.type === e
367
- }
368
- }
369
- function ht(e) {
370
- return lt(function(t) {
371
- return t = +t, lt(function(n, r) {
372
- var i, o = e([], n.length, t), a = o.length;
373
- while (a--)
374
- n[i = o[a]] && (n[i] = !(r[i] = n[i]))
375
- })
376
- })
377
- }
378
- s = at.isXML = function(e) {
379
- var t = e && (e.ownerDocument || e).documentElement;
380
- return t ? "HTML" !== t.nodeName : !1
381
- }, r = at.support = {}, p = at.setDocument = function(e) {
382
- var n = e ? e.ownerDocument || e : w, i = n.defaultView;
383
- return n !== f && 9 === n.nodeType && n.documentElement ? (f = n, d = n.documentElement, h = !s(n), i && i.attachEvent && i !== i.top && i.attachEvent("onbeforeunload", function() {
384
- p()
385
- }), r.attributes = ut(function(e) {
386
- return e.className = "i", !e.getAttribute("className")
387
- }), r.getElementsByTagName = ut(function(e) {
388
- return e.appendChild(n.createComment("")), !e.getElementsByTagName("*").length
389
- }), r.getElementsByClassName = ut(function(e) {
390
- return e.innerHTML = "<div class='a'></div><div class='a i'></div>", e.firstChild.className = "i", 2 === e.getElementsByClassName("i").length
391
- }), r.getById = ut(function(e) {
392
- return d.appendChild(e).id = b, !n.getElementsByName || !n.getElementsByName(b).length
393
- }), r.getById ? (o.find.ID = function(e, t) {
394
- if (typeof t.getElementById !== j && h) {
395
- var n = t.getElementById(e);
396
- return n && n.parentNode ? [n] : []
397
- }
398
- }, o.filter.ID = function(e) {
399
- var t = e.replace(rt, it);
400
- return function(e) {
401
- return e.getAttribute("id") === t
402
- }
403
- }) : (delete o.find.ID, o.filter.ID = function(e) {
404
- var t = e.replace(rt, it);
405
- return function(e) {
406
- var n = typeof e.getAttributeNode !== j && e.getAttributeNode("id");
407
- return n && n.value === t
408
- }
409
- }), o.find.TAG = r.getElementsByTagName ? function(e, n) {
410
- return typeof n.getElementsByTagName !== j ? n.getElementsByTagName(e) : t
411
- } : function(e, t) {
412
- var n, r = [], i = 0, o = t.getElementsByTagName(e);
413
- if ("*" === e) {
414
- while (n = o[i++])
415
- 1 === n.nodeType && r.push(n);
416
- return r
417
- }
418
- return o
419
- }, o.find.CLASS = r.getElementsByClassName && function(e, n) {
420
- return typeof n.getElementsByClassName !== j && h ? n.getElementsByClassName(e) : t
421
- }, m = [], g = [], (r.qsa = K.test(n.querySelectorAll)) && (ut(function(e) {
422
- e.innerHTML = "<select><option selected=''></option></select>", e.querySelectorAll("[selected]").length || g.push("\\[" + P + "*(?:value|" + B + ")"), e.querySelectorAll(":checked").length || g.push(":checked")
423
- }), ut(function(e) {
424
- var t = n.createElement("input");
425
- t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("t", ""), e.querySelectorAll("[t^='']").length && g.push("[*^$]=" + P + "*(?:''|\"\")"), e.querySelectorAll(":enabled").length || g.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), g.push(",.*:")
426
- })), (r.matchesSelector = K.test(y = d.webkitMatchesSelector || d.mozMatchesSelector || d.oMatchesSelector || d.msMatchesSelector)) && ut(function(e) {
427
- r.disconnectedMatch = y.call(e, "div"), y.call(e, "[s!='']:x"), m.push("!=", I)
428
- }), g = g.length && RegExp(g.join("|")), m = m.length && RegExp(m.join("|")), v = K.test(d.contains) || d.compareDocumentPosition ? function(e, t) {
429
- var n = 9 === e.nodeType ? e.documentElement : e, r = t && t.parentNode;
430
- return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)))
431
- } : function(e, t) {
432
- if (t)
433
- while (t = t.parentNode)
434
- if (t === e)
435
- return!0;
436
- return!1
437
- }, A = d.compareDocumentPosition ? function(e, t) {
438
- if (e === t)
439
- return S = !0, 0;
440
- var i = t.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(t);
441
- return i ? 1 & i || !r.sortDetached && t.compareDocumentPosition(e) === i ? e === n || v(w, e) ? -1 : t === n || v(w, t) ? 1 : c ? F.call(c, e) - F.call(c, t) : 0 : 4 & i ? -1 : 1 : e.compareDocumentPosition ? -1 : 1
442
- } : function(e, t) {
443
- var r, i = 0, o = e.parentNode, a = t.parentNode, s = [e], l = [t];
444
- if (e === t)
445
- return S = !0, 0;
446
- if (!o || !a)
447
- return e === n ? -1 : t === n ? 1 : o ? -1 : a ? 1 : c ? F.call(c, e) - F.call(c, t) : 0;
448
- if (o === a)
449
- return pt(e, t);
450
- r = e;
451
- while (r = r.parentNode)
452
- s.unshift(r);
453
- r = t;
454
- while (r = r.parentNode)
455
- l.unshift(r);
456
- while (s[i] === l[i])
457
- i++;
458
- return i ? pt(s[i], l[i]) : s[i] === w ? -1 : l[i] === w ? 1 : 0
459
- }, n) : f
460
- }, at.matches = function(e, t) {
461
- return at(e, null, null, t)
462
- }, at.matchesSelector = function(e, t) {
463
- if ((e.ownerDocument || e) !== f && p(e), t = t.replace(Y, "='$1']"), !(!r.matchesSelector || !h || m && m.test(t) || g && g.test(t)))
464
- try {
465
- var n = y.call(e, t);
466
- if (n || r.disconnectedMatch || e.document && 11 !== e.document.nodeType)
467
- return n
468
- } catch (i) {
469
- }
470
- return at(t, f, null, [e]).length > 0
471
- }, at.contains = function(e, t) {
472
- return(e.ownerDocument || e) !== f && p(e), v(e, t)
473
- }, at.attr = function(e, n) {
474
- (e.ownerDocument || e) !== f && p(e);
475
- var i = o.attrHandle[n.toLowerCase()], a = i && L.call(o.attrHandle, n.toLowerCase()) ? i(e, n, !h) : t;
476
- return a === t ? r.attributes || !h ? e.getAttribute(n) : (a = e.getAttributeNode(n)) && a.specified ? a.value : null : a
477
- }, at.error = function(e) {
478
- throw Error("Syntax error, unrecognized expression: " + e)
479
- }, at.uniqueSort = function(e) {
480
- var t, n = [], i = 0, o = 0;
481
- if (S = !r.detectDuplicates, c = !r.sortStable && e.slice(0), e.sort(A), S) {
482
- while (t = e[o++])
483
- t === e[o] && (i = n.push(o));
484
- while (i--)
485
- e.splice(n[i], 1)
486
- }
487
- return e
488
- }, a = at.getText = function(e) {
489
- var t, n = "", r = 0, i = e.nodeType;
490
- if (i) {
491
- if (1 === i || 9 === i || 11 === i) {
492
- if ("string" == typeof e.textContent)
493
- return e.textContent;
494
- for (e = e.firstChild; e; e = e.nextSibling)
495
- n += a(e)
496
- } else if (3 === i || 4 === i)
497
- return e.nodeValue
498
- } else
499
- for (; t = e[r]; r++)
500
- n += a(t);
501
- return n
502
- }, o = at.selectors = {cacheLength: 50, createPseudo: lt, match: Q, attrHandle: {}, find: {}, relative: {">": {dir: "parentNode", first: !0}, " ": {dir: "parentNode"}, "+": {dir: "previousSibling", first: !0}, "~": {dir: "previousSibling"}}, preFilter: {ATTR: function(e) {
503
- return e[1] = e[1].replace(rt, it), e[3] = (e[4] || e[5] || "").replace(rt, it), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4)
504
- }, CHILD: function(e) {
505
- return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || at.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && at.error(e[0]), e
506
- }, PSEUDO: function(e) {
507
- var n, r = !e[5] && e[2];
508
- return Q.CHILD.test(e[0]) ? null : (e[3] && e[4] !== t ? e[2] = e[4] : r && J.test(r) && (n = mt(r, !0)) && (n = r.indexOf(")", r.length - n) - r.length) && (e[0] = e[0].slice(0, n), e[2] = r.slice(0, n)), e.slice(0, 3))
509
- }}, filter: {TAG: function(e) {
510
- var t = e.replace(rt, it).toLowerCase();
511
- return"*" === e ? function() {
512
- return!0
513
- } : function(e) {
514
- return e.nodeName && e.nodeName.toLowerCase() === t
515
- }
516
- }, CLASS: function(e) {
517
- var t = N[e + " "];
518
- return t || (t = RegExp("(^|" + P + ")" + e + "(" + P + "|$)")) && N(e, function(e) {
519
- return t.test("string" == typeof e.className && e.className || typeof e.getAttribute !== j && e.getAttribute("class") || "")
520
- })
521
- }, ATTR: function(e, t, n) {
522
- return function(r) {
523
- var i = at.attr(r, e);
524
- return null == i ? "!=" === t : t ? (i += "", "=" === t ? i === n : "!=" === t ? i !== n : "^=" === t ? n && 0 === i.indexOf(n) : "*=" === t ? n && i.indexOf(n) > -1 : "$=" === t ? n && i.slice(-n.length) === n : "~=" === t ? (" " + i + " ").indexOf(n) > -1 : "|=" === t ? i === n || i.slice(0, n.length + 1) === n + "-" : !1) : !0
525
- }
526
- }, CHILD: function(e, t, n, r, i) {
527
- var o = "nth" !== e.slice(0, 3), a = "last" !== e.slice(-4), s = "of-type" === t;
528
- return 1 === r && 0 === i ? function(e) {
529
- return!!e.parentNode
530
- } : function(t, n, l) {
531
- var u, c, p, f, d, h, g = o !== a ? "nextSibling" : "previousSibling", m = t.parentNode, y = s && t.nodeName.toLowerCase(), v = !l && !s;
532
- if (m) {
533
- if (o) {
534
- while (g) {
535
- p = t;
536
- while (p = p[g])
537
- if (s ? p.nodeName.toLowerCase() === y : 1 === p.nodeType)
538
- return!1;
539
- h = g = "only" === e && !h && "nextSibling"
540
- }
541
- return!0
542
- }
543
- if (h = [a ? m.firstChild : m.lastChild], a && v) {
544
- c = m[b] || (m[b] = {}), u = c[e] || [], d = u[0] === T && u[1], f = u[0] === T && u[2], p = d && m.childNodes[d];
545
- while (p = ++d && p && p[g] || (f = d = 0) || h.pop())
546
- if (1 === p.nodeType && ++f && p === t) {
547
- c[e] = [T, d, f];
548
- break
549
- }
550
- } else if (v && (u = (t[b] || (t[b] = {}))[e]) && u[0] === T)
551
- f = u[1];
552
- else
553
- while (p = ++d && p && p[g] || (f = d = 0) || h.pop())
554
- if ((s ? p.nodeName.toLowerCase() === y : 1 === p.nodeType) && ++f && (v && ((p[b] || (p[b] = {}))[e] = [T, f]), p === t))
555
- break;
556
- return f -= i, f === r || 0 === f % r && f / r >= 0
557
- }
558
- }
559
- }, PSEUDO: function(e, t) {
560
- var n, r = o.pseudos[e] || o.setFilters[e.toLowerCase()] || at.error("unsupported pseudo: " + e);
561
- return r[b] ? r(t) : r.length > 1 ? (n = [e, e, "", t], o.setFilters.hasOwnProperty(e.toLowerCase()) ? lt(function(e, n) {
562
- var i, o = r(e, t), a = o.length;
563
- while (a--)
564
- i = F.call(e, o[a]), e[i] = !(n[i] = o[a])
565
- }) : function(e) {
566
- return r(e, 0, n)
567
- }) : r
568
- }}, pseudos: {not: lt(function(e) {
569
- var t = [], n = [], r = l(e.replace(z, "$1"));
570
- return r[b] ? lt(function(e, t, n, i) {
571
- var o, a = r(e, null, i, []), s = e.length;
572
- while (s--)
573
- (o = a[s]) && (e[s] = !(t[s] = o))
574
- }) : function(e, i, o) {
575
- return t[0] = e, r(t, null, o, n), !n.pop()
576
- }
577
- }), has: lt(function(e) {
578
- return function(t) {
579
- return at(e, t).length > 0
580
- }
581
- }), contains: lt(function(e) {
582
- return function(t) {
583
- return(t.textContent || t.innerText || a(t)).indexOf(e) > -1
584
- }
585
- }), lang: lt(function(e) {
586
- return G.test(e || "") || at.error("unsupported lang: " + e), e = e.replace(rt, it).toLowerCase(), function(t) {
587
- var n;
588
- do
589
- if (n = h ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang"))
590
- return n = n.toLowerCase(), n === e || 0 === n.indexOf(e + "-");
591
- while ((t = t.parentNode) && 1 === t.nodeType);
592
- return!1
593
- }
594
- }), target: function(t) {
595
- var n = e.location && e.location.hash;
596
- return n && n.slice(1) === t.id
597
- }, root: function(e) {
598
- return e === d
599
- }, focus: function(e) {
600
- return e === f.activeElement && (!f.hasFocus || f.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
601
- }, enabled: function(e) {
602
- return e.disabled === !1
603
- }, disabled: function(e) {
604
- return e.disabled === !0
605
- }, checked: function(e) {
606
- var t = e.nodeName.toLowerCase();
607
- return"input" === t && !!e.checked || "option" === t && !!e.selected
608
- }, selected: function(e) {
609
- return e.parentNode && e.parentNode.selectedIndex, e.selected === !0
610
- }, empty: function(e) {
611
- for (e = e.firstChild; e; e = e.nextSibling)
612
- if (e.nodeName > "@" || 3 === e.nodeType || 4 === e.nodeType)
613
- return!1;
614
- return!0
615
- }, parent: function(e) {
616
- return!o.pseudos.empty(e)
617
- }, header: function(e) {
618
- return tt.test(e.nodeName)
619
- }, input: function(e) {
620
- return et.test(e.nodeName)
621
- }, button: function(e) {
622
- var t = e.nodeName.toLowerCase();
623
- return"input" === t && "button" === e.type || "button" === t
624
- }, text: function(e) {
625
- var t;
626
- return"input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || t.toLowerCase() === e.type)
627
- }, first: ht(function() {
628
- return[0]
629
- }), last: ht(function(e, t) {
630
- return[t - 1]
631
- }), eq: ht(function(e, t, n) {
632
- return[0 > n ? n + t : n]
633
- }), even: ht(function(e, t) {
634
- var n = 0;
635
- for (; t > n; n += 2)
636
- e.push(n);
637
- return e
638
- }), odd: ht(function(e, t) {
639
- var n = 1;
640
- for (; t > n; n += 2)
641
- e.push(n);
642
- return e
643
- }), lt: ht(function(e, t, n) {
644
- var r = 0 > n ? n + t : n;
645
- for (; --r >= 0; )
646
- e.push(r);
647
- return e
648
- }), gt: ht(function(e, t, n) {
649
- var r = 0 > n ? n + t : n;
650
- for (; t > ++r; )
651
- e.push(r);
652
- return e
653
- })}}, o.pseudos.nth = o.pseudos.eq;
654
- for (n in{radio:!0, checkbox:!0, file:!0, password:!0, image:!0})
655
- o.pseudos[n] = ft(n);
656
- for (n in{submit:!0, reset:!0})
657
- o.pseudos[n] = dt(n);
658
- function gt() {
659
- }
660
- gt.prototype = o.filters = o.pseudos, o.setFilters = new gt;
661
- function mt(e, t) {
662
- var n, r, i, a, s, l, u, c = k[e + " "];
663
- if (c)
664
- return t ? 0 : c.slice(0);
665
- s = e, l = [], u = o.preFilter;
666
- while (s) {
667
- (!n || (r = X.exec(s))) && (r && (s = s.slice(r[0].length) || s), l.push(i = [])), n = !1, (r = U.exec(s)) && (n = r.shift(), i.push({value: n, type: r[0].replace(z, " ")}), s = s.slice(n.length));
668
- for (a in o.filter)
669
- !(r = Q[a].exec(s)) || u[a] && !(r = u[a](r)) || (n = r.shift(), i.push({value: n, type: a, matches: r}), s = s.slice(n.length));
670
- if (!n)
671
- break
672
- }
673
- return t ? s.length : s ? at.error(e) : k(e, l).slice(0)
674
- }
675
- function yt(e) {
676
- var t = 0, n = e.length, r = "";
677
- for (; n > t; t++)
678
- r += e[t].value;
679
- return r
680
- }
681
- function vt(e, t, n) {
682
- var r = t.dir, o = n && "parentNode" === r, a = C++;
683
- return t.first ? function(t, n, i) {
684
- while (t = t[r])
685
- if (1 === t.nodeType || o)
686
- return e(t, n, i)
687
- } : function(t, n, s) {
688
- var l, u, c, p = T + " " + a;
689
- if (s) {
690
- while (t = t[r])
691
- if ((1 === t.nodeType || o) && e(t, n, s))
692
- return!0
693
- } else
694
- while (t = t[r])
695
- if (1 === t.nodeType || o)
696
- if (c = t[b] || (t[b] = {}), (u = c[r]) && u[0] === p) {
697
- if ((l = u[1]) === !0 || l === i)
698
- return l === !0
699
- } else if (u = c[r] = [p], u[1] = e(t, n, s) || i, u[1] === !0)
700
- return!0
701
- }
702
- }
703
- function bt(e) {
704
- return e.length > 1 ? function(t, n, r) {
705
- var i = e.length;
706
- while (i--)
707
- if (!e[i](t, n, r))
708
- return!1;
709
- return!0
710
- } : e[0]
711
- }
712
- function xt(e, t, n, r, i) {
713
- var o, a = [], s = 0, l = e.length, u = null != t;
714
- for (; l > s; s++)
715
- (o = e[s]) && (!n || n(o, r, i)) && (a.push(o), u && t.push(s));
716
- return a
717
- }
718
- function wt(e, t, n, r, i, o) {
719
- return r && !r[b] && (r = wt(r)), i && !i[b] && (i = wt(i, o)), lt(function(o, a, s, l) {
720
- var u, c, p, f = [], d = [], h = a.length, g = o || Nt(t || "*", s.nodeType ? [s] : s, []), m = !e || !o && t ? g : xt(g, f, e, s, l), y = n ? i || (o ? e : h || r) ? [] : a : m;
721
- if (n && n(m, y, s, l), r) {
722
- u = xt(y, d), r(u, [], s, l), c = u.length;
723
- while (c--)
724
- (p = u[c]) && (y[d[c]] = !(m[d[c]] = p))
725
- }
726
- if (o) {
727
- if (i || e) {
728
- if (i) {
729
- u = [], c = y.length;
730
- while (c--)
731
- (p = y[c]) && u.push(m[c] = p);
732
- i(null, y = [], u, l)
733
- }
734
- c = y.length;
735
- while (c--)
736
- (p = y[c]) && (u = i ? F.call(o, p) : f[c]) > -1 && (o[u] = !(a[u] = p))
737
- }
738
- } else
739
- y = xt(y === a ? y.splice(h, y.length) : y), i ? i(null, a, y, l) : M.apply(a, y)
740
- })
741
- }
742
- function Tt(e) {
743
- var t, n, r, i = e.length, a = o.relative[e[0].type], s = a || o.relative[" "], l = a ? 1 : 0, c = vt(function(e) {
744
- return e === t
745
- }, s, !0), p = vt(function(e) {
746
- return F.call(t, e) > -1
747
- }, s, !0), f = [function(e, n, r) {
748
- return!a && (r || n !== u) || ((t = n).nodeType ? c(e, n, r) : p(e, n, r))
749
- }];
750
- for (; i > l; l++)
751
- if (n = o.relative[e[l].type])
752
- f = [vt(bt(f), n)];
753
- else {
754
- if (n = o.filter[e[l].type].apply(null, e[l].matches), n[b]) {
755
- for (r = ++l; i > r; r++)
756
- if (o.relative[e[r].type])
757
- break;
758
- return wt(l > 1 && bt(f), l > 1 && yt(e.slice(0, l - 1).concat({value: " " === e[l - 2].type ? "*" : ""})).replace(z, "$1"), n, r > l && Tt(e.slice(l, r)), i > r && Tt(e = e.slice(r)), i > r && yt(e))
759
- }
760
- f.push(n)
761
- }
762
- return bt(f)
763
- }
764
- function Ct(e, t) {
765
- var n = 0, r = t.length > 0, a = e.length > 0, s = function(s, l, c, p, d) {
766
- var h, g, m, y = [], v = 0, b = "0", x = s && [], w = null != d, C = u, N = s || a && o.find.TAG("*", d && l.parentNode || l), k = T += null == C ? 1 : Math.random() || .1;
767
- for (w && (u = l !== f && l, i = n); null != (h = N[b]); b++) {
768
- if (a && h) {
769
- g = 0;
770
- while (m = e[g++])
771
- if (m(h, l, c)) {
772
- p.push(h);
773
- break
774
- }
775
- w && (T = k, i = ++n)
776
- }
777
- r && ((h = !m && h) && v--, s && x.push(h))
778
- }
779
- if (v += b, r && b !== v) {
780
- g = 0;
781
- while (m = t[g++])
782
- m(x, y, l, c);
783
- if (s) {
784
- if (v > 0)
785
- while (b--)
786
- x[b] || y[b] || (y[b] = q.call(p));
787
- y = xt(y)
788
- }
789
- M.apply(p, y), w && !s && y.length > 0 && v + t.length > 1 && at.uniqueSort(p)
790
- }
791
- return w && (T = k, u = C), x
792
- };
793
- return r ? lt(s) : s
794
- }
795
- l = at.compile = function(e, t) {
796
- var n, r = [], i = [], o = E[e + " "];
797
- if (!o) {
798
- t || (t = mt(e)), n = t.length;
799
- while (n--)
800
- o = Tt(t[n]), o[b] ? r.push(o) : i.push(o);
801
- o = E(e, Ct(i, r))
802
- }
803
- return o
804
- };
805
- function Nt(e, t, n) {
806
- var r = 0, i = t.length;
807
- for (; i > r; r++)
808
- at(e, t[r], n);
809
- return n
810
- }
811
- function kt(e, t, n, i) {
812
- var a, s, u, c, p, f = mt(e);
813
- if (!i && 1 === f.length) {
814
- if (s = f[0] = f[0].slice(0), s.length > 2 && "ID" === (u = s[0]).type && r.getById && 9 === t.nodeType && h && o.relative[s[1].type]) {
815
- if (t = (o.find.ID(u.matches[0].replace(rt, it), t) || [])[0], !t)
816
- return n;
817
- e = e.slice(s.shift().value.length)
818
- }
819
- a = Q.needsContext.test(e) ? 0 : s.length;
820
- while (a--) {
821
- if (u = s[a], o.relative[c = u.type])
822
- break;
823
- if ((p = o.find[c]) && (i = p(u.matches[0].replace(rt, it), V.test(s[0].type) && t.parentNode || t))) {
824
- if (s.splice(a, 1), e = i.length && yt(s), !e)
825
- return M.apply(n, i), n;
826
- break
827
- }
828
- }
829
- }
830
- return l(e, f)(i, t, !h, n, V.test(e)), n
831
- }
832
- r.sortStable = b.split("").sort(A).join("") === b, r.detectDuplicates = S, p(), r.sortDetached = ut(function(e) {
833
- return 1 & e.compareDocumentPosition(f.createElement("div"))
834
- }), ut(function(e) {
835
- return e.innerHTML = "<a href='#'></a>", "#" === e.firstChild.getAttribute("href")
836
- }) || ct("type|href|height|width", function(e, n, r) {
837
- return r ? t : e.getAttribute(n, "type" === n.toLowerCase() ? 1 : 2)
838
- }), r.attributes && ut(function(e) {
839
- return e.innerHTML = "<input/>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value")
840
- }) || ct("value", function(e, n, r) {
841
- return r || "input" !== e.nodeName.toLowerCase() ? t : e.defaultValue
842
- }), ut(function(e) {
843
- return null == e.getAttribute("disabled")
844
- }) || ct(B, function(e, n, r) {
845
- var i;
846
- return r ? t : (i = e.getAttributeNode(n)) && i.specified ? i.value : e[n] === !0 ? n.toLowerCase() : null
847
- }), x.find = at, x.expr = at.selectors, x.expr[":"] = x.expr.pseudos, x.unique = at.uniqueSort, x.text = at.getText, x.isXMLDoc = at.isXML, x.contains = at.contains
848
- }(e);
849
- var O = {};
850
- function F(e) {
851
- var t = O[e] = {};
852
- return x.each(e.match(T) || [], function(e, n) {
853
- t[n] = !0
854
- }), t
855
- }
856
- x.Callbacks = function(e) {
857
- e = "string" == typeof e ? O[e] || F(e) : x.extend({}, e);
858
- var n, r, i, o, a, s, l = [], u = !e.once && [], c = function(t) {
859
- for (r = e.memory && t, i = !0, a = s || 0, s = 0, o = l.length, n = !0; l && o > a; a++)
860
- if (l[a].apply(t[0], t[1]) === !1 && e.stopOnFalse) {
861
- r = !1;
862
- break
863
- }
864
- n = !1, l && (u ? u.length && c(u.shift()) : r ? l = [] : p.disable())
865
- }, p = {add: function() {
866
- if (l) {
867
- var t = l.length;
868
- (function i(t) {
869
- x.each(t, function(t, n) {
870
- var r = x.type(n);
871
- "function" === r ? e.unique && p.has(n) || l.push(n) : n && n.length && "string" !== r && i(n)
872
- })
873
- })(arguments), n ? o = l.length : r && (s = t, c(r))
874
- }
875
- return this
876
- }, remove: function() {
877
- return l && x.each(arguments, function(e, t) {
878
- var r;
879
- while ((r = x.inArray(t, l, r)) > - 1)
880
- l.splice(r, 1), n && (o >= r && o--, a >= r && a--)
881
- }), this
882
- }, has: function(e) {
883
- return e ? x.inArray(e, l) > -1 : !(!l || !l.length)
884
- }, empty: function() {
885
- return l = [], o = 0, this
886
- }, disable: function() {
887
- return l = u = r = t, this
888
- }, disabled: function() {
889
- return!l
890
- }, lock: function() {
891
- return u = t, r || p.disable(), this
892
- }, locked: function() {
893
- return!u
894
- }, fireWith: function(e, t) {
895
- return!l || i && !u || (t = t || [], t = [e, t.slice ? t.slice() : t], n ? u.push(t) : c(t)), this
896
- }, fire: function() {
897
- return p.fireWith(this, arguments), this
898
- }, fired: function() {
899
- return!!i
900
- }};
901
- return p
902
- }, x.extend({Deferred: function(e) {
903
- var t = [["resolve", "done", x.Callbacks("once memory"), "resolved"], ["reject", "fail", x.Callbacks("once memory"), "rejected"], ["notify", "progress", x.Callbacks("memory")]], n = "pending", r = {state: function() {
904
- return n
905
- }, always: function() {
906
- return i.done(arguments).fail(arguments), this
907
- }, then: function() {
908
- var e = arguments;
909
- return x.Deferred(function(n) {
910
- x.each(t, function(t, o) {
911
- var a = o[0], s = x.isFunction(e[t]) && e[t];
912
- i[o[1]](function() {
913
- var e = s && s.apply(this, arguments);
914
- e && x.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[a + "With"](this === r ? n.promise() : this, s ? [e] : arguments)
915
- })
916
- }), e = null
917
- }).promise()
918
- }, promise: function(e) {
919
- return null != e ? x.extend(e, r) : r
920
- }}, i = {};
921
- return r.pipe = r.then, x.each(t, function(e, o) {
922
- var a = o[2], s = o[3];
923
- r[o[1]] = a.add, s && a.add(function() {
924
- n = s
925
- }, t[1 ^ e][2].disable, t[2][2].lock), i[o[0]] = function() {
926
- return i[o[0] + "With"](this === i ? r : this, arguments), this
927
- }, i[o[0] + "With"] = a.fireWith
928
- }), r.promise(i), e && e.call(i, i), i
929
- }, when: function(e) {
930
- var t = 0, n = g.call(arguments), r = n.length, i = 1 !== r || e && x.isFunction(e.promise) ? r : 0, o = 1 === i ? e : x.Deferred(), a = function(e, t, n) {
931
- return function(r) {
932
- t[e] = this, n[e] = arguments.length > 1 ? g.call(arguments) : r, n === s ? o.notifyWith(t, n) : --i || o.resolveWith(t, n)
933
- }
934
- }, s, l, u;
935
- if (r > 1)
936
- for (s = Array(r), l = Array(r), u = Array(r); r > t; t++)
937
- n[t] && x.isFunction(n[t].promise) ? n[t].promise().done(a(t, u, n)).fail(o.reject).progress(a(t, l, s)) : --i;
938
- return i || o.resolveWith(u, n), o.promise()
939
- }}), x.support = function(t) {
940
- var n, r, o, s, l, u, c, p, f, d = a.createElement("div");
941
- if (d.setAttribute("className", "t"), d.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", n = d.getElementsByTagName("*") || [], r = d.getElementsByTagName("a")[0], !r || !r.style || !n.length)
942
- return t;
943
- s = a.createElement("select"), u = s.appendChild(a.createElement("option")), o = d.getElementsByTagName("input")[0], r.style.cssText = "top:1px;float:left;opacity:.5", t.getSetAttribute = "t" !== d.className, t.leadingWhitespace = 3 === d.firstChild.nodeType, t.tbody = !d.getElementsByTagName("tbody").length, t.htmlSerialize = !!d.getElementsByTagName("link").length, t.style = /top/.test(r.getAttribute("style")), t.hrefNormalized = "/a" === r.getAttribute("href"), t.opacity = /^0.5/.test(r.style.opacity), t.cssFloat = !!r.style.cssFloat, t.checkOn = !!o.value, t.optSelected = u.selected, t.enctype = !!a.createElement("form").enctype, t.html5Clone = "<:nav></:nav>" !== a.createElement("nav").cloneNode(!0).outerHTML, t.inlineBlockNeedsLayout = !1, t.shrinkWrapBlocks = !1, t.pixelPosition = !1, t.deleteExpando = !0, t.noCloneEvent = !0, t.reliableMarginRight = !0, t.boxSizingReliable = !0, o.checked = !0, t.noCloneChecked = o.cloneNode(!0).checked, s.disabled = !0, t.optDisabled = !u.disabled;
944
- try {
945
- delete d.test
946
- } catch (h) {
947
- t.deleteExpando = !1
948
- }
949
- o = a.createElement("input"), o.setAttribute("value", ""), t.input = "" === o.getAttribute("value"), o.value = "t", o.setAttribute("type", "radio"), t.radioValue = "t" === o.value, o.setAttribute("checked", "t"), o.setAttribute("name", "t"), l = a.createDocumentFragment(), l.appendChild(o), t.appendChecked = o.checked, t.checkClone = l.cloneNode(!0).cloneNode(!0).lastChild.checked, d.attachEvent && (d.attachEvent("onclick", function() {
950
- t.noCloneEvent = !1
951
- }), d.cloneNode(!0).click());
952
- for (f in{submit:!0, change:!0, focusin:!0})
953
- d.setAttribute(c = "on" + f, "t"), t[f + "Bubbles"] = c in e || d.attributes[c].expando === !1;
954
- d.style.backgroundClip = "content-box", d.cloneNode(!0).style.backgroundClip = "", t.clearCloneStyle = "content-box" === d.style.backgroundClip;
955
- for (f in x(t))
956
- break;
957
- return t.ownLast = "0" !== f, x(function() {
958
- var n, r, o, s = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", l = a.getElementsByTagName("body")[0];
959
- l && (n = a.createElement("div"), n.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px", l.appendChild(n).appendChild(d), d.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", o = d.getElementsByTagName("td"), o[0].style.cssText = "padding:0;margin:0;border:0;display:none", p = 0 === o[0].offsetHeight, o[0].style.display = "", o[1].style.display = "none", t.reliableHiddenOffsets = p && 0 === o[0].offsetHeight, d.innerHTML = "", d.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", x.swap(l, null != l.style.zoom ? {zoom: 1} : {}, function() {
960
- t.boxSizing = 4 === d.offsetWidth
961
- }), e.getComputedStyle && (t.pixelPosition = "1%" !== (e.getComputedStyle(d, null) || {}).top, t.boxSizingReliable = "4px" === (e.getComputedStyle(d, null) || {width: "4px"}).width, r = d.appendChild(a.createElement("div")), r.style.cssText = d.style.cssText = s, r.style.marginRight = r.style.width = "0", d.style.width = "1px", t.reliableMarginRight = !parseFloat((e.getComputedStyle(r, null) || {}).marginRight)), typeof d.style.zoom !== i && (d.innerHTML = "", d.style.cssText = s + "width:1px;padding:1px;display:inline;zoom:1", t.inlineBlockNeedsLayout = 3 === d.offsetWidth, d.style.display = "block", d.innerHTML = "<div></div>", d.firstChild.style.width = "5px", t.shrinkWrapBlocks = 3 !== d.offsetWidth, t.inlineBlockNeedsLayout && (l.style.zoom = 1)), l.removeChild(n), n = d = o = r = null)
962
- }), n = s = l = u = r = o = null, t
963
- }({});
964
- var B = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, P = /([A-Z])/g;
965
- function R(e, n, r, i) {
966
- if (x.acceptData(e)) {
967
- var o, a, s = x.expando, l = e.nodeType, u = l ? x.cache : e, c = l ? e[s] : e[s] && s;
968
- if (c && u[c] && (i || u[c].data) || r !== t || "string" != typeof n)
969
- return c || (c = l ? e[s] = p.pop() || x.guid++ : s), u[c] || (u[c] = l ? {} : {toJSON: x.noop}), ("object" == typeof n || "function" == typeof n) && (i ? u[c] = x.extend(u[c], n) : u[c].data = x.extend(u[c].data, n)), a = u[c], i || (a.data || (a.data = {}), a = a.data), r !== t && (a[x.camelCase(n)] = r), "string" == typeof n ? (o = a[n], null == o && (o = a[x.camelCase(n)])) : o = a, o
970
- }
971
- }
972
- function W(e, t, n) {
973
- if (x.acceptData(e)) {
974
- var r, i, o = e.nodeType, a = o ? x.cache : e, s = o ? e[x.expando] : x.expando;
975
- if (a[s]) {
976
- if (t && (r = n ? a[s] : a[s].data)) {
977
- x.isArray(t) ? t = t.concat(x.map(t, x.camelCase)) : t in r ? t = [t] : (t = x.camelCase(t), t = t in r ? [t] : t.split(" ")), i = t.length;
978
- while (i--)
979
- delete r[t[i]];
980
- if (n ? !I(r) : !x.isEmptyObject(r))
981
- return
982
- }
983
- (n || (delete a[s].data, I(a[s]))) && (o ? x.cleanData([e], !0) : x.support.deleteExpando || a != a.window ? delete a[s] : a[s] = null)
984
- }
985
- }
986
- }
987
- x.extend({cache: {}, noData: {applet: !0, embed: !0, object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"}, hasData: function(e) {
988
- return e = e.nodeType ? x.cache[e[x.expando]] : e[x.expando], !!e && !I(e)
989
- }, data: function(e, t, n) {
990
- return R(e, t, n)
991
- }, removeData: function(e, t) {
992
- return W(e, t)
993
- }, _data: function(e, t, n) {
994
- return R(e, t, n, !0)
995
- }, _removeData: function(e, t) {
996
- return W(e, t, !0)
997
- }, acceptData: function(e) {
998
- if (e.nodeType && 1 !== e.nodeType && 9 !== e.nodeType)
999
- return!1;
1000
- var t = e.nodeName && x.noData[e.nodeName.toLowerCase()];
1001
- return!t || t !== !0 && e.getAttribute("classid") === t
1002
- }}), x.fn.extend({data: function(e, n) {
1003
- var r, i, o = null, a = 0, s = this[0];
1004
- if (e === t) {
1005
- if (this.length && (o = x.data(s), 1 === s.nodeType && !x._data(s, "parsedAttrs"))) {
1006
- for (r = s.attributes; r.length > a; a++)
1007
- i = r[a].name, 0 === i.indexOf("data-") && (i = x.camelCase(i.slice(5)), $(s, i, o[i]));
1008
- x._data(s, "parsedAttrs", !0)
1009
- }
1010
- return o
1011
- }
1012
- return"object" == typeof e ? this.each(function() {
1013
- x.data(this, e)
1014
- }) : arguments.length > 1 ? this.each(function() {
1015
- x.data(this, e, n)
1016
- }) : s ? $(s, e, x.data(s, e)) : null
1017
- }, removeData: function(e) {
1018
- return this.each(function() {
1019
- x.removeData(this, e)
1020
- })
1021
- }});
1022
- function $(e, n, r) {
1023
- if (r === t && 1 === e.nodeType) {
1024
- var i = "data-" + n.replace(P, "-$1").toLowerCase();
1025
- if (r = e.getAttribute(i), "string" == typeof r) {
1026
- try {
1027
- r = "true" === r ? !0 : "false" === r ? !1 : "null" === r ? null : +r + "" === r ? +r : B.test(r) ? x.parseJSON(r) : r
1028
- } catch (o) {
1029
- }
1030
- x.data(e, n, r)
1031
- } else
1032
- r = t
1033
- }
1034
- return r
1035
- }
1036
- function I(e) {
1037
- var t;
1038
- for (t in e)
1039
- if (("data" !== t || !x.isEmptyObject(e[t])) && "toJSON" !== t)
1040
- return!1;
1041
- return!0
1042
- }
1043
- x.extend({queue: function(e, n, r) {
1044
- var i;
1045
- return e ? (n = (n || "fx") + "queue", i = x._data(e, n), r && (!i || x.isArray(r) ? i = x._data(e, n, x.makeArray(r)) : i.push(r)), i || []) : t
1046
- }, dequeue: function(e, t) {
1047
- t = t || "fx";
1048
- var n = x.queue(e, t), r = n.length, i = n.shift(), o = x._queueHooks(e, t), a = function() {
1049
- x.dequeue(e, t)
1050
- };
1051
- "inprogress" === i && (i = n.shift(), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call(e, a, o)), !r && o && o.empty.fire()
1052
- }, _queueHooks: function(e, t) {
1053
- var n = t + "queueHooks";
1054
- return x._data(e, n) || x._data(e, n, {empty: x.Callbacks("once memory").add(function() {
1055
- x._removeData(e, t + "queue"), x._removeData(e, n)
1056
- })})
1057
- }}), x.fn.extend({queue: function(e, n) {
1058
- var r = 2;
1059
- return"string" != typeof e && (n = e, e = "fx", r--), r > arguments.length ? x.queue(this[0], e) : n === t ? this : this.each(function() {
1060
- var t = x.queue(this, e, n);
1061
- x._queueHooks(this, e), "fx" === e && "inprogress" !== t[0] && x.dequeue(this, e)
1062
- })
1063
- }, dequeue: function(e) {
1064
- return this.each(function() {
1065
- x.dequeue(this, e)
1066
- })
1067
- }, delay: function(e, t) {
1068
- return e = x.fx ? x.fx.speeds[e] || e : e, t = t || "fx", this.queue(t, function(t, n) {
1069
- var r = setTimeout(t, e);
1070
- n.stop = function() {
1071
- clearTimeout(r)
1072
- }
1073
- })
1074
- }, clearQueue: function(e) {
1075
- return this.queue(e || "fx", [])
1076
- }, promise: function(e, n) {
1077
- var r, i = 1, o = x.Deferred(), a = this, s = this.length, l = function() {
1078
- --i || o.resolveWith(a, [a])
1079
- };
1080
- "string" != typeof e && (n = e, e = t), e = e || "fx";
1081
- while (s--)
1082
- r = x._data(a[s], e + "queueHooks"), r && r.empty && (i++, r.empty.add(l));
1083
- return l(), o.promise(n)
1084
- }});
1085
- var z, X, U = /[\t\r\n\f]/g, V = /\r/g, Y = /^(?:input|select|textarea|button|object)$/i, J = /^(?:a|area)$/i, G = /^(?:checked|selected)$/i, Q = x.support.getSetAttribute, K = x.support.input;
1086
- x.fn.extend({attr: function(e, t) {
1087
- return x.access(this, x.attr, e, t, arguments.length > 1)
1088
- }, removeAttr: function(e) {
1089
- return this.each(function() {
1090
- x.removeAttr(this, e)
1091
- })
1092
- }, prop: function(e, t) {
1093
- return x.access(this, x.prop, e, t, arguments.length > 1)
1094
- }, removeProp: function(e) {
1095
- return e = x.propFix[e] || e, this.each(function() {
1096
- try {
1097
- this[e] = t, delete this[e]
1098
- } catch (n) {
1099
- }
1100
- })
1101
- }, addClass: function(e) {
1102
- var t, n, r, i, o, a = 0, s = this.length, l = "string" == typeof e && e;
1103
- if (x.isFunction(e))
1104
- return this.each(function(t) {
1105
- x(this).addClass(e.call(this, t, this.className))
1106
- });
1107
- if (l)
1108
- for (t = (e || "").match(T) || []; s > a; a++)
1109
- if (n = this[a], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(U, " ") : " ")) {
1110
- o = 0;
1111
- while (i = t[o++])
1112
- 0 > r.indexOf(" " + i + " ") && (r += i + " ");
1113
- n.className = x.trim(r)
1114
- }
1115
- return this
1116
- }, removeClass: function(e) {
1117
- var t, n, r, i, o, a = 0, s = this.length, l = 0 === arguments.length || "string" == typeof e && e;
1118
- if (x.isFunction(e))
1119
- return this.each(function(t) {
1120
- x(this).removeClass(e.call(this, t, this.className))
1121
- });
1122
- if (l)
1123
- for (t = (e || "").match(T) || []; s > a; a++)
1124
- if (n = this[a], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(U, " ") : "")) {
1125
- o = 0;
1126
- while (i = t[o++])
1127
- while (r.indexOf(" " + i + " ") >= 0)
1128
- r = r.replace(" " + i + " ", " ");
1129
- n.className = e ? x.trim(r) : ""
1130
- }
1131
- return this
1132
- }, toggleClass: function(e, t) {
1133
- var n = typeof e;
1134
- return"boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : x.isFunction(e) ? this.each(function(n) {
1135
- x(this).toggleClass(e.call(this, n, this.className, t), t)
1136
- }) : this.each(function() {
1137
- if ("string" === n) {
1138
- var t, r = 0, o = x(this), a = e.match(T) || [];
1139
- while (t = a[r++])
1140
- o.hasClass(t) ? o.removeClass(t) : o.addClass(t)
1141
- } else
1142
- (n === i || "boolean" === n) && (this.className && x._data(this, "__className__", this.className), this.className = this.className || e === !1 ? "" : x._data(this, "__className__") || "")
1143
- })
1144
- }, hasClass: function(e) {
1145
- var t = " " + e + " ", n = 0, r = this.length;
1146
- for (; r > n; n++)
1147
- if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(U, " ").indexOf(t) >= 0)
1148
- return!0;
1149
- return!1
1150
- }, val: function(e) {
1151
- var n, r, i, o = this[0];
1152
- {
1153
- if (arguments.length)
1154
- return i = x.isFunction(e), this.each(function(n) {
1155
- var o;
1156
- 1 === this.nodeType && (o = i ? e.call(this, n, x(this).val()) : e, null == o ? o = "" : "number" == typeof o ? o += "" : x.isArray(o) && (o = x.map(o, function(e) {
1157
- return null == e ? "" : e + ""
1158
- })), r = x.valHooks[this.type] || x.valHooks[this.nodeName.toLowerCase()], r && "set"in r && r.set(this, o, "value") !== t || (this.value = o))
1159
- });
1160
- if (o)
1161
- return r = x.valHooks[o.type] || x.valHooks[o.nodeName.toLowerCase()], r && "get"in r && (n = r.get(o, "value")) !== t ? n : (n = o.value, "string" == typeof n ? n.replace(V, "") : null == n ? "" : n)
1162
- }
1163
- }}), x.extend({valHooks: {option: {get: function(e) {
1164
- var t = x.find.attr(e, "value");
1165
- return null != t ? t : e.text
1166
- }}, select: {get: function(e) {
1167
- var t, n, r = e.options, i = e.selectedIndex, o = "select-one" === e.type || 0 > i, a = o ? null : [], s = o ? i + 1 : r.length, l = 0 > i ? s : o ? i : 0;
1168
- for (; s > l; l++)
1169
- if (n = r[l], !(!n.selected && l !== i || (x.support.optDisabled ? n.disabled : null !== n.getAttribute("disabled")) || n.parentNode.disabled && x.nodeName(n.parentNode, "optgroup"))) {
1170
- if (t = x(n).val(), o)
1171
- return t;
1172
- a.push(t)
1173
- }
1174
- return a
1175
- }, set: function(e, t) {
1176
- var n, r, i = e.options, o = x.makeArray(t), a = i.length;
1177
- while (a--)
1178
- r = i[a], (r.selected = x.inArray(x(r).val(), o) >= 0) && (n = !0);
1179
- return n || (e.selectedIndex = -1), o
1180
- }}}, attr: function(e, n, r) {
1181
- var o, a, s = e.nodeType;
1182
- if (e && 3 !== s && 8 !== s && 2 !== s)
1183
- return typeof e.getAttribute === i ? x.prop(e, n, r) : (1 === s && x.isXMLDoc(e) || (n = n.toLowerCase(), o = x.attrHooks[n] || (x.expr.match.bool.test(n) ? X : z)), r === t ? o && "get"in o && null !== (a = o.get(e, n)) ? a : (a = x.find.attr(e, n), null == a ? t : a) : null !== r ? o && "set"in o && (a = o.set(e, r, n)) !== t ? a : (e.setAttribute(n, r + ""), r) : (x.removeAttr(e, n), t))
1184
- }, removeAttr: function(e, t) {
1185
- var n, r, i = 0, o = t && t.match(T);
1186
- if (o && 1 === e.nodeType)
1187
- while (n = o[i++])
1188
- r = x.propFix[n] || n, x.expr.match.bool.test(n) ? K && Q || !G.test(n) ? e[r] = !1 : e[x.camelCase("default-" + n)] = e[r] = !1 : x.attr(e, n, ""), e.removeAttribute(Q ? n : r)
1189
- }, attrHooks: {type: {set: function(e, t) {
1190
- if (!x.support.radioValue && "radio" === t && x.nodeName(e, "input")) {
1191
- var n = e.value;
1192
- return e.setAttribute("type", t), n && (e.value = n), t
1193
- }
1194
- }}}, propFix: {"for": "htmlFor", "class": "className"}, prop: function(e, n, r) {
1195
- var i, o, a, s = e.nodeType;
1196
- if (e && 3 !== s && 8 !== s && 2 !== s)
1197
- return a = 1 !== s || !x.isXMLDoc(e), a && (n = x.propFix[n] || n, o = x.propHooks[n]), r !== t ? o && "set"in o && (i = o.set(e, r, n)) !== t ? i : e[n] = r : o && "get"in o && null !== (i = o.get(e, n)) ? i : e[n]
1198
- }, propHooks: {tabIndex: {get: function(e) {
1199
- var t = x.find.attr(e, "tabindex");
1200
- return t ? parseInt(t, 10) : Y.test(e.nodeName) || J.test(e.nodeName) && e.href ? 0 : -1
1201
- }}}}), X = {set: function(e, t, n) {
1202
- return t === !1 ? x.removeAttr(e, n) : K && Q || !G.test(n) ? e.setAttribute(!Q && x.propFix[n] || n, n) : e[x.camelCase("default-" + n)] = e[n] = !0, n
1203
- }}, x.each(x.expr.match.bool.source.match(/\w+/g), function(e, n) {
1204
- var r = x.expr.attrHandle[n] || x.find.attr;
1205
- x.expr.attrHandle[n] = K && Q || !G.test(n) ? function(e, n, i) {
1206
- var o = x.expr.attrHandle[n], a = i ? t : (x.expr.attrHandle[n] = t) != r(e, n, i) ? n.toLowerCase() : null;
1207
- return x.expr.attrHandle[n] = o, a
1208
- } : function(e, n, r) {
1209
- return r ? t : e[x.camelCase("default-" + n)] ? n.toLowerCase() : null
1210
- }
1211
- }), K && Q || (x.attrHooks.value = {set: function(e, n, r) {
1212
- return x.nodeName(e, "input") ? (e.defaultValue = n, t) : z && z.set(e, n, r)
1213
- }}), Q || (z = {set: function(e, n, r) {
1214
- var i = e.getAttributeNode(r);
1215
- return i || e.setAttributeNode(i = e.ownerDocument.createAttribute(r)), i.value = n += "", "value" === r || n === e.getAttribute(r) ? n : t
1216
- }}, x.expr.attrHandle.id = x.expr.attrHandle.name = x.expr.attrHandle.coords = function(e, n, r) {
1217
- var i;
1218
- return r ? t : (i = e.getAttributeNode(n)) && "" !== i.value ? i.value : null
1219
- }, x.valHooks.button = {get: function(e, n) {
1220
- var r = e.getAttributeNode(n);
1221
- return r && r.specified ? r.value : t
1222
- }, set: z.set}, x.attrHooks.contenteditable = {set: function(e, t, n) {
1223
- z.set(e, "" === t ? !1 : t, n)
1224
- }}, x.each(["width", "height"], function(e, n) {
1225
- x.attrHooks[n] = {set: function(e, r) {
1226
- return"" === r ? (e.setAttribute(n, "auto"), r) : t
1227
- }}
1228
- })), x.support.hrefNormalized || x.each(["href", "src"], function(e, t) {
1229
- x.propHooks[t] = {get: function(e) {
1230
- return e.getAttribute(t, 4)
1231
- }}
1232
- }), x.support.style || (x.attrHooks.style = {get: function(e) {
1233
- return e.style.cssText || t
1234
- }, set: function(e, t) {
1235
- return e.style.cssText = t + ""
1236
- }}), x.support.optSelected || (x.propHooks.selected = {get: function(e) {
1237
- var t = e.parentNode;
1238
- return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex), null
1239
- }}), x.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
1240
- x.propFix[this.toLowerCase()] = this
1241
- }), x.support.enctype || (x.propFix.enctype = "encoding"), x.each(["radio", "checkbox"], function() {
1242
- x.valHooks[this] = {set: function(e, n) {
1243
- return x.isArray(n) ? e.checked = x.inArray(x(e).val(), n) >= 0 : t
1244
- }}, x.support.checkOn || (x.valHooks[this].get = function(e) {
1245
- return null === e.getAttribute("value") ? "on" : e.value
1246
- })
1247
- });
1248
- var Z = /^(?:input|select|textarea)$/i, et = /^key/, tt = /^(?:mouse|contextmenu)|click/, nt = /^(?:focusinfocus|focusoutblur)$/, rt = /^([^.]*)(?:\.(.+)|)$/;
1249
- function it() {
1250
- return!0
1251
- }
1252
- function ot() {
1253
- return!1
1254
- }
1255
- function at() {
1256
- try {
1257
- return a.activeElement
1258
- } catch (e) {
1259
- }
1260
- }
1261
- x.event = {global: {}, add: function(e, n, r, o, a) {
1262
- var s, l, u, c, p, f, d, h, g, m, y, v = x._data(e);
1263
- if (v) {
1264
- r.handler && (c = r, r = c.handler, a = c.selector), r.guid || (r.guid = x.guid++), (l = v.events) || (l = v.events = {}), (f = v.handle) || (f = v.handle = function(e) {
1265
- return typeof x === i || e && x.event.triggered === e.type ? t : x.event.dispatch.apply(f.elem, arguments)
1266
- }, f.elem = e), n = (n || "").match(T) || [""], u = n.length;
1267
- while (u--)
1268
- s = rt.exec(n[u]) || [], g = y = s[1], m = (s[2] || "").split(".").sort(), g && (p = x.event.special[g] || {}, g = (a ? p.delegateType : p.bindType) || g, p = x.event.special[g] || {}, d = x.extend({type: g, origType: y, data: o, handler: r, guid: r.guid, selector: a, needsContext: a && x.expr.match.needsContext.test(a), namespace: m.join(".")}, c), (h = l[g]) || (h = l[g] = [], h.delegateCount = 0, p.setup && p.setup.call(e, o, m, f) !== !1 || (e.addEventListener ? e.addEventListener(g, f, !1) : e.attachEvent && e.attachEvent("on" + g, f))), p.add && (p.add.call(e, d), d.handler.guid || (d.handler.guid = r.guid)), a ? h.splice(h.delegateCount++, 0, d) : h.push(d), x.event.global[g] = !0);
1269
- e = null
1270
- }
1271
- }, remove: function(e, t, n, r, i) {
1272
- var o, a, s, l, u, c, p, f, d, h, g, m = x.hasData(e) && x._data(e);
1273
- if (m && (c = m.events)) {
1274
- t = (t || "").match(T) || [""], u = t.length;
1275
- while (u--)
1276
- if (s = rt.exec(t[u]) || [], d = g = s[1], h = (s[2] || "").split(".").sort(), d) {
1277
- p = x.event.special[d] || {}, d = (r ? p.delegateType : p.bindType) || d, f = c[d] || [], s = s[2] && RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), l = o = f.length;
1278
- while (o--)
1279
- a = f[o], !i && g !== a.origType || n && n.guid !== a.guid || s && !s.test(a.namespace) || r && r !== a.selector && ("**" !== r || !a.selector) || (f.splice(o, 1), a.selector && f.delegateCount--, p.remove && p.remove.call(e, a));
1280
- l && !f.length && (p.teardown && p.teardown.call(e, h, m.handle) !== !1 || x.removeEvent(e, d, m.handle), delete c[d])
1281
- } else
1282
- for (d in c)
1283
- x.event.remove(e, d + t[u], n, r, !0);
1284
- x.isEmptyObject(c) && (delete m.handle, x._removeData(e, "events"))
1285
- }
1286
- }, trigger: function(n, r, i, o) {
1287
- var s, l, u, c, p, f, d, h = [i || a], g = v.call(n, "type") ? n.type : n, m = v.call(n, "namespace") ? n.namespace.split(".") : [];
1288
- if (u = f = i = i || a, 3 !== i.nodeType && 8 !== i.nodeType && !nt.test(g + x.event.triggered) && (g.indexOf(".") >= 0 && (m = g.split("."), g = m.shift(), m.sort()), l = 0 > g.indexOf(":") && "on" + g, n = n[x.expando] ? n : new x.Event(g, "object" == typeof n && n), n.isTrigger = o ? 2 : 3, n.namespace = m.join("."), n.namespace_re = n.namespace ? RegExp("(^|\\.)" + m.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, n.result = t, n.target || (n.target = i), r = null == r ? [n] : x.makeArray(r, [n]), p = x.event.special[g] || {}, o || !p.trigger || p.trigger.apply(i, r) !== !1)) {
1289
- if (!o && !p.noBubble && !x.isWindow(i)) {
1290
- for (c = p.delegateType || g, nt.test(c + g) || (u = u.parentNode); u; u = u.parentNode)
1291
- h.push(u), f = u;
1292
- f === (i.ownerDocument || a) && h.push(f.defaultView || f.parentWindow || e)
1293
- }
1294
- d = 0;
1295
- while ((u = h[d++]) && !n.isPropagationStopped())
1296
- n.type = d > 1 ? c : p.bindType || g, s = (x._data(u, "events") || {})[n.type] && x._data(u, "handle"), s && s.apply(u, r), s = l && u[l], s && x.acceptData(u) && s.apply && s.apply(u, r) === !1 && n.preventDefault();
1297
- if (n.type = g, !o && !n.isDefaultPrevented() && (!p._default || p._default.apply(h.pop(), r) === !1) && x.acceptData(i) && l && i[g] && !x.isWindow(i)) {
1298
- f = i[l], f && (i[l] = null), x.event.triggered = g;
1299
- try {
1300
- i[g]()
1301
- } catch (y) {
1302
- }
1303
- x.event.triggered = t, f && (i[l] = f)
1304
- }
1305
- return n.result
1306
- }
1307
- }, dispatch: function(e) {
1308
- e = x.event.fix(e);
1309
- var n, r, i, o, a, s = [], l = g.call(arguments), u = (x._data(this, "events") || {})[e.type] || [], c = x.event.special[e.type] || {};
1310
- if (l[0] = e, e.delegateTarget = this, !c.preDispatch || c.preDispatch.call(this, e) !== !1) {
1311
- s = x.event.handlers.call(this, e, u), n = 0;
1312
- while ((o = s[n++]) && !e.isPropagationStopped()) {
1313
- e.currentTarget = o.elem, a = 0;
1314
- while ((i = o.handlers[a++]) && !e.isImmediatePropagationStopped())
1315
- (!e.namespace_re || e.namespace_re.test(i.namespace)) && (e.handleObj = i, e.data = i.data, r = ((x.event.special[i.origType] || {}).handle || i.handler).apply(o.elem, l), r !== t && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation()))
1316
- }
1317
- return c.postDispatch && c.postDispatch.call(this, e), e.result
1318
- }
1319
- }, handlers: function(e, n) {
1320
- var r, i, o, a, s = [], l = n.delegateCount, u = e.target;
1321
- if (l && u.nodeType && (!e.button || "click" !== e.type))
1322
- for (; u != this; u = u.parentNode || this)
1323
- if (1 === u.nodeType && (u.disabled !== !0 || "click" !== e.type)) {
1324
- for (o = [], a = 0; l > a; a++)
1325
- i = n[a], r = i.selector + " ", o[r] === t && (o[r] = i.needsContext ? x(r, this).index(u) >= 0 : x.find(r, this, null, [u]).length), o[r] && o.push(i);
1326
- o.length && s.push({elem: u, handlers: o})
1327
- }
1328
- return n.length > l && s.push({elem: this, handlers: n.slice(l)}), s
1329
- }, fix: function(e) {
1330
- if (e[x.expando])
1331
- return e;
1332
- var t, n, r, i = e.type, o = e, s = this.fixHooks[i];
1333
- s || (this.fixHooks[i] = s = tt.test(i) ? this.mouseHooks : et.test(i) ? this.keyHooks : {}), r = s.props ? this.props.concat(s.props) : this.props, e = new x.Event(o), t = r.length;
1334
- while (t--)
1335
- n = r[t], e[n] = o[n];
1336
- return e.target || (e.target = o.srcElement || a), 3 === e.target.nodeType && (e.target = e.target.parentNode), e.metaKey = !!e.metaKey, s.filter ? s.filter(e, o) : e
1337
- }, props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), fixHooks: {}, keyHooks: {props: "char charCode key keyCode".split(" "), filter: function(e, t) {
1338
- return null == e.which && (e.which = null != t.charCode ? t.charCode : t.keyCode), e
1339
- }}, mouseHooks: {props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), filter: function(e, n) {
1340
- var r, i, o, s = n.button, l = n.fromElement;
1341
- return null == e.pageX && null != n.clientX && (i = e.target.ownerDocument || a, o = i.documentElement, r = i.body, e.pageX = n.clientX + (o && o.scrollLeft || r && r.scrollLeft || 0) - (o && o.clientLeft || r && r.clientLeft || 0), e.pageY = n.clientY + (o && o.scrollTop || r && r.scrollTop || 0) - (o && o.clientTop || r && r.clientTop || 0)), !e.relatedTarget && l && (e.relatedTarget = l === e.target ? n.toElement : l), e.which || s === t || (e.which = 1 & s ? 1 : 2 & s ? 3 : 4 & s ? 2 : 0), e
1342
- }}, special: {load: {noBubble: !0}, focus: {trigger: function() {
1343
- if (this !== at() && this.focus)
1344
- try {
1345
- return this.focus(), !1
1346
- } catch (e) {
1347
- }
1348
- }, delegateType: "focusin"}, blur: {trigger: function() {
1349
- return this === at() && this.blur ? (this.blur(), !1) : t
1350
- }, delegateType: "focusout"}, click: {trigger: function() {
1351
- return x.nodeName(this, "input") && "checkbox" === this.type && this.click ? (this.click(), !1) : t
1352
- }, _default: function(e) {
1353
- return x.nodeName(e.target, "a")
1354
- }}, beforeunload: {postDispatch: function(e) {
1355
- e.result !== t && (e.originalEvent.returnValue = e.result)
1356
- }}}, simulate: function(e, t, n, r) {
1357
- var i = x.extend(new x.Event, n, {type: e, isSimulated: !0, originalEvent: {}});
1358
- r ? x.event.trigger(i, null, t) : x.event.dispatch.call(t, i), i.isDefaultPrevented() && n.preventDefault()
1359
- }}, x.removeEvent = a.removeEventListener ? function(e, t, n) {
1360
- e.removeEventListener && e.removeEventListener(t, n, !1)
1361
- } : function(e, t, n) {
1362
- var r = "on" + t;
1363
- e.detachEvent && (typeof e[r] === i && (e[r] = null), e.detachEvent(r, n))
1364
- }, x.Event = function(e, n) {
1365
- return this instanceof x.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || e.returnValue === !1 || e.getPreventDefault && e.getPreventDefault() ? it : ot) : this.type = e, n && x.extend(this, n), this.timeStamp = e && e.timeStamp || x.now(), this[x.expando] = !0, t) : new x.Event(e, n)
1366
- }, x.Event.prototype = {isDefaultPrevented: ot, isPropagationStopped: ot, isImmediatePropagationStopped: ot, preventDefault: function() {
1367
- var e = this.originalEvent;
1368
- this.isDefaultPrevented = it, e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1)
1369
- }, stopPropagation: function() {
1370
- var e = this.originalEvent;
1371
- this.isPropagationStopped = it, e && (e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0)
1372
- }, stopImmediatePropagation: function() {
1373
- this.isImmediatePropagationStopped = it, this.stopPropagation()
1374
- }}, x.each({mouseenter: "mouseover", mouseleave: "mouseout"}, function(e, t) {
1375
- x.event.special[e] = {delegateType: t, bindType: t, handle: function(e) {
1376
- var n, r = this, i = e.relatedTarget, o = e.handleObj;
1377
- return(!i || i !== r && !x.contains(r, i)) && (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n
1378
- }}
1379
- }), x.support.submitBubbles || (x.event.special.submit = {setup: function() {
1380
- return x.nodeName(this, "form") ? !1 : (x.event.add(this, "click._submit keypress._submit", function(e) {
1381
- var n = e.target, r = x.nodeName(n, "input") || x.nodeName(n, "button") ? n.form : t;
1382
- r && !x._data(r, "submitBubbles") && (x.event.add(r, "submit._submit", function(e) {
1383
- e._submit_bubble = !0
1384
- }), x._data(r, "submitBubbles", !0))
1385
- }), t)
1386
- }, postDispatch: function(e) {
1387
- e._submit_bubble && (delete e._submit_bubble, this.parentNode && !e.isTrigger && x.event.simulate("submit", this.parentNode, e, !0))
1388
- }, teardown: function() {
1389
- return x.nodeName(this, "form") ? !1 : (x.event.remove(this, "._submit"), t)
1390
- }}), x.support.changeBubbles || (x.event.special.change = {setup: function() {
1391
- return Z.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (x.event.add(this, "propertychange._change", function(e) {
1392
- "checked" === e.originalEvent.propertyName && (this._just_changed = !0)
1393
- }), x.event.add(this, "click._change", function(e) {
1394
- this._just_changed && !e.isTrigger && (this._just_changed = !1), x.event.simulate("change", this, e, !0)
1395
- })), !1) : (x.event.add(this, "beforeactivate._change", function(e) {
1396
- var t = e.target;
1397
- Z.test(t.nodeName) && !x._data(t, "changeBubbles") && (x.event.add(t, "change._change", function(e) {
1398
- !this.parentNode || e.isSimulated || e.isTrigger || x.event.simulate("change", this.parentNode, e, !0)
1399
- }), x._data(t, "changeBubbles", !0))
1400
- }), t)
1401
- }, handle: function(e) {
1402
- var n = e.target;
1403
- return this !== n || e.isSimulated || e.isTrigger || "radio" !== n.type && "checkbox" !== n.type ? e.handleObj.handler.apply(this, arguments) : t
1404
- }, teardown: function() {
1405
- return x.event.remove(this, "._change"), !Z.test(this.nodeName)
1406
- }}), x.support.focusinBubbles || x.each({focus: "focusin", blur: "focusout"}, function(e, t) {
1407
- var n = 0, r = function(e) {
1408
- x.event.simulate(t, e.target, x.event.fix(e), !0)
1409
- };
1410
- x.event.special[t] = {setup: function() {
1411
- 0 === n++ && a.addEventListener(e, r, !0)
1412
- }, teardown: function() {
1413
- 0 === --n && a.removeEventListener(e, r, !0)
1414
- }}
1415
- }), x.fn.extend({on: function(e, n, r, i, o) {
1416
- var a, s;
1417
- if ("object" == typeof e) {
1418
- "string" != typeof n && (r = r || n, n = t);
1419
- for (a in e)
1420
- this.on(a, n, r, e[a], o);
1421
- return this
1422
- }
1423
- if (null == r && null == i ? (i = n, r = n = t) : null == i && ("string" == typeof n ? (i = r, r = t) : (i = r, r = n, n = t)), i === !1)
1424
- i = ot;
1425
- else if (!i)
1426
- return this;
1427
- return 1 === o && (s = i, i = function(e) {
1428
- return x().off(e), s.apply(this, arguments)
1429
- }, i.guid = s.guid || (s.guid = x.guid++)), this.each(function() {
1430
- x.event.add(this, e, i, r, n)
1431
- })
1432
- }, one: function(e, t, n, r) {
1433
- return this.on(e, t, n, r, 1)
1434
- }, off: function(e, n, r) {
1435
- var i, o;
1436
- if (e && e.preventDefault && e.handleObj)
1437
- return i = e.handleObj, x(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this;
1438
- if ("object" == typeof e) {
1439
- for (o in e)
1440
- this.off(o, n, e[o]);
1441
- return this
1442
- }
1443
- return(n === !1 || "function" == typeof n) && (r = n, n = t), r === !1 && (r = ot), this.each(function() {
1444
- x.event.remove(this, e, r, n)
1445
- })
1446
- }, trigger: function(e, t) {
1447
- return this.each(function() {
1448
- x.event.trigger(e, t, this)
1449
- })
1450
- }, triggerHandler: function(e, n) {
1451
- var r = this[0];
1452
- return r ? x.event.trigger(e, n, r, !0) : t
1453
- }});
1454
- var st = /^.[^:#\[\.,]*$/, lt = /^(?:parents|prev(?:Until|All))/, ut = x.expr.match.needsContext, ct = {children: !0, contents: !0, next: !0, prev: !0};
1455
- x.fn.extend({find: function(e) {
1456
- var t, n = [], r = this, i = r.length;
1457
- if ("string" != typeof e)
1458
- return this.pushStack(x(e).filter(function() {
1459
- for (t = 0; i > t; t++)
1460
- if (x.contains(r[t], this))
1461
- return!0
1462
- }));
1463
- for (t = 0; i > t; t++)
1464
- x.find(e, r[t], n);
1465
- return n = this.pushStack(i > 1 ? x.unique(n) : n), n.selector = this.selector ? this.selector + " " + e : e, n
1466
- }, has: function(e) {
1467
- var t, n = x(e, this), r = n.length;
1468
- return this.filter(function() {
1469
- for (t = 0; r > t; t++)
1470
- if (x.contains(this, n[t]))
1471
- return!0
1472
- })
1473
- }, not: function(e) {
1474
- return this.pushStack(ft(this, e || [], !0))
1475
- }, filter: function(e) {
1476
- return this.pushStack(ft(this, e || [], !1))
1477
- }, is: function(e) {
1478
- return!!ft(this, "string" == typeof e && ut.test(e) ? x(e) : e || [], !1).length
1479
- }, closest: function(e, t) {
1480
- var n, r = 0, i = this.length, o = [], a = ut.test(e) || "string" != typeof e ? x(e, t || this.context) : 0;
1481
- for (; i > r; r++)
1482
- for (n = this[r]; n && n !== t; n = n.parentNode)
1483
- if (11 > n.nodeType && (a ? a.index(n) > -1 : 1 === n.nodeType && x.find.matchesSelector(n, e))) {
1484
- n = o.push(n);
1485
- break
1486
- }
1487
- return this.pushStack(o.length > 1 ? x.unique(o) : o)
1488
- }, index: function(e) {
1489
- return e ? "string" == typeof e ? x.inArray(this[0], x(e)) : x.inArray(e.jquery ? e[0] : e, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
1490
- }, add: function(e, t) {
1491
- var n = "string" == typeof e ? x(e, t) : x.makeArray(e && e.nodeType ? [e] : e), r = x.merge(this.get(), n);
1492
- return this.pushStack(x.unique(r))
1493
- }, addBack: function(e) {
1494
- return this.add(null == e ? this.prevObject : this.prevObject.filter(e))
1495
- }});
1496
- function pt(e, t) {
1497
- do
1498
- e = e[t];
1499
- while (e && 1 !== e.nodeType);
1500
- return e
1501
- }
1502
- x.each({parent: function(e) {
1503
- var t = e.parentNode;
1504
- return t && 11 !== t.nodeType ? t : null
1505
- }, parents: function(e) {
1506
- return x.dir(e, "parentNode")
1507
- }, parentsUntil: function(e, t, n) {
1508
- return x.dir(e, "parentNode", n)
1509
- }, next: function(e) {
1510
- return pt(e, "nextSibling")
1511
- }, prev: function(e) {
1512
- return pt(e, "previousSibling")
1513
- }, nextAll: function(e) {
1514
- return x.dir(e, "nextSibling")
1515
- }, prevAll: function(e) {
1516
- return x.dir(e, "previousSibling")
1517
- }, nextUntil: function(e, t, n) {
1518
- return x.dir(e, "nextSibling", n)
1519
- }, prevUntil: function(e, t, n) {
1520
- return x.dir(e, "previousSibling", n)
1521
- }, siblings: function(e) {
1522
- return x.sibling((e.parentNode || {}).firstChild, e)
1523
- }, children: function(e) {
1524
- return x.sibling(e.firstChild)
1525
- }, contents: function(e) {
1526
- return x.nodeName(e, "iframe") ? e.contentDocument || e.contentWindow.document : x.merge([], e.childNodes)
1527
- }}, function(e, t) {
1528
- x.fn[e] = function(n, r) {
1529
- var i = x.map(this, t, n);
1530
- return"Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = x.filter(r, i)), this.length > 1 && (ct[e] || (i = x.unique(i)), lt.test(e) && (i = i.reverse())), this.pushStack(i)
1531
- }
1532
- }), x.extend({filter: function(e, t, n) {
1533
- var r = t[0];
1534
- return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? x.find.matchesSelector(r, e) ? [r] : [] : x.find.matches(e, x.grep(t, function(e) {
1535
- return 1 === e.nodeType
1536
- }))
1537
- }, dir: function(e, n, r) {
1538
- var i = [], o = e[n];
1539
- while (o && 9 !== o.nodeType && (r === t || 1 !== o.nodeType || !x(o).is(r)))
1540
- 1 === o.nodeType && i.push(o), o = o[n];
1541
- return i
1542
- }, sibling: function(e, t) {
1543
- var n = [];
1544
- for (; e; e = e.nextSibling)
1545
- 1 === e.nodeType && e !== t && n.push(e);
1546
- return n
1547
- }});
1548
- function ft(e, t, n) {
1549
- if (x.isFunction(t))
1550
- return x.grep(e, function(e, r) {
1551
- return!!t.call(e, r, e) !== n
1552
- });
1553
- if (t.nodeType)
1554
- return x.grep(e, function(e) {
1555
- return e === t !== n
1556
- });
1557
- if ("string" == typeof t) {
1558
- if (st.test(t))
1559
- return x.filter(t, e, n);
1560
- t = x.filter(t, e)
1561
- }
1562
- return x.grep(e, function(e) {
1563
- return x.inArray(e, t) >= 0 !== n
1564
- })
1565
- }
1566
- function dt(e) {
1567
- var t = ht.split("|"), n = e.createDocumentFragment();
1568
- if (n.createElement)
1569
- while (t.length)
1570
- n.createElement(t.pop());
1571
- return n
1572
- }
1573
- var ht = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", gt = / jQuery\d+="(?:null|\d+)"/g, mt = RegExp("<(?:" + ht + ")[\\s/>]", "i"), yt = /^\s+/, vt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, bt = /<([\w:]+)/, xt = /<tbody/i, wt = /<|&#?\w+;/, Tt = /<(?:script|style|link)/i, Ct = /^(?:checkbox|radio)$/i, Nt = /checked\s*(?:[^=]|=\s*.checked.)/i, kt = /^$|\/(?:java|ecma)script/i, Et = /^true\/(.*)/, St = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, At = {option: [1, "<select multiple='multiple'>", "</select>"], legend: [1, "<fieldset>", "</fieldset>"], area: [1, "<map>", "</map>"], param: [1, "<object>", "</object>"], thead: [1, "<table>", "</table>"], tr: [2, "<table><tbody>", "</tbody></table>"], col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"], td: [3, "<table><tbody><tr>", "</tr></tbody></table>"], _default: x.support.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]}, jt = dt(a), Dt = jt.appendChild(a.createElement("div"));
1574
- At.optgroup = At.option, At.tbody = At.tfoot = At.colgroup = At.caption = At.thead, At.th = At.td, x.fn.extend({text: function(e) {
1575
- return x.access(this, function(e) {
1576
- return e === t ? x.text(this) : this.empty().append((this[0] && this[0].ownerDocument || a).createTextNode(e))
1577
- }, null, e, arguments.length)
1578
- }, append: function() {
1579
- return this.domManip(arguments, function(e) {
1580
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
1581
- var t = Lt(this, e);
1582
- t.appendChild(e)
1583
- }
1584
- })
1585
- }, prepend: function() {
1586
- return this.domManip(arguments, function(e) {
1587
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
1588
- var t = Lt(this, e);
1589
- t.insertBefore(e, t.firstChild)
1590
- }
1591
- })
1592
- }, before: function() {
1593
- return this.domManip(arguments, function(e) {
1594
- this.parentNode && this.parentNode.insertBefore(e, this)
1595
- })
1596
- }, after: function() {
1597
- return this.domManip(arguments, function(e) {
1598
- this.parentNode && this.parentNode.insertBefore(e, this.nextSibling)
1599
- })
1600
- }, remove: function(e, t) {
1601
- var n, r = e ? x.filter(e, this) : this, i = 0;
1602
- for (; null != (n = r[i]); i++)
1603
- t || 1 !== n.nodeType || x.cleanData(Ft(n)), n.parentNode && (t && x.contains(n.ownerDocument, n) && _t(Ft(n, "script")), n.parentNode.removeChild(n));
1604
- return this
1605
- }, empty: function() {
1606
- var e, t = 0;
1607
- for (; null != (e = this[t]); t++) {
1608
- 1 === e.nodeType && x.cleanData(Ft(e, !1));
1609
- while (e.firstChild)
1610
- e.removeChild(e.firstChild);
1611
- e.options && x.nodeName(e, "select") && (e.options.length = 0)
1612
- }
1613
- return this
1614
- }, clone: function(e, t) {
1615
- return e = null == e ? !1 : e, t = null == t ? e : t, this.map(function() {
1616
- return x.clone(this, e, t)
1617
- })
1618
- }, html: function(e) {
1619
- return x.access(this, function(e) {
1620
- var n = this[0] || {}, r = 0, i = this.length;
1621
- if (e === t)
1622
- return 1 === n.nodeType ? n.innerHTML.replace(gt, "") : t;
1623
- if (!("string" != typeof e || Tt.test(e) || !x.support.htmlSerialize && mt.test(e) || !x.support.leadingWhitespace && yt.test(e) || At[(bt.exec(e) || ["", ""])[1].toLowerCase()])) {
1624
- e = e.replace(vt, "<$1></$2>");
1625
- try {
1626
- for (; i > r; r++)
1627
- n = this[r] || {}, 1 === n.nodeType && (x.cleanData(Ft(n, !1)), n.innerHTML = e);
1628
- n = 0
1629
- } catch (o) {
1630
- }
1631
- }
1632
- n && this.empty().append(e)
1633
- }, null, e, arguments.length)
1634
- }, replaceWith: function() {
1635
- var e = x.map(this, function(e) {
1636
- return[e.nextSibling, e.parentNode]
1637
- }), t = 0;
1638
- return this.domManip(arguments, function(n) {
1639
- var r = e[t++], i = e[t++];
1640
- i && (r && r.parentNode !== i && (r = this.nextSibling), x(this).remove(), i.insertBefore(n, r))
1641
- }, !0), t ? this : this.remove()
1642
- }, detach: function(e) {
1643
- return this.remove(e, !0)
1644
- }, domManip: function(e, t, n) {
1645
- e = d.apply([], e);
1646
- var r, i, o, a, s, l, u = 0, c = this.length, p = this, f = c - 1, h = e[0], g = x.isFunction(h);
1647
- if (g || !(1 >= c || "string" != typeof h || x.support.checkClone) && Nt.test(h))
1648
- return this.each(function(r) {
1649
- var i = p.eq(r);
1650
- g && (e[0] = h.call(this, r, i.html())), i.domManip(e, t, n)
1651
- });
1652
- if (c && (l = x.buildFragment(e, this[0].ownerDocument, !1, !n && this), r = l.firstChild, 1 === l.childNodes.length && (l = r), r)) {
1653
- for (a = x.map(Ft(l, "script"), Ht), o = a.length; c > u; u++)
1654
- i = l, u !== f && (i = x.clone(i, !0, !0), o && x.merge(a, Ft(i, "script"))), t.call(this[u], i, u);
1655
- if (o)
1656
- for (s = a[a.length - 1].ownerDocument, x.map(a, qt), u = 0; o > u; u++)
1657
- i = a[u], kt.test(i.type || "") && !x._data(i, "globalEval") && x.contains(s, i) && (i.src ? x._evalUrl(i.src) : x.globalEval((i.text || i.textContent || i.innerHTML || "").replace(St, "")));
1658
- l = r = null
1659
- }
1660
- return this
1661
- }});
1662
- function Lt(e, t) {
1663
- return x.nodeName(e, "table") && x.nodeName(1 === t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e
1664
- }
1665
- function Ht(e) {
1666
- return e.type = (null !== x.find.attr(e, "type")) + "/" + e.type, e
1667
- }
1668
- function qt(e) {
1669
- var t = Et.exec(e.type);
1670
- return t ? e.type = t[1] : e.removeAttribute("type"), e
1671
- }
1672
- function _t(e, t) {
1673
- var n, r = 0;
1674
- for (; null != (n = e[r]); r++)
1675
- x._data(n, "globalEval", !t || x._data(t[r], "globalEval"))
1676
- }
1677
- function Mt(e, t) {
1678
- if (1 === t.nodeType && x.hasData(e)) {
1679
- var n, r, i, o = x._data(e), a = x._data(t, o), s = o.events;
1680
- if (s) {
1681
- delete a.handle, a.events = {};
1682
- for (n in s)
1683
- for (r = 0, i = s[n].length; i > r; r++)
1684
- x.event.add(t, n, s[n][r])
1685
- }
1686
- a.data && (a.data = x.extend({}, a.data))
1687
- }
1688
- }
1689
- function Ot(e, t) {
1690
- var n, r, i;
1691
- if (1 === t.nodeType) {
1692
- if (n = t.nodeName.toLowerCase(), !x.support.noCloneEvent && t[x.expando]) {
1693
- i = x._data(t);
1694
- for (r in i.events)
1695
- x.removeEvent(t, r, i.handle);
1696
- t.removeAttribute(x.expando)
1697
- }
1698
- "script" === n && t.text !== e.text ? (Ht(t).text = e.text, qt(t)) : "object" === n ? (t.parentNode && (t.outerHTML = e.outerHTML), x.support.html5Clone && e.innerHTML && !x.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : "input" === n && Ct.test(e.type) ? (t.defaultChecked = t.checked = e.checked, t.value !== e.value && (t.value = e.value)) : "option" === n ? t.defaultSelected = t.selected = e.defaultSelected : ("input" === n || "textarea" === n) && (t.defaultValue = e.defaultValue)
1699
- }
1700
- }
1701
- x.each({appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith"}, function(e, t) {
1702
- x.fn[e] = function(e) {
1703
- var n, r = 0, i = [], o = x(e), a = o.length - 1;
1704
- for (; a >= r; r++)
1705
- n = r === a ? this : this.clone(!0), x(o[r])[t](n), h.apply(i, n.get());
1706
- return this.pushStack(i)
1707
- }
1708
- });
1709
- function Ft(e, n) {
1710
- var r, o, a = 0, s = typeof e.getElementsByTagName !== i ? e.getElementsByTagName(n || "*") : typeof e.querySelectorAll !== i ? e.querySelectorAll(n || "*") : t;
1711
- if (!s)
1712
- for (s = [], r = e.childNodes || e; null != (o = r[a]); a++)
1713
- !n || x.nodeName(o, n) ? s.push(o) : x.merge(s, Ft(o, n));
1714
- return n === t || n && x.nodeName(e, n) ? x.merge([e], s) : s
1715
- }
1716
- function Bt(e) {
1717
- Ct.test(e.type) && (e.defaultChecked = e.checked)
1718
- }
1719
- x.extend({clone: function(e, t, n) {
1720
- var r, i, o, a, s, l = x.contains(e.ownerDocument, e);
1721
- if (x.support.html5Clone || x.isXMLDoc(e) || !mt.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (Dt.innerHTML = e.outerHTML, Dt.removeChild(o = Dt.firstChild)), !(x.support.noCloneEvent && x.support.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || x.isXMLDoc(e)))
1722
- for (r = Ft(o), s = Ft(e), a = 0; null != (i = s[a]); ++a)
1723
- r[a] && Ot(i, r[a]);
1724
- if (t)
1725
- if (n)
1726
- for (s = s || Ft(e), r = r || Ft(o), a = 0; null != (i = s[a]); a++)
1727
- Mt(i, r[a]);
1728
- else
1729
- Mt(e, o);
1730
- return r = Ft(o, "script"), r.length > 0 && _t(r, !l && Ft(e, "script")), r = s = i = null, o
1731
- }, buildFragment: function(e, t, n, r) {
1732
- var i, o, a, s, l, u, c, p = e.length, f = dt(t), d = [], h = 0;
1733
- for (; p > h; h++)
1734
- if (o = e[h], o || 0 === o)
1735
- if ("object" === x.type(o))
1736
- x.merge(d, o.nodeType ? [o] : o);
1737
- else if (wt.test(o)) {
1738
- s = s || f.appendChild(t.createElement("div")), l = (bt.exec(o) || ["", ""])[1].toLowerCase(), c = At[l] || At._default, s.innerHTML = c[1] + o.replace(vt, "<$1></$2>") + c[2], i = c[0];
1739
- while (i--)
1740
- s = s.lastChild;
1741
- if (!x.support.leadingWhitespace && yt.test(o) && d.push(t.createTextNode(yt.exec(o)[0])), !x.support.tbody) {
1742
- o = "table" !== l || xt.test(o) ? "<table>" !== c[1] || xt.test(o) ? 0 : s : s.firstChild, i = o && o.childNodes.length;
1743
- while (i--)
1744
- x.nodeName(u = o.childNodes[i], "tbody") && !u.childNodes.length && o.removeChild(u)
1745
- }
1746
- x.merge(d, s.childNodes), s.textContent = "";
1747
- while (s.firstChild)
1748
- s.removeChild(s.firstChild);
1749
- s = f.lastChild
1750
- } else
1751
- d.push(t.createTextNode(o));
1752
- s && f.removeChild(s), x.support.appendChecked || x.grep(Ft(d, "input"), Bt), h = 0;
1753
- while (o = d[h++])
1754
- if ((!r || -1 === x.inArray(o, r)) && (a = x.contains(o.ownerDocument, o), s = Ft(f.appendChild(o), "script"), a && _t(s), n)) {
1755
- i = 0;
1756
- while (o = s[i++])
1757
- kt.test(o.type || "") && n.push(o)
1758
- }
1759
- return s = null, f
1760
- }, cleanData: function(e, t) {
1761
- var n, r, o, a, s = 0, l = x.expando, u = x.cache, c = x.support.deleteExpando, f = x.event.special;
1762
- for (; null != (n = e[s]); s++)
1763
- if ((t || x.acceptData(n)) && (o = n[l], a = o && u[o])) {
1764
- if (a.events)
1765
- for (r in a.events)
1766
- f[r] ? x.event.remove(n, r) : x.removeEvent(n, r, a.handle);
1767
- u[o] && (delete u[o], c ? delete n[l] : typeof n.removeAttribute !== i ? n.removeAttribute(l) : n[l] = null, p.push(o))
1768
- }
1769
- }, _evalUrl: function(e) {
1770
- return x.ajax({url: e, type: "GET", dataType: "script", async: !1, global: !1, "throws": !0})
1771
- }}), x.fn.extend({wrapAll: function(e) {
1772
- if (x.isFunction(e))
1773
- return this.each(function(t) {
1774
- x(this).wrapAll(e.call(this, t))
1775
- });
1776
- if (this[0]) {
1777
- var t = x(e, this[0].ownerDocument).eq(0).clone(!0);
1778
- this[0].parentNode && t.insertBefore(this[0]), t.map(function() {
1779
- var e = this;
1780
- while (e.firstChild && 1 === e.firstChild.nodeType)
1781
- e = e.firstChild;
1782
- return e
1783
- }).append(this)
1784
- }
1785
- return this
1786
- }, wrapInner: function(e) {
1787
- return x.isFunction(e) ? this.each(function(t) {
1788
- x(this).wrapInner(e.call(this, t))
1789
- }) : this.each(function() {
1790
- var t = x(this), n = t.contents();
1791
- n.length ? n.wrapAll(e) : t.append(e)
1792
- })
1793
- }, wrap: function(e) {
1794
- var t = x.isFunction(e);
1795
- return this.each(function(n) {
1796
- x(this).wrapAll(t ? e.call(this, n) : e)
1797
- })
1798
- }, unwrap: function() {
1799
- return this.parent().each(function() {
1800
- x.nodeName(this, "body") || x(this).replaceWith(this.childNodes)
1801
- }).end()
1802
- }});
1803
- var Pt, Rt, Wt, $t = /alpha\([^)]*\)/i, It = /opacity\s*=\s*([^)]*)/, zt = /^(top|right|bottom|left)$/, Xt = /^(none|table(?!-c[ea]).+)/, Ut = /^margin/, Vt = RegExp("^(" + w + ")(.*)$", "i"), Yt = RegExp("^(" + w + ")(?!px)[a-z%]+$", "i"), Jt = RegExp("^([+-])=(" + w + ")", "i"), Gt = {BODY: "block"}, Qt = {position: "absolute", visibility: "hidden", display: "block"}, Kt = {letterSpacing: 0, fontWeight: 400}, Zt = ["Top", "Right", "Bottom", "Left"], en = ["Webkit", "O", "Moz", "ms"];
1804
- function tn(e, t) {
1805
- if (t in e)
1806
- return t;
1807
- var n = t.charAt(0).toUpperCase() + t.slice(1), r = t, i = en.length;
1808
- while (i--)
1809
- if (t = en[i] + n, t in e)
1810
- return t;
1811
- return r
1812
- }
1813
- function nn(e, t) {
1814
- return e = t || e, "none" === x.css(e, "display") || !x.contains(e.ownerDocument, e)
1815
- }
1816
- function rn(e, t) {
1817
- var n, r, i, o = [], a = 0, s = e.length;
1818
- for (; s > a; a++)
1819
- r = e[a], r.style && (o[a] = x._data(r, "olddisplay"), n = r.style.display, t ? (o[a] || "none" !== n || (r.style.display = ""), "" === r.style.display && nn(r) && (o[a] = x._data(r, "olddisplay", ln(r.nodeName)))) : o[a] || (i = nn(r), (n && "none" !== n || !i) && x._data(r, "olddisplay", i ? n : x.css(r, "display"))));
1820
- for (a = 0; s > a; a++)
1821
- r = e[a], r.style && (t && "none" !== r.style.display && "" !== r.style.display || (r.style.display = t ? o[a] || "" : "none"));
1822
- return e
1823
- }
1824
- x.fn.extend({css: function(e, n) {
1825
- return x.access(this, function(e, n, r) {
1826
- var i, o, a = {}, s = 0;
1827
- if (x.isArray(n)) {
1828
- for (o = Rt(e), i = n.length; i > s; s++)
1829
- a[n[s]] = x.css(e, n[s], !1, o);
1830
- return a
1831
- }
1832
- return r !== t ? x.style(e, n, r) : x.css(e, n)
1833
- }, e, n, arguments.length > 1)
1834
- }, show: function() {
1835
- return rn(this, !0)
1836
- }, hide: function() {
1837
- return rn(this)
1838
- }, toggle: function(e) {
1839
- return"boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function() {
1840
- nn(this) ? x(this).show() : x(this).hide()
1841
- })
1842
- }}), x.extend({cssHooks: {opacity: {get: function(e, t) {
1843
- if (t) {
1844
- var n = Wt(e, "opacity");
1845
- return"" === n ? "1" : n
1846
- }
1847
- }}}, cssNumber: {columnCount: !0, fillOpacity: !0, fontWeight: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, widows: !0, zIndex: !0, zoom: !0}, cssProps: {"float": x.support.cssFloat ? "cssFloat" : "styleFloat"}, style: function(e, n, r, i) {
1848
- if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
1849
- var o, a, s, l = x.camelCase(n), u = e.style;
1850
- if (n = x.cssProps[l] || (x.cssProps[l] = tn(u, l)), s = x.cssHooks[n] || x.cssHooks[l], r === t)
1851
- return s && "get"in s && (o = s.get(e, !1, i)) !== t ? o : u[n];
1852
- if (a = typeof r, "string" === a && (o = Jt.exec(r)) && (r = (o[1] + 1) * o[2] + parseFloat(x.css(e, n)), a = "number"), !(null == r || "number" === a && isNaN(r) || ("number" !== a || x.cssNumber[l] || (r += "px"), x.support.clearCloneStyle || "" !== r || 0 !== n.indexOf("background") || (u[n] = "inherit"), s && "set"in s && (r = s.set(e, r, i)) === t)))
1853
- try {
1854
- u[n] = r
1855
- } catch (c) {
1856
- }
1857
- }
1858
- }, css: function(e, n, r, i) {
1859
- var o, a, s, l = x.camelCase(n);
1860
- return n = x.cssProps[l] || (x.cssProps[l] = tn(e.style, l)), s = x.cssHooks[n] || x.cssHooks[l], s && "get"in s && (a = s.get(e, !0, r)), a === t && (a = Wt(e, n, i)), "normal" === a && n in Kt && (a = Kt[n]), "" === r || r ? (o = parseFloat(a), r === !0 || x.isNumeric(o) ? o || 0 : a) : a
1861
- }}), e.getComputedStyle ? (Rt = function(t) {
1862
- return e.getComputedStyle(t, null)
1863
- }, Wt = function(e, n, r) {
1864
- var i, o, a, s = r || Rt(e), l = s ? s.getPropertyValue(n) || s[n] : t, u = e.style;
1865
- return s && ("" !== l || x.contains(e.ownerDocument, e) || (l = x.style(e, n)), Yt.test(l) && Ut.test(n) && (i = u.width, o = u.minWidth, a = u.maxWidth, u.minWidth = u.maxWidth = u.width = l, l = s.width, u.width = i, u.minWidth = o, u.maxWidth = a)), l
1866
- }) : a.documentElement.currentStyle && (Rt = function(e) {
1867
- return e.currentStyle
1868
- }, Wt = function(e, n, r) {
1869
- var i, o, a, s = r || Rt(e), l = s ? s[n] : t, u = e.style;
1870
- return null == l && u && u[n] && (l = u[n]), Yt.test(l) && !zt.test(n) && (i = u.left, o = e.runtimeStyle, a = o && o.left, a && (o.left = e.currentStyle.left), u.left = "fontSize" === n ? "1em" : l, l = u.pixelLeft + "px", u.left = i, a && (o.left = a)), "" === l ? "auto" : l
1871
- });
1872
- function on(e, t, n) {
1873
- var r = Vt.exec(t);
1874
- return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t
1875
- }
1876
- function an(e, t, n, r, i) {
1877
- var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0, a = 0;
1878
- for (; 4 > o; o += 2)
1879
- "margin" === n && (a += x.css(e, n + Zt[o], !0, i)), r ? ("content" === n && (a -= x.css(e, "padding" + Zt[o], !0, i)), "margin" !== n && (a -= x.css(e, "border" + Zt[o] + "Width", !0, i))) : (a += x.css(e, "padding" + Zt[o], !0, i), "padding" !== n && (a += x.css(e, "border" + Zt[o] + "Width", !0, i)));
1880
- return a
1881
- }
1882
- function sn(e, t, n) {
1883
- var r = !0, i = "width" === t ? e.offsetWidth : e.offsetHeight, o = Rt(e), a = x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, o);
1884
- if (0 >= i || null == i) {
1885
- if (i = Wt(e, t, o), (0 > i || null == i) && (i = e.style[t]), Yt.test(i))
1886
- return i;
1887
- r = a && (x.support.boxSizingReliable || i === e.style[t]), i = parseFloat(i) || 0
1888
- }
1889
- return i + an(e, t, n || (a ? "border" : "content"), r, o) + "px"
1890
- }
1891
- function ln(e) {
1892
- var t = a, n = Gt[e];
1893
- return n || (n = un(e, t), "none" !== n && n || (Pt = (Pt || x("<iframe frameborder='0' width='0' height='0'/>").css("cssText", "display:block !important")).appendTo(t.documentElement), t = (Pt[0].contentWindow || Pt[0].contentDocument).document, t.write("<!doctype html><html><body>"), t.close(), n = un(e, t), Pt.detach()), Gt[e] = n), n
1894
- }
1895
- function un(e, t) {
1896
- var n = x(t.createElement(e)).appendTo(t.body), r = x.css(n[0], "display");
1897
- return n.remove(), r
1898
- }
1899
- x.each(["height", "width"], function(e, n) {
1900
- x.cssHooks[n] = {get: function(e, r, i) {
1901
- return r ? 0 === e.offsetWidth && Xt.test(x.css(e, "display")) ? x.swap(e, Qt, function() {
1902
- return sn(e, n, i)
1903
- }) : sn(e, n, i) : t
1904
- }, set: function(e, t, r) {
1905
- var i = r && Rt(e);
1906
- return on(e, t, r ? an(e, n, r, x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, i), i) : 0)
1907
- }}
1908
- }), x.support.opacity || (x.cssHooks.opacity = {get: function(e, t) {
1909
- return It.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : ""
1910
- }, set: function(e, t) {
1911
- var n = e.style, r = e.currentStyle, i = x.isNumeric(t) ? "alpha(opacity=" + 100 * t + ")" : "", o = r && r.filter || n.filter || "";
1912
- n.zoom = 1, (t >= 1 || "" === t) && "" === x.trim(o.replace($t, "")) && n.removeAttribute && (n.removeAttribute("filter"), "" === t || r && !r.filter) || (n.filter = $t.test(o) ? o.replace($t, i) : o + " " + i)
1913
- }}), x(function() {
1914
- x.support.reliableMarginRight || (x.cssHooks.marginRight = {get: function(e, n) {
1915
- return n ? x.swap(e, {display: "inline-block"}, Wt, [e, "marginRight"]) : t
1916
- }}), !x.support.pixelPosition && x.fn.position && x.each(["top", "left"], function(e, n) {
1917
- x.cssHooks[n] = {get: function(e, r) {
1918
- return r ? (r = Wt(e, n), Yt.test(r) ? x(e).position()[n] + "px" : r) : t
1919
- }}
1920
- })
1921
- }), x.expr && x.expr.filters && (x.expr.filters.hidden = function(e) {
1922
- return 0 >= e.offsetWidth && 0 >= e.offsetHeight || !x.support.reliableHiddenOffsets && "none" === (e.style && e.style.display || x.css(e, "display"))
1923
- }, x.expr.filters.visible = function(e) {
1924
- return!x.expr.filters.hidden(e)
1925
- }), x.each({margin: "", padding: "", border: "Width"}, function(e, t) {
1926
- x.cssHooks[e + t] = {expand: function(n) {
1927
- var r = 0, i = {}, o = "string" == typeof n ? n.split(" ") : [n];
1928
- for (; 4 > r; r++)
1929
- i[e + Zt[r] + t] = o[r] || o[r - 2] || o[0];
1930
- return i
1931
- }}, Ut.test(e) || (x.cssHooks[e + t].set = on)
1932
- });
1933
- var cn = /%20/g, pn = /\[\]$/, fn = /\r?\n/g, dn = /^(?:submit|button|image|reset|file)$/i, hn = /^(?:input|select|textarea|keygen)/i;
1934
- x.fn.extend({serialize: function() {
1935
- return x.param(this.serializeArray())
1936
- }, serializeArray: function() {
1937
- return this.map(function() {
1938
- var e = x.prop(this, "elements");
1939
- return e ? x.makeArray(e) : this
1940
- }).filter(function() {
1941
- var e = this.type;
1942
- return this.name && !x(this).is(":disabled") && hn.test(this.nodeName) && !dn.test(e) && (this.checked || !Ct.test(e))
1943
- }).map(function(e, t) {
1944
- var n = x(this).val();
1945
- return null == n ? null : x.isArray(n) ? x.map(n, function(e) {
1946
- return{name: t.name, value: e.replace(fn, "\r\n")}
1947
- }) : {name: t.name, value: n.replace(fn, "\r\n")}
1948
- }).get()
1949
- }}), x.param = function(e, n) {
1950
- var r, i = [], o = function(e, t) {
1951
- t = x.isFunction(t) ? t() : null == t ? "" : t, i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t)
1952
- };
1953
- if (n === t && (n = x.ajaxSettings && x.ajaxSettings.traditional), x.isArray(e) || e.jquery && !x.isPlainObject(e))
1954
- x.each(e, function() {
1955
- o(this.name, this.value)
1956
- });
1957
- else
1958
- for (r in e)
1959
- gn(r, e[r], n, o);
1960
- return i.join("&").replace(cn, "+")
1961
- };
1962
- function gn(e, t, n, r) {
1963
- var i;
1964
- if (x.isArray(t))
1965
- x.each(t, function(t, i) {
1966
- n || pn.test(e) ? r(e, i) : gn(e + "[" + ("object" == typeof i ? t : "") + "]", i, n, r)
1967
- });
1968
- else if (n || "object" !== x.type(t))
1969
- r(e, t);
1970
- else
1971
- for (i in t)
1972
- gn(e + "[" + i + "]", t[i], n, r)
1973
- }
1974
- x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function(e, t) {
1975
- x.fn[t] = function(e, n) {
1976
- return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)
1977
- }
1978
- }), x.fn.extend({hover: function(e, t) {
1979
- return this.mouseenter(e).mouseleave(t || e)
1980
- }, bind: function(e, t, n) {
1981
- return this.on(e, null, t, n)
1982
- }, unbind: function(e, t) {
1983
- return this.off(e, null, t)
1984
- }, delegate: function(e, t, n, r) {
1985
- return this.on(t, e, n, r)
1986
- }, undelegate: function(e, t, n) {
1987
- return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n)
1988
- }});
1989
- var mn, yn, vn = x.now(), bn = /\?/, xn = /#.*$/, wn = /([?&])_=[^&]*/, Tn = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm, Cn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, Nn = /^(?:GET|HEAD)$/, kn = /^\/\//, En = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, Sn = x.fn.load, An = {}, jn = {}, Dn = "*/".concat("*");
1990
- try {
1991
- yn = o.href
1992
- } catch (Ln) {
1993
- yn = a.createElement("a"), yn.href = "", yn = yn.href
1994
- }
1995
- mn = En.exec(yn.toLowerCase()) || [];
1996
- function Hn(e) {
1997
- return function(t, n) {
1998
- "string" != typeof t && (n = t, t = "*");
1999
- var r, i = 0, o = t.toLowerCase().match(T) || [];
2000
- if (x.isFunction(n))
2001
- while (r = o[i++])
2002
- "+" === r[0] ? (r = r.slice(1) || "*", (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n)
2003
- }
2004
- }
2005
- function qn(e, n, r, i) {
2006
- var o = {}, a = e === jn;
2007
- function s(l) {
2008
- var u;
2009
- return o[l] = !0, x.each(e[l] || [], function(e, l) {
2010
- var c = l(n, r, i);
2011
- return"string" != typeof c || a || o[c] ? a ? !(u = c) : t : (n.dataTypes.unshift(c), s(c), !1)
2012
- }), u
2013
- }
2014
- return s(n.dataTypes[0]) || !o["*"] && s("*")
2015
- }
2016
- function _n(e, n) {
2017
- var r, i, o = x.ajaxSettings.flatOptions || {};
2018
- for (i in n)
2019
- n[i] !== t && ((o[i] ? e : r || (r = {}))[i] = n[i]);
2020
- return r && x.extend(!0, e, r), e
2021
- }
2022
- x.fn.load = function(e, n, r) {
2023
- if ("string" != typeof e && Sn)
2024
- return Sn.apply(this, arguments);
2025
- var i, o, a, s = this, l = e.indexOf(" ");
2026
- return l >= 0 && (i = e.slice(l, e.length), e = e.slice(0, l)), x.isFunction(n) ? (r = n, n = t) : n && "object" == typeof n && (a = "POST"), s.length > 0 && x.ajax({url: e, type: a, dataType: "html", data: n}).done(function(e) {
2027
- o = arguments, s.html(i ? x("<div>").append(x.parseHTML(e)).find(i) : e)
2028
- }).complete(r && function(e, t) {
2029
- s.each(r, o || [e.responseText, t, e])
2030
- }), this
2031
- }, x.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(e, t) {
2032
- x.fn[t] = function(e) {
2033
- return this.on(t, e)
2034
- }
2035
- }), x.extend({active: 0, lastModified: {}, etag: {}, ajaxSettings: {url: yn, type: "GET", isLocal: Cn.test(mn[1]), global: !0, processData: !0, async: !0, contentType: "application/x-www-form-urlencoded; charset=UTF-8", accepts: {"*": Dn, text: "text/plain", html: "text/html", xml: "application/xml, text/xml", json: "application/json, text/javascript"}, contents: {xml: /xml/, html: /html/, json: /json/}, responseFields: {xml: "responseXML", text: "responseText", json: "responseJSON"}, converters: {"* text": String, "text html": !0, "text json": x.parseJSON, "text xml": x.parseXML}, flatOptions: {url: !0, context: !0}}, ajaxSetup: function(e, t) {
2036
- return t ? _n(_n(e, x.ajaxSettings), t) : _n(x.ajaxSettings, e)
2037
- }, ajaxPrefilter: Hn(An), ajaxTransport: Hn(jn), ajax: function(e, n) {
2038
- "object" == typeof e && (n = e, e = t), n = n || {};
2039
- var r, i, o, a, s, l, u, c, p = x.ajaxSetup({}, n), f = p.context || p, d = p.context && (f.nodeType || f.jquery) ? x(f) : x.event, h = x.Deferred(), g = x.Callbacks("once memory"), m = p.statusCode || {}, y = {}, v = {}, b = 0, w = "canceled", C = {readyState: 0, getResponseHeader: function(e) {
2040
- var t;
2041
- if (2 === b) {
2042
- if (!c) {
2043
- c = {};
2044
- while (t = Tn.exec(a))
2045
- c[t[1].toLowerCase()] = t[2]
2046
- }
2047
- t = c[e.toLowerCase()]
2048
- }
2049
- return null == t ? null : t
2050
- }, getAllResponseHeaders: function() {
2051
- return 2 === b ? a : null
2052
- }, setRequestHeader: function(e, t) {
2053
- var n = e.toLowerCase();
2054
- return b || (e = v[n] = v[n] || e, y[e] = t), this
2055
- }, overrideMimeType: function(e) {
2056
- return b || (p.mimeType = e), this
2057
- }, statusCode: function(e) {
2058
- var t;
2059
- if (e)
2060
- if (2 > b)
2061
- for (t in e)
2062
- m[t] = [m[t], e[t]];
2063
- else
2064
- C.always(e[C.status]);
2065
- return this
2066
- }, abort: function(e) {
2067
- var t = e || w;
2068
- return u && u.abort(t), k(0, t), this
2069
- }};
2070
- if (h.promise(C).complete = g.add, C.success = C.done, C.error = C.fail, p.url = ((e || p.url || yn) + "").replace(xn, "").replace(kn, mn[1] + "//"), p.type = n.method || n.type || p.method || p.type, p.dataTypes = x.trim(p.dataType || "*").toLowerCase().match(T) || [""], null == p.crossDomain && (r = En.exec(p.url.toLowerCase()), p.crossDomain = !(!r || r[1] === mn[1] && r[2] === mn[2] && (r[3] || ("http:" === r[1] ? "80" : "443")) === (mn[3] || ("http:" === mn[1] ? "80" : "443")))), p.data && p.processData && "string" != typeof p.data && (p.data = x.param(p.data, p.traditional)), qn(An, p, n, C), 2 === b)
2071
- return C;
2072
- l = p.global, l && 0 === x.active++ && x.event.trigger("ajaxStart"), p.type = p.type.toUpperCase(), p.hasContent = !Nn.test(p.type), o = p.url, p.hasContent || (p.data && (o = p.url += (bn.test(o) ? "&" : "?") + p.data, delete p.data), p.cache === !1 && (p.url = wn.test(o) ? o.replace(wn, "$1_=" + vn++) : o + (bn.test(o) ? "&" : "?") + "_=" + vn++)), p.ifModified && (x.lastModified[o] && C.setRequestHeader("If-Modified-Since", x.lastModified[o]), x.etag[o] && C.setRequestHeader("If-None-Match", x.etag[o])), (p.data && p.hasContent && p.contentType !== !1 || n.contentType) && C.setRequestHeader("Content-Type", p.contentType), C.setRequestHeader("Accept", p.dataTypes[0] && p.accepts[p.dataTypes[0]] ? p.accepts[p.dataTypes[0]] + ("*" !== p.dataTypes[0] ? ", " + Dn + "; q=0.01" : "") : p.accepts["*"]);
2073
- for (i in p.headers)
2074
- C.setRequestHeader(i, p.headers[i]);
2075
- if (p.beforeSend && (p.beforeSend.call(f, C, p) === !1 || 2 === b))
2076
- return C.abort();
2077
- w = "abort";
2078
- for (i in{success:1, error:1, complete:1})
2079
- C[i](p[i]);
2080
- if (u = qn(jn, p, n, C)) {
2081
- C.readyState = 1, l && d.trigger("ajaxSend", [C, p]), p.async && p.timeout > 0 && (s = setTimeout(function() {
2082
- C.abort("timeout")
2083
- }, p.timeout));
2084
- try {
2085
- b = 1, u.send(y, k)
2086
- } catch (N) {
2087
- if (!(2 > b))
2088
- throw N;
2089
- k(-1, N)
2090
- }
2091
- } else
2092
- k(-1, "No Transport");
2093
- function k(e, n, r, i) {
2094
- var c, y, v, w, T, N = n;
2095
- 2 !== b && (b = 2, s && clearTimeout(s), u = t, a = i || "", C.readyState = e > 0 ? 4 : 0, c = e >= 200 && 300 > e || 304 === e, r && (w = Mn(p, C, r)), w = On(p, w, C, c), c ? (p.ifModified && (T = C.getResponseHeader("Last-Modified"), T && (x.lastModified[o] = T), T = C.getResponseHeader("etag"), T && (x.etag[o] = T)), 204 === e || "HEAD" === p.type ? N = "nocontent" : 304 === e ? N = "notmodified" : (N = w.state, y = w.data, v = w.error, c = !v)) : (v = N, (e || !N) && (N = "error", 0 > e && (e = 0))), C.status = e, C.statusText = (n || N) + "", c ? h.resolveWith(f, [y, N, C]) : h.rejectWith(f, [C, N, v]), C.statusCode(m), m = t, l && d.trigger(c ? "ajaxSuccess" : "ajaxError", [C, p, c ? y : v]), g.fireWith(f, [C, N]), l && (d.trigger("ajaxComplete", [C, p]), --x.active || x.event.trigger("ajaxStop")))
2096
- }
2097
- return C
2098
- }, getJSON: function(e, t, n) {
2099
- return x.get(e, t, n, "json")
2100
- }, getScript: function(e, n) {
2101
- return x.get(e, t, n, "script")
2102
- }}), x.each(["get", "post"], function(e, n) {
2103
- x[n] = function(e, r, i, o) {
2104
- return x.isFunction(r) && (o = o || i, i = r, r = t), x.ajax({url: e, type: n, dataType: o, data: r, success: i})
2105
- }
2106
- });
2107
- function Mn(e, n, r) {
2108
- var i, o, a, s, l = e.contents, u = e.dataTypes;
2109
- while ("*" === u[0])
2110
- u.shift(), o === t && (o = e.mimeType || n.getResponseHeader("Content-Type"));
2111
- if (o)
2112
- for (s in l)
2113
- if (l[s] && l[s].test(o)) {
2114
- u.unshift(s);
2115
- break
2116
- }
2117
- if (u[0]in r)
2118
- a = u[0];
2119
- else {
2120
- for (s in r) {
2121
- if (!u[0] || e.converters[s + " " + u[0]]) {
2122
- a = s;
2123
- break
2124
- }
2125
- i || (i = s)
2126
- }
2127
- a = a || i
2128
- }
2129
- return a ? (a !== u[0] && u.unshift(a), r[a]) : t
2130
- }
2131
- function On(e, t, n, r) {
2132
- var i, o, a, s, l, u = {}, c = e.dataTypes.slice();
2133
- if (c[1])
2134
- for (a in e.converters)
2135
- u[a.toLowerCase()] = e.converters[a];
2136
- o = c.shift();
2137
- while (o)
2138
- if (e.responseFields[o] && (n[e.responseFields[o]] = t), !l && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), l = o, o = c.shift())
2139
- if ("*" === o)
2140
- o = l;
2141
- else if ("*" !== l && l !== o) {
2142
- if (a = u[l + " " + o] || u["* " + o], !a)
2143
- for (i in u)
2144
- if (s = i.split(" "), s[1] === o && (a = u[l + " " + s[0]] || u["* " + s[0]])) {
2145
- a === !0 ? a = u[i] : u[i] !== !0 && (o = s[0], c.unshift(s[1]));
2146
- break
2147
- }
2148
- if (a !== !0)
2149
- if (a && e["throws"])
2150
- t = a(t);
2151
- else
2152
- try {
2153
- t = a(t)
2154
- } catch (p) {
2155
- return{state: "parsererror", error: a ? p : "No conversion from " + l + " to " + o}
2156
- }
2157
- }
2158
- return{state: "success", data: t}
2159
- }
2160
- x.ajaxSetup({accepts: {script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"}, contents: {script: /(?:java|ecma)script/}, converters: {"text script": function(e) {
2161
- return x.globalEval(e), e
2162
- }}}), x.ajaxPrefilter("script", function(e) {
2163
- e.cache === t && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1)
2164
- }), x.ajaxTransport("script", function(e) {
2165
- if (e.crossDomain) {
2166
- var n, r = a.head || x("head")[0] || a.documentElement;
2167
- return{send: function(t, i) {
2168
- n = a.createElement("script"), n.async = !0, e.scriptCharset && (n.charset = e.scriptCharset), n.src = e.url, n.onload = n.onreadystatechange = function(e, t) {
2169
- (t || !n.readyState || /loaded|complete/.test(n.readyState)) && (n.onload = n.onreadystatechange = null, n.parentNode && n.parentNode.removeChild(n), n = null, t || i(200, "success"))
2170
- }, r.insertBefore(n, r.firstChild)
2171
- }, abort: function() {
2172
- n && n.onload(t, !0)
2173
- }}
2174
- }
2175
- });
2176
- var Fn = [], Bn = /(=)\?(?=&|$)|\?\?/;
2177
- x.ajaxSetup({jsonp: "callback", jsonpCallback: function() {
2178
- var e = Fn.pop() || x.expando + "_" + vn++;
2179
- return this[e] = !0, e
2180
- }}), x.ajaxPrefilter("json jsonp", function(n, r, i) {
2181
- var o, a, s, l = n.jsonp !== !1 && (Bn.test(n.url) ? "url" : "string" == typeof n.data && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && Bn.test(n.data) && "data");
2182
- return l || "jsonp" === n.dataTypes[0] ? (o = n.jsonpCallback = x.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback, l ? n[l] = n[l].replace(Bn, "$1" + o) : n.jsonp !== !1 && (n.url += (bn.test(n.url) ? "&" : "?") + n.jsonp + "=" + o), n.converters["script json"] = function() {
2183
- return s || x.error(o + " was not called"), s[0]
2184
- }, n.dataTypes[0] = "json", a = e[o], e[o] = function() {
2185
- s = arguments
2186
- }, i.always(function() {
2187
- e[o] = a, n[o] && (n.jsonpCallback = r.jsonpCallback, Fn.push(o)), s && x.isFunction(a) && a(s[0]), s = a = t
2188
- }), "script") : t
2189
- });
2190
- var Pn, Rn, Wn = 0, $n = e.ActiveXObject && function() {
2191
- var e;
2192
- for (e in Pn)
2193
- Pn[e](t, !0)
2194
- };
2195
- function In() {
2196
- try {
2197
- return new e.XMLHttpRequest
2198
- } catch (t) {
2199
- }
2200
- }
2201
- function zn() {
2202
- try {
2203
- return new e.ActiveXObject("Microsoft.XMLHTTP")
2204
- } catch (t) {
2205
- }
2206
- }
2207
- x.ajaxSettings.xhr = e.ActiveXObject ? function() {
2208
- return!this.isLocal && In() || zn()
2209
- } : In, Rn = x.ajaxSettings.xhr(), x.support.cors = !!Rn && "withCredentials"in Rn, Rn = x.support.ajax = !!Rn, Rn && x.ajaxTransport(function(n) {
2210
- if (!n.crossDomain || x.support.cors) {
2211
- var r;
2212
- return{send: function(i, o) {
2213
- var a, s, l = n.xhr();
2214
- if (n.username ? l.open(n.type, n.url, n.async, n.username, n.password) : l.open(n.type, n.url, n.async), n.xhrFields)
2215
- for (s in n.xhrFields)
2216
- l[s] = n.xhrFields[s];
2217
- n.mimeType && l.overrideMimeType && l.overrideMimeType(n.mimeType), n.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest");
2218
- try {
2219
- for (s in i)
2220
- l.setRequestHeader(s, i[s])
2221
- } catch (u) {
2222
- }
2223
- l.send(n.hasContent && n.data || null), r = function(e, i) {
2224
- var s, u, c, p;
2225
- try {
2226
- if (r && (i || 4 === l.readyState))
2227
- if (r = t, a && (l.onreadystatechange = x.noop, $n && delete Pn[a]), i)
2228
- 4 !== l.readyState && l.abort();
2229
- else {
2230
- p = {}, s = l.status, u = l.getAllResponseHeaders(), "string" == typeof l.responseText && (p.text = l.responseText);
2231
- try {
2232
- c = l.statusText
2233
- } catch (f) {
2234
- c = ""
2235
- }
2236
- s || !n.isLocal || n.crossDomain ? 1223 === s && (s = 204) : s = p.text ? 200 : 404
2237
- }
2238
- } catch (d) {
2239
- i || o(-1, d)
2240
- }
2241
- p && o(s, c, p, u)
2242
- }, n.async ? 4 === l.readyState ? setTimeout(r) : (a = ++Wn, $n && (Pn || (Pn = {}, x(e).unload($n)), Pn[a] = r), l.onreadystatechange = r) : r()
2243
- }, abort: function() {
2244
- r && r(t, !0)
2245
- }}
2246
- }
2247
- });
2248
- var Xn, Un, Vn = /^(?:toggle|show|hide)$/, Yn = RegExp("^(?:([+-])=|)(" + w + ")([a-z%]*)$", "i"), Jn = /queueHooks$/, Gn = [nr], Qn = {"*": [function(e, t) {
2249
- var n = this.createTween(e, t), r = n.cur(), i = Yn.exec(t), o = i && i[3] || (x.cssNumber[e] ? "" : "px"), a = (x.cssNumber[e] || "px" !== o && +r) && Yn.exec(x.css(n.elem, e)), s = 1, l = 20;
2250
- if (a && a[3] !== o) {
2251
- o = o || a[3], i = i || [], a = +r || 1;
2252
- do
2253
- s = s || ".5", a /= s, x.style(n.elem, e, a + o);
2254
- while (s !== (s = n.cur() / r) && 1 !== s && --l)
2255
- }
2256
- return i && (a = n.start = +a || +r || 0, n.unit = o, n.end = i[1] ? a + (i[1] + 1) * i[2] : +i[2]), n
2257
- }]};
2258
- function Kn() {
2259
- return setTimeout(function() {
2260
- Xn = t
2261
- }), Xn = x.now()
2262
- }
2263
- function Zn(e, t, n) {
2264
- var r, i = (Qn[t] || []).concat(Qn["*"]), o = 0, a = i.length;
2265
- for (; a > o; o++)
2266
- if (r = i[o].call(n, t, e))
2267
- return r
2268
- }
2269
- function er(e, t, n) {
2270
- var r, i, o = 0, a = Gn.length, s = x.Deferred().always(function() {
2271
- delete l.elem
2272
- }), l = function() {
2273
- if (i)
2274
- return!1;
2275
- var t = Xn || Kn(), n = Math.max(0, u.startTime + u.duration - t), r = n / u.duration || 0, o = 1 - r, a = 0, l = u.tweens.length;
2276
- for (; l > a; a++)
2277
- u.tweens[a].run(o);
2278
- return s.notifyWith(e, [u, o, n]), 1 > o && l ? n : (s.resolveWith(e, [u]), !1)
2279
- }, u = s.promise({elem: e, props: x.extend({}, t), opts: x.extend(!0, {specialEasing: {}}, n), originalProperties: t, originalOptions: n, startTime: Xn || Kn(), duration: n.duration, tweens: [], createTween: function(t, n) {
2280
- var r = x.Tween(e, u.opts, t, n, u.opts.specialEasing[t] || u.opts.easing);
2281
- return u.tweens.push(r), r
2282
- }, stop: function(t) {
2283
- var n = 0, r = t ? u.tweens.length : 0;
2284
- if (i)
2285
- return this;
2286
- for (i = !0; r > n; n++)
2287
- u.tweens[n].run(1);
2288
- return t ? s.resolveWith(e, [u, t]) : s.rejectWith(e, [u, t]), this
2289
- }}), c = u.props;
2290
- for (tr(c, u.opts.specialEasing); a > o; o++)
2291
- if (r = Gn[o].call(u, e, c, u.opts))
2292
- return r;
2293
- return x.map(c, Zn, u), x.isFunction(u.opts.start) && u.opts.start.call(e, u), x.fx.timer(x.extend(l, {elem: e, anim: u, queue: u.opts.queue})), u.progress(u.opts.progress).done(u.opts.done, u.opts.complete).fail(u.opts.fail).always(u.opts.always)
2294
- }
2295
- function tr(e, t) {
2296
- var n, r, i, o, a;
2297
- for (n in e)
2298
- if (r = x.camelCase(n), i = t[r], o = e[n], x.isArray(o) && (i = o[1], o = e[n] = o[0]), n !== r && (e[r] = o, delete e[n]), a = x.cssHooks[r], a && "expand"in a) {
2299
- o = a.expand(o), delete e[r];
2300
- for (n in o)
2301
- n in e || (e[n] = o[n], t[n] = i)
2302
- } else
2303
- t[r] = i
2304
- }
2305
- x.Animation = x.extend(er, {tweener: function(e, t) {
2306
- x.isFunction(e) ? (t = e, e = ["*"]) : e = e.split(" ");
2307
- var n, r = 0, i = e.length;
2308
- for (; i > r; r++)
2309
- n = e[r], Qn[n] = Qn[n] || [], Qn[n].unshift(t)
2310
- }, prefilter: function(e, t) {
2311
- t ? Gn.unshift(e) : Gn.push(e)
2312
- }});
2313
- function nr(e, t, n) {
2314
- var r, i, o, a, s, l, u = this, c = {}, p = e.style, f = e.nodeType && nn(e), d = x._data(e, "fxshow");
2315
- n.queue || (s = x._queueHooks(e, "fx"), null == s.unqueued && (s.unqueued = 0, l = s.empty.fire, s.empty.fire = function() {
2316
- s.unqueued || l()
2317
- }), s.unqueued++, u.always(function() {
2318
- u.always(function() {
2319
- s.unqueued--, x.queue(e, "fx").length || s.empty.fire()
2320
- })
2321
- })), 1 === e.nodeType && ("height"in t || "width"in t) && (n.overflow = [p.overflow, p.overflowX, p.overflowY], "inline" === x.css(e, "display") && "none" === x.css(e, "float") && (x.support.inlineBlockNeedsLayout && "inline" !== ln(e.nodeName) ? p.zoom = 1 : p.display = "inline-block")), n.overflow && (p.overflow = "hidden", x.support.shrinkWrapBlocks || u.always(function() {
2322
- p.overflow = n.overflow[0], p.overflowX = n.overflow[1], p.overflowY = n.overflow[2]
2323
- }));
2324
- for (r in t)
2325
- if (i = t[r], Vn.exec(i)) {
2326
- if (delete t[r], o = o || "toggle" === i, i === (f ? "hide" : "show"))
2327
- continue;
2328
- c[r] = d && d[r] || x.style(e, r)
2329
- }
2330
- if (!x.isEmptyObject(c)) {
2331
- d ? "hidden"in d && (f = d.hidden) : d = x._data(e, "fxshow", {}), o && (d.hidden = !f), f ? x(e).show() : u.done(function() {
2332
- x(e).hide()
2333
- }), u.done(function() {
2334
- var t;
2335
- x._removeData(e, "fxshow");
2336
- for (t in c)
2337
- x.style(e, t, c[t])
2338
- });
2339
- for (r in c)
2340
- a = Zn(f ? d[r] : 0, r, u), r in d || (d[r] = a.start, f && (a.end = a.start, a.start = "width" === r || "height" === r ? 1 : 0))
2341
- }
2342
- }
2343
- function rr(e, t, n, r, i) {
2344
- return new rr.prototype.init(e, t, n, r, i)
2345
- }
2346
- x.Tween = rr, rr.prototype = {constructor: rr, init: function(e, t, n, r, i, o) {
2347
- this.elem = e, this.prop = n, this.easing = i || "swing", this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (x.cssNumber[n] ? "" : "px")
2348
- }, cur: function() {
2349
- var e = rr.propHooks[this.prop];
2350
- return e && e.get ? e.get(this) : rr.propHooks._default.get(this)
2351
- }, run: function(e) {
2352
- var t, n = rr.propHooks[this.prop];
2353
- return this.pos = t = this.options.duration ? x.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : rr.propHooks._default.set(this), this
2354
- }}, rr.prototype.init.prototype = rr.prototype, rr.propHooks = {_default: {get: function(e) {
2355
- var t;
2356
- return null == e.elem[e.prop] || e.elem.style && null != e.elem.style[e.prop] ? (t = x.css(e.elem, e.prop, ""), t && "auto" !== t ? t : 0) : e.elem[e.prop]
2357
- }, set: function(e) {
2358
- x.fx.step[e.prop] ? x.fx.step[e.prop](e) : e.elem.style && (null != e.elem.style[x.cssProps[e.prop]] || x.cssHooks[e.prop]) ? x.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now
2359
- }}}, rr.propHooks.scrollTop = rr.propHooks.scrollLeft = {set: function(e) {
2360
- e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)
2361
- }}, x.each(["toggle", "show", "hide"], function(e, t) {
2362
- var n = x.fn[t];
2363
- x.fn[t] = function(e, r, i) {
2364
- return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(ir(t, !0), e, r, i)
2365
- }
2366
- }), x.fn.extend({fadeTo: function(e, t, n, r) {
2367
- return this.filter(nn).css("opacity", 0).show().end().animate({opacity: t}, e, n, r)
2368
- }, animate: function(e, t, n, r) {
2369
- var i = x.isEmptyObject(e), o = x.speed(t, n, r), a = function() {
2370
- var t = er(this, x.extend({}, e), o);
2371
- (i || x._data(this, "finish")) && t.stop(!0)
2372
- };
2373
- return a.finish = a, i || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)
2374
- }, stop: function(e, n, r) {
2375
- var i = function(e) {
2376
- var t = e.stop;
2377
- delete e.stop, t(r)
2378
- };
2379
- return"string" != typeof e && (r = n, n = e, e = t), n && e !== !1 && this.queue(e || "fx", []), this.each(function() {
2380
- var t = !0, n = null != e && e + "queueHooks", o = x.timers, a = x._data(this);
2381
- if (n)
2382
- a[n] && a[n].stop && i(a[n]);
2383
- else
2384
- for (n in a)
2385
- a[n] && a[n].stop && Jn.test(n) && i(a[n]);
2386
- for (n = o.length; n--; )
2387
- o[n].elem !== this || null != e && o[n].queue !== e || (o[n].anim.stop(r), t = !1, o.splice(n, 1));
2388
- (t || !r) && x.dequeue(this, e)
2389
- })
2390
- }, finish: function(e) {
2391
- return e !== !1 && (e = e || "fx"), this.each(function() {
2392
- var t, n = x._data(this), r = n[e + "queue"], i = n[e + "queueHooks"], o = x.timers, a = r ? r.length : 0;
2393
- for (n.finish = !0, x.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--; )
2394
- o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1));
2395
- for (t = 0; a > t; t++)
2396
- r[t] && r[t].finish && r[t].finish.call(this);
2397
- delete n.finish
2398
- })
2399
- }});
2400
- function ir(e, t) {
2401
- var n, r = {height: e}, i = 0;
2402
- for (t = t?1:0; 4 > i; i += 2 - t)
2403
- n = Zt[i], r["margin" + n] = r["padding" + n] = e;
2404
- return t && (r.opacity = r.width = e), r
2405
- }
2406
- x.each({slideDown: ir("show"), slideUp: ir("hide"), slideToggle: ir("toggle"), fadeIn: {opacity: "show"}, fadeOut: {opacity: "hide"}, fadeToggle: {opacity: "toggle"}}, function(e, t) {
2407
- x.fn[e] = function(e, n, r) {
2408
- return this.animate(t, e, n, r)
2409
- }
2410
- }), x.speed = function(e, t, n) {
2411
- var r = e && "object" == typeof e ? x.extend({}, e) : {complete: n || !n && t || x.isFunction(e) && e, duration: e, easing: n && t || t && !x.isFunction(t) && t};
2412
- return r.duration = x.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in x.fx.speeds ? x.fx.speeds[r.duration] : x.fx.speeds._default, (null == r.queue || r.queue === !0) && (r.queue = "fx"), r.old = r.complete, r.complete = function() {
2413
- x.isFunction(r.old) && r.old.call(this), r.queue && x.dequeue(this, r.queue)
2414
- }, r
2415
- }, x.easing = {linear: function(e) {
2416
- return e
2417
- }, swing: function(e) {
2418
- return.5 - Math.cos(e * Math.PI) / 2
2419
- }}, x.timers = [], x.fx = rr.prototype.init, x.fx.tick = function() {
2420
- var e, n = x.timers, r = 0;
2421
- for (Xn = x.now(); n.length > r; r++)
2422
- e = n[r], e() || n[r] !== e || n.splice(r--, 1);
2423
- n.length || x.fx.stop(), Xn = t
2424
- }, x.fx.timer = function(e) {
2425
- e() && x.timers.push(e) && x.fx.start()
2426
- }, x.fx.interval = 13, x.fx.start = function() {
2427
- Un || (Un = setInterval(x.fx.tick, x.fx.interval))
2428
- }, x.fx.stop = function() {
2429
- clearInterval(Un), Un = null
2430
- }, x.fx.speeds = {slow: 600, fast: 200, _default: 400}, x.fx.step = {}, x.expr && x.expr.filters && (x.expr.filters.animated = function(e) {
2431
- return x.grep(x.timers, function(t) {
2432
- return e === t.elem
2433
- }).length
2434
- }), x.fn.offset = function(e) {
2435
- if (arguments.length)
2436
- return e === t ? this : this.each(function(t) {
2437
- x.offset.setOffset(this, e, t)
2438
- });
2439
- var n, r, o = {top: 0, left: 0}, a = this[0], s = a && a.ownerDocument;
2440
- if (s)
2441
- return n = s.documentElement, x.contains(n, a) ? (typeof a.getBoundingClientRect !== i && (o = a.getBoundingClientRect()), r = or(s), {top: o.top + (r.pageYOffset || n.scrollTop) - (n.clientTop || 0), left: o.left + (r.pageXOffset || n.scrollLeft) - (n.clientLeft || 0)}) : o
2442
- }, x.offset = {setOffset: function(e, t, n) {
2443
- var r = x.css(e, "position");
2444
- "static" === r && (e.style.position = "relative");
2445
- var i = x(e), o = i.offset(), a = x.css(e, "top"), s = x.css(e, "left"), l = ("absolute" === r || "fixed" === r) && x.inArray("auto", [a, s]) > -1, u = {}, c = {}, p, f;
2446
- l ? (c = i.position(), p = c.top, f = c.left) : (p = parseFloat(a) || 0, f = parseFloat(s) || 0), x.isFunction(t) && (t = t.call(e, n, o)), null != t.top && (u.top = t.top - o.top + p), null != t.left && (u.left = t.left - o.left + f), "using"in t ? t.using.call(e, u) : i.css(u)
2447
- }}, x.fn.extend({position: function() {
2448
- if (this[0]) {
2449
- var e, t, n = {top: 0, left: 0}, r = this[0];
2450
- return"fixed" === x.css(r, "position") ? t = r.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), x.nodeName(e[0], "html") || (n = e.offset()), n.top += x.css(e[0], "borderTopWidth", !0), n.left += x.css(e[0], "borderLeftWidth", !0)), {top: t.top - n.top - x.css(r, "marginTop", !0), left: t.left - n.left - x.css(r, "marginLeft", !0)}
2451
- }
2452
- }, offsetParent: function() {
2453
- return this.map(function() {
2454
- var e = this.offsetParent || s;
2455
- while (e && !x.nodeName(e, "html") && "static" === x.css(e, "position"))
2456
- e = e.offsetParent;
2457
- return e || s
2458
- })
2459
- }}), x.each({scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function(e, n) {
2460
- var r = /Y/.test(n);
2461
- x.fn[e] = function(i) {
2462
- return x.access(this, function(e, i, o) {
2463
- var a = or(e);
2464
- return o === t ? a ? n in a ? a[n] : a.document.documentElement[i] : e[i] : (a ? a.scrollTo(r ? x(a).scrollLeft() : o, r ? o : x(a).scrollTop()) : e[i] = o, t)
2465
- }, e, i, arguments.length, null)
2466
- }
2467
- });
2468
- function or(e) {
2469
- return x.isWindow(e) ? e : 9 === e.nodeType ? e.defaultView || e.parentWindow : !1
2470
- }
2471
- x.each({Height: "height", Width: "width"}, function(e, n) {
2472
- x.each({padding: "inner" + e, content: n, "": "outer" + e}, function(r, i) {
2473
- x.fn[i] = function(i, o) {
2474
- var a = arguments.length && (r || "boolean" != typeof i), s = r || (i === !0 || o === !0 ? "margin" : "border");
2475
- return x.access(this, function(n, r, i) {
2476
- var o;
2477
- return x.isWindow(n) ? n.document.documentElement["client" + e] : 9 === n.nodeType ? (o = n.documentElement, Math.max(n.body["scroll" + e], o["scroll" + e], n.body["offset" + e], o["offset" + e], o["client" + e])) : i === t ? x.css(n, r, s) : x.style(n, r, i, s)
2478
- }, n, a ? i : t, a, null)
2479
- }
2480
- })
2481
- }), x.fn.size = function() {
2482
- return this.length
2483
- }, x.fn.andSelf = x.fn.addBack, "object" == typeof module && module && "object" == typeof module.exports ? module.exports = x : (e.jQuery = e.$ = x, "function" == typeof define && define.amd && define("jquery", [], function() {
2484
- return x
2485
- }))
2486
- })(window);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/productlocator/jquery-2.1.1.min.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /*! jQuery v2.1.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
+ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="<select msallowclip=''><option selected=''></option></select>",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=lb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=mb(b);function pb(){}pb.prototype=d.filters=d.pseudos,d.setFilters=new pb,g=fb.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fb.error(a):z(a,i).slice(0)};function qb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+Math.random()}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)
3
+ },_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=L.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,R=["Top","Right","Bottom","Left"],S=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=l.createDocumentFragment(),b=a.appendChild(l.createElement("div")),c=l.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||l,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=l),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?Z:$):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=Z,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=$;else if(!d)return this;return 1===e&&(f=d,d=function(a){return n().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=$),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ab=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ib={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1></$2>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=qb[0].contentDocument,b.write(),b.close(),c=sb(a,b),qb.detach()),rb[a]=c),c}var ub=/^margin/,vb=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),wb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};function xb(a,b,c){var d,e,f,g,h=a.style;return c=c||wb(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),vb.test(g)&&ub.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function yb(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d=l.documentElement,e=l.createElement("div"),f=l.createElement("div");if(f.style){f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===f.style.backgroundClip,e.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",e.appendChild(f);function g(){f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",f.innerHTML="",d.appendChild(e);var g=a.getComputedStyle(f,null);b="1%"!==g.top,c="4px"===g.width,d.removeChild(e)}a.getComputedStyle&&n.extend(k,{pixelPosition:function(){return g(),b},boxSizingReliable:function(){return null==c&&g(),c},reliableMarginRight:function(){var b,c=f.appendChild(l.createElement("div"));return c.style.cssText=f.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",f.style.width="1px",d.appendChild(e),b=!parseFloat(a.getComputedStyle(c,null).marginRight),d.removeChild(e),b}})}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var zb=/^(none|table(?!-c[ea]).+)/,Ab=new RegExp("^("+Q+")(.*)$","i"),Bb=new RegExp("^([+-])=("+Q+")","i"),Cb={position:"absolute",visibility:"hidden",display:"block"},Db={letterSpacing:"0",fontWeight:"400"},Eb=["Webkit","O","Moz","ms"];function Fb(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=Eb.length;while(e--)if(b=Eb[e]+c,b in a)return b;return d}function Gb(a,b,c){var d=Ab.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Hb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+R[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+R[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+R[f]+"Width",!0,e))):(g+=n.css(a,"padding"+R[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+R[f]+"Width",!0,e)));return g}function Ib(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=wb(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=xb(a,b,f),(0>e||null==e)&&(e=a.style[b]),vb.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Hb(a,b,c||(g?"border":"content"),d,f)+"px"}function Jb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=L.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&S(d)&&(f[g]=L.access(d,"olddisplay",tb(d.nodeName)))):(e=S(d),"none"===c&&e||L.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Fb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Bb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Fb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xb(a,b,d)),"normal"===e&&b in Db&&(e=Db[b]),""===c||c?(f=parseFloat(e),c===!0||n.isNumeric(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?zb.test(n.css(a,"display"))&&0===a.offsetWidth?n.swap(a,Cb,function(){return Ib(a,b,d)}):Ib(a,b,d):void 0},set:function(a,c,d){var e=d&&wb(a);return Gb(a,c,d?Hb(a,b,d,"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),n.cssHooks.marginRight=yb(k.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},xb,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+R[d]+b]=f[d]||f[d-2]||f[0];return e}},ub.test(a)||(n.cssHooks[a+b].set=Gb)}),n.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=wb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Jb(this,!0)},hide:function(){return Jb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?n(this).show():n(this).hide()})}});function Kb(a,b,c,d,e){return new Kb.prototype.init(a,b,c,d,e)}n.Tween=Kb,Kb.prototype={constructor:Kb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Kb.propHooks[this.prop];return a&&a.get?a.get(this):Kb.propHooks._default.get(this)},run:function(a){var b,c=Kb.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Kb.propHooks._default.set(this),this}},Kb.prototype.init.prototype=Kb.prototype,Kb.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Kb.propHooks.scrollTop=Kb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=Kb.prototype.init,n.fx.step={};var Lb,Mb,Nb=/^(?:toggle|show|hide)$/,Ob=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pb=/queueHooks$/,Qb=[Vb],Rb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Ob.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&Ob.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sb(){return setTimeout(function(){Lb=void 0}),Lb=n.now()}function Tb(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ub(a,b,c){for(var d,e=(Rb[b]||[]).concat(Rb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Vb(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&S(a),q=L.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?L.get(a,"olddisplay")||tb(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Nb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?tb(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=L.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;L.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ub(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function Wb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function Xb(a,b,c){var d,e,f=0,g=Qb.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Lb||Sb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Lb||Sb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wb(k,j.opts.specialEasing);g>f;f++)if(d=Qb[f].call(j,a,k,j.opts))return d;return n.map(k,Ub,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(Xb,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],Rb[c]=Rb[c]||[],Rb[c].unshift(b)},prefilter:function(a,b){b?Qb.unshift(a):Qb.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=Xb(this,n.extend({},a),f);(e||L.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=L.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Pb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Tb(b,!0),a,d,e)}}),n.each({slideDown:Tb("show"),slideUp:Tb("hide"),slideToggle:Tb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Lb=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),Lb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Mb||(Mb=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(Mb),Mb=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=l.createElement("input"),b=l.createElement("select"),c=b.appendChild(l.createElement("option"));a.type="checkbox",k.checkOn=""!==a.value,k.optSelected=c.selected,b.disabled=!0,k.optDisabled=!c.disabled,a=l.createElement("input"),a.value="t",a.type="radio",k.radioValue="t"===a.value}();var Yb,Zb,$b=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return J(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===U?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?Zb:Yb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))
4
+ },removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Zb={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$b[b]||n.find.attr;$b[b]=function(a,b,d){var e,f;return d||(f=$b[b],$b[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$b[b]=f),e}});var _b=/^(?:input|select|textarea|button)$/i;n.fn.extend({prop:function(a,b){return J(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||_b.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),k.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var ac=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===U||"boolean"===c)&&(this.className&&L.set(this,"__className__",this.className),this.className=this.className||a===!1?"":L.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ac," ").indexOf(b)>=0)return!0;return!1}});var bc=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(bc,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},k.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var cc=n.now(),dc=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+a),b};var ec,fc,gc=/#.*$/,hc=/([?&])_=[^&]*/,ic=/^(.*?):[ \t]*([^\r\n]*)$/gm,jc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kc=/^(?:GET|HEAD)$/,lc=/^\/\//,mc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,nc={},oc={},pc="*/".concat("*");try{fc=location.href}catch(qc){fc=l.createElement("a"),fc.href="",fc=fc.href}ec=mc.exec(fc.toLowerCase())||[];function rc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function sc(a,b,c,d){var e={},f=a===oc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function tc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function uc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function vc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fc,type:"GET",isLocal:jc.test(ec[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":pc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?tc(tc(a,n.ajaxSettings),b):tc(n.ajaxSettings,a)},ajaxPrefilter:rc(nc),ajaxTransport:rc(oc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=ic.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||fc)+"").replace(gc,"").replace(lc,ec[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(h=mc.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===ec[1]&&h[2]===ec[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(ec[3]||("http:"===ec[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),sc(nc,k,b,v),2===t)return v;i=k.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!kc.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(dc.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=hc.test(d)?d.replace(hc,"$1_="+cc++):d+(dc.test(d)?"&":"?")+"_="+cc++)),k.ifModified&&(n.lastModified[d]&&v.setRequestHeader("If-Modified-Since",n.lastModified[d]),n.etag[d]&&v.setRequestHeader("If-None-Match",n.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+pc+"; q=0.01":""):k.accepts["*"]);for(j in k.headers)v.setRequestHeader(j,k.headers[j]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(j in{success:1,error:1,complete:1})v[j](k[j]);if(c=sc(oc,k,b,v)){v.readyState=1,i&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=uc(k,v,f)),u=vc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[d]=w),w=v.getResponseHeader("etag"),w&&(n.etag[d]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var wc=/%20/g,xc=/\[\]$/,yc=/\r?\n/g,zc=/^(?:submit|button|image|reset|file)$/i,Ac=/^(?:input|select|textarea|keygen)/i;function Bc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||xc.test(a)?d(a,e):Bc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Bc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Bc(c,a[c],b,e);return d.join("&").replace(wc,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Ac.test(this.nodeName)&&!zc.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(yc,"\r\n")}}):{name:b.name,value:c.replace(yc,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Cc=0,Dc={},Ec={0:200,1223:204},Fc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on("unload",function(){for(var a in Dc)Dc[a]()}),k.cors=!!Fc&&"withCredentials"in Fc,k.ajax=Fc=!!Fc,n.ajaxTransport(function(a){var b;return k.cors||Fc&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Cc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Dc[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Ec[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Dc[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=n("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),l.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Gc=[],Hc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Gc.pop()||n.expando+"_"+cc++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Hc.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Hc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Hc,"$1"+e):b.jsonp!==!1&&(b.url+=(dc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Gc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||l;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var Ic=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Ic)return Ic.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var Jc=a.document.documentElement;function Kc(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(typeof d.getBoundingClientRect!==U&&(e=d.getBoundingClientRect()),c=Kc(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||Jc;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Jc})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;n.fn[b]=function(e){return J(this,function(b,e,f){var g=Kc(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=yb(k.pixelPosition,function(a,c){return c?(c=xb(a,b),vb.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return J(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Lc=a.jQuery,Mc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Mc),b&&a.jQuery===n&&(a.jQuery=Lc),n},typeof b===U&&(a.jQuery=a.$=n),n});
js/productlocator/jquery.fancybox.js DELETED
@@ -1,2020 +0,0 @@
1
- /*!
2
- * fancyBox - jQuery Plugin
3
- * version: 2.1.5 (Fri, 14 Jun 2013)
4
- * @requires jQuery v1.6 or later
5
- *
6
- * Examples at http://fancyapps.com/fancybox/
7
- * License: www.fancyapps.com/fancybox/#license
8
- *
9
- * Copyright 2012 Janis Skarnelis - janis@fancyapps.com
10
- *
11
- */
12
-
13
- (function (window, document, $, undefined) {
14
- "use strict";
15
-
16
- var H = $("html"),
17
- W = $(window),
18
- D = $(document),
19
- F = $.fancybox = function () {
20
- F.open.apply( this, arguments );
21
- },
22
- IE = navigator.userAgent.match(/msie/i),
23
- didUpdate = null,
24
- isTouch = document.createTouch !== undefined,
25
-
26
- isQuery = function(obj) {
27
- return obj && obj.hasOwnProperty && obj instanceof $;
28
- },
29
- isString = function(str) {
30
- return str && $.type(str) === "string";
31
- },
32
- isPercentage = function(str) {
33
- return isString(str) && str.indexOf('%') > 0;
34
- },
35
- isScrollable = function(el) {
36
- return (el && !(el.style.overflow && el.style.overflow === 'hidden') && ((el.clientWidth && el.scrollWidth > el.clientWidth) || (el.clientHeight && el.scrollHeight > el.clientHeight)));
37
- },
38
- getScalar = function(orig, dim) {
39
- var value = parseInt(orig, 10) || 0;
40
-
41
- if (dim && isPercentage(orig)) {
42
- value = F.getViewport()[ dim ] / 100 * value;
43
- }
44
-
45
- return Math.ceil(value);
46
- },
47
- getValue = function(value, dim) {
48
- return getScalar(value, dim) + 'px';
49
- };
50
-
51
- $.extend(F, {
52
- // The current version of fancyBox
53
- version: '2.1.5',
54
-
55
- defaults: {
56
- padding : 15,
57
- margin : 20,
58
-
59
- width : 800,
60
- height : 600,
61
- minWidth : 100,
62
- minHeight : 100,
63
- maxWidth : 9999,
64
- maxHeight : 9999,
65
- pixelRatio: 1, // Set to 2 for retina display support
66
-
67
- autoSize : true,
68
- autoHeight : false,
69
- autoWidth : false,
70
-
71
- autoResize : true,
72
- autoCenter : !isTouch,
73
- fitToView : true,
74
- aspectRatio : false,
75
- topRatio : 0.5,
76
- leftRatio : 0.5,
77
-
78
- scrolling : 'auto', // 'auto', 'yes' or 'no'
79
- wrapCSS : '',
80
-
81
- arrows : true,
82
- closeBtn : true,
83
- closeClick : false,
84
- nextClick : false,
85
- mouseWheel : true,
86
- autoPlay : false,
87
- playSpeed : 3000,
88
- preload : 3,
89
- modal : false,
90
- loop : true,
91
-
92
- ajax : {
93
- dataType : 'html',
94
- headers : { 'X-fancyBox': true }
95
- },
96
- iframe : {
97
- scrolling : 'auto',
98
- preload : true
99
- },
100
- swf : {
101
- wmode: 'transparent',
102
- allowfullscreen : 'true',
103
- allowscriptaccess : 'always'
104
- },
105
-
106
- keys : {
107
- next : {
108
- 13 : 'left', // enter
109
- 34 : 'up', // page down
110
- 39 : 'left', // right arrow
111
- 40 : 'up' // down arrow
112
- },
113
- prev : {
114
- 8 : 'right', // backspace
115
- 33 : 'down', // page up
116
- 37 : 'right', // left arrow
117
- 38 : 'down' // up arrow
118
- },
119
- close : [27], // escape key
120
- play : [32], // space - start/stop slideshow
121
- toggle : [70] // letter "f" - toggle fullscreen
122
- },
123
-
124
- direction : {
125
- next : 'left',
126
- prev : 'right'
127
- },
128
-
129
- scrollOutside : true,
130
-
131
- // Override some properties
132
- index : 0,
133
- type : null,
134
- href : null,
135
- content : null,
136
- title : null,
137
-
138
- // HTML templates
139
- tpl: {
140
- wrap : '<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',
141
- image : '<img class="fancybox-image" src="{href}" alt="" />',
142
- iframe : '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen' + (IE ? ' allowtransparency="true"' : '') + '></iframe>',
143
- error : '<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',
144
- closeBtn : '<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',
145
- next : '<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',
146
- prev : '<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'
147
- },
148
-
149
- // Properties for each animation type
150
- // Opening fancyBox
151
- openEffect : 'fade', // 'elastic', 'fade' or 'none'
152
- openSpeed : 250,
153
- openEasing : 'swing',
154
- openOpacity : true,
155
- openMethod : 'zoomIn',
156
-
157
- // Closing fancyBox
158
- closeEffect : 'fade', // 'elastic', 'fade' or 'none'
159
- closeSpeed : 250,
160
- closeEasing : 'swing',
161
- closeOpacity : true,
162
- closeMethod : 'zoomOut',
163
-
164
- // Changing next gallery item
165
- nextEffect : 'elastic', // 'elastic', 'fade' or 'none'
166
- nextSpeed : 250,
167
- nextEasing : 'swing',
168
- nextMethod : 'changeIn',
169
-
170
- // Changing previous gallery item
171
- prevEffect : 'elastic', // 'elastic', 'fade' or 'none'
172
- prevSpeed : 250,
173
- prevEasing : 'swing',
174
- prevMethod : 'changeOut',
175
-
176
- // Enable default helpers
177
- helpers : {
178
- overlay : true,
179
- title : true
180
- },
181
-
182
- // Callbacks
183
- onCancel : $.noop, // If canceling
184
- beforeLoad : $.noop, // Before loading
185
- afterLoad : $.noop, // After loading
186
- beforeShow : $.noop, // Before changing in current item
187
- afterShow : $.noop, // After opening
188
- beforeChange : $.noop, // Before changing gallery item
189
- beforeClose : $.noop, // Before closing
190
- afterClose : $.noop // After closing
191
- },
192
-
193
- //Current state
194
- group : {}, // Selected group
195
- opts : {}, // Group options
196
- previous : null, // Previous element
197
- coming : null, // Element being loaded
198
- current : null, // Currently loaded element
199
- isActive : false, // Is activated
200
- isOpen : false, // Is currently open
201
- isOpened : false, // Have been fully opened at least once
202
-
203
- wrap : null,
204
- skin : null,
205
- outer : null,
206
- inner : null,
207
-
208
- player : {
209
- timer : null,
210
- isActive : false
211
- },
212
-
213
- // Loaders
214
- ajaxLoad : null,
215
- imgPreload : null,
216
-
217
- // Some collections
218
- transitions : {},
219
- helpers : {},
220
-
221
- /*
222
- * Static methods
223
- */
224
-
225
- open: function (group, opts) {
226
- if (!group) {
227
- return;
228
- }
229
-
230
- if (!$.isPlainObject(opts)) {
231
- opts = {};
232
- }
233
-
234
- // Close if already active
235
- if (false === F.close(true)) {
236
- return;
237
- }
238
-
239
- // Normalize group
240
- if (!$.isArray(group)) {
241
- group = isQuery(group) ? $(group).get() : [group];
242
- }
243
-
244
- // Recheck if the type of each element is `object` and set content type (image, ajax, etc)
245
- $.each(group, function(i, element) {
246
- var obj = {},
247
- href,
248
- title,
249
- content,
250
- type,
251
- rez,
252
- hrefParts,
253
- selector;
254
-
255
- if ($.type(element) === "object") {
256
- // Check if is DOM element
257
- if (element.nodeType) {
258
- element = $(element);
259
- }
260
-
261
- if (isQuery(element)) {
262
- obj = {
263
- href : element.data('fancybox-href') || element.attr('href'),
264
- title : element.data('fancybox-title') || element.attr('title'),
265
- isDom : true,
266
- element : element
267
- };
268
-
269
- if ($.metadata) {
270
- $.extend(true, obj, element.metadata());
271
- }
272
-
273
- } else {
274
- obj = element;
275
- }
276
- }
277
-
278
- href = opts.href || obj.href || (isString(element) ? element : null);
279
- title = opts.title !== undefined ? opts.title : obj.title || '';
280
-
281
- content = opts.content || obj.content;
282
- type = content ? 'html' : (opts.type || obj.type);
283
-
284
- if (!type && obj.isDom) {
285
- type = element.data('fancybox-type');
286
-
287
- if (!type) {
288
- rez = element.prop('class').match(/fancybox\.(\w+)/);
289
- type = rez ? rez[1] : null;
290
- }
291
- }
292
-
293
- if (isString(href)) {
294
- // Try to guess the content type
295
- if (!type) {
296
- if (F.isImage(href)) {
297
- type = 'image';
298
-
299
- } else if (F.isSWF(href)) {
300
- type = 'swf';
301
-
302
- } else if (href.charAt(0) === '#') {
303
- type = 'inline';
304
-
305
- } else if (isString(element)) {
306
- type = 'html';
307
- content = element;
308
- }
309
- }
310
-
311
- // Split url into two pieces with source url and content selector, e.g,
312
- // "/mypage.html #my_id" will load "/mypage.html" and display element having id "my_id"
313
- if (type === 'ajax') {
314
- hrefParts = href.split(/\s+/, 2);
315
- href = hrefParts.shift();
316
- selector = hrefParts.shift();
317
- }
318
- }
319
-
320
- if (!content) {
321
- if (type === 'inline') {
322
- if (href) {
323
- content = $( isString(href) ? href.replace(/.*(?=#[^\s]+$)/, '') : href ); //strip for ie7
324
-
325
- } else if (obj.isDom) {
326
- content = element;
327
- }
328
-
329
- } else if (type === 'html') {
330
- content = href;
331
-
332
- } else if (!type && !href && obj.isDom) {
333
- type = 'inline';
334
- content = element;
335
- }
336
- }
337
-
338
- $.extend(obj, {
339
- href : href,
340
- type : type,
341
- content : content,
342
- title : title,
343
- selector : selector
344
- });
345
-
346
- group[ i ] = obj;
347
- });
348
-
349
- // Extend the defaults
350
- F.opts = $.extend(true, {}, F.defaults, opts);
351
-
352
- // All options are merged recursive except keys
353
- if (opts.keys !== undefined) {
354
- F.opts.keys = opts.keys ? $.extend({}, F.defaults.keys, opts.keys) : false;
355
- }
356
-
357
- F.group = group;
358
-
359
- return F._start(F.opts.index);
360
- },
361
-
362
- // Cancel image loading or abort ajax request
363
- cancel: function () {
364
- var coming = F.coming;
365
-
366
- if (!coming || false === F.trigger('onCancel')) {
367
- return;
368
- }
369
-
370
- F.hideLoading();
371
-
372
- if (F.ajaxLoad) {
373
- F.ajaxLoad.abort();
374
- }
375
-
376
- F.ajaxLoad = null;
377
-
378
- if (F.imgPreload) {
379
- F.imgPreload.onload = F.imgPreload.onerror = null;
380
- }
381
-
382
- if (coming.wrap) {
383
- coming.wrap.stop(true, true).trigger('onReset').remove();
384
- }
385
-
386
- F.coming = null;
387
-
388
- // If the first item has been canceled, then clear everything
389
- if (!F.current) {
390
- F._afterZoomOut( coming );
391
- }
392
- },
393
-
394
- // Start closing animation if is open; remove immediately if opening/closing
395
- close: function (event) {
396
- F.cancel();
397
-
398
- if (false === F.trigger('beforeClose')) {
399
- return;
400
- }
401
-
402
- F.unbindEvents();
403
-
404
- if (!F.isActive) {
405
- return;
406
- }
407
-
408
- if (!F.isOpen || event === true) {
409
- $('.fancybox-wrap').stop(true).trigger('onReset').remove();
410
-
411
- F._afterZoomOut();
412
-
413
- } else {
414
- F.isOpen = F.isOpened = false;
415
- F.isClosing = true;
416
-
417
- $('.fancybox-item, .fancybox-nav').remove();
418
-
419
- F.wrap.stop(true, true).removeClass('fancybox-opened');
420
-
421
- F.transitions[ F.current.closeMethod ]();
422
- }
423
- },
424
-
425
- // Manage slideshow:
426
- // $.fancybox.play(); - toggle slideshow
427
- // $.fancybox.play( true ); - start
428
- // $.fancybox.play( false ); - stop
429
- play: function ( action ) {
430
- var clear = function () {
431
- clearTimeout(F.player.timer);
432
- },
433
- set = function () {
434
- clear();
435
-
436
- if (F.current && F.player.isActive) {
437
- F.player.timer = setTimeout(F.next, F.current.playSpeed);
438
- }
439
- },
440
- stop = function () {
441
- clear();
442
-
443
- D.unbind('.player');
444
-
445
- F.player.isActive = false;
446
-
447
- F.trigger('onPlayEnd');
448
- },
449
- start = function () {
450
- if (F.current && (F.current.loop || F.current.index < F.group.length - 1)) {
451
- F.player.isActive = true;
452
-
453
- D.bind({
454
- 'onCancel.player beforeClose.player' : stop,
455
- 'onUpdate.player' : set,
456
- 'beforeLoad.player' : clear
457
- });
458
-
459
- set();
460
-
461
- F.trigger('onPlayStart');
462
- }
463
- };
464
-
465
- if (action === true || (!F.player.isActive && action !== false)) {
466
- start();
467
- } else {
468
- stop();
469
- }
470
- },
471
-
472
- // Navigate to next gallery item
473
- next: function ( direction ) {
474
- var current = F.current;
475
-
476
- if (current) {
477
- if (!isString(direction)) {
478
- direction = current.direction.next;
479
- }
480
-
481
- F.jumpto(current.index + 1, direction, 'next');
482
- }
483
- },
484
-
485
- // Navigate to previous gallery item
486
- prev: function ( direction ) {
487
- var current = F.current;
488
-
489
- if (current) {
490
- if (!isString(direction)) {
491
- direction = current.direction.prev;
492
- }
493
-
494
- F.jumpto(current.index - 1, direction, 'prev');
495
- }
496
- },
497
-
498
- // Navigate to gallery item by index
499
- jumpto: function ( index, direction, router ) {
500
- var current = F.current;
501
-
502
- if (!current) {
503
- return;
504
- }
505
-
506
- index = getScalar(index);
507
-
508
- F.direction = direction || current.direction[ (index >= current.index ? 'next' : 'prev') ];
509
- F.router = router || 'jumpto';
510
-
511
- if (current.loop) {
512
- if (index < 0) {
513
- index = current.group.length + (index % current.group.length);
514
- }
515
-
516
- index = index % current.group.length;
517
- }
518
-
519
- if (current.group[ index ] !== undefined) {
520
- F.cancel();
521
-
522
- F._start(index);
523
- }
524
- },
525
-
526
- // Center inside viewport and toggle position type to fixed or absolute if needed
527
- reposition: function (e, onlyAbsolute) {
528
- var current = F.current,
529
- wrap = current ? current.wrap : null,
530
- pos;
531
-
532
- if (wrap) {
533
- pos = F._getPosition(onlyAbsolute);
534
-
535
- if (e && e.type === 'scroll') {
536
- delete pos.position;
537
-
538
- wrap.stop(true, true).animate(pos, 200);
539
-
540
- } else {
541
- wrap.css(pos);
542
-
543
- current.pos = $.extend({}, current.dim, pos);
544
- }
545
- }
546
- },
547
-
548
- update: function (e) {
549
- var type = (e && e.type),
550
- anyway = !type || type === 'orientationchange';
551
-
552
- if (anyway) {
553
- clearTimeout(didUpdate);
554
-
555
- didUpdate = null;
556
- }
557
-
558
- if (!F.isOpen || didUpdate) {
559
- return;
560
- }
561
-
562
- didUpdate = setTimeout(function() {
563
- var current = F.current;
564
-
565
- if (!current || F.isClosing) {
566
- return;
567
- }
568
-
569
- F.wrap.removeClass('fancybox-tmp');
570
-
571
- if (anyway || type === 'load' || (type === 'resize' && current.autoResize)) {
572
- F._setDimension();
573
- }
574
-
575
- if (!(type === 'scroll' && current.canShrink)) {
576
- F.reposition(e);
577
- }
578
-
579
- F.trigger('onUpdate');
580
-
581
- didUpdate = null;
582
-
583
- }, (anyway && !isTouch ? 0 : 300));
584
- },
585
-
586
- // Shrink content to fit inside viewport or restore if resized
587
- toggle: function ( action ) {
588
- if (F.isOpen) {
589
- F.current.fitToView = $.type(action) === "boolean" ? action : !F.current.fitToView;
590
-
591
- // Help browser to restore document dimensions
592
- if (isTouch) {
593
- F.wrap.removeAttr('style').addClass('fancybox-tmp');
594
-
595
- F.trigger('onUpdate');
596
- }
597
-
598
- F.update();
599
- }
600
- },
601
-
602
- hideLoading: function () {
603
- D.unbind('.loading');
604
-
605
- $('#fancybox-loading').remove();
606
- },
607
-
608
- showLoading: function () {
609
- var el, viewport;
610
-
611
- F.hideLoading();
612
-
613
- el = $('<div id="fancybox-loading"><div></div></div>').click(F.cancel).appendTo('body');
614
-
615
- // If user will press the escape-button, the request will be canceled
616
- D.bind('keydown.loading', function(e) {
617
- if ((e.which || e.keyCode) === 27) {
618
- e.preventDefault();
619
-
620
- F.cancel();
621
- }
622
- });
623
-
624
- if (!F.defaults.fixed) {
625
- viewport = F.getViewport();
626
-
627
- el.css({
628
- position : 'absolute',
629
- top : (viewport.h * 0.5) + viewport.y,
630
- left : (viewport.w * 0.5) + viewport.x
631
- });
632
- }
633
- },
634
-
635
- getViewport: function () {
636
- var locked = (F.current && F.current.locked) || false,
637
- rez = {
638
- x: W.scrollLeft(),
639
- y: W.scrollTop()
640
- };
641
-
642
- if (locked) {
643
- rez.w = locked[0].clientWidth;
644
- rez.h = locked[0].clientHeight;
645
-
646
- } else {
647
- // See http://bugs.jquery.com/ticket/6724
648
- rez.w = isTouch && window.innerWidth ? window.innerWidth : W.width();
649
- rez.h = isTouch && window.innerHeight ? window.innerHeight : W.height();
650
- }
651
-
652
- return rez;
653
- },
654
-
655
- // Unbind the keyboard / clicking actions
656
- unbindEvents: function () {
657
- if (F.wrap && isQuery(F.wrap)) {
658
- F.wrap.unbind('.fb');
659
- }
660
-
661
- D.unbind('.fb');
662
- W.unbind('.fb');
663
- },
664
-
665
- bindEvents: function () {
666
- var current = F.current,
667
- keys;
668
-
669
- if (!current) {
670
- return;
671
- }
672
-
673
- // Changing document height on iOS devices triggers a 'resize' event,
674
- // that can change document height... repeating infinitely
675
- W.bind('orientationchange.fb' + (isTouch ? '' : ' resize.fb') + (current.autoCenter && !current.locked ? ' scroll.fb' : ''), F.update);
676
-
677
- keys = current.keys;
678
-
679
- if (keys) {
680
- D.bind('keydown.fb', function (e) {
681
- var code = e.which || e.keyCode,
682
- target = e.target || e.srcElement;
683
-
684
- // Skip esc key if loading, because showLoading will cancel preloading
685
- if (code === 27 && F.coming) {
686
- return false;
687
- }
688
-
689
- // Ignore key combinations and key events within form elements
690
- if (!e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey && !(target && (target.type || $(target).is('[contenteditable]')))) {
691
- $.each(keys, function(i, val) {
692
- if (current.group.length > 1 && val[ code ] !== undefined) {
693
- F[ i ]( val[ code ] );
694
-
695
- e.preventDefault();
696
- return false;
697
- }
698
-
699
- if ($.inArray(code, val) > -1) {
700
- F[ i ] ();
701
-
702
- e.preventDefault();
703
- return false;
704
- }
705
- });
706
- }
707
- });
708
- }
709
-
710
- if ($.fn.mousewheel && current.mouseWheel) {
711
- F.wrap.bind('mousewheel.fb', function (e, delta, deltaX, deltaY) {
712
- var target = e.target || null,
713
- parent = $(target),
714
- canScroll = false;
715
-
716
- while (parent.length) {
717
- if (canScroll || parent.is('.fancybox-skin') || parent.is('.fancybox-wrap')) {
718
- break;
719
- }
720
-
721
- canScroll = isScrollable( parent[0] );
722
- parent = $(parent).parent();
723
- }
724
-
725
- if (delta !== 0 && !canScroll) {
726
- if (F.group.length > 1 && !current.canShrink) {
727
- if (deltaY > 0 || deltaX > 0) {
728
- F.prev( deltaY > 0 ? 'down' : 'left' );
729
-
730
- } else if (deltaY < 0 || deltaX < 0) {
731
- F.next( deltaY < 0 ? 'up' : 'right' );
732
- }
733
-
734
- e.preventDefault();
735
- }
736
- }
737
- });
738
- }
739
- },
740
-
741
- trigger: function (event, o) {
742
- var ret, obj = o || F.coming || F.current;
743
-
744
- if (!obj) {
745
- return;
746
- }
747
-
748
- if ($.isFunction( obj[event] )) {
749
- ret = obj[event].apply(obj, Array.prototype.slice.call(arguments, 1));
750
- }
751
-
752
- if (ret === false) {
753
- return false;
754
- }
755
-
756
- if (obj.helpers) {
757
- $.each(obj.helpers, function (helper, opts) {
758
- if (opts && F.helpers[helper] && $.isFunction(F.helpers[helper][event])) {
759
- F.helpers[helper][event]($.extend(true, {}, F.helpers[helper].defaults, opts), obj);
760
- }
761
- });
762
- }
763
-
764
- D.trigger(event);
765
- },
766
-
767
- isImage: function (str) {
768
- return isString(str) && str.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i);
769
- },
770
-
771
- isSWF: function (str) {
772
- return isString(str) && str.match(/\.(swf)((\?|#).*)?$/i);
773
- },
774
-
775
- _start: function (index) {
776
- var coming = {},
777
- obj,
778
- href,
779
- type,
780
- margin,
781
- padding;
782
-
783
- index = getScalar( index );
784
- obj = F.group[ index ] || null;
785
-
786
- if (!obj) {
787
- return false;
788
- }
789
-
790
- coming = $.extend(true, {}, F.opts, obj);
791
-
792
- // Convert margin and padding properties to array - top, right, bottom, left
793
- margin = coming.margin;
794
- padding = coming.padding;
795
-
796
- if ($.type(margin) === 'number') {
797
- coming.margin = [margin, margin, margin, margin];
798
- }
799
-
800
- if ($.type(padding) === 'number') {
801
- coming.padding = [padding, padding, padding, padding];
802
- }
803
-
804
- // 'modal' propery is just a shortcut
805
- if (coming.modal) {
806
- $.extend(true, coming, {
807
- closeBtn : false,
808
- closeClick : false,
809
- nextClick : false,
810
- arrows : false,
811
- mouseWheel : false,
812
- keys : null,
813
- helpers: {
814
- overlay : {
815
- closeClick : false
816
- }
817
- }
818
- });
819
- }
820
-
821
- // 'autoSize' property is a shortcut, too
822
- if (coming.autoSize) {
823
- coming.autoWidth = coming.autoHeight = true;
824
- }
825
-
826
- if (coming.width === 'auto') {
827
- coming.autoWidth = true;
828
- }
829
-
830
- if (coming.height === 'auto') {
831
- coming.autoHeight = true;
832
- }
833
-
834
- /*
835
- * Add reference to the group, so it`s possible to access from callbacks, example:
836
- * afterLoad : function() {
837
- * this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
838
- * }
839
- */
840
-
841
- coming.group = F.group;
842
- coming.index = index;
843
-
844
- // Give a chance for callback or helpers to update coming item (type, title, etc)
845
- F.coming = coming;
846
-
847
- if (false === F.trigger('beforeLoad')) {
848
- F.coming = null;
849
-
850
- return;
851
- }
852
-
853
- type = coming.type;
854
- href = coming.href;
855
-
856
- if (!type) {
857
- F.coming = null;
858
-
859
- //If we can not determine content type then drop silently or display next/prev item if looping through gallery
860
- if (F.current && F.router && F.router !== 'jumpto') {
861
- F.current.index = index;
862
-
863
- return F[ F.router ]( F.direction );
864
- }
865
-
866
- return false;
867
- }
868
-
869
- F.isActive = true;
870
-
871
- if (type === 'image' || type === 'swf') {
872
- coming.autoHeight = coming.autoWidth = false;
873
- coming.scrolling = 'visible';
874
- }
875
-
876
- if (type === 'image') {
877
- coming.aspectRatio = true;
878
- }
879
-
880
- if (type === 'iframe' && isTouch) {
881
- coming.scrolling = 'scroll';
882
- }
883
-
884
- // Build the neccessary markup
885
- coming.wrap = $(coming.tpl.wrap).addClass('fancybox-' + (isTouch ? 'mobile' : 'desktop') + ' fancybox-type-' + type + ' fancybox-tmp ' + coming.wrapCSS).appendTo( coming.parent || 'body' );
886
-
887
- $.extend(coming, {
888
- skin : $('.fancybox-skin', coming.wrap),
889
- outer : $('.fancybox-outer', coming.wrap),
890
- inner : $('.fancybox-inner', coming.wrap)
891
- });
892
-
893
- $.each(["Top", "Right", "Bottom", "Left"], function(i, v) {
894
- coming.skin.css('padding' + v, getValue(coming.padding[ i ]));
895
- });
896
-
897
- F.trigger('onReady');
898
-
899
- // Check before try to load; 'inline' and 'html' types need content, others - href
900
- if (type === 'inline' || type === 'html') {
901
- if (!coming.content || !coming.content.length) {
902
- return F._error( 'content' );
903
- }
904
-
905
- } else if (!href) {
906
- return F._error( 'href' );
907
- }
908
-
909
- if (type === 'image') {
910
- F._loadImage();
911
-
912
- } else if (type === 'ajax') {
913
- F._loadAjax();
914
-
915
- } else if (type === 'iframe') {
916
- F._loadIframe();
917
-
918
- } else {
919
- F._afterLoad();
920
- }
921
- },
922
-
923
- _error: function ( type ) {
924
- $.extend(F.coming, {
925
- type : 'html',
926
- autoWidth : true,
927
- autoHeight : true,
928
- minWidth : 0,
929
- minHeight : 0,
930
- scrolling : 'no',
931
- hasError : type,
932
- content : F.coming.tpl.error
933
- });
934
-
935
- F._afterLoad();
936
- },
937
-
938
- _loadImage: function () {
939
- // Reset preload image so it is later possible to check "complete" property
940
- var img = F.imgPreload = new Image();
941
-
942
- img.onload = function () {
943
- this.onload = this.onerror = null;
944
-
945
- F.coming.width = this.width / F.opts.pixelRatio;
946
- F.coming.height = this.height / F.opts.pixelRatio;
947
-
948
- F._afterLoad();
949
- };
950
-
951
- img.onerror = function () {
952
- this.onload = this.onerror = null;
953
-
954
- F._error( 'image' );
955
- };
956
-
957
- img.src = F.coming.href;
958
-
959
- if (img.complete !== true) {
960
- F.showLoading();
961
- }
962
- },
963
-
964
- _loadAjax: function () {
965
- var coming = F.coming;
966
-
967
- F.showLoading();
968
-
969
- F.ajaxLoad = $.ajax($.extend({}, coming.ajax, {
970
- url: coming.href,
971
- error: function (jqXHR, textStatus) {
972
- if (F.coming && textStatus !== 'abort') {
973
- F._error( 'ajax', jqXHR );
974
-
975
- } else {
976
- F.hideLoading();
977
- }
978
- },
979
- success: function (data, textStatus) {
980
- if (textStatus === 'success') {
981
- coming.content = data;
982
-
983
- F._afterLoad();
984
- }
985
- }
986
- }));
987
- },
988
-
989
- _loadIframe: function() {
990
- var coming = F.coming,
991
- iframe = $(coming.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime()))
992
- .attr('scrolling', isTouch ? 'auto' : coming.iframe.scrolling)
993
- .attr('src', coming.href);
994
-
995
- // This helps IE
996
- $(coming.wrap).bind('onReset', function () {
997
- try {
998
- $(this).find('iframe').hide().attr('src', '//about:blank').end().empty();
999
- } catch (e) {}
1000
- });
1001
-
1002
- if (coming.iframe.preload) {
1003
- F.showLoading();
1004
-
1005
- iframe.one('load', function() {
1006
- $(this).data('ready', 1);
1007
-
1008
- // iOS will lose scrolling if we resize
1009
- if (!isTouch) {
1010
- $(this).bind('load.fb', F.update);
1011
- }
1012
-
1013
- // Without this trick:
1014
- // - iframe won't scroll on iOS devices
1015
- // - IE7 sometimes displays empty iframe
1016
- $(this).parents('.fancybox-wrap').width('100%').removeClass('fancybox-tmp').show();
1017
-
1018
- F._afterLoad();
1019
- });
1020
- }
1021
-
1022
- coming.content = iframe.appendTo( coming.inner );
1023
-
1024
- if (!coming.iframe.preload) {
1025
- F._afterLoad();
1026
- }
1027
- },
1028
-
1029
- _preloadImages: function() {
1030
- var group = F.group,
1031
- current = F.current,
1032
- len = group.length,
1033
- cnt = current.preload ? Math.min(current.preload, len - 1) : 0,
1034
- item,
1035
- i;
1036
-
1037
- for (i = 1; i <= cnt; i += 1) {
1038
- item = group[ (current.index + i ) % len ];
1039
-
1040
- if (item.type === 'image' && item.href) {
1041
- new Image().src = item.href;
1042
- }
1043
- }
1044
- },
1045
-
1046
- _afterLoad: function () {
1047
- var coming = F.coming,
1048
- previous = F.current,
1049
- placeholder = 'fancybox-placeholder',
1050
- current,
1051
- content,
1052
- type,
1053
- scrolling,
1054
- href,
1055
- embed;
1056
-
1057
- F.hideLoading();
1058
-
1059
- if (!coming || F.isActive === false) {
1060
- return;
1061
- }
1062
-
1063
- if (false === F.trigger('afterLoad', coming, previous)) {
1064
- coming.wrap.stop(true).trigger('onReset').remove();
1065
-
1066
- F.coming = null;
1067
-
1068
- return;
1069
- }
1070
-
1071
- if (previous) {
1072
- F.trigger('beforeChange', previous);
1073
-
1074
- previous.wrap.stop(true).removeClass('fancybox-opened')
1075
- .find('.fancybox-item, .fancybox-nav')
1076
- .remove();
1077
- }
1078
-
1079
- F.unbindEvents();
1080
-
1081
- current = coming;
1082
- content = coming.content;
1083
- type = coming.type;
1084
- scrolling = coming.scrolling;
1085
-
1086
- $.extend(F, {
1087
- wrap : current.wrap,
1088
- skin : current.skin,
1089
- outer : current.outer,
1090
- inner : current.inner,
1091
- current : current,
1092
- previous : previous
1093
- });
1094
-
1095
- href = current.href;
1096
-
1097
- switch (type) {
1098
- case 'inline':
1099
- case 'ajax':
1100
- case 'html':
1101
- if (current.selector) {
1102
- content = $('<div>').html(content).find(current.selector);
1103
-
1104
- } else if (isQuery(content)) {
1105
- if (!content.data(placeholder)) {
1106
- content.data(placeholder, $('<div class="' + placeholder + '"></div>').insertAfter( content ).hide() );
1107
- }
1108
-
1109
- content = content.show().detach();
1110
-
1111
- current.wrap.bind('onReset', function () {
1112
- if ($(this).find(content).length) {
1113
- content.hide().replaceAll( content.data(placeholder) ).data(placeholder, false);
1114
- }
1115
- });
1116
- }
1117
- break;
1118
-
1119
- case 'image':
1120
- content = current.tpl.image.replace('{href}', href);
1121
- break;
1122
-
1123
- case 'swf':
1124
- content = '<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="' + href + '"></param>';
1125
- embed = '';
1126
-
1127
- $.each(current.swf, function(name, val) {
1128
- content += '<param name="' + name + '" value="' + val + '"></param>';
1129
- embed += ' ' + name + '="' + val + '"';
1130
- });
1131
-
1132
- content += '<embed src="' + href + '" type="application/x-shockwave-flash" width="100%" height="100%"' + embed + '></embed></object>';
1133
- break;
1134
- }
1135
-
1136
- if (!(isQuery(content) && content.parent().is(current.inner))) {
1137
- current.inner.append( content );
1138
- }
1139
-
1140
- // Give a chance for helpers or callbacks to update elements
1141
- F.trigger('beforeShow');
1142
-
1143
- // Set scrolling before calculating dimensions
1144
- current.inner.css('overflow', scrolling === 'yes' ? 'scroll' : (scrolling === 'no' ? 'hidden' : scrolling));
1145
-
1146
- // Set initial dimensions and start position
1147
- F._setDimension();
1148
-
1149
- F.reposition();
1150
-
1151
- F.isOpen = false;
1152
- F.coming = null;
1153
-
1154
- F.bindEvents();
1155
-
1156
- if (!F.isOpened) {
1157
- $('.fancybox-wrap').not( current.wrap ).stop(true).trigger('onReset').remove();
1158
-
1159
- } else if (previous.prevMethod) {
1160
- F.transitions[ previous.prevMethod ]();
1161
- }
1162
-
1163
- F.transitions[ F.isOpened ? current.nextMethod : current.openMethod ]();
1164
-
1165
- F._preloadImages();
1166
- },
1167
-
1168
- _setDimension: function () {
1169
- var viewport = F.getViewport(),
1170
- steps = 0,
1171
- canShrink = false,
1172
- canExpand = false,
1173
- wrap = F.wrap,
1174
- skin = F.skin,
1175
- inner = F.inner,
1176
- current = F.current,
1177
- width = current.width,
1178
- height = current.height,
1179
- minWidth = current.minWidth,
1180
- minHeight = current.minHeight,
1181
- maxWidth = current.maxWidth,
1182
- maxHeight = current.maxHeight,
1183
- scrolling = current.scrolling,
1184
- scrollOut = current.scrollOutside ? current.scrollbarWidth : 0,
1185
- margin = current.margin,
1186
- wMargin = getScalar(margin[1] + margin[3]),
1187
- hMargin = getScalar(margin[0] + margin[2]),
1188
- wPadding,
1189
- hPadding,
1190
- wSpace,
1191
- hSpace,
1192
- origWidth,
1193
- origHeight,
1194
- origMaxWidth,
1195
- origMaxHeight,
1196
- ratio,
1197
- width_,
1198
- height_,
1199
- maxWidth_,
1200
- maxHeight_,
1201
- iframe,
1202
- body;
1203
-
1204
- // Reset dimensions so we could re-check actual size
1205
- wrap.add(skin).add(inner).width('auto').height('auto').removeClass('fancybox-tmp');
1206
-
1207
- wPadding = getScalar(skin.outerWidth(true) - skin.width());
1208
- hPadding = getScalar(skin.outerHeight(true) - skin.height());
1209
-
1210
- // Any space between content and viewport (margin, padding, border, title)
1211
- wSpace = wMargin + wPadding;
1212
- hSpace = hMargin + hPadding;
1213
-
1214
- origWidth = isPercentage(width) ? (viewport.w - wSpace) * getScalar(width) / 100 : width;
1215
- origHeight = isPercentage(height) ? (viewport.h - hSpace) * getScalar(height) / 100 : height;
1216
-
1217
- if (current.type === 'iframe') {
1218
- iframe = current.content;
1219
-
1220
- if (current.autoHeight && iframe.data('ready') === 1) {
1221
- try {
1222
- if (iframe[0].contentWindow.document.location) {
1223
- inner.width( origWidth ).height(9999);
1224
-
1225
- body = iframe.contents().find('body');
1226
-
1227
- if (scrollOut) {
1228
- body.css('overflow-x', 'hidden');
1229
- }
1230
-
1231
- origHeight = body.outerHeight(true);
1232
- }
1233
-
1234
- } catch (e) {}
1235
- }
1236
-
1237
- } else if (current.autoWidth || current.autoHeight) {
1238
- inner.addClass( 'fancybox-tmp' );
1239
-
1240
- // Set width or height in case we need to calculate only one dimension
1241
- if (!current.autoWidth) {
1242
- inner.width( origWidth );
1243
- }
1244
-
1245
- if (!current.autoHeight) {
1246
- inner.height( origHeight );
1247
- }
1248
-
1249
- if (current.autoWidth) {
1250
- origWidth = inner.width();
1251
- }
1252
-
1253
- if (current.autoHeight) {
1254
- origHeight = inner.height();
1255
- }
1256
-
1257
- inner.removeClass( 'fancybox-tmp' );
1258
- }
1259
-
1260
- width = getScalar( origWidth );
1261
- height = getScalar( origHeight );
1262
-
1263
- ratio = origWidth / origHeight;
1264
-
1265
- // Calculations for the content
1266
- minWidth = getScalar(isPercentage(minWidth) ? getScalar(minWidth, 'w') - wSpace : minWidth);
1267
- maxWidth = getScalar(isPercentage(maxWidth) ? getScalar(maxWidth, 'w') - wSpace : maxWidth);
1268
-
1269
- minHeight = getScalar(isPercentage(minHeight) ? getScalar(minHeight, 'h') - hSpace : minHeight);
1270
- maxHeight = getScalar(isPercentage(maxHeight) ? getScalar(maxHeight, 'h') - hSpace : maxHeight);
1271
-
1272
- // These will be used to determine if wrap can fit in the viewport
1273
- origMaxWidth = maxWidth;
1274
- origMaxHeight = maxHeight;
1275
-
1276
- if (current.fitToView) {
1277
- maxWidth = Math.min(viewport.w - wSpace, maxWidth);
1278
- maxHeight = Math.min(viewport.h - hSpace, maxHeight);
1279
- }
1280
-
1281
- maxWidth_ = viewport.w - wMargin;
1282
- maxHeight_ = viewport.h - hMargin;
1283
-
1284
- if (current.aspectRatio) {
1285
- if (width > maxWidth) {
1286
- width = maxWidth;
1287
- height = getScalar(width / ratio);
1288
- }
1289
-
1290
- if (height > maxHeight) {
1291
- height = maxHeight;
1292
- width = getScalar(height * ratio);
1293
- }
1294
-
1295
- if (width < minWidth) {
1296
- width = minWidth;
1297
- height = getScalar(width / ratio);
1298
- }
1299
-
1300
- if (height < minHeight) {
1301
- height = minHeight;
1302
- width = getScalar(height * ratio);
1303
- }
1304
-
1305
- } else {
1306
- width = Math.max(minWidth, Math.min(width, maxWidth));
1307
-
1308
- if (current.autoHeight && current.type !== 'iframe') {
1309
- inner.width( width );
1310
-
1311
- height = inner.height();
1312
- }
1313
-
1314
- height = Math.max(minHeight, Math.min(height, maxHeight));
1315
- }
1316
-
1317
- // Try to fit inside viewport (including the title)
1318
- if (current.fitToView) {
1319
- inner.width( width ).height( height );
1320
-
1321
- wrap.width( width + wPadding );
1322
-
1323
- // Real wrap dimensions
1324
- width_ = wrap.width();
1325
- height_ = wrap.height();
1326
-
1327
- if (current.aspectRatio) {
1328
- while ((width_ > maxWidth_ || height_ > maxHeight_) && width > minWidth && height > minHeight) {
1329
- if (steps++ > 19) {
1330
- break;
1331
- }
1332
-
1333
- height = Math.max(minHeight, Math.min(maxHeight, height - 10));
1334
- width = getScalar(height * ratio);
1335
-
1336
- if (width < minWidth) {
1337
- width = minWidth;
1338
- height = getScalar(width / ratio);
1339
- }
1340
-
1341
- if (width > maxWidth) {
1342
- width = maxWidth;
1343
- height = getScalar(width / ratio);
1344
- }
1345
-
1346
- inner.width( width ).height( height );
1347
-
1348
- wrap.width( width + wPadding );
1349
-
1350
- width_ = wrap.width();
1351
- height_ = wrap.height();
1352
- }
1353
-
1354
- } else {
1355
- width = Math.max(minWidth, Math.min(width, width - (width_ - maxWidth_)));
1356
- height = Math.max(minHeight, Math.min(height, height - (height_ - maxHeight_)));
1357
- }
1358
- }
1359
-
1360
- if (scrollOut && scrolling === 'auto' && height < origHeight && (width + wPadding + scrollOut) < maxWidth_) {
1361
- width += scrollOut;
1362
- }
1363
-
1364
- inner.width( width ).height( height );
1365
-
1366
- wrap.width( width + wPadding );
1367
-
1368
- width_ = wrap.width();
1369
- height_ = wrap.height();
1370
-
1371
- canShrink = (width_ > maxWidth_ || height_ > maxHeight_) && width > minWidth && height > minHeight;
1372
- canExpand = current.aspectRatio ? (width < origMaxWidth && height < origMaxHeight && width < origWidth && height < origHeight) : ((width < origMaxWidth || height < origMaxHeight) && (width < origWidth || height < origHeight));
1373
-
1374
- $.extend(current, {
1375
- dim : {
1376
- width : getValue( width_ ),
1377
- height : getValue( height_ )
1378
- },
1379
- origWidth : origWidth,
1380
- origHeight : origHeight,
1381
- canShrink : canShrink,
1382
- canExpand : canExpand,
1383
- wPadding : wPadding,
1384
- hPadding : hPadding,
1385
- wrapSpace : height_ - skin.outerHeight(true),
1386
- skinSpace : skin.height() - height
1387
- });
1388
-
1389
- if (!iframe && current.autoHeight && height > minHeight && height < maxHeight && !canExpand) {
1390
- inner.height('auto');
1391
- }
1392
- },
1393
-
1394
- _getPosition: function (onlyAbsolute) {
1395
- var current = F.current,
1396
- viewport = F.getViewport(),
1397
- margin = current.margin,
1398
- width = F.wrap.width() + margin[1] + margin[3],
1399
- height = F.wrap.height() + margin[0] + margin[2],
1400
- rez = {
1401
- position: 'absolute',
1402
- top : margin[0],
1403
- left : margin[3]
1404
- };
1405
-
1406
- if (current.autoCenter && current.fixed && !onlyAbsolute && height <= viewport.h && width <= viewport.w) {
1407
- rez.position = 'fixed';
1408
-
1409
- } else if (!current.locked) {
1410
- rez.top += viewport.y;
1411
- rez.left += viewport.x;
1412
- }
1413
-
1414
- rez.top = getValue(Math.max(rez.top, rez.top + ((viewport.h - height) * current.topRatio)));
1415
- rez.left = getValue(Math.max(rez.left, rez.left + ((viewport.w - width) * current.leftRatio)));
1416
-
1417
- return rez;
1418
- },
1419
-
1420
- _afterZoomIn: function () {
1421
- var current = F.current;
1422
-
1423
- if (!current) {
1424
- return;
1425
- }
1426
-
1427
- F.isOpen = F.isOpened = true;
1428
-
1429
- F.wrap.css('overflow', 'visible').addClass('fancybox-opened');
1430
-
1431
- F.update();
1432
-
1433
- // Assign a click event
1434
- if ( current.closeClick || (current.nextClick && F.group.length > 1) ) {
1435
- F.inner.css('cursor', 'pointer').bind('click.fb', function(e) {
1436
- if (!$(e.target).is('a') && !$(e.target).parent().is('a')) {
1437
- e.preventDefault();
1438
-
1439
- F[ current.closeClick ? 'close' : 'next' ]();
1440
- }
1441
- });
1442
- }
1443
-
1444
- // Create a close button
1445
- if (current.closeBtn) {
1446
- $(current.tpl.closeBtn).appendTo(F.skin).bind('click.fb', function(e) {
1447
- e.preventDefault();
1448
-
1449
- F.close();
1450
- });
1451
- }
1452
-
1453
- // Create navigation arrows
1454
- if (current.arrows && F.group.length > 1) {
1455
- if (current.loop || current.index > 0) {
1456
- $(current.tpl.prev).appendTo(F.outer).bind('click.fb', F.prev);
1457
- }
1458
-
1459
- if (current.loop || current.index < F.group.length - 1) {
1460
- $(current.tpl.next).appendTo(F.outer).bind('click.fb', F.next);
1461
- }
1462
- }
1463
-
1464
- F.trigger('afterShow');
1465
-
1466
- // Stop the slideshow if this is the last item
1467
- if (!current.loop && current.index === current.group.length - 1) {
1468
- F.play( false );
1469
-
1470
- } else if (F.opts.autoPlay && !F.player.isActive) {
1471
- F.opts.autoPlay = false;
1472
-
1473
- F.play();
1474
- }
1475
- },
1476
-
1477
- _afterZoomOut: function ( obj ) {
1478
- obj = obj || F.current;
1479
-
1480
- $('.fancybox-wrap').trigger('onReset').remove();
1481
-
1482
- $.extend(F, {
1483
- group : {},
1484
- opts : {},
1485
- router : false,
1486
- current : null,
1487
- isActive : false,
1488
- isOpened : false,
1489
- isOpen : false,
1490
- isClosing : false,
1491
- wrap : null,
1492
- skin : null,
1493
- outer : null,
1494
- inner : null
1495
- });
1496
-
1497
- F.trigger('afterClose', obj);
1498
- }
1499
- });
1500
-
1501
- /*
1502
- * Default transitions
1503
- */
1504
-
1505
- F.transitions = {
1506
- getOrigPosition: function () {
1507
- var current = F.current,
1508
- element = current.element,
1509
- orig = current.orig,
1510
- pos = {},
1511
- width = 50,
1512
- height = 50,
1513
- hPadding = current.hPadding,
1514
- wPadding = current.wPadding,
1515
- viewport = F.getViewport();
1516
-
1517
- if (!orig && current.isDom && element.is(':visible')) {
1518
- orig = element.find('img:first');
1519
-
1520
- if (!orig.length) {
1521
- orig = element;
1522
- }
1523
- }
1524
-
1525
- if (isQuery(orig)) {
1526
- pos = orig.offset();
1527
-
1528
- if (orig.is('img')) {
1529
- width = orig.outerWidth();
1530
- height = orig.outerHeight();
1531
- }
1532
-
1533
- } else {
1534
- pos.top = viewport.y + (viewport.h - height) * current.topRatio;
1535
- pos.left = viewport.x + (viewport.w - width) * current.leftRatio;
1536
- }
1537
-
1538
- if (F.wrap.css('position') === 'fixed' || current.locked) {
1539
- pos.top -= viewport.y;
1540
- pos.left -= viewport.x;
1541
- }
1542
-
1543
- pos = {
1544
- top : getValue(pos.top - hPadding * current.topRatio),
1545
- left : getValue(pos.left - wPadding * current.leftRatio),
1546
- width : getValue(width + wPadding),
1547
- height : getValue(height + hPadding)
1548
- };
1549
-
1550
- return pos;
1551
- },
1552
-
1553
- step: function (now, fx) {
1554
- var ratio,
1555
- padding,
1556
- value,
1557
- prop = fx.prop,
1558
- current = F.current,
1559
- wrapSpace = current.wrapSpace,
1560
- skinSpace = current.skinSpace;
1561
-
1562
- if (prop === 'width' || prop === 'height') {
1563
- ratio = fx.end === fx.start ? 1 : (now - fx.start) / (fx.end - fx.start);
1564
-
1565
- if (F.isClosing) {
1566
- ratio = 1 - ratio;
1567
- }
1568
-
1569
- padding = prop === 'width' ? current.wPadding : current.hPadding;
1570
- value = now - padding;
1571
-
1572
- F.skin[ prop ]( getScalar( prop === 'width' ? value : value - (wrapSpace * ratio) ) );
1573
- F.inner[ prop ]( getScalar( prop === 'width' ? value : value - (wrapSpace * ratio) - (skinSpace * ratio) ) );
1574
- }
1575
- },
1576
-
1577
- zoomIn: function () {
1578
- var current = F.current,
1579
- startPos = current.pos,
1580
- effect = current.openEffect,
1581
- elastic = effect === 'elastic',
1582
- endPos = $.extend({opacity : 1}, startPos);
1583
-
1584
- // Remove "position" property that breaks older IE
1585
- delete endPos.position;
1586
-
1587
- if (elastic) {
1588
- startPos = this.getOrigPosition();
1589
-
1590
- if (current.openOpacity) {
1591
- startPos.opacity = 0.1;
1592
- }
1593
-
1594
- } else if (effect === 'fade') {
1595
- startPos.opacity = 0.1;
1596
- }
1597
-
1598
- F.wrap.css(startPos).animate(endPos, {
1599
- duration : effect === 'none' ? 0 : current.openSpeed,
1600
- easing : current.openEasing,
1601
- step : elastic ? this.step : null,
1602
- complete : F._afterZoomIn
1603
- });
1604
- },
1605
-
1606
- zoomOut: function () {
1607
- var current = F.current,
1608
- effect = current.closeEffect,
1609
- elastic = effect === 'elastic',
1610
- endPos = {opacity : 0.1};
1611
-
1612
- if (elastic) {
1613
- endPos = this.getOrigPosition();
1614
-
1615
- if (current.closeOpacity) {
1616
- endPos.opacity = 0.1;
1617
- }
1618
- }
1619
-
1620
- F.wrap.animate(endPos, {
1621
- duration : effect === 'none' ? 0 : current.closeSpeed,
1622
- easing : current.closeEasing,
1623
- step : elastic ? this.step : null,
1624
- complete : F._afterZoomOut
1625
- });
1626
- },
1627
-
1628
- changeIn: function () {
1629
- var current = F.current,
1630
- effect = current.nextEffect,
1631
- startPos = current.pos,
1632
- endPos = { opacity : 1 },
1633
- direction = F.direction,
1634
- distance = 200,
1635
- field;
1636
-
1637
- startPos.opacity = 0.1;
1638
-
1639
- if (effect === 'elastic') {
1640
- field = direction === 'down' || direction === 'up' ? 'top' : 'left';
1641
-
1642
- if (direction === 'down' || direction === 'right') {
1643
- startPos[ field ] = getValue(getScalar(startPos[ field ]) - distance);
1644
- endPos[ field ] = '+=' + distance + 'px';
1645
-
1646
- } else {
1647
- startPos[ field ] = getValue(getScalar(startPos[ field ]) + distance);
1648
- endPos[ field ] = '-=' + distance + 'px';
1649
- }
1650
- }
1651
-
1652
- // Workaround for http://bugs.jquery.com/ticket/12273
1653
- if (effect === 'none') {
1654
- F._afterZoomIn();
1655
-
1656
- } else {
1657
- F.wrap.css(startPos).animate(endPos, {
1658
- duration : current.nextSpeed,
1659
- easing : current.nextEasing,
1660
- complete : F._afterZoomIn
1661
- });
1662
- }
1663
- },
1664
-
1665
- changeOut: function () {
1666
- var previous = F.previous,
1667
- effect = previous.prevEffect,
1668
- endPos = { opacity : 0.1 },
1669
- direction = F.direction,
1670
- distance = 200;
1671
-
1672
- if (effect === 'elastic') {
1673
- endPos[ direction === 'down' || direction === 'up' ? 'top' : 'left' ] = ( direction === 'up' || direction === 'left' ? '-' : '+' ) + '=' + distance + 'px';
1674
- }
1675
-
1676
- previous.wrap.animate(endPos, {
1677
- duration : effect === 'none' ? 0 : previous.prevSpeed,
1678
- easing : previous.prevEasing,
1679
- complete : function () {
1680
- $(this).trigger('onReset').remove();
1681
- }
1682
- });
1683
- }
1684
- };
1685
-
1686
- /*
1687
- * Overlay helper
1688
- */
1689
-
1690
- F.helpers.overlay = {
1691
- defaults : {
1692
- closeClick : true, // if true, fancyBox will be closed when user clicks on the overlay
1693
- speedOut : 200, // duration of fadeOut animation
1694
- showEarly : true, // indicates if should be opened immediately or wait until the content is ready
1695
- css : {}, // custom CSS properties
1696
- locked : !isTouch, // if true, the content will be locked into overlay
1697
- fixed : true // if false, the overlay CSS position property will not be set to "fixed"
1698
- },
1699
-
1700
- overlay : null, // current handle
1701
- fixed : false, // indicates if the overlay has position "fixed"
1702
- el : $('html'), // element that contains "the lock"
1703
-
1704
- // Public methods
1705
- create : function(opts) {
1706
- opts = $.extend({}, this.defaults, opts);
1707
-
1708
- if (this.overlay) {
1709
- this.close();
1710
- }
1711
-
1712
- this.overlay = $('<div class="fancybox-overlay"></div>').appendTo( F.coming ? F.coming.parent : opts.parent );
1713
- this.fixed = false;
1714
-
1715
- if (opts.fixed && F.defaults.fixed) {
1716
- this.overlay.addClass('fancybox-overlay-fixed');
1717
-
1718
- this.fixed = true;
1719
- }
1720
- },
1721
-
1722
- open : function(opts) {
1723
- var that = this;
1724
-
1725
- opts = $.extend({}, this.defaults, opts);
1726
-
1727
- if (this.overlay) {
1728
- this.overlay.unbind('.overlay').width('auto').height('auto');
1729
-
1730
- } else {
1731
- this.create(opts);
1732
- }
1733
-
1734
- if (!this.fixed) {
1735
- W.bind('resize.overlay', $.proxy( this.update, this) );
1736
-
1737
- this.update();
1738
- }
1739
-
1740
- if (opts.closeClick) {
1741
- this.overlay.bind('click.overlay', function(e) {
1742
- if ($(e.target).hasClass('fancybox-overlay')) {
1743
- if (F.isActive) {
1744
- F.close();
1745
- } else {
1746
- that.close();
1747
- }
1748
-
1749
- return false;
1750
- }
1751
- });
1752
- }
1753
-
1754
- this.overlay.css( opts.css ).show();
1755
- },
1756
-
1757
- close : function() {
1758
- var scrollV, scrollH;
1759
-
1760
- W.unbind('resize.overlay');
1761
-
1762
- if (this.el.hasClass('fancybox-lock')) {
1763
- $('.fancybox-margin').removeClass('fancybox-margin');
1764
-
1765
- scrollV = W.scrollTop();
1766
- scrollH = W.scrollLeft();
1767
-
1768
- this.el.removeClass('fancybox-lock');
1769
-
1770
- W.scrollTop( scrollV ).scrollLeft( scrollH );
1771
- }
1772
-
1773
- $('.fancybox-overlay').remove().hide();
1774
-
1775
- $.extend(this, {
1776
- overlay : null,
1777
- fixed : false
1778
- });
1779
- },
1780
-
1781
- // Private, callbacks
1782
-
1783
- update : function () {
1784
- var width = '100%', offsetWidth;
1785
-
1786
- // Reset width/height so it will not mess
1787
- this.overlay.width(width).height('100%');
1788
-
1789
- // jQuery does not return reliable result for IE
1790
- if (IE) {
1791
- offsetWidth = Math.max(document.documentElement.offsetWidth, document.body.offsetWidth);
1792
-
1793
- if (D.width() > offsetWidth) {
1794
- width = D.width();
1795
- }
1796
-
1797
- } else if (D.width() > W.width()) {
1798
- width = D.width();
1799
- }
1800
-
1801
- this.overlay.width(width).height(D.height());
1802
- },
1803
-
1804
- // This is where we can manipulate DOM, because later it would cause iframes to reload
1805
- onReady : function (opts, obj) {
1806
- var overlay = this.overlay;
1807
-
1808
- $('.fancybox-overlay').stop(true, true);
1809
-
1810
- if (!overlay) {
1811
- this.create(opts);
1812
- }
1813
-
1814
- if (opts.locked && this.fixed && obj.fixed) {
1815
- if (!overlay) {
1816
- this.margin = D.height() > W.height() ? $('html').css('margin-right').replace("px", "") : false;
1817
- }
1818
-
1819
- obj.locked = this.overlay.append( obj.wrap );
1820
- obj.fixed = false;
1821
- }
1822
-
1823
- if (opts.showEarly === true) {
1824
- this.beforeShow.apply(this, arguments);
1825
- }
1826
- },
1827
-
1828
- beforeShow : function(opts, obj) {
1829
- var scrollV, scrollH;
1830
-
1831
- if (obj.locked) {
1832
- if (this.margin !== false) {
1833
- $('*').filter(function(){
1834
- return ($(this).css('position') === 'fixed' && !$(this).hasClass("fancybox-overlay") && !$(this).hasClass("fancybox-wrap") );
1835
- }).addClass('fancybox-margin');
1836
-
1837
- this.el.addClass('fancybox-margin');
1838
- }
1839
-
1840
- scrollV = W.scrollTop();
1841
- scrollH = W.scrollLeft();
1842
-
1843
- this.el.addClass('fancybox-lock');
1844
-
1845
- W.scrollTop( scrollV ).scrollLeft( scrollH );
1846
- }
1847
-
1848
- this.open(opts);
1849
- },
1850
-
1851
- onUpdate : function() {
1852
- if (!this.fixed) {
1853
- this.update();
1854
- }
1855
- },
1856
-
1857
- afterClose: function (opts) {
1858
- // Remove overlay if exists and fancyBox is not opening
1859
- // (e.g., it is not being open using afterClose callback)
1860
- //if (this.overlay && !F.isActive) {
1861
- if (this.overlay && !F.coming) {
1862
- this.overlay.fadeOut(opts.speedOut, $.proxy( this.close, this ));
1863
- }
1864
- }
1865
- };
1866
-
1867
- /*
1868
- * Title helper
1869
- */
1870
-
1871
- F.helpers.title = {
1872
- defaults : {
1873
- type : 'float', // 'float', 'inside', 'outside' or 'over',
1874
- position : 'bottom' // 'top' or 'bottom'
1875
- },
1876
-
1877
- beforeShow: function (opts) {
1878
- var current = F.current,
1879
- text = current.title,
1880
- type = opts.type,
1881
- title,
1882
- target;
1883
-
1884
- if ($.isFunction(text)) {
1885
- text = text.call(current.element, current);
1886
- }
1887
-
1888
- if (!isString(text) || $.trim(text) === '') {
1889
- return;
1890
- }
1891
-
1892
- title = $('<div class="fancybox-title fancybox-title-' + type + '-wrap">' + text + '</div>');
1893
-
1894
- switch (type) {
1895
- case 'inside':
1896
- target = F.skin;
1897
- break;
1898
-
1899
- case 'outside':
1900
- target = F.wrap;
1901
- break;
1902
-
1903
- case 'over':
1904
- target = F.inner;
1905
- break;
1906
-
1907
- default: // 'float'
1908
- target = F.skin;
1909
-
1910
- title.appendTo('body');
1911
-
1912
- if (IE) {
1913
- title.width( title.width() );
1914
- }
1915
-
1916
- title.wrapInner('<span class="child"></span>');
1917
-
1918
- //Increase bottom margin so this title will also fit into viewport
1919
- F.current.margin[2] += Math.abs( getScalar(title.css('margin-bottom')) );
1920
- break;
1921
- }
1922
-
1923
- title[ (opts.position === 'top' ? 'prependTo' : 'appendTo') ](target);
1924
- }
1925
- };
1926
-
1927
- // jQuery plugin initialization
1928
- $.fn.fancybox = function (options) {
1929
- var index,
1930
- that = $(this),
1931
- selector = this.selector || '',
1932
- run = function(e) {
1933
- var what = $(this).blur(), idx = index, relType, relVal;
1934
-
1935
- if (!(e.ctrlKey || e.altKey || e.shiftKey || e.metaKey) && !what.is('.fancybox-wrap')) {
1936
- relType = options.groupAttr || 'data-fancybox-group';
1937
- relVal = what.attr(relType);
1938
-
1939
- if (!relVal) {
1940
- relType = 'rel';
1941
- relVal = what.get(0)[ relType ];
1942
- }
1943
-
1944
- if (relVal && relVal !== '' && relVal !== 'nofollow') {
1945
- what = selector.length ? $(selector) : that;
1946
- what = what.filter('[' + relType + '="' + relVal + '"]');
1947
- idx = what.index(this);
1948
- }
1949
-
1950
- options.index = idx;
1951
-
1952
- // Stop an event from bubbling if everything is fine
1953
- if (F.open(what, options) !== false) {
1954
- e.preventDefault();
1955
- }
1956
- }
1957
- };
1958
-
1959
- options = options || {};
1960
- index = options.index || 0;
1961
-
1962
- if (!selector || options.live === false) {
1963
- that.unbind('click.fb-start').bind('click.fb-start', run);
1964
-
1965
- } else {
1966
- D.undelegate(selector, 'click.fb-start').delegate(selector + ":not('.fancybox-item, .fancybox-nav')", 'click.fb-start', run);
1967
- }
1968
-
1969
- this.filter('[data-fancybox-start=1]').trigger('click');
1970
-
1971
- return this;
1972
- };
1973
-
1974
- // Tests that need a body at doc ready
1975
- D.ready(function() {
1976
- var w1, w2;
1977
-
1978
- if ( $.scrollbarWidth === undefined ) {
1979
- // http://benalman.com/projects/jquery-misc-plugins/#scrollbarwidth
1980
- $.scrollbarWidth = function() {
1981
- var parent = $('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body'),
1982
- child = parent.children(),
1983
- width = child.innerWidth() - child.height( 99 ).innerWidth();
1984
-
1985
- parent.remove();
1986
-
1987
- return width;
1988
- };
1989
- }
1990
-
1991
- if ( $.support.fixedPosition === undefined ) {
1992
- $.support.fixedPosition = (function() {
1993
- var elem = $('<div style="position:fixed;top:20px;"></div>').appendTo('body'),
1994
- fixed = ( elem[0].offsetTop === 20 || elem[0].offsetTop === 15 );
1995
-
1996
- elem.remove();
1997
-
1998
- return fixed;
1999
- }());
2000
- }
2001
-
2002
- $.extend(F.defaults, {
2003
- scrollbarWidth : $.scrollbarWidth(),
2004
- fixed : $.support.fixedPosition,
2005
- parent : $('body')
2006
- });
2007
-
2008
- //Get real width of page scroll-bar
2009
- w1 = $(window).width();
2010
-
2011
- H.addClass('fancybox-lock-test');
2012
-
2013
- w2 = $(window).width();
2014
-
2015
- H.removeClass('fancybox-lock-test');
2016
-
2017
- $("<style type='text/css'>.fancybox-margin{margin-right:" + (w2 - w1) + "px;}</style>").appendTo("head");
2018
- });
2019
-
2020
- }(window, document, jQuery));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/productlocator/jquery.fancybox.pack.js DELETED
@@ -1,46 +0,0 @@
1
- /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
2
- (function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.5",defaults:{padding:15,margin:20,
3
- width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},
4
- keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+
5
- (I?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,
6
- openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,
7
- isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,
8
- c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&
9
- k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||
10
- b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=
11
- setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({"onCancel.player beforeClose.player":c,"onUpdate.player":e,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},prev:function(a){var d=b.current;
12
- d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=
13
- a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),
14
- b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),
15
- y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;
16
- if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&"hidden"===h[0].style.overflow)&&
17
- (h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,
18
- {},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,
19
- mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=
20
- !0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");
21
- "image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=
22
- this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);
23
- f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,
24
- e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,
25
- outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",
26
- g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":
27
- "no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?
28
- h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||
29
- h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&
30
- "iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();
31
- y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&
32
- !a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&(d.preventDefault(),
33
- b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=
34
- a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):
35
- (c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===
36
- f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,
37
- {duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=w(l(e[g])-200),c[g]="+=200px"):(e[g]=w(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=
38
- b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f("html"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=
39
- f('<div class="fancybox-overlay"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?
40
- b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),
41
- p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===
42
- f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=
43
- b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,
44
- e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+
45
- ":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e=20===
46
- d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:"+(d-a)+"px;}</style>").appendTo("head")})})(window,document,jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/productlocator/jquery.ui.map.js DELETED
@@ -1,373 +0,0 @@
1
- /*!
2
- * jQuery FN Google Map 3.0-rc
3
- * http://code.google.com/p/jquery-ui-map/
4
- * Copyright (c) 2010 - 2012 Johan Säll Larsson
5
- * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
6
- */
7
- ( function($) {
8
-
9
- /**
10
- * @param name:string
11
- * @param prototype:object
12
- */
13
- $.a = function(name, prototype) {
14
-
15
- var namespace = name.split('.')[0];
16
- name = name.split('.')[1];
17
-
18
- $[namespace] = $[namespace] || {};
19
- $[namespace][name] = function(options, element) {
20
- if ( arguments.length ) {
21
- this._setup(options, element);
22
- }
23
- };
24
-
25
- $[namespace][name].prototype = $.extend({
26
- 'namespace': namespace,
27
- 'pluginName': name
28
- }, prototype);
29
-
30
- $.fn[name] = function(options) {
31
-
32
- var isMethodCall = typeof options === "string",
33
- args = Array.prototype.slice.call(arguments, 1),
34
- returnValue = this;
35
-
36
- if ( isMethodCall && options.substring(0, 1) === '_' ) {
37
- return returnValue;
38
- }
39
-
40
- this.each(function() {
41
- var instance = $.data(this, name);
42
- if (!instance) {
43
- instance = $.data(this, name, new $[namespace][name](options, this));
44
- }
45
- if (isMethodCall) {
46
- returnValue = instance[options].apply(instance, args);
47
- }
48
- });
49
-
50
- return returnValue;
51
-
52
- };
53
-
54
- };
55
-
56
- $.a('ui.gmap', {
57
-
58
- /**
59
- * Map options
60
- * @see http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/reference.html#MapOptions
61
- */
62
- options: {
63
- mapTypeId: 'roadmap',
64
- zoom: 5
65
- },
66
-
67
- /**
68
- * Get or set options
69
- * @param key:string
70
- * @param options:object
71
- * @return object
72
- */
73
- option: function(key, options) {
74
- if (options) {
75
- this.options[key] = options;
76
- this.get('map').set(key, options);
77
- return this;
78
- }
79
- return this.options[key];
80
- },
81
-
82
- /**
83
- * Setup plugin basics,
84
- * @param options:object
85
- * @param element:node
86
- */
87
- _setup: function(options, element) {
88
- this.el = element;
89
- options = options || {};
90
- jQuery.extend(this.options, options, { 'center': this._latLng(options.center) });
91
- this._create();
92
- if ( this._init ) { this._init(); }
93
- },
94
-
95
- /**
96
- * Instanciate the Google Maps object
97
- */
98
- _create: function() {
99
- var self = this;
100
- this.instance = { 'map': new google.maps.Map(self.el, self.options), 'markers': [], 'overlays': [], 'services': [] };
101
- google.maps.event.addListenerOnce(self.instance.map, 'bounds_changed', function() { $(self.el).trigger('init', self.instance.map); });
102
- self._call(self.options.callback, self.instance.map);
103
- },
104
-
105
- /**
106
- * Adds a latitude longitude pair to the bounds.
107
- * @param position:google.maps.LatLng/string
108
- */
109
- addBounds: function(position) {
110
- var bounds = this.get('bounds', new google.maps.LatLngBounds());
111
- bounds.extend(this._latLng(position));
112
- this.get('map').fitBounds(bounds);
113
- return this;
114
- },
115
-
116
- /**
117
- * Helper function to check if a LatLng is within the viewport
118
- * @param marker:google.maps.Marker
119
- */
120
- inViewport: function(marker) {
121
- var bounds = this.get('map').getBounds();
122
- return (bounds) ? bounds.contains(marker.getPosition()) : false;
123
- },
124
-
125
- /**
126
- * Adds a custom control to the map
127
- * @param panel:jquery/node/string
128
- * @param position:google.maps.ControlPosition
129
- * @see http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/reference.html#ControlPosition
130
- */
131
- addControl: function(panel, position) {
132
- this.get('map').controls[position].push(this._unwrap(panel));
133
- return this;
134
- },
135
-
136
- /**
137
- * Adds a Marker to the map
138
- * @param markerOptions:google.maps.MarkerOptions
139
- * @param callback:function(map:google.maps.Map, marker:google.maps.Marker) (optional)
140
- * @return $(google.maps.Marker)
141
- * @see http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/reference.html#MarkerOptions
142
- */
143
- addMarker: function(markerOptions, callback) {
144
- markerOptions.map = this.get('map');
145
- markerOptions.position = this._latLng(markerOptions.position);
146
- var marker = new (markerOptions.marker || google.maps.Marker)(markerOptions);
147
- var markers = this.get('markers');
148
- if ( marker.id ) {
149
- markers[marker.id] = marker;
150
- } else {
151
- markers.push(marker);
152
- }
153
- if ( marker.bounds ) {
154
- this.addBounds(marker.getPosition());
155
- }
156
- this._call(callback, markerOptions.map, marker);
157
- return $(marker);
158
- },
159
-
160
- /**
161
- * Clears by type
162
- * @param ctx:string e.g. 'markers', 'overlays', 'services'
163
- */
164
- clear: function(ctx) {
165
- this._c(this.get(ctx));
166
- this.set(ctx, []);
167
- return this;
168
- },
169
-
170
- _c: function(obj) {
171
- for ( var property in obj ) {
172
- if ( obj.hasOwnProperty(property) ) {
173
- if ( obj[property] instanceof google.maps.MVCObject ) {
174
- google.maps.event.clearInstanceListeners(obj[property]);
175
- if ( obj[property].setMap ) {
176
- obj[property].setMap(null);
177
- }
178
- } else if ( obj[property] instanceof Array ) {
179
- this._c(obj[property]);
180
- }
181
- obj[property] = null;
182
- }
183
- }
184
- },
185
-
186
- /**
187
- * Returns the objects with a specific property and value, e.g. 'category', 'tags'
188
- * @param ctx:string in what context, e.g. 'markers'
189
- * @param options:object property:string the property to search within, value:string, operator:string (optional) (AND/OR)
190
- * @param callback:function(marker:google.maps.Marker, isFound:boolean)
191
- */
192
- find: function(ctx, options, callback) {
193
- var obj = this.get(ctx);
194
- options.value = $.isArray(options.value) ? options.value : [options.value];
195
- for ( var property in obj ) {
196
- if ( obj.hasOwnProperty(property) ) {
197
- var isFound = false;
198
- for ( var value in options.value ) {
199
- if ( $.inArray(options.value[value], obj[property][options.property]) > -1 ) {
200
- isFound = true;
201
- } else {
202
- if ( options.operator && options.operator === 'AND' ) {
203
- isFound = false;
204
- break;
205
- }
206
- }
207
- }
208
- callback(obj[property], isFound);
209
- }
210
- }
211
- return this;
212
- },
213
-
214
- /**
215
- * Returns an instance property by key. Has the ability to set an object if the property does not exist
216
- * @param key:string
217
- * @param value:object(optional)
218
- */
219
- get: function(key, value) {
220
- var instance = this.instance;
221
- if ( !instance[key] ) {
222
- if ( key.indexOf('>') > -1 ) {
223
- var e = key.replace(/ /g, '').split('>');
224
- for ( var i = 0; i < e.length; i++ ) {
225
- if ( !instance[e[i]] ) {
226
- if (value) {
227
- instance[e[i]] = ( (i + 1) < e.length ) ? [] : value;
228
- } else {
229
- return null;
230
- }
231
- }
232
- instance = instance[e[i]];
233
- }
234
- return instance;
235
- } else if ( value && !instance[key] ) {
236
- this.set(key, value);
237
- }
238
- }
239
- return instance[key];
240
- },
241
-
242
- /**
243
- * Triggers an InfoWindow to open
244
- * @param infoWindowOptions:google.maps.InfoWindowOptions
245
- * @param marker:google.maps.Marker (optional)
246
- * @param callback:function (optional)
247
- * @see http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/reference.html#InfoWindowOptions
248
- */
249
- openInfoWindow: function(infoWindowOptions, marker, callback) {
250
- var iw = this.get('iw', infoWindowOptions.infoWindow || new google.maps.InfoWindow);
251
- iw.setOptions(infoWindowOptions);
252
- iw.open(this.get('map'), this._unwrap(marker));
253
- this._call(callback, iw);
254
- return this;
255
- },
256
-
257
- /**
258
- * Triggers an InfoWindow to close
259
- */
260
- closeInfoWindow: function() {
261
- if ( this.get('iw') != null ) {
262
- this.get('iw').close();
263
- }
264
- return this;
265
- },
266
-
267
- /**
268
- * Sets an instance property
269
- * @param key:string
270
- * @param value:object
271
- */
272
- set: function(key, value) {
273
- this.instance[key] = value;
274
- return this;
275
- },
276
-
277
- /**
278
- * Refreshes the map
279
- */
280
- refresh: function() {
281
- var map = this.get('map');
282
- var latLng = map.getCenter();
283
- $(map).triggerEvent('resize');
284
- map.setCenter(latLng);
285
- return this;
286
- },
287
-
288
- /**
289
- * Destroys the plugin.
290
- */
291
- destroy: function() {
292
- this.clear('markers').clear('services').clear('overlays')._c(this.instance);
293
- jQuery.removeData(this.el, this.name);
294
- },
295
-
296
- /**
297
- * Helper method for calling a function
298
- * @param callback
299
- */
300
- _call: function(callback) {
301
- if ( callback && $.isFunction(callback) ) {
302
- callback.apply(this, Array.prototype.slice.call(arguments, 1));
303
- }
304
- },
305
-
306
- /**
307
- * Helper method for google.maps.Latlng
308
- * @param latLng:string/google.maps.LatLng
309
- */
310
- _latLng: function(latLng) {
311
- if ( !latLng ) {
312
- return new google.maps.LatLng(0.0, 0.0);
313
- }
314
- if ( latLng instanceof google.maps.LatLng ) {
315
- return latLng;
316
- } else {
317
- latLng = latLng.replace(/ /g,'').split(',');
318
- return new google.maps.LatLng(latLng[0], latLng[1]);
319
- }
320
- },
321
-
322
- /**
323
- * Helper method for unwrapping jQuery/DOM/string elements
324
- * @param obj:string/node/jQuery
325
- */
326
- _unwrap: function(obj) {
327
- return (!obj) ? null : ( (obj instanceof jQuery) ? obj[0] : ((obj instanceof Object) ? obj : $('#'+obj)[0]) )
328
- }
329
-
330
- });
331
-
332
- jQuery.fn.extend( {
333
-
334
- triggerEvent: function(eventType) {
335
- google.maps.event.trigger(this[0], eventType);
336
- return this;
337
- },
338
-
339
- addEventListener: function(eventType, eventDataOrCallback, eventCallback) {
340
- if ( google.maps && this[0] instanceof google.maps.MVCObject ) {
341
- google.maps.event.addListener(this[0], eventType, eventDataOrCallback);
342
- } else {
343
- if (eventCallback) {
344
- this.bind(eventType, eventDataOrCallback, eventCallback);
345
- } else {
346
- this.bind(eventType, eventDataOrCallback);
347
- }
348
- }
349
- return this;
350
- }
351
-
352
- /*removeEventListener: function(eventType) {
353
- if ( google.maps && this[0] instanceof google.maps.MVCObject ) {
354
- if (eventType) {
355
- google.maps.event.clearListeners(this[0], eventType);
356
- } else {
357
- google.maps.event.clearInstanceListeners(this[0]);
358
- }
359
- } else {
360
- this.unbind(eventType);
361
- }
362
- return this;
363
- }*/
364
-
365
- });
366
-
367
- jQuery.each(('click rightclick dblclick mouseover mouseout drag dragend').split(' '), function(i, name) {
368
- jQuery.fn[name] = function(a, b) {
369
- return this.addEventListener(name, a, b);
370
- }
371
- });
372
-
373
- } (jQuery) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cubet_Productlocator</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license>MIT</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>This module enables to add location for each product and to show those location on a map in the product detail page.</description>
11
  <notes>This is a stable version.</notes>
12
  <authors><author><name>Lovegin John</name><user>webcubes</user><email>info@cubettech.com</email></author></authors>
13
- <date>2013-12-31</date>
14
- <time>06:15:56</time>
15
- <contents><target name="magecommunity"><dir name="Cubet"><dir name="Productlocator"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Productlocator.php" hash="21af7fb2b5b35b8c6499c7acd92d048e"/></dir></dir></dir></dir></dir><file name="Map.php" hash="681668bf8ab5f15256505704d474774a"/></dir><dir name="Helper"><file name="Data.php" hash="5c90deb38e39d10eaf393a1e04ff17a6"/></dir><dir name="Model"><file name="Locator.php" hash="261465f086a4f450e3d00a66758a4816"/><dir name="Mysql4"><dir name="Locator"><file name="Collection.php" hash="f7b4bdc482ba23023902a43e8234da5b"/></dir><file name="Locator.php" hash="7215441ca8de663d178897f4fe2fbd4b"/></dir><file name="Observer.php" hash="ba9faf9735c9fdbe512b177cdc40d321"/><dir name="Resource"><file name="Setup.php" hash="64debf8d16bf6a5b61d028fb648e0376"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="48edfa44e685442bfd5ad01a46aba60c"/></dir><file name="cubet_productlocator.sql" hash="1a2fc626bc71f5320e2eab5e96b899aa"/><file name="cubet_productlocator.sql~" hash="a5a4d142531b6574ef251a415f32c70f"/><dir name="etc"><file name="config.xml" hash="600199d77003e527795399be5a5bd4c4"/><file name="config.xml~" hash="ea44611e3e7f32613abc5ae1138ba038"/><file name="system.xml" hash="5a1d9c1a44e38e7e7fdd7219cc31a003"/><file name="system.xml~" hash="091a8a7505b01c6e6a1f8986833c15e5"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cubet_Productlocator.xml" hash="bbb6b6eabe1f343404e36fd158be8390"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="productlocator"><file name="locator.phtml" hash="a3ebb695092820dd6ee7b0583f741c97"/></dir></dir><dir name="layout"><file name="productlocator.xml" hash="19f54aecf055bb7da1babf423c270233"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="productlocator.xml" hash="098252c60cd8bb515cda7a74c3954264"/></dir><dir name="template"><dir name="productlocator"><dir name="catalog"><dir name="product"><dir name="edit"><file name="tab.phtml" hash="9a4c324fcd9336254322d3e9f45fb8be"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="productlocator"><file name="fancybox_sprite.png" hash="783d4031fe50c3d83c960911e1fbc705"/><file name="jquery.fancybox.css" hash="6c55951ce1e3115711f63f99b7501f3a"/><file name="productlocator.css" hash="67cb69ad2832e20bd7764b482a7cedde"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="productlocator"><file name="infobox.js" hash="444eb3ae3b8a1584c2ce6b263acc3bf3"/><file name="jquery-1.10.2.js" hash="604c0460e969bcc254d95d234b4e60b8"/><file name="jquery.fancybox.js" hash="921e9cb04ad6e2559869ec845c5be39b"/><file name="jquery.fancybox.pack.js" hash="cc9e759f24ba773aeef8a131889d3728"/><file name="jquery.ui.map.js" hash="66a82a959067906f14dfd25b231537a6"/><file name="noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cubet_Productlocator</name>
4
+ <version>2.0.0</version>
5
  <stability>stable</stability>
6
  <license>MIT</license>
7
  <channel>community</channel>
10
  <description>This module enables to add location for each product and to show those location on a map in the product detail page.</description>
11
  <notes>This is a stable version.</notes>
12
  <authors><author><name>Lovegin John</name><user>webcubes</user><email>info@cubettech.com</email></author></authors>
13
+ <date>2014-05-20</date>
14
+ <time>10:02:21</time>
15
+ <contents><target name="magecommunity"><dir name="Cubet"><dir name="Productlocator"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Productlocator.php" hash="21af7fb2b5b35b8c6499c7acd92d048e"/></dir></dir></dir></dir></dir><file name="Map.php" hash="681668bf8ab5f15256505704d474774a"/></dir><dir name="Helper"><file name="Data.php" hash="5c90deb38e39d10eaf393a1e04ff17a6"/></dir><dir name="Model"><file name="Locator.php" hash="261465f086a4f450e3d00a66758a4816"/><dir name="Mysql4"><dir name="Locator"><file name="Collection.php" hash="f7b4bdc482ba23023902a43e8234da5b"/></dir><file name="Locator.php" hash="7215441ca8de663d178897f4fe2fbd4b"/></dir><file name="Observer.php" hash="ba9faf9735c9fdbe512b177cdc40d321"/><dir name="Resource"><file name="Setup.php" hash="64debf8d16bf6a5b61d028fb648e0376"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="48edfa44e685442bfd5ad01a46aba60c"/></dir><file name="cubet_productlocator.sql" hash="1a2fc626bc71f5320e2eab5e96b899aa"/><file name="cubet_productlocator.sql~" hash="a5a4d142531b6574ef251a415f32c70f"/><dir name="etc"><file name="config.xml" hash="600199d77003e527795399be5a5bd4c4"/><file name="config.xml~" hash="ea44611e3e7f32613abc5ae1138ba038"/><file name="system.xml" hash="555c4c5a2ad6e9e691db04106d8e56c6"/><file name="system.xml~" hash="091a8a7505b01c6e6a1f8986833c15e5"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cubet_Productlocator.xml" hash="bbb6b6eabe1f343404e36fd158be8390"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="productlocator.xml" hash="5b4f2e269964ac35bcee517a01d112fe"/></dir><dir name="template"><dir name="productlocator"><dir name="catalog"><dir name="product"><dir name="edit"><file name="tab.phtml" hash="9a4c324fcd9336254322d3e9f45fb8be"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="productlocator"><file name="locator.phtml" hash="eba5758c0ea7e0f7b5537d897b3eb790"/></dir></dir><dir name="layout"><file name="productlocator.xml" hash="61fe9aa2db3e0f2e68e01b3104806b79"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="productlocator"><file name="fancybox_sprite.png" hash="783d4031fe50c3d83c960911e1fbc705"/><file name="jquery.fancybox.css" hash="6c55951ce1e3115711f63f99b7501f3a"/><file name="productlocator.css" hash="67cb69ad2832e20bd7764b482a7cedde"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="productlocator"><file name="jquery-2.1.1.min.js" hash="e40ec2161fe7993196f23c8a07346306"/><file name="noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>