3 lines
6.3 KiB
JavaScript
3 lines
6.3 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{A6WY:function(e,t,n){"use strict";n.r(t),n.d(t,"LazyJqueryUI",(function(){return o})),n.d(t,"lazyJqueryUI",(function(){return a}));var r;n("P5fv");function i(e){return e in $.fn?Promise.resolve():(r||(r=new Promise((function(e){Promise.all([n.e(89),n.e("lazy-jquery-ui")]).then(function(t){n("BvgM"),e()}.bind(null,n)).catch(void 0)}))),r)}var o=function(){function e(e){this._$elem=e}return e.prototype.draggable=function(){var e=arguments,t=this._$elem;return i("draggable").then((function(){return t.draggable.apply(t,e)}))},e.prototype.resizable=function(){var e=arguments,t=this._$elem;return i("resizable").then((function(){return t.resizable.apply(t,e)}))},e.prototype.sortable=function(){var e=arguments,t=this._$elem;return i("sortable").then((function(){return t.sortable.apply(t,e)}))},e.prototype.datepicker=function(){var e=arguments,t=this._$elem;return i("datepicker").then((function(){return t.datepicker.apply(t,e)}))},e}();function a(e){return new o(e)}},nbsC:function(e,t,n){var r,i,o,a;a=function(e){var t=Object.prototype.toString,n=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(e){return"function"==typeof e}function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}var a=RegExp.prototype.test,s=/\S/;function u(e){return!function(e,t){return a.call(e,t)}(s,e)}var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},p=/\s*/,l=/\s+/,f=/\s*=/,h=/\s*\}/,d=/#|\^|\/|>|\{|&|=|!/;function v(e){this.string=e,this.tail=e,this.pos=0}function g(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function y(){this.cache={}}v.prototype.eos=function(){return""===this.tail},v.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},v.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},g.prototype.push=function(e){return new g(e,this)},g.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var i,a,s=this,u=!1;s;){if(e.indexOf(".")>0)for(t=s.view,i=e.split("."),a=0;null!=t&&a<i.length;)a===i.length-1&&(u=o(t,i[a])),t=t[i[a++]];else t=s.view[e],u=o(s.view,e);if(u)break;s=s.parent}n[e]=t}return r(t)&&(t=t.call(this.view)),t},y.prototype.clearCache=function(){this.cache={}},y.prototype.parse=function(t,r){var o=this.cache,a=o[t];return null==a&&(a=o[t]=function(t,r){if(!t)return[];var o,a,s,c=[],g=[],y=[],w=!1,b=!1;function m(){if(w&&!b)for(;y.length;)delete g[y.pop()];else y=[];w=!1,b=!1}function k(e){if("string"==typeof e&&(e=e.split(l,2)),!n(e)||2!==e.length)throw new Error("Invalid tags: "+e);o=new RegExp(i(e[0])+"\\s*"),a=new RegExp("\\s*"+i(e[1])),s=new RegExp("\\s*"+i("}"+e[1]))}k(r||e.tags)
|
|
;for(var x,U,E,T,$,P,j=new v(t);!j.eos();){if(x=j.pos,E=j.scanUntil(o))for(var z=0,C=E.length;z<C;++z)u(T=E.charAt(z))?y.push(g.length):b=!0,g.push(["text",T,x,x+1]),x+=1,"\n"===T&&m();if(!j.scan(o))break;if(w=!0,U=j.scan(d)||"name",j.scan(p),"="===U?(E=j.scanUntil(f),j.scan(f),j.scanUntil(a)):"{"===U?(E=j.scanUntil(s),j.scan(h),j.scanUntil(a),U="&"):E=j.scanUntil(a),!j.scan(a))throw new Error("Unclosed tag at "+j.pos);if($=[U,E,x,j.pos],g.push($),"#"===U||"^"===U)c.push($);else if("/"===U){if(!(P=c.pop()))throw new Error('Unopened section "'+E+'" at '+x);if(P[1]!==E)throw new Error('Unclosed section "'+P[1]+'" at '+x)}else"name"===U||"{"===U||"&"===U?b=!0:"="===U&&k(E)}if(P=c.pop())throw new Error('Unclosed section "'+P[1]+'" at '+j.pos);return function(e){for(var t,n=[],r=n,i=[],o=0,a=e.length;o<a;++o)switch((t=e[o])[0]){case"#":case"^":r.push(t),i.push(t),r=t[4]=[];break;case"/":i.pop()[5]=t[2],r=i.length>0?i[i.length-1][4]:n;break;default:r.push(t)}return n}(function(e){for(var t,n,r=[],i=0,o=e.length;i<o;++i)(t=e[i])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}(g))}(t,r)),a},y.prototype.render=function(e,t,n){var r=this.parse(e),i=t instanceof g?t:new g(t);return this.renderTokens(r,i,n,e)},y.prototype.renderTokens=function(e,t,n,r){for(var i,o,a,s="",u=0,c=e.length;u<c;++u)a=void 0,"#"===(o=(i=e[u])[0])?a=this.renderSection(i,t,n,r):"^"===o?a=this.renderInverted(i,t,n,r):">"===o?a=this.renderPartial(i,t,n,r):"&"===o?a=this.unescapedValue(i,t):"name"===o?a=this.escapedValue(i,t):"text"===o&&(a=this.rawValue(i)),void 0!==a&&(s+=a);return s},y.prototype.renderSection=function(e,t,i,o){var a=this,s="",u=t.lookup(e[1]);if(u){if(n(u))for(var c=0,p=u.length;c<p;++c)s+=this.renderTokens(e[4],t.push(u[c]),i,o);else if("object"==typeof u||"string"==typeof u||"number"==typeof u)s+=this.renderTokens(e[4],t.push(u),i,o);else if(r(u)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(u=u.call(t.view,o.slice(e[3],e[5]),(function(e){return a.render(e,t,i)})))&&(s+=u)}else s+=this.renderTokens(e[4],t,i,o);return s}},y.prototype.renderInverted=function(e,t,r,i){var o=t.lookup(e[1]);if(!o||n(o)&&0===o.length)return this.renderTokens(e[4],t,r,i)},y.prototype.renderPartial=function(e,t,n){if(n){var i=r(n)?n(e[1]):n[e[1]];return null!=i?this.renderTokens(this.parse(i),t,n,i):void 0}},y.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},y.prototype.escapedValue=function(t,n){var r=n.lookup(t[1]);if(null!=r)return e.escape(r)},y.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.2.1",e.tags=["{{","}}"];var w=new y;e.clearCache=function(){return w.clearCache()},e.parse=function(e,t){return w.parse(e,t)},e.render=function(e,t,r){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+(n(i=e)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)');var i;return w.render(e,t,r)},
|
|
e.to_html=function(t,n,i,o){var a=e.render(t,n,i);if(!r(o))return a;o(a)},e.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return c[e]}))},e.Scanner=v,e.Context=g,e.Writer=y},t&&"string"!=typeof t.nodeName?a(t):(i=[t],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o))}}]); |