b0y-101 Mini Shell


Current Path : E:/www/instructor/teacher06/templates/simple02/warp/vendor/jquery/
File Upload :
Current File : E:/www/instructor/teacher06/templates/simple02/warp/vendor/jquery/jquery-mustache.js

!function(t){!function(t,e){if("object"==typeof exports&&exports)e(exports);else{var n={};e(n),"function"==typeof define&&define.amd?define(n):t.Mustache=n}}(this,function(t){function e(t,e){return d.call(t,e)}function n(t){return!e(v,t)}function r(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function i(t){return String(t).replace(/[&<>"'\/]/g,function(t){return x[t]})}function a(t){this.string=t,this.tail=t,this.pos=0}function o(t,e){this.view=t||{},this.parent=e,this._cache={}}function s(){this.clearCache()}function c(e,n,r,i){for(var a,o,s,l="",u=0,p=e.length;u<p;++u)switch(a=e[u],o=a[1],a[0]){case"#":if(s=r.lookup(o),"object"==typeof s)if(b(s))for(var h=0,f=s.length;h<f;++h)l+=c(a[4],n,r.push(s[h]),i);else s&&(l+=c(a[4],n,r.push(s),i));else if("function"==typeof s){var g=null==i?null:i.slice(a[3],a[5]);s=s.call(r.view,g,function(t){return n.render(t,r)}),null!=s&&(l+=s)}else s&&(l+=c(a[4],n,r,i));break;case"^":s=r.lookup(o),(!s||b(s)&&0===s.length)&&(l+=c(a[4],n,r,i));break;case">":s=n.getPartial(o),"function"==typeof s&&(l+=s(r));break;case"&":s=r.lookup(o),null!=s&&(l+=s);break;case"name":s=r.lookup(o),null!=s&&(l+=t.escape(s));break;case"text":l+=o}return l}function l(t){for(var e,n=[],r=n,i=[],a=0,o=t.length;a<o;++a)switch(e=t[a],e[0]){case"#":case"^":i.push(e),r.push(e),r=e[4]=[];break;case"/":var s=i.pop();s[5]=e[2],r=i.length>0?i[i.length-1][4]:n;break;default:r.push(e)}return n}function u(t){for(var e,n,r=[],i=0,a=t.length;i<a;++i)e=t[i],e&&("text"===e[0]&&n&&"text"===n[0]?(n[1]+=e[1],n[3]=e[3]):(n=e,r.push(e)));return r}function p(t){return[new RegExp(r(t[0])+"\\s*"),new RegExp("\\s*"+r(t[1]))]}function h(e,i){function o(){if(E&&!P)for(;U.length;)delete _[U.pop()];else U=[];E=!1,P=!1}if(e=e||"",i=i||t.tags,"string"==typeof i&&(i=i.split(g)),2!==i.length)throw new Error("Invalid tags: "+i.join(", "));for(var s,c,h,v,d,k=p(i),b=new a(e),x=[],_=[],U=[],E=!1,P=!1;!b.eos();){if(s=b.pos,h=b.scanUntil(k[0]))for(var C=0,j=h.length;C<j;++C)v=h.charAt(C),n(v)?U.push(_.length):P=!0,_.push(["text",v,s,s+1]),s+=1,"\n"==v&&o();if(!b.scan(k[0]))break;if(E=!0,c=b.scan(y)||"name",b.scan(f),"="===c?(h=b.scanUntil(m),b.scan(m),b.scanUntil(k[1])):"{"===c?(h=b.scanUntil(new RegExp("\\s*"+r("}"+i[1]))),b.scan(w),b.scanUntil(k[1]),c="&"):h=b.scanUntil(k[1]),!b.scan(k[1]))throw new Error("Unclosed tag at "+b.pos);if(d=[c,h,s,b.pos],_.push(d),"#"===c||"^"===c)x.push(d);else if("/"===c){if(0===x.length)throw new Error('Unopened section "'+h+'" at '+s);var A=x.pop();if(A[1]!==h)throw new Error('Unclosed section "'+A[1]+'" at '+s)}else if("name"===c||"{"===c||"&"===c)P=!0;else if("="===c){if(i=h.split(g),2!==i.length)throw new Error("Invalid tags at "+s+": "+i.join(", "));k=p(i)}}var A=x.pop();if(A)throw new Error('Unclosed section "'+A[1]+'" at '+b.pos);return _=u(_),l(_)}var f=/\s*/,g=/\s+/,v=/\S/,m=/\s*=/,w=/\s*\}/,y=/#|\^|\/|>|\{|&|=|!/,d=RegExp.prototype.test,k=Object.prototype.toString,b=Array.isArray||function(t){return"[object Array]"===k.call(t)},x={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};a.prototype.eos=function(){return""===this.tail},a.prototype.scan=function(t){var e=this.tail.match(t);return e&&0===e.index?(this.tail=this.tail.substring(e[0].length),this.pos+=e[0].length,e[0]):""},a.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.pos+=this.tail.length,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n),this.pos+=n}return e},o.make=function(t){return t instanceof o?t:new o(t)},o.prototype.push=function(t){return new o(t,this)},o.prototype.lookup=function(t){var e=this._cache[t];if(!e){if("."==t)e=this.view;else for(var n=this;n;){if(t.indexOf(".")>0){e=n.view;for(var r=t.split("."),i=0;e&&i<r.length;)e=e[r[i++]]}else e=n.view[t];if(null!=e)break;n=n.parent}this._cache[t]=e}return"function"==typeof e&&(e=e.call(this.view)),e},s.prototype.clearCache=function(){this._cache={},this._partialCache={}},s.prototype.compile=function(e,n){var r=this._cache[e];if(!r){var i=t.parse(e,n);r=this._cache[e]=this.compileTokens(i,e)}return r},s.prototype.compilePartial=function(t,e,n){var r=this.compile(e,n);return this._partialCache[t]=r,r},s.prototype.getPartial=function(t){return t in this._partialCache||!this._loadPartial||this.compilePartial(t,this._loadPartial(t)),this._partialCache[t]},s.prototype.compileTokens=function(t,e){var n=this;return function(r,i){if(i)if("function"==typeof i)n._loadPartial=i;else for(var a in i)n.compilePartial(a,i[a]);return c(t,n,o.make(r),e)}},s.prototype.render=function(t,e,n){return this.compile(t)(e,n)},t.name="mustache.js",t.version="0.7.2",t.tags=["{{","}}"],t.Scanner=a,t.Context=o,t.Writer=s,t.parse=h,t.escape=i;var _=new s;t.clearCache=function(){return _.clearCache()},t.compile=function(t,e){return _.compile(t,e)},t.compilePartial=function(t,e,n){return _.compilePartial(t,e,n)},t.compileTokens=function(t,e){return _.compileTokens(t,e)},t.render=function(t,e,n){return _.render(t,e,n)},t.to_html=function(e,n,r,i){var a=t.render(e,n,r);return"function"!=typeof i?a:void i(a)}}),t.mustache=function(t,e,n){return Mustache.render(t,e,n)},t.fn.mustache=function(e,n){return t(this).map(function(r,i){var a=t.trim(t(i).html()),o=t.mustache(a,e,n);return t(o).get()})}}(jQuery);

Copyright © 2019 by b0y-101