text: !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASR=e()}}(function(){var e;return function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[a]={exports:{}};e[a][0].call(c.exports,function(t){var r=e[a][1][t];return i(r?r:t)},c,c.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t){t.exports=e("./main.js")},{"./main.js":30}],2:[function(e){var t,r=function(){try{return e("jquery")}catch(t){return window.jQuery}}(),n=r(document),i=r("head"),o=null,a=[],s=0,l="id",u="px",c="JColResizer",d=parseInt,f=Math,p=navigator.userAgent.indexOf("Trident/4.0")>0;try{t=sessionStorage}catch(g){}i.append("<style type='text/css'>  .JColResizer{table-layout:fixed;} .JColResizer td, .JColResizer th{overflow:hidden;padding-left:0!important; padding-right:0!important;}  .JCLRgrips{ height:0px; position:relative;} .JCLRgrip{margin-left:-5px; position:absolute; z-index:5; } .JCLRgrip .JColResizer{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;top:0px} .JCLRLastGrip{position:absolute; width:1px; } .JCLRgripDrag{ border-left:1px dotted black;	}</style>");var h=function(e,t){var n=r(e);if(t.disable)return v(n);var i=n.id=n.attr(l)||c+s++;n.p=t.postbackSafe;if(n.is("table")&&!a[i]){n.addClass(c).attr(l,i).before('<div class="JCLRgrips"/>');n.opt=t;n.g=[];n.c=[];n.w=n.width();n.gc=n.prev();t.marginLeft&&n.gc.css("marginLeft",t.marginLeft);t.marginRight&&n.gc.css("marginRight",t.marginRight);n.cs=d(p?e.cellSpacing||e.currentStyle.borderSpacing:n.css("border-spacing"))||2;n.b=d(p?e.border||e.currentStyle.borderLeftWidth:n.css("border-left-width"))||1;a[i]=n;m(n)}},v=function(e){var t=e.attr(l),e=a[t];if(e&&e.is("table")){e.removeClass(c).gc.remove();delete a[t]}},m=function(e){var n=e.find(">thead>tr>th,>thead>tr>td");n.length||(n=e.find(">tbody>tr:first>th,>tr:first>th,>tbody>tr:first>td, >tr:first>td"));e.cg=e.find("col");e.ln=n.length;e.p&&t&&t[e.id]&&w(e,n);n.each(function(t){var n=r(this),i=r(e.gc.append('<div class="JCLRgrip"></div>')[0].lastChild);i.t=e;i.i=t;i.c=n;n.w=n.width();e.g.push(i);e.c.push(n);n.width(n.w).removeAttr("width");t<e.ln-1?i.bind("touchstart mousedown",j).append(e.opt.gripInnerHtml).append('<div class="'+c+'" style="cursor:'+e.opt.hoverCursor+'"></div>'):i.addClass("JCLRLastGrip").removeClass("JCLRgrip");i.data(c,{i:t,t:e.attr(l)})});e.cg.removeAttr("width");y(e);e.find("td, th").not(n).not("table th, table td").each(function(){r(this).removeAttr("width")})},w=function(e,r){var n,i=0,o=0,a=[];if(r){e.cg.removeAttr("width");if(e.opt.flush){t[e.id]="";return}n=t[e.id].split(";");for(;o<e.ln;o++){a.push(100*n[o]/n[e.ln]+"%");r.eq(o).css("width",a[o])}for(o=0;o<e.ln;o++)e.cg.eq(o).css("width",a[o])}else{t[e.id]="";for(;o<e.c.length;o++){n=e.c[o].width();t[e.id]+=n+";";i+=n}t[e.id]+=i}},y=function(e){e.gc.width(e.w);for(var t=0;t<e.ln;t++){var r=e.c[t];e.g[t].css({left:r.offset().left-e.offset().left+r.outerWidth(!1)+e.cs/2+u,height:e.opt.headerOnly?e.c[0].outerHeight(!1):e.outerHeight(!1)})}},b=function(e,t,r){var n=o.x-o.l,i=e.c[t],a=e.c[t+1],s=i.w+n,l=a.w-n;i.width(s+u);a.width(l+u);e.cg.eq(t).width(s+u);e.cg.eq(t+1).width(l+u);if(r){i.w=s;a.w=l}},x=function(e){if(o){var t=o.t;if(e.originalEvent.touches)var r=e.originalEvent.touches[0].pageX-o.ox+o.l;else var r=e.pageX-o.ox+o.l;var n=t.opt.minWidth,i=o.i,a=1.5*t.cs+n+t.b,s=i==t.ln-1?t.w-a:t.g[i+1].position().left-t.cs-n,l=i?t.g[i-1].position().left+t.cs+n:a;r=f.max(l,f.min(s,r));o.x=r;o.css("left",r+u);if(t.opt.liveDrag){b(t,i);y(t);var c=t.opt.onDrag;if(c){e.currentTarget=t[0];c(e)}}return!1}},k=function(e){n.unbind("touchend."+c+" mouseup."+c).unbind("touchmove."+c+" mousemove."+c);r("head :last-child").remove();if(o){o.removeClass(o.t.opt.draggingClass);var i=o.t,a=i.opt.onResize;if(o.x){b(i,o.i,!0);y(i);if(a){e.currentTarget=i[0];a(e)}}i.p&&t&&w(i);o=null}},j=function(e){var t=r(this).data(c),s=a[t.t],l=s.g[t.i];l.ox=e.originalEvent.touches?e.originalEvent.touches[0].pageX:e.pageX;l.l=l.position().left;n.bind("touchmove."+c+" mousemove."+c,x).bind("touchend."+c+" mouseup."+c,k);i.append("<style type='text/css'>*{cursor:"+s.opt.dragCursor+"!important}</style>");l.addClass(s.opt.draggingClass);o=l;if(s.c[t.i].l)for(var u,d=0;d<s.ln;d++){u=s.c[d];u.l=!1;u.w=u.width()}return!1},C=function(){for(t in a){var e,t=a[t],r=0;t.removeClass(c);if(t.w!=t.width()){t.w=t.width();for(e=0;e<t.ln;e++)r+=t.c[e].w;for(e=0;e<t.ln;e++)t.c[e].css("width",f.round(1e3*t.c[e].w/r)/10+"%").l=!0}y(t.addClass(c))}};r(window).bind("resize."+c,C);r.fn.extend({colResizable:function(e){var t={draggingClass:"JCLRgripDrag",gripInnerHtml:"",liveDrag:!1,minWidth:15,headerOnly:!1,hoverCursor:"e-resize",dragCursor:"e-resize",postbackSafe:!1,flush:!1,marginLeft:null,marginRight:null,disable:!1,onDrag:null,onResize:null},e=r.extend(t,e);return this.each(function(){h(this,e)})}})},{jquery:void 0}],3:[function(e){RegExp.escape=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};var t=function(){try{return e("jquery")}catch(t){return window.jQuery}}();t.csv={defaults:{separator:",",delimiter:'"',headers:!0},hooks:{castToScalar:function(e){var t=/\./;if(isNaN(e))return e;if(t.test(e))return parseFloat(e);var r=parseInt(e);return isNaN(r)?null:r}},parsers:{parse:function(e,t){function r(){l=0;u="";if(t.start&&t.state.rowNum<t.start){s=[];t.state.rowNum++;t.state.colNum=1}else{if(void 0===t.onParseEntry)a.push(s);else{var e=t.onParseEntry(s,t.state);e!==!1&&a.push(e)}s=[];t.end&&t.state.rowNum>=t.end&&(c=!0);t.state.rowNum++;t.state.colNum=1}}function n(){if(void 0===t.onParseValue)s.push(u);else{var e=t.onParseValue(u,t.state);e!==!1&&s.push(e)}u="";l=0;t.state.colNum++}var i=t.separator,o=t.delimiter;t.state.rowNum||(t.state.rowNum=1);t.state.colNum||(t.state.colNum=1);var a=[],s=[],l=0,u="",c=!1,d=RegExp.escape(i),f=RegExp.escape(o),p=/(D|S|\n|\r|[^DS\r\n]+)/,g=p.source;g=g.replace(/S/g,d);g=g.replace(/D/g,f);p=RegExp(g,"gm");e.replace(p,function(e){if(!c)switch(l){case 0:if(e===i){u+="";n();break}if(e===o){l=1;break}if("\n"===e){n();r();break}if(/^\r$/.test(e))break;u+=e;l=3;break;case 1:if(e===o){l=2;break}u+=e;l=1;break;case 2:if(e===o){u+=e;l=1;break}if(e===i){n();break}if("\n"===e){n();r();break}if(/^\r$/.test(e))break;throw new Error("CSVDataError: Illegal State [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");case 3:if(e===i){n();break}if("\n"===e){n();r();break}if(/^\r$/.test(e))break;if(e===o)throw new Error("CSVDataError: Illegal Quote [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");throw new Error("CSVDataError: Illegal Data [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");default:throw new Error("CSVDataError: Unknown State [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]")}});if(0!==s.length){n();r()}return a},splitLines:function(e,t){function r(){a=0;if(t.start&&t.state.rowNum<t.start){s="";t.state.rowNum++}else{if(void 0===t.onParseEntry)o.push(s);else{var e=t.onParseEntry(s,t.state);e!==!1&&o.push(e)}s="";t.end&&t.state.rowNum>=t.end&&(l=!0);t.state.rowNum++}}var n=t.separator,i=t.delimiter;t.state.rowNum||(t.state.rowNum=1);var o=[],a=0,s="",l=!1,u=RegExp.escape(n),c=RegExp.escape(i),d=/(D|S|\n|\r|[^DS\r\n]+)/,f=d.source;f=f.replace(/S/g,u);f=f.replace(/D/g,c);d=RegExp(f,"gm");e.replace(d,function(e){if(!l)switch(a){case 0:if(e===n){s+=e;a=0;break}if(e===i){s+=e;a=1;break}if("\n"===e){r();break}if(/^\r$/.test(e))break;s+=e;a=3;break;case 1:if(e===i){s+=e;a=2;break}s+=e;a=1;break;case 2:var o=s.substr(s.length-1);if(e===i&&o===i){s+=e;a=1;break}if(e===n){s+=e;a=0;break}if("\n"===e){r();break}if("\r"===e)break;throw new Error("CSVDataError: Illegal state [Row:"+t.state.rowNum+"]");case 3:if(e===n){s+=e;a=0;break}if("\n"===e){r();break}if("\r"===e)break;if(e===i)throw new Error("CSVDataError: Illegal quote [Row:"+t.state.rowNum+"]");throw new Error("CSVDataError: Illegal state [Row:"+t.state.rowNum+"]");default:throw new Error("CSVDataError: Unknown state [Row:"+t.state.rowNum+"]")}});""!==s&&r();return o},parseEntry:function(e,t){function r(){if(void 0===t.onParseValue)o.push(s);else{var e=t.onParseValue(s,t.state);e!==!1&&o.push(e)}s="";a=0;t.state.colNum++}var n=t.separator,i=t.delimiter;t.state.rowNum||(t.state.rowNum=1);t.state.colNum||(t.state.colNum=1);var o=[],a=0,s="";if(!t.match){var l=RegExp.escape(n),u=RegExp.escape(i),c=/(D|S|\n|\r|[^DS\r\n]+)/,d=c.source;d=d.replace(/S/g,l);d=d.replace(/D/g,u);t.match=RegExp(d,"gm")}e.replace(t.match,function(e){switch(a){case 0:if(e===n){s+="";r();break}if(e===i){a=1;break}if("\n"===e||"\r"===e)break;s+=e;a=3;break;case 1:if(e===i){a=2;break}s+=e;a=1;break;case 2:if(e===i){s+=e;a=1;break}if(e===n){r();break}if("\n"===e||"\r"===e)break;throw new Error("CSVDataError: Illegal State [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");case 3:if(e===n){r();break}if("\n"===e||"\r"===e)break;if(e===i)throw new Error("CSVDataError: Illegal Quote [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");throw new Error("CSVDataError: Illegal Data [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]");default:throw new Error("CSVDataError: Unknown State [Row:"+t.state.rowNum+"][Col:"+t.state.colNum+"]")}});r();return o}},toArray:function(e,r,n){var r=void 0!==r?r:{},i={};i.callback=void 0!==n&&"function"==typeof n?n:!1;i.separator="separator"in r?r.separator:t.csv.defaults.separator;i.delimiter="delimiter"in r?r.delimiter:t.csv.defaults.delimiter;var o=void 0!==r.state?r.state:{},r={delimiter:i.delimiter,separator:i.separator,onParseEntry:r.onParseEntry,onParseValue:r.onParseValue,state:o},a=t.csv.parsers.parseEntry(e,r);if(!i.callback)return a;i.callback("",a);return void 0},toArrays:function(e,r,n){var r=void 0!==r?r:{},i={};i.callback=void 0!==n&&"function"==typeof n?n:!1;i.separator="separator"in r?r.separator:t.csv.defaults.separator;i.delimiter="delimiter"in r?r.delimiter:t.csv.defaults.delimiter;var o=[],r={delimiter:i.delimiter,separator:i.separator,onParseEntry:r.onParseEntry,onParseValue:r.onParseValue,start:r.start,end:r.end,state:{rowNum:1,colNum:1}};o=t.csv.parsers.parse(e,r);if(!i.callback)return o;i.callback("",o);return void 0},toObjects:function(e,r,n){var r=void 0!==r?r:{},i={};i.callback=void 0!==n&&"function"==typeof n?n:!1;i.separator="separator"in r?r.separator:t.csv.defaults.separator;i.delimiter="delimiter"in r?r.delimiter:t.csv.defaults.delimiter;i.headers="headers"in r?r.headers:t.csv.defaults.headers;r.start="start"in r?r.start:1;i.headers&&r.start++;r.end&&i.headers&&r.end++;var o=[],a=[],r={delimiter:i.delimiter,separator:i.separator,onParseEntry:r.onParseEntry,onParseValue:r.onParseValue,start:r.start,end:r.end,state:{rowNum:1,colNum:1},match:!1},s={delimiter:i.delimiter,separator:i.separator,start:1,end:1,state:{rowNum:1,colNum:1}},l=t.csv.parsers.splitLines(e,s),u=t.csv.toArray(l[0],r),o=t.csv.parsers.splitLines(e,r);r.state.colNum=1;r.state.rowNum=u?2:1;for(var c=0,d=o.length;d>c;c++){var f=t.csv.toArray(o[c],r),p={};for(var g in u)p[u[g]]=f[g];a.push(p);r.state.rowNum++}if(!i.callback)return a;i.callback("",a);return void 0},fromArrays:function(e,r,n){var r=void 0!==r?r:{},o={};o.callback=void 0!==n&&"function"==typeof n?n:!1;o.separator="separator"in r?r.separator:t.csv.defaults.separator;o.delimiter="delimiter"in r?r.delimiter:t.csv.defaults.delimiter;o.escaper="escaper"in r?r.escaper:t.csv.defaults.escaper;o.experimental="experimental"in r?r.experimental:!1;if(!o.experimental)throw new Error("not implemented");var a=[];for(i in e)a.push(e[i]);if(!o.callback)return a;o.callback("",a);return void 0},fromObjects2CSV:function(e,r,n){var r=void 0!==r?r:{},o={};o.callback=void 0!==n&&"function"==typeof n?n:!1;o.separator="separator"in r?r.separator:t.csv.defaults.separator;o.delimiter="delimiter"in r?r.delimiter:t.csv.defaults.delimiter;o.experimental="experimental"in r?r.experimental:!1;if(!o.experimental)throw new Error("not implemented");var a=[];for(i in e)a.push(arrays[i]);if(!o.callback)return a;o.callback("",a);return void 0}};t.csvEntry2Array=t.csv.toArray;t.csv2Array=t.csv.toArrays;t.csv2Dictionary=t.csv.toObjects},{jquery:void 0}],4:[function(e,t){function r(){this._events=this._events||{};this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}t.exports=r;r.EventEmitter=r;r.prototype._events=void 0;r.prototype._maxListeners=void 0;r.defaultMaxListeners=10;r.prototype.setMaxListeners=function(e){if(!i(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");this._maxListeners=e;return this};r.prototype.emit=function(e){var t,r,i,s,l,u;this._events||(this._events={});if("error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){t=arguments[1];if(t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}r=this._events[e];if(a(r))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=arguments.length;s=new Array(i-1);for(l=1;i>l;l++)s[l-1]=arguments[l];r.apply(this,s)}else if(o(r)){i=arguments.length;s=new Array(i-1);for(l=1;i>l;l++)s[l-1]=arguments[l];u=r.slice();i=u.length;for(l=0;i>l;l++)u[l].apply(this,s)}return!0};r.prototype.addListener=function(e,t){var i;if(!n(t))throw TypeError("listener must be a function");this._events||(this._events={});this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t);this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t;if(o(this._events[e])&&!this._events[e].warned){var i;i=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners;if(i&&i>0&&this._events[e].length>i){this._events[e].warned=!0;console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length);"function"==typeof console.trace&&console.trace()}}return this};r.prototype.on=r.prototype.addListener;r.prototype.once=function(e,t){function r(){this.removeListener(e,r);if(!i){i=!0;t.apply(this,arguments)}}if(!n(t))throw TypeError("listener must be a function");var i=!1;r.listener=t;this.on(e,r);return this};r.prototype.removeListener=function(e,t){var r,i,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;r=this._events[e];a=r.length;i=-1;if(r===t||n(r.listener)&&r.listener===t){delete this._events[e];this._events.removeListener&&this.emit("removeListener",e,t)}else if(o(r)){for(s=a;s-->0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(0>i)return this;if(1===r.length){r.length=0;delete this._events[e]}else r.splice(i,1);this._events.removeListener&&this.emit("removeListener",e,t)}return this};r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener){0===arguments.length?this._events={}:this._events[e]&&delete this._events[e];return this}if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);this.removeAllListeners("removeListener");this._events={};return this}r=this._events[e];if(n(r))this.removeListener(e,r);else for(;r.length;)this.removeListener(e,r[r.length-1]);delete this._events[e];return this};r.prototype.listeners=function(e){var t;t=this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[];return t};r.listenerCount=function(e,t){var r;r=e._events&&e._events[t]?n(e._events[t])?1:e._events[t].length:0;return r}},{}],5:[function(t,r,n){(function(i){"object"==typeof n&&"object"==typeof r?i(function(){try{return t("codemirror")}catch(e){return window.CodeMirror}}()):"function"==typeof e&&e.amd?e(["../../lib/codemirror"],i):i(CodeMirror)})(function(e){function t(e,t,n,i){var o=e.getLineHandle(t.line),l=t.ch-1,u=l>=0&&s[o.text.charAt(l)]||s[o.text.charAt(++l)];if(!u)return null;var c=">"==u.charAt(1)?1:-1;if(n&&c>0!=(l==t.ch))return null;var d=e.getTokenTypeAt(a(t.line,l+1)),f=r(e,a(t.line,l+(c>0?1:0)),c,d||null,i);return null==f?null:{from:a(t.line,l),to:f&&f.pos,match:f&&f.ch==u.charAt(0),forward:c>0}}function r(e,t,r,n,i){for(var o=i&&i.maxScanLineLength||1e4,l=i&&i.maxScanLines||1e3,u=[],c=i&&i.bracketRegex?i.bracketRegex:/[(){}[\]]/,d=r>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),f=t.line;f!=d;f+=r){var p=e.getLine(f);if(p){var g=r>0?0:p.length-1,h=r>0?p.length:-1;if(!(p.length>o)){f==t.line&&(g=t.ch-(0>r?1:0));for(;g!=h;g+=r){var v=p.charAt(g);if(c.test(v)&&(void 0===n||e.getTokenTypeAt(a(f,g+1))==n)){var m=s[v];if(">"==m.charAt(1)==r>0)u.push(v);else{if(!u.length)return{pos:a(f,g),ch:v};u.pop()}}}}}}return f-r==(r>0?e.lastLine():e.firstLine())?!1:null}function n(e,r,n){for(var i=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],l=e.listSelections(),u=0;u<l.length;u++){var c=l[u].empty()&&t(e,l[u].head,!1,n);if(c&&e.getLine(c.from.line).length<=i){var d=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(c.from,a(c.from.line,c.from.ch+1),{className:d}));c.to&&e.getLine(c.to.line).length<=i&&s.push(e.markText(c.to,a(c.to.line,c.to.ch+1),{className:d}))}}if(s.length){o&&e.state.focused&&e.display.input.focus();var f=function(){e.operation(function(){for(var e=0;e<s.length;e++)s[e].clear()})};if(!r)return f;setTimeout(f,800)}}function i(e){e.operation(function(){if(l){l();l=null}l=n(e,!1,e.state.matchBrackets)})}var o=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),a=e.Pos,s={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},l=null;e.defineOption("matchBrackets",!1,function(t,r,n){n&&n!=e.Init&&t.off("cursorActivity",i);if(r){t.state.matchBrackets="object"==typeof r?r:{};t.on("cursorActivity",i)}});e.defineExtension("matchBrackets",function(){n(this,!0)});e.defineExtension("findMatchingBracket",function(e,r,n){return t(this,e,r,n)});e.defineExtension("scanForBracket",function(e,t,n,i){return r(this,e,t,n,i)})})},{codemirror:void 0}],6:[function(t,r,n){(function(i){"object"==typeof n&&"object"==typeof r?i(function(){try{return t("codemirror")}catch(e){return window.CodeMirror}}()):"function"==typeof e&&e.amd?e(["../../lib/codemirror"],i):i(CodeMirror)})(function(e){"use strict";e.registerHelper("fold","brace",function(t,r){function n(n){for(var i=r.ch,l=0;;){var u=0>=i?-1:s.lastIndexOf(n,i-1);if(-1!=u){if(1==l&&u<r.ch)break;o=t.getTokenTypeAt(e.Pos(a,u+1));if(!/^(comment|string)/.test(o))return u+1;i=u-1}else{if(1==l)break;l=1;i=s.length}}}var i,o,a=r.line,s=t.getLine(a),l="{",u="}",i=n("{");if(null==i){l="[",u="]";i=n("[")}if(null!=i){var c,d,f=1,p=t.lastLine();e:for(var g=a;p>=g;++g)for(var h=t.getLine(g),v=g==a?i:0;;){var m=h.indexOf(l,v),w=h.indexOf(u,v);0>m&&(m=h.length);0>w&&(w=h.length);v=Math.min(m,w);if(v==h.length)break;if(t.getTokenTypeAt(e.Pos(g,v+1))==o)if(v==m)++f;else if(!--f){c=g;d=v;break e}++v}if(null!=c&&(a!=c||d!=i))return{from:e.Pos(a,i),to:e.Pos(c,d)}}});e.registerHelper("fold","import",function(t,r){function n(r){if(r<t.firstLine()||r>t.lastLine())return null;var n=t.getTokenAt(e.Pos(r,1));/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(r,n.end+1)));if("keyword"!=n.type||"import"!=n.string)return null;for(var i=r,o=Math.min(t.lastLine(),r+10);o>=i;++i){var a=t.getLine(i),s=a.indexOf(";");if(-1!=s)return{startCh:n.end,end:e.Pos(i,s)}}}var i,r=r.line,o=n(r);if(!o||n(r-1)||(i=n(r-2))&&i.end.line==r-1)return null;for(var a=o.end;;){var s=n(a.line+1);if(null==s)break;a=s.end}return{from:t.clipPos(e.Pos(r,o.startCh+1)),to:a}});e.registerHelper("fold","include",function(t,r){function n(r){if(r<t.firstLine()||r>t.lastLine())return null;var n=t.getTokenAt(e.Pos(r,1));/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(r,n.end+1)));return"meta"==n.type&&"#include"==n.string.slice(0,8)?n.start+8:void 0}var r=r.line,i=n(r);if(null==i||null!=n(r-1))return null;for(var o=r;;){var a=n(o+1);if(null==a)break;++o}return{from:e.Pos(r,i+1),to:t.clipPos(e.Pos(o))}})})},{codemirror:void 0}],7:[function(t,r,n){(function(i){"object"==typeof n&&"object"==typeof r?i(function(){try{return t("codemirror")}catch(e){return window.CodeMirror}}()):"function"==typeof e&&e.amd?e(["../../lib/codemirror"],i):i(CodeMirror)})(function(e){"use strict";function t(t,i,o,a){function s(e){var r=l(t,i);if(!r||r.to.line-r.from.line<u)return null;for(var n=t.findMarksAt(r.from),o=0;o<n.length;++o)if(n[o].__isFold&&"fold"!==a){if(!e)return null;r.cleared=!0;n[o].clear()}return r}if(o&&o.call){var l=o;o=null}else var l=n(t,o,"rangeFinder");"number"==typeof i&&(i=e.Pos(i,0));var u=n(t,o,"minFoldSize"),c=s(!0);if(n(t,o,"scanUp"))for(;!c&&i.line>t.firstLine();){i=e.Pos(i.line-1,0);c=s(!1)}if(c&&!c.cleared&&"unfold"!==a){var d=r(t,o);e.on(d,"mousedown",function(t){f.clear();e.e_preventDefault(t)});var f=t.markText(c.from,c.to,{replacedWith:d,clearOnEnter:!0,__isFold:!0});f.on("clear",function(r,n){e.signal(t,"unfold",t,r,n)});e.signal(t,"fold",t,c.from,c.to)}}function r(e,t){var r=n(e,t,"widget");if("string"==typeof r){var i=document.createTextNode(r);r=document.createElement("span");r.appendChild(i);r.className="CodeMirror-foldmarker"}return r}function n(e,t,r){if(t&&void 0!==t[r])return t[r];var n=e.options.foldOptions;return n&&void 0!==n[r]?n[r]:i[r]}e.newFoldFunction=function(e,r){return function(n,i){t(n,i,{rangeFinder:e,widget:r})}};e.defineExtension("foldCode",function(e,r,n){t(this,e,r,n)});e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),r=0;r<t.length;++r)if(t[r].__isFold)return!0});e.commands.toggleFold=function(e){e.foldCode(e.getCursor())};e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")};e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")};e.commands.foldAll=function(t){t.operation(function(){for(var r=t.firstLine(),n=t.lastLine();n>=r;r++)t.foldCode(e.Pos(r,0),null,"fold")})};e.commands.unfoldAll=function(t){t.operation(function(){for(var r=t.firstLine(),n=t.lastLine();n>=r;r++)t.foldCode(e.Pos(r,0),null,"unfold")})};e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,r){for(var n=0;n<e.length;++n){var i=e[n](t,r);if(i)return i}}});e.registerHelper("fold","auto",function(e,t){for(var r=e.getHelpers(t,"fold"),n=0;n<r.length;n++){var i=r[n](e,t);if(i)return i}});var i={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1};e.defineOption("foldOptions",null);e.defineExtension("foldOption",function(e,t){return n(this,e,t)})})},{codemirror:void 0}],8:[function(t,r,n){(function(i){"object"==typeof n&&"object"==typeof r?i(function(){try{return t("codemirror")}catch(e){return window.CodeMirror}}(),t("./foldcode")):"function"==typeof e&&e.amd?e(["../../lib/codemirror","./foldcode"],i):i(CodeMirror)})(function(e){"use strict";function t(e){this.options=e;this.from=this.to=0}function r(e){e===!0&&(e={});null==e.gutter&&(e.gutter="CodeMirror-foldgutter");null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open");null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded");return e}function n(e,t){for(var r=e.findMarksAt(d(t)),n=0;n<r.length;++n)if(r[n].__isFold&&r[n].find().from.line==t)return!0}function i(e){if("string"==typeof e){var t=document.createElement("div");t.className=e+" CodeMirror-guttermarker-subtle";return t}return e.cloneNode(!0)}function o(e,t,r){var o=e.state.foldGutter.options,a=t,s=e.foldOption(o,"minFoldSize"),l=e.foldOption(o,"rangeFinder");e.eachLine(t,r,function(t){var r=null;if(n(e,a))r=i(o.indicatorFolded);else{var u=d(a,0),c=l&&l(e,u);c&&c.to.line-c.from.line>=s&&(r=i(o.indicatorOpen))}e.setGutterMarker(t,o.gutter,r);++a})}function a(e){var t=e.getViewport(),r=e.state.foldGutter;if(r){e.operation(function(){o(e,t.from,t.to)});r.from=t.from;r.to=t.to}}function s(e,t,r){var n=e.state.foldGutter.options;r==n.gutter&&e.foldCode(d(t,0),n.rangeFinder)}function l(e){var t=e.state.foldGutter,r=e.state.foldGutter.options;t.from=t.to=0;clearTimeout(t.changeUpdate);t.changeUpdate=setTimeout(function(){a(e)},r.foldOnChangeTimeSpan||600)}function u(e){var t=e.state.foldGutter,r=e.state.foldGutter.options;clearTimeout(t.changeUpdate);t.changeUpdate=setTimeout(function(){var r=e.getViewport();t.from==t.to||r.from-t.to>20||t.from-r.to>20?a(e):e.operation(function(){if(r.from<t.from){o(e,r.from,t.from);t.from=r.from}if(r.to>t.to){o(e,t.to,r.to);t.to=r.to}})},r.updateViewportTimeSpan||400)}function c(e,t){var r=e.state.foldGutter,n=t.line;n>=r.from&&n<r.to&&o(e,n,n+1)}e.defineOption("foldGutter",!1,function(n,i,o){if(o&&o!=e.Init){n.clearGutter(n.state.foldGutter.options.gutter);n.state.foldGutter=null;n.off("gutterClick",s);n.off("change",l);n.off("viewportChange",u);n.off("fold",c);n.off("unfold",c);n.off("swapDoc",a)}if(i){n.state.foldGutter=new t(r(i));a(n);n.on("gutterClick",s);n.on("change",l);n.on("viewportChange",u);n.on("fold",c);n.on("unfold",c);n.on("swapDoc",a)}});var d=e.Pos})},{"./foldcode":7,codemirror:void 0}],9:[function(t,r,n){(function(i){"object"==typeof n&&"object"==typeof r?i(function(){try{return t("codemirror")}catch(e){return window.CodeMirror}}()):"function"==typeof e&&e.amd?e(["../../lib/codemirror"],i):i(CodeMirror)})(function(e){"use strict";function t(e,t){return e.line-t.line||e.ch-t.ch}function r(e,t,r,n){this.line=t;this.ch=r;this.cm=e;this.text=e.getLine(t);this.min=n?n.from:e.firstLine();this.max=n?n.to-1:e.lastLine()}function n(e,t){var r=e.cm.getTokenTypeAt(f(e.line,t));return r&&/\btag\b/.test(r)}function i(e){if(!(e.line>=e.max)){e.ch=0;e.text=e.cm.getLine(++e.line);return!0}}function o(e){if(!(e.line<=e.min)){e.text=e.cm.getLine(--e.line);e.ch=e.text.length;return!0}}function a(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(i(e))continue;return}if(n(e,t+1)){var r=e.text.lastIndexOf("/",t),o=r>-1&&!/\S/.test(e.text.slice(r+1,t));e.ch=t+1;return o?"selfClose":"regular"}e.ch=t+1}}function s(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(o(e))continue;return}if(n(e,t+1)){h.lastIndex=t;e.ch=t;var r=h.exec(e.text);if(r&&r.index==t)return r}else e.ch=t}}function l(e){for(;;){h.lastIndex=e.ch;var t=h.exec(e.text);if(!t){if(i(e))continue;return}if(n(e,t.index+1)){e.ch=t.index+t[0].length;return t}e.ch=t.index+1}}function u(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(o(e))continue;return}if(n(e,t+1)){var r=e.text.lastIndexOf("/",t),i=r>-1&&!/\S/.test(e.text.slice(r+1,t));e.ch=t+1;return i?"selfClose":"regular"}e.ch=t}}function c(e,t){for(var r=[];;){var n,i=l(e),o=e.line,s=e.ch-(i?i[0].length:0);if(!i||!(n=a(e)))return;if("selfClose"!=n)if(i[1]){for(var u=r.length-1;u>=0;--u)if(r[u]==i[2]){r.length=u;break}if(0>u&&(!t||t==i[2]))return{tag:i[2],from:f(o,s),to:f(e.line,e.ch)}}else r.push(i[2])}}function d(e,t){for(var r=[];;){var n=u(e);if(!n)return;if("selfClose"!=n){var i=e.line,o=e.ch,a=s(e);if(!a)return;if(a[1])r.push(a[2]);else{for(var l=r.length-1;l>=0;--l)if(r[l]==a[2]){r.length=l;break}if(0>l&&(!t||t==a[2]))return{tag:a[2],from:f(e.line,e.ch),to:f(i,o)}}}else s(e)}}var f=e.Pos,p="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",g=p+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",h=new RegExp("<(/?)(["+p+"]["+g+"]*)","g");e.registerHelper("fold","xml",function(e,t){for(var n=new r(e,t.line,0);;){var i,o=l(n);if(!o||n.line!=t.line||!(i=a(n)))return;if(!o[1]&&"selfClose"!=i){var t=f(n.line,n.ch),s=c(n,o[2]);return s&&{from:t,to:s.from}}}});e.findMatchingTag=function(e,n,i){var o=new r(e,n.line,n.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var l=a(o),u=l&&f(o.line,o.ch),p=l&&s(o);if(l&&p&&!(t(o,n)>0)){var g={from:f(o.line,o.ch),to:u,tag:p[2]};if("selfClose"==l)return{open:g,close:null,at:"open"};if(p[1])return{open:d(o,p[2]),close:g,at:"close"};o=new r(e,u.line,u.ch,i);return{open:g,close:c(o,p[2]),at:"open"}}}};e.findEnclosingTag=function(e,t,n){for(var i=new r(e,t.line,t.ch,n);;){var o=d(i);if(!o)break;var a=new r(e,t.line,t.ch,n),s=c(a,o.tag);if(s)return{open:o,close:s}}};e.scanForClosingTag=function(e,t,n,i){var o=new r(e,t.line,t.ch,i?{from:0,to:i}:null);return c(o,n)}})},{codemirror:void 0}],10:[function(t,r,n){(function(i){"object"==typeof n&&"object"==typeof r?i(function(){try{return t("codemirror")}catch(e){return window.CodeMirror}}()):"function"==typeof e&&e.amd?e(["../../lib/codemirror"],i):i(CodeMirror)})(function(e){"use strict";e.defineMode("javascript",function(t,r){function n(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function i(e,t,r){ht=e;vt=r;return t}function o(e,t){var r=e.next();if('"'==r||"'"==r){t.tokenize=a(r);return t.tokenize(e,t)}if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return i("number","number");if("."==r&&e.match(".."))return i("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return i(r);if("="==r&&e.eat(">"))return i("=>","operator");if("0"==r&&e.eat(/x/i)){e.eatWhile(/[\da-f]/i);return i("number","number")}if(/\d/.test(r)){e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return i("number","number")}if("/"==r){if(e.eat("*")){t.tokenize=s;return s(e,t)}if(e.eat("/")){e.skipToEnd();return i("comment","comment")}if("operator"==t.lastType||"keyword c"==t.lastType||"sof"==t.lastType||/^[\[{}\(,;:]$/.test(t.lastType)){n(e);e.eatWhile(/[gimy]/);return i("regexp","string-2")}e.eatWhile(Ct);return i("operator","operator",e.current())}if("`"==r){t.tokenize=l;return l(e,t)}if("#"==r){e.skipToEnd();return i("error","error")}if(Ct.test(r)){e.eatWhile(Ct);return i("operator","operator",e.current())}if(kt.test(r)){e.eatWhile(kt);var o=e.current(),u=jt.propertyIsEnumerable(o)&&jt[o];return u&&"."!=t.lastType?i(u.type,u.style,o):i("variable","variable",o)}}function a(e){return function(t,r){var n,a=!1;if(yt&&"@"==t.peek()&&t.match(Lt)){r.tokenize=o;return i("jsonld-keyword","meta")}for(;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;a||(r.tokenize=o);return i("string","string")}}function s(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=o;break}n="*"==r}return i("comment","comment")}function l(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=o;break}n=!n&&"\\"==r}return i("quasi","string-2",e.current())}function u(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(0>r)){for(var n=0,i=!1,o=r-1;o>=0;--o){var a=e.string.charAt(o),s=Tt.indexOf(a);if(s>=0&&3>s){if(!n){++o;break}if(0==--n)break}else if(s>=3&&6>s)++n;else if(kt.test(a))i=!0;else{if(/["'\/]/.test(a))return;if(i&&!n){++o;break}}}i&&!n&&(t.fatArrowAt=o)}}function c(e,t,r,n,i,o){this.indented=e;this.column=t;this.type=r;this.prev=i;this.info=o;null!=n&&(this.align=n)}function d(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function f(e,t,r,n,i){var o=e.cc;Et.state=e;Et.stream=i;Et.marked=null,Et.cc=o;Et.style=t;e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);for(;;){var a=o.length?o.pop():bt?k:x;if(a(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Et.marked?Et.marked:"variable"==r&&d(e,n)?"variable-2":t}}}function p(){for(var e=arguments.length-1;e>=0;e--)Et.cc.push(arguments[e])}function g(){p.apply(null,arguments);return!0}function h(e){function t(t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}var n=Et.state;if(n.context){Et.marked="def";if(t(n.localVars))return;n.localVars={name:e,next:n.localVars}
  }else{if(t(n.globalVars))return;r.globalVars&&(n.globalVars={name:e,next:n.globalVars})}}function v(){Et.state.context={prev:Et.state.context,vars:Et.state.localVars};Et.state.localVars=Mt}function m(){Et.state.localVars=Et.state.context.vars;Et.state.context=Et.state.context.prev}function w(e,t){var r=function(){var r=Et.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var i=r.lexical;i&&")"==i.type&&i.align;i=i.prev)n=i.indented;r.lexical=new c(n,Et.stream.column(),e,null,r.lexical,t)};r.lex=!0;return r}function y(){var e=Et.state;if(e.lexical.prev){")"==e.lexical.type&&(e.indented=e.lexical.indented);e.lexical=e.lexical.prev}}function b(e){function t(r){return r==e?g():";"==e?p():g(t)}return t}function x(e,t){if("var"==e)return g(w("vardef",t.length),V,b(";"),y);if("keyword a"==e)return g(w("form"),k,x,y);if("keyword b"==e)return g(w("form"),x,y);if("{"==e)return g(w("}"),U,y);if(";"==e)return g();if("if"==e){"else"==Et.state.lexical.info&&Et.state.cc[Et.state.cc.length-1]==y&&Et.state.cc.pop()();return g(w("form"),k,x,y,X)}return"function"==e?g(et):"for"==e?g(w("form"),J,x,y):"variable"==e?g(w("stat"),N):"switch"==e?g(w("form"),k,w("}","switch"),b("{"),U,y,y):"case"==e?g(k,b(":")):"default"==e?g(b(":")):"catch"==e?g(w("form"),v,b("("),tt,b(")"),x,y,m):"module"==e?g(w("form"),v,at,m,y):"class"==e?g(w("form"),rt,y):"export"==e?g(w("form"),st,y):"import"==e?g(w("form"),lt,y):p(w("stat"),k,b(";"),y)}function k(e){return C(e,!1)}function j(e){return C(e,!0)}function C(e,t){if(Et.state.fatArrowAt==Et.stream.start){var r=t?R:A;if("("==e)return g(v,w(")"),I(G,")"),y,b("=>"),r,m);if("variable"==e)return p(v,G,b("=>"),r,m)}var n=t?E:S;return St.hasOwnProperty(e)?g(n):"function"==e?g(et,n):"keyword c"==e?g(t?T:L):"("==e?g(w(")"),L,pt,b(")"),y,n):"operator"==e||"spread"==e?g(t?j:k):"["==e?g(w("]"),dt,y,n):"{"==e?O(q,"}",null,n):"quasi"==e?p(M,n):g()}function L(e){return e.match(/[;\}\)\],]/)?p():p(k)}function T(e){return e.match(/[;\}\)\],]/)?p():p(j)}function S(e,t){return","==e?g(k):E(e,t,!1)}function E(e,t,r){var n=0==r?S:E,i=0==r?k:j;return"=>"==e?g(v,r?R:A,m):"operator"==e?/\+\+|--/.test(t)?g(n):"?"==t?g(k,b(":"),i):g(i):"quasi"==e?p(M,n):";"!=e?"("==e?O(j,")","call",n):"."==e?g(D,n):"["==e?g(w("]"),L,b("]"),y,n):void 0:void 0}function M(e,t){return"quasi"!=e?p():"${"!=t.slice(t.length-2)?g(M):g(k,_)}function _(e){if("}"==e){Et.marked="string-2";Et.state.tokenize=l;return g(M)}}function A(e){u(Et.stream,Et.state);return p("{"==e?x:k)}function R(e){u(Et.stream,Et.state);return p("{"==e?x:j)}function N(e){return":"==e?g(y,x):p(S,b(";"),y)}function D(e){if("variable"==e){Et.marked="property";return g()}}function q(e,t){if("variable"==e||"keyword"==Et.style){Et.marked="property";return g("get"==t||"set"==t?z:P)}if("number"==e||"string"==e){Et.marked=yt?"property":Et.style+" property";return g(P)}return"jsonld-keyword"==e?g(P):"["==e?g(k,b("]"),P):void 0}function z(e){if("variable"!=e)return p(P);Et.marked="property";return g(et)}function P(e){return":"==e?g(j):"("==e?p(et):void 0}function I(e,t){function r(n){if(","==n){var i=Et.state.lexical;"call"==i.info&&(i.pos=(i.pos||0)+1);return g(e,r)}return n==t?g():g(b(t))}return function(n){return n==t?g():p(e,r)}}function O(e,t,r){for(var n=3;n<arguments.length;n++)Et.cc.push(arguments[n]);return g(w(t,r),I(e,t),y)}function U(e){return"}"==e?g():p(x,U)}function F(e){return xt&&":"==e?g(H):void 0}function H(e){if("variable"==e){Et.marked="variable-3";return g()}}function V(){return p(G,F,B,Q)}function G(e,t){if("variable"==e){h(t);return g()}return"["==e?O(G,"]"):"{"==e?O(W,"}"):void 0}function W(e,t){if("variable"==e&&!Et.stream.match(/^\s*:/,!1)){h(t);return g(B)}"variable"==e&&(Et.marked="property");return g(b(":"),G,B)}function B(e,t){return"="==t?g(j):void 0}function Q(e){return","==e?g(V):void 0}function X(e,t){return"keyword b"==e&&"else"==t?g(w("form","else"),x,y):void 0}function J(e){return"("==e?g(w(")"),Y,b(")"),y):void 0}function Y(e){return"var"==e?g(V,b(";"),K):";"==e?g(K):"variable"==e?g($):p(k,b(";"),K)}function $(e,t){if("in"==t||"of"==t){Et.marked="keyword";return g(k)}return g(S,K)}function K(e,t){if(";"==e)return g(Z);if("in"==t||"of"==t){Et.marked="keyword";return g(k)}return p(k,b(";"),Z)}function Z(e){")"!=e&&g(k)}function et(e,t){if("*"==t){Et.marked="keyword";return g(et)}if("variable"==e){h(t);return g(et)}return"("==e?g(v,w(")"),I(tt,")"),y,x,m):void 0}function tt(e){return"spread"==e?g(tt):p(G,F)}function rt(e,t){if("variable"==e){h(t);return g(nt)}}function nt(e,t){return"extends"==t?g(k,nt):"{"==e?g(w("}"),it,y):void 0}function it(e,t){if("variable"==e||"keyword"==Et.style){Et.marked="property";return"get"==t||"set"==t?g(ot,et,it):g(et,it)}if("*"==t){Et.marked="keyword";return g(it)}return";"==e?g(it):"}"==e?g():void 0}function ot(e){if("variable"!=e)return p();Et.marked="property";return g()}function at(e,t){if("string"==e)return g(x);if("variable"==e){h(t);return g(ct)}}function st(e,t){if("*"==t){Et.marked="keyword";return g(ct,b(";"))}if("default"==t){Et.marked="keyword";return g(k,b(";"))}return p(x)}function lt(e){return"string"==e?g():p(ut,ct)}function ut(e,t){if("{"==e)return O(ut,"}");"variable"==e&&h(t);return g()}function ct(e,t){if("from"==t){Et.marked="keyword";return g(k)}}function dt(e){return"]"==e?g():p(j,ft)}function ft(e){return"for"==e?p(pt,b("]")):","==e?g(I(T,"]")):p(I(j,"]"))}function pt(e){return"for"==e?g(J,pt):"if"==e?g(k,pt):void 0}function gt(e,t){return"operator"==e.lastType||","==e.lastType||Ct.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}var ht,vt,mt=t.indentUnit,wt=r.statementIndent,yt=r.jsonld,bt=r.json||yt,xt=r.typescript,kt=r.wordCharacters||/[\w$\xa1-\uffff]/,jt=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),i=e("operator"),o={type:"atom",style:"atom"},a={"if":e("if"),"while":t,"with":t,"else":r,"do":r,"try":r,"finally":r,"return":n,"break":n,"continue":n,"new":n,"delete":n,"throw":n,"debugger":n,"var":e("var"),"const":e("var"),let:e("var"),"function":e("function"),"catch":e("catch"),"for":e("for"),"switch":e("switch"),"case":e("case"),"default":e("default"),"in":i,"typeof":i,"instanceof":i,"true":o,"false":o,"null":o,undefined:o,NaN:o,Infinity:o,"this":e("this"),module:e("module"),"class":e("class"),"super":e("atom"),"yield":n,"export":e("export"),"import":e("import"),"extends":n};if(xt){var s={type:"variable",style:"variable-3"},l={"interface":e("interface"),"extends":e("extends"),constructor:e("constructor"),"public":e("public"),"private":e("private"),"protected":e("protected"),"static":e("static"),string:s,number:s,bool:s,any:s};for(var u in l)a[u]=l[u]}return a}(),Ct=/[+\-*&%=<>!?|~^]/,Lt=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Tt="([{}])",St={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0,"jsonld-keyword":!0},Et={state:null,column:null,marked:null,cc:null},Mt={name:"this",next:{name:"arguments"}};y.lex=!0;return{startState:function(e){var t={tokenize:o,lastType:"sof",cc:[],lexical:new c((e||0)-mt,0,"block",!1),localVars:r.localVars,context:r.localVars&&{vars:r.localVars},indented:0};r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars);return t},token:function(e,t){if(e.sol()){t.lexical.hasOwnProperty("align")||(t.lexical.align=!1);t.indented=e.indentation();u(e,t)}if(t.tokenize!=s&&e.eatSpace())return null;var r=t.tokenize(e,t);if("comment"==ht)return r;t.lastType="operator"!=ht||"++"!=vt&&"--"!=vt?ht:"incdec";return f(t,r,ht,vt,e)},indent:function(t,n){if(t.tokenize==s)return e.Pass;if(t.tokenize!=o)return 0;var i=n&&n.charAt(0),a=t.lexical;if(!/^\s*else\b/.test(n))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==y)a=a.prev;else if(u!=X)break}"stat"==a.type&&"}"==i&&(a=a.prev);wt&&")"==a.type&&"stat"==a.prev.type&&(a=a.prev);var c=a.type,d=i==c;return"vardef"==c?a.indented+("operator"==t.lastType||","==t.lastType?a.info+1:0):"form"==c&&"{"==i?a.indented:"form"==c?a.indented+mt:"stat"==c?a.indented+(gt(t,n)?wt||mt:0):"switch"!=a.info||d||0==r.doubleIndentSwitch?a.align?a.column+(d?0:1):a.indented+(d?0:mt):a.indented+(/^(?:case|default)\b/.test(n)?mt:2*mt)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:bt?null:"/*",blockCommentEnd:bt?null:"*/",lineComment:bt?null:"//",fold:"brace",helperType:bt?"json":"javascript",jsonldMode:yt,jsonMode:bt}});e.registerHelper("wordChars","javascript",/[\w$]/);e.defineMIME("text/javascript","javascript");e.defineMIME("text/ecmascript","javascript");e.defineMIME("application/javascript","javascript");e.defineMIME("application/x-javascript","javascript");e.defineMIME("application/ecmascript","javascript");e.defineMIME("application/json",{name:"javascript",json:!0});e.defineMIME("application/x-json",{name:"javascript",json:!0});e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0});e.defineMIME("text/typescript",{name:"javascript",typescript:!0});e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},{codemirror:void 0}],11:[function(t,r,n){(function(i){"object"==typeof n&&"object"==typeof r?i(function(){try{return t("codemirror")}catch(e){return window.CodeMirror}}()):"function"==typeof e&&e.amd?e(["../../lib/codemirror"],i):i(CodeMirror)})(function(e){"use strict";e.defineMode("xml",function(t,r){function n(e,t){function r(r){t.tokenize=r;return r(e,t)}var n=e.next();if("<"==n){if(e.eat("!")){if(e.eat("["))return e.match("CDATA[")?r(a("atom","]]>")):null;if(e.match("--"))return r(a("comment","-->"));if(e.match("DOCTYPE",!0,!0)){e.eatWhile(/[\w\._\-]/);return r(s(1))}return null}if(e.eat("?")){e.eatWhile(/[\w\._\-]/);t.tokenize=a("meta","?>");return"meta"}j=e.eat("/")?"closeTag":"openTag";t.tokenize=i;return"tag bracket"}if("&"==n){var o;o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";");return o?"atom":"error"}e.eatWhile(/[^&<]/);return null}function i(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">")){t.tokenize=n;j=">"==r?"endTag":"selfcloseTag";return"tag bracket"}if("="==r){j="equals";return null}if("<"==r){t.tokenize=n;t.state=d;t.tagName=t.tagStart=null;var i=t.tokenize(e,t);return i?i+" tag error":"tag error"}if(/[\'\"]/.test(r)){t.tokenize=o(r);t.stringStartCol=e.column();return t.tokenize(e,t)}e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}function o(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=i;break}return"string"};t.isInAttribute=!0;return t}function a(e,t){return function(r,i){for(;!r.eol();){if(r.match(t)){i.tokenize=n;break}r.next()}return e}}function s(e){return function(t,r){for(var i;null!=(i=t.next());){if("<"==i){r.tokenize=s(e+1);return r.tokenize(t,r)}if(">"==i){if(1==e){r.tokenize=n;break}r.tokenize=s(e-1);return r.tokenize(t,r)}}return"meta"}}function l(e,t,r){this.prev=e.context;this.tagName=t;this.indent=e.indented;this.startOfLine=r;(L.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function u(e){e.context&&(e.context=e.context.prev)}function c(e,t){for(var r;;){if(!e.context)return;r=e.context.tagName;if(!L.contextGrabbers.hasOwnProperty(r)||!L.contextGrabbers[r].hasOwnProperty(t))return;u(e)}}function d(e,t,r){if("openTag"==e){r.tagStart=t.column();return f}return"closeTag"==e?p:d}function f(e,t,r){if("word"==e){r.tagName=t.current();C="tag";return v}C="error";return f}function p(e,t,r){if("word"==e){var n=t.current();r.context&&r.context.tagName!=n&&L.implicitlyClosed.hasOwnProperty(r.context.tagName)&&u(r);if(r.context&&r.context.tagName==n){C="tag";return g}C="tag error";return h}C="error";return h}function g(e,t,r){if("endTag"!=e){C="error";return g}u(r);return d}function h(e,t,r){C="error";return g(e,t,r)}function v(e,t,r){if("word"==e){C="attribute";return m}if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,i=r.tagStart;r.tagName=r.tagStart=null;if("selfcloseTag"==e||L.autoSelfClosers.hasOwnProperty(n))c(r,n);else{c(r,n);r.context=new l(r,n,i==r.indented)}return d}C="error";return v}function m(e,t,r){if("equals"==e)return w;L.allowMissing||(C="error");return v(e,t,r)}function w(e,t,r){if("string"==e)return y;if("word"==e&&L.allowUnquoted){C="string";return v}C="error";return v(e,t,r)}function y(e,t,r){return"string"==e?y:v(e,t,r)}var b=t.indentUnit,x=r.multilineTagIndentFactor||1,k=r.multilineTagIndentPastTag;null==k&&(k=!0);var j,C,L=r.htmlMode?{autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1},T=r.alignCDATA;return{startState:function(){return{tokenize:n,state:d,indented:0,tagName:null,tagStart:null,context:null}},token:function(e,t){!t.tagName&&e.sol()&&(t.indented=e.indentation());if(e.eatSpace())return null;j=null;var r=t.tokenize(e,t);if((r||j)&&"comment"!=r){C=null;t.state=t.state(j||r,e,t);C&&(r="error"==C?r+" error":C)}return r},indent:function(t,r,o){var a=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+b;if(a&&a.noIndent)return e.Pass;if(t.tokenize!=i&&t.tokenize!=n)return o?o.match(/^(\s*)/)[0].length:0;if(t.tagName)return k?t.tagStart+t.tagName.length+2:t.tagStart+b*x;if(T&&/<!\[CDATA\[/.test(r))return 0;var s=r&&/^<(\/)?([\w_:\.-]*)/.exec(r);if(s&&s[1])for(;a;){if(a.tagName==s[2]){a=a.prev;break}if(!L.implicitlyClosed.hasOwnProperty(a.tagName))break;a=a.prev}else if(s)for(;a;){var l=L.contextGrabbers[a.tagName];if(!l||!l.hasOwnProperty(s[2]))break;a=a.prev}for(;a&&!a.startOfLine;)a=a.prev;return a?a.indent+b:0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:r.htmlMode?"html":"xml",helperType:r.htmlMode?"html":"xml"}});e.defineMIME("text/xml","xml");e.defineMIME("application/xml","xml");e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},{codemirror:void 0}],12:[function(t,r,n){(function(){var i;i=function(i){return"object"==typeof n&&"object"==typeof r?i(function(){try{return t("jquery")}catch(e){return window.jQuery}}()):"function"==typeof e&&e.amd?e(["jquery"],i):i(jQuery)};i(function(e){return e.pivotUtilities.d3_renderers={Treemap:function(t,r){var n,i,o,a,s,l,u,c,d,f,p,g,h,v;o={localeStrings:{}};r=e.extend(o,r);l=e("<div style='width: 100%; height: 100%;'>");c={name:"All",children:[]};n=function(e,t,r){var i,o,a,s,l,u;if(0!==t.length){null==e.children&&(e.children=[]);a=t.shift();u=e.children;for(s=0,l=u.length;l>s;s++){i=u[s];if(i.name===a){n(i,t,r);return}}o={name:a};n(o,t,r);return e.children.push(o)}e.value=r};v=t.getRowKeys();for(g=0,h=v.length;h>g;g++){u=v[g];f=t.getAggregator(u,[]).value();null!=f&&n(c,u,f)}i=d3.scale.category10();p=e(window).width()/1.4;a=e(window).height()/1.4;s=10;d=d3.layout.treemap().size([p,a]).sticky(!0).value(function(e){return e.size});d3.select(l[0]).append("div").style("position","relative").style("width",p+2*s+"px").style("height",a+2*s+"px").style("left",s+"px").style("top",s+"px").datum(c).selectAll(".node").data(d.padding([15,0,0,0]).value(function(e){return e.value}).nodes).enter().append("div").attr("class","node").style("background",function(e){return null!=e.children?"lightgrey":i(e.name)}).text(function(e){return e.name}).call(function(){this.style("left",function(e){return e.x+"px"}).style("top",function(e){return e.y+"px"}).style("width",function(e){return Math.max(0,e.dx-1)+"px"}).style("height",function(e){return Math.max(0,e.dy-1)+"px"})});return l}}})}).call(this)},{jquery:void 0}],13:[function(t,r,n){(function(){var i;i=function(i){return"object"==typeof n&&"object"==typeof r?i(function(){try{return t("jquery")}catch(e){return window.jQuery}}()):"function"==typeof e&&e.amd?e(["jquery"],i):i(jQuery)};i(function(e){var t;t=function(t,r){return function(n,i){var o,a,s,l,u,c,d,f,p,g,h,v,m,w,y,b,x,k,j,C,L,T,S,E,M;c={localeStrings:{vs:"vs",by:"by"}};i=e.extend(c,i);x=n.getRowKeys();0===x.length&&x.push([]);s=n.getColKeys();0===s.length&&s.push([]);g=function(){var e,t,r;r=[];for(e=0,t=x.length;t>e;e++){f=x[e];r.push(f.join("-"))}return r}();g.unshift("");v=0;l=[g];for(T=0,E=s.length;E>T;T++){a=s[T];y=[a.join("-")];v+=y[0].length;for(S=0,M=x.length;M>S;S++){b=x[S];o=n.getAggregator(b,a);y.push(null!=o.value()?o.value():null)}l.push(y)}k=C=n.aggregatorName+(n.valAttrs.length?"("+n.valAttrs.join(", ")+")":"");p=n.colAttrs.join("-");""!==p&&(k+=" "+i.localeStrings.vs+" "+p);d=n.rowAttrs.join("-");""!==d&&(k+=" "+i.localeStrings.by+" "+d);m={width:e(window).width()/1.4,height:e(window).height()/1.4,title:k,hAxis:{title:p,slantedText:v>50},vAxis:{title:C}};2===l[0].length&&""===l[0][1]&&(m.legend={position:"none"});for(h in r){j=r[h];m[h]=j}u=google.visualization.arrayToDataTable(l);w=e("<div style='width: 100%; height: 100%;'>");L=new google.visualization.ChartWrapper({dataTable:u,chartType:t,options:m});L.draw(w[0]);w.bind("dblclick",function(){var e;e=new google.visualization.ChartEditor;google.visualization.events.addListener(e,"ok",function(){return e.getChartWrapper().draw(w[0])});return e.openDialog(L)});return w}};return e.pivotUtilities.gchart_renderers={"Line Chart":t("LineChart"),"Bar Chart":t("ColumnChart"),"Stacked Bar Chart":t("ColumnChart",{isStacked:!0}),"Area Chart":t("AreaChart",{isStacked:!0})}})}).call(this)},{jquery:void 0}],14:[function(t,r){(function(t){function n(){try{return l in t&&t[l]}catch(e){return!1}}function i(e){return e.replace(/^d/,"___$&").replace(g,"___")}var o,a={},s=t.document,l="localStorage",u="script";a.disabled=!1;a.version="1.3.17";a.set=function(){};a.get=function(){};a.has=function(e){return void 0!==a.get(e)};a.remove=function(){};a.clear=function(){};a.transact=function(e,t,r){if(null==r){r=t;t=null}null==t&&(t={});var n=a.get(e,t);r(n);a.set(e,n)};a.getAll=function(){};a.forEach=function(){};a.serialize=function(e){return JSON.stringify(e)};a.deserialize=function(e){if("string"!=typeof e)return void 0;try{return JSON.parse(e)}catch(t){return e||void 0}};if(n()){o=t[l];a.set=function(e,t){if(void 0===t)return a.remove(e);o.setItem(e,a.serialize(t));return t};a.get=function(e,t){var r=a.deserialize(o.getItem(e));return void 0===r?t:r};a.remove=function(e){o.removeItem(e)};a.clear=function(){o.clear()};a.getAll=function(){var e={};a.forEach(function(t,r){e[t]=r});return e};a.forEach=function(e){for(var t=0;t<o.length;t++){var r=o.key(t);e(r,a.get(r))}}}else if(s.documentElement.addBehavior){var c,d;try{d=new ActiveXObject("htmlfile");d.open();d.write("<"+u+">document.w=window</"+u+'><iframe src="/favicon.ico"></iframe>');d.close();c=d.w.frames[0].document;o=c.createElement("div")}catch(f){o=s.createElement("div");c=s.body}var p=function(e){return function(){var t=Array.prototype.slice.call(arguments,0);t.unshift(o);c.appendChild(o);o.addBehavior("#default#userData");o.load(l);var r=e.apply(a,t);c.removeChild(o);return r}},g=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");a.set=p(function(e,t,r){t=i(t);if(void 0===r)return a.remove(t);e.setAttribute(t,a.serialize(r));e.save(l);return r});a.get=p(function(e,t,r){t=i(t);var n=a.deserialize(e.getAttribute(t));return void 0===n?r:n});a.remove=p(function(e,t){t=i(t);e.removeAttribute(t);e.save(l)});a.clear=p(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(l);for(var r,n=0;r=t[n];n++)e.removeAttribute(r.name);e.save(l)});a.getAll=function(){var e={};a.forEach(function(t,r){e[t]=r});return e};a.forEach=p(function(e,t){for(var r,n=e.XMLDocument.documentElement.attributes,i=0;r=n[i];++i)t(r.name,a.deserialize(e.getAttribute(r.name)))})}try{var h="__storejs__";a.set(h,h);a.get(h)!=h&&(a.disabled=!0);a.remove(h)}catch(f){a.disabled=!0}a.enabled=!a.disabled;"undefined"!=typeof r&&r.exports&&this.module!==r?r.exports=a:"function"==typeof e&&e.amd?e(a):t.store=a})(Function("return this")())},{}],15:[function(e,t){t.exports={name:"yasgui-utils",version:"1.5.0",description:"Utils for YASGUI libs",main:"src/main.js",repository:{type:"git",url:"git://github.com/YASGUI/Utils.git"},licenses:[{type:"MIT",url:"http://yasgui.github.io/license.txt"}],author:"Laurens Rietveld",maintainers:[{name:"Laurens Rietveld",email:"laurens.rietveld@gmail.com",web:"http://laurensrietveld.nl"}],bugs:{url:"https://github.com/YASGUI/Utils/issues"},homepage:"https://github.com/YASGUI/Utils",dependencies:{store:"^1.3.14"}}},{}],16:[function(e,t){window.console=window.console||{log:function(){}};t.exports={storage:e("./storage.js"),svg:e("./svg.js"),escapeHtmlEntities:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;"},r=function(e){return t[e]||e};return e.replace(/[&<>]/g,r)},nestedExists:function(e){for(var t=Array.prototype.slice.call(arguments,1),r=0;r<t.length;r++){if(!e||!e.hasOwnProperty(t[r]))return!1;e=e[t[r]]}return!0},version:{"yasgui-utils":e("../package.json").version}}},{"../package.json":15,"./storage.js":17,"./svg.js":18}],17:[function(e,t){{var r=e("store"),n={day:function(){return 864e5},month:function(){30*n.day()},year:function(){12*n.month()}};t.exports={set:function(e,t,i){if(r.enabled&&e&&t){"string"==typeof i&&(i=n[i]());t.documentElement&&(t=(new XMLSerializer).serializeToString(t.documentElement));r.set(e,{val:t,exp:i,time:(new Date).getTime()})}},remove:function(e){r.enabled&&e&&r.remove(e)},get:function(e){if(!r.enabled)return null;if(e){var t=r.get(e);return t?t.exp&&(new Date).getTime()-t.time>t.exp?null:t.val:null}return null}}}},{store:14}],18:[function(e,t){t.exports={draw:function(e,r){if(e){var n=t.exports.getElement(r);n&&(e.append?e.append(n):e.appendChild(n))}},getElement:function(e){if(e&&0==e.indexOf("<svg")){var t=new DOMParser,r=t.parseFromString(e,"text/xml"),n=r.documentElement,i=document.createElement("div");i.className="svgImg";i.appendChild(n);return i}return!1}}},{}],19:[function(e,t){t.exports={name:"yasgui-yasr",description:"Yet Another SPARQL Resultset GUI",version:"2.4.9",main:"src/main.js",licenses:[{type:"MIT",url:"http://yasr.yasgui.org/license.txt"}],author:"Laurens Rietveld",homepage:"http://yasr.yasgui.org",devDependencies:{browserify:"^6.1.0",gulp:"~3.6.0","gulp-bump":"^0.1.11","gulp-concat":"^2.4.1","gulp-connect":"^2.0.5","gulp-embedlr":"^0.5.2","gulp-filter":"^1.0.2","gulp-git":"^0.5.2","gulp-jsvalidate":"^0.2.0","gulp-livereload":"^1.3.1","gulp-minify-css":"^0.3.11","gulp-notify":"^2.0.1","gulp-rename":"^1.2.0","gulp-streamify":"0.0.5","gulp-tag-version":"^1.1.0","gulp-uglify":"^1.0.1","require-dir":"^0.1.0","run-sequence":"^1.0.1","vinyl-buffer":"^1.0.0","vinyl-source-stream":"~0.1.1",watchify:"^0.6.4","gulp-sourcemaps":"^1.2.8",exorcist:"^0.1.6","vinyl-transform":"0.0.1","gulp-sass":"^1.2.2","bootstrap-sass":"^3.3.1","browserify-transform-tools":"^1.2.1","gulp-cssimport":"^1.3.1","gulp-html-replace":"^1.4.1","browserify-shim":"^3.8.1"},bugs:"https://github.com/YASGUI/YASR/issues/",keywords:["JavaScript","SPARQL","Editor","Semantic Web","Linked Data"],maintainers:[{name:"Laurens Rietveld",email:"laurens.rietveld@gmail.com",web:"http://laurensrietveld.nl"}],repository:{type:"git",url:"https://github.com/YASGUI/YASR.git"},dependencies:{jquery:"~ 1.11.0",codemirror:"^4.7.0","yasgui-utils":"^1.4.1",pivottable:"^1.2.2","jquery-ui":"^1.10.5",d3:"^3.4.13"},"browserify-shim":{google:"global:google"},browserify:{transform:["browserify-shim"]},optionalShim:{codemirror:{require:"codemirror",global:"CodeMirror"},jquery:{require:"jquery",global:"jQuery"},"../../lib/codemirror":{require:"codemirror",global:"CodeMirror"},"../lib/DataTables/media/js/jquery.dataTables.js":{require:"datatables",global:"jQuery"},datatables:{require:"datatables",global:"jQuery"},d3:{require:"d3",global:"d3"},"jquery-ui/sortable":{require:"jquery-ui/sortable",global:"jQuery"},pivottable:{require:"pivottable",global:"jQuery"}}}},{}],20:[function(e,t){"use strict";t.exports=function(e){var t='"',r=",",n="\n",i=e.head.vars,o=e.results.bindings,a=function(){for(var e=0;e<i.length;e++)u(i[e]);d+=n},s=function(){for(var e=0;e<o.length;e++){l(o[e]);d+=n}},l=function(e){for(var t=0;t<i.length;t++){var r=i[t];u(e.hasOwnProperty(r)?e[r].value:"")}},u=function(e){e.replace(t,t+t);c(e)&&(e=t+e+t);d+=" "+e+" "+r},c=function(e){var n=!1;e.match("[\\w|"+r+"|"+t+"]")&&(n=!0);return n},d="";a();s();return d}},{}],21:[function(e,t){"use strict";var r=function(){try{return e("jquery")}catch(t){return window.jQuery}}(),n=t.exports=function(t){var n=r("<div class='booleanResult'></div>"),i=function(){n.empty().appendTo(t.resultsContainer);var i=t.results.getBoolean(),o=null,a=null;if(i===!0){o="check";a="True"}else if(i===!1){o="cross";a="False"}else{n.width("140");a="Could not find boolean value in response"}o&&e("yasgui-utils").svg.draw(n,e("./imgs.js")[o]);r("<span></span>").text(a).appendTo(n)},o=function(){return t.results.getBoolean&&(t.results.getBoolean()===!0||0==t.results.getBoolean())};return{name:null,draw:i,hideFromSelection:!0,getPriority:10,canHandleResults:o}};n.version={"YASR-boolean":e("../package.json").version,jquery:r.fn.jquery}},{"../package.json":19,"./imgs.js":27,jquery:void 0,"yasgui-utils":16}],22:[function(e,t){"use strict";var r=function(){try{return e("jquery")}catch(t){return window.jQuery}}();t.exports={output:"table",useGoogleCharts:!0,outputPlugins:["table","error","boolean","rawResponse"],drawOutputSelector:!0,drawDownloadIcon:!0,getUsedPrefixes:null,persistency:{prefix:function(e){return"yasr_"+r(e.container).closest("[id]").attr("id")+"_"},outputSelector:function(){return"selector"},results:{id:function(e){return"results_"+r(e.container).closest("[id]").attr("id")},key:"results",maxSize:1e5}}}},{jquery:void 0}],23:[function(e,t){"use strict";var r=function(){try{return e("jquery")}catch(t){return window.jQuery}}(),n=t.exports=function(e){var t=r("<div class='errorResult'></div>"),i=r.extend(!0,{},n.defaults),o=function(){var e=null;if(i.tryQueryLink){var t=i.tryQueryLink();e=r("<button>",{"class":"yasr_btn yasr_tryQuery"}).text("Try query in new browser window").click(function(){window.open(t,"_blank");r(this).blur()})}return e},a=function(){var n=e.results.getException();t.empty().appendTo(e.resultsContainer);var a=r("<div>",{"class":"errorHeader"}).appendTo(t);if(0!==n.status){var s="Error";n.statusText&&n.statusText.length<100&&(s=n.statusText);s+=" (#"+n.status+")";a.append(r("<span>",{"class":"exception"}).text(s)).append(o());var l=null;n.responseText?l=n.responseText:"string"==typeof n&&(l=n);l&&t.append(r("<pre>").text(l))}else{a.append(o());t.append(r("<div>",{"class":"corsMessage"}).append(i.corsMessage))}},s=function(e){return e.results.getException()||!1};return{name:null,draw:a,getPriority:20,hideFromSelection:!0,canHandleResults:s}};n.defaults={corsMessage:"Unable to get response from endpoint",tryQueryLink:null}},{jquery:void 0}],24:[function(e,t){t.exports={GoogleTypeException:function(e,t){this.foundTypes=e;this.varName=t;this.toString=function(){var e="Conflicting data types found for variable "+this.varName+'. Assuming all values of this variable are "string".';e+=" To avoid this issue, cast the values in your SPARQL query to the intended xsd datatype";return e};this.toHtml=function(){var e="Conflicting data types found for variable <i>"+this.varName+'</i>. Assuming all values of this variable are "string".';e+=" As a result, several Google Charts will not render values of this particular variable.";e+=" To avoid this issue, cast the values in your SPARQL query to the intended xsd datatype";return e}}}},{}],25:[function(e,t){(function(r){var n=e("events").EventEmitter,i=(function(){try{return e("jquery")}catch(t){return window.jQuery}}(),!1),o=!1,a=function(){n.call(this);var e=this;this.init=function(){if(o||("undefined"!=typeof window?window.google:"undefined"!=typeof r?r.google:null)||i)("undefined"!=typeof window?window.google:"undefined"!=typeof r?r.google:null)?e.emit("initDone"):o&&e.emit("initError");else{i=!0;s("http://google.com/jsapi",function(){i=!1;e.emit("initDone")});var t=100,n=6e3,a=+new Date,l=function(){if(!("undefined"!=typeof window?window.google:"undefined"!=typeof r?r.google:null))if(+new Date-a>n){o=!0;i=!1;e.emit("initError")}else setTimeout(l,t)};l()}};this.googleLoad=function(){var t=function(){("undefined"!=typeof window?window.google:"undefined"!=typeof r?r.google:null).load("visualization","1",{packages:["corechart","charteditor"],callback:function(){e.emit("done")}})};if(i){e.once("initDone",t);e.once("initError",function(){e.emit("error","Could not load google loader")})}else if("undefined"!=typeof window?window.google:"undefined"!=typeof r?r.google:null)t();else if(o)e.emit("error","Could not load google loader");else{e.once("initDone",t);e.once("initError",function(){e.emit("error","Could not load google loader")})}}},s=function(e,t){var r=document.createElement("script");r.type="text/javascript";r.readyState?r.onreadystatechange=function(){if("loaded"==r.readyState||"complete"==r.readyState){r.onreadystatechange=null;t()}}:r.onload=function(){t()};r.src=e;document.body.appendChild(r)};a.prototype=new n;t.exports=new a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{events:4,jquery:void 0}],26:[function(e,t){(function(r){"use strict";function n(e,t,r){function n(e,t,o){var l,u,c,d,f,p,g,h;if(null==e||null==t)return e===t;if(e.__placeholder__||t.__placeholder__)return!0;if(e===t)return 0!==e||1/e==1/t;l=i.call(e);if(i.call(t)!=l)return!1;switch(l){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if("object"!=typeof e||"object"!=typeof t)return!1;u=o.length;for(;u--;)if(o[u]==e)return!0;o.push(e);c=0;d=!0;if("[object Array]"==l){f=e.length;p=t.length;if(s){switch(r){case"===":d=f===p;break;case"<==":d=p>=f;break;case"<<=":d=p>f}c=f;s=!1}else{d=f===p;c=f}if(d)for(;c--&&(d=c in e==c in t&&n(e[c],t[c],o)););}else{if("constructor"in e!="constructor"in t||e.constructor!=t.constructor)return!1;for(g in e)if(a(e,g)){c++;if(!(d=a(t,g)&&n(e[g],t[g],o)))break}if(d){h=0;for(g in t)a(t,g)&&++h;if(s)d="<<="===r?h>c:"<=="===r?h>=c:c===h;else{s=!1;d=c===h}}}o.pop();return d}var i={}.toString,o={}.hasOwnProperty,a=function(e,t){return o.call(e,t)},s=!0;return n(e,t,[])}var i=function(){try{return e("jquery")}catch(t){return window.jQuery}}(),o=e("./utils.js"),a=e("yasgui-utils"),s=t.exports=function(t){var l=i.extend(!0,{},s.defaults),u=t.container.closest("[id]").attr("id");null==t.options.gchart&&(t.options.gchart={});var c=t.getPersistencyId("motionchart"),d=t.getPersistencyId("chartConfig");null==t.options.gchart.motionChartState&&(t.options.gchart.motionChartState=a.storage.get(c));null==t.options.gchart.chartConfig&&(t.options.gchart.chartConfig=a.storage.get(d));var f=null,p=function(e){var i="undefined"!=typeof window?window.google:"undefined"!=typeof r?r.google:null;f=new i.visualization.ChartEditor;i.visualization.events.addListener(f,"ok",function(){var e,r;e=f.getChartWrapper();if(!n(e.getChartType,"MotionChart","===")){t.options.gchart.motionChartState=e.n;a.storage.set(c,t.options.gchart.motionChartState);
  e.setOption("state",t.options.gchart.motionChartState);i.visualization.events.addListener(e,"ready",function(){var r;r=e.getChart();i.visualization.events.addListener(r,"statechange",function(){t.options.gchart.motionChartState=r.getState();a.storage.set(c,t.options.gchart.motionChartState)})})}r=e.getDataTable();e.setDataTable(null);t.options.gchart.chartConfig=e.toJSON();a.storage.set(d,t.options.gchart.chartConfig);e.setDataTable(r);e.draw();t.updateHeader()});e&&e()};return{name:"Google Chart",hideFromSelection:!1,priority:7,canHandleResults:function(e){var t,r;return null!=(t=e.results)&&(r=t.getVariables())&&r.length>0},getDownloadInfo:function(){if(!t.results)return null;var e=t.resultsContainer.find("svg");if(e.length>0)return{getContent:function(){return e[0].outerHTML?e[0].outerHTML:i("<div>").append(e.clone()).html()},filename:"queryResults.svg",contentType:"image/svg+xml",buttonTitle:"Download SVG Image"};var r=t.resultsContainer.find(".google-visualization-table-table");return r.length>0?{getContent:function(){return r.tableToCsv()},filename:"queryResults.csv",contentType:"text/csv",buttonTitle:"Download as CSV"}:void 0},getEmbedHtml:function(){if(!t.results)return null;var e=t.resultsContainer.find("svg").clone().removeAttr("height").removeAttr("width").css("height","").css("width","");if(0==e.length)return null;var r=e[0].outerHTML;r||(r=i("<div>").append(e.clone()).html());return'<div style="width: 800px; height: 600px;">\n'+r+"\n</div>"},draw:function(){var n=function(){t.resultsContainer.empty();var r=u+"_gchartWrapper",n=null;t.resultsContainer.append(i("<button>",{"class":"openGchartBtn yasr_btn"}).text("Chart Config").click(function(){f.openDialog(n)})).append(i("<div>",{id:r,"class":"gchartWrapper"}));var s=new google.visualization.DataTable,d=t.results.getAsJson();d.head.vars.forEach(function(r){var n="string";try{n=o.getGoogleTypeForBindings(d.results.bindings,r)}catch(i){if(!(i instanceof e("./exceptions.js").GoogleTypeException))throw i;t.warn(i.toHtml())}s.addColumn(n,r)});var p=null;t.options.getUsedPrefixes&&(p="function"==typeof t.options.getUsedPrefixes?t.options.getUsedPrefixes(t):t.options.getUsedPrefixes);d.results.bindings.forEach(function(e){var t=[];d.head.vars.forEach(function(r,n){t.push(o.castGoogleType(e[r],p,s.getColumnType(n)))});s.addRow(t)});if(t.options.gchart.chartConfig){n=new google.visualization.ChartWrapper(t.options.gchart.chartConfig);if("MotionChart"===n.getChartType()&&null!=t.options.gchart.motionChartState){n.setOption("state",t.options.gchart.motionChartState);google.visualization.events.addListener(n,"ready",function(){var e;e=n.getChart();google.visualization.events.addListener(e,"statechange",function(){t.options.gchart.motionChartState=e.getState();a.storage.set(c,t.options.gchart.motionChartState)})})}n.setDataTable(s)}else n=new google.visualization.ChartWrapper({chartType:"Table",dataTable:s,containerId:r});n.setOption("width",l.width);n.setOption("height",l.height);n.draw();t.updateHeader()};("undefined"!=typeof window?window.google:"undefined"!=typeof r?r.google:null)&&("undefined"!=typeof window?window.google:"undefined"!=typeof r?r.google:null).visualization&&f?n():e("./gChartLoader.js").on("done",function(){p();n()}).on("error",function(){console.log("errorrr")}).googleLoad()}}};s.defaults={height:"600px",width:"100%",persistencyId:"gchart"}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./exceptions.js":24,"./gChartLoader.js":25,"./utils.js":40,jquery:void 0,"yasgui-utils":16}],27:[function(e,t){"use strict";t.exports={cross:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" width="30px" height="30px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><g>	<path d="M83.288,88.13c-2.114,2.112-5.575,2.112-7.689,0L53.659,66.188c-2.114-2.112-5.573-2.112-7.687,0L24.251,87.907   c-2.113,2.114-5.571,2.114-7.686,0l-4.693-4.691c-2.114-2.114-2.114-5.573,0-7.688l21.719-21.721c2.113-2.114,2.113-5.573,0-7.686   L11.872,24.4c-2.114-2.113-2.114-5.571,0-7.686l4.842-4.842c2.113-2.114,5.571-2.114,7.686,0L46.12,33.591   c2.114,2.114,5.572,2.114,7.688,0l21.721-21.719c2.114-2.114,5.573-2.114,7.687,0l4.695,4.695c2.111,2.113,2.111,5.571-0.003,7.686   L66.188,45.973c-2.112,2.114-2.112,5.573,0,7.686L88.13,75.602c2.112,2.111,2.112,5.572,0,7.687L83.288,88.13z"/></g></svg>',check:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" width="30px" height="30px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><path fill="#000000" d="M14.301,49.982l22.606,17.047L84.361,4.903c2.614-3.733,7.76-4.64,11.493-2.026l0.627,0.462  c3.732,2.614,4.64,7.758,2.025,11.492l-51.783,79.77c-1.955,2.791-3.896,3.762-7.301,3.988c-3.405,0.225-5.464-1.039-7.508-3.084  L2.447,61.814c-3.263-3.262-3.263-8.553,0-11.814l0.041-0.019C5.75,46.718,11.039,46.718,14.301,49.982z"/></svg>',unsorted:'<svg   xmlns:dc="http://purl.org/dc/elements/1.1/"   xmlns:cc="http://creativecommons.org/ns#"   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"   xmlns:svg="http://www.w3.org/2000/svg"   xmlns="http://www.w3.org/2000/svg"   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"   version="1.1"   id="Layer_1"   x="0px"   y="0px"   width="100%"   height="100%"   viewBox="0 0 54.552711 113.78478"   enable-background="new 0 0 100 100"   xml:space="preserve"><g     id="g5"     transform="matrix(-0.70522156,-0.70898699,-0.70898699,0.70522156,97.988199,55.081205)"><path       style="fill:#000000"       inkscape:connector-curvature="0"       id="path7"       d="M 57.911,66.915 45.808,55.063 42.904,52.238 31.661,41.25 31.435,41.083 31.131,40.775 30.794,40.523 30.486,40.3 30.069,40.05 29.815,39.911 29.285,39.659 29.089,39.576 28.474,39.326 28.363,39.297 H 28.336 L 27.665,39.128 27.526,39.1 26.94,38.99 26.714,38.961 26.212,38.934 h -0.31 -0.444 l -0.339,0.027 c -1.45,0.139 -2.876,0.671 -4.11,1.564 l -0.223,0.141 -0.279,0.25 -0.335,0.308 -0.054,0.029 -0.171,0.194 -0.334,0.364 -0.224,0.279 -0.25,0.336 -0.225,0.362 -0.192,0.308 -0.197,0.421 -0.142,0.279 -0.193,0.477 -0.084,0.222 -12.441,38.414 c -0.814,2.458 -0.313,5.029 1.115,6.988 v 0.026 l 0.418,0.532 0.17,0.165 0.251,0.281 0.084,0.079 0.283,0.281 0.25,0.194 0.474,0.367 0.083,0.053 c 2.015,1.371 4.641,1.874 7.131,1.094 L 55.228,80.776 c 4.303,-1.342 6.679,-5.814 5.308,-10.006 -0.387,-1.259 -1.086,-2.35 -1.979,-3.215 l -0.368,-0.337 -0.278,-0.303 z m -6.318,5.896 0.079,0.114 -37.369,11.57 11.854,-36.538 10.565,10.317 2.876,2.825 11.995,11.712 z" /></g><path     style="fill:#000000"     inkscape:connector-curvature="0"     id="path7-9"     d="m 8.8748339,52.571766 16.9382111,-0.222584 4.050851,-0.06665 15.719154,-0.222166 0.27778,-0.04246 0.43276,0.0017 0.41632,-0.06121 0.37532,-0.0611 0.47132,-0.119342 0.27767,-0.08206 0.55244,-0.198047 0.19707,-0.08043 0.61095,-0.259721 0.0988,-0.05825 0.019,-0.01914 0.59303,-0.356548 0.11787,-0.0788 0.49125,-0.337892 0.17994,-0.139779 0.37317,-0.336871 0.21862,-0.219786 0.31311,-0.31479 0.21993,-0.259387 c 0.92402,-1.126057 1.55249,-2.512251 1.78961,-4.016904 l 0.0573,-0.25754 0.0195,-0.374113 0.0179,-0.454719 0.0175,-0.05874 -0.0169,-0.258049 -0.0225,-0.493503 -0.0398,-0.355569 -0.0619,-0.414201 -0.098,-0.414812 -0.083,-0.353334 L 53.23955,41.1484 53.14185,40.850967 52.93977,40.377742 52.84157,40.161628 34.38021,4.2507375 C 33.211567,1.9401875 31.035446,0.48226552 28.639484,0.11316952 l -0.01843,-0.01834 -0.671963,-0.07882 -0.236871,0.0042 L 27.335984,-4.7826577e-7 27.220736,0.00379952 l -0.398804,0.0025 -0.313848,0.04043 -0.594474,0.07724 -0.09611,0.02147 C 23.424549,0.60716252 21.216017,2.1142355 20.013025,4.4296865 L 0.93967491,40.894479 c -2.08310801,3.997178 -0.588125,8.835482 3.35080799,10.819749 1.165535,0.613495 2.43199,0.88731 3.675026,0.864202 l 0.49845,-0.02325 0.410875,0.01658 z M 9.1502369,43.934401 9.0136999,43.910011 27.164145,9.2564625 44.70942,43.42818 l -14.765289,0.214677 -4.031106,0.0468 -16.7627881,0.244744 z" /></svg>',sortDesc:'<svg   xmlns:dc="http://purl.org/dc/elements/1.1/"   xmlns:cc="http://creativecommons.org/ns#"   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"   xmlns:svg="http://www.w3.org/2000/svg"   xmlns="http://www.w3.org/2000/svg"   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"   version="1.1"   id="Layer_1"   x="0px"   y="0px"   width="100%"   height="100%"   viewBox="0 0 54.552711 113.78478"   enable-background="new 0 0 100 100"   xml:space="preserve"><g     id="g5"     transform="matrix(-0.70522156,-0.70898699,-0.70898699,0.70522156,97.988199,55.081205)"><path       style="fill:#000000"       inkscape:connector-curvature="0"       id="path7"       d="M 57.911,66.915 45.808,55.063 42.904,52.238 31.661,41.25 31.435,41.083 31.131,40.775 30.794,40.523 30.486,40.3 30.069,40.05 29.815,39.911 29.285,39.659 29.089,39.576 28.474,39.326 28.363,39.297 H 28.336 L 27.665,39.128 27.526,39.1 26.94,38.99 26.714,38.961 26.212,38.934 h -0.31 -0.444 l -0.339,0.027 c -1.45,0.139 -2.876,0.671 -4.11,1.564 l -0.223,0.141 -0.279,0.25 -0.335,0.308 -0.054,0.029 -0.171,0.194 -0.334,0.364 -0.224,0.279 -0.25,0.336 -0.225,0.362 -0.192,0.308 -0.197,0.421 -0.142,0.279 -0.193,0.477 -0.084,0.222 -12.441,38.414 c -0.814,2.458 -0.313,5.029 1.115,6.988 v 0.026 l 0.418,0.532 0.17,0.165 0.251,0.281 0.084,0.079 0.283,0.281 0.25,0.194 0.474,0.367 0.083,0.053 c 2.015,1.371 4.641,1.874 7.131,1.094 L 55.228,80.776 c 4.303,-1.342 6.679,-5.814 5.308,-10.006 -0.387,-1.259 -1.086,-2.35 -1.979,-3.215 l -0.368,-0.337 -0.278,-0.303 z m -6.318,5.896 0.079,0.114 -37.369,11.57 11.854,-36.538 10.565,10.317 2.876,2.825 11.995,11.712 z" /></g><path     style="fill:#000000"     inkscape:connector-curvature="0"     id="path9"     d="m 27.813273,0.12823506 0.09753,0.02006 c 2.39093,0.458209 4.599455,1.96811104 5.80244,4.28639004 L 52.785897,40.894525 c 2.088044,4.002139 0.590949,8.836902 -3.348692,10.821875 -1.329078,0.688721 -2.766603,0.943695 -4.133174,0.841768 l -0.454018,0.02 L 27.910392,52.354171 23.855313,52.281851 8.14393,52.061827 7.862608,52.021477 7.429856,52.021738 7.014241,51.959818 6.638216,51.900838 6.164776,51.779369 5.889216,51.699439 5.338907,51.500691 5.139719,51.419551 4.545064,51.145023 4.430618,51.105123 4.410168,51.084563 3.817138,50.730843 3.693615,50.647783 3.207314,50.310611 3.028071,50.174369 2.652795,49.833957 2.433471,49.613462 2.140099,49.318523 1.901127,49.041407 C 0.97781,47.916059 0.347935,46.528448 0.11153,45.021676 L 0.05352,44.766255 0.05172,44.371683 0.01894,43.936017 0,43.877277 0.01836,43.62206 0.03666,43.122889 0.0765,42.765905 0.13912,42.352413 0.23568,41.940425 0.32288,41.588517 0.481021,41.151945 0.579391,40.853806 0.77369,40.381268 0.876097,40.162336 19.338869,4.2542801 c 1.172169,-2.308419 3.34759,-3.76846504 5.740829,-4.17716604 l 0.01975,0.01985 0.69605,-0.09573 0.218437,0.0225 0.490791,-0.02132 0.39809,0.0046 0.315972,0.03973 0.594462,0.08149 z" /></svg>',sortAsc:'<svg   xmlns:dc="http://purl.org/dc/elements/1.1/"   xmlns:cc="http://creativecommons.org/ns#"   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"   xmlns:svg="http://www.w3.org/2000/svg"   xmlns="http://www.w3.org/2000/svg"   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"   version="1.1"   id="Layer_1"   x="0px"   y="0px"   width="100%"   height="100%"   viewBox="0 0 54.552711 113.78478"   enable-background="new 0 0 100 100"   xml:space="preserve"><g     id="g5"     transform="matrix(-0.70522156,0.70898699,-0.70898699,-0.70522156,97.988199,58.704807)"><path       style="fill:#000000"       inkscape:connector-curvature="0"       id="path7"       d="M 57.911,66.915 45.808,55.063 42.904,52.238 31.661,41.25 31.435,41.083 31.131,40.775 30.794,40.523 30.486,40.3 30.069,40.05 29.815,39.911 29.285,39.659 29.089,39.576 28.474,39.326 28.363,39.297 H 28.336 L 27.665,39.128 27.526,39.1 26.94,38.99 26.714,38.961 26.212,38.934 h -0.31 -0.444 l -0.339,0.027 c -1.45,0.139 -2.876,0.671 -4.11,1.564 l -0.223,0.141 -0.279,0.25 -0.335,0.308 -0.054,0.029 -0.171,0.194 -0.334,0.364 -0.224,0.279 -0.25,0.336 -0.225,0.362 -0.192,0.308 -0.197,0.421 -0.142,0.279 -0.193,0.477 -0.084,0.222 -12.441,38.414 c -0.814,2.458 -0.313,5.029 1.115,6.988 v 0.026 l 0.418,0.532 0.17,0.165 0.251,0.281 0.084,0.079 0.283,0.281 0.25,0.194 0.474,0.367 0.083,0.053 c 2.015,1.371 4.641,1.874 7.131,1.094 L 55.228,80.776 c 4.303,-1.342 6.679,-5.814 5.308,-10.006 -0.387,-1.259 -1.086,-2.35 -1.979,-3.215 l -0.368,-0.337 -0.278,-0.303 z m -6.318,5.896 0.079,0.114 -37.369,11.57 11.854,-36.538 10.565,10.317 2.876,2.825 11.995,11.712 z" /></g><path     style="fill:#000000"     inkscape:connector-curvature="0"     id="path9"     d="m 27.813273,113.65778 0.09753,-0.0201 c 2.39093,-0.45821 4.599455,-1.96811 5.80244,-4.28639 L 52.785897,72.891487 c 2.088044,-4.002139 0.590949,-8.836902 -3.348692,-10.821875 -1.329078,-0.688721 -2.766603,-0.943695 -4.133174,-0.841768 l -0.454018,-0.02 -16.939621,0.223997 -4.055079,0.07232 -15.711383,0.220024 -0.281322,0.04035 -0.432752,-2.61e-4 -0.415615,0.06192 -0.376025,0.05898 -0.47344,0.121469 -0.27556,0.07993 -0.550309,0.198748 -0.199188,0.08114 -0.594655,0.274528 -0.114446,0.0399 -0.02045,0.02056 -0.59303,0.35372 -0.123523,0.08306 -0.486301,0.337172 -0.179243,0.136242 -0.375276,0.340412 -0.219324,0.220495 -0.293372,0.294939 -0.238972,0.277116 C 0.97781,65.869953 0.347935,67.257564 0.11153,68.764336 L 0.05352,69.019757 0.05172,69.414329 0.01894,69.849995 0,69.908735 l 0.01836,0.255217 0.0183,0.499171 0.03984,0.356984 0.06262,0.413492 0.09656,0.411988 0.0872,0.351908 0.158141,0.436572 0.09837,0.298139 0.194299,0.472538 0.102407,0.218932 18.462772,35.908054 c 1.172169,2.30842 3.34759,3.76847 5.740829,4.17717 l 0.01975,-0.0199 0.69605,0.0957 0.218437,-0.0225 0.490791,0.0213 0.39809,-0.005 0.315972,-0.0397 0.594462,-0.0815 z" /></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 100 100" xml:space="preserve"><g id="Captions"></g><g id="Your_Icon">	<path fill-rule="evenodd" fill="#000000" d="M88,84v-2c0-2.961-0.859-4-4-4H16c-2.961,0-4,0.98-4,4v2c0,3.102,1.039,4,4,4h68   C87.02,88,88,87.039,88,84z M58,12H42c-5,0-6,0.941-6,6v22H16l34,34l34-34H64V18C64,12.941,62.939,12,58,12z"/></g></svg>',move:'<svg   xmlns:dc="http://purl.org/dc/elements/1.1/"   xmlns:cc="http://creativecommons.org/ns#"   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"   xmlns:svg="http://www.w3.org/2000/svg"   xmlns="http://www.w3.org/2000/svg"   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"   version="1.1"   id="Layer_1"   x="0px"   y="0px"   width="100%"   height="100%"   viewBox="5 -10 74.074074 100"   enable-background="new 0 0 100 100"   xml:space="preserve"   inkscape:version="0.48.4 r9939"   sodipodi:docname="noun_11656_cc.svg"><metadata     ><rdf:RDF><cc:Work         rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type           rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs      /><sodipodi:namedview     pagecolor="#ffffff"     bordercolor="#666666"     borderopacity="1"     objecttolerance="10"     gridtolerance="10"     guidetolerance="10"     inkscape:pageopacity="0"     inkscape:pageshadow="2"     inkscape:window-width="753"     inkscape:window-height="480"          showgrid="false"     fit-margin-top="0"     fit-margin-left="0"     fit-margin-right="0"     fit-margin-bottom="0"     inkscape:zoom="2.36"     inkscape:cx="44.101509"     inkscape:cy="31.481481"     inkscape:window-x="287"     inkscape:window-y="249"     inkscape:window-maximized="0"     inkscape:current-layer="Layer_1" /><polygon     points="33,83 50,100 67,83 54,83 54,17 67,17 50,0 33,17 46,17 46,83 "          transform="translate(-7.962963,-10)" /><polygon     points="83,67 100,50 83,33 83,46 17,46 17,33 0,50 17,67 17,54 83,54 "          transform="translate(-7.962963,-10)" /></svg>',fullscreen:'<svg   xmlns:dc="http://purl.org/dc/elements/1.1/"   xmlns:cc="http://creativecommons.org/ns#"   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"   xmlns:svg="http://www.w3.org/2000/svg"   xmlns="http://www.w3.org/2000/svg"   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"   version="1.1"      x="0px"   y="0px"   width="100%"   height="100%"   viewBox="5 -10 74.074074 100"   enable-background="new 0 0 100 100"   xml:space="preserve"   inkscape:version="0.48.4 r9939"   sodipodi:docname="noun_2186_cc.svg"><metadata     ><rdf:RDF><cc:Work         rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type           rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs      /><sodipodi:namedview     pagecolor="#ffffff"     bordercolor="#666666"     borderopacity="1"     objecttolerance="10"     gridtolerance="10"     guidetolerance="10"     inkscape:pageopacity="0"     inkscape:pageshadow="2"     inkscape:window-width="640"     inkscape:window-height="480"          showgrid="false"     fit-margin-top="0"     fit-margin-left="0"     fit-margin-right="0"     fit-margin-bottom="0"     inkscape:zoom="2.36"     inkscape:cx="44.101509"     inkscape:cy="31.481481"     inkscape:window-x="65"     inkscape:window-y="24"     inkscape:window-maximized="0"     inkscape:current-layer="Layer_1" /><path     d="m -7.962963,-10 v 38.889 l 16.667,-16.667 16.667,16.667 5.555,-5.555 -16.667,-16.667 16.667,-16.667 h -38.889 z"          inkscape:connector-curvature="0"     style="fill:#010101" /><path     d="m 92.037037,-10 v 38.889 l -16.667,-16.667 -16.666,16.667 -5.556,-5.555 16.666,-16.667 -16.666,-16.667 h 38.889 z"          inkscape:connector-curvature="0"     style="fill:#010101" /><path     d="M -7.962963,90 V 51.111 l 16.667,16.666 16.667,-16.666 5.555,5.556 -16.667,16.666 16.667,16.667 h -38.889 z"          inkscape:connector-curvature="0"     style="fill:#010101" /><path     d="M 92.037037,90 V 51.111 l -16.667,16.666 -16.666,-16.666 -5.556,5.556 16.666,16.666 -16.666,16.667 h 38.889 z"          inkscape:connector-curvature="0"     style="fill:#010101" /></svg>',smallscreen:'<svg   xmlns:dc="http://purl.org/dc/elements/1.1/"   xmlns:cc="http://creativecommons.org/ns#"   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"   xmlns:svg="http://www.w3.org/2000/svg"   xmlns="http://www.w3.org/2000/svg"   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"   version="1.1"      x="0px"   y="0px"   width="100%"   height="100%"   viewBox="5 -10 74.074074 100"   enable-background="new 0 0 100 100"   xml:space="preserve"   inkscape:version="0.48.4 r9939"   sodipodi:docname="noun_2186_cc.svg"><metadata     ><rdf:RDF><cc:Work         rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type           rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs      /><sodipodi:namedview     pagecolor="#ffffff"     bordercolor="#666666"     borderopacity="1"     objecttolerance="10"     gridtolerance="10"     guidetolerance="10"     inkscape:pageopacity="0"     inkscape:pageshadow="2"     inkscape:window-width="1855"     inkscape:window-height="1056"          showgrid="false"     fit-margin-top="0"     fit-margin-left="0"     fit-margin-right="0"     fit-margin-bottom="0"     inkscape:zoom="2.36"     inkscape:cx="44.101509"     inkscape:cy="31.481481"     inkscape:window-x="65"     inkscape:window-y="24"     inkscape:window-maximized="1"     inkscape:current-layer="Layer_1" /><path     d="m 30.926037,28.889 0,-38.889 -16.667,16.667 -16.667,-16.667 -5.555,5.555 16.667,16.667 -16.667,16.667 38.889,0 z"          inkscape:connector-curvature="0"     style="fill:#010101" /><path     d="m 53.148037,28.889 0,-38.889 16.667,16.667 16.666,-16.667 5.556,5.555 -16.666,16.667 16.666,16.667 -38.889,0 z"          inkscape:connector-curvature="0"     style="fill:#010101" /><path     d="m 30.926037,51.111 0,38.889 -16.667,-16.666 -16.667,16.666 -5.555,-5.556 16.667,-16.666 -16.667,-16.667 38.889,0 z"          inkscape:connector-curvature="0"     style="fill:#010101" /><path     d="m 53.148037,51.111 0,38.889 16.667,-16.666 16.666,16.666 5.556,-5.556 -16.666,-16.666 16.666,-16.667 -38.889,0 z"          inkscape:connector-curvature="0"     style="fill:#010101" /></svg>'}},{}],28:[function(e){e("./tableToCsv.js")},{"./tableToCsv.js":29}],29:[function(e){"use strict";var t=function(){try{return e("jquery")}catch(t){return window.jQuery}}();t.fn.tableToCsv=function(e){var r="";e=t.extend({quote:'"',delimiter:",",lineBreak:"\n"},e);var n=function(t){var r=!1;t.match("[\\w|"+e.delimiter+"|"+e.quote+"]")&&(r=!0);return r},i=function(t){t.replace(e.quote,e.quote+e.quote);n(t)&&(t=e.quote+t+e.quote);r+=" "+t+" "+e.delimiter},o=function(t){t.forEach(function(e){i(e)});r+=e.lineBreak},a=t(this),s={},l=0;a.find("tr:first *").each(function(){t(this).attr("colspan")?l+=+t(this).attr("colspan"):l++});a.find("tr").each(function(e,r){for(var n=t(r),i=[],a=0,u=0;l>u+a;u++)if(s[u]){i.push(s[u].text);s[u].rowSpan--;s[u].rowSpan||delete s[u]}else{var c=n.find(":nth-child("+(u+1)+")");console.log(c);var d=c.attr("colspan"),f=c.attr("rowspan");if(d&&!isNaN(d)){for(var p=0;d>p;p++)i.push(c.text());a+=d-1}else if(f&&!isNaN(f)){s[u+a]={rowSpan:f-1,text:c.text()};i.push(c.text());a++}else i.push(c.text())}o(i)});return r}},{jquery:void 0}],30:[function(e,t){"use strict";var r=function(){try{return e("jquery")}catch(t){return window.jQuery}}(),n=e("yasgui-utils");console=console||{log:function(){}};e("./jquery/extendJquery.js");var i=t.exports=function(t,o,a){var s={};s.options=r.extend(!0,{},i.defaults,o);s.container=r("<div class='yasr'></div>").appendTo(t);s.header=r("<div class='yasr_header'></div>").appendTo(s.container);s.resultsContainer=r("<div class='yasr_results'></div>").appendTo(s.container);s.storage=n.storage;var l=null;s.getPersistencyId=function(e){null===l&&(l=s.options.persistency&&s.options.persistency.prefix?"string"==typeof s.options.persistency.prefix?s.options.persistency.prefix:s.options.persistency.prefix(s):!1);return l&&e?l+("string"==typeof e?e:e(s)):null};s.options.useGoogleCharts&&e("./gChartLoader.js").once("initError",function(){s.options.useGoogleCharts=!1}).init();s.plugins={};for(var u in i.plugins)(s.options.useGoogleCharts||"gchart"!=u)&&(s.plugins[u]=new i.plugins[u](s));s.updateHeader=function(){var e=s.header.find(".yasr_downloadIcon").removeAttr("title"),t=s.header.find(".yasr_embedBtn"),r=s.plugins[s.options.output];if(r){var n=r.getDownloadInfo?r.getDownloadInfo():null;if(n){n.buttonTitle&&e.attr("title",n.buttonTitle);e.prop("disabled",!1);e.find("path").each(function(){this.style.fill="black"})}else{e.prop("disabled",!0).prop("title","Download not supported for this result representation");e.find("path").each(function(){this.style.fill="gray"})}var i=null;r.getEmbedHtml&&(i=r.getEmbedHtml());i&&i.length>0?t.show():t.hide()}};s.draw=function(e){if(!s.results)return!1;e||(e=s.options.output);var t=null,n=-1,i=[];for(var o in s.plugins)if(s.plugins[o].canHandleResults(s)){var a=s.plugins[o].getPriority;"function"==typeof a&&(a=a(s));if(null!=a&&void 0!=a&&a>n){n=a;t=o}}else i.push(o);c(i);if(e in s.plugins&&s.plugins[e].canHandleResults(s)){r(s.resultsContainer).empty();s.plugins[e].draw();return!0}if(t){r(s.resultsContainer).empty();s.plugins[t].draw();return!0}return!1};var c=function(e){s.header.find(".yasr_btnGroup .yasr_btn").removeClass("disabled");e.forEach(function(e){s.header.find(".yasr_btnGroup .select_"+e).addClass("disabled")})};s.somethingDrawn=function(){return!s.resultsContainer.is(":empty")};s.setResponse=function(t,r,i){try{s.results=e("./parsers/wrapper.js")(t,r,i)}catch(o){s.results={getException:function(){return o}}}s.draw();var a=s.getPersistencyId(s.options.persistency.results.key);a&&(s.results.getOriginalResponseAsString&&s.results.getOriginalResponseAsString().length<s.options.persistency.results.maxSize?n.storage.set(a,s.results.getAsStoreObject(),"month"):n.storage.remove(a))};var d=null,f=null,p=null;s.warn=function(e){if(!d){d=r("<div>",{"class":"toggableWarning"}).prependTo(s.container).hide();f=r("<span>",{"class":"toggleWarning"}).html("&times;").click(function(){d.hide(400)}).appendTo(d);p=r("<span>",{"class":"toggableMsg"}).appendTo(d)}p.empty();e instanceof r?p.append(e):p.html(e);d.show(400)};var g=null,h=function(){if(null===g){var e=window.URL||window.webkitURL||window.mozURL||window.msURL;g=e&&Blob}return g},v=null,m=function(t){var i=function(){var e=r('<div class="yasr_btnGroup"></div>');r.each(t.plugins,function(i,o){if(!o.hideFromSelection){var a=o.name||i,s=r("<button class='yasr_btn'></button>").text(a).addClass("select_"+i).click(function(){e.find("button.selected").removeClass("selected");r(this).addClass("selected");t.options.output=i;var o=t.getPersistencyId(t.options.persistency.outputSelector);o&&n.storage.set(o,t.options.output,"month");d&&d.hide(400);t.draw();t.updateHeader()}).appendTo(e);t.options.output==i&&s.addClass("selected")}});e.children().length>1&&t.header.append(e)},o=function(){var n=function(e,t){var r=null,n=window.URL||window.webkitURL||window.mozURL||window.msURL;if(n&&Blob){var i=new Blob([e],{type:t});r=n.createObjectURL(i)}return r},i=r("<button class='yasr_btn yasr_downloadIcon btn_icon'></button>").append(e("yasgui-utils").svg.getElement(e("./imgs.js").download)).click(function(){var i=t.plugins[t.options.output];if(i&&i.getDownloadInfo){var o=i.getDownloadInfo(),a=n(o.getContent(),o.contentType?o.contentType:"text/plain"),s=r("<a></a>",{href:a,download:o.filename});e("./utils.js").fireClick(s)}});t.header.append(i)},a=function(){var n=r("<button class='yasr_btn btn_fullscreen btn_icon'></button>").append(e("yasgui-utils").svg.getElement(e("./imgs.js").fullscreen)).click(function(){t.container.addClass("yasr_fullscreen")});t.header.append(n)},s=function(){var n=r("<button class='yasr_btn btn_smallscreen btn_icon'></button>").append(e("yasgui-utils").svg.getElement(e("./imgs.js").smallscreen)).click(function(){t.container.removeClass("yasr_fullscreen")});t.header.append(n)},l=function(){v=r("<button>",{"class":"yasr_btn yasr_embedBtn",title:"Get HTML snippet to embed results on a web page"}).text("</>").click(function(e){var n=t.plugins[t.options.output];if(n&&n.getEmbedHtml){var i=n.getEmbedHtml();e.stopPropagation();var o=r("<div class='yasr_embedPopup'></div>").appendTo(t.header);r("html").click(function(){o&&o.remove()});o.click(function(e){e.stopPropagation()});var a=r("<textarea>").val(i);a.focus(function(){var e=r(this);e.select();e.mouseup(function(){e.unbind("mouseup");return!1})});o.empty().append(a);var s=v.position(),l=s.top+v.outerHeight()+"px",u=Math.max(s.left+v.outerWidth()-o.outerWidth(),0)+"px";o.css("top",l).css("left",u)}});t.header.append(v)};a();s();t.options.drawOutputSelector&&i();t.options.drawDownloadIcon&&h()&&o();l()},w=s.getPersistencyId(s.options.persistency.outputSelector);if(w){var y=n.storage.get(w);y&&(s.options.output=y)}m(s);if(!a&&s.options.persistency&&s.options.persistency.results){var b,x=s.getPersistencyId(s.options.persistency.results.key);x&&(b=n.storage.get(x));if(!b&&s.options.persistency.results.id){var k="string"==typeof s.options.persistency.results.id?s.options.persistency.results.id:s.options.persistency.results.id(s);if(k){b=n.storage.get(k);b&&n.storage.remove(k)}}b&&(r.isArray(b)?s.setResponse.apply(this,b):s.setResponse(b))}a&&s.setResponse(a);s.updateHeader();return s};i.plugins={};i.registerOutput=function(e,t){i.plugins[e]=t};i.defaults=e("./defaults.js");i.version={YASR:e("../package.json").version,jquery:r.fn.jquery,"yasgui-utils":e("yasgui-utils").version};i.$=r;try{i.registerOutput("boolean",e("./boolean.js"))}catch(o){}try{i.registerOutput("rawResponse",e("./rawResponse.js"))}catch(o){}try{i.registerOutput("table",e("./table.js"))}catch(o){}try{i.registerOutput("error",e("./error.js"))}catch(o){}try{i.registerOutput("pivot",e("./pivot.js"))}catch(o){}try{i.registerOutput("gchart",e("./gchart.js"))}catch(o){}},{"../package.json":19,"./boolean.js":21,"./defaults.js":22,"./error.js":23,"./gChartLoader.js":25,"./gchart.js":26,"./imgs.js":27,"./jquery/extendJquery.js":28,"./parsers/wrapper.js":35,"./pivot.js":37,"./rawResponse.js":38,"./table.js":39,"./utils.js":40,jquery:void 0,"yasgui-utils":16}],31:[function(e,t){"use strict";(function(){try{return e("jquery")}catch(t){return window.jQuery}})(),t.exports=function(t){return e("./dlv.js")(t,",")}},{"./dlv.js":32,jquery:void 0}],32:[function(e,t){"use strict";var r=function(){try{return e("jquery")}catch(t){return window.jQuery}}();e("../../lib/jquery.csv-0.71.js");t.exports=function(e,t){var n={},i=r.csv.toArrays(e,{separator:t}),o=function(e){return 0==e.indexOf("http")?"uri":null},a=function(){if(2==i.length&&1==i[0].length&&1==i[1].length&&"boolean"==i[0][0]&&("1"==i[1][0]||"0"==i[1][0])){n.boolean="1"==i[1][0]?!0:!1;return!0}return!1},s=function(){if(i.length>0&&i[0].length>0){n.head={vars:i[0]};return!0}return!1},l=function(){if(i.length>1){n.results={bindings:[]};for(var e=1;e<i.length;e++){for(var t={},r=0;r<i[e].length;r++){var a=n.head.vars[r];if(a){var s=i[e][r],l=o(s);t[a]={value:s};l&&(t[a].type=l)}}n.results.bindings.push(t)}n.head={vars:i[0]};return!0}return!1},u=a();if(!u){var c=s();c&&l()}return n}},{"../../lib/jquery.csv-0.71.js":3,jquery:void 0}],33:[function(e,t){"use strict";(function(){try{return e("jquery")}catch(t){return window.jQuery}})(),t.exports=function(e){if("string"==typeof e)try{return JSON.parse(e)}catch(t){return!1}return"object"==typeof e&&e.constructor==={}.constructor?e:!1}},{jquery:void 0}],34:[function(e,t){"use strict";(function(){try{return e("jquery")}catch(t){return window.jQuery}})(),t.exports=function(t){return e("./dlv.js")(t,"	")}},{"./dlv.js":32,jquery:void 0}],35:[function(e,t){"use strict";(function(){try{return e("jquery")}catch(t){return window.jQuery}})(),t.exports=function(t,r,n){var i={xml:e("./xml.js"),json:e("./json.js"),tsv:e("./tsv.js"),csv:e("./csv.js")},o=null,a=null,s=null,l=null,u=null,c=function(){if("object"==typeof t){if(t.exception)u=t.exception;else if(void 0!=t.status&&(t.status>=300||0===t.status)){u={status:t.status};"string"==typeof n&&(u.errorString=n);t.responseText&&(u.responseText=t.responseText);t.statusText&&(u.statusText=t.statusText)}if(t.contentType)o=t.contentType.toLowerCase();else if(t.getResponseHeader&&t.getResponseHeader("content-type")){var e=t.getResponseHeader("content-type").trim().toLowerCase();e.length>0&&(o=e)}t.response?a=t.response:r||n||(a=t)}u||a||(a=t.responseText?t.responseText:t)},d=function(){if(s)return s;if(s===!1||u)return!1;var e=function(){if(o)if(o.indexOf("json")>-1){try{s=i.json(a)}catch(e){u=e}l="json"}else if(o.indexOf("xml")>-1){try{s=i.xml(a)}catch(e){u=e}l="xml"}else if(o.indexOf("csv")>-1){try{s=i.csv(a)}catch(e){u=e}l="csv"}else if(o.indexOf("tab-separated")>-1){try{s=i.tsv(a)}catch(e){u=e}l="tsv"}},t=function(){s=i.json(a);if(s)l="json";else try{s=i.xml(a);s&&(l="xml")}catch(e){}};e();s||t();s||(s=!1);return s},f=function(){var e=d();return e&&"head"in e?e.head.vars:null},p=function(){var e=d();return e&&"results"in e?e.results.bindings:null},g=function(){var e=d();return e&&"boolean"in e?e.boolean:null},h=function(){return a},v=function(){var e="";"string"==typeof a?e=a:"json"==l?e=JSON.stringify(a,void 0,2):"xml"==l&&(e=(new XMLSerializer).serializeToString(a));return e},m=function(){return u},w=function(){null==l&&d();return l
  },y=function(){var e={};if(t.status){e.status=t.status;e.responseText=t.responseText;e.statusText=t.statusText;e.contentType=o}else e=t;var i=r,a=void 0;"string"==typeof n&&(a=n);return[e,i,a]};c();s=d();return{getAsStoreObject:y,getAsJson:d,getOriginalResponse:h,getOriginalResponseAsString:v,getOriginalContentType:function(){return o},getVariables:f,getBindings:p,getBoolean:g,getType:w,getException:m}}},{"./csv.js":31,"./json.js":33,"./tsv.js":34,"./xml.js":36,jquery:void 0}],36:[function(e,t){"use strict";{var r=function(){try{return e("jquery")}catch(t){return window.jQuery}}();t.exports=function(e){var t=function(e){a.head={};for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];if("variable"==r.nodeName){a.head.vars||(a.head.vars=[]);var n=r.getAttribute("name");n&&a.head.vars.push(n)}}},n=function(e){a.results={};a.results.bindings=[];for(var t=0;t<e.childNodes.length;t++){for(var r=e.childNodes[t],n=null,i=0;i<r.childNodes.length;i++){var o=r.childNodes[i];if("binding"==o.nodeName){var s=o.getAttribute("name");if(s){n=n||{};n[s]={};for(var l=0;l<o.childNodes.length;l++){var u=o.childNodes[l],c=u.nodeName;if("#text"!=c){n[s].type=c;n[s].value=u.innerHTML;var d=u.getAttribute("datatype");d&&(n[s].datatype=d)}}}}}n&&a.results.bindings.push(n)}},i=function(e){a.boolean="true"==e.innerHTML?!0:!1},o=null;"string"==typeof e?o=r.parseXML(e):r.isXMLDoc(e)&&(o=e);var e=null;if(!(o.childNodes.length>0))return null;e=o.childNodes[0];for(var a={},s=0;s<e.childNodes.length;s++){var l=e.childNodes[s];"head"==l.nodeName&&t(l);"results"==l.nodeName&&n(l);"boolean"==l.nodeName&&i(l)}return a}}},{jquery:void 0}],37:[function(e,t){"use strict";var r=function(){try{return e("jquery")}catch(t){return window.jQuery}}(),n=e("./utils.js"),i=e("yasgui-utils"),o=e("./imgs.js");(function(){try{return e("jquery-ui/sortable")}catch(t){return window.jQuery}})();(function(){try{return e("pivottable")}catch(t){return window.jQuery}})();if(!r.fn.pivotUI)throw new Error("Pivot lib not loaded");var a=t.exports=function(t){var s=r.extend(!0,{},a.defaults);if(s.useD3Chart){try{var l=function(){try{return e("d3")}catch(t){return window.d3}}();l&&e("../node_modules/pivottable/dist/d3_renderers.js")}catch(u){}r.pivotUtilities.d3_renderers&&r.extend(!0,r.pivotUtilities.renderers,r.pivotUtilities.d3_renderers)}var c,d=null,f=function(){var e=t.results.getVariables();if(!s.mergeLabelsWithUris)return e;var r=[];d="string"==typeof s.mergeLabelsWithUris?s.mergeLabelsWithUris:"Label";e.forEach(function(t){-1!==t.indexOf(d,t.length-d.length)&&e.indexOf(t.substring(0,t.length-d.length))>=0||r.push(t)});return r},p=function(e){var r=f(),i=null;t.options.getUsedPrefixes&&(i="function"==typeof t.options.getUsedPrefixes?t.options.getUsedPrefixes(t):t.options.getUsedPrefixes);t.results.getBindings().forEach(function(t){var o={};r.forEach(function(e){if(e in t){var r=t[e].value;d&&t[e+d]?r=t[e+d].value:"uri"==t[e].type&&(r=n.uriToPrefixed(i,r));o[e]=r}else o[e]=null});e(o)})},g=t.getPersistencyId(s.persistencyId),h=function(){var e=i.storage.get(g);if(e){var n=t.results.getVariables(),o=!0;e.cols.forEach(function(e){n.indexOf(e)<0&&(o=!1)});o&&e.rows.forEach(function(e){n.indexOf(e)<0&&(o=!1)});if(!o){e.cols=[];e.rows=[]}r.pivotUtilities.renderers[e.rendererName]||delete e.rendererName}else e={};return e},v=function(){var n=function(){var e=function(e){if(g){var r={cols:e.cols,rows:e.rows,rendererName:e.rendererName,aggregatorName:e.aggregatorName,vals:e.vals};i.storage.set(g,r,"month")}e.rendererName.toLowerCase().indexOf(" chart")>=0?n.show():n.hide();t.updateHeader()},n=r("<button>",{"class":"openPivotGchart yasr_btn"}).text("Chart Config").click(function(){c.find('div[dir="ltr"]').dblclick()}).appendTo(t.resultsContainer);c=r("<div>",{"class":"pivotTable"}).appendTo(r(t.resultsContainer));var s=r.extend(!0,{},h(),a.defaults.pivotTable);s.onRefresh=function(){var t=s.onRefresh;return function(r){e(r);t&&t(r)}}();window.pivot=c.pivotUI(p,s);var l=r(i.svg.getElement(o.move));c.find(".pvtTriangle").replaceWith(l);r(".pvtCols").prepend(r("<div>",{"class":"containerHeader"}).text("Columns"));r(".pvtRows").prepend(r("<div>",{"class":"containerHeader"}).text("Rows"));r(".pvtUnused").prepend(r("<div>",{"class":"containerHeader"}).text("Available Variables"));r(".pvtVals").prepend(r("<div>",{"class":"containerHeader"}).text("Cells"));setTimeout(t.updateHeader,400)};t.options.useGoogleCharts&&s.useGoogleCharts&&!r.pivotUtilities.gchart_renderers?e("./gChartLoader.js").on("done",function(){try{e("../node_modules/pivottable/dist/gchart_renderers.js");r.extend(!0,r.pivotUtilities.renderers,r.pivotUtilities.gchart_renderers)}catch(t){s.useGoogleCharts=!1}n()}).on("error",function(){console.log("could not load gchart");s.useGoogleCharts=!1;n()}).googleLoad():n()},m=function(){return t.results&&t.results.getVariables&&t.results.getVariables()&&t.results.getVariables().length>0},w=function(){if(!t.results)return null;var e=t.resultsContainer.find(".pvtRendererArea svg");if(e.length>0)return{getContent:function(){return e[0].outerHTML?e[0].outerHTML:r("<div>").append(e.clone()).html()},filename:"queryResults.svg",contentType:"image/svg+xml",buttonTitle:"Download SVG Image"};var n=t.resultsContainer.find(".pvtRendererArea table");return n.length>0?{getContent:function(){return n.tableToCsv()},filename:"queryResults.csv",contentType:"text/csv",buttonTitle:"Download as CSV"}:void 0},y=function(){if(!t.results)return null;var e=t.resultsContainer.find(".pvtRendererArea svg").clone().removeAttr("height").removeAttr("width").css("height","").css("width","");if(0==e.length)return null;var n=e[0].outerHTML;n||(n=r("<div>").append(e.clone()).html());return'<div style="width: 800px; height: 600px;">\n'+n+"\n</div>"};return{getDownloadInfo:w,getEmbedHtml:y,options:s,draw:v,name:"Pivot Table",canHandleResults:m,getPriority:4}};a.defaults={mergeLabelsWithUris:!1,useGoogleCharts:!0,useD3Chart:!0,persistencyId:"pivot",pivotTable:{}};a.version={"YASR-rawResponse":e("../package.json").version,jquery:r.fn.jquery}},{"../node_modules/pivottable/dist/d3_renderers.js":12,"../node_modules/pivottable/dist/gchart_renderers.js":13,"../package.json":19,"./gChartLoader.js":25,"./imgs.js":27,"./utils.js":40,d3:void 0,jquery:void 0,"jquery-ui/sortable":void 0,pivottable:void 0,"yasgui-utils":16}],38:[function(e,t){"use strict";var r=function(){try{return e("jquery")}catch(t){return window.jQuery}}(),n=function(){try{return e("codemirror")}catch(t){return window.CodeMirror}}();e("codemirror/addon/fold/foldcode.js");e("codemirror/addon/fold/foldgutter.js");e("codemirror/addon/fold/xml-fold.js");e("codemirror/addon/fold/brace-fold.js");e("codemirror/addon/edit/matchbrackets.js");e("codemirror/mode/xml/xml.js");e("codemirror/mode/javascript/javascript.js");var i=t.exports=function(e){var t=r.extend(!0,{},i.defaults),o=null,a=function(){var r=t.CodeMirror;r.value=e.results.getOriginalResponseAsString();var i=e.results.getType();if(i){"json"==i&&(i={name:"javascript",json:!0});r.mode=i}o=n(e.resultsContainer.get()[0],r);o.on("fold",function(){o.refresh()});o.on("unfold",function(){o.refresh()})},s=function(){if(!e.results)return!1;if(!e.results.getOriginalResponseAsString)return!1;var t=e.results.getOriginalResponseAsString();return t&&0!=t.length||!e.results.getException()?!0:!1},l=function(){if(!e.results)return null;var t=e.results.getOriginalContentType(),r=e.results.getType();return{getContent:function(){return e.results.getOriginalResponse()},filename:"queryResults"+(r?"."+r:""),contentType:t?t:"text/plain",buttonTitle:"Download raw response"}};return{draw:a,name:"Raw Response",canHandleResults:s,getPriority:2,getDownloadInfo:l}};i.defaults={CodeMirror:{readOnly:!0,lineNumbers:!0,lineWrapping:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}};i.version={"YASR-rawResponse":e("../package.json").version,jquery:r.fn.jquery,CodeMirror:n.version}},{"../package.json":19,codemirror:void 0,"codemirror/addon/edit/matchbrackets.js":5,"codemirror/addon/fold/brace-fold.js":6,"codemirror/addon/fold/foldcode.js":7,"codemirror/addon/fold/foldgutter.js":8,"codemirror/addon/fold/xml-fold.js":9,"codemirror/mode/javascript/javascript.js":10,"codemirror/mode/xml/xml.js":11,jquery:void 0}],39:[function(e,t){"use strict";var r=function(){try{return e("jquery")}catch(t){return window.jQuery}}(),n=e("yasgui-utils"),i=e("./utils.js"),o=e("./imgs.js");(function(){try{return e("datatables")}catch(t){return window.jQuery}})();e("../lib/colResizable-1.4.js");var a=t.exports=function(t){var i=null,s={name:"Table",getPriority:10},l=s.options=r.extend(!0,{},a.defaults),c=l.persistency?t.getPersistencyId(l.persistency.tableLength):null,d=function(){var e=[],r=t.results.getBindings(),n=t.results.getVariables(),i=null;t.options.getUsedPrefixes&&(i="function"==typeof t.options.getUsedPrefixes?t.options.getUsedPrefixes(t):t.options.getUsedPrefixes);for(var o=0;o<r.length;o++){var a=[];a.push("");for(var u=r[o],c=0;c<n.length;c++){var d=n[c];a.push(d in u?l.getCellContent?l.getCellContent(t,s,u,d,{rowId:o,colId:c,usedPrefixes:i}):"":"")}e.push(a)}return e},f=t.getPersistencyId("eventId")||"",p=function(){i.on("order.dt",function(){g()});c&&i.on("length.dt",function(e,t,r){n.storage.set(c,r,"month")});r.extend(!0,l.callbacks,l.handlers);i.delegate("td","click",function(e){if(l.callbacks&&l.callbacks.onCellClick){var t=l.callbacks.onCellClick(this,e);if(t===!1)return!1}}).delegate("td","mouseenter",function(e){l.callbacks&&l.callbacks.onCellMouseEnter&&l.callbacks.onCellMouseEnter(this,e);var t=r(this);l.fetchTitlesFromPreflabel&&void 0===t.attr("title")&&0==t.text().trim().indexOf("http")&&u(t)}).delegate("td","mouseleave",function(e){l.callbacks&&l.callbacks.onCellMouseLeave&&l.callbacks.onCellMouseLeave(this,e)});r(window).off("resize."+f);r(window).on("resize."+f,h);h()};s.draw=function(){i=r('<table cellpadding="0" cellspacing="0" border="0" class="resultsTable"></table>');r(t.resultsContainer).html(i);var e=l.datatable;e.data=d();e.columns=l.getColumns(t,s);var o=n.storage.get(c);o&&(e.pageLength=o);i.DataTable(r.extend(!0,{},e));g();p();i.colResizable();i.find("thead").outerHeight();r(t.resultsContainer).find(".JCLRgrip").height(i.find("thead").outerHeight());var a=t.header.outerHeight()-5;if(a>0){t.resultsContainer.find(".dataTables_wrapper").css("position","relative").css("top","-"+a+"px").css("margin-bottom","-"+a+"px");r(t.resultsContainer).find(".JCLRgrip").css("marginTop",a+"px")}};var g=function(){var e={sorting:"unsorted",sorting_asc:"sortAsc",sorting_desc:"sortDesc"};i.find(".sortIcons").remove();for(var t in e){var a=r("<div class='sortIcons'></div>");n.svg.draw(a,o[e[t]]);i.find("th."+t).append(a)}};s.canHandleResults=function(){return t.results&&t.results.getVariables&&t.results.getVariables()&&t.results.getVariables().length>0};s.getDownloadInfo=function(){return t.results?{getContent:function(){return e("./bindingsToCsv.js")(t.results.getAsJson())},filename:"queryResults.csv",contentType:"text/csv",buttonTitle:"Download as CSV"}:null};var h=function(){var e=!0,r=t.container.find(".yasr_downloadIcon"),n=t.container.find(".dataTables_filter"),i=r.offset().left;if(i>0){var o=i+r.outerWidth(),a=n.offset().left;a>0&&o>a&&(e=!1)}e?n.css("visibility","visible"):n.css("visibility","hidden")};return s},s=function(e,t,r){var n=i.escapeHtmlEntities(r.value);if(r["xml:lang"])n='"'+n+'"<sup>@'+r["xml:lang"]+"</sup>";else if(r.datatype){var o="http://www.w3.org/2001/XMLSchema#",a=r.datatype;a=0===a.indexOf(o)?"xsd:"+a.substring(o.length):"&lt;"+a+"&gt;";n='"'+n+'"<sup>^^'+a+"</sup>"}return n},l=function(e,t,r,n,i){var o=r[n],a=null;if("uri"==o.type){var l=null,u=o.value,c=u;if(i.usedPrefixes)for(var d in i.usedPrefixes)if(0==c.indexOf(i.usedPrefixes[d])){c=d+":"+u.substring(i.usedPrefixes[d].length);break}if(t.options.mergeLabelsWithUris){var f="string"==typeof t.options.mergeLabelsWithUris?t.options.mergeLabelsWithUris:"Label";if(r[n+f]){c=s(e,t,r[n+f]);l=u}}a="<a "+(l?"title='"+u+"' ":"")+"class='uri' target='_blank' href='"+u+"'>"+c+"</a>"}else a="<span class='nonUri'>"+s(e,t,o)+"</span>";return"<div>"+a+"</div>"},u=function(e){var t=function(){e.attr("title","")};r.get("http://preflabel.org/api/v1/label/"+encodeURIComponent(e.text())+"?silent=true").success(function(r){"object"==typeof r&&r.label?e.attr("title",r.label):"string"==typeof r&&r.length>0?e.attr("title",r):t()}).fail(t)};a.defaults={getCellContent:l,persistency:{tableLength:"tableLength"},getColumns:function(e,t){var r=function(r){if(!t.options.mergeLabelsWithUris)return!0;var n="string"==typeof t.options.mergeLabelsWithUris?t.options.mergeLabelsWithUris:"Label";return-1!==r.indexOf(n,r.length-n.length)&&e.results.getVariables().indexOf(r.substring(0,r.length-n.length))>=0?!1:!0},n=[];n.push({title:""});e.results.getVariables().forEach(function(e){n.push({title:"<span>"+e+"</span>",visible:r(e)})});return n},fetchTitlesFromPreflabel:!0,mergeLabelsWithUris:!1,callbacks:{onCellMouseEnter:null,onCellMouseLeave:null,onCellClick:null},datatable:{autoWidth:!1,order:[],pageLength:50,lengthMenu:[[10,50,100,1e3,-1],[10,50,100,1e3,"All"]],lengthChange:!0,pagingType:"full_numbers",drawCallback:function(e){for(var t=0;t<e.aiDisplay.length;t++)r("td:eq(0)",e.aoData[e.aiDisplay[t]].nTr).html(t+1);var n=!1;r(e.nTableWrapper).find(".paginate_button").each(function(){-1==r(this).attr("class").indexOf("current")&&-1==r(this).attr("class").indexOf("disabled")&&(n=!0)});n?r(e.nTableWrapper).find(".dataTables_paginate").show():r(e.nTableWrapper).find(".dataTables_paginate").hide()},columnDefs:[{width:"32px",orderable:!1,targets:0}]}};a.version={"YASR-table":e("../package.json").version,jquery:r.fn.jquery,"jquery-datatables":r.fn.DataTable.version}},{"../lib/colResizable-1.4.js":2,"../package.json":19,"./bindingsToCsv.js":20,"./imgs.js":27,"./utils.js":40,datatables:void 0,jquery:void 0,"yasgui-utils":16}],40:[function(e,t){"use strict";var r=function(){try{return e("jquery")}catch(t){return window.jQuery}}(),n=e("./exceptions.js").GoogleTypeException;t.exports={escapeHtmlEntities:function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},uriToPrefixed:function(e,t){if(e)for(var r in e)if(0==t.indexOf(e[r])){t=r+":"+t.substring(e[r].length);break}return t},getGoogleTypeForBinding:function(e){if(null==e)return null;if(null==e.type||"typed-literal"!==e.type&&"literal"!==e.type)return"string";switch(e.datatype){case"http://www.w3.org/2001/XMLSchema#float":case"http://www.w3.org/2001/XMLSchema#decimal":case"http://www.w3.org/2001/XMLSchema#int":case"http://www.w3.org/2001/XMLSchema#integer":case"http://www.w3.org/2001/XMLSchema#long":case"http://www.w3.org/2001/XMLSchema#gYearMonth":case"http://www.w3.org/2001/XMLSchema#gYear":case"http://www.w3.org/2001/XMLSchema#gMonthDay":case"http://www.w3.org/2001/XMLSchema#gDay":case"http://www.w3.org/2001/XMLSchema#gMonth":return"number";case"http://www.w3.org/2001/XMLSchema#date":return"date";case"http://www.w3.org/2001/XMLSchema#dateTime":return"datetime";case"http://www.w3.org/2001/XMLSchema#time":return"timeofday";default:return"string"}},getGoogleTypeForBindings:function(e,r){var i={},o=0;e.forEach(function(e){var n=t.exports.getGoogleTypeForBinding(e[r]);if(null!=n){if(!(n in i)){i[n]=0;o++}i[n]++}});if(0==o)return"string";if(1!=o)throw new n(i,r);for(var a in i)return a},castGoogleType:function(e,r,n){if(null==e)return null;if("string"==n||null==e.type||"typed-literal"!==e.type&&"literal"!==e.type)return(e.type="uri")?t.exports.uriToPrefixed(r,e.value):e.value;switch(e.datatype){case"http://www.w3.org/2001/XMLSchema#float":case"http://www.w3.org/2001/XMLSchema#decimal":case"http://www.w3.org/2001/XMLSchema#int":case"http://www.w3.org/2001/XMLSchema#integer":case"http://www.w3.org/2001/XMLSchema#long":case"http://www.w3.org/2001/XMLSchema#gYearMonth":case"http://www.w3.org/2001/XMLSchema#gYear":case"http://www.w3.org/2001/XMLSchema#gMonthDay":case"http://www.w3.org/2001/XMLSchema#gDay":case"http://www.w3.org/2001/XMLSchema#gMonth":return Number(e.value);case"http://www.w3.org/2001/XMLSchema#date":var o=i(e.value);if(o)return o;case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://www.w3.org/2001/XMLSchema#time":return new Date(e.value);default:return e.value}},fireClick:function(e){e&&e.each(function(e,t){var n=r(t);if(document.dispatchEvent){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,1,1,1,1,1,!1,!1,!1,!1,0,n[0]);n[0].dispatchEvent(i)}else document.fireEvent&&n[0].click()})}};var i=function(e){var t=new Date(e.replace(/(\d)([\+-]\d{2}:\d{2})/,"$1Z$2"));return isNaN(t)?null:t}},{"./exceptions.js":24,jquery:void 0}]},{},[1])(1)});
  //# sourceMappingURL=yasr.min.js.map