Release: 1.0.9
This commit is contained in:
1 parent
e4312c71d6
commit
d51154d450
24 files changed
+17196
-7852
No files matched your search
@@ -44,15 +44,14 @@
|
||||
<div class="col-md-12">
|
||||
|
||||
<div id="main">
|
||||
<h1 class="page-title">Source: F:/Git/wildstring/wildstring.js</h1>
|
||||
|
||||
|
||||
<h1 class="page-title">Source: F:/Git/wildstring/wildstring.js</h1>
|
||||
|
||||
<section>
|
||||
<article>
|
||||
<pre
|
||||
class="sunlight-highlight-javascript linenums">'use strict';
|
||||
<article>
|
||||
<pre
|
||||
class="sunlight-highlight-javascript linenums">'use strict';
|
||||
|
||||
/**
|
||||
* @namespace wildstring
|
||||
@@ -84,7 +83,6 @@ var wildstring = {
|
||||
rollbackStrings.push({ string: testString, index: patternIndex });
|
||||
if (testString.indexOf(patternSubstrings[patternIndex]) === -1) {
|
||||
rollbackStrings.pop();
|
||||
break;
|
||||
}
|
||||
|
||||
currentString = currentString.substr(
|
||||
@@ -230,7 +228,7 @@ if (typeof(module) !== 'undefined') { module.exports = wildstring; }
|
||||
if (typeof(angular) !== 'undefined') { angular.module('wildstring', []).factory('wildstring', function() { return wildstring; }); }
|
||||
if (typeof(define) !== 'undefined') { define([], wildstring); }
|
||||
</pre>
|
||||
</article>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -254,12 +252,11 @@ if (typeof(define) !== 'undefined') { define([], wildstring); }
|
||||
<span class="copyright">
|
||||
DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.
|
||||
</span>
|
||||
<br />
|
||||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Tue Aug 25th 2015 using the <a
|
||||
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
|
||||
on Mon Apr 24th 2017 using the <a
|
||||
href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
|
||||
@@ -276,20 +273,6 @@ $( function () {
|
||||
$this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
|
||||
} );
|
||||
|
||||
$( "#toc" ).toc( {
|
||||
anchorName : function ( i, heading, prefix ) {
|
||||
return $( heading ).attr( "id" ) || ( prefix + i );
|
||||
},
|
||||
selectors : "h1,h2,h3,h4",
|
||||
showAndHide : false,
|
||||
scrollTo : "100px"
|
||||
} );
|
||||
|
||||
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
|
||||
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
||||
$( '.dropdown-toggle' ).dropdown();
|
||||
// $( ".tutorial-section pre, .readme-section pre" ).addClass( "sunlight-highlight-javascript" ).addClass( "linenums" );
|
||||
|
||||
$( ".tutorial-section pre, .readme-section pre" ).each( function () {
|
||||
var $this = $( this );
|
||||
|
||||
@@ -301,7 +284,8 @@ $( function () {
|
||||
example.html( exampleText );
|
||||
lang = lang[1];
|
||||
} else {
|
||||
lang = "javascript";
|
||||
var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
|
||||
lang = langClassMatch ? langClassMatch[1] : "javascript";
|
||||
}
|
||||
|
||||
if ( lang ) {
|
||||
@@ -319,6 +303,28 @@ $( function () {
|
||||
showMenu : true,
|
||||
enableDoclinks : true
|
||||
} );
|
||||
|
||||
$( "#toc" ).toc( {
|
||||
anchorName : function ( i, heading, prefix ) {
|
||||
var id = $( heading ).attr( "id" );
|
||||
return id && id.replace(/\~/g, '-inner-').replace(/\./g, '-static-') || ( prefix + i );
|
||||
},
|
||||
selectors : "h1,h2,h3,h4",
|
||||
showAndHide : false,
|
||||
navbarOffset: 10,
|
||||
smoothScrolling: true
|
||||
} );
|
||||
|
||||
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
|
||||
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
||||
$( '.dropdown-toggle' ).dropdown();
|
||||
// $( ".tutorial-section pre, .readme-section pre" ).addClass( "sunlight-highlight-javascript" ).addClass( "linenums" );
|
||||
|
||||
$( "table" ).each( function () {
|
||||
var $this = $( this );
|
||||
$this.addClass('table');
|
||||
} );
|
||||
|
||||
} );
|
||||
</script>
|
||||
|
||||
|
||||
+28
-28
@@ -44,12 +44,9 @@
|
||||
<div class="col-md-8">
|
||||
|
||||
<div id="main">
|
||||
<h1 class="page-title">Index</h1>
|
||||
|
||||
|
||||
|
||||
<span class="page-title">Index</span>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -71,12 +68,7 @@
|
||||
|
||||
<section class="readme-section">
|
||||
<article><h1><a href="https://www.youtube.com/watch?v=4qHX493bB3U">wildstring</a></h1><p>Simple String Wildcard Handling</p>
|
||||
<p><a href="http://travis-ci.org/deltreey/wildstring"><img src="https://secure.travis-ci.org/deltreey/wildstring.png" alt="build status"></a>
|
||||
<a href="https://www.npmjs.com/package/wildstring"><img src="https://badge.fury.io/js/wildstring.svg" alt="npm version"></a>
|
||||
<a href="https://www.codacy.com/app/suicidolt/wildstring"><img src="https://www.codacy.com/project/badge/8436bfefb89345d0933bb91f59ed3b22" alt="Codacy Badge"></a>
|
||||
<a href="https://codeclimate.com/github/deltreey/wildstring"><img src="https://codeclimate.com/github/deltreey/wildstring/badges/gpa.svg" alt="Code Climate"></a>
|
||||
<a href="https://www.bithound.io/github/deltreey/wildstring"><img src="https://www.bithound.io/github/deltreey/wildstring/badges/score.svg?" alt="bitHound Score"></a>
|
||||
<a href="https://gitter.im/deltreey/wildstring?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://badges.gitter.im/Join%20Chat.svg" alt="Join the chat at https://gitter.im/deltreey/wildstring"></a></p>
|
||||
<p><a href="http://travis-ci.org/deltreey/wildstring"><img src="https://secure.travis-ci.org/deltreey/wildstring.png" alt="build status"></a><br><a href="https://www.npmjs.com/package/wildstring"><img src="https://badge.fury.io/js/wildstring.svg" alt="npm version"></a><br><a href="https://www.codacy.com/app/suicidolt/wildstring"><img src="https://www.codacy.com/project/badge/8436bfefb89345d0933bb91f59ed3b22" alt="Codacy Badge"></a><br><a href="https://codeclimate.com/github/deltreey/wildstring"><img src="https://codeclimate.com/github/deltreey/wildstring/badges/gpa.svg" alt="Code Climate"></a><br><a href="https://www.bithound.io/github/deltreey/wildstring"><img src="https://www.bithound.io/github/deltreey/wildstring/badges/score.svg?" alt="bitHound Score"></a><br><a href="https://gitter.im/deltreey/wildstring?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://badges.gitter.im/Join%20Chat.svg" alt="Join the chat at https://gitter.im/deltreey/wildstring"></a></p>
|
||||
<h2>Shake it shake it</h2><p>Installing wildstring is a snap. wildstring has no dependencies, so you don't need anything else to run it. If you want to use tools though, here's some tips on how to install it with popular installers.</p>
|
||||
<h4>node.js</h4><pre class="prettyprint source lang-bash"><code>npm install wildstring</code></pre><p>then:</p>
|
||||
<pre class="prettyprint source lang-js"><code>var wildstring = require('wildstring');</code></pre><h4>bower</h4><pre class="prettyprint source lang-bash"><code>bower install wildstring</code></pre><h4>html</h4><pre class="prettyprint source lang-html"><code><script src="wildstring.js"></script></code></pre><h2>Hold me tight</h2><p>Especially with something that does something new, it's important to see how it works. Below are some examples, but here's a brief explanation as well.</p>
|
||||
@@ -134,12 +126,11 @@ grunt</code></pre><p>grunt will run all the tests and jshint, so just make sure
|
||||
<span class="copyright">
|
||||
DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.
|
||||
</span>
|
||||
<br />
|
||||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Tue Aug 25th 2015 using the <a
|
||||
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
|
||||
on Mon Apr 24th 2017 using the <a
|
||||
href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
|
||||
@@ -156,20 +147,6 @@ $( function () {
|
||||
$this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
|
||||
} );
|
||||
|
||||
$( "#toc" ).toc( {
|
||||
anchorName : function ( i, heading, prefix ) {
|
||||
return $( heading ).attr( "id" ) || ( prefix + i );
|
||||
},
|
||||
selectors : "h1,h2,h3,h4",
|
||||
showAndHide : false,
|
||||
scrollTo : "100px"
|
||||
} );
|
||||
|
||||
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
|
||||
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
||||
$( '.dropdown-toggle' ).dropdown();
|
||||
// $( ".tutorial-section pre, .readme-section pre" ).addClass( "sunlight-highlight-javascript" ).addClass( "linenums" );
|
||||
|
||||
$( ".tutorial-section pre, .readme-section pre" ).each( function () {
|
||||
var $this = $( this );
|
||||
|
||||
@@ -181,7 +158,8 @@ $( function () {
|
||||
example.html( exampleText );
|
||||
lang = lang[1];
|
||||
} else {
|
||||
lang = "javascript";
|
||||
var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
|
||||
lang = langClassMatch ? langClassMatch[1] : "javascript";
|
||||
}
|
||||
|
||||
if ( lang ) {
|
||||
@@ -199,6 +177,28 @@ $( function () {
|
||||
showMenu : true,
|
||||
enableDoclinks : true
|
||||
} );
|
||||
|
||||
$( "#toc" ).toc( {
|
||||
anchorName : function ( i, heading, prefix ) {
|
||||
var id = $( heading ).attr( "id" );
|
||||
return id && id.replace(/\~/g, '-inner-').replace(/\./g, '-static-') || ( prefix + i );
|
||||
},
|
||||
selectors : "h1,h2,h3,h4",
|
||||
showAndHide : false,
|
||||
navbarOffset: 10,
|
||||
smoothScrolling: true
|
||||
} );
|
||||
|
||||
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
|
||||
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
||||
$( '.dropdown-toggle' ).dropdown();
|
||||
// $( ".tutorial-section pre, .readme-section pre" ).addClass( "sunlight-highlight-javascript" ).addClass( "linenums" );
|
||||
|
||||
$( "table" ).each( function () {
|
||||
var $this = $( this );
|
||||
$this.addClass('table');
|
||||
} );
|
||||
|
||||
} );
|
||||
</script>
|
||||
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
<div class="col-md-8">
|
||||
|
||||
<div id="main">
|
||||
<h1 class="page-title">Namespaces</h1>
|
||||
|
||||
|
||||
<h1 class="page-title">Namespaces</h1>
|
||||
@@ -67,7 +66,7 @@
|
||||
|
||||
|
||||
<dl class="details">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -161,12 +160,11 @@
|
||||
<span class="copyright">
|
||||
DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.
|
||||
</span>
|
||||
<br />
|
||||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Tue Aug 25th 2015 using the <a
|
||||
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
|
||||
on Mon Apr 24th 2017 using the <a
|
||||
href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
|
||||
@@ -183,20 +181,6 @@ $( function () {
|
||||
$this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
|
||||
} );
|
||||
|
||||
$( "#toc" ).toc( {
|
||||
anchorName : function ( i, heading, prefix ) {
|
||||
return $( heading ).attr( "id" ) || ( prefix + i );
|
||||
},
|
||||
selectors : "h1,h2,h3,h4",
|
||||
showAndHide : false,
|
||||
scrollTo : "100px"
|
||||
} );
|
||||
|
||||
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
|
||||
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
||||
$( '.dropdown-toggle' ).dropdown();
|
||||
// $( ".tutorial-section pre, .readme-section pre" ).addClass( "sunlight-highlight-javascript" ).addClass( "linenums" );
|
||||
|
||||
$( ".tutorial-section pre, .readme-section pre" ).each( function () {
|
||||
var $this = $( this );
|
||||
|
||||
@@ -208,7 +192,8 @@ $( function () {
|
||||
example.html( exampleText );
|
||||
lang = lang[1];
|
||||
} else {
|
||||
lang = "javascript";
|
||||
var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
|
||||
lang = langClassMatch ? langClassMatch[1] : "javascript";
|
||||
}
|
||||
|
||||
if ( lang ) {
|
||||
@@ -226,6 +211,28 @@ $( function () {
|
||||
showMenu : true,
|
||||
enableDoclinks : true
|
||||
} );
|
||||
|
||||
$( "#toc" ).toc( {
|
||||
anchorName : function ( i, heading, prefix ) {
|
||||
var id = $( heading ).attr( "id" );
|
||||
return id && id.replace(/\~/g, '-inner-').replace(/\./g, '-static-') || ( prefix + i );
|
||||
},
|
||||
selectors : "h1,h2,h3,h4",
|
||||
showAndHide : false,
|
||||
navbarOffset: 10,
|
||||
smoothScrolling: true
|
||||
} );
|
||||
|
||||
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
|
||||
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
||||
$( '.dropdown-toggle' ).dropdown();
|
||||
// $( ".tutorial-section pre, .readme-section pre" ).addClass( "sunlight-highlight-javascript" ).addClass( "linenums" );
|
||||
|
||||
$( "table" ).each( function () {
|
||||
var $this = $( this );
|
||||
$this.addClass('table');
|
||||
} );
|
||||
|
||||
} );
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
!function(a,b){function c(a){var b=a.length,c=fb.type(a);return fb.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||"function"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){var b=ob[a]={};return fb.each(a.match(hb)||[],function(a,c){b[c]=!0}),b}function e(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=fb.expando+Math.random()}function f(a,c,d){var e;if(d===b&&1===a.nodeType)if(e="data-"+c.replace(sb,"-$1").toLowerCase(),d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:rb.test(d)?JSON.parse(d):d}catch(f){}pb.set(a,c,d)}else d=b;return d}function g(){return!0}function h(){return!1}function i(){try{return T.activeElement}catch(a){}}function j(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function k(a,b,c){if(fb.isFunction(b))return fb.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return fb.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(Cb.test(b))return fb.filter(b,a,c);b=fb.filter(b,a)}return fb.grep(a,function(a){return bb.call(b,a)>=0!==c})}function l(a,b){return fb.nodeName(a,"table")&&fb.nodeName(1===b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function m(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function n(a){var b=Nb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function o(a,b){for(var c=a.length,d=0;c>d;d++)qb.set(a[d],"globalEval",!b||qb.get(b[d],"globalEval"))}function p(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(qb.hasData(a)&&(f=qb.access(a),g=qb.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++)fb.event.add(b,e,j[e][c])}pb.hasData(a)&&(h=pb.access(a),i=fb.extend({},h),pb.set(b,i))}}function q(a,c){var d=a.getElementsByTagName?a.getElementsByTagName(c||"*"):a.querySelectorAll?a.querySelectorAll(c||"*"):[];return c===b||c&&fb.nodeName(a,c)?fb.merge([a],d):d}function r(a,b){var c=b.nodeName.toLowerCase();"input"===c&&Kb.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function s(a,b){if(b in a)return b;for(var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=_b.length;e--;)if(b=_b[e]+c,b in a)return b;return d}function t(a,b){return a=b||a,"none"===fb.css(a,"display")||!fb.contains(a.ownerDocument,a)}function u(b){return a.getComputedStyle(b,null)}function v(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=qb.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&t(d)&&(f[g]=qb.access(d,"olddisplay",z(d.nodeName)))):f[g]||(e=t(d),(c&&"none"!==c||!e)&&qb.set(d,"olddisplay",e?c:fb.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}function w(a,b,c){var d=Ub.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function x(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+=fb.css(a,c+$b[f],!0,e)),d?("content"===c&&(g-=fb.css(a,"padding"+$b[f],!0,e)),"margin"!==c&&(g-=fb.css(a,"border"+$b[f]+"Width",!0,e))):(g+=fb.css(a,"padding"+$b[f],!0,e),"padding"!==c&&(g+=fb.css(a,"border"+$b[f]+"Width",!0,e)));return g}function y(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=u(a),g=fb.support.boxSizing&&"border-box"===fb.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Qb(a,b,f),(0>e||null==e)&&(e=a.style[b]),Vb.test(e))return e;d=g&&(fb.support.boxSizingReliable||e===a.style[b]),e=parseFloat(e)||0}return e+x(a,b,c||(g?"border":"content"),d,f)+"px"}function z(a){var b=T,c=Xb[a];return c||(c=A(a,b),"none"!==c&&c||(Rb=(Rb||fb("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(b.documentElement),b=(Rb[0].contentWindow||Rb[0].contentDocument).document,b.write("<!doctype html><html><body>"),b.close(),c=A(a,b),Rb.detach()),Xb[a]=c),c}function A(a,b){var c=fb(b.createElement(a)).appendTo(b.body),d=fb.css(c[0],"display");return c.remove(),d}function B(a,b,c,d){var e;if(fb.isArray(b))fb.each(b,function(b,e){c||bc.test(a)?d(a,e):B(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==fb.type(b))d(a,b);else for(e in b)B(a+"["+e+"]",b[e],c,d)}function C(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(hb)||[];if(fb.isFunction(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function D(a,c,d,e){function f(i){var j;return g[i]=!0,fb.each(a[i]||[],function(a,i){var k=i(c,d,e);return"string"!=typeof k||h||g[k]?h?!(j=k):b:(c.dataTypes.unshift(k),f(k),!1)}),j}var g={},h=a===sc;return f(c.dataTypes[0])||!g["*"]&&f("*")}function E(a,c){var d,e,f=fb.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((f[d]?a:e||(e={}))[d]=c[d]);return e&&fb.extend(!0,a,e),a}function F(a,c,d){for(var e,f,g,h,i=a.contents,j=a.dataTypes;"*"===jLine truncated
|
||||
l.prototype=z.filters=z.pseudos,z.setFilters=new l,C=c.compile=function(a,b){var c,d=[],e=[],f=T[a+" "];if(!f){for(b||(b=m(a)),c=b.length;c--;)f=s(b[c]),f[N]?d.push(f):e.push(f);f=T(a,t(e,d))}return f},x.sortStable=N.split("").sort(V).join("")===N,x.detectDuplicates=U,F(),x.sortDetached=f(function(a){return 1&a.compareDocumentPosition(G.createElement("div"))}),f(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||g("type|href|height|width",function(a,c,d){return d?b:a.getAttribute(c,"type"===c.toLowerCase()?1:2)}),x.attributes&&f(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||g("value",function(a,c,d){return d||"input"!==a.nodeName.toLowerCase()?b:a.defaultValue}),f(function(a){return null==a.getAttribute("disabled")})||g(db,function(a,c,d){var e;return d?b:(e=a.getAttributeNode(c))&&e.specified?e.value:a[c]===!0?c.toLowerCase():null}),fb.find=c,fb.expr=c.selectors,fb.expr[":"]=fb.expr.pseudos,fb.unique=c.uniqueSort,fb.text=c.getText,fb.isXMLDoc=c.isXML,fb.contains=c.contains}(a);var ob={};fb.Callbacks=function(a){a="string"==typeof a?ob[a]||d(a):fb.extend({},a);var c,e,f,g,h,i,j=[],k=!a.once&&[],l=function(b){for(c=a.memory&&b,e=!0,i=g||0,g=0,h=j.length,f=!0;j&&h>i;i++)if(j[i].apply(b[0],b[1])===!1&&a.stopOnFalse){c=!1;break}f=!1,j&&(k?k.length&&l(k.shift()):c?j=[]:m.disable())},m={add:function(){if(j){var b=j.length;!function d(b){fb.each(b,function(b,c){var e=fb.type(c);"function"===e?a.unique&&m.has(c)||j.push(c):c&&c.length&&"string"!==e&&d(c)})}(arguments),f?h=j.length:c&&(g=b,l(c))}return this},remove:function(){return j&&fb.each(arguments,function(a,b){for(var c;(c=fb.inArray(b,j,c))>-1;)j.splice(c,1),f&&(h>=c&&h--,i>=c&&i--)}),this},has:function(a){return a?fb.inArray(a,j)>-1:!(!j||!j.length)},empty:function(){return j=[],h=0,this},disable:function(){return j=k=c=b,this},disabled:function(){return!j},lock:function(){return k=b,c||m.disable(),this},locked:function(){return!k},fireWith:function(a,b){return!j||e&&!k||(b=b||[],b=[a,b.slice?b.slice():b],f?k.push(b):l(b)),this},fire:function(){return m.fireWith(this,arguments),this},fired:function(){return!!e}};return m},fb.extend({Deferred:function(a){var b=[["resolve","done",fb.Callbacks("once memory"),"resolved"],["reject","fail",fb.Callbacks("once memory"),"rejected"],["notify","progress",fb.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return fb.Deferred(function(c){fb.each(b,function(b,f){var g=f[0],h=fb.isFunction(a[b])&&a[b];e[f[1]](function(){var a=h&&h.apply(this,arguments);a&&fb.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[g+"With"](this===d?c.promise():this,h?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?fb.extend(a,d):d}},e={};return d.pipe=d.then,fb.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,c,d,e=0,f=ab.call(arguments),g=f.length,h=1!==g||a&&fb.isFunction(a.promise)?g:0,i=1===h?a:fb.Deferred(),j=function(a,c,d){return function(e){c[a]=this,d[a]=arguments.length>1?ab.call(arguments):e,d===b?i.notifyWith(c,d):--h||i.resolveWith(c,d)}};if(g>1)for(b=Array(g),c=Array(g),d=Array(g);g>e;e++)f[e]&&fb.isFunction(f[e].promise)?f[e].promise().done(j(e,d,f)).fail(i.reject).progress(j(e,c,b)):--h;return h||i.resolveWith(d,f),i.promise()}}),fb.support=function(b){var c=T.createElement("input"),d=T.createDocumentFragment(),e=T.createElement("div"),f=T.createElement("select"),g=f.appendChild(T.createElement("option"));return c.type?(c.type="checkbox",b.checkOn=""!==c.value,b.optSelected=g.selected,b.reliableMarginRight=!0,b.boxSizingReliable=!0,b.pixelPosition=!1,c.checked=!0,b.noCloneChecked=c.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled,c=T.createElement("input"),c.value="t",c.type="radio",b.radioValue="t"===c.value,c.setAttribute("checked","t"),c.setAttribute("name","t"),d.appendChild(c),b.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked,b.focusinBubbles="onfocusin"in a,e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===e.style.backgroundClip,fb(function(){var c,d,f="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",g=T.getElementsByTagName("body")[0];g&&(c=T.createElement("div"),c.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",g.appendChild(c).appendChild(e),e.innerHTML="",e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;posiLine truncated
|
||||
},a,c,arguments.length>1)},show:function(){return v(this,!0)},hide:function(){return v(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){t(this)?fb(this).show():fb(this).hide()})}}),fb.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Qb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,c,d,e){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var f,g,h,i=fb.camelCase(c),j=a.style;return c=fb.cssProps[i]||(fb.cssProps[i]=s(j,i)),h=fb.cssHooks[c]||fb.cssHooks[i],d===b?h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c]:(g=typeof d,"string"===g&&(f=Wb.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(fb.css(a,c)),g="number"),null==d||"number"===g&&isNaN(d)||("number"!==g||fb.cssNumber[i]||(d+="px"),fb.support.clearCloneStyle||""!==d||0!==c.indexOf("background")||(j[c]="inherit"),h&&"set"in h&&(d=h.set(a,d,e))===b||(j[c]=d)),b)}},css:function(a,c,d,e){var f,g,h,i=fb.camelCase(c);return c=fb.cssProps[i]||(fb.cssProps[i]=s(a.style,i)),h=fb.cssHooks[c]||fb.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,d)),f===b&&(f=Qb(a,c,e)),"normal"===f&&c in Zb&&(f=Zb[c]),""===d||d?(g=parseFloat(f),d===!0||fb.isNumeric(g)?g||0:f):f}}),Qb=function(a,c,d){var e,f,g,h=d||u(a),i=h?h.getPropertyValue(c)||h[c]:b,j=a.style;return h&&(""!==i||fb.contains(a.ownerDocument,a)||(i=fb.style(a,c)),Vb.test(i)&&Tb.test(c)&&(e=j.width,f=j.minWidth,g=j.maxWidth,j.minWidth=j.maxWidth=j.width=i,i=h.width,j.width=e,j.minWidth=f,j.maxWidth=g)),i},fb.each(["height","width"],function(a,c){fb.cssHooks[c]={get:function(a,d,e){return d?0===a.offsetWidth&&Sb.test(fb.css(a,"display"))?fb.swap(a,Yb,function(){return y(a,c,e)}):y(a,c,e):b},set:function(a,b,d){var e=d&&u(a);return w(a,b,d?x(a,c,d,fb.support.boxSizing&&"border-box"===fb.css(a,"boxSizing",!1,e),e):0)}}}),fb(function(){fb.support.reliableMarginRight||(fb.cssHooks.marginRight={get:function(a,c){return c?fb.swap(a,{display:"inline-block"},Qb,[a,"marginRight"]):b}}),!fb.support.pixelPosition&&fb.fn.position&&fb.each(["top","left"],function(a,c){fb.cssHooks[c]={get:function(a,d){return d?(d=Qb(a,c),Vb.test(d)?fb(a).position()[c]+"px":d):b}}})}),fb.expr&&fb.expr.filters&&(fb.expr.filters.hidden=function(a){return 0>=a.offsetWidth&&0>=a.offsetHeight},fb.expr.filters.visible=function(a){return!fb.expr.filters.hidden(a)}),fb.each({margin:"",padding:"",border:"Width"},function(a,b){fb.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+$b[d]+b]=f[d]||f[d-2]||f[0];return e}},Tb.test(a)||(fb.cssHooks[a+b].set=w)});var ac=/%20/g,bc=/\[\]$/,cc=/\r?\n/g,dc=/^(?:submit|button|image|reset|file)$/i,ec=/^(?:input|select|textarea|keygen)/i;fb.fn.extend({serialize:function(){return fb.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=fb.prop(this,"elements");return a?fb.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!fb(this).is(":disabled")&&ec.test(this.nodeName)&&!dc.test(a)&&(this.checked||!Kb.test(a))}).map(function(a,b){var c=fb(this).val();return null==c?null:fb.isArray(c)?fb.map(c,function(a){return{name:b.name,value:a.replace(cc,"\r\n")}}):{name:b.name,value:c.replace(cc,"\r\n")}}).get()}}),fb.param=function(a,c){var d,e=[],f=function(a,b){b=fb.isFunction(b)?b():null==b?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(c===b&&(c=fb.ajaxSettings&&fb.ajaxSettings.traditional),fb.isArray(a)||a.jquery&&!fb.isPlainObject(a))fb.each(a,function(){f(this.name,this.value)});else for(d in a)B(d,a[d],c,f);return e.join("&").replace(ac,"+")},fb.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){fb.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),fb.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 fc,gc,hc=fb.now(),ic=/\?/,jc=/#.*$/,kc=/([?&])_=[^&]*/,lc=/^(.*?):[ \t]*([^\r\n]*)$/gm,mc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,nc=/^(?:GET|HEAD)$/,oc=/^\/\//,pc=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,qc=fb.fn.load,rc={},sc={},tc="*/".concat("*");try{gc=S.href}catch(uc){gc=T.createElement("a"),gc.href="",gc=gc.href}fc=pc.exec(gc.toLowerCase())||[],fb.fn.load=function(a,c,d){if("string"!=typeof a&&qc)return qc.apply(this,arguments);var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i),a=a.slice(0,i)),fb.isFunction(c)?(d=c,c=b):c&&"object"==typeof c&&(f="POST"),h.length>0&&fb.ajax({url:a,type:fLine truncated
|
||||
E[a].push(b)},util:{last:g,regexEscape:k,eol:w,clone:j,escapeSequences:["\\n","\\t","\\r","\\\\","\\v","\\f"],contains:h,matchWord:n,createHashMap:p,createBetweenRule:m,createProceduralRule:l,getNextNonWsToken:function(a,b){return o(a,b,1,function(a){return"default"===a.name})},getPreviousNonWsToken:function(a,b){return o(a,b,-1,function(a){return"default"===a.name})},getNextWhile:function(a,b,c){return o(a,b,1,c)},getPreviousWhile:function(a,b,c){return o(a,b,-1,c)},whitespace:{token:"default",optional:!0},getComputedStyle:u}},a.Sunlight.registerLanguage(z,{punctuation:/(?!x)x/,numberParser:x})}(this,document),function(a,b){function c(a){for(var b,c=a.count();b=a.token(--c);){if("operator"===b.name&&(">"===b.value||"/>"===b.value||"</"===b.value))return!1;if("tagName"===b.name||"xmlOpenTag"===b.name)return!0}return!1}if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("xml",{caseInsensitive:!0,scopes:{comment:[["<!--","-->"],["<%--","--%>"]],cdata:[["<![CDATA[","]]>"]],doctype:[["<!DOCTYPE",">"]]},punctuation:/(?!x)x/,numberParser:function(){},customTokens:{xmlOpenTag:{values:["<?xml"],boundary:""},xmlCloseTag:{values:["?>"],boundary:""},aspOpenTag:{values:["<%@","<%$","<%#","<%=","<%"],boundary:""},aspCloseTag:{values:["%>"],boundary:""}},customParseRules:[function(b){var c,d,e=b.reader.current(),f=e,g=b.reader.getLine(),h=b.reader.getColumn();if(!/[A-Za-z_]/.test(e))return null;if(c=b.token(b.count()-1),!c||"operator"!==c.name||!a.util.contains(["<","</"],c.value))return null;for(;(d=b.reader.peek())&&/[.\w-]/.test(d);)f+=b.reader.read();return b.createToken("tagName",f,g,h)},function(a){var b,d,e=a.reader.current(),f=a.reader.getLine(),g=a.reader.getColumn();if('"'!==e&&"'"!==e)return null;if(!c(a))return null;for(b=e;(d=a.reader.peek())&&(b+=a.reader.read(),d!==e););return a.createToken("string",b,f,g)},function(a){var b,d,e=a.reader.current(),f=1,g=a.reader.getLine(),h=a.reader.getColumn();if(!/[A-Za-z_]/.test(e))return null;if(!c(a))return null;for(b=a.reader.peek();b.length===f;){if(/<$/.test(b))return null;if(/>$/.test(b))return d=d||e+b.substring(0,b.length-1),a.reader.read(d.length-1),a.createToken("attribute",d,g,h);!d&&/[=\s:]$/.test(b)&&(d=e+b.substring(0,b.length-1)),b=a.reader.peek(++f)}return null},function(a){var b,c=a.reader.current(),d=1,e=a.reader.getLine(),f=a.reader.getColumn();if("&"!==c)return null;for(b=a.reader.peek(d);b.length===d;){if(";"===b.charAt(b.length-1))return a.createToken("entity",c+a.reader.read(d),e,f);if(!/[A-Za-z0-9]$/.test(b))break;b=a.reader.peek(++d)}return null},function(a){var b,c="<%--",d=a.reader.getLine(),e=a.reader.getColumn();if("<"!==a.reader.current()||"%--"!==a.reader.peek(3))return null;for(a.reader.read(3);b=a.reader.peek();){if("--%>"===a.reader.peek(4)){c+=a.reader.read(4);break}c+=a.reader.read()}return a.createToken("comment",c,d,e)}],embeddedLanguages:{css:{switchTo:function(a){var b,c=a.token(a.count()-1);if(!c||a.reader.current()+a.reader.peek(6)==="</style")return!1;if("operator"!==c.name||">"!==c.value)return!1;for(b=a.count()-1;c=a.token(--b);)if("tagName"===c.name){if("style"===c.value&&(c=a.token(--b),c&&"operator"===c.name&&"<"===c.value))return!0;break}return!1},switchBack:function(a){return"</style"===a.reader.peek(7)}},javascript:{switchTo:function(a){var b,c=a.token(a.count()-1);if(!c||a.reader.current()+a.reader.peek(7)==="</script")return!1;if("operator"!==c.name||">"!==c.value)return!1;for(b=a.count()-1;c=a.token(--b);)if("tagName"===c.name){if("script"===c.value&&(c=a.token(--b),c&&"operator"===c.name&&"<"===c.value))return!0;break}return!1},switchBack:function(a){return"</script"===a.reader.peek(8)}},php:{switchTo:function(a){var b=a.reader.peek(4);return"<"===a.reader.current()&&("?php"===b||/^\?(?!xml)/.test(b))},switchBack:function(a){var b=a.token(a.count()-1);return b&&"closeTag"===b.name}},csharp:{switchTo:function(a){var b=a.token(a.count()-1);return b&&"aspOpenTag"===b.name},switchBack:function(a){return"%>"===a.reader.peek(2)}},scala:{switchTo:function(a){return a.options.enableScalaXmlInterpolation&&"{"===a.reader.current()?!0:!1},switchBack:function(a){var b=a.token(a.count()-1);if("punctuation"===b.name)if("{"===b.value)a.items.scalaBracketNestingLevel++;else if("}"===b.value&&(a.items.scalaBracketNestingLevel--,0===a.items.scalaBracketNestingLevel))return!0;return!1}}},contextItems:{scalaBracketNestingLevel:0},operators:["=","/>","</","<",">",":"]})}(this.Sunlight),function(a,b){a.fn.sunlight=function(a){var c=new b.Sunlight.Highlighter(a);return this.each(function(){c.highlightNode(this)}),this}}(jQuery,this),function(a,b){if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("6502asm",{keywords:["BCC","BCS","BEQ","BMI","BNE","BPL","BVC","BVS","CMP","CPX","CPY","CLC","CLD","CLI","CLV","SEC","SED","SEI","DEX","DEY","INX","INY","TAX","TAY","TXA","TYA","BRK","NOP","RTI","RTS","ASL","LSR","ROL","ROR","ADLine truncated
|
||||
for(d=a.reader.peek();d.length===h;){if(letter=d.charAt(d.length-1),/[^\w-]$/.test(d)){if(g=!1,"{"===letter)break;if(";"===letter)return null}g&&(f+=letter),d=a.reader.peek(++h)}return f}if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("css",{caseInsensitive:!0,keywords:["background-color","background-image","background-repeat","background-attachment","background-position","background-clip","background-origin","background-size","background","border-collapse","border-top-style","border-right-style","border-left-style","border-bottom-style","border-style","border-top-width","border-right-width","border-left-width","border-bottom-width","border-width","border-top-color","border-right-color","border-left-color","border-bottom-color","border-color","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-image-repeat","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image","border-top","border-bottom","border-right","border-left","border-spacing","border","box-decoration-break","box-shadow","voice-volume","voice-balance","pause-before","pause-after","pause","rest-before","rest-after","rest","cue-before","cue-after","cue","mark-before","mark-after","mark","voice-family","voice-rate","voice-pitch","voice-pitch-range","voice-stress","voice-duration","phonemes","speak-header","speak-numeral","speak-punctuation","pitch-range","play-during","richness","speak","speech-rate","appearance","icon","box-sizing","outline-width","outline-style","outline-color","outline-offset","outline","resize","cursor","nav-index","nav-up","nav-right","nav-down","nav-left","display","position","float","clear","visibility","bottom","top","left","right","overflow","overflow-x","overflow-y","overflow-style","marquee-style","marquee-direction","marquee-play-count","marquee-speed","padding-top","padding-right","padding-bottom","padding-left","padding","margin-top","margin-right","margin-bottom","margin-left","margin","width","height","min-width","max-width","min-height","max-height","rotation-point","rotation","white-space-collapsing","white-space","line-break","word-break","hyphens","hyphenate-character","hyphenate-limit-before","hyphenate-limit-after","hyphenate-limit-lines","hyphenate-limit-last","hyphenate-resource","text-wrap","word-wrap","text-align-first","text-align-last","text-align","text-justify","word-spacing","letter-spacing","text-trim","text-autospace","text-indent","hanging-punctuation","text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-skip","text-decoration","text-underline-position","text-emphasis-position","text-emphasis-style","text-emphasis-color","text-emphasis","text-shadow","text-outline","text-transform","vertical-align","direction","unicode-bidi","writing-mode","text-orientation","text-combine","color","opacity","font-family","font-weight","font-stretch","font-style","font-size-adjust","font-size","font-synthesis","src","unicode-range","font-feature-settings","font-kerning","vertical-position","font-variant-ligatures","font-variant-caps","font-variant-numeric","font-variant-alternates","font-variant-east-asian","font-variant","font-feature-settings","font-language-override","font","line-height","text-height","transform-origin","transform-style","perspective-origin","perspective","backface-visibility","transform","transition-property","transition-duration","transition-timing-function","transition-delay","list-style-type","list-style-image","list-style-position","list-style","column-width","column-count","colunns","column-gap","column-rule-color","column-rule-style","column-rule-width","column-rule","break-before","break-after","break-inside","column-span","column-fill","caption-side","table-layout","empty-cells","fit-position","fit","image-orientation","orphans","page-break-after","page-break-before","page-break-inside","page","size","widows","content","z-index","counter-increment","counter-reset","azimuth","elevation","quotes","filter","zoom","-moz-appearance","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-background-size","-moz-binding","-moz-border-bottom-colors","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-border-end","-moz-border-end-color","-moz-border-end-style","-moz-border-end-width","-moz-border-image","-moz-border-start","-moz-border-start-color","-moz-border-start-style","-moz-border-start-width","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-width","-moz-column-rule","-moz-column-rule-width","-moz-column-rule-style","-moz-column-rule-color","-moz-float-edge","-moz-font-feature-settings","-moz-font-language-override","-moz-force-broken-image-icon","-moz-image-regLine truncated
|
||||
}(this.Sunlight),function(a,b){if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("javascript",{keywords:["break","case","catch","continue","default","delete","do","else","finally","for","function","if","in","instanceof","new","return","switch","this","throw","try","typeof","var","void","while","with","true","false","null"],customTokens:{reservedWord:{values:["abstract","boolean","byte","char","class","const","debugger","double","enum","export","extends","final","float","goto","implements","import","int","interface","long","native","package","private","protected","public","short","static","super","synchronized","throws","transient","volatile"],boundary:"\\b"},globalVariable:{values:["NaN","Infinity","undefined"],boundary:"\\b"},globalFunction:{values:["encodeURI","encodeURIComponent","decodeURI","decodeURIComponent","parseInt","parseFloat","isNaN","isFinite","eval"],boundary:"\\b"},globalObject:{values:["Math","JSON","XMLHttpRequest","XDomainRequest","ActiveXObject","Boolean","Date","Array","Image","Function","Object","Number","RegExp","String"],boundary:"\\b"}},scopes:{string:[['"','"',a.util.escapeSequences.concat(['\\"'])],["'","'",a.util.escapeSequences.concat(["\\'","\\\\"])]],comment:[["//","\n",null,!0],["/*","*/"]]},customParseRules:[function(c){var d,e,f,g=c.reader.peek(),h="/",i=c.reader.getLine(),j=c.reader.getColumn(),k=!1;if("/"!==c.reader.current()||"/"===g||"*"===g)return null;if(d=function(){var d=c.token(c.count()-1),e=null;return""!==c.defaultData.text&&(e=c.createToken("default",c.defaultData.text)),e||(e=d),e===b?!0:"default"===e.name&&e.value.indexOf("\n")>-1?!0:a.util.contains(["keyword","ident","number"],d.name)?!1:"punctuation"!==d.name||a.util.contains(["(","{","[",",",";"],d.value)?!0:!1}(),!d)return null;for(;c.reader.peek()!==c.reader.EOF;)if(e=c.reader.peek(2),"\\/"!==e&&"\\\\"!==e)if("\\["!==e&&"\\]"!==e){if("["===f?k=!0:"]"===f&&(k=!1),h+=f=c.reader.read(),"/"===f&&!k)break}else h+=c.reader.read(2);else h+=c.reader.read(2);for(;c.reader.peek()!==c.reader.EOF&&/[A-Za-z]/.test(c.reader.peek());)h+=c.reader.read();return c.createToken("regexLiteral",h,i,j)}],identFirstLetter:/[$A-Za-z_]/,identAfterFirstLetter:/[\w\$]/,namedIdentRules:{follows:[[{token:"keyword",values:["function"]},a.util.whitespace]]},operators:["++","+=","+","--","-=","-","*=","*","/=","/","%=","%","&&","||","|=","|","&=","&","^=","^",">>>=",">>>",">>=",">>","<<=","<<","<=","<",">=",">","===","==","!==","!=","!","~","?",":",".","="]})}(this.Sunlight),function(a,b){function c(b,c){var e=a.util.createHashMap(b,d,!1);return function(b){var d=a.util.getPreviousNonWsToken(b.getAllTokens(),b.count());return d?"punctuation"!==d.name||"("!==d.value&&("operator"!==d.name||"#'"!==d.value)?null:a.util.matchWord(b,e,c):null}}if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";var d="[\\s\\(\\)]";a.registerLanguage("lisp",{scopes:{string:[['"','"']],comment:[[";","\n",null,!0]],keywordArgument:[[":",{regex:/[\s\)\(]/,length:1},null,!0]]},customTokens:{keyword:{values:["always","appending","append","as","collecting","collect","counting","count","doing","do","finally","for","if","initially","maximize","maximizing","minimize","minimizing","named","nconcing","nconc","never","repeat","return","summing","sum","thereis","unless","until","when","while","with","into","in"],boundary:"[^\\w-]"},globalVariable:{values:["*applyhook*","*break-on-signals*","*break-on-warnings*","*compile-file-pathname*","*compile-file-truename*","*compile-print*","*compile-verbose*","*debug-io*","*debugger-hook*","*gensym-counter*","*terminal-io*","*default-pathname-defaults*","*error-output*","*evalhook*","*features*","*load-pathname*","*load-print*","*load-truename*","*load-verbose*","*macroexpand-hook*","*modules*","*package*","*print-array*","*print-base*","*print-case*","*print-circle*","*print-escape*","*print-gensym*","*print-length*","*print-level*","*print-lines*","*print-miser-width*","*print-pprint-dispatch*","*print-pretty*","*print-radix*","*print-readably*","*print-right-margin*","*query-io*","*random-state*","*read-base*","*read-default-float-format*","*read-eval*","*read-suppress*","*readtable*","*standard-input*","*standard-output*","*suppress-series-warnings*","*trace-output*","***","**","*","+++","++","+","-","///","//","/"],boundary:d},constant:{values:["array-dimension-limit","array-rank-limit","array-total-size-limit","call-arguments-limit","char-bits-limit","char-code-limit","char-control-bit","char-font-limit","char-hyper-bit","char-meta-bit","char-super-bit","double-float-epsilon","double-float-negative-epsilon","internal-time-units-per-second","lambda-list-keywords","lambda-parameters-limit","least-negative-double-float","least-negative-long-float","least-negative-normalized-double-float","least-negative-normalized-long-float","least-negative-normalized-short-float","least-negative-normalized-single-float","least-negative-short-flLine truncated
|
||||
return function(c){var d,e=a.util.matchWord(c,b,"keyword",!0);return e?(d=a.util.getPreviousWhile(c.getAllTokens(),c.count(),function(a){return"default"===a.name||"comment"===a.name}),!d||"punctuation"===d.name&&a.util.contains(["{","}",";"],d.value)?(c.reader.read(e.value.length-1),e):null):null}}()],identFirstLetter:/[A-Za-z_-]/,identAfterFirstLetter:/[\w-]/,operators:["~*","~","^~","=","::",":"]})}(this.Sunlight),function(a,b){if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("objective-c",{keywords:["and","default","noexcept","template","and_eq","delete","not","this","alignof","double","not_eq","thread_local","asm","dynamic_cast","nullptr","throw","auto","else","operator","true","bitand","enum","or","try","bitor","explicittodo","or_eq","typedef","bool","export","private","typeid","break","externtodo","protected","typename","case","false","public","union","catch","float","register","using","char","for","reinterpret_cast","unsigned","char16_t","friend","return","void","char32_t","goto","short","wchar_t","if","signed","virtual","compl","inline","sizeof","volatile","const","int","static","while","constexpr","long","static_assert","xor","const_cast","mutable","static_cast","xor_eq","continue","namespace","struct","decltype","new","switch","id","self","nil","super","in","out","inout","bycopy","byval","oneway","SEL","BOOL","YES","NO","@interface","@implementation","@end","@class","@private","@public","@package","@protected","@protocol","@optional","@required","@property","@synthesize","@dynamic","@selector","@try","@catch","@finally","@throw","@synchronized","@encode","__attribute__","__weak","__strong"],customTokens:{constant:{values:["EXIT_SUCCESS","EXIT_FAILURE","SIG_DFL","SIG_IGN","SIG_ERR","SIGABRT","SIGFPE","SIGILL","SIGINT","SIGSEGV","SIGTERM"],boundary:"\\b"}},scopes:{string:[['"','"',a.util.escapeSequences.concat(['\\"'])],['@"','"',["\\\\",'\\"']]],"char":[["'","'",["\\'","\\\\"]]],comment:[["//","\n",null,!0],["/*","*/"]],preprocessorDirective:[["#","\n",null,!0]]},customParseRules:[function(b){var c,d,e,f,g,h,i,j,k,l;if(!b.language.identFirstLetter.test(b.reader.current()))return null;for(d=0;(c=b.reader.peek(++d))&&c.length===d&&b.language.identAfterFirstLetter.test(a.util.last(c)););for(e=b.reader.current()+c.substring(0,c.length-1),d-=1,f=!1;(c=b.reader.peek(++d))&&c.length===d;)if(!/\s$/.test(c)){if(g=/([\]:])$/.exec(c),null===g)return null;f=":"===g[1]&&!/::$/.test(b.reader.peek(d+1));break}for(h=0,i=0,k=b.count(),l=1;j=b.token(--k);){if(l>1&&!f)return null;if("punctuation"===j.name)switch(j.value){case";":case"{":case"}":return null;case"(":h--;break;case")":h++;break;case"[":if(0===i&&0===h)return l>=1?(j=b.createToken(f&&l>1?"messageArgumentName":"messageDestination",e,b.reader.getLine(),b.reader.getColumn()),b.reader.read(e.length-1),j):null;i--;break;case"]":i++}0===i&&0===h&&"default"===j.name&&l++}return null},function(){var b=a.util.createHashMap(["getter","setter","readonly","readwrite","assign","retain","copy","nonatomic"],"\\b");return function(c){var d,e,f=a.util.matchWord(c,b,"keyword",!0);if(!f)return null;for(e=c.count();d=c.token(--e);)if("punctuation"===d.name){if("("===d.value)return d=a.util.getPreviousNonWsToken(c.getAllTokens(),e),d&&"keyword"===d.name&&"@property"===d.value?(f.line=c.reader.getLine(),f.column=c.reader.getColumn(),c.reader.read(f.value.length-1),f):null;if(";"===d.value)return null}return null}}()],identFirstLetter:/[A-Za-z_]/,identAfterFirstLetter:/\w/,namedIdentRules:{custom:[function(b){var c=/^(NS|CG).+$/,d=a.util.getNextNonWsToken(b.tokens,b.index);return c.test(b.tokens[b.index].value)&&(!d||"punctuation"!==d.name||"("!==d.value)},function(b){var c=a.util.getNextNonWsToken(b.tokens,b.index);return c&&"messageDestination"===c.name&&("class"===c.value||"alloc"===c.value)},function(b){var c,d,e;if(!a.util.createProceduralRule(b.index+1,1,[{token:"default"},{token:"ident"}])(b.tokens))return!1;if(a.util.createProceduralRule(b.index+1,1,[{token:"default"},{token:"ident"},a.util.whitespace,{token:"operator",value:":"}])(b.tokens))return!1;for(d=b.index,e=0;c=b.tokens[--d];)if("punctuation"===c.name)switch(c.value){case"[":return!1;case"{":case",":return!0;case"(":if(0===e)return!0;e++;break;case")":e--}return!0},function(){var b=[[a.util.whitespace,{token:"operator",values:["*","**"]},a.util.whitespace,{token:"ident"},a.util.whitespace,{token:"punctuation",values:[";"]}],[a.util.whitespace,{token:"operator",values:["&","*","**"]},a.util.whitespace,{token:"ident"}]];return function(c){var d,e,f,g,h;if(d=function(d){var e;for(e=0;e<b.length;e++)if(a.util.createProceduralRule(c.index+1,1,b[e],!1)(d))return!0;return!1}(c.tokens),!d)return!1;for(e=!1,f=!1,h=c.index;g=c.tokens[--h];){if("punctuation"===g.name&&(";"===g.value||"{"===g.value))return e||!f;"operator"===g.name&&"="===g.value?f=!0:"keyword"===g.name&&"@property"===g.value&&(e=!0)}return!1}}(),function(){var b=[[a.util.whitespace,{token:"puLine truncated
|
||||
if("<"!==a.reader.current()||"<<"!==a.reader.peek(2))return null;for(a.reader.read(2),b=a.reader.peek();b!==a.reader.EOF&&"\n"!==b;)c+=a.reader.read(),"'"!==b?f+=a.reader.current():g=!0,b=a.reader.peek();if(b!==a.reader.EOF){for(c+=a.reader.read();a.reader.peek()!==a.reader.EOF&&a.reader.peek(f.length+2)!=="\n"+f+";";)c+=a.reader.read();a.reader.peek()!==a.reader.EOF&&(c+=a.reader.read(f.length+1))}return a.createToken(g?"nowdoc":"heredoc",c,d,e)}],identFirstLetter:/[A-Za-z_]/,identAfterFirstLetter:/\w/,namedIdentRules:{custom:[function(b){var c,d=a.util.getPreviousNonWsToken(b.tokens,b.index);return d&&"keyword"===d.name&&"new"===d.value?(c=a.util.getNextNonWsToken(b.tokens,b.index),c&&"operator"===c.name&&"\\"===c.value?!1:!0):!1},function(b){var c,d,e=a.util.getNextNonWsToken(b.tokens,b.index);if(!e||"punctuation"!==e.name||";"!==e.value&&","!==e.value)return!1;for(d=b.index;c=b.tokens[--d];)if(!("ident"===c.name||"default"===c.name||"operator"===c.name&&"\\"===c.value||"punctuation"===c.name&&","===c.value))return"keyword"===c.name&&"use"===c.value;return!1},function(b){var d,e,f,g=a.util.getNextNonWsToken(b.tokens,b.index);if(g&&"operator"===g.name&&"\\"===g.value)return!1;for(e=b.index,f=b.tokens[e];(d=b.tokens[--e])!==c;){if("keyword"===d.name&&("new"===d.value||"instanceof"===d.value))return!0;if("default"!==d.name)if("ident"!==d.name){if("operator"!==d.name||"\\"!==d.value)break;if(f&&"ident"!==f.name)return!1;f=d}else{if(f&&"ident"===f.name)return!1;f=d}}return!1}],follows:[[{token:"ident"},a.util.whitespace,{token:"keyword",values:["extends","implements"]},a.util.whitespace],[{token:"keyword",values:["class","interface","abstract","final"]},a.util.whitespace]],precedes:[[a.util.whitespace,{token:"operator",values:["::"]}],[{token:"default"},{token:"variable"}]],between:[{opener:{token:"keyword",values:["implements"]},closer:{token:"punctuation",values:["{"]}}]},operators:["::","->","++","+=","+","--","-=","-","*=","*","/=","/","%=","%","&&","||","|=","|","&=","&","^=","^",">>=",">>","<<=","<<","<=","<",">=",">","===","==","!==","!=","!","~","?:","?",":",".=",".","=>","=","\\"]})}(this.Sunlight,document),function(a,b){if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("powershell",{scopes:{string:[['"','"',['\\"',"\\\\"]],["'","'",["\\'","\\\\"]]],comment:[["#","\n",null,!0]]},customParseRules:[function(){var b=["-not","-band","-bor","bnot","-replace","-ireplace","-creplace","-and","-or","-isnot","-is","-as","-F","-lt","-le","-gt","-ge","-eq","-ne","-contains","-notcontains","-like","-notlike","-match","-notmatch"],c=["elseif","begin","function","for","foreach","return","else","trap","while","using","do","data","dynamicparam","class","define","until","end","break","if","throw","param","continue","finally","in","switch","exit","filter","from","try","process","var","catch"];return function(d){var e,f,g=d.reader.current(),h=d.reader.getLine(),i=d.reader.getColumn();if(!/[A-Za-z_-]/.test(d.reader.current())||!/[\w-]/.test(d.reader.peek()))return null;for(;(e=d.reader.peek())&&/[\w-]/.test(e);)g+=d.reader.read();return f=a.util.contains(b,g)?"specialOperator":a.util.contains(c,g)?"keyword":"-"===g.charAt(0)?"switch":"ident",d.createToken(f,g,h,i)}}(),function(){var b=/[!@#%&,\.\s]/,c=["$$","$?","$^","$_","$ARGS","$CONSOLEFILENAME","$ERROR","$EVENT","$EVENTSUBSCRIBER","$EXECUTIONCONTEXT","$FALSE","$FOREACH","$HOME","$HOST","$INPUT","$LASTEXITCODE","$MATCHES","$MYINVOCATION","$NESTEDPROMPTLEVEL","$NULL","$PID","$PROFILE","$PSBOUNDPARAMETERS","$PSCMDLET","$PSCULTURE","$PSDEBUGCONTEXT","$PSHOME","$PSSCRIPTROOT","$PSUICULTURE","$PSVERSIONTABLE","$PWD","$SENDER","$SHELLID","$SOURCEARGS","$SOURCEEVENTARGS","$THIS","$TRUE"];return function(d){var e,f="$",g=d.reader.getLine(),h=d.reader.getColumn();if("$"!==d.reader.current()||b.test(d.reader.peek()))return null;for(;(e=d.reader.peek())&&!b.test(e);)f+=d.reader.read();return d.createToken(a.util.contains(c,f.toUpperCase())?"specialVariable":"variable",f,g,h)}}()],namedIdentRules:{custom:[function(b){var c=b.tokens[b.index-1];return c?"default"===c.name&&c.value.indexOf(a.util.eol)>=0?(c=b.tokens[b.index-2],c&&"operator"===c.name&&"`"===c.value?!1:!0):(c=a.util.getPreviousNonWsToken(b.tokens,b.index),c&&("operator"===c.name&&"="===c.value||"punctuation"===c.name&&"{"===c.value)?!0:!1):!0},function(b){var c,d=a.util.getNextNonWsToken(b.tokens,b.index);return d&&"operator"===d.name&&"."===d.value?!1:(c=a.util.createBetweenRule(b.index,{token:"punctuation",values:["["]},{token:"punctuation",values:["]"]}),c(b.tokens)?!0:!1)}]},operators:["@(","::","..",".","=","!=","!","|",">>",">","++","+=","+","`","*=","*","/=","/","--","-=","-","%{","%=","%","${","&"]})}(this.Sunlight),function(a,b){if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("python",{keywords:["False","class","finally","is","return","None","continue","for","lambda","try","True","def",Line truncated
|
||||
else{if("."!==d||!/\d/.test(a.reader.peek()))return null;b=d+a.reader.read(),g=!1}for(;(c=a.reader.peek())!==a.reader.EOF;){if(!/[A-Za-z0-9]/.test(c)){if("."===c&&g&&/\d$/.test(a.reader.peek(2))){b+=a.reader.read(),g=!1;continue}break}b+=a.reader.read()}return a.createToken("number",b,e,f)},operators:[".","<>","=","&=","&","*=","*","/=","/","\\=","\\","^=","^","+=","+","-=","-",">>=",">>","<<=","<<","<=",">=","<",">"]})}(this.Sunlight),function(a,b,c){function d(a){return function(c){var d=b.createElement("a");d.className=c.options.classPrefix+c.tokens[c.index].name,d.setAttribute("href",a(c.tokens[c.index].value)),d.appendChild(c.createTextNode(c.tokens[c.index])),c.addNode(d)}}if(a===c)throw"Include sunlight.js before including plugin files";var e={php:{"function":function(a){return"http://php.net/"+a},languageConstruct:function(a){return"http://php.net/"+a}},ruby:{"function":function(a){return"http://www.ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/function.html#"+a.replace(/!/g,"_bang").replace(/\?/g,"_p")}},python:{"function":function(a){return"http://docs.python.org/py3k/library/functions.html#"+a}},perl:{"function":function(a){return"http://perldoc.perl.org/functions/"+a+".html"}},lua:{"function":function(a){return"http://www.lua.org/manual/5.1/manual.html#pdf-"+a}}};a.bind("beforeAnalyze",function(b){this.options.enableDocLinks&&(b.analyzerContext.getAnalyzer=function(){var c,f,g=e[this.language.name];if(g){c=a.util.clone(b.analyzerContext.language.analyzer);for(f in g)g.hasOwnProperty(f)&&(c["handle_"+f]=d(g[f]));return c}})}),a.globalOptions.enableDocLinks=!1}(this.Sunlight,document),function(a,b,c){function d(a){var b=function c(a){return a.lastChild?3===a.lastChild.nodeType?a.lastChild:c(a.lastChild):null}(a)||{lastChild:""};return a.innerHTML.replace(/[^\n]/g,"").length-/\n$/.test(b.nodeValue)}if(a===c)throw"Include sunlight.js before including plugin files";a.bind("afterHighlightNode",function(c){var e,f,g,h,i,j,k,l,m;if(this.options.lineNumbers&&("automatic"!==this.options.lineNumbers||"block"===a.util.getComputedStyle(c.node,"display"))){for(e=b.createElement("pre"),f=d(c.node),i=this.options.lineHighlight.length>0,i&&(g=b.createElement("div"),g.className=this.options.classPrefix+"line-highlight-overlay"),e.className=this.options.classPrefix+"line-number-margin",k=b.createTextNode(a.util.eol),j=this.options.lineNumberStart;j<=this.options.lineNumberStart+f;j++)l=b.createElement("a"),m=(c.node.id?c.node.id:this.options.classPrefix+c.count)+"-line-"+j,l.setAttribute("name",m),l.setAttribute("href","#"+m),l.appendChild(b.createTextNode(j)),e.appendChild(l),e.appendChild(k.cloneNode(!1)),i&&(h=b.createElement("div"),a.util.contains(this.options.lineHighlight,j)&&(h.className=this.options.classPrefix+"line-highlight-active"),g.appendChild(h));c.codeContainer.insertBefore(e,c.codeContainer.firstChild),i&&c.codeContainer.appendChild(g),c.codeContainer.style.borderWidth="1px",c.codeContainer.style.borderStyle="solid"}}),a.globalOptions.lineNumbers="automatic",a.globalOptions.lineNumberStart=1,a.globalOptions.lineHighlight=[]}(this.Sunlight,document),function(sunlight,document,undefined){function createLink(a,b,c){var d=document.createElement("a");return d.setAttribute("href",a),d.setAttribute("title",b),c&&d.appendChild(document.createTextNode(c)),d}function getTextRecursive(a){var b="",c=0;if(3===a.nodeType)return a.nodeValue;for(b="",c=0;c<a.childNodes.length;c++)b+=getTextRecursive(a.childNodes[c]);return b}if(sunlight===undefined)throw"Include sunlight.js before including plugin files";var ieVersion=eval("0 /*@cc_on+ScriptEngineMajorVersion()@*/");sunlight.bind("afterHighlightNode",function(a){var b,c,d,e,f,g,h,i,j,k,l;ieVersion&&7>ieVersion||!this.options.showMenu||"block"!==sunlight.util.getComputedStyle(a.node,"display")||(b=document.createElement("div"),b.className=this.options.classPrefix+"menu",c="iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41Ljg3O4BdAAAAl0lEQVQ4jWP4P9n9PyWYgTYGzAr+///Q9P//Ty/HjhfEETDg1oH/YPDgNKbm4wsIuGBO+H84WJJKhhd2dkA0v3tEZhjcPQox4MVN7P7fUEHAgM112DX++Qkx+PEFMqPxwSmIAQenkWHAvCicAUucAbCAfX2PQCCCEtDGKkz86RXEgL39BAwAKcAFbh/6/39GIL3yAj0NAAB+LQeDCZ9tvgAAAABJRU5ErkJggg==",d=document.createElement("ul"),e=document.createElement("li"),f=String.fromCharCode(8212),g=createLink("#","collapse code block",f),g.onclick=function(){var b=sunlight.util.getComputedStyle(a.codeContainer,"height"),c=sunlight.util.getComputedStyle(a.codeContainer,"overflowY");return function(){var d=sunlight.util.getComputedStyle(a.codeContainer,"height")!==b;return this.replaceChild(document.createTextNode(d?f:"+"),this.firstChild),this.setAttribute("title",(d?"collapse":"expand")+" clode block"),a.codeContainer.style.height=d?b:"0px",a.codeContainer.style.overflowY=d?c:"hidden",!1}}(),e.appendChild(g),h=document.createElement("li"),i=createLink("#","view raw code","raw"),i.onclick=function(){var b;Line truncated
|
||||
!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){function c(a){var b="length"in a&&a.length,c=_.type(a);return"function"===c||_.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ha.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=oa[a]={};return _.each(a.match(na)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ua,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:ta.test(c)?_.parseJSON(c):c}catch(e){}sa.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Ka.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)ra.set(a[c],"globalEval",!b||ra.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(ra.hasData(a)&&(f=ra.access(a),g=ra.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++)_.event.add(b,e,j[e][c])}sa.hasData(a)&&(h=sa.access(a),i=_.extend({},h),sa.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ya.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Oa[a];return c||(c=t(a,b),"none"!==c&&c||(Na=(Na||_("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=Na[0].contentDocument,b.write(),b.close(),c=t(a,b),Na.detach()),Oa[a]=c),c}function v(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||_.contains(a.ownerDocument,a)||(g=_.style(a,b)),Qa.test(g)&&Pa.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 w(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function x(a,b){if(b in a)return b;for(var c=b[0].toUpperCase()+b.slice(1),d=b,e=Xa.length;e--;)if(b=Xa[e]+c,b in a)return b;return d}function y(a,b,c){var d=Ta.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function z(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+=_.css(a,c+wa[f],!0,e)),d?("content"===c&&(g-=_.css(a,"padding"+wa[f],!0,e)),"margin"!==c&&(g-=_.css(a,"border"+wa[f]+"Width",!0,e))):(g+=_.css(a,"padding"+wa[f],!0,e),"padding"!==c&&(g+=_.css(a,"border"+wa[f]+"Width",!0,e)));return g}function A(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ra(a),g="border-box"===_.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=v(a,b,f),(0>e||null==e)&&(e=a.style[b]),Qa.test(e))return e;d=g&&(Y.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+z(a,b,c||(g?"border":"content"),d,f)+"px"}function B(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=ra.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&xa(d)&&(f[g]=ra.access(d,"olddisplay",u(d.nodeName)))):(e=xa(d),"none"===c&&e||ra.set(d,"olddisplay",e?c:_.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}function C(a,b,c,d,e){return new C.prototype.init(a,b,c,d,e)}function D(){return setTimeout(function(){Ya=void 0}),Ya=_.now()}function E(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=wa[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function F(a,b,c){for(var d,e=(cb[b]||[]).concat(cb["*"]),f=0,g=e.length;g>Line truncated
|
||||
if("string"!=typeof a)return this.pushStack(_(a).filter(function(){for(b=0;c>b;b++)if(_.contains(e[b],this))return!0}));for(b=0;c>b;b++)_.find(a,e[b],d);return d=this.pushStack(c>1?_.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(d(this,a||[],!1))},not:function(a){return this.pushStack(d(this,a||[],!0))},is:function(a){return!!d(this,"string"==typeof a&&fa.test(a)?_(a):a||[],!1).length}});var ia,ja=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ka=_.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]:ja.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||ia).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof _?b[0]:b,_.merge(this,_.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:Z,!0)),ga.test(c[1])&&_.isPlainObject(b))for(c in b)_.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=Z.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=Z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):_.isFunction(a)?"undefined"!=typeof ia.ready?ia.ready(a):a(_):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),_.makeArray(a,this))};ka.prototype=_.fn,ia=_(Z);var la=/^(?:parents|prev(?:Until|All))/,ma={children:!0,contents:!0,next:!0,prev:!0};_.extend({dir:function(a,b,c){for(var d=[],e=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&_(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}}),_.fn.extend({has:function(a){var b=_(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(_.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=fa.test(a)||"string"!=typeof a?_(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&&_.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?_.unique(f):f)},index:function(a){return a?"string"==typeof a?U.call(_(a),this[0]):U.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(_.unique(_.merge(this.get(),_(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),_.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return _.dir(a,"parentNode")},parentsUntil:function(a,b,c){return _.dir(a,"parentNode",c)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return _.dir(a,"nextSibling")},prevAll:function(a){return _.dir(a,"previousSibling")},nextUntil:function(a,b,c){return _.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return _.dir(a,"previousSibling",c)},siblings:function(a){return _.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return _.sibling(a.firstChild)},contents:function(a){return a.contentDocument||_.merge([],a.childNodes)}},function(a,b){_.fn[a]=function(c,d){var e=_.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=_.filter(d,e)),this.length>1&&(ma[a]||_.unique(e),la.test(a)&&e.reverse()),this.pushStack(e)}});var na=/\S+/g,oa={};_.Callbacks=function(a){a="string"==typeof a?oa[a]||f(a):_.extend({},a);var b,c,d,e,g,h,i=[],j=!a.once&&[],k=function(f){for(b=a.memory&&f,c=!0,h=e||0,e=0,g=i.length,d=!0;i&&g>h;h++)if(i[h].apply(f[0],f[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,i&&(j?j.length&&k(j.shift()):b?i=[]:l.disable())},l={add:function(){if(i){var c=i.length;!function f(b){_.each(b,function(b,c){var d=_.type(c);"function"===d?a.unique&&l.has(c)||i.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),d?g=i.length:b&&(e=c,k(b))}return this},remove:function(){return i&&_.each(arguments,function(a,b){for(var c;(c=_.inArray(b,i,c))>-1;)i.splice(c,1),d&&(g>=c&&g--,h>=c&&h--)}),this},has:function(a){return a?_.inArray(a,i)>-1:!(!i||!i.length)},empty:function(){return i=[],g=0,this},disable:function(){return i=j=b=void 0,this},disabled:function(){return!i},lock:function(){return j=void 0,b||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return!i||c&&!j||(b=b||[],b=[a,b.slice?b.slice():b],d?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!c}};return l},_.extend({Deferred:function(a){var b=[["resolve","done",_.Callbacks("once memory"),"resolved"],["reject","fail",_.Callbacks("once memory"),"rejected"],["notify","progress",_.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return _.Deferred(function(c){_.each(b,function(b,f){var g=_.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&_.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progressLine truncated
|
||||
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})}}),_.each(["toggle","show","hide"],function(a,b){var c=_.fn[b];_.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(E(b,!0),a,d,e)}}),_.each({slideDown:E("show"),slideUp:E("hide"),slideToggle:E("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){_.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),_.timers=[],_.fx.tick=function(){var a,b=0,c=_.timers;for(Ya=_.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||_.fx.stop(),Ya=void 0},_.fx.timer=function(a){_.timers.push(a),a()?_.fx.start():_.timers.pop()},_.fx.interval=13,_.fx.start=function(){Za||(Za=setInterval(_.fx.tick,_.fx.interval))},_.fx.stop=function(){clearInterval(Za),Za=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(a,b){return a=_.fx?_.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=Z.createElement("input"),b=Z.createElement("select"),c=b.appendChild(Z.createElement("option"));a.type="checkbox",Y.checkOn=""!==a.value,Y.optSelected=c.selected,b.disabled=!0,Y.optDisabled=!c.disabled,a=Z.createElement("input"),a.value="t",a.type="radio",Y.radioValue="t"===a.value}();var db,eb,fb=_.expr.attrHandle;_.fn.extend({attr:function(a,b){return qa(this,_.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){_.removeAttr(this,a)})}}),_.extend({attr:function(a,b,c){var d,e,f=a.nodeType;return a&&3!==f&&8!==f&&2!==f?typeof a.getAttribute===za?_.prop(a,b,c):(1===f&&_.isXMLDoc(a)||(b=b.toLowerCase(),d=_.attrHooks[b]||(_.expr.match.bool.test(b)?eb:db)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=_.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 _.removeAttr(a,b)):void 0},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(na);if(f&&1===a.nodeType)for(;c=f[e++];)d=_.propFix[c]||c,_.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!Y.radioValue&&"radio"===b&&_.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),eb={set:function(a,b,c){return b===!1?_.removeAttr(a,c):a.setAttribute(c,c),c}},_.each(_.expr.match.bool.source.match(/\w+/g),function(a,b){var c=fb[b]||_.find.attr;fb[b]=function(a,b,d){var e,f;return d||(f=fb[b],fb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,fb[b]=f),e}});var gb=/^(?:input|select|textarea|button)$/i;_.fn.extend({prop:function(a,b){return qa(this,_.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[_.propFix[a]||a]})}}),_.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;return a&&3!==g&&8!==g&&2!==g?(f=1!==g||!_.isXMLDoc(a),f&&(b=_.propFix[b]||b,e=_.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]):void 0},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||gb.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),Y.optSelected||(_.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this});var hb=/[\t\r\n\f]/g;_.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(_.isFunction(a))return this.each(function(b){_(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(na)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(hb," "):" ")){for(f=0;e=b[f++];)d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=_.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(_.isFunction(a))return this.each(function(b){_(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(na)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(hb," "):"")){for(f=0;e=b[f++];)for(;d.indexOf(" "+e+" ")>=0;)d=d.replace(" "+e+" "," ");g=a?_.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(_.isFunction(a)?function(c){_(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c)for(var b,d=0,e=_(this),f=a.match(na)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else(c===za||"boolean"===c)&&(this.className&&ra.set(this,"__className__",this.className),this.className=this.className||a===!1?"":ra.Line truncated
|
||||
a.parentNode.insertBefore(k,a),a.parentNode.removeChild(a),k.appendChild(a),k.parentNode.insertBefore(j,k),k.parentNode.removeChild(k),j.appendChild(k)),r("afterHighlightNode",this,{container:j,codeContainer:k,node:a,count:e})}}}}(),a.Sunlight={version:"1.22.0",Highlighter:s,createAnalyzer:function(){return e(t)},globalOptions:B,highlightAll:function(a){var c,d=new s(a),e=b.getElementsByTagName("*");for(c=0;c<e.length;c++)d.highlightNode(e[c])},registerLanguage:function(a,b){var c,d,e;if(!a)throw'Languages must be registered with an identifier, e.g. "php" for PHP';b=i(i({},D),b),b.name=a,b.keywords=p(b.keywords||[],"\\b",b.caseInsensitive),b.operators=p(b.operators||[],"",b.caseInsensitive);for(c in b.customTokens)b.customTokens[c]=p(b.customTokens[c].values,b.customTokens[c].boundary,b.caseInsensitive);d=[];for(e in b.embeddedLanguages)d.push({parentLanguage:b.name,language:e,switchTo:b.embeddedLanguages[e].switchTo,switchBack:b.embeddedLanguages[e].switchBack});b.embeddedLanguages=d,C[b.name]=b},isRegistered:function(a){return C[a]!==c},bind:function(a,b){if(!E[a])throw'Unknown event "'+a+'"';E[a].push(b)},util:{last:g,regexEscape:k,eol:w,clone:j,escapeSequences:["\\n","\\t","\\r","\\\\","\\v","\\f"],contains:h,matchWord:n,createHashMap:p,createBetweenRule:m,createProceduralRule:l,getNextNonWsToken:function(a,b){return o(a,b,1,function(a){return"default"===a.name})},getPreviousNonWsToken:function(a,b){return o(a,b,-1,function(a){return"default"===a.name})},getNextWhile:function(a,b,c){return o(a,b,1,c)},getPreviousWhile:function(a,b,c){return o(a,b,-1,c)},whitespace:{token:"default",optional:!0},getComputedStyle:u}},a.Sunlight.registerLanguage(z,{punctuation:/(?!x)x/,numberParser:x})}(this,document),function(a,b){function c(a){for(var b,c=a.count();b=a.token(--c);){if("operator"===b.name&&(">"===b.value||"/>"===b.value||"</"===b.value))return!1;if("tagName"===b.name||"xmlOpenTag"===b.name)return!0}return!1}if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("xml",{caseInsensitive:!0,scopes:{comment:[["<!--","-->"],["<%--","--%>"]],cdata:[["<![CDATA[","]]>"]],doctype:[["<!DOCTYPE",">"]]},punctuation:/(?!x)x/,numberParser:function(){},customTokens:{xmlOpenTag:{values:["<?xml"],boundary:""},xmlCloseTag:{values:["?>"],boundary:""},aspOpenTag:{values:["<%@","<%$","<%#","<%=","<%"],boundary:""},aspCloseTag:{values:["%>"],boundary:""}},customParseRules:[function(b){var c,d,e=b.reader.current(),f=e,g=b.reader.getLine(),h=b.reader.getColumn();if(!/[A-Za-z_]/.test(e))return null;if(c=b.token(b.count()-1),!c||"operator"!==c.name||!a.util.contains(["<","</"],c.value))return null;for(;(d=b.reader.peek())&&/[.\w-]/.test(d);)f+=b.reader.read();return b.createToken("tagName",f,g,h)},function(a){var b,d,e=a.reader.current(),f=a.reader.getLine(),g=a.reader.getColumn();if('"'!==e&&"'"!==e)return null;if(!c(a))return null;for(b=e;(d=a.reader.peek())&&(b+=a.reader.read(),d!==e););return a.createToken("string",b,f,g)},function(a){var b,d,e=a.reader.current(),f=1,g=a.reader.getLine(),h=a.reader.getColumn();if(!/[A-Za-z_]/.test(e))return null;if(!c(a))return null;for(b=a.reader.peek();b.length===f;){if(/<$/.test(b))return null;if(/>$/.test(b))return d=d||e+b.substring(0,b.length-1),a.reader.read(d.length-1),a.createToken("attribute",d,g,h);!d&&/[=\s:]$/.test(b)&&(d=e+b.substring(0,b.length-1)),b=a.reader.peek(++f)}return null},function(a){var b,c=a.reader.current(),d=1,e=a.reader.getLine(),f=a.reader.getColumn();if("&"!==c)return null;for(b=a.reader.peek(d);b.length===d;){if(";"===b.charAt(b.length-1))return a.createToken("entity",c+a.reader.read(d),e,f);if(!/[A-Za-z0-9]$/.test(b))break;b=a.reader.peek(++d)}return null},function(a){var b,c="<%--",d=a.reader.getLine(),e=a.reader.getColumn();if("<"!==a.reader.current()||"%--"!==a.reader.peek(3))return null;for(a.reader.read(3);b=a.reader.peek();){if("--%>"===a.reader.peek(4)){c+=a.reader.read(4);break}c+=a.reader.read()}return a.createToken("comment",c,d,e)}],embeddedLanguages:{css:{switchTo:function(a){var b,c=a.token(a.count()-1);if(!c||a.reader.current()+a.reader.peek(6)==="</style")return!1;if("operator"!==c.name||">"!==c.value)return!1;for(b=a.count()-1;c=a.token(--b);)if("tagName"===c.name){if("style"===c.value&&(c=a.token(--b),c&&"operator"===c.name&&"<"===c.value))return!0;break}return!1},switchBack:function(a){return"</style"===a.reader.peek(7)}},javascript:{switchTo:function(a){var b,c=a.token(a.count()-1);if(!c||a.reader.current()+a.reader.peek(7)==="</script")return!1;if("operator"!==c.name||">"!==c.value)return!1;for(b=a.count()-1;c=a.token(--b);)if("tagName"===c.name){if("script"===c.value&&(c=a.token(--b),c&&"operator"===c.name&&"<"===c.value))return!0;break}return!1},switchBack:function(a){return"</script"===a.reader.peek(8)}},php:{switchTo:function(a){var b=a.reader.peek(4);return"<"===a.reader.current()&&("?php"===b||/^\?(?!xml)/.test(b))},switchBack:function(a){var b=a.token(a.count()-1);return b&&"closLine truncated
|
||||
token:"keyword",values:["using"]},{token:"default"},{token:"ident"},a.util.whitespace])(b.tokens);return!1},c(function(b){var c,d=[[{token:"keyword",values:["class","interface","event","struct","enum","delegate","public","private","protected","internal","static","virtual","sealed","params"]},a.util.whitespace],[{token:"keyword",values:["typeof","default"]},a.util.whitespace,{token:"punctuation",values:["("]},a.util.whitespace],[{token:"keyword",values:["as"]},a.util.whitespace]],e=[[a.util.whitespace,{token:"punctuation",values:["["]},a.util.whitespace,{token:"punctuation",values:["]"]}],[{token:"default"},{token:"ident"}]];for(c=0;c<d.length;c++)if(a.util.createProceduralRule(b.index-1,-1,d[c],!1)(b.tokens))return!0;for(c=0;c<e.length;c++)if(a.util.createProceduralRule(b.index+1,1,e[c],!1)(b.tokens))return!0;return!1})]},operators:["++","+=","+","--","-=","-","*=","*","/=","/","%=","%","&&","||","|=","|","&=","&","^=","^",">>=",">>","<<=","<<","<=","<",">=",">","==","!=","!","~","??","?","::",":",".","=>","="]})}(this.Sunlight),function(a,b){function c(a){for(var c,d,e=a.count(),f="",g=!0,h=1;(c=a.token(--e))!==b&&("punctuation"!==c.name||"}"!==c.value);)if("punctuation"===c.name&&"{"===c.value)return null;for(d=a.reader.peek();d.length===h;){if(letter=d.charAt(d.length-1),/[^\w-]$/.test(d)){if(g=!1,"{"===letter)break;if(";"===letter)return null}g&&(f+=letter),d=a.reader.peek(++h)}return f}if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("css",{caseInsensitive:!0,keywords:["background-color","background-image","background-repeat","background-attachment","background-position","background-clip","background-origin","background-size","background","border-collapse","border-top-style","border-right-style","border-left-style","border-bottom-style","border-style","border-top-width","border-right-width","border-left-width","border-bottom-width","border-width","border-top-color","border-right-color","border-left-color","border-bottom-color","border-color","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-image-repeat","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image","border-top","border-bottom","border-right","border-left","border-spacing","border","box-decoration-break","box-shadow","voice-volume","voice-balance","pause-before","pause-after","pause","rest-before","rest-after","rest","cue-before","cue-after","cue","mark-before","mark-after","mark","voice-family","voice-rate","voice-pitch","voice-pitch-range","voice-stress","voice-duration","phonemes","speak-header","speak-numeral","speak-punctuation","pitch-range","play-during","richness","speak","speech-rate","appearance","icon","box-sizing","outline-width","outline-style","outline-color","outline-offset","outline","resize","cursor","nav-index","nav-up","nav-right","nav-down","nav-left","display","position","float","clear","visibility","bottom","top","left","right","overflow","overflow-x","overflow-y","overflow-style","marquee-style","marquee-direction","marquee-play-count","marquee-speed","padding-top","padding-right","padding-bottom","padding-left","padding","margin-top","margin-right","margin-bottom","margin-left","margin","width","height","min-width","max-width","min-height","max-height","rotation-point","rotation","white-space-collapsing","white-space","line-break","word-break","hyphens","hyphenate-character","hyphenate-limit-before","hyphenate-limit-after","hyphenate-limit-lines","hyphenate-limit-last","hyphenate-resource","text-wrap","word-wrap","text-align-first","text-align-last","text-align","text-justify","word-spacing","letter-spacing","text-trim","text-autospace","text-indent","hanging-punctuation","text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-skip","text-decoration","text-underline-position","text-emphasis-position","text-emphasis-style","text-emphasis-color","text-emphasis","text-shadow","text-outline","text-transform","vertical-align","direction","unicode-bidi","writing-mode","text-orientation","text-combine","color","opacity","font-family","font-weight","font-stretch","font-style","font-size-adjust","font-size","font-synthesis","src","unicode-range","font-feature-settings","font-kerning","vertical-position","font-variant-ligatures","font-variant-caps","font-variant-numeric","font-variant-alternates","font-variant-east-asian","font-variant","font-feature-settings","font-language-override","font","line-height","text-height","transform-origin","transform-style","perspective-origin","perspective","backface-visibility","transform","transition-property","transition-duration","transition-timing-function","transition-delay","list-style-type","list-style-image","list-style-position","list-style","column-width","column-count","colunns","column-gap","column-rule-color","column-rule-style","column-rule-width","column-rule","bLine truncated
|
||||
if(!g)return!1;for(e=c.index;d=c.tokens[--e];)if("punctuation"===d.name&&"("===d.value)return f=a.util.getPreviousNonWsToken(c.tokens,e),f&&"keyword"===f.name?!1:!0;return!1})}(),c(function(b){var c,d=[[{token:"ident"},a.util.whitespace,{token:"keyword",values:["extends","implements"]},a.util.whitespace],[{token:"keyword",values:["class","interface","enum","public","private","protected","static","final"]},a.util.whitespace],[{token:"keyword",values:["extends"]},{token:"default"},{token:"ident"},{token:"default"},{token:"operator",values:["&"]},{token:"default"}]],e=[[a.util.whitespace,{token:"punctuation",values:["["]},a.util.whitespace,{token:"punctuation",values:["]"]}],[{token:"default"},{token:"ident"}]],f=[{opener:{token:"keyword",values:["implements","throws"]},closer:{token:"punctuation",values:["{"]}}];for(c=0;c<d.length;c++)if(a.util.createProceduralRule(b.index-1,-1,d[c],!1)(b.tokens))return!0;for(c=0;c<e.length;c++)if(a.util.createProceduralRule(b.index+1,1,e[c],!1)(b.tokens))return!0;for(c=0;c<f.length;c++)if(a.util.createBetweenRule(b.index,f[c].opener,f[c].closer,!1)(b.tokens))return!0;return!1})]},operators:["++","+=","+","--","-=","-","*=","*","/=","/","%=","%","&&","||","|=","|","&=","&","^=","^",">>>=",">>>",">>=",">>","<<=","<<","<=","<",">=",">","==","!=","!","~","?",":",".","="]})}(this.Sunlight),function(a,b){if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("javascript",{keywords:["break","case","catch","continue","default","delete","do","else","finally","for","function","if","in","instanceof","new","return","switch","this","throw","try","typeof","var","void","while","with","true","false","null"],customTokens:{reservedWord:{values:["abstract","boolean","byte","char","class","const","debugger","double","enum","export","extends","final","float","goto","implements","import","int","interface","long","native","package","private","protected","public","short","static","super","synchronized","throws","transient","volatile"],boundary:"\\b"},globalVariable:{values:["NaN","Infinity","undefined"],boundary:"\\b"},globalFunction:{values:["encodeURI","encodeURIComponent","decodeURI","decodeURIComponent","parseInt","parseFloat","isNaN","isFinite","eval"],boundary:"\\b"},globalObject:{values:["Math","JSON","XMLHttpRequest","XDomainRequest","ActiveXObject","Boolean","Date","Array","Image","Function","Object","Number","RegExp","String"],boundary:"\\b"}},scopes:{string:[['"','"',a.util.escapeSequences.concat(['\\"'])],["'","'",a.util.escapeSequences.concat(["\\'","\\\\"])]],comment:[["//","\n",null,!0],["/*","*/"]]},customParseRules:[function(c){var d,e,f,g=c.reader.peek(),h="/",i=c.reader.getLine(),j=c.reader.getColumn(),k=!1;if("/"!==c.reader.current()||"/"===g||"*"===g)return null;if(d=function(){var d=c.token(c.count()-1),e=null;return""!==c.defaultData.text&&(e=c.createToken("default",c.defaultData.text)),e||(e=d),e===b?!0:"default"===e.name&&e.value.indexOf("\n")>-1?!0:a.util.contains(["keyword","ident","number"],d.name)?!1:"punctuation"!==d.name||a.util.contains(["(","{","[",",",";"],d.value)?!0:!1}(),!d)return null;for(;c.reader.peek()!==c.reader.EOF;)if(e=c.reader.peek(2),"\\/"!==e&&"\\\\"!==e)if("\\["!==e&&"\\]"!==e){if("["===f?k=!0:"]"===f&&(k=!1),h+=f=c.reader.read(),"/"===f&&!k)break}else h+=c.reader.read(2);else h+=c.reader.read(2);for(;c.reader.peek()!==c.reader.EOF&&/[A-Za-z]/.test(c.reader.peek());)h+=c.reader.read();return c.createToken("regexLiteral",h,i,j)}],identFirstLetter:/[$A-Za-z_]/,identAfterFirstLetter:/[\w\$]/,namedIdentRules:{follows:[[{token:"keyword",values:["function"]},a.util.whitespace]]},operators:["++","+=","+","--","-=","-","*=","*","/=","/","%=","%","&&","||","|=","|","&=","&","^=","^",">>>=",">>>",">>=",">>","<<=","<<","<=","<",">=",">","===","==","!==","!=","!","~","?",":",".","="]})}(this.Sunlight),function(a,b){function c(b,c){var e=a.util.createHashMap(b,d,!1);return function(b){var d=a.util.getPreviousNonWsToken(b.getAllTokens(),b.count());return d?"punctuation"!==d.name||"("!==d.value&&("operator"!==d.name||"#'"!==d.value)?null:a.util.matchWord(b,e,c):null}}if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";var d="[\\s\\(\\)]";a.registerLanguage("lisp",{scopes:{string:[['"','"']],comment:[[";","\n",null,!0]],keywordArgument:[[":",{regex:/[\s\)\(]/,length:1},null,!0]]},customTokens:{keyword:{values:["always","appending","append","as","collecting","collect","counting","count","doing","do","finally","for","if","initially","maximize","maximizing","minimize","minimizing","named","nconcing","nconc","never","repeat","return","summing","sum","thereis","unless","until","when","while","with","into","in"],boundary:"[^\\w-]"},globalVariable:{values:["*applyhook*","*break-on-signals*","*break-on-warnings*","*compile-file-pathname*","*compile-file-truename*","*compile-print*","*compile-verbose*","*debug-io*","*debugger-hook*","*gensym-counter*","*terminal-io*","*default-paLine truncated
|
||||
return function(c){var d,e=a.util.matchWord(c,b,"keyword",!0);return e?(d=a.util.getPreviousWhile(c.getAllTokens(),c.count(),function(a){return"default"===a.name||"comment"===a.name}),!d||"punctuation"===d.name&&a.util.contains(["{","}",";"],d.value)?(c.reader.read(e.value.length-1),e):null):null}}()],identFirstLetter:/[A-Za-z_-]/,identAfterFirstLetter:/[\w-]/,operators:["~*","~","^~","=","::",":"]})}(this.Sunlight),function(a,b){if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("objective-c",{keywords:["and","default","noexcept","template","and_eq","delete","not","this","alignof","double","not_eq","thread_local","asm","dynamic_cast","nullptr","throw","auto","else","operator","true","bitand","enum","or","try","bitor","explicittodo","or_eq","typedef","bool","export","private","typeid","break","externtodo","protected","typename","case","false","public","union","catch","float","register","using","char","for","reinterpret_cast","unsigned","char16_t","friend","return","void","char32_t","goto","short","wchar_t","if","signed","virtual","compl","inline","sizeof","volatile","const","int","static","while","constexpr","long","static_assert","xor","const_cast","mutable","static_cast","xor_eq","continue","namespace","struct","decltype","new","switch","id","self","nil","super","in","out","inout","bycopy","byval","oneway","SEL","BOOL","YES","NO","@interface","@implementation","@end","@class","@private","@public","@package","@protected","@protocol","@optional","@required","@property","@synthesize","@dynamic","@selector","@try","@catch","@finally","@throw","@synchronized","@encode","__attribute__","__weak","__strong"],customTokens:{constant:{values:["EXIT_SUCCESS","EXIT_FAILURE","SIG_DFL","SIG_IGN","SIG_ERR","SIGABRT","SIGFPE","SIGILL","SIGINT","SIGSEGV","SIGTERM"],boundary:"\\b"}},scopes:{string:[['"','"',a.util.escapeSequences.concat(['\\"'])],['@"','"',["\\\\",'\\"']]],"char":[["'","'",["\\'","\\\\"]]],comment:[["//","\n",null,!0],["/*","*/"]],preprocessorDirective:[["#","\n",null,!0]]},customParseRules:[function(b){var c,d,e,f,g,h,i,j,k,l;if(!b.language.identFirstLetter.test(b.reader.current()))return null;for(d=0;(c=b.reader.peek(++d))&&c.length===d&&b.language.identAfterFirstLetter.test(a.util.last(c)););for(e=b.reader.current()+c.substring(0,c.length-1),d-=1,f=!1;(c=b.reader.peek(++d))&&c.length===d;)if(!/\s$/.test(c)){if(g=/([\]:])$/.exec(c),null===g)return null;f=":"===g[1]&&!/::$/.test(b.reader.peek(d+1));break}for(h=0,i=0,k=b.count(),l=1;j=b.token(--k);){if(l>1&&!f)return null;if("punctuation"===j.name)switch(j.value){case";":case"{":case"}":return null;case"(":h--;break;case")":h++;break;case"[":if(0===i&&0===h)return l>=1?(j=b.createToken(f&&l>1?"messageArgumentName":"messageDestination",e,b.reader.getLine(),b.reader.getColumn()),b.reader.read(e.length-1),j):null;i--;break;case"]":i++}0===i&&0===h&&"default"===j.name&&l++}return null},function(){var b=a.util.createHashMap(["getter","setter","readonly","readwrite","assign","retain","copy","nonatomic"],"\\b");return function(c){var d,e,f=a.util.matchWord(c,b,"keyword",!0);if(!f)return null;for(e=c.count();d=c.token(--e);)if("punctuation"===d.name){if("("===d.value)return d=a.util.getPreviousNonWsToken(c.getAllTokens(),e),d&&"keyword"===d.name&&"@property"===d.value?(f.line=c.reader.getLine(),f.column=c.reader.getColumn(),c.reader.read(f.value.length-1),f):null;if(";"===d.value)return null}return null}}()],identFirstLetter:/[A-Za-z_]/,identAfterFirstLetter:/\w/,namedIdentRules:{custom:[function(b){var c=/^(NS|CG).+$/,d=a.util.getNextNonWsToken(b.tokens,b.index);return c.test(b.tokens[b.index].value)&&(!d||"punctuation"!==d.name||"("!==d.value)},function(b){var c=a.util.getNextNonWsToken(b.tokens,b.index);return c&&"messageDestination"===c.name&&("class"===c.value||"alloc"===c.value)},function(b){var c,d,e;if(!a.util.createProceduralRule(b.index+1,1,[{token:"default"},{token:"ident"}])(b.tokens))return!1;if(a.util.createProceduralRule(b.index+1,1,[{token:"default"},{token:"ident"},a.util.whitespace,{token:"operator",value:":"}])(b.tokens))return!1;for(d=b.index,e=0;c=b.tokens[--d];)if("punctuation"===c.name)switch(c.value){case"[":return!1;case"{":case",":return!0;case"(":if(0===e)return!0;e++;break;case")":e--}return!0},function(){var b=[[a.util.whitespace,{token:"operator",values:["*","**"]},a.util.whitespace,{token:"ident"},a.util.whitespace,{token:"punctuation",values:[";"]}],[a.util.whitespace,{token:"operator",values:["&","*","**"]},a.util.whitespace,{token:"ident"}]];return function(c){var d,e,f,g,h;if(d=function(d){var e;for(e=0;e<b.length;e++)if(a.util.createProceduralRule(c.index+1,1,b[e],!1)(d))return!0;return!1}(c.tokens),!d)return!1;for(e=!1,f=!1,h=c.index;g=c.tokens[--h];){if("punctuation"===g.name&&(";"===g.value||"{"===g.value))return e||!f;"operator"===g.name&&"="===g.value?f=!0:"keyword"===g.name&&"@property"===g.value&&(e=!0)}return!1}}(),function(){var b=[[a.util.whitespace,{token:"puLine truncated
|
||||
boundary:"\\b"},languageConstruct:{values:["isset","array","unset","list","echo","include_once","include","require_once","require","print","empty","return","die","eval","exit"],boundary:"\\b"},constant:{values:["__CLASS__","__DIR__","__FILE__","__LINE__","__FUNCTION__","__METHOD__","__NAMESPACE__","ZEND_THREAD_SAFE","ZEND_DEBUG_BUILD","XSL_CLONE_NEVER","XSL_CLONE_AUTO","XSL_CLONE_ALWAYS","XSD_UNSIGNEDSHORT","XSD_UNSIGNEDLONG","XSD_UNSIGNEDINT","XSD_UNSIGNEDBYTE","XSD_TOKEN","XSD_TIME","XSD_STRING","XSD_SHORT","XSD_QNAME","XSD_POSITIVEINTEGER","XSD_NOTATION","XSD_NORMALIZEDSTRING","XSD_NONPOSITIVEINTEGER","XSD_NONNEGATIVEINTEGER","XSD_NMTOKENS","XSD_NMTOKEN","XSD_NEGATIVEINTEGER","XSD_NCNAME","XSD_NAMESPACE","XSD_NAME","XSD_LONG","XSD_LANGUAGE","XSD_INTEGER","XSD_INT","XSD_IDREFS","XSD_IDREF","XSD_ID","XSD_HEXBINARY","XSD_GYEARMONTH","XSD_GYEAR","XSD_GMONTHDAY","XSD_GMONTH","XSD_GDAY","XSD_FLOAT","XSD_ENTITY","XSD_ENTITIES","XSD_DURATION","XSD_DOUBLE","XSD_DECIMAL","XSD_DATETIME","XSD_DATE","XSD_BYTE","XSD_BOOLEAN","XSD_BASE64BINARY","XSD_ANYXML","XSD_ANYURI","XSD_ANYTYPE","XSD_1999_TIMEINSTANT","XSD_1999_NAMESPACE","XML_TEXT_NODE","XML_SAX_IMPL","XML_PI_NODE","XML_OPTION_TARGET_ENCODING","XML_OPTION_SKIP_WHITE","XML_OPTION_SKIP_TAGSTART","XML_OPTION_CASE_FOLDING","XML_NOTATION_NODE","XML_NAMESPACE_DECL_NODE","XML_LOCAL_NAMESPACE","XML_HTML_DOCUMENT_NODE","XML_ERROR_UNKNOWN_ENCODING","XML_ERROR_UNDEFINED_ENTITY","XML_ERROR_UNCLOSED_TOKEN","XML_ERROR_UNCLOSED_CDATA_SECTION","XML_ERROR_TAG_MISMATCH","XML_ERROR_SYNTAX","XML_ERROR_RECURSIVE_ENTITY_REF","XML_ERROR_PARTIAL_CHAR","XML_ERROR_PARAM_ENTITY_REF","XML_ERROR_NO_MEMORY","XML_ERROR_NO_ELEMENTS","XML_ERROR_NONE","XML_ERROR_MISPLACED_XML_PI","XML_ERROR_JUNK_AFTER_DOC_ELEMENT","XML_ERROR_INVALID_TOKEN","XML_ERROR_INCORRECT_ENCODING","XML_ERROR_EXTERNAL_ENTITY_HANDLING","XML_ERROR_DUPLICATE_ATTRIBUTE","XML_ERROR_BINARY_ENTITY_REF","XML_ERROR_BAD_CHAR_REF","XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF","XML_ERROR_ASYNC_ENTITY","XML_ENTITY_REF_NODE","XML_ENTITY_NODE","XML_ENTITY_DECL_NODE","XML_ELEMENT_NODE","XML_ELEMENT_DECL_NODE","XML_DTD_NODE","XML_DOCUMENT_TYPE_NODE","XML_DOCUMENT_NODE","XML_DOCUMENT_FRAG_NODE","XML_COMMENT_NODE","XML_CDATA_SECTION_NODE","XML_ATTRIBUTE_NOTATION","XML_ATTRIBUTE_NODE","XML_ATTRIBUTE_NMTOKENS","XML_ATTRIBUTE_NMTOKEN","XML_ATTRIBUTE_IDREFS","XML_ATTRIBUTE_IDREF","XML_ATTRIBUTE_ID","XML_ATTRIBUTE_ENUMERATION","XML_ATTRIBUTE_ENTITY","XML_ATTRIBUTE_DECL_NODE","XML_ATTRIBUTE_CDATA","X509_PURPOSE_SSL_SERVER","X509_PURPOSE_SSL_CLIENT","X509_PURPOSE_SMIME_SIGN","X509_PURPOSE_SMIME_ENCRYPT","X509_PURPOSE_NS_SSL_SERVER","X509_PURPOSE_CRL_SIGN","X509_PURPOSE_ANY","WSDL_CACHE_NONE","WSDL_CACHE_MEMORY","WSDL_CACHE_DISK","WSDL_CACHE_BOTH","VT_VARIANT","VT_UNKNOWN","VT_UINT","VT_UI4","VT_UI2","VT_UI1","VT_R8","VT_R4","VT_NULL","VT_INT","VT_I4","VT_I2","VT_I1","VT_ERROR","VT_EMPTY","VT_DISPATCH","VT_DECIMAL","VT_DATE","VT_CY","VT_BYREF","VT_BSTR","VT_BOOL","VT_ARRAY","VARCMP_NULL","VARCMP_LT","VARCMP_GT","VARCMP_EQ","UPLOAD_ERR_PARTIAL","UPLOAD_ERR_OK","UPLOAD_ERR_NO_TMP_DIR","UPLOAD_ERR_NO_FILE","UPLOAD_ERR_INI_SIZE","UPLOAD_ERR_FORM_SIZE","UPLOAD_ERR_EXTENSION","UPLOAD_ERR_CANT_WRITE","UNKNOWN_TYPE","T_XOR_EQUAL","T_WHITESPACE","T_WHILE","T_VARIABLE","T_VAR","T_USE","T_UNSET_CAST","T_UNSET","T_TRY","T_THROW","T_SWITCH","T_STRING_VARNAME","T_STRING_CAST","T_STRING","T_STATIC","T_START_HEREDOC","T_SR_EQUAL","T_SR","T_SL_EQUAL","T_SL","T_RETURN","T_REQUIRE_ONCE","T_REQUIRE","T_PUBLIC","T_PROTECTED","T_PRIVATE","T_PRINT","T_PLUS_EQUAL","T_PAAMAYIM_NEKUDOTAYIM","T_OR_EQUAL","T_OPEN_TAG_WITH_ECHO","T_OPEN_TAG","T_OBJECT_OPERATOR","T_OBJECT_CAST","T_NUM_STRING","T_NS_SEPARATOR","T_NS_C","T_NEW","T_NAMESPACE","T_MUL_EQUAL","T_MOD_EQUAL","T_MINUS_EQUAL","T_METHOD_C","T_LOGICAL_XOR","T_LOGICAL_OR","T_LOGICAL_AND","T_LNUMBER","T_LIST","T_LINE","T_IS_SMALLER_OR_EQUAL","T_IS_NOT_IDENTICAL","T_IS_NOT_EQUAL","T_IS_IDENTICAL","T_IS_GREATER_OR_EQUAL","T_IS_EQUAL","T_ISSET","T_INT_CAST","T_INTERFACE","T_INSTANCEOF","T_INLINE_HTML","T_INCLUDE_ONCE","T_INCLUDE","T_INC","T_IMPLEMENTS","T_IF","T_HALT_COMPILER","T_GOTO","T_GLOBAL","T_FUNC_C","T_FUNCTION","T_FOREACH","T_FOR","T_FINAL","T_FILE","T_EXTENDS","T_EXIT","T_EVAL","T_END_HEREDOC","T_ENDWHILE","T_ENDSWITCH","T_ENDIF","T_ENDFOREACH","T_ENDFOR","T_ENDDECLARE","T_ENCAPSED_AND_WHITESPACE","T_EMPTY","T_ELSEIF","T_ELSE","T_ECHO","T_DOUBLE_COLON","T_DOUBLE_CAST","T_DOUBLE_ARROW","T_DOLLAR_OPEN_CURLY_BRACES","T_DOC_COMMENT","T_DO","T_DNUMBER","T_DIV_EQUAL","T_DIR","T_DEFAULT","T_DECLARE","T_DEC","T_CURLY_OPEN","T_CONTINUE","T_CONSTANT_ENCAPSED_STRING","T_CONST","T_CONCAT_EQUAL","T_COMMENT","T_CLOSE_TAG","T_CLONE","T_CLASS_C","T_CLASS","T_CHARACTER","T_CATCH","T_CASE","T_BREAK","T_BOOL_CAST","T_BOOLEAN_OR","T_BOOLEAN_AND","T_BAD_CHARACTER","T_AS","T_ARRAY_CAST","T_ARRAY","T_AND_EQUAL","T_ABSTRACT","TRUE","TIDY_TAG_XMP","TIDY_TAG_WBR","TIDY_TAG_VAR","TIDY_TAG_UNKNOWN","TIDY_TAG_UL","TIDY_TAG_U","TIDY_TAG_TT","TIDY_TAG_TRLine truncated
|
||||
for(;(e=d.reader.peek())&&!b.test(e);)f+=d.reader.read();return d.createToken(a.util.contains(c,f.toUpperCase())?"specialVariable":"variable",f,g,h)}}()],namedIdentRules:{custom:[function(b){var c=b.tokens[b.index-1];return c?"default"===c.name&&c.value.indexOf(a.util.eol)>=0?(c=b.tokens[b.index-2],c&&"operator"===c.name&&"`"===c.value?!1:!0):(c=a.util.getPreviousNonWsToken(b.tokens,b.index),c&&("operator"===c.name&&"="===c.value||"punctuation"===c.name&&"{"===c.value)?!0:!1):!0},function(b){var c,d=a.util.getNextNonWsToken(b.tokens,b.index);return d&&"operator"===d.name&&"."===d.value?!1:(c=a.util.createBetweenRule(b.index,{token:"punctuation",values:["["]},{token:"punctuation",values:["]"]}),c(b.tokens)?!0:!1)}]},operators:["@(","::","..",".","=","!=","!","|",">>",">","++","+=","+","`","*=","*","/=","/","--","-=","-","%{","%=","%","${","&"]})}(this.Sunlight),function(a,b){if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("python",{keywords:["False","class","finally","is","return","None","continue","for","lambda","try","True","def","from","nonlocal","while","and","del","global","not","with","as","elif","if","or","yield","assert","else","import","pass","break","except","in","raise"],customTokens:{ellipsis:{values:["..."],boundary:""},delimiter:{values:["(",")","[","]","{","}",",",":",".",";","@","=","+=","-=","*=","/=","//=","%=","&=","|=","^=",">>=","<<=","**="],boundary:""},constant:{values:["NotImplemented","Ellipsis","False","True","None","__debug__"],boundary:"\\b"},attribute:{values:["__doc__","__name__","__module__","__defaults__","__code__","__globals__","__dict__","__closure__","__annotations__","__kwedefaults__","__self__","__func__","__bases__"],boundary:"\\b"},specialMethod:{values:["__next__","__new__","__init__","__del__","__repr__","__str__","__format__","__lt__","__le__","__eq__","__ne__","__gt__","__ge__","__hash__","__bool__","__call__","__prepare__","__getattr__","__getattribute__","__setattr__","__setattribute__","__delattr__","__dir__","__get__","__set__","__delete__","__slots__","__instancecheck__","__subclasscheck__","__getitem__","__setitem__","__delitem__","__iter__","__reversed__","__contains__","__add__","__sub__","__mul__","__truediv__","__floordiv__","__mod__","__divmod__","__pow__","__lshift__","__rshift__","__and__","__xor__","__or__","__radd__","__rsub__","__rmul__","__rtruediv__","__rfloordiv__","__rmod__","__rdivmod__","__rpow__","__rlshift__","__rrshift__","__rand__","__xror__","__ror__","__iadd__","__isub__","__imul__","__itruediv__","__ifloordiv__","__imod__","__idivmod__","__ipow__","__ilshift__","__irshift__","__iand__","__xror__","__ior__","__neg__","__pos__","__abs__","__invert__","__complex__","__int__","__float__","__round__","__index__","__enter__","__exit__"],boundary:"\\b"},"function":{values:["abs","dict","help","min","setattr","all","dir","hex","next","slice","any","divmod","id","object","sorted","ascii","enumerate","input","oct","staticmethod","bin","eval","int","open","str","bool","exec","isinstance","ord","sum","bytearray","filter","issubclass","pow","super","bytes","float","iter","print","tuple","callable","format","len","property","type","chr","frozenset","list","range","vars","classmethod","getattr","locals","repr","zip","compile","globals","map","reversed","__import__","complex","hasattr","max","round","delattr","hash","memoryview","set"],boundary:"\\b"}},scopes:{longString:[['"""','"""',a.util.escapeSequences.concat(['\\"'])],["'''","'''",a.util.escapeSequences.concat(["\\'"])]],rawLongString:[['r"""','"""'],['R"""','"""'],["r'''","'''"],["R'''","'''"]],binaryLongString:[['br"""','"""'],['bR"""','"""'],['Br"""','"""'],['BR"""','"""'],["br'''","'''"],["bR'''","'''"],["Br'''","'''"],["BR'''","'''"],['b"""','"""',a.util.escapeSequences.concat(['\\"'])],['B"""','"""',a.util.escapeSequences.concat(['\\"'])],["b'''","'''",a.util.escapeSequences.concat(["\\'"])],["B'''","'''",a.util.escapeSequences.concat(["\\'"])]],string:[['"','"',a.util.escapeSequences.concat(['\\"'])],["'","'",a.util.escapeSequences.concat(["\\'","\\\\"])]],rawString:[['r"','"'],['R"','"'],["r'","'"],["R'","'"]],binaryString:[['b"','"',a.util.escapeSequences.concat(['\\"'])],["b'","'",a.util.escapeSequences.concat(["\\'"])],['B"','"',a.util.escapeSequences.concat(['\\"'])],["B'","'",a.util.escapeSequences.concat(["\\'"])],['br"','"'],['bR"','"'],['Br"','"'],['BR"','"'],["br'","'"],["bR'","'"],["Br'","'"],["BR'","'"]],comment:[["#","\n",null,!0]]},identFirstLetter:/[A-Za-z_]/,identAfterFirstLetter:/\w/,namedIdentRules:{follows:[[{token:"keyword",values:["class","def","raise","except"]},a.util.whitespace]]},operators:["+","-","**","*","//","/","%","&","|","^","~","<<","<=","<",">>",">=",">","==","!="]})}(this.Sunlight),function(a,b){if(a===b||a.registerLanguage===b)throw"Include sunlight.js before including language files";a.registerLanguage("ruby",{keywords:["BEGIN","END","__ENCODING__","__END__","__FILE__","__LINE__","alias","aLine truncated
|
||||
c="iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41Ljg3O4BdAAAAl0lEQVQ4jWP4P9n9PyWYgTYGzAr+///Q9P//Ty/HjhfEETDg1oH/YPDgNKbm4wsIuGBO+H84WJJKhhd2dkA0v3tEZhjcPQox4MVN7P7fUEHAgM112DX++Qkx+PEFMqPxwSmIAQenkWHAvCicAUucAbCAfX2PQCCCEtDGKkz86RXEgL39BAwAKcAFbh/6/39GIL3yAj0NAAB+LQeDCZ9tvgAAAABJRU5ErkJggg==",d=document.createElement("ul"),e=document.createElement("li"),f=String.fromCharCode(8212),g=createLink("#","collapse code block",f),g.onclick=function(){var b=sunlight.util.getComputedStyle(a.codeContainer,"height"),c=sunlight.util.getComputedStyle(a.codeContainer,"overflowY");return function(){var d=sunlight.util.getComputedStyle(a.codeContainer,"height")!==b;return this.replaceChild(document.createTextNode(d?f:"+"),this.firstChild),this.setAttribute("title",(d?"collapse":"expand")+" clode block"),a.codeContainer.style.height=d?b:"0px",a.codeContainer.style.overflowY=d?c:"hidden",!1}}(),e.appendChild(g),h=document.createElement("li"),i=createLink("#","view raw code","raw"),i.onclick=function(){var b;return function(){var c;return b?(b.parentNode.removeChild(b),b=null,a.node.style.display="block",this.replaceChild(document.createTextNode("raw"),this.firstChild),this.setAttribute("title","view raw code")):(c=getTextRecursive(a.node),b=document.createElement("textarea"),b.value=c,b.setAttribute("readonly","readonly"),b.style.width=parseInt(sunlight.util.getComputedStyle(a.node,"width"))-5+"px",b.style.height=sunlight.util.getComputedStyle(a.node,"height"),b.style.border="none",b.style.overflowX="hidden",b.setAttribute("wrap","off"),a.codeContainer.insertBefore(b,a.node),a.node.style.display="none",this.replaceChild(document.createTextNode("highlighted"),this.firstChild),this.setAttribute("title","view highlighted code"),b.select()),!1}}(),h.appendChild(i),j=document.createElement("li"),k=createLink("http://sunlightjs.com/","Sunlight: JavaScript syntax highlighter by Tommy Montgomery"),l=document.createElement("img"),l.setAttribute("src","data:image/png;base64,"+c),l.setAttribute("alt","about"),k.appendChild(l),j.appendChild(k),d.appendChild(j),d.appendChild(h),d.appendChild(e),b.appendChild(d),a.container.insertBefore(b,a.container.firstChild),this.options.autoCollapse&&g.onclick.call(g))}),sunlight.globalOptions.showMenu=!1,sunlight.globalOptions.autoCollapse=!1}(this.Sunlight,document),function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";function b(b){return!b.nodeName||-1!==a.inArray(b.nodeName.toLowerCase(),["iframe","#document","html","body"])}function c(b){return a.isFunction(b)||a.isPlainObject(b)?b:{top:b,left:b}}var d=a.scrollTo=function(b,c,d){return a(window).scrollTo(b,c,d)};return d.defaults={axis:"xy",duration:0,limit:!0},a.fn.scrollTo=function(e,f,g){"object"==typeof f&&(g=f,f=0),"function"==typeof g&&(g={onAfter:g}),"max"===e&&(e=9e9),g=a.extend({},d.defaults,g),f=f||g.duration;var h=g.queue&&1<g.axis.length;return h&&(f/=2),g.offset=c(g.offset),g.over=c(g.over),this.each(function(){function i(b){var c=a.extend({},g,{queue:!0,duration:f,complete:b&&function(){b.call(l,n,g)}});m.animate(o,c)}if(null!==e){var j,k=b(this),l=k?this.contentWindow||window:this,m=a(l),n=e,o={};switch(typeof n){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(n)){n=c(n);break}n=k?a(n):a(n,l);case"object":if(0===n.length)return;(n.is||n.style)&&(j=(n=a(n)).offset())}var p=a.isFunction(g.offset)&&g.offset(l,n)||g.offset;a.each(g.axis.split(""),function(a,b){var c="x"===b?"Left":"Top",e=c.toLowerCase(),f="scroll"+c,q=m[f](),r=d.max(l,b);j?(o[f]=j[e]+(k?0:q-m.offset()[e]),g.margin&&(o[f]-=parseInt(n.css("margin"+c),10)||0,o[f]-=parseInt(n.css("border"+c+"Width"),10)||0),o[f]+=p[e]||0,g.over[e]&&(o[f]+=n["x"===b?"width":"height"]()*g.over[e])):(c=n[e],o[f]=c.slice&&"%"===c.slice(-1)?parseFloat(c)/100*r:c),g.limit&&/^\d+$/.test(o[f])&&(o[f]=0>=o[f]?0:Math.min(o[f],r)),!a&&1<g.axis.length&&(q===o[f]?o={}:h&&(i(g.onAfterFirst),o={}))}),i(g.onAfter)}})},d.max=function(c,d){var e="x"===d?"Width":"Height",f="scroll"+e;if(!b(c))return c[f]-a(c)[e.toLowerCase()]();var e="client"+e,g=c.ownerDocument||c.document,h=g.documentElement,g=g.body;return Math.max(h[f],g[f])-Math.min(h[e],g[e])},a.Tween.propHooks.scrollLeft=a.Tween.propHooks.scrollTop={get:function(b){return a(b.elem)[b.prop]()},set:function(b){var c=this.get(b);if(b.options.interrupt&&b._last&&b._last!==c)return a(b.elem).stop();var d=Math.round(b.now);c!==d&&(a(b.elem)[b.prop](d),b._last=this.get(b))}},d}),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(b,c,d){var e=c.hash.slice(1),f=document.getElementById(e)||document.getElementsByName(e)[0];if(f){b&&b.preventDefault();var g=a(d.target);if(!(d.lock&&g.is(":animated")||d.onBefore&&d.onBefore(b,f,g)===!1)){if(d.Line truncated
|
||||
@@ -4,17 +4,20 @@ $.fn.toc = function(options) {
|
||||
var opts = $.extend({}, jQuery.fn.toc.defaults, options);
|
||||
|
||||
var container = $(opts.container);
|
||||
var tocs = [];
|
||||
var headings = $(opts.selectors, container);
|
||||
var headingOffsets = [];
|
||||
var activeClassName = opts.prefix+'-active';
|
||||
var activeClassName = 'active';
|
||||
var navbarHeight = $('.navbar').height();
|
||||
var ANCHOR_PREFIX = "__anchor";
|
||||
|
||||
var scrollTo = function(e) {
|
||||
if (opts.smoothScrolling) {
|
||||
e.preventDefault();
|
||||
var elScrollTo = $(e.target).attr('href');
|
||||
var $el = $(elScrollTo);
|
||||
var offsetTop = $el.offset().top - navbarHeight;
|
||||
var $el = $(elScrollTo.replace('#.', '#\\.') + ANCHOR_PREFIX);
|
||||
|
||||
var offsetTop = $el.offset().top - (navbarHeight + opts.navbarOffset);
|
||||
|
||||
$('body,html').animate({ scrollTop: offsetTop }, 400, 'swing', function() {
|
||||
location.hash = elScrollTo;
|
||||
@@ -24,6 +27,14 @@ $.fn.toc = function(options) {
|
||||
$(e.target).parent().addClass(activeClassName);
|
||||
};
|
||||
|
||||
var calcHadingOffsets = function() {
|
||||
headingOffsets = [];
|
||||
headings.each(function(i, heading) {
|
||||
var top = $(heading).prev("span").offset().top - (navbarHeight + opts.navbarOffset);
|
||||
headingOffsets.push(top > 0 ? top : 0);
|
||||
});
|
||||
}
|
||||
|
||||
//highlight on scroll
|
||||
var timeout;
|
||||
var highlightOnScroll = function(e) {
|
||||
@@ -34,10 +45,10 @@ $.fn.toc = function(options) {
|
||||
var top = $(window).scrollTop(),
|
||||
highlighted;
|
||||
for (var i = 0, c = headingOffsets.length; i < c; i++) {
|
||||
if (headingOffsets[i] >= top) {
|
||||
if (headingOffsets[i] >= top || (headingOffsets[i + 1] && headingOffsets[i + 1] > top)) {
|
||||
$('li', self).removeClass(activeClassName);
|
||||
if (i > 0) {
|
||||
highlighted = $('li:eq('+(i-1)+')', self).addClass(activeClassName);
|
||||
if (i >= 0) {
|
||||
highlighted = tocs[i].addClass(activeClassName);
|
||||
opts.onHighlight(highlighted);
|
||||
}
|
||||
break;
|
||||
@@ -47,25 +58,27 @@ $.fn.toc = function(options) {
|
||||
};
|
||||
if (opts.highlightOnScroll) {
|
||||
$(window).bind('scroll', highlightOnScroll);
|
||||
highlightOnScroll();
|
||||
$(window).bind('load resize', function() {
|
||||
calcHadingOffsets();
|
||||
highlightOnScroll();
|
||||
});
|
||||
}
|
||||
|
||||
return this.each(function() {
|
||||
//build TOC
|
||||
var el = $(this);
|
||||
var ul = $('<ul/>');
|
||||
|
||||
headings.each(function(i, heading) {
|
||||
var $h = $(heading);
|
||||
headingOffsets.push($h.offset().top - opts.highlightOffset);
|
||||
|
||||
//add anchor
|
||||
var anchor = $('<span/>').attr('id', opts.anchorName(i, heading, opts.prefix)).insertBefore($h);
|
||||
var anchor = $('<span/>').attr('id', opts.anchorName(i, heading, opts.prefix) + ANCHOR_PREFIX).insertBefore($h);
|
||||
|
||||
//build TOC item
|
||||
var a = $('<a/>')
|
||||
.text(opts.headerText(i, heading, $h))
|
||||
.attr('href', '#' + opts.anchorName(i, heading, opts.prefix))
|
||||
.bind('click', function(e) {
|
||||
.bind('click', function(e) {
|
||||
scrollTo(e);
|
||||
el.trigger('selected', $(this).attr('href'));
|
||||
});
|
||||
@@ -74,10 +87,17 @@ $.fn.toc = function(options) {
|
||||
.addClass(opts.itemClass(i, heading, $h, opts.prefix))
|
||||
.append(a);
|
||||
|
||||
tocs.push(li);
|
||||
|
||||
ul.append(li);
|
||||
});
|
||||
el.html(ul);
|
||||
|
||||
calcHadingOffsets();
|
||||
});
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -88,7 +108,7 @@ jQuery.fn.toc.defaults = {
|
||||
prefix: 'toc',
|
||||
onHighlight: function() {},
|
||||
highlightOnScroll: true,
|
||||
highlightOffset: 100,
|
||||
navbarOffset: 0,
|
||||
anchorName: function(i, heading, prefix) {
|
||||
return prefix+i;
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
+719
-508
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+666
-447
File diff suppressed because it is too large.
Load diff
+821
-582
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+688
-477
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+586
-397
File diff suppressed because it is too large.
Load diff
+138
-122
@@ -44,7 +44,6 @@
|
||||
<div class="col-md-8">
|
||||
|
||||
<div id="main">
|
||||
<h1 class="page-title">Namespace: wildstring</h1>
|
||||
|
||||
|
||||
<h1 class="page-title">Namespace: wildstring</h1>
|
||||
@@ -67,31 +66,31 @@
|
||||
|
||||
|
||||
<dl class="details">
|
||||
|
||||
|
||||
|
||||
<h5 class="subsection-title">Properties:</h5>
|
||||
<h5 class="subsection-title">Properties:</h5>
|
||||
|
||||
<dl>
|
||||
<dl>
|
||||
|
||||
<table class="props table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
<tr>
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
|
||||
<th>Type</th>
|
||||
<th>Type</th>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<th class="last">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<th class="last">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -104,6 +103,7 @@
|
||||
<span class="param-type">string</span>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
<td class="description last"><p>the wildcard to use in your strings, defaults to '*'</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -127,6 +127,7 @@
|
||||
<span class="param-type">boolean</span>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
@@ -137,12 +138,12 @@
|
||||
<td class="description last"><p>whether matches should care about case, defaults to true</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -171,7 +172,7 @@
|
||||
|
||||
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
@@ -211,13 +212,14 @@
|
||||
|
||||
<dl>
|
||||
|
||||
<hr>
|
||||
<dt>
|
||||
<h4 class="name" id=".checkRollbackStrings"><span class="type-signature"><private, static> </span>checkRollbackStrings<span class="signature">(rollbackStrings, patternSubstrings)</span><span class="type-signature"></span></h4>
|
||||
<h4 class="name" id=".checkRollbackStrings"><span class="type-signature"><private, static> </span>checkRollbackStrings(rollbackStrings, patternSubstrings)</h4>
|
||||
|
||||
|
||||
</dt>
|
||||
<dd>
|
||||
|
||||
|
||||
|
||||
<div class="description">
|
||||
<p>When a match doesn't continue to the end of the string, this function rolls back to try again with the rest of the string</p>
|
||||
@@ -227,7 +229,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h5>Parameters:</h5>
|
||||
@@ -235,23 +237,23 @@
|
||||
|
||||
<table class="params table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
<tr>
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
|
||||
<th>Type</th>
|
||||
<th>Type</th>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<th class="last">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<th class="last">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -264,6 +266,7 @@
|
||||
<span class="param-type">Array.<string></span>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
@@ -274,7 +277,7 @@
|
||||
<td class="description last"><p>The list of substrings that appeared prior to the current match</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -287,6 +290,7 @@
|
||||
<span class="param-type">Array.<string></span>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
@@ -297,15 +301,15 @@
|
||||
<td class="description last"><p>The matching list of pattens that need to be matched before the current pattern</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dl class="details">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -334,7 +338,7 @@
|
||||
|
||||
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
@@ -352,7 +356,11 @@
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -360,23 +368,20 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<hr>
|
||||
<dt>
|
||||
<h4 class="name" id=".match"><span class="type-signature"><static> </span>match<span class="signature">(pattern, string)</span><span class="type-signature"></span></h4>
|
||||
<h4 class="name" id=".match"><span class="type-signature"><static> </span>match(pattern, string)</h4>
|
||||
|
||||
|
||||
</dt>
|
||||
<dd>
|
||||
|
||||
|
||||
|
||||
<div class="description">
|
||||
<p>Check if a string matches a pattern</p>
|
||||
@@ -386,7 +391,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h5>Parameters:</h5>
|
||||
@@ -394,23 +399,23 @@
|
||||
|
||||
<table class="params table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
<tr>
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
|
||||
<th>Type</th>
|
||||
<th>Type</th>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<th class="last">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<th class="last">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -423,6 +428,7 @@
|
||||
<span class="param-type">string</span>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
@@ -433,7 +439,7 @@
|
||||
<td class="description last"><p>The pattern to match using the configured wildcard</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -446,6 +452,7 @@
|
||||
<span class="param-type">string</span>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
@@ -456,15 +463,15 @@
|
||||
<td class="description last"><p>The string to test for a match</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dl class="details">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -493,12 +500,12 @@
|
||||
|
||||
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="F__Git_wildstring_wildstring.js.html">F:/Git/wildstring/wildstring.js</a>,
|
||||
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-67">line 67</a>
|
||||
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-66">line 66</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@@ -511,7 +518,11 @@
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -519,23 +530,20 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<hr>
|
||||
<dt>
|
||||
<h4 class="name" id=".replace"><span class="type-signature"><static> </span>replace<span class="signature">(pattern, strings)</span><span class="type-signature"></span></h4>
|
||||
<h4 class="name" id=".replace"><span class="type-signature"><static> </span>replace(pattern, strings)</h4>
|
||||
|
||||
|
||||
</dt>
|
||||
<dd>
|
||||
|
||||
|
||||
|
||||
<div class="description">
|
||||
<p>Replace wildcards in a pattern with strings (string interpolation)</p>
|
||||
@@ -545,7 +553,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h5>Parameters:</h5>
|
||||
@@ -553,23 +561,23 @@
|
||||
|
||||
<table class="params table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
<tr>
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
|
||||
<th>Type</th>
|
||||
<th>Type</th>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<th class="last">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<th class="last">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -582,6 +590,7 @@
|
||||
<span class="param-type">string</span>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
@@ -592,7 +601,7 @@
|
||||
<td class="description last"><p>The start string, using wildcards as placeholders</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
@@ -608,6 +617,7 @@
|
||||
<span class="param-type">Array.<string></span>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
@@ -615,20 +625,18 @@
|
||||
|
||||
|
||||
|
||||
<td class="description last"><p>The string or strings to replace the wildcards in the pattern.
|
||||
If you pass a single string, it will replace all the wildcards with the string.
|
||||
If you pass an array of strings, they will replace the wildcards in order from left to right.</p></td>
|
||||
<td class="description last"><p>The string or strings to replace the wildcards in the pattern.<br> If you pass a single string, it will replace all the wildcards with the string.<br> If you pass an array of strings, they will replace the wildcards in order from left to right.</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dl class="details">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -657,12 +665,12 @@
|
||||
|
||||
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
||||
<dd class="tag-source">
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="F__Git_wildstring_wildstring.js.html">F:/Git/wildstring/wildstring.js</a>,
|
||||
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-144">line 144</a>
|
||||
<a href="F__Git_wildstring_wildstring.js.html#sunlight-1-line-143">line 143</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@@ -675,7 +683,7 @@
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -683,7 +691,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h5>Throws:</h5>
|
||||
<ul>
|
||||
@@ -717,9 +725,9 @@
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
|
||||
@@ -757,12 +765,11 @@
|
||||
<span class="copyright">
|
||||
DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.
|
||||
</span>
|
||||
<br />
|
||||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Tue Aug 25th 2015 using the <a
|
||||
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a>
|
||||
on Mon Apr 24th 2017 using the <a
|
||||
href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
|
||||
@@ -779,20 +786,6 @@ $( function () {
|
||||
$this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
|
||||
} );
|
||||
|
||||
$( "#toc" ).toc( {
|
||||
anchorName : function ( i, heading, prefix ) {
|
||||
return $( heading ).attr( "id" ) || ( prefix + i );
|
||||
},
|
||||
selectors : "h1,h2,h3,h4",
|
||||
showAndHide : false,
|
||||
scrollTo : "100px"
|
||||
} );
|
||||
|
||||
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
|
||||
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
||||
$( '.dropdown-toggle' ).dropdown();
|
||||
// $( ".tutorial-section pre, .readme-section pre" ).addClass( "sunlight-highlight-javascript" ).addClass( "linenums" );
|
||||
|
||||
$( ".tutorial-section pre, .readme-section pre" ).each( function () {
|
||||
var $this = $( this );
|
||||
|
||||
@@ -804,7 +797,8 @@ $( function () {
|
||||
example.html( exampleText );
|
||||
lang = lang[1];
|
||||
} else {
|
||||
lang = "javascript";
|
||||
var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
|
||||
lang = langClassMatch ? langClassMatch[1] : "javascript";
|
||||
}
|
||||
|
||||
if ( lang ) {
|
||||
@@ -822,6 +816,28 @@ $( function () {
|
||||
showMenu : true,
|
||||
enableDoclinks : true
|
||||
} );
|
||||
|
||||
$( "#toc" ).toc( {
|
||||
anchorName : function ( i, heading, prefix ) {
|
||||
var id = $( heading ).attr( "id" );
|
||||
return id && id.replace(/\~/g, '-inner-').replace(/\./g, '-static-') || ( prefix + i );
|
||||
},
|
||||
selectors : "h1,h2,h3,h4",
|
||||
showAndHide : false,
|
||||
navbarOffset: 10,
|
||||
smoothScrolling: true
|
||||
} );
|
||||
|
||||
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
|
||||
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
||||
$( '.dropdown-toggle' ).dropdown();
|
||||
// $( ".tutorial-section pre, .readme-section pre" ).addClass( "sunlight-highlight-javascript" ).addClass( "linenums" );
|
||||
|
||||
$( "table" ).each( function () {
|
||||
var $this = $( this );
|
||||
$this.addClass('table');
|
||||
} );
|
||||
|
||||
} );
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user